@mobilon-dev/chotto 0.0.42 → 0.0.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { openBlock as l, createElementBlock as c, createElementVNode as o, Fragment as B, renderList as Y, normalizeClass as D, createCommentVNode as y, toDisplayString as w, ref as b, computed as T, normalizeStyle as z, createTextVNode as wn, unref as q, createVNode as S, Transition as H, withCtx as K, createBlock as L, Teleport as kn, onMounted as Ie, withDirectives as te, vShow as pe, renderSlot as J, defineComponent as de, inject as Ge, getCurrentInstance as Nn, toRaw as Zf, watch as we, onBeforeUnmount as Dn, provide as jn, reactive as Vn, readonly as En, vModelText as Gf, resolveComponent as Je, onUnmounted as Tn, mergeModels as zf, useModel as xn, withKeys as Sn, onUpdated as zn, resolveDynamicComponent as On, nextTick as uf, toRef as Cn, vModelCheckbox as Un, h as Of, defineAsyncComponent as Ln, createApp as Qn } from "vue";
2
- const j = (e, f) => {
1
+ import { openBlock as l, createElementBlock as c, createElementVNode as i, Fragment as Q, renderList as R, normalizeClass as V, createCommentVNode as y, toDisplayString as I, ref as v, computed as x, normalizeStyle as z, createTextVNode as wn, unref as Y, createVNode as S, Transition as H, withCtx as K, createBlock as C, Teleport as kn, onMounted as Ie, withDirectives as te, vShow as pe, renderSlot as F, defineComponent as de, inject as Ge, getCurrentInstance as Nn, toRaw as Pf, watch as we, onBeforeUnmount as Dn, provide as jn, reactive as Vn, readonly as En, vModelText as Zf, resolveComponent as Je, onUnmounted as Tn, isRef as xn, withKeys as Sn, onUpdated as zn, resolveDynamicComponent as On, nextTick as uf, toRef as Cn, vModelCheckbox as Un, h as zf, defineAsyncComponent as Ln, createApp as Qn } from "vue";
2
+ const D = (e, f) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, t] of f)
5
5
  n[a] = t;
@@ -19,35 +19,35 @@ const j = (e, f) => {
19
19
  a("click", A);
20
20
  };
21
21
  return (s, A) => (l(), c("div", Bn, [
22
- o("div", Yn, [
23
- o("ul", Rn, [
24
- (l(!0), c(B, null, Y(n.actions, (i, u) => (l(), c("li", {
22
+ i("div", Yn, [
23
+ i("ul", Rn, [
24
+ (l(!0), c(Q, null, R(n.actions, (o, u) => (l(), c("li", {
25
25
  key: u,
26
26
  class: "context-menu__item",
27
27
  onClick: (r) => t(u)
28
28
  }, [
29
- i.icon ? (l(), c("img", {
29
+ o.icon ? (l(), c("img", {
30
30
  key: 0,
31
- src: i.icon,
31
+ src: o.icon,
32
32
  width: "18",
33
33
  height: "18"
34
- }, null, 8, Fn)) : i.prime ? (l(), c("i", {
34
+ }, null, 8, Fn)) : o.prime ? (l(), c("i", {
35
35
  key: 1,
36
- class: D("pi pi-" + i.prime)
36
+ class: V("pi pi-" + o.prime)
37
37
  }, null, 2)) : y("", !0),
38
- o("span", null, w(i.title), 1)
38
+ i("span", null, I(o.title), 1)
39
39
  ], 8, qn))), 128))
40
40
  ])
41
41
  ])
42
42
  ]));
43
43
  }
44
- }, ge = /* @__PURE__ */ j($n, [["__scopeId", "data-v-54c29e54"]]);
45
- function P1(e) {
44
+ }, ge = /* @__PURE__ */ D($n, [["__scopeId", "data-v-54c29e54"]]);
45
+ function X1(e) {
46
46
  if (!e || e === "") return;
47
47
  const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), t = Math.floor(a / 60), s = Math.floor(t / 60), A = Math.floor(s / 24);
48
48
  return A > 30 ? f.toLocaleString() : A > 0 ? `${A} ${A === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : t > 0 ? `${t} ${t === 1 ? "минута" : "минуты"} назад` : a > 0 ? `${a} ${a === 1 ? "секунда" : "секунды"} назад` : "Только что";
49
49
  }
50
- const Z1 = (e) => {
50
+ const el = (e) => {
51
51
  const f = [];
52
52
  let n = null;
53
53
  for (let a = 0; a < e.length; a++) {
@@ -61,7 +61,7 @@ const Z1 = (e) => {
61
61
  }), n = s), f.push(t);
62
62
  }
63
63
  return f;
64
- }, G1 = async () => {
64
+ }, fl = async () => {
65
65
  try {
66
66
  if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
67
67
  const f = new Audio();
@@ -70,7 +70,7 @@ const Z1 = (e) => {
70
70
  } catch {
71
71
  console.log("no audio permissions");
72
72
  }
73
- }, X1 = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0), Cf = (e) => {
73
+ }, nl = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0), Of = (e) => {
74
74
  let f = "file";
75
75
  return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
76
76
  }, ke = ["read", "received", "send"], Ne = (e) => {
@@ -97,16 +97,16 @@ const Z1 = (e) => {
97
97
  }
98
98
  },
99
99
  setup(e) {
100
- const f = e, n = b(!1), a = b(!1), t = () => {
100
+ const f = e, n = v(!1), a = v(!1), t = () => {
101
101
  a.value = !0;
102
102
  }, s = () => {
103
103
  a.value = !1, n.value = !1;
104
- }, A = T(() => Ne(f.message.status));
105
- function i(u) {
104
+ }, A = x(() => Ne(f.message.status));
105
+ function o(u) {
106
106
  return u.position === "left" ? "file-message__left" : "file-message__right";
107
107
  }
108
108
  return (u, r) => (l(), c("div", {
109
- class: D(["file-message", i(e.message)]),
109
+ class: V(["file-message", o(e.message)]),
110
110
  messageId: e.message.messageId,
111
111
  onMouseleave: s
112
112
  }, [
@@ -118,28 +118,28 @@ const Z1 = (e) => {
118
118
  width: "32",
119
119
  style: z({ gridRow: e.message.subText ? "2" : "1" })
120
120
  }, null, 12, Jn)) : y("", !0),
121
- e.message.subText ? (l(), c("p", Hn, w(e.message.subText), 1)) : y("", !0),
122
- o("div", {
121
+ e.message.subText ? (l(), c("p", Hn, I(e.message.subText), 1)) : y("", !0),
122
+ i("div", {
123
123
  class: "file-message__content",
124
124
  onMouseenter: t
125
125
  }, [
126
- o("a", {
126
+ i("a", {
127
127
  class: "file-message__link",
128
128
  href: e.message.url,
129
129
  download: "",
130
130
  target: "_blank"
131
131
  }, [
132
- r[1] || (r[1] = o("span", { class: "pi pi-file" }, null, -1)),
133
- wn(" " + w(e.message.filename), 1)
132
+ r[1] || (r[1] = i("span", { class: "pi pi-file" }, null, -1)),
133
+ wn(" " + I(e.message.filename), 1)
134
134
  ], 8, Kn),
135
- o("div", Pn, [
136
- o("span", Zn, w(e.message.time), 1),
137
- i(e.message) === "file-message__right" && q(ke).includes(e.message.status) ? (l(), c("div", {
135
+ i("div", Pn, [
136
+ i("span", Zn, I(e.message.time), 1),
137
+ o(e.message) === "file-message__right" && Y(ke).includes(e.message.status) ? (l(), c("div", {
138
138
  key: 0,
139
- class: D(["file-message__status", A.value])
139
+ class: V(["file-message__status", A.value])
140
140
  }, [
141
141
  e.message.status !== "sent" ? (l(), c("span", Gn)) : y("", !0),
142
- r[2] || (r[2] = o("span", { class: "pi pi-check" }, null, -1))
142
+ r[2] || (r[2] = i("span", { class: "pi pi-check" }, null, -1))
143
143
  ], 2)) : y("", !0)
144
144
  ]),
145
145
  a.value && e.message.actions ? (l(), c("button", {
@@ -147,19 +147,19 @@ const Z1 = (e) => {
147
147
  class: "file-message__menu-button",
148
148
  onClick: r[0] || (r[0] = (g) => n.value = !n.value)
149
149
  }, r[3] || (r[3] = [
150
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
150
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
151
151
  ]))) : y("", !0),
152
- o("a", {
152
+ i("a", {
153
153
  class: "file-message__download-button",
154
154
  href: e.message.url,
155
155
  download: "",
156
156
  target: "_blank"
157
157
  }, r[4] || (r[4] = [
158
- o("span", { class: "pi pi-download" }, null, -1)
158
+ i("span", { class: "pi pi-download" }, null, -1)
159
159
  ]), 8, Xn),
160
160
  S(H, null, {
161
161
  default: K(() => [
162
- n.value && e.message.actions ? (l(), L(ge, {
162
+ n.value && e.message.actions ? (l(), C(ge, {
163
163
  key: 0,
164
164
  class: "file-message__context-menu",
165
165
  actions: e.message.actions,
@@ -171,7 +171,7 @@ const Z1 = (e) => {
171
171
  ], 32)
172
172
  ], 42, Wn));
173
173
  }
174
- }, fa = /* @__PURE__ */ j(ea, [["__scopeId", "data-v-4d117017"]]), na = ["messageId"], aa = ["src"], ta = {
174
+ }, fa = /* @__PURE__ */ D(ea, [["__scopeId", "data-v-466aa00c"]]), na = ["messageId"], aa = ["src"], ta = {
175
175
  key: 1,
176
176
  class: "image-message__subtext"
177
177
  }, Aa = ["src", "alt"], sa = { class: "image-message__info-container" }, ia = {
@@ -192,16 +192,16 @@ const Z1 = (e) => {
192
192
  }
193
193
  },
194
194
  setup(e) {
195
- const f = e, n = b(!1), a = b(!1), t = b(!1), s = () => {
195
+ const f = e, n = v(!1), a = v(!1), t = v(!1), s = () => {
196
196
  t.value = !0;
197
197
  }, A = () => {
198
198
  t.value = !1, a.value = !1;
199
- }, i = T(() => Ne(f.message.status));
199
+ }, o = x(() => Ne(f.message.status));
200
200
  function u(r) {
201
201
  return r.position === "left" ? "image-message__left" : "image-message__right";
202
202
  }
203
203
  return (r, g) => (l(), c("div", {
204
- class: D(["image-message", u(e.message)]),
204
+ class: V(["image-message", u(e.message)]),
205
205
  messageId: e.message.messageId,
206
206
  onMouseleave: A
207
207
  }, [
@@ -213,57 +213,57 @@ const Z1 = (e) => {
213
213
  width: "32",
214
214
  style: z({ gridRow: e.message.subText ? "2" : "1" })
215
215
  }, null, 12, aa)) : y("", !0),
216
- e.message.subText ? (l(), c("p", ta, w(e.message.subText), 1)) : y("", !0),
217
- o("div", {
216
+ e.message.subText ? (l(), c("p", ta, I(e.message.subText), 1)) : y("", !0),
217
+ i("div", {
218
218
  class: "image-message__content",
219
219
  onMouseenter: s
220
220
  }, [
221
- o("div", {
221
+ i("div", {
222
222
  class: "image-message__preview-button",
223
223
  onClick: g[0] || (g[0] = (d) => n.value = !0)
224
224
  }, [
225
- o("img", {
225
+ i("img", {
226
226
  class: "image-message__preview-image",
227
227
  src: e.message.url,
228
228
  alt: e.message.alt
229
229
  }, null, 8, Aa),
230
- o("div", sa, [
230
+ i("div", sa, [
231
231
  e.message.views ? (l(), c("div", ia, [
232
- g[3] || (g[3] = o("span", { class: "pi pi-eye" }, null, -1)),
233
- o("p", null, w(e.message.views), 1)
232
+ g[3] || (g[3] = i("span", { class: "pi pi-eye" }, null, -1)),
233
+ i("p", null, I(e.message.views), 1)
234
234
  ])) : y("", !0),
235
- o("span", oa, w(e.message.time), 1),
236
- u(e.message) === "image-message__right" && q(ke).includes(e.message.status) ? (l(), c("div", {
235
+ i("span", oa, I(e.message.time), 1),
236
+ u(e.message) === "image-message__right" && Y(ke).includes(e.message.status) ? (l(), c("div", {
237
237
  key: 1,
238
- class: D(["image-message__status", i.value])
238
+ class: V(["image-message__status", o.value])
239
239
  }, [
240
240
  e.message.status !== "sent" ? (l(), c("span", la)) : y("", !0),
241
- g[4] || (g[4] = o("span", { class: "pi pi-check" }, null, -1))
241
+ g[4] || (g[4] = i("span", { class: "pi pi-check" }, null, -1))
242
242
  ], 2)) : y("", !0)
243
243
  ]),
244
- o("a", {
244
+ i("a", {
245
245
  class: "image-message__download-button",
246
246
  href: e.message.url,
247
247
  download: "",
248
248
  target: "_blank"
249
249
  }, g[5] || (g[5] = [
250
- o("span", { class: "pi pi-download" }, null, -1)
250
+ i("span", { class: "pi pi-download" }, null, -1)
251
251
  ]), 8, ua)
252
252
  ]),
253
- (l(), L(kn, { to: "body" }, [
253
+ (l(), C(kn, { to: "body" }, [
254
254
  S(H, { name: "modal-fade" }, {
255
255
  default: K(() => [
256
256
  n.value ? (l(), c("div", ra, [
257
- o("div", ca, [
258
- o("button", {
257
+ i("div", ca, [
258
+ i("button", {
259
259
  class: "image-message__modal-close-button",
260
260
  onClick: g[1] || (g[1] = (d) => n.value = !1)
261
261
  }, g[6] || (g[6] = [
262
- o("span", null, [
263
- o("i", { class: "pi pi-times" })
262
+ i("span", null, [
263
+ i("i", { class: "pi pi-times" })
264
264
  ], -1)
265
265
  ])),
266
- o("img", {
266
+ i("img", {
267
267
  class: "image-message__modal-image",
268
268
  src: e.message.url,
269
269
  alt: e.message.alt
@@ -279,11 +279,11 @@ const Z1 = (e) => {
279
279
  class: "image-message__menu-button",
280
280
  onClick: g[2] || (g[2] = (d) => a.value = !a.value)
281
281
  }, g[7] || (g[7] = [
282
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
282
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
283
283
  ]))) : y("", !0),
284
284
  S(H, { name: "context-menu" }, {
285
285
  default: K(() => [
286
- a.value && e.message.actions ? (l(), L(ge, {
286
+ a.value && e.message.actions ? (l(), C(ge, {
287
287
  key: 0,
288
288
  class: "image-message__context-menu",
289
289
  actions: e.message.actions,
@@ -295,7 +295,7 @@ const Z1 = (e) => {
295
295
  ], 32)
296
296
  ], 42, na));
297
297
  }
298
- }, ma = /* @__PURE__ */ j(ga, [["__scopeId", "data-v-6e5ff1ec"]]), pa = { class: "text-message" }, Ma = ["messageId"], ha = ["src"], ya = {
298
+ }, ma = /* @__PURE__ */ D(ga, [["__scopeId", "data-v-199dd630"]]), pa = { class: "text-message" }, Ma = ["messageId"], ha = ["src"], ya = {
299
299
  key: 1,
300
300
  class: "text-message__subtext"
301
301
  }, ba = { class: "text-message__text" }, va = { class: "text-message__info-container" }, _a = {
@@ -314,23 +314,23 @@ const Z1 = (e) => {
314
314
  },
315
315
  emits: ["action"],
316
316
  setup(e, { emit: f }) {
317
- const n = e, a = f, t = b(!1), s = b(!1), A = () => {
317
+ const n = e, a = f, t = v(!1), s = v(!1), A = () => {
318
318
  s.value = !0;
319
- }, i = () => {
319
+ }, o = () => {
320
320
  s.value = !1, t.value = !1;
321
- }, u = T(() => Ne(n.message.status)), r = (m) => {
322
- i(), a("action", { messageId: n.message.messageId, type: "menu", ...m });
321
+ }, u = x(() => Ne(n.message.status)), r = (m) => {
322
+ o(), a("action", { messageId: n.message.messageId, type: "menu", ...m });
323
323
  }, g = () => {
324
- i(), a("action", { messageId: n.message.messageId, type: "views" });
324
+ o(), a("action", { messageId: n.message.messageId, type: "views" });
325
325
  };
326
326
  function d(m) {
327
327
  return m.position === "left" ? "text-message__left" : "text-message__right";
328
328
  }
329
329
  return (m, p) => (l(), c("div", pa, [
330
- o("div", {
331
- class: D(d(e.message)),
330
+ i("div", {
331
+ class: V(d(e.message)),
332
332
  messageId: e.message.messageId,
333
- onMouseleave: i
333
+ onMouseleave: o
334
334
  }, [
335
335
  e.message.avatar ? (l(), c("img", {
336
336
  key: 0,
@@ -340,28 +340,28 @@ const Z1 = (e) => {
340
340
  width: "32",
341
341
  style: z({ gridRow: e.message.subText ? "2" : "1" })
342
342
  }, null, 12, ha)) : y("", !0),
343
- e.message.subText ? (l(), c("p", ya, w(e.message.subText), 1)) : y("", !0),
344
- o("div", {
343
+ e.message.subText ? (l(), c("p", ya, I(e.message.subText), 1)) : y("", !0),
344
+ i("div", {
345
345
  class: "text-message__content",
346
346
  onMouseenter: A
347
347
  }, [
348
- o("p", ba, w(e.message.text), 1),
349
- o("div", va, [
348
+ i("p", ba, I(e.message.text), 1),
349
+ i("div", va, [
350
350
  e.message.views ? (l(), c("div", {
351
351
  key: 0,
352
352
  class: "text-message__views",
353
353
  onClick: g
354
354
  }, [
355
- p[1] || (p[1] = o("span", { class: "pi pi-eye" }, null, -1)),
356
- o("p", null, w(e.message.views), 1)
355
+ p[1] || (p[1] = i("span", { class: "pi pi-eye" }, null, -1)),
356
+ i("p", null, I(e.message.views), 1)
357
357
  ])) : y("", !0),
358
- e.message.time ? (l(), c("span", _a, w(e.message.time), 1)) : y("", !0),
359
- d(e.message) === "text-message__right" && q(ke).includes(e.message.status) ? (l(), c("div", {
358
+ e.message.time ? (l(), c("span", _a, I(e.message.time), 1)) : y("", !0),
359
+ d(e.message) === "text-message__right" && Y(ke).includes(e.message.status) ? (l(), c("div", {
360
360
  key: 2,
361
- class: D(["text-message__status", u.value])
361
+ class: V(["text-message__status", u.value])
362
362
  }, [
363
363
  e.message.status !== "send" ? (l(), c("span", Ia)) : y("", !0),
364
- p[2] || (p[2] = o("span", { class: "pi pi-check" }, null, -1))
364
+ p[2] || (p[2] = i("span", { class: "pi pi-check" }, null, -1))
365
365
  ], 2)) : y("", !0)
366
366
  ]),
367
367
  s.value && e.message.actions ? (l(), c("button", {
@@ -369,11 +369,11 @@ const Z1 = (e) => {
369
369
  class: "text-message__menu-button",
370
370
  onClick: p[0] || (p[0] = (h) => t.value = !t.value)
371
371
  }, p[3] || (p[3] = [
372
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
372
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
373
373
  ]))) : y("", !0),
374
374
  S(H, null, {
375
375
  default: K(() => [
376
- t.value && e.message.actions ? (l(), L(ge, {
376
+ t.value && e.message.actions ? (l(), C(ge, {
377
377
  key: 0,
378
378
  class: "text-message__context-menu",
379
379
  actions: e.message.actions,
@@ -386,7 +386,7 @@ const Z1 = (e) => {
386
386
  ], 42, Ma)
387
387
  ]));
388
388
  }
389
- }, ka = /* @__PURE__ */ j(wa, [["__scopeId", "data-v-f8d9da21"]]), Na = ["messageId"], Da = ["src"], ja = {
389
+ }, ka = /* @__PURE__ */ D(wa, [["__scopeId", "data-v-f8d9da21"]]), Na = ["messageId"], Da = ["src"], ja = {
390
390
  key: 1,
391
391
  class: "audio-message__subtext"
392
392
  }, Va = ["src"], Ea = { class: "audio-message__progress-bar-container" }, Ta = { class: "audio-message__remaining-time" }, xa = { class: "audio-message__info-container" }, Sa = { class: "audio-message__time" }, za = {
@@ -401,20 +401,20 @@ const Z1 = (e) => {
401
401
  }
402
402
  },
403
403
  setup(e) {
404
- const f = e, n = b(null), a = b(!1), t = b(0), s = b(0), A = b(!1), i = b(!1), u = () => {
405
- i.value = !0;
404
+ const f = e, n = v(null), a = v(!1), t = v(0), s = v(0), A = v(!1), o = v(!1), u = () => {
405
+ o.value = !0;
406
406
  }, r = () => {
407
- i.value = !1, A.value = !1;
408
- }, g = T(() => Ne(f.message.status));
407
+ o.value = !1, A.value = !1;
408
+ }, g = x(() => Ne(f.message.status));
409
409
  function d() {
410
410
  n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
411
411
  }
412
- const m = (k) => {
413
- const v = Math.floor(k / 60), _ = Math.floor(k % 60);
414
- return `${v.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
415
- }, p = T(() => n.value ? m(s.value) : "0:00"), h = T(() => n.value ? m(t.value) : "0:00"), I = T(() => t.value > 0 ? s.value / t.value * 100 : 0);
416
- function M(k) {
417
- return k.position === "left" ? "audio-message__left" : "audio-message__right";
412
+ const m = (b) => {
413
+ const w = Math.floor(b / 60), N = Math.floor(b % 60);
414
+ return `${w.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
415
+ }, p = x(() => n.value ? m(s.value) : "0:00"), h = x(() => n.value ? m(t.value) : "0:00"), _ = x(() => t.value > 0 ? s.value / t.value * 100 : 0);
416
+ function M(b) {
417
+ return b.position === "left" ? "audio-message__left" : "audio-message__right";
418
418
  }
419
419
  return Ie(() => {
420
420
  n.value.addEventListener("loadedmetadata", () => {
@@ -422,8 +422,8 @@ const Z1 = (e) => {
422
422
  }), n.value.addEventListener("timeupdate", () => {
423
423
  s.value = n.value.currentTime;
424
424
  });
425
- }), (k, v) => (l(), c("div", {
426
- class: D(["audio-message", M(e.message)]),
425
+ }), (b, w) => (l(), c("div", {
426
+ class: V(["audio-message", M(e.message)]),
427
427
  messageId: e.message.messageId,
428
428
  onMouseleave: r
429
429
  }, [
@@ -435,71 +435,71 @@ const Z1 = (e) => {
435
435
  width: "32",
436
436
  style: z({ gridRow: e.message.subText ? "2" : "1" })
437
437
  }, null, 12, Da)) : y("", !0),
438
- e.message.subText ? (l(), c("p", ja, w(e.message.subText), 1)) : y("", !0),
439
- o("div", {
438
+ e.message.subText ? (l(), c("p", ja, I(e.message.subText), 1)) : y("", !0),
439
+ i("div", {
440
440
  class: "audio-message__content",
441
441
  onMouseenter: u
442
442
  }, [
443
- o("audio", {
443
+ i("audio", {
444
444
  ref_key: "player",
445
445
  ref: n,
446
446
  src: e.message.url
447
447
  }, null, 8, Va),
448
- te(o("button", {
448
+ te(i("button", {
449
449
  class: "audio-message__play",
450
450
  onClick: d
451
- }, v[1] || (v[1] = [
452
- o("span", { class: "pi pi-play" }, null, -1)
451
+ }, w[1] || (w[1] = [
452
+ i("span", { class: "pi pi-play" }, null, -1)
453
453
  ]), 512), [
454
454
  [pe, !a.value]
455
455
  ]),
456
- te(o("button", {
456
+ te(i("button", {
457
457
  class: "audio-message__pause",
458
458
  onClick: d
459
- }, v[2] || (v[2] = [
460
- o("span", { class: "pi pi-pause" }, null, -1)
459
+ }, w[2] || (w[2] = [
460
+ i("span", { class: "pi pi-pause" }, null, -1)
461
461
  ]), 512), [
462
462
  [pe, a.value]
463
463
  ]),
464
- o("div", Ea, [
465
- o("div", {
464
+ i("div", Ea, [
465
+ i("div", {
466
466
  class: "audio-message__progress-bar",
467
- style: z({ width: I.value + "%" })
467
+ style: z({ width: _.value + "%" })
468
468
  }, null, 4)
469
469
  ]),
470
- o("p", Ta, w(`${p.value} / ${h.value}`), 1),
471
- o("div", xa, [
472
- o("span", Sa, w(e.message.time), 1),
473
- M(e.message) === "audio-message__right" && q(ke).includes(e.message.status) ? (l(), c("div", {
470
+ i("p", Ta, I(`${p.value} / ${h.value}`), 1),
471
+ i("div", xa, [
472
+ i("span", Sa, I(e.message.time), 1),
473
+ M(e.message) === "audio-message__right" && Y(ke).includes(e.message.status) ? (l(), c("div", {
474
474
  key: 0,
475
- class: D(["audio-message__status", g.value])
475
+ class: V(["audio-message__status", g.value])
476
476
  }, [
477
477
  e.message.status !== "sent" ? (l(), c("span", za)) : y("", !0),
478
- v[3] || (v[3] = o("span", { class: "pi pi-check" }, null, -1))
478
+ w[3] || (w[3] = i("span", { class: "pi pi-check" }, null, -1))
479
479
  ], 2)) : y("", !0)
480
480
  ]),
481
- i.value && e.message.actions ? (l(), c("button", {
481
+ o.value && e.message.actions ? (l(), c("button", {
482
482
  key: 0,
483
483
  class: "audio-message__menu-button",
484
- onClick: v[0] || (v[0] = (_) => A.value = !A.value)
485
- }, v[4] || (v[4] = [
486
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
484
+ onClick: w[0] || (w[0] = (N) => A.value = !A.value)
485
+ }, w[4] || (w[4] = [
486
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
487
487
  ]))) : y("", !0),
488
- o("a", {
488
+ i("a", {
489
489
  class: "audio-message__download-button",
490
490
  href: e.message.url,
491
491
  download: "",
492
492
  target: "_blank"
493
- }, v[5] || (v[5] = [
494
- o("span", { class: "pi pi-download" }, null, -1)
493
+ }, w[5] || (w[5] = [
494
+ i("span", { class: "pi pi-download" }, null, -1)
495
495
  ]), 8, Oa),
496
496
  S(H, null, {
497
497
  default: K(() => [
498
- A.value && e.message.actions ? (l(), L(ge, {
498
+ A.value && e.message.actions ? (l(), C(ge, {
499
499
  key: 0,
500
500
  class: "audio-message__context-menu",
501
501
  actions: e.message.actions,
502
- onClick: k.clickAction
502
+ onClick: b.clickAction
503
503
  }, null, 8, ["actions", "onClick"])) : y("", !0)
504
504
  ]),
505
505
  _: 1
@@ -507,7 +507,7 @@ const Z1 = (e) => {
507
507
  ], 32)
508
508
  ], 42, Na));
509
509
  }
510
- }, Ua = /* @__PURE__ */ j(Ca, [["__scopeId", "data-v-27fb9d86"]]), La = { class: "date-message" }, Qa = { class: "date-message__container" }, Ba = { class: "date-message__text" }, Ya = {
510
+ }, Ua = /* @__PURE__ */ D(Ca, [["__scopeId", "data-v-27fb9d86"]]), La = { class: "date-message" }, Qa = { class: "date-message__container" }, Ba = { class: "date-message__text" }, Ya = {
511
511
  __name: "DateMessage",
512
512
  props: {
513
513
  message: {
@@ -519,12 +519,12 @@ const Z1 = (e) => {
519
519
  },
520
520
  setup(e) {
521
521
  return (f, n) => (l(), c("div", La, [
522
- o("div", Qa, [
523
- o("p", Ba, w(e.message.text), 1)
522
+ i("div", Qa, [
523
+ i("p", Ba, I(e.message.text), 1)
524
524
  ])
525
525
  ]));
526
526
  }
527
- }, Ra = /* @__PURE__ */ j(Ya, [["__scopeId", "data-v-d20acba5"]]), qa = {
527
+ }, Ra = /* @__PURE__ */ D(Ya, [["__scopeId", "data-v-d20acba5"]]), qa = {
528
528
  key: 0,
529
529
  class: "chat-info__container"
530
530
  }, Fa = { class: "chat-info__avatar-container" }, $a = ["src"], Wa = {
@@ -545,7 +545,7 @@ const Z1 = (e) => {
545
545
  setup(e, { emit: f }) {
546
546
  const n = e;
547
547
  return (a, t) => e.chat ? (l(), c("div", qa, [
548
- o("div", Fa, [
548
+ i("div", Fa, [
549
549
  n.chat.avatar ? (l(), c("img", {
550
550
  key: 0,
551
551
  src: n.chat.avatar,
@@ -553,16 +553,16 @@ const Z1 = (e) => {
553
553
  height: "48"
554
554
  }, null, 8, $a)) : (l(), c("span", Wa))
555
555
  ]),
556
- o("div", Ja, [
557
- o("h2", Ha, w(e.chat.name), 1),
558
- e.chat["lastActivity.time"] ? (l(), c("p", Ka, w(e.chat["lastActivity.time"]), 1)) : y("", !0)
556
+ i("div", Ja, [
557
+ i("h2", Ha, I(e.chat.name), 1),
558
+ e.chat["lastActivity.time"] ? (l(), c("p", Ka, I(e.chat["lastActivity.time"]), 1)) : y("", !0)
559
559
  ]),
560
- o("div", Pa, [
561
- J(a.$slots, "actions", {}, void 0, !0)
560
+ i("div", Pa, [
561
+ F(a.$slots, "actions", {}, void 0, !0)
562
562
  ])
563
563
  ])) : y("", !0);
564
564
  }
565
- }, el = /* @__PURE__ */ j(Za, [["__scopeId", "data-v-e1d212c7"]]), Ga = { class: "preview__container" }, Xa = { class: "preview__block" }, et = { key: 0 }, ft = ["src"], nt = { key: 1 }, at = ["src"], tt = { key: 2 }, At = { key: 3 }, st = { class: "preview__control-block" }, it = { class: "preview__information" }, ot = { class: "preview__name" }, lt = { class: "preview__size" }, ut = {
565
+ }, al = /* @__PURE__ */ D(Za, [["__scopeId", "data-v-e1d212c7"]]), Ga = { class: "preview__container" }, Xa = { class: "preview__block" }, et = { key: 0 }, ft = ["src"], nt = { key: 1 }, at = ["src"], tt = { key: 2 }, At = { key: 3 }, st = { class: "preview__control-block" }, it = { class: "preview__information" }, ot = { class: "preview__name" }, lt = { class: "preview__size" }, ut = {
566
566
  __name: "FilePreview",
567
567
  props: {
568
568
  previewUrl: {
@@ -597,36 +597,36 @@ const Z1 = (e) => {
597
597
  a("reset");
598
598
  }
599
599
  return (s, A) => (l(), c("div", Ga, [
600
- o("div", Xa, [
600
+ i("div", Xa, [
601
601
  n.isImage ? (l(), c("div", et, [
602
- o("img", {
602
+ i("img", {
603
603
  src: e.previewUrl,
604
604
  alt: "Image Preview",
605
605
  class: "preview__image"
606
606
  }, null, 8, ft)
607
607
  ])) : n.isVideo ? (l(), c("div", nt, [
608
- o("video", {
608
+ i("video", {
609
609
  src: e.previewUrl,
610
610
  class: "preview__video"
611
611
  }, null, 8, at)
612
612
  ])) : n.isAudio ? (l(), c("div", tt, A[0] || (A[0] = [
613
- o("span", {
613
+ i("span", {
614
614
  class: "pi pi-headphones",
615
615
  style: { "font-size": "2.5rem" }
616
616
  }, null, -1)
617
617
  ]))) : (l(), c("div", At, A[1] || (A[1] = [
618
- o("span", {
618
+ i("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", st, [
625
- o("div", it, [
626
- o("span", ot, w(e.fileName), 1),
627
- o("span", lt, w(e.fileSize), 1)
624
+ i("div", st, [
625
+ i("div", it, [
626
+ i("span", ot, I(e.fileName), 1),
627
+ i("span", lt, I(e.fileSize), 1)
628
628
  ]),
629
- o("span", {
629
+ i("span", {
630
630
  class: "pi pi-times preview__reset",
631
631
  style: { "font-size": "1rem" },
632
632
  onClick: t
@@ -634,7 +634,7 @@ const Z1 = (e) => {
634
634
  ])
635
635
  ]));
636
636
  }
637
- }, rt = /* @__PURE__ */ j(ut, [["__scopeId", "data-v-c4e18bbf"]]), Xf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", en = {
637
+ }, rt = /* @__PURE__ */ D(ut, [["__scopeId", "data-v-c4e18bbf"]]), Gf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Xf = {
638
638
  recent: "Recently used",
639
639
  smileys_people: "Smiles & People",
640
640
  animals_nature: "Animals & Nature",
@@ -644,9 +644,9 @@ const Z1 = (e) => {
644
644
  objects: "Objects",
645
645
  symbols: "Symbols",
646
646
  flags: "Flags"
647
- }, fn = "u", Xe = "n", $e = "v", ze = "r", ct = {
647
+ }, en = "u", Xe = "n", $e = "v", ze = "r", ct = {
648
648
  [Xe]: ["grinning face", "grinning"],
649
- [fn]: "1f600",
649
+ [en]: "1f600",
650
650
  [ze]: "1f600"
651
651
  }, Pe = "neutral", dt = "1f3fb", gt = "1f3fc", mt = "1f3fd", pt = "1f3fe", Mt = "1f3ff", ht = [
652
652
  Pe,
@@ -12590,7 +12590,7 @@ var Vt = {
12590
12590
  objects: Nt,
12591
12591
  symbols: Dt,
12592
12592
  flags: jt
12593
- }, Uf = [
12593
+ }, Cf = [
12594
12594
  {
12595
12595
  key: "recent",
12596
12596
  title: "Recently Used",
@@ -12638,9 +12638,9 @@ var Vt = {
12638
12638
  }
12639
12639
  ];
12640
12640
  const Et = (e, f) => f.some((n) => e instanceof n);
12641
- let Lf, Qf;
12641
+ let Uf, Lf;
12642
12642
  function Tt() {
12643
- return Lf || (Lf = [
12643
+ return Uf || (Uf = [
12644
12644
  IDBDatabase,
12645
12645
  IDBObjectStore,
12646
12646
  IDBIndex,
@@ -12649,13 +12649,13 @@ function Tt() {
12649
12649
  ]);
12650
12650
  }
12651
12651
  function xt() {
12652
- return Qf || (Qf = [
12652
+ return Lf || (Lf = [
12653
12653
  IDBCursor.prototype.advance,
12654
12654
  IDBCursor.prototype.continue,
12655
12655
  IDBCursor.prototype.continuePrimaryKey
12656
12656
  ]);
12657
12657
  }
12658
- const nn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Af = /* @__PURE__ */ new WeakMap(), gf = /* @__PURE__ */ new WeakMap();
12658
+ const fn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap(), Af = /* @__PURE__ */ new WeakMap(), gf = /* @__PURE__ */ new WeakMap();
12659
12659
  function St(e) {
12660
12660
  const f = new Promise((n, a) => {
12661
12661
  const t = () => {
@@ -12668,7 +12668,7 @@ function St(e) {
12668
12668
  e.addEventListener("success", s), e.addEventListener("error", A);
12669
12669
  });
12670
12670
  return f.then((n) => {
12671
- n instanceof IDBCursor && nn.set(n, e);
12671
+ n instanceof IDBCursor && fn.set(n, e);
12672
12672
  }).catch(() => {
12673
12673
  }), gf.set(f, e), f;
12674
12674
  }
@@ -12693,7 +12693,7 @@ let cf = {
12693
12693
  if (f === "done")
12694
12694
  return rf.get(e);
12695
12695
  if (f === "objectStoreNames")
12696
- return e.objectStoreNames || an.get(e);
12696
+ return e.objectStoreNames || nn.get(e);
12697
12697
  if (f === "store")
12698
12698
  return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
12699
12699
  }
@@ -12712,9 +12712,9 @@ function Ot(e) {
12712
12712
  function Ct(e) {
12713
12713
  return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...n) {
12714
12714
  const a = e.call(sf(this), f, ...n);
12715
- return an.set(a, f.sort ? f.sort() : [f]), se(a);
12715
+ return nn.set(a, f.sort ? f.sort() : [f]), se(a);
12716
12716
  } : xt().includes(e) ? function(...f) {
12717
- return e.apply(sf(this), f), se(nn.get(this));
12717
+ return e.apply(sf(this), f), se(fn.get(this));
12718
12718
  } : function(...f) {
12719
12719
  return se(e.apply(sf(this), f));
12720
12720
  };
@@ -12732,20 +12732,20 @@ function se(e) {
12732
12732
  }
12733
12733
  const sf = (e) => gf.get(e);
12734
12734
  function mf(e, f, { blocked: n, upgrade: a, blocking: t, terminated: s } = {}) {
12735
- const A = indexedDB.open(e, f), i = se(A);
12735
+ const A = indexedDB.open(e, f), o = se(A);
12736
12736
  return a && A.addEventListener("upgradeneeded", (u) => {
12737
12737
  a(se(A.result), u.oldVersion, u.newVersion, se(A.transaction), u);
12738
12738
  }), n && A.addEventListener("blocked", (u) => n(
12739
12739
  u.oldVersion,
12740
12740
  u.newVersion,
12741
12741
  u
12742
- )), i.then((u) => {
12742
+ )), o.then((u) => {
12743
12743
  s && u.addEventListener("close", () => s()), t && u.addEventListener("versionchange", (r) => t(r.oldVersion, r.newVersion, r));
12744
12744
  }).catch(() => {
12745
- }), i;
12745
+ }), o;
12746
12746
  }
12747
12747
  const Lt = ["get", "getKey", "getAll", "getAllKeys", "count"], Qt = ["put", "add", "delete", "clear"], of = /* @__PURE__ */ new Map();
12748
- function Bf(e, f) {
12748
+ function Qf(e, f) {
12749
12749
  if (!(e instanceof IDBDatabase && !(f in e) && typeof f == "string"))
12750
12750
  return;
12751
12751
  if (of.get(f))
@@ -12753,11 +12753,11 @@ function Bf(e, f) {
12753
12753
  const n = f.replace(/FromIndex$/, ""), a = f !== n, t = Qt.includes(n);
12754
12754
  if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(t || Lt.includes(n)))
12755
12755
  return;
12756
- const s = async function(A, ...i) {
12756
+ const s = async function(A, ...o) {
12757
12757
  const u = this.transaction(A, t ? "readwrite" : "readonly");
12758
12758
  let r = u.store;
12759
- return a && (r = r.index(i.shift())), (await Promise.all([
12760
- r[n](...i),
12759
+ return a && (r = r.index(o.shift())), (await Promise.all([
12760
+ r[n](...o),
12761
12761
  t && u.done
12762
12762
  ]))[0];
12763
12763
  };
@@ -12765,8 +12765,8 @@ function Bf(e, f) {
12765
12765
  }
12766
12766
  Ot((e) => ({
12767
12767
  ...e,
12768
- get: (f, n, a) => Bf(f, n) || e.get(f, n, a),
12769
- has: (f, n) => !!Bf(f, n) || e.has(f, n)
12768
+ get: (f, n, a) => Qf(f, n) || e.get(f, n, a),
12769
+ has: (f, n) => !!Qf(f, n) || e.has(f, n)
12770
12770
  }));
12771
12771
  const pf = "EMJ", Me = "emojis", Mf = 3;
12772
12772
  async function Bt() {
@@ -12819,7 +12819,7 @@ function qt() {
12819
12819
  return this.options.displayRecent || (d = ["recent", ...d]), d;
12820
12820
  },
12821
12821
  get groups() {
12822
- return Uf.filter(
12822
+ return Cf.filter(
12823
12823
  (d) => !this.disabled.includes(d.key)
12824
12824
  );
12825
12825
  },
@@ -12827,7 +12827,7 @@ function qt() {
12827
12827
  const d = [
12828
12828
  ...this.options.groupOrder,
12829
12829
  ...Object.keys(this.options.additionalGroups),
12830
- ...Uf.map((m) => m.key)
12830
+ ...Cf.map((m) => m.key)
12831
12831
  ];
12832
12832
  return [...new Set(d)].filter((m) => !this.disabled.includes(m));
12833
12833
  }
@@ -12851,7 +12851,7 @@ function qt() {
12851
12851
  e.emoji = d;
12852
12852
  }, A = (d) => {
12853
12853
  e.activeGroup = d;
12854
- }, i = (d = Pe) => {
12854
+ }, o = (d = Pe) => {
12855
12855
  e.skinTone = d;
12856
12856
  }, u = (d) => {
12857
12857
  e.options = Object.assign({}, e.options, d), f();
@@ -12868,7 +12868,7 @@ function qt() {
12868
12868
  const m = e.recent.findIndex((h) => h.u === d.u);
12869
12869
  if (m > 0 && e.recent.splice(m, 1), m === 0)
12870
12870
  return;
12871
- const p = { u: d.u, n: Zf(d.n) };
12871
+ const p = { u: d.u, n: Pf(d.n) };
12872
12872
  e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
12873
12873
  };
12874
12874
  return {
@@ -12876,14 +12876,14 @@ function qt() {
12876
12876
  updateSearch: t,
12877
12877
  updateEmoji: s,
12878
12878
  updateActiveGroup: A,
12879
- updateSkinTone: i,
12879
+ updateSkinTone: o,
12880
12880
  updateOptions: u,
12881
12881
  updateSelect: g
12882
12882
  };
12883
12883
  }
12884
- var F = "top", Z = "bottom", G = "right", $ = "left", hf = "auto", Ue = [F, Z, G, $], he = "start", Oe = "end", Ft = "clippingParents", tn = "viewport", Te = "popper", $t = "reference", Yf = /* @__PURE__ */ Ue.reduce(function(e, f) {
12884
+ var $ = "top", Z = "bottom", G = "right", W = "left", hf = "auto", Ue = [$, Z, G, W], he = "start", Oe = "end", Ft = "clippingParents", an = "viewport", Te = "popper", $t = "reference", Bf = /* @__PURE__ */ Ue.reduce(function(e, f) {
12885
12885
  return e.concat([f + "-" + he, f + "-" + Oe]);
12886
- }, []), An = /* @__PURE__ */ [].concat(Ue, [hf]).reduce(function(e, f) {
12886
+ }, []), tn = /* @__PURE__ */ [].concat(Ue, [hf]).reduce(function(e, f) {
12887
12887
  return e.concat([f, f + "-" + he, f + "-" + Oe]);
12888
12888
  }, []), Wt = "beforeRead", Jt = "read", Ht = "afterRead", Kt = "beforeMain", Pt = "main", Zt = "afterMain", Gt = "beforeWrite", Xt = "write", eA = "afterWrite", fA = [Wt, Jt, Ht, Kt, Pt, Zt, Gt, Xt, eA];
12889
12889
  function ne(e) {
@@ -12906,7 +12906,7 @@ function P(e) {
12906
12906
  var f = ee(e).HTMLElement;
12907
12907
  return e instanceof f || e instanceof HTMLElement;
12908
12908
  }
12909
- function sn(e) {
12909
+ function An(e) {
12910
12910
  if (typeof ShadowRoot > "u")
12911
12911
  return !1;
12912
12912
  var f = ee(e).ShadowRoot;
@@ -12917,8 +12917,8 @@ function nA(e) {
12917
12917
  Object.keys(f.elements).forEach(function(n) {
12918
12918
  var a = f.styles[n] || {}, t = f.attributes[n] || {}, s = f.elements[n];
12919
12919
  !P(s) || !ne(s) || (Object.assign(s.style, a), Object.keys(t).forEach(function(A) {
12920
- var i = t[A];
12921
- i === !1 ? s.removeAttribute(A) : s.setAttribute(A, i === !0 ? "" : i);
12920
+ var o = t[A];
12921
+ o === !1 ? s.removeAttribute(A) : s.setAttribute(A, o === !0 ? "" : o);
12922
12922
  }));
12923
12923
  });
12924
12924
  }
@@ -12937,10 +12937,10 @@ function aA(e) {
12937
12937
  };
12938
12938
  return Object.assign(f.elements.popper.style, n.popper), f.styles = n, f.elements.arrow && Object.assign(f.elements.arrow.style, n.arrow), function() {
12939
12939
  Object.keys(f.elements).forEach(function(a) {
12940
- var t = f.elements[a], s = f.attributes[a] || {}, A = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]), i = A.reduce(function(u, r) {
12940
+ var t = f.elements[a], s = f.attributes[a] || {}, A = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]), o = A.reduce(function(u, r) {
12941
12941
  return u[r] = "", u;
12942
12942
  }, {});
12943
- !P(t) || !ne(t) || (Object.assign(t.style, i), Object.keys(s).forEach(function(u) {
12943
+ !P(t) || !ne(t) || (Object.assign(t.style, o), Object.keys(s).forEach(function(u) {
12944
12944
  t.removeAttribute(u);
12945
12945
  }));
12946
12946
  });
@@ -12985,11 +12985,11 @@ function yf(e) {
12985
12985
  height: a
12986
12986
  };
12987
12987
  }
12988
- function on(e, f) {
12988
+ function sn(e, f) {
12989
12989
  var n = f.getRootNode && f.getRootNode();
12990
12990
  if (e.contains(f))
12991
12991
  return !0;
12992
- if (n && sn(n)) {
12992
+ if (n && An(n)) {
12993
12993
  var a = f;
12994
12994
  do {
12995
12995
  if (a && e.isSameNode(a))
@@ -13009,9 +13009,9 @@ function ie(e) {
13009
13009
  return ((ye(e) ? e.ownerDocument : e.document) || window.document).documentElement;
13010
13010
  }
13011
13011
  function ef(e) {
13012
- return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (sn(e) ? e.host : null) || ie(e);
13012
+ return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (An(e) ? e.host : null) || ie(e);
13013
13013
  }
13014
- function Rf(e) {
13014
+ function Yf(e) {
13015
13015
  return !P(e) || ae(e).position === "fixed" ? null : e.offsetParent;
13016
13016
  }
13017
13017
  function sA(e) {
@@ -13030,8 +13030,8 @@ function sA(e) {
13030
13030
  return null;
13031
13031
  }
13032
13032
  function Le(e) {
13033
- for (var f = ee(e), n = Rf(e); n && AA(n) && ae(n).position === "static"; )
13034
- n = Rf(n);
13033
+ for (var f = ee(e), n = Yf(e); n && AA(n) && ae(n).position === "static"; )
13034
+ n = Yf(n);
13035
13035
  return n && (ne(n) === "html" || ne(n) === "body" && ae(n).position === "static") ? f : n || sA(e) || f;
13036
13036
  }
13037
13037
  function bf(e) {
@@ -13044,7 +13044,7 @@ function iA(e, f, n) {
13044
13044
  var a = xe(e, f, n);
13045
13045
  return a > n ? n : a;
13046
13046
  }
13047
- function ln() {
13047
+ function on() {
13048
13048
  return {
13049
13049
  top: 0,
13050
13050
  right: 0,
@@ -13052,10 +13052,10 @@ function ln() {
13052
13052
  left: 0
13053
13053
  };
13054
13054
  }
13055
- function un(e) {
13056
- return Object.assign({}, ln(), e);
13055
+ function ln(e) {
13056
+ return Object.assign({}, on(), e);
13057
13057
  }
13058
- function rn(e, f) {
13058
+ function un(e, f) {
13059
13059
  return f.reduce(function(n, a) {
13060
13060
  return n[a] = e, n;
13061
13061
  }, {});
@@ -13063,18 +13063,18 @@ function rn(e, f) {
13063
13063
  var oA = function(f, n) {
13064
13064
  return f = typeof f == "function" ? f(Object.assign({}, n.rects, {
13065
13065
  placement: n.placement
13066
- })) : f, un(typeof f != "number" ? f : rn(f, Ue));
13066
+ })) : f, ln(typeof f != "number" ? f : un(f, Ue));
13067
13067
  };
13068
13068
  function lA(e) {
13069
- var f, n = e.state, a = e.name, t = e.options, s = n.elements.arrow, A = n.modifiersData.popperOffsets, i = fe(n.placement), u = bf(i), r = [$, G].indexOf(i) >= 0, g = r ? "height" : "width";
13069
+ var f, n = e.state, a = e.name, t = e.options, s = n.elements.arrow, A = n.modifiersData.popperOffsets, o = fe(n.placement), u = bf(o), r = [W, G].indexOf(o) >= 0, g = r ? "height" : "width";
13070
13070
  if (!(!s || !A)) {
13071
- var d = oA(t.padding, n), m = yf(s), p = u === "y" ? F : $, h = u === "y" ? Z : G, I = n.rects.reference[g] + n.rects.reference[u] - A[u] - n.rects.popper[g], M = A[u] - n.rects.reference[u], k = Le(s), v = k ? u === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, _ = I / 2 - M / 2, N = d[p], E = v - m[g] - d[h], V = v / 2 - m[g] / 2 + _, x = xe(N, V, E), O = u;
13072
- n.modifiersData[a] = (f = {}, f[O] = x, f.centerOffset = x - V, f);
13071
+ var d = oA(t.padding, n), m = yf(s), p = u === "y" ? $ : W, h = u === "y" ? Z : G, _ = n.rects.reference[g] + n.rects.reference[u] - A[u] - n.rects.popper[g], M = A[u] - n.rects.reference[u], b = Le(s), w = b ? u === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, N = _ / 2 - M / 2, k = d[p], E = w - m[g] - d[h], j = w / 2 - m[g] / 2 + N, T = xe(k, j, E), O = u;
13072
+ n.modifiersData[a] = (f = {}, f[O] = T, f.centerOffset = T - j, f);
13073
13073
  }
13074
13074
  }
13075
13075
  function uA(e) {
13076
13076
  var f = e.state, n = e.options, a = n.element, t = a === void 0 ? "[data-popper-arrow]" : a;
13077
- t != null && (typeof t == "string" && (t = f.elements.popper.querySelector(t), !t) || on(f.elements.popper, t) && (f.elements.arrow = t));
13077
+ t != null && (typeof t == "string" && (t = f.elements.popper.querySelector(t), !t) || sn(f.elements.popper, t) && (f.elements.arrow = t));
13078
13078
  }
13079
13079
  var rA = {
13080
13080
  name: "arrow",
@@ -13101,32 +13101,32 @@ function dA(e) {
13101
13101
  y: be(n * t) / t || 0
13102
13102
  };
13103
13103
  }
13104
- function qf(e) {
13105
- var f, n = e.popper, a = e.popperRect, t = e.placement, s = e.variation, A = e.offsets, i = e.position, u = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, d = e.isFixed, m = g === !0 ? dA(A) : typeof g == "function" ? g(A) : A, p = m.x, h = p === void 0 ? 0 : p, I = m.y, M = I === void 0 ? 0 : I, k = A.hasOwnProperty("x"), v = A.hasOwnProperty("y"), _ = $, N = F, E = window;
13104
+ function Rf(e) {
13105
+ var f, n = e.popper, a = e.popperRect, t = e.placement, s = e.variation, A = e.offsets, o = e.position, u = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, d = e.isFixed, m = g === !0 ? dA(A) : typeof g == "function" ? g(A) : A, p = m.x, h = p === void 0 ? 0 : p, _ = m.y, M = _ === void 0 ? 0 : _, b = A.hasOwnProperty("x"), w = A.hasOwnProperty("y"), N = W, k = $, E = window;
13106
13106
  if (r) {
13107
- var V = Le(n), x = "clientHeight", O = "clientWidth";
13108
- if (V === ee(n) && (V = ie(n), ae(V).position !== "static" && i === "absolute" && (x = "scrollHeight", O = "scrollWidth")), V = V, t === F || (t === $ || t === G) && s === Oe) {
13109
- N = Z;
13110
- var Q = d && E.visualViewport ? E.visualViewport.height : V[x];
13111
- M -= Q - a.height, M *= u ? 1 : -1;
13107
+ var j = Le(n), T = "clientHeight", O = "clientWidth";
13108
+ if (j === ee(n) && (j = ie(n), ae(j).position !== "static" && o === "absolute" && (T = "scrollHeight", O = "scrollWidth")), j = j, t === $ || (t === W || t === G) && s === Oe) {
13109
+ k = Z;
13110
+ var B = d && E.visualViewport ? E.visualViewport.height : j[T];
13111
+ M -= B - a.height, M *= u ? 1 : -1;
13112
13112
  }
13113
- if (t === $ || (t === F || t === Z) && s === Oe) {
13114
- _ = G;
13115
- var C = d && E.visualViewport ? E.visualViewport.width : V[O];
13116
- h -= C - a.width, h *= u ? 1 : -1;
13113
+ if (t === W || (t === $ || t === Z) && s === Oe) {
13114
+ N = G;
13115
+ var U = d && E.visualViewport ? E.visualViewport.width : j[O];
13116
+ h -= U - a.width, h *= u ? 1 : -1;
13117
13117
  }
13118
13118
  }
13119
- var U = Object.assign({
13120
- position: i
13119
+ var L = Object.assign({
13120
+ position: o
13121
13121
  }, r && cA);
13122
13122
  if (u) {
13123
- var R;
13124
- return Object.assign({}, U, (R = {}, R[N] = v ? "0" : "", R[_] = k ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + M + "px)" : "translate3d(" + h + "px, " + M + "px, 0)", R));
13123
+ var q;
13124
+ return Object.assign({}, L, (q = {}, q[k] = w ? "0" : "", q[N] = b ? "0" : "", q.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + M + "px)" : "translate3d(" + h + "px, " + M + "px, 0)", q));
13125
13125
  }
13126
- return Object.assign({}, U, (f = {}, f[N] = v ? M + "px" : "", f[_] = k ? h + "px" : "", f.transform = "", f));
13126
+ return Object.assign({}, L, (f = {}, f[k] = w ? M + "px" : "", f[N] = b ? h + "px" : "", f.transform = "", f));
13127
13127
  }
13128
13128
  function gA(e) {
13129
- var f = e.state, n = e.options, a = n.gpuAcceleration, t = a === void 0 ? !0 : a, s = n.adaptive, A = s === void 0 ? !0 : s, i = n.roundOffsets, u = i === void 0 ? !0 : i, r = {
13129
+ var f = e.state, n = e.options, a = n.gpuAcceleration, t = a === void 0 ? !0 : a, s = n.adaptive, A = s === void 0 ? !0 : s, o = n.roundOffsets, u = o === void 0 ? !0 : o, r = {
13130
13130
  placement: fe(f.placement),
13131
13131
  variation: _e(f.placement),
13132
13132
  popper: f.elements.popper,
@@ -13134,12 +13134,12 @@ function gA(e) {
13134
13134
  gpuAcceleration: t,
13135
13135
  isFixed: f.options.strategy === "fixed"
13136
13136
  };
13137
- f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, qf(Object.assign({}, r, {
13137
+ f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, Rf(Object.assign({}, r, {
13138
13138
  offsets: f.modifiersData.popperOffsets,
13139
13139
  position: f.options.strategy,
13140
13140
  adaptive: A,
13141
13141
  roundOffsets: u
13142
- })))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, qf(Object.assign({}, r, {
13142
+ })))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, Rf(Object.assign({}, r, {
13143
13143
  offsets: f.modifiersData.arrow,
13144
13144
  position: "absolute",
13145
13145
  adaptive: !1,
@@ -13158,13 +13158,13 @@ var mA = {
13158
13158
  passive: !0
13159
13159
  };
13160
13160
  function pA(e) {
13161
- var f = e.state, n = e.instance, a = e.options, t = a.scroll, s = t === void 0 ? !0 : t, A = a.resize, i = A === void 0 ? !0 : A, u = ee(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13161
+ var f = e.state, n = e.instance, a = e.options, t = a.scroll, s = t === void 0 ? !0 : t, A = a.resize, o = A === void 0 ? !0 : A, u = ee(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13162
13162
  return s && r.forEach(function(g) {
13163
13163
  g.addEventListener("scroll", n.update, We);
13164
- }), i && u.addEventListener("resize", n.update, We), function() {
13164
+ }), o && u.addEventListener("resize", n.update, We), function() {
13165
13165
  s && r.forEach(function(g) {
13166
13166
  g.removeEventListener("scroll", n.update, We);
13167
- }), i && u.removeEventListener("resize", n.update, We);
13167
+ }), o && u.removeEventListener("resize", n.update, We);
13168
13168
  };
13169
13169
  }
13170
13170
  var MA = {
@@ -13190,7 +13190,7 @@ var yA = {
13190
13190
  start: "end",
13191
13191
  end: "start"
13192
13192
  };
13193
- function Ff(e) {
13193
+ function qf(e) {
13194
13194
  return e.replace(/start|end/g, function(f) {
13195
13195
  return yA[f];
13196
13196
  });
@@ -13206,20 +13206,20 @@ function _f(e) {
13206
13206
  return ve(ie(e)).left + vf(e).scrollLeft;
13207
13207
  }
13208
13208
  function bA(e) {
13209
- var f = ee(e), n = ie(e), a = f.visualViewport, t = n.clientWidth, s = n.clientHeight, A = 0, i = 0;
13210
- return a && (t = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (A = a.offsetLeft, i = a.offsetTop)), {
13209
+ var f = ee(e), n = ie(e), a = f.visualViewport, t = n.clientWidth, s = n.clientHeight, A = 0, o = 0;
13210
+ return a && (t = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (A = a.offsetLeft, o = a.offsetTop)), {
13211
13211
  width: t,
13212
13212
  height: s,
13213
13213
  x: A + _f(e),
13214
- y: i
13214
+ y: o
13215
13215
  };
13216
13216
  }
13217
13217
  function vA(e) {
13218
- var f, n = ie(e), a = vf(e), t = (f = e.ownerDocument) == null ? void 0 : f.body, s = ce(n.scrollWidth, n.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), A = ce(n.scrollHeight, n.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), i = -a.scrollLeft + _f(e), u = -a.scrollTop;
13219
- return ae(t || n).direction === "rtl" && (i += ce(n.clientWidth, t ? t.clientWidth : 0) - s), {
13218
+ var f, n = ie(e), a = vf(e), t = (f = e.ownerDocument) == null ? void 0 : f.body, s = ce(n.scrollWidth, n.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), A = ce(n.scrollHeight, n.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), o = -a.scrollLeft + _f(e), u = -a.scrollTop;
13219
+ return ae(t || n).direction === "rtl" && (o += ce(n.clientWidth, t ? t.clientWidth : 0) - s), {
13220
13220
  width: s,
13221
13221
  height: A,
13222
- x: i,
13222
+ x: o,
13223
13223
  y: u
13224
13224
  };
13225
13225
  }
@@ -13227,14 +13227,14 @@ function If(e) {
13227
13227
  var f = ae(e), n = f.overflow, a = f.overflowX, t = f.overflowY;
13228
13228
  return /auto|scroll|overlay|hidden/.test(n + t + a);
13229
13229
  }
13230
- function cn(e) {
13231
- return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : P(e) && If(e) ? e : cn(ef(e));
13230
+ function rn(e) {
13231
+ return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : P(e) && If(e) ? e : rn(ef(e));
13232
13232
  }
13233
13233
  function Se(e, f) {
13234
13234
  var n;
13235
13235
  f === void 0 && (f = []);
13236
- var a = cn(e), t = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ee(a), A = t ? [s].concat(s.visualViewport || [], If(a) ? a : []) : a, i = f.concat(A);
13237
- return t ? i : i.concat(Se(ef(A)));
13236
+ var a = rn(e), t = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ee(a), A = t ? [s].concat(s.visualViewport || [], If(a) ? a : []) : a, o = f.concat(A);
13237
+ return t ? o : o.concat(Se(ef(A)));
13238
13238
  }
13239
13239
  function df(e) {
13240
13240
  return Object.assign({}, e, {
@@ -13248,26 +13248,26 @@ function _A(e) {
13248
13248
  var f = ve(e);
13249
13249
  return f.top = f.top + e.clientTop, f.left = f.left + e.clientLeft, f.bottom = f.top + e.clientHeight, f.right = f.left + e.clientWidth, f.width = e.clientWidth, f.height = e.clientHeight, f.x = f.left, f.y = f.top, f;
13250
13250
  }
13251
- function $f(e, f) {
13252
- return f === tn ? df(bA(e)) : ye(f) ? _A(f) : df(vA(ie(e)));
13251
+ function Ff(e, f) {
13252
+ return f === an ? df(bA(e)) : ye(f) ? _A(f) : df(vA(ie(e)));
13253
13253
  }
13254
13254
  function IA(e) {
13255
13255
  var f = Se(ef(e)), n = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, a = n && P(e) ? Le(e) : e;
13256
13256
  return ye(a) ? f.filter(function(t) {
13257
- return ye(t) && on(t, a) && ne(t) !== "body" && (n ? ae(t).position !== "static" : !0);
13257
+ return ye(t) && sn(t, a) && ne(t) !== "body" && (n ? ae(t).position !== "static" : !0);
13258
13258
  }) : [];
13259
13259
  }
13260
13260
  function wA(e, f, n) {
13261
- var a = f === "clippingParents" ? IA(e) : [].concat(f), t = [].concat(a, [n]), s = t[0], A = t.reduce(function(i, u) {
13262
- var r = $f(e, u);
13263
- return i.top = ce(r.top, i.top), i.right = Ze(r.right, i.right), i.bottom = Ze(r.bottom, i.bottom), i.left = ce(r.left, i.left), i;
13264
- }, $f(e, s));
13261
+ var a = f === "clippingParents" ? IA(e) : [].concat(f), t = [].concat(a, [n]), s = t[0], A = t.reduce(function(o, u) {
13262
+ var r = Ff(e, u);
13263
+ return o.top = ce(r.top, o.top), o.right = Ze(r.right, o.right), o.bottom = Ze(r.bottom, o.bottom), o.left = ce(r.left, o.left), o;
13264
+ }, Ff(e, s));
13265
13265
  return A.width = A.right - A.left, A.height = A.bottom - A.top, A.x = A.left, A.y = A.top, A;
13266
13266
  }
13267
- function dn(e) {
13268
- var f = e.reference, n = e.element, a = e.placement, t = a ? fe(a) : null, s = a ? _e(a) : null, A = f.x + f.width / 2 - n.width / 2, i = f.y + f.height / 2 - n.height / 2, u;
13267
+ function cn(e) {
13268
+ var f = e.reference, n = e.element, a = e.placement, t = a ? fe(a) : null, s = a ? _e(a) : null, A = f.x + f.width / 2 - n.width / 2, o = f.y + f.height / 2 - n.height / 2, u;
13269
13269
  switch (t) {
13270
- case F:
13270
+ case $:
13271
13271
  u = {
13272
13272
  x: A,
13273
13273
  y: f.y - n.height
@@ -13282,13 +13282,13 @@ function dn(e) {
13282
13282
  case G:
13283
13283
  u = {
13284
13284
  x: f.x + f.width,
13285
- y: i
13285
+ y: o
13286
13286
  };
13287
13287
  break;
13288
- case $:
13288
+ case W:
13289
13289
  u = {
13290
13290
  x: f.x - n.width,
13291
- y: i
13291
+ y: o
13292
13292
  };
13293
13293
  break;
13294
13294
  default:
@@ -13313,99 +13313,99 @@ function dn(e) {
13313
13313
  }
13314
13314
  function Ce(e, f) {
13315
13315
  f === void 0 && (f = {});
13316
- var n = f, a = n.placement, t = a === void 0 ? e.placement : a, s = n.boundary, A = s === void 0 ? Ft : s, i = n.rootBoundary, u = i === void 0 ? tn : i, r = n.elementContext, g = r === void 0 ? Te : r, d = n.altBoundary, m = d === void 0 ? !1 : d, p = n.padding, h = p === void 0 ? 0 : p, I = un(typeof h != "number" ? h : rn(h, Ue)), M = g === Te ? $t : Te, k = e.rects.popper, v = e.elements[m ? M : g], _ = wA(ye(v) ? v : v.contextElement || ie(e.elements.popper), A, u), N = ve(e.elements.reference), E = dn({
13317
- reference: N,
13318
- element: k,
13316
+ var n = f, a = n.placement, t = a === void 0 ? e.placement : a, s = n.boundary, A = s === void 0 ? Ft : s, o = n.rootBoundary, u = o === void 0 ? an : o, r = n.elementContext, g = r === void 0 ? Te : r, d = n.altBoundary, m = d === void 0 ? !1 : d, p = n.padding, h = p === void 0 ? 0 : p, _ = ln(typeof h != "number" ? h : un(h, Ue)), M = g === Te ? $t : Te, b = e.rects.popper, w = e.elements[m ? M : g], N = wA(ye(w) ? w : w.contextElement || ie(e.elements.popper), A, u), k = ve(e.elements.reference), E = cn({
13317
+ reference: k,
13318
+ element: b,
13319
13319
  strategy: "absolute",
13320
13320
  placement: t
13321
- }), V = df(Object.assign({}, k, E)), x = g === Te ? V : N, O = {
13322
- top: _.top - x.top + I.top,
13323
- bottom: x.bottom - _.bottom + I.bottom,
13324
- left: _.left - x.left + I.left,
13325
- right: x.right - _.right + I.right
13326
- }, Q = e.modifiersData.offset;
13327
- if (g === Te && Q) {
13328
- var C = Q[t];
13329
- Object.keys(O).forEach(function(U) {
13330
- var R = [G, Z].indexOf(U) >= 0 ? 1 : -1, oe = [F, Z].indexOf(U) >= 0 ? "y" : "x";
13331
- O[U] += C[oe] * R;
13321
+ }), j = df(Object.assign({}, b, E)), T = g === Te ? j : k, O = {
13322
+ top: N.top - T.top + _.top,
13323
+ bottom: T.bottom - N.bottom + _.bottom,
13324
+ left: N.left - T.left + _.left,
13325
+ right: T.right - N.right + _.right
13326
+ }, B = e.modifiersData.offset;
13327
+ if (g === Te && B) {
13328
+ var U = B[t];
13329
+ Object.keys(O).forEach(function(L) {
13330
+ var q = [G, Z].indexOf(L) >= 0 ? 1 : -1, oe = [$, Z].indexOf(L) >= 0 ? "y" : "x";
13331
+ O[L] += U[oe] * q;
13332
13332
  });
13333
13333
  }
13334
13334
  return O;
13335
13335
  }
13336
13336
  function kA(e, f) {
13337
13337
  f === void 0 && (f = {});
13338
- var n = f, a = n.placement, t = n.boundary, s = n.rootBoundary, A = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, r = u === void 0 ? An : u, g = _e(a), d = g ? i ? Yf : Yf.filter(function(h) {
13338
+ var n = f, a = n.placement, t = n.boundary, s = n.rootBoundary, A = n.padding, o = n.flipVariations, u = n.allowedAutoPlacements, r = u === void 0 ? tn : u, g = _e(a), d = g ? o ? Bf : Bf.filter(function(h) {
13339
13339
  return _e(h) === g;
13340
13340
  }) : Ue, m = d.filter(function(h) {
13341
13341
  return r.indexOf(h) >= 0;
13342
13342
  });
13343
13343
  m.length === 0 && (m = d);
13344
- var p = m.reduce(function(h, I) {
13345
- return h[I] = Ce(e, {
13346
- placement: I,
13344
+ var p = m.reduce(function(h, _) {
13345
+ return h[_] = Ce(e, {
13346
+ placement: _,
13347
13347
  boundary: t,
13348
13348
  rootBoundary: s,
13349
13349
  padding: A
13350
- })[fe(I)], h;
13350
+ })[fe(_)], h;
13351
13351
  }, {});
13352
- return Object.keys(p).sort(function(h, I) {
13353
- return p[h] - p[I];
13352
+ return Object.keys(p).sort(function(h, _) {
13353
+ return p[h] - p[_];
13354
13354
  });
13355
13355
  }
13356
13356
  function NA(e) {
13357
13357
  if (fe(e) === hf)
13358
13358
  return [];
13359
13359
  var f = He(e);
13360
- return [Ff(e), f, Ff(f)];
13360
+ return [qf(e), f, qf(f)];
13361
13361
  }
13362
13362
  function DA(e) {
13363
13363
  var f = e.state, n = e.options, a = e.name;
13364
13364
  if (!f.modifiersData[a]._skip) {
13365
- for (var t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, i = A === void 0 ? !0 : A, u = n.fallbackPlacements, r = n.padding, g = n.boundary, d = n.rootBoundary, m = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, I = n.allowedAutoPlacements, M = f.options.placement, k = fe(M), v = k === M, _ = u || (v || !h ? [He(M)] : NA(M)), N = [M].concat(_).reduce(function(me, Ae) {
13365
+ for (var t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, o = A === void 0 ? !0 : A, u = n.fallbackPlacements, r = n.padding, g = n.boundary, d = n.rootBoundary, m = n.altBoundary, p = n.flipVariations, h = p === void 0 ? !0 : p, _ = n.allowedAutoPlacements, M = f.options.placement, b = fe(M), w = b === M, N = u || (w || !h ? [He(M)] : NA(M)), k = [M].concat(N).reduce(function(me, Ae) {
13366
13366
  return me.concat(fe(Ae) === hf ? kA(f, {
13367
13367
  placement: Ae,
13368
13368
  boundary: g,
13369
13369
  rootBoundary: d,
13370
13370
  padding: r,
13371
13371
  flipVariations: h,
13372
- allowedAutoPlacements: I
13372
+ allowedAutoPlacements: _
13373
13373
  }) : Ae);
13374
- }, []), E = f.rects.reference, V = f.rects.popper, x = /* @__PURE__ */ new Map(), O = !0, Q = N[0], C = 0; C < N.length; C++) {
13375
- var U = N[C], R = fe(U), oe = _e(U) === he, De = [F, Z].indexOf(R) >= 0, je = De ? "width" : "height", W = Ce(f, {
13376
- placement: U,
13374
+ }, []), E = f.rects.reference, j = f.rects.popper, T = /* @__PURE__ */ new Map(), O = !0, B = k[0], U = 0; U < k.length; U++) {
13375
+ var L = k[U], q = fe(L), oe = _e(L) === he, De = [$, Z].indexOf(q) >= 0, je = De ? "width" : "height", J = Ce(f, {
13376
+ placement: L,
13377
13377
  boundary: g,
13378
13378
  rootBoundary: d,
13379
13379
  altBoundary: m,
13380
13380
  padding: r
13381
- }), X = De ? oe ? G : $ : oe ? Z : F;
13382
- E[je] > V[je] && (X = He(X));
13381
+ }), X = De ? oe ? G : W : oe ? Z : $;
13382
+ E[je] > j[je] && (X = He(X));
13383
13383
  var Be = He(X), le = [];
13384
- if (s && le.push(W[R] <= 0), i && le.push(W[X] <= 0, W[Be] <= 0), le.every(function(me) {
13384
+ if (s && le.push(J[q] <= 0), o && le.push(J[X] <= 0, J[Be] <= 0), le.every(function(me) {
13385
13385
  return me;
13386
13386
  })) {
13387
- Q = U, O = !1;
13387
+ B = L, O = !1;
13388
13388
  break;
13389
13389
  }
13390
- x.set(U, le);
13390
+ T.set(L, le);
13391
13391
  }
13392
13392
  if (O)
13393
13393
  for (var Ye = h ? 3 : 1, ff = function(Ae) {
13394
- var Ee = N.find(function(qe) {
13395
- var ue = x.get(qe);
13394
+ var Ee = k.find(function(qe) {
13395
+ var ue = T.get(qe);
13396
13396
  if (ue)
13397
13397
  return ue.slice(0, Ae).every(function(nf) {
13398
13398
  return nf;
13399
13399
  });
13400
13400
  });
13401
13401
  if (Ee)
13402
- return Q = Ee, "break";
13402
+ return B = Ee, "break";
13403
13403
  }, Ve = Ye; Ve > 0; Ve--) {
13404
13404
  var Re = ff(Ve);
13405
13405
  if (Re === "break")
13406
13406
  break;
13407
13407
  }
13408
- f.placement !== Q && (f.modifiersData[a]._skip = !0, f.placement = Q, f.reset = !0);
13408
+ f.placement !== B && (f.modifiersData[a]._skip = !0, f.placement = B, f.reset = !0);
13409
13409
  }
13410
13410
  }
13411
13411
  var jA = {
@@ -13418,7 +13418,7 @@ var jA = {
13418
13418
  _skip: !1
13419
13419
  }
13420
13420
  };
13421
- function Wf(e, f, n) {
13421
+ function $f(e, f, n) {
13422
13422
  return n === void 0 && (n = {
13423
13423
  x: 0,
13424
13424
  y: 0
@@ -13429,17 +13429,17 @@ function Wf(e, f, n) {
13429
13429
  left: e.left - f.width - n.x
13430
13430
  };
13431
13431
  }
13432
- function Jf(e) {
13433
- return [F, G, Z, $].some(function(f) {
13432
+ function Wf(e) {
13433
+ return [$, G, Z, W].some(function(f) {
13434
13434
  return e[f] >= 0;
13435
13435
  });
13436
13436
  }
13437
13437
  function VA(e) {
13438
13438
  var f = e.state, n = e.name, a = f.rects.reference, t = f.rects.popper, s = f.modifiersData.preventOverflow, A = Ce(f, {
13439
13439
  elementContext: "reference"
13440
- }), i = Ce(f, {
13440
+ }), o = Ce(f, {
13441
13441
  altBoundary: !0
13442
- }), u = Wf(A, a), r = Wf(i, t, s), g = Jf(u), d = Jf(r);
13442
+ }), u = $f(A, a), r = $f(o, t, s), g = Wf(u), d = Wf(r);
13443
13443
  f.modifiersData[n] = {
13444
13444
  referenceClippingOffsets: u,
13445
13445
  popperEscapeOffsets: r,
@@ -13458,21 +13458,21 @@ var EA = {
13458
13458
  fn: VA
13459
13459
  };
13460
13460
  function TA(e, f, n) {
13461
- var a = fe(e), t = [$, F].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
13461
+ var a = fe(e), t = [W, $].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
13462
13462
  placement: e
13463
- })) : n, A = s[0], i = s[1];
13464
- return A = A || 0, i = (i || 0) * t, [$, G].indexOf(a) >= 0 ? {
13465
- x: i,
13463
+ })) : n, A = s[0], o = s[1];
13464
+ return A = A || 0, o = (o || 0) * t, [W, G].indexOf(a) >= 0 ? {
13465
+ x: o,
13466
13466
  y: A
13467
13467
  } : {
13468
13468
  x: A,
13469
- y: i
13469
+ y: o
13470
13470
  };
13471
13471
  }
13472
13472
  function xA(e) {
13473
- var f = e.state, n = e.options, a = e.name, t = n.offset, s = t === void 0 ? [0, 0] : t, A = An.reduce(function(g, d) {
13473
+ var f = e.state, n = e.options, a = e.name, t = n.offset, s = t === void 0 ? [0, 0] : t, A = tn.reduce(function(g, d) {
13474
13474
  return g[d] = TA(d, f.rects, s), g;
13475
- }, {}), i = A[f.placement], u = i.x, r = i.y;
13475
+ }, {}), o = A[f.placement], u = o.x, r = o.y;
13476
13476
  f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += u, f.modifiersData.popperOffsets.y += r), f.modifiersData[a] = A;
13477
13477
  }
13478
13478
  var SA = {
@@ -13484,7 +13484,7 @@ var SA = {
13484
13484
  };
13485
13485
  function zA(e) {
13486
13486
  var f = e.state, n = e.name;
13487
- f.modifiersData[n] = dn({
13487
+ f.modifiersData[n] = cn({
13488
13488
  reference: f.rects.reference,
13489
13489
  element: f.rects.popper,
13490
13490
  strategy: "absolute",
@@ -13502,36 +13502,36 @@ function CA(e) {
13502
13502
  return e === "x" ? "y" : "x";
13503
13503
  }
13504
13504
  function UA(e) {
13505
- var f = e.state, n = e.options, a = e.name, t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, i = A === void 0 ? !1 : A, u = n.boundary, r = n.rootBoundary, g = n.altBoundary, d = n.padding, m = n.tether, p = m === void 0 ? !0 : m, h = n.tetherOffset, I = h === void 0 ? 0 : h, M = Ce(f, {
13505
+ var f = e.state, n = e.options, a = e.name, t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, o = A === void 0 ? !1 : A, u = n.boundary, r = n.rootBoundary, g = n.altBoundary, d = n.padding, m = n.tether, p = m === void 0 ? !0 : m, h = n.tetherOffset, _ = h === void 0 ? 0 : h, M = Ce(f, {
13506
13506
  boundary: u,
13507
13507
  rootBoundary: r,
13508
13508
  padding: d,
13509
13509
  altBoundary: g
13510
- }), k = fe(f.placement), v = _e(f.placement), _ = !v, N = bf(k), E = CA(N), V = f.modifiersData.popperOffsets, x = f.rects.reference, O = f.rects.popper, Q = typeof I == "function" ? I(Object.assign({}, f.rects, {
13510
+ }), b = fe(f.placement), w = _e(f.placement), N = !w, k = bf(b), E = CA(k), j = f.modifiersData.popperOffsets, T = f.rects.reference, O = f.rects.popper, B = typeof _ == "function" ? _(Object.assign({}, f.rects, {
13511
13511
  placement: f.placement
13512
- })) : I, C = typeof Q == "number" ? {
13513
- mainAxis: Q,
13514
- altAxis: Q
13512
+ })) : _, U = typeof B == "number" ? {
13513
+ mainAxis: B,
13514
+ altAxis: B
13515
13515
  } : Object.assign({
13516
13516
  mainAxis: 0,
13517
13517
  altAxis: 0
13518
- }, Q), U = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, R = {
13518
+ }, B), L = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, q = {
13519
13519
  x: 0,
13520
13520
  y: 0
13521
13521
  };
13522
- if (V) {
13522
+ if (j) {
13523
13523
  if (s) {
13524
- var oe, De = N === "y" ? F : $, je = N === "y" ? Z : G, W = N === "y" ? "height" : "width", X = V[N], Be = X + M[De], le = X - M[je], Ye = p ? -O[W] / 2 : 0, ff = v === he ? x[W] : O[W], Ve = v === he ? -O[W] : -x[W], Re = f.elements.arrow, me = p && Re ? yf(Re) : {
13524
+ var oe, De = k === "y" ? $ : W, je = k === "y" ? Z : G, J = k === "y" ? "height" : "width", X = j[k], Be = X + M[De], le = X - M[je], Ye = p ? -O[J] / 2 : 0, ff = w === he ? T[J] : O[J], Ve = w === he ? -O[J] : -T[J], Re = f.elements.arrow, me = p && Re ? yf(Re) : {
13525
13525
  width: 0,
13526
13526
  height: 0
13527
- }, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : ln(), Ee = Ae[De], qe = Ae[je], ue = xe(0, x[W], me[W]), nf = _ ? x[W] / 2 - Ye - ue - Ee - C.mainAxis : ff - ue - Ee - C.mainAxis, hn = _ ? -x[W] / 2 + Ye + ue + qe + C.mainAxis : Ve + ue + qe + C.mainAxis, af = f.elements.arrow && Le(f.elements.arrow), yn = af ? N === "y" ? af.clientTop || 0 : af.clientLeft || 0 : 0, kf = (oe = U == null ? void 0 : U[N]) != null ? oe : 0, bn = X + nf - kf - yn, vn = X + hn - kf, Nf = xe(p ? Ze(Be, bn) : Be, X, p ? ce(le, vn) : le);
13528
- V[N] = Nf, R[N] = Nf - X;
13527
+ }, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : on(), Ee = Ae[De], qe = Ae[je], ue = xe(0, T[J], me[J]), nf = N ? T[J] / 2 - Ye - ue - Ee - U.mainAxis : ff - ue - Ee - U.mainAxis, hn = N ? -T[J] / 2 + Ye + ue + qe + U.mainAxis : Ve + ue + qe + U.mainAxis, af = f.elements.arrow && Le(f.elements.arrow), yn = af ? k === "y" ? af.clientTop || 0 : af.clientLeft || 0 : 0, kf = (oe = L == null ? void 0 : L[k]) != null ? oe : 0, bn = X + nf - kf - yn, vn = X + hn - kf, Nf = xe(p ? Ze(Be, bn) : Be, X, p ? ce(le, vn) : le);
13528
+ j[k] = Nf, q[k] = Nf - X;
13529
13529
  }
13530
- if (i) {
13531
- var Df, _n = N === "x" ? F : $, In = N === "x" ? Z : G, re = V[E], Fe = E === "y" ? "height" : "width", jf = re + M[_n], Vf = re - M[In], tf = [F, $].indexOf(k) !== -1, Ef = (Df = U == null ? void 0 : U[E]) != null ? Df : 0, Tf = tf ? jf : re - x[Fe] - O[Fe] - Ef + C.altAxis, xf = tf ? re + x[Fe] + O[Fe] - Ef - C.altAxis : Vf, Sf = p && tf ? iA(Tf, re, xf) : xe(p ? Tf : jf, re, p ? xf : Vf);
13532
- V[E] = Sf, R[E] = Sf - re;
13530
+ if (o) {
13531
+ var Df, _n = k === "x" ? $ : W, In = k === "x" ? Z : G, re = j[E], Fe = E === "y" ? "height" : "width", jf = re + M[_n], Vf = re - M[In], tf = [$, W].indexOf(b) !== -1, Ef = (Df = L == null ? void 0 : L[E]) != null ? Df : 0, Tf = tf ? jf : re - T[Fe] - O[Fe] - Ef + U.altAxis, xf = tf ? re + T[Fe] + O[Fe] - Ef - U.altAxis : Vf, Sf = p && tf ? iA(Tf, re, xf) : xe(p ? Tf : jf, re, p ? xf : Vf);
13532
+ j[E] = Sf, q[E] = Sf - re;
13533
13533
  }
13534
- f.modifiersData[a] = R;
13534
+ f.modifiersData[a] = q;
13535
13535
  }
13536
13536
  }
13537
13537
  var LA = {
@@ -13556,16 +13556,16 @@ function YA(e) {
13556
13556
  }
13557
13557
  function RA(e, f, n) {
13558
13558
  n === void 0 && (n = !1);
13559
- var a = P(f), t = P(f) && YA(f), s = ie(f), A = ve(e, t), i = {
13559
+ var a = P(f), t = P(f) && YA(f), s = ie(f), A = ve(e, t), o = {
13560
13560
  scrollLeft: 0,
13561
13561
  scrollTop: 0
13562
13562
  }, u = {
13563
13563
  x: 0,
13564
13564
  y: 0
13565
13565
  };
13566
- return (a || !a && !n) && ((ne(f) !== "body" || If(s)) && (i = BA(f)), P(f) ? (u = ve(f, !0), u.x += f.clientLeft, u.y += f.clientTop) : s && (u.x = _f(s))), {
13567
- x: A.left + i.scrollLeft - u.x,
13568
- y: A.top + i.scrollTop - u.y,
13566
+ return (a || !a && !n) && ((ne(f) !== "body" || If(s)) && (o = BA(f)), P(f) ? (u = ve(f, !0), u.x += f.clientLeft, u.y += f.clientTop) : s && (u.x = _f(s))), {
13567
+ x: A.left + o.scrollLeft - u.x,
13568
+ y: A.top + o.scrollTop - u.y,
13569
13569
  width: A.width,
13570
13570
  height: A.height
13571
13571
  };
@@ -13578,9 +13578,9 @@ function qA(e) {
13578
13578
  function t(s) {
13579
13579
  n.add(s.name);
13580
13580
  var A = [].concat(s.requires || [], s.requiresIfExists || []);
13581
- A.forEach(function(i) {
13582
- if (!n.has(i)) {
13583
- var u = f.get(i);
13581
+ A.forEach(function(o) {
13582
+ if (!n.has(o)) {
13583
+ var u = f.get(o);
13584
13584
  u && t(u);
13585
13585
  }
13586
13586
  }), a.push(s);
@@ -13619,12 +13619,12 @@ function WA(e) {
13619
13619
  return f[n];
13620
13620
  });
13621
13621
  }
13622
- var Hf = {
13622
+ var Jf = {
13623
13623
  placement: "bottom",
13624
13624
  modifiers: [],
13625
13625
  strategy: "absolute"
13626
13626
  };
13627
- function Kf() {
13627
+ function Hf() {
13628
13628
  for (var e = arguments.length, f = new Array(e), n = 0; n < e; n++)
13629
13629
  f[n] = arguments[n];
13630
13630
  return !f.some(function(a) {
@@ -13633,53 +13633,53 @@ function Kf() {
13633
13633
  }
13634
13634
  function JA(e) {
13635
13635
  e === void 0 && (e = {});
13636
- var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, t = f.defaultOptions, s = t === void 0 ? Hf : t;
13637
- return function(i, u, r) {
13636
+ var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, t = f.defaultOptions, s = t === void 0 ? Jf : t;
13637
+ return function(o, u, r) {
13638
13638
  r === void 0 && (r = s);
13639
13639
  var g = {
13640
13640
  placement: "bottom",
13641
13641
  orderedModifiers: [],
13642
- options: Object.assign({}, Hf, s),
13642
+ options: Object.assign({}, Jf, s),
13643
13643
  modifiersData: {},
13644
13644
  elements: {
13645
- reference: i,
13645
+ reference: o,
13646
13646
  popper: u
13647
13647
  },
13648
13648
  attributes: {},
13649
13649
  styles: {}
13650
13650
  }, d = [], m = !1, p = {
13651
13651
  state: g,
13652
- setOptions: function(k) {
13653
- var v = typeof k == "function" ? k(g.options) : k;
13654
- I(), g.options = Object.assign({}, s, g.options, v), g.scrollParents = {
13655
- reference: ye(i) ? Se(i) : i.contextElement ? Se(i.contextElement) : [],
13652
+ setOptions: function(b) {
13653
+ var w = typeof b == "function" ? b(g.options) : b;
13654
+ _(), g.options = Object.assign({}, s, g.options, w), g.scrollParents = {
13655
+ reference: ye(o) ? Se(o) : o.contextElement ? Se(o.contextElement) : [],
13656
13656
  popper: Se(u)
13657
13657
  };
13658
- var _ = FA(WA([].concat(a, g.options.modifiers)));
13659
- return g.orderedModifiers = _.filter(function(N) {
13660
- return N.enabled;
13658
+ var N = FA(WA([].concat(a, g.options.modifiers)));
13659
+ return g.orderedModifiers = N.filter(function(k) {
13660
+ return k.enabled;
13661
13661
  }), h(), p.update();
13662
13662
  },
13663
13663
  forceUpdate: function() {
13664
13664
  if (!m) {
13665
- var k = g.elements, v = k.reference, _ = k.popper;
13666
- if (Kf(v, _)) {
13665
+ var b = g.elements, w = b.reference, N = b.popper;
13666
+ if (Hf(w, N)) {
13667
13667
  g.rects = {
13668
- reference: RA(v, Le(_), g.options.strategy === "fixed"),
13669
- popper: yf(_)
13670
- }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(C) {
13671
- return g.modifiersData[C.name] = Object.assign({}, C.data);
13668
+ reference: RA(w, Le(N), g.options.strategy === "fixed"),
13669
+ popper: yf(N)
13670
+ }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(U) {
13671
+ return g.modifiersData[U.name] = Object.assign({}, U.data);
13672
13672
  });
13673
- for (var N = 0; N < g.orderedModifiers.length; N++) {
13673
+ for (var k = 0; k < g.orderedModifiers.length; k++) {
13674
13674
  if (g.reset === !0) {
13675
- g.reset = !1, N = -1;
13675
+ g.reset = !1, k = -1;
13676
13676
  continue;
13677
13677
  }
13678
- var E = g.orderedModifiers[N], V = E.fn, x = E.options, O = x === void 0 ? {} : x, Q = E.name;
13679
- typeof V == "function" && (g = V({
13678
+ var E = g.orderedModifiers[k], j = E.fn, T = E.options, O = T === void 0 ? {} : T, B = E.name;
13679
+ typeof j == "function" && (g = j({
13680
13680
  state: g,
13681
13681
  options: O,
13682
- name: Q,
13682
+ name: B,
13683
13683
  instance: p
13684
13684
  }) || g);
13685
13685
  }
@@ -13692,30 +13692,30 @@ function JA(e) {
13692
13692
  });
13693
13693
  }),
13694
13694
  destroy: function() {
13695
- I(), m = !0;
13695
+ _(), m = !0;
13696
13696
  }
13697
13697
  };
13698
- if (!Kf(i, u))
13698
+ if (!Hf(o, u))
13699
13699
  return p;
13700
13700
  p.setOptions(r).then(function(M) {
13701
13701
  !m && r.onFirstUpdate && r.onFirstUpdate(M);
13702
13702
  });
13703
13703
  function h() {
13704
13704
  g.orderedModifiers.forEach(function(M) {
13705
- var k = M.name, v = M.options, _ = v === void 0 ? {} : v, N = M.effect;
13706
- if (typeof N == "function") {
13707
- var E = N({
13705
+ var b = M.name, w = M.options, N = w === void 0 ? {} : w, k = M.effect;
13706
+ if (typeof k == "function") {
13707
+ var E = k({
13708
13708
  state: g,
13709
- name: k,
13709
+ name: b,
13710
13710
  instance: p,
13711
- options: _
13712
- }), V = function() {
13711
+ options: N
13712
+ }), j = function() {
13713
13713
  };
13714
- d.push(E || V);
13714
+ d.push(E || j);
13715
13715
  }
13716
13716
  });
13717
13717
  }
13718
- function I() {
13718
+ function _() {
13719
13719
  d.forEach(function(M) {
13720
13720
  return M();
13721
13721
  }), d = [];
@@ -13725,7 +13725,7 @@ function JA(e) {
13725
13725
  }
13726
13726
  var HA = [MA, OA, mA, tA, SA, jA, LA, rA, EA], KA = /* @__PURE__ */ JA({
13727
13727
  defaultModifiers: HA
13728
- }), gn = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
13728
+ }), dn = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
13729
13729
  function Ke(e) {
13730
13730
  return e.split("-").map((f) => parseInt(f, 16)).map((f) => String.fromCodePoint(f)).join("");
13731
13731
  }
@@ -13735,29 +13735,29 @@ function PA(e, f, n, a = []) {
13735
13735
  if (a.includes(s))
13736
13736
  return;
13737
13737
  const A = [];
13738
- e[s].forEach((i) => {
13738
+ e[s].forEach((o) => {
13739
13739
  var u;
13740
- if (i[Xe][0].includes(f.toLocaleLowerCase())) {
13741
- let r = i[fn];
13742
- if (n !== Pe && Array.isArray(i[$e])) {
13743
- const g = ((u = i[$e]) == null ? void 0 : u.findIndex(
13740
+ if (o[Xe][0].includes(f.toLocaleLowerCase())) {
13741
+ let r = o[en];
13742
+ if (n !== Pe && Array.isArray(o[$e])) {
13743
+ const g = ((u = o[$e]) == null ? void 0 : u.findIndex(
13744
13744
  (d) => d.includes(n)
13745
13745
  )) || -1;
13746
- g !== -1 && i[$e] && (r = i[$e][g]);
13746
+ g !== -1 && o[$e] && (r = o[$e][g]);
13747
13747
  }
13748
13748
  return A.push({
13749
- ...i,
13749
+ ...o,
13750
13750
  [ze]: r
13751
13751
  });
13752
13752
  }
13753
13753
  }), A.length && (t[s] = A);
13754
13754
  }), t;
13755
13755
  }
13756
- function mn() {
13756
+ function gn() {
13757
13757
  var e;
13758
13758
  return (((e = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : e.platform) || (navigator == null ? void 0 : navigator.platform) || "unknown").toUpperCase().indexOf("MAC") !== -1;
13759
13759
  }
13760
- function pn(e) {
13760
+ function mn(e) {
13761
13761
  return e.replace(
13762
13762
  /^_*(.)|_+(.)/g,
13763
13763
  (f, n, a) => n ? n.toUpperCase() : " " + a.toUpperCase()
@@ -13775,16 +13775,16 @@ const ZA = de({
13775
13775
  select: (e) => !0
13776
13776
  },
13777
13777
  setup() {
13778
- const { state: e, updateEmoji: f, updateSelect: n } = Ge("store"), a = b(null), t = T(() => PA(
13778
+ const { state: e, updateEmoji: f, updateSelect: n } = Ge("store"), a = v(null), t = x(() => PA(
13779
13779
  e.emojis,
13780
13780
  e.search,
13781
13781
  e.skinTone,
13782
13782
  e.options.disabledGroups
13783
- )), s = Nn(), A = T(() => !e.options.hideGroupNames), i = T(() => !e.options.disableStickyGroupNames), u = Zf(e.options.groupNames), r = e.orderedGroupKeys;
13783
+ )), s = Nn(), A = x(() => !e.options.hideGroupNames), o = x(() => !e.options.disableStickyGroupNames), u = Pf(e.options.groupNames), r = e.orderedGroupKeys;
13784
13784
  e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
13785
- e.options.groupNames[h] ? u[h] = e.options.groupNames[h] : u[h] = pn(h);
13785
+ e.options.groupNames[h] ? u[h] = e.options.groupNames[h] : u[h] = mn(h);
13786
13786
  });
13787
- const g = mn() ? "is-mac" : "";
13787
+ const g = gn() ? "is-mac" : "";
13788
13788
  function d(h) {
13789
13789
  f(h);
13790
13790
  }
@@ -13795,23 +13795,23 @@ const ZA = de({
13795
13795
  i: Ke(h.r)
13796
13796
  });
13797
13797
  }
13798
- function p(h, I) {
13798
+ function p(h, _) {
13799
13799
  var M;
13800
- const k = (M = h == null ? void 0 : h.target) == null ? void 0 : M.closest("button");
13801
- k && (k.innerHTML = `<span>${Ke(I)}</span>`);
13800
+ const b = (M = h == null ? void 0 : h.target) == null ? void 0 : M.closest("button");
13801
+ b && (b.innerHTML = `<span>${Ke(_)}</span>`);
13802
13802
  }
13803
13803
  return we(
13804
13804
  () => e.activeGroup,
13805
13805
  () => {
13806
13806
  var h;
13807
- const I = (h = a.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
13808
- I && (I.parentNode.scrollTop = I.offsetTop - I.parentNode.offsetTop);
13807
+ const _ = (h = a.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
13808
+ _ && (_.parentNode.scrollTop = _.offsetTop - _.parentNode.offsetTop);
13809
13809
  }
13810
13810
  ), {
13811
13811
  emojis: t,
13812
13812
  bodyInner: a,
13813
- EMOJI_REMOTE_SRC: Xf,
13814
- GROUP_NAMES: en,
13813
+ EMOJI_REMOTE_SRC: Gf,
13814
+ GROUP_NAMES: Xf,
13815
13815
  handleClick: m,
13816
13816
  handleError: p,
13817
13817
  handleMouseEnter: d,
@@ -13820,7 +13820,7 @@ const ZA = de({
13820
13820
  EMOJI_RESULT_KEY: ze,
13821
13821
  EMOJI_NAME_KEY: Xe,
13822
13822
  hasGroupNames: A,
13823
- isSticky: i,
13823
+ isSticky: o,
13824
13824
  platform: g,
13825
13825
  groupNames: u,
13826
13826
  orderedKeys: r
@@ -13832,33 +13832,33 @@ const ZA = de({
13832
13832
  };
13833
13833
  function As(e, f, n, a, t, s) {
13834
13834
  return l(), c("div", GA, [
13835
- o("div", {
13835
+ i("div", {
13836
13836
  ref: "bodyInner",
13837
- class: D([e.platform, "v3-body-inner"])
13837
+ class: V([e.platform, "v3-body-inner"])
13838
13838
  }, [
13839
- e.orderedKeys.length ? (l(!0), c(B, { key: 0 }, Y(e.orderedKeys, (A) => (l(), c("div", {
13839
+ e.orderedKeys.length ? (l(!0), c(Q, { key: 0 }, R(e.orderedKeys, (A) => (l(), c("div", {
13840
13840
  id: A,
13841
13841
  key: A,
13842
13842
  class: "v3-group"
13843
13843
  }, [
13844
13844
  e.hasGroupNames ? te((l(), c("h5", {
13845
13845
  key: 0,
13846
- class: D(e.isSticky ? "v3-sticky" : "")
13847
- }, w(e.groupNames[A]), 3)), [
13846
+ class: V(e.isSticky ? "v3-sticky" : "")
13847
+ }, I(e.groupNames[A]), 3)), [
13848
13848
  [pe, e.emojis[A]]
13849
13849
  ]) : y("", !0),
13850
- te(o("div", es, [
13851
- (l(!0), c(B, null, Y(e.emojis[A], (i) => (l(), c("button", {
13852
- key: i.r,
13850
+ te(i("div", es, [
13851
+ (l(!0), c(Q, null, R(e.emojis[A], (o) => (l(), c("button", {
13852
+ key: o.r,
13853
13853
  type: "button",
13854
- onMouseenter: (u) => e.handleMouseEnter(i),
13855
- onClick: (u) => e.handleClick(i)
13854
+ onMouseenter: (u) => e.handleMouseEnter(o),
13855
+ onClick: (u) => e.handleClick(o)
13856
13856
  }, [
13857
- e.native ? (l(), c("span", ns, w(e.unicodeToEmoji(i.r)), 1)) : (l(), c("img", {
13857
+ e.native ? (l(), c("span", ns, I(e.unicodeToEmoji(o.r)), 1)) : (l(), c("img", {
13858
13858
  key: 1,
13859
- src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
13860
- alt: i.n[0],
13861
- onError: (u) => e.handleError(u, i.r)
13859
+ src: e.EMOJI_REMOTE_SRC + `/${o.r}.png`,
13860
+ alt: o.n[0],
13861
+ onError: (u) => e.handleError(u, o.r)
13862
13862
  }, null, 40, as))
13863
13863
  ], 40, fs))), 128))
13864
13864
  ], 512), [
@@ -13872,16 +13872,16 @@ var ss = /* @__PURE__ */ Qe(ZA, [["render", As]]), is = "data:image/svg+xml;base
13872
13872
  const ms = de({
13873
13873
  name: "Header",
13874
13874
  setup(e) {
13875
- const { state: f, updateSearch: n, updateActiveGroup: a } = Ge("store"), t = T(() => !f.options.hideSearch), s = T(() => !f.options.hideGroupIcons), A = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = T(
13875
+ const { state: f, updateSearch: n, updateActiveGroup: a } = Ge("store"), t = x(() => !f.options.hideSearch), s = x(() => !f.options.hideGroupIcons), A = JSON.parse(JSON.stringify(f.orderedGroupKeys)), o = x(
13876
13876
  () => f.options.staticTexts.placeholder || ""
13877
- ), u = T({
13877
+ ), u = x({
13878
13878
  get: () => f.search,
13879
13879
  set: (d) => n(d)
13880
13880
  }), r = [
13881
13881
  ...f.groups,
13882
13882
  ...Object.keys(f.options.additionalGroups).map((d) => ({
13883
13883
  key: d,
13884
- title: f.options.groupNames[d] ? f.options.groupNames[d] : pn(d)
13884
+ title: f.options.groupNames[d] ? f.options.groupNames[d] : mn(d)
13885
13885
  }))
13886
13886
  ], g = [];
13887
13887
  return A.forEach((d) => {
@@ -13894,9 +13894,9 @@ const ms = de({
13894
13894
  updateActiveGroup: a,
13895
13895
  hasSearch: t,
13896
13896
  hasGroupIcons: s,
13897
- placeholder: i,
13897
+ placeholder: o,
13898
13898
  icons: {
13899
- smileys_people: gn,
13899
+ smileys_people: dn,
13900
13900
  animals_nature: is,
13901
13901
  food_drink: os,
13902
13902
  activities: ls,
@@ -13925,19 +13925,19 @@ const ms = de({
13925
13925
  function ws(e, f, n, a, t, s) {
13926
13926
  return e.hasGroupIcons || e.hasSearch ? (l(), c("div", ps, [
13927
13927
  e.hasGroupIcons ? (l(), c("div", Ms, [
13928
- (l(!0), c(B, null, Y(e.orderedGroups, (A) => (l(), c("button", {
13928
+ (l(!0), c(Q, null, R(e.orderedGroups, (A) => (l(), c("button", {
13929
13929
  key: A.key,
13930
13930
  type: "button",
13931
- class: D(["v3-group", {
13931
+ class: V(["v3-group", {
13932
13932
  "v3-is-hidden": !e.icons[A.key]
13933
13933
  }]),
13934
- onClick: (i) => e.updateActiveGroup(A.key)
13934
+ onClick: (o) => e.updateActiveGroup(A.key)
13935
13935
  }, [
13936
- o("span", {
13936
+ i("span", {
13937
13937
  title: A.title,
13938
13938
  class: "v3-icon"
13939
13939
  }, [
13940
- o("img", {
13940
+ i("img", {
13941
13941
  src: e.icons[A.key],
13942
13942
  alt: ""
13943
13943
  }, null, 8, bs)
@@ -13946,12 +13946,12 @@ function ws(e, f, n, a, t, s) {
13946
13946
  ])) : y("", !0),
13947
13947
  e.hasGroupIcons && e.hasSearch ? (l(), c("div", vs)) : y("", !0),
13948
13948
  e.hasSearch ? (l(), c("div", _s, [
13949
- te(o("input", {
13949
+ te(i("input", {
13950
13950
  "onUpdate:modelValue": f[0] || (f[0] = (A) => e.searchValue = A),
13951
13951
  type: "text",
13952
13952
  placeholder: e.placeholder
13953
13953
  }, null, 8, Is), [
13954
- [Gf, e.searchValue]
13954
+ [Zf, e.searchValue]
13955
13955
  ])
13956
13956
  ])) : y("", !0)
13957
13957
  ])) : y("", !0);
@@ -13960,11 +13960,11 @@ var ks = /* @__PURE__ */ Qe(ms, [["render", ws]]);
13960
13960
  const Ns = de({
13961
13961
  name: "Header",
13962
13962
  setup() {
13963
- const { state: e, updateSkinTone: f } = Ge("store"), n = b(!1), a = b(!1), t = T(() => e.skinTone), s = T(
13963
+ const { state: e, updateSkinTone: f } = Ge("store"), n = v(!1), a = v(!1), t = x(() => e.skinTone), s = x(
13964
13964
  () => e.options.staticTexts.skinTone || "Skin tone"
13965
- ), A = T(() => !e.options.disableSkinTones), i = mn() ? "is-mac" : "", u = T(() => ({
13965
+ ), A = x(() => !e.options.disableSkinTones), o = gn() ? "is-mac" : "", u = x(() => ({
13966
13966
  ...e.emoji,
13967
- src: Xf + "/" + e.emoji[ze] + ".png"
13967
+ src: Gf + "/" + e.emoji[ze] + ".png"
13968
13968
  }));
13969
13969
  function r(m = !0) {
13970
13970
  n.value = m;
@@ -13994,7 +13994,7 @@ const Ns = de({
13994
13994
  hasSkinTones: A,
13995
13995
  native: e.options.native,
13996
13996
  unicodeToEmoji: Ke,
13997
- platform: i,
13997
+ platform: o,
13998
13998
  hasError: a
13999
13999
  };
14000
14000
  }
@@ -14004,38 +14004,38 @@ function Ss(e, f, n, a, t, s) {
14004
14004
  class: "v3-footer",
14005
14005
  onMouseleave: f[2] || (f[2] = (A) => e.updateSkinToneState(!1))
14006
14006
  }, [
14007
- o("div", Ds, [
14008
- o("span", {
14009
- class: D([e.platform, "v3-icon"])
14007
+ i("div", Ds, [
14008
+ i("span", {
14009
+ class: V([e.platform, "v3-icon"])
14010
14010
  }, [
14011
- e.native || e.hasError ? (l(), c("span", js, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (l(), c("img", {
14011
+ e.native || e.hasError ? (l(), c("span", js, I(e.unicodeToEmoji(e.emoji.r)), 1)) : (l(), c("img", {
14012
14012
  key: 1,
14013
14013
  alt: e.unicodeToEmoji(e.emoji.r),
14014
14014
  src: e.emoji.src,
14015
14015
  onError: f[0] || (f[0] = (A) => e.hasError = !0)
14016
14016
  }, null, 40, Vs))
14017
14017
  ], 2),
14018
- o("span", Es, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
14018
+ i("span", Es, " :" + I(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
14019
14019
  ]),
14020
- e.hasSkinTones ? (l(), c(B, { key: 0 }, [
14021
- o("button", {
14020
+ e.hasSkinTones ? (l(), c(Q, { key: 0 }, [
14021
+ i("button", {
14022
14022
  type: "button",
14023
14023
  class: "v3-tone",
14024
14024
  onClick: f[1] || (f[1] = (...A) => e.toggleSkinToneState && e.toggleSkinToneState(...A))
14025
14025
  }, [
14026
- o("span", Ts, w(e.skinToneText), 1),
14027
- o("span", {
14028
- class: D(`v3-icon v3-tone-${e.stateSkinTone}`)
14026
+ i("span", Ts, I(e.skinToneText), 1),
14027
+ i("span", {
14028
+ class: V(`v3-icon v3-tone-${e.stateSkinTone}`)
14029
14029
  }, null, 2)
14030
14030
  ]),
14031
- o("div", {
14032
- class: D([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
14031
+ i("div", {
14032
+ class: V([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
14033
14033
  }, [
14034
- (l(!0), c(B, null, Y(e.SKIN_TONES, (A) => (l(), c("button", {
14034
+ (l(!0), c(Q, null, R(e.SKIN_TONES, (A) => (l(), c("button", {
14035
14035
  key: A,
14036
14036
  type: "button",
14037
- class: D(["v3-skin-tone-" + A, "v3-skin-tone"]),
14038
- onClick: (i) => e.selectSkinTone(A)
14037
+ class: V(["v3-skin-tone-" + A, "v3-skin-tone"]),
14038
+ onClick: (o) => e.selectSkinTone(A)
14039
14039
  }, null, 10, xs))), 128))
14040
14040
  ], 2)
14041
14041
  ], 64)) : y("", !0)
@@ -14080,13 +14080,13 @@ const Os = de({
14080
14080
  "update:text": (e) => !0
14081
14081
  },
14082
14082
  setup(e, { emit: f }) {
14083
- const n = b(), a = b(), t = b(), s = b(!1), A = b(e.text), i = e.type === "input" || e.type === "textarea";
14083
+ const n = v(), a = v(), t = v(), s = v(!1), A = v(e.text), o = e.type === "input" || e.type === "textarea";
14084
14084
  let u = -1;
14085
- const { state: r } = Ge("store"), g = T(() => r.options.colorTheme);
14085
+ const { state: r } = Ge("store"), g = x(() => r.options.colorTheme);
14086
14086
  function d(M) {
14087
- if (i) {
14088
- const k = r.options.mode;
14089
- k === "prepend" ? A.value = M.i + A.value : k === "insert" && u !== -1 ? (A.value = `${A.value.slice(0, u)}${M.i}${A.value.slice(u)}`, u += M.i.length) : A.value += M.i, f("update:text", A.value);
14087
+ if (o) {
14088
+ const b = r.options.mode;
14089
+ b === "prepend" ? A.value = M.i + A.value : b === "insert" && u !== -1 ? (A.value = `${A.value.slice(0, u)}${M.i}${A.value.slice(u)}`, u += M.i.length) : A.value += M.i, f("update:text", A.value);
14090
14090
  }
14091
14091
  f("select", M);
14092
14092
  }
@@ -14095,13 +14095,13 @@ const Os = de({
14095
14095
  n.value && (u = ((M = n.value) == null ? void 0 : M.selectionEnd) || -1);
14096
14096
  }
14097
14097
  function p(M) {
14098
- var k;
14099
- !((k = M.target) != null && k.closest(
14098
+ var b;
14099
+ !((b = M.target) != null && b.closest(
14100
14100
  ".v3-input-picker-wrap"
14101
14101
  )) && s.value && (s.value = !1);
14102
14102
  }
14103
14103
  function h() {
14104
- if (a.value && t.value && i) {
14104
+ if (a.value && t.value && o) {
14105
14105
  let M = r.options.offset;
14106
14106
  typeof M != "number" && (M = 6), KA(a.value, t.value, {
14107
14107
  placement: "bottom-end",
@@ -14116,7 +14116,7 @@ const Os = de({
14116
14116
  }), document.body.addEventListener("click", p);
14117
14117
  }
14118
14118
  }
14119
- function I(M) {
14119
+ function _(M) {
14120
14120
  A.value = M.target.value || "", f("update:text", A.value);
14121
14121
  }
14122
14122
  return Ie(() => {
@@ -14124,7 +14124,7 @@ const Os = de({
14124
14124
  }), Dn(() => {
14125
14125
  document.body.removeEventListener("click", p);
14126
14126
  }), {
14127
- face: gn,
14127
+ face: dn,
14128
14128
  open: s,
14129
14129
  onSelect: d,
14130
14130
  input: A,
@@ -14132,8 +14132,8 @@ const Os = de({
14132
14132
  updateCursor: m,
14133
14133
  button: a,
14134
14134
  picker: t,
14135
- isInputType: i,
14136
- onChangeText: I,
14135
+ isInputType: o,
14136
+ onChangeText: _,
14137
14137
  colorTheme: g
14138
14138
  };
14139
14139
  }
@@ -14142,9 +14142,9 @@ const Os = de({
14142
14142
  class: "v3-input-emoji-picker"
14143
14143
  }, Us = { class: "v3-input-picker-root" }, Ls = ["value"], Qs = ["value"], Bs = ["src"];
14144
14144
  function Ys(e, f, n, a, t, s) {
14145
- const A = Je("Header"), i = Je("Body"), u = Je("Footer");
14145
+ const A = Je("Header"), o = Je("Body"), u = Je("Footer");
14146
14146
  return e.isInputType ? (l(), c("div", Cs, [
14147
- o("div", Us, [
14147
+ i("div", Us, [
14148
14148
  e.type === "input" ? (l(), c("input", {
14149
14149
  key: 0,
14150
14150
  ref: "elem",
@@ -14161,36 +14161,36 @@ function Ys(e, f, n, a, t, s) {
14161
14161
  onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
14162
14162
  onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
14163
14163
  }, null, 40, Qs)),
14164
- o("div", {
14165
- class: D(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14164
+ i("div", {
14165
+ class: V(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14166
14166
  }, [
14167
- o("button", {
14167
+ i("button", {
14168
14168
  ref: "button",
14169
14169
  type: "button",
14170
14170
  class: "v3-input-picker-icon",
14171
14171
  onClick: f[4] || (f[4] = (r) => e.open = !e.open)
14172
14172
  }, [
14173
- o("img", {
14173
+ i("img", {
14174
14174
  src: e.face,
14175
14175
  alt: ""
14176
14176
  }, null, 8, Bs)
14177
14177
  ], 512),
14178
- o("div", {
14178
+ i("div", {
14179
14179
  ref: "picker",
14180
- class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14180
+ class: V(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14181
14181
  }, [
14182
14182
  S(A),
14183
- S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14183
+ S(o, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14184
14184
  S(u)
14185
14185
  ], 2)
14186
14186
  ], 2)
14187
14187
  ])
14188
14188
  ])) : (l(), c("div", {
14189
14189
  key: 1,
14190
- class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14190
+ class: V(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14191
14191
  }, [
14192
14192
  S(A),
14193
- S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14193
+ S(o, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14194
14194
  S(u)
14195
14195
  ], 2));
14196
14196
  }
@@ -14279,7 +14279,7 @@ const qs = de({
14279
14279
  select: (e) => !0
14280
14280
  },
14281
14281
  setup(e, { emit: f }) {
14282
- const n = b(e.text);
14282
+ const n = v(e.text);
14283
14283
  function a(s) {
14284
14284
  n.value = s || "", f("update:text", n.value);
14285
14285
  }
@@ -14292,7 +14292,7 @@ const qs = de({
14292
14292
  staticTexts: { ...yt, ...e.staticTexts },
14293
14293
  disableStickyGroupNames: e.disableStickyGroupNames,
14294
14294
  disabledGroups: e.disabledGroups,
14295
- groupNames: { ...en, ...e.groupNames },
14295
+ groupNames: { ...Xf, ...e.groupNames },
14296
14296
  disableSkinTones: e.disableSkinTones,
14297
14297
  displayRecent: e.displayRecent,
14298
14298
  additionalGroups: e.additionalGroups,
@@ -14310,10 +14310,10 @@ const qs = de({
14310
14310
  });
14311
14311
  function Fs(e, f, n, a, t, s) {
14312
14312
  const A = Je("picker-root");
14313
- return l(), L(A, {
14313
+ return l(), C(A, {
14314
14314
  type: e.type,
14315
14315
  text: e.input,
14316
- onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
14316
+ onSelect: f[0] || (f[0] = (o) => e.$emit("select", o)),
14317
14317
  "onUpdate:text": e.onChangeText
14318
14318
  }, null, 8, ["type", "text", "onUpdate:text"]);
14319
14319
  }
@@ -14352,19 +14352,14 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14352
14352
  contextMenuKey: {
14353
14353
  type: String,
14354
14354
  default: "key"
14355
- },
14356
- storybook: {
14357
- type: Boolean,
14358
- required: !1,
14359
- default: !1
14360
14355
  }
14361
14356
  },
14362
14357
  emits: ["click", "buttonClick"],
14363
14358
  setup(e, { emit: f }) {
14364
- const n = e, a = f, t = b(null), s = b(null), A = (d) => {
14359
+ const n = e, a = f, t = v(null), s = v(null), A = (d) => {
14365
14360
  const m = n.actions[d];
14366
14361
  t.value.style.display = "none", a("click", m);
14367
- }, i = () => {
14362
+ }, o = () => {
14368
14363
  n.disabled || (n.mode == "click" && (t.value.style.display = "inherit"), a("buttonClick"));
14369
14364
  }, u = () => {
14370
14365
  n.mode == "hover" && !n.disabled && (t.value.style.display = "inherit");
@@ -14400,22 +14395,21 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14400
14395
  id: "container-" + n.contextMenuKey,
14401
14396
  ref_key: "actionScope",
14402
14397
  ref: s,
14403
- style: { position: "relative", width: "fit-content" },
14404
- class: D({ "storybook-container": e.storybook })
14398
+ style: { position: "relative", width: "fit-content" }
14405
14399
  }, [
14406
- o("button", {
14407
- class: D(["button", {
14400
+ i("div", {
14401
+ class: V(["button", {
14408
14402
  "disabled-button": e.disabled
14409
14403
  }]),
14410
- onClick: i,
14404
+ onClick: o,
14411
14405
  onMouseover: u,
14412
14406
  onMouseout: r
14413
14407
  }, [
14414
- o("span", {
14415
- class: D(e.buttonClass)
14416
- }, w(e.buttonTitle), 3)
14408
+ i("span", {
14409
+ class: V(e.buttonClass)
14410
+ }, I(e.buttonTitle), 3)
14417
14411
  ], 34),
14418
- o("div", {
14412
+ i("div", {
14419
14413
  id: "context-menu-" + n.contextMenuKey,
14420
14414
  ref_key: "contextMenu",
14421
14415
  ref: t,
@@ -14423,12 +14417,12 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14423
14417
  onMouseover: u,
14424
14418
  onMouseout: r
14425
14419
  }, [
14426
- o("div", Hs, [
14427
- o("ul", Ks, [
14428
- (l(!0), c(B, null, Y(n.actions, (p, h) => (l(), c("li", {
14420
+ i("div", Hs, [
14421
+ i("ul", Ks, [
14422
+ (l(!0), c(Q, null, R(n.actions, (p, h) => (l(), c("li", {
14429
14423
  key: h,
14430
14424
  class: "context-menu__item",
14431
- onClick: (I) => A(h)
14425
+ onClick: (_) => A(h)
14432
14426
  }, [
14433
14427
  p.icon ? (l(), c("img", {
14434
14428
  key: 0,
@@ -14437,16 +14431,16 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14437
14431
  height: "18"
14438
14432
  }, null, 8, Zs)) : p.prime ? (l(), c("i", {
14439
14433
  key: 1,
14440
- class: D("pi pi-" + p.prime)
14434
+ class: V("pi pi-" + p.prime)
14441
14435
  }, null, 2)) : y("", !0),
14442
- o("span", null, w(p.title), 1)
14436
+ i("span", null, I(p.title), 1)
14443
14437
  ], 8, Ps))), 128))
14444
14438
  ])
14445
14439
  ])
14446
14440
  ], 40, Js)
14447
- ], 10, Ws));
14441
+ ], 8, Ws));
14448
14442
  }
14449
- }, Mn = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-2eb2dd26"]]), Xs = { class: "channels__container" }, ei = {
14443
+ }, pn = /* @__PURE__ */ D(Gs, [["__scopeId", "data-v-d5c83269"]]), Xs = { class: "channels__container" }, ei = {
14450
14444
  key: 0,
14451
14445
  class: "channels__selected"
14452
14446
  }, fi = {
@@ -14466,7 +14460,7 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14466
14460
  },
14467
14461
  emits: ["selectChannel"],
14468
14462
  setup(e, { emit: f }) {
14469
- const n = b(null), a = e, t = f, A = b(a.channels.find((u) => u.type === "default")), i = (u) => {
14463
+ const n = v(null), a = e, t = f, A = v(a.channels.find((u) => u.type === "default")), o = (u) => {
14470
14464
  A.value = u, t("selectChannel", A.value);
14471
14465
  };
14472
14466
  return (u, r) => (l(), c("div", {
@@ -14474,33 +14468,33 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14474
14468
  ref: n,
14475
14469
  class: "channels"
14476
14470
  }, [
14477
- o("div", Xs, [
14471
+ i("div", Xs, [
14478
14472
  A.value ? (l(), c("div", ei, [
14479
14473
  A.value.icon ? (l(), c("span", fi, [
14480
- o("img", {
14474
+ i("img", {
14481
14475
  src: A.value.icon
14482
14476
  }, null, 8, ni)
14483
14477
  ])) : y("", !0),
14484
- o("span", ai, w(A.value.title), 1)
14478
+ i("span", ai, I(A.value.title), 1)
14485
14479
  ])) : (l(), c("span", ti, "Канал не выбран")),
14486
- S(Mn, {
14480
+ S(pn, {
14487
14481
  actions: e.channels,
14488
14482
  mode: "hover",
14489
14483
  "button-class": "pi pi-list",
14490
14484
  "menu-side": "top",
14491
14485
  "context-menu-key": "channels",
14492
- onClick: i
14486
+ onClick: o
14493
14487
  }, null, 8, ["actions"])
14494
14488
  ])
14495
14489
  ], 512));
14496
14490
  }
14497
- }, si = /* @__PURE__ */ j(Ai, [["__scopeId", "data-v-80cc8217"]]), ii = { class: "template-selector" }, oi = { class: "template-selector__container" }, li = { class: "template-selector__button-close" }, ui = { class: "template-selector__list" }, ri = ["onClick"], ci = { class: "template-selector__item-group" }, di = { class: "template-selector__item-template" }, gi = { class: "template-selector__item-title" }, mi = { class: "template-selector__item-text" }, pi = { class: "template-selector__preview-container" }, Mi = {
14491
+ }, si = /* @__PURE__ */ D(Ai, [["__scopeId", "data-v-80cc8217"]]), ii = v(""), Mn = () => ii, oi = { class: "template-selector" }, li = { class: "template-selector__container" }, ui = { class: "template-selector__button-close" }, ri = { class: "template-selector__list" }, ci = ["onClick"], di = { class: "template-selector__item-group" }, gi = { class: "template-selector__item-template" }, mi = { class: "template-selector__item-title" }, pi = { class: "template-selector__item-text" }, Mi = { class: "template-selector__preview-container" }, hi = {
14498
14492
  key: 0,
14499
14493
  class: "template-selector__preview"
14500
- }, hi = { class: "template-selector__preview-wrapper" }, yi = { class: "template-selector__preview-text" }, bi = {
14494
+ }, yi = { class: "template-selector__preview-wrapper" }, bi = { class: "template-selector__preview-text" }, vi = {
14501
14495
  key: 1,
14502
14496
  class: "template-selector__preview-title"
14503
- }, vi = {
14497
+ }, _i = {
14504
14498
  __name: "TemplateSelector",
14505
14499
  props: {
14506
14500
  templates: {
@@ -14511,53 +14505,55 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14511
14505
  },
14512
14506
  emits: ["closeTemplateWindow", "pasteTemplate"],
14513
14507
  setup(e, { emit: f }) {
14514
- const n = e, a = (s) => {
14515
- n.templates.forEach((i) => i.isSelected = !1);
14516
- const A = n.templates.find((i) => i.templateId === s.templateId);
14517
- A.isSelected = !0;
14518
- }, t = T(() => n.templates.find((s) => s.isSelected));
14519
- return (s, A) => (l(), c("div", ii, [
14520
- o("div", oi, [
14521
- o("button", li, [
14522
- o("span", {
14508
+ const n = e, a = Mn(), t = () => {
14509
+ s("closeTemplateWindow"), a.value = o.value.template;
14510
+ }, s = f, A = (u) => {
14511
+ n.templates.forEach((g) => g.isSelected = !1);
14512
+ const r = n.templates.find((g) => g.templateId === u.templateId);
14513
+ r.isSelected = !0;
14514
+ }, o = x(() => n.templates.find((u) => u.isSelected));
14515
+ return (u, r) => (l(), c("div", oi, [
14516
+ i("div", li, [
14517
+ i("button", ui, [
14518
+ i("span", {
14523
14519
  class: "pi pi-times",
14524
- onClick: A[0] || (A[0] = (i) => s.$emit("closeTemplateWindow"))
14520
+ onClick: r[0] || (r[0] = (g) => u.$emit("closeTemplateWindow"))
14525
14521
  })
14526
14522
  ]),
14527
- o("ul", ui, [
14528
- (l(!0), c(B, null, Y(e.templates, (i, u) => (l(), c("li", {
14529
- key: u,
14530
- class: D(["template-selector__item", { "template-selector__item-selected": i.isSelected }]),
14531
- onClick: (r) => a(i)
14523
+ i("ul", ri, [
14524
+ (l(!0), c(Q, null, R(e.templates, (g, d) => (l(), c("li", {
14525
+ key: d,
14526
+ class: V(["template-selector__item", { "template-selector__item-selected": g.isSelected }]),
14527
+ onClick: (m) => A(g)
14532
14528
  }, [
14533
- o("p", ci, w(i.groupId), 1),
14534
- o("div", di, [
14535
- o("p", gi, w(i.title), 1),
14536
- o("p", mi, w(i.template), 1)
14529
+ i("p", di, I(g.groupId), 1),
14530
+ i("div", gi, [
14531
+ i("p", mi, I(g.title), 1),
14532
+ i("p", pi, I(g.template), 1)
14537
14533
  ])
14538
- ], 10, ri))), 128))
14534
+ ], 10, ci))), 128))
14539
14535
  ]),
14540
- o("div", pi, [
14541
- t.value ? (l(), c("div", Mi, [
14542
- o("div", hi, [
14543
- o("p", yi, w(t.value.template), 1),
14544
- A[2] || (A[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
14536
+ i("div", Mi, [
14537
+ o.value ? (l(), c("div", hi, [
14538
+ i("div", yi, [
14539
+ i("p", bi, I(o.value.template), 1),
14540
+ r[1] || (r[1] = i("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
14545
14541
  ])
14546
- ])) : (l(), c("p", bi, " Предпросмотр шаблона "))
14542
+ ])) : (l(), c("p", vi, " Предпросмотр шаблона "))
14547
14543
  ]),
14548
- o("button", {
14544
+ i("button", {
14549
14545
  class: "template-selector__button-paste",
14550
- onClick: A[1] || (A[1] = (i) => s.$emit("pasteTemplate", t.value.template))
14546
+ onClick: t
14551
14547
  }, " Вставить ")
14552
14548
  ])
14553
14549
  ]));
14554
14550
  }
14555
- }, _i = /* @__PURE__ */ j(vi, [["__scopeId", "data-v-a6888541"]]), Ii = { class: "chat-input" }, wi = { class: "chat-input__container" }, ki = {
14551
+ }, Ii = /* @__PURE__ */ D(_i, [["__scopeId", "data-v-7e077013"]]), wi = { class: "chat-input" }, ki = { class: "chat-input__container" }, Ni = {
14556
14552
  key: 0,
14557
14553
  class: "chat-input__first-line"
14558
- }, Ni = { class: "chat-input__second-line" }, Di = { class: "chat-input__third-line" }, ji = {
14554
+ }, Di = { class: "chat-input__second-line" }, ji = { class: "chat-input__third-line" }, Vi = {
14559
14555
  __name: "ChatInput",
14560
- props: /* @__PURE__ */ zf({
14556
+ props: {
14561
14557
  enableEmoji: {
14562
14558
  type: Boolean,
14563
14559
  required: !1,
@@ -14572,52 +14568,50 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14572
14568
  type: Array,
14573
14569
  required: !1,
14574
14570
  default: () => []
14571
+ },
14572
+ filebumpUrl: {
14573
+ type: String
14575
14574
  }
14576
- }, {
14577
- modelValue: { type: String },
14578
- modelModifiers: {}
14579
- }),
14580
- emits: /* @__PURE__ */ zf(["send", "typing", "selectChannel"], ["update:modelValue"]),
14575
+ },
14576
+ emits: ["send", "typing", "selectChannel"],
14581
14577
  setup(e, { emit: f }) {
14582
- const n = f, a = xn(e, "modelValue"), t = b(null), s = b(null), A = b(""), i = b(!1), u = (v) => {
14583
- a.value = v, i.value = !i.value;
14584
- }, r = T(() => !s.value || s.value === "");
14578
+ const n = f, a = Mn(), t = v(null), s = v(null), A = v(""), o = x(() => !s.value || s.value === "");
14585
14579
  we(
14586
14580
  () => a.value,
14587
14581
  () => {
14588
14582
  t.value.style.height = "auto", t.value.style.height = t.value.scrollHeight + "px";
14589
14583
  }
14590
14584
  );
14591
- const g = ["б", "Кб", "Мб", "Гб"], d = (v) => {
14592
- if (console.log("fileUploaded", v), v) {
14593
- let _ = v.selectedFile.size, N = 0;
14594
- for (; _ > 1024; )
14595
- _ = _ / 1024, N++;
14596
- _ = _.toFixed(2) + g[N], A.value = _;
14585
+ const u = ["б", "Кб", "Мб", "Гб"], r = (M) => {
14586
+ if (console.log("fileUploaded", M), M) {
14587
+ let b = M.selectedFile.size, w = 0;
14588
+ for (; b > 1024; )
14589
+ b = b / 1024, w++;
14590
+ b = b.toFixed(2) + u[w], A.value = b;
14597
14591
  }
14598
- s.value = v;
14599
- }, m = () => {
14592
+ s.value = M;
14593
+ }, g = () => {
14600
14594
  console.log("reset uploaded file"), s.value = null;
14601
- }, p = (v) => {
14602
- n("typing", v.target.value);
14603
- }, h = (v) => {
14604
- n("selectChannel", v);
14605
- }, I = () => {
14606
- var _;
14607
- const v = {
14595
+ }, d = (M) => {
14596
+ n("typing", M.target.value);
14597
+ }, m = (M) => {
14598
+ n("selectChannel", M);
14599
+ }, p = () => {
14600
+ var b;
14601
+ const M = {
14608
14602
  type: null,
14609
14603
  text: null
14610
14604
  };
14611
- s.value ? (v.type = "message." + s.value.type, v.url = s.value.url, v.filename = s.value.filename, v.size = s.value.size, v.text = (_ = a == null ? void 0 : a.value) == null ? void 0 : _.trim()) : (v.type = "message.text", v.text = a.value.trim()), n("send", v), s.value = !1, a.value = null, q(t).focus();
14612
- }, M = T(() => {
14605
+ s.value ? (M.type = "message." + s.value.type, M.url = s.value.url, M.filename = s.value.filename, M.size = s.value.size, M.text = (b = a == null ? void 0 : a.value) == null ? void 0 : b.trim()) : (M.type = "message.text", M.text = a.value.trim()), n("send", M), s.value = !1, a.value = null, Y(t).focus();
14606
+ }, h = x(() => {
14613
14607
  if (document.documentElement.classList.contains("dark"))
14614
14608
  return "dark";
14615
- }), k = (v) => {
14616
- a.value = (a.value ? a.value : "") + v.i;
14609
+ }), _ = (M) => {
14610
+ a.value = (a.value ? a.value : "") + M.i;
14617
14611
  };
14618
- return (v, _) => (l(), c("div", Ii, [
14619
- o("div", wi, [
14620
- s.value ? (l(), c("div", ki, [
14612
+ return (M, b) => (l(), c("div", wi, [
14613
+ i("div", ki, [
14614
+ s.value ? (l(), c("div", Ni, [
14621
14615
  S(rt, {
14622
14616
  "preview-url": s.value.previewUrl,
14623
14617
  "is-image": s.value.isImage,
@@ -14625,98 +14619,85 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14625
14619
  "is-audio": s.value.isAudio,
14626
14620
  "file-name": s.value.selectedFile.name,
14627
14621
  "file-size": A.value,
14628
- onReset: m
14622
+ onReset: g
14629
14623
  }, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
14630
14624
  ])) : y("", !0),
14631
- o("div", Ni, [
14632
- te(o("textarea", {
14625
+ i("div", Di, [
14626
+ te(i("textarea", {
14633
14627
  ref_key: "refInput",
14634
14628
  ref: t,
14635
- "onUpdate:modelValue": _[0] || (_[0] = (N) => a.value = N),
14629
+ "onUpdate:modelValue": b[0] || (b[0] = (w) => xn(a) ? a.value = w : null),
14636
14630
  class: "chat-input__input",
14637
14631
  placeholder: "Type a message...",
14638
- onKeydown: Sn(I, ["enter"]),
14639
- onInput: p
14632
+ onKeydown: Sn(p, ["enter"]),
14633
+ onInput: d
14640
14634
  }, null, 544), [
14641
- [Gf, a.value]
14635
+ [Zf, Y(a)]
14642
14636
  ]),
14643
- o("button", {
14637
+ i("button", {
14644
14638
  class: "chat-input__button-send",
14645
- onClick: I
14646
- }, _[4] || (_[4] = [
14647
- o("span", { class: "pi pi-send" }, null, -1)
14639
+ onClick: p
14640
+ }, b[2] || (b[2] = [
14641
+ i("span", { class: "pi pi-send" }, null, -1)
14648
14642
  ]))
14649
14643
  ]),
14650
- o("div", Di, [
14651
- S(q(Po), {
14652
- "can-upload-file": r.value,
14653
- onFileUploaded: d
14654
- }, null, 8, ["can-upload-file"]),
14655
- o("button", {
14644
+ i("div", ji, [
14645
+ S(Y(Go), {
14646
+ style: { "margin-top": "9px" },
14647
+ "filebump-url": e.filebumpUrl,
14648
+ "can-upload-file": o.value,
14649
+ onFileUploaded: r
14650
+ }, null, 8, ["filebump-url", "can-upload-file"]),
14651
+ i("button", {
14656
14652
  class: "chat-input__button-emoji",
14657
- onClick: _[1] || (_[1] = (...N) => v.toogleDialogEmoji && v.toogleDialogEmoji(...N))
14658
- }, _[5] || (_[5] = [
14659
- o("span", { class: "pi pi-face-smile" }, null, -1)
14653
+ onClick: b[1] || (b[1] = (...w) => M.toogleDialogEmoji && M.toogleDialogEmoji(...w))
14654
+ }, b[3] || (b[3] = [
14655
+ i("span", { class: "pi pi-face-smile" }, null, -1)
14660
14656
  ])),
14661
14657
  S(H, null, {
14662
14658
  default: K(() => [
14663
- S(q($s), {
14659
+ S(Y($s), {
14664
14660
  class: "chat-input__emoji",
14665
14661
  native: !0,
14666
- theme: M.value,
14662
+ theme: h.value,
14667
14663
  "picker-type": "",
14668
- onSelect: k
14664
+ onSelect: _
14669
14665
  }, null, 8, ["theme"])
14670
14666
  ]),
14671
14667
  _: 1
14672
14668
  }),
14673
- o("button", {
14674
- class: "chat-input__button-template",
14675
- onClick: _[2] || (_[2] = (N) => i.value = !i.value)
14676
- }, _[6] || (_[6] = [
14677
- o("span", { class: "pi pi-objects-column" }, null, -1)
14678
- ])),
14679
- S(H, null, {
14680
- default: K(() => [
14681
- i.value ? (l(), L(_i, {
14682
- key: 0,
14683
- templates: e.templates.templates,
14684
- onCloseTemplateWindow: _[3] || (_[3] = (N) => i.value = !i.value),
14685
- onPasteTemplate: u
14686
- }, null, 8, ["templates"])) : y("", !0)
14687
- ]),
14688
- _: 1
14689
- }),
14669
+ F(M.$slots, "buttons", {}, void 0, !0),
14690
14670
  S(si, {
14671
+ style: { "margin-top": "9px" },
14691
14672
  channels: e.channels,
14692
- onSelectChannel: h
14673
+ onSelectChannel: m
14693
14674
  }, null, 8, ["channels"])
14694
14675
  ])
14695
14676
  ])
14696
14677
  ]));
14697
14678
  }
14698
- }, fl = /* @__PURE__ */ j(ji, [["__scopeId", "data-v-ea34b17e"]]), Vi = { class: "chat-item__avatar-container" }, Ei = ["src"], Ti = {
14679
+ }, tl = /* @__PURE__ */ D(Vi, [["__scopeId", "data-v-2d973fc3"]]), Ei = { class: "chat-item__avatar-container" }, Ti = ["src"], xi = {
14699
14680
  key: 1,
14700
14681
  class: "pi pi-user"
14701
- }, xi = { class: "chat-item__info-container" }, Si = { class: "chat-item__name" }, zi = {
14682
+ }, Si = { class: "chat-item__info-container" }, zi = { class: "chat-item__name" }, Oi = {
14702
14683
  key: 0,
14703
14684
  class: "chat-item__last-message"
14704
- }, Oi = { class: "chat-item__details-container" }, Ci = {
14685
+ }, Ci = { class: "chat-item__details-container" }, Ui = {
14705
14686
  key: 0,
14706
14687
  class: "chat-item__time"
14707
- }, Ui = {
14688
+ }, Li = {
14708
14689
  key: 1,
14709
14690
  class: "chat-item__unread"
14710
- }, Li = {
14691
+ }, Qi = {
14711
14692
  key: 3,
14712
14693
  class: "chat-item__status-chat-container"
14713
- }, Qi = {
14694
+ }, Bi = {
14714
14695
  key: 0,
14715
14696
  class: "pi pi-check"
14716
- }, Bi = {
14697
+ }, Yi = {
14717
14698
  key: 1,
14718
14699
  class: "chat-item__fixed pi pi-thumbtack"
14719
- }, Yi = {
14700
+ }, Ri = {
14720
14701
  __name: "ChatItem",
14721
14702
  props: {
14722
14703
  chat: {
@@ -14730,13 +14711,13 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14730
14711
  a("select", n.chat);
14731
14712
  }, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", A = (M) => {
14732
14713
  g(), a("action", { chatId: n.chat.chatId, ...M });
14733
- }, i = b(!1), u = b(!1), r = () => {
14714
+ }, o = v(!1), u = v(!1), r = () => {
14734
14715
  u.value = !0;
14735
14716
  }, g = () => {
14736
- u.value = !1, i.value = !1;
14737
- }, d = T(() => Ne(n.chat["lastMessage.status"]));
14717
+ u.value = !1, o.value = !1;
14718
+ }, d = x(() => Ne(n.chat["lastMessage.status"]));
14738
14719
  let m;
14739
- const p = b(0), h = ["typing.", "typing..", "typing..."], I = T(() => n.chat.typing ? h[p.value] : n.chat.lastMessage);
14720
+ const p = v(0), h = ["typing.", "typing..", "typing..."], _ = x(() => n.chat.typing ? h[p.value] : n.chat.lastMessage);
14740
14721
  return we(
14741
14722
  () => n.chat.typing,
14742
14723
  () => {
@@ -14745,17 +14726,17 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14745
14726
  }, 1e3) : (p.value = 0, clearInterval(m));
14746
14727
  },
14747
14728
  { immediate: !0 }
14748
- ), (M, k) => (l(), c("div", {
14749
- class: D(s()),
14729
+ ), (M, b) => (l(), c("div", {
14730
+ class: V(s()),
14750
14731
  onClick: t
14751
14732
  }, [
14752
- o("div", {
14733
+ i("div", {
14753
14734
  class: "chat-item__container",
14754
14735
  onMouseenter: r,
14755
14736
  onMouseleave: g
14756
14737
  }, [
14757
- o("div", Vi, [
14758
- o("span", {
14738
+ i("div", Ei, [
14739
+ i("span", {
14759
14740
  class: "chat-item__status-user",
14760
14741
  style: z({ backgroundColor: n.chat.status })
14761
14742
  }, null, 4),
@@ -14764,36 +14745,36 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14764
14745
  src: n.chat.avatar,
14765
14746
  height: "48",
14766
14747
  width: "48"
14767
- }, null, 8, Ei)) : (l(), c("span", Ti))
14748
+ }, null, 8, Ti)) : (l(), c("span", xi))
14768
14749
  ]),
14769
- o("div", xi, [
14770
- o("div", Si, w(e.chat.name), 1),
14771
- e.chat.lastMessage || e.chat.typing ? (l(), c("div", zi, w(I.value), 1)) : y("", !0)
14750
+ i("div", Si, [
14751
+ i("div", zi, I(e.chat.name), 1),
14752
+ e.chat.lastMessage || e.chat.typing ? (l(), c("div", Oi, I(_.value), 1)) : y("", !0)
14772
14753
  ]),
14773
- o("div", Oi, [
14774
- e.chat["lastActivity.time"] ? (l(), c("div", Ci, w(e.chat["lastActivity.time"]), 1)) : y("", !0),
14775
- e.chat.countUnread > 0 ? (l(), c("div", Ui, w(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : y("", !0),
14754
+ i("div", Ci, [
14755
+ e.chat["lastActivity.time"] ? (l(), c("div", Ui, I(e.chat["lastActivity.time"]), 1)) : y("", !0),
14756
+ e.chat.countUnread > 0 ? (l(), c("div", Li, I(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : y("", !0),
14776
14757
  u.value && e.chat.actions ? (l(), c("button", {
14777
14758
  key: 2,
14778
14759
  class: "chat-item__menu-button",
14779
- onClick: k[0] || (k[0] = (v) => i.value = !i.value)
14780
- }, k[1] || (k[1] = [
14781
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
14760
+ onClick: b[0] || (b[0] = (w) => o.value = !o.value)
14761
+ }, b[1] || (b[1] = [
14762
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
14782
14763
  ]))) : y("", !0),
14783
- e.chat.countUnread < 1 ? (l(), c("div", Li, [
14784
- q(ke).includes(e.chat["lastMessage.status"]) ? (l(), c("div", {
14764
+ e.chat.countUnread < 1 ? (l(), c("div", Qi, [
14765
+ Y(ke).includes(e.chat["lastMessage.status"]) ? (l(), c("div", {
14785
14766
  key: 0,
14786
- class: D(["chat-item__status-message", d.value])
14767
+ class: V(["chat-item__status-message", d.value])
14787
14768
  }, [
14788
- e.chat["lastMessage.status"] !== "send" ? (l(), c("span", Qi)) : y("", !0),
14789
- k[2] || (k[2] = o("span", { class: "pi pi-check" }, null, -1))
14769
+ e.chat["lastMessage.status"] !== "send" ? (l(), c("span", Bi)) : y("", !0),
14770
+ b[2] || (b[2] = i("span", { class: "pi pi-check" }, null, -1))
14790
14771
  ], 2)) : y("", !0),
14791
- e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), c("span", Bi)) : y("", !0)
14772
+ e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), c("span", Yi)) : y("", !0)
14792
14773
  ])) : y("", !0)
14793
14774
  ]),
14794
14775
  S(H, { name: "menu" }, {
14795
14776
  default: K(() => [
14796
- i.value && e.chat.actions ? (l(), L(ge, {
14777
+ o.value && e.chat.actions ? (l(), C(ge, {
14797
14778
  key: 0,
14798
14779
  class: "chat-item__context-menu",
14799
14780
  actions: e.chat.actions,
@@ -14805,17 +14786,17 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14805
14786
  ], 32)
14806
14787
  ], 2));
14807
14788
  }
14808
- }, lf = /* @__PURE__ */ j(Yi, [["__scopeId", "data-v-e2ad67d9"]]), Ri = { class: "chat-filter" }, qi = { class: "chat-filter__container" }, Fi = {
14789
+ }, lf = /* @__PURE__ */ D(Ri, [["__scopeId", "data-v-e2ad67d9"]]), qi = { class: "chat-filter" }, Fi = { class: "chat-filter__container" }, $i = {
14809
14790
  __name: "ChatFilter",
14810
14791
  emits: ["update"],
14811
14792
  setup(e, { emit: f }) {
14812
- const n = b(""), a = f, t = () => {
14813
- const s = q(n);
14793
+ const n = v(""), a = f, t = () => {
14794
+ const s = Y(n);
14814
14795
  a("update", s.value);
14815
14796
  };
14816
- return (s, A) => (l(), c("div", Ri, [
14817
- o("div", qi, [
14818
- o("input", {
14797
+ return (s, A) => (l(), c("div", qi, [
14798
+ i("div", Fi, [
14799
+ i("input", {
14819
14800
  ref_key: "refInput",
14820
14801
  ref: n,
14821
14802
  class: "chat-filter__input",
@@ -14826,16 +14807,16 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14826
14807
  ])
14827
14808
  ]));
14828
14809
  }
14829
- }, $i = /* @__PURE__ */ j(Fi, [["__scopeId", "data-v-f043bb19"]]), Wi = { class: "chat-list" }, Ji = {
14810
+ }, Wi = /* @__PURE__ */ D($i, [["__scopeId", "data-v-f043bb19"]]), Ji = { class: "chat-list" }, Hi = {
14830
14811
  key: 0,
14831
14812
  class: "chat-list__title"
14832
- }, Hi = {
14813
+ }, Ki = {
14833
14814
  key: 0,
14834
14815
  class: "pi pi-minus"
14835
- }, Ki = {
14816
+ }, Pi = {
14836
14817
  key: 1,
14837
14818
  class: "pi pi-plus"
14838
- }, Pi = { class: "chat-list__items" }, Zi = { class: "chat-list__fixed-items-top" }, Gi = { class: "chat-list__scrollable-items" }, Xi = { class: "chat-list__fixed-items-bottom" }, eo = {
14819
+ }, Zi = { class: "chat-list__items" }, Gi = { class: "chat-list__fixed-items-top" }, Xi = { class: "chat-list__scrollable-items" }, eo = { class: "chat-list__fixed-items-bottom" }, fo = {
14839
14820
  __name: "ChatList",
14840
14821
  props: {
14841
14822
  title: {
@@ -14858,9 +14839,9 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14858
14839
  },
14859
14840
  emits: ["select", "action"],
14860
14841
  setup(e, { emit: f }) {
14861
- const n = b(""), a = b(!1), t = () => {
14842
+ const n = v(""), a = v(!1), t = () => {
14862
14843
  a.value = !1;
14863
- }, s = e, A = f, i = (d) => {
14844
+ }, s = e, A = f, o = (d) => {
14864
14845
  s.chats.forEach((p) => p.isSelected = !1);
14865
14846
  const m = s.chats.find((p) => p.chatId === d.chatId);
14866
14847
  m.isSelected = !0, A("select", d);
@@ -14875,22 +14856,22 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14875
14856
  }).filter((d) => d.name.includes(n.value) || d.metadata.includes(n.value)), r = (d) => {
14876
14857
  n.value = d;
14877
14858
  }, g = (d) => A("action", d);
14878
- return (d, m) => (l(), c("div", Wi, [
14879
- o("div", {
14859
+ return (d, m) => (l(), c("div", Ji, [
14860
+ i("div", {
14880
14861
  class: "chat-list__title-container",
14881
14862
  onMouseleave: t
14882
14863
  }, [
14883
- e.title ? (l(), c("h2", Ji, w(e.title), 1)) : y("", !0),
14864
+ e.title ? (l(), c("h2", Hi, I(e.title), 1)) : y("", !0),
14884
14865
  e.actions.length ? (l(), c("button", {
14885
14866
  key: 1,
14886
14867
  class: "chat-list__button-actions",
14887
14868
  onClick: m[0] || (m[0] = (p) => a.value = !a.value)
14888
14869
  }, [
14889
- a.value ? (l(), c("span", Hi)) : (l(), c("span", Ki))
14870
+ a.value ? (l(), c("span", Ki)) : (l(), c("span", Pi))
14890
14871
  ])) : y("", !0),
14891
14872
  S(H, null, {
14892
14873
  default: K(() => [
14893
- a.value && e.actions ? (l(), L(ge, {
14874
+ a.value && e.actions ? (l(), C(ge, {
14894
14875
  key: 0,
14895
14876
  actions: e.actions,
14896
14877
  class: "chat-list__context-menu",
@@ -14900,46 +14881,46 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14900
14881
  _: 1
14901
14882
  })
14902
14883
  ], 32),
14903
- e.filterEnabled ? (l(), L($i, {
14884
+ e.filterEnabled ? (l(), C(Wi, {
14904
14885
  key: 0,
14905
14886
  class: "chat-list__filter",
14906
14887
  onUpdate: r
14907
14888
  })) : y("", !0),
14908
- o("div", Pi, [
14909
- o("div", Zi, [
14910
- (l(!0), c(B, null, Y(u().filter((p) => p.isFixedTop), (p) => (l(), L(lf, {
14889
+ i("div", Zi, [
14890
+ i("div", Gi, [
14891
+ (l(!0), c(Q, null, R(u().filter((p) => p.isFixedTop), (p) => (l(), C(lf, {
14911
14892
  key: p.chatId,
14912
14893
  class: "chat-list__item",
14913
14894
  chat: p,
14914
- onSelect: i,
14895
+ onSelect: o,
14915
14896
  onAction: g
14916
14897
  }, null, 8, ["chat"]))), 128))
14917
14898
  ]),
14918
- o("div", Gi, [
14919
- (l(!0), c(B, null, Y(u().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (l(), L(lf, {
14899
+ i("div", Xi, [
14900
+ (l(!0), c(Q, null, R(u().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (l(), C(lf, {
14920
14901
  key: p.chatId,
14921
14902
  class: "chat-list__item",
14922
14903
  chat: p,
14923
- onSelect: i,
14904
+ onSelect: o,
14924
14905
  onAction: g
14925
14906
  }, null, 8, ["chat"]))), 128))
14926
14907
  ]),
14927
- o("div", Xi, [
14928
- (l(!0), c(B, null, Y(u().filter((p) => p.isFixedBottom), (p) => (l(), L(lf, {
14908
+ i("div", eo, [
14909
+ (l(!0), c(Q, null, R(u().filter((p) => p.isFixedBottom), (p) => (l(), C(lf, {
14929
14910
  key: p.chatId,
14930
14911
  class: "chat-list__item",
14931
14912
  chat: p,
14932
- onSelect: i,
14913
+ onSelect: o,
14933
14914
  onAction: g
14934
14915
  }, null, 8, ["chat"]))), 128))
14935
14916
  ])
14936
14917
  ])
14937
14918
  ]));
14938
14919
  }
14939
- }, nl = /* @__PURE__ */ j(eo, [["__scopeId", "data-v-56d1c0f8"]]), fo = ["messageId"], no = ["src"], ao = ["src"], to = { class: "video-message__controls" }, Ao = { class: "video-message__remaining-time" }, so = { class: "video-message__info-container" }, io = { class: "video-message__time" }, oo = {
14920
+ }, Al = /* @__PURE__ */ D(fo, [["__scopeId", "data-v-56d1c0f8"]]), no = ["messageId"], ao = ["src"], to = ["src"], Ao = { class: "video-message__controls" }, so = { class: "video-message__remaining-time" }, io = { class: "video-message__info-container" }, oo = { class: "video-message__time" }, lo = {
14940
14921
  key: 0,
14941
14922
  class: "pi pi-check"
14942
- }, lo = ["href"], uo = {
14923
+ }, uo = ["href"], ro = {
14943
14924
  __name: "VideoMessage",
14944
14925
  props: {
14945
14926
  message: {
@@ -14949,27 +14930,27 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14949
14930
  },
14950
14931
  setup(e) {
14951
14932
  const f = e;
14952
- function n(I) {
14953
- return I.position === "left" ? "video-message__left" : "video-message__right";
14933
+ function n(_) {
14934
+ return _.position === "left" ? "video-message__left" : "video-message__right";
14954
14935
  }
14955
- const a = b(null), t = b(!1), s = b(0), A = b(0), i = b(!1), u = b(!1), r = () => {
14936
+ const a = v(null), t = v(!1), s = v(0), A = v(0), o = v(!1), u = v(!1), r = () => {
14956
14937
  u.value = !0;
14957
14938
  }, g = () => {
14958
- u.value = !1, i.value = !1;
14959
- }, d = T(() => Ne(f.message.status));
14939
+ u.value = !1, o.value = !1;
14940
+ }, d = x(() => Ne(f.message.status));
14960
14941
  function m() {
14961
14942
  a.value && (t.value ? a.value.pause() : a.value.play(), t.value = !t.value);
14962
14943
  }
14963
- const p = (I) => {
14964
- const M = Math.floor(I / 60), k = Math.floor(I % 60);
14965
- return `${M.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
14966
- }, h = T(() => {
14944
+ const p = (_) => {
14945
+ const M = Math.floor(_ / 60), b = Math.floor(_ % 60);
14946
+ return `${M.toString().padStart(2, "0")}:${b.toString().padStart(2, "0")}`;
14947
+ }, h = x(() => {
14967
14948
  if (a.value) {
14968
14949
  if (A.value >= s.value)
14969
14950
  return t.value = !1, "00:00";
14970
14951
  {
14971
- const I = s.value - A.value;
14972
- return p(I);
14952
+ const _ = s.value - A.value;
14953
+ return p(_);
14973
14954
  }
14974
14955
  } else
14975
14956
  return "";
@@ -14980,8 +14961,8 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14980
14961
  }), a.value.addEventListener("timeupdate", () => {
14981
14962
  A.value = a.value.currentTime;
14982
14963
  });
14983
- }), (I, M) => (l(), c("div", {
14984
- class: D(["video-message", n(e.message)]),
14964
+ }), (_, M) => (l(), c("div", {
14965
+ class: V(["video-message", n(e.message)]),
14985
14966
  messageId: e.message.messageId,
14986
14967
  onMouseleave: g
14987
14968
  }, [
@@ -14992,32 +14973,32 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
14992
14973
  height: "32",
14993
14974
  width: "32",
14994
14975
  style: z({ gridRow: e.message.subText ? "2" : "1" })
14995
- }, null, 12, no)) : y("", !0),
14996
- o("div", {
14976
+ }, null, 12, ao)) : y("", !0),
14977
+ i("div", {
14997
14978
  class: "video-message__content",
14998
14979
  onMouseenter: r
14999
14980
  }, [
15000
- o("video", {
14981
+ i("video", {
15001
14982
  ref_key: "player",
15002
14983
  ref: a,
15003
14984
  class: "video-message__video",
15004
14985
  src: e.message.url
15005
- }, null, 8, ao),
15006
- o("div", to, [
14986
+ }, null, 8, to),
14987
+ i("div", Ao, [
15007
14988
  S(H, null, {
15008
14989
  default: K(() => [
15009
- te(o("button", {
14990
+ te(i("button", {
15010
14991
  class: "video-message__play",
15011
14992
  onClick: m
15012
14993
  }, M[1] || (M[1] = [
15013
- o("span", { class: "pi pi-play" }, null, -1)
14994
+ i("span", { class: "pi pi-play" }, null, -1)
15014
14995
  ]), 512), [
15015
14996
  [pe, !t.value]
15016
14997
  ])
15017
14998
  ]),
15018
14999
  _: 1
15019
15000
  }),
15020
- te(o("button", {
15001
+ te(i("button", {
15021
15002
  class: "video-message__pause",
15022
15003
  onClick: m
15023
15004
  }, null, 512), [
@@ -15027,62 +15008,62 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15027
15008
  u.value && e.message.actions ? (l(), c("button", {
15028
15009
  key: 0,
15029
15010
  class: "video-message__menu-button",
15030
- onClick: M[0] || (M[0] = (k) => i.value = !i.value)
15011
+ onClick: M[0] || (M[0] = (b) => o.value = !o.value)
15031
15012
  }, M[2] || (M[2] = [
15032
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
15013
+ i("span", { class: "pi pi-ellipsis-h" }, null, -1)
15033
15014
  ]))) : y("", !0),
15034
15015
  S(H, null, {
15035
15016
  default: K(() => [
15036
- i.value && e.message.actions ? (l(), L(ge, {
15017
+ o.value && e.message.actions ? (l(), C(ge, {
15037
15018
  key: 0,
15038
15019
  class: "video-message__context-menu",
15039
15020
  actions: e.message.actions,
15040
- onClick: I.clickAction
15021
+ onClick: _.clickAction
15041
15022
  }, null, 8, ["actions", "onClick"])) : y("", !0)
15042
15023
  ]),
15043
15024
  _: 1
15044
15025
  }),
15045
- o("p", Ao, w(`${h.value}`), 1),
15046
- o("div", so, [
15047
- o("span", io, w(e.message.time), 1),
15048
- n(e.message) === "video-message__right" && q(ke).includes(e.message.status) ? (l(), c("div", {
15026
+ i("p", so, I(`${h.value}`), 1),
15027
+ i("div", io, [
15028
+ i("span", oo, I(e.message.time), 1),
15029
+ n(e.message) === "video-message__right" && Y(ke).includes(e.message.status) ? (l(), c("div", {
15049
15030
  key: 0,
15050
- class: D(["video-message__status", d.value])
15031
+ class: V(["video-message__status", d.value])
15051
15032
  }, [
15052
- e.message.status !== "sent" ? (l(), c("span", oo)) : y("", !0),
15053
- M[3] || (M[3] = o("span", { class: "pi pi-check" }, null, -1))
15033
+ e.message.status !== "sent" ? (l(), c("span", lo)) : y("", !0),
15034
+ M[3] || (M[3] = i("span", { class: "pi pi-check" }, null, -1))
15054
15035
  ], 2)) : y("", !0)
15055
15036
  ]),
15056
- o("a", {
15037
+ i("a", {
15057
15038
  class: "video-message__download-button",
15058
15039
  href: e.message.url,
15059
15040
  download: "",
15060
15041
  target: "_blank"
15061
15042
  }, M[4] || (M[4] = [
15062
- o("span", { class: "pi pi-download" }, null, -1)
15063
- ]), 8, lo)
15043
+ i("span", { class: "pi pi-download" }, null, -1)
15044
+ ]), 8, uo)
15064
15045
  ], 32)
15065
- ], 42, fo));
15046
+ ], 42, no));
15066
15047
  }
15067
- }, ro = /* @__PURE__ */ j(uo, [["__scopeId", "data-v-b35fb647"]]), co = { class: "call-message" }, go = ["messageId"], mo = ["src"], po = {
15048
+ }, co = /* @__PURE__ */ D(ro, [["__scopeId", "data-v-c2e27925"]]), go = { class: "call-message" }, mo = ["messageId"], po = ["src"], Mo = {
15068
15049
  key: 1,
15069
15050
  class: "call-message__subtext"
15070
- }, Mo = { class: "call-message__content" }, ho = {
15051
+ }, ho = { class: "call-message__content" }, yo = {
15071
15052
  key: 0,
15072
15053
  class: "call-message__title"
15073
- }, yo = {
15054
+ }, bo = {
15074
15055
  key: 1,
15075
15056
  class: "call-message__title"
15076
- }, bo = {
15057
+ }, vo = {
15077
15058
  key: 2,
15078
15059
  class: "call-message__duration"
15079
- }, vo = {
15060
+ }, _o = {
15080
15061
  key: 3,
15081
15062
  class: "call-message__duration"
15082
- }, _o = {
15063
+ }, Io = {
15083
15064
  key: 4,
15084
15065
  class: "call-message__duration"
15085
- }, Io = { class: "call-message__info-container" }, wo = { class: "call-message__time" }, ko = {
15066
+ }, wo = { class: "call-message__info-container" }, ko = { class: "call-message__time" }, No = {
15086
15067
  __name: "CallMessage",
15087
15068
  props: {
15088
15069
  message: {
@@ -15094,9 +15075,9 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15094
15075
  function f(n) {
15095
15076
  return n.position === "left" ? "call-message__left" : "call-message__right";
15096
15077
  }
15097
- return (n, a) => (l(), c("div", co, [
15098
- o("div", {
15099
- class: D(f(e.message)),
15078
+ return (n, a) => (l(), c("div", go, [
15079
+ i("div", {
15080
+ class: V(f(e.message)),
15100
15081
  messageId: e.message.messageId
15101
15082
  }, [
15102
15083
  e.message.avatar ? (l(), c("img", {
@@ -15106,23 +15087,23 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15106
15087
  height: "32",
15107
15088
  width: "32",
15108
15089
  style: z({ gridRow: e.message.subText ? "2" : "1" })
15109
- }, null, 12, mo)) : y("", !0),
15110
- e.message.subText ? (l(), c("p", po, w(e.message.subText), 1)) : y("", !0),
15111
- o("div", Mo, [
15112
- o("span", {
15090
+ }, null, 12, po)) : y("", !0),
15091
+ e.message.subText ? (l(), c("p", Mo, I(e.message.subText), 1)) : y("", !0),
15092
+ i("div", ho, [
15093
+ i("span", {
15113
15094
  class: "call-message__icon pi pi-phone",
15114
15095
  style: z({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
15115
15096
  }, null, 4),
15116
- e.message.isMissedCall ? (l(), c("span", yo, "Пропущенный аудиозвонок")) : (l(), c("span", ho, "Аудиозвонок")),
15117
- e.message.callDuration ? (l(), c("span", bo, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (l(), c("span", vo, "Нажмите, чтобы перезвонить")) : (l(), c("span", _o, "Нет ответа")),
15118
- o("div", Io, [
15119
- o("span", wo, w(e.message.time), 1)
15097
+ e.message.isMissedCall ? (l(), c("span", bo, "Пропущенный аудиозвонок")) : (l(), c("span", yo, "Аудиозвонок")),
15098
+ e.message.callDuration ? (l(), c("span", vo, I(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (l(), c("span", _o, "Нажмите, чтобы перезвонить")) : (l(), c("span", Io, "Нет ответа")),
15099
+ i("div", wo, [
15100
+ i("span", ko, I(e.message.time), 1)
15120
15101
  ])
15121
15102
  ])
15122
- ], 10, go)
15103
+ ], 10, mo)
15123
15104
  ]));
15124
15105
  }
15125
- }, No = /* @__PURE__ */ j(ko, [["__scopeId", "data-v-8790e89d"]]), Do = { class: "system-message" }, jo = { class: "system-message__container" }, Vo = { class: "system-message__text" }, Eo = {
15106
+ }, Do = /* @__PURE__ */ D(No, [["__scopeId", "data-v-8790e89d"]]), jo = { class: "system-message" }, Vo = { class: "system-message__container" }, Eo = { class: "system-message__text" }, To = {
15126
15107
  __name: "SystemMessage",
15127
15108
  props: {
15128
15109
  message: {
@@ -15131,16 +15112,16 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15131
15112
  }
15132
15113
  },
15133
15114
  setup(e) {
15134
- return (f, n) => (l(), c("div", Do, [
15135
- o("div", jo, [
15136
- o("p", Vo, w(e.message.text), 1)
15115
+ return (f, n) => (l(), c("div", jo, [
15116
+ i("div", Vo, [
15117
+ i("p", Eo, I(e.message.text), 1)
15137
15118
  ])
15138
15119
  ]));
15139
15120
  }
15140
- }, To = /* @__PURE__ */ j(Eo, [["__scopeId", "data-v-b17746f3"]]), xo = { class: "typing-message" }, So = { class: "typing-message__container" }, zo = ["src"], Oo = {
15121
+ }, xo = /* @__PURE__ */ D(To, [["__scopeId", "data-v-b17746f3"]]), So = { class: "typing-message" }, zo = { class: "typing-message__container" }, Oo = ["src"], Co = {
15141
15122
  key: 1,
15142
15123
  class: "typing-message__subtext"
15143
- }, Co = {
15124
+ }, Uo = {
15144
15125
  __name: "TypingMessage",
15145
15126
  props: {
15146
15127
  message: {
@@ -15149,8 +15130,8 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15149
15130
  }
15150
15131
  },
15151
15132
  setup(e) {
15152
- return (f, n) => (l(), c("div", xo, [
15153
- o("div", So, [
15133
+ return (f, n) => (l(), c("div", So, [
15134
+ i("div", zo, [
15154
15135
  e.message.avatar ? (l(), c("img", {
15155
15136
  key: 0,
15156
15137
  class: "typing-message__avatar",
@@ -15158,15 +15139,15 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15158
15139
  height: "32",
15159
15140
  width: "32",
15160
15141
  style: z({ gridRow: e.message.subText ? "2" : "1" })
15161
- }, null, 12, zo)) : y("", !0),
15162
- e.message.subText ? (l(), c("p", Oo, w(e.message.subText), 1)) : y("", !0),
15163
- n[0] || (n[0] = o("div", { class: "typing-message__loader-container" }, [
15164
- o("div", { class: "typing-message__loader" })
15142
+ }, null, 12, Oo)) : y("", !0),
15143
+ e.message.subText ? (l(), c("p", Co, I(e.message.subText), 1)) : y("", !0),
15144
+ n[0] || (n[0] = i("div", { class: "typing-message__loader-container" }, [
15145
+ i("div", { class: "typing-message__loader" })
15165
15146
  ], -1))
15166
15147
  ])
15167
15148
  ]));
15168
15149
  }
15169
- }, Pf = /* @__PURE__ */ j(Co, [["__scopeId", "data-v-6ffe329a"]]), Uo = { class: "message-feed__container" }, Lo = {
15150
+ }, Kf = /* @__PURE__ */ D(Uo, [["__scopeId", "data-v-6ffe329a"]]), Lo = { class: "message-feed__container" }, Qo = {
15170
15151
  __name: "Feed",
15171
15152
  props: {
15172
15153
  objects: {
@@ -15191,29 +15172,29 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15191
15172
  },
15192
15173
  emits: ["messageAction", "loadMore"],
15193
15174
  setup(e, { emit: f }) {
15194
- const n = b(), a = b(!1), t = e, s = f, A = () => {
15195
- const d = q(n);
15175
+ const n = v(), a = v(!1), t = e, s = f, A = () => {
15176
+ const d = Y(n);
15196
15177
  d.scrollHeight - d.scrollTop - d.clientHeight < 100 ? a.value = !1 : a.value = !0, d.scrollTop === 0 && s("loadMore");
15197
- }, i = (d) => ({
15178
+ }, o = (d) => ({
15198
15179
  "message.text": ka,
15199
15180
  "message.image": ma,
15200
15181
  "message.file": fa,
15201
15182
  "message.audio": Ua,
15202
- "message.video": ro,
15203
- "message.call": No,
15204
- "message.system": To,
15183
+ "message.video": co,
15184
+ "message.call": Do,
15185
+ "message.system": xo,
15205
15186
  "system.date": Ra,
15206
- "message.typing": Pf
15187
+ "message.typing": Kf
15207
15188
  })[d];
15208
15189
  function u() {
15209
15190
  t.isScrollToBottomOnUpdateObjectsEnabled && uf(function() {
15210
- const d = q(n);
15191
+ const d = Y(n);
15211
15192
  d.scrollTop = d.scrollHeight;
15212
15193
  });
15213
15194
  }
15214
15195
  function r() {
15215
15196
  uf(function() {
15216
- const d = q(n);
15197
+ const d = Y(n);
15217
15198
  d.scrollTop = d.scrollHeight;
15218
15199
  });
15219
15200
  }
@@ -15227,15 +15208,15 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15227
15208
  class: "message-feed",
15228
15209
  onScroll: A
15229
15210
  }, [
15230
- o("div", Uo, [
15231
- (l(!0), c(B, null, Y(e.objects, (p) => (l(), L(On(i(p.type)), {
15211
+ i("div", Lo, [
15212
+ (l(!0), c(Q, null, R(e.objects, (p) => (l(), C(On(o(p.type)), {
15232
15213
  key: p.messageId,
15233
15214
  class: "message-feed__message",
15234
15215
  message: p,
15235
15216
  onAction: g
15236
15217
  }, null, 40, ["message"]))), 128))
15237
15218
  ]),
15238
- e.typing ? (l(), L(Pf, {
15219
+ e.typing ? (l(), C(Kf, {
15239
15220
  key: 0,
15240
15221
  message: {
15241
15222
  subText: e.typing.title,
@@ -15253,21 +15234,21 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15253
15234
  key: 0,
15254
15235
  style: z({ backgroundColor: e.buttonParams.color }),
15255
15236
  class: "message-feed__unread-amount"
15256
- }, w(e.buttonParams.unreadAmount), 5)) : y("", !0),
15257
- m[0] || (m[0] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
15237
+ }, I(e.buttonParams.unreadAmount), 5)) : y("", !0),
15238
+ m[0] || (m[0] = i("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
15258
15239
  ])) : y("", !0)
15259
15240
  ]),
15260
15241
  _: 1
15261
15242
  })
15262
15243
  ], 544));
15263
15244
  }
15264
- }, al = /* @__PURE__ */ j(Lo, [["__scopeId", "data-v-7101e238"]]), Qo = { class: "profile" }, Bo = {
15245
+ }, sl = /* @__PURE__ */ D(Qo, [["__scopeId", "data-v-7101e238"]]), Bo = { class: "profile" }, Yo = {
15265
15246
  key: 0,
15266
15247
  class: "profile__container"
15267
- }, Yo = {
15248
+ }, Ro = {
15268
15249
  key: 0,
15269
15250
  class: "profile__avatar-container"
15270
- }, Ro = ["src"], qo = { class: "profile__name" }, Fo = { class: "profile__email" }, $o = { class: "profile__phone" }, Wo = {
15251
+ }, qo = ["src"], Fo = { class: "profile__name" }, $o = { class: "profile__email" }, Wo = { class: "profile__phone" }, Jo = {
15271
15252
  __name: "UserProfile",
15272
15253
  props: {
15273
15254
  user: {
@@ -15276,26 +15257,26 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15276
15257
  }
15277
15258
  },
15278
15259
  setup(e) {
15279
- return (f, n) => (l(), c("div", Qo, [
15280
- e.user ? (l(), c("div", Bo, [
15281
- e.user.avatar ? (l(), c("div", Yo, [
15282
- o("span", {
15260
+ return (f, n) => (l(), c("div", Bo, [
15261
+ e.user ? (l(), c("div", Yo, [
15262
+ e.user.avatar ? (l(), c("div", Ro, [
15263
+ i("span", {
15283
15264
  class: "profile__status",
15284
15265
  style: z({ backgroundColor: e.user.status })
15285
15266
  }, null, 4),
15286
- o("img", {
15267
+ i("img", {
15287
15268
  src: e.user.avatar,
15288
15269
  height: "48",
15289
15270
  width: "48"
15290
- }, null, 8, Ro)
15271
+ }, null, 8, qo)
15291
15272
  ])) : y("", !0),
15292
- o("h2", qo, w(e.user.name), 1),
15293
- o("p", Fo, w(e.user.email), 1),
15294
- o("p", $o, w(e.user.phone), 1)
15273
+ i("h2", Fo, I(e.user.name), 1),
15274
+ i("p", $o, I(e.user.email), 1),
15275
+ i("p", Wo, I(e.user.phone), 1)
15295
15276
  ])) : y("", !0)
15296
15277
  ]));
15297
15278
  }
15298
- }, tl = /* @__PURE__ */ j(Wo, [["__scopeId", "data-v-db3ba19b"]]), Jo = { key: 0 }, Ho = { key: 1 }, Ko = {
15279
+ }, il = /* @__PURE__ */ D(Jo, [["__scopeId", "data-v-db3ba19b"]]), Ho = { class: "uploader-container" }, Ko = { key: 0 }, Po = { key: 1 }, Zo = {
15299
15280
  __name: "FileUploader",
15300
15281
  props: {
15301
15282
  canUploadFile: {
@@ -15303,14 +15284,13 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15303
15284
  required: !0,
15304
15285
  default: !0
15305
15286
  },
15306
- storybook: {
15307
- type: Boolean,
15308
- default: !1
15287
+ filebumpUrl: {
15288
+ type: String
15309
15289
  }
15310
15290
  },
15311
15291
  emits: ["fileUploaded"],
15312
15292
  setup(e, { emit: f }) {
15313
- const n = e, a = b(null), t = b(""), s = b(""), A = b(""), i = b(!1), u = b(!1), r = b(!1), g = b(null), d = [
15293
+ const n = e, a = v(null), t = v(""), s = v(""), A = v(""), o = v(!1), u = v(!1), r = v(!1), g = v(null), d = [
15314
15294
  {
15315
15295
  action: "audio/*",
15316
15296
  title: "Аудио",
@@ -15342,80 +15322,75 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15342
15322
  );
15343
15323
  const p = () => {
15344
15324
  a.value = null, m("fileUploaded", null), s.value = null, A.value = "", t.value = "";
15345
- }, h = (_) => {
15346
- p(), console.log("onFileSelected", _.target.files[0]), a.value = _.target.files[0], a.value && (I(), M());
15347
- }, I = () => {
15348
- const _ = a.value, N = Cf(_.type);
15349
- if (i.value = !1, u.value = !1, r.value = !1, N === "image" ? i.value = !0 : N === "video" ? u.value = !0 : N === "audio" && (r.value = !0), i.value || u.value) {
15325
+ }, h = (N) => {
15326
+ p(), console.log("onFileSelected", N.target.files[0]), a.value = N.target.files[0], a.value && (_(), M());
15327
+ }, _ = () => {
15328
+ const N = a.value, k = Of(N.type);
15329
+ if (o.value = !1, u.value = !1, r.value = !1, k === "image" ? o.value = !0 : k === "video" ? u.value = !0 : k === "audio" && (r.value = !0), o.value || u.value) {
15350
15330
  const E = new FileReader();
15351
- E.onload = (V) => {
15352
- A.value = V.target.result;
15353
- }, E.readAsDataURL(_);
15331
+ E.onload = (j) => {
15332
+ A.value = j.target.result;
15333
+ }, E.readAsDataURL(N);
15354
15334
  } else
15355
15335
  A.value = "";
15356
15336
  }, M = async () => {
15357
15337
  t.value = "uploading";
15358
- const _ = new FormData();
15359
- _.append("file", a.value);
15360
- const N = "https://filebump.services.mobilon.ru/upload";
15338
+ const N = new FormData();
15339
+ N.append("file", a.value);
15340
+ const E = (n.filebumpUrl ? n.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
15361
15341
  try {
15362
- const V = await (await fetch(
15363
- N,
15342
+ const T = await (await fetch(
15343
+ E,
15364
15344
  {
15365
15345
  method: "POST",
15366
- body: _
15346
+ body: N
15367
15347
  }
15368
15348
  )).json();
15369
- s.value = V.url, t.value = "success", m("fileUploaded", {
15370
- url: V.url,
15371
- type: Cf(a.value.type),
15349
+ s.value = T.url, t.value = "success", m("fileUploaded", {
15350
+ url: T.url,
15351
+ type: Of(a.value.type),
15372
15352
  filename: a.value.name,
15373
15353
  size: a.value.size,
15374
15354
  previewUrl: A.value,
15375
- isImage: i.value,
15355
+ isImage: o.value,
15376
15356
  isVideo: u.value,
15377
15357
  isAudio: r.value,
15378
15358
  selectedFile: a.value
15379
15359
  });
15380
- } catch (E) {
15381
- console.error("Ошибка при загрузке файла:", E), t.value = "error";
15360
+ } catch (j) {
15361
+ console.error("Ошибка при загрузке файла:", j), t.value = "error";
15382
15362
  }
15383
- }, k = (_) => {
15384
- g.value && n.canUploadFile && (g.value.accept = _.action, g.value.click());
15385
- }, v = () => {
15363
+ }, b = (N) => {
15364
+ g.value && n.canUploadFile && (g.value.accept = N.action, g.value.click());
15365
+ }, w = () => {
15386
15366
  g.value && n.canUploadFile && g.value.click();
15387
15367
  };
15388
- return (_, N) => (l(), c("div", {
15389
- class: D(["uploader-container", { "storybook-container": e.storybook }])
15390
- }, [
15391
- t.value === "uploading" ? (l(), c("div", Jo, N[0] || (N[0] = [
15392
- o("p", null, "Загрузка файла...", -1)
15393
- ]))) : t.value === "error" ? (l(), c("div", Ho, N[1] || (N[1] = [
15394
- o("p", null, "Ошибка при загрузке файла.", -1)
15395
- ]))) : (l(), c("div", {
15368
+ return (N, k) => (l(), c("div", Ho, [
15369
+ t.value === "uploading" ? (l(), c("div", Ko, k[0] || (k[0] = [
15370
+ i("p", null, "Загрузка файла...", -1)
15371
+ ]))) : t.value === "error" ? (l(), c("div", Po, k[1] || (k[1] = [
15372
+ i("p", null, "Ошибка при загрузке файла.", -1)
15373
+ ]))) : (l(), C(pn, {
15396
15374
  key: 2,
15397
- class: D(["chat-input__button-file", { "chat-input__button-file-disabled": !e.canUploadFile }])
15398
- }, [
15399
- o("input", {
15400
- ref_key: "fileInput",
15401
- ref: g,
15402
- type: "file",
15403
- onChange: h
15404
- }, null, 544),
15405
- S(Mn, {
15406
- actions: d,
15407
- mode: "hover",
15408
- "button-class": "pi pi-file-arrow-up",
15409
- "menu-side": "top",
15410
- "context-menu-key": "file-uploader",
15411
- disabled: !e.canUploadFile,
15412
- onClick: k,
15413
- onButtonClick: v
15414
- }, null, 8, ["disabled"])
15415
- ], 2))
15416
- ], 2));
15375
+ actions: d,
15376
+ mode: "hover",
15377
+ "button-class": "pi pi-file-arrow-up",
15378
+ "menu-side": "top",
15379
+ "context-menu-key": "file-uploader",
15380
+ disabled: !e.canUploadFile,
15381
+ onClick: b,
15382
+ onButtonClick: w
15383
+ }, null, 8, ["disabled"])),
15384
+ i("input", {
15385
+ style: { display: "none" },
15386
+ ref_key: "fileInput",
15387
+ ref: g,
15388
+ type: "file",
15389
+ onChange: h
15390
+ }, null, 544)
15391
+ ]));
15417
15392
  }
15418
- }, Po = /* @__PURE__ */ j(Ko, [["__scopeId", "data-v-d58a941d"]]), Zo = { key: 0 }, Go = ["value", "selected"], Xo = {
15393
+ }, Go = /* @__PURE__ */ D(Zo, [["__scopeId", "data-v-cf607c73"]]), Xo = { key: 0 }, e1 = ["value", "selected"], f1 = {
15419
15394
  __name: "ThemeMode",
15420
15395
  props: {
15421
15396
  themes: {
@@ -15437,19 +15412,19 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15437
15412
  return Ie(() => {
15438
15413
  const s = n();
15439
15414
  t(s);
15440
- }), (s, A) => e.show ? (l(), c("div", Zo, [
15441
- o("select", {
15442
- onChange: A[0] || (A[0] = (i) => a(i))
15415
+ }), (s, A) => e.show ? (l(), c("div", Xo, [
15416
+ i("select", {
15417
+ onChange: A[0] || (A[0] = (o) => a(o))
15443
15418
  }, [
15444
- (l(!0), c(B, null, Y(f.themes, (i, u) => (l(), c("option", {
15419
+ (l(!0), c(Q, null, R(f.themes, (o, u) => (l(), c("option", {
15445
15420
  key: u,
15446
- value: i.code,
15447
- selected: i.default === !0
15448
- }, w(i.name), 9, Go))), 128))
15421
+ value: o.code,
15422
+ selected: o.default === !0
15423
+ }, I(o.name), 9, e1))), 128))
15449
15424
  ], 32)
15450
15425
  ])) : y("", !0);
15451
15426
  }
15452
- }, Al = /* @__PURE__ */ j(Xo, [["__scopeId", "data-v-be17a762"]]), e1 = { class: "sidebar" }, f1 = { class: "sidebar__container" }, n1 = { class: "sidebar__list" }, a1 = ["onClick"], t1 = ["src", "alt"], A1 = { key: 1 }, s1 = { class: "sidebar__list-fixed" }, i1 = ["onClick"], o1 = ["src", "alt"], l1 = { key: 1 }, u1 = {
15427
+ }, ol = /* @__PURE__ */ D(f1, [["__scopeId", "data-v-be17a762"]]), n1 = { class: "sidebar" }, a1 = { class: "sidebar__container" }, t1 = { class: "sidebar__list" }, A1 = ["onClick"], s1 = ["src", "alt"], i1 = { key: 1 }, o1 = { class: "sidebar__list-fixed" }, l1 = ["onClick"], u1 = ["src", "alt"], r1 = { key: 1 }, c1 = {
15453
15428
  __name: "SideBar",
15454
15429
  props: {
15455
15430
  sidebarItems: {
@@ -15460,58 +15435,58 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15460
15435
  },
15461
15436
  emits: ["selectItem"],
15462
15437
  setup(e, { emit: f }) {
15463
- const a = Cn(e, "sidebarItems"), t = f, s = (i) => {
15464
- const u = a.value.find((r) => r.itemId === i);
15438
+ const a = Cn(e, "sidebarItems"), t = f, s = (o) => {
15439
+ const u = a.value.find((r) => r.itemId === o);
15465
15440
  t("selectItem", u);
15466
- }, A = (i) => {
15467
- const u = i.split(" ");
15468
- return u.length > 2 ? u.slice(0, 2).join(" ") : i;
15441
+ }, A = (o) => {
15442
+ const u = o.split(" ");
15443
+ return u.length > 2 ? u.slice(0, 2).join(" ") : o;
15469
15444
  };
15470
- return (i, u) => (l(), c("div", e1, [
15471
- o("div", f1, [
15472
- o("ul", n1, [
15473
- (l(!0), c(B, null, Y(a.value.filter((r) => !r.isFixedBottom), (r, g) => (l(), c("li", {
15445
+ return (o, u) => (l(), c("div", n1, [
15446
+ i("div", a1, [
15447
+ i("ul", t1, [
15448
+ (l(!0), c(Q, null, R(a.value.filter((r) => !r.isFixedBottom), (r, g) => (l(), c("li", {
15474
15449
  key: g,
15475
15450
  class: "sidebar__item",
15476
15451
  onClick: (d) => s(r.itemId)
15477
15452
  }, [
15478
- o("img", {
15453
+ i("img", {
15479
15454
  src: r.icon,
15480
15455
  alt: r.name,
15481
- class: D(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15482
- }, null, 10, t1),
15456
+ class: V(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15457
+ }, null, 10, s1),
15483
15458
  r.notificationCount ? (l(), c("span", {
15484
15459
  key: 0,
15485
15460
  style: z({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15486
- }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15487
- r.name ? (l(), c("p", A1, w(A(r.name)), 1)) : y("", !0)
15488
- ], 8, a1))), 128))
15461
+ }, I(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15462
+ r.name ? (l(), c("p", i1, I(A(r.name)), 1)) : y("", !0)
15463
+ ], 8, A1))), 128))
15489
15464
  ]),
15490
- o("ul", s1, [
15491
- (l(!0), c(B, null, Y(a.value.filter((r) => r.isFixedBottom), (r, g) => (l(), c("li", {
15465
+ i("ul", o1, [
15466
+ (l(!0), c(Q, null, R(a.value.filter((r) => r.isFixedBottom), (r, g) => (l(), c("li", {
15492
15467
  key: g,
15493
15468
  class: "sidebar__item",
15494
15469
  onClick: (d) => s(r.itemId)
15495
15470
  }, [
15496
- o("img", {
15471
+ i("img", {
15497
15472
  src: r.icon,
15498
15473
  alt: r.name,
15499
- class: D(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15500
- }, null, 10, o1),
15474
+ class: V(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15475
+ }, null, 10, u1),
15501
15476
  r.notificationCount ? (l(), c("span", {
15502
15477
  key: 0,
15503
15478
  style: z({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15504
- }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15505
- r.name ? (l(), c("p", l1, w(A(r.name)), 1)) : y("", !0)
15506
- ], 8, i1))), 128))
15479
+ }, I(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15480
+ r.name ? (l(), c("p", r1, I(A(r.name)), 1)) : y("", !0)
15481
+ ], 8, l1))), 128))
15507
15482
  ])
15508
15483
  ])
15509
15484
  ]));
15510
15485
  }
15511
- }, sl = /* @__PURE__ */ j(u1, [["__scopeId", "data-v-5e22516c"]]), r1 = { class: "chat-panel" }, c1 = { class: "chat-panel__title-container" }, d1 = {
15486
+ }, ll = /* @__PURE__ */ D(c1, [["__scopeId", "data-v-5e22516c"]]), d1 = { class: "chat-panel" }, g1 = { class: "chat-panel__title-container" }, m1 = {
15512
15487
  key: 0,
15513
15488
  class: "chat-panel__title"
15514
- }, g1 = {
15489
+ }, p1 = {
15515
15490
  __name: "ChatPanel",
15516
15491
  props: {
15517
15492
  title: {
@@ -15522,25 +15497,55 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15522
15497
  },
15523
15498
  emits: ["close-panel"],
15524
15499
  setup(e, { emit: f }) {
15525
- return (n, a) => (l(), c("div", r1, [
15526
- o("div", c1, [
15527
- e.title ? (l(), c("p", d1, w(e.title), 1)) : y("", !0),
15528
- o("button", {
15500
+ return (n, a) => (l(), c("div", d1, [
15501
+ i("div", g1, [
15502
+ e.title ? (l(), c("p", m1, I(e.title), 1)) : y("", !0),
15503
+ i("button", {
15529
15504
  class: "chat-panel__button-close",
15530
15505
  onClick: a[0] || (a[0] = (t) => n.$emit("close-panel"))
15531
15506
  }, a[1] || (a[1] = [
15532
- o("span", { class: "pi pi-times" }, null, -1)
15507
+ i("span", { class: "pi pi-times" }, null, -1)
15533
15508
  ]))
15534
15509
  ]),
15535
- o("div", null, [
15536
- J(n.$slots, "content", {}, void 0, !0)
15510
+ i("div", null, [
15511
+ F(n.$slots, "content", {}, void 0, !0)
15537
15512
  ])
15538
15513
  ]));
15539
15514
  }
15540
- }, il = /* @__PURE__ */ j(g1, [["__scopeId", "data-v-1f6ac199"]]), m1 = {
15515
+ }, ul = /* @__PURE__ */ D(p1, [["__scopeId", "data-v-1f6ac199"]]), M1 = {
15516
+ __name: "ButtonTemplateSelector",
15517
+ props: {
15518
+ templates: {
15519
+ type: Array,
15520
+ required: !1,
15521
+ default: () => []
15522
+ }
15523
+ },
15524
+ setup(e) {
15525
+ const f = v(!1);
15526
+ return (n, a) => (l(), c(Q, null, [
15527
+ i("button", {
15528
+ class: "button-template",
15529
+ onClick: a[0] || (a[0] = (t) => f.value = !f.value)
15530
+ }, a[2] || (a[2] = [
15531
+ i("span", { class: "pi pi-objects-column" }, null, -1)
15532
+ ])),
15533
+ S(H, null, {
15534
+ default: K(() => [
15535
+ f.value ? (l(), C(Ii, {
15536
+ key: 0,
15537
+ templates: e.templates,
15538
+ onCloseTemplateWindow: a[1] || (a[1] = (t) => f.value = !f.value)
15539
+ }, null, 8, ["templates"])) : y("", !0)
15540
+ ]),
15541
+ _: 1
15542
+ })
15543
+ ], 64));
15544
+ }
15545
+ }, rl = /* @__PURE__ */ D(M1, [["__scopeId", "data-v-ac43c113"]]), h1 = {
15541
15546
  key: 0,
15542
15547
  class: "new-chat-modal"
15543
- }, p1 = { class: "modal-content" }, M1 = { class: "participant-list" }, h1 = ["id", "value"], y1 = ["for"], b1 = {
15548
+ }, y1 = { class: "modal-content" }, b1 = { class: "participant-list" }, v1 = ["id", "value"], _1 = ["for"], I1 = {
15544
15549
  __name: "SelectUser",
15545
15550
  props: {
15546
15551
  users: {
@@ -15554,79 +15559,79 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15554
15559
  },
15555
15560
  emits: ["confirm", "close"],
15556
15561
  setup(e, { emit: f }) {
15557
- const n = b(!0), a = b([]), t = f, s = async () => {
15558
- t("confirm", a.value), A(), i();
15562
+ const n = v(!0), a = v([]), t = f, s = async () => {
15563
+ t("confirm", a.value), A(), o();
15559
15564
  }, A = () => {
15560
15565
  t("close"), n.value = !1;
15561
- }, i = () => {
15566
+ }, o = () => {
15562
15567
  a.value = [];
15563
15568
  }, u = () => {
15564
- A(), i();
15569
+ A(), o();
15565
15570
  };
15566
15571
  return (r, g) => (l(), c("div", null, [
15567
- n.value ? (l(), c("div", m1, [
15568
- o("div", p1, [
15569
- o("h2", null, w(e.title), 1),
15570
- o("div", M1, [
15571
- (l(!0), c(B, null, Y(e.users, (d) => (l(), c("div", {
15572
+ n.value ? (l(), c("div", h1, [
15573
+ i("div", y1, [
15574
+ i("h2", null, I(e.title), 1),
15575
+ i("div", b1, [
15576
+ (l(!0), c(Q, null, R(e.users, (d) => (l(), c("div", {
15572
15577
  key: d.userId,
15573
15578
  class: "participant-item"
15574
15579
  }, [
15575
- te(o("input", {
15580
+ te(i("input", {
15576
15581
  id: d.userId,
15577
15582
  "onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
15578
15583
  type: "checkbox",
15579
15584
  value: d.userId
15580
- }, null, 8, h1), [
15585
+ }, null, 8, v1), [
15581
15586
  [Un, a.value]
15582
15587
  ]),
15583
- o("label", {
15588
+ i("label", {
15584
15589
  for: d.userId
15585
- }, w(d.name || "unknown username"), 9, y1)
15590
+ }, I(d.name || "unknown username"), 9, _1)
15586
15591
  ]))), 128))
15587
15592
  ]),
15588
- o("div", { class: "modal-actions" }, [
15589
- o("button", { onClick: s }, " ОК "),
15590
- o("button", { onClick: u }, " Отмена ")
15593
+ i("div", { class: "modal-actions" }, [
15594
+ i("button", { onClick: s }, " ОК "),
15595
+ i("button", { onClick: u }, " Отмена ")
15591
15596
  ])
15592
15597
  ])
15593
15598
  ])) : y("", !0)
15594
15599
  ]));
15595
15600
  }
15596
- }, ol = /* @__PURE__ */ j(b1, [["__scopeId", "data-v-66249b80"]]), v1 = { class: "modal-backdrop" }, _1 = {
15601
+ }, cl = /* @__PURE__ */ D(I1, [["__scopeId", "data-v-66249b80"]]), w1 = { class: "modal-backdrop" }, k1 = {
15597
15602
  class: "modal",
15598
15603
  role: "dialog",
15599
15604
  "aria-labelledby": "modalTitle",
15600
15605
  "aria-describedby": "modalDescription"
15601
- }, I1 = {
15606
+ }, N1 = {
15602
15607
  id: "modalDescription",
15603
15608
  class: "modal-body"
15604
- }, w1 = { class: "buttons" }, k1 = {
15609
+ }, D1 = { class: "buttons" }, j1 = {
15605
15610
  __name: "Modal",
15606
15611
  emits: ["close", "submit"],
15607
15612
  setup(e, { emit: f }) {
15608
15613
  const n = f, a = (s) => {
15609
15614
  n("submit", s);
15610
- }, t = b(null);
15611
- return (s, A) => (l(), L(H, { name: "modal-fade" }, {
15615
+ }, t = v(null);
15616
+ return (s, A) => (l(), C(H, { name: "modal-fade" }, {
15612
15617
  default: K(() => [
15613
- o("div", v1, [
15614
- o("div", _1, [
15615
- o("div", I1, [
15616
- J(s.$slots, "default", {}, void 0, !0)
15618
+ i("div", w1, [
15619
+ i("div", k1, [
15620
+ i("div", N1, [
15621
+ F(s.$slots, "default", {}, void 0, !0)
15617
15622
  ]),
15618
- o("div", w1, [
15619
- o("button", {
15623
+ i("div", D1, [
15624
+ i("button", {
15620
15625
  type: "button",
15621
15626
  class: "btn-green",
15622
15627
  "aria-label": "Close modal",
15623
- onClick: A[0] || (A[0] = (i) => a(t.value))
15628
+ onClick: A[0] || (A[0] = (o) => a(t.value))
15624
15629
  }, " OK "),
15625
- o("button", {
15630
+ i("button", {
15626
15631
  type: "button",
15627
15632
  class: "btn-green",
15628
15633
  "aria-label": "Close modal",
15629
- onClick: A[1] || (A[1] = (i) => s.$emit("close"))
15634
+ onClick: A[1] || (A[1] = (o) => s.$emit("close"))
15630
15635
  }, " Cancel ")
15631
15636
  ])
15632
15637
  ])
@@ -15635,32 +15640,32 @@ const Ws = ["id"], Js = ["id"], Hs = { class: "context-menu__container" }, Ks =
15635
15640
  _: 3
15636
15641
  }));
15637
15642
  }
15638
- }, N1 = /* @__PURE__ */ j(k1, [["__scopeId", "data-v-d48a1772"]]);
15643
+ }, V1 = /* @__PURE__ */ D(j1, [["__scopeId", "data-v-d48a1772"]]);
15639
15644
  function wf({ component: e, attrs: f }) {
15640
15645
  return new Promise((n) => {
15641
15646
  const a = document.createElement("div");
15642
15647
  document.body.appendChild(a);
15643
- const t = b({}), s = () => {
15648
+ const t = v({}), s = () => {
15644
15649
  r.unmount(), document.body.removeChild(a);
15645
15650
  }, A = () => {
15646
15651
  s(), n(t.value);
15647
- }, i = (g) => {
15652
+ }, o = (g) => {
15648
15653
  const d = Object.keys(g)[0];
15649
15654
  t.value[d] = g[d];
15650
15655
  }, u = de({
15651
15656
  render() {
15652
- return Of(
15653
- N1,
15657
+ return zf(
15658
+ V1,
15654
15659
  {
15655
15660
  onSubmit: A,
15656
15661
  onClose: s
15657
15662
  },
15658
15663
  {
15659
- default: () => Of(
15664
+ default: () => zf(
15660
15665
  Ln(() => e),
15661
15666
  {
15662
15667
  ...f,
15663
- onChange: i
15668
+ onChange: o
15664
15669
  }
15665
15670
  )
15666
15671
  }
@@ -15670,17 +15675,17 @@ function wf({ component: e, attrs: f }) {
15670
15675
  r.mount(a);
15671
15676
  });
15672
15677
  }
15673
- const ll = async (e, f) => {
15678
+ const dl = async (e, f) => {
15674
15679
  const n = await wf({
15675
15680
  //в component должен быть встроен emit change(key: value)
15676
- component: import("./SelectUser2-yYgCBcYh.js"),
15681
+ component: import("./SelectUser2-D3gb4hUF.js"),
15677
15682
  attrs: {
15678
15683
  title: e,
15679
15684
  users: f
15680
15685
  }
15681
15686
  });
15682
15687
  return console.log("data", n), n;
15683
- }, ul = async (e) => {
15688
+ }, gl = async (e) => {
15684
15689
  const f = await wf({
15685
15690
  //в component должен быть встроен emit change(key: value)
15686
15691
  component: import("./CreateChat-fkFKBxtQ.js"),
@@ -15689,29 +15694,29 @@ const ll = async (e, f) => {
15689
15694
  }
15690
15695
  });
15691
15696
  return console.log("data", f), f;
15692
- }, rl = async (e) => await wf({
15697
+ }, ml = async (e) => await wf({
15693
15698
  //в component должен быть встроен emit change(key: value)
15694
15699
  component: import("./CreateChat2-DgUQ2F5L.js"),
15695
15700
  attrs: {
15696
15701
  title: e
15697
15702
  }
15698
- }), D1 = { class: "base" }, cl = {
15703
+ }), E1 = { class: "base" }, pl = {
15699
15704
  __name: "BaseContainer",
15700
15705
  props: {
15701
15706
  height: String,
15702
15707
  width: String
15703
15708
  },
15704
15709
  setup(e) {
15705
- return (f, n) => (l(), c("div", D1, [
15706
- o("div", {
15710
+ return (f, n) => (l(), c("div", E1, [
15711
+ i("div", {
15707
15712
  class: "base__container",
15708
15713
  style: z({ height: e.height, width: e.width })
15709
15714
  }, [
15710
- J(f.$slots, "default")
15715
+ F(f.$slots, "default")
15711
15716
  ], 4)
15712
15717
  ]));
15713
15718
  }
15714
- }, j1 = { class: "float-window__container" }, V1 = ["src", "alt"], E1 = { class: "float-window__title" }, T1 = {
15719
+ }, T1 = { class: "float-window__container" }, x1 = ["src", "alt"], S1 = { class: "float-window__title" }, z1 = {
15715
15720
  __name: "FloatContainer",
15716
15721
  props: {
15717
15722
  title: {
@@ -15731,19 +15736,19 @@ const ll = async (e, f) => {
15731
15736
  },
15732
15737
  emits: ["close-window", "get-size"],
15733
15738
  setup(e, { emit: f }) {
15734
- const n = e, a = b({ x: 0, y: 0 }), t = b(null), s = b(null), A = b(!1), i = b(0), u = b(0), r = b(0), g = () => {
15739
+ const n = e, a = v({ x: 0, y: 0 }), t = v(null), s = v(null), A = v(!1), o = v(0), u = v(0), r = v(0), g = () => {
15735
15740
  if (t.value) {
15736
- const h = window.innerWidth, I = window.innerHeight, M = t.value.offsetWidth, k = t.value.offsetHeight;
15737
- a.value.x = (h - M) / 2, a.value.y = (I - k) / 2;
15741
+ const h = window.innerWidth, _ = window.innerHeight, M = t.value.offsetWidth, b = t.value.offsetHeight;
15742
+ a.value.x = (h - M) / 2, a.value.y = (_ - b) / 2;
15738
15743
  }
15739
15744
  }, d = (h) => {
15740
- A.value = !0, i.value = h.clientX - t.value.offsetLeft, u.value = h.clientY - t.value.offsetTop;
15745
+ A.value = !0, o.value = h.clientX - t.value.offsetLeft, u.value = h.clientY - t.value.offsetTop;
15741
15746
  }, m = () => A.value = !1, p = (h) => {
15742
15747
  if (A.value) {
15743
- const I = h.clientX - i.value, M = h.clientY - u.value;
15748
+ const _ = h.clientX - o.value, M = h.clientY - u.value;
15744
15749
  a.value.x = Math.max(
15745
15750
  0,
15746
- Math.min(I, window.innerWidth - t.value.offsetWidth)
15751
+ Math.min(_, window.innerWidth - t.value.offsetWidth)
15747
15752
  ), a.value.y = Math.max(
15748
15753
  0,
15749
15754
  Math.min(M, window.innerHeight - t.value.offsetHeight)
@@ -15766,7 +15771,7 @@ const ll = async (e, f) => {
15766
15771
  )
15767
15772
  );
15768
15773
  }), r.value = t.value.offsetHeight - s.value.offsetHeight;
15769
- }), (h, I) => (l(), c("div", {
15774
+ }), (h, _) => (l(), c("div", {
15770
15775
  ref_key: "element",
15771
15776
  ref: t,
15772
15777
  class: "float-window",
@@ -15779,8 +15784,8 @@ const ll = async (e, f) => {
15779
15784
  display: h.flex
15780
15785
  })
15781
15786
  }, [
15782
- o("div", j1, [
15783
- o("div", {
15787
+ i("div", T1, [
15788
+ i("div", {
15784
15789
  ref_key: "container",
15785
15790
  ref: s,
15786
15791
  class: "float-window__controls",
@@ -15794,84 +15799,84 @@ const ll = async (e, f) => {
15794
15799
  class: "float-window__avatar",
15795
15800
  src: n.avatar,
15796
15801
  alt: n.title
15797
- }, null, 8, V1)) : y("", !0),
15798
- o("p", E1, w(n.title), 1),
15799
- o("button", {
15802
+ }, null, 8, x1)) : y("", !0),
15803
+ i("p", S1, I(n.title), 1),
15804
+ i("button", {
15800
15805
  class: "float-window__close-button",
15801
- onClick: I[0] || (I[0] = (M) => h.$emit("close-window"))
15802
- }, I[1] || (I[1] = [
15803
- o("span", { class: "pi pi-times" }, null, -1)
15806
+ onClick: _[0] || (_[0] = (M) => h.$emit("close-window"))
15807
+ }, _[1] || (_[1] = [
15808
+ i("span", { class: "pi pi-times" }, null, -1)
15804
15809
  ]))
15805
15810
  ], 36),
15806
- o("div", {
15811
+ i("div", {
15807
15812
  class: "float-window__content",
15808
15813
  style: z({ height: r.value + "px" })
15809
15814
  }, [
15810
- J(h.$slots, "default", {}, void 0, !0)
15815
+ F(h.$slots, "default", {}, void 0, !0)
15811
15816
  ], 4)
15812
15817
  ])
15813
15818
  ], 4));
15814
15819
  }
15815
- }, dl = /* @__PURE__ */ j(T1, [["__scopeId", "data-v-9a949e0f"]]), x1 = {}, S1 = { class: "base-layout__container" }, z1 = { class: "base-layout__first-col" }, O1 = { class: "base-layout__second-col" };
15816
- function C1(e, f) {
15817
- return l(), c("div", S1, [
15818
- o("div", z1, [
15819
- J(e.$slots, "first-col", {}, void 0, !0)
15820
+ }, Ml = /* @__PURE__ */ D(z1, [["__scopeId", "data-v-9a949e0f"]]), O1 = {}, C1 = { class: "base-layout__container" }, U1 = { class: "base-layout__first-col" }, L1 = { class: "base-layout__second-col" };
15821
+ function Q1(e, f) {
15822
+ return l(), c("div", C1, [
15823
+ i("div", U1, [
15824
+ F(e.$slots, "first-col", {}, void 0, !0)
15820
15825
  ]),
15821
- o("div", O1, [
15822
- J(e.$slots, "second-col", {}, void 0, !0)
15826
+ i("div", L1, [
15827
+ F(e.$slots, "second-col", {}, void 0, !0)
15823
15828
  ])
15824
15829
  ]);
15825
15830
  }
15826
- const gl = /* @__PURE__ */ j(x1, [["render", C1], ["__scopeId", "data-v-93dc265d"]]), U1 = { class: "extend-layout__container" }, L1 = { class: "extend-layout__first-col" }, Q1 = { class: "extend-layout__third-col" }, B1 = {
15831
+ const hl = /* @__PURE__ */ D(O1, [["render", Q1], ["__scopeId", "data-v-93dc265d"]]), B1 = { class: "extend-layout__container" }, Y1 = { class: "extend-layout__first-col" }, R1 = { class: "extend-layout__third-col" }, q1 = {
15827
15832
  __name: "ExtendedLayout",
15828
15833
  setup(e) {
15829
- const f = b(null);
15830
- let n = b(!1), a = b(0), t = b(0), s = b(0);
15834
+ const f = v(null);
15835
+ let n = v(!1), a = v(0), t = v(0), s = v(0);
15831
15836
  const A = (r) => {
15832
- r.offsetX >= f.value.offsetWidth - 10 && (n.value = !0, a.value = f.value.offsetWidth, t.value = r.clientX, s.value = r.clientX, document.addEventListener("mousemove", i));
15833
- }, i = (r) => {
15837
+ r.offsetX >= f.value.offsetWidth - 10 && (n.value = !0, a.value = f.value.offsetWidth, t.value = r.clientX, s.value = r.clientX, document.addEventListener("mousemove", o));
15838
+ }, o = (r) => {
15834
15839
  if (n.value) {
15835
15840
  const g = a.value + (r.clientX - s.value);
15836
15841
  f.value.style.width = `${Math.max(270, g)}px`;
15837
15842
  }
15838
15843
  }, u = () => {
15839
- n.value = !1, document.removeEventListener("mousemove", i);
15844
+ n.value = !1, document.removeEventListener("mousemove", o);
15840
15845
  };
15841
- return (r, g) => (l(), c("div", U1, [
15842
- o("div", L1, [
15843
- J(r.$slots, "first-col", {}, void 0, !0)
15846
+ return (r, g) => (l(), c("div", B1, [
15847
+ i("div", Y1, [
15848
+ F(r.$slots, "first-col", {}, void 0, !0)
15844
15849
  ]),
15845
- o("div", {
15850
+ i("div", {
15846
15851
  ref_key: "resizableDiv",
15847
15852
  ref: f,
15848
15853
  class: "extend-layout__second-col resizable-div",
15849
- style: z({ userSelect: q(n) ? "none" : "auto" }),
15854
+ style: z({ userSelect: Y(n) ? "none" : "auto" }),
15850
15855
  onMousedown: A,
15851
15856
  onMouseup: u
15852
15857
  }, [
15853
- J(r.$slots, "second-col", {}, void 0, !0)
15858
+ F(r.$slots, "second-col", {}, void 0, !0)
15854
15859
  ], 36),
15855
- o("div", Q1, [
15856
- J(r.$slots, "third-col", {}, void 0, !0)
15860
+ i("div", R1, [
15861
+ F(r.$slots, "third-col", {}, void 0, !0)
15857
15862
  ])
15858
15863
  ]));
15859
15864
  }
15860
- }, ml = /* @__PURE__ */ j(B1, [["__scopeId", "data-v-cacc56ec"]]), Y1 = {}, R1 = { class: "base-layout__container" }, q1 = { class: "base-layout__first-col" };
15861
- function F1(e, f) {
15862
- return l(), c("div", R1, [
15863
- o("div", q1, [
15864
- J(e.$slots, "default", {}, void 0, !0)
15865
+ }, yl = /* @__PURE__ */ D(q1, [["__scopeId", "data-v-cacc56ec"]]), F1 = {}, $1 = { class: "base-layout__container" }, W1 = { class: "base-layout__first-col" };
15866
+ function J1(e, f) {
15867
+ return l(), c("div", $1, [
15868
+ i("div", W1, [
15869
+ F(e.$slots, "default", {}, void 0, !0)
15865
15870
  ])
15866
15871
  ]);
15867
15872
  }
15868
- const pl = /* @__PURE__ */ j(Y1, [["render", F1], ["__scopeId", "data-v-e71ea0ed"]]), $1 = { class: "chat-wrapper" }, W1 = {
15873
+ const bl = /* @__PURE__ */ D(F1, [["render", J1], ["__scopeId", "data-v-e71ea0ed"]]), H1 = { class: "chat-wrapper" }, K1 = {
15869
15874
  key: 0,
15870
15875
  class: "chat-wrapper__selected-chat"
15871
- }, J1 = {
15876
+ }, P1 = {
15872
15877
  key: 1,
15873
15878
  style: { width: "100%" }
15874
- }, H1 = /* @__PURE__ */ de({
15879
+ }, Z1 = /* @__PURE__ */ de({
15875
15880
  __name: "ChatWrapper",
15876
15881
  props: {
15877
15882
  isOpenChatPanel: {
@@ -15884,58 +15889,59 @@ const pl = /* @__PURE__ */ j(Y1, [["render", F1], ["__scopeId", "data-v-e71ea0ed
15884
15889
  }
15885
15890
  },
15886
15891
  setup(e) {
15887
- return (f, n) => (l(), c("div", $1, [
15888
- e.isSelectedChat ? (l(), c("div", W1, [
15889
- J(f.$slots, "default", {}, void 0, !0)
15890
- ])) : (l(), c("div", J1, n[0] || (n[0] = [
15891
- o("p", null, " Выберите контакт для начала общения ", -1)
15892
+ return (f, n) => (l(), c("div", H1, [
15893
+ e.isSelectedChat ? (l(), c("div", K1, [
15894
+ F(f.$slots, "default", {}, void 0, !0)
15895
+ ])) : (l(), c("div", P1, n[0] || (n[0] = [
15896
+ i("p", null, " Выберите контакт для начала общения ", -1)
15892
15897
  ]))),
15893
15898
  e.isOpenChatPanel ? (l(), c("div", {
15894
15899
  key: 2,
15895
15900
  class: "chat-wrapper__chat-panel",
15896
15901
  style: z({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
15897
15902
  }, [
15898
- J(f.$slots, "chatpanel", {}, void 0, !0)
15903
+ F(f.$slots, "chatpanel", {}, void 0, !0)
15899
15904
  ], 4)) : y("", !0)
15900
15905
  ]));
15901
15906
  }
15902
- }), Ml = /* @__PURE__ */ j(H1, [["__scopeId", "data-v-885e7d38"]]);
15907
+ }), vl = /* @__PURE__ */ D(Z1, [["__scopeId", "data-v-885e7d38"]]);
15903
15908
  export {
15904
15909
  Ua as A,
15905
- Mn as B,
15906
- el as C,
15910
+ pn as B,
15911
+ al as C,
15907
15912
  Ra as D,
15908
- ml as E,
15913
+ yl as E,
15909
15914
  fa as F,
15915
+ Ne as G,
15910
15916
  ma as I,
15911
- sl as S,
15917
+ ll as S,
15912
15918
  ka as T,
15913
- tl as U,
15914
- j as _,
15915
- fl as a,
15916
- nl as b,
15917
- al as c,
15918
- Po as d,
15919
- Al as e,
15920
- il as f,
15919
+ il as U,
15920
+ D as _,
15921
+ tl as a,
15922
+ Al as b,
15923
+ sl as c,
15924
+ Go as d,
15925
+ ol as e,
15926
+ ul as f,
15921
15927
  si as g,
15922
15928
  lf as h,
15923
- $i as i,
15924
- _i as j,
15925
- ol as k,
15926
- ul as l,
15927
- rl as m,
15928
- cl as n,
15929
- dl as o,
15930
- gl as p,
15931
- pl as q,
15932
- Ml as r,
15933
- P1 as s,
15934
- Z1 as t,
15935
- ll as u,
15936
- G1 as v,
15937
- X1 as w,
15938
- Cf as x,
15939
- ke as y,
15940
- Ne as z
15929
+ Wi as i,
15930
+ Ii as j,
15931
+ rl as k,
15932
+ cl as l,
15933
+ gl as m,
15934
+ ml as n,
15935
+ pl as o,
15936
+ Ml as p,
15937
+ hl as q,
15938
+ bl as r,
15939
+ vl as s,
15940
+ X1 as t,
15941
+ dl as u,
15942
+ el as v,
15943
+ fl as w,
15944
+ nl as x,
15945
+ Of as y,
15946
+ ke as z
15941
15947
  };