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