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