@mobilon-dev/chotto 0.0.38 → 0.0.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { openBlock as u, createElementBlock as c, createElementVNode as o, Fragment as B, renderList as R, normalizeClass as k, createCommentVNode as y, toDisplayString as w, ref as I, computed as x, normalizeStyle as O, createTextVNode as _n, unref as W, createVNode as S, Transition as K, withCtx as P, createBlock as L, Teleport as wn, onMounted as ge, withDirectives as Ae, vShow as Me, renderSlot as $, defineComponent as me, inject as Ge, getCurrentInstance as Dn, toRaw as Pf, watch as Ce, onBeforeUnmount as Nn, provide as kn, reactive as jn, readonly as Vn, vModelText as Zf, resolveComponent as $e, onUnmounted as Gf, mergeModels as zf, useModel as En, withKeys as Tn, onUpdated as xn, resolveDynamicComponent as Sn, nextTick as lf, toRef as zn, vModelCheckbox as On, h as Of, defineAsyncComponent as Cn, createApp as Un } from "vue";
1
+ import { openBlock as u, 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 Q, Teleport as kn, onMounted as de, withDirectives as te, vShow as Me, renderSlot as J, defineComponent as ge, inject as Ge, getCurrentInstance as Nn, toRaw as Pf, watch as Ce, onBeforeUnmount as Dn, provide as jn, reactive as Vn, readonly as En, vModelText as Zf, resolveComponent as Je, onUnmounted as Gf, mergeModels as zf, useModel as Tn, withKeys as xn, onUpdated as Sn, resolveDynamicComponent as zn, nextTick as lf, toRef as On, vModelCheckbox as Cn, h as Of, defineAsyncComponent as Un, createApp as Ln } from "vue";
2
2
  const j = (e, f) => {
3
3
  const n = e.__vccOpts || e;
4
- for (const [a, A] of f)
5
- n[a] = A;
4
+ for (const [a, t] of f)
5
+ n[a] = t;
6
6
  return n;
7
- }, Ln = { class: "context-menu" }, Qn = { class: "context-menu__container" }, Bn = { class: "context-menu__list" }, Yn = ["onClick"], Rn = ["src"], qn = {
7
+ }, Qn = { class: "context-menu" }, Bn = { class: "context-menu__container" }, Yn = { class: "context-menu__list" }, Rn = ["onClick"], qn = ["src"], Fn = {
8
8
  __name: "ContextMenu",
9
9
  props: {
10
10
  actions: {
@@ -14,54 +14,54 @@ const j = (e, f) => {
14
14
  },
15
15
  emits: ["click"],
16
16
  setup(e, { emit: f }) {
17
- const n = e, a = f, A = (s) => {
18
- const t = n.actions[s];
19
- a("click", t);
17
+ const n = e, a = f, t = (s) => {
18
+ const A = n.actions[s];
19
+ a("click", A);
20
20
  };
21
- return (s, t) => (u(), c("div", Ln, [
22
- o("div", Qn, [
23
- o("ul", Bn, [
24
- (u(!0), c(B, null, R(n.actions, (i, l) => (u(), c("li", {
21
+ return (s, A) => (u(), c("div", Qn, [
22
+ o("div", Bn, [
23
+ o("ul", Yn, [
24
+ (u(!0), c(B, null, Y(n.actions, (i, l) => (u(), c("li", {
25
25
  key: l,
26
26
  class: "context-menu__item",
27
- onClick: (r) => A(l)
27
+ onClick: (r) => t(l)
28
28
  }, [
29
29
  i.icon ? (u(), c("img", {
30
30
  key: 0,
31
31
  src: i.icon,
32
32
  width: "18",
33
33
  height: "18"
34
- }, null, 8, Rn)) : i.prime ? (u(), c("i", {
34
+ }, null, 8, qn)) : i.prime ? (u(), c("i", {
35
35
  key: 1,
36
- class: k("pi pi-" + i.prime)
36
+ class: D("pi pi-" + i.prime)
37
37
  }, null, 2)) : y("", !0),
38
38
  o("span", null, w(i.title), 1)
39
- ], 8, Yn))), 128))
39
+ ], 8, Rn))), 128))
40
40
  ])
41
41
  ])
42
42
  ]));
43
43
  }
44
- }, ie = /* @__PURE__ */ j(qn, [["__scopeId", "data-v-54c29e54"]]);
45
- function Eo(e) {
44
+ }, me = /* @__PURE__ */ j(Fn, [["__scopeId", "data-v-54c29e54"]]);
45
+ function J1(e) {
46
46
  if (!e || e === "") return;
47
- const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60), s = Math.floor(A / 60), t = Math.floor(s / 24);
48
- return t > 30 ? f.toLocaleString() : t > 0 ? `${t} ${t === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : A > 0 ? `${A} ${A === 1 ? "минута" : "минуты"} назад` : a > 0 ? `${a} ${a === 1 ? "секунда" : "секунды"} назад` : "Только что";
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
+ 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 To = (e) => {
50
+ const H1 = (e) => {
51
51
  const f = [];
52
52
  let n = null;
53
53
  for (let a = 0; a < e.length; a++) {
54
- const A = e[a], s = new Date(A.timestamp * 1e3).toLocaleDateString();
55
- console.log("message", A, s), s !== n && (f.push({
54
+ const t = e[a], s = new Date(t.timestamp * 1e3).toLocaleDateString();
55
+ console.log("message", t, s), s !== n && (f.push({
56
56
  isSeparator: !0,
57
57
  day: s,
58
58
  // Можно использовать локальную дату, если необходимо
59
59
  text: s,
60
60
  type: "system.date"
61
- }), n = s), f.push(A);
61
+ }), n = s), f.push(t);
62
62
  }
63
63
  return f;
64
- }, xo = async () => {
64
+ }, K1 = async () => {
65
65
  try {
66
66
  if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
67
67
  const f = new Audio();
@@ -70,10 +70,10 @@ const To = (e) => {
70
70
  } catch {
71
71
  console.log("no audio permissions");
72
72
  }
73
- }, So = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0), Cf = (e) => {
73
+ }, P1 = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0), Cf = (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
- }, we = ["read", "received", "send"], De = (e) => {
76
+ }, we = ["read", "received", "send"], ke = (e) => {
77
77
  switch (console.log(e), e) {
78
78
  case "read":
79
79
  return "status--read";
@@ -82,13 +82,13 @@ const To = (e) => {
82
82
  default:
83
83
  return "";
84
84
  }
85
- }, Fn = ["messageId"], Jn = ["src"], Wn = {
85
+ }, $n = ["messageId"], Wn = ["src"], Jn = {
86
86
  key: 1,
87
87
  class: "file-message__subtext"
88
- }, $n = ["href"], Hn = { class: "file-message__info-container" }, Kn = { class: "file-message__time" }, Pn = {
88
+ }, Hn = ["href"], Kn = { class: "file-message__info-container" }, Pn = { class: "file-message__time" }, Zn = {
89
89
  key: 0,
90
90
  class: "pi pi-check"
91
- }, Zn = {
91
+ }, Gn = {
92
92
  __name: "FileMessage",
93
93
  props: {
94
94
  message: {
@@ -97,16 +97,16 @@ const To = (e) => {
97
97
  }
98
98
  },
99
99
  setup(e) {
100
- const f = e, n = I(!1), a = I(!1), A = () => {
100
+ const f = e, n = b(!1), a = b(!1), t = () => {
101
101
  a.value = !0;
102
102
  }, s = () => {
103
103
  a.value = !1, n.value = !1;
104
- }, t = x(() => De(f.message.status));
104
+ }, A = T(() => ke(f.message.status));
105
105
  function i(l) {
106
106
  return l.position === "left" ? "file-message__left" : "file-message__right";
107
107
  }
108
108
  return (l, r) => (u(), c("div", {
109
- class: k(["file-message", i(e.message)]),
109
+ class: D(["file-message", i(e.message)]),
110
110
  messageId: e.message.messageId,
111
111
  onMouseleave: s
112
112
  }, [
@@ -116,12 +116,12 @@ const To = (e) => {
116
116
  src: e.message.avatar,
117
117
  height: "32",
118
118
  width: "32",
119
- style: O({ gridRow: e.message.subText ? "2" : "1" })
120
- }, null, 12, Jn)) : y("", !0),
121
- e.message.subText ? (u(), c("p", Wn, w(e.message.subText), 1)) : y("", !0),
119
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
120
+ }, null, 12, Wn)) : y("", !0),
121
+ e.message.subText ? (u(), c("p", Jn, w(e.message.subText), 1)) : y("", !0),
122
122
  o("div", {
123
123
  class: "file-message__content",
124
- onMouseenter: A
124
+ onMouseenter: t
125
125
  }, [
126
126
  o("a", {
127
127
  class: "file-message__link",
@@ -130,15 +130,15 @@ const To = (e) => {
130
130
  target: "_blank"
131
131
  }, [
132
132
  r[1] || (r[1] = o("span", { class: "pi pi-file" }, null, -1)),
133
- _n(" " + w(e.message.filename), 1)
134
- ], 8, $n),
135
- o("div", Hn, [
136
- o("span", Kn, w(e.message.time), 1),
137
- i(e.message) === "file-message__right" && W(we).includes(e.message.status) ? (u(), c("div", {
133
+ wn(" " + w(e.message.filename), 1)
134
+ ], 8, Hn),
135
+ o("div", Kn, [
136
+ o("span", Pn, w(e.message.time), 1),
137
+ i(e.message) === "file-message__right" && q(we).includes(e.message.status) ? (u(), c("div", {
138
138
  key: 0,
139
- class: k(["file-message__status", t.value])
139
+ class: D(["file-message__status", A.value])
140
140
  }, [
141
- e.message.status !== "sent" ? (u(), c("span", Pn)) : y("", !0),
141
+ e.message.status !== "sent" ? (u(), c("span", Zn)) : y("", !0),
142
142
  r[2] || (r[2] = o("span", { class: "pi pi-check" }, null, -1))
143
143
  ], 2)) : y("", !0)
144
144
  ]),
@@ -149,9 +149,12 @@ const To = (e) => {
149
149
  }, r[3] || (r[3] = [
150
150
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
151
151
  ]))) : y("", !0),
152
- S(K, null, {
153
- default: P(() => [
154
- n.value && e.message.actions ? (u(), L(ie, {
152
+ r[4] || (r[4] = o("button", { class: "file-message__download-button" }, [
153
+ o("span", { class: "pi pi-download" })
154
+ ], -1)),
155
+ S(H, null, {
156
+ default: K(() => [
157
+ n.value && e.message.actions ? (u(), Q(me, {
155
158
  key: 0,
156
159
  class: "file-message__context-menu",
157
160
  actions: e.message.actions,
@@ -161,21 +164,21 @@ const To = (e) => {
161
164
  _: 1
162
165
  })
163
166
  ], 32)
164
- ], 42, Fn));
167
+ ], 42, $n));
165
168
  }
166
- }, Gn = /* @__PURE__ */ j(Zn, [["__scopeId", "data-v-11ccfc9d"]]), Xn = ["messageId"], ea = ["src"], fa = {
169
+ }, Xn = /* @__PURE__ */ j(Gn, [["__scopeId", "data-v-2c6ad2e0"]]), ea = ["messageId"], fa = ["src"], na = {
167
170
  key: 1,
168
171
  class: "image-message__subtext"
169
- }, na = ["src", "alt"], aa = { class: "image-message__info-container" }, Aa = {
172
+ }, aa = ["src", "alt"], ta = { class: "image-message__info-container" }, Aa = {
170
173
  key: 0,
171
174
  class: "image-message__views"
172
- }, ta = { class: "image-message__time" }, sa = {
175
+ }, sa = { class: "image-message__time" }, ia = {
173
176
  key: 0,
174
177
  class: "pi pi-check"
175
- }, ia = {
178
+ }, oa = {
176
179
  key: 0,
177
180
  class: "image-message__modal-overlay"
178
- }, oa = { class: "image-message__modal" }, ua = ["src", "alt"], la = {
181
+ }, ua = { class: "image-message__modal" }, la = ["src", "alt"], ra = {
179
182
  __name: "ImageMessage",
180
183
  props: {
181
184
  message: {
@@ -184,18 +187,18 @@ const To = (e) => {
184
187
  }
185
188
  },
186
189
  setup(e) {
187
- const f = e, n = I(!1), a = I(!1), A = I(!1), s = () => {
188
- A.value = !0;
189
- }, t = () => {
190
- A.value = !1, a.value = !1;
191
- }, i = x(() => De(f.message.status));
190
+ const f = e, n = b(!1), a = b(!1), t = b(!1), s = () => {
191
+ t.value = !0;
192
+ }, A = () => {
193
+ t.value = !1, a.value = !1;
194
+ }, i = T(() => ke(f.message.status));
192
195
  function l(r) {
193
196
  return r.position === "left" ? "image-message__left" : "image-message__right";
194
197
  }
195
198
  return (r, g) => (u(), c("div", {
196
- class: k(["image-message", l(e.message)]),
199
+ class: D(["image-message", l(e.message)]),
197
200
  messageId: e.message.messageId,
198
- onMouseleave: t
201
+ onMouseleave: A
199
202
  }, [
200
203
  e.message.avatar ? (u(), c("img", {
201
204
  key: 0,
@@ -203,46 +206,49 @@ const To = (e) => {
203
206
  src: e.message.avatar,
204
207
  height: "32",
205
208
  width: "32",
206
- style: O({ gridRow: e.message.subText ? "2" : "1" })
207
- }, null, 12, ea)) : y("", !0),
208
- e.message.subText ? (u(), c("p", fa, w(e.message.subText), 1)) : y("", !0),
209
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
210
+ }, null, 12, fa)) : y("", !0),
211
+ e.message.subText ? (u(), c("p", na, w(e.message.subText), 1)) : y("", !0),
209
212
  o("div", {
210
213
  class: "image-message__content",
211
214
  onMouseenter: s
212
215
  }, [
213
- o("button", {
214
- class: "image-message__button",
216
+ o("div", {
217
+ class: "image-message__preview-button",
215
218
  onClick: g[0] || (g[0] = (d) => n.value = !0)
216
219
  }, [
217
220
  o("img", {
218
221
  class: "image-message__preview-image",
219
222
  src: e.message.url,
220
223
  alt: e.message.alt
221
- }, null, 8, na),
222
- o("div", aa, [
224
+ }, null, 8, aa),
225
+ o("div", ta, [
223
226
  e.message.views ? (u(), c("div", Aa, [
224
227
  g[3] || (g[3] = o("span", { class: "pi pi-eye" }, null, -1)),
225
228
  o("p", null, w(e.message.views), 1)
226
229
  ])) : y("", !0),
227
- o("span", ta, w(e.message.time), 1),
228
- l(e.message) === "image-message__right" && W(we).includes(e.message.status) ? (u(), c("div", {
230
+ o("span", sa, w(e.message.time), 1),
231
+ l(e.message) === "image-message__right" && q(we).includes(e.message.status) ? (u(), c("div", {
229
232
  key: 1,
230
- class: k(["image-message__status", i.value])
233
+ class: D(["image-message__status", i.value])
231
234
  }, [
232
- e.message.status !== "sent" ? (u(), c("span", sa)) : y("", !0),
235
+ e.message.status !== "sent" ? (u(), c("span", ia)) : y("", !0),
233
236
  g[4] || (g[4] = o("span", { class: "pi pi-check" }, null, -1))
234
237
  ], 2)) : y("", !0)
235
- ])
238
+ ]),
239
+ g[5] || (g[5] = o("button", { class: "image-message__download-button" }, [
240
+ o("span", { class: "pi pi-download" })
241
+ ], -1))
236
242
  ]),
237
- (u(), L(wn, { to: "body" }, [
238
- S(K, { name: "modal-fade" }, {
239
- default: P(() => [
240
- n.value ? (u(), c("div", ia, [
241
- o("div", oa, [
243
+ (u(), Q(kn, { to: "body" }, [
244
+ S(H, { name: "modal-fade" }, {
245
+ default: K(() => [
246
+ n.value ? (u(), c("div", oa, [
247
+ o("div", ua, [
242
248
  o("button", {
243
249
  class: "image-message__modal-close-button",
244
250
  onClick: g[1] || (g[1] = (d) => n.value = !1)
245
- }, g[5] || (g[5] = [
251
+ }, g[6] || (g[6] = [
246
252
  o("span", null, [
247
253
  o("i", { class: "pi pi-times" })
248
254
  ], -1)
@@ -251,23 +257,23 @@ const To = (e) => {
251
257
  class: "image-message__modal-image",
252
258
  src: e.message.url,
253
259
  alt: e.message.alt
254
- }, null, 8, ua)
260
+ }, null, 8, la)
255
261
  ])
256
262
  ])) : y("", !0)
257
263
  ]),
258
264
  _: 1
259
265
  })
260
266
  ])),
261
- A.value && e.message.actions ? (u(), c("button", {
267
+ t.value && e.message.actions ? (u(), c("button", {
262
268
  key: 0,
263
269
  class: "image-message__menu-button",
264
270
  onClick: g[2] || (g[2] = (d) => a.value = !a.value)
265
- }, g[6] || (g[6] = [
271
+ }, g[7] || (g[7] = [
266
272
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
267
273
  ]))) : y("", !0),
268
- S(K, { name: "context-menu" }, {
269
- default: P(() => [
270
- a.value && e.message.actions ? (u(), L(ie, {
274
+ S(H, { name: "context-menu" }, {
275
+ default: K(() => [
276
+ a.value && e.message.actions ? (u(), Q(me, {
271
277
  key: 0,
272
278
  class: "image-message__context-menu",
273
279
  actions: e.message.actions,
@@ -277,18 +283,18 @@ const To = (e) => {
277
283
  _: 1
278
284
  })
279
285
  ], 32)
280
- ], 42, Xn));
286
+ ], 42, ea));
281
287
  }
282
- }, ra = /* @__PURE__ */ j(la, [["__scopeId", "data-v-c79f0e1b"]]), ca = { class: "text-message" }, da = ["messageId"], ga = ["src"], ma = {
288
+ }, ca = /* @__PURE__ */ j(ra, [["__scopeId", "data-v-6bc7c6d4"]]), da = { class: "text-message" }, ga = ["messageId"], ma = ["src"], pa = {
283
289
  key: 1,
284
290
  class: "text-message__subtext"
285
- }, pa = { class: "text-message__text" }, Ma = { class: "text-message__info-container" }, ha = {
291
+ }, Ma = { class: "text-message__text" }, ha = { class: "text-message__info-container" }, ya = {
286
292
  key: 1,
287
293
  class: "text-message__time"
288
- }, ya = {
294
+ }, ba = {
289
295
  key: 0,
290
296
  class: "pi pi-check"
291
- }, ba = {
297
+ }, va = {
292
298
  __name: "TextMessage",
293
299
  props: {
294
300
  message: {
@@ -298,21 +304,21 @@ const To = (e) => {
298
304
  },
299
305
  emits: ["action"],
300
306
  setup(e, { emit: f }) {
301
- const n = e, a = f, A = I(!1), s = I(!1), t = () => {
307
+ const n = e, a = f, t = b(!1), s = b(!1), A = () => {
302
308
  s.value = !0;
303
309
  }, i = () => {
304
- s.value = !1, A.value = !1;
305
- }, l = x(() => De(n.message.status)), r = (p) => {
306
- i(), a("action", { messageId: n.message.messageId, type: "menu", ...p });
310
+ s.value = !1, t.value = !1;
311
+ }, l = T(() => ke(n.message.status)), r = (m) => {
312
+ i(), a("action", { messageId: n.message.messageId, type: "menu", ...m });
307
313
  }, g = () => {
308
314
  i(), a("action", { messageId: n.message.messageId, type: "views" });
309
315
  };
310
- function d(p) {
311
- return p.position === "left" ? "text-message__left" : "text-message__right";
316
+ function d(m) {
317
+ return m.position === "left" ? "text-message__left" : "text-message__right";
312
318
  }
313
- return (p, m) => (u(), c("div", ca, [
319
+ return (m, p) => (u(), c("div", da, [
314
320
  o("div", {
315
- class: k(d(e.message)),
321
+ class: D(d(e.message)),
316
322
  messageId: e.message.messageId,
317
323
  onMouseleave: i
318
324
  }, [
@@ -322,42 +328,42 @@ const To = (e) => {
322
328
  src: e.message.avatar,
323
329
  height: "32",
324
330
  width: "32",
325
- style: O({ gridRow: e.message.subText ? "2" : "1" })
326
- }, null, 12, ga)) : y("", !0),
327
- e.message.subText ? (u(), c("p", ma, w(e.message.subText), 1)) : y("", !0),
331
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
332
+ }, null, 12, ma)) : y("", !0),
333
+ e.message.subText ? (u(), c("p", pa, w(e.message.subText), 1)) : y("", !0),
328
334
  o("div", {
329
335
  class: "text-message__content",
330
- onMouseenter: t
336
+ onMouseenter: A
331
337
  }, [
332
- o("p", pa, w(e.message.text), 1),
333
- o("div", Ma, [
338
+ o("p", Ma, w(e.message.text), 1),
339
+ o("div", ha, [
334
340
  e.message.views ? (u(), c("div", {
335
341
  key: 0,
336
342
  class: "text-message__views",
337
343
  onClick: g
338
344
  }, [
339
- m[1] || (m[1] = o("span", { class: "pi pi-eye" }, null, -1)),
345
+ p[1] || (p[1] = o("span", { class: "pi pi-eye" }, null, -1)),
340
346
  o("p", null, w(e.message.views), 1)
341
347
  ])) : y("", !0),
342
- e.message.time ? (u(), c("span", ha, w(e.message.time), 1)) : y("", !0),
343
- d(e.message) === "text-message__right" && W(we).includes(e.message.status) ? (u(), c("div", {
348
+ e.message.time ? (u(), c("span", ya, w(e.message.time), 1)) : y("", !0),
349
+ d(e.message) === "text-message__right" && q(we).includes(e.message.status) ? (u(), c("div", {
344
350
  key: 2,
345
- class: k(["text-message__status", l.value])
351
+ class: D(["text-message__status", l.value])
346
352
  }, [
347
- e.message.status !== "send" ? (u(), c("span", ya)) : y("", !0),
348
- m[2] || (m[2] = o("span", { class: "pi pi-check" }, null, -1))
353
+ e.message.status !== "send" ? (u(), c("span", ba)) : y("", !0),
354
+ p[2] || (p[2] = o("span", { class: "pi pi-check" }, null, -1))
349
355
  ], 2)) : y("", !0)
350
356
  ]),
351
357
  s.value && e.message.actions ? (u(), c("button", {
352
358
  key: 0,
353
359
  class: "text-message__menu-button",
354
- onClick: m[0] || (m[0] = (h) => A.value = !A.value)
355
- }, m[3] || (m[3] = [
360
+ onClick: p[0] || (p[0] = (h) => t.value = !t.value)
361
+ }, p[3] || (p[3] = [
356
362
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
357
363
  ]))) : y("", !0),
358
- S(K, null, {
359
- default: P(() => [
360
- A.value && e.message.actions ? (u(), L(ie, {
364
+ S(H, null, {
365
+ default: K(() => [
366
+ t.value && e.message.actions ? (u(), Q(me, {
361
367
  key: 0,
362
368
  class: "text-message__context-menu",
363
369
  actions: e.message.actions,
@@ -367,16 +373,16 @@ const To = (e) => {
367
373
  _: 1
368
374
  })
369
375
  ], 32)
370
- ], 42, da)
376
+ ], 42, ga)
371
377
  ]));
372
378
  }
373
- }, va = /* @__PURE__ */ j(ba, [["__scopeId", "data-v-9d7ce5be"]]), Ia = ["messageId"], _a = ["src"], wa = {
379
+ }, _a = /* @__PURE__ */ j(va, [["__scopeId", "data-v-f8d9da21"]]), Ia = ["messageId"], wa = ["src"], ka = {
374
380
  key: 1,
375
381
  class: "audio-message__subtext"
376
- }, Da = ["src"], Na = { class: "audio-message__progress-bar-container" }, ka = { class: "audio-message__remaining-time" }, ja = { class: "audio-message__info-container" }, Va = { class: "audio-message__time" }, Ea = {
382
+ }, Na = ["src"], Da = { class: "audio-message__progress-bar-container" }, ja = { class: "audio-message__remaining-time" }, Va = { class: "audio-message__info-container" }, Ea = { class: "audio-message__time" }, Ta = {
377
383
  key: 0,
378
384
  class: "pi pi-check"
379
- }, Ta = {
385
+ }, xa = {
380
386
  __name: "AudioMessage",
381
387
  props: {
382
388
  message: {
@@ -385,29 +391,29 @@ const To = (e) => {
385
391
  }
386
392
  },
387
393
  setup(e) {
388
- const f = e, n = I(null), a = I(!1), A = I(0), s = I(0), t = I(!1), i = I(!1), l = () => {
394
+ const f = e, n = b(null), a = b(!1), t = b(0), s = b(0), A = b(!1), i = b(!1), l = () => {
389
395
  i.value = !0;
390
396
  }, r = () => {
391
- i.value = !1, t.value = !1;
392
- }, g = x(() => De(f.message.status));
397
+ i.value = !1, A.value = !1;
398
+ }, g = T(() => ke(f.message.status));
393
399
  function d() {
394
400
  n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
395
401
  }
396
- const p = (v) => {
397
- const b = Math.floor(v / 60), D = Math.floor(v % 60);
398
- return `${b.toString().padStart(2, "0")}:${D.toString().padStart(2, "0")}`;
399
- }, m = x(() => n.value ? p(s.value) : "0:00"), h = x(() => n.value ? p(A.value) : "0:00"), _ = x(() => A.value > 0 ? s.value / A.value * 100 : 0);
400
- function M(v) {
401
- return v.position === "left" ? "audio-message__left" : "audio-message__right";
402
+ const m = (N) => {
403
+ const v = Math.floor(N / 60), _ = Math.floor(N % 60);
404
+ return `${v.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
405
+ }, 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);
406
+ function M(N) {
407
+ return N.position === "left" ? "audio-message__left" : "audio-message__right";
402
408
  }
403
- return ge(() => {
409
+ return de(() => {
404
410
  n.value.addEventListener("loadedmetadata", () => {
405
- A.value = n.value.duration;
411
+ t.value = n.value.duration;
406
412
  }), n.value.addEventListener("timeupdate", () => {
407
413
  s.value = n.value.currentTime;
408
414
  });
409
- }), (v, b) => (u(), c("div", {
410
- class: k(["audio-message", M(e.message)]),
415
+ }), (N, v) => (u(), c("div", {
416
+ class: D(["audio-message", M(e.message)]),
411
417
  messageId: e.message.messageId,
412
418
  onMouseleave: r
413
419
  }, [
@@ -417,9 +423,9 @@ const To = (e) => {
417
423
  src: e.message.avatar,
418
424
  height: "32",
419
425
  width: "32",
420
- style: O({ gridRow: e.message.subText ? "2" : "1" })
421
- }, null, 12, _a)) : y("", !0),
422
- e.message.subText ? (u(), c("p", wa, w(e.message.subText), 1)) : y("", !0),
426
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
427
+ }, null, 12, wa)) : y("", !0),
428
+ e.message.subText ? (u(), c("p", ka, w(e.message.subText), 1)) : y("", !0),
423
429
  o("div", {
424
430
  class: "audio-message__content",
425
431
  onMouseenter: l
@@ -428,54 +434,57 @@ const To = (e) => {
428
434
  ref_key: "player",
429
435
  ref: n,
430
436
  src: e.message.url
431
- }, null, 8, Da),
432
- Ae(o("button", {
437
+ }, null, 8, Na),
438
+ te(o("button", {
433
439
  class: "audio-message__play",
434
440
  onClick: d
435
- }, b[1] || (b[1] = [
441
+ }, v[1] || (v[1] = [
436
442
  o("span", { class: "pi pi-play" }, null, -1)
437
443
  ]), 512), [
438
444
  [Me, !a.value]
439
445
  ]),
440
- Ae(o("button", {
446
+ te(o("button", {
441
447
  class: "audio-message__pause",
442
448
  onClick: d
443
- }, b[2] || (b[2] = [
449
+ }, v[2] || (v[2] = [
444
450
  o("span", { class: "pi pi-pause" }, null, -1)
445
451
  ]), 512), [
446
452
  [Me, a.value]
447
453
  ]),
448
- o("div", Na, [
454
+ o("div", Da, [
449
455
  o("div", {
450
456
  class: "audio-message__progress-bar",
451
- style: O({ width: _.value + "%" })
457
+ style: z({ width: I.value + "%" })
452
458
  }, null, 4)
453
459
  ]),
454
- o("p", ka, w(`${m.value} / ${h.value}`), 1),
455
- o("div", ja, [
456
- o("span", Va, w(e.message.time), 1),
457
- M(e.message) === "audio-message__right" && W(we).includes(e.message.status) ? (u(), c("div", {
460
+ o("p", ja, w(`${p.value} / ${h.value}`), 1),
461
+ o("div", Va, [
462
+ o("span", Ea, w(e.message.time), 1),
463
+ M(e.message) === "audio-message__right" && q(we).includes(e.message.status) ? (u(), c("div", {
458
464
  key: 0,
459
- class: k(["audio-message__status", g.value])
465
+ class: D(["audio-message__status", g.value])
460
466
  }, [
461
- e.message.status !== "sent" ? (u(), c("span", Ea)) : y("", !0),
462
- b[3] || (b[3] = o("span", { class: "pi pi-check" }, null, -1))
467
+ e.message.status !== "sent" ? (u(), c("span", Ta)) : y("", !0),
468
+ v[3] || (v[3] = o("span", { class: "pi pi-check" }, null, -1))
463
469
  ], 2)) : y("", !0)
464
470
  ]),
465
471
  i.value && e.message.actions ? (u(), c("button", {
466
472
  key: 0,
467
473
  class: "audio-message__menu-button",
468
- onClick: b[0] || (b[0] = (D) => t.value = !t.value)
469
- }, b[4] || (b[4] = [
474
+ onClick: v[0] || (v[0] = (_) => A.value = !A.value)
475
+ }, v[4] || (v[4] = [
470
476
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
471
477
  ]))) : y("", !0),
472
- S(K, null, {
473
- default: P(() => [
474
- t.value && e.message.actions ? (u(), L(ie, {
478
+ v[5] || (v[5] = o("button", { class: "audio-message__download-button" }, [
479
+ o("span", { class: "pi pi-download" })
480
+ ], -1)),
481
+ S(H, null, {
482
+ default: K(() => [
483
+ A.value && e.message.actions ? (u(), Q(me, {
475
484
  key: 0,
476
485
  class: "audio-message__context-menu",
477
486
  actions: e.message.actions,
478
- onClick: v.clickAction
487
+ onClick: N.clickAction
479
488
  }, null, 8, ["actions", "onClick"])) : y("", !0)
480
489
  ]),
481
490
  _: 1
@@ -483,7 +492,7 @@ const To = (e) => {
483
492
  ], 32)
484
493
  ], 42, Ia));
485
494
  }
486
- }, xa = /* @__PURE__ */ j(Ta, [["__scopeId", "data-v-bbafa463"]]), Sa = { class: "date-message" }, za = { class: "date-message__container" }, Oa = { class: "date-message__text" }, Ca = {
495
+ }, Sa = /* @__PURE__ */ j(xa, [["__scopeId", "data-v-38410008"]]), za = { class: "date-message" }, Oa = { class: "date-message__container" }, Ca = { class: "date-message__text" }, Ua = {
487
496
  __name: "DateMessage",
488
497
  props: {
489
498
  message: {
@@ -494,22 +503,22 @@ const To = (e) => {
494
503
  }
495
504
  },
496
505
  setup(e) {
497
- return (f, n) => (u(), c("div", Sa, [
498
- o("div", za, [
499
- o("p", Oa, w(e.message.text), 1)
506
+ return (f, n) => (u(), c("div", za, [
507
+ o("div", Oa, [
508
+ o("p", Ca, w(e.message.text), 1)
500
509
  ])
501
510
  ]));
502
511
  }
503
- }, Ua = /* @__PURE__ */ j(Ca, [["__scopeId", "data-v-d20acba5"]]), La = {
512
+ }, La = /* @__PURE__ */ j(Ua, [["__scopeId", "data-v-d20acba5"]]), Qa = {
504
513
  key: 0,
505
514
  class: "chat-info__container"
506
- }, Qa = { class: "chat-info__avatar-container" }, Ba = ["src"], Ya = {
515
+ }, Ba = { class: "chat-info__avatar-container" }, Ya = ["src"], Ra = {
507
516
  key: 1,
508
517
  class: "pi pi-user"
509
- }, Ra = { class: "chat-info__info-container" }, qa = { class: "chat-info__title" }, Fa = {
518
+ }, qa = { class: "chat-info__info-container" }, Fa = { class: "chat-info__title" }, $a = {
510
519
  key: 0,
511
520
  class: "chat-info__time"
512
- }, Ja = { class: "chat-info__actions" }, Wa = {
521
+ }, Wa = { class: "chat-info__actions" }, Ja = {
513
522
  __name: "ChatInfo",
514
523
  props: {
515
524
  chat: {
@@ -520,25 +529,25 @@ const To = (e) => {
520
529
  emits: ["open-panel"],
521
530
  setup(e, { emit: f }) {
522
531
  const n = e;
523
- return (a, A) => e.chat ? (u(), c("div", La, [
524
- o("div", Qa, [
532
+ return (a, t) => e.chat ? (u(), c("div", Qa, [
533
+ o("div", Ba, [
525
534
  n.chat.avatar ? (u(), c("img", {
526
535
  key: 0,
527
536
  src: n.chat.avatar,
528
537
  width: "48",
529
538
  height: "48"
530
- }, null, 8, Ba)) : (u(), c("span", Ya))
539
+ }, null, 8, Ya)) : (u(), c("span", Ra))
531
540
  ]),
532
- o("div", Ra, [
533
- o("h2", qa, w(e.chat.name), 1),
534
- e.chat["lastActivity.time"] ? (u(), c("p", Fa, w(e.chat["lastActivity.time"]), 1)) : y("", !0)
541
+ o("div", qa, [
542
+ o("h2", Fa, w(e.chat.name), 1),
543
+ e.chat["lastActivity.time"] ? (u(), c("p", $a, w(e.chat["lastActivity.time"]), 1)) : y("", !0)
535
544
  ]),
536
- o("div", Ja, [
537
- $(a.$slots, "actions", {}, void 0, !0)
545
+ o("div", Wa, [
546
+ J(a.$slots, "actions", {}, void 0, !0)
538
547
  ])
539
548
  ])) : y("", !0);
540
549
  }
541
- }, zo = /* @__PURE__ */ j(Wa, [["__scopeId", "data-v-80c14ac4"]]), $a = { class: "preview__container" }, Ha = { class: "preview__block" }, Ka = { key: 0 }, Pa = ["src"], Za = { key: 1 }, Ga = ["src"], Xa = { key: 2 }, eA = { class: "preview__control-block" }, fA = { class: "preview__information" }, nA = { class: "preview__name" }, aA = { class: "preview__size" }, AA = {
550
+ }, Z1 = /* @__PURE__ */ j(Ja, [["__scopeId", "data-v-e1d212c7"]]), Ha = { class: "preview__container" }, Ka = { class: "preview__block" }, Pa = { key: 0 }, Za = ["src"], Ga = { key: 1 }, Xa = ["src"], et = { key: 2 }, ft = { key: 3 }, nt = { class: "preview__control-block" }, at = { class: "preview__information" }, tt = { class: "preview__name" }, At = { class: "preview__size" }, st = {
542
551
  __name: "FilePreview",
543
552
  props: {
544
553
  previewUrl: {
@@ -553,6 +562,10 @@ const To = (e) => {
553
562
  type: Boolean,
554
563
  default: !1
555
564
  },
565
+ isAudio: {
566
+ type: Boolean,
567
+ default: !1
568
+ },
556
569
  fileName: {
557
570
  type: String,
558
571
  default: ""
@@ -565,43 +578,48 @@ const To = (e) => {
565
578
  emits: ["reset"],
566
579
  setup(e, { emit: f }) {
567
580
  const n = e, a = f;
568
- function A() {
581
+ function t() {
569
582
  a("reset");
570
583
  }
571
- return (s, t) => (u(), c("div", $a, [
572
- o("div", Ha, [
573
- n.isImage ? (u(), c("div", Ka, [
584
+ return (s, A) => (u(), c("div", Ha, [
585
+ o("div", Ka, [
586
+ n.isImage ? (u(), c("div", Pa, [
574
587
  o("img", {
575
588
  src: e.previewUrl,
576
589
  alt: "Image Preview",
577
590
  class: "preview__image"
578
- }, null, 8, Pa)
579
- ])) : n.isVideo ? (u(), c("div", Za, [
591
+ }, null, 8, Za)
592
+ ])) : n.isVideo ? (u(), c("div", Ga, [
580
593
  o("video", {
581
594
  src: e.previewUrl,
582
595
  class: "preview__video"
583
- }, null, 8, Ga)
584
- ])) : (u(), c("div", Xa, t[0] || (t[0] = [
596
+ }, null, 8, Xa)
597
+ ])) : n.isAudio ? (u(), c("div", et, A[0] || (A[0] = [
598
+ o("span", {
599
+ class: "pi pi-headphones",
600
+ style: { "font-size": "2.5rem" }
601
+ }, null, -1)
602
+ ]))) : (u(), c("div", ft, A[1] || (A[1] = [
585
603
  o("span", {
586
604
  class: "pi pi-file",
587
605
  style: { "font-size": "2.5rem" }
588
606
  }, null, -1)
589
607
  ])))
590
608
  ]),
591
- o("div", eA, [
592
- o("div", fA, [
593
- o("span", nA, w(e.fileName), 1),
594
- o("span", aA, w(e.fileSize), 1)
609
+ o("div", nt, [
610
+ o("div", at, [
611
+ o("span", tt, w(e.fileName), 1),
612
+ o("span", At, w(e.fileSize), 1)
595
613
  ]),
596
614
  o("span", {
597
615
  class: "pi pi-times preview__reset",
598
616
  style: { "font-size": "1rem" },
599
- onClick: A
617
+ onClick: t
600
618
  })
601
619
  ])
602
620
  ]));
603
621
  }
604
- }, tA = /* @__PURE__ */ j(AA, [["__scopeId", "data-v-7a18a472"]]), Xf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", en = {
622
+ }, it = /* @__PURE__ */ j(st, [["__scopeId", "data-v-c4e18bbf"]]), Xf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", en = {
605
623
  recent: "Recently used",
606
624
  smileys_people: "Smiles & People",
607
625
  animals_nature: "Animals & Nature",
@@ -611,21 +629,21 @@ const To = (e) => {
611
629
  objects: "Objects",
612
630
  symbols: "Symbols",
613
631
  flags: "Flags"
614
- }, fn = "u", Xe = "n", Je = "v", Se = "r", sA = {
632
+ }, fn = "u", Xe = "n", $e = "v", Se = "r", ot = {
615
633
  [Xe]: ["grinning face", "grinning"],
616
634
  [fn]: "1f600",
617
635
  [Se]: "1f600"
618
- }, Pe = "neutral", iA = "1f3fb", oA = "1f3fc", uA = "1f3fd", lA = "1f3fe", rA = "1f3ff", cA = [
636
+ }, Pe = "neutral", ut = "1f3fb", lt = "1f3fc", rt = "1f3fd", ct = "1f3fe", dt = "1f3ff", gt = [
619
637
  Pe,
620
- iA,
621
- oA,
622
- uA,
623
- lA,
624
- rA
625
- ], dA = {
638
+ ut,
639
+ lt,
640
+ rt,
641
+ ct,
642
+ dt
643
+ ], mt = {
626
644
  placeholder: "Search emoji",
627
645
  skinTone: "Skin tone"
628
- }, gA = ["light", "dark", "auto"], mA = [
646
+ }, pt = ["light", "dark", "auto"], Mt = [
629
647
  {
630
648
  n: [
631
649
  "grinning face",
@@ -5033,7 +5051,7 @@ const To = (e) => {
5033
5051
  ],
5034
5052
  u: "1f48e"
5035
5053
  }
5036
- ], pA = [
5054
+ ], ht = [
5037
5055
  {
5038
5056
  n: [
5039
5057
  "monkey face",
@@ -5767,7 +5785,7 @@ const To = (e) => {
5767
5785
  ],
5768
5786
  u: "1f343"
5769
5787
  }
5770
- ], MA = [
5788
+ ], yt = [
5771
5789
  {
5772
5790
  n: [
5773
5791
  "grapes"
@@ -6433,7 +6451,7 @@ const To = (e) => {
6433
6451
  ],
6434
6452
  u: "1f3fa"
6435
6453
  }
6436
- ], hA = [
6454
+ ], bt = [
6437
6455
  {
6438
6456
  n: [
6439
6457
  "jack-o-lantern",
@@ -6839,7 +6857,7 @@ const To = (e) => {
6839
6857
  ],
6840
6858
  u: "1f3b4"
6841
6859
  }
6842
- ], yA = [
6860
+ ], vt = [
6843
6861
  {
6844
6862
  n: [
6845
6863
  "earth globe europe-africa",
@@ -8206,7 +8224,7 @@ const To = (e) => {
8206
8224
  ],
8207
8225
  u: "1f30a"
8208
8226
  }
8209
- ], bA = [
8227
+ ], _t = [
8210
8228
  {
8211
8229
  n: [
8212
8230
  "speaker with cancellation stroke",
@@ -9270,7 +9288,7 @@ const To = (e) => {
9270
9288
  ],
9271
9289
  u: "1f6d2"
9272
9290
  }
9273
- ], vA = [
9291
+ ], It = [
9274
9292
  {
9275
9293
  n: [
9276
9294
  "automated teller machine",
@@ -10668,7 +10686,7 @@ const To = (e) => {
10668
10686
  ],
10669
10687
  u: "1f535"
10670
10688
  }
10671
- ], IA = [
10689
+ ], wt = [
10672
10690
  {
10673
10691
  n: [
10674
10692
  "chequered flag",
@@ -12548,15 +12566,15 @@ const To = (e) => {
12548
12566
  u: "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f"
12549
12567
  }
12550
12568
  ];
12551
- var _A = {
12552
- smileys_people: mA,
12553
- animals_nature: pA,
12554
- food_drink: MA,
12555
- activities: hA,
12556
- travel_places: yA,
12557
- objects: bA,
12558
- symbols: vA,
12559
- flags: IA
12569
+ var kt = {
12570
+ smileys_people: Mt,
12571
+ animals_nature: ht,
12572
+ food_drink: yt,
12573
+ activities: bt,
12574
+ travel_places: vt,
12575
+ objects: _t,
12576
+ symbols: It,
12577
+ flags: wt
12560
12578
  }, Uf = [
12561
12579
  {
12562
12580
  key: "recent",
@@ -12604,9 +12622,9 @@ var _A = {
12604
12622
  u: "1f3f3-fe0f"
12605
12623
  }
12606
12624
  ];
12607
- const wA = (e, f) => f.some((n) => e instanceof n);
12625
+ const Nt = (e, f) => f.some((n) => e instanceof n);
12608
12626
  let Lf, Qf;
12609
- function DA() {
12627
+ function Dt() {
12610
12628
  return Lf || (Lf = [
12611
12629
  IDBDatabase,
12612
12630
  IDBObjectStore,
@@ -12615,42 +12633,42 @@ function DA() {
12615
12633
  IDBTransaction
12616
12634
  ]);
12617
12635
  }
12618
- function NA() {
12636
+ function jt() {
12619
12637
  return Qf || (Qf = [
12620
12638
  IDBCursor.prototype.advance,
12621
12639
  IDBCursor.prototype.continue,
12622
12640
  IDBCursor.prototype.continuePrimaryKey
12623
12641
  ]);
12624
12642
  }
12625
- const nn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), tf = /* @__PURE__ */ new WeakMap(), gf = /* @__PURE__ */ new WeakMap();
12626
- function kA(e) {
12643
+ const nn = /* @__PURE__ */ new WeakMap(), rf = /* @__PURE__ */ new WeakMap(), an = /* @__PURE__ */ new WeakMap(), Af = /* @__PURE__ */ new WeakMap(), gf = /* @__PURE__ */ new WeakMap();
12644
+ function Vt(e) {
12627
12645
  const f = new Promise((n, a) => {
12628
- const A = () => {
12629
- e.removeEventListener("success", s), e.removeEventListener("error", t);
12646
+ const t = () => {
12647
+ e.removeEventListener("success", s), e.removeEventListener("error", A);
12630
12648
  }, s = () => {
12631
- n(se(e.result)), A();
12632
- }, t = () => {
12633
- a(e.error), A();
12649
+ n(se(e.result)), t();
12650
+ }, A = () => {
12651
+ a(e.error), t();
12634
12652
  };
12635
- e.addEventListener("success", s), e.addEventListener("error", t);
12653
+ e.addEventListener("success", s), e.addEventListener("error", A);
12636
12654
  });
12637
12655
  return f.then((n) => {
12638
12656
  n instanceof IDBCursor && nn.set(n, e);
12639
12657
  }).catch(() => {
12640
12658
  }), gf.set(f, e), f;
12641
12659
  }
12642
- function jA(e) {
12660
+ function Et(e) {
12643
12661
  if (rf.has(e))
12644
12662
  return;
12645
12663
  const f = new Promise((n, a) => {
12646
- const A = () => {
12647
- e.removeEventListener("complete", s), e.removeEventListener("error", t), e.removeEventListener("abort", t);
12664
+ const t = () => {
12665
+ e.removeEventListener("complete", s), e.removeEventListener("error", A), e.removeEventListener("abort", A);
12648
12666
  }, s = () => {
12649
- n(), A();
12650
- }, t = () => {
12651
- a(e.error || new DOMException("AbortError", "AbortError")), A();
12667
+ n(), t();
12668
+ }, A = () => {
12669
+ a(e.error || new DOMException("AbortError", "AbortError")), t();
12652
12670
  };
12653
- e.addEventListener("complete", s), e.addEventListener("error", t), e.addEventListener("abort", t);
12671
+ e.addEventListener("complete", s), e.addEventListener("error", A), e.addEventListener("abort", A);
12654
12672
  });
12655
12673
  rf.set(e, f);
12656
12674
  }
@@ -12673,70 +12691,70 @@ let cf = {
12673
12691
  return e instanceof IDBTransaction && (f === "done" || f === "store") ? !0 : f in e;
12674
12692
  }
12675
12693
  };
12676
- function VA(e) {
12694
+ function Tt(e) {
12677
12695
  cf = e(cf);
12678
12696
  }
12679
- function EA(e) {
12697
+ function xt(e) {
12680
12698
  return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...n) {
12681
12699
  const a = e.call(sf(this), f, ...n);
12682
12700
  return an.set(a, f.sort ? f.sort() : [f]), se(a);
12683
- } : NA().includes(e) ? function(...f) {
12701
+ } : jt().includes(e) ? function(...f) {
12684
12702
  return e.apply(sf(this), f), se(nn.get(this));
12685
12703
  } : function(...f) {
12686
12704
  return se(e.apply(sf(this), f));
12687
12705
  };
12688
12706
  }
12689
- function TA(e) {
12690
- return typeof e == "function" ? EA(e) : (e instanceof IDBTransaction && jA(e), wA(e, DA()) ? new Proxy(e, cf) : e);
12707
+ function St(e) {
12708
+ return typeof e == "function" ? xt(e) : (e instanceof IDBTransaction && Et(e), Nt(e, Dt()) ? new Proxy(e, cf) : e);
12691
12709
  }
12692
12710
  function se(e) {
12693
12711
  if (e instanceof IDBRequest)
12694
- return kA(e);
12695
- if (tf.has(e))
12696
- return tf.get(e);
12697
- const f = TA(e);
12698
- return f !== e && (tf.set(e, f), gf.set(f, e)), f;
12712
+ return Vt(e);
12713
+ if (Af.has(e))
12714
+ return Af.get(e);
12715
+ const f = St(e);
12716
+ return f !== e && (Af.set(e, f), gf.set(f, e)), f;
12699
12717
  }
12700
12718
  const sf = (e) => gf.get(e);
12701
- function mf(e, f, { blocked: n, upgrade: a, blocking: A, terminated: s } = {}) {
12702
- const t = indexedDB.open(e, f), i = se(t);
12703
- return a && t.addEventListener("upgradeneeded", (l) => {
12704
- a(se(t.result), l.oldVersion, l.newVersion, se(t.transaction), l);
12705
- }), n && t.addEventListener("blocked", (l) => n(
12719
+ function mf(e, f, { blocked: n, upgrade: a, blocking: t, terminated: s } = {}) {
12720
+ const A = indexedDB.open(e, f), i = se(A);
12721
+ return a && A.addEventListener("upgradeneeded", (l) => {
12722
+ a(se(A.result), l.oldVersion, l.newVersion, se(A.transaction), l);
12723
+ }), n && A.addEventListener("blocked", (l) => n(
12706
12724
  l.oldVersion,
12707
12725
  l.newVersion,
12708
12726
  l
12709
12727
  )), i.then((l) => {
12710
- s && l.addEventListener("close", () => s()), A && l.addEventListener("versionchange", (r) => A(r.oldVersion, r.newVersion, r));
12728
+ s && l.addEventListener("close", () => s()), t && l.addEventListener("versionchange", (r) => t(r.oldVersion, r.newVersion, r));
12711
12729
  }).catch(() => {
12712
12730
  }), i;
12713
12731
  }
12714
- const xA = ["get", "getKey", "getAll", "getAllKeys", "count"], SA = ["put", "add", "delete", "clear"], of = /* @__PURE__ */ new Map();
12732
+ const zt = ["get", "getKey", "getAll", "getAllKeys", "count"], Ot = ["put", "add", "delete", "clear"], of = /* @__PURE__ */ new Map();
12715
12733
  function Bf(e, f) {
12716
12734
  if (!(e instanceof IDBDatabase && !(f in e) && typeof f == "string"))
12717
12735
  return;
12718
12736
  if (of.get(f))
12719
12737
  return of.get(f);
12720
- const n = f.replace(/FromIndex$/, ""), a = f !== n, A = SA.includes(n);
12721
- if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(A || xA.includes(n)))
12738
+ const n = f.replace(/FromIndex$/, ""), a = f !== n, t = Ot.includes(n);
12739
+ if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(t || zt.includes(n)))
12722
12740
  return;
12723
- const s = async function(t, ...i) {
12724
- const l = this.transaction(t, A ? "readwrite" : "readonly");
12741
+ const s = async function(A, ...i) {
12742
+ const l = this.transaction(A, t ? "readwrite" : "readonly");
12725
12743
  let r = l.store;
12726
12744
  return a && (r = r.index(i.shift())), (await Promise.all([
12727
12745
  r[n](...i),
12728
- A && l.done
12746
+ t && l.done
12729
12747
  ]))[0];
12730
12748
  };
12731
12749
  return of.set(f, s), s;
12732
12750
  }
12733
- VA((e) => ({
12751
+ Tt((e) => ({
12734
12752
  ...e,
12735
12753
  get: (f, n, a) => Bf(f, n) || e.get(f, n, a),
12736
12754
  has: (f, n) => !!Bf(f, n) || e.has(f, n)
12737
12755
  }));
12738
12756
  const pf = "EMJ", he = "emojis", Mf = 3;
12739
- async function zA() {
12757
+ async function Ct() {
12740
12758
  (await mf(pf, Mf, {
12741
12759
  upgrade(f, n) {
12742
12760
  f.objectStoreNames.contains(he) || f.createObjectStore(he, {
@@ -12748,8 +12766,8 @@ async function zA() {
12748
12766
  }
12749
12767
  })).close();
12750
12768
  }
12751
- zA();
12752
- const OA = {
12769
+ Ct();
12770
+ const Ut = {
12753
12771
  native: !1,
12754
12772
  hideSearch: !0,
12755
12773
  hideGroupIcons: !1,
@@ -12762,23 +12780,23 @@ const OA = {
12762
12780
  groupOrder: [],
12763
12781
  groupIcons: {}
12764
12782
  };
12765
- async function CA() {
12783
+ async function Lt() {
12766
12784
  return await (await mf(pf, Mf)).transaction(he, "readonly").objectStore(he).getAll();
12767
12785
  }
12768
- function UA() {
12769
- const e = jn({
12786
+ function Qt() {
12787
+ const e = Vn({
12770
12788
  search: "",
12771
- emoji: sA,
12789
+ emoji: ot,
12772
12790
  activeGroup: "",
12773
12791
  skinTone: Pe,
12774
- options: OA,
12792
+ options: Ut,
12775
12793
  additionalGroups: {},
12776
12794
  recent: [],
12777
12795
  get emojis() {
12778
12796
  return {
12779
12797
  recent: this.recent,
12780
12798
  ...this.options.additionalGroups,
12781
- ..._A
12799
+ ...kt
12782
12800
  };
12783
12801
  },
12784
12802
  get disabled() {
@@ -12794,9 +12812,9 @@ function UA() {
12794
12812
  const d = [
12795
12813
  ...this.options.groupOrder,
12796
12814
  ...Object.keys(this.options.additionalGroups),
12797
- ...Uf.map((p) => p.key)
12815
+ ...Uf.map((m) => m.key)
12798
12816
  ];
12799
- return [...new Set(d)].filter((p) => !this.disabled.includes(p));
12817
+ return [...new Set(d)].filter((m) => !this.disabled.includes(m));
12800
12818
  }
12801
12819
  });
12802
12820
  function f() {
@@ -12804,19 +12822,19 @@ function UA() {
12804
12822
  }
12805
12823
  async function n() {
12806
12824
  var d;
12807
- let p = await CA();
12808
- return Array.isArray(p) && p.length ? p = JSON.parse(((d = p[0]) == null ? void 0 : d.value) || "") : p = [], p;
12825
+ let m = await Lt();
12826
+ return Array.isArray(m) && m.length ? m = JSON.parse(((d = m[0]) == null ? void 0 : d.value) || "") : m = [], m;
12809
12827
  }
12810
12828
  function a() {
12811
12829
  n().then((d) => {
12812
12830
  e.recent = d, r();
12813
12831
  });
12814
12832
  }
12815
- const A = (d) => {
12833
+ const t = (d) => {
12816
12834
  e.search = d;
12817
12835
  }, s = (d) => {
12818
12836
  e.emoji = d;
12819
- }, t = (d) => {
12837
+ }, A = (d) => {
12820
12838
  e.activeGroup = d;
12821
12839
  }, i = (d = Pe) => {
12822
12840
  e.skinTone = d;
@@ -12832,27 +12850,27 @@ function UA() {
12832
12850
  const g = (d) => {
12833
12851
  if (e.options.displayRecent !== !0)
12834
12852
  return;
12835
- const p = e.recent.findIndex((h) => h.u === d.u);
12836
- if (p > 0 && e.recent.splice(p, 1), p === 0)
12853
+ const m = e.recent.findIndex((h) => h.u === d.u);
12854
+ if (m > 0 && e.recent.splice(m, 1), m === 0)
12837
12855
  return;
12838
- const m = { u: d.u, n: Pf(d.n) };
12839
- e.recent = [m, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
12856
+ const p = { u: d.u, n: Pf(d.n) };
12857
+ e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
12840
12858
  };
12841
12859
  return {
12842
- state: Vn(e),
12843
- updateSearch: A,
12860
+ state: En(e),
12861
+ updateSearch: t,
12844
12862
  updateEmoji: s,
12845
- updateActiveGroup: t,
12863
+ updateActiveGroup: A,
12846
12864
  updateSkinTone: i,
12847
12865
  updateOptions: l,
12848
12866
  updateSelect: g
12849
12867
  };
12850
12868
  }
12851
- var q = "top", Z = "bottom", G = "right", F = "left", hf = "auto", Ue = [q, Z, G, F], ye = "start", ze = "end", LA = "clippingParents", An = "viewport", Ee = "popper", QA = "reference", Yf = /* @__PURE__ */ Ue.reduce(function(e, f) {
12869
+ var F = "top", Z = "bottom", G = "right", $ = "left", hf = "auto", Ue = [F, Z, G, $], ye = "start", ze = "end", Bt = "clippingParents", tn = "viewport", Ee = "popper", Yt = "reference", Yf = /* @__PURE__ */ Ue.reduce(function(e, f) {
12852
12870
  return e.concat([f + "-" + ye, f + "-" + ze]);
12853
- }, []), tn = /* @__PURE__ */ [].concat(Ue, [hf]).reduce(function(e, f) {
12871
+ }, []), An = /* @__PURE__ */ [].concat(Ue, [hf]).reduce(function(e, f) {
12854
12872
  return e.concat([f, f + "-" + ye, f + "-" + ze]);
12855
- }, []), BA = "beforeRead", YA = "read", RA = "afterRead", qA = "beforeMain", FA = "main", JA = "afterMain", WA = "beforeWrite", $A = "write", HA = "afterWrite", KA = [BA, YA, RA, qA, FA, JA, WA, $A, HA];
12873
+ }, []), Rt = "beforeRead", qt = "read", Ft = "afterRead", $t = "beforeMain", Wt = "main", Jt = "afterMain", Ht = "beforeWrite", Kt = "write", Pt = "afterWrite", Zt = [Rt, qt, Ft, $t, Wt, Jt, Ht, Kt, Pt];
12856
12874
  function ne(e) {
12857
12875
  return e ? (e.nodeName || "").toLowerCase() : null;
12858
12876
  }
@@ -12869,7 +12887,7 @@ function be(e) {
12869
12887
  var f = ee(e).Element;
12870
12888
  return e instanceof f || e instanceof Element;
12871
12889
  }
12872
- function H(e) {
12890
+ function P(e) {
12873
12891
  var f = ee(e).HTMLElement;
12874
12892
  return e instanceof f || e instanceof HTMLElement;
12875
12893
  }
@@ -12879,17 +12897,17 @@ function sn(e) {
12879
12897
  var f = ee(e).ShadowRoot;
12880
12898
  return e instanceof f || e instanceof ShadowRoot;
12881
12899
  }
12882
- function PA(e) {
12900
+ function Gt(e) {
12883
12901
  var f = e.state;
12884
12902
  Object.keys(f.elements).forEach(function(n) {
12885
- var a = f.styles[n] || {}, A = f.attributes[n] || {}, s = f.elements[n];
12886
- !H(s) || !ne(s) || (Object.assign(s.style, a), Object.keys(A).forEach(function(t) {
12887
- var i = A[t];
12888
- i === !1 ? s.removeAttribute(t) : s.setAttribute(t, i === !0 ? "" : i);
12903
+ var a = f.styles[n] || {}, t = f.attributes[n] || {}, s = f.elements[n];
12904
+ !P(s) || !ne(s) || (Object.assign(s.style, a), Object.keys(t).forEach(function(A) {
12905
+ var i = t[A];
12906
+ i === !1 ? s.removeAttribute(A) : s.setAttribute(A, i === !0 ? "" : i);
12889
12907
  }));
12890
12908
  });
12891
12909
  }
12892
- function ZA(e) {
12910
+ function Xt(e) {
12893
12911
  var f = e.state, n = {
12894
12912
  popper: {
12895
12913
  position: f.options.strategy,
@@ -12904,47 +12922,47 @@ function ZA(e) {
12904
12922
  };
12905
12923
  return Object.assign(f.elements.popper.style, n.popper), f.styles = n, f.elements.arrow && Object.assign(f.elements.arrow.style, n.arrow), function() {
12906
12924
  Object.keys(f.elements).forEach(function(a) {
12907
- var A = f.elements[a], s = f.attributes[a] || {}, t = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]), i = t.reduce(function(l, r) {
12925
+ 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(l, r) {
12908
12926
  return l[r] = "", l;
12909
12927
  }, {});
12910
- !H(A) || !ne(A) || (Object.assign(A.style, i), Object.keys(s).forEach(function(l) {
12911
- A.removeAttribute(l);
12928
+ !P(t) || !ne(t) || (Object.assign(t.style, i), Object.keys(s).forEach(function(l) {
12929
+ t.removeAttribute(l);
12912
12930
  }));
12913
12931
  });
12914
12932
  };
12915
12933
  }
12916
- var GA = {
12934
+ var eA = {
12917
12935
  name: "applyStyles",
12918
12936
  enabled: !0,
12919
12937
  phase: "write",
12920
- fn: PA,
12921
- effect: ZA,
12938
+ fn: Gt,
12939
+ effect: Xt,
12922
12940
  requires: ["computeStyles"]
12923
12941
  };
12924
12942
  function fe(e) {
12925
12943
  return e.split("-")[0];
12926
12944
  }
12927
- var de = Math.max, Ze = Math.min, ve = Math.round;
12928
- function Ie(e, f) {
12945
+ var ce = Math.max, Ze = Math.min, ve = Math.round;
12946
+ function _e(e, f) {
12929
12947
  f === void 0 && (f = !1);
12930
- var n = e.getBoundingClientRect(), a = 1, A = 1;
12931
- if (H(e) && f) {
12932
- var s = e.offsetHeight, t = e.offsetWidth;
12933
- t > 0 && (a = ve(n.width) / t || 1), s > 0 && (A = ve(n.height) / s || 1);
12948
+ var n = e.getBoundingClientRect(), a = 1, t = 1;
12949
+ if (P(e) && f) {
12950
+ var s = e.offsetHeight, A = e.offsetWidth;
12951
+ A > 0 && (a = ve(n.width) / A || 1), s > 0 && (t = ve(n.height) / s || 1);
12934
12952
  }
12935
12953
  return {
12936
12954
  width: n.width / a,
12937
- height: n.height / A,
12938
- top: n.top / A,
12955
+ height: n.height / t,
12956
+ top: n.top / t,
12939
12957
  right: n.right / a,
12940
- bottom: n.bottom / A,
12958
+ bottom: n.bottom / t,
12941
12959
  left: n.left / a,
12942
12960
  x: n.left / a,
12943
- y: n.top / A
12961
+ y: n.top / t
12944
12962
  };
12945
12963
  }
12946
12964
  function yf(e) {
12947
- var f = Ie(e), n = e.offsetWidth, a = e.offsetHeight;
12965
+ var f = _e(e), n = e.offsetWidth, a = e.offsetHeight;
12948
12966
  return Math.abs(f.width - n) <= 1 && (n = f.width), Math.abs(f.height - a) <= 1 && (a = f.height), {
12949
12967
  x: e.offsetLeft,
12950
12968
  y: e.offsetTop,
@@ -12969,45 +12987,45 @@ function on(e, f) {
12969
12987
  function ae(e) {
12970
12988
  return ee(e).getComputedStyle(e);
12971
12989
  }
12972
- function XA(e) {
12990
+ function fA(e) {
12973
12991
  return ["table", "td", "th"].indexOf(ne(e)) >= 0;
12974
12992
  }
12975
- function oe(e) {
12993
+ function ie(e) {
12976
12994
  return ((be(e) ? e.ownerDocument : e.document) || window.document).documentElement;
12977
12995
  }
12978
12996
  function ef(e) {
12979
- return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (sn(e) ? e.host : null) || oe(e);
12997
+ return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (sn(e) ? e.host : null) || ie(e);
12980
12998
  }
12981
12999
  function Rf(e) {
12982
- return !H(e) || ae(e).position === "fixed" ? null : e.offsetParent;
13000
+ return !P(e) || ae(e).position === "fixed" ? null : e.offsetParent;
12983
13001
  }
12984
- function et(e) {
13002
+ function nA(e) {
12985
13003
  var f = navigator.userAgent.toLowerCase().indexOf("firefox") !== -1, n = navigator.userAgent.indexOf("Trident") !== -1;
12986
- if (n && H(e)) {
13004
+ if (n && P(e)) {
12987
13005
  var a = ae(e);
12988
13006
  if (a.position === "fixed")
12989
13007
  return null;
12990
13008
  }
12991
- for (var A = ef(e); H(A) && ["html", "body"].indexOf(ne(A)) < 0; ) {
12992
- var s = ae(A);
13009
+ for (var t = ef(e); P(t) && ["html", "body"].indexOf(ne(t)) < 0; ) {
13010
+ var s = ae(t);
12993
13011
  if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || f && s.willChange === "filter" || f && s.filter && s.filter !== "none")
12994
- return A;
12995
- A = A.parentNode;
13012
+ return t;
13013
+ t = t.parentNode;
12996
13014
  }
12997
13015
  return null;
12998
13016
  }
12999
13017
  function Le(e) {
13000
- for (var f = ee(e), n = Rf(e); n && XA(n) && ae(n).position === "static"; )
13018
+ for (var f = ee(e), n = Rf(e); n && fA(n) && ae(n).position === "static"; )
13001
13019
  n = Rf(n);
13002
- return n && (ne(n) === "html" || ne(n) === "body" && ae(n).position === "static") ? f : n || et(e) || f;
13020
+ return n && (ne(n) === "html" || ne(n) === "body" && ae(n).position === "static") ? f : n || nA(e) || f;
13003
13021
  }
13004
13022
  function bf(e) {
13005
13023
  return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
13006
13024
  }
13007
13025
  function Te(e, f, n) {
13008
- return de(e, Ze(f, n));
13026
+ return ce(e, Ze(f, n));
13009
13027
  }
13010
- function ft(e, f, n) {
13028
+ function aA(e, f, n) {
13011
13029
  var a = Te(e, f, n);
13012
13030
  return a > n ? n : a;
13013
13031
  }
@@ -13027,84 +13045,84 @@ function rn(e, f) {
13027
13045
  return n[a] = e, n;
13028
13046
  }, {});
13029
13047
  }
13030
- var nt = function(f, n) {
13048
+ var tA = function(f, n) {
13031
13049
  return f = typeof f == "function" ? f(Object.assign({}, n.rects, {
13032
13050
  placement: n.placement
13033
13051
  })) : f, ln(typeof f != "number" ? f : rn(f, Ue));
13034
13052
  };
13035
- function at(e) {
13036
- var f, n = e.state, a = e.name, A = e.options, s = n.elements.arrow, t = n.modifiersData.popperOffsets, i = fe(n.placement), l = bf(i), r = [F, G].indexOf(i) >= 0, g = r ? "height" : "width";
13037
- if (!(!s || !t)) {
13038
- var d = nt(A.padding, n), p = yf(s), m = l === "y" ? q : F, h = l === "y" ? Z : G, _ = n.rects.reference[g] + n.rects.reference[l] - t[l] - n.rects.popper[g], M = t[l] - n.rects.reference[l], v = Le(s), b = v ? l === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, D = _ / 2 - M / 2, N = d[m], V = b - p[g] - d[h], E = b / 2 - p[g] / 2 + D, T = Te(N, E, V), z = l;
13039
- n.modifiersData[a] = (f = {}, f[z] = T, f.centerOffset = T - E, f);
13053
+ function AA(e) {
13054
+ var f, n = e.state, a = e.name, t = e.options, s = n.elements.arrow, A = n.modifiersData.popperOffsets, i = fe(n.placement), l = bf(i), r = [$, G].indexOf(i) >= 0, g = r ? "height" : "width";
13055
+ if (!(!s || !A)) {
13056
+ var d = tA(t.padding, n), m = yf(s), p = l === "y" ? F : $, h = l === "y" ? Z : G, I = n.rects.reference[g] + n.rects.reference[l] - A[l] - n.rects.popper[g], M = A[l] - n.rects.reference[l], N = Le(s), v = N ? l === "y" ? N.clientHeight || 0 : N.clientWidth || 0 : 0, _ = I / 2 - M / 2, k = d[p], E = v - m[g] - d[h], V = v / 2 - m[g] / 2 + _, x = Te(k, V, E), O = l;
13057
+ n.modifiersData[a] = (f = {}, f[O] = x, f.centerOffset = x - V, f);
13040
13058
  }
13041
13059
  }
13042
- function At(e) {
13043
- var f = e.state, n = e.options, a = n.element, A = a === void 0 ? "[data-popper-arrow]" : a;
13044
- A != null && (typeof A == "string" && (A = f.elements.popper.querySelector(A), !A) || on(f.elements.popper, A) && (f.elements.arrow = A));
13060
+ function sA(e) {
13061
+ var f = e.state, n = e.options, a = n.element, t = a === void 0 ? "[data-popper-arrow]" : a;
13062
+ t != null && (typeof t == "string" && (t = f.elements.popper.querySelector(t), !t) || on(f.elements.popper, t) && (f.elements.arrow = t));
13045
13063
  }
13046
- var tt = {
13064
+ var iA = {
13047
13065
  name: "arrow",
13048
13066
  enabled: !0,
13049
13067
  phase: "main",
13050
- fn: at,
13051
- effect: At,
13068
+ fn: AA,
13069
+ effect: sA,
13052
13070
  requires: ["popperOffsets"],
13053
13071
  requiresIfExists: ["preventOverflow"]
13054
13072
  };
13055
- function _e(e) {
13073
+ function Ie(e) {
13056
13074
  return e.split("-")[1];
13057
13075
  }
13058
- var st = {
13076
+ var oA = {
13059
13077
  top: "auto",
13060
13078
  right: "auto",
13061
13079
  bottom: "auto",
13062
13080
  left: "auto"
13063
13081
  };
13064
- function it(e) {
13065
- var f = e.x, n = e.y, a = window, A = a.devicePixelRatio || 1;
13082
+ function uA(e) {
13083
+ var f = e.x, n = e.y, a = window, t = a.devicePixelRatio || 1;
13066
13084
  return {
13067
- x: ve(f * A) / A || 0,
13068
- y: ve(n * A) / A || 0
13085
+ x: ve(f * t) / t || 0,
13086
+ y: ve(n * t) / t || 0
13069
13087
  };
13070
13088
  }
13071
13089
  function qf(e) {
13072
- var f, n = e.popper, a = e.popperRect, A = e.placement, s = e.variation, t = e.offsets, i = e.position, l = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? it(t) : typeof g == "function" ? g(t) : t, m = p.x, h = m === void 0 ? 0 : m, _ = p.y, M = _ === void 0 ? 0 : _, v = t.hasOwnProperty("x"), b = t.hasOwnProperty("y"), D = F, N = q, V = window;
13090
+ var f, n = e.popper, a = e.popperRect, t = e.placement, s = e.variation, A = e.offsets, i = e.position, l = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, d = e.isFixed, m = g === !0 ? uA(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, N = A.hasOwnProperty("x"), v = A.hasOwnProperty("y"), _ = $, k = F, E = window;
13073
13091
  if (r) {
13074
- var E = Le(n), T = "clientHeight", z = "clientWidth";
13075
- if (E === ee(n) && (E = oe(n), ae(E).position !== "static" && i === "absolute" && (T = "scrollHeight", z = "scrollWidth")), E = E, A === q || (A === F || A === G) && s === ze) {
13076
- N = Z;
13077
- var Q = d && V.visualViewport ? V.visualViewport.height : E[T];
13078
- M -= Q - a.height, M *= l ? 1 : -1;
13092
+ var V = Le(n), x = "clientHeight", O = "clientWidth";
13093
+ 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 === ze) {
13094
+ k = Z;
13095
+ var L = d && E.visualViewport ? E.visualViewport.height : V[x];
13096
+ M -= L - a.height, M *= l ? 1 : -1;
13079
13097
  }
13080
- if (A === F || (A === q || A === Z) && s === ze) {
13081
- D = G;
13082
- var C = d && V.visualViewport ? V.visualViewport.width : E[z];
13098
+ if (t === $ || (t === F || t === Z) && s === ze) {
13099
+ _ = G;
13100
+ var C = d && E.visualViewport ? E.visualViewport.width : V[O];
13083
13101
  h -= C - a.width, h *= l ? 1 : -1;
13084
13102
  }
13085
13103
  }
13086
13104
  var U = Object.assign({
13087
13105
  position: i
13088
- }, r && st);
13106
+ }, r && oA);
13089
13107
  if (l) {
13090
- var Y;
13091
- return Object.assign({}, U, (Y = {}, Y[N] = b ? "0" : "", Y[D] = v ? "0" : "", Y.transform = (V.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + M + "px)" : "translate3d(" + h + "px, " + M + "px, 0)", Y));
13108
+ var R;
13109
+ return Object.assign({}, U, (R = {}, R[k] = v ? "0" : "", R[_] = N ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + M + "px)" : "translate3d(" + h + "px, " + M + "px, 0)", R));
13092
13110
  }
13093
- return Object.assign({}, U, (f = {}, f[N] = b ? M + "px" : "", f[D] = v ? h + "px" : "", f.transform = "", f));
13111
+ return Object.assign({}, U, (f = {}, f[k] = v ? M + "px" : "", f[_] = N ? h + "px" : "", f.transform = "", f));
13094
13112
  }
13095
- function ot(e) {
13096
- var f = e.state, n = e.options, a = n.gpuAcceleration, A = a === void 0 ? !0 : a, s = n.adaptive, t = s === void 0 ? !0 : s, i = n.roundOffsets, l = i === void 0 ? !0 : i, r = {
13113
+ function lA(e) {
13114
+ 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, l = i === void 0 ? !0 : i, r = {
13097
13115
  placement: fe(f.placement),
13098
- variation: _e(f.placement),
13116
+ variation: Ie(f.placement),
13099
13117
  popper: f.elements.popper,
13100
13118
  popperRect: f.rects.popper,
13101
- gpuAcceleration: A,
13119
+ gpuAcceleration: t,
13102
13120
  isFixed: f.options.strategy === "fixed"
13103
13121
  };
13104
13122
  f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, qf(Object.assign({}, r, {
13105
13123
  offsets: f.modifiersData.popperOffsets,
13106
13124
  position: f.options.strategy,
13107
- adaptive: t,
13125
+ adaptive: A,
13108
13126
  roundOffsets: l
13109
13127
  })))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, qf(Object.assign({}, r, {
13110
13128
  offsets: f.modifiersData.arrow,
@@ -13115,17 +13133,17 @@ function ot(e) {
13115
13133
  "data-popper-placement": f.placement
13116
13134
  });
13117
13135
  }
13118
- var ut = {
13136
+ var rA = {
13119
13137
  name: "computeStyles",
13120
13138
  enabled: !0,
13121
13139
  phase: "beforeWrite",
13122
- fn: ot,
13140
+ fn: lA,
13123
13141
  data: {}
13124
13142
  }, We = {
13125
13143
  passive: !0
13126
13144
  };
13127
- function lt(e) {
13128
- var f = e.state, n = e.instance, a = e.options, A = a.scroll, s = A === void 0 ? !0 : A, t = a.resize, i = t === void 0 ? !0 : t, l = ee(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13145
+ function cA(e) {
13146
+ 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, l = ee(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13129
13147
  return s && r.forEach(function(g) {
13130
13148
  g.addEventListener("scroll", n.update, We);
13131
13149
  }), i && l.addEventListener("resize", n.update, We), function() {
@@ -13134,15 +13152,15 @@ function lt(e) {
13134
13152
  }), i && l.removeEventListener("resize", n.update, We);
13135
13153
  };
13136
13154
  }
13137
- var rt = {
13155
+ var dA = {
13138
13156
  name: "eventListeners",
13139
13157
  enabled: !0,
13140
13158
  phase: "write",
13141
13159
  fn: function() {
13142
13160
  },
13143
- effect: lt,
13161
+ effect: cA,
13144
13162
  data: {}
13145
- }, ct = {
13163
+ }, gA = {
13146
13164
  left: "right",
13147
13165
  right: "left",
13148
13166
  bottom: "top",
@@ -13150,16 +13168,16 @@ var rt = {
13150
13168
  };
13151
13169
  function He(e) {
13152
13170
  return e.replace(/left|right|bottom|top/g, function(f) {
13153
- return ct[f];
13171
+ return gA[f];
13154
13172
  });
13155
13173
  }
13156
- var dt = {
13174
+ var mA = {
13157
13175
  start: "end",
13158
13176
  end: "start"
13159
13177
  };
13160
13178
  function Ff(e) {
13161
13179
  return e.replace(/start|end/g, function(f) {
13162
- return dt[f];
13180
+ return mA[f];
13163
13181
  });
13164
13182
  }
13165
13183
  function vf(e) {
@@ -13169,39 +13187,39 @@ function vf(e) {
13169
13187
  scrollTop: a
13170
13188
  };
13171
13189
  }
13172
- function If(e) {
13173
- return Ie(oe(e)).left + vf(e).scrollLeft;
13190
+ function _f(e) {
13191
+ return _e(ie(e)).left + vf(e).scrollLeft;
13174
13192
  }
13175
- function gt(e) {
13176
- var f = ee(e), n = oe(e), a = f.visualViewport, A = n.clientWidth, s = n.clientHeight, t = 0, i = 0;
13177
- return a && (A = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (t = a.offsetLeft, i = a.offsetTop)), {
13178
- width: A,
13193
+ function pA(e) {
13194
+ var f = ee(e), n = ie(e), a = f.visualViewport, t = n.clientWidth, s = n.clientHeight, A = 0, i = 0;
13195
+ return a && (t = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (A = a.offsetLeft, i = a.offsetTop)), {
13196
+ width: t,
13179
13197
  height: s,
13180
- x: t + If(e),
13198
+ x: A + _f(e),
13181
13199
  y: i
13182
13200
  };
13183
13201
  }
13184
- function mt(e) {
13185
- var f, n = oe(e), a = vf(e), A = (f = e.ownerDocument) == null ? void 0 : f.body, s = de(n.scrollWidth, n.clientWidth, A ? A.scrollWidth : 0, A ? A.clientWidth : 0), t = de(n.scrollHeight, n.clientHeight, A ? A.scrollHeight : 0, A ? A.clientHeight : 0), i = -a.scrollLeft + If(e), l = -a.scrollTop;
13186
- return ae(A || n).direction === "rtl" && (i += de(n.clientWidth, A ? A.clientWidth : 0) - s), {
13202
+ function MA(e) {
13203
+ 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), l = -a.scrollTop;
13204
+ return ae(t || n).direction === "rtl" && (i += ce(n.clientWidth, t ? t.clientWidth : 0) - s), {
13187
13205
  width: s,
13188
- height: t,
13206
+ height: A,
13189
13207
  x: i,
13190
13208
  y: l
13191
13209
  };
13192
13210
  }
13193
- function _f(e) {
13194
- var f = ae(e), n = f.overflow, a = f.overflowX, A = f.overflowY;
13195
- return /auto|scroll|overlay|hidden/.test(n + A + a);
13211
+ function If(e) {
13212
+ var f = ae(e), n = f.overflow, a = f.overflowX, t = f.overflowY;
13213
+ return /auto|scroll|overlay|hidden/.test(n + t + a);
13196
13214
  }
13197
13215
  function cn(e) {
13198
- return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : H(e) && _f(e) ? e : cn(ef(e));
13216
+ return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : P(e) && If(e) ? e : cn(ef(e));
13199
13217
  }
13200
13218
  function xe(e, f) {
13201
13219
  var n;
13202
13220
  f === void 0 && (f = []);
13203
- var a = cn(e), A = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ee(a), t = A ? [s].concat(s.visualViewport || [], _f(a) ? a : []) : a, i = f.concat(t);
13204
- return A ? i : i.concat(xe(ef(t)));
13221
+ 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);
13222
+ return t ? i : i.concat(xe(ef(A)));
13205
13223
  }
13206
13224
  function df(e) {
13207
13225
  return Object.assign({}, e, {
@@ -13211,38 +13229,38 @@ function df(e) {
13211
13229
  bottom: e.y + e.height
13212
13230
  });
13213
13231
  }
13214
- function pt(e) {
13215
- var f = Ie(e);
13232
+ function hA(e) {
13233
+ var f = _e(e);
13216
13234
  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;
13217
13235
  }
13218
- function Jf(e, f) {
13219
- return f === An ? df(gt(e)) : be(f) ? pt(f) : df(mt(oe(e)));
13236
+ function $f(e, f) {
13237
+ return f === tn ? df(pA(e)) : be(f) ? hA(f) : df(MA(ie(e)));
13220
13238
  }
13221
- function Mt(e) {
13222
- var f = xe(ef(e)), n = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, a = n && H(e) ? Le(e) : e;
13223
- return be(a) ? f.filter(function(A) {
13224
- return be(A) && on(A, a) && ne(A) !== "body" && (n ? ae(A).position !== "static" : !0);
13239
+ function yA(e) {
13240
+ var f = xe(ef(e)), n = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, a = n && P(e) ? Le(e) : e;
13241
+ return be(a) ? f.filter(function(t) {
13242
+ return be(t) && on(t, a) && ne(t) !== "body" && (n ? ae(t).position !== "static" : !0);
13225
13243
  }) : [];
13226
13244
  }
13227
- function ht(e, f, n) {
13228
- var a = f === "clippingParents" ? Mt(e) : [].concat(f), A = [].concat(a, [n]), s = A[0], t = A.reduce(function(i, l) {
13229
- var r = Jf(e, l);
13230
- return i.top = de(r.top, i.top), i.right = Ze(r.right, i.right), i.bottom = Ze(r.bottom, i.bottom), i.left = de(r.left, i.left), i;
13231
- }, Jf(e, s));
13232
- return t.width = t.right - t.left, t.height = t.bottom - t.top, t.x = t.left, t.y = t.top, t;
13245
+ function bA(e, f, n) {
13246
+ var a = f === "clippingParents" ? yA(e) : [].concat(f), t = [].concat(a, [n]), s = t[0], A = t.reduce(function(i, l) {
13247
+ var r = $f(e, l);
13248
+ 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;
13249
+ }, $f(e, s));
13250
+ return A.width = A.right - A.left, A.height = A.bottom - A.top, A.x = A.left, A.y = A.top, A;
13233
13251
  }
13234
13252
  function dn(e) {
13235
- var f = e.reference, n = e.element, a = e.placement, A = a ? fe(a) : null, s = a ? _e(a) : null, t = f.x + f.width / 2 - n.width / 2, i = f.y + f.height / 2 - n.height / 2, l;
13236
- switch (A) {
13237
- case q:
13253
+ var f = e.reference, n = e.element, a = e.placement, t = a ? fe(a) : null, s = a ? Ie(a) : null, A = f.x + f.width / 2 - n.width / 2, i = f.y + f.height / 2 - n.height / 2, l;
13254
+ switch (t) {
13255
+ case F:
13238
13256
  l = {
13239
- x: t,
13257
+ x: A,
13240
13258
  y: f.y - n.height
13241
13259
  };
13242
13260
  break;
13243
13261
  case Z:
13244
13262
  l = {
13245
- x: t,
13263
+ x: A,
13246
13264
  y: f.y + f.height
13247
13265
  };
13248
13266
  break;
@@ -13252,7 +13270,7 @@ function dn(e) {
13252
13270
  y: i
13253
13271
  };
13254
13272
  break;
13255
- case F:
13273
+ case $:
13256
13274
  l = {
13257
13275
  x: f.x - n.width,
13258
13276
  y: i
@@ -13264,7 +13282,7 @@ function dn(e) {
13264
13282
  y: f.y
13265
13283
  };
13266
13284
  }
13267
- var r = A ? bf(A) : null;
13285
+ var r = t ? bf(t) : null;
13268
13286
  if (r != null) {
13269
13287
  var g = r === "y" ? "height" : "width";
13270
13288
  switch (s) {
@@ -13280,106 +13298,106 @@ function dn(e) {
13280
13298
  }
13281
13299
  function Oe(e, f) {
13282
13300
  f === void 0 && (f = {});
13283
- var n = f, a = n.placement, A = a === void 0 ? e.placement : a, s = n.boundary, t = s === void 0 ? LA : s, i = n.rootBoundary, l = i === void 0 ? An : i, r = n.elementContext, g = r === void 0 ? Ee : r, d = n.altBoundary, p = d === void 0 ? !1 : d, m = n.padding, h = m === void 0 ? 0 : m, _ = ln(typeof h != "number" ? h : rn(h, Ue)), M = g === Ee ? QA : Ee, v = e.rects.popper, b = e.elements[p ? M : g], D = ht(be(b) ? b : b.contextElement || oe(e.elements.popper), t, l), N = Ie(e.elements.reference), V = dn({
13284
- reference: N,
13285
- element: v,
13301
+ var n = f, a = n.placement, t = a === void 0 ? e.placement : a, s = n.boundary, A = s === void 0 ? Bt : s, i = n.rootBoundary, l = i === void 0 ? tn : i, r = n.elementContext, g = r === void 0 ? Ee : r, d = n.altBoundary, m = d === void 0 ? !1 : d, p = n.padding, h = p === void 0 ? 0 : p, I = ln(typeof h != "number" ? h : rn(h, Ue)), M = g === Ee ? Yt : Ee, N = e.rects.popper, v = e.elements[m ? M : g], _ = bA(be(v) ? v : v.contextElement || ie(e.elements.popper), A, l), k = _e(e.elements.reference), E = dn({
13302
+ reference: k,
13303
+ element: N,
13286
13304
  strategy: "absolute",
13287
- placement: A
13288
- }), E = df(Object.assign({}, v, V)), T = g === Ee ? E : N, z = {
13289
- top: D.top - T.top + _.top,
13290
- bottom: T.bottom - D.bottom + _.bottom,
13291
- left: D.left - T.left + _.left,
13292
- right: T.right - D.right + _.right
13293
- }, Q = e.modifiersData.offset;
13294
- if (g === Ee && Q) {
13295
- var C = Q[A];
13296
- Object.keys(z).forEach(function(U) {
13297
- var Y = [G, Z].indexOf(U) >= 0 ? 1 : -1, ue = [q, Z].indexOf(U) >= 0 ? "y" : "x";
13298
- z[U] += C[ue] * Y;
13305
+ placement: t
13306
+ }), V = df(Object.assign({}, N, E)), x = g === Ee ? V : k, O = {
13307
+ top: _.top - x.top + I.top,
13308
+ bottom: x.bottom - _.bottom + I.bottom,
13309
+ left: _.left - x.left + I.left,
13310
+ right: x.right - _.right + I.right
13311
+ }, L = e.modifiersData.offset;
13312
+ if (g === Ee && L) {
13313
+ var C = L[t];
13314
+ Object.keys(O).forEach(function(U) {
13315
+ var R = [G, Z].indexOf(U) >= 0 ? 1 : -1, oe = [F, Z].indexOf(U) >= 0 ? "y" : "x";
13316
+ O[U] += C[oe] * R;
13299
13317
  });
13300
13318
  }
13301
- return z;
13319
+ return O;
13302
13320
  }
13303
- function yt(e, f) {
13321
+ function vA(e, f) {
13304
13322
  f === void 0 && (f = {});
13305
- var n = f, a = n.placement, A = n.boundary, s = n.rootBoundary, t = n.padding, i = n.flipVariations, l = n.allowedAutoPlacements, r = l === void 0 ? tn : l, g = _e(a), d = g ? i ? Yf : Yf.filter(function(h) {
13306
- return _e(h) === g;
13307
- }) : Ue, p = d.filter(function(h) {
13323
+ var n = f, a = n.placement, t = n.boundary, s = n.rootBoundary, A = n.padding, i = n.flipVariations, l = n.allowedAutoPlacements, r = l === void 0 ? An : l, g = Ie(a), d = g ? i ? Yf : Yf.filter(function(h) {
13324
+ return Ie(h) === g;
13325
+ }) : Ue, m = d.filter(function(h) {
13308
13326
  return r.indexOf(h) >= 0;
13309
13327
  });
13310
- p.length === 0 && (p = d);
13311
- var m = p.reduce(function(h, _) {
13312
- return h[_] = Oe(e, {
13313
- placement: _,
13314
- boundary: A,
13328
+ m.length === 0 && (m = d);
13329
+ var p = m.reduce(function(h, I) {
13330
+ return h[I] = Oe(e, {
13331
+ placement: I,
13332
+ boundary: t,
13315
13333
  rootBoundary: s,
13316
- padding: t
13317
- })[fe(_)], h;
13334
+ padding: A
13335
+ })[fe(I)], h;
13318
13336
  }, {});
13319
- return Object.keys(m).sort(function(h, _) {
13320
- return m[h] - m[_];
13337
+ return Object.keys(p).sort(function(h, I) {
13338
+ return p[h] - p[I];
13321
13339
  });
13322
13340
  }
13323
- function bt(e) {
13341
+ function _A(e) {
13324
13342
  if (fe(e) === hf)
13325
13343
  return [];
13326
13344
  var f = He(e);
13327
13345
  return [Ff(e), f, Ff(f)];
13328
13346
  }
13329
- function vt(e) {
13347
+ function IA(e) {
13330
13348
  var f = e.state, n = e.options, a = e.name;
13331
13349
  if (!f.modifiersData[a]._skip) {
13332
- for (var A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !0 : t, l = n.fallbackPlacements, r = n.padding, g = n.boundary, d = n.rootBoundary, p = n.altBoundary, m = n.flipVariations, h = m === void 0 ? !0 : m, _ = n.allowedAutoPlacements, M = f.options.placement, v = fe(M), b = v === M, D = l || (b || !h ? [He(M)] : bt(M)), N = [M].concat(D).reduce(function(pe, te) {
13333
- return pe.concat(fe(te) === hf ? yt(f, {
13334
- placement: te,
13350
+ for (var t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, i = A === void 0 ? !0 : A, l = 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, N = fe(M), v = N === M, _ = l || (v || !h ? [He(M)] : _A(M)), k = [M].concat(_).reduce(function(pe, Ae) {
13351
+ return pe.concat(fe(Ae) === hf ? vA(f, {
13352
+ placement: Ae,
13335
13353
  boundary: g,
13336
13354
  rootBoundary: d,
13337
13355
  padding: r,
13338
13356
  flipVariations: h,
13339
- allowedAutoPlacements: _
13340
- }) : te);
13341
- }, []), V = f.rects.reference, E = f.rects.popper, T = /* @__PURE__ */ new Map(), z = !0, Q = N[0], C = 0; C < N.length; C++) {
13342
- var U = N[C], Y = fe(U), ue = _e(U) === ye, Ne = [q, Z].indexOf(Y) >= 0, ke = Ne ? "width" : "height", J = Oe(f, {
13357
+ allowedAutoPlacements: I
13358
+ }) : Ae);
13359
+ }, []), E = f.rects.reference, V = f.rects.popper, x = /* @__PURE__ */ new Map(), O = !0, L = k[0], C = 0; C < k.length; C++) {
13360
+ var U = k[C], R = fe(U), oe = Ie(U) === ye, Ne = [F, Z].indexOf(R) >= 0, De = Ne ? "width" : "height", W = Oe(f, {
13343
13361
  placement: U,
13344
13362
  boundary: g,
13345
13363
  rootBoundary: d,
13346
- altBoundary: p,
13364
+ altBoundary: m,
13347
13365
  padding: r
13348
- }), X = Ne ? ue ? G : F : ue ? Z : q;
13349
- V[ke] > E[ke] && (X = He(X));
13350
- var Be = He(X), le = [];
13351
- if (s && le.push(J[Y] <= 0), i && le.push(J[X] <= 0, J[Be] <= 0), le.every(function(pe) {
13366
+ }), X = Ne ? oe ? G : $ : oe ? Z : F;
13367
+ E[De] > V[De] && (X = He(X));
13368
+ var Be = He(X), ue = [];
13369
+ if (s && ue.push(W[R] <= 0), i && ue.push(W[X] <= 0, W[Be] <= 0), ue.every(function(pe) {
13352
13370
  return pe;
13353
13371
  })) {
13354
- Q = U, z = !1;
13372
+ L = U, O = !1;
13355
13373
  break;
13356
13374
  }
13357
- T.set(U, le);
13375
+ x.set(U, ue);
13358
13376
  }
13359
- if (z)
13360
- for (var Ye = h ? 3 : 1, ff = function(te) {
13361
- var Ve = N.find(function(qe) {
13362
- var re = T.get(qe);
13363
- if (re)
13364
- return re.slice(0, te).every(function(nf) {
13377
+ if (O)
13378
+ for (var Ye = h ? 3 : 1, ff = function(Ae) {
13379
+ var Ve = k.find(function(qe) {
13380
+ var le = x.get(qe);
13381
+ if (le)
13382
+ return le.slice(0, Ae).every(function(nf) {
13365
13383
  return nf;
13366
13384
  });
13367
13385
  });
13368
13386
  if (Ve)
13369
- return Q = Ve, "break";
13387
+ return L = Ve, "break";
13370
13388
  }, je = Ye; je > 0; je--) {
13371
13389
  var Re = ff(je);
13372
13390
  if (Re === "break")
13373
13391
  break;
13374
13392
  }
13375
- f.placement !== Q && (f.modifiersData[a]._skip = !0, f.placement = Q, f.reset = !0);
13393
+ f.placement !== L && (f.modifiersData[a]._skip = !0, f.placement = L, f.reset = !0);
13376
13394
  }
13377
13395
  }
13378
- var It = {
13396
+ var wA = {
13379
13397
  name: "flip",
13380
13398
  enabled: !0,
13381
13399
  phase: "main",
13382
- fn: vt,
13400
+ fn: IA,
13383
13401
  requiresIfExists: ["offset"],
13384
13402
  data: {
13385
13403
  _skip: !1
@@ -13396,17 +13414,17 @@ function Wf(e, f, n) {
13396
13414
  left: e.left - f.width - n.x
13397
13415
  };
13398
13416
  }
13399
- function $f(e) {
13400
- return [q, G, Z, F].some(function(f) {
13417
+ function Jf(e) {
13418
+ return [F, G, Z, $].some(function(f) {
13401
13419
  return e[f] >= 0;
13402
13420
  });
13403
13421
  }
13404
- function _t(e) {
13405
- var f = e.state, n = e.name, a = f.rects.reference, A = f.rects.popper, s = f.modifiersData.preventOverflow, t = Oe(f, {
13422
+ function kA(e) {
13423
+ var f = e.state, n = e.name, a = f.rects.reference, t = f.rects.popper, s = f.modifiersData.preventOverflow, A = Oe(f, {
13406
13424
  elementContext: "reference"
13407
13425
  }), i = Oe(f, {
13408
13426
  altBoundary: !0
13409
- }), l = Wf(t, a), r = Wf(i, A, s), g = $f(l), d = $f(r);
13427
+ }), l = Wf(A, a), r = Wf(i, t, s), g = Jf(l), d = Jf(r);
13410
13428
  f.modifiersData[n] = {
13411
13429
  referenceClippingOffsets: l,
13412
13430
  popperEscapeOffsets: r,
@@ -13417,39 +13435,39 @@ function _t(e) {
13417
13435
  "data-popper-escaped": d
13418
13436
  });
13419
13437
  }
13420
- var wt = {
13438
+ var NA = {
13421
13439
  name: "hide",
13422
13440
  enabled: !0,
13423
13441
  phase: "main",
13424
13442
  requiresIfExists: ["preventOverflow"],
13425
- fn: _t
13443
+ fn: kA
13426
13444
  };
13427
- function Dt(e, f, n) {
13428
- var a = fe(e), A = [F, q].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
13445
+ function DA(e, f, n) {
13446
+ var a = fe(e), t = [$, F].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
13429
13447
  placement: e
13430
- })) : n, t = s[0], i = s[1];
13431
- return t = t || 0, i = (i || 0) * A, [F, G].indexOf(a) >= 0 ? {
13448
+ })) : n, A = s[0], i = s[1];
13449
+ return A = A || 0, i = (i || 0) * t, [$, G].indexOf(a) >= 0 ? {
13432
13450
  x: i,
13433
- y: t
13451
+ y: A
13434
13452
  } : {
13435
- x: t,
13453
+ x: A,
13436
13454
  y: i
13437
13455
  };
13438
13456
  }
13439
- function Nt(e) {
13440
- var f = e.state, n = e.options, a = e.name, A = n.offset, s = A === void 0 ? [0, 0] : A, t = tn.reduce(function(g, d) {
13441
- return g[d] = Dt(d, f.rects, s), g;
13442
- }, {}), i = t[f.placement], l = i.x, r = i.y;
13443
- f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += l, f.modifiersData.popperOffsets.y += r), f.modifiersData[a] = t;
13457
+ function jA(e) {
13458
+ 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) {
13459
+ return g[d] = DA(d, f.rects, s), g;
13460
+ }, {}), i = A[f.placement], l = i.x, r = i.y;
13461
+ f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += l, f.modifiersData.popperOffsets.y += r), f.modifiersData[a] = A;
13444
13462
  }
13445
- var kt = {
13463
+ var VA = {
13446
13464
  name: "offset",
13447
13465
  enabled: !0,
13448
13466
  phase: "main",
13449
13467
  requires: ["popperOffsets"],
13450
- fn: Nt
13468
+ fn: jA
13451
13469
  };
13452
- function jt(e) {
13470
+ function EA(e) {
13453
13471
  var f = e.state, n = e.name;
13454
13472
  f.modifiersData[n] = dn({
13455
13473
  reference: f.rects.reference,
@@ -13458,113 +13476,113 @@ function jt(e) {
13458
13476
  placement: f.placement
13459
13477
  });
13460
13478
  }
13461
- var Vt = {
13479
+ var TA = {
13462
13480
  name: "popperOffsets",
13463
13481
  enabled: !0,
13464
13482
  phase: "read",
13465
- fn: jt,
13483
+ fn: EA,
13466
13484
  data: {}
13467
13485
  };
13468
- function Et(e) {
13486
+ function xA(e) {
13469
13487
  return e === "x" ? "y" : "x";
13470
13488
  }
13471
- function Tt(e) {
13472
- var f = e.state, n = e.options, a = e.name, A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !1 : t, l = n.boundary, r = n.rootBoundary, g = n.altBoundary, d = n.padding, p = n.tether, m = p === void 0 ? !0 : p, h = n.tetherOffset, _ = h === void 0 ? 0 : h, M = Oe(f, {
13489
+ function SA(e) {
13490
+ 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, l = 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 = Oe(f, {
13473
13491
  boundary: l,
13474
13492
  rootBoundary: r,
13475
13493
  padding: d,
13476
13494
  altBoundary: g
13477
- }), v = fe(f.placement), b = _e(f.placement), D = !b, N = bf(v), V = Et(N), E = f.modifiersData.popperOffsets, T = f.rects.reference, z = f.rects.popper, Q = typeof _ == "function" ? _(Object.assign({}, f.rects, {
13495
+ }), N = fe(f.placement), v = Ie(f.placement), _ = !v, k = bf(N), E = xA(k), V = f.modifiersData.popperOffsets, x = f.rects.reference, O = f.rects.popper, L = typeof I == "function" ? I(Object.assign({}, f.rects, {
13478
13496
  placement: f.placement
13479
- })) : _, C = typeof Q == "number" ? {
13480
- mainAxis: Q,
13481
- altAxis: Q
13497
+ })) : I, C = typeof L == "number" ? {
13498
+ mainAxis: L,
13499
+ altAxis: L
13482
13500
  } : Object.assign({
13483
13501
  mainAxis: 0,
13484
13502
  altAxis: 0
13485
- }, Q), U = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, Y = {
13503
+ }, L), U = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, R = {
13486
13504
  x: 0,
13487
13505
  y: 0
13488
13506
  };
13489
- if (E) {
13507
+ if (V) {
13490
13508
  if (s) {
13491
- var ue, Ne = N === "y" ? q : F, ke = N === "y" ? Z : G, J = N === "y" ? "height" : "width", X = E[N], Be = X + M[Ne], le = X - M[ke], Ye = m ? -z[J] / 2 : 0, ff = b === ye ? T[J] : z[J], je = b === ye ? -z[J] : -T[J], Re = f.elements.arrow, pe = m && Re ? yf(Re) : {
13509
+ var oe, Ne = k === "y" ? F : $, De = k === "y" ? Z : G, W = k === "y" ? "height" : "width", X = V[k], Be = X + M[Ne], ue = X - M[De], Ye = p ? -O[W] / 2 : 0, ff = v === ye ? x[W] : O[W], je = v === ye ? -O[W] : -x[W], Re = f.elements.arrow, pe = p && Re ? yf(Re) : {
13492
13510
  width: 0,
13493
13511
  height: 0
13494
- }, te = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : un(), Ve = te[Ne], qe = te[ke], re = Te(0, T[J], pe[J]), nf = D ? T[J] / 2 - Ye - re - Ve - C.mainAxis : ff - re - Ve - C.mainAxis, Mn = D ? -T[J] / 2 + Ye + re + qe + C.mainAxis : je + re + qe + C.mainAxis, af = f.elements.arrow && Le(f.elements.arrow), hn = af ? N === "y" ? af.clientTop || 0 : af.clientLeft || 0 : 0, Df = (ue = U == null ? void 0 : U[N]) != null ? ue : 0, yn = X + nf - Df - hn, bn = X + Mn - Df, Nf = Te(m ? Ze(Be, yn) : Be, X, m ? de(le, bn) : le);
13495
- E[N] = Nf, Y[N] = Nf - X;
13512
+ }, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : un(), Ve = Ae[Ne], qe = Ae[De], le = Te(0, x[W], pe[W]), nf = _ ? x[W] / 2 - Ye - le - Ve - C.mainAxis : ff - le - Ve - C.mainAxis, hn = _ ? -x[W] / 2 + Ye + le + qe + C.mainAxis : je + le + qe + C.mainAxis, af = f.elements.arrow && Le(f.elements.arrow), yn = af ? k === "y" ? af.clientTop || 0 : af.clientLeft || 0 : 0, kf = (oe = U == null ? void 0 : U[k]) != null ? oe : 0, bn = X + nf - kf - yn, vn = X + hn - kf, Nf = Te(p ? Ze(Be, bn) : Be, X, p ? ce(ue, vn) : ue);
13513
+ V[k] = Nf, R[k] = Nf - X;
13496
13514
  }
13497
13515
  if (i) {
13498
- var kf, vn = N === "x" ? q : F, In = N === "x" ? Z : G, ce = E[V], Fe = V === "y" ? "height" : "width", jf = ce + M[vn], Vf = ce - M[In], Af = [q, F].indexOf(v) !== -1, Ef = (kf = U == null ? void 0 : U[V]) != null ? kf : 0, Tf = Af ? jf : ce - T[Fe] - z[Fe] - Ef + C.altAxis, xf = Af ? ce + T[Fe] + z[Fe] - Ef - C.altAxis : Vf, Sf = m && Af ? ft(Tf, ce, xf) : Te(m ? Tf : jf, ce, m ? xf : Vf);
13499
- E[V] = Sf, Y[V] = Sf - ce;
13516
+ var Df, _n = k === "x" ? F : $, In = k === "x" ? Z : G, re = V[E], Fe = E === "y" ? "height" : "width", jf = re + M[_n], Vf = re - M[In], tf = [F, $].indexOf(N) !== -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 ? aA(Tf, re, xf) : Te(p ? Tf : jf, re, p ? xf : Vf);
13517
+ V[E] = Sf, R[E] = Sf - re;
13500
13518
  }
13501
- f.modifiersData[a] = Y;
13519
+ f.modifiersData[a] = R;
13502
13520
  }
13503
13521
  }
13504
- var xt = {
13522
+ var zA = {
13505
13523
  name: "preventOverflow",
13506
13524
  enabled: !0,
13507
13525
  phase: "main",
13508
- fn: Tt,
13526
+ fn: SA,
13509
13527
  requiresIfExists: ["offset"]
13510
13528
  };
13511
- function St(e) {
13529
+ function OA(e) {
13512
13530
  return {
13513
13531
  scrollLeft: e.scrollLeft,
13514
13532
  scrollTop: e.scrollTop
13515
13533
  };
13516
13534
  }
13517
- function zt(e) {
13518
- return e === ee(e) || !H(e) ? vf(e) : St(e);
13535
+ function CA(e) {
13536
+ return e === ee(e) || !P(e) ? vf(e) : OA(e);
13519
13537
  }
13520
- function Ot(e) {
13538
+ function UA(e) {
13521
13539
  var f = e.getBoundingClientRect(), n = ve(f.width) / e.offsetWidth || 1, a = ve(f.height) / e.offsetHeight || 1;
13522
13540
  return n !== 1 || a !== 1;
13523
13541
  }
13524
- function Ct(e, f, n) {
13542
+ function LA(e, f, n) {
13525
13543
  n === void 0 && (n = !1);
13526
- var a = H(f), A = H(f) && Ot(f), s = oe(f), t = Ie(e, A), i = {
13544
+ var a = P(f), t = P(f) && UA(f), s = ie(f), A = _e(e, t), i = {
13527
13545
  scrollLeft: 0,
13528
13546
  scrollTop: 0
13529
13547
  }, l = {
13530
13548
  x: 0,
13531
13549
  y: 0
13532
13550
  };
13533
- return (a || !a && !n) && ((ne(f) !== "body" || _f(s)) && (i = zt(f)), H(f) ? (l = Ie(f, !0), l.x += f.clientLeft, l.y += f.clientTop) : s && (l.x = If(s))), {
13534
- x: t.left + i.scrollLeft - l.x,
13535
- y: t.top + i.scrollTop - l.y,
13536
- width: t.width,
13537
- height: t.height
13551
+ return (a || !a && !n) && ((ne(f) !== "body" || If(s)) && (i = CA(f)), P(f) ? (l = _e(f, !0), l.x += f.clientLeft, l.y += f.clientTop) : s && (l.x = _f(s))), {
13552
+ x: A.left + i.scrollLeft - l.x,
13553
+ y: A.top + i.scrollTop - l.y,
13554
+ width: A.width,
13555
+ height: A.height
13538
13556
  };
13539
13557
  }
13540
- function Ut(e) {
13558
+ function QA(e) {
13541
13559
  var f = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
13542
13560
  e.forEach(function(s) {
13543
13561
  f.set(s.name, s);
13544
13562
  });
13545
- function A(s) {
13563
+ function t(s) {
13546
13564
  n.add(s.name);
13547
- var t = [].concat(s.requires || [], s.requiresIfExists || []);
13548
- t.forEach(function(i) {
13565
+ var A = [].concat(s.requires || [], s.requiresIfExists || []);
13566
+ A.forEach(function(i) {
13549
13567
  if (!n.has(i)) {
13550
13568
  var l = f.get(i);
13551
- l && A(l);
13569
+ l && t(l);
13552
13570
  }
13553
13571
  }), a.push(s);
13554
13572
  }
13555
13573
  return e.forEach(function(s) {
13556
- n.has(s.name) || A(s);
13574
+ n.has(s.name) || t(s);
13557
13575
  }), a;
13558
13576
  }
13559
- function Lt(e) {
13560
- var f = Ut(e);
13561
- return KA.reduce(function(n, a) {
13562
- return n.concat(f.filter(function(A) {
13563
- return A.phase === a;
13577
+ function BA(e) {
13578
+ var f = QA(e);
13579
+ return Zt.reduce(function(n, a) {
13580
+ return n.concat(f.filter(function(t) {
13581
+ return t.phase === a;
13564
13582
  }));
13565
13583
  }, []);
13566
13584
  }
13567
- function Qt(e) {
13585
+ function YA(e) {
13568
13586
  var f;
13569
13587
  return function() {
13570
13588
  return f || (f = new Promise(function(n) {
@@ -13574,12 +13592,12 @@ function Qt(e) {
13574
13592
  })), f;
13575
13593
  };
13576
13594
  }
13577
- function Bt(e) {
13595
+ function RA(e) {
13578
13596
  var f = e.reduce(function(n, a) {
13579
- var A = n[a.name];
13580
- return n[a.name] = A ? Object.assign({}, A, a, {
13581
- options: Object.assign({}, A.options, a.options),
13582
- data: Object.assign({}, A.data, a.data)
13597
+ var t = n[a.name];
13598
+ return n[a.name] = t ? Object.assign({}, t, a, {
13599
+ options: Object.assign({}, t.options, a.options),
13600
+ data: Object.assign({}, t.data, a.data)
13583
13601
  }) : a, n;
13584
13602
  }, {});
13585
13603
  return Object.keys(f).map(function(n) {
@@ -13598,9 +13616,9 @@ function Kf() {
13598
13616
  return !(a && typeof a.getBoundingClientRect == "function");
13599
13617
  });
13600
13618
  }
13601
- function Yt(e) {
13619
+ function qA(e) {
13602
13620
  e === void 0 && (e = {});
13603
- var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, A = f.defaultOptions, s = A === void 0 ? Hf : A;
13621
+ var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, t = f.defaultOptions, s = t === void 0 ? Hf : t;
13604
13622
  return function(i, l, r) {
13605
13623
  r === void 0 && (r = s);
13606
13624
  var g = {
@@ -13614,111 +13632,111 @@ function Yt(e) {
13614
13632
  },
13615
13633
  attributes: {},
13616
13634
  styles: {}
13617
- }, d = [], p = !1, m = {
13635
+ }, d = [], m = !1, p = {
13618
13636
  state: g,
13619
- setOptions: function(v) {
13620
- var b = typeof v == "function" ? v(g.options) : v;
13621
- _(), g.options = Object.assign({}, s, g.options, b), g.scrollParents = {
13637
+ setOptions: function(N) {
13638
+ var v = typeof N == "function" ? N(g.options) : N;
13639
+ I(), g.options = Object.assign({}, s, g.options, v), g.scrollParents = {
13622
13640
  reference: be(i) ? xe(i) : i.contextElement ? xe(i.contextElement) : [],
13623
13641
  popper: xe(l)
13624
13642
  };
13625
- var D = Lt(Bt([].concat(a, g.options.modifiers)));
13626
- return g.orderedModifiers = D.filter(function(N) {
13627
- return N.enabled;
13628
- }), h(), m.update();
13643
+ var _ = BA(RA([].concat(a, g.options.modifiers)));
13644
+ return g.orderedModifiers = _.filter(function(k) {
13645
+ return k.enabled;
13646
+ }), h(), p.update();
13629
13647
  },
13630
13648
  forceUpdate: function() {
13631
- if (!p) {
13632
- var v = g.elements, b = v.reference, D = v.popper;
13633
- if (Kf(b, D)) {
13649
+ if (!m) {
13650
+ var N = g.elements, v = N.reference, _ = N.popper;
13651
+ if (Kf(v, _)) {
13634
13652
  g.rects = {
13635
- reference: Ct(b, Le(D), g.options.strategy === "fixed"),
13636
- popper: yf(D)
13653
+ reference: LA(v, Le(_), g.options.strategy === "fixed"),
13654
+ popper: yf(_)
13637
13655
  }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(C) {
13638
13656
  return g.modifiersData[C.name] = Object.assign({}, C.data);
13639
13657
  });
13640
- for (var N = 0; N < g.orderedModifiers.length; N++) {
13658
+ for (var k = 0; k < g.orderedModifiers.length; k++) {
13641
13659
  if (g.reset === !0) {
13642
- g.reset = !1, N = -1;
13660
+ g.reset = !1, k = -1;
13643
13661
  continue;
13644
13662
  }
13645
- var V = g.orderedModifiers[N], E = V.fn, T = V.options, z = T === void 0 ? {} : T, Q = V.name;
13646
- typeof E == "function" && (g = E({
13663
+ var E = g.orderedModifiers[k], V = E.fn, x = E.options, O = x === void 0 ? {} : x, L = E.name;
13664
+ typeof V == "function" && (g = V({
13647
13665
  state: g,
13648
- options: z,
13649
- name: Q,
13650
- instance: m
13666
+ options: O,
13667
+ name: L,
13668
+ instance: p
13651
13669
  }) || g);
13652
13670
  }
13653
13671
  }
13654
13672
  }
13655
13673
  },
13656
- update: Qt(function() {
13674
+ update: YA(function() {
13657
13675
  return new Promise(function(M) {
13658
- m.forceUpdate(), M(g);
13676
+ p.forceUpdate(), M(g);
13659
13677
  });
13660
13678
  }),
13661
13679
  destroy: function() {
13662
- _(), p = !0;
13680
+ I(), m = !0;
13663
13681
  }
13664
13682
  };
13665
13683
  if (!Kf(i, l))
13666
- return m;
13667
- m.setOptions(r).then(function(M) {
13668
- !p && r.onFirstUpdate && r.onFirstUpdate(M);
13684
+ return p;
13685
+ p.setOptions(r).then(function(M) {
13686
+ !m && r.onFirstUpdate && r.onFirstUpdate(M);
13669
13687
  });
13670
13688
  function h() {
13671
13689
  g.orderedModifiers.forEach(function(M) {
13672
- var v = M.name, b = M.options, D = b === void 0 ? {} : b, N = M.effect;
13673
- if (typeof N == "function") {
13674
- var V = N({
13690
+ var N = M.name, v = M.options, _ = v === void 0 ? {} : v, k = M.effect;
13691
+ if (typeof k == "function") {
13692
+ var E = k({
13675
13693
  state: g,
13676
- name: v,
13677
- instance: m,
13678
- options: D
13679
- }), E = function() {
13694
+ name: N,
13695
+ instance: p,
13696
+ options: _
13697
+ }), V = function() {
13680
13698
  };
13681
- d.push(V || E);
13699
+ d.push(E || V);
13682
13700
  }
13683
13701
  });
13684
13702
  }
13685
- function _() {
13703
+ function I() {
13686
13704
  d.forEach(function(M) {
13687
13705
  return M();
13688
13706
  }), d = [];
13689
13707
  }
13690
- return m;
13708
+ return p;
13691
13709
  };
13692
13710
  }
13693
- var Rt = [rt, Vt, ut, GA, kt, It, xt, tt, wt], qt = /* @__PURE__ */ Yt({
13694
- defaultModifiers: Rt
13711
+ var FA = [dA, TA, rA, eA, VA, wA, zA, iA, NA], $A = /* @__PURE__ */ qA({
13712
+ defaultModifiers: FA
13695
13713
  }), gn = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
13696
13714
  function Ke(e) {
13697
13715
  return e.split("-").map((f) => parseInt(f, 16)).map((f) => String.fromCodePoint(f)).join("");
13698
13716
  }
13699
- function Ft(e, f, n, a = []) {
13700
- const A = {};
13717
+ function WA(e, f, n, a = []) {
13718
+ const t = {};
13701
13719
  return Object.keys(e).forEach((s) => {
13702
13720
  if (a.includes(s))
13703
13721
  return;
13704
- const t = [];
13722
+ const A = [];
13705
13723
  e[s].forEach((i) => {
13706
13724
  var l;
13707
13725
  if (i[Xe][0].includes(f.toLocaleLowerCase())) {
13708
13726
  let r = i[fn];
13709
- if (n !== Pe && Array.isArray(i[Je])) {
13710
- const g = ((l = i[Je]) == null ? void 0 : l.findIndex(
13727
+ if (n !== Pe && Array.isArray(i[$e])) {
13728
+ const g = ((l = i[$e]) == null ? void 0 : l.findIndex(
13711
13729
  (d) => d.includes(n)
13712
13730
  )) || -1;
13713
- g !== -1 && i[Je] && (r = i[Je][g]);
13731
+ g !== -1 && i[$e] && (r = i[$e][g]);
13714
13732
  }
13715
- return t.push({
13733
+ return A.push({
13716
13734
  ...i,
13717
13735
  [Se]: r
13718
13736
  });
13719
13737
  }
13720
- }), t.length && (A[s] = t);
13721
- }), A;
13738
+ }), A.length && (t[s] = A);
13739
+ }), t;
13722
13740
  }
13723
13741
  function mn() {
13724
13742
  var e;
@@ -13732,22 +13750,22 @@ function pn(e) {
13732
13750
  }
13733
13751
  var Qe = (e, f) => {
13734
13752
  const n = e.__vccOpts || e;
13735
- for (const [a, A] of f)
13736
- n[a] = A;
13753
+ for (const [a, t] of f)
13754
+ n[a] = t;
13737
13755
  return n;
13738
13756
  };
13739
- const Jt = me({
13757
+ const JA = ge({
13740
13758
  name: "Body",
13741
13759
  emits: {
13742
13760
  select: (e) => !0
13743
13761
  },
13744
13762
  setup() {
13745
- const { state: e, updateEmoji: f, updateSelect: n } = Ge("store"), a = I(null), A = x(() => Ft(
13763
+ const { state: e, updateEmoji: f, updateSelect: n } = Ge("store"), a = b(null), t = T(() => WA(
13746
13764
  e.emojis,
13747
13765
  e.search,
13748
13766
  e.skinTone,
13749
13767
  e.options.disabledGroups
13750
- )), s = Dn(), t = x(() => !e.options.hideGroupNames), i = x(() => !e.options.disableStickyGroupNames), l = Pf(e.options.groupNames), r = e.orderedGroupKeys;
13768
+ )), s = Nn(), A = T(() => !e.options.hideGroupNames), i = T(() => !e.options.disableStickyGroupNames), l = Pf(e.options.groupNames), r = e.orderedGroupKeys;
13751
13769
  e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
13752
13770
  e.options.groupNames[h] ? l[h] = e.options.groupNames[h] : l[h] = pn(h);
13753
13771
  });
@@ -13755,93 +13773,93 @@ const Jt = me({
13755
13773
  function d(h) {
13756
13774
  f(h);
13757
13775
  }
13758
- function p(h) {
13776
+ function m(h) {
13759
13777
  n(h), s == null || s.emit("select", {
13760
13778
  ...h,
13761
13779
  t: e.skinTone,
13762
13780
  i: Ke(h.r)
13763
13781
  });
13764
13782
  }
13765
- function m(h, _) {
13783
+ function p(h, I) {
13766
13784
  var M;
13767
- const v = (M = h == null ? void 0 : h.target) == null ? void 0 : M.closest("button");
13768
- v && (v.innerHTML = `<span>${Ke(_)}</span>`);
13785
+ const N = (M = h == null ? void 0 : h.target) == null ? void 0 : M.closest("button");
13786
+ N && (N.innerHTML = `<span>${Ke(I)}</span>`);
13769
13787
  }
13770
13788
  return Ce(
13771
13789
  () => e.activeGroup,
13772
13790
  () => {
13773
13791
  var h;
13774
- const _ = (h = a.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
13775
- _ && (_.parentNode.scrollTop = _.offsetTop - _.parentNode.offsetTop);
13792
+ const I = (h = a.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
13793
+ I && (I.parentNode.scrollTop = I.offsetTop - I.parentNode.offsetTop);
13776
13794
  }
13777
13795
  ), {
13778
- emojis: A,
13796
+ emojis: t,
13779
13797
  bodyInner: a,
13780
13798
  EMOJI_REMOTE_SRC: Xf,
13781
13799
  GROUP_NAMES: en,
13782
- handleClick: p,
13783
- handleError: m,
13800
+ handleClick: m,
13801
+ handleError: p,
13784
13802
  handleMouseEnter: d,
13785
13803
  native: e.options.native,
13786
13804
  unicodeToEmoji: Ke,
13787
13805
  EMOJI_RESULT_KEY: Se,
13788
13806
  EMOJI_NAME_KEY: Xe,
13789
- hasGroupNames: t,
13807
+ hasGroupNames: A,
13790
13808
  isSticky: i,
13791
13809
  platform: g,
13792
13810
  groupNames: l,
13793
13811
  orderedKeys: r
13794
13812
  };
13795
13813
  }
13796
- }), Wt = { class: "v3-body" }, $t = ["id"], Ht = { class: "v3-emojis" }, Kt = ["onMouseenter", "onClick"], Pt = { key: 0 }, Zt = ["src", "alt", "onError"], Gt = {
13814
+ }), HA = { class: "v3-body" }, KA = ["id"], PA = { class: "v3-emojis" }, ZA = ["onMouseenter", "onClick"], GA = { key: 0 }, XA = ["src", "alt", "onError"], es = {
13797
13815
  key: 1,
13798
13816
  class: "v3-no-result"
13799
13817
  };
13800
- function Xt(e, f, n, a, A, s) {
13801
- return u(), c("div", Wt, [
13818
+ function fs(e, f, n, a, t, s) {
13819
+ return u(), c("div", HA, [
13802
13820
  o("div", {
13803
13821
  ref: "bodyInner",
13804
- class: k([e.platform, "v3-body-inner"])
13822
+ class: D([e.platform, "v3-body-inner"])
13805
13823
  }, [
13806
- e.orderedKeys.length ? (u(!0), c(B, { key: 0 }, R(e.orderedKeys, (t) => (u(), c("div", {
13807
- id: t,
13808
- key: t,
13824
+ e.orderedKeys.length ? (u(!0), c(B, { key: 0 }, Y(e.orderedKeys, (A) => (u(), c("div", {
13825
+ id: A,
13826
+ key: A,
13809
13827
  class: "v3-group"
13810
13828
  }, [
13811
- e.hasGroupNames ? Ae((u(), c("h5", {
13829
+ e.hasGroupNames ? te((u(), c("h5", {
13812
13830
  key: 0,
13813
- class: k(e.isSticky ? "v3-sticky" : "")
13814
- }, w(e.groupNames[t]), 3)), [
13815
- [Me, e.emojis[t]]
13831
+ class: D(e.isSticky ? "v3-sticky" : "")
13832
+ }, w(e.groupNames[A]), 3)), [
13833
+ [Me, e.emojis[A]]
13816
13834
  ]) : y("", !0),
13817
- Ae(o("div", Ht, [
13818
- (u(!0), c(B, null, R(e.emojis[t], (i) => (u(), c("button", {
13835
+ te(o("div", PA, [
13836
+ (u(!0), c(B, null, Y(e.emojis[A], (i) => (u(), c("button", {
13819
13837
  key: i.r,
13820
13838
  type: "button",
13821
13839
  onMouseenter: (l) => e.handleMouseEnter(i),
13822
13840
  onClick: (l) => e.handleClick(i)
13823
13841
  }, [
13824
- e.native ? (u(), c("span", Pt, w(e.unicodeToEmoji(i.r)), 1)) : (u(), c("img", {
13842
+ e.native ? (u(), c("span", GA, w(e.unicodeToEmoji(i.r)), 1)) : (u(), c("img", {
13825
13843
  key: 1,
13826
13844
  src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
13827
13845
  alt: i.n[0],
13828
13846
  onError: (l) => e.handleError(l, i.r)
13829
- }, null, 40, Zt))
13830
- ], 40, Kt))), 128))
13847
+ }, null, 40, XA))
13848
+ ], 40, ZA))), 128))
13831
13849
  ], 512), [
13832
- [Me, e.emojis[t]]
13850
+ [Me, e.emojis[A]]
13833
13851
  ])
13834
- ], 8, $t))), 128)) : (u(), c("span", Gt, " No emoji has been found! "))
13852
+ ], 8, KA))), 128)) : (u(), c("span", es, " No emoji has been found! "))
13835
13853
  ], 2)
13836
13854
  ]);
13837
13855
  }
13838
- var es = /* @__PURE__ */ Qe(Jt, [["render", Xt]]), fs = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1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41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";
13857
+ const rs = ge({
13840
13858
  name: "Header",
13841
13859
  setup(e) {
13842
- const { state: f, updateSearch: n, updateActiveGroup: a } = Ge("store"), A = x(() => !f.options.hideSearch), s = x(() => !f.options.hideGroupIcons), t = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = x(
13860
+ 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(
13843
13861
  () => f.options.staticTexts.placeholder || ""
13844
- ), l = x({
13862
+ ), l = T({
13845
13863
  get: () => f.search,
13846
13864
  set: (d) => n(d)
13847
13865
  }), r = [
@@ -13851,96 +13869,96 @@ const us = me({
13851
13869
  title: f.options.groupNames[d] ? f.options.groupNames[d] : pn(d)
13852
13870
  }))
13853
13871
  ], g = [];
13854
- return t.forEach((d) => {
13855
- const p = r.findIndex((m) => m.key === d);
13856
- p !== -1 && (g.push(r[p]), r.splice(p, 1));
13872
+ return A.forEach((d) => {
13873
+ const m = r.findIndex((p) => p.key === d);
13874
+ m !== -1 && (g.push(r[m]), r.splice(m, 1));
13857
13875
  }), {
13858
13876
  orderedGroups: g,
13859
- orderedKeys: t,
13877
+ orderedKeys: A,
13860
13878
  searchValue: l,
13861
13879
  updateActiveGroup: a,
13862
- hasSearch: A,
13880
+ hasSearch: t,
13863
13881
  hasGroupIcons: s,
13864
13882
  placeholder: i,
13865
13883
  icons: {
13866
13884
  smileys_people: gn,
13867
- animals_nature: fs,
13868
- food_drink: ns,
13869
- activities: as,
13870
- travel_places: As,
13871
- objects: ts,
13872
- symbols: ss,
13873
- flags: is,
13885
+ animals_nature: as,
13886
+ food_drink: ts,
13887
+ activities: As,
13888
+ travel_places: ss,
13889
+ objects: is,
13890
+ symbols: os,
13891
+ flags: us,
13874
13892
  ...f.options.groupIcons,
13875
- recent: os
13893
+ recent: ls
13876
13894
  }
13877
13895
  };
13878
13896
  }
13879
- }), ls = {
13897
+ }), cs = {
13880
13898
  key: 0,
13881
13899
  class: "v3-header"
13882
- }, rs = {
13900
+ }, ds = {
13883
13901
  key: 0,
13884
13902
  class: "v3-groups"
13885
- }, cs = ["onClick"], ds = ["title"], gs = ["src"], ms = {
13903
+ }, gs = ["onClick"], ms = ["title"], ps = ["src"], Ms = {
13886
13904
  key: 1,
13887
13905
  class: "v3-spacing"
13888
- }, ps = {
13906
+ }, hs = {
13889
13907
  key: 2,
13890
13908
  class: "v3-search"
13891
- }, Ms = ["placeholder"];
13892
- function hs(e, f, n, a, A, s) {
13893
- return e.hasGroupIcons || e.hasSearch ? (u(), c("div", ls, [
13894
- e.hasGroupIcons ? (u(), c("div", rs, [
13895
- (u(!0), c(B, null, R(e.orderedGroups, (t) => (u(), c("button", {
13896
- key: t.key,
13909
+ }, ys = ["placeholder"];
13910
+ function bs(e, f, n, a, t, s) {
13911
+ return e.hasGroupIcons || e.hasSearch ? (u(), c("div", cs, [
13912
+ e.hasGroupIcons ? (u(), c("div", ds, [
13913
+ (u(!0), c(B, null, Y(e.orderedGroups, (A) => (u(), c("button", {
13914
+ key: A.key,
13897
13915
  type: "button",
13898
- class: k(["v3-group", {
13899
- "v3-is-hidden": !e.icons[t.key]
13916
+ class: D(["v3-group", {
13917
+ "v3-is-hidden": !e.icons[A.key]
13900
13918
  }]),
13901
- onClick: (i) => e.updateActiveGroup(t.key)
13919
+ onClick: (i) => e.updateActiveGroup(A.key)
13902
13920
  }, [
13903
13921
  o("span", {
13904
- title: t.title,
13922
+ title: A.title,
13905
13923
  class: "v3-icon"
13906
13924
  }, [
13907
13925
  o("img", {
13908
- src: e.icons[t.key],
13926
+ src: e.icons[A.key],
13909
13927
  alt: ""
13910
- }, null, 8, gs)
13911
- ], 8, ds)
13912
- ], 10, cs))), 128))
13928
+ }, null, 8, ps)
13929
+ ], 8, ms)
13930
+ ], 10, gs))), 128))
13913
13931
  ])) : y("", !0),
13914
- e.hasGroupIcons && e.hasSearch ? (u(), c("div", ms)) : y("", !0),
13915
- e.hasSearch ? (u(), c("div", ps, [
13916
- Ae(o("input", {
13917
- "onUpdate:modelValue": f[0] || (f[0] = (t) => e.searchValue = t),
13932
+ e.hasGroupIcons && e.hasSearch ? (u(), c("div", Ms)) : y("", !0),
13933
+ e.hasSearch ? (u(), c("div", hs, [
13934
+ te(o("input", {
13935
+ "onUpdate:modelValue": f[0] || (f[0] = (A) => e.searchValue = A),
13918
13936
  type: "text",
13919
13937
  placeholder: e.placeholder
13920
- }, null, 8, Ms), [
13938
+ }, null, 8, ys), [
13921
13939
  [Zf, e.searchValue]
13922
13940
  ])
13923
13941
  ])) : y("", !0)
13924
13942
  ])) : y("", !0);
13925
13943
  }
13926
- var ys = /* @__PURE__ */ Qe(us, [["render", hs]]);
13927
- const bs = me({
13944
+ var vs = /* @__PURE__ */ Qe(rs, [["render", bs]]);
13945
+ const _s = ge({
13928
13946
  name: "Header",
13929
13947
  setup() {
13930
- const { state: e, updateSkinTone: f } = Ge("store"), n = I(!1), a = I(!1), A = x(() => e.skinTone), s = x(
13948
+ const { state: e, updateSkinTone: f } = Ge("store"), n = b(!1), a = b(!1), t = T(() => e.skinTone), s = T(
13931
13949
  () => e.options.staticTexts.skinTone || "Skin tone"
13932
- ), t = x(() => !e.options.disableSkinTones), i = mn() ? "is-mac" : "", l = x(() => ({
13950
+ ), A = T(() => !e.options.disableSkinTones), i = mn() ? "is-mac" : "", l = T(() => ({
13933
13951
  ...e.emoji,
13934
13952
  src: Xf + "/" + e.emoji[Se] + ".png"
13935
13953
  }));
13936
- function r(p = !0) {
13937
- n.value = p;
13954
+ function r(m = !0) {
13955
+ n.value = m;
13938
13956
  }
13939
13957
  function g() {
13940
13958
  n.value = !n.value;
13941
13959
  }
13942
- function d(p) {
13943
- f(p), r(!1);
13960
+ function d(m) {
13961
+ f(m), r(!1);
13944
13962
  }
13945
13963
  return Ce(
13946
13964
  () => e.emoji,
@@ -13949,72 +13967,72 @@ const bs = me({
13949
13967
  }
13950
13968
  ), {
13951
13969
  emoji: l,
13952
- SKIN_TONES: cA,
13970
+ SKIN_TONES: gt,
13953
13971
  updateSkinToneState: r,
13954
13972
  skinTone: n,
13955
- stateSkinTone: A,
13973
+ stateSkinTone: t,
13956
13974
  selectSkinTone: d,
13957
13975
  toggleSkinToneState: g,
13958
13976
  EMOJI_RESULT_KEY: Se,
13959
13977
  EMOJI_NAME_KEY: Xe,
13960
13978
  skinToneText: s,
13961
- hasSkinTones: t,
13979
+ hasSkinTones: A,
13962
13980
  native: e.options.native,
13963
13981
  unicodeToEmoji: Ke,
13964
13982
  platform: i,
13965
13983
  hasError: a
13966
13984
  };
13967
13985
  }
13968
- }), vs = { class: "v3-foot-left" }, Is = { key: 0 }, _s = ["alt", "src"], ws = { class: "v3-text" }, Ds = { class: "v3-text" }, Ns = ["onClick"];
13969
- function ks(e, f, n, a, A, s) {
13986
+ }), Is = { class: "v3-foot-left" }, ws = { key: 0 }, ks = ["alt", "src"], Ns = { class: "v3-text" }, Ds = { class: "v3-text" }, js = ["onClick"];
13987
+ function Vs(e, f, n, a, t, s) {
13970
13988
  return u(), c("div", {
13971
13989
  class: "v3-footer",
13972
- onMouseleave: f[2] || (f[2] = (t) => e.updateSkinToneState(!1))
13990
+ onMouseleave: f[2] || (f[2] = (A) => e.updateSkinToneState(!1))
13973
13991
  }, [
13974
- o("div", vs, [
13992
+ o("div", Is, [
13975
13993
  o("span", {
13976
- class: k([e.platform, "v3-icon"])
13994
+ class: D([e.platform, "v3-icon"])
13977
13995
  }, [
13978
- e.native || e.hasError ? (u(), c("span", Is, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (u(), c("img", {
13996
+ e.native || e.hasError ? (u(), c("span", ws, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (u(), c("img", {
13979
13997
  key: 1,
13980
13998
  alt: e.unicodeToEmoji(e.emoji.r),
13981
13999
  src: e.emoji.src,
13982
- onError: f[0] || (f[0] = (t) => e.hasError = !0)
13983
- }, null, 40, _s))
14000
+ onError: f[0] || (f[0] = (A) => e.hasError = !0)
14001
+ }, null, 40, ks))
13984
14002
  ], 2),
13985
- o("span", ws, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
14003
+ o("span", Ns, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
13986
14004
  ]),
13987
14005
  e.hasSkinTones ? (u(), c(B, { key: 0 }, [
13988
14006
  o("button", {
13989
14007
  type: "button",
13990
14008
  class: "v3-tone",
13991
- onClick: f[1] || (f[1] = (...t) => e.toggleSkinToneState && e.toggleSkinToneState(...t))
14009
+ onClick: f[1] || (f[1] = (...A) => e.toggleSkinToneState && e.toggleSkinToneState(...A))
13992
14010
  }, [
13993
14011
  o("span", Ds, w(e.skinToneText), 1),
13994
14012
  o("span", {
13995
- class: k(`v3-icon v3-tone-${e.stateSkinTone}`)
14013
+ class: D(`v3-icon v3-tone-${e.stateSkinTone}`)
13996
14014
  }, null, 2)
13997
14015
  ]),
13998
14016
  o("div", {
13999
- class: k([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
14017
+ class: D([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
14000
14018
  }, [
14001
- (u(!0), c(B, null, R(e.SKIN_TONES, (t) => (u(), c("button", {
14002
- key: t,
14019
+ (u(!0), c(B, null, Y(e.SKIN_TONES, (A) => (u(), c("button", {
14020
+ key: A,
14003
14021
  type: "button",
14004
- class: k(["v3-skin-tone-" + t, "v3-skin-tone"]),
14005
- onClick: (i) => e.selectSkinTone(t)
14006
- }, null, 10, Ns))), 128))
14022
+ class: D(["v3-skin-tone-" + A, "v3-skin-tone"]),
14023
+ onClick: (i) => e.selectSkinTone(A)
14024
+ }, null, 10, js))), 128))
14007
14025
  ], 2)
14008
14026
  ], 64)) : y("", !0)
14009
14027
  ], 32);
14010
14028
  }
14011
- var js = /* @__PURE__ */ Qe(bs, [["render", ks]]);
14012
- const Vs = me({
14029
+ var Es = /* @__PURE__ */ Qe(_s, [["render", Vs]]);
14030
+ const Ts = ge({
14013
14031
  name: "PickerRoot",
14014
14032
  components: {
14015
- Header: ys,
14016
- Body: es,
14017
- Footer: js
14033
+ Header: vs,
14034
+ Body: ns,
14035
+ Footer: Es
14018
14036
  },
14019
14037
  props: {
14020
14038
  type: {
@@ -14047,30 +14065,30 @@ const Vs = me({
14047
14065
  "update:text": (e) => !0
14048
14066
  },
14049
14067
  setup(e, { emit: f }) {
14050
- const n = I(), a = I(), A = I(), s = I(!1), t = I(e.text), i = e.type === "input" || e.type === "textarea";
14068
+ const n = b(), a = b(), t = b(), s = b(!1), A = b(e.text), i = e.type === "input" || e.type === "textarea";
14051
14069
  let l = -1;
14052
- const { state: r } = Ge("store"), g = x(() => r.options.colorTheme);
14070
+ const { state: r } = Ge("store"), g = T(() => r.options.colorTheme);
14053
14071
  function d(M) {
14054
14072
  if (i) {
14055
- const v = r.options.mode;
14056
- v === "prepend" ? t.value = M.i + t.value : v === "insert" && l !== -1 ? (t.value = `${t.value.slice(0, l)}${M.i}${t.value.slice(l)}`, l += M.i.length) : t.value += M.i, f("update:text", t.value);
14073
+ const N = r.options.mode;
14074
+ N === "prepend" ? A.value = M.i + A.value : N === "insert" && l !== -1 ? (A.value = `${A.value.slice(0, l)}${M.i}${A.value.slice(l)}`, l += M.i.length) : A.value += M.i, f("update:text", A.value);
14057
14075
  }
14058
14076
  f("select", M);
14059
14077
  }
14060
- function p() {
14078
+ function m() {
14061
14079
  var M;
14062
14080
  n.value && (l = ((M = n.value) == null ? void 0 : M.selectionEnd) || -1);
14063
14081
  }
14064
- function m(M) {
14065
- var v;
14066
- !((v = M.target) != null && v.closest(
14082
+ function p(M) {
14083
+ var N;
14084
+ !((N = M.target) != null && N.closest(
14067
14085
  ".v3-input-picker-wrap"
14068
14086
  )) && s.value && (s.value = !1);
14069
14087
  }
14070
14088
  function h() {
14071
- if (a.value && A.value && i) {
14089
+ if (a.value && t.value && i) {
14072
14090
  let M = r.options.offset;
14073
- typeof M != "number" && (M = 6), qt(a.value, A.value, {
14091
+ typeof M != "number" && (M = 6), $A(a.value, t.value, {
14074
14092
  placement: "bottom-end",
14075
14093
  modifiers: [
14076
14094
  {
@@ -14080,38 +14098,38 @@ const Vs = me({
14080
14098
  }
14081
14099
  }
14082
14100
  ]
14083
- }), document.body.addEventListener("click", m);
14101
+ }), document.body.addEventListener("click", p);
14084
14102
  }
14085
14103
  }
14086
- function _(M) {
14087
- t.value = M.target.value || "", f("update:text", t.value);
14104
+ function I(M) {
14105
+ A.value = M.target.value || "", f("update:text", A.value);
14088
14106
  }
14089
- return ge(() => {
14107
+ return de(() => {
14090
14108
  h();
14091
- }), Nn(() => {
14092
- document.body.removeEventListener("click", m);
14109
+ }), Dn(() => {
14110
+ document.body.removeEventListener("click", p);
14093
14111
  }), {
14094
14112
  face: gn,
14095
14113
  open: s,
14096
14114
  onSelect: d,
14097
- input: t,
14115
+ input: A,
14098
14116
  elem: n,
14099
- updateCursor: p,
14117
+ updateCursor: m,
14100
14118
  button: a,
14101
- picker: A,
14119
+ picker: t,
14102
14120
  isInputType: i,
14103
- onChangeText: _,
14121
+ onChangeText: I,
14104
14122
  colorTheme: g
14105
14123
  };
14106
14124
  }
14107
- }), Es = {
14125
+ }), xs = {
14108
14126
  key: 0,
14109
14127
  class: "v3-input-emoji-picker"
14110
- }, Ts = { class: "v3-input-picker-root" }, xs = ["value"], Ss = ["value"], zs = ["src"];
14111
- function Os(e, f, n, a, A, s) {
14112
- const t = $e("Header"), i = $e("Body"), l = $e("Footer");
14113
- return e.isInputType ? (u(), c("div", Es, [
14114
- o("div", Ts, [
14128
+ }, Ss = { class: "v3-input-picker-root" }, zs = ["value"], Os = ["value"], Cs = ["src"];
14129
+ function Us(e, f, n, a, t, s) {
14130
+ const A = Je("Header"), i = Je("Body"), l = Je("Footer");
14131
+ return e.isInputType ? (u(), c("div", xs, [
14132
+ o("div", Ss, [
14115
14133
  e.type === "input" ? (u(), c("input", {
14116
14134
  key: 0,
14117
14135
  ref: "elem",
@@ -14120,16 +14138,16 @@ function Os(e, f, n, a, A, s) {
14120
14138
  class: "v3-emoji-picker-input",
14121
14139
  onInput: f[0] || (f[0] = (...r) => e.onChangeText && e.onChangeText(...r)),
14122
14140
  onBlur: f[1] || (f[1] = (...r) => e.updateCursor && e.updateCursor(...r))
14123
- }, null, 40, xs)) : (u(), c("textarea", {
14141
+ }, null, 40, zs)) : (u(), c("textarea", {
14124
14142
  key: 1,
14125
14143
  ref: "elem",
14126
14144
  value: e.input,
14127
14145
  class: "v3-emoji-picker-textarea",
14128
14146
  onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
14129
14147
  onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
14130
- }, null, 40, Ss)),
14148
+ }, null, 40, Os)),
14131
14149
  o("div", {
14132
- class: k(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14150
+ class: D(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14133
14151
  }, [
14134
14152
  o("button", {
14135
14153
  ref: "button",
@@ -14140,13 +14158,13 @@ function Os(e, f, n, a, A, s) {
14140
14158
  o("img", {
14141
14159
  src: e.face,
14142
14160
  alt: ""
14143
- }, null, 8, zs)
14161
+ }, null, 8, Cs)
14144
14162
  ], 512),
14145
14163
  o("div", {
14146
14164
  ref: "picker",
14147
- class: k(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14165
+ class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14148
14166
  }, [
14149
- S(t),
14167
+ S(A),
14150
14168
  S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14151
14169
  S(l)
14152
14170
  ], 2)
@@ -14154,18 +14172,18 @@ function Os(e, f, n, a, A, s) {
14154
14172
  ])
14155
14173
  ])) : (u(), c("div", {
14156
14174
  key: 1,
14157
- class: k(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14175
+ class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14158
14176
  }, [
14159
- S(t),
14177
+ S(A),
14160
14178
  S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14161
14179
  S(l)
14162
14180
  ], 2));
14163
14181
  }
14164
- var Cs = /* @__PURE__ */ Qe(Vs, [["render", Os]]);
14165
- const Us = me({
14182
+ var Ls = /* @__PURE__ */ Qe(Ts, [["render", Us]]);
14183
+ const Qs = ge({
14166
14184
  name: "Picker",
14167
14185
  components: {
14168
- PickerRoot: Cs
14186
+ PickerRoot: Ls
14169
14187
  },
14170
14188
  props: {
14171
14189
  native: {
@@ -14246,17 +14264,17 @@ const Us = me({
14246
14264
  select: (e) => !0
14247
14265
  },
14248
14266
  setup(e, { emit: f }) {
14249
- const n = I(e.text);
14267
+ const n = b(e.text);
14250
14268
  function a(s) {
14251
14269
  n.value = s || "", f("update:text", n.value);
14252
14270
  }
14253
- const A = UA();
14254
- return A.updateOptions({
14271
+ const t = Qt();
14272
+ return t.updateOptions({
14255
14273
  native: e.native,
14256
14274
  hideSearch: e.hideSearch,
14257
14275
  hideGroupIcons: e.hideGroupIcons,
14258
14276
  hideGroupNames: e.hideGroupNames,
14259
- staticTexts: { ...dA, ...e.staticTexts },
14277
+ staticTexts: { ...mt, ...e.staticTexts },
14260
14278
  disableStickyGroupNames: e.disableStickyGroupNames,
14261
14279
  disabledGroups: e.disabledGroups,
14262
14280
  groupNames: { ...en, ...e.groupNames },
@@ -14267,25 +14285,25 @@ const Us = me({
14267
14285
  offset: e.offset,
14268
14286
  groupOrder: e.groupOrder,
14269
14287
  groupIcons: e.groupIcons,
14270
- colorTheme: gA.includes(e.theme) ? e.theme : "light"
14271
- }), kn("store", A), {
14288
+ colorTheme: pt.includes(e.theme) ? e.theme : "light"
14289
+ }), jn("store", t), {
14272
14290
  type: e.pickerType,
14273
14291
  input: n,
14274
14292
  onChangeText: a
14275
14293
  };
14276
14294
  }
14277
14295
  });
14278
- function Ls(e, f, n, a, A, s) {
14279
- const t = $e("picker-root");
14280
- return u(), L(t, {
14296
+ function Bs(e, f, n, a, t, s) {
14297
+ const A = Je("picker-root");
14298
+ return u(), Q(A, {
14281
14299
  type: e.type,
14282
14300
  text: e.input,
14283
14301
  onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
14284
14302
  "onUpdate:text": e.onChangeText
14285
14303
  }, null, 8, ["type", "text", "onUpdate:text"]);
14286
14304
  }
14287
- var Qs = /* @__PURE__ */ Qe(Us, [["render", Ls]]);
14288
- const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__list" }, Rs = ["onClick"], qs = ["src"], Fs = {
14305
+ var Ys = /* @__PURE__ */ Qe(Qs, [["render", Bs]]);
14306
+ const Rs = ["id"], qs = ["id"], Fs = { class: "context-menu__container" }, $s = { class: "context-menu__list" }, Ws = ["onClick"], Js = ["src"], Hs = {
14289
14307
  __name: "ButtonContextMenu",
14290
14308
  props: {
14291
14309
  actions: {
@@ -14311,32 +14329,67 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14311
14329
  type: Boolean,
14312
14330
  default: !1,
14313
14331
  required: !1
14332
+ },
14333
+ menuSide: {
14334
+ type: String,
14335
+ default: "top"
14336
+ },
14337
+ contextMenuKey: {
14338
+ type: String,
14339
+ default: "key"
14340
+ },
14341
+ storybook: {
14342
+ type: Boolean,
14343
+ required: !1,
14344
+ default: !1
14314
14345
  }
14315
14346
  },
14316
- emits: ["click"],
14347
+ emits: ["click", "buttonClick"],
14317
14348
  setup(e, { emit: f }) {
14318
- const n = e, a = f, A = I(null), s = I(null), t = (d) => {
14319
- const p = n.actions[d];
14320
- A.value.style.display = "none", a("click", p);
14349
+ const n = e, a = f, t = b(null), s = b(null), A = (d) => {
14350
+ const m = n.actions[d];
14351
+ t.value.style.display = "none", a("click", m);
14321
14352
  }, i = () => {
14322
- n.mode != "hover" && (A.value.style.display = "inherit");
14353
+ n.disabled || (n.mode == "click" && (t.value.style.display = "inherit"), a("buttonClick"));
14323
14354
  }, l = () => {
14324
- n.mode == "hover" && (A.value.style.display = "inherit");
14355
+ n.mode == "hover" && !n.disabled && (t.value.style.display = "inherit");
14325
14356
  }, r = () => {
14326
- n.mode == "hover" && (A.value.style.display = "none");
14357
+ n.mode == "hover" && (t.value.style.display = "none");
14327
14358
  }, g = (d) => {
14328
- n.mode != "hover" && s.value && !s.value.contains(d.target) && (A.value.style.display = "none");
14359
+ n.mode == "click" && s.value && !s.value.contains(d.target) && (t.value.style.display = "none");
14329
14360
  };
14330
- return ge(() => {
14331
- document.addEventListener("click", g);
14361
+ return de(() => {
14362
+ const d = {
14363
+ top: {
14364
+ h: -1,
14365
+ w: -0.25
14366
+ },
14367
+ bottom: {
14368
+ h: 1,
14369
+ w: -0.25
14370
+ },
14371
+ left: {
14372
+ h: -0.25,
14373
+ w: 1
14374
+ },
14375
+ right: {
14376
+ h: -0.25,
14377
+ w: 1
14378
+ }
14379
+ };
14380
+ let m, p;
14381
+ n.menuSide == "top" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.left = d[n.menuSide].w * m + "px"), n.menuSide == "bottom" && (m = document.getElementById("context-menu-" + n.contextMenuKey).offsetWidth, p = document.getElementById("container-" + n.contextMenuKey).offsetHeight, t.value.style.right = d[n.menuSide].w * m + "px"), n.menuSide == "left" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.right = d[n.menuSide].w * m + "px"), n.menuSide == "right" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.left = d[n.menuSide].w * m + "px"), t.value.style.top = d[n.menuSide].h * p + "px", t.value.style.display = "none", document.addEventListener("click", g);
14332
14382
  }), Gf(() => {
14333
14383
  document.removeEventListener("click", g);
14334
- }), (d, p) => (u(), c("div", {
14384
+ }), (d, m) => (u(), c("div", {
14385
+ id: "container-" + n.contextMenuKey,
14335
14386
  ref_key: "actionScope",
14336
- ref: s
14387
+ ref: s,
14388
+ style: { position: "relative", width: "fit-content" },
14389
+ class: D({ "storybook-container": e.storybook })
14337
14390
  }, [
14338
14391
  o("button", {
14339
- class: k(["button", {
14392
+ class: D(["button", {
14340
14393
  "disabled-button": e.disabled
14341
14394
  }]),
14342
14395
  onClick: i,
@@ -14344,49 +14397,50 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14344
14397
  onMouseout: r
14345
14398
  }, [
14346
14399
  o("span", {
14347
- class: k(e.buttonClass)
14400
+ class: D(e.buttonClass)
14348
14401
  }, w(e.buttonTitle), 3)
14349
14402
  ], 34),
14350
14403
  o("div", {
14404
+ id: "context-menu-" + n.contextMenuKey,
14351
14405
  ref_key: "contextMenu",
14352
- ref: A,
14406
+ ref: t,
14353
14407
  class: "context-menu",
14354
14408
  onMouseover: l,
14355
14409
  onMouseout: r
14356
14410
  }, [
14357
- o("div", Bs, [
14358
- o("ul", Ys, [
14359
- (u(!0), c(B, null, R(n.actions, (m, h) => (u(), c("li", {
14411
+ o("div", Fs, [
14412
+ o("ul", $s, [
14413
+ (u(!0), c(B, null, Y(n.actions, (p, h) => (u(), c("li", {
14360
14414
  key: h,
14361
14415
  class: "context-menu__item",
14362
- onClick: (_) => t(h)
14416
+ onClick: (I) => A(h)
14363
14417
  }, [
14364
- m.icon ? (u(), c("img", {
14418
+ p.icon ? (u(), c("img", {
14365
14419
  key: 0,
14366
- src: m.icon,
14420
+ src: p.icon,
14367
14421
  width: "18",
14368
14422
  height: "18"
14369
- }, null, 8, qs)) : m.prime ? (u(), c("i", {
14423
+ }, null, 8, Js)) : p.prime ? (u(), c("i", {
14370
14424
  key: 1,
14371
- class: k("pi pi-" + m.prime)
14425
+ class: D("pi pi-" + p.prime)
14372
14426
  }, null, 2)) : y("", !0),
14373
- o("span", null, w(m.title), 1)
14374
- ], 8, Rs))), 128))
14427
+ o("span", null, w(p.title), 1)
14428
+ ], 8, Ws))), 128))
14375
14429
  ])
14376
14430
  ])
14377
- ], 544)
14378
- ], 512));
14431
+ ], 40, qs)
14432
+ ], 10, Rs));
14379
14433
  }
14380
- }, Js = /* @__PURE__ */ j(Fs, [["__scopeId", "data-v-304a4b20"]]), Ws = { class: "channels__container" }, $s = {
14434
+ }, Mn = /* @__PURE__ */ j(Hs, [["__scopeId", "data-v-2eb2dd26"]]), Ks = { class: "channels__container" }, Ps = {
14381
14435
  key: 0,
14382
14436
  class: "channels__selected"
14383
- }, Hs = {
14437
+ }, Zs = {
14384
14438
  key: 0,
14385
14439
  class: "channels__icon"
14386
- }, Ks = ["src"], Ps = { class: "channels__title" }, Zs = {
14440
+ }, Gs = ["src"], Xs = { class: "channels__title" }, ei = {
14387
14441
  key: 1,
14388
14442
  class: "channels__selected channels__title"
14389
- }, Gs = {
14443
+ }, fi = {
14390
14444
  __name: "ChannelSelector",
14391
14445
  props: {
14392
14446
  channels: {
@@ -14397,36 +14451,96 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14397
14451
  },
14398
14452
  emits: ["selectChannel"],
14399
14453
  setup(e, { emit: f }) {
14400
- const n = I(null), a = e, A = f, t = I(a.channels.find((l) => l.type === "default")), i = (l) => {
14401
- t.value = l, A("selectChannel", t.value);
14454
+ const n = b(null), a = e, t = f, A = b(a.channels.find((l) => l.type === "default")), i = (l) => {
14455
+ A.value = l, t("selectChannel", A.value);
14402
14456
  };
14403
14457
  return (l, r) => (u(), c("div", {
14404
14458
  ref_key: "customDiv",
14405
14459
  ref: n,
14406
14460
  class: "channels"
14407
14461
  }, [
14408
- o("div", Ws, [
14409
- t.value ? (u(), c("div", $s, [
14410
- t.value.icon ? (u(), c("span", Hs, [
14462
+ o("div", Ks, [
14463
+ A.value ? (u(), c("div", Ps, [
14464
+ A.value.icon ? (u(), c("span", Zs, [
14411
14465
  o("img", {
14412
- src: t.value.icon
14413
- }, null, 8, Ks)
14466
+ src: A.value.icon
14467
+ }, null, 8, Gs)
14414
14468
  ])) : y("", !0),
14415
- o("span", Ps, w(t.value.title), 1)
14416
- ])) : (u(), c("span", Zs, "Канал не выбран")),
14417
- S(Js, {
14469
+ o("span", Xs, w(A.value.title), 1)
14470
+ ])) : (u(), c("span", ei, "Канал не выбран")),
14471
+ S(Mn, {
14418
14472
  actions: e.channels,
14419
14473
  mode: "hover",
14420
14474
  "button-class": "pi pi-list",
14475
+ "menu-side": "top",
14476
+ "context-menu-key": "channels",
14421
14477
  onClick: i
14422
14478
  }, null, 8, ["actions"])
14423
14479
  ])
14424
14480
  ], 512));
14425
14481
  }
14426
- }, Xs = /* @__PURE__ */ j(Gs, [["__scopeId", "data-v-b21b5531"]]), ei = { class: "chat-input" }, fi = { class: "chat-input__container" }, ni = {
14482
+ }, ni = /* @__PURE__ */ j(fi, [["__scopeId", "data-v-80cc8217"]]), ai = { class: "template-selector" }, ti = { class: "template-selector__container" }, Ai = { class: "template-selector__button-close" }, si = { class: "template-selector__list" }, ii = ["onClick"], oi = { class: "template-selector__item-group" }, ui = { class: "template-selector__item-template" }, li = { class: "template-selector__item-title" }, ri = { class: "template-selector__item-text" }, ci = { class: "template-selector__preview-container" }, di = {
14483
+ key: 0,
14484
+ class: "template-selector__preview"
14485
+ }, gi = { class: "template-selector__preview-wrapper" }, mi = { class: "template-selector__preview-text" }, pi = {
14486
+ key: 1,
14487
+ class: "template-selector__preview-title"
14488
+ }, Mi = {
14489
+ __name: "TemplateSelector",
14490
+ props: {
14491
+ templates: {
14492
+ type: Array,
14493
+ required: !1,
14494
+ default: () => []
14495
+ }
14496
+ },
14497
+ emits: ["closeTemplateWindow", "pasteTemplate"],
14498
+ setup(e, { emit: f }) {
14499
+ const n = e, a = (s) => {
14500
+ n.templates.forEach((i) => i.isSelected = !1);
14501
+ const A = n.templates.find((i) => i.templateId === s.templateId);
14502
+ A.isSelected = !0;
14503
+ }, t = T(() => n.templates.find((s) => s.isSelected));
14504
+ return (s, A) => (u(), c("div", ai, [
14505
+ o("div", ti, [
14506
+ o("button", Ai, [
14507
+ o("span", {
14508
+ class: "pi pi-times",
14509
+ onClick: A[0] || (A[0] = (i) => s.$emit("closeTemplateWindow"))
14510
+ })
14511
+ ]),
14512
+ o("ul", si, [
14513
+ (u(!0), c(B, null, Y(e.templates, (i, l) => (u(), c("li", {
14514
+ key: l,
14515
+ class: D(["template-selector__item", { "template-selector__item-selected": i.isSelected }]),
14516
+ onClick: (r) => a(i)
14517
+ }, [
14518
+ o("p", oi, w(i.groupId), 1),
14519
+ o("div", ui, [
14520
+ o("p", li, w(i.title), 1),
14521
+ o("p", ri, w(i.template), 1)
14522
+ ])
14523
+ ], 10, ii))), 128))
14524
+ ]),
14525
+ o("div", ci, [
14526
+ t.value ? (u(), c("div", di, [
14527
+ o("div", gi, [
14528
+ o("p", mi, w(t.value.template), 1),
14529
+ A[2] || (A[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
14530
+ ])
14531
+ ])) : (u(), c("p", pi, " Предпросмотр шаблона "))
14532
+ ]),
14533
+ o("button", {
14534
+ class: "template-selector__button-paste",
14535
+ onClick: A[1] || (A[1] = (i) => s.$emit("pasteTemplate", t.value.template))
14536
+ }, " Вставить ")
14537
+ ])
14538
+ ]));
14539
+ }
14540
+ }, hi = /* @__PURE__ */ j(Mi, [["__scopeId", "data-v-a6888541"]]), yi = { class: "chat-input" }, bi = { class: "chat-input__container" }, vi = {
14427
14541
  key: 0,
14428
14542
  class: "chat-input__first-line"
14429
- }, ai = { class: "chat-input__second-line" }, Ai = { class: "chat-input__third-line" }, ti = {
14543
+ }, _i = { class: "chat-input__second-line" }, Ii = { class: "chat-input__third-line" }, wi = {
14430
14544
  __name: "ChatInput",
14431
14545
  props: /* @__PURE__ */ zf({
14432
14546
  enableEmoji: {
@@ -14438,130 +14552,156 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14438
14552
  type: Array,
14439
14553
  required: !1,
14440
14554
  default: () => []
14555
+ },
14556
+ templates: {
14557
+ type: Array,
14558
+ required: !1,
14559
+ default: () => []
14441
14560
  }
14442
14561
  }, {
14443
14562
  modelValue: { type: String },
14444
14563
  modelModifiers: {}
14445
14564
  }),
14446
- emits: /* @__PURE__ */ zf(["send", "typing"], ["update:modelValue"]),
14565
+ emits: /* @__PURE__ */ zf(["send", "typing", "selectChannel"], ["update:modelValue"]),
14447
14566
  setup(e, { emit: f }) {
14448
- const n = f, a = En(e, "modelValue"), A = I(null), s = I(null), t = I(""), i = x(() => !s.value || s.value === ""), l = I(!1);
14567
+ const n = f, a = Tn(e, "modelValue"), t = b(null), s = b(null), A = b(""), i = b(!1), l = (v) => {
14568
+ a.value = v, i.value = !i.value;
14569
+ }, r = T(() => !s.value || s.value === "");
14449
14570
  Ce(
14450
14571
  () => a.value,
14451
14572
  () => {
14452
- A.value.style.height = "auto", A.value.style.height = A.value.scrollHeight + "px";
14573
+ t.value.style.height = "auto", t.value.style.height = t.value.scrollHeight + "px";
14453
14574
  }
14454
14575
  );
14455
- const r = ["б", "Кб", "Мб", "Гб"], g = (v) => {
14576
+ const g = ["б", "Кб", "Мб", "Гб"], d = (v) => {
14456
14577
  if (console.log("fileUploaded", v), v) {
14457
- let b = v.selectedFile.size, D = 0;
14458
- for (; b > 1024; )
14459
- b = b / 1024, D++;
14460
- b = b.toFixed(2) + r[D], t.value = b;
14578
+ let _ = v.selectedFile.size, k = 0;
14579
+ for (; _ > 1024; )
14580
+ _ = _ / 1024, k++;
14581
+ _ = _.toFixed(2) + g[k], A.value = _;
14461
14582
  }
14462
14583
  s.value = v;
14463
- }, d = () => {
14584
+ }, m = () => {
14464
14585
  console.log("reset uploaded file"), s.value = null;
14465
14586
  }, p = (v) => {
14466
14587
  n("typing", v.target.value);
14467
- }, m = () => {
14468
- var b;
14469
- l.value = !1;
14588
+ }, h = (v) => {
14589
+ n("selectChannel", v);
14590
+ }, I = () => {
14591
+ var _;
14470
14592
  const v = {
14471
14593
  type: null,
14472
14594
  text: null
14473
14595
  };
14474
- 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 = (b = a == null ? void 0 : a.value) == null ? void 0 : b.trim()) : (v.type = "message.text", v.text = a.value.trim()), n("send", v), s.value = !1, a.value = null, W(A).focus();
14475
- }, h = () => {
14476
- l.value = !l.value;
14477
- }, _ = x(() => {
14596
+ 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();
14597
+ }, M = T(() => {
14478
14598
  if (document.documentElement.classList.contains("dark"))
14479
14599
  return "dark";
14480
- }), M = (v) => {
14600
+ }), N = (v) => {
14481
14601
  a.value = (a.value ? a.value : "") + v.i;
14482
14602
  };
14483
- return (v, b) => (u(), c("div", ei, [
14484
- o("div", fi, [
14485
- s.value ? (u(), c("div", ni, [
14486
- S(tA, {
14603
+ return (v, _) => (u(), c("div", yi, [
14604
+ o("div", bi, [
14605
+ s.value ? (u(), c("div", vi, [
14606
+ S(it, {
14487
14607
  "preview-url": s.value.previewUrl,
14488
14608
  "is-image": s.value.isImage,
14489
14609
  "is-video": s.value.isVideo,
14610
+ "is-audio": s.value.isAudio,
14490
14611
  "file-name": s.value.selectedFile.name,
14491
- "file-size": t.value,
14492
- onReset: d
14493
- }, null, 8, ["preview-url", "is-image", "is-video", "file-name", "file-size"])
14612
+ "file-size": A.value,
14613
+ onReset: m
14614
+ }, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
14494
14615
  ])) : y("", !0),
14495
- o("div", ai, [
14496
- Ae(o("textarea", {
14616
+ o("div", _i, [
14617
+ te(o("textarea", {
14497
14618
  ref_key: "refInput",
14498
- ref: A,
14499
- "onUpdate:modelValue": b[0] || (b[0] = (D) => a.value = D),
14619
+ ref: t,
14620
+ "onUpdate:modelValue": _[0] || (_[0] = (k) => a.value = k),
14500
14621
  class: "chat-input__input",
14501
14622
  placeholder: "Type a message...",
14502
- onKeydown: Tn(m, ["enter"]),
14623
+ onKeydown: xn(I, ["enter"]),
14503
14624
  onInput: p
14504
14625
  }, null, 544), [
14505
14626
  [Zf, a.value]
14506
14627
  ]),
14507
14628
  o("button", {
14508
14629
  class: "chat-input__button-send",
14509
- onClick: m
14510
- }, b[1] || (b[1] = [
14630
+ onClick: I
14631
+ }, _[4] || (_[4] = [
14511
14632
  o("span", { class: "pi pi-send" }, null, -1)
14512
14633
  ]))
14513
14634
  ]),
14514
- o("div", Ai, [
14515
- S(K, null, {
14516
- default: P(() => [
14517
- l.value ? (u(), L(W(Qs), {
14518
- key: 0,
14635
+ o("div", Ii, [
14636
+ S(q(Jo), {
14637
+ "can-upload-file": r.value,
14638
+ onFileUploaded: d
14639
+ }, null, 8, ["can-upload-file"]),
14640
+ o("button", {
14641
+ class: "chat-input__button-emoji",
14642
+ onClick: _[1] || (_[1] = (...k) => v.toogleDialogEmoji && v.toogleDialogEmoji(...k))
14643
+ }, _[5] || (_[5] = [
14644
+ o("span", { class: "pi pi-face-smile" }, null, -1)
14645
+ ])),
14646
+ S(H, null, {
14647
+ default: K(() => [
14648
+ S(q(Ys), {
14519
14649
  class: "chat-input__emoji",
14520
14650
  native: !0,
14521
- theme: _.value,
14651
+ theme: M.value,
14522
14652
  "picker-type": "",
14523
- onSelect: M
14524
- }, null, 8, ["theme"])) : y("", !0)
14653
+ onSelect: N
14654
+ }, null, 8, ["theme"])
14525
14655
  ]),
14526
14656
  _: 1
14527
14657
  }),
14528
- S(W(k1), {
14529
- "can-upload-file": i.value,
14530
- onFileUploaded: g
14531
- }, null, 8, ["can-upload-file"]),
14532
14658
  o("button", {
14533
- class: "chat-input__button-emoji",
14534
- onClick: h
14535
- }, b[2] || (b[2] = [
14536
- o("span", { class: "pi pi-face-smile" }, null, -1)
14659
+ class: "chat-input__button-template",
14660
+ onClick: _[2] || (_[2] = (k) => i.value = !i.value)
14661
+ }, _[6] || (_[6] = [
14662
+ o("span", { class: "pi pi-objects-column" }, null, -1)
14537
14663
  ])),
14538
- S(Xs, { channels: e.channels }, null, 8, ["channels"])
14664
+ S(H, null, {
14665
+ default: K(() => [
14666
+ i.value ? (u(), Q(hi, {
14667
+ key: 0,
14668
+ templates: e.templates.templates,
14669
+ onCloseTemplateWindow: _[3] || (_[3] = (k) => i.value = !i.value),
14670
+ onPasteTemplate: l
14671
+ }, null, 8, ["templates"])) : y("", !0)
14672
+ ]),
14673
+ _: 1
14674
+ }),
14675
+ S(ni, {
14676
+ channels: e.channels,
14677
+ onSelectChannel: h
14678
+ }, null, 8, ["channels"])
14539
14679
  ])
14540
14680
  ])
14541
14681
  ]));
14542
14682
  }
14543
- }, Oo = /* @__PURE__ */ j(ti, [["__scopeId", "data-v-1254400e"]]), si = { class: "chat-item__avatar-container" }, ii = ["src"], oi = {
14683
+ }, G1 = /* @__PURE__ */ j(wi, [["__scopeId", "data-v-d1641393"]]), ki = { class: "chat-item__avatar-container" }, Ni = ["src"], Di = {
14544
14684
  key: 1,
14545
14685
  class: "pi pi-user"
14546
- }, ui = { class: "chat-item__info-container" }, li = { class: "chat-item__name" }, ri = {
14686
+ }, ji = { class: "chat-item__info-container" }, Vi = { class: "chat-item__name" }, Ei = {
14547
14687
  key: 0,
14548
14688
  class: "chat-item__last-message"
14549
- }, ci = { class: "chat-item__details-container" }, di = {
14689
+ }, Ti = { class: "chat-item__details-container" }, xi = {
14550
14690
  key: 0,
14551
14691
  class: "chat-item__time"
14552
- }, gi = {
14692
+ }, Si = {
14553
14693
  key: 1,
14554
14694
  class: "chat-item__unread"
14555
- }, mi = {
14695
+ }, zi = {
14556
14696
  key: 3,
14557
14697
  class: "chat-item__status-chat-container"
14558
- }, pi = {
14698
+ }, Oi = {
14559
14699
  key: 0,
14560
14700
  class: "pi pi-check"
14561
- }, Mi = {
14701
+ }, Ci = {
14562
14702
  key: 1,
14563
14703
  class: "chat-item__fixed pi pi-thumbtack"
14564
- }, hi = "typing...", yi = {
14704
+ }, Ui = "typing...", Li = {
14565
14705
  __name: "ChatItem",
14566
14706
  props: {
14567
14707
  chat: {
@@ -14571,76 +14711,76 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14571
14711
  },
14572
14712
  emits: ["select", "action"],
14573
14713
  setup(e, { emit: f }) {
14574
- const n = e, a = f, A = () => {
14714
+ const n = e, a = f, t = () => {
14575
14715
  a("select", n.chat);
14576
- }, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", t = (_) => {
14577
- g(), a("action", { chatId: n.chat.chatId, ..._ });
14578
- }, i = I(!1), l = I(!1), r = () => {
14716
+ }, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", A = (I) => {
14717
+ g(), a("action", { chatId: n.chat.chatId, ...I });
14718
+ }, i = b(!1), l = b(!1), r = () => {
14579
14719
  l.value = !0;
14580
14720
  }, g = () => {
14581
14721
  l.value = !1, i.value = !1;
14582
- }, d = x(() => De(n.chat["lastMessage.status"]));
14583
- let p;
14584
- const m = I(!1), h = x(() => n.chat.typing && m.value ? hi : n.chat.lastMessage);
14585
- return ge(() => {
14586
- n.chat.typing && (p = setInterval(() => {
14587
- m.value = !m.value;
14722
+ }, d = T(() => ke(n.chat["lastMessage.status"]));
14723
+ let m;
14724
+ const p = b(!1), h = T(() => n.chat.typing && p.value ? Ui : n.chat.lastMessage);
14725
+ return de(() => {
14726
+ n.chat.typing && (m = setInterval(() => {
14727
+ p.value = !p.value;
14588
14728
  }, 2e3));
14589
14729
  }), Gf(() => {
14590
- clearInterval(p);
14591
- }), (_, M) => (u(), c("div", {
14592
- class: k(s()),
14593
- onClick: A
14730
+ clearInterval(m);
14731
+ }), (I, M) => (u(), c("div", {
14732
+ class: D(s()),
14733
+ onClick: t
14594
14734
  }, [
14595
14735
  o("div", {
14596
14736
  class: "chat-item__container",
14597
14737
  onMouseenter: r,
14598
14738
  onMouseleave: g
14599
14739
  }, [
14600
- o("div", si, [
14740
+ o("div", ki, [
14601
14741
  o("span", {
14602
14742
  class: "chat-item__status-user",
14603
- style: O({ backgroundColor: n.chat.status })
14743
+ style: z({ backgroundColor: n.chat.status })
14604
14744
  }, null, 4),
14605
14745
  n.chat.avatar ? (u(), c("img", {
14606
14746
  key: 0,
14607
14747
  src: n.chat.avatar,
14608
14748
  height: "48",
14609
14749
  width: "48"
14610
- }, null, 8, ii)) : (u(), c("span", oi))
14750
+ }, null, 8, Ni)) : (u(), c("span", Di))
14611
14751
  ]),
14612
- o("div", ui, [
14613
- o("div", li, w(e.chat.name), 1),
14614
- e.chat.lastMessage || e.chat.typing ? (u(), c("div", ri, w(h.value), 1)) : y("", !0)
14752
+ o("div", ji, [
14753
+ o("div", Vi, w(e.chat.name), 1),
14754
+ e.chat.lastMessage || e.chat.typing ? (u(), c("div", Ei, w(h.value), 1)) : y("", !0)
14615
14755
  ]),
14616
- o("div", ci, [
14617
- !(l.value && e.chat.actions) && e.chat["lastActivity.time"] ? (u(), c("div", di, w(e.chat["lastActivity.time"]), 1)) : y("", !0),
14618
- e.chat.countUnread > 0 ? (u(), c("div", gi, w(e.chat.countUnread), 1)) : y("", !0),
14756
+ o("div", Ti, [
14757
+ e.chat["lastActivity.time"] ? (u(), c("div", xi, w(e.chat["lastActivity.time"]), 1)) : y("", !0),
14758
+ e.chat.countUnread > 0 ? (u(), c("div", Si, w(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : y("", !0),
14619
14759
  l.value && e.chat.actions ? (u(), c("button", {
14620
14760
  key: 2,
14621
14761
  class: "chat-item__menu-button",
14622
- onClick: M[0] || (M[0] = (v) => i.value = !i.value)
14762
+ onClick: M[0] || (M[0] = (N) => i.value = !i.value)
14623
14763
  }, M[1] || (M[1] = [
14624
14764
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
14625
14765
  ]))) : y("", !0),
14626
- e.chat.countUnread < 1 ? (u(), c("div", mi, [
14627
- W(we).includes(e.chat["lastMessage.status"]) ? (u(), c("div", {
14766
+ e.chat.countUnread < 1 ? (u(), c("div", zi, [
14767
+ q(we).includes(e.chat["lastMessage.status"]) ? (u(), c("div", {
14628
14768
  key: 0,
14629
- class: k(["chat-item__status-message", d.value])
14769
+ class: D(["chat-item__status-message", d.value])
14630
14770
  }, [
14631
- e.chat["lastMessage.status"] !== "send" ? (u(), c("span", pi)) : y("", !0),
14771
+ e.chat["lastMessage.status"] !== "send" ? (u(), c("span", Oi)) : y("", !0),
14632
14772
  M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
14633
14773
  ], 2)) : y("", !0),
14634
- e.chat.isFixedTop || e.chat.isFixedBottom ? (u(), c("span", Mi)) : y("", !0)
14774
+ e.chat.isFixedTop || e.chat.isFixedBottom ? (u(), c("span", Ci)) : y("", !0)
14635
14775
  ])) : y("", !0)
14636
14776
  ]),
14637
- S(K, { name: "menu" }, {
14638
- default: P(() => [
14639
- i.value && e.chat.actions ? (u(), L(ie, {
14777
+ S(H, { name: "menu" }, {
14778
+ default: K(() => [
14779
+ i.value && e.chat.actions ? (u(), Q(me, {
14640
14780
  key: 0,
14641
14781
  class: "chat-item__context-menu",
14642
14782
  actions: e.chat.actions,
14643
- onClick: t
14783
+ onClick: A
14644
14784
  }, null, 8, ["actions"])) : y("", !0)
14645
14785
  ]),
14646
14786
  _: 1
@@ -14648,37 +14788,37 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14648
14788
  ], 32)
14649
14789
  ], 2));
14650
14790
  }
14651
- }, uf = /* @__PURE__ */ j(yi, [["__scopeId", "data-v-de322d7c"]]), bi = { class: "chat-filter" }, vi = { class: "chat-filter__container" }, Ii = {
14791
+ }, uf = /* @__PURE__ */ j(Li, [["__scopeId", "data-v-f4674561"]]), Qi = { class: "chat-filter" }, Bi = { class: "chat-filter__container" }, Yi = {
14652
14792
  __name: "ChatFilter",
14653
14793
  emits: ["update"],
14654
14794
  setup(e, { emit: f }) {
14655
- const n = I(""), a = f, A = () => {
14656
- const s = W(n);
14795
+ const n = b(""), a = f, t = () => {
14796
+ const s = q(n);
14657
14797
  a("update", s.value);
14658
14798
  };
14659
- return (s, t) => (u(), c("div", bi, [
14660
- o("div", vi, [
14799
+ return (s, A) => (u(), c("div", Qi, [
14800
+ o("div", Bi, [
14661
14801
  o("input", {
14662
14802
  ref_key: "refInput",
14663
14803
  ref: n,
14664
14804
  class: "chat-filter__input",
14665
14805
  type: "text",
14666
14806
  placeholder: "Поиск диалога",
14667
- onInput: A
14807
+ onInput: t
14668
14808
  }, null, 544)
14669
14809
  ])
14670
14810
  ]));
14671
14811
  }
14672
- }, _i = /* @__PURE__ */ j(Ii, [["__scopeId", "data-v-effa1581"]]), wi = { class: "chat-list" }, Di = {
14812
+ }, Ri = /* @__PURE__ */ j(Yi, [["__scopeId", "data-v-f043bb19"]]), qi = { class: "chat-list" }, Fi = {
14673
14813
  key: 0,
14674
14814
  class: "chat-list__title"
14675
- }, Ni = {
14815
+ }, $i = {
14676
14816
  key: 0,
14677
14817
  class: "pi pi-minus"
14678
- }, ki = {
14818
+ }, Wi = {
14679
14819
  key: 1,
14680
14820
  class: "pi pi-plus"
14681
- }, ji = { class: "chat-list__items" }, Vi = { class: "chat-list__fixed-items-top" }, Ei = { class: "chat-list__scrollable-items" }, Ti = { class: "chat-list__fixed-items-bottom" }, xi = {
14821
+ }, Ji = { class: "chat-list__items" }, Hi = { class: "chat-list__fixed-items-top" }, Ki = { class: "chat-list__scrollable-items" }, Pi = { class: "chat-list__fixed-items-bottom" }, Zi = {
14682
14822
  __name: "ChatList",
14683
14823
  props: {
14684
14824
  title: {
@@ -14701,35 +14841,39 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14701
14841
  },
14702
14842
  emits: ["select", "action"],
14703
14843
  setup(e, { emit: f }) {
14704
- const n = I(""), a = I(!1), A = () => {
14844
+ const n = b(""), a = b(!1), t = () => {
14705
14845
  a.value = !1;
14706
- }, s = e, t = f, i = (d) => {
14707
- t("select", d), s.chats.forEach((m) => m.isSelected = !1);
14708
- const p = s.chats.find((m) => m.chatId === d.chatId);
14709
- p.isSelected = !0;
14710
- }, l = () => s.chats.toSorted((d, p) => {
14711
- if (d.countUnread > p.countUnread) return -1;
14712
- if (d.countUnread < p.countUnread) return 1;
14713
- if (d.countUnread == p.countUnread) return 0;
14714
- }).filter((d) => d.name.includes(n.value)), r = (d) => {
14846
+ }, s = e, A = f, i = (d) => {
14847
+ s.chats.forEach((p) => p.isSelected = !1);
14848
+ const m = s.chats.find((p) => p.chatId === d.chatId);
14849
+ m.isSelected = !0, A("select", d);
14850
+ }, l = () => s.chats.toSorted((d, m) => {
14851
+ if (Number(d["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
14852
+ if (Number(d["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
14853
+ if (Number(d["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
14854
+ }).toSorted((d, m) => {
14855
+ if (d.countUnread > m.countUnread) return -1;
14856
+ if (d.countUnread < m.countUnread) return 1;
14857
+ if (d.countUnread == m.countUnread) return 0;
14858
+ }).filter((d) => d.name.includes(n.value) || d.metadata.includes(n.value)), r = (d) => {
14715
14859
  n.value = d;
14716
- }, g = (d) => t("action", d);
14717
- return (d, p) => (u(), c("div", wi, [
14860
+ }, g = (d) => A("action", d);
14861
+ return (d, m) => (u(), c("div", qi, [
14718
14862
  o("div", {
14719
14863
  class: "chat-list__title-container",
14720
- onMouseleave: A
14864
+ onMouseleave: t
14721
14865
  }, [
14722
- e.title ? (u(), c("h2", Di, w(e.title), 1)) : y("", !0),
14866
+ e.title ? (u(), c("h2", Fi, w(e.title), 1)) : y("", !0),
14723
14867
  e.actions.length ? (u(), c("button", {
14724
14868
  key: 1,
14725
14869
  class: "chat-list__button-actions",
14726
- onClick: p[0] || (p[0] = (m) => a.value = !a.value)
14870
+ onClick: m[0] || (m[0] = (p) => a.value = !a.value)
14727
14871
  }, [
14728
- a.value ? (u(), c("span", Ni)) : (u(), c("span", ki))
14872
+ a.value ? (u(), c("span", $i)) : (u(), c("span", Wi))
14729
14873
  ])) : y("", !0),
14730
- S(K, null, {
14731
- default: P(() => [
14732
- a.value && e.actions ? (u(), L(ie, {
14874
+ S(H, null, {
14875
+ default: K(() => [
14876
+ a.value && e.actions ? (u(), Q(me, {
14733
14877
  key: 0,
14734
14878
  actions: e.actions,
14735
14879
  class: "chat-list__context-menu",
@@ -14739,35 +14883,35 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14739
14883
  _: 1
14740
14884
  })
14741
14885
  ], 32),
14742
- e.filterEnabled ? (u(), L(_i, {
14886
+ e.filterEnabled ? (u(), Q(Ri, {
14743
14887
  key: 0,
14744
14888
  class: "chat-list__filter",
14745
14889
  onUpdate: r
14746
14890
  })) : y("", !0),
14747
- o("div", ji, [
14748
- o("div", Vi, [
14749
- (u(!0), c(B, null, R(l().filter((m) => m.isFixedTop), (m) => (u(), L(uf, {
14750
- key: m.chatId,
14891
+ o("div", Ji, [
14892
+ o("div", Hi, [
14893
+ (u(!0), c(B, null, Y(l().filter((p) => p.isFixedTop), (p) => (u(), Q(uf, {
14894
+ key: p.chatId,
14751
14895
  class: "chat-list__item",
14752
- chat: m,
14896
+ chat: p,
14753
14897
  onSelect: i,
14754
14898
  onAction: g
14755
14899
  }, null, 8, ["chat"]))), 128))
14756
14900
  ]),
14757
- o("div", Ei, [
14758
- (u(!0), c(B, null, R(l().filter((m) => !m.isFixedBottom && !m.isFixedTop), (m) => (u(), L(uf, {
14759
- key: m.chatId,
14901
+ o("div", Ki, [
14902
+ (u(!0), c(B, null, Y(l().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (u(), Q(uf, {
14903
+ key: p.chatId,
14760
14904
  class: "chat-list__item",
14761
- chat: m,
14905
+ chat: p,
14762
14906
  onSelect: i,
14763
14907
  onAction: g
14764
14908
  }, null, 8, ["chat"]))), 128))
14765
14909
  ]),
14766
- o("div", Ti, [
14767
- (u(!0), c(B, null, R(l().filter((m) => m.isFixedBottom), (m) => (u(), L(uf, {
14768
- key: m.chatId,
14910
+ o("div", Pi, [
14911
+ (u(!0), c(B, null, Y(l().filter((p) => p.isFixedBottom), (p) => (u(), Q(uf, {
14912
+ key: p.chatId,
14769
14913
  class: "chat-list__item",
14770
- chat: m,
14914
+ chat: p,
14771
14915
  onSelect: i,
14772
14916
  onAction: g
14773
14917
  }, null, 8, ["chat"]))), 128))
@@ -14775,10 +14919,10 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14775
14919
  ])
14776
14920
  ]));
14777
14921
  }
14778
- }, Co = /* @__PURE__ */ j(xi, [["__scopeId", "data-v-e344d847"]]), Si = ["messageId"], zi = ["src"], Oi = ["src"], Ci = { class: "video-message__controls" }, Ui = { class: "video-message__remaining-time" }, Li = { class: "video-message__info-container" }, Qi = { class: "video-message__time" }, Bi = {
14922
+ }, X1 = /* @__PURE__ */ j(Zi, [["__scopeId", "data-v-56d1c0f8"]]), Gi = ["messageId"], Xi = ["src"], eo = ["src"], fo = { class: "video-message__controls" }, no = { class: "video-message__remaining-time" }, ao = { class: "video-message__info-container" }, to = { class: "video-message__time" }, Ao = {
14779
14923
  key: 0,
14780
14924
  class: "pi pi-check"
14781
- }, Yi = {
14925
+ }, so = {
14782
14926
  __name: "VideoMessage",
14783
14927
  props: {
14784
14928
  message: {
@@ -14788,39 +14932,39 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14788
14932
  },
14789
14933
  setup(e) {
14790
14934
  const f = e;
14791
- function n(_) {
14792
- return _.position === "left" ? "video-message__left" : "video-message__right";
14935
+ function n(I) {
14936
+ return I.position === "left" ? "video-message__left" : "video-message__right";
14793
14937
  }
14794
- const a = I(null), A = I(!1), s = I(0), t = I(0), i = I(!1), l = I(!1), r = () => {
14938
+ const a = b(null), t = b(!1), s = b(0), A = b(0), i = b(!1), l = b(!1), r = () => {
14795
14939
  l.value = !0;
14796
14940
  }, g = () => {
14797
14941
  l.value = !1, i.value = !1;
14798
- }, d = x(() => De(f.message.status));
14799
- function p() {
14800
- a.value && (A.value ? a.value.pause() : a.value.play(), A.value = !A.value);
14942
+ }, d = T(() => ke(f.message.status));
14943
+ function m() {
14944
+ a.value && (t.value ? a.value.pause() : a.value.play(), t.value = !t.value);
14801
14945
  }
14802
- const m = (_) => {
14803
- const M = Math.floor(_ / 60), v = Math.floor(_ % 60);
14804
- return `${M.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
14805
- }, h = x(() => {
14946
+ const p = (I) => {
14947
+ const M = Math.floor(I / 60), N = Math.floor(I % 60);
14948
+ return `${M.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
14949
+ }, h = T(() => {
14806
14950
  if (a.value) {
14807
- if (t.value >= s.value)
14808
- return A.value = !1, "00:00";
14951
+ if (A.value >= s.value)
14952
+ return t.value = !1, "00:00";
14809
14953
  {
14810
- const _ = s.value - t.value;
14811
- return m(_);
14954
+ const I = s.value - A.value;
14955
+ return p(I);
14812
14956
  }
14813
14957
  } else
14814
14958
  return "";
14815
14959
  });
14816
- return ge(() => {
14960
+ return de(() => {
14817
14961
  a.value.addEventListener("loadedmetadata", () => {
14818
14962
  s.value = a.value.duration;
14819
14963
  }), a.value.addEventListener("timeupdate", () => {
14820
- t.value = a.value.currentTime;
14964
+ A.value = a.value.currentTime;
14821
14965
  });
14822
- }), (_, M) => (u(), c("div", {
14823
- class: k(["video-message", n(e.message)]),
14966
+ }), (I, M) => (u(), c("div", {
14967
+ class: D(["video-message", n(e.message)]),
14824
14968
  messageId: e.message.messageId,
14825
14969
  onMouseleave: g
14826
14970
  }, [
@@ -14830,8 +14974,8 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14830
14974
  src: e.message.avatar,
14831
14975
  height: "32",
14832
14976
  width: "32",
14833
- style: O({ gridRow: e.message.subText ? "2" : "1" })
14834
- }, null, 12, zi)) : y("", !0),
14977
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
14978
+ }, null, 12, Xi)) : y("", !0),
14835
14979
  o("div", {
14836
14980
  class: "video-message__content",
14837
14981
  onMouseenter: r
@@ -14841,79 +14985,82 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14841
14985
  ref: a,
14842
14986
  class: "video-message__video",
14843
14987
  src: e.message.url
14844
- }, null, 8, Oi),
14845
- o("div", Ci, [
14846
- S(K, null, {
14847
- default: P(() => [
14848
- Ae(o("button", {
14988
+ }, null, 8, eo),
14989
+ o("div", fo, [
14990
+ S(H, null, {
14991
+ default: K(() => [
14992
+ te(o("button", {
14849
14993
  class: "video-message__play",
14850
- onClick: p
14994
+ onClick: m
14851
14995
  }, M[1] || (M[1] = [
14852
14996
  o("span", { class: "pi pi-play" }, null, -1)
14853
14997
  ]), 512), [
14854
- [Me, !A.value]
14998
+ [Me, !t.value]
14855
14999
  ])
14856
15000
  ]),
14857
15001
  _: 1
14858
15002
  }),
14859
- Ae(o("button", {
15003
+ te(o("button", {
14860
15004
  class: "video-message__pause",
14861
- onClick: p
15005
+ onClick: m
14862
15006
  }, null, 512), [
14863
- [Me, A.value]
15007
+ [Me, t.value]
14864
15008
  ])
14865
15009
  ]),
14866
15010
  l.value && e.message.actions ? (u(), c("button", {
14867
15011
  key: 0,
14868
15012
  class: "video-message__menu-button",
14869
- onClick: M[0] || (M[0] = (v) => i.value = !i.value)
15013
+ onClick: M[0] || (M[0] = (N) => i.value = !i.value)
14870
15014
  }, M[2] || (M[2] = [
14871
15015
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
14872
15016
  ]))) : y("", !0),
14873
- S(K, null, {
14874
- default: P(() => [
14875
- i.value && e.message.actions ? (u(), L(ie, {
15017
+ S(H, null, {
15018
+ default: K(() => [
15019
+ i.value && e.message.actions ? (u(), Q(me, {
14876
15020
  key: 0,
14877
15021
  class: "video-message__context-menu",
14878
15022
  actions: e.message.actions,
14879
- onClick: _.clickAction
15023
+ onClick: I.clickAction
14880
15024
  }, null, 8, ["actions", "onClick"])) : y("", !0)
14881
15025
  ]),
14882
15026
  _: 1
14883
15027
  }),
14884
- o("p", Ui, w(`${h.value}`), 1),
14885
- o("div", Li, [
14886
- o("span", Qi, w(e.message.time), 1),
14887
- n(e.message) === "video-message__right" && W(we).includes(e.message.status) ? (u(), c("div", {
15028
+ o("p", no, w(`${h.value}`), 1),
15029
+ o("div", ao, [
15030
+ o("span", to, w(e.message.time), 1),
15031
+ n(e.message) === "video-message__right" && q(we).includes(e.message.status) ? (u(), c("div", {
14888
15032
  key: 0,
14889
- class: k(["video-message__status", d.value])
15033
+ class: D(["video-message__status", d.value])
14890
15034
  }, [
14891
- e.message.status !== "sent" ? (u(), c("span", Bi)) : y("", !0),
15035
+ e.message.status !== "sent" ? (u(), c("span", Ao)) : y("", !0),
14892
15036
  M[3] || (M[3] = o("span", { class: "pi pi-check" }, null, -1))
14893
15037
  ], 2)) : y("", !0)
14894
- ])
15038
+ ]),
15039
+ M[4] || (M[4] = o("button", { class: "video-message__download-button" }, [
15040
+ o("span", { class: "pi pi-download" })
15041
+ ], -1))
14895
15042
  ], 32)
14896
- ], 42, Si));
15043
+ ], 42, Gi));
14897
15044
  }
14898
- }, Ri = /* @__PURE__ */ j(Yi, [["__scopeId", "data-v-b56303e8"]]), qi = { class: "call-message" }, Fi = ["messageId"], Ji = ["src"], Wi = {
15045
+ }, io = /* @__PURE__ */ j(so, [["__scopeId", "data-v-6882e877"]]), oo = { class: "call-message" }, uo = ["messageId"], lo = ["src"], ro = {
14899
15046
  key: 1,
14900
15047
  class: "call-message__subtext"
14901
- }, $i = { class: "call-message__content" }, Hi = {
15048
+ }, co = { class: "call-message__content" }, go = {
14902
15049
  key: 0,
14903
15050
  class: "call-message__title"
14904
- }, Ki = {
15051
+ }, mo = {
14905
15052
  key: 1,
14906
15053
  class: "call-message__title"
14907
- }, Pi = {
15054
+ }, po = {
14908
15055
  key: 2,
14909
15056
  class: "call-message__duration"
14910
- }, Zi = {
15057
+ }, Mo = {
14911
15058
  key: 3,
14912
15059
  class: "call-message__duration"
14913
- }, Gi = {
15060
+ }, ho = {
14914
15061
  key: 4,
14915
15062
  class: "call-message__duration"
14916
- }, Xi = { class: "call-message__info-container" }, e1 = { class: "call-message__time" }, f1 = {
15063
+ }, yo = { class: "call-message__info-container" }, bo = { class: "call-message__time" }, vo = {
14917
15064
  __name: "CallMessage",
14918
15065
  props: {
14919
15066
  message: {
@@ -14925,9 +15072,9 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14925
15072
  function f(n) {
14926
15073
  return n.position === "left" ? "call-message__left" : "call-message__right";
14927
15074
  }
14928
- return (n, a) => (u(), c("div", qi, [
15075
+ return (n, a) => (u(), c("div", oo, [
14929
15076
  o("div", {
14930
- class: k(f(e.message)),
15077
+ class: D(f(e.message)),
14931
15078
  messageId: e.message.messageId
14932
15079
  }, [
14933
15080
  e.message.avatar ? (u(), c("img", {
@@ -14936,24 +15083,24 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14936
15083
  src: e.message.avatar,
14937
15084
  height: "32",
14938
15085
  width: "32",
14939
- style: O({ gridRow: e.message.subText ? "2" : "1" })
14940
- }, null, 12, Ji)) : y("", !0),
14941
- e.message.subText ? (u(), c("p", Wi, w(e.message.subText), 1)) : y("", !0),
14942
- o("div", $i, [
15086
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
15087
+ }, null, 12, lo)) : y("", !0),
15088
+ e.message.subText ? (u(), c("p", ro, w(e.message.subText), 1)) : y("", !0),
15089
+ o("div", co, [
14943
15090
  o("span", {
14944
15091
  class: "call-message__icon pi pi-phone",
14945
- style: O({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
15092
+ style: z({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
14946
15093
  }, null, 4),
14947
- e.message.isMissedCall ? (u(), c("span", Ki, "Пропущенный аудиозвонок")) : (u(), c("span", Hi, "Аудиозвонок")),
14948
- e.message.callDuration ? (u(), c("span", Pi, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (u(), c("span", Zi, "Нажмите, чтобы перезвонить")) : (u(), c("span", Gi, "Нет ответа")),
14949
- o("div", Xi, [
14950
- o("span", e1, w(e.message.time), 1)
15094
+ e.message.isMissedCall ? (u(), c("span", mo, "Пропущенный аудиозвонок")) : (u(), c("span", go, "Аудиозвонок")),
15095
+ e.message.callDuration ? (u(), c("span", po, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (u(), c("span", Mo, "Нажмите, чтобы перезвонить")) : (u(), c("span", ho, "Нет ответа")),
15096
+ o("div", yo, [
15097
+ o("span", bo, w(e.message.time), 1)
14951
15098
  ])
14952
15099
  ])
14953
- ], 10, Fi)
15100
+ ], 10, uo)
14954
15101
  ]));
14955
15102
  }
14956
- }, n1 = /* @__PURE__ */ j(f1, [["__scopeId", "data-v-60811790"]]), a1 = { class: "system-message" }, A1 = { class: "system-message__container" }, t1 = { class: "system-message__text" }, s1 = {
15103
+ }, _o = /* @__PURE__ */ j(vo, [["__scopeId", "data-v-8790e89d"]]), Io = { class: "system-message" }, wo = { class: "system-message__container" }, ko = { class: "system-message__text" }, No = {
14957
15104
  __name: "SystemMessage",
14958
15105
  props: {
14959
15106
  message: {
@@ -14962,16 +15109,16 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14962
15109
  }
14963
15110
  },
14964
15111
  setup(e) {
14965
- return (f, n) => (u(), c("div", a1, [
14966
- o("div", A1, [
14967
- o("p", t1, w(e.message.text), 1)
15112
+ return (f, n) => (u(), c("div", Io, [
15113
+ o("div", wo, [
15114
+ o("p", ko, w(e.message.text), 1)
14968
15115
  ])
14969
15116
  ]));
14970
15117
  }
14971
- }, i1 = /* @__PURE__ */ j(s1, [["__scopeId", "data-v-b17746f3"]]), o1 = { class: "typing-message" }, u1 = { class: "typing-message__container" }, l1 = ["src"], r1 = {
15118
+ }, Do = /* @__PURE__ */ j(No, [["__scopeId", "data-v-b17746f3"]]), jo = { class: "typing-message" }, Vo = { class: "typing-message__container" }, Eo = ["src"], To = {
14972
15119
  key: 1,
14973
15120
  class: "typing-message__subtext"
14974
- }, c1 = {
15121
+ }, xo = {
14975
15122
  __name: "TypingMessage",
14976
15123
  props: {
14977
15124
  message: {
@@ -14980,30 +15127,34 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
14980
15127
  }
14981
15128
  },
14982
15129
  setup(e) {
14983
- return (f, n) => (u(), c("div", o1, [
14984
- o("div", u1, [
15130
+ return (f, n) => (u(), c("div", jo, [
15131
+ o("div", Vo, [
14985
15132
  e.message.avatar ? (u(), c("img", {
14986
15133
  key: 0,
14987
15134
  class: "typing-message__avatar",
14988
15135
  src: e.message.avatar,
14989
15136
  height: "32",
14990
15137
  width: "32",
14991
- style: O({ gridRow: e.message.subText ? "2" : "1" })
14992
- }, null, 12, l1)) : y("", !0),
14993
- e.message.subText ? (u(), c("p", r1, w(e.message.subText), 1)) : y("", !0),
15138
+ style: z({ gridRow: e.message.subText ? "2" : "1" })
15139
+ }, null, 12, Eo)) : y("", !0),
15140
+ e.message.subText ? (u(), c("p", To, w(e.message.subText), 1)) : y("", !0),
14994
15141
  n[0] || (n[0] = o("div", { class: "typing-message__loader-container" }, [
14995
15142
  o("div", { class: "typing-message__loader" })
14996
15143
  ], -1))
14997
15144
  ])
14998
15145
  ]));
14999
15146
  }
15000
- }, d1 = /* @__PURE__ */ j(c1, [["__scopeId", "data-v-6ffe329a"]]), g1 = { class: "message-feed__container" }, m1 = {
15147
+ }, So = /* @__PURE__ */ j(xo, [["__scopeId", "data-v-6ffe329a"]]), zo = { class: "message-feed__container" }, Oo = {
15001
15148
  __name: "Feed",
15002
15149
  props: {
15003
15150
  objects: {
15004
15151
  type: Array,
15005
15152
  required: !0
15006
15153
  },
15154
+ buttonParams: {
15155
+ type: Object,
15156
+ required: !0
15157
+ },
15007
15158
  // при новом сообщении необходимо прокручивать ленту вниз,
15008
15159
  // а при загрузке более ранних сообщений - нет
15009
15160
  isScrollToBottomOnUpdateObjectsEnabled: {
@@ -15014,71 +15165,76 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15014
15165
  },
15015
15166
  emits: ["messageAction", "loadMore"],
15016
15167
  setup(e, { emit: f }) {
15017
- const n = I(), a = I(!1), A = e, s = f, t = () => {
15018
- const d = W(n);
15168
+ const n = b(), a = b(!1), t = e, s = f, A = () => {
15169
+ const d = q(n);
15019
15170
  d.scrollHeight - d.scrollTop - d.clientHeight < 100 ? a.value = !1 : a.value = !0, d.scrollTop === 0 && s("loadMore");
15020
15171
  }, i = (d) => ({
15021
- "message.text": va,
15022
- "message.image": ra,
15023
- "message.file": Gn,
15024
- "message.audio": xa,
15025
- "message.video": Ri,
15026
- "message.call": n1,
15027
- "message.system": i1,
15028
- "system.date": Ua,
15029
- "message.typing": d1
15172
+ "message.text": _a,
15173
+ "message.image": ca,
15174
+ "message.file": Xn,
15175
+ "message.audio": Sa,
15176
+ "message.video": io,
15177
+ "message.call": _o,
15178
+ "message.system": Do,
15179
+ "system.date": La,
15180
+ "message.typing": So
15030
15181
  })[d];
15031
15182
  function l() {
15032
- A.isScrollToBottomOnUpdateObjectsEnabled && lf(function() {
15033
- const d = W(n);
15183
+ t.isScrollToBottomOnUpdateObjectsEnabled && lf(function() {
15184
+ const d = q(n);
15034
15185
  d.scrollTop = d.scrollHeight;
15035
15186
  });
15036
15187
  }
15037
15188
  function r() {
15038
15189
  lf(function() {
15039
- const d = W(n);
15190
+ const d = q(n);
15040
15191
  d.scrollTop = d.scrollHeight;
15041
15192
  });
15042
15193
  }
15043
- xn(() => l), Ce(() => A.objects, l);
15194
+ Sn(() => l), Ce(() => t.objects, l);
15044
15195
  const g = (d) => {
15045
15196
  s("messageAction", d);
15046
15197
  };
15047
- return (d, p) => (u(), c("div", {
15198
+ return (d, m) => (u(), c("div", {
15048
15199
  ref_key: "refFeed",
15049
15200
  ref: n,
15050
15201
  class: "message-feed",
15051
- onScroll: t
15202
+ onScroll: A
15052
15203
  }, [
15053
- o("div", g1, [
15054
- (u(!0), c(B, null, R(e.objects, (m) => (u(), L(Sn(i(m.type)), {
15055
- key: m.messageId,
15204
+ o("div", zo, [
15205
+ (u(!0), c(B, null, Y(e.objects, (p) => (u(), Q(zn(i(p.type)), {
15206
+ key: p.messageId,
15056
15207
  class: "message-feed__message",
15057
- message: m,
15208
+ message: p,
15058
15209
  onAction: g
15059
15210
  }, null, 40, ["message"]))), 128))
15060
15211
  ]),
15061
- S(K, null, {
15062
- default: P(() => [
15212
+ S(H, null, {
15213
+ default: K(() => [
15063
15214
  a.value ? (u(), c("button", {
15064
15215
  key: 0,
15065
15216
  class: "message-feed__button-down",
15066
15217
  onClick: r
15067
- }, p[0] || (p[0] = [
15068
- o("span", { class: "pi pi-angle-down" }, null, -1)
15069
- ]))) : y("", !0)
15218
+ }, [
15219
+ e.buttonParams ? (u(), c("div", {
15220
+ key: 0,
15221
+ style: z({ backgroundColor: e.buttonParams.color }),
15222
+ class: "message-feed__unread-amount"
15223
+ }, w(e.buttonParams.unreadAmount), 5)) : y("", !0),
15224
+ m[0] || (m[0] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
15225
+ ])) : y("", !0)
15070
15226
  ]),
15071
15227
  _: 1
15072
15228
  })
15073
15229
  ], 544));
15074
15230
  }
15075
- }, Uo = /* @__PURE__ */ j(m1, [["__scopeId", "data-v-6f37a662"]]), p1 = { class: "profile" }, M1 = {
15231
+ }, eu = /* @__PURE__ */ j(Oo, [["__scopeId", "data-v-47c13ea8"]]), Co = { class: "profile" }, Uo = {
15076
15232
  key: 0,
15077
15233
  class: "profile__container"
15078
- }, h1 = {
15234
+ }, Lo = {
15079
15235
  key: 0,
15080
15236
  class: "profile__avatar-container"
15081
- }, y1 = ["src"], b1 = { class: "profile__name" }, v1 = { class: "profile__email" }, I1 = { class: "profile__phone" }, _1 = {
15237
+ }, Qo = ["src"], Bo = { class: "profile__name" }, Yo = { class: "profile__email" }, Ro = { class: "profile__phone" }, qo = {
15082
15238
  __name: "UserProfile",
15083
15239
  props: {
15084
15240
  user: {
@@ -15087,26 +15243,26 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15087
15243
  }
15088
15244
  },
15089
15245
  setup(e) {
15090
- return (f, n) => (u(), c("div", p1, [
15091
- e.user ? (u(), c("div", M1, [
15092
- e.user.avatar ? (u(), c("div", h1, [
15246
+ return (f, n) => (u(), c("div", Co, [
15247
+ e.user ? (u(), c("div", Uo, [
15248
+ e.user.avatar ? (u(), c("div", Lo, [
15093
15249
  o("span", {
15094
15250
  class: "profile__status",
15095
- style: O({ backgroundColor: e.user.status })
15251
+ style: z({ backgroundColor: e.user.status })
15096
15252
  }, null, 4),
15097
15253
  o("img", {
15098
15254
  src: e.user.avatar,
15099
15255
  height: "48",
15100
15256
  width: "48"
15101
- }, null, 8, y1)
15257
+ }, null, 8, Qo)
15102
15258
  ])) : y("", !0),
15103
- o("h2", b1, w(e.user.name), 1),
15104
- o("p", v1, w(e.user.email), 1),
15105
- o("p", I1, w(e.user.phone), 1)
15259
+ o("h2", Bo, w(e.user.name), 1),
15260
+ o("p", Yo, w(e.user.email), 1),
15261
+ o("p", Ro, w(e.user.phone), 1)
15106
15262
  ])) : y("", !0)
15107
15263
  ]));
15108
15264
  }
15109
- }, Lo = /* @__PURE__ */ j(_1, [["__scopeId", "data-v-db3ba19b"]]), w1 = { key: 0 }, D1 = { key: 1 }, N1 = {
15265
+ }, fu = /* @__PURE__ */ j(qo, [["__scopeId", "data-v-db3ba19b"]]), Fo = { key: 0 }, $o = { key: 1 }, Wo = {
15110
15266
  __name: "FileUploader",
15111
15267
  props: {
15112
15268
  canUploadFile: {
@@ -15121,7 +15277,12 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15121
15277
  },
15122
15278
  emits: ["fileUploaded"],
15123
15279
  setup(e, { emit: f }) {
15124
- const n = e, a = I(null), A = I(""), s = I(""), t = I(""), i = I(!1), l = I(!1), r = I(null), g = [
15280
+ const n = e, a = b(null), t = b(""), s = b(""), A = b(""), i = b(!1), l = b(!1), r = b(!1), g = b(null), d = [
15281
+ {
15282
+ action: "audio/*",
15283
+ title: "Аудио",
15284
+ prime: "headphones"
15285
+ },
15125
15286
  {
15126
15287
  action: "image/*",
15127
15288
  title: "Фото",
@@ -15137,91 +15298,91 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15137
15298
  title: "Файл",
15138
15299
  prime: "file"
15139
15300
  }
15140
- ], d = f;
15301
+ ], m = f;
15141
15302
  Ce(
15142
15303
  () => n.canUploadFile,
15143
15304
  () => {
15144
15305
  lf(() => {
15145
- n.canUploadFile === !0 && (A.value = null);
15306
+ n.canUploadFile === !0 && (t.value = null);
15146
15307
  });
15147
15308
  }
15148
15309
  );
15149
15310
  const p = () => {
15150
- a.value = null, d("fileUploaded", null), s.value = null, t.value = "", A.value = "";
15151
- }, m = (b) => {
15152
- p(), console.log("onFileSelected", b.target.files[0]), a.value = b.target.files[0], a.value && (_(), M());
15153
- }, h = (b) => {
15154
- n.canUploadFile || b.preventDefault();
15155
- }, _ = () => {
15156
- const b = a.value, D = Cf(b.type);
15157
- if (i.value = !1, l.value = !1, D === "image" ? i.value = !0 : D === "video" && (l.value = !0), i.value || l.value) {
15158
- const N = new FileReader();
15159
- N.onload = (V) => {
15160
- t.value = V.target.result;
15161
- }, N.readAsDataURL(b);
15311
+ a.value = null, m("fileUploaded", null), s.value = null, A.value = "", t.value = "";
15312
+ }, h = (_) => {
15313
+ p(), console.log("onFileSelected", _.target.files[0]), a.value = _.target.files[0], a.value && (I(), M());
15314
+ }, I = () => {
15315
+ const _ = a.value, k = Cf(_.type);
15316
+ if (i.value = !1, l.value = !1, r.value = !1, k === "image" ? i.value = !0 : k === "video" ? l.value = !0 : k === "audio" && (r.value = !0), i.value || l.value) {
15317
+ const E = new FileReader();
15318
+ E.onload = (V) => {
15319
+ A.value = V.target.result;
15320
+ }, E.readAsDataURL(_);
15162
15321
  } else
15163
- t.value = "";
15322
+ A.value = "";
15164
15323
  }, M = async () => {
15165
- A.value = "uploading";
15166
- const b = new FormData();
15167
- b.append("file", a.value);
15168
- const D = "https://filebump.services.mobilon.ru/upload";
15324
+ t.value = "uploading";
15325
+ const _ = new FormData();
15326
+ _.append("file", a.value);
15327
+ const k = "https://filebump.services.mobilon.ru/upload";
15169
15328
  try {
15170
15329
  const V = await (await fetch(
15171
- D,
15330
+ k,
15172
15331
  {
15173
15332
  method: "POST",
15174
- body: b
15333
+ body: _
15175
15334
  }
15176
15335
  )).json();
15177
- s.value = V.url, A.value = "success", d("fileUploaded", {
15336
+ s.value = V.url, t.value = "success", m("fileUploaded", {
15178
15337
  url: V.url,
15179
15338
  type: Cf(a.value.type),
15180
15339
  filename: a.value.name,
15181
15340
  size: a.value.size,
15182
- previewUrl: t.value,
15341
+ previewUrl: A.value,
15183
15342
  isImage: i.value,
15184
15343
  isVideo: l.value,
15344
+ isAudio: r.value,
15185
15345
  selectedFile: a.value
15186
15346
  });
15187
- } catch (N) {
15188
- console.error("Ошибка при загрузке файла:", N), A.value = "error";
15347
+ } catch (E) {
15348
+ console.error("Ошибка при загрузке файла:", E), t.value = "error";
15189
15349
  }
15190
- }, v = (b) => {
15191
- r.value && n.canUploadFile && (r.value.accept = b.action, r.value.click());
15350
+ }, N = (_) => {
15351
+ g.value && n.canUploadFile && (g.value.accept = _.action, g.value.click());
15352
+ }, v = () => {
15353
+ g.value && n.canUploadFile && g.value.click();
15192
15354
  };
15193
- return (b, D) => (u(), c("div", {
15194
- class: k(["uploader-container", { "storybook-container": e.storybook }])
15355
+ return (_, k) => (u(), c("div", {
15356
+ class: D(["uploader-container", { "storybook-container": e.storybook }])
15195
15357
  }, [
15196
- A.value === "uploading" ? (u(), c("div", w1, D[0] || (D[0] = [
15358
+ t.value === "uploading" ? (u(), c("div", Fo, k[0] || (k[0] = [
15197
15359
  o("p", null, "Загрузка файла...", -1)
15198
- ]))) : A.value === "error" ? (u(), c("div", D1, D[1] || (D[1] = [
15360
+ ]))) : t.value === "error" ? (u(), c("div", $o, k[1] || (k[1] = [
15199
15361
  o("p", null, "Ошибка при загрузке файла.", -1)
15200
15362
  ]))) : (u(), c("div", {
15201
15363
  key: 2,
15202
- class: k(["chat-input__button-file", { "chat-input__button-file-disabled": !e.canUploadFile }])
15364
+ class: D(["chat-input__button-file", { "chat-input__button-file-disabled": !e.canUploadFile }])
15203
15365
  }, [
15204
- o("label", { onClick: h }, [
15205
- o("input", {
15206
- ref_key: "fileInput",
15207
- ref: r,
15208
- type: "file",
15209
- onChange: m
15210
- }, null, 544),
15211
- D[2] || (D[2] = o("span", null, [
15212
- o("i", { class: "pi pi-file-arrow-up" })
15213
- ], -1))
15214
- ])
15215
- ], 2)),
15216
- e.canUploadFile ? (u(), L(ie, {
15217
- key: 3,
15218
- class: "file-drop-down",
15219
- actions: g,
15220
- onClick: v
15221
- })) : y("", !0)
15366
+ o("input", {
15367
+ ref_key: "fileInput",
15368
+ ref: g,
15369
+ type: "file",
15370
+ onChange: h
15371
+ }, null, 544),
15372
+ S(Mn, {
15373
+ actions: d,
15374
+ mode: "hover",
15375
+ "button-class": "pi pi-file-arrow-up",
15376
+ "menu-side": "top",
15377
+ "context-menu-key": "file-uploader",
15378
+ disabled: !e.canUploadFile,
15379
+ onClick: N,
15380
+ onButtonClick: v
15381
+ }, null, 8, ["disabled"])
15382
+ ], 2))
15222
15383
  ], 2));
15223
15384
  }
15224
- }, k1 = /* @__PURE__ */ j(N1, [["__scopeId", "data-v-0a464ce7"]]), j1 = { key: 0 }, V1 = ["value", "selected"], E1 = {
15385
+ }, Jo = /* @__PURE__ */ j(Wo, [["__scopeId", "data-v-d58a941d"]]), Ho = { key: 0 }, Ko = ["value", "selected"], Po = {
15225
15386
  __name: "ThemeMode",
15226
15387
  props: {
15227
15388
  themes: {
@@ -15232,30 +15393,30 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15232
15393
  },
15233
15394
  setup(e) {
15234
15395
  const f = e, n = () => {
15235
- const s = f.themes.find((t) => t.default === !0);
15396
+ const s = f.themes.find((A) => A.default === !0);
15236
15397
  return s ? s.code : f.themes[0].code;
15237
15398
  }, a = (s) => {
15238
- const t = s.target.value;
15239
- A(t);
15240
- }, A = (s) => {
15399
+ const A = s.target.value;
15400
+ t(A);
15401
+ }, t = (s) => {
15241
15402
  document.documentElement.dataset.theme = s;
15242
15403
  };
15243
- return ge(() => {
15404
+ return de(() => {
15244
15405
  const s = n();
15245
- A(s);
15246
- }), (s, t) => e.show ? (u(), c("div", j1, [
15406
+ t(s);
15407
+ }), (s, A) => e.show ? (u(), c("div", Ho, [
15247
15408
  o("select", {
15248
- onChange: t[0] || (t[0] = (i) => a(i))
15409
+ onChange: A[0] || (A[0] = (i) => a(i))
15249
15410
  }, [
15250
- (u(!0), c(B, null, R(f.themes, (i, l) => (u(), c("option", {
15411
+ (u(!0), c(B, null, Y(f.themes, (i, l) => (u(), c("option", {
15251
15412
  key: l,
15252
15413
  value: i.code,
15253
15414
  selected: i.default === !0
15254
- }, w(i.name), 9, V1))), 128))
15415
+ }, w(i.name), 9, Ko))), 128))
15255
15416
  ], 32)
15256
15417
  ])) : y("", !0);
15257
15418
  }
15258
- }, Qo = /* @__PURE__ */ j(E1, [["__scopeId", "data-v-be17a762"]]), T1 = { class: "sidebar" }, x1 = { class: "sidebar__container" }, S1 = { class: "sidebar__list" }, z1 = ["onClick"], O1 = ["src", "alt"], C1 = { key: 1 }, U1 = { class: "sidebar__list-fixed" }, L1 = ["onClick"], Q1 = ["src", "alt"], B1 = { key: 1 }, Y1 = {
15419
+ }, nu = /* @__PURE__ */ j(Po, [["__scopeId", "data-v-be17a762"]]), Zo = { class: "sidebar" }, Go = { class: "sidebar__container" }, Xo = { class: "sidebar__list" }, e1 = ["onClick"], f1 = ["src", "alt"], n1 = { key: 1 }, a1 = { class: "sidebar__list-fixed" }, t1 = ["onClick"], A1 = ["src", "alt"], s1 = { key: 1 }, i1 = {
15259
15420
  __name: "SideBar",
15260
15421
  props: {
15261
15422
  sidebarItems: {
@@ -15266,17 +15427,17 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15266
15427
  },
15267
15428
  emits: ["selectItem"],
15268
15429
  setup(e, { emit: f }) {
15269
- const a = zn(e, "sidebarItems"), A = f, s = (i) => {
15430
+ const a = On(e, "sidebarItems"), t = f, s = (i) => {
15270
15431
  const l = a.value.find((r) => r.itemId === i);
15271
- A("selectItem", l);
15272
- }, t = (i) => {
15432
+ t("selectItem", l);
15433
+ }, A = (i) => {
15273
15434
  const l = i.split(" ");
15274
15435
  return l.length > 2 ? l.slice(0, 2).join(" ") : i;
15275
15436
  };
15276
- return (i, l) => (u(), c("div", T1, [
15277
- o("div", x1, [
15278
- o("ul", S1, [
15279
- (u(!0), c(B, null, R(a.value.filter((r) => !r.isFixedBottom), (r, g) => (u(), c("li", {
15437
+ return (i, l) => (u(), c("div", Zo, [
15438
+ o("div", Go, [
15439
+ o("ul", Xo, [
15440
+ (u(!0), c(B, null, Y(a.value.filter((r) => !r.isFixedBottom), (r, g) => (u(), c("li", {
15280
15441
  key: g,
15281
15442
  class: "sidebar__item",
15282
15443
  onClick: (d) => s(r.itemId)
@@ -15284,17 +15445,17 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15284
15445
  o("img", {
15285
15446
  src: r.icon,
15286
15447
  alt: r.name,
15287
- class: k(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15288
- }, null, 10, O1),
15448
+ class: D(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15449
+ }, null, 10, f1),
15289
15450
  r.notificationCount ? (u(), c("span", {
15290
15451
  key: 0,
15291
- style: O({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15452
+ style: z({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15292
15453
  }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15293
- r.name ? (u(), c("p", C1, w(t(r.name)), 1)) : y("", !0)
15294
- ], 8, z1))), 128))
15454
+ r.name ? (u(), c("p", n1, w(A(r.name)), 1)) : y("", !0)
15455
+ ], 8, e1))), 128))
15295
15456
  ]),
15296
- o("ul", U1, [
15297
- (u(!0), c(B, null, R(a.value.filter((r) => r.isFixedBottom), (r, g) => (u(), c("li", {
15457
+ o("ul", a1, [
15458
+ (u(!0), c(B, null, Y(a.value.filter((r) => r.isFixedBottom), (r, g) => (u(), c("li", {
15298
15459
  key: g,
15299
15460
  class: "sidebar__item",
15300
15461
  onClick: (d) => s(r.itemId)
@@ -15302,22 +15463,22 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15302
15463
  o("img", {
15303
15464
  src: r.icon,
15304
15465
  alt: r.name,
15305
- class: k(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15306
- }, null, 10, Q1),
15466
+ class: D(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
15467
+ }, null, 10, A1),
15307
15468
  r.notificationCount ? (u(), c("span", {
15308
15469
  key: 0,
15309
- style: O({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15470
+ style: z({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
15310
15471
  }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
15311
- r.name ? (u(), c("p", B1, w(t(r.name)), 1)) : y("", !0)
15312
- ], 8, L1))), 128))
15472
+ r.name ? (u(), c("p", s1, w(A(r.name)), 1)) : y("", !0)
15473
+ ], 8, t1))), 128))
15313
15474
  ])
15314
15475
  ])
15315
15476
  ]));
15316
15477
  }
15317
- }, Bo = /* @__PURE__ */ j(Y1, [["__scopeId", "data-v-5e22516c"]]), R1 = { class: "chat-panel" }, q1 = { class: "chat-panel__title-container" }, F1 = {
15478
+ }, au = /* @__PURE__ */ j(i1, [["__scopeId", "data-v-5e22516c"]]), o1 = { class: "chat-panel" }, u1 = { class: "chat-panel__title-container" }, l1 = {
15318
15479
  key: 0,
15319
15480
  class: "chat-panel__title"
15320
- }, J1 = {
15481
+ }, r1 = {
15321
15482
  __name: "ChatPanel",
15322
15483
  props: {
15323
15484
  title: {
@@ -15328,25 +15489,25 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15328
15489
  },
15329
15490
  emits: ["close-panel"],
15330
15491
  setup(e, { emit: f }) {
15331
- return (n, a) => (u(), c("div", R1, [
15332
- o("div", q1, [
15333
- e.title ? (u(), c("p", F1, w(e.title), 1)) : y("", !0),
15492
+ return (n, a) => (u(), c("div", o1, [
15493
+ o("div", u1, [
15494
+ e.title ? (u(), c("p", l1, w(e.title), 1)) : y("", !0),
15334
15495
  o("button", {
15335
15496
  class: "chat-panel__button-close",
15336
- onClick: a[0] || (a[0] = (A) => n.$emit("close-panel"))
15497
+ onClick: a[0] || (a[0] = (t) => n.$emit("close-panel"))
15337
15498
  }, a[1] || (a[1] = [
15338
15499
  o("span", { class: "pi pi-times" }, null, -1)
15339
15500
  ]))
15340
15501
  ]),
15341
15502
  o("div", null, [
15342
- $(n.$slots, "content", {}, void 0, !0)
15503
+ J(n.$slots, "content", {}, void 0, !0)
15343
15504
  ])
15344
15505
  ]));
15345
15506
  }
15346
- }, Yo = /* @__PURE__ */ j(J1, [["__scopeId", "data-v-1f6ac199"]]), W1 = {
15507
+ }, tu = /* @__PURE__ */ j(r1, [["__scopeId", "data-v-1f6ac199"]]), c1 = {
15347
15508
  key: 0,
15348
15509
  class: "new-chat-modal"
15349
- }, $1 = { class: "modal-content" }, H1 = { class: "participant-list" }, K1 = ["id", "value"], P1 = ["for"], Z1 = {
15510
+ }, d1 = { class: "modal-content" }, g1 = { class: "participant-list" }, m1 = ["id", "value"], p1 = ["for"], M1 = {
15350
15511
  __name: "SelectUser",
15351
15512
  props: {
15352
15513
  users: {
@@ -15360,35 +15521,35 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15360
15521
  },
15361
15522
  emits: ["confirm", "close"],
15362
15523
  setup(e, { emit: f }) {
15363
- const n = I(!0), a = I([]), A = f, s = async () => {
15364
- A("confirm", a.value), t(), i();
15365
- }, t = () => {
15366
- A("close"), n.value = !1;
15524
+ const n = b(!0), a = b([]), t = f, s = async () => {
15525
+ t("confirm", a.value), A(), i();
15526
+ }, A = () => {
15527
+ t("close"), n.value = !1;
15367
15528
  }, i = () => {
15368
15529
  a.value = [];
15369
15530
  }, l = () => {
15370
- t(), i();
15531
+ A(), i();
15371
15532
  };
15372
15533
  return (r, g) => (u(), c("div", null, [
15373
- n.value ? (u(), c("div", W1, [
15374
- o("div", $1, [
15534
+ n.value ? (u(), c("div", c1, [
15535
+ o("div", d1, [
15375
15536
  o("h2", null, w(e.title), 1),
15376
- o("div", H1, [
15377
- (u(!0), c(B, null, R(e.users, (d) => (u(), c("div", {
15537
+ o("div", g1, [
15538
+ (u(!0), c(B, null, Y(e.users, (d) => (u(), c("div", {
15378
15539
  key: d.userId,
15379
15540
  class: "participant-item"
15380
15541
  }, [
15381
- Ae(o("input", {
15542
+ te(o("input", {
15382
15543
  id: d.userId,
15383
- "onUpdate:modelValue": g[0] || (g[0] = (p) => a.value = p),
15544
+ "onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
15384
15545
  type: "checkbox",
15385
15546
  value: d.userId
15386
- }, null, 8, K1), [
15387
- [On, a.value]
15547
+ }, null, 8, m1), [
15548
+ [Cn, a.value]
15388
15549
  ]),
15389
15550
  o("label", {
15390
15551
  for: d.userId
15391
- }, w(d.name || "unknown username"), 9, P1)
15552
+ }, w(d.name || "unknown username"), 9, p1)
15392
15553
  ]))), 128))
15393
15554
  ]),
15394
15555
  o("div", { class: "modal-actions" }, [
@@ -15399,40 +15560,40 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15399
15560
  ])) : y("", !0)
15400
15561
  ]));
15401
15562
  }
15402
- }, Ro = /* @__PURE__ */ j(Z1, [["__scopeId", "data-v-66249b80"]]), G1 = { class: "modal-backdrop" }, X1 = {
15563
+ }, Au = /* @__PURE__ */ j(M1, [["__scopeId", "data-v-66249b80"]]), h1 = { class: "modal-backdrop" }, y1 = {
15403
15564
  class: "modal",
15404
15565
  role: "dialog",
15405
15566
  "aria-labelledby": "modalTitle",
15406
15567
  "aria-describedby": "modalDescription"
15407
- }, eo = {
15568
+ }, b1 = {
15408
15569
  id: "modalDescription",
15409
15570
  class: "modal-body"
15410
- }, fo = { class: "buttons" }, no = {
15571
+ }, v1 = { class: "buttons" }, _1 = {
15411
15572
  __name: "Modal",
15412
15573
  emits: ["close", "submit"],
15413
15574
  setup(e, { emit: f }) {
15414
15575
  const n = f, a = (s) => {
15415
15576
  n("submit", s);
15416
- }, A = I(null);
15417
- return (s, t) => (u(), L(K, { name: "modal-fade" }, {
15418
- default: P(() => [
15419
- o("div", G1, [
15420
- o("div", X1, [
15421
- o("div", eo, [
15422
- $(s.$slots, "default", {}, void 0, !0)
15577
+ }, t = b(null);
15578
+ return (s, A) => (u(), Q(H, { name: "modal-fade" }, {
15579
+ default: K(() => [
15580
+ o("div", h1, [
15581
+ o("div", y1, [
15582
+ o("div", b1, [
15583
+ J(s.$slots, "default", {}, void 0, !0)
15423
15584
  ]),
15424
- o("div", fo, [
15585
+ o("div", v1, [
15425
15586
  o("button", {
15426
15587
  type: "button",
15427
15588
  class: "btn-green",
15428
15589
  "aria-label": "Close modal",
15429
- onClick: t[0] || (t[0] = (i) => a(A.value))
15590
+ onClick: A[0] || (A[0] = (i) => a(t.value))
15430
15591
  }, " OK "),
15431
15592
  o("button", {
15432
15593
  type: "button",
15433
15594
  class: "btn-green",
15434
15595
  "aria-label": "Close modal",
15435
- onClick: t[1] || (t[1] = (i) => s.$emit("close"))
15596
+ onClick: A[1] || (A[1] = (i) => s.$emit("close"))
15436
15597
  }, " Cancel ")
15437
15598
  ])
15438
15599
  ])
@@ -15441,29 +15602,29 @@ const Bs = { class: "context-menu__container" }, Ys = { class: "context-menu__li
15441
15602
  _: 3
15442
15603
  }));
15443
15604
  }
15444
- }, ao = /* @__PURE__ */ j(no, [["__scopeId", "data-v-d48a1772"]]);
15605
+ }, I1 = /* @__PURE__ */ j(_1, [["__scopeId", "data-v-d48a1772"]]);
15445
15606
  function wf({ component: e, attrs: f }) {
15446
15607
  return new Promise((n) => {
15447
15608
  const a = document.createElement("div");
15448
15609
  document.body.appendChild(a);
15449
- const A = I({}), s = () => {
15610
+ const t = b({}), s = () => {
15450
15611
  r.unmount(), document.body.removeChild(a);
15451
- }, t = () => {
15452
- s(), n(A.value);
15612
+ }, A = () => {
15613
+ s(), n(t.value);
15453
15614
  }, i = (g) => {
15454
15615
  const d = Object.keys(g)[0];
15455
- A.value[d] = g[d];
15456
- }, l = me({
15616
+ t.value[d] = g[d];
15617
+ }, l = ge({
15457
15618
  render() {
15458
15619
  return Of(
15459
- ao,
15620
+ I1,
15460
15621
  {
15461
- onSubmit: t,
15622
+ onSubmit: A,
15462
15623
  onClose: s
15463
15624
  },
15464
15625
  {
15465
15626
  default: () => Of(
15466
- Cn(() => e),
15627
+ Un(() => e),
15467
15628
  {
15468
15629
  ...f,
15469
15630
  onChange: i
@@ -15472,21 +15633,21 @@ function wf({ component: e, attrs: f }) {
15472
15633
  }
15473
15634
  );
15474
15635
  }
15475
- }), r = Un(l);
15636
+ }), r = Ln(l);
15476
15637
  r.mount(a);
15477
15638
  });
15478
15639
  }
15479
- const qo = async (e, f) => {
15640
+ const su = async (e, f) => {
15480
15641
  const n = await wf({
15481
15642
  //в component должен быть встроен emit change(key: value)
15482
- component: import("./SelectUser2-Cxg_oYQm.js"),
15643
+ component: import("./SelectUser2-DekHrO3A.js"),
15483
15644
  attrs: {
15484
15645
  title: e,
15485
15646
  users: f
15486
15647
  }
15487
15648
  });
15488
15649
  return console.log("data", n), n;
15489
- }, Fo = async (e) => {
15650
+ }, iu = async (e) => {
15490
15651
  const f = await wf({
15491
15652
  //в component должен быть встроен emit change(key: value)
15492
15653
  component: import("./CreateChat-fkFKBxtQ.js"),
@@ -15495,29 +15656,29 @@ const qo = async (e, f) => {
15495
15656
  }
15496
15657
  });
15497
15658
  return console.log("data", f), f;
15498
- }, Jo = async (e) => await wf({
15659
+ }, ou = async (e) => await wf({
15499
15660
  //в component должен быть встроен emit change(key: value)
15500
15661
  component: import("./CreateChat2-DgUQ2F5L.js"),
15501
15662
  attrs: {
15502
15663
  title: e
15503
15664
  }
15504
- }), Ao = { class: "base" }, Wo = {
15665
+ }), w1 = { class: "base" }, uu = {
15505
15666
  __name: "BaseContainer",
15506
15667
  props: {
15507
15668
  height: String,
15508
15669
  width: String
15509
15670
  },
15510
15671
  setup(e) {
15511
- return (f, n) => (u(), c("div", Ao, [
15672
+ return (f, n) => (u(), c("div", w1, [
15512
15673
  o("div", {
15513
15674
  class: "base__container",
15514
- style: O({ height: e.height, width: e.width })
15675
+ style: z({ height: e.height, width: e.width })
15515
15676
  }, [
15516
- $(f.$slots, "default")
15677
+ J(f.$slots, "default")
15517
15678
  ], 4)
15518
15679
  ]));
15519
15680
  }
15520
- }, to = { class: "float-window__container" }, so = ["src", "alt"], io = { class: "float-window__title" }, oo = {
15681
+ }, k1 = { class: "float-window__container" }, N1 = ["src", "alt"], D1 = { class: "float-window__title" }, j1 = {
15521
15682
  __name: "FloatContainer",
15522
15683
  props: {
15523
15684
  title: {
@@ -15537,127 +15698,147 @@ const qo = async (e, f) => {
15537
15698
  },
15538
15699
  emits: ["close-window", "get-size"],
15539
15700
  setup(e, { emit: f }) {
15540
- const n = e, a = I({ x: 0, y: 0 }), A = I(null), s = I(null), t = I(!1), i = I(0), l = I(0), r = I(0), g = () => {
15541
- if (A.value) {
15542
- const h = window.innerWidth, _ = window.innerHeight, M = A.value.offsetWidth, v = A.value.offsetHeight;
15543
- a.value.x = (h - M) / 2, a.value.y = (_ - v) / 2;
15701
+ const n = e, a = b({ x: 0, y: 0 }), t = b(null), s = b(null), A = b(!1), i = b(0), l = b(0), r = b(0), g = () => {
15702
+ if (t.value) {
15703
+ const h = window.innerWidth, I = window.innerHeight, M = t.value.offsetWidth, N = t.value.offsetHeight;
15704
+ a.value.x = (h - M) / 2, a.value.y = (I - N) / 2;
15544
15705
  }
15545
15706
  }, d = (h) => {
15546
- t.value = !0, i.value = h.clientX - A.value.offsetLeft, l.value = h.clientY - A.value.offsetTop;
15547
- }, p = () => t.value = !1, m = (h) => {
15548
- if (t.value) {
15549
- const _ = h.clientX - i.value, M = h.clientY - l.value;
15707
+ A.value = !0, i.value = h.clientX - t.value.offsetLeft, l.value = h.clientY - t.value.offsetTop;
15708
+ }, m = () => A.value = !1, p = (h) => {
15709
+ if (A.value) {
15710
+ const I = h.clientX - i.value, M = h.clientY - l.value;
15550
15711
  a.value.x = Math.max(
15551
15712
  0,
15552
- Math.min(_, window.innerWidth - A.value.offsetWidth)
15713
+ Math.min(I, window.innerWidth - t.value.offsetWidth)
15553
15714
  ), a.value.y = Math.max(
15554
15715
  0,
15555
- Math.min(M, window.innerHeight - A.value.offsetHeight)
15716
+ Math.min(M, window.innerHeight - t.value.offsetHeight)
15556
15717
  );
15557
15718
  }
15558
15719
  };
15559
- return ge(() => {
15560
- g(), document.addEventListener("mousemove", m), window.addEventListener("resize", () => {
15720
+ return de(() => {
15721
+ g(), document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
15561
15722
  a.value.x = Math.max(
15562
15723
  0,
15563
15724
  Math.min(
15564
15725
  a.value.x,
15565
- window.innerWidth - A.value.offsetWidth
15726
+ window.innerWidth - t.value.offsetWidth
15566
15727
  )
15567
15728
  ), a.value.y = Math.max(
15568
15729
  0,
15569
15730
  Math.min(
15570
15731
  a.value.y,
15571
- window.innerHeight - A.value.offsetHeight
15732
+ window.innerHeight - t.value.offsetHeight
15572
15733
  )
15573
15734
  );
15574
- }), r.value = A.value.offsetHeight - s.value.offsetHeight;
15575
- }), (h, _) => (u(), c("div", {
15735
+ }), r.value = t.value.offsetHeight - s.value.offsetHeight;
15736
+ }), (h, I) => (u(), c("div", {
15576
15737
  ref_key: "element",
15577
- ref: A,
15738
+ ref: t,
15578
15739
  class: "float-window",
15579
- style: O({
15740
+ style: z({
15580
15741
  left: a.value.x + "px",
15581
15742
  top: a.value.y + "px",
15582
- userSelect: t.value ? "none" : "auto",
15743
+ userSelect: A.value ? "none" : "auto",
15583
15744
  height: e.height,
15584
15745
  width: e.width,
15585
15746
  display: h.flex
15586
15747
  })
15587
15748
  }, [
15588
- o("div", to, [
15749
+ o("div", k1, [
15589
15750
  o("div", {
15590
15751
  ref_key: "container",
15591
15752
  ref: s,
15592
15753
  class: "float-window__controls",
15593
- style: O({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
15754
+ style: z({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
15594
15755
  onMousedown: d,
15595
- onMouseup: p,
15596
- onMouseleave: p
15756
+ onMouseup: m,
15757
+ onMouseleave: m
15597
15758
  }, [
15598
15759
  n.avatar ? (u(), c("img", {
15599
15760
  key: 0,
15600
15761
  class: "float-window__avatar",
15601
15762
  src: n.avatar,
15602
15763
  alt: n.title
15603
- }, null, 8, so)) : y("", !0),
15604
- o("p", io, w(n.title), 1),
15764
+ }, null, 8, N1)) : y("", !0),
15765
+ o("p", D1, w(n.title), 1),
15605
15766
  o("button", {
15606
15767
  class: "float-window__close-button",
15607
- onClick: _[0] || (_[0] = (M) => h.$emit("close-window"))
15608
- }, _[1] || (_[1] = [
15768
+ onClick: I[0] || (I[0] = (M) => h.$emit("close-window"))
15769
+ }, I[1] || (I[1] = [
15609
15770
  o("span", { class: "pi pi-times" }, null, -1)
15610
15771
  ]))
15611
15772
  ], 36),
15612
15773
  o("div", {
15613
15774
  class: "float-window__content",
15614
- style: O({ height: r.value + "px" })
15775
+ style: z({ height: r.value + "px" })
15615
15776
  }, [
15616
- $(h.$slots, "default", {}, void 0, !0)
15777
+ J(h.$slots, "default", {}, void 0, !0)
15617
15778
  ], 4)
15618
15779
  ])
15619
15780
  ], 4));
15620
15781
  }
15621
- }, $o = /* @__PURE__ */ j(oo, [["__scopeId", "data-v-e36d42a4"]]), uo = {}, lo = { class: "base-layout__container" }, ro = { class: "base-layout__first-col" }, co = { class: "base-layout__second-col" };
15622
- function go(e, f) {
15623
- return u(), c("div", lo, [
15624
- o("div", ro, [
15625
- $(e.$slots, "first-col", {}, void 0, !0)
15626
- ]),
15627
- o("div", co, [
15628
- $(e.$slots, "second-col", {}, void 0, !0)
15629
- ])
15630
- ]);
15631
- }
15632
- const Ho = /* @__PURE__ */ j(uo, [["render", go], ["__scopeId", "data-v-93dc265d"]]), mo = {}, po = { class: "extend-layout__container" }, Mo = { class: "extend-layout__first-col" }, ho = { class: "extend-layout__second-col" }, yo = { class: "extend-layout__third-col" };
15633
- function bo(e, f) {
15634
- return u(), c("div", po, [
15635
- o("div", Mo, [
15636
- $(e.$slots, "first-col", {}, void 0, !0)
15637
- ]),
15638
- o("div", ho, [
15639
- $(e.$slots, "second-col", {}, void 0, !0)
15782
+ }, lu = /* @__PURE__ */ j(j1, [["__scopeId", "data-v-9a949e0f"]]), V1 = {}, E1 = { class: "base-layout__container" }, T1 = { class: "base-layout__first-col" }, x1 = { class: "base-layout__second-col" };
15783
+ function S1(e, f) {
15784
+ return u(), c("div", E1, [
15785
+ o("div", T1, [
15786
+ J(e.$slots, "first-col", {}, void 0, !0)
15640
15787
  ]),
15641
- o("div", yo, [
15642
- $(e.$slots, "third-col", {}, void 0, !0)
15788
+ o("div", x1, [
15789
+ J(e.$slots, "second-col", {}, void 0, !0)
15643
15790
  ])
15644
15791
  ]);
15645
15792
  }
15646
- const Ko = /* @__PURE__ */ j(mo, [["render", bo], ["__scopeId", "data-v-ba0c9b0d"]]), vo = {}, Io = { class: "base-layout__container" }, _o = { class: "base-layout__first-col" };
15647
- function wo(e, f) {
15648
- return u(), c("div", Io, [
15649
- o("div", _o, [
15650
- $(e.$slots, "default", {}, void 0, !0)
15793
+ const ru = /* @__PURE__ */ j(V1, [["render", S1], ["__scopeId", "data-v-93dc265d"]]), z1 = { class: "extend-layout__container" }, O1 = { class: "extend-layout__first-col" }, C1 = { class: "extend-layout__third-col" }, U1 = {
15794
+ __name: "ExtendedLayout",
15795
+ setup(e) {
15796
+ const f = b(null);
15797
+ let n = b(!1), a = b(0), t = b(0), s = b(0);
15798
+ const A = (r) => {
15799
+ 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));
15800
+ }, i = (r) => {
15801
+ if (n.value) {
15802
+ const g = a.value + (r.clientX - s.value);
15803
+ f.value.style.width = `${Math.max(258, g)}px`;
15804
+ }
15805
+ }, l = () => {
15806
+ n.value = !1, document.removeEventListener("mousemove", i);
15807
+ };
15808
+ return (r, g) => (u(), c("div", z1, [
15809
+ o("div", O1, [
15810
+ J(r.$slots, "first-col", {}, void 0, !0)
15811
+ ]),
15812
+ o("div", {
15813
+ ref_key: "resizableDiv",
15814
+ ref: f,
15815
+ class: "extend-layout__second-col resizable-div",
15816
+ style: z({ userSelect: q(n) ? "none" : "auto" }),
15817
+ onMousedown: A,
15818
+ onMouseup: l
15819
+ }, [
15820
+ J(r.$slots, "second-col", {}, void 0, !0)
15821
+ ], 36),
15822
+ o("div", C1, [
15823
+ J(r.$slots, "third-col", {}, void 0, !0)
15824
+ ])
15825
+ ]));
15826
+ }
15827
+ }, cu = /* @__PURE__ */ j(U1, [["__scopeId", "data-v-57ef5c30"]]), L1 = {}, Q1 = { class: "base-layout__container" }, B1 = { class: "base-layout__first-col" };
15828
+ function Y1(e, f) {
15829
+ return u(), c("div", Q1, [
15830
+ o("div", B1, [
15831
+ J(e.$slots, "default", {}, void 0, !0)
15651
15832
  ])
15652
15833
  ]);
15653
15834
  }
15654
- const Po = /* @__PURE__ */ j(vo, [["render", wo], ["__scopeId", "data-v-e71ea0ed"]]), Do = { class: "chat-wrapper" }, No = {
15835
+ const du = /* @__PURE__ */ j(L1, [["render", Y1], ["__scopeId", "data-v-e71ea0ed"]]), R1 = { class: "chat-wrapper" }, q1 = {
15655
15836
  key: 0,
15656
15837
  class: "chat-wrapper__selected-chat"
15657
- }, ko = {
15838
+ }, F1 = {
15658
15839
  key: 1,
15659
15840
  style: { width: "100%" }
15660
- }, jo = /* @__PURE__ */ me({
15841
+ }, $1 = /* @__PURE__ */ ge({
15661
15842
  __name: "ChatWrapper",
15662
15843
  props: {
15663
15844
  isOpenChatPanel: {
@@ -15670,56 +15851,58 @@ const Po = /* @__PURE__ */ j(vo, [["render", wo], ["__scopeId", "data-v-e71ea0ed
15670
15851
  }
15671
15852
  },
15672
15853
  setup(e) {
15673
- return (f, n) => (u(), c("div", Do, [
15674
- e.isSelectedChat ? (u(), c("div", No, [
15675
- $(f.$slots, "default", {}, void 0, !0)
15676
- ])) : (u(), c("div", ko, n[0] || (n[0] = [
15854
+ return (f, n) => (u(), c("div", R1, [
15855
+ e.isSelectedChat ? (u(), c("div", q1, [
15856
+ J(f.$slots, "default", {}, void 0, !0)
15857
+ ])) : (u(), c("div", F1, n[0] || (n[0] = [
15677
15858
  o("p", null, " Выберите контакт для начала общения ", -1)
15678
15859
  ]))),
15679
15860
  e.isOpenChatPanel ? (u(), c("div", {
15680
15861
  key: 2,
15681
15862
  class: "chat-wrapper__chat-panel",
15682
- style: O({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
15863
+ style: z({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
15683
15864
  }, [
15684
- $(f.$slots, "chatpanel", {}, void 0, !0)
15865
+ J(f.$slots, "chatpanel", {}, void 0, !0)
15685
15866
  ], 4)) : y("", !0)
15686
15867
  ]));
15687
15868
  }
15688
- }), Zo = /* @__PURE__ */ j(jo, [["__scopeId", "data-v-885e7d38"]]);
15869
+ }), gu = /* @__PURE__ */ j($1, [["__scopeId", "data-v-885e7d38"]]);
15689
15870
  export {
15690
- xa as A,
15691
- Ho as B,
15692
- zo as C,
15693
- Ua as D,
15694
- Ko as E,
15695
- Gn as F,
15696
- ra as I,
15697
- Bo as S,
15698
- va as T,
15699
- Lo as U,
15871
+ Sa as A,
15872
+ Mn as B,
15873
+ Z1 as C,
15874
+ La as D,
15875
+ cu as E,
15876
+ Xn as F,
15877
+ ca as I,
15878
+ au as S,
15879
+ _a as T,
15880
+ fu as U,
15700
15881
  j as _,
15701
- Oo as a,
15702
- Co as b,
15703
- Uo as c,
15704
- k1 as d,
15705
- Qo as e,
15706
- Yo as f,
15707
- Xs as g,
15882
+ G1 as a,
15883
+ X1 as b,
15884
+ eu as c,
15885
+ Jo as d,
15886
+ nu as e,
15887
+ tu as f,
15888
+ ni as g,
15708
15889
  uf as h,
15709
- _i as i,
15710
- Ro as j,
15711
- Fo as k,
15712
- Jo as l,
15713
- Wo as m,
15714
- $o as n,
15715
- Po as o,
15716
- Zo as p,
15717
- Eo as q,
15718
- To as r,
15719
- xo as s,
15720
- So as t,
15721
- qo as u,
15722
- Cf as v,
15723
- we as w,
15724
- De as x
15890
+ Ri as i,
15891
+ hi as j,
15892
+ Au as k,
15893
+ iu as l,
15894
+ ou as m,
15895
+ uu as n,
15896
+ lu as o,
15897
+ ru as p,
15898
+ du as q,
15899
+ gu as r,
15900
+ J1 as s,
15901
+ H1 as t,
15902
+ su as u,
15903
+ K1 as v,
15904
+ P1 as w,
15905
+ Cf as x,
15906
+ we as y,
15907
+ ke as z
15725
15908
  };