@mobilon-dev/chotto 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
|
|
1
|
-
import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as
|
2
|
-
const
|
1
|
+
import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as b, toDisplayString as w, ref as v, computed as x, normalizeClass as T, normalizeStyle as U, createTextVNode as bn, createVNode as S, Transition as H, withCtx as K, createBlock as Q, Teleport as yn, onMounted as _e, withDirectives as ae, vShow as pe, renderSlot as W, defineComponent as de, inject as Pe, getCurrentInstance as vn, toRaw as Wf, watch as $e, onBeforeUnmount as In, provide as _n, reactive as wn, readonly as Dn, vModelText as Hf, resolveComponent as Fe, onUnmounted as Nn, withModifiers as kn, mergeModels as Tf, useModel as jn, unref as le, withKeys as Vn, onUpdated as En, resolveDynamicComponent as Tn, nextTick as of, toRef as xn, vModelCheckbox as Sn, h as xf, defineAsyncComponent as zn, createApp as On } from "vue";
|
2
|
+
const k = (e, f) => {
|
3
3
|
const n = e.__vccOpts || e;
|
4
4
|
for (const [a, A] of f)
|
5
5
|
n[a] = A;
|
@@ -14,11 +14,11 @@ const N = (e, f) => {
|
|
14
14
|
},
|
15
15
|
emits: ["click"],
|
16
16
|
setup(e, { emit: f }) {
|
17
|
-
const n = e, a = f, A = (
|
18
|
-
const
|
19
|
-
a("click",
|
17
|
+
const n = e, a = f, A = (t) => {
|
18
|
+
const s = n.actions[t];
|
19
|
+
a("click", s);
|
20
20
|
};
|
21
|
-
return (
|
21
|
+
return (t, s) => (r(), d("div", Cn, [
|
22
22
|
o("div", Un, [
|
23
23
|
o("ul", Ln, [
|
24
24
|
(r(!0), d(B, null, R(n.actions, (i, u) => (r(), d("li", {
|
@@ -31,14 +31,14 @@ const N = (e, f) => {
|
|
31
31
|
src: i.icon,
|
32
32
|
width: "18",
|
33
33
|
height: "18"
|
34
|
-
}, null, 8, Bn)) :
|
35
|
-
o("span", null,
|
34
|
+
}, null, 8, Bn)) : b("", !0),
|
35
|
+
o("span", null, w(i.title), 1)
|
36
36
|
], 8, Qn))), 128))
|
37
37
|
])
|
38
38
|
])
|
39
39
|
]));
|
40
40
|
}
|
41
|
-
},
|
41
|
+
}, ge = /* @__PURE__ */ k(Yn, [["__scopeId", "data-v-8e12dd7e"]]), Rn = ["messageId"], qn = ["src"], Fn = {
|
42
42
|
key: 1,
|
43
43
|
class: "file-message__subtext"
|
44
44
|
}, Jn = ["href"], Wn = { class: "file-message__info-container" }, Hn = { class: "file-message__time" }, Kn = {
|
@@ -55,10 +55,10 @@ const N = (e, f) => {
|
|
55
55
|
setup(e) {
|
56
56
|
const f = e, n = v(!1), a = v(!1), A = () => {
|
57
57
|
a.value = !0;
|
58
|
-
},
|
58
|
+
}, t = () => {
|
59
59
|
a.value = !1, n.value = !1;
|
60
60
|
};
|
61
|
-
function
|
61
|
+
function s(u) {
|
62
62
|
return u.position === "left" ? "file-message__left" : "file-message__right";
|
63
63
|
}
|
64
64
|
const i = x(() => {
|
@@ -72,9 +72,9 @@ const N = (e, f) => {
|
|
72
72
|
}
|
73
73
|
});
|
74
74
|
return (u, l) => (r(), d("div", {
|
75
|
-
class:
|
75
|
+
class: T(["file-message", s(e.message)]),
|
76
76
|
messageId: e.message.messageId,
|
77
|
-
onMouseleave:
|
77
|
+
onMouseleave: t
|
78
78
|
}, [
|
79
79
|
e.message.avatar ? (r(), d("img", {
|
80
80
|
key: 0,
|
@@ -83,8 +83,8 @@ const N = (e, f) => {
|
|
83
83
|
height: "32",
|
84
84
|
width: "32",
|
85
85
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
86
|
-
}, null, 12, qn)) :
|
87
|
-
e.message.subText ? (r(), d("p", Fn,
|
86
|
+
}, null, 12, qn)) : b("", !0),
|
87
|
+
e.message.subText ? (r(), d("p", Fn, w(e.message.subText), 1)) : b("", !0),
|
88
88
|
o("div", {
|
89
89
|
class: "file-message__content",
|
90
90
|
onMouseenter: A
|
@@ -96,40 +96,40 @@ const N = (e, f) => {
|
|
96
96
|
target: "_blank"
|
97
97
|
}, [
|
98
98
|
l[1] || (l[1] = o("span", { class: "pi pi-file" }, null, -1)),
|
99
|
-
bn(" " +
|
99
|
+
bn(" " + w(e.message.filename), 1)
|
100
100
|
], 8, Jn),
|
101
101
|
o("div", Wn, [
|
102
|
-
o("span", Hn,
|
103
|
-
|
102
|
+
o("span", Hn, w(e.message.time), 1),
|
103
|
+
s(e.message) === "file-message__right" && e.message.status ? (r(), d("div", {
|
104
104
|
key: 0,
|
105
|
-
class:
|
105
|
+
class: T(["file-message__status", i.value])
|
106
106
|
}, [
|
107
|
-
e.message.status !== "sent" ? (r(), d("span", Kn)) :
|
107
|
+
e.message.status !== "sent" ? (r(), d("span", Kn)) : b("", !0),
|
108
108
|
l[2] || (l[2] = o("span", { class: "pi pi-check" }, null, -1))
|
109
|
-
], 2)) :
|
109
|
+
], 2)) : b("", !0)
|
110
110
|
]),
|
111
111
|
a.value && e.message.actions ? (r(), d("button", {
|
112
112
|
key: 0,
|
113
113
|
class: "file-message__menu-button",
|
114
|
-
onClick: l[0] || (l[0] = (
|
114
|
+
onClick: l[0] || (l[0] = (g) => n.value = !n.value)
|
115
115
|
}, l[3] || (l[3] = [
|
116
116
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
117
|
-
]))) :
|
117
|
+
]))) : b("", !0),
|
118
118
|
S(H, null, {
|
119
119
|
default: K(() => [
|
120
|
-
n.value && e.message.actions ? (r(), Q(
|
120
|
+
n.value && e.message.actions ? (r(), Q(ge, {
|
121
121
|
key: 0,
|
122
122
|
class: "file-message__context-menu",
|
123
123
|
actions: e.message.actions,
|
124
124
|
onClick: u.clickAction
|
125
|
-
}, null, 8, ["actions", "onClick"])) :
|
125
|
+
}, null, 8, ["actions", "onClick"])) : b("", !0)
|
126
126
|
]),
|
127
127
|
_: 1
|
128
128
|
})
|
129
129
|
], 32)
|
130
130
|
], 42, Rn));
|
131
131
|
}
|
132
|
-
},
|
132
|
+
}, $n = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-c2ab0283"]]), Zn = ["messageId"], Gn = ["src"], Xn = {
|
133
133
|
key: 1,
|
134
134
|
class: "image-message__subtext"
|
135
135
|
}, ea = ["src", "alt"], fa = { class: "image-message__info-container" }, na = { class: "image-message__time" }, aa = {
|
@@ -147,9 +147,9 @@ const N = (e, f) => {
|
|
147
147
|
}
|
148
148
|
},
|
149
149
|
setup(e) {
|
150
|
-
const f = e, n = v(!1), a = v(!1), A = v(!1),
|
150
|
+
const f = e, n = v(!1), a = v(!1), A = v(!1), t = () => {
|
151
151
|
A.value = !0;
|
152
|
-
},
|
152
|
+
}, s = () => {
|
153
153
|
A.value = !1, a.value = !1;
|
154
154
|
};
|
155
155
|
function i(l) {
|
@@ -165,10 +165,10 @@ const N = (e, f) => {
|
|
165
165
|
return "";
|
166
166
|
}
|
167
167
|
});
|
168
|
-
return (l,
|
169
|
-
class:
|
168
|
+
return (l, g) => (r(), d("div", {
|
169
|
+
class: T(["image-message", i(e.message)]),
|
170
170
|
messageId: e.message.messageId,
|
171
|
-
onMouseleave:
|
171
|
+
onMouseleave: s
|
172
172
|
}, [
|
173
173
|
e.message.avatar ? (r(), d("img", {
|
174
174
|
key: 0,
|
@@ -177,15 +177,15 @@ const N = (e, f) => {
|
|
177
177
|
height: "32",
|
178
178
|
width: "32",
|
179
179
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
180
|
-
}, null, 12, Gn)) :
|
181
|
-
e.message.subText ? (r(), d("p", Xn,
|
180
|
+
}, null, 12, Gn)) : b("", !0),
|
181
|
+
e.message.subText ? (r(), d("p", Xn, w(e.message.subText), 1)) : b("", !0),
|
182
182
|
o("div", {
|
183
183
|
class: "image-message__content",
|
184
|
-
onMouseenter:
|
184
|
+
onMouseenter: t
|
185
185
|
}, [
|
186
186
|
o("button", {
|
187
187
|
class: "image-message__button",
|
188
|
-
onClick:
|
188
|
+
onClick: g[0] || (g[0] = (c) => n.value = !0)
|
189
189
|
}, [
|
190
190
|
o("img", {
|
191
191
|
class: "image-message__preview-image",
|
@@ -193,14 +193,14 @@ const N = (e, f) => {
|
|
193
193
|
alt: e.message.alt
|
194
194
|
}, null, 8, ea),
|
195
195
|
o("div", fa, [
|
196
|
-
o("span", na,
|
196
|
+
o("span", na, w(e.message.time), 1),
|
197
197
|
i(e.message) === "image-message__right" && e.message.status ? (r(), d("div", {
|
198
198
|
key: 0,
|
199
|
-
class:
|
199
|
+
class: T(["image-message__status", u.value])
|
200
200
|
}, [
|
201
|
-
e.message.status !== "sent" ? (r(), d("span", aa)) :
|
202
|
-
|
203
|
-
], 2)) :
|
201
|
+
e.message.status !== "sent" ? (r(), d("span", aa)) : b("", !0),
|
202
|
+
g[3] || (g[3] = o("span", { class: "pi pi-check" }, null, -1))
|
203
|
+
], 2)) : b("", !0)
|
204
204
|
])
|
205
205
|
]),
|
206
206
|
(r(), Q(yn, { to: "body" }, [
|
@@ -210,8 +210,8 @@ const N = (e, f) => {
|
|
210
210
|
o("div", ta, [
|
211
211
|
o("button", {
|
212
212
|
class: "image-message__modal-close-button",
|
213
|
-
onClick:
|
214
|
-
},
|
213
|
+
onClick: g[1] || (g[1] = (c) => n.value = !1)
|
214
|
+
}, g[4] || (g[4] = [
|
215
215
|
o("span", null, [
|
216
216
|
o("i", { class: "pi pi-times" })
|
217
217
|
], -1)
|
@@ -222,7 +222,7 @@ const N = (e, f) => {
|
|
222
222
|
alt: e.message.alt
|
223
223
|
}, null, 8, sa)
|
224
224
|
])
|
225
|
-
])) :
|
225
|
+
])) : b("", !0)
|
226
226
|
]),
|
227
227
|
_: 1
|
228
228
|
})
|
@@ -230,25 +230,25 @@ const N = (e, f) => {
|
|
230
230
|
A.value && e.message.actions ? (r(), d("button", {
|
231
231
|
key: 0,
|
232
232
|
class: "image-message__menu-button",
|
233
|
-
onClick:
|
234
|
-
},
|
233
|
+
onClick: g[2] || (g[2] = (c) => a.value = !a.value)
|
234
|
+
}, g[5] || (g[5] = [
|
235
235
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
236
|
-
]))) :
|
236
|
+
]))) : b("", !0),
|
237
237
|
S(H, { name: "context-menu" }, {
|
238
238
|
default: K(() => [
|
239
|
-
a.value && e.message.actions ? (r(), Q(
|
239
|
+
a.value && e.message.actions ? (r(), Q(ge, {
|
240
240
|
key: 0,
|
241
241
|
class: "image-message__context-menu",
|
242
242
|
actions: e.message.actions,
|
243
243
|
onClick: l.clickAction
|
244
|
-
}, null, 8, ["actions", "onClick"])) :
|
244
|
+
}, null, 8, ["actions", "onClick"])) : b("", !0)
|
245
245
|
]),
|
246
246
|
_: 1
|
247
247
|
})
|
248
248
|
], 32)
|
249
|
-
], 42,
|
249
|
+
], 42, Zn));
|
250
250
|
}
|
251
|
-
}, oa = /* @__PURE__ */
|
251
|
+
}, oa = /* @__PURE__ */ k(ia, [["__scopeId", "data-v-4fd6ddff"]]), ua = { class: "text-message" }, ra = ["messageId"], la = ["src"], ca = {
|
252
252
|
key: 1,
|
253
253
|
class: "text-message__subtext"
|
254
254
|
}, da = { class: "text-message__text" }, ga = { class: "text-message__info-container" }, ma = {
|
@@ -267,17 +267,17 @@ const N = (e, f) => {
|
|
267
267
|
},
|
268
268
|
emits: ["action"],
|
269
269
|
setup(e, { emit: f }) {
|
270
|
-
const n = e, a = f, A = v(!1),
|
271
|
-
|
270
|
+
const n = e, a = f, A = v(!1), t = v(!1), s = () => {
|
271
|
+
t.value = !0;
|
272
272
|
}, i = () => {
|
273
|
-
|
274
|
-
}, u = (
|
275
|
-
i(), a("action", { messageId: n.message.messageId, ...
|
273
|
+
t.value = !1, A.value = !1;
|
274
|
+
}, u = (c) => {
|
275
|
+
i(), a("action", { messageId: n.message.messageId, ...c });
|
276
276
|
};
|
277
|
-
function l(
|
278
|
-
return
|
277
|
+
function l(c) {
|
278
|
+
return c.position === "left" ? "text-message__left" : "text-message__right";
|
279
279
|
}
|
280
|
-
const
|
280
|
+
const g = x(() => {
|
281
281
|
switch (n.message.status) {
|
282
282
|
case "read":
|
283
283
|
return "text-message__status--read";
|
@@ -287,9 +287,9 @@ const N = (e, f) => {
|
|
287
287
|
return "";
|
288
288
|
}
|
289
289
|
});
|
290
|
-
return (
|
290
|
+
return (c, m) => (r(), d("div", ua, [
|
291
291
|
o("div", {
|
292
|
-
class:
|
292
|
+
class: T(l(e.message)),
|
293
293
|
messageId: e.message.messageId,
|
294
294
|
onMouseleave: i
|
295
295
|
}, [
|
@@ -300,38 +300,38 @@ const N = (e, f) => {
|
|
300
300
|
height: "32",
|
301
301
|
width: "32",
|
302
302
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
303
|
-
}, null, 12, la)) :
|
304
|
-
e.message.subText ? (r(), d("p", ca,
|
303
|
+
}, null, 12, la)) : b("", !0),
|
304
|
+
e.message.subText ? (r(), d("p", ca, w(e.message.subText), 1)) : b("", !0),
|
305
305
|
o("div", {
|
306
306
|
class: "text-message__content",
|
307
|
-
onMouseenter:
|
307
|
+
onMouseenter: s
|
308
308
|
}, [
|
309
|
-
o("p", da,
|
309
|
+
o("p", da, w(e.message.text), 1),
|
310
310
|
o("div", ga, [
|
311
|
-
e.message.time ? (r(), d("span", ma,
|
311
|
+
e.message.time ? (r(), d("span", ma, w(e.message.time), 1)) : b("", !0),
|
312
312
|
l(e.message) === "text-message__right" && e.message.status ? (r(), d("div", {
|
313
313
|
key: 1,
|
314
|
-
class:
|
314
|
+
class: T(["text-message__status", g.value])
|
315
315
|
}, [
|
316
|
-
e.message.status !== "sent" ? (r(), d("span", pa)) :
|
316
|
+
e.message.status !== "sent" ? (r(), d("span", pa)) : b("", !0),
|
317
317
|
m[1] || (m[1] = o("span", { class: "pi pi-check" }, null, -1))
|
318
|
-
], 2)) :
|
318
|
+
], 2)) : b("", !0)
|
319
319
|
]),
|
320
|
-
|
320
|
+
t.value && e.message.actions ? (r(), d("button", {
|
321
321
|
key: 0,
|
322
322
|
class: "text-message__menu-button",
|
323
|
-
onClick: m[0] || (m[0] = (
|
323
|
+
onClick: m[0] || (m[0] = (M) => A.value = !A.value)
|
324
324
|
}, m[2] || (m[2] = [
|
325
325
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
326
|
-
]))) :
|
326
|
+
]))) : b("", !0),
|
327
327
|
S(H, null, {
|
328
328
|
default: K(() => [
|
329
|
-
A.value && e.message.actions ? (r(), Q(
|
329
|
+
A.value && e.message.actions ? (r(), Q(ge, {
|
330
330
|
key: 0,
|
331
331
|
class: "text-message__context-menu",
|
332
332
|
actions: e.message.actions,
|
333
333
|
onClick: u
|
334
|
-
}, null, 8, ["actions"])) :
|
334
|
+
}, null, 8, ["actions"])) : b("", !0)
|
335
335
|
]),
|
336
336
|
_: 1
|
337
337
|
})
|
@@ -339,7 +339,7 @@ const N = (e, f) => {
|
|
339
339
|
], 42, ra)
|
340
340
|
]));
|
341
341
|
}
|
342
|
-
}, ha = /* @__PURE__ */
|
342
|
+
}, ha = /* @__PURE__ */ k(Ma, [["__scopeId", "data-v-222290f8"]]), ba = ["messageId"], ya = ["src"], va = {
|
343
343
|
key: 1,
|
344
344
|
class: "audio-message__subtext"
|
345
345
|
}, Ia = ["src"], _a = { class: "audio-message__progress-bar-container" }, wa = { class: "audio-message__remaining-time" }, Da = { class: "audio-message__info-container" }, Na = { class: "audio-message__time" }, ka = {
|
@@ -354,18 +354,18 @@ const N = (e, f) => {
|
|
354
354
|
}
|
355
355
|
},
|
356
356
|
setup(e) {
|
357
|
-
const f = e, n = v(null), a = v(!1), A = v(0),
|
357
|
+
const f = e, n = v(null), a = v(!1), A = v(0), t = v(0), s = v(!1), i = v(!1), u = () => {
|
358
358
|
i.value = !0;
|
359
359
|
}, l = () => {
|
360
|
-
i.value = !1,
|
360
|
+
i.value = !1, s.value = !1;
|
361
361
|
};
|
362
|
-
function
|
362
|
+
function g() {
|
363
363
|
n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
|
364
364
|
}
|
365
|
-
const
|
366
|
-
const
|
367
|
-
return `${
|
368
|
-
}, m = x(() => n.value ?
|
365
|
+
const c = (_) => {
|
366
|
+
const I = Math.floor(_ / 60), D = Math.floor(_ % 60);
|
367
|
+
return `${I.toString().padStart(2, "0")}:${D.toString().padStart(2, "0")}`;
|
368
|
+
}, m = x(() => n.value ? c(t.value) : "0:00"), M = x(() => n.value ? c(A.value) : "0:00"), p = x(() => A.value > 0 ? t.value / A.value * 100 : 0), y = x(() => {
|
369
369
|
switch (f.message.status) {
|
370
370
|
case "read":
|
371
371
|
return "audio-message__status--read";
|
@@ -375,17 +375,17 @@ const N = (e, f) => {
|
|
375
375
|
return "";
|
376
376
|
}
|
377
377
|
});
|
378
|
-
function
|
379
|
-
return
|
378
|
+
function h(_) {
|
379
|
+
return _.position === "left" ? "audio-message__left" : "audio-message__right";
|
380
380
|
}
|
381
381
|
return _e(() => {
|
382
382
|
n.value.addEventListener("loadedmetadata", () => {
|
383
383
|
A.value = n.value.duration;
|
384
384
|
}), n.value.addEventListener("timeupdate", () => {
|
385
|
-
|
385
|
+
t.value = n.value.currentTime;
|
386
386
|
});
|
387
|
-
}), (
|
388
|
-
class:
|
387
|
+
}), (_, I) => (r(), d("div", {
|
388
|
+
class: T(["audio-message", h(e.message)]),
|
389
389
|
messageId: e.message.messageId,
|
390
390
|
onMouseleave: l
|
391
391
|
}, [
|
@@ -396,8 +396,8 @@ const N = (e, f) => {
|
|
396
396
|
height: "32",
|
397
397
|
width: "32",
|
398
398
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
399
|
-
}, null, 12, ya)) :
|
400
|
-
e.message.subText ? (r(), d("p", va,
|
399
|
+
}, null, 12, ya)) : b("", !0),
|
400
|
+
e.message.subText ? (r(), d("p", va, w(e.message.subText), 1)) : b("", !0),
|
401
401
|
o("div", {
|
402
402
|
class: "audio-message__content",
|
403
403
|
onMouseenter: u
|
@@ -409,16 +409,16 @@ const N = (e, f) => {
|
|
409
409
|
}, null, 8, Ia),
|
410
410
|
ae(o("button", {
|
411
411
|
class: "audio-message__play",
|
412
|
-
onClick:
|
413
|
-
},
|
412
|
+
onClick: g
|
413
|
+
}, I[1] || (I[1] = [
|
414
414
|
o("span", { class: "pi pi-play" }, null, -1)
|
415
415
|
]), 512), [
|
416
416
|
[pe, !a.value]
|
417
417
|
]),
|
418
418
|
ae(o("button", {
|
419
419
|
class: "audio-message__pause",
|
420
|
-
onClick:
|
421
|
-
},
|
420
|
+
onClick: g
|
421
|
+
}, I[2] || (I[2] = [
|
422
422
|
o("span", { class: "pi pi-pause" }, null, -1)
|
423
423
|
]), 512), [
|
424
424
|
[pe, a.value]
|
@@ -429,39 +429,39 @@ const N = (e, f) => {
|
|
429
429
|
style: U({ width: p.value + "%" })
|
430
430
|
}, null, 4)
|
431
431
|
]),
|
432
|
-
o("p", wa,
|
432
|
+
o("p", wa, w(`${m.value} / ${M.value}`), 1),
|
433
433
|
o("div", Da, [
|
434
|
-
o("span", Na,
|
435
|
-
|
434
|
+
o("span", Na, w(e.message.time), 1),
|
435
|
+
h(e.message) === "audio-message__right" && e.message.status ? (r(), d("div", {
|
436
436
|
key: 0,
|
437
|
-
class:
|
437
|
+
class: T(["audio-message__status", y.value])
|
438
438
|
}, [
|
439
|
-
e.message.status !== "sent" ? (r(), d("span", ka)) :
|
440
|
-
|
441
|
-
], 2)) :
|
439
|
+
e.message.status !== "sent" ? (r(), d("span", ka)) : b("", !0),
|
440
|
+
I[3] || (I[3] = o("span", { class: "pi pi-check" }, null, -1))
|
441
|
+
], 2)) : b("", !0)
|
442
442
|
]),
|
443
443
|
i.value && e.message.actions ? (r(), d("button", {
|
444
444
|
key: 0,
|
445
445
|
class: "audio-message__menu-button",
|
446
|
-
onClick:
|
447
|
-
},
|
446
|
+
onClick: I[0] || (I[0] = (D) => s.value = !s.value)
|
447
|
+
}, I[4] || (I[4] = [
|
448
448
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
449
|
-
]))) :
|
449
|
+
]))) : b("", !0),
|
450
450
|
S(H, null, {
|
451
451
|
default: K(() => [
|
452
|
-
|
452
|
+
s.value && e.message.actions ? (r(), Q(ge, {
|
453
453
|
key: 0,
|
454
454
|
class: "audio-message__context-menu",
|
455
455
|
actions: e.message.actions,
|
456
|
-
onClick:
|
457
|
-
}, null, 8, ["actions", "onClick"])) :
|
456
|
+
onClick: _.clickAction
|
457
|
+
}, null, 8, ["actions", "onClick"])) : b("", !0)
|
458
458
|
]),
|
459
459
|
_: 1
|
460
460
|
})
|
461
461
|
], 32)
|
462
462
|
], 42, ba));
|
463
463
|
}
|
464
|
-
}, Va = /* @__PURE__ */
|
464
|
+
}, Va = /* @__PURE__ */ k(ja, [["__scopeId", "data-v-f1daf135"]]), Ea = { class: "date-message" }, Ta = { class: "date-message__container" }, xa = { class: "date-message__text" }, Sa = {
|
465
465
|
__name: "DateMessage",
|
466
466
|
props: {
|
467
467
|
message: {
|
@@ -474,11 +474,11 @@ const N = (e, f) => {
|
|
474
474
|
setup(e) {
|
475
475
|
return (f, n) => (r(), d("div", Ea, [
|
476
476
|
o("div", Ta, [
|
477
|
-
o("p", xa,
|
477
|
+
o("p", xa, w(e.message.text), 1)
|
478
478
|
])
|
479
479
|
]));
|
480
480
|
}
|
481
|
-
}, za = /* @__PURE__ */
|
481
|
+
}, za = /* @__PURE__ */ k(Sa, [["__scopeId", "data-v-2ef5fab4"]]), Oa = {
|
482
482
|
key: 0,
|
483
483
|
class: "chat-info__container"
|
484
484
|
}, Ca = { class: "chat-info__avatar-container" }, Ua = ["src"], La = {
|
@@ -508,15 +508,15 @@ const N = (e, f) => {
|
|
508
508
|
}, null, 8, Ua)) : (r(), d("span", La))
|
509
509
|
]),
|
510
510
|
o("div", Qa, [
|
511
|
-
o("h2", Ba,
|
512
|
-
e.chat["lastActivity.time"] ? (r(), d("p", Ya,
|
511
|
+
o("h2", Ba, w(e.chat.name), 1),
|
512
|
+
e.chat["lastActivity.time"] ? (r(), d("p", Ya, w(e.chat["lastActivity.time"]), 1)) : b("", !0)
|
513
513
|
]),
|
514
514
|
o("div", Ra, [
|
515
515
|
W(a.$slots, "actions", {}, void 0, !0)
|
516
516
|
])
|
517
|
-
])) :
|
517
|
+
])) : b("", !0);
|
518
518
|
}
|
519
|
-
},
|
519
|
+
}, io = /* @__PURE__ */ k(qa, [["__scopeId", "data-v-cf0f3099"]]), Kf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Pf = {
|
520
520
|
recent: "Recently used",
|
521
521
|
smileys_people: "Smiles & People",
|
522
522
|
animals_nature: "Animals & Nature",
|
@@ -526,18 +526,18 @@ const N = (e, f) => {
|
|
526
526
|
objects: "Objects",
|
527
527
|
symbols: "Symbols",
|
528
528
|
flags: "Flags"
|
529
|
-
},
|
530
|
-
[
|
531
|
-
[
|
529
|
+
}, $f = "u", Ze = "n", Re = "v", Te = "r", Fa = {
|
530
|
+
[Ze]: ["grinning face", "grinning"],
|
531
|
+
[$f]: "1f600",
|
532
532
|
[Te]: "1f600"
|
533
|
-
}, He = "neutral", Ja = "1f3fb", Wa = "1f3fc", Ha = "1f3fd", Ka = "1f3fe", Pa = "1f3ff",
|
533
|
+
}, He = "neutral", Ja = "1f3fb", Wa = "1f3fc", Ha = "1f3fd", Ka = "1f3fe", Pa = "1f3ff", $a = [
|
534
534
|
He,
|
535
535
|
Ja,
|
536
536
|
Wa,
|
537
537
|
Ha,
|
538
538
|
Ka,
|
539
539
|
Pa
|
540
|
-
],
|
540
|
+
], Za = {
|
541
541
|
placeholder: "Search emoji",
|
542
542
|
skinTone: "Skin tone"
|
543
543
|
}, Ga = ["light", "dark", "auto"], Xa = [
|
@@ -12472,7 +12472,7 @@ var iA = {
|
|
12472
12472
|
objects: AA,
|
12473
12473
|
symbols: tA,
|
12474
12474
|
flags: sA
|
12475
|
-
},
|
12475
|
+
}, Sf = [
|
12476
12476
|
{
|
12477
12477
|
key: "recent",
|
12478
12478
|
title: "Recently Used",
|
@@ -12520,9 +12520,9 @@ var iA = {
|
|
12520
12520
|
}
|
12521
12521
|
];
|
12522
12522
|
const oA = (e, f) => f.some((n) => e instanceof n);
|
12523
|
-
let
|
12523
|
+
let zf, Of;
|
12524
12524
|
function uA() {
|
12525
|
-
return
|
12525
|
+
return zf || (zf = [
|
12526
12526
|
IDBDatabase,
|
12527
12527
|
IDBObjectStore,
|
12528
12528
|
IDBIndex,
|
@@ -12531,49 +12531,49 @@ function uA() {
|
|
12531
12531
|
]);
|
12532
12532
|
}
|
12533
12533
|
function rA() {
|
12534
|
-
return
|
12534
|
+
return Of || (Of = [
|
12535
12535
|
IDBCursor.prototype.advance,
|
12536
12536
|
IDBCursor.prototype.continue,
|
12537
12537
|
IDBCursor.prototype.continuePrimaryKey
|
12538
12538
|
]);
|
12539
12539
|
}
|
12540
|
-
const
|
12540
|
+
const Zf = /* @__PURE__ */ new WeakMap(), uf = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), cf = /* @__PURE__ */ new WeakMap();
|
12541
12541
|
function lA(e) {
|
12542
12542
|
const f = new Promise((n, a) => {
|
12543
12543
|
const A = () => {
|
12544
|
-
e.removeEventListener("success",
|
12545
|
-
}, s = () => {
|
12546
|
-
n(te(e.result)), A();
|
12544
|
+
e.removeEventListener("success", t), e.removeEventListener("error", s);
|
12547
12545
|
}, t = () => {
|
12546
|
+
n(te(e.result)), A();
|
12547
|
+
}, s = () => {
|
12548
12548
|
a(e.error), A();
|
12549
12549
|
};
|
12550
|
-
e.addEventListener("success",
|
12550
|
+
e.addEventListener("success", t), e.addEventListener("error", s);
|
12551
12551
|
});
|
12552
12552
|
return f.then((n) => {
|
12553
|
-
n instanceof IDBCursor &&
|
12553
|
+
n instanceof IDBCursor && Zf.set(n, e);
|
12554
12554
|
}).catch(() => {
|
12555
|
-
}),
|
12555
|
+
}), cf.set(f, e), f;
|
12556
12556
|
}
|
12557
12557
|
function cA(e) {
|
12558
|
-
if (
|
12558
|
+
if (uf.has(e))
|
12559
12559
|
return;
|
12560
12560
|
const f = new Promise((n, a) => {
|
12561
12561
|
const A = () => {
|
12562
|
-
e.removeEventListener("complete",
|
12563
|
-
}, s = () => {
|
12564
|
-
n(), A();
|
12562
|
+
e.removeEventListener("complete", t), e.removeEventListener("error", s), e.removeEventListener("abort", s);
|
12565
12563
|
}, t = () => {
|
12564
|
+
n(), A();
|
12565
|
+
}, s = () => {
|
12566
12566
|
a(e.error || new DOMException("AbortError", "AbortError")), A();
|
12567
12567
|
};
|
12568
|
-
e.addEventListener("complete",
|
12568
|
+
e.addEventListener("complete", t), e.addEventListener("error", s), e.addEventListener("abort", s);
|
12569
12569
|
});
|
12570
|
-
|
12570
|
+
uf.set(e, f);
|
12571
12571
|
}
|
12572
|
-
let
|
12572
|
+
let rf = {
|
12573
12573
|
get(e, f, n) {
|
12574
12574
|
if (e instanceof IDBTransaction) {
|
12575
12575
|
if (f === "done")
|
12576
|
-
return
|
12576
|
+
return uf.get(e);
|
12577
12577
|
if (f === "objectStoreNames")
|
12578
12578
|
return e.objectStoreNames || Gf.get(e);
|
12579
12579
|
if (f === "store")
|
@@ -12589,20 +12589,20 @@ let uf = {
|
|
12589
12589
|
}
|
12590
12590
|
};
|
12591
12591
|
function dA(e) {
|
12592
|
-
|
12592
|
+
rf = e(rf);
|
12593
12593
|
}
|
12594
12594
|
function gA(e) {
|
12595
12595
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...n) {
|
12596
12596
|
const a = e.call(Af(this), f, ...n);
|
12597
12597
|
return Gf.set(a, f.sort ? f.sort() : [f]), te(a);
|
12598
12598
|
} : rA().includes(e) ? function(...f) {
|
12599
|
-
return e.apply(Af(this), f), te(
|
12599
|
+
return e.apply(Af(this), f), te(Zf.get(this));
|
12600
12600
|
} : function(...f) {
|
12601
12601
|
return te(e.apply(Af(this), f));
|
12602
12602
|
};
|
12603
12603
|
}
|
12604
12604
|
function mA(e) {
|
12605
|
-
return typeof e == "function" ? gA(e) : (e instanceof IDBTransaction && cA(e), oA(e, uA()) ? new Proxy(e,
|
12605
|
+
return typeof e == "function" ? gA(e) : (e instanceof IDBTransaction && cA(e), oA(e, uA()) ? new Proxy(e, rf) : e);
|
12606
12606
|
}
|
12607
12607
|
function te(e) {
|
12608
12608
|
if (e instanceof IDBRequest)
|
@@ -12610,24 +12610,24 @@ function te(e) {
|
|
12610
12610
|
if (af.has(e))
|
12611
12611
|
return af.get(e);
|
12612
12612
|
const f = mA(e);
|
12613
|
-
return f !== e && (af.set(e, f),
|
12613
|
+
return f !== e && (af.set(e, f), cf.set(f, e)), f;
|
12614
12614
|
}
|
12615
|
-
const Af = (e) =>
|
12616
|
-
function
|
12617
|
-
const
|
12618
|
-
return a &&
|
12619
|
-
a(te(
|
12620
|
-
}), n &&
|
12615
|
+
const Af = (e) => cf.get(e);
|
12616
|
+
function df(e, f, { blocked: n, upgrade: a, blocking: A, terminated: t } = {}) {
|
12617
|
+
const s = indexedDB.open(e, f), i = te(s);
|
12618
|
+
return a && s.addEventListener("upgradeneeded", (u) => {
|
12619
|
+
a(te(s.result), u.oldVersion, u.newVersion, te(s.transaction), u);
|
12620
|
+
}), n && s.addEventListener("blocked", (u) => n(
|
12621
12621
|
u.oldVersion,
|
12622
12622
|
u.newVersion,
|
12623
12623
|
u
|
12624
12624
|
)), i.then((u) => {
|
12625
|
-
|
12625
|
+
t && u.addEventListener("close", () => t()), A && u.addEventListener("versionchange", (l) => A(l.oldVersion, l.newVersion, l));
|
12626
12626
|
}).catch(() => {
|
12627
12627
|
}), i;
|
12628
12628
|
}
|
12629
12629
|
const pA = ["get", "getKey", "getAll", "getAllKeys", "count"], MA = ["put", "add", "delete", "clear"], tf = /* @__PURE__ */ new Map();
|
12630
|
-
function
|
12630
|
+
function Cf(e, f) {
|
12631
12631
|
if (!(e instanceof IDBDatabase && !(f in e) && typeof f == "string"))
|
12632
12632
|
return;
|
12633
12633
|
if (tf.get(f))
|
@@ -12635,24 +12635,24 @@ function Of(e, f) {
|
|
12635
12635
|
const n = f.replace(/FromIndex$/, ""), a = f !== n, A = MA.includes(n);
|
12636
12636
|
if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(A || pA.includes(n)))
|
12637
12637
|
return;
|
12638
|
-
const
|
12639
|
-
const u = this.transaction(
|
12638
|
+
const t = async function(s, ...i) {
|
12639
|
+
const u = this.transaction(s, A ? "readwrite" : "readonly");
|
12640
12640
|
let l = u.store;
|
12641
12641
|
return a && (l = l.index(i.shift())), (await Promise.all([
|
12642
12642
|
l[n](...i),
|
12643
12643
|
A && u.done
|
12644
12644
|
]))[0];
|
12645
12645
|
};
|
12646
|
-
return tf.set(f,
|
12646
|
+
return tf.set(f, t), t;
|
12647
12647
|
}
|
12648
12648
|
dA((e) => ({
|
12649
12649
|
...e,
|
12650
|
-
get: (f, n, a) =>
|
12651
|
-
has: (f, n) => !!
|
12650
|
+
get: (f, n, a) => Cf(f, n) || e.get(f, n, a),
|
12651
|
+
has: (f, n) => !!Cf(f, n) || e.has(f, n)
|
12652
12652
|
}));
|
12653
|
-
const
|
12653
|
+
const gf = "EMJ", Me = "emojis", mf = 3;
|
12654
12654
|
async function hA() {
|
12655
|
-
(await
|
12655
|
+
(await df(gf, mf, {
|
12656
12656
|
upgrade(f, n) {
|
12657
12657
|
f.objectStoreNames.contains(Me) || f.createObjectStore(Me, {
|
12658
12658
|
keyPath: "id",
|
@@ -12678,7 +12678,7 @@ const bA = {
|
|
12678
12678
|
groupIcons: {}
|
12679
12679
|
};
|
12680
12680
|
async function yA() {
|
12681
|
-
return await (await
|
12681
|
+
return await (await df(gf, mf)).transaction(Me, "readonly").objectStore(Me).getAll();
|
12682
12682
|
}
|
12683
12683
|
function vA() {
|
12684
12684
|
const e = wn({
|
@@ -12697,75 +12697,75 @@ function vA() {
|
|
12697
12697
|
};
|
12698
12698
|
},
|
12699
12699
|
get disabled() {
|
12700
|
-
let
|
12701
|
-
return this.options.displayRecent || (
|
12700
|
+
let c = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
|
12701
|
+
return this.options.displayRecent || (c = ["recent", ...c]), c;
|
12702
12702
|
},
|
12703
12703
|
get groups() {
|
12704
|
-
return
|
12705
|
-
(
|
12704
|
+
return Sf.filter(
|
12705
|
+
(c) => !this.disabled.includes(c.key)
|
12706
12706
|
);
|
12707
12707
|
},
|
12708
12708
|
get orderedGroupKeys() {
|
12709
|
-
const
|
12709
|
+
const c = [
|
12710
12710
|
...this.options.groupOrder,
|
12711
12711
|
...Object.keys(this.options.additionalGroups),
|
12712
|
-
...
|
12712
|
+
...Sf.map((m) => m.key)
|
12713
12713
|
];
|
12714
|
-
return [...new Set(
|
12714
|
+
return [...new Set(c)].filter((m) => !this.disabled.includes(m));
|
12715
12715
|
}
|
12716
12716
|
});
|
12717
12717
|
function f() {
|
12718
12718
|
e.options.displayRecent && a();
|
12719
12719
|
}
|
12720
12720
|
async function n() {
|
12721
|
-
var
|
12721
|
+
var c;
|
12722
12722
|
let m = await yA();
|
12723
|
-
return Array.isArray(m) && m.length ? m = JSON.parse(((
|
12723
|
+
return Array.isArray(m) && m.length ? m = JSON.parse(((c = m[0]) == null ? void 0 : c.value) || "") : m = [], m;
|
12724
12724
|
}
|
12725
12725
|
function a() {
|
12726
|
-
n().then((
|
12727
|
-
e.recent =
|
12726
|
+
n().then((c) => {
|
12727
|
+
e.recent = c, l();
|
12728
12728
|
});
|
12729
12729
|
}
|
12730
|
-
const A = (
|
12731
|
-
e.search =
|
12732
|
-
},
|
12733
|
-
e.emoji =
|
12734
|
-
},
|
12735
|
-
e.activeGroup =
|
12736
|
-
}, i = (
|
12737
|
-
e.skinTone =
|
12738
|
-
}, u = (
|
12739
|
-
e.options = Object.assign({}, e.options,
|
12730
|
+
const A = (c) => {
|
12731
|
+
e.search = c;
|
12732
|
+
}, t = (c) => {
|
12733
|
+
e.emoji = c;
|
12734
|
+
}, s = (c) => {
|
12735
|
+
e.activeGroup = c;
|
12736
|
+
}, i = (c = He) => {
|
12737
|
+
e.skinTone = c;
|
12738
|
+
}, u = (c) => {
|
12739
|
+
e.options = Object.assign({}, e.options, c), f();
|
12740
12740
|
};
|
12741
12741
|
async function l() {
|
12742
|
-
(await
|
12742
|
+
(await df(gf, mf)).transaction(Me, "readwrite").objectStore(Me).put({
|
12743
12743
|
id: 0,
|
12744
12744
|
value: JSON.stringify(e.recent)
|
12745
12745
|
});
|
12746
12746
|
}
|
12747
|
-
const
|
12747
|
+
const g = (c) => {
|
12748
12748
|
if (e.options.displayRecent !== !0)
|
12749
12749
|
return;
|
12750
|
-
const m = e.recent.findIndex((p) => p.u ===
|
12750
|
+
const m = e.recent.findIndex((p) => p.u === c.u);
|
12751
12751
|
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
12752
12752
|
return;
|
12753
|
-
const
|
12754
|
-
e.recent = [
|
12753
|
+
const M = { u: c.u, n: Wf(c.n) };
|
12754
|
+
e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), l();
|
12755
12755
|
};
|
12756
12756
|
return {
|
12757
12757
|
state: Dn(e),
|
12758
12758
|
updateSearch: A,
|
12759
|
-
updateEmoji:
|
12760
|
-
updateActiveGroup:
|
12759
|
+
updateEmoji: t,
|
12760
|
+
updateActiveGroup: s,
|
12761
12761
|
updateSkinTone: i,
|
12762
12762
|
updateOptions: u,
|
12763
|
-
updateSelect:
|
12763
|
+
updateSelect: g
|
12764
12764
|
};
|
12765
12765
|
}
|
12766
|
-
var q = "top",
|
12766
|
+
var q = "top", $ = "bottom", Z = "right", F = "left", pf = "auto", ze = [q, $, Z, F], he = "start", xe = "end", IA = "clippingParents", Xf = "viewport", je = "popper", _A = "reference", Uf = /* @__PURE__ */ ze.reduce(function(e, f) {
|
12767
12767
|
return e.concat([f + "-" + he, f + "-" + xe]);
|
12768
|
-
}, []), en = /* @__PURE__ */ [].concat(ze, [
|
12768
|
+
}, []), en = /* @__PURE__ */ [].concat(ze, [pf]).reduce(function(e, f) {
|
12769
12769
|
return e.concat([f, f + "-" + he, f + "-" + xe]);
|
12770
12770
|
}, []), wA = "beforeRead", DA = "read", NA = "afterRead", kA = "beforeMain", jA = "main", VA = "afterMain", EA = "beforeWrite", TA = "write", xA = "afterWrite", SA = [wA, DA, NA, kA, jA, VA, EA, TA, xA];
|
12771
12771
|
function fe(e) {
|
@@ -12797,10 +12797,10 @@ function fn(e) {
|
|
12797
12797
|
function zA(e) {
|
12798
12798
|
var f = e.state;
|
12799
12799
|
Object.keys(f.elements).forEach(function(n) {
|
12800
|
-
var a = f.styles[n] || {}, A = f.attributes[n] || {},
|
12801
|
-
!P(
|
12802
|
-
var i = A[
|
12803
|
-
i === !1 ?
|
12800
|
+
var a = f.styles[n] || {}, A = f.attributes[n] || {}, t = f.elements[n];
|
12801
|
+
!P(t) || !fe(t) || (Object.assign(t.style, a), Object.keys(A).forEach(function(s) {
|
12802
|
+
var i = A[s];
|
12803
|
+
i === !1 ? t.removeAttribute(s) : t.setAttribute(s, i === !0 ? "" : i);
|
12804
12804
|
}));
|
12805
12805
|
});
|
12806
12806
|
}
|
@@ -12819,10 +12819,10 @@ function OA(e) {
|
|
12819
12819
|
};
|
12820
12820
|
return Object.assign(f.elements.popper.style, n.popper), f.styles = n, f.elements.arrow && Object.assign(f.elements.arrow.style, n.arrow), function() {
|
12821
12821
|
Object.keys(f.elements).forEach(function(a) {
|
12822
|
-
var A = f.elements[a],
|
12822
|
+
var A = f.elements[a], t = f.attributes[a] || {}, s = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]), i = s.reduce(function(u, l) {
|
12823
12823
|
return u[l] = "", u;
|
12824
12824
|
}, {});
|
12825
|
-
!P(A) || !fe(A) || (Object.assign(A.style, i), Object.keys(
|
12825
|
+
!P(A) || !fe(A) || (Object.assign(A.style, i), Object.keys(t).forEach(function(u) {
|
12826
12826
|
A.removeAttribute(u);
|
12827
12827
|
}));
|
12828
12828
|
});
|
@@ -12839,13 +12839,13 @@ var CA = {
|
|
12839
12839
|
function ee(e) {
|
12840
12840
|
return e.split("-")[0];
|
12841
12841
|
}
|
12842
|
-
var
|
12842
|
+
var ce = Math.max, Ke = Math.min, ye = Math.round;
|
12843
12843
|
function ve(e, f) {
|
12844
12844
|
f === void 0 && (f = !1);
|
12845
12845
|
var n = e.getBoundingClientRect(), a = 1, A = 1;
|
12846
12846
|
if (P(e) && f) {
|
12847
|
-
var
|
12848
|
-
|
12847
|
+
var t = e.offsetHeight, s = e.offsetWidth;
|
12848
|
+
s > 0 && (a = ye(n.width) / s || 1), t > 0 && (A = ye(n.height) / t || 1);
|
12849
12849
|
}
|
12850
12850
|
return {
|
12851
12851
|
width: n.width / a,
|
@@ -12858,7 +12858,7 @@ function ve(e, f) {
|
|
12858
12858
|
y: n.top / A
|
12859
12859
|
};
|
12860
12860
|
}
|
12861
|
-
function
|
12861
|
+
function Mf(e) {
|
12862
12862
|
var f = ve(e), n = e.offsetWidth, a = e.offsetHeight;
|
12863
12863
|
return Math.abs(f.width - n) <= 1 && (n = f.width), Math.abs(f.height - a) <= 1 && (a = f.height), {
|
12864
12864
|
x: e.offsetLeft,
|
@@ -12893,7 +12893,7 @@ function se(e) {
|
|
12893
12893
|
function Ge(e) {
|
12894
12894
|
return fe(e) === "html" ? e : e.assignedSlot || e.parentNode || (fn(e) ? e.host : null) || se(e);
|
12895
12895
|
}
|
12896
|
-
function
|
12896
|
+
function Lf(e) {
|
12897
12897
|
return !P(e) || ne(e).position === "fixed" ? null : e.offsetParent;
|
12898
12898
|
}
|
12899
12899
|
function LA(e) {
|
@@ -12904,23 +12904,23 @@ function LA(e) {
|
|
12904
12904
|
return null;
|
12905
12905
|
}
|
12906
12906
|
for (var A = Ge(e); P(A) && ["html", "body"].indexOf(fe(A)) < 0; ) {
|
12907
|
-
var
|
12908
|
-
if (
|
12907
|
+
var t = ne(A);
|
12908
|
+
if (t.transform !== "none" || t.perspective !== "none" || t.contain === "paint" || ["transform", "perspective"].indexOf(t.willChange) !== -1 || f && t.willChange === "filter" || f && t.filter && t.filter !== "none")
|
12909
12909
|
return A;
|
12910
12910
|
A = A.parentNode;
|
12911
12911
|
}
|
12912
12912
|
return null;
|
12913
12913
|
}
|
12914
12914
|
function Oe(e) {
|
12915
|
-
for (var f = X(e), n =
|
12916
|
-
n =
|
12915
|
+
for (var f = X(e), n = Lf(e); n && UA(n) && ne(n).position === "static"; )
|
12916
|
+
n = Lf(n);
|
12917
12917
|
return n && (fe(n) === "html" || fe(n) === "body" && ne(n).position === "static") ? f : n || LA(e) || f;
|
12918
12918
|
}
|
12919
|
-
function
|
12919
|
+
function hf(e) {
|
12920
12920
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
12921
12921
|
}
|
12922
12922
|
function Ve(e, f, n) {
|
12923
|
-
return
|
12923
|
+
return ce(e, Ke(f, n));
|
12924
12924
|
}
|
12925
12925
|
function QA(e, f, n) {
|
12926
12926
|
var a = Ve(e, f, n);
|
@@ -12948,10 +12948,10 @@ var BA = function(f, n) {
|
|
12948
12948
|
})) : f, An(typeof f != "number" ? f : tn(f, ze));
|
12949
12949
|
};
|
12950
12950
|
function YA(e) {
|
12951
|
-
var f, n = e.state, a = e.name, A = e.options,
|
12952
|
-
if (!(!
|
12953
|
-
var
|
12954
|
-
n.modifiersData[a] = (f = {}, f[z] =
|
12951
|
+
var f, n = e.state, a = e.name, A = e.options, t = n.elements.arrow, s = n.modifiersData.popperOffsets, i = ee(n.placement), u = hf(i), l = [F, Z].indexOf(i) >= 0, g = l ? "height" : "width";
|
12952
|
+
if (!(!t || !s)) {
|
12953
|
+
var c = BA(A.padding, n), m = Mf(t), M = u === "y" ? q : F, p = u === "y" ? $ : Z, y = n.rects.reference[g] + n.rects.reference[u] - s[u] - n.rects.popper[g], h = s[u] - n.rects.reference[u], _ = Oe(t), I = _ ? u === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = y / 2 - h / 2, N = c[M], j = I - m[g] - c[p], V = I / 2 - m[g] / 2 + D, E = Ve(N, V, j), z = u;
|
12954
|
+
n.modifiersData[a] = (f = {}, f[z] = E, f.centerOffset = E - V, f);
|
12955
12955
|
}
|
12956
12956
|
}
|
12957
12957
|
function RA(e) {
|
@@ -12983,18 +12983,18 @@ function JA(e) {
|
|
12983
12983
|
y: ye(n * A) / A || 0
|
12984
12984
|
};
|
12985
12985
|
}
|
12986
|
-
function
|
12987
|
-
var f, n = e.popper, a = e.popperRect, A = e.placement,
|
12986
|
+
function Qf(e) {
|
12987
|
+
var f, n = e.popper, a = e.popperRect, A = e.placement, t = e.variation, s = e.offsets, i = e.position, u = e.gpuAcceleration, l = e.adaptive, g = e.roundOffsets, c = e.isFixed, m = g === !0 ? JA(s) : typeof g == "function" ? g(s) : s, M = m.x, p = M === void 0 ? 0 : M, y = m.y, h = y === void 0 ? 0 : y, _ = s.hasOwnProperty("x"), I = s.hasOwnProperty("y"), D = F, N = q, j = window;
|
12988
12988
|
if (l) {
|
12989
|
-
var
|
12990
|
-
if (
|
12991
|
-
|
12992
|
-
var L =
|
12993
|
-
|
12989
|
+
var V = Oe(n), E = "clientHeight", z = "clientWidth";
|
12990
|
+
if (V === X(n) && (V = se(n), ne(V).position !== "static" && i === "absolute" && (E = "scrollHeight", z = "scrollWidth")), V = V, A === q || (A === F || A === Z) && t === xe) {
|
12991
|
+
N = $;
|
12992
|
+
var L = c && j.visualViewport ? j.visualViewport.height : V[E];
|
12993
|
+
h -= L - a.height, h *= u ? 1 : -1;
|
12994
12994
|
}
|
12995
|
-
if (A === F || (A === q || A ===
|
12996
|
-
|
12997
|
-
var O =
|
12995
|
+
if (A === F || (A === q || A === $) && t === xe) {
|
12996
|
+
D = Z;
|
12997
|
+
var O = c && j.visualViewport ? j.visualViewport.width : V[z];
|
12998
12998
|
p -= O - a.width, p *= u ? 1 : -1;
|
12999
12999
|
}
|
13000
13000
|
}
|
@@ -13003,12 +13003,12 @@ function Lf(e) {
|
|
13003
13003
|
}, l && FA);
|
13004
13004
|
if (u) {
|
13005
13005
|
var Y;
|
13006
|
-
return Object.assign({}, C, (Y = {}, Y[
|
13006
|
+
return Object.assign({}, C, (Y = {}, Y[N] = I ? "0" : "", Y[D] = _ ? "0" : "", Y.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", Y));
|
13007
13007
|
}
|
13008
|
-
return Object.assign({}, C, (f = {}, f[
|
13008
|
+
return Object.assign({}, C, (f = {}, f[N] = I ? h + "px" : "", f[D] = _ ? p + "px" : "", f.transform = "", f));
|
13009
13009
|
}
|
13010
13010
|
function WA(e) {
|
13011
|
-
var f = e.state, n = e.options, a = n.gpuAcceleration, A = a === void 0 ? !0 : a,
|
13011
|
+
var f = e.state, n = e.options, a = n.gpuAcceleration, A = a === void 0 ? !0 : a, t = n.adaptive, s = t === void 0 ? !0 : t, i = n.roundOffsets, u = i === void 0 ? !0 : i, l = {
|
13012
13012
|
placement: ee(f.placement),
|
13013
13013
|
variation: Ie(f.placement),
|
13014
13014
|
popper: f.elements.popper,
|
@@ -13016,12 +13016,12 @@ function WA(e) {
|
|
13016
13016
|
gpuAcceleration: A,
|
13017
13017
|
isFixed: f.options.strategy === "fixed"
|
13018
13018
|
};
|
13019
|
-
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper,
|
13019
|
+
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, Qf(Object.assign({}, l, {
|
13020
13020
|
offsets: f.modifiersData.popperOffsets,
|
13021
13021
|
position: f.options.strategy,
|
13022
|
-
adaptive:
|
13022
|
+
adaptive: s,
|
13023
13023
|
roundOffsets: u
|
13024
|
-
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow,
|
13024
|
+
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, Qf(Object.assign({}, l, {
|
13025
13025
|
offsets: f.modifiersData.arrow,
|
13026
13026
|
position: "absolute",
|
13027
13027
|
adaptive: !1,
|
@@ -13040,12 +13040,12 @@ var HA = {
|
|
13040
13040
|
passive: !0
|
13041
13041
|
};
|
13042
13042
|
function KA(e) {
|
13043
|
-
var f = e.state, n = e.instance, a = e.options, A = a.scroll,
|
13044
|
-
return
|
13045
|
-
|
13043
|
+
var f = e.state, n = e.instance, a = e.options, A = a.scroll, t = A === void 0 ? !0 : A, s = a.resize, i = s === void 0 ? !0 : s, u = X(f.elements.popper), l = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
13044
|
+
return t && l.forEach(function(g) {
|
13045
|
+
g.addEventListener("scroll", n.update, qe);
|
13046
13046
|
}), i && u.addEventListener("resize", n.update, qe), function() {
|
13047
|
-
|
13048
|
-
|
13047
|
+
t && l.forEach(function(g) {
|
13048
|
+
g.removeEventListener("scroll", n.update, qe);
|
13049
13049
|
}), i && u.removeEventListener("resize", n.update, qe);
|
13050
13050
|
};
|
13051
13051
|
}
|
@@ -13057,7 +13057,7 @@ var PA = {
|
|
13057
13057
|
},
|
13058
13058
|
effect: KA,
|
13059
13059
|
data: {}
|
13060
|
-
},
|
13060
|
+
}, $A = {
|
13061
13061
|
left: "right",
|
13062
13062
|
right: "left",
|
13063
13063
|
bottom: "top",
|
@@ -13065,60 +13065,60 @@ var PA = {
|
|
13065
13065
|
};
|
13066
13066
|
function Je(e) {
|
13067
13067
|
return e.replace(/left|right|bottom|top/g, function(f) {
|
13068
|
-
return
|
13068
|
+
return $A[f];
|
13069
13069
|
});
|
13070
13070
|
}
|
13071
|
-
var
|
13071
|
+
var ZA = {
|
13072
13072
|
start: "end",
|
13073
13073
|
end: "start"
|
13074
13074
|
};
|
13075
|
-
function
|
13075
|
+
function Bf(e) {
|
13076
13076
|
return e.replace(/start|end/g, function(f) {
|
13077
|
-
return
|
13077
|
+
return ZA[f];
|
13078
13078
|
});
|
13079
13079
|
}
|
13080
|
-
function
|
13080
|
+
function bf(e) {
|
13081
13081
|
var f = X(e), n = f.pageXOffset, a = f.pageYOffset;
|
13082
13082
|
return {
|
13083
13083
|
scrollLeft: n,
|
13084
13084
|
scrollTop: a
|
13085
13085
|
};
|
13086
13086
|
}
|
13087
|
-
function
|
13088
|
-
return ve(se(e)).left +
|
13087
|
+
function yf(e) {
|
13088
|
+
return ve(se(e)).left + bf(e).scrollLeft;
|
13089
13089
|
}
|
13090
13090
|
function GA(e) {
|
13091
|
-
var f = X(e), n = se(e), a = f.visualViewport, A = n.clientWidth,
|
13092
|
-
return a && (A = a.width,
|
13091
|
+
var f = X(e), n = se(e), a = f.visualViewport, A = n.clientWidth, t = n.clientHeight, s = 0, i = 0;
|
13092
|
+
return a && (A = a.width, t = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (s = a.offsetLeft, i = a.offsetTop)), {
|
13093
13093
|
width: A,
|
13094
|
-
height:
|
13095
|
-
x:
|
13094
|
+
height: t,
|
13095
|
+
x: s + yf(e),
|
13096
13096
|
y: i
|
13097
13097
|
};
|
13098
13098
|
}
|
13099
13099
|
function XA(e) {
|
13100
|
-
var f, n = se(e), a =
|
13101
|
-
return ne(A || n).direction === "rtl" && (i +=
|
13102
|
-
width:
|
13103
|
-
height:
|
13100
|
+
var f, n = se(e), a = bf(e), A = (f = e.ownerDocument) == null ? void 0 : f.body, t = ce(n.scrollWidth, n.clientWidth, A ? A.scrollWidth : 0, A ? A.clientWidth : 0), s = ce(n.scrollHeight, n.clientHeight, A ? A.scrollHeight : 0, A ? A.clientHeight : 0), i = -a.scrollLeft + yf(e), u = -a.scrollTop;
|
13101
|
+
return ne(A || n).direction === "rtl" && (i += ce(n.clientWidth, A ? A.clientWidth : 0) - t), {
|
13102
|
+
width: t,
|
13103
|
+
height: s,
|
13104
13104
|
x: i,
|
13105
13105
|
y: u
|
13106
13106
|
};
|
13107
13107
|
}
|
13108
|
-
function
|
13108
|
+
function vf(e) {
|
13109
13109
|
var f = ne(e), n = f.overflow, a = f.overflowX, A = f.overflowY;
|
13110
13110
|
return /auto|scroll|overlay|hidden/.test(n + A + a);
|
13111
13111
|
}
|
13112
13112
|
function sn(e) {
|
13113
|
-
return ["html", "body", "#document"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : P(e) &&
|
13113
|
+
return ["html", "body", "#document"].indexOf(fe(e)) >= 0 ? e.ownerDocument.body : P(e) && vf(e) ? e : sn(Ge(e));
|
13114
13114
|
}
|
13115
13115
|
function Ee(e, f) {
|
13116
13116
|
var n;
|
13117
13117
|
f === void 0 && (f = []);
|
13118
|
-
var a = sn(e), A = a === ((n = e.ownerDocument) == null ? void 0 : n.body),
|
13119
|
-
return A ? i : i.concat(Ee(Ge(
|
13118
|
+
var a = sn(e), A = a === ((n = e.ownerDocument) == null ? void 0 : n.body), t = X(a), s = A ? [t].concat(t.visualViewport || [], vf(a) ? a : []) : a, i = f.concat(s);
|
13119
|
+
return A ? i : i.concat(Ee(Ge(s)));
|
13120
13120
|
}
|
13121
|
-
function
|
13121
|
+
function lf(e) {
|
13122
13122
|
return Object.assign({}, e, {
|
13123
13123
|
left: e.x,
|
13124
13124
|
top: e.y,
|
@@ -13130,8 +13130,8 @@ function et(e) {
|
|
13130
13130
|
var f = ve(e);
|
13131
13131
|
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;
|
13132
13132
|
}
|
13133
|
-
function
|
13134
|
-
return f === Xf ?
|
13133
|
+
function Yf(e, f) {
|
13134
|
+
return f === Xf ? lf(GA(e)) : be(f) ? et(f) : lf(XA(se(e)));
|
13135
13135
|
}
|
13136
13136
|
function ft(e) {
|
13137
13137
|
var f = Ee(Ge(e)), n = ["absolute", "fixed"].indexOf(ne(e).position) >= 0, a = n && P(e) ? Oe(e) : e;
|
@@ -13140,28 +13140,28 @@ function ft(e) {
|
|
13140
13140
|
}) : [];
|
13141
13141
|
}
|
13142
13142
|
function nt(e, f, n) {
|
13143
|
-
var a = f === "clippingParents" ? ft(e) : [].concat(f), A = [].concat(a, [n]),
|
13144
|
-
var l =
|
13145
|
-
return i.top =
|
13146
|
-
},
|
13147
|
-
return
|
13143
|
+
var a = f === "clippingParents" ? ft(e) : [].concat(f), A = [].concat(a, [n]), t = A[0], s = A.reduce(function(i, u) {
|
13144
|
+
var l = Yf(e, u);
|
13145
|
+
return i.top = ce(l.top, i.top), i.right = Ke(l.right, i.right), i.bottom = Ke(l.bottom, i.bottom), i.left = ce(l.left, i.left), i;
|
13146
|
+
}, Yf(e, t));
|
13147
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
13148
13148
|
}
|
13149
13149
|
function on(e) {
|
13150
|
-
var f = e.reference, n = e.element, a = e.placement, A = a ? ee(a) : null,
|
13150
|
+
var f = e.reference, n = e.element, a = e.placement, A = a ? ee(a) : null, t = a ? Ie(a) : null, s = f.x + f.width / 2 - n.width / 2, i = f.y + f.height / 2 - n.height / 2, u;
|
13151
13151
|
switch (A) {
|
13152
13152
|
case q:
|
13153
13153
|
u = {
|
13154
|
-
x:
|
13154
|
+
x: s,
|
13155
13155
|
y: f.y - n.height
|
13156
13156
|
};
|
13157
13157
|
break;
|
13158
|
-
case
|
13158
|
+
case $:
|
13159
13159
|
u = {
|
13160
|
-
x:
|
13160
|
+
x: s,
|
13161
13161
|
y: f.y + f.height
|
13162
13162
|
};
|
13163
13163
|
break;
|
13164
|
-
case
|
13164
|
+
case Z:
|
13165
13165
|
u = {
|
13166
13166
|
x: f.x + f.width,
|
13167
13167
|
y: i
|
@@ -13179,15 +13179,15 @@ function on(e) {
|
|
13179
13179
|
y: f.y
|
13180
13180
|
};
|
13181
13181
|
}
|
13182
|
-
var l = A ?
|
13182
|
+
var l = A ? hf(A) : null;
|
13183
13183
|
if (l != null) {
|
13184
|
-
var
|
13185
|
-
switch (
|
13184
|
+
var g = l === "y" ? "height" : "width";
|
13185
|
+
switch (t) {
|
13186
13186
|
case he:
|
13187
|
-
u[l] = u[l] - (f[
|
13187
|
+
u[l] = u[l] - (f[g] / 2 - n[g] / 2);
|
13188
13188
|
break;
|
13189
13189
|
case xe:
|
13190
|
-
u[l] = u[l] + (f[
|
13190
|
+
u[l] = u[l] + (f[g] / 2 - n[g] / 2);
|
13191
13191
|
break;
|
13192
13192
|
}
|
13193
13193
|
}
|
@@ -13195,21 +13195,21 @@ function on(e) {
|
|
13195
13195
|
}
|
13196
13196
|
function Se(e, f) {
|
13197
13197
|
f === void 0 && (f = {});
|
13198
|
-
var n = f, a = n.placement, A = a === void 0 ? e.placement : a,
|
13199
|
-
reference:
|
13200
|
-
element:
|
13198
|
+
var n = f, a = n.placement, A = a === void 0 ? e.placement : a, t = n.boundary, s = t === void 0 ? IA : t, i = n.rootBoundary, u = i === void 0 ? Xf : i, l = n.elementContext, g = l === void 0 ? je : l, c = n.altBoundary, m = c === void 0 ? !1 : c, M = n.padding, p = M === void 0 ? 0 : M, y = An(typeof p != "number" ? p : tn(p, ze)), h = g === je ? _A : je, _ = e.rects.popper, I = e.elements[m ? h : g], D = nt(be(I) ? I : I.contextElement || se(e.elements.popper), s, u), N = ve(e.elements.reference), j = on({
|
13199
|
+
reference: N,
|
13200
|
+
element: _,
|
13201
13201
|
strategy: "absolute",
|
13202
13202
|
placement: A
|
13203
|
-
}),
|
13204
|
-
top:
|
13205
|
-
bottom:
|
13206
|
-
left:
|
13207
|
-
right:
|
13203
|
+
}), V = lf(Object.assign({}, _, j)), E = g === je ? V : N, z = {
|
13204
|
+
top: D.top - E.top + y.top,
|
13205
|
+
bottom: E.bottom - D.bottom + y.bottom,
|
13206
|
+
left: D.left - E.left + y.left,
|
13207
|
+
right: E.right - D.right + y.right
|
13208
13208
|
}, L = e.modifiersData.offset;
|
13209
|
-
if (
|
13209
|
+
if (g === je && L) {
|
13210
13210
|
var O = L[A];
|
13211
13211
|
Object.keys(z).forEach(function(C) {
|
13212
|
-
var Y = [
|
13212
|
+
var Y = [Z, $].indexOf(C) >= 0 ? 1 : -1, ie = [q, $].indexOf(C) >= 0 ? "y" : "x";
|
13213
13213
|
z[C] += O[ie] * Y;
|
13214
13214
|
});
|
13215
13215
|
}
|
@@ -13217,64 +13217,64 @@ function Se(e, f) {
|
|
13217
13217
|
}
|
13218
13218
|
function at(e, f) {
|
13219
13219
|
f === void 0 && (f = {});
|
13220
|
-
var n = f, a = n.placement, A = n.boundary,
|
13221
|
-
return Ie(p) ===
|
13222
|
-
}) : ze, m =
|
13220
|
+
var n = f, a = n.placement, A = n.boundary, t = n.rootBoundary, s = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? en : u, g = Ie(a), c = g ? i ? Uf : Uf.filter(function(p) {
|
13221
|
+
return Ie(p) === g;
|
13222
|
+
}) : ze, m = c.filter(function(p) {
|
13223
13223
|
return l.indexOf(p) >= 0;
|
13224
13224
|
});
|
13225
|
-
m.length === 0 && (m =
|
13226
|
-
var
|
13227
|
-
return p[
|
13228
|
-
placement:
|
13225
|
+
m.length === 0 && (m = c);
|
13226
|
+
var M = m.reduce(function(p, y) {
|
13227
|
+
return p[y] = Se(e, {
|
13228
|
+
placement: y,
|
13229
13229
|
boundary: A,
|
13230
|
-
rootBoundary:
|
13231
|
-
padding:
|
13232
|
-
})[ee(
|
13230
|
+
rootBoundary: t,
|
13231
|
+
padding: s
|
13232
|
+
})[ee(y)], p;
|
13233
13233
|
}, {});
|
13234
|
-
return Object.keys(
|
13235
|
-
return
|
13234
|
+
return Object.keys(M).sort(function(p, y) {
|
13235
|
+
return M[p] - M[y];
|
13236
13236
|
});
|
13237
13237
|
}
|
13238
13238
|
function At(e) {
|
13239
|
-
if (ee(e) ===
|
13239
|
+
if (ee(e) === pf)
|
13240
13240
|
return [];
|
13241
13241
|
var f = Je(e);
|
13242
|
-
return [
|
13242
|
+
return [Bf(e), f, Bf(f)];
|
13243
13243
|
}
|
13244
13244
|
function tt(e) {
|
13245
13245
|
var f = e.state, n = e.options, a = e.name;
|
13246
13246
|
if (!f.modifiersData[a]._skip) {
|
13247
|
-
for (var A = n.mainAxis,
|
13248
|
-
return
|
13247
|
+
for (var A = n.mainAxis, t = A === void 0 ? !0 : A, s = n.altAxis, i = s === void 0 ? !0 : s, u = n.fallbackPlacements, l = n.padding, g = n.boundary, c = n.rootBoundary, m = n.altBoundary, M = n.flipVariations, p = M === void 0 ? !0 : M, y = n.allowedAutoPlacements, h = f.options.placement, _ = ee(h), I = _ === h, D = u || (I || !p ? [Je(h)] : At(h)), N = [h].concat(D).reduce(function(me, Ae) {
|
13248
|
+
return me.concat(ee(Ae) === pf ? at(f, {
|
13249
13249
|
placement: Ae,
|
13250
|
-
boundary:
|
13251
|
-
rootBoundary:
|
13250
|
+
boundary: g,
|
13251
|
+
rootBoundary: c,
|
13252
13252
|
padding: l,
|
13253
13253
|
flipVariations: p,
|
13254
|
-
allowedAutoPlacements:
|
13254
|
+
allowedAutoPlacements: y
|
13255
13255
|
}) : Ae);
|
13256
|
-
}, []),
|
13257
|
-
var C =
|
13256
|
+
}, []), j = f.rects.reference, V = f.rects.popper, E = /* @__PURE__ */ new Map(), z = !0, L = N[0], O = 0; O < N.length; O++) {
|
13257
|
+
var C = N[O], Y = ee(C), ie = Ie(C) === he, we = [q, $].indexOf(Y) >= 0, De = we ? "width" : "height", J = Se(f, {
|
13258
13258
|
placement: C,
|
13259
|
-
boundary:
|
13260
|
-
rootBoundary:
|
13259
|
+
boundary: g,
|
13260
|
+
rootBoundary: c,
|
13261
13261
|
altBoundary: m,
|
13262
13262
|
padding: l
|
13263
|
-
}), G = we ? ie ?
|
13264
|
-
|
13263
|
+
}), G = we ? ie ? Z : F : ie ? $ : q;
|
13264
|
+
j[De] > V[De] && (G = Je(G));
|
13265
13265
|
var Ue = Je(G), oe = [];
|
13266
|
-
if (
|
13267
|
-
return
|
13266
|
+
if (t && oe.push(J[Y] <= 0), i && oe.push(J[G] <= 0, J[Ue] <= 0), oe.every(function(me) {
|
13267
|
+
return me;
|
13268
13268
|
})) {
|
13269
13269
|
L = C, z = !1;
|
13270
13270
|
break;
|
13271
13271
|
}
|
13272
|
-
|
13272
|
+
E.set(C, oe);
|
13273
13273
|
}
|
13274
13274
|
if (z)
|
13275
13275
|
for (var Le = p ? 3 : 1, Xe = function(Ae) {
|
13276
|
-
var ke =
|
13277
|
-
var ue =
|
13276
|
+
var ke = N.find(function(Be) {
|
13277
|
+
var ue = E.get(Be);
|
13278
13278
|
if (ue)
|
13279
13279
|
return ue.slice(0, Ae).every(function(ef) {
|
13280
13280
|
return ef;
|
@@ -13300,7 +13300,7 @@ var st = {
|
|
13300
13300
|
_skip: !1
|
13301
13301
|
}
|
13302
13302
|
};
|
13303
|
-
function
|
13303
|
+
function Rf(e, f, n) {
|
13304
13304
|
return n === void 0 && (n = {
|
13305
13305
|
x: 0,
|
13306
13306
|
y: 0
|
@@ -13311,25 +13311,25 @@ function Yf(e, f, n) {
|
|
13311
13311
|
left: e.left - f.width - n.x
|
13312
13312
|
};
|
13313
13313
|
}
|
13314
|
-
function
|
13315
|
-
return [q,
|
13314
|
+
function qf(e) {
|
13315
|
+
return [q, Z, $, F].some(function(f) {
|
13316
13316
|
return e[f] >= 0;
|
13317
13317
|
});
|
13318
13318
|
}
|
13319
13319
|
function it(e) {
|
13320
|
-
var f = e.state, n = e.name, a = f.rects.reference, A = f.rects.popper,
|
13320
|
+
var f = e.state, n = e.name, a = f.rects.reference, A = f.rects.popper, t = f.modifiersData.preventOverflow, s = Se(f, {
|
13321
13321
|
elementContext: "reference"
|
13322
13322
|
}), i = Se(f, {
|
13323
13323
|
altBoundary: !0
|
13324
|
-
}), u =
|
13324
|
+
}), u = Rf(s, a), l = Rf(i, A, t), g = qf(u), c = qf(l);
|
13325
13325
|
f.modifiersData[n] = {
|
13326
13326
|
referenceClippingOffsets: u,
|
13327
13327
|
popperEscapeOffsets: l,
|
13328
|
-
isReferenceHidden:
|
13329
|
-
hasPopperEscaped:
|
13328
|
+
isReferenceHidden: g,
|
13329
|
+
hasPopperEscaped: c
|
13330
13330
|
}, f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
13331
|
-
"data-popper-reference-hidden":
|
13332
|
-
"data-popper-escaped":
|
13331
|
+
"data-popper-reference-hidden": g,
|
13332
|
+
"data-popper-escaped": c
|
13333
13333
|
});
|
13334
13334
|
}
|
13335
13335
|
var ot = {
|
@@ -13340,22 +13340,22 @@ var ot = {
|
|
13340
13340
|
fn: it
|
13341
13341
|
};
|
13342
13342
|
function ut(e, f, n) {
|
13343
|
-
var a = ee(e), A = [F, q].indexOf(a) >= 0 ? -1 : 1,
|
13343
|
+
var a = ee(e), A = [F, q].indexOf(a) >= 0 ? -1 : 1, t = typeof n == "function" ? n(Object.assign({}, f, {
|
13344
13344
|
placement: e
|
13345
|
-
})) : n,
|
13346
|
-
return
|
13345
|
+
})) : n, s = t[0], i = t[1];
|
13346
|
+
return s = s || 0, i = (i || 0) * A, [F, Z].indexOf(a) >= 0 ? {
|
13347
13347
|
x: i,
|
13348
|
-
y:
|
13348
|
+
y: s
|
13349
13349
|
} : {
|
13350
|
-
x:
|
13350
|
+
x: s,
|
13351
13351
|
y: i
|
13352
13352
|
};
|
13353
13353
|
}
|
13354
13354
|
function rt(e) {
|
13355
|
-
var f = e.state, n = e.options, a = e.name, A = n.offset,
|
13356
|
-
return c
|
13357
|
-
}, {}), i =
|
13358
|
-
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += u, f.modifiersData.popperOffsets.y += l), f.modifiersData[a] =
|
13355
|
+
var f = e.state, n = e.options, a = e.name, A = n.offset, t = A === void 0 ? [0, 0] : A, s = en.reduce(function(g, c) {
|
13356
|
+
return g[c] = ut(c, f.rects, t), g;
|
13357
|
+
}, {}), i = s[f.placement], u = i.x, l = i.y;
|
13358
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += u, f.modifiersData.popperOffsets.y += l), f.modifiersData[a] = s;
|
13359
13359
|
}
|
13360
13360
|
var lt = {
|
13361
13361
|
name: "offset",
|
@@ -13384,14 +13384,14 @@ function gt(e) {
|
|
13384
13384
|
return e === "x" ? "y" : "x";
|
13385
13385
|
}
|
13386
13386
|
function mt(e) {
|
13387
|
-
var f = e.state, n = e.options, a = e.name, A = n.mainAxis,
|
13387
|
+
var f = e.state, n = e.options, a = e.name, A = n.mainAxis, t = A === void 0 ? !0 : A, s = n.altAxis, i = s === void 0 ? !1 : s, u = n.boundary, l = n.rootBoundary, g = n.altBoundary, c = n.padding, m = n.tether, M = m === void 0 ? !0 : m, p = n.tetherOffset, y = p === void 0 ? 0 : p, h = Se(f, {
|
13388
13388
|
boundary: u,
|
13389
13389
|
rootBoundary: l,
|
13390
|
-
padding:
|
13391
|
-
altBoundary:
|
13392
|
-
}),
|
13390
|
+
padding: c,
|
13391
|
+
altBoundary: g
|
13392
|
+
}), _ = ee(f.placement), I = Ie(f.placement), D = !I, N = hf(_), j = gt(N), V = f.modifiersData.popperOffsets, E = f.rects.reference, z = f.rects.popper, L = typeof y == "function" ? y(Object.assign({}, f.rects, {
|
13393
13393
|
placement: f.placement
|
13394
|
-
})) :
|
13394
|
+
})) : y, O = typeof L == "number" ? {
|
13395
13395
|
mainAxis: L,
|
13396
13396
|
altAxis: L
|
13397
13397
|
} : Object.assign({
|
@@ -13401,17 +13401,17 @@ function mt(e) {
|
|
13401
13401
|
x: 0,
|
13402
13402
|
y: 0
|
13403
13403
|
};
|
13404
|
-
if (
|
13405
|
-
if (
|
13406
|
-
var ie, we =
|
13404
|
+
if (V) {
|
13405
|
+
if (t) {
|
13406
|
+
var ie, we = N === "y" ? q : F, De = N === "y" ? $ : Z, J = N === "y" ? "height" : "width", G = V[N], Ue = G + h[we], oe = G - h[De], Le = M ? -z[J] / 2 : 0, Xe = I === he ? E[J] : z[J], Ne = I === he ? -z[J] : -E[J], Qe = f.elements.arrow, me = M && Qe ? Mf(Qe) : {
|
13407
13407
|
width: 0,
|
13408
13408
|
height: 0
|
13409
|
-
}, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : an(), ke = Ae[we], Be = Ae[De], ue = Ve(0,
|
13410
|
-
|
13409
|
+
}, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : an(), ke = Ae[we], Be = Ae[De], ue = Ve(0, E[J], me[J]), ef = D ? E[J] / 2 - Le - ue - ke - O.mainAxis : Xe - ue - ke - O.mainAxis, dn = D ? -E[J] / 2 + Le + ue + Be + O.mainAxis : Ne + ue + Be + O.mainAxis, ff = f.elements.arrow && Oe(f.elements.arrow), gn = ff ? N === "y" ? ff.clientTop || 0 : ff.clientLeft || 0 : 0, If = (ie = C == null ? void 0 : C[N]) != null ? ie : 0, mn = G + ef - If - gn, pn = G + dn - If, _f = Ve(M ? Ke(Ue, mn) : Ue, G, M ? ce(oe, pn) : oe);
|
13410
|
+
V[N] = _f, Y[N] = _f - G;
|
13411
13411
|
}
|
13412
13412
|
if (i) {
|
13413
|
-
var
|
13414
|
-
j
|
13413
|
+
var wf, Mn = N === "x" ? q : F, hn = N === "x" ? $ : Z, re = V[j], Ye = j === "y" ? "height" : "width", Df = re + h[Mn], Nf = re - h[hn], nf = [q, F].indexOf(_) !== -1, kf = (wf = C == null ? void 0 : C[j]) != null ? wf : 0, jf = nf ? Df : re - E[Ye] - z[Ye] - kf + O.altAxis, Vf = nf ? re + E[Ye] + z[Ye] - kf - O.altAxis : Nf, Ef = M && nf ? QA(jf, re, Vf) : Ve(M ? jf : Df, re, M ? Vf : Nf);
|
13414
|
+
V[j] = Ef, Y[j] = Ef - re;
|
13415
13415
|
}
|
13416
13416
|
f.modifiersData[a] = Y;
|
13417
13417
|
}
|
@@ -13430,7 +13430,7 @@ function Mt(e) {
|
|
13430
13430
|
};
|
13431
13431
|
}
|
13432
13432
|
function ht(e) {
|
13433
|
-
return e === X(e) || !P(e) ?
|
13433
|
+
return e === X(e) || !P(e) ? bf(e) : Mt(e);
|
13434
13434
|
}
|
13435
13435
|
function bt(e) {
|
13436
13436
|
var f = e.getBoundingClientRect(), n = ye(f.width) / e.offsetWidth || 1, a = ye(f.height) / e.offsetHeight || 1;
|
@@ -13438,37 +13438,37 @@ function bt(e) {
|
|
13438
13438
|
}
|
13439
13439
|
function yt(e, f, n) {
|
13440
13440
|
n === void 0 && (n = !1);
|
13441
|
-
var a = P(f), A = P(f) && bt(f),
|
13441
|
+
var a = P(f), A = P(f) && bt(f), t = se(f), s = ve(e, A), i = {
|
13442
13442
|
scrollLeft: 0,
|
13443
13443
|
scrollTop: 0
|
13444
13444
|
}, u = {
|
13445
13445
|
x: 0,
|
13446
13446
|
y: 0
|
13447
13447
|
};
|
13448
|
-
return (a || !a && !n) && ((fe(f) !== "body" ||
|
13449
|
-
x:
|
13450
|
-
y:
|
13451
|
-
width:
|
13452
|
-
height:
|
13448
|
+
return (a || !a && !n) && ((fe(f) !== "body" || vf(t)) && (i = ht(f)), P(f) ? (u = ve(f, !0), u.x += f.clientLeft, u.y += f.clientTop) : t && (u.x = yf(t))), {
|
13449
|
+
x: s.left + i.scrollLeft - u.x,
|
13450
|
+
y: s.top + i.scrollTop - u.y,
|
13451
|
+
width: s.width,
|
13452
|
+
height: s.height
|
13453
13453
|
};
|
13454
13454
|
}
|
13455
13455
|
function vt(e) {
|
13456
13456
|
var f = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
|
13457
|
-
e.forEach(function(
|
13458
|
-
f.set(
|
13457
|
+
e.forEach(function(t) {
|
13458
|
+
f.set(t.name, t);
|
13459
13459
|
});
|
13460
|
-
function A(
|
13461
|
-
n.add(
|
13462
|
-
var
|
13463
|
-
|
13460
|
+
function A(t) {
|
13461
|
+
n.add(t.name);
|
13462
|
+
var s = [].concat(t.requires || [], t.requiresIfExists || []);
|
13463
|
+
s.forEach(function(i) {
|
13464
13464
|
if (!n.has(i)) {
|
13465
13465
|
var u = f.get(i);
|
13466
13466
|
u && A(u);
|
13467
13467
|
}
|
13468
|
-
}), a.push(
|
13468
|
+
}), a.push(t);
|
13469
13469
|
}
|
13470
|
-
return e.forEach(function(
|
13471
|
-
n.has(
|
13470
|
+
return e.forEach(function(t) {
|
13471
|
+
n.has(t.name) || A(t);
|
13472
13472
|
}), a;
|
13473
13473
|
}
|
13474
13474
|
function It(e) {
|
@@ -13501,12 +13501,12 @@ function wt(e) {
|
|
13501
13501
|
return f[n];
|
13502
13502
|
});
|
13503
13503
|
}
|
13504
|
-
var
|
13504
|
+
var Ff = {
|
13505
13505
|
placement: "bottom",
|
13506
13506
|
modifiers: [],
|
13507
13507
|
strategy: "absolute"
|
13508
13508
|
};
|
13509
|
-
function
|
13509
|
+
function Jf() {
|
13510
13510
|
for (var e = arguments.length, f = new Array(e), n = 0; n < e; n++)
|
13511
13511
|
f[n] = arguments[n];
|
13512
13512
|
return !f.some(function(a) {
|
@@ -13515,13 +13515,13 @@ function Ff() {
|
|
13515
13515
|
}
|
13516
13516
|
function Dt(e) {
|
13517
13517
|
e === void 0 && (e = {});
|
13518
|
-
var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, A = f.defaultOptions,
|
13518
|
+
var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, A = f.defaultOptions, t = A === void 0 ? Ff : A;
|
13519
13519
|
return function(i, u, l) {
|
13520
|
-
l === void 0 && (l =
|
13521
|
-
var
|
13520
|
+
l === void 0 && (l = t);
|
13521
|
+
var g = {
|
13522
13522
|
placement: "bottom",
|
13523
13523
|
orderedModifiers: [],
|
13524
|
-
options: Object.assign({},
|
13524
|
+
options: Object.assign({}, Ff, t),
|
13525
13525
|
modifiersData: {},
|
13526
13526
|
elements: {
|
13527
13527
|
reference: i,
|
@@ -13529,80 +13529,80 @@ function Dt(e) {
|
|
13529
13529
|
},
|
13530
13530
|
attributes: {},
|
13531
13531
|
styles: {}
|
13532
|
-
},
|
13533
|
-
state:
|
13534
|
-
setOptions: function(
|
13535
|
-
var
|
13536
|
-
|
13532
|
+
}, c = [], m = !1, M = {
|
13533
|
+
state: g,
|
13534
|
+
setOptions: function(_) {
|
13535
|
+
var I = typeof _ == "function" ? _(g.options) : _;
|
13536
|
+
y(), g.options = Object.assign({}, t, g.options, I), g.scrollParents = {
|
13537
13537
|
reference: be(i) ? Ee(i) : i.contextElement ? Ee(i.contextElement) : [],
|
13538
13538
|
popper: Ee(u)
|
13539
13539
|
};
|
13540
|
-
var
|
13541
|
-
return
|
13542
|
-
return
|
13543
|
-
}), p(),
|
13540
|
+
var D = It(wt([].concat(a, g.options.modifiers)));
|
13541
|
+
return g.orderedModifiers = D.filter(function(N) {
|
13542
|
+
return N.enabled;
|
13543
|
+
}), p(), M.update();
|
13544
13544
|
},
|
13545
13545
|
forceUpdate: function() {
|
13546
13546
|
if (!m) {
|
13547
|
-
var
|
13548
|
-
if (
|
13549
|
-
|
13550
|
-
reference: yt(
|
13551
|
-
popper:
|
13552
|
-
},
|
13553
|
-
return
|
13547
|
+
var _ = g.elements, I = _.reference, D = _.popper;
|
13548
|
+
if (Jf(I, D)) {
|
13549
|
+
g.rects = {
|
13550
|
+
reference: yt(I, Oe(D), g.options.strategy === "fixed"),
|
13551
|
+
popper: Mf(D)
|
13552
|
+
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(O) {
|
13553
|
+
return g.modifiersData[O.name] = Object.assign({}, O.data);
|
13554
13554
|
});
|
13555
|
-
for (var
|
13556
|
-
if (
|
13557
|
-
|
13555
|
+
for (var N = 0; N < g.orderedModifiers.length; N++) {
|
13556
|
+
if (g.reset === !0) {
|
13557
|
+
g.reset = !1, N = -1;
|
13558
13558
|
continue;
|
13559
13559
|
}
|
13560
|
-
var
|
13561
|
-
typeof
|
13562
|
-
state:
|
13560
|
+
var j = g.orderedModifiers[N], V = j.fn, E = j.options, z = E === void 0 ? {} : E, L = j.name;
|
13561
|
+
typeof V == "function" && (g = V({
|
13562
|
+
state: g,
|
13563
13563
|
options: z,
|
13564
13564
|
name: L,
|
13565
|
-
instance:
|
13566
|
-
}) ||
|
13565
|
+
instance: M
|
13566
|
+
}) || g);
|
13567
13567
|
}
|
13568
13568
|
}
|
13569
13569
|
}
|
13570
13570
|
},
|
13571
13571
|
update: _t(function() {
|
13572
|
-
return new Promise(function(
|
13573
|
-
|
13572
|
+
return new Promise(function(h) {
|
13573
|
+
M.forceUpdate(), h(g);
|
13574
13574
|
});
|
13575
13575
|
}),
|
13576
13576
|
destroy: function() {
|
13577
|
-
|
13577
|
+
y(), m = !0;
|
13578
13578
|
}
|
13579
13579
|
};
|
13580
|
-
if (!
|
13581
|
-
return
|
13582
|
-
|
13583
|
-
!m && l.onFirstUpdate && l.onFirstUpdate(
|
13580
|
+
if (!Jf(i, u))
|
13581
|
+
return M;
|
13582
|
+
M.setOptions(l).then(function(h) {
|
13583
|
+
!m && l.onFirstUpdate && l.onFirstUpdate(h);
|
13584
13584
|
});
|
13585
13585
|
function p() {
|
13586
|
-
|
13587
|
-
var
|
13588
|
-
if (typeof
|
13589
|
-
var
|
13590
|
-
state:
|
13591
|
-
name:
|
13592
|
-
instance:
|
13593
|
-
options:
|
13594
|
-
}),
|
13586
|
+
g.orderedModifiers.forEach(function(h) {
|
13587
|
+
var _ = h.name, I = h.options, D = I === void 0 ? {} : I, N = h.effect;
|
13588
|
+
if (typeof N == "function") {
|
13589
|
+
var j = N({
|
13590
|
+
state: g,
|
13591
|
+
name: _,
|
13592
|
+
instance: M,
|
13593
|
+
options: D
|
13594
|
+
}), V = function() {
|
13595
13595
|
};
|
13596
|
-
|
13596
|
+
c.push(j || V);
|
13597
13597
|
}
|
13598
13598
|
});
|
13599
13599
|
}
|
13600
|
-
function
|
13601
|
-
|
13602
|
-
return
|
13603
|
-
}),
|
13600
|
+
function y() {
|
13601
|
+
c.forEach(function(h) {
|
13602
|
+
return h();
|
13603
|
+
}), c = [];
|
13604
13604
|
}
|
13605
|
-
return
|
13605
|
+
return M;
|
13606
13606
|
};
|
13607
13607
|
}
|
13608
13608
|
var Nt = [PA, dt, HA, CA, lt, st, pt, qA, ot], kt = /* @__PURE__ */ Dt({
|
@@ -13613,26 +13613,26 @@ function We(e) {
|
|
13613
13613
|
}
|
13614
13614
|
function jt(e, f, n, a = []) {
|
13615
13615
|
const A = {};
|
13616
|
-
return Object.keys(e).forEach((
|
13617
|
-
if (a.includes(
|
13616
|
+
return Object.keys(e).forEach((t) => {
|
13617
|
+
if (a.includes(t))
|
13618
13618
|
return;
|
13619
|
-
const
|
13620
|
-
e[
|
13619
|
+
const s = [];
|
13620
|
+
e[t].forEach((i) => {
|
13621
13621
|
var u;
|
13622
|
-
if (i[
|
13623
|
-
let l = i[
|
13622
|
+
if (i[Ze][0].includes(f.toLocaleLowerCase())) {
|
13623
|
+
let l = i[$f];
|
13624
13624
|
if (n !== He && Array.isArray(i[Re])) {
|
13625
|
-
const
|
13626
|
-
(
|
13625
|
+
const g = ((u = i[Re]) == null ? void 0 : u.findIndex(
|
13626
|
+
(c) => c.includes(n)
|
13627
13627
|
)) || -1;
|
13628
|
-
|
13628
|
+
g !== -1 && i[Re] && (l = i[Re][g]);
|
13629
13629
|
}
|
13630
|
-
return
|
13630
|
+
return s.push({
|
13631
13631
|
...i,
|
13632
13632
|
[Te]: l
|
13633
13633
|
});
|
13634
13634
|
}
|
13635
|
-
}),
|
13635
|
+
}), s.length && (A[t] = s);
|
13636
13636
|
}), A;
|
13637
13637
|
}
|
13638
13638
|
function rn() {
|
@@ -13651,7 +13651,7 @@ var Ce = (e, f) => {
|
|
13651
13651
|
n[a] = A;
|
13652
13652
|
return n;
|
13653
13653
|
};
|
13654
|
-
const Vt =
|
13654
|
+
const Vt = de({
|
13655
13655
|
name: "Body",
|
13656
13656
|
emits: {
|
13657
13657
|
select: (e) => !0
|
@@ -13662,32 +13662,32 @@ const Vt = ce({
|
|
13662
13662
|
e.search,
|
13663
13663
|
e.skinTone,
|
13664
13664
|
e.options.disabledGroups
|
13665
|
-
)),
|
13665
|
+
)), t = vn(), s = x(() => !e.options.hideGroupNames), i = x(() => !e.options.disableStickyGroupNames), u = Wf(e.options.groupNames), l = e.orderedGroupKeys;
|
13666
13666
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((p) => {
|
13667
13667
|
e.options.groupNames[p] ? u[p] = e.options.groupNames[p] : u[p] = ln(p);
|
13668
13668
|
});
|
13669
|
-
const
|
13670
|
-
function
|
13669
|
+
const g = rn() ? "is-mac" : "";
|
13670
|
+
function c(p) {
|
13671
13671
|
f(p);
|
13672
13672
|
}
|
13673
13673
|
function m(p) {
|
13674
|
-
n(p),
|
13674
|
+
n(p), t == null || t.emit("select", {
|
13675
13675
|
...p,
|
13676
13676
|
t: e.skinTone,
|
13677
13677
|
i: We(p.r)
|
13678
13678
|
});
|
13679
13679
|
}
|
13680
|
-
function
|
13681
|
-
var
|
13682
|
-
const
|
13683
|
-
|
13680
|
+
function M(p, y) {
|
13681
|
+
var h;
|
13682
|
+
const _ = (h = p == null ? void 0 : p.target) == null ? void 0 : h.closest("button");
|
13683
|
+
_ && (_.innerHTML = `<span>${We(y)}</span>`);
|
13684
13684
|
}
|
13685
|
-
return
|
13685
|
+
return $e(
|
13686
13686
|
() => e.activeGroup,
|
13687
13687
|
() => {
|
13688
13688
|
var p;
|
13689
|
-
const
|
13690
|
-
|
13689
|
+
const y = (p = a.value) == null ? void 0 : p.querySelector("#" + e.activeGroup);
|
13690
|
+
y && (y.parentNode.scrollTop = y.offsetTop - y.parentNode.offsetTop);
|
13691
13691
|
}
|
13692
13692
|
), {
|
13693
13693
|
emojis: A,
|
@@ -13695,15 +13695,15 @@ const Vt = ce({
|
|
13695
13695
|
EMOJI_REMOTE_SRC: Kf,
|
13696
13696
|
GROUP_NAMES: Pf,
|
13697
13697
|
handleClick: m,
|
13698
|
-
handleError:
|
13699
|
-
handleMouseEnter:
|
13698
|
+
handleError: M,
|
13699
|
+
handleMouseEnter: c,
|
13700
13700
|
native: e.options.native,
|
13701
13701
|
unicodeToEmoji: We,
|
13702
13702
|
EMOJI_RESULT_KEY: Te,
|
13703
|
-
EMOJI_NAME_KEY:
|
13704
|
-
hasGroupNames:
|
13703
|
+
EMOJI_NAME_KEY: Ze,
|
13704
|
+
hasGroupNames: s,
|
13705
13705
|
isSticky: i,
|
13706
|
-
platform:
|
13706
|
+
platform: g,
|
13707
13707
|
groupNames: u,
|
13708
13708
|
orderedKeys: l
|
13709
13709
|
};
|
@@ -13712,31 +13712,31 @@ const Vt = ce({
|
|
13712
13712
|
key: 1,
|
13713
13713
|
class: "v3-no-result"
|
13714
13714
|
};
|
13715
|
-
function Ut(e, f, n, a, A,
|
13715
|
+
function Ut(e, f, n, a, A, t) {
|
13716
13716
|
return r(), d("div", Et, [
|
13717
13717
|
o("div", {
|
13718
13718
|
ref: "bodyInner",
|
13719
|
-
class:
|
13719
|
+
class: T([e.platform, "v3-body-inner"])
|
13720
13720
|
}, [
|
13721
|
-
e.orderedKeys.length ? (r(!0), d(B, { key: 0 }, R(e.orderedKeys, (
|
13722
|
-
id:
|
13723
|
-
key:
|
13721
|
+
e.orderedKeys.length ? (r(!0), d(B, { key: 0 }, R(e.orderedKeys, (s) => (r(), d("div", {
|
13722
|
+
id: s,
|
13723
|
+
key: s,
|
13724
13724
|
class: "v3-group"
|
13725
13725
|
}, [
|
13726
13726
|
e.hasGroupNames ? ae((r(), d("h5", {
|
13727
13727
|
key: 0,
|
13728
|
-
class:
|
13729
|
-
},
|
13730
|
-
[pe, e.emojis[
|
13731
|
-
]) :
|
13728
|
+
class: T(e.isSticky ? "v3-sticky" : "")
|
13729
|
+
}, w(e.groupNames[s]), 3)), [
|
13730
|
+
[pe, e.emojis[s]]
|
13731
|
+
]) : b("", !0),
|
13732
13732
|
ae(o("div", xt, [
|
13733
|
-
(r(!0), d(B, null, R(e.emojis[
|
13733
|
+
(r(!0), d(B, null, R(e.emojis[s], (i) => (r(), d("button", {
|
13734
13734
|
key: i.r,
|
13735
13735
|
type: "button",
|
13736
13736
|
onMouseenter: (u) => e.handleMouseEnter(i),
|
13737
13737
|
onClick: (u) => e.handleClick(i)
|
13738
13738
|
}, [
|
13739
|
-
e.native ? (r(), d("span", zt,
|
13739
|
+
e.native ? (r(), d("span", zt, w(e.unicodeToEmoji(i.r)), 1)) : (r(), d("img", {
|
13740
13740
|
key: 1,
|
13741
13741
|
src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
|
13742
13742
|
alt: i.n[0],
|
@@ -13744,38 +13744,38 @@ function Ut(e, f, n, a, A, s) {
|
|
13744
13744
|
}, null, 40, Ot))
|
13745
13745
|
], 40, St))), 128))
|
13746
13746
|
], 512), [
|
13747
|
-
[pe, e.emojis[
|
13747
|
+
[pe, e.emojis[s]]
|
13748
13748
|
])
|
13749
13749
|
], 8, Tt))), 128)) : (r(), d("span", Ct, " No emoji has been found! "))
|
13750
13750
|
], 2)
|
13751
13751
|
]);
|
13752
13752
|
}
|
13753
13753
|
var Lt = /* @__PURE__ */ Ce(Vt, [["render", Ut]]), Qt = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBa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TYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";
|
13754
|
-
const Ht =
|
13754
|
+
const Ht = de({
|
13755
13755
|
name: "Header",
|
13756
13756
|
setup(e) {
|
13757
|
-
const { state: f, updateSearch: n, updateActiveGroup: a } = Pe("store"), A = x(() => !f.options.hideSearch),
|
13757
|
+
const { state: f, updateSearch: n, updateActiveGroup: a } = Pe("store"), A = x(() => !f.options.hideSearch), t = x(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = x(
|
13758
13758
|
() => f.options.staticTexts.placeholder || ""
|
13759
13759
|
), u = x({
|
13760
13760
|
get: () => f.search,
|
13761
|
-
set: (
|
13761
|
+
set: (c) => n(c)
|
13762
13762
|
}), l = [
|
13763
13763
|
...f.groups,
|
13764
|
-
...Object.keys(f.options.additionalGroups).map((
|
13765
|
-
key:
|
13766
|
-
title: f.options.groupNames[
|
13764
|
+
...Object.keys(f.options.additionalGroups).map((c) => ({
|
13765
|
+
key: c,
|
13766
|
+
title: f.options.groupNames[c] ? f.options.groupNames[c] : ln(c)
|
13767
13767
|
}))
|
13768
|
-
],
|
13769
|
-
return
|
13770
|
-
const m = l.findIndex((
|
13771
|
-
m !== -1 && (
|
13768
|
+
], g = [];
|
13769
|
+
return s.forEach((c) => {
|
13770
|
+
const m = l.findIndex((M) => M.key === c);
|
13771
|
+
m !== -1 && (g.push(l[m]), l.splice(m, 1));
|
13772
13772
|
}), {
|
13773
|
-
orderedGroups:
|
13774
|
-
orderedKeys:
|
13773
|
+
orderedGroups: g,
|
13774
|
+
orderedKeys: s,
|
13775
13775
|
searchValue: u,
|
13776
13776
|
updateActiveGroup: a,
|
13777
13777
|
hasSearch: A,
|
13778
|
-
hasGroupIcons:
|
13778
|
+
hasGroupIcons: t,
|
13779
13779
|
placeholder: i,
|
13780
13780
|
icons: {
|
13781
13781
|
smileys_people: un,
|
@@ -13797,83 +13797,83 @@ const Ht = ce({
|
|
13797
13797
|
}, Pt = {
|
13798
13798
|
key: 0,
|
13799
13799
|
class: "v3-groups"
|
13800
|
-
},
|
13800
|
+
}, $t = ["onClick"], Zt = ["title"], Gt = ["src"], Xt = {
|
13801
13801
|
key: 1,
|
13802
13802
|
class: "v3-spacing"
|
13803
13803
|
}, e1 = {
|
13804
13804
|
key: 2,
|
13805
13805
|
class: "v3-search"
|
13806
13806
|
}, f1 = ["placeholder"];
|
13807
|
-
function n1(e, f, n, a, A,
|
13807
|
+
function n1(e, f, n, a, A, t) {
|
13808
13808
|
return e.hasGroupIcons || e.hasSearch ? (r(), d("div", Kt, [
|
13809
13809
|
e.hasGroupIcons ? (r(), d("div", Pt, [
|
13810
|
-
(r(!0), d(B, null, R(e.orderedGroups, (
|
13811
|
-
key:
|
13810
|
+
(r(!0), d(B, null, R(e.orderedGroups, (s) => (r(), d("button", {
|
13811
|
+
key: s.key,
|
13812
13812
|
type: "button",
|
13813
|
-
class:
|
13814
|
-
"v3-is-hidden": !e.icons[
|
13813
|
+
class: T(["v3-group", {
|
13814
|
+
"v3-is-hidden": !e.icons[s.key]
|
13815
13815
|
}]),
|
13816
|
-
onClick: (i) => e.updateActiveGroup(
|
13816
|
+
onClick: (i) => e.updateActiveGroup(s.key)
|
13817
13817
|
}, [
|
13818
13818
|
o("span", {
|
13819
|
-
title:
|
13819
|
+
title: s.title,
|
13820
13820
|
class: "v3-icon"
|
13821
13821
|
}, [
|
13822
13822
|
o("img", {
|
13823
|
-
src: e.icons[
|
13823
|
+
src: e.icons[s.key],
|
13824
13824
|
alt: ""
|
13825
13825
|
}, null, 8, Gt)
|
13826
|
-
], 8,
|
13827
|
-
], 10,
|
13828
|
-
])) :
|
13829
|
-
e.hasGroupIcons && e.hasSearch ? (r(), d("div", Xt)) :
|
13826
|
+
], 8, Zt)
|
13827
|
+
], 10, $t))), 128))
|
13828
|
+
])) : b("", !0),
|
13829
|
+
e.hasGroupIcons && e.hasSearch ? (r(), d("div", Xt)) : b("", !0),
|
13830
13830
|
e.hasSearch ? (r(), d("div", e1, [
|
13831
13831
|
ae(o("input", {
|
13832
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
13832
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
13833
13833
|
type: "text",
|
13834
13834
|
placeholder: e.placeholder
|
13835
13835
|
}, null, 8, f1), [
|
13836
|
-
[
|
13836
|
+
[Hf, e.searchValue]
|
13837
13837
|
])
|
13838
|
-
])) :
|
13839
|
-
])) :
|
13838
|
+
])) : b("", !0)
|
13839
|
+
])) : b("", !0);
|
13840
13840
|
}
|
13841
13841
|
var a1 = /* @__PURE__ */ Ce(Ht, [["render", n1]]);
|
13842
|
-
const A1 =
|
13842
|
+
const A1 = de({
|
13843
13843
|
name: "Header",
|
13844
13844
|
setup() {
|
13845
|
-
const { state: e, updateSkinTone: f } = Pe("store"), n = v(!1), a = v(!1), A = x(() => e.skinTone),
|
13845
|
+
const { state: e, updateSkinTone: f } = Pe("store"), n = v(!1), a = v(!1), A = x(() => e.skinTone), t = x(
|
13846
13846
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
13847
|
-
),
|
13847
|
+
), s = x(() => !e.options.disableSkinTones), i = rn() ? "is-mac" : "", u = x(() => ({
|
13848
13848
|
...e.emoji,
|
13849
13849
|
src: Kf + "/" + e.emoji[Te] + ".png"
|
13850
13850
|
}));
|
13851
13851
|
function l(m = !0) {
|
13852
13852
|
n.value = m;
|
13853
13853
|
}
|
13854
|
-
function
|
13854
|
+
function g() {
|
13855
13855
|
n.value = !n.value;
|
13856
13856
|
}
|
13857
|
-
function
|
13857
|
+
function c(m) {
|
13858
13858
|
f(m), l(!1);
|
13859
13859
|
}
|
13860
|
-
return
|
13860
|
+
return $e(
|
13861
13861
|
() => e.emoji,
|
13862
13862
|
() => {
|
13863
13863
|
a.value = !1;
|
13864
13864
|
}
|
13865
13865
|
), {
|
13866
13866
|
emoji: u,
|
13867
|
-
SKIN_TONES:
|
13867
|
+
SKIN_TONES: $a,
|
13868
13868
|
updateSkinToneState: l,
|
13869
13869
|
skinTone: n,
|
13870
13870
|
stateSkinTone: A,
|
13871
|
-
selectSkinTone:
|
13872
|
-
toggleSkinToneState:
|
13871
|
+
selectSkinTone: c,
|
13872
|
+
toggleSkinToneState: g,
|
13873
13873
|
EMOJI_RESULT_KEY: Te,
|
13874
|
-
EMOJI_NAME_KEY:
|
13875
|
-
skinToneText:
|
13876
|
-
hasSkinTones:
|
13874
|
+
EMOJI_NAME_KEY: Ze,
|
13875
|
+
skinToneText: t,
|
13876
|
+
hasSkinTones: s,
|
13877
13877
|
native: e.options.native,
|
13878
13878
|
unicodeToEmoji: We,
|
13879
13879
|
platform: i,
|
@@ -13881,50 +13881,50 @@ const A1 = ce({
|
|
13881
13881
|
};
|
13882
13882
|
}
|
13883
13883
|
}), t1 = { class: "v3-foot-left" }, s1 = { key: 0 }, i1 = ["alt", "src"], o1 = { class: "v3-text" }, u1 = { class: "v3-text" }, r1 = ["onClick"];
|
13884
|
-
function l1(e, f, n, a, A,
|
13884
|
+
function l1(e, f, n, a, A, t) {
|
13885
13885
|
return r(), d("div", {
|
13886
13886
|
class: "v3-footer",
|
13887
|
-
onMouseleave: f[2] || (f[2] = (
|
13887
|
+
onMouseleave: f[2] || (f[2] = (s) => e.updateSkinToneState(!1))
|
13888
13888
|
}, [
|
13889
13889
|
o("div", t1, [
|
13890
13890
|
o("span", {
|
13891
|
-
class:
|
13891
|
+
class: T([e.platform, "v3-icon"])
|
13892
13892
|
}, [
|
13893
|
-
e.native || e.hasError ? (r(), d("span", s1,
|
13893
|
+
e.native || e.hasError ? (r(), d("span", s1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), d("img", {
|
13894
13894
|
key: 1,
|
13895
13895
|
alt: e.unicodeToEmoji(e.emoji.r),
|
13896
13896
|
src: e.emoji.src,
|
13897
|
-
onError: f[0] || (f[0] = (
|
13897
|
+
onError: f[0] || (f[0] = (s) => e.hasError = !0)
|
13898
13898
|
}, null, 40, i1))
|
13899
13899
|
], 2),
|
13900
|
-
o("span", o1, " :" +
|
13900
|
+
o("span", o1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
13901
13901
|
]),
|
13902
13902
|
e.hasSkinTones ? (r(), d(B, { key: 0 }, [
|
13903
13903
|
o("button", {
|
13904
13904
|
type: "button",
|
13905
13905
|
class: "v3-tone",
|
13906
|
-
onClick: f[1] || (f[1] = (...
|
13906
|
+
onClick: f[1] || (f[1] = (...s) => e.toggleSkinToneState && e.toggleSkinToneState(...s))
|
13907
13907
|
}, [
|
13908
|
-
o("span", u1,
|
13908
|
+
o("span", u1, w(e.skinToneText), 1),
|
13909
13909
|
o("span", {
|
13910
|
-
class:
|
13910
|
+
class: T(`v3-icon v3-tone-${e.stateSkinTone}`)
|
13911
13911
|
}, null, 2)
|
13912
13912
|
]),
|
13913
13913
|
o("div", {
|
13914
|
-
class:
|
13914
|
+
class: T([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
13915
13915
|
}, [
|
13916
|
-
(r(!0), d(B, null, R(e.SKIN_TONES, (
|
13917
|
-
key:
|
13916
|
+
(r(!0), d(B, null, R(e.SKIN_TONES, (s) => (r(), d("button", {
|
13917
|
+
key: s,
|
13918
13918
|
type: "button",
|
13919
|
-
class:
|
13920
|
-
onClick: (i) => e.selectSkinTone(
|
13919
|
+
class: T(["v3-skin-tone-" + s, "v3-skin-tone"]),
|
13920
|
+
onClick: (i) => e.selectSkinTone(s)
|
13921
13921
|
}, null, 10, r1))), 128))
|
13922
13922
|
], 2)
|
13923
|
-
], 64)) :
|
13923
|
+
], 64)) : b("", !0)
|
13924
13924
|
], 32);
|
13925
13925
|
}
|
13926
13926
|
var c1 = /* @__PURE__ */ Ce(A1, [["render", l1]]);
|
13927
|
-
const d1 =
|
13927
|
+
const d1 = de({
|
13928
13928
|
name: "PickerRoot",
|
13929
13929
|
components: {
|
13930
13930
|
Header: a1,
|
@@ -13962,69 +13962,69 @@ const d1 = ce({
|
|
13962
13962
|
"update:text": (e) => !0
|
13963
13963
|
},
|
13964
13964
|
setup(e, { emit: f }) {
|
13965
|
-
const n = v(), a = v(), A = v(),
|
13965
|
+
const n = v(), a = v(), A = v(), t = v(!1), s = v(e.text), i = e.type === "input" || e.type === "textarea";
|
13966
13966
|
let u = -1;
|
13967
|
-
const { state: l } = Pe("store"),
|
13968
|
-
function
|
13967
|
+
const { state: l } = Pe("store"), g = x(() => l.options.colorTheme);
|
13968
|
+
function c(h) {
|
13969
13969
|
if (i) {
|
13970
|
-
const
|
13971
|
-
|
13970
|
+
const _ = l.options.mode;
|
13971
|
+
_ === "prepend" ? s.value = h.i + s.value : _ === "insert" && u !== -1 ? (s.value = `${s.value.slice(0, u)}${h.i}${s.value.slice(u)}`, u += h.i.length) : s.value += h.i, f("update:text", s.value);
|
13972
13972
|
}
|
13973
|
-
f("select",
|
13973
|
+
f("select", h);
|
13974
13974
|
}
|
13975
13975
|
function m() {
|
13976
|
-
var
|
13977
|
-
n.value && (u = ((
|
13976
|
+
var h;
|
13977
|
+
n.value && (u = ((h = n.value) == null ? void 0 : h.selectionEnd) || -1);
|
13978
13978
|
}
|
13979
|
-
function h
|
13980
|
-
var
|
13981
|
-
!((
|
13979
|
+
function M(h) {
|
13980
|
+
var _;
|
13981
|
+
!((_ = h.target) != null && _.closest(
|
13982
13982
|
".v3-input-picker-wrap"
|
13983
|
-
)) &&
|
13983
|
+
)) && t.value && (t.value = !1);
|
13984
13984
|
}
|
13985
13985
|
function p() {
|
13986
13986
|
if (a.value && A.value && i) {
|
13987
|
-
let
|
13988
|
-
typeof
|
13987
|
+
let h = l.options.offset;
|
13988
|
+
typeof h != "number" && (h = 6), kt(a.value, A.value, {
|
13989
13989
|
placement: "bottom-end",
|
13990
13990
|
modifiers: [
|
13991
13991
|
{
|
13992
13992
|
name: "offset",
|
13993
13993
|
options: {
|
13994
|
-
offset: [0,
|
13994
|
+
offset: [0, h]
|
13995
13995
|
}
|
13996
13996
|
}
|
13997
13997
|
]
|
13998
|
-
}), document.body.addEventListener("click",
|
13998
|
+
}), document.body.addEventListener("click", M);
|
13999
13999
|
}
|
14000
14000
|
}
|
14001
|
-
function
|
14002
|
-
|
14001
|
+
function y(h) {
|
14002
|
+
s.value = h.target.value || "", f("update:text", s.value);
|
14003
14003
|
}
|
14004
14004
|
return _e(() => {
|
14005
14005
|
p();
|
14006
14006
|
}), In(() => {
|
14007
|
-
document.body.removeEventListener("click",
|
14007
|
+
document.body.removeEventListener("click", M);
|
14008
14008
|
}), {
|
14009
14009
|
face: un,
|
14010
|
-
open:
|
14011
|
-
onSelect:
|
14012
|
-
input:
|
14010
|
+
open: t,
|
14011
|
+
onSelect: c,
|
14012
|
+
input: s,
|
14013
14013
|
elem: n,
|
14014
14014
|
updateCursor: m,
|
14015
14015
|
button: a,
|
14016
14016
|
picker: A,
|
14017
14017
|
isInputType: i,
|
14018
|
-
onChangeText:
|
14019
|
-
colorTheme:
|
14018
|
+
onChangeText: y,
|
14019
|
+
colorTheme: g
|
14020
14020
|
};
|
14021
14021
|
}
|
14022
14022
|
}), g1 = {
|
14023
14023
|
key: 0,
|
14024
14024
|
class: "v3-input-emoji-picker"
|
14025
14025
|
}, m1 = { class: "v3-input-picker-root" }, p1 = ["value"], M1 = ["value"], h1 = ["src"];
|
14026
|
-
function b1(e, f, n, a, A,
|
14027
|
-
const
|
14026
|
+
function b1(e, f, n, a, A, t) {
|
14027
|
+
const s = Fe("Header"), i = Fe("Body"), u = Fe("Footer");
|
14028
14028
|
return e.isInputType ? (r(), d("div", g1, [
|
14029
14029
|
o("div", m1, [
|
14030
14030
|
e.type === "input" ? (r(), d("input", {
|
@@ -14044,7 +14044,7 @@ function b1(e, f, n, a, A, s) {
|
|
14044
14044
|
onBlur: f[3] || (f[3] = (...l) => e.updateCursor && e.updateCursor(...l))
|
14045
14045
|
}, null, 40, M1)),
|
14046
14046
|
o("div", {
|
14047
|
-
class:
|
14047
|
+
class: T(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
14048
14048
|
}, [
|
14049
14049
|
o("button", {
|
14050
14050
|
ref: "button",
|
@@ -14059,9 +14059,9 @@ function b1(e, f, n, a, A, s) {
|
|
14059
14059
|
], 512),
|
14060
14060
|
o("div", {
|
14061
14061
|
ref: "picker",
|
14062
|
-
class:
|
14062
|
+
class: T(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14063
14063
|
}, [
|
14064
|
-
S(
|
14064
|
+
S(s),
|
14065
14065
|
S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14066
14066
|
S(u)
|
14067
14067
|
], 2)
|
@@ -14069,15 +14069,15 @@ function b1(e, f, n, a, A, s) {
|
|
14069
14069
|
])
|
14070
14070
|
])) : (r(), d("div", {
|
14071
14071
|
key: 1,
|
14072
|
-
class:
|
14072
|
+
class: T(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14073
14073
|
}, [
|
14074
|
-
S(
|
14074
|
+
S(s),
|
14075
14075
|
S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14076
14076
|
S(u)
|
14077
14077
|
], 2));
|
14078
14078
|
}
|
14079
14079
|
var y1 = /* @__PURE__ */ Ce(d1, [["render", b1]]);
|
14080
|
-
const v1 =
|
14080
|
+
const v1 = de({
|
14081
14081
|
name: "Picker",
|
14082
14082
|
components: {
|
14083
14083
|
PickerRoot: y1
|
@@ -14162,8 +14162,8 @@ const v1 = ce({
|
|
14162
14162
|
},
|
14163
14163
|
setup(e, { emit: f }) {
|
14164
14164
|
const n = v(e.text);
|
14165
|
-
function a(
|
14166
|
-
n.value =
|
14165
|
+
function a(t) {
|
14166
|
+
n.value = t || "", f("update:text", n.value);
|
14167
14167
|
}
|
14168
14168
|
const A = vA();
|
14169
14169
|
return A.updateOptions({
|
@@ -14171,7 +14171,7 @@ const v1 = ce({
|
|
14171
14171
|
hideSearch: e.hideSearch,
|
14172
14172
|
hideGroupIcons: e.hideGroupIcons,
|
14173
14173
|
hideGroupNames: e.hideGroupNames,
|
14174
|
-
staticTexts: {
|
14174
|
+
staticTexts: { ...Za, ...e.staticTexts },
|
14175
14175
|
disableStickyGroupNames: e.disableStickyGroupNames,
|
14176
14176
|
disabledGroups: e.disabledGroups,
|
14177
14177
|
groupNames: { ...Pf, ...e.groupNames },
|
@@ -14190,9 +14190,9 @@ const v1 = ce({
|
|
14190
14190
|
};
|
14191
14191
|
}
|
14192
14192
|
});
|
14193
|
-
function I1(e, f, n, a, A,
|
14194
|
-
const
|
14195
|
-
return r(), Q(
|
14193
|
+
function I1(e, f, n, a, A, t) {
|
14194
|
+
const s = Fe("picker-root");
|
14195
|
+
return r(), Q(s, {
|
14196
14196
|
type: e.type,
|
14197
14197
|
text: e.input,
|
14198
14198
|
onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
|
@@ -14220,18 +14220,18 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14220
14220
|
},
|
14221
14221
|
emits: ["selectChannel"],
|
14222
14222
|
setup(e, { emit: f }) {
|
14223
|
-
const n = v(!0), a = v(null), A = e,
|
14224
|
-
i.value =
|
14223
|
+
const n = v(!0), a = v(null), A = e, t = f, i = v(A.channels.find((c) => c.type === "default")), u = (c) => {
|
14224
|
+
i.value = c, l(), t("selectChannel", i.value);
|
14225
14225
|
}, l = () => {
|
14226
14226
|
n.value = !n.value;
|
14227
|
-
},
|
14228
|
-
a.value && !a.value.contains(
|
14227
|
+
}, g = (c) => {
|
14228
|
+
a.value && !a.value.contains(c.target) && (n.value = !1);
|
14229
14229
|
};
|
14230
14230
|
return _e(() => {
|
14231
|
-
document.addEventListener("click",
|
14231
|
+
document.addEventListener("click", g);
|
14232
14232
|
}), Nn(() => {
|
14233
|
-
document.removeEventListener("click",
|
14234
|
-
}), (
|
14233
|
+
document.removeEventListener("click", g);
|
14234
|
+
}), (c, m) => (r(), d("div", {
|
14235
14235
|
ref_key: "customDiv",
|
14236
14236
|
ref: a,
|
14237
14237
|
class: "channels"
|
@@ -14249,8 +14249,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14249
14249
|
o("img", {
|
14250
14250
|
src: i.value.icon
|
14251
14251
|
}, null, 8, j1)
|
14252
|
-
])) :
|
14253
|
-
o("span", V1,
|
14252
|
+
])) : b("", !0),
|
14253
|
+
o("span", V1, w(i.value.title), 1)
|
14254
14254
|
])) : (r(), d("span", E1, "Чат не выбран"))
|
14255
14255
|
]),
|
14256
14256
|
S(H, null, {
|
@@ -14263,23 +14263,23 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14263
14263
|
}, [
|
14264
14264
|
o("div", T1, [
|
14265
14265
|
o("ul", x1, [
|
14266
|
-
(r(!0), d(B, null, R(e.channels, (
|
14267
|
-
key:
|
14266
|
+
(r(!0), d(B, null, R(e.channels, (M) => (r(), d("li", {
|
14267
|
+
key: M.channelId,
|
14268
14268
|
class: "channels__popover-item",
|
14269
|
-
onClick: (p) => u(
|
14270
|
-
},
|
14269
|
+
onClick: (p) => u(M)
|
14270
|
+
}, w(M.title), 9, S1))), 128))
|
14271
14271
|
])
|
14272
14272
|
])
|
14273
|
-
])) :
|
14273
|
+
])) : b("", !0)
|
14274
14274
|
]),
|
14275
14275
|
_: 1
|
14276
14276
|
})
|
14277
14277
|
])
|
14278
14278
|
], 512));
|
14279
14279
|
}
|
14280
|
-
}, O1 = /* @__PURE__ */
|
14280
|
+
}, O1 = /* @__PURE__ */ k(z1, [["__scopeId", "data-v-86fe4e8b"]]), C1 = { class: "chat-input" }, U1 = { class: "chat-input__container" }, L1 = {
|
14281
14281
|
__name: "ChatInput",
|
14282
|
-
props: /* @__PURE__ */
|
14282
|
+
props: /* @__PURE__ */ Tf({
|
14283
14283
|
enableEmoji: {
|
14284
14284
|
type: Boolean,
|
14285
14285
|
required: !1,
|
@@ -14298,74 +14298,74 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14298
14298
|
modelValue: {},
|
14299
14299
|
modelModifiers: {}
|
14300
14300
|
}),
|
14301
|
-
emits: /* @__PURE__ */
|
14301
|
+
emits: /* @__PURE__ */ Tf(["send", "typing"], ["update:modelValue"]),
|
14302
14302
|
setup(e, { emit: f }) {
|
14303
|
-
const n = f, a = jn(e, "modelValue"), A = v(null),
|
14304
|
-
console.log("fileUploaded", p),
|
14303
|
+
const n = f, a = jn(e, "modelValue"), A = v(null), t = v(null), s = x(() => !t.value || t.value === ""), i = v(!1), u = (p) => {
|
14304
|
+
console.log("fileUploaded", p), t.value = p;
|
14305
14305
|
}, l = (p) => {
|
14306
14306
|
n("typing", p.target.value);
|
14307
|
-
},
|
14307
|
+
}, g = () => {
|
14308
14308
|
i.value = !1;
|
14309
14309
|
const p = {
|
14310
14310
|
type: null,
|
14311
14311
|
text: null
|
14312
14312
|
};
|
14313
|
-
|
14314
|
-
},
|
14313
|
+
t.value ? (p.type = "message.file", p.text = t.value) : (p.type = "message.text", p.text = a.value.trim()), n("send", p), t.value = !1, a.value = "", le(A).focus();
|
14314
|
+
}, c = () => {
|
14315
14315
|
i.value = !i.value;
|
14316
14316
|
}, m = x(() => {
|
14317
14317
|
if (document.documentElement.classList.contains("dark"))
|
14318
14318
|
return "dark";
|
14319
|
-
}),
|
14319
|
+
}), M = (p) => {
|
14320
14320
|
a.value = (a.value ? a.value : "") + p.i;
|
14321
14321
|
};
|
14322
|
-
return (p,
|
14322
|
+
return (p, y) => (r(), d("div", C1, [
|
14323
14323
|
o("div", U1, [
|
14324
14324
|
S(H, null, {
|
14325
14325
|
default: K(() => [
|
14326
|
-
i.value ? (r(), Q(
|
14326
|
+
i.value ? (r(), Q(le(_1), {
|
14327
14327
|
key: 0,
|
14328
14328
|
class: "chat-input__emoji",
|
14329
14329
|
native: !0,
|
14330
14330
|
theme: m.value,
|
14331
14331
|
"picker-type": "",
|
14332
|
-
onSelect:
|
14333
|
-
}, null, 8, ["theme"])) :
|
14332
|
+
onSelect: M
|
14333
|
+
}, null, 8, ["theme"])) : b("", !0)
|
14334
14334
|
]),
|
14335
14335
|
_: 1
|
14336
14336
|
}),
|
14337
|
-
S(
|
14338
|
-
"can-upload-file":
|
14337
|
+
S(le(si), {
|
14338
|
+
"can-upload-file": s.value,
|
14339
14339
|
onFileUploaded: u
|
14340
14340
|
}, null, 8, ["can-upload-file"]),
|
14341
14341
|
ae(o("input", {
|
14342
14342
|
ref_key: "refInput",
|
14343
14343
|
ref: A,
|
14344
|
-
"onUpdate:modelValue":
|
14344
|
+
"onUpdate:modelValue": y[0] || (y[0] = (h) => a.value = h),
|
14345
14345
|
class: "chat-input__input",
|
14346
14346
|
placeholder: "Type a message...",
|
14347
|
-
onKeydown: Vn(
|
14347
|
+
onKeydown: Vn(g, ["enter"]),
|
14348
14348
|
onInput: l
|
14349
14349
|
}, null, 544), [
|
14350
|
-
[
|
14350
|
+
[Hf, a.value]
|
14351
14351
|
]),
|
14352
14352
|
S(O1, { channels: e.channels }, null, 8, ["channels"]),
|
14353
14353
|
o("button", {
|
14354
14354
|
class: "chat-input__button-emoji",
|
14355
|
-
onClick:
|
14356
|
-
},
|
14355
|
+
onClick: c
|
14356
|
+
}, y[1] || (y[1] = [
|
14357
14357
|
o("span", { class: "pi pi-face-smile" }, null, -1)
|
14358
14358
|
])),
|
14359
14359
|
o("button", {
|
14360
14360
|
class: "chat-input__button-send",
|
14361
|
-
onClick:
|
14362
|
-
},
|
14361
|
+
onClick: g
|
14362
|
+
}, y[2] || (y[2] = [
|
14363
14363
|
o("span", { class: "pi pi-send" }, null, -1)
|
14364
14364
|
]))
|
14365
14365
|
])
|
14366
14366
|
]));
|
14367
14367
|
}
|
14368
|
-
},
|
14368
|
+
}, oo = /* @__PURE__ */ k(L1, [["__scopeId", "data-v-3f584ec9"]]), Q1 = { class: "chat-item__avatar-container" }, B1 = ["src"], Y1 = {
|
14369
14369
|
key: 1,
|
14370
14370
|
class: "pi pi-user"
|
14371
14371
|
}, R1 = { class: "chat-item__info-container" }, q1 = { class: "chat-item__name" }, F1 = {
|
@@ -14392,21 +14392,21 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14392
14392
|
setup(e, { emit: f }) {
|
14393
14393
|
const n = e, a = f, A = () => {
|
14394
14394
|
a("select", n.chat);
|
14395
|
-
},
|
14396
|
-
|
14395
|
+
}, t = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", s = (c) => {
|
14396
|
+
g(), a("action", { chatId: n.chat.chatId, ...c });
|
14397
14397
|
}, i = v(!1), u = v(!1), l = () => {
|
14398
14398
|
u.value = !0;
|
14399
|
-
},
|
14399
|
+
}, g = () => {
|
14400
14400
|
u.value = !1, i.value = !1;
|
14401
14401
|
};
|
14402
|
-
return (
|
14403
|
-
class:
|
14402
|
+
return (c, m) => (r(), d("div", {
|
14403
|
+
class: T(t()),
|
14404
14404
|
onClick: A
|
14405
14405
|
}, [
|
14406
14406
|
o("div", {
|
14407
14407
|
class: "chat-item__container",
|
14408
14408
|
onMouseenter: l,
|
14409
|
-
onMouseleave:
|
14409
|
+
onMouseleave: g
|
14410
14410
|
}, [
|
14411
14411
|
o("div", Q1, [
|
14412
14412
|
o("span", {
|
@@ -14421,45 +14421,45 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14421
14421
|
}, null, 8, B1)) : (r(), d("span", Y1))
|
14422
14422
|
]),
|
14423
14423
|
o("div", R1, [
|
14424
|
-
o("div", q1,
|
14425
|
-
e.chat.lastMessage ? (r(), d("div", F1,
|
14424
|
+
o("div", q1, w(e.chat.name), 1),
|
14425
|
+
e.chat.lastMessage ? (r(), d("div", F1, w(e.chat.lastMessage), 1)) : b("", !0)
|
14426
14426
|
]),
|
14427
14427
|
o("div", J1, [
|
14428
|
-
!(u.value && e.chat.actions) && e.chat["lastActivity.time"] ? (r(), d("div", W1,
|
14429
|
-
!(u.value && e.chat.actions) && e.chat.countUnread > 0 ? (r(), d("div", H1,
|
14428
|
+
!(u.value && e.chat.actions) && e.chat["lastActivity.time"] ? (r(), d("div", W1, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
|
14429
|
+
!(u.value && e.chat.actions) && e.chat.countUnread > 0 ? (r(), d("div", H1, w(e.chat.countUnread), 1)) : b("", !0),
|
14430
14430
|
u.value && e.chat.actions ? (r(), d("button", {
|
14431
14431
|
key: 2,
|
14432
14432
|
class: "chat-item__menu-button",
|
14433
|
-
onClick: m[0] || (m[0] = (
|
14433
|
+
onClick: m[0] || (m[0] = (M) => i.value = !i.value)
|
14434
14434
|
}, m[1] || (m[1] = [
|
14435
14435
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
14436
|
-
]))) :
|
14437
|
-
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), d("span", K1)) :
|
14436
|
+
]))) : b("", !0),
|
14437
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), d("span", K1)) : b("", !0)
|
14438
14438
|
]),
|
14439
14439
|
S(H, null, {
|
14440
14440
|
default: K(() => [
|
14441
|
-
i.value && e.chat.actions ? (r(), Q(
|
14441
|
+
i.value && e.chat.actions ? (r(), Q(ge, {
|
14442
14442
|
key: 0,
|
14443
14443
|
class: "chat-item__context-menu",
|
14444
14444
|
actions: e.chat.actions,
|
14445
|
-
onClick:
|
14446
|
-
}, null, 8, ["actions"])) :
|
14445
|
+
onClick: s
|
14446
|
+
}, null, 8, ["actions"])) : b("", !0)
|
14447
14447
|
]),
|
14448
14448
|
_: 1
|
14449
14449
|
})
|
14450
14450
|
], 32)
|
14451
14451
|
], 2));
|
14452
14452
|
}
|
14453
|
-
}, sf = /* @__PURE__ */
|
14453
|
+
}, sf = /* @__PURE__ */ k(P1, [["__scopeId", "data-v-82adffb7"]]), $1 = { class: "chat-filter" }, Z1 = { class: "chat-filter__container" }, G1 = {
|
14454
14454
|
__name: "ChatFilter",
|
14455
14455
|
emits: ["update"],
|
14456
14456
|
setup(e, { emit: f }) {
|
14457
14457
|
const n = v(""), a = f, A = () => {
|
14458
|
-
const
|
14459
|
-
a("update",
|
14458
|
+
const t = le(n);
|
14459
|
+
a("update", t.value);
|
14460
14460
|
};
|
14461
|
-
return (
|
14462
|
-
o("div",
|
14461
|
+
return (t, s) => (r(), d("div", $1, [
|
14462
|
+
o("div", Z1, [
|
14463
14463
|
o("input", {
|
14464
14464
|
ref_key: "refInput",
|
14465
14465
|
ref: n,
|
@@ -14471,7 +14471,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14471
14471
|
])
|
14472
14472
|
]));
|
14473
14473
|
}
|
14474
|
-
}, X1 = /* @__PURE__ */
|
14474
|
+
}, X1 = /* @__PURE__ */ k(G1, [["__scopeId", "data-v-6a3eaa55"]]), es = { class: "chat-list" }, fs = {
|
14475
14475
|
key: 0,
|
14476
14476
|
class: "chat-list__title"
|
14477
14477
|
}, ns = {
|
@@ -14505,38 +14505,38 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14505
14505
|
setup(e, { emit: f }) {
|
14506
14506
|
const n = v(""), a = v(!1), A = () => {
|
14507
14507
|
a.value = !1;
|
14508
|
-
},
|
14509
|
-
|
14510
|
-
const m =
|
14508
|
+
}, t = e, s = f, i = (c) => {
|
14509
|
+
s("select", c), t.chats.forEach((M) => M.isSelected = !1);
|
14510
|
+
const m = t.chats.find((M) => M.chatId === c.chatId);
|
14511
14511
|
m.isSelected = !0;
|
14512
|
-
}, u = () =>
|
14513
|
-
if (
|
14514
|
-
if (
|
14515
|
-
if (
|
14516
|
-
}).filter((
|
14517
|
-
n.value =
|
14518
|
-
},
|
14519
|
-
return (
|
14512
|
+
}, u = () => t.chats.toSorted((c, m) => {
|
14513
|
+
if (c.countUnread > m.countUnread) return -1;
|
14514
|
+
if (c.countUnread < m.countUnread) return 1;
|
14515
|
+
if (c.countUnread == m.countUnread) return 0;
|
14516
|
+
}).filter((c) => c.name.includes(n.value)), l = (c) => {
|
14517
|
+
n.value = c;
|
14518
|
+
}, g = (c) => s("action", c);
|
14519
|
+
return (c, m) => (r(), d("div", es, [
|
14520
14520
|
o("div", {
|
14521
14521
|
class: "chat-list__title-container",
|
14522
14522
|
onMouseleave: A
|
14523
14523
|
}, [
|
14524
|
-
e.title ? (r(), d("h2", fs,
|
14524
|
+
e.title ? (r(), d("h2", fs, w(e.title), 1)) : b("", !0),
|
14525
14525
|
e.actions.length ? (r(), d("button", {
|
14526
14526
|
key: 1,
|
14527
14527
|
class: "chat-list__button-actions",
|
14528
|
-
onClick: m[0] || (m[0] = (
|
14528
|
+
onClick: m[0] || (m[0] = (M) => a.value = !a.value)
|
14529
14529
|
}, [
|
14530
14530
|
a.value ? (r(), d("span", ns)) : (r(), d("span", as))
|
14531
|
-
])) :
|
14531
|
+
])) : b("", !0),
|
14532
14532
|
S(H, null, {
|
14533
14533
|
default: K(() => [
|
14534
|
-
a.value && e.actions ? (r(), Q(
|
14534
|
+
a.value && e.actions ? (r(), Q(ge, {
|
14535
14535
|
key: 0,
|
14536
14536
|
actions: e.actions,
|
14537
14537
|
class: "chat-list__context-menu",
|
14538
|
-
onClick:
|
14539
|
-
}, null, 8, ["actions"])) :
|
14538
|
+
onClick: g
|
14539
|
+
}, null, 8, ["actions"])) : b("", !0)
|
14540
14540
|
]),
|
14541
14541
|
_: 1
|
14542
14542
|
})
|
@@ -14545,39 +14545,39 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14545
14545
|
key: 0,
|
14546
14546
|
class: "chat-list__filter",
|
14547
14547
|
onUpdate: l
|
14548
|
-
})) :
|
14548
|
+
})) : b("", !0),
|
14549
14549
|
o("div", As, [
|
14550
14550
|
o("div", ts, [
|
14551
|
-
(r(!0), d(B, null, R(u().filter((
|
14552
|
-
key:
|
14551
|
+
(r(!0), d(B, null, R(u().filter((M) => M.isFixedTop), (M) => (r(), Q(sf, {
|
14552
|
+
key: M.chatId,
|
14553
14553
|
class: "chat-list__item",
|
14554
|
-
chat:
|
14554
|
+
chat: M,
|
14555
14555
|
onSelect: i,
|
14556
|
-
onAction:
|
14556
|
+
onAction: g
|
14557
14557
|
}, null, 8, ["chat"]))), 128))
|
14558
14558
|
]),
|
14559
14559
|
o("div", ss, [
|
14560
|
-
(r(!0), d(B, null, R(u().filter((
|
14561
|
-
key:
|
14560
|
+
(r(!0), d(B, null, R(u().filter((M) => !M.isFixedBottom && !M.isFixedTop), (M) => (r(), Q(sf, {
|
14561
|
+
key: M.chatId,
|
14562
14562
|
class: "chat-list__item",
|
14563
|
-
chat:
|
14563
|
+
chat: M,
|
14564
14564
|
onSelect: i,
|
14565
|
-
onAction:
|
14565
|
+
onAction: g
|
14566
14566
|
}, null, 8, ["chat"]))), 128))
|
14567
14567
|
]),
|
14568
14568
|
o("div", is, [
|
14569
|
-
(r(!0), d(B, null, R(u().filter((
|
14570
|
-
key:
|
14569
|
+
(r(!0), d(B, null, R(u().filter((M) => M.isFixedBottom), (M) => (r(), Q(sf, {
|
14570
|
+
key: M.chatId,
|
14571
14571
|
class: "chat-list__item",
|
14572
|
-
chat:
|
14572
|
+
chat: M,
|
14573
14573
|
onSelect: i,
|
14574
|
-
onAction:
|
14574
|
+
onAction: g
|
14575
14575
|
}, null, 8, ["chat"]))), 128))
|
14576
14576
|
])
|
14577
14577
|
])
|
14578
14578
|
]));
|
14579
14579
|
}
|
14580
|
-
},
|
14580
|
+
}, uo = /* @__PURE__ */ k(os, [["__scopeId", "data-v-51316d13"]]), us = ["messageId"], rs = ["src"], ls = ["src"], cs = { class: "video-message__controls" }, ds = { class: "video-message__remaining-time" }, gs = { class: "video-message__info-container" }, ms = { class: "video-message__time" }, ps = {
|
14581
14581
|
key: 0,
|
14582
14582
|
class: "pi pi-check"
|
14583
14583
|
}, Ms = {
|
@@ -14590,27 +14590,27 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14590
14590
|
},
|
14591
14591
|
setup(e) {
|
14592
14592
|
const f = e;
|
14593
|
-
function n(
|
14594
|
-
return
|
14593
|
+
function n(y) {
|
14594
|
+
return y.position === "left" ? "video-message__left" : "video-message__right";
|
14595
14595
|
}
|
14596
|
-
const a = v(null), A = v(!1),
|
14596
|
+
const a = v(null), A = v(!1), t = v(0), s = v(0), i = v(!1), u = v(!1), l = () => {
|
14597
14597
|
u.value = !0;
|
14598
|
-
},
|
14598
|
+
}, g = () => {
|
14599
14599
|
u.value = !1, i.value = !1;
|
14600
14600
|
};
|
14601
|
-
function
|
14601
|
+
function c() {
|
14602
14602
|
a.value && (A.value ? a.value.pause() : a.value.play(), A.value = !A.value);
|
14603
14603
|
}
|
14604
|
-
const m = (
|
14605
|
-
const
|
14606
|
-
return `${
|
14607
|
-
},
|
14604
|
+
const m = (y) => {
|
14605
|
+
const h = Math.floor(y / 60), _ = Math.floor(y % 60);
|
14606
|
+
return `${h.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
|
14607
|
+
}, M = x(() => {
|
14608
14608
|
if (a.value) {
|
14609
|
-
if (
|
14609
|
+
if (s.value >= t.value)
|
14610
14610
|
return A.value = !1, "00:00";
|
14611
14611
|
{
|
14612
|
-
const
|
14613
|
-
return m(
|
14612
|
+
const y = t.value - s.value;
|
14613
|
+
return m(y);
|
14614
14614
|
}
|
14615
14615
|
}
|
14616
14616
|
}), p = x(() => {
|
@@ -14625,14 +14625,14 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14625
14625
|
});
|
14626
14626
|
return _e(() => {
|
14627
14627
|
a.value.addEventListener("loadedmetadata", () => {
|
14628
|
-
|
14628
|
+
t.value = a.value.duration;
|
14629
14629
|
}), a.value.addEventListener("timeupdate", () => {
|
14630
|
-
|
14630
|
+
s.value = a.value.currentTime;
|
14631
14631
|
});
|
14632
|
-
}), (
|
14633
|
-
class:
|
14632
|
+
}), (y, h) => (r(), d("div", {
|
14633
|
+
class: T(["video-message", n(e.message)]),
|
14634
14634
|
messageId: e.message.messageId,
|
14635
|
-
onMouseleave:
|
14635
|
+
onMouseleave: g
|
14636
14636
|
}, [
|
14637
14637
|
e.message.avatar ? (r(), d("img", {
|
14638
14638
|
key: 0,
|
@@ -14641,7 +14641,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14641
14641
|
height: "32",
|
14642
14642
|
width: "32",
|
14643
14643
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
14644
|
-
}, null, 12, rs)) :
|
14644
|
+
}, null, 12, rs)) : b("", !0),
|
14645
14645
|
o("div", {
|
14646
14646
|
class: "video-message__content",
|
14647
14647
|
onMouseenter: l
|
@@ -14657,8 +14657,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14657
14657
|
default: K(() => [
|
14658
14658
|
ae(o("button", {
|
14659
14659
|
class: "video-message__play",
|
14660
|
-
onClick:
|
14661
|
-
},
|
14660
|
+
onClick: c
|
14661
|
+
}, h[1] || (h[1] = [
|
14662
14662
|
o("span", { class: "pi pi-play" }, null, -1)
|
14663
14663
|
]), 512), [
|
14664
14664
|
[pe, !A.value]
|
@@ -14668,7 +14668,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14668
14668
|
}),
|
14669
14669
|
ae(o("button", {
|
14670
14670
|
class: "video-message__pause",
|
14671
|
-
onClick:
|
14671
|
+
onClick: c
|
14672
14672
|
}, null, 512), [
|
14673
14673
|
[pe, A.value]
|
14674
14674
|
])
|
@@ -14676,36 +14676,36 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14676
14676
|
u.value && e.message.actions ? (r(), d("button", {
|
14677
14677
|
key: 0,
|
14678
14678
|
class: "video-message__menu-button",
|
14679
|
-
onClick:
|
14680
|
-
},
|
14679
|
+
onClick: h[0] || (h[0] = (_) => i.value = !i.value)
|
14680
|
+
}, h[2] || (h[2] = [
|
14681
14681
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
14682
|
-
]))) :
|
14682
|
+
]))) : b("", !0),
|
14683
14683
|
S(H, null, {
|
14684
14684
|
default: K(() => [
|
14685
|
-
i.value && e.message.actions ? (r(), Q(
|
14685
|
+
i.value && e.message.actions ? (r(), Q(ge, {
|
14686
14686
|
key: 0,
|
14687
14687
|
class: "video-message__context-menu",
|
14688
14688
|
actions: e.message.actions,
|
14689
|
-
onClick:
|
14690
|
-
}, null, 8, ["actions", "onClick"])) :
|
14689
|
+
onClick: y.clickAction
|
14690
|
+
}, null, 8, ["actions", "onClick"])) : b("", !0)
|
14691
14691
|
]),
|
14692
14692
|
_: 1
|
14693
14693
|
}),
|
14694
|
-
o("p", ds,
|
14694
|
+
o("p", ds, w(`${M.value}`), 1),
|
14695
14695
|
o("div", gs, [
|
14696
|
-
o("span", ms,
|
14696
|
+
o("span", ms, w(e.message.time), 1),
|
14697
14697
|
n(e.message) === "video-message__right" && e.message.status ? (r(), d("div", {
|
14698
14698
|
key: 0,
|
14699
|
-
class:
|
14699
|
+
class: T(["video-message__status", p.value])
|
14700
14700
|
}, [
|
14701
|
-
e.message.status !== "sent" ? (r(), d("span", ps)) :
|
14702
|
-
|
14703
|
-
], 2)) :
|
14701
|
+
e.message.status !== "sent" ? (r(), d("span", ps)) : b("", !0),
|
14702
|
+
h[3] || (h[3] = o("span", { class: "pi pi-check" }, null, -1))
|
14703
|
+
], 2)) : b("", !0)
|
14704
14704
|
])
|
14705
14705
|
], 32)
|
14706
14706
|
], 42, us));
|
14707
14707
|
}
|
14708
|
-
}, hs = /* @__PURE__ */
|
14708
|
+
}, hs = /* @__PURE__ */ k(Ms, [["__scopeId", "data-v-00309bae"]]), bs = { class: "call-message" }, ys = ["messageId"], vs = ["src"], Is = {
|
14709
14709
|
key: 1,
|
14710
14710
|
class: "call-message__subtext"
|
14711
14711
|
}, _s = { class: "call-message__content" }, ws = {
|
@@ -14737,7 +14737,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14737
14737
|
}
|
14738
14738
|
return (n, a) => (r(), d("div", bs, [
|
14739
14739
|
o("div", {
|
14740
|
-
class:
|
14740
|
+
class: T(f(e.message)),
|
14741
14741
|
messageId: e.message.messageId
|
14742
14742
|
}, [
|
14743
14743
|
e.message.avatar ? (r(), d("img", {
|
@@ -14747,23 +14747,23 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14747
14747
|
height: "32",
|
14748
14748
|
width: "32",
|
14749
14749
|
style: U({ gridRow: e.message.subText ? "2" : "1" })
|
14750
|
-
}, null, 12, vs)) :
|
14751
|
-
e.message.subText ? (r(), d("p", Is,
|
14750
|
+
}, null, 12, vs)) : b("", !0),
|
14751
|
+
e.message.subText ? (r(), d("p", Is, w(e.message.subText), 1)) : b("", !0),
|
14752
14752
|
o("div", _s, [
|
14753
14753
|
o("span", {
|
14754
14754
|
class: "call-message__icon pi pi-phone",
|
14755
14755
|
style: U({ color: e.message.isMissedCall ? "var(--call-message-color-icon-error)" : "var(--neutral-100)" })
|
14756
14756
|
}, null, 4),
|
14757
14757
|
e.message.isMissedCall ? (r(), d("span", Ds, "Пропущенный аудиозвонок")) : (r(), d("span", ws, "Аудиозвонок")),
|
14758
|
-
e.message.callDuration ? (r(), d("span", Ns,
|
14758
|
+
e.message.callDuration ? (r(), d("span", Ns, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), d("span", ks, "Нажмите, чтобы перезвонить")) : (r(), d("span", js, "Нет ответа")),
|
14759
14759
|
o("div", Vs, [
|
14760
|
-
o("span", Es,
|
14760
|
+
o("span", Es, w(e.message.time), 1)
|
14761
14761
|
])
|
14762
14762
|
])
|
14763
14763
|
], 10, ys)
|
14764
14764
|
]));
|
14765
14765
|
}
|
14766
|
-
}, xs = /* @__PURE__ */
|
14766
|
+
}, xs = /* @__PURE__ */ k(Ts, [["__scopeId", "data-v-9b209155"]]), Ss = { class: "system-message" }, zs = { class: "system-message__container" }, Os = { class: "system-message__text" }, Cs = {
|
14767
14767
|
__name: "SystemMessage",
|
14768
14768
|
props: {
|
14769
14769
|
message: {
|
@@ -14774,29 +14774,34 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14774
14774
|
setup(e) {
|
14775
14775
|
return (f, n) => (r(), d("div", Ss, [
|
14776
14776
|
o("div", zs, [
|
14777
|
-
o("p", Os,
|
14777
|
+
o("p", Os, w(e.message.text), 1)
|
14778
14778
|
])
|
14779
14779
|
]));
|
14780
14780
|
}
|
14781
|
-
}, Us = /* @__PURE__ */
|
14781
|
+
}, Us = /* @__PURE__ */ k(Cs, [["__scopeId", "data-v-b17746f3"]]), Ls = { class: "message-feed__container" }, Qs = {
|
14782
14782
|
__name: "Feed",
|
14783
14783
|
props: {
|
14784
14784
|
objects: {
|
14785
14785
|
type: Array,
|
14786
14786
|
required: !0
|
14787
|
+
},
|
14788
|
+
// при новом сообщении необходимо прокручивать ленту вниз,
|
14789
|
+
// а при загрузке более ранних сообщений - нет
|
14790
|
+
isScrollToBottomOnUpdateObjectsEnabled: {
|
14791
|
+
type: Boolean,
|
14792
|
+
required: !0,
|
14793
|
+
default: !1
|
14787
14794
|
}
|
14788
14795
|
},
|
14789
14796
|
emits: ["messageAction", "loadMore"],
|
14790
14797
|
setup(e, { emit: f }) {
|
14791
|
-
const n = v()
|
14792
|
-
|
14793
|
-
|
14794
|
-
const c = me(n);
|
14795
|
-
c.scrollHeight - c.scrollTop - c.clientHeight < 100 ? a.value = !1 : a.value = !0, c.scrollTop === 0 && s("loadMore");
|
14798
|
+
const n = v(), a = v(!1), A = e, t = f, s = () => {
|
14799
|
+
const c = le(n);
|
14800
|
+
c.scrollHeight - c.scrollTop - c.clientHeight < 100 ? a.value = !1 : a.value = !0, c.scrollTop === 0 && t("loadMore");
|
14796
14801
|
}, i = (c) => ({
|
14797
14802
|
"message.text": ha,
|
14798
14803
|
"message.image": oa,
|
14799
|
-
"message.file":
|
14804
|
+
"message.file": $n,
|
14800
14805
|
"message.audio": Va,
|
14801
14806
|
"message.video": hs,
|
14802
14807
|
"message.call": xs,
|
@@ -14804,27 +14809,33 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14804
14809
|
"system.date": za
|
14805
14810
|
})[c];
|
14806
14811
|
function u() {
|
14807
|
-
|
14808
|
-
const c =
|
14812
|
+
A.isScrollToBottomOnUpdateObjectsEnabled && of(function() {
|
14813
|
+
const c = le(n);
|
14809
14814
|
c.scrollTop = c.scrollHeight;
|
14810
14815
|
});
|
14811
14816
|
}
|
14812
|
-
|
14813
|
-
|
14814
|
-
|
14817
|
+
function l() {
|
14818
|
+
of(function() {
|
14819
|
+
const c = le(n);
|
14820
|
+
c.scrollTop = c.scrollHeight;
|
14821
|
+
});
|
14822
|
+
}
|
14823
|
+
En(() => u), $e(() => A.objects, u);
|
14824
|
+
const g = (c) => {
|
14825
|
+
t("messageAction", c);
|
14815
14826
|
};
|
14816
|
-
return (c,
|
14827
|
+
return (c, m) => (r(), d("div", {
|
14817
14828
|
ref_key: "refFeed",
|
14818
14829
|
ref: n,
|
14819
14830
|
class: "message-feed",
|
14820
|
-
onScroll:
|
14831
|
+
onScroll: s
|
14821
14832
|
}, [
|
14822
14833
|
o("div", Ls, [
|
14823
|
-
(r(!0), d(B, null, R(e.objects, (
|
14824
|
-
key:
|
14834
|
+
(r(!0), d(B, null, R(e.objects, (M) => (r(), Q(Tn(i(M.type)), {
|
14835
|
+
key: M.messageId,
|
14825
14836
|
class: "message-feed__message",
|
14826
|
-
message:
|
14827
|
-
onAction:
|
14837
|
+
message: M,
|
14838
|
+
onAction: g
|
14828
14839
|
}, null, 40, ["message"]))), 128))
|
14829
14840
|
]),
|
14830
14841
|
S(H, null, {
|
@@ -14832,16 +14843,16 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14832
14843
|
a.value ? (r(), d("button", {
|
14833
14844
|
key: 0,
|
14834
14845
|
class: "message-feed__button-down",
|
14835
|
-
onClick:
|
14836
|
-
},
|
14846
|
+
onClick: l
|
14847
|
+
}, m[0] || (m[0] = [
|
14837
14848
|
o("span", { class: "pi pi-angle-down" }, null, -1)
|
14838
|
-
]))) :
|
14849
|
+
]))) : b("", !0)
|
14839
14850
|
]),
|
14840
14851
|
_: 1
|
14841
14852
|
})
|
14842
14853
|
], 544));
|
14843
14854
|
}
|
14844
|
-
},
|
14855
|
+
}, ro = /* @__PURE__ */ k(Qs, [["__scopeId", "data-v-f402849e"]]), Bs = { class: "profile" }, Ys = {
|
14845
14856
|
key: 0,
|
14846
14857
|
class: "profile__container"
|
14847
14858
|
}, Rs = {
|
@@ -14868,17 +14879,74 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14868
14879
|
height: "48",
|
14869
14880
|
width: "48"
|
14870
14881
|
}, null, 8, qs)
|
14871
|
-
])) :
|
14872
|
-
o("h2", Fs,
|
14873
|
-
o("p", Js,
|
14874
|
-
o("p", Ws,
|
14875
|
-
])) :
|
14882
|
+
])) : b("", !0),
|
14883
|
+
o("h2", Fs, w(e.user.name), 1),
|
14884
|
+
o("p", Js, w(e.user.email), 1),
|
14885
|
+
o("p", Ws, w(e.user.phone), 1)
|
14886
|
+
])) : b("", !0)
|
14876
14887
|
]));
|
14877
14888
|
}
|
14878
|
-
},
|
14889
|
+
}, lo = /* @__PURE__ */ k(Hs, [["__scopeId", "data-v-db3ba19b"]]), Ks = {
|
14890
|
+
key: 0,
|
14891
|
+
class: "dropDownMenu"
|
14892
|
+
}, Ps = { class: "label-container" }, $s = { class: "label-row" }, Zs = { class: "label-row" }, Gs = { class: "label-row" }, Xs = {
|
14893
|
+
__name: "FileDropDownMenu",
|
14894
|
+
props: {
|
14895
|
+
canUploadFile: {
|
14896
|
+
type: Boolean,
|
14897
|
+
required: !0,
|
14898
|
+
default: !0
|
14899
|
+
},
|
14900
|
+
hovered: {
|
14901
|
+
type: Boolean,
|
14902
|
+
required: !0,
|
14903
|
+
default: !1
|
14904
|
+
}
|
14905
|
+
},
|
14906
|
+
emits: ["fileSelected"],
|
14907
|
+
setup(e, { emit: f }) {
|
14908
|
+
const n = f, a = (A) => {
|
14909
|
+
const t = A.target.files[0];
|
14910
|
+
t && (console.log("Selected file:", t), n("fileSelected", t));
|
14911
|
+
};
|
14912
|
+
return (A, t) => e.hovered && e.canUploadFile ? (r(), d("div", Ks, [
|
14913
|
+
o("div", Ps, [
|
14914
|
+
o("label", $s, [
|
14915
|
+
t[0] || (t[0] = o("i", { class: "pi pi-image" }, null, -1)),
|
14916
|
+
t[1] || (t[1] = o("span", { class: "label-title" }, "Фото", -1)),
|
14917
|
+
o("input", {
|
14918
|
+
style: { display: "none" },
|
14919
|
+
accept: "image/*",
|
14920
|
+
type: "file",
|
14921
|
+
onChange: a
|
14922
|
+
}, null, 32)
|
14923
|
+
]),
|
14924
|
+
o("label", Zs, [
|
14925
|
+
t[2] || (t[2] = o("i", { class: "pi pi-video" }, null, -1)),
|
14926
|
+
t[3] || (t[3] = o("span", { class: "label-title" }, "Видео", -1)),
|
14927
|
+
o("input", {
|
14928
|
+
style: { display: "none" },
|
14929
|
+
accept: "video/*",
|
14930
|
+
type: "file",
|
14931
|
+
onChange: a
|
14932
|
+
}, null, 32)
|
14933
|
+
]),
|
14934
|
+
o("label", Gs, [
|
14935
|
+
t[4] || (t[4] = o("i", { class: "pi pi-file" }, null, -1)),
|
14936
|
+
t[5] || (t[5] = o("span", { class: "label-title" }, "Файл", -1)),
|
14937
|
+
o("input", {
|
14938
|
+
style: { display: "none" },
|
14939
|
+
type: "file",
|
14940
|
+
onChange: a
|
14941
|
+
}, null, 32)
|
14942
|
+
])
|
14943
|
+
])
|
14944
|
+
])) : b("", !0);
|
14945
|
+
}
|
14946
|
+
}, ei = /* @__PURE__ */ k(Xs, [["__scopeId", "data-v-2538291d"]]), fi = {
|
14879
14947
|
key: 0,
|
14880
14948
|
class: "chat-input__button-file"
|
14881
|
-
},
|
14949
|
+
}, ni = { key: 1 }, ai = { key: 2 }, Ai = { key: 3 }, ti = {
|
14882
14950
|
__name: "FileUploader",
|
14883
14951
|
props: {
|
14884
14952
|
canUploadFile: {
|
@@ -14889,59 +14957,86 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14889
14957
|
},
|
14890
14958
|
emits: ["fileUploaded"],
|
14891
14959
|
setup(e, { emit: f }) {
|
14892
|
-
const n = e, a = v(
|
14893
|
-
|
14894
|
-
|
14895
|
-
|
14896
|
-
|
14897
|
-
|
14898
|
-
|
14899
|
-
|
14900
|
-
|
14901
|
-
|
14902
|
-
|
14903
|
-
|
14904
|
-
|
14905
|
-
|
14906
|
-
|
14960
|
+
const n = e, a = v(!1);
|
14961
|
+
v(!1);
|
14962
|
+
const A = () => {
|
14963
|
+
a.value = !0;
|
14964
|
+
}, t = () => {
|
14965
|
+
a.value = !1;
|
14966
|
+
}, s = v(null), i = v(""), u = v(""), l = v(""), g = v(!1), c = v(!1), m = v(!1), M = f;
|
14967
|
+
$e(
|
14968
|
+
() => n.canUploadFile,
|
14969
|
+
() => {
|
14970
|
+
of(() => {
|
14971
|
+
n.canUploadFile === !0 && (i.value = null);
|
14972
|
+
});
|
14973
|
+
}
|
14974
|
+
);
|
14975
|
+
const p = (I) => {
|
14976
|
+
console.log("onFileSelected", I.target.files[0]), s.value = I.target.files[0], s.value && (h(), _(), m.value = !0);
|
14977
|
+
}, y = (I) => {
|
14978
|
+
console.log("onFileSelected", I), s.value = I, s.value && (h(), _(), m.value = !0);
|
14979
|
+
}, h = () => {
|
14980
|
+
const I = s.value, D = I.type;
|
14981
|
+
if (console.log(D), D.startsWith("image/") ? (g.value = !0, c.value = !1) : D.startsWith("video/") ? (g.value = !1, c.value = !0) : (g.value = !1, c.value = !1), g.value || c.value) {
|
14982
|
+
const N = new FileReader();
|
14983
|
+
N.onload = (j) => {
|
14984
|
+
l.value = j.target.result;
|
14985
|
+
}, N.readAsDataURL(I);
|
14907
14986
|
} else
|
14908
|
-
|
14909
|
-
},
|
14910
|
-
|
14911
|
-
const
|
14912
|
-
|
14987
|
+
l.value = "";
|
14988
|
+
}, _ = async () => {
|
14989
|
+
i.value = "uploading";
|
14990
|
+
const I = new FormData();
|
14991
|
+
I.append("file", s.value);
|
14913
14992
|
try {
|
14914
|
-
const
|
14915
|
-
|
14916
|
-
|
14917
|
-
|
14918
|
-
|
14919
|
-
|
14920
|
-
|
14993
|
+
const N = await (await fetch(
|
14994
|
+
"https://filebump.services.mobilon.ru/upload",
|
14995
|
+
{
|
14996
|
+
method: "POST",
|
14997
|
+
body: I
|
14998
|
+
}
|
14999
|
+
)).json();
|
15000
|
+
u.value = N.url, i.value = "success", n.canUploadFile = !1, M("fileUploaded", { url: u.value, type: "message.file" });
|
15001
|
+
} catch (D) {
|
15002
|
+
console.error("Ошибка при загрузке файла:", D), i.value = "error";
|
14921
15003
|
}
|
14922
15004
|
};
|
14923
|
-
return (
|
14924
|
-
|
14925
|
-
|
14926
|
-
|
14927
|
-
|
14928
|
-
|
14929
|
-
|
14930
|
-
|
14931
|
-
o("
|
14932
|
-
|
14933
|
-
|
14934
|
-
|
14935
|
-
|
14936
|
-
|
14937
|
-
|
14938
|
-
|
14939
|
-
|
14940
|
-
|
14941
|
-
|
14942
|
-
|
15005
|
+
return (I, D) => (r(), d(B, null, [
|
15006
|
+
o("div", {
|
15007
|
+
class: "container",
|
15008
|
+
onMouseover: A,
|
15009
|
+
onMouseout: t
|
15010
|
+
}, [
|
15011
|
+
e.canUploadFile && i.value !== "success" ? (r(), d("div", fi, [
|
15012
|
+
o("label", null, [
|
15013
|
+
o("input", {
|
15014
|
+
type: "file",
|
15015
|
+
onChange: p
|
15016
|
+
}, null, 32),
|
15017
|
+
D[0] || (D[0] = o("span", null, [
|
15018
|
+
o("i", { class: "pi pi-file-arrow-up" })
|
15019
|
+
], -1))
|
15020
|
+
])
|
15021
|
+
])) : b("", !0),
|
15022
|
+
!e.canUploadFile && i.value === "success" ? (r(), d("div", ni, D[1] || (D[1] = [
|
15023
|
+
o("p", null, "Файл загружен и готов к отправке.", -1)
|
15024
|
+
]))) : i.value === "uploading" ? (r(), d("div", ai, D[2] || (D[2] = [
|
15025
|
+
o("p", null, "Загрузка файла...", -1)
|
15026
|
+
]))) : i.value === "error" ? (r(), d("div", Ai, D[3] || (D[3] = [
|
15027
|
+
o("p", null, "Ошибка при загрузке файла.", -1)
|
15028
|
+
]))) : b("", !0)
|
15029
|
+
], 32),
|
15030
|
+
S(ei, {
|
15031
|
+
hovered: a.value,
|
15032
|
+
"can-upload-file": e.canUploadFile,
|
15033
|
+
onFileSelected: y,
|
15034
|
+
onMouseover: A,
|
15035
|
+
onMouseout: t
|
15036
|
+
}, null, 8, ["hovered", "can-upload-file"])
|
15037
|
+
], 64));
|
14943
15038
|
}
|
14944
|
-
},
|
15039
|
+
}, si = /* @__PURE__ */ k(ti, [["__scopeId", "data-v-97a7c026"]]), ii = ["value"], oi = {
|
14945
15040
|
__name: "ThemeMode",
|
14946
15041
|
props: {
|
14947
15042
|
themes: {
|
@@ -14951,21 +15046,21 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14951
15046
|
},
|
14952
15047
|
setup(e) {
|
14953
15048
|
const f = e, n = v("light"), a = (A) => {
|
14954
|
-
const
|
14955
|
-
n.value =
|
15049
|
+
const t = A.target.value;
|
15050
|
+
n.value = t, document.documentElement.dataset.theme = t;
|
14956
15051
|
};
|
14957
|
-
return (A,
|
15052
|
+
return (A, t) => (r(), d("div", null, [
|
14958
15053
|
o("select", {
|
14959
|
-
onChange:
|
15054
|
+
onChange: t[0] || (t[0] = (s) => a(s))
|
14960
15055
|
}, [
|
14961
|
-
(r(!0), d(B, null, R(f.themes, (
|
15056
|
+
(r(!0), d(B, null, R(f.themes, (s, i) => (r(), d("option", {
|
14962
15057
|
key: i,
|
14963
|
-
value:
|
14964
|
-
},
|
15058
|
+
value: s.code
|
15059
|
+
}, w(s.name), 9, ii))), 128))
|
14965
15060
|
], 32)
|
14966
15061
|
]));
|
14967
15062
|
}
|
14968
|
-
},
|
15063
|
+
}, co = /* @__PURE__ */ k(oi, [["__scopeId", "data-v-7c5c98e9"]]), ui = { class: "sidebar" }, ri = { class: "sidebar__container" }, li = { class: "sidebar__list" }, ci = ["onClick"], di = ["src", "alt"], gi = { key: 1 }, mi = { class: "sidebar__list-fixed" }, pi = ["onClick"], Mi = ["src", "alt"], hi = { key: 1 }, bi = {
|
14969
15064
|
__name: "SideBar",
|
14970
15065
|
props: {
|
14971
15066
|
sidebarItems: {
|
@@ -14976,58 +15071,58 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14976
15071
|
},
|
14977
15072
|
emits: ["selectItem"],
|
14978
15073
|
setup(e, { emit: f }) {
|
14979
|
-
const a = xn(e, "sidebarItems"), A = f,
|
15074
|
+
const a = xn(e, "sidebarItems"), A = f, t = (i) => {
|
14980
15075
|
const u = a.value.find((l) => l.itemId === i);
|
14981
15076
|
A("selectItem", u);
|
14982
|
-
},
|
15077
|
+
}, s = (i) => {
|
14983
15078
|
const u = i.split(" ");
|
14984
15079
|
return u.length > 2 ? u.slice(0, 2).join(" ") : i;
|
14985
15080
|
};
|
14986
|
-
return (i, u) => (r(), d("div",
|
14987
|
-
o("div",
|
14988
|
-
o("ul",
|
14989
|
-
(r(!0), d(B, null, R(a.value.filter((l) => !l.isFixedBottom), (l,
|
14990
|
-
key:
|
15081
|
+
return (i, u) => (r(), d("div", ui, [
|
15082
|
+
o("div", ri, [
|
15083
|
+
o("ul", li, [
|
15084
|
+
(r(!0), d(B, null, R(a.value.filter((l) => !l.isFixedBottom), (l, g) => (r(), d("li", {
|
15085
|
+
key: g,
|
14991
15086
|
class: "sidebar__item",
|
14992
|
-
onClick: (
|
15087
|
+
onClick: (c) => t(l.itemId)
|
14993
15088
|
}, [
|
14994
15089
|
o("img", {
|
14995
15090
|
src: l.icon,
|
14996
15091
|
alt: l.name,
|
14997
|
-
class:
|
14998
|
-
}, null, 10,
|
15092
|
+
class: T(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
|
15093
|
+
}, null, 10, di),
|
14999
15094
|
l.notificationCount ? (r(), d("span", {
|
15000
15095
|
key: 0,
|
15001
15096
|
style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
15002
|
-
},
|
15003
|
-
l.name ? (r(), d("p",
|
15004
|
-
], 8,
|
15097
|
+
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
15098
|
+
l.name ? (r(), d("p", gi, w(s(l.name)), 1)) : b("", !0)
|
15099
|
+
], 8, ci))), 128))
|
15005
15100
|
]),
|
15006
|
-
o("ul",
|
15007
|
-
(r(!0), d(B, null, R(a.value.filter((l) => l.isFixedBottom), (l,
|
15008
|
-
key:
|
15101
|
+
o("ul", mi, [
|
15102
|
+
(r(!0), d(B, null, R(a.value.filter((l) => l.isFixedBottom), (l, g) => (r(), d("li", {
|
15103
|
+
key: g,
|
15009
15104
|
class: "sidebar__item",
|
15010
|
-
onClick: (
|
15105
|
+
onClick: (c) => t(l.itemId)
|
15011
15106
|
}, [
|
15012
15107
|
o("img", {
|
15013
15108
|
src: l.icon,
|
15014
15109
|
alt: l.name,
|
15015
|
-
class:
|
15016
|
-
}, null, 10,
|
15110
|
+
class: T(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
|
15111
|
+
}, null, 10, Mi),
|
15017
15112
|
l.notificationCount ? (r(), d("span", {
|
15018
15113
|
key: 0,
|
15019
15114
|
style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
15020
|
-
},
|
15021
|
-
l.name ? (r(), d("p",
|
15022
|
-
], 8,
|
15115
|
+
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
15116
|
+
l.name ? (r(), d("p", hi, w(s(l.name)), 1)) : b("", !0)
|
15117
|
+
], 8, pi))), 128))
|
15023
15118
|
])
|
15024
15119
|
])
|
15025
15120
|
]));
|
15026
15121
|
}
|
15027
|
-
},
|
15122
|
+
}, go = /* @__PURE__ */ k(bi, [["__scopeId", "data-v-5e22516c"]]), yi = { class: "chat-panel" }, vi = { class: "chat-panel__title-container" }, Ii = {
|
15028
15123
|
key: 0,
|
15029
15124
|
class: "chat-panel__title"
|
15030
|
-
},
|
15125
|
+
}, _i = {
|
15031
15126
|
__name: "ChatPanel",
|
15032
15127
|
props: {
|
15033
15128
|
title: {
|
@@ -15038,9 +15133,9 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15038
15133
|
},
|
15039
15134
|
emits: ["close-panel"],
|
15040
15135
|
setup(e, { emit: f }) {
|
15041
|
-
return (n, a) => (r(), d("div",
|
15042
|
-
o("div",
|
15043
|
-
e.title ? (r(), d("p",
|
15136
|
+
return (n, a) => (r(), d("div", yi, [
|
15137
|
+
o("div", vi, [
|
15138
|
+
e.title ? (r(), d("p", Ii, w(e.title), 1)) : b("", !0),
|
15044
15139
|
o("button", {
|
15045
15140
|
class: "chat-panel__button-close",
|
15046
15141
|
onClick: a[0] || (a[0] = (A) => n.$emit("close-panel"))
|
@@ -15053,10 +15148,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15053
15148
|
])
|
15054
15149
|
]));
|
15055
15150
|
}
|
15056
|
-
},
|
15151
|
+
}, mo = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-cd721096"]]), wi = {
|
15057
15152
|
key: 0,
|
15058
15153
|
class: "new-chat-modal"
|
15059
|
-
},
|
15154
|
+
}, Di = { class: "modal-content" }, Ni = { class: "participant-list" }, ki = ["id", "value"], ji = ["for"], Vi = {
|
15060
15155
|
__name: "SelectUser",
|
15061
15156
|
props: {
|
15062
15157
|
users: {
|
@@ -15070,79 +15165,79 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15070
15165
|
},
|
15071
15166
|
emits: ["confirm", "close"],
|
15072
15167
|
setup(e, { emit: f }) {
|
15073
|
-
const n = v(!0), a = v([]), A = f,
|
15074
|
-
A("confirm", a.value),
|
15075
|
-
},
|
15168
|
+
const n = v(!0), a = v([]), A = f, t = async () => {
|
15169
|
+
A("confirm", a.value), s(), i();
|
15170
|
+
}, s = () => {
|
15076
15171
|
A("close"), n.value = !1;
|
15077
15172
|
}, i = () => {
|
15078
15173
|
a.value = [];
|
15079
15174
|
}, u = () => {
|
15080
|
-
|
15175
|
+
s(), i();
|
15081
15176
|
};
|
15082
|
-
return (l,
|
15083
|
-
n.value ? (r(), d("div",
|
15084
|
-
o("div",
|
15085
|
-
o("h2", null,
|
15086
|
-
o("div",
|
15087
|
-
(r(!0), d(B, null, R(e.users, (
|
15088
|
-
key:
|
15177
|
+
return (l, g) => (r(), d("div", null, [
|
15178
|
+
n.value ? (r(), d("div", wi, [
|
15179
|
+
o("div", Di, [
|
15180
|
+
o("h2", null, w(e.title), 1),
|
15181
|
+
o("div", Ni, [
|
15182
|
+
(r(!0), d(B, null, R(e.users, (c) => (r(), d("div", {
|
15183
|
+
key: c.userId,
|
15089
15184
|
class: "participant-item"
|
15090
15185
|
}, [
|
15091
15186
|
ae(o("input", {
|
15092
|
-
id:
|
15093
|
-
"onUpdate:modelValue":
|
15187
|
+
id: c.userId,
|
15188
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
|
15094
15189
|
type: "checkbox",
|
15095
|
-
value:
|
15096
|
-
}, null, 8,
|
15190
|
+
value: c.userId
|
15191
|
+
}, null, 8, ki), [
|
15097
15192
|
[Sn, a.value]
|
15098
15193
|
]),
|
15099
15194
|
o("label", {
|
15100
|
-
for:
|
15101
|
-
},
|
15195
|
+
for: c.userId
|
15196
|
+
}, w(c.name || "unknown username"), 9, ji)
|
15102
15197
|
]))), 128))
|
15103
15198
|
]),
|
15104
15199
|
o("div", { class: "modal-actions" }, [
|
15105
|
-
o("button", { onClick:
|
15200
|
+
o("button", { onClick: t }, " ОК "),
|
15106
15201
|
o("button", { onClick: u }, " Отмена ")
|
15107
15202
|
])
|
15108
15203
|
])
|
15109
|
-
])) :
|
15204
|
+
])) : b("", !0)
|
15110
15205
|
]));
|
15111
15206
|
}
|
15112
|
-
},
|
15207
|
+
}, po = /* @__PURE__ */ k(Vi, [["__scopeId", "data-v-66249b80"]]), Ei = { class: "modal-backdrop" }, Ti = {
|
15113
15208
|
class: "modal",
|
15114
15209
|
role: "dialog",
|
15115
15210
|
"aria-labelledby": "modalTitle",
|
15116
15211
|
"aria-describedby": "modalDescription"
|
15117
|
-
},
|
15212
|
+
}, xi = {
|
15118
15213
|
id: "modalDescription",
|
15119
15214
|
class: "modal-body"
|
15120
|
-
},
|
15215
|
+
}, Si = { class: "buttons" }, zi = {
|
15121
15216
|
__name: "Modal",
|
15122
15217
|
emits: ["close", "submit"],
|
15123
15218
|
setup(e, { emit: f }) {
|
15124
|
-
const n = f, a = (
|
15125
|
-
n("submit",
|
15219
|
+
const n = f, a = (t) => {
|
15220
|
+
n("submit", t);
|
15126
15221
|
}, A = v(null);
|
15127
|
-
return (
|
15222
|
+
return (t, s) => (r(), Q(H, { name: "modal-fade" }, {
|
15128
15223
|
default: K(() => [
|
15129
|
-
o("div",
|
15130
|
-
o("div",
|
15131
|
-
o("div",
|
15132
|
-
W(
|
15224
|
+
o("div", Ei, [
|
15225
|
+
o("div", Ti, [
|
15226
|
+
o("div", xi, [
|
15227
|
+
W(t.$slots, "default", {}, void 0, !0)
|
15133
15228
|
]),
|
15134
|
-
o("div",
|
15229
|
+
o("div", Si, [
|
15135
15230
|
o("button", {
|
15136
15231
|
type: "button",
|
15137
15232
|
class: "btn-green",
|
15138
15233
|
"aria-label": "Close modal",
|
15139
|
-
onClick:
|
15234
|
+
onClick: s[0] || (s[0] = (i) => a(A.value))
|
15140
15235
|
}, " OK "),
|
15141
15236
|
o("button", {
|
15142
15237
|
type: "button",
|
15143
15238
|
class: "btn-green",
|
15144
15239
|
"aria-label": "Close modal",
|
15145
|
-
onClick:
|
15240
|
+
onClick: s[1] || (s[1] = (i) => t.$emit("close"))
|
15146
15241
|
}, " Cancel ")
|
15147
15242
|
])
|
15148
15243
|
])
|
@@ -15151,28 +15246,28 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15151
15246
|
_: 3
|
15152
15247
|
}));
|
15153
15248
|
}
|
15154
|
-
},
|
15249
|
+
}, Oi = /* @__PURE__ */ k(zi, [["__scopeId", "data-v-d48a1772"]]);
|
15155
15250
|
function cn({ component: e, attrs: f }) {
|
15156
15251
|
return new Promise((n) => {
|
15157
15252
|
const a = document.createElement("div");
|
15158
15253
|
document.body.appendChild(a);
|
15159
|
-
const A = v({}),
|
15254
|
+
const A = v({}), t = () => {
|
15160
15255
|
l.unmount(), document.body.removeChild(a);
|
15161
|
-
},
|
15162
|
-
|
15163
|
-
}, i = (
|
15164
|
-
const
|
15165
|
-
A.value[
|
15166
|
-
}, u =
|
15256
|
+
}, s = () => {
|
15257
|
+
t(), n(A.value);
|
15258
|
+
}, i = (g) => {
|
15259
|
+
const c = Object.keys(g)[0];
|
15260
|
+
A.value[c] = g[c];
|
15261
|
+
}, u = de({
|
15167
15262
|
render() {
|
15168
|
-
return
|
15169
|
-
|
15263
|
+
return xf(
|
15264
|
+
Oi,
|
15170
15265
|
{
|
15171
|
-
onSubmit:
|
15172
|
-
onClose:
|
15266
|
+
onSubmit: s,
|
15267
|
+
onClose: t
|
15173
15268
|
},
|
15174
15269
|
{
|
15175
|
-
default: () =>
|
15270
|
+
default: () => xf(
|
15176
15271
|
zn(() => e),
|
15177
15272
|
{
|
15178
15273
|
...f,
|
@@ -15186,17 +15281,17 @@ function cn({ component: e, attrs: f }) {
|
|
15186
15281
|
l.mount(a);
|
15187
15282
|
});
|
15188
15283
|
}
|
15189
|
-
const
|
15284
|
+
const Mo = async (e, f) => {
|
15190
15285
|
const n = await cn({
|
15191
15286
|
//в component должен быть встроен emit change(key: value)
|
15192
|
-
component: import("./SelectUser2-
|
15287
|
+
component: import("./SelectUser2-CibU7oZR.js"),
|
15193
15288
|
attrs: {
|
15194
15289
|
title: e,
|
15195
15290
|
users: f
|
15196
15291
|
}
|
15197
15292
|
});
|
15198
15293
|
return console.log("data", n), n;
|
15199
|
-
},
|
15294
|
+
}, ho = async (e) => {
|
15200
15295
|
const f = await cn({
|
15201
15296
|
//в component должен быть встроен emit change(key: value)
|
15202
15297
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
@@ -15205,7 +15300,7 @@ const uo = async (e, f) => {
|
|
15205
15300
|
}
|
15206
15301
|
});
|
15207
15302
|
return console.log("data", f), f;
|
15208
|
-
},
|
15303
|
+
}, Ci = {
|
15209
15304
|
__name: "BaseContainer",
|
15210
15305
|
props: {
|
15211
15306
|
height: String,
|
@@ -15223,7 +15318,7 @@ const uo = async (e, f) => {
|
|
15223
15318
|
W(n.$slots, "default", {}, void 0, !0)
|
15224
15319
|
], 4));
|
15225
15320
|
}
|
15226
|
-
},
|
15321
|
+
}, bo = /* @__PURE__ */ k(Ci, [["__scopeId", "data-v-db2052ac"]]), Ui = { class: "float-window__container" }, Li = ["src", "alt"], Qi = { class: "float-window__title" }, Bi = {
|
15227
15322
|
__name: "FloatContainer",
|
15228
15323
|
props: {
|
15229
15324
|
title: {
|
@@ -15238,32 +15333,32 @@ const uo = async (e, f) => {
|
|
15238
15333
|
type: String,
|
15239
15334
|
required: !0
|
15240
15335
|
},
|
15241
|
-
|
15242
|
-
|
15336
|
+
height: String,
|
15337
|
+
width: String
|
15243
15338
|
},
|
15244
15339
|
emits: ["close-window", "get-size"],
|
15245
15340
|
setup(e, { emit: f }) {
|
15246
|
-
const n = e, a = v({ x: 0, y: 0 }), A = v(null),
|
15341
|
+
const n = e, a = v({ x: 0, y: 0 }), A = v(null), t = v(null), s = v(!1), i = v(0), u = v(0), l = v(0), g = () => {
|
15247
15342
|
if (A.value) {
|
15248
|
-
const p = window.innerWidth,
|
15249
|
-
a.value.x = (p -
|
15343
|
+
const p = window.innerWidth, y = window.innerHeight, h = A.value.offsetWidth, _ = A.value.offsetHeight;
|
15344
|
+
a.value.x = (p - h) / 2, a.value.y = (y - _) / 2;
|
15250
15345
|
}
|
15251
|
-
},
|
15252
|
-
|
15253
|
-
}, m = () =>
|
15254
|
-
if (
|
15255
|
-
const
|
15346
|
+
}, c = (p) => {
|
15347
|
+
s.value = !0, i.value = p.clientX - A.value.offsetLeft, u.value = p.clientY - A.value.offsetTop;
|
15348
|
+
}, m = () => s.value = !1, M = (p) => {
|
15349
|
+
if (s.value) {
|
15350
|
+
const y = p.clientX - i.value, h = p.clientY - u.value;
|
15256
15351
|
a.value.x = Math.max(
|
15257
15352
|
0,
|
15258
|
-
Math.min(
|
15353
|
+
Math.min(y, window.innerWidth - A.value.offsetWidth)
|
15259
15354
|
), a.value.y = Math.max(
|
15260
15355
|
0,
|
15261
|
-
Math.min(
|
15356
|
+
Math.min(h, window.innerHeight - A.value.offsetHeight)
|
15262
15357
|
);
|
15263
15358
|
}
|
15264
15359
|
};
|
15265
15360
|
return _e(() => {
|
15266
|
-
|
15361
|
+
g(), document.addEventListener("mousemove", M), window.addEventListener("resize", () => {
|
15267
15362
|
a.value.x = Math.max(
|
15268
15363
|
0,
|
15269
15364
|
Math.min(
|
@@ -15277,24 +15372,27 @@ const uo = async (e, f) => {
|
|
15277
15372
|
window.innerHeight - A.value.offsetHeight
|
15278
15373
|
)
|
15279
15374
|
);
|
15280
|
-
}), l.value = A.value.offsetHeight -
|
15281
|
-
}), (p,
|
15375
|
+
}), l.value = A.value.offsetHeight - t.value.offsetHeight;
|
15376
|
+
}), (p, y) => (r(), d("div", {
|
15282
15377
|
ref_key: "element",
|
15283
15378
|
ref: A,
|
15284
15379
|
class: "float-window",
|
15285
15380
|
style: U({
|
15286
15381
|
left: a.value.x + "px",
|
15287
15382
|
top: a.value.y + "px",
|
15288
|
-
userSelect:
|
15383
|
+
userSelect: s.value ? "none" : "auto",
|
15384
|
+
height: e.height,
|
15385
|
+
width: e.width,
|
15386
|
+
display: p.flex
|
15289
15387
|
})
|
15290
15388
|
}, [
|
15291
|
-
o("div",
|
15389
|
+
o("div", Ui, [
|
15292
15390
|
o("div", {
|
15293
15391
|
ref_key: "container",
|
15294
|
-
ref:
|
15392
|
+
ref: t,
|
15295
15393
|
class: "float-window__controls",
|
15296
15394
|
style: U({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
|
15297
|
-
onMousedown:
|
15395
|
+
onMousedown: c,
|
15298
15396
|
onMouseup: m,
|
15299
15397
|
onMouseleave: m
|
15300
15398
|
}, [
|
@@ -15303,12 +15401,12 @@ const uo = async (e, f) => {
|
|
15303
15401
|
class: "float-window__avatar",
|
15304
15402
|
src: n.avatar,
|
15305
15403
|
alt: n.title
|
15306
|
-
}, null, 8,
|
15307
|
-
o("p",
|
15404
|
+
}, null, 8, Li)) : b("", !0),
|
15405
|
+
o("p", Qi, w(n.title), 1),
|
15308
15406
|
o("button", {
|
15309
15407
|
class: "float-window__close-button",
|
15310
|
-
onClick:
|
15311
|
-
},
|
15408
|
+
onClick: y[0] || (y[0] = (h) => p.$emit("close-window"))
|
15409
|
+
}, y[1] || (y[1] = [
|
15312
15410
|
o("span", { class: "pi pi-times" }, null, -1)
|
15313
15411
|
]))
|
15314
15412
|
], 36),
|
@@ -15321,46 +15419,46 @@ const uo = async (e, f) => {
|
|
15321
15419
|
])
|
15322
15420
|
], 4));
|
15323
15421
|
}
|
15324
|
-
},
|
15325
|
-
function
|
15326
|
-
return r(), d("div",
|
15327
|
-
o("div",
|
15422
|
+
}, yo = /* @__PURE__ */ k(Bi, [["__scopeId", "data-v-ef28a871"]]), Yi = {}, Ri = { class: "base-layout__container" }, qi = { class: "base-layout__first-col" }, Fi = { class: "base-layout__second-col" };
|
15423
|
+
function Ji(e, f) {
|
15424
|
+
return r(), d("div", Ri, [
|
15425
|
+
o("div", qi, [
|
15328
15426
|
W(e.$slots, "first-col", {}, void 0, !0)
|
15329
15427
|
]),
|
15330
|
-
o("div",
|
15428
|
+
o("div", Fi, [
|
15331
15429
|
W(e.$slots, "second-col", {}, void 0, !0)
|
15332
15430
|
])
|
15333
15431
|
]);
|
15334
15432
|
}
|
15335
|
-
const
|
15336
|
-
function
|
15337
|
-
return r(), d("div",
|
15338
|
-
o("div",
|
15433
|
+
const vo = /* @__PURE__ */ k(Yi, [["render", Ji], ["__scopeId", "data-v-b6a80f19"]]), Wi = {}, Hi = { class: "extend-layout__container" }, Ki = { class: "extend-layout__first-col" }, Pi = { class: "extend-layout__second-col" }, $i = { class: "extend-layout__third-col" };
|
15434
|
+
function Zi(e, f) {
|
15435
|
+
return r(), d("div", Hi, [
|
15436
|
+
o("div", Ki, [
|
15339
15437
|
W(e.$slots, "first-col", {}, void 0, !0)
|
15340
15438
|
]),
|
15341
|
-
o("div",
|
15439
|
+
o("div", Pi, [
|
15342
15440
|
W(e.$slots, "second-col", {}, void 0, !0)
|
15343
15441
|
]),
|
15344
|
-
o("div",
|
15442
|
+
o("div", $i, [
|
15345
15443
|
W(e.$slots, "third-col", {}, void 0, !0)
|
15346
15444
|
])
|
15347
15445
|
]);
|
15348
15446
|
}
|
15349
|
-
const
|
15350
|
-
function
|
15351
|
-
return r(), d("div",
|
15352
|
-
o("div",
|
15447
|
+
const Io = /* @__PURE__ */ k(Wi, [["render", Zi], ["__scopeId", "data-v-cfdb8a37"]]), Gi = {}, Xi = { class: "base-layout__container" }, eo = { class: "base-layout__first-col" };
|
15448
|
+
function fo(e, f) {
|
15449
|
+
return r(), d("div", Xi, [
|
15450
|
+
o("div", eo, [
|
15353
15451
|
W(e.$slots, "default", {}, void 0, !0)
|
15354
15452
|
])
|
15355
15453
|
]);
|
15356
15454
|
}
|
15357
|
-
const
|
15455
|
+
const _o = /* @__PURE__ */ k(Gi, [["render", fo], ["__scopeId", "data-v-3face7ce"]]), no = { style: { display: "flex", height: "100%", width: "100%", "align-items": "stretch" } }, ao = {
|
15358
15456
|
key: 0,
|
15359
15457
|
style: { height: "100%", width: "100%", display: "flex", "flex-direction": "column", "align-items": "stretch" }
|
15360
|
-
},
|
15458
|
+
}, Ao = {
|
15361
15459
|
key: 1,
|
15362
15460
|
style: { width: "100%" }
|
15363
|
-
},
|
15461
|
+
}, to = /* @__PURE__ */ de({
|
15364
15462
|
__name: "ChatWrapper",
|
15365
15463
|
props: {
|
15366
15464
|
isOpenChatPanel: {
|
@@ -15373,10 +15471,10 @@ const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-3face7ce
|
|
15373
15471
|
}
|
15374
15472
|
},
|
15375
15473
|
setup(e) {
|
15376
|
-
return (f, n) => (r(), d("div",
|
15377
|
-
e.isSelectedChat ? (r(), d("div",
|
15474
|
+
return (f, n) => (r(), d("div", no, [
|
15475
|
+
e.isSelectedChat ? (r(), d("div", ao, [
|
15378
15476
|
W(f.$slots, "default", {}, void 0, !0)
|
15379
|
-
])) : (r(), d("div",
|
15477
|
+
])) : (r(), d("div", Ao, n[0] || (n[0] = [
|
15380
15478
|
o("p", null, " Выберите контакт для начала общения ", -1)
|
15381
15479
|
]))),
|
15382
15480
|
e.isOpenChatPanel ? (r(), d("div", {
|
@@ -15385,30 +15483,30 @@ const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-3face7ce
|
|
15385
15483
|
class: "chatpanel"
|
15386
15484
|
}, [
|
15387
15485
|
W(f.$slots, "chatpanel", {}, void 0, !0)
|
15388
|
-
], 4)) :
|
15486
|
+
], 4)) : b("", !0)
|
15389
15487
|
]));
|
15390
15488
|
}
|
15391
|
-
}),
|
15392
|
-
function
|
15489
|
+
}), wo = /* @__PURE__ */ k(to, [["__scopeId", "data-v-8ce07c9d"]]);
|
15490
|
+
function Do(e) {
|
15393
15491
|
if (!e || e === "") return;
|
15394
|
-
const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60),
|
15395
|
-
return
|
15492
|
+
const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60), t = Math.floor(A / 60), s = Math.floor(t / 24);
|
15493
|
+
return s > 30 ? f.toLocaleString() : s > 0 ? `${s} ${s === 1 ? "день" : "дня"} назад` : t > 0 ? `${t} ${t === 1 ? "час" : "часа"} назад` : A > 0 ? `${A} ${A === 1 ? "минута" : "минуты"} назад` : a > 0 ? `${a} ${a === 1 ? "секунда" : "секунды"} назад` : "Только что";
|
15396
15494
|
}
|
15397
|
-
const
|
15495
|
+
const No = (e) => {
|
15398
15496
|
const f = [];
|
15399
15497
|
let n = null;
|
15400
15498
|
for (let a = 0; a < e.length; a++) {
|
15401
|
-
const A = e[a],
|
15402
|
-
console.log("message", A,
|
15499
|
+
const A = e[a], t = new Date(A.timestamp * 1e3).toLocaleDateString();
|
15500
|
+
console.log("message", A, t), t !== n && (f.push({
|
15403
15501
|
isSeparator: !0,
|
15404
|
-
day:
|
15502
|
+
day: t,
|
15405
15503
|
// Можно использовать локальную дату, если необходимо
|
15406
|
-
text:
|
15504
|
+
text: t,
|
15407
15505
|
type: "system.date"
|
15408
|
-
}), n =
|
15506
|
+
}), n = t), f.push(A);
|
15409
15507
|
}
|
15410
15508
|
return f;
|
15411
|
-
},
|
15509
|
+
}, ko = async () => {
|
15412
15510
|
try {
|
15413
15511
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
15414
15512
|
const f = new Audio();
|
@@ -15417,37 +15515,37 @@ const bo = (e) => {
|
|
15417
15515
|
} catch {
|
15418
15516
|
console.log("no audio permissions");
|
15419
15517
|
}
|
15420
|
-
},
|
15518
|
+
}, jo = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0);
|
15421
15519
|
export {
|
15422
15520
|
Va as A,
|
15423
|
-
|
15424
|
-
|
15521
|
+
bo as B,
|
15522
|
+
io as C,
|
15425
15523
|
za as D,
|
15426
|
-
|
15427
|
-
|
15524
|
+
Io as E,
|
15525
|
+
$n as F,
|
15428
15526
|
oa as I,
|
15429
|
-
|
15527
|
+
go as S,
|
15430
15528
|
ha as T,
|
15431
|
-
|
15432
|
-
|
15433
|
-
|
15434
|
-
|
15435
|
-
|
15436
|
-
|
15437
|
-
|
15438
|
-
|
15529
|
+
lo as U,
|
15530
|
+
k as _,
|
15531
|
+
oo as a,
|
15532
|
+
uo as b,
|
15533
|
+
ro as c,
|
15534
|
+
si as d,
|
15535
|
+
co as e,
|
15536
|
+
mo as f,
|
15439
15537
|
O1 as g,
|
15440
15538
|
sf as h,
|
15441
15539
|
X1 as i,
|
15442
|
-
|
15443
|
-
|
15444
|
-
|
15445
|
-
|
15446
|
-
|
15447
|
-
|
15448
|
-
|
15449
|
-
|
15450
|
-
|
15451
|
-
|
15452
|
-
|
15540
|
+
po as j,
|
15541
|
+
ho as k,
|
15542
|
+
yo as l,
|
15543
|
+
vo as m,
|
15544
|
+
_o as n,
|
15545
|
+
wo as o,
|
15546
|
+
Do as p,
|
15547
|
+
No as q,
|
15548
|
+
ko as r,
|
15549
|
+
jo as s,
|
15550
|
+
Mo as u
|
15453
15551
|
};
|