@mobilon-dev/chotto 0.0.33 → 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,4 +1,4 @@
|
|
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
|
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
2
|
const k = (e, f) => {
|
3
3
|
const n = e.__vccOpts || e;
|
4
4
|
for (const [a, A] of f)
|
@@ -14,11 +14,11 @@ const k = (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", {
|
@@ -38,7 +38,7 @@ const k = (e, f) => {
|
|
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 = {
|
@@ -53,12 +53,12 @@ const k = (e, f) => {
|
|
53
53
|
}
|
54
54
|
},
|
55
55
|
setup(e) {
|
56
|
-
const f = e, n =
|
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 k = (e, f) => {
|
|
72
72
|
}
|
73
73
|
});
|
74
74
|
return (u, l) => (r(), d("div", {
|
75
|
-
class: T(["file-message",
|
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,
|
@@ -100,7 +100,7 @@ const k = (e, f) => {
|
|
100
100
|
], 8, Jn),
|
101
101
|
o("div", Wn, [
|
102
102
|
o("span", Hn, w(e.message.time), 1),
|
103
|
-
|
103
|
+
s(e.message) === "file-message__right" && e.message.status ? (r(), d("div", {
|
104
104
|
key: 0,
|
105
105
|
class: T(["file-message__status", i.value])
|
106
106
|
}, [
|
@@ -117,7 +117,7 @@ const k = (e, f) => {
|
|
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,
|
@@ -147,9 +147,9 @@ const k = (e, f) => {
|
|
147
147
|
}
|
148
148
|
},
|
149
149
|
setup(e) {
|
150
|
-
const f = e, n =
|
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) {
|
@@ -168,7 +168,7 @@ const k = (e, f) => {
|
|
168
168
|
return (l, g) => (r(), d("div", {
|
169
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,
|
@@ -181,7 +181,7 @@ const k = (e, f) => {
|
|
181
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",
|
@@ -236,7 +236,7 @@ const k = (e, f) => {
|
|
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,
|
@@ -267,10 +267,10 @@ const k = (e, f) => {
|
|
267
267
|
},
|
268
268
|
emits: ["action"],
|
269
269
|
setup(e, { emit: f }) {
|
270
|
-
const n = e, a = f, A =
|
271
|
-
|
270
|
+
const n = e, a = f, A = v(!1), t = v(!1), s = () => {
|
271
|
+
t.value = !0;
|
272
272
|
}, i = () => {
|
273
|
-
|
273
|
+
t.value = !1, A.value = !1;
|
274
274
|
}, u = (c) => {
|
275
275
|
i(), a("action", { messageId: n.message.messageId, ...c });
|
276
276
|
};
|
@@ -304,7 +304,7 @@ const k = (e, f) => {
|
|
304
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
309
|
o("p", da, w(e.message.text), 1),
|
310
310
|
o("div", ga, [
|
@@ -317,7 +317,7 @@ const k = (e, f) => {
|
|
317
317
|
m[1] || (m[1] = o("span", { class: "pi pi-check" }, null, -1))
|
318
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
323
|
onClick: m[0] || (m[0] = (M) => A.value = !A.value)
|
@@ -326,7 +326,7 @@ const k = (e, f) => {
|
|
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,
|
@@ -354,10 +354,10 @@ const k = (e, f) => {
|
|
354
354
|
}
|
355
355
|
},
|
356
356
|
setup(e) {
|
357
|
-
const f = e, n =
|
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
362
|
function g() {
|
363
363
|
n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
|
@@ -365,7 +365,7 @@ const k = (e, f) => {
|
|
365
365
|
const c = (_) => {
|
366
366
|
const I = Math.floor(_ / 60), D = Math.floor(_ % 60);
|
367
367
|
return `${I.toString().padStart(2, "0")}:${D.toString().padStart(2, "0")}`;
|
368
|
-
}, m = x(() => n.value ? c(
|
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";
|
@@ -382,7 +382,7 @@ const k = (e, f) => {
|
|
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
387
|
}), (_, I) => (r(), d("div", {
|
388
388
|
class: T(["audio-message", h(e.message)]),
|
@@ -434,7 +434,7 @@ const k = (e, f) => {
|
|
434
434
|
o("span", Na, w(e.message.time), 1),
|
435
435
|
h(e.message) === "audio-message__right" && e.message.status ? (r(), d("div", {
|
436
436
|
key: 0,
|
437
|
-
class: T(["audio-message__status",
|
437
|
+
class: T(["audio-message__status", y.value])
|
438
438
|
}, [
|
439
439
|
e.message.status !== "sent" ? (r(), d("span", ka)) : b("", !0),
|
440
440
|
I[3] || (I[3] = o("span", { class: "pi pi-check" }, null, -1))
|
@@ -443,13 +443,13 @@ const k = (e, f) => {
|
|
443
443
|
i.value && e.message.actions ? (r(), d("button", {
|
444
444
|
key: 0,
|
445
445
|
class: "audio-message__menu-button",
|
446
|
-
onClick: I[0] || (I[0] = (D) =>
|
446
|
+
onClick: I[0] || (I[0] = (D) => s.value = !s.value)
|
447
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,
|
@@ -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 Zf = /* @__PURE__ */ new WeakMap(),
|
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
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,7 +12589,7 @@ 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) {
|
@@ -12602,7 +12602,7 @@ function gA(e) {
|
|
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({
|
@@ -12701,7 +12701,7 @@ function vA() {
|
|
12701
12701
|
return this.options.displayRecent || (c = ["recent", ...c]), c;
|
12702
12702
|
},
|
12703
12703
|
get groups() {
|
12704
|
-
return
|
12704
|
+
return Sf.filter(
|
12705
12705
|
(c) => !this.disabled.includes(c.key)
|
12706
12706
|
);
|
12707
12707
|
},
|
@@ -12709,7 +12709,7 @@ function vA() {
|
|
12709
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
12714
|
return [...new Set(c)].filter((m) => !this.disabled.includes(m));
|
12715
12715
|
}
|
@@ -12729,9 +12729,9 @@ function vA() {
|
|
12729
12729
|
}
|
12730
12730
|
const A = (c) => {
|
12731
12731
|
e.search = c;
|
12732
|
-
}, s = (c) => {
|
12733
|
-
e.emoji = c;
|
12734
12732
|
}, t = (c) => {
|
12733
|
+
e.emoji = c;
|
12734
|
+
}, s = (c) => {
|
12735
12735
|
e.activeGroup = c;
|
12736
12736
|
}, i = (c = He) => {
|
12737
12737
|
e.skinTone = c;
|
@@ -12739,7 +12739,7 @@ function vA() {
|
|
12739
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
|
});
|
@@ -12750,22 +12750,22 @@ function vA() {
|
|
12750
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 M = { u: c.u, n:
|
12753
|
+
const M = { u: c.u, n: Wf(c.n) };
|
12754
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
12763
|
updateSelect: g
|
12764
12764
|
};
|
12765
12765
|
}
|
12766
|
-
var q = "top", $ = "bottom", Z = "right", F = "left",
|
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,9 +12948,9 @@ 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 c = BA(A.padding, n), m =
|
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
12954
|
n.modifiersData[a] = (f = {}, f[z] = E, f.centerOffset = E - V, f);
|
12955
12955
|
}
|
12956
12956
|
}
|
@@ -12983,16 +12983,16 @@ 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
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) &&
|
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
12991
|
N = $;
|
12992
12992
|
var L = c && j.visualViewport ? j.visualViewport.height : V[E];
|
12993
12993
|
h -= L - a.height, h *= u ? 1 : -1;
|
12994
12994
|
}
|
12995
|
-
if (A === F || (A === q || A === $) &&
|
12995
|
+
if (A === F || (A === q || A === $) && t === xe) {
|
12996
12996
|
D = Z;
|
12997
12997
|
var O = c && j.visualViewport ? j.visualViewport.width : V[z];
|
12998
12998
|
p -= O - a.width, p *= u ? 1 : -1;
|
@@ -13008,7 +13008,7 @@ function Lf(e) {
|
|
13008
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,11 +13040,11 @@ 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
|
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
13045
|
g.addEventListener("scroll", n.update, qe);
|
13046
13046
|
}), i && u.addEventListener("resize", n.update, qe), function() {
|
13047
|
-
|
13047
|
+
t && l.forEach(function(g) {
|
13048
13048
|
g.removeEventListener("scroll", n.update, qe);
|
13049
13049
|
}), i && u.removeEventListener("resize", n.update, qe);
|
13050
13050
|
};
|
@@ -13072,53 +13072,53 @@ 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
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,24 +13140,24 @@ 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
13158
|
case $:
|
13159
13159
|
u = {
|
13160
|
-
x:
|
13160
|
+
x: s,
|
13161
13161
|
y: f.y + f.height
|
13162
13162
|
};
|
13163
13163
|
break;
|
@@ -13179,10 +13179,10 @@ 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
13184
|
var g = l === "y" ? "height" : "width";
|
13185
|
-
switch (
|
13185
|
+
switch (t) {
|
13186
13186
|
case he:
|
13187
13187
|
u[l] = u[l] - (f[g] / 2 - n[g] / 2);
|
13188
13188
|
break;
|
@@ -13195,16 +13195,16 @@ 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,
|
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
13199
|
reference: N,
|
13200
13200
|
element: _,
|
13201
13201
|
strategy: "absolute",
|
13202
13202
|
placement: A
|
13203
|
-
}), V =
|
13204
|
-
top: D.top - E.top +
|
13205
|
-
bottom: E.bottom - D.bottom +
|
13206
|
-
left: D.left - E.left +
|
13207
|
-
right: E.right - D.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
13209
|
if (g === je && L) {
|
13210
13210
|
var O = L[A];
|
@@ -13217,41 +13217,41 @@ 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,
|
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
13221
|
return Ie(p) === g;
|
13222
13222
|
}) : ze, m = c.filter(function(p) {
|
13223
13223
|
return l.indexOf(p) >= 0;
|
13224
13224
|
});
|
13225
13225
|
m.length === 0 && (m = c);
|
13226
|
-
var M = m.reduce(function(p,
|
13227
|
-
return p[
|
13228
|
-
placement:
|
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(M).sort(function(p,
|
13235
|
-
return M[p] - M[
|
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
13250
|
boundary: g,
|
13251
13251
|
rootBoundary: c,
|
13252
13252
|
padding: l,
|
13253
13253
|
flipVariations: p,
|
13254
|
-
allowedAutoPlacements:
|
13254
|
+
allowedAutoPlacements: y
|
13255
13255
|
}) : Ae);
|
13256
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
13257
|
var C = N[O], Y = ee(C), ie = Ie(C) === he, we = [q, $].indexOf(Y) >= 0, De = we ? "width" : "height", J = Se(f, {
|
@@ -13263,8 +13263,8 @@ function tt(e) {
|
|
13263
13263
|
}), G = we ? ie ? Z : F : ie ? $ : q;
|
13264
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;
|
@@ -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,17 +13311,17 @@ function Yf(e, f, n) {
|
|
13311
13311
|
left: e.left - f.width - n.x
|
13312
13312
|
};
|
13313
13313
|
}
|
13314
|
-
function
|
13314
|
+
function qf(e) {
|
13315
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,
|
@@ -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 g[c] = ut(c, f.rects,
|
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
13390
|
padding: c,
|
13391
13391
|
altBoundary: g
|
13392
|
-
}), _ = ee(f.placement), I = Ie(f.placement), D = !I, N =
|
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({
|
@@ -13402,16 +13402,16 @@ function mt(e) {
|
|
13402
13402
|
y: 0
|
13403
13403
|
};
|
13404
13404
|
if (V) {
|
13405
|
-
if (
|
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,
|
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, E[J],
|
13410
|
-
V[N] =
|
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
|
-
V[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 =
|
13520
|
+
l === void 0 && (l = t);
|
13521
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,
|
@@ -13533,7 +13533,7 @@ function Dt(e) {
|
|
13533
13533
|
state: g,
|
13534
13534
|
setOptions: function(_) {
|
13535
13535
|
var I = typeof _ == "function" ? _(g.options) : _;
|
13536
|
-
|
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
|
};
|
@@ -13545,10 +13545,10 @@ function Dt(e) {
|
|
13545
13545
|
forceUpdate: function() {
|
13546
13546
|
if (!m) {
|
13547
13547
|
var _ = g.elements, I = _.reference, D = _.popper;
|
13548
|
-
if (
|
13548
|
+
if (Jf(I, D)) {
|
13549
13549
|
g.rects = {
|
13550
13550
|
reference: yt(I, Oe(D), g.options.strategy === "fixed"),
|
13551
|
-
popper:
|
13551
|
+
popper: Mf(D)
|
13552
13552
|
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(O) {
|
13553
13553
|
return g.modifiersData[O.name] = Object.assign({}, O.data);
|
13554
13554
|
});
|
@@ -13574,10 +13574,10 @@ function Dt(e) {
|
|
13574
13574
|
});
|
13575
13575
|
}),
|
13576
13576
|
destroy: function() {
|
13577
|
-
|
13577
|
+
y(), m = !0;
|
13578
13578
|
}
|
13579
13579
|
};
|
13580
|
-
if (!
|
13580
|
+
if (!Jf(i, u))
|
13581
13581
|
return M;
|
13582
13582
|
M.setOptions(l).then(function(h) {
|
13583
13583
|
!m && l.onFirstUpdate && l.onFirstUpdate(h);
|
@@ -13597,7 +13597,7 @@ function Dt(e) {
|
|
13597
13597
|
}
|
13598
13598
|
});
|
13599
13599
|
}
|
13600
|
-
function
|
13600
|
+
function y() {
|
13601
13601
|
c.forEach(function(h) {
|
13602
13602
|
return h();
|
13603
13603
|
}), c = [];
|
@@ -13613,11 +13613,11 @@ 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
13622
|
if (i[Ze][0].includes(f.toLocaleLowerCase())) {
|
13623
13623
|
let l = i[$f];
|
@@ -13627,12 +13627,12 @@ function jt(e, f, n, a = []) {
|
|
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,18 +13651,18 @@ 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
|
13658
13658
|
},
|
13659
13659
|
setup() {
|
13660
|
-
const { state: e, updateEmoji: f, updateSelect: n } = Pe("store"), a =
|
13660
|
+
const { state: e, updateEmoji: f, updateSelect: n } = Pe("store"), a = v(null), A = x(() => jt(
|
13661
13661
|
e.emojis,
|
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
|
});
|
@@ -13671,23 +13671,23 @@ const Vt = ce({
|
|
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 M(p,
|
13680
|
+
function M(p, y) {
|
13681
13681
|
var h;
|
13682
13682
|
const _ = (h = p == null ? void 0 : p.target) == null ? void 0 : h.closest("button");
|
13683
|
-
_ && (_.innerHTML = `<span>${We(
|
13683
|
+
_ && (_.innerHTML = `<span>${We(y)}</span>`);
|
13684
13684
|
}
|
13685
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,
|
@@ -13701,7 +13701,7 @@ const Vt = ce({
|
|
13701
13701
|
unicodeToEmoji: We,
|
13702
13702
|
EMOJI_RESULT_KEY: Te,
|
13703
13703
|
EMOJI_NAME_KEY: Ze,
|
13704
|
-
hasGroupNames:
|
13704
|
+
hasGroupNames: s,
|
13705
13705
|
isSticky: i,
|
13706
13706
|
platform: g,
|
13707
13707
|
groupNames: u,
|
@@ -13712,25 +13712,25 @@ 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
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
13728
|
class: T(e.isSticky ? "v3-sticky" : "")
|
13729
|
-
}, w(e.groupNames[
|
13730
|
-
[pe, e.emojis[
|
13729
|
+
}, w(e.groupNames[s]), 3)), [
|
13730
|
+
[pe, e.emojis[s]]
|
13731
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),
|
@@ -13744,17 +13744,17 @@ 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+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41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gMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+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,
|
@@ -13766,16 +13766,16 @@ const Ht = ce({
|
|
13766
13766
|
title: f.options.groupNames[c] ? f.options.groupNames[c] : ln(c)
|
13767
13767
|
}))
|
13768
13768
|
], g = [];
|
13769
|
-
return
|
13769
|
+
return s.forEach((c) => {
|
13770
13770
|
const m = l.findIndex((M) => M.key === c);
|
13771
13771
|
m !== -1 && (g.push(l[m]), l.splice(m, 1));
|
13772
13772
|
}), {
|
13773
13773
|
orderedGroups: g,
|
13774
|
-
orderedKeys:
|
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,
|
@@ -13804,23 +13804,23 @@ const Ht = ce({
|
|
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
13813
|
class: T(["v3-group", {
|
13814
|
-
"v3-is-hidden": !e.icons[
|
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
13826
|
], 8, Zt)
|
@@ -13829,22 +13829,22 @@ function n1(e, f, n, a, A, s) {
|
|
13829
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
13838
|
])) : b("", !0)
|
13839
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 =
|
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
|
}));
|
@@ -13872,8 +13872,8 @@ const A1 = ce({
|
|
13872
13872
|
toggleSkinToneState: g,
|
13873
13873
|
EMOJI_RESULT_KEY: Te,
|
13874
13874
|
EMOJI_NAME_KEY: Ze,
|
13875
|
-
skinToneText:
|
13876
|
-
hasSkinTones:
|
13875
|
+
skinToneText: t,
|
13876
|
+
hasSkinTones: s,
|
13877
13877
|
native: e.options.native,
|
13878
13878
|
unicodeToEmoji: We,
|
13879
13879
|
platform: i,
|
@@ -13881,10 +13881,10 @@ 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", {
|
@@ -13894,7 +13894,7 @@ function l1(e, f, n, a, A, s) {
|
|
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
13900
|
o("span", o1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
@@ -13903,7 +13903,7 @@ function l1(e, f, n, a, A, s) {
|
|
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
13908
|
o("span", u1, w(e.skinToneText), 1),
|
13909
13909
|
o("span", {
|
@@ -13913,18 +13913,18 @@ function l1(e, f, n, a, A, s) {
|
|
13913
13913
|
o("div", {
|
13914
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: T(["v3-skin-tone-" +
|
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
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,13 +13962,13 @@ const d1 = ce({
|
|
13962
13962
|
"update:text": (e) => !0
|
13963
13963
|
},
|
13964
13964
|
setup(e, { emit: f }) {
|
13965
|
-
const n =
|
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
13967
|
const { state: l } = Pe("store"), g = x(() => l.options.colorTheme);
|
13968
13968
|
function c(h) {
|
13969
13969
|
if (i) {
|
13970
13970
|
const _ = l.options.mode;
|
13971
|
-
_ === "prepend" ?
|
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
13973
|
f("select", h);
|
13974
13974
|
}
|
@@ -13980,7 +13980,7 @@ const d1 = ce({
|
|
13980
13980
|
var _;
|
13981
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) {
|
@@ -13998,8 +13998,8 @@ const d1 = ce({
|
|
13998
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();
|
@@ -14007,15 +14007,15 @@ const d1 = ce({
|
|
14007
14007
|
document.body.removeEventListener("click", M);
|
14008
14008
|
}), {
|
14009
14009
|
face: un,
|
14010
|
-
open:
|
14010
|
+
open: t,
|
14011
14011
|
onSelect: c,
|
14012
|
-
input:
|
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:
|
14018
|
+
onChangeText: y,
|
14019
14019
|
colorTheme: g
|
14020
14020
|
};
|
14021
14021
|
}
|
@@ -14023,8 +14023,8 @@ const d1 = ce({
|
|
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", {
|
@@ -14061,7 +14061,7 @@ function b1(e, f, n, a, A, s) {
|
|
14061
14061
|
ref: "picker",
|
14062
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)
|
@@ -14071,13 +14071,13 @@ function b1(e, f, n, a, A, s) {
|
|
14071
14071
|
key: 1,
|
14072
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
|
@@ -14161,9 +14161,9 @@ const v1 = ce({
|
|
14161
14161
|
select: (e) => !0
|
14162
14162
|
},
|
14163
14163
|
setup(e, { emit: f }) {
|
14164
|
-
const n =
|
14165
|
-
function a(
|
14166
|
-
n.value =
|
14164
|
+
const n = v(e.text);
|
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({
|
@@ -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,8 +14220,8 @@ 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 =
|
14224
|
-
i.value = c, l(),
|
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
14227
|
}, g = (c) => {
|
@@ -14279,7 +14279,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14279
14279
|
}
|
14280
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,10 +14298,10 @@ 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 =
|
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 = () => {
|
@@ -14310,7 +14310,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14310
14310
|
type: null,
|
14311
14311
|
text: null
|
14312
14312
|
};
|
14313
|
-
|
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
14314
|
}, c = () => {
|
14315
14315
|
i.value = !i.value;
|
14316
14316
|
}, m = x(() => {
|
@@ -14319,11 +14319,11 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
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,
|
@@ -14334,32 +14334,32 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
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
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
14355
|
onClick: c
|
14356
|
-
},
|
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
14361
|
onClick: g
|
14362
|
-
},
|
14362
|
+
}, y[2] || (y[2] = [
|
14363
14363
|
o("span", { class: "pi pi-send" }, null, -1)
|
14364
14364
|
]))
|
14365
14365
|
])
|
@@ -14392,15 +14392,15 @@ 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
|
-
},
|
14395
|
+
}, t = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", s = (c) => {
|
14396
14396
|
g(), a("action", { chatId: n.chat.chatId, ...c });
|
14397
|
-
}, i =
|
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
14402
|
return (c, m) => (r(), d("div", {
|
14403
|
-
class: T(
|
14403
|
+
class: T(t()),
|
14404
14404
|
onClick: A
|
14405
14405
|
}, [
|
14406
14406
|
o("div", {
|
@@ -14438,11 +14438,11 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
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:
|
14445
|
+
onClick: s
|
14446
14446
|
}, null, 8, ["actions"])) : b("", !0)
|
14447
14447
|
]),
|
14448
14448
|
_: 1
|
@@ -14454,11 +14454,11 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14454
14454
|
__name: "ChatFilter",
|
14455
14455
|
emits: ["update"],
|
14456
14456
|
setup(e, { emit: f }) {
|
14457
|
-
const n =
|
14458
|
-
const
|
14459
|
-
a("update",
|
14457
|
+
const n = v(""), a = f, A = () => {
|
14458
|
+
const t = le(n);
|
14459
|
+
a("update", t.value);
|
14460
14460
|
};
|
14461
|
-
return (
|
14461
|
+
return (t, s) => (r(), d("div", $1, [
|
14462
14462
|
o("div", Z1, [
|
14463
14463
|
o("input", {
|
14464
14464
|
ref_key: "refInput",
|
@@ -14503,19 +14503,19 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14503
14503
|
},
|
14504
14504
|
emits: ["select", "action"],
|
14505
14505
|
setup(e, { emit: f }) {
|
14506
|
-
const n =
|
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 = () =>
|
14512
|
+
}, u = () => t.chats.toSorted((c, m) => {
|
14513
14513
|
if (c.countUnread > m.countUnread) return -1;
|
14514
14514
|
if (c.countUnread < m.countUnread) return 1;
|
14515
14515
|
if (c.countUnread == m.countUnread) return 0;
|
14516
14516
|
}).filter((c) => c.name.includes(n.value)), l = (c) => {
|
14517
14517
|
n.value = c;
|
14518
|
-
}, g = (c) =>
|
14518
|
+
}, g = (c) => s("action", c);
|
14519
14519
|
return (c, m) => (r(), d("div", es, [
|
14520
14520
|
o("div", {
|
14521
14521
|
class: "chat-list__title-container",
|
@@ -14531,7 +14531,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
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",
|
@@ -14590,10 +14590,10 @@ 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 =
|
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;
|
@@ -14601,16 +14601,16 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14601
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 h = Math.floor(
|
14604
|
+
const m = (y) => {
|
14605
|
+
const h = Math.floor(y / 60), _ = Math.floor(y % 60);
|
14606
14606
|
return `${h.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
|
14607
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,11 +14625,11 @@ 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
|
-
}), (
|
14632
|
+
}), (y, h) => (r(), d("div", {
|
14633
14633
|
class: T(["video-message", n(e.message)]),
|
14634
14634
|
messageId: e.message.messageId,
|
14635
14635
|
onMouseleave: g
|
@@ -14682,11 +14682,11 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
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:
|
14689
|
+
onClick: y.clickAction
|
14690
14690
|
}, null, 8, ["actions", "onClick"])) : b("", !0)
|
14691
14691
|
]),
|
14692
14692
|
_: 1
|
@@ -14795,10 +14795,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14795
14795
|
},
|
14796
14796
|
emits: ["messageAction", "loadMore"],
|
14797
14797
|
setup(e, { emit: f }) {
|
14798
|
-
const n =
|
14799
|
-
const c =
|
14798
|
+
const n = v(), a = v(!1), A = e, t = f, s = () => {
|
14799
|
+
const c = le(n);
|
14800
14800
|
c.scrollHeight - c.scrollTop - c.clientHeight < 100 ? a.value = !1 : a.value = !0, c.scrollTop === 0 && t("loadMore");
|
14801
|
-
},
|
14801
|
+
}, i = (c) => ({
|
14802
14802
|
"message.text": ha,
|
14803
14803
|
"message.image": oa,
|
14804
14804
|
"message.file": $n,
|
@@ -14808,13 +14808,19 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14808
14808
|
"message.system": Us,
|
14809
14809
|
"system.date": za
|
14810
14810
|
})[c];
|
14811
|
+
function u() {
|
14812
|
+
A.isScrollToBottomOnUpdateObjectsEnabled && of(function() {
|
14813
|
+
const c = le(n);
|
14814
|
+
c.scrollTop = c.scrollHeight;
|
14815
|
+
});
|
14816
|
+
}
|
14811
14817
|
function l() {
|
14812
|
-
|
14813
|
-
const c =
|
14818
|
+
of(function() {
|
14819
|
+
const c = le(n);
|
14814
14820
|
c.scrollTop = c.scrollHeight;
|
14815
14821
|
});
|
14816
14822
|
}
|
14817
|
-
En(() =>
|
14823
|
+
En(() => u), $e(() => A.objects, u);
|
14818
14824
|
const g = (c) => {
|
14819
14825
|
t("messageAction", c);
|
14820
14826
|
};
|
@@ -14822,10 +14828,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14822
14828
|
ref_key: "refFeed",
|
14823
14829
|
ref: n,
|
14824
14830
|
class: "message-feed",
|
14825
|
-
onScroll:
|
14831
|
+
onScroll: s
|
14826
14832
|
}, [
|
14827
14833
|
o("div", Ls, [
|
14828
|
-
(r(!0), d(B, null, R(e.objects, (M) => (r(), Q(Tn(
|
14834
|
+
(r(!0), d(B, null, R(e.objects, (M) => (r(), Q(Tn(i(M.type)), {
|
14829
14835
|
key: M.messageId,
|
14830
14836
|
class: "message-feed__message",
|
14831
14837
|
message: M,
|
@@ -14837,8 +14843,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14837
14843
|
a.value ? (r(), d("button", {
|
14838
14844
|
key: 0,
|
14839
14845
|
class: "message-feed__button-down",
|
14840
|
-
onClick:
|
14841
|
-
}, m[
|
14846
|
+
onClick: l
|
14847
|
+
}, m[0] || (m[0] = [
|
14842
14848
|
o("span", { class: "pi pi-angle-down" }, null, -1)
|
14843
14849
|
]))) : b("", !0)
|
14844
14850
|
]),
|
@@ -14846,7 +14852,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14846
14852
|
})
|
14847
14853
|
], 544));
|
14848
14854
|
}
|
14849
|
-
}, ro = /* @__PURE__ */ k(Qs, [["__scopeId", "data-v-
|
14855
|
+
}, ro = /* @__PURE__ */ k(Qs, [["__scopeId", "data-v-f402849e"]]), Bs = { class: "profile" }, Ys = {
|
14850
14856
|
key: 0,
|
14851
14857
|
class: "profile__container"
|
14852
14858
|
}, Rs = {
|
@@ -14900,14 +14906,14 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14900
14906
|
emits: ["fileSelected"],
|
14901
14907
|
setup(e, { emit: f }) {
|
14902
14908
|
const n = f, a = (A) => {
|
14903
|
-
const
|
14904
|
-
|
14909
|
+
const t = A.target.files[0];
|
14910
|
+
t && (console.log("Selected file:", t), n("fileSelected", t));
|
14905
14911
|
};
|
14906
|
-
return (A,
|
14912
|
+
return (A, t) => e.hovered && e.canUploadFile ? (r(), d("div", Ks, [
|
14907
14913
|
o("div", Ps, [
|
14908
14914
|
o("label", $s, [
|
14909
|
-
|
14910
|
-
|
14915
|
+
t[0] || (t[0] = o("i", { class: "pi pi-image" }, null, -1)),
|
14916
|
+
t[1] || (t[1] = o("span", { class: "label-title" }, "Фото", -1)),
|
14911
14917
|
o("input", {
|
14912
14918
|
style: { display: "none" },
|
14913
14919
|
accept: "image/*",
|
@@ -14916,8 +14922,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14916
14922
|
}, null, 32)
|
14917
14923
|
]),
|
14918
14924
|
o("label", Zs, [
|
14919
|
-
|
14920
|
-
|
14925
|
+
t[2] || (t[2] = o("i", { class: "pi pi-video" }, null, -1)),
|
14926
|
+
t[3] || (t[3] = o("span", { class: "label-title" }, "Видео", -1)),
|
14921
14927
|
o("input", {
|
14922
14928
|
style: { display: "none" },
|
14923
14929
|
accept: "video/*",
|
@@ -14926,8 +14932,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14926
14932
|
}, null, 32)
|
14927
14933
|
]),
|
14928
14934
|
o("label", Gs, [
|
14929
|
-
|
14930
|
-
|
14935
|
+
t[4] || (t[4] = o("i", { class: "pi pi-file" }, null, -1)),
|
14936
|
+
t[5] || (t[5] = o("span", { class: "label-title" }, "Файл", -1)),
|
14931
14937
|
o("input", {
|
14932
14938
|
style: { display: "none" },
|
14933
14939
|
type: "file",
|
@@ -14951,27 +14957,27 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14951
14957
|
},
|
14952
14958
|
emits: ["fileUploaded"],
|
14953
14959
|
setup(e, { emit: f }) {
|
14954
|
-
const n = e, a =
|
14955
|
-
|
14960
|
+
const n = e, a = v(!1);
|
14961
|
+
v(!1);
|
14956
14962
|
const A = () => {
|
14957
14963
|
a.value = !0;
|
14958
|
-
},
|
14964
|
+
}, t = () => {
|
14959
14965
|
a.value = !1;
|
14960
|
-
},
|
14966
|
+
}, s = v(null), i = v(""), u = v(""), l = v(""), g = v(!1), c = v(!1), m = v(!1), M = f;
|
14961
14967
|
$e(
|
14962
14968
|
() => n.canUploadFile,
|
14963
14969
|
() => {
|
14964
|
-
|
14970
|
+
of(() => {
|
14965
14971
|
n.canUploadFile === !0 && (i.value = null);
|
14966
14972
|
});
|
14967
14973
|
}
|
14968
14974
|
);
|
14969
14975
|
const p = (I) => {
|
14970
|
-
console.log("onFileSelected", I.target.files[0]),
|
14971
|
-
},
|
14972
|
-
console.log("onFileSelected", 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);
|
14973
14979
|
}, h = () => {
|
14974
|
-
const I =
|
14980
|
+
const I = s.value, D = I.type;
|
14975
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) {
|
14976
14982
|
const N = new FileReader();
|
14977
14983
|
N.onload = (j) => {
|
@@ -14982,7 +14988,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
14982
14988
|
}, _ = async () => {
|
14983
14989
|
i.value = "uploading";
|
14984
14990
|
const I = new FormData();
|
14985
|
-
I.append("file",
|
14991
|
+
I.append("file", s.value);
|
14986
14992
|
try {
|
14987
14993
|
const N = await (await fetch(
|
14988
14994
|
"https://filebump.services.mobilon.ru/upload",
|
@@ -15000,7 +15006,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15000
15006
|
o("div", {
|
15001
15007
|
class: "container",
|
15002
15008
|
onMouseover: A,
|
15003
|
-
onMouseout:
|
15009
|
+
onMouseout: t
|
15004
15010
|
}, [
|
15005
15011
|
e.canUploadFile && i.value !== "success" ? (r(), d("div", fi, [
|
15006
15012
|
o("label", null, [
|
@@ -15024,9 +15030,9 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15024
15030
|
S(ei, {
|
15025
15031
|
hovered: a.value,
|
15026
15032
|
"can-upload-file": e.canUploadFile,
|
15027
|
-
onFileSelected:
|
15033
|
+
onFileSelected: y,
|
15028
15034
|
onMouseover: A,
|
15029
|
-
onMouseout:
|
15035
|
+
onMouseout: t
|
15030
15036
|
}, null, 8, ["hovered", "can-upload-file"])
|
15031
15037
|
], 64));
|
15032
15038
|
}
|
@@ -15039,18 +15045,18 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15039
15045
|
}
|
15040
15046
|
},
|
15041
15047
|
setup(e) {
|
15042
|
-
const f = e, n =
|
15043
|
-
const
|
15044
|
-
n.value =
|
15048
|
+
const f = e, n = v("light"), a = (A) => {
|
15049
|
+
const t = A.target.value;
|
15050
|
+
n.value = t, document.documentElement.dataset.theme = t;
|
15045
15051
|
};
|
15046
|
-
return (A,
|
15052
|
+
return (A, t) => (r(), d("div", null, [
|
15047
15053
|
o("select", {
|
15048
|
-
onChange:
|
15054
|
+
onChange: t[0] || (t[0] = (s) => a(s))
|
15049
15055
|
}, [
|
15050
|
-
(r(!0), d(B, null, R(f.themes, (
|
15056
|
+
(r(!0), d(B, null, R(f.themes, (s, i) => (r(), d("option", {
|
15051
15057
|
key: i,
|
15052
|
-
value:
|
15053
|
-
}, w(
|
15058
|
+
value: s.code
|
15059
|
+
}, w(s.name), 9, ii))), 128))
|
15054
15060
|
], 32)
|
15055
15061
|
]));
|
15056
15062
|
}
|
@@ -15065,10 +15071,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15065
15071
|
},
|
15066
15072
|
emits: ["selectItem"],
|
15067
15073
|
setup(e, { emit: f }) {
|
15068
|
-
const a = xn(e, "sidebarItems"), A = f,
|
15074
|
+
const a = xn(e, "sidebarItems"), A = f, t = (i) => {
|
15069
15075
|
const u = a.value.find((l) => l.itemId === i);
|
15070
15076
|
A("selectItem", u);
|
15071
|
-
},
|
15077
|
+
}, s = (i) => {
|
15072
15078
|
const u = i.split(" ");
|
15073
15079
|
return u.length > 2 ? u.slice(0, 2).join(" ") : i;
|
15074
15080
|
};
|
@@ -15078,7 +15084,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15078
15084
|
(r(!0), d(B, null, R(a.value.filter((l) => !l.isFixedBottom), (l, g) => (r(), d("li", {
|
15079
15085
|
key: g,
|
15080
15086
|
class: "sidebar__item",
|
15081
|
-
onClick: (c) =>
|
15087
|
+
onClick: (c) => t(l.itemId)
|
15082
15088
|
}, [
|
15083
15089
|
o("img", {
|
15084
15090
|
src: l.icon,
|
@@ -15089,14 +15095,14 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15089
15095
|
key: 0,
|
15090
15096
|
style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
15091
15097
|
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
15092
|
-
l.name ? (r(), d("p", gi, w(
|
15098
|
+
l.name ? (r(), d("p", gi, w(s(l.name)), 1)) : b("", !0)
|
15093
15099
|
], 8, ci))), 128))
|
15094
15100
|
]),
|
15095
15101
|
o("ul", mi, [
|
15096
15102
|
(r(!0), d(B, null, R(a.value.filter((l) => l.isFixedBottom), (l, g) => (r(), d("li", {
|
15097
15103
|
key: g,
|
15098
15104
|
class: "sidebar__item",
|
15099
|
-
onClick: (c) =>
|
15105
|
+
onClick: (c) => t(l.itemId)
|
15100
15106
|
}, [
|
15101
15107
|
o("img", {
|
15102
15108
|
src: l.icon,
|
@@ -15107,7 +15113,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15107
15113
|
key: 0,
|
15108
15114
|
style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
15109
15115
|
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
15110
|
-
l.name ? (r(), d("p", hi, w(
|
15116
|
+
l.name ? (r(), d("p", hi, w(s(l.name)), 1)) : b("", !0)
|
15111
15117
|
], 8, pi))), 128))
|
15112
15118
|
])
|
15113
15119
|
])
|
@@ -15159,14 +15165,14 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15159
15165
|
},
|
15160
15166
|
emits: ["confirm", "close"],
|
15161
15167
|
setup(e, { emit: f }) {
|
15162
|
-
const n =
|
15163
|
-
A("confirm", a.value),
|
15164
|
-
},
|
15168
|
+
const n = v(!0), a = v([]), A = f, t = async () => {
|
15169
|
+
A("confirm", a.value), s(), i();
|
15170
|
+
}, s = () => {
|
15165
15171
|
A("close"), n.value = !1;
|
15166
15172
|
}, i = () => {
|
15167
15173
|
a.value = [];
|
15168
15174
|
}, u = () => {
|
15169
|
-
|
15175
|
+
s(), i();
|
15170
15176
|
};
|
15171
15177
|
return (l, g) => (r(), d("div", null, [
|
15172
15178
|
n.value ? (r(), d("div", wi, [
|
@@ -15191,7 +15197,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15191
15197
|
]))), 128))
|
15192
15198
|
]),
|
15193
15199
|
o("div", { class: "modal-actions" }, [
|
15194
|
-
o("button", { onClick:
|
15200
|
+
o("button", { onClick: t }, " ОК "),
|
15195
15201
|
o("button", { onClick: u }, " Отмена ")
|
15196
15202
|
])
|
15197
15203
|
])
|
@@ -15210,28 +15216,28 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
|
|
15210
15216
|
__name: "Modal",
|
15211
15217
|
emits: ["close", "submit"],
|
15212
15218
|
setup(e, { emit: f }) {
|
15213
|
-
const n = f, a = (
|
15214
|
-
n("submit",
|
15215
|
-
}, A =
|
15216
|
-
return (
|
15219
|
+
const n = f, a = (t) => {
|
15220
|
+
n("submit", t);
|
15221
|
+
}, A = v(null);
|
15222
|
+
return (t, s) => (r(), Q(H, { name: "modal-fade" }, {
|
15217
15223
|
default: K(() => [
|
15218
15224
|
o("div", Ei, [
|
15219
15225
|
o("div", Ti, [
|
15220
15226
|
o("div", xi, [
|
15221
|
-
W(
|
15227
|
+
W(t.$slots, "default", {}, void 0, !0)
|
15222
15228
|
]),
|
15223
15229
|
o("div", Si, [
|
15224
15230
|
o("button", {
|
15225
15231
|
type: "button",
|
15226
15232
|
class: "btn-green",
|
15227
15233
|
"aria-label": "Close modal",
|
15228
|
-
onClick:
|
15234
|
+
onClick: s[0] || (s[0] = (i) => a(A.value))
|
15229
15235
|
}, " OK "),
|
15230
15236
|
o("button", {
|
15231
15237
|
type: "button",
|
15232
15238
|
class: "btn-green",
|
15233
15239
|
"aria-label": "Close modal",
|
15234
|
-
onClick:
|
15240
|
+
onClick: s[1] || (s[1] = (i) => t.$emit("close"))
|
15235
15241
|
}, " Cancel ")
|
15236
15242
|
])
|
15237
15243
|
])
|
@@ -15245,23 +15251,23 @@ function cn({ component: e, attrs: f }) {
|
|
15245
15251
|
return new Promise((n) => {
|
15246
15252
|
const a = document.createElement("div");
|
15247
15253
|
document.body.appendChild(a);
|
15248
|
-
const A =
|
15254
|
+
const A = v({}), t = () => {
|
15249
15255
|
l.unmount(), document.body.removeChild(a);
|
15250
|
-
},
|
15251
|
-
|
15256
|
+
}, s = () => {
|
15257
|
+
t(), n(A.value);
|
15252
15258
|
}, i = (g) => {
|
15253
15259
|
const c = Object.keys(g)[0];
|
15254
15260
|
A.value[c] = g[c];
|
15255
|
-
}, u =
|
15261
|
+
}, u = de({
|
15256
15262
|
render() {
|
15257
|
-
return
|
15263
|
+
return xf(
|
15258
15264
|
Oi,
|
15259
15265
|
{
|
15260
|
-
onSubmit:
|
15261
|
-
onClose:
|
15266
|
+
onSubmit: s,
|
15267
|
+
onClose: t
|
15262
15268
|
},
|
15263
15269
|
{
|
15264
|
-
default: () =>
|
15270
|
+
default: () => xf(
|
15265
15271
|
zn(() => e),
|
15266
15272
|
{
|
15267
15273
|
...f,
|
@@ -15278,7 +15284,7 @@ function cn({ component: e, attrs: f }) {
|
|
15278
15284
|
const Mo = async (e, f) => {
|
15279
15285
|
const n = await cn({
|
15280
15286
|
//в component должен быть встроен emit change(key: value)
|
15281
|
-
component: import("./SelectUser2-
|
15287
|
+
component: import("./SelectUser2-CibU7oZR.js"),
|
15282
15288
|
attrs: {
|
15283
15289
|
title: e,
|
15284
15290
|
users: f
|
@@ -15332,19 +15338,19 @@ const Mo = async (e, f) => {
|
|
15332
15338
|
},
|
15333
15339
|
emits: ["close-window", "get-size"],
|
15334
15340
|
setup(e, { emit: f }) {
|
15335
|
-
const n = e, a =
|
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 = () => {
|
15336
15342
|
if (A.value) {
|
15337
|
-
const p = window.innerWidth,
|
15338
|
-
a.value.x = (p - h) / 2, a.value.y = (
|
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;
|
15339
15345
|
}
|
15340
15346
|
}, c = (p) => {
|
15341
|
-
|
15342
|
-
}, m = () =>
|
15343
|
-
if (
|
15344
|
-
const
|
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;
|
15345
15351
|
a.value.x = Math.max(
|
15346
15352
|
0,
|
15347
|
-
Math.min(
|
15353
|
+
Math.min(y, window.innerWidth - A.value.offsetWidth)
|
15348
15354
|
), a.value.y = Math.max(
|
15349
15355
|
0,
|
15350
15356
|
Math.min(h, window.innerHeight - A.value.offsetHeight)
|
@@ -15366,15 +15372,15 @@ const Mo = async (e, f) => {
|
|
15366
15372
|
window.innerHeight - A.value.offsetHeight
|
15367
15373
|
)
|
15368
15374
|
);
|
15369
|
-
}), l.value = A.value.offsetHeight -
|
15370
|
-
}), (p,
|
15375
|
+
}), l.value = A.value.offsetHeight - t.value.offsetHeight;
|
15376
|
+
}), (p, y) => (r(), d("div", {
|
15371
15377
|
ref_key: "element",
|
15372
15378
|
ref: A,
|
15373
15379
|
class: "float-window",
|
15374
15380
|
style: U({
|
15375
15381
|
left: a.value.x + "px",
|
15376
15382
|
top: a.value.y + "px",
|
15377
|
-
userSelect:
|
15383
|
+
userSelect: s.value ? "none" : "auto",
|
15378
15384
|
height: e.height,
|
15379
15385
|
width: e.width,
|
15380
15386
|
display: p.flex
|
@@ -15383,7 +15389,7 @@ const Mo = async (e, f) => {
|
|
15383
15389
|
o("div", Ui, [
|
15384
15390
|
o("div", {
|
15385
15391
|
ref_key: "container",
|
15386
|
-
ref:
|
15392
|
+
ref: t,
|
15387
15393
|
class: "float-window__controls",
|
15388
15394
|
style: U({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
|
15389
15395
|
onMousedown: c,
|
@@ -15399,8 +15405,8 @@ const Mo = async (e, f) => {
|
|
15399
15405
|
o("p", Qi, w(n.title), 1),
|
15400
15406
|
o("button", {
|
15401
15407
|
class: "float-window__close-button",
|
15402
|
-
onClick:
|
15403
|
-
},
|
15408
|
+
onClick: y[0] || (y[0] = (h) => p.$emit("close-window"))
|
15409
|
+
}, y[1] || (y[1] = [
|
15404
15410
|
o("span", { class: "pi pi-times" }, null, -1)
|
15405
15411
|
]))
|
15406
15412
|
], 36),
|
@@ -15452,7 +15458,7 @@ const _o = /* @__PURE__ */ k(Gi, [["render", fo], ["__scopeId", "data-v-3face7ce
|
|
15452
15458
|
}, Ao = {
|
15453
15459
|
key: 1,
|
15454
15460
|
style: { width: "100%" }
|
15455
|
-
}, to = /* @__PURE__ */
|
15461
|
+
}, to = /* @__PURE__ */ de({
|
15456
15462
|
__name: "ChatWrapper",
|
15457
15463
|
props: {
|
15458
15464
|
isOpenChatPanel: {
|
@@ -15483,21 +15489,21 @@ const _o = /* @__PURE__ */ k(Gi, [["render", fo], ["__scopeId", "data-v-3face7ce
|
|
15483
15489
|
}), wo = /* @__PURE__ */ k(to, [["__scopeId", "data-v-8ce07c9d"]]);
|
15484
15490
|
function Do(e) {
|
15485
15491
|
if (!e || e === "") return;
|
15486
|
-
const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60),
|
15487
|
-
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 ? "секунда" : "секунды"} назад` : "Только что";
|
15488
15494
|
}
|
15489
15495
|
const No = (e) => {
|
15490
15496
|
const f = [];
|
15491
15497
|
let n = null;
|
15492
15498
|
for (let a = 0; a < e.length; a++) {
|
15493
|
-
const A = e[a],
|
15494
|
-
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({
|
15495
15501
|
isSeparator: !0,
|
15496
|
-
day:
|
15502
|
+
day: t,
|
15497
15503
|
// Можно использовать локальную дату, если необходимо
|
15498
|
-
text:
|
15504
|
+
text: t,
|
15499
15505
|
type: "system.date"
|
15500
|
-
}), n =
|
15506
|
+
}), n = t), f.push(A);
|
15501
15507
|
}
|
15502
15508
|
return f;
|
15503
15509
|
}, ko = async () => {
|