@mobilon-dev/chotto 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
|
|
1
|
-
import { openBlock as r, createElementBlock as
|
1
|
+
import { openBlock as r, createElementBlock as d, createElementVNode as i, Fragment as B, renderList as q, normalizeClass as V, createCommentVNode as h, toDisplayString as _, ref as b, computed as x, normalizeStyle as L, createTextVNode as Dn, unref as Q, createVNode as C, Transition as H, withCtx as K, createBlock as Y, Teleport as Xf, onMounted as ie, withDirectives as te, vShow as he, renderSlot as F, watch as Ue, nextTick as cf, withKeys as jn, vModelText as en, onUpdated as Vn, resolveDynamicComponent as En, onUnmounted as pf, toRef as Tn, defineComponent as ge, inject as Xe, getCurrentInstance as xn, toRaw as fn, onBeforeUnmount as Sn, provide as zn, reactive as On, readonly as Cn, resolveComponent as He, vModelCheckbox as Un, h as Uf, defineAsyncComponent as Ln, createApp as Bn } from "vue";
|
2
2
|
const j = (e, f) => {
|
3
3
|
const n = e.__vccOpts || e;
|
4
4
|
for (const [a, t] of f)
|
5
5
|
n[a] = t;
|
6
6
|
return n;
|
7
|
-
},
|
7
|
+
}, Qn = { class: "context-menu" }, Yn = { class: "context-menu__container" }, Rn = { class: "context-menu__list" }, qn = ["onClick"], Fn = ["src"], $n = {
|
8
8
|
__name: "ContextMenu",
|
9
9
|
props: {
|
10
10
|
actions: {
|
@@ -18,30 +18,30 @@ const j = (e, f) => {
|
|
18
18
|
const A = n.actions[s];
|
19
19
|
a("click", A);
|
20
20
|
};
|
21
|
-
return (s, A) => (r(),
|
21
|
+
return (s, A) => (r(), d("div", Qn, [
|
22
22
|
i("div", Yn, [
|
23
23
|
i("ul", Rn, [
|
24
|
-
(r(!0),
|
25
|
-
key:
|
24
|
+
(r(!0), d(B, null, q(n.actions, (l, u) => (r(), d("li", {
|
25
|
+
key: u,
|
26
26
|
class: "context-menu__item",
|
27
|
-
onClick: (
|
27
|
+
onClick: (o) => t(u)
|
28
28
|
}, [
|
29
|
-
|
29
|
+
l.icon ? (r(), d("img", {
|
30
30
|
key: 0,
|
31
|
-
src:
|
31
|
+
src: l.icon,
|
32
32
|
width: "18",
|
33
33
|
height: "18"
|
34
|
-
}, null, 8, Fn)) :
|
34
|
+
}, null, 8, Fn)) : l.prime ? (r(), d("i", {
|
35
35
|
key: 1,
|
36
|
-
class: V("pi pi-" +
|
36
|
+
class: V("pi pi-" + l.prime)
|
37
37
|
}, null, 2)) : h("", !0),
|
38
|
-
i("span", null, _(
|
38
|
+
i("span", null, _(l.title), 1)
|
39
39
|
], 8, qn))), 128))
|
40
40
|
])
|
41
41
|
])
|
42
42
|
]));
|
43
43
|
}
|
44
|
-
},
|
44
|
+
}, me = /* @__PURE__ */ j($n, [["__scopeId", "data-v-54c29e54"]]);
|
45
45
|
function P1(e) {
|
46
46
|
if (!e || e === "") return;
|
47
47
|
const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), t = Math.floor(a / 60), s = Math.floor(t / 60), A = Math.floor(s / 24);
|
@@ -70,10 +70,10 @@ const Z1 = (e) => {
|
|
70
70
|
} catch {
|
71
71
|
console.log("no audio permissions");
|
72
72
|
}
|
73
|
-
}, X1 = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0),
|
73
|
+
}, X1 = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0), Lf = (e) => {
|
74
74
|
let f = "file";
|
75
75
|
return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
|
76
|
-
},
|
76
|
+
}, ke = ["read", "received", "send"], Ne = (e) => {
|
77
77
|
switch (console.log(e), e) {
|
78
78
|
case "read":
|
79
79
|
return "status--read";
|
@@ -101,16 +101,16 @@ const Z1 = (e) => {
|
|
101
101
|
a.value = !0;
|
102
102
|
}, s = () => {
|
103
103
|
a.value = !1, n.value = !1;
|
104
|
-
}, A = x(() =>
|
105
|
-
function
|
106
|
-
return
|
104
|
+
}, A = x(() => Ne(f.message.status));
|
105
|
+
function l(u) {
|
106
|
+
return u.position === "left" ? "file-message__left" : "file-message__right";
|
107
107
|
}
|
108
|
-
return (
|
109
|
-
class: V(["file-message",
|
108
|
+
return (u, o) => (r(), d("div", {
|
109
|
+
class: V(["file-message", l(e.message)]),
|
110
110
|
messageId: e.message.messageId,
|
111
111
|
onMouseleave: s
|
112
112
|
}, [
|
113
|
-
e.message.avatar ? (r(),
|
113
|
+
e.message.avatar ? (r(), d("img", {
|
114
114
|
key: 0,
|
115
115
|
class: "file-message__avatar",
|
116
116
|
src: e.message.avatar,
|
@@ -118,7 +118,7 @@ const Z1 = (e) => {
|
|
118
118
|
width: "32",
|
119
119
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
120
120
|
}, null, 12, Jn)) : h("", !0),
|
121
|
-
e.message.subText ? (r(),
|
121
|
+
e.message.subText ? (r(), d("p", Hn, _(e.message.subText), 1)) : h("", !0),
|
122
122
|
i("div", {
|
123
123
|
class: "file-message__content",
|
124
124
|
onMouseenter: t
|
@@ -129,24 +129,24 @@ const Z1 = (e) => {
|
|
129
129
|
download: "",
|
130
130
|
target: "_blank"
|
131
131
|
}, [
|
132
|
-
|
133
|
-
|
132
|
+
o[1] || (o[1] = i("span", { class: "pi pi-file" }, null, -1)),
|
133
|
+
Dn(" " + _(e.message.filename), 1)
|
134
134
|
], 8, Kn),
|
135
135
|
i("div", Pn, [
|
136
136
|
i("span", Zn, _(e.message.time), 1),
|
137
|
-
|
137
|
+
l(e.message) === "file-message__right" && Q(ke).includes(e.message.status) ? (r(), d("div", {
|
138
138
|
key: 0,
|
139
139
|
class: V(["file-message__status", A.value])
|
140
140
|
}, [
|
141
|
-
e.message.status !== "sent" ? (r(),
|
142
|
-
|
141
|
+
e.message.status !== "sent" ? (r(), d("span", Gn)) : h("", !0),
|
142
|
+
o[2] || (o[2] = i("span", { class: "pi pi-check" }, null, -1))
|
143
143
|
], 2)) : h("", !0)
|
144
144
|
]),
|
145
|
-
a.value && e.message.actions ? (r(),
|
145
|
+
a.value && e.message.actions ? (r(), d("button", {
|
146
146
|
key: 0,
|
147
147
|
class: "file-message__menu-button",
|
148
|
-
onClick:
|
149
|
-
},
|
148
|
+
onClick: o[0] || (o[0] = (c) => n.value = !n.value)
|
149
|
+
}, o[3] || (o[3] = [
|
150
150
|
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
151
151
|
]))) : h("", !0),
|
152
152
|
i("a", {
|
@@ -154,16 +154,16 @@ const Z1 = (e) => {
|
|
154
154
|
href: e.message.url,
|
155
155
|
download: "",
|
156
156
|
target: "_blank"
|
157
|
-
},
|
157
|
+
}, o[4] || (o[4] = [
|
158
158
|
i("span", { class: "pi pi-download" }, null, -1)
|
159
159
|
]), 8, Xn),
|
160
160
|
C(H, null, {
|
161
161
|
default: K(() => [
|
162
|
-
n.value && e.message.actions ? (r(),
|
162
|
+
n.value && e.message.actions ? (r(), Y(me, {
|
163
163
|
key: 0,
|
164
164
|
class: "file-message__context-menu",
|
165
165
|
actions: e.message.actions,
|
166
|
-
onClick:
|
166
|
+
onClick: u.clickAction
|
167
167
|
}, null, 8, ["actions", "onClick"])) : h("", !0)
|
168
168
|
]),
|
169
169
|
_: 1
|
@@ -177,10 +177,10 @@ const Z1 = (e) => {
|
|
177
177
|
}, Aa = ["src", "alt"], sa = { class: "image-message__info-container" }, ia = {
|
178
178
|
key: 0,
|
179
179
|
class: "image-message__views"
|
180
|
-
}, oa = { class: "image-message__time" },
|
180
|
+
}, oa = { class: "image-message__time" }, la = {
|
181
181
|
key: 0,
|
182
182
|
class: "pi pi-check"
|
183
|
-
},
|
183
|
+
}, ua = ["href"], ra = {
|
184
184
|
key: 0,
|
185
185
|
class: "image-message__modal-overlay"
|
186
186
|
}, ca = { class: "image-message__modal" }, da = ["src", "alt"], ga = {
|
@@ -196,16 +196,16 @@ const Z1 = (e) => {
|
|
196
196
|
t.value = !0;
|
197
197
|
}, A = () => {
|
198
198
|
t.value = !1, a.value = !1;
|
199
|
-
},
|
200
|
-
function
|
201
|
-
return
|
199
|
+
}, l = x(() => Ne(f.message.status));
|
200
|
+
function u(o) {
|
201
|
+
return o.position === "left" ? "image-message__left" : "image-message__right";
|
202
202
|
}
|
203
|
-
return (
|
204
|
-
class: V(["image-message",
|
203
|
+
return (o, c) => (r(), d("div", {
|
204
|
+
class: V(["image-message", u(e.message)]),
|
205
205
|
messageId: e.message.messageId,
|
206
206
|
onMouseleave: A
|
207
207
|
}, [
|
208
|
-
e.message.avatar ? (r(),
|
208
|
+
e.message.avatar ? (r(), d("img", {
|
209
209
|
key: 0,
|
210
210
|
class: "image-message__avatar",
|
211
211
|
src: e.message.avatar,
|
@@ -213,14 +213,14 @@ const Z1 = (e) => {
|
|
213
213
|
width: "32",
|
214
214
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
215
215
|
}, null, 12, aa)) : h("", !0),
|
216
|
-
e.message.subText ? (r(),
|
216
|
+
e.message.subText ? (r(), d("p", ta, _(e.message.subText), 1)) : h("", !0),
|
217
217
|
i("div", {
|
218
218
|
class: "image-message__content",
|
219
219
|
onMouseenter: s
|
220
220
|
}, [
|
221
221
|
i("div", {
|
222
222
|
class: "image-message__preview-button",
|
223
|
-
onClick:
|
223
|
+
onClick: c[0] || (c[0] = (g) => n.value = !0)
|
224
224
|
}, [
|
225
225
|
i("img", {
|
226
226
|
class: "image-message__preview-image",
|
@@ -228,17 +228,17 @@ const Z1 = (e) => {
|
|
228
228
|
alt: e.message.alt
|
229
229
|
}, null, 8, Aa),
|
230
230
|
i("div", sa, [
|
231
|
-
e.message.views ? (r(),
|
232
|
-
|
231
|
+
e.message.views ? (r(), d("div", ia, [
|
232
|
+
c[3] || (c[3] = i("span", { class: "pi pi-eye" }, null, -1)),
|
233
233
|
i("p", null, _(e.message.views), 1)
|
234
234
|
])) : h("", !0),
|
235
235
|
i("span", oa, _(e.message.time), 1),
|
236
|
-
|
236
|
+
u(e.message) === "image-message__right" && Q(ke).includes(e.message.status) ? (r(), d("div", {
|
237
237
|
key: 1,
|
238
|
-
class: V(["image-message__status",
|
238
|
+
class: V(["image-message__status", l.value])
|
239
239
|
}, [
|
240
|
-
e.message.status !== "sent" ? (r(),
|
241
|
-
|
240
|
+
e.message.status !== "sent" ? (r(), d("span", la)) : h("", !0),
|
241
|
+
c[4] || (c[4] = i("span", { class: "pi pi-check" }, null, -1))
|
242
242
|
], 2)) : h("", !0)
|
243
243
|
]),
|
244
244
|
i("a", {
|
@@ -246,19 +246,19 @@ const Z1 = (e) => {
|
|
246
246
|
href: e.message.url,
|
247
247
|
download: "",
|
248
248
|
target: "_blank"
|
249
|
-
},
|
249
|
+
}, c[5] || (c[5] = [
|
250
250
|
i("span", { class: "pi pi-download" }, null, -1)
|
251
|
-
]), 8,
|
251
|
+
]), 8, ua)
|
252
252
|
]),
|
253
|
-
(r(),
|
253
|
+
(r(), Y(Xf, { to: "body" }, [
|
254
254
|
C(H, { name: "modal-fade" }, {
|
255
255
|
default: K(() => [
|
256
|
-
n.value ? (r(),
|
256
|
+
n.value ? (r(), d("div", ra, [
|
257
257
|
i("div", ca, [
|
258
258
|
i("button", {
|
259
259
|
class: "image-message__modal-close-button",
|
260
|
-
onClick:
|
261
|
-
},
|
260
|
+
onClick: c[1] || (c[1] = (g) => n.value = !1)
|
261
|
+
}, c[6] || (c[6] = [
|
262
262
|
i("span", null, [
|
263
263
|
i("i", { class: "pi pi-times" })
|
264
264
|
], -1)
|
@@ -274,20 +274,20 @@ const Z1 = (e) => {
|
|
274
274
|
_: 1
|
275
275
|
})
|
276
276
|
])),
|
277
|
-
t.value && e.message.actions ? (r(),
|
277
|
+
t.value && e.message.actions ? (r(), d("button", {
|
278
278
|
key: 0,
|
279
279
|
class: "image-message__menu-button",
|
280
|
-
onClick:
|
281
|
-
},
|
280
|
+
onClick: c[2] || (c[2] = (g) => a.value = !a.value)
|
281
|
+
}, c[7] || (c[7] = [
|
282
282
|
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
283
283
|
]))) : h("", !0),
|
284
284
|
C(H, { name: "context-menu" }, {
|
285
285
|
default: K(() => [
|
286
|
-
a.value && e.message.actions ? (r(),
|
286
|
+
a.value && e.message.actions ? (r(), Y(me, {
|
287
287
|
key: 0,
|
288
288
|
class: "image-message__context-menu",
|
289
289
|
actions: e.message.actions,
|
290
|
-
onClick:
|
290
|
+
onClick: o.clickAction
|
291
291
|
}, null, 8, ["actions", "onClick"])) : h("", !0)
|
292
292
|
]),
|
293
293
|
_: 1
|
@@ -316,23 +316,23 @@ const Z1 = (e) => {
|
|
316
316
|
setup(e, { emit: f }) {
|
317
317
|
const n = e, a = f, t = b(!1), s = b(!1), A = () => {
|
318
318
|
s.value = !0;
|
319
|
-
},
|
319
|
+
}, l = () => {
|
320
320
|
s.value = !1, t.value = !1;
|
321
|
-
},
|
322
|
-
|
323
|
-
},
|
324
|
-
|
321
|
+
}, u = x(() => Ne(n.message.status)), o = (m) => {
|
322
|
+
l(), a("action", { messageId: n.message.messageId, type: "menu", ...m });
|
323
|
+
}, c = () => {
|
324
|
+
l(), a("action", { messageId: n.message.messageId, type: "views" });
|
325
325
|
};
|
326
|
-
function
|
327
|
-
return
|
326
|
+
function g(m) {
|
327
|
+
return m.position === "left" ? "text-message__left" : "text-message__right";
|
328
328
|
}
|
329
|
-
return (
|
329
|
+
return (m, p) => (r(), d("div", pa, [
|
330
330
|
i("div", {
|
331
|
-
class: V(
|
331
|
+
class: V(g(e.message)),
|
332
332
|
messageId: e.message.messageId,
|
333
|
-
onMouseleave:
|
333
|
+
onMouseleave: l
|
334
334
|
}, [
|
335
|
-
e.message.avatar ? (r(),
|
335
|
+
e.message.avatar ? (r(), d("img", {
|
336
336
|
key: 0,
|
337
337
|
class: "text-message__avatar",
|
338
338
|
src: e.message.avatar,
|
@@ -340,44 +340,44 @@ const Z1 = (e) => {
|
|
340
340
|
width: "32",
|
341
341
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
342
342
|
}, null, 12, ha)) : h("", !0),
|
343
|
-
e.message.subText ? (r(),
|
343
|
+
e.message.subText ? (r(), d("p", ya, _(e.message.subText), 1)) : h("", !0),
|
344
344
|
i("div", {
|
345
345
|
class: "text-message__content",
|
346
346
|
onMouseenter: A
|
347
347
|
}, [
|
348
348
|
i("p", ba, _(e.message.text), 1),
|
349
349
|
i("div", va, [
|
350
|
-
e.message.views ? (r(),
|
350
|
+
e.message.views ? (r(), d("div", {
|
351
351
|
key: 0,
|
352
352
|
class: "text-message__views",
|
353
|
-
onClick:
|
353
|
+
onClick: c
|
354
354
|
}, [
|
355
|
-
|
355
|
+
p[1] || (p[1] = i("span", { class: "pi pi-eye" }, null, -1)),
|
356
356
|
i("p", null, _(e.message.views), 1)
|
357
357
|
])) : h("", !0),
|
358
|
-
e.message.time ? (r(),
|
359
|
-
|
358
|
+
e.message.time ? (r(), d("span", _a, _(e.message.time), 1)) : h("", !0),
|
359
|
+
g(e.message) === "text-message__right" && Q(ke).includes(e.message.status) ? (r(), d("div", {
|
360
360
|
key: 2,
|
361
|
-
class: V(["text-message__status",
|
361
|
+
class: V(["text-message__status", u.value])
|
362
362
|
}, [
|
363
|
-
e.message.status !== "send" ? (r(),
|
364
|
-
|
363
|
+
e.message.status !== "send" ? (r(), d("span", Ia)) : h("", !0),
|
364
|
+
p[2] || (p[2] = i("span", { class: "pi pi-check" }, null, -1))
|
365
365
|
], 2)) : h("", !0)
|
366
366
|
]),
|
367
|
-
s.value && e.message.actions ? (r(),
|
367
|
+
s.value && e.message.actions ? (r(), d("button", {
|
368
368
|
key: 0,
|
369
369
|
class: "text-message__menu-button",
|
370
|
-
onClick:
|
371
|
-
},
|
370
|
+
onClick: p[0] || (p[0] = (y) => t.value = !t.value)
|
371
|
+
}, p[3] || (p[3] = [
|
372
372
|
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
373
373
|
]))) : h("", !0),
|
374
374
|
C(H, null, {
|
375
375
|
default: K(() => [
|
376
|
-
t.value && e.message.actions ? (r(),
|
376
|
+
t.value && e.message.actions ? (r(), Y(me, {
|
377
377
|
key: 0,
|
378
378
|
class: "text-message__context-menu",
|
379
379
|
actions: e.message.actions,
|
380
|
-
onClick:
|
380
|
+
onClick: o
|
381
381
|
}, null, 8, ["actions"])) : h("", !0)
|
382
382
|
]),
|
383
383
|
_: 1
|
@@ -386,7 +386,7 @@ const Z1 = (e) => {
|
|
386
386
|
], 42, Ma)
|
387
387
|
]));
|
388
388
|
}
|
389
|
-
},
|
389
|
+
}, ka = /* @__PURE__ */ j(wa, [["__scopeId", "data-v-495b360a"]]), Na = ["messageId"], Da = ["src"], ja = {
|
390
390
|
key: 1,
|
391
391
|
class: "audio-message__subtext"
|
392
392
|
}, Va = ["src"], Ea = { class: "audio-message__progress-bar-container" }, Ta = { class: "audio-message__remaining-time" }, xa = { class: "audio-message__info-container" }, Sa = { class: "audio-message__time" }, za = {
|
@@ -401,33 +401,33 @@ const Z1 = (e) => {
|
|
401
401
|
}
|
402
402
|
},
|
403
403
|
setup(e) {
|
404
|
-
const f = e, n = b(null), a = b(!1), t = b(0), s = b(0), A = b(!1),
|
405
|
-
|
406
|
-
},
|
407
|
-
|
408
|
-
},
|
409
|
-
function
|
404
|
+
const f = e, n = b(null), a = b(!1), t = b(0), s = b(0), A = b(!1), l = b(!1), u = () => {
|
405
|
+
l.value = !0;
|
406
|
+
}, o = () => {
|
407
|
+
l.value = !1, A.value = !1;
|
408
|
+
}, c = x(() => Ne(f.message.status));
|
409
|
+
function g() {
|
410
410
|
n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
|
411
411
|
}
|
412
|
-
const
|
412
|
+
const m = (I) => {
|
413
413
|
const w = Math.floor(I / 60), E = Math.floor(I % 60);
|
414
414
|
return `${w.toString().padStart(2, "0")}:${E.toString().padStart(2, "0")}`;
|
415
|
-
},
|
415
|
+
}, p = x(() => n.value ? m(s.value) : "0:00"), y = x(() => n.value ? m(t.value) : "0:00"), v = x(() => t.value > 0 ? s.value / t.value * 100 : 0);
|
416
416
|
function M(I) {
|
417
417
|
return I.position === "left" ? "audio-message__left" : "audio-message__right";
|
418
418
|
}
|
419
|
-
return
|
419
|
+
return ie(() => {
|
420
420
|
n.value.addEventListener("loadedmetadata", () => {
|
421
421
|
t.value = n.value.duration;
|
422
422
|
}), n.value.addEventListener("timeupdate", () => {
|
423
423
|
s.value = n.value.currentTime;
|
424
424
|
});
|
425
|
-
}), (I, w) => (r(),
|
425
|
+
}), (I, w) => (r(), d("div", {
|
426
426
|
class: V(["audio-message", M(e.message)]),
|
427
427
|
messageId: e.message.messageId,
|
428
|
-
onMouseleave:
|
428
|
+
onMouseleave: o
|
429
429
|
}, [
|
430
|
-
e.message.avatar ? (r(),
|
430
|
+
e.message.avatar ? (r(), d("img", {
|
431
431
|
key: 0,
|
432
432
|
class: "audio-message__avatar",
|
433
433
|
src: e.message.avatar,
|
@@ -435,10 +435,10 @@ const Z1 = (e) => {
|
|
435
435
|
width: "32",
|
436
436
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
437
437
|
}, null, 12, Da)) : h("", !0),
|
438
|
-
e.message.subText ? (r(),
|
438
|
+
e.message.subText ? (r(), d("p", ja, _(e.message.subText), 1)) : h("", !0),
|
439
439
|
i("div", {
|
440
440
|
class: "audio-message__content",
|
441
|
-
onMouseenter:
|
441
|
+
onMouseenter: u
|
442
442
|
}, [
|
443
443
|
i("audio", {
|
444
444
|
ref_key: "player",
|
@@ -447,19 +447,19 @@ const Z1 = (e) => {
|
|
447
447
|
}, null, 8, Va),
|
448
448
|
te(i("button", {
|
449
449
|
class: "audio-message__play",
|
450
|
-
onClick:
|
450
|
+
onClick: g
|
451
451
|
}, w[1] || (w[1] = [
|
452
452
|
i("span", { class: "pi pi-play" }, null, -1)
|
453
453
|
]), 512), [
|
454
|
-
[
|
454
|
+
[he, !a.value]
|
455
455
|
]),
|
456
456
|
te(i("button", {
|
457
457
|
class: "audio-message__pause",
|
458
|
-
onClick:
|
458
|
+
onClick: g
|
459
459
|
}, w[2] || (w[2] = [
|
460
460
|
i("span", { class: "pi pi-pause" }, null, -1)
|
461
461
|
]), 512), [
|
462
|
-
[
|
462
|
+
[he, a.value]
|
463
463
|
]),
|
464
464
|
i("div", Ea, [
|
465
465
|
i("div", {
|
@@ -467,18 +467,18 @@ const Z1 = (e) => {
|
|
467
467
|
style: L({ width: v.value + "%" })
|
468
468
|
}, null, 4)
|
469
469
|
]),
|
470
|
-
i("p", Ta, _(`${
|
470
|
+
i("p", Ta, _(`${p.value} / ${y.value}`), 1),
|
471
471
|
i("div", xa, [
|
472
472
|
i("span", Sa, _(e.message.time), 1),
|
473
|
-
M(e.message) === "audio-message__right" &&
|
473
|
+
M(e.message) === "audio-message__right" && Q(ke).includes(e.message.status) ? (r(), d("div", {
|
474
474
|
key: 0,
|
475
|
-
class: V(["audio-message__status",
|
475
|
+
class: V(["audio-message__status", c.value])
|
476
476
|
}, [
|
477
|
-
e.message.status !== "sent" ? (r(),
|
477
|
+
e.message.status !== "sent" ? (r(), d("span", za)) : h("", !0),
|
478
478
|
w[3] || (w[3] = i("span", { class: "pi pi-check" }, null, -1))
|
479
479
|
], 2)) : h("", !0)
|
480
480
|
]),
|
481
|
-
|
481
|
+
l.value && e.message.actions ? (r(), d("button", {
|
482
482
|
key: 0,
|
483
483
|
class: "audio-message__menu-button",
|
484
484
|
onClick: w[0] || (w[0] = (E) => A.value = !A.value)
|
@@ -495,7 +495,7 @@ const Z1 = (e) => {
|
|
495
495
|
]), 8, Oa),
|
496
496
|
C(H, null, {
|
497
497
|
default: K(() => [
|
498
|
-
A.value && e.message.actions ? (r(),
|
498
|
+
A.value && e.message.actions ? (r(), Y(me, {
|
499
499
|
key: 0,
|
500
500
|
class: "audio-message__context-menu",
|
501
501
|
actions: e.message.actions,
|
@@ -505,9 +505,9 @@ const Z1 = (e) => {
|
|
505
505
|
_: 1
|
506
506
|
})
|
507
507
|
], 32)
|
508
|
-
], 42,
|
508
|
+
], 42, Na));
|
509
509
|
}
|
510
|
-
}, Ua = /* @__PURE__ */ j(Ca, [["__scopeId", "data-v-27fb9d86"]]), La = { class: "date-message" },
|
510
|
+
}, Ua = /* @__PURE__ */ j(Ca, [["__scopeId", "data-v-27fb9d86"]]), La = { class: "date-message" }, Ba = { class: "date-message__container" }, Qa = { class: "date-message__text" }, Ya = {
|
511
511
|
__name: "DateMessage",
|
512
512
|
props: {
|
513
513
|
message: {
|
@@ -518,9 +518,9 @@ const Z1 = (e) => {
|
|
518
518
|
}
|
519
519
|
},
|
520
520
|
setup(e) {
|
521
|
-
return (f, n) => (r(),
|
522
|
-
i("div",
|
523
|
-
i("p",
|
521
|
+
return (f, n) => (r(), d("div", La, [
|
522
|
+
i("div", Ba, [
|
523
|
+
i("p", Qa, _(e.message.text), 1)
|
524
524
|
])
|
525
525
|
]));
|
526
526
|
}
|
@@ -544,32 +544,32 @@ const Z1 = (e) => {
|
|
544
544
|
emits: ["open-panel"],
|
545
545
|
setup(e, { emit: f }) {
|
546
546
|
const n = e;
|
547
|
-
return (a, t) => e.chat ? (r(),
|
547
|
+
return (a, t) => e.chat ? (r(), d("div", qa, [
|
548
548
|
i("div", Fa, [
|
549
|
-
n.chat.avatar ? (r(),
|
549
|
+
n.chat.avatar ? (r(), d("img", {
|
550
550
|
key: 0,
|
551
551
|
src: n.chat.avatar,
|
552
552
|
width: "48",
|
553
553
|
height: "48"
|
554
|
-
}, null, 8, $a)) : (r(),
|
554
|
+
}, null, 8, $a)) : (r(), d("span", Wa))
|
555
555
|
]),
|
556
556
|
i("div", Ja, [
|
557
557
|
i("h2", Ha, _(e.chat.name), 1),
|
558
|
-
e.chat["lastActivity.time"] ? (r(),
|
558
|
+
e.chat["lastActivity.time"] ? (r(), d("p", Ka, _(e.chat["lastActivity.time"]), 1)) : h("", !0)
|
559
559
|
]),
|
560
560
|
i("div", Pa, [
|
561
561
|
F(a.$slots, "actions", {}, void 0, !0)
|
562
562
|
])
|
563
563
|
])) : h("", !0);
|
564
564
|
}
|
565
|
-
},
|
565
|
+
}, el = /* @__PURE__ */ j(Za, [["__scopeId", "data-v-e1d212c7"]]), Me = b({
|
566
566
|
text: "",
|
567
567
|
fileUrl: "",
|
568
568
|
fileName: "",
|
569
569
|
fileSize: 0,
|
570
570
|
fileType: ""
|
571
|
-
}),
|
572
|
-
|
571
|
+
}), ef = () => ({ message: Me, resetMessage: () => {
|
572
|
+
Me.value = {
|
573
573
|
text: "",
|
574
574
|
fileUrl: "",
|
575
575
|
fileName: "",
|
@@ -577,16 +577,16 @@ const Z1 = (e) => {
|
|
577
577
|
fileType: ""
|
578
578
|
};
|
579
579
|
}, setMessageFile: (a) => {
|
580
|
-
|
581
|
-
text:
|
580
|
+
Me.value = {
|
581
|
+
text: Me.value.text,
|
582
582
|
fileUrl: a.url,
|
583
583
|
fileName: a.name,
|
584
584
|
fileSize: a.size,
|
585
585
|
fileType: a.type
|
586
586
|
};
|
587
587
|
}, resetMessageFile: () => {
|
588
|
-
|
589
|
-
text:
|
588
|
+
Me.value = {
|
589
|
+
text: Me.value.text,
|
590
590
|
fileUrl: "",
|
591
591
|
fileName: "",
|
592
592
|
fileSize: 0,
|
@@ -603,26 +603,40 @@ const Z1 = (e) => {
|
|
603
603
|
},
|
604
604
|
emits: ["send", "typing", "selectChannel"],
|
605
605
|
setup(e, { emit: f }) {
|
606
|
-
const n = f, { message: a, resetMessage: t } =
|
606
|
+
const n = f, { message: a, resetMessage: t } = ef(), s = b(null);
|
607
607
|
Ue(
|
608
608
|
() => a.value.text,
|
609
609
|
() => {
|
610
|
-
|
610
|
+
cf(function() {
|
611
|
+
s.value.style.height = "auto", s.value.style.scrollHeight = "auto", s.value.style.height = s.value.scrollHeight + "px";
|
612
|
+
});
|
611
613
|
}
|
612
614
|
);
|
613
|
-
const A = (
|
614
|
-
n("typing",
|
615
|
-
},
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
}
|
621
|
-
|
615
|
+
const A = (o) => {
|
616
|
+
n("typing", o.target.value);
|
617
|
+
}, l = (o) => {
|
618
|
+
if (o.ctrlKey) {
|
619
|
+
let c = o.target.selectionStart;
|
620
|
+
o.target.setRangeText(`
|
621
|
+
`, c, c, "end"), a.value.text = o.target.value;
|
622
|
+
} else
|
623
|
+
o.preventDefault(), u();
|
624
|
+
}, u = () => {
|
625
|
+
var o;
|
626
|
+
if (console.log(a.value), a.value.text != "" || a.value.fileUrl != "") {
|
627
|
+
const c = {
|
628
|
+
type: null,
|
629
|
+
text: null,
|
630
|
+
url: null,
|
631
|
+
filename: null,
|
632
|
+
size: null
|
633
|
+
};
|
634
|
+
a.value.fileUrl ? (c.type = "message." + a.value.fileType, c.url = a.value.fileUrl, c.filename = a.value.fileName, c.size = a.value.fileSize, c.text = (o = a == null ? void 0 : a.value) == null ? void 0 : o.text.trim()) : (c.type = "message.text", c.text = a.value.text.trim()), n("send", c), t(), Q(s).focus();
|
635
|
+
}
|
622
636
|
};
|
623
|
-
return (
|
637
|
+
return (o, c) => (r(), d("div", Ga, [
|
624
638
|
i("div", Xa, [
|
625
|
-
|
639
|
+
c[2] || (c[2] = i("div", {
|
626
640
|
id: "chat-input-first-line",
|
627
641
|
class: "chat-input__first-line"
|
628
642
|
}, null, -1)),
|
@@ -630,34 +644,34 @@ const Z1 = (e) => {
|
|
630
644
|
te(i("textarea", {
|
631
645
|
ref_key: "refInput",
|
632
646
|
ref: s,
|
633
|
-
"onUpdate:modelValue":
|
647
|
+
"onUpdate:modelValue": c[0] || (c[0] = (g) => Q(a).text = g),
|
634
648
|
class: "chat-input__input",
|
635
649
|
placeholder: "Type a message...",
|
636
|
-
onKeydown:
|
650
|
+
onKeydown: jn(l, ["enter"]),
|
637
651
|
onInput: A
|
638
652
|
}, null, 544), [
|
639
|
-
[
|
653
|
+
[en, Q(a).text]
|
640
654
|
]),
|
641
655
|
i("button", {
|
642
|
-
class: "chat-input__button-send",
|
643
|
-
onClick:
|
644
|
-
},
|
656
|
+
class: V(["chat-input__button-send", { "chat-input__button-send-disabled": Q(a).text == "" && Q(a).fileUrl == "" }]),
|
657
|
+
onClick: u
|
658
|
+
}, c[1] || (c[1] = [
|
645
659
|
i("span", { class: "pi pi-send" }, null, -1)
|
646
|
-
]))
|
660
|
+
]), 2)
|
647
661
|
]),
|
648
662
|
i("div", ft, [
|
649
|
-
F(
|
663
|
+
F(o.$slots, "buttons", {}, void 0, !0)
|
650
664
|
])
|
651
665
|
])
|
652
666
|
]));
|
653
667
|
}
|
654
|
-
},
|
668
|
+
}, fl = /* @__PURE__ */ j(nt, [["__scopeId", "data-v-7bed4394"]]), at = { class: "chat-item__avatar-container" }, tt = ["src"], At = {
|
655
669
|
key: 1,
|
656
670
|
class: "pi pi-user"
|
657
671
|
}, st = { class: "chat-item__info-container" }, it = { class: "chat-item__name" }, ot = {
|
658
672
|
key: 0,
|
659
673
|
class: "chat-item__last-message"
|
660
|
-
},
|
674
|
+
}, lt = { class: "chat-item__details-container" }, ut = {
|
661
675
|
key: 0,
|
662
676
|
class: "chat-item__time"
|
663
677
|
}, rt = {
|
@@ -685,71 +699,71 @@ const Z1 = (e) => {
|
|
685
699
|
const n = e, a = f, t = () => {
|
686
700
|
a("select", n.chat);
|
687
701
|
}, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", A = (M) => {
|
688
|
-
|
689
|
-
},
|
690
|
-
|
691
|
-
},
|
692
|
-
|
693
|
-
},
|
694
|
-
let
|
695
|
-
const
|
702
|
+
c(), a("action", { chatId: n.chat.chatId, ...M });
|
703
|
+
}, l = b(!1), u = b(!1), o = () => {
|
704
|
+
u.value = !0;
|
705
|
+
}, c = () => {
|
706
|
+
u.value = !1, l.value = !1;
|
707
|
+
}, g = x(() => Ne(n.chat["lastMessage.status"]));
|
708
|
+
let m;
|
709
|
+
const p = b(0), y = ["typing.", "typing..", "typing..."], v = x(() => n.chat.typing ? y[p.value] : n.chat.lastMessage);
|
696
710
|
return Ue(
|
697
711
|
() => n.chat.typing,
|
698
712
|
() => {
|
699
|
-
n.chat.typing ?
|
700
|
-
|
701
|
-
}, 1e3) : (
|
713
|
+
n.chat.typing ? m = setInterval(() => {
|
714
|
+
p.value < 2 ? p.value += 1 : p.value = 0;
|
715
|
+
}, 1e3) : (p.value = 0, clearInterval(m));
|
702
716
|
},
|
703
717
|
{ immediate: !0 }
|
704
|
-
), (M, I) => (r(),
|
718
|
+
), (M, I) => (r(), d("div", {
|
705
719
|
class: V(s()),
|
706
720
|
onClick: t
|
707
721
|
}, [
|
708
722
|
i("div", {
|
709
723
|
class: "chat-item__container",
|
710
|
-
onMouseenter:
|
711
|
-
onMouseleave:
|
724
|
+
onMouseenter: o,
|
725
|
+
onMouseleave: c
|
712
726
|
}, [
|
713
727
|
i("div", at, [
|
714
728
|
i("span", {
|
715
729
|
class: "chat-item__status-user",
|
716
730
|
style: L({ backgroundColor: n.chat.status })
|
717
731
|
}, null, 4),
|
718
|
-
n.chat.avatar ? (r(),
|
732
|
+
n.chat.avatar ? (r(), d("img", {
|
719
733
|
key: 0,
|
720
734
|
src: n.chat.avatar,
|
721
735
|
height: "48",
|
722
736
|
width: "48"
|
723
|
-
}, null, 8, tt)) : (r(),
|
737
|
+
}, null, 8, tt)) : (r(), d("span", At))
|
724
738
|
]),
|
725
739
|
i("div", st, [
|
726
740
|
i("div", it, _(e.chat.name), 1),
|
727
|
-
e.chat.lastMessage || e.chat.typing ? (r(),
|
741
|
+
e.chat.lastMessage || e.chat.typing ? (r(), d("div", ot, _(v.value), 1)) : h("", !0)
|
728
742
|
]),
|
729
|
-
i("div",
|
730
|
-
e.chat["lastActivity.time"] && !
|
731
|
-
e.chat.countUnread > 0 ? (r(),
|
732
|
-
|
743
|
+
i("div", lt, [
|
744
|
+
e.chat["lastActivity.time"] && !u.value ? (r(), d("div", ut, _(e.chat["lastActivity.time"]), 1)) : h("", !0),
|
745
|
+
e.chat.countUnread > 0 ? (r(), d("div", rt, _(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : h("", !0),
|
746
|
+
u.value && e.chat.actions ? (r(), d("button", {
|
733
747
|
key: 2,
|
734
748
|
class: "chat-item__menu-button",
|
735
|
-
onClick: I[0] || (I[0] = (w) =>
|
749
|
+
onClick: I[0] || (I[0] = (w) => l.value = !l.value)
|
736
750
|
}, I[1] || (I[1] = [
|
737
751
|
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
738
752
|
]))) : h("", !0),
|
739
|
-
e.chat.countUnread < 1 ? (r(),
|
740
|
-
|
753
|
+
e.chat.countUnread < 1 ? (r(), d("div", ct, [
|
754
|
+
Q(ke).includes(e.chat["lastMessage.status"]) ? (r(), d("div", {
|
741
755
|
key: 0,
|
742
|
-
class: V(["chat-item__status-message",
|
756
|
+
class: V(["chat-item__status-message", g.value])
|
743
757
|
}, [
|
744
|
-
e.chat["lastMessage.status"] !== "send" ? (r(),
|
758
|
+
e.chat["lastMessage.status"] !== "send" ? (r(), d("span", dt)) : h("", !0),
|
745
759
|
I[2] || (I[2] = i("span", { class: "pi pi-check" }, null, -1))
|
746
760
|
], 2)) : h("", !0),
|
747
|
-
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(),
|
761
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), d("span", gt)) : h("", !0)
|
748
762
|
])) : h("", !0)
|
749
763
|
]),
|
750
764
|
C(H, { name: "menu" }, {
|
751
765
|
default: K(() => [
|
752
|
-
|
766
|
+
l.value && e.chat.actions ? (r(), Y(me, {
|
753
767
|
key: 0,
|
754
768
|
class: "chat-item__context-menu",
|
755
769
|
actions: e.chat.actions,
|
@@ -761,15 +775,15 @@ const Z1 = (e) => {
|
|
761
775
|
], 32)
|
762
776
|
], 2));
|
763
777
|
}
|
764
|
-
},
|
778
|
+
}, of = /* @__PURE__ */ j(mt, [["__scopeId", "data-v-34c5205e"]]), pt = { class: "chat-filter" }, Mt = { class: "chat-filter__container" }, ht = {
|
765
779
|
__name: "ChatFilter",
|
766
780
|
emits: ["update"],
|
767
781
|
setup(e, { emit: f }) {
|
768
782
|
const n = b(""), a = f, t = () => {
|
769
|
-
const s =
|
783
|
+
const s = Q(n);
|
770
784
|
a("update", s.value);
|
771
785
|
};
|
772
|
-
return (s, A) => (r(),
|
786
|
+
return (s, A) => (r(), d("div", pt, [
|
773
787
|
i("div", Mt, [
|
774
788
|
i("input", {
|
775
789
|
ref_key: "refInput",
|
@@ -791,7 +805,7 @@ const Z1 = (e) => {
|
|
791
805
|
}, It = {
|
792
806
|
key: 1,
|
793
807
|
class: "pi pi-plus"
|
794
|
-
}, wt = { class: "chat-list__items" },
|
808
|
+
}, wt = { class: "chat-list__items" }, kt = { class: "chat-list__fixed-items-top" }, Nt = { class: "chat-list__scrollable-items" }, Dt = { class: "chat-list__fixed-items-bottom" }, jt = {
|
795
809
|
__name: "ChatList",
|
796
810
|
props: {
|
797
811
|
title: {
|
@@ -816,83 +830,83 @@ const Z1 = (e) => {
|
|
816
830
|
setup(e, { emit: f }) {
|
817
831
|
const n = b(""), a = b(!1), t = () => {
|
818
832
|
a.value = !1;
|
819
|
-
}, s = e, A = f,
|
820
|
-
s.chats.forEach((
|
821
|
-
const
|
822
|
-
|
823
|
-
},
|
824
|
-
if (Number(
|
825
|
-
if (Number(
|
826
|
-
if (Number(
|
827
|
-
}).toSorted((
|
828
|
-
if (
|
829
|
-
if (
|
830
|
-
if (
|
831
|
-
}).filter((
|
832
|
-
n.value =
|
833
|
-
},
|
834
|
-
return (
|
833
|
+
}, s = e, A = f, l = (g) => {
|
834
|
+
s.chats.forEach((p) => p.isSelected = !1);
|
835
|
+
const m = s.chats.find((p) => p.chatId === g.chatId);
|
836
|
+
m.isSelected = !0, A("select", g);
|
837
|
+
}, u = () => s.chats.toSorted((g, m) => {
|
838
|
+
if (Number(g["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
|
839
|
+
if (Number(g["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
|
840
|
+
if (Number(g["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
|
841
|
+
}).toSorted((g, m) => {
|
842
|
+
if (g.countUnread > m.countUnread) return -1;
|
843
|
+
if (g.countUnread < m.countUnread) return 1;
|
844
|
+
if (g.countUnread == m.countUnread) return 0;
|
845
|
+
}).filter((g) => g.name.includes(n.value) || g.metadata.includes(n.value)), o = (g) => {
|
846
|
+
n.value = g;
|
847
|
+
}, c = (g) => A("action", g);
|
848
|
+
return (g, m) => (r(), d("div", bt, [
|
835
849
|
i("div", {
|
836
850
|
class: "chat-list__title-container",
|
837
851
|
onMouseleave: t
|
838
852
|
}, [
|
839
|
-
e.title ? (r(),
|
840
|
-
e.actions.length ? (r(),
|
853
|
+
e.title ? (r(), d("h2", vt, _(e.title), 1)) : h("", !0),
|
854
|
+
e.actions.length ? (r(), d("button", {
|
841
855
|
key: 1,
|
842
856
|
class: "chat-list__button-actions",
|
843
|
-
onClick:
|
857
|
+
onClick: m[0] || (m[0] = (p) => a.value = !a.value)
|
844
858
|
}, [
|
845
|
-
a.value ? (r(),
|
859
|
+
a.value ? (r(), d("span", _t)) : (r(), d("span", It))
|
846
860
|
])) : h("", !0),
|
847
861
|
C(H, null, {
|
848
862
|
default: K(() => [
|
849
|
-
a.value && e.actions ? (r(),
|
863
|
+
a.value && e.actions ? (r(), Y(me, {
|
850
864
|
key: 0,
|
851
865
|
actions: e.actions,
|
852
866
|
class: "chat-list__context-menu",
|
853
|
-
onClick:
|
867
|
+
onClick: c
|
854
868
|
}, null, 8, ["actions"])) : h("", !0)
|
855
869
|
]),
|
856
870
|
_: 1
|
857
871
|
})
|
858
872
|
], 32),
|
859
|
-
e.filterEnabled ? (r(),
|
873
|
+
e.filterEnabled ? (r(), Y(yt, {
|
860
874
|
key: 0,
|
861
875
|
class: "chat-list__filter",
|
862
|
-
onUpdate:
|
876
|
+
onUpdate: o
|
863
877
|
})) : h("", !0),
|
864
878
|
i("div", wt, [
|
865
|
-
i("div",
|
866
|
-
(r(!0),
|
867
|
-
key:
|
879
|
+
i("div", kt, [
|
880
|
+
(r(!0), d(B, null, q(u().filter((p) => p.isFixedTop), (p) => (r(), Y(of, {
|
881
|
+
key: p.chatId,
|
868
882
|
class: "chat-list__item",
|
869
|
-
chat:
|
870
|
-
onSelect:
|
871
|
-
onAction:
|
883
|
+
chat: p,
|
884
|
+
onSelect: l,
|
885
|
+
onAction: c
|
872
886
|
}, null, 8, ["chat"]))), 128))
|
873
887
|
]),
|
874
|
-
i("div",
|
875
|
-
(r(!0),
|
876
|
-
key:
|
888
|
+
i("div", Nt, [
|
889
|
+
(r(!0), d(B, null, q(u().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (r(), Y(of, {
|
890
|
+
key: p.chatId,
|
877
891
|
class: "chat-list__item",
|
878
|
-
chat:
|
879
|
-
onSelect:
|
880
|
-
onAction:
|
892
|
+
chat: p,
|
893
|
+
onSelect: l,
|
894
|
+
onAction: c
|
881
895
|
}, null, 8, ["chat"]))), 128))
|
882
896
|
]),
|
883
897
|
i("div", Dt, [
|
884
|
-
(r(!0),
|
885
|
-
key:
|
898
|
+
(r(!0), d(B, null, q(u().filter((p) => p.isFixedBottom), (p) => (r(), Y(of, {
|
899
|
+
key: p.chatId,
|
886
900
|
class: "chat-list__item",
|
887
|
-
chat:
|
888
|
-
onSelect:
|
889
|
-
onAction:
|
901
|
+
chat: p,
|
902
|
+
onSelect: l,
|
903
|
+
onAction: c
|
890
904
|
}, null, 8, ["chat"]))), 128))
|
891
905
|
])
|
892
906
|
])
|
893
907
|
]));
|
894
908
|
}
|
895
|
-
},
|
909
|
+
}, nl = /* @__PURE__ */ j(jt, [["__scopeId", "data-v-56d1c0f8"]]), Vt = ["messageId"], Et = ["src"], Tt = ["src"], xt = { class: "video-message__controls" }, St = { class: "video-message__remaining-time" }, zt = { class: "video-message__info-container" }, Ot = { class: "video-message__time" }, Ct = {
|
896
910
|
key: 0,
|
897
911
|
class: "pi pi-check"
|
898
912
|
}, Ut = ["href"], Lt = {
|
@@ -908,15 +922,15 @@ const Z1 = (e) => {
|
|
908
922
|
function n(v) {
|
909
923
|
return v.position === "left" ? "video-message__left" : "video-message__right";
|
910
924
|
}
|
911
|
-
const a = b(null), t = b(!1), s = b(0), A = b(0),
|
912
|
-
|
913
|
-
},
|
914
|
-
|
915
|
-
},
|
916
|
-
function
|
925
|
+
const a = b(null), t = b(!1), s = b(0), A = b(0), l = b(!1), u = b(!1), o = () => {
|
926
|
+
u.value = !0;
|
927
|
+
}, c = () => {
|
928
|
+
u.value = !1, l.value = !1;
|
929
|
+
}, g = x(() => Ne(f.message.status));
|
930
|
+
function m() {
|
917
931
|
a.value && (t.value ? a.value.pause() : a.value.play(), t.value = !t.value);
|
918
932
|
}
|
919
|
-
const
|
933
|
+
const p = (v) => {
|
920
934
|
const M = Math.floor(v / 60), I = Math.floor(v % 60);
|
921
935
|
return `${M.toString().padStart(2, "0")}:${I.toString().padStart(2, "0")}`;
|
922
936
|
}, y = x(() => {
|
@@ -925,23 +939,23 @@ const Z1 = (e) => {
|
|
925
939
|
return t.value = !1, "00:00";
|
926
940
|
{
|
927
941
|
const v = s.value - A.value;
|
928
|
-
return
|
942
|
+
return p(v);
|
929
943
|
}
|
930
944
|
} else
|
931
945
|
return "";
|
932
946
|
});
|
933
|
-
return
|
947
|
+
return ie(() => {
|
934
948
|
a.value.addEventListener("loadedmetadata", () => {
|
935
949
|
s.value = a.value.duration;
|
936
950
|
}), a.value.addEventListener("timeupdate", () => {
|
937
951
|
A.value = a.value.currentTime;
|
938
952
|
});
|
939
|
-
}), (v, M) => (r(),
|
953
|
+
}), (v, M) => (r(), d("div", {
|
940
954
|
class: V(["video-message", n(e.message)]),
|
941
955
|
messageId: e.message.messageId,
|
942
|
-
onMouseleave:
|
956
|
+
onMouseleave: c
|
943
957
|
}, [
|
944
|
-
e.message.avatar ? (r(),
|
958
|
+
e.message.avatar ? (r(), d("img", {
|
945
959
|
key: 0,
|
946
960
|
class: "video-message__avatar",
|
947
961
|
src: e.message.avatar,
|
@@ -951,7 +965,7 @@ const Z1 = (e) => {
|
|
951
965
|
}, null, 12, Et)) : h("", !0),
|
952
966
|
i("div", {
|
953
967
|
class: "video-message__content",
|
954
|
-
onMouseenter:
|
968
|
+
onMouseenter: o
|
955
969
|
}, [
|
956
970
|
i("video", {
|
957
971
|
ref_key: "player",
|
@@ -964,32 +978,32 @@ const Z1 = (e) => {
|
|
964
978
|
default: K(() => [
|
965
979
|
te(i("button", {
|
966
980
|
class: "video-message__play",
|
967
|
-
onClick:
|
981
|
+
onClick: m
|
968
982
|
}, M[1] || (M[1] = [
|
969
983
|
i("span", { class: "pi pi-play" }, null, -1)
|
970
984
|
]), 512), [
|
971
|
-
[
|
985
|
+
[he, !t.value]
|
972
986
|
])
|
973
987
|
]),
|
974
988
|
_: 1
|
975
989
|
}),
|
976
990
|
te(i("button", {
|
977
991
|
class: "video-message__pause",
|
978
|
-
onClick:
|
992
|
+
onClick: m
|
979
993
|
}, null, 512), [
|
980
|
-
[
|
994
|
+
[he, t.value]
|
981
995
|
])
|
982
996
|
]),
|
983
|
-
|
997
|
+
u.value && e.message.actions ? (r(), d("button", {
|
984
998
|
key: 0,
|
985
999
|
class: "video-message__menu-button",
|
986
|
-
onClick: M[0] || (M[0] = (I) =>
|
1000
|
+
onClick: M[0] || (M[0] = (I) => l.value = !l.value)
|
987
1001
|
}, M[2] || (M[2] = [
|
988
1002
|
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
989
1003
|
]))) : h("", !0),
|
990
1004
|
C(H, null, {
|
991
1005
|
default: K(() => [
|
992
|
-
|
1006
|
+
l.value && e.message.actions ? (r(), Y(me, {
|
993
1007
|
key: 0,
|
994
1008
|
class: "video-message__context-menu",
|
995
1009
|
actions: e.message.actions,
|
@@ -1001,11 +1015,11 @@ const Z1 = (e) => {
|
|
1001
1015
|
i("p", St, _(`${y.value}`), 1),
|
1002
1016
|
i("div", zt, [
|
1003
1017
|
i("span", Ot, _(e.message.time), 1),
|
1004
|
-
n(e.message) === "video-message__right" &&
|
1018
|
+
n(e.message) === "video-message__right" && Q(ke).includes(e.message.status) ? (r(), d("div", {
|
1005
1019
|
key: 0,
|
1006
|
-
class: V(["video-message__status",
|
1020
|
+
class: V(["video-message__status", g.value])
|
1007
1021
|
}, [
|
1008
|
-
e.message.status !== "sent" ? (r(),
|
1022
|
+
e.message.status !== "sent" ? (r(), d("span", Ct)) : h("", !0),
|
1009
1023
|
M[3] || (M[3] = i("span", { class: "pi pi-check" }, null, -1))
|
1010
1024
|
], 2)) : h("", !0)
|
1011
1025
|
]),
|
@@ -1020,7 +1034,7 @@ const Z1 = (e) => {
|
|
1020
1034
|
], 32)
|
1021
1035
|
], 42, Vt));
|
1022
1036
|
}
|
1023
|
-
},
|
1037
|
+
}, Bt = /* @__PURE__ */ j(Lt, [["__scopeId", "data-v-c2e27925"]]), Qt = { class: "call-message" }, Yt = ["messageId"], Rt = ["src"], qt = {
|
1024
1038
|
key: 1,
|
1025
1039
|
class: "call-message__subtext"
|
1026
1040
|
}, Ft = { class: "call-message__content" }, $t = {
|
@@ -1050,12 +1064,12 @@ const Z1 = (e) => {
|
|
1050
1064
|
function f(n) {
|
1051
1065
|
return n.position === "left" ? "call-message__left" : "call-message__right";
|
1052
1066
|
}
|
1053
|
-
return (n, a) => (r(),
|
1067
|
+
return (n, a) => (r(), d("div", Qt, [
|
1054
1068
|
i("div", {
|
1055
1069
|
class: V(f(e.message)),
|
1056
1070
|
messageId: e.message.messageId
|
1057
1071
|
}, [
|
1058
|
-
e.message.avatar ? (r(),
|
1072
|
+
e.message.avatar ? (r(), d("img", {
|
1059
1073
|
key: 0,
|
1060
1074
|
class: "call-message__avatar",
|
1061
1075
|
src: e.message.avatar,
|
@@ -1063,14 +1077,14 @@ const Z1 = (e) => {
|
|
1063
1077
|
width: "32",
|
1064
1078
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
1065
1079
|
}, null, 12, Rt)) : h("", !0),
|
1066
|
-
e.message.subText ? (r(),
|
1080
|
+
e.message.subText ? (r(), d("p", qt, _(e.message.subText), 1)) : h("", !0),
|
1067
1081
|
i("div", Ft, [
|
1068
1082
|
i("span", {
|
1069
1083
|
class: "call-message__icon pi pi-phone",
|
1070
1084
|
style: L({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
1071
1085
|
}, null, 4),
|
1072
|
-
e.message.isMissedCall ? (r(),
|
1073
|
-
e.message.callDuration ? (r(),
|
1086
|
+
e.message.isMissedCall ? (r(), d("span", Wt, "Пропущенный аудиозвонок")) : (r(), d("span", $t, "Аудиозвонок")),
|
1087
|
+
e.message.callDuration ? (r(), d("span", Jt, _(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), d("span", Ht, "Нажмите, чтобы перезвонить")) : (r(), d("span", Kt, "Нет ответа")),
|
1074
1088
|
i("div", Pt, [
|
1075
1089
|
i("span", Zt, _(e.message.time), 1)
|
1076
1090
|
])
|
@@ -1087,7 +1101,7 @@ const Z1 = (e) => {
|
|
1087
1101
|
}
|
1088
1102
|
},
|
1089
1103
|
setup(e) {
|
1090
|
-
return (f, n) => (r(),
|
1104
|
+
return (f, n) => (r(), d("div", eA, [
|
1091
1105
|
i("div", fA, [
|
1092
1106
|
i("p", nA, _(e.message.text), 1)
|
1093
1107
|
])
|
@@ -1096,7 +1110,7 @@ const Z1 = (e) => {
|
|
1096
1110
|
}, tA = /* @__PURE__ */ j(aA, [["__scopeId", "data-v-b17746f3"]]), AA = { class: "typing-message" }, sA = { class: "typing-message__container" }, iA = ["src"], oA = {
|
1097
1111
|
key: 1,
|
1098
1112
|
class: "typing-message__subtext"
|
1099
|
-
},
|
1113
|
+
}, lA = {
|
1100
1114
|
__name: "TypingMessage",
|
1101
1115
|
props: {
|
1102
1116
|
message: {
|
@@ -1105,9 +1119,9 @@ const Z1 = (e) => {
|
|
1105
1119
|
}
|
1106
1120
|
},
|
1107
1121
|
setup(e) {
|
1108
|
-
return (f, n) => (r(),
|
1122
|
+
return (f, n) => (r(), d("div", AA, [
|
1109
1123
|
i("div", sA, [
|
1110
|
-
e.message.avatar ? (r(),
|
1124
|
+
e.message.avatar ? (r(), d("img", {
|
1111
1125
|
key: 0,
|
1112
1126
|
class: "typing-message__avatar",
|
1113
1127
|
src: e.message.avatar,
|
@@ -1115,14 +1129,14 @@ const Z1 = (e) => {
|
|
1115
1129
|
width: "32",
|
1116
1130
|
style: L({ gridRow: e.message.subText ? "2" : "1" })
|
1117
1131
|
}, null, 12, iA)) : h("", !0),
|
1118
|
-
e.message.subText ? (r(),
|
1132
|
+
e.message.subText ? (r(), d("p", oA, _(e.message.subText), 1)) : h("", !0),
|
1119
1133
|
n[0] || (n[0] = i("div", { class: "typing-message__loader-container" }, [
|
1120
1134
|
i("div", { class: "typing-message__loader" })
|
1121
1135
|
], -1))
|
1122
1136
|
])
|
1123
1137
|
]));
|
1124
1138
|
}
|
1125
|
-
},
|
1139
|
+
}, Bf = /* @__PURE__ */ j(lA, [["__scopeId", "data-v-6ffe329a"]]), uA = { class: "message-feed__container" }, rA = {
|
1126
1140
|
__name: "Feed",
|
1127
1141
|
props: {
|
1128
1142
|
objects: {
|
@@ -1131,7 +1145,7 @@ const Z1 = (e) => {
|
|
1131
1145
|
},
|
1132
1146
|
buttonParams: {
|
1133
1147
|
type: Object,
|
1134
|
-
required: !
|
1148
|
+
required: !1
|
1135
1149
|
},
|
1136
1150
|
// при новом сообщении необходимо прокручивать ленту вниз,
|
1137
1151
|
// а при загрузке более ранних сообщений - нет
|
@@ -1148,50 +1162,50 @@ const Z1 = (e) => {
|
|
1148
1162
|
emits: ["messageAction", "loadMore"],
|
1149
1163
|
setup(e, { emit: f }) {
|
1150
1164
|
const n = b(), a = b(!1), t = e, s = f, A = () => {
|
1151
|
-
const
|
1152
|
-
|
1153
|
-
},
|
1154
|
-
"message.text":
|
1165
|
+
const g = Q(n);
|
1166
|
+
g.scrollHeight - g.scrollTop - g.clientHeight < 100 ? a.value = !1 : a.value = !0, g.scrollTop === 0 && s("loadMore");
|
1167
|
+
}, l = (g) => ({
|
1168
|
+
"message.text": ka,
|
1155
1169
|
"message.image": ma,
|
1156
1170
|
"message.file": fa,
|
1157
1171
|
"message.audio": Ua,
|
1158
|
-
"message.video":
|
1172
|
+
"message.video": Bt,
|
1159
1173
|
"message.call": Xt,
|
1160
1174
|
"message.system": tA,
|
1161
1175
|
"system.date": Ra,
|
1162
|
-
"message.typing":
|
1163
|
-
})[
|
1164
|
-
function
|
1165
|
-
t.isScrollToBottomOnUpdateObjectsEnabled &&
|
1166
|
-
const
|
1167
|
-
|
1176
|
+
"message.typing": Bf
|
1177
|
+
})[g];
|
1178
|
+
function u() {
|
1179
|
+
t.isScrollToBottomOnUpdateObjectsEnabled && cf(function() {
|
1180
|
+
const g = Q(n);
|
1181
|
+
g.scrollTop = g.scrollHeight;
|
1168
1182
|
});
|
1169
1183
|
}
|
1170
|
-
function
|
1171
|
-
|
1172
|
-
const
|
1173
|
-
|
1184
|
+
function o() {
|
1185
|
+
cf(function() {
|
1186
|
+
const g = Q(n);
|
1187
|
+
g.scrollTop = g.scrollHeight;
|
1174
1188
|
});
|
1175
1189
|
}
|
1176
|
-
|
1177
|
-
const
|
1178
|
-
s("messageAction",
|
1190
|
+
Vn(() => u), Ue(() => t.objects, u);
|
1191
|
+
const c = (g) => {
|
1192
|
+
s("messageAction", g);
|
1179
1193
|
};
|
1180
|
-
return (
|
1194
|
+
return (g, m) => (r(), d("div", {
|
1181
1195
|
ref_key: "refFeed",
|
1182
1196
|
ref: n,
|
1183
1197
|
class: "message-feed",
|
1184
1198
|
onScroll: A
|
1185
1199
|
}, [
|
1186
|
-
i("div",
|
1187
|
-
(r(!0),
|
1188
|
-
key:
|
1200
|
+
i("div", uA, [
|
1201
|
+
(r(!0), d(B, null, q(e.objects, (p) => (r(), Y(En(l(p.type)), {
|
1202
|
+
key: p.messageId,
|
1189
1203
|
class: "message-feed__message",
|
1190
|
-
message:
|
1191
|
-
onAction:
|
1204
|
+
message: p,
|
1205
|
+
onAction: c
|
1192
1206
|
}, null, 40, ["message"]))), 128))
|
1193
1207
|
]),
|
1194
|
-
e.typing ? (r(),
|
1208
|
+
e.typing ? (r(), Y(Bf, {
|
1195
1209
|
key: 0,
|
1196
1210
|
message: {
|
1197
1211
|
subText: e.typing.title,
|
@@ -1200,24 +1214,24 @@ const Z1 = (e) => {
|
|
1200
1214
|
}, null, 8, ["message"])) : h("", !0),
|
1201
1215
|
C(H, null, {
|
1202
1216
|
default: K(() => [
|
1203
|
-
a.value ? (r(),
|
1217
|
+
a.value ? (r(), d("button", {
|
1204
1218
|
key: 0,
|
1205
1219
|
class: "message-feed__button-down",
|
1206
|
-
onClick:
|
1220
|
+
onClick: o
|
1207
1221
|
}, [
|
1208
|
-
e.buttonParams ? (r(),
|
1222
|
+
e.buttonParams ? (r(), d("div", {
|
1209
1223
|
key: 0,
|
1210
|
-
style: L({ backgroundColor: e.buttonParams.color }),
|
1224
|
+
style: L({ backgroundColor: e.buttonParams.color || "#00ff00" }),
|
1211
1225
|
class: "message-feed__unread-amount"
|
1212
1226
|
}, _(e.buttonParams.unreadAmount), 5)) : h("", !0),
|
1213
|
-
|
1227
|
+
m[0] || (m[0] = i("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
1214
1228
|
])) : h("", !0)
|
1215
1229
|
]),
|
1216
1230
|
_: 1
|
1217
1231
|
})
|
1218
1232
|
], 544));
|
1219
1233
|
}
|
1220
|
-
},
|
1234
|
+
}, al = /* @__PURE__ */ j(rA, [["__scopeId", "data-v-b37e274c"]]), cA = { class: "profile" }, dA = {
|
1221
1235
|
key: 0,
|
1222
1236
|
class: "profile__container"
|
1223
1237
|
}, gA = {
|
@@ -1232,9 +1246,9 @@ const Z1 = (e) => {
|
|
1232
1246
|
}
|
1233
1247
|
},
|
1234
1248
|
setup(e) {
|
1235
|
-
return (f, n) => (r(),
|
1236
|
-
e.user ? (r(),
|
1237
|
-
e.user.avatar ? (r(),
|
1249
|
+
return (f, n) => (r(), d("div", cA, [
|
1250
|
+
e.user ? (r(), d("div", dA, [
|
1251
|
+
e.user.avatar ? (r(), d("div", gA, [
|
1238
1252
|
i("span", {
|
1239
1253
|
class: "profile__status",
|
1240
1254
|
style: L({ backgroundColor: e.user.status })
|
@@ -1251,7 +1265,7 @@ const Z1 = (e) => {
|
|
1251
1265
|
])) : h("", !0)
|
1252
1266
|
]));
|
1253
1267
|
}
|
1254
|
-
},
|
1268
|
+
}, tl = /* @__PURE__ */ j(yA, [["__scopeId", "data-v-db3ba19b"]]), bA = ["id"], vA = ["id"], _A = { class: "context-menu__container" }, IA = { class: "context-menu__list" }, wA = ["onClick"], kA = ["src"], NA = {
|
1255
1269
|
__name: "ButtonContextMenu",
|
1256
1270
|
props: {
|
1257
1271
|
actions: {
|
@@ -1280,29 +1294,31 @@ const Z1 = (e) => {
|
|
1280
1294
|
},
|
1281
1295
|
menuSide: {
|
1282
1296
|
type: String,
|
1297
|
+
required: !1,
|
1283
1298
|
default: "top"
|
1284
1299
|
},
|
1285
1300
|
contextMenuKey: {
|
1286
1301
|
type: String,
|
1302
|
+
required: !1,
|
1287
1303
|
default: "key"
|
1288
1304
|
}
|
1289
1305
|
},
|
1290
1306
|
emits: ["click", "buttonClick"],
|
1291
1307
|
setup(e, { emit: f }) {
|
1292
|
-
const n = e, a = f, t = b(null), s = b(null), A = (
|
1293
|
-
const
|
1294
|
-
t.value.style.display = "none", a("click",
|
1295
|
-
}, o = () => {
|
1296
|
-
n.disabled || (n.mode == "click" && (t.value.style.display = "inherit"), a("buttonClick"));
|
1308
|
+
const n = e, a = f, t = b(null), s = b(null), A = (g) => {
|
1309
|
+
const m = n.actions[g];
|
1310
|
+
t.value.style.display = "none", a("click", m);
|
1297
1311
|
}, l = () => {
|
1298
|
-
n.mode == "
|
1312
|
+
n.disabled || (n.mode == "click" && (t.value.style.display = "inherit"), a("buttonClick"));
|
1299
1313
|
}, u = () => {
|
1314
|
+
n.mode == "hover" && !n.disabled && (t.value.style.display = "inherit");
|
1315
|
+
}, o = () => {
|
1300
1316
|
n.mode == "hover" && (t.value.style.display = "none");
|
1301
|
-
},
|
1302
|
-
n.mode == "click" && s.value && !s.value.contains(
|
1317
|
+
}, c = (g) => {
|
1318
|
+
n.mode == "click" && s.value && !s.value.contains(g.target) && (t.value.style.display = "none");
|
1303
1319
|
};
|
1304
|
-
return
|
1305
|
-
const
|
1320
|
+
return ie(() => {
|
1321
|
+
const g = {
|
1306
1322
|
top: {
|
1307
1323
|
h: -1,
|
1308
1324
|
w: -0.25
|
@@ -1320,11 +1336,11 @@ const Z1 = (e) => {
|
|
1320
1336
|
w: 1
|
1321
1337
|
}
|
1322
1338
|
};
|
1323
|
-
let
|
1324
|
-
n.menuSide == "top" && (
|
1325
|
-
}),
|
1326
|
-
document.removeEventListener("click",
|
1327
|
-
}), (
|
1339
|
+
let m, p;
|
1340
|
+
n.menuSide == "top" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.left = g[n.menuSide].w * m + "px"), n.menuSide == "bottom" && (m = document.getElementById("context-menu-" + n.contextMenuKey).offsetWidth, p = document.getElementById("container-" + n.contextMenuKey).offsetHeight, t.value.style.right = g[n.menuSide].w * m + "px"), n.menuSide == "left" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.right = g[n.menuSide].w * m + "px"), n.menuSide == "right" && (m = document.getElementById("container-" + n.contextMenuKey).offsetWidth, p = document.getElementById("context-menu-" + n.contextMenuKey).offsetHeight, t.value.style.left = g[n.menuSide].w * m + "px"), t.value.style.top = g[n.menuSide].h * p + "px", t.value.style.display = "none", document.addEventListener("click", c);
|
1341
|
+
}), pf(() => {
|
1342
|
+
document.removeEventListener("click", c);
|
1343
|
+
}), (g, m) => (r(), d("div", {
|
1328
1344
|
id: "container-" + n.contextMenuKey,
|
1329
1345
|
ref_key: "actionScope",
|
1330
1346
|
ref: s,
|
@@ -1334,9 +1350,9 @@ const Z1 = (e) => {
|
|
1334
1350
|
class: V(["button", {
|
1335
1351
|
"disabled-button": e.disabled
|
1336
1352
|
}]),
|
1337
|
-
onClick:
|
1338
|
-
onMouseover:
|
1339
|
-
onMouseout:
|
1353
|
+
onClick: l,
|
1354
|
+
onMouseover: u,
|
1355
|
+
onMouseout: o
|
1340
1356
|
}, [
|
1341
1357
|
i("span", {
|
1342
1358
|
class: V(e.buttonClass)
|
@@ -1347,33 +1363,33 @@ const Z1 = (e) => {
|
|
1347
1363
|
ref_key: "contextMenu",
|
1348
1364
|
ref: t,
|
1349
1365
|
class: "context-menu",
|
1350
|
-
onMouseover:
|
1351
|
-
onMouseout:
|
1366
|
+
onMouseover: u,
|
1367
|
+
onMouseout: o
|
1352
1368
|
}, [
|
1353
1369
|
i("div", _A, [
|
1354
1370
|
i("ul", IA, [
|
1355
|
-
(r(!0),
|
1371
|
+
(r(!0), d(B, null, q(n.actions, (p, y) => (r(), d("li", {
|
1356
1372
|
key: y,
|
1357
1373
|
class: "context-menu__item",
|
1358
1374
|
onClick: (v) => A(y)
|
1359
1375
|
}, [
|
1360
|
-
|
1376
|
+
p.icon ? (r(), d("img", {
|
1361
1377
|
key: 0,
|
1362
|
-
src:
|
1378
|
+
src: p.icon,
|
1363
1379
|
width: "18",
|
1364
1380
|
height: "18"
|
1365
|
-
}, null, 8,
|
1381
|
+
}, null, 8, kA)) : p.prime ? (r(), d("i", {
|
1366
1382
|
key: 1,
|
1367
|
-
class: V("pi pi-" +
|
1383
|
+
class: V("pi pi-" + p.prime)
|
1368
1384
|
}, null, 2)) : h("", !0),
|
1369
|
-
i("span", null, _(
|
1385
|
+
i("span", null, _(p.title), 1)
|
1370
1386
|
], 8, wA))), 128))
|
1371
1387
|
])
|
1372
1388
|
])
|
1373
1389
|
], 40, vA)
|
1374
1390
|
], 8, bA));
|
1375
1391
|
}
|
1376
|
-
},
|
1392
|
+
}, nn = /* @__PURE__ */ j(NA, [["__scopeId", "data-v-a1173bcf"]]), DA = { class: "preview__container" }, jA = { class: "preview__block" }, VA = { key: 0 }, EA = ["src"], TA = { key: 1 }, xA = ["src"], SA = { key: 2 }, zA = { key: 3 }, OA = { class: "preview__control-block" }, CA = { class: "preview__information" }, UA = { class: "preview__name" }, LA = { class: "preview__size" }, BA = {
|
1377
1393
|
__name: "FilePreview",
|
1378
1394
|
props: {
|
1379
1395
|
previewUrl: {
|
@@ -1407,25 +1423,25 @@ const Z1 = (e) => {
|
|
1407
1423
|
function t() {
|
1408
1424
|
a("reset");
|
1409
1425
|
}
|
1410
|
-
return (s, A) => (r(),
|
1426
|
+
return (s, A) => (r(), d("div", DA, [
|
1411
1427
|
i("div", jA, [
|
1412
|
-
n.isImage ? (r(),
|
1428
|
+
n.isImage ? (r(), d("div", VA, [
|
1413
1429
|
i("img", {
|
1414
1430
|
src: e.previewUrl,
|
1415
1431
|
alt: "Image Preview",
|
1416
1432
|
class: "preview__image"
|
1417
1433
|
}, null, 8, EA)
|
1418
|
-
])) : n.isVideo ? (r(),
|
1434
|
+
])) : n.isVideo ? (r(), d("div", TA, [
|
1419
1435
|
i("video", {
|
1420
1436
|
src: e.previewUrl,
|
1421
1437
|
class: "preview__video"
|
1422
1438
|
}, null, 8, xA)
|
1423
|
-
])) : n.isAudio ? (r(),
|
1439
|
+
])) : n.isAudio ? (r(), d("div", SA, A[0] || (A[0] = [
|
1424
1440
|
i("span", {
|
1425
1441
|
class: "pi pi-headphones",
|
1426
1442
|
style: { "font-size": "2.5rem" }
|
1427
1443
|
}, null, -1)
|
1428
|
-
]))) : (r(),
|
1444
|
+
]))) : (r(), d("div", zA, A[1] || (A[1] = [
|
1429
1445
|
i("span", {
|
1430
1446
|
class: "pi pi-file",
|
1431
1447
|
style: { "font-size": "2.5rem" }
|
@@ -1445,7 +1461,7 @@ const Z1 = (e) => {
|
|
1445
1461
|
])
|
1446
1462
|
]));
|
1447
1463
|
}
|
1448
|
-
},
|
1464
|
+
}, QA = /* @__PURE__ */ j(BA, [["__scopeId", "data-v-c4e18bbf"]]), YA = { class: "uploader-container" }, RA = { key: 0 }, qA = { key: 1 }, FA = {
|
1449
1465
|
__name: "FileUploader",
|
1450
1466
|
props: {
|
1451
1467
|
filebumpUrl: {
|
@@ -1454,7 +1470,7 @@ const Z1 = (e) => {
|
|
1454
1470
|
},
|
1455
1471
|
emits: ["fileUploaded"],
|
1456
1472
|
setup(e, { emit: f }) {
|
1457
|
-
const n = e, a = b(null), t = b(""), s = b(""), A = b(!1),
|
1473
|
+
const n = e, a = b(null), t = b(""), s = b(""), A = b(!1), l = b(!1), u = b(!1), o = b(null), c = b(""), { message: g, setMessageFile: m, resetMessageFile: p } = ef(), y = [
|
1458
1474
|
{
|
1459
1475
|
action: "audio/*",
|
1460
1476
|
title: "Аудио",
|
@@ -1475,58 +1491,58 @@ const Z1 = (e) => {
|
|
1475
1491
|
title: "Файл",
|
1476
1492
|
prime: "file"
|
1477
1493
|
}
|
1478
|
-
], v = x(() => !
|
1479
|
-
a.value = null,
|
1480
|
-
}, I = (
|
1481
|
-
M(), console.log("onFileSelected",
|
1494
|
+
], v = x(() => !g.value.fileUrl || g.value.fileUrl === ""), M = () => {
|
1495
|
+
a.value = null, p(), s.value = "", t.value = "";
|
1496
|
+
}, I = (k) => {
|
1497
|
+
M(), console.log("onFileSelected", k.target.files[0]), a.value = k.target.files[0], a.value && (w(), E());
|
1482
1498
|
}, w = () => {
|
1483
|
-
const
|
1484
|
-
if (A.value = !1,
|
1499
|
+
const k = a.value, D = Lf(k.type);
|
1500
|
+
if (A.value = !1, l.value = !1, u.value = !1, D === "image" ? A.value = !0 : D === "video" ? l.value = !0 : D === "audio" && (u.value = !0), A.value || l.value) {
|
1485
1501
|
const U = new FileReader();
|
1486
|
-
U.onload = (
|
1487
|
-
s.value =
|
1488
|
-
}, U.readAsDataURL(
|
1502
|
+
U.onload = (R) => {
|
1503
|
+
s.value = R.target.result;
|
1504
|
+
}, U.readAsDataURL(k);
|
1489
1505
|
} else
|
1490
1506
|
s.value = "";
|
1491
1507
|
const z = ["б", "Кб", "Мб", "Гб"];
|
1492
|
-
let T =
|
1508
|
+
let T = k.size, O = 0;
|
1493
1509
|
for (; T > 1024; )
|
1494
1510
|
T = T / 1024, O++;
|
1495
|
-
T = T.toFixed(2) + z[O],
|
1511
|
+
T = T.toFixed(2) + z[O], c.value = T;
|
1496
1512
|
}, E = async () => {
|
1497
1513
|
t.value = "uploading";
|
1498
|
-
const
|
1499
|
-
|
1514
|
+
const k = new FormData();
|
1515
|
+
k.append("file", a.value);
|
1500
1516
|
const z = (n.filebumpUrl ? n.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
|
1501
1517
|
try {
|
1502
1518
|
const O = await (await fetch(
|
1503
1519
|
z,
|
1504
1520
|
{
|
1505
1521
|
method: "POST",
|
1506
|
-
body:
|
1522
|
+
body: k
|
1507
1523
|
}
|
1508
1524
|
)).json();
|
1509
|
-
t.value = "success",
|
1525
|
+
t.value = "success", m({
|
1510
1526
|
url: O.url,
|
1511
1527
|
name: a.value.name,
|
1512
1528
|
size: a.value.size,
|
1513
|
-
type:
|
1529
|
+
type: Lf(a.value.type)
|
1514
1530
|
});
|
1515
1531
|
} catch (T) {
|
1516
1532
|
console.error("Ошибка при загрузке файла:", T), t.value = "error";
|
1517
1533
|
}
|
1518
|
-
},
|
1519
|
-
|
1534
|
+
}, N = (k) => {
|
1535
|
+
o.value && v && (o.value.accept = k.action, o.value.click());
|
1520
1536
|
}, S = () => {
|
1521
|
-
|
1537
|
+
o.value && v && o.value.click();
|
1522
1538
|
};
|
1523
|
-
return (
|
1539
|
+
return (k, D) => (r(), d(B, null, [
|
1524
1540
|
i("div", YA, [
|
1525
|
-
t.value === "uploading" ? (r(),
|
1541
|
+
t.value === "uploading" ? (r(), d("div", RA, D[0] || (D[0] = [
|
1526
1542
|
i("p", null, "Загрузка файла...", -1)
|
1527
|
-
]))) : t.value === "error" ? (r(),
|
1543
|
+
]))) : t.value === "error" ? (r(), d("div", qA, D[1] || (D[1] = [
|
1528
1544
|
i("p", null, "Ошибка при загрузке файла.", -1)
|
1529
|
-
]))) : (r(),
|
1545
|
+
]))) : (r(), Y(nn, {
|
1530
1546
|
key: 2,
|
1531
1547
|
actions: y,
|
1532
1548
|
mode: "hover",
|
@@ -1534,34 +1550,34 @@ const Z1 = (e) => {
|
|
1534
1550
|
"menu-side": "top",
|
1535
1551
|
"context-menu-key": "file-uploader",
|
1536
1552
|
disabled: !v.value,
|
1537
|
-
onClick:
|
1553
|
+
onClick: N,
|
1538
1554
|
onButtonClick: S
|
1539
1555
|
}, null, 8, ["disabled"])),
|
1540
1556
|
i("input", {
|
1541
1557
|
ref_key: "fileInput",
|
1542
|
-
ref:
|
1558
|
+
ref: o,
|
1543
1559
|
style: { display: "none" },
|
1544
1560
|
type: "file",
|
1545
1561
|
onChange: I
|
1546
1562
|
}, null, 544)
|
1547
1563
|
]),
|
1548
|
-
|
1564
|
+
Q(g).fileName ? (r(), Y(Xf, {
|
1549
1565
|
key: 0,
|
1550
1566
|
to: "#chat-input-first-line"
|
1551
1567
|
}, [
|
1552
|
-
C(
|
1568
|
+
C(QA, {
|
1553
1569
|
"preview-url": s.value,
|
1554
1570
|
"is-image": A.value,
|
1555
|
-
"is-video":
|
1556
|
-
"is-audio":
|
1571
|
+
"is-video": l.value,
|
1572
|
+
"is-audio": u.value,
|
1557
1573
|
"file-name": a.value.name,
|
1558
|
-
"file-size":
|
1574
|
+
"file-size": c.value,
|
1559
1575
|
onReset: M
|
1560
1576
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
|
1561
1577
|
])) : h("", !0)
|
1562
1578
|
], 64));
|
1563
1579
|
}
|
1564
|
-
},
|
1580
|
+
}, Al = /* @__PURE__ */ j(FA, [["__scopeId", "data-v-c88bad11"]]), $A = { key: 0 }, WA = ["value", "selected"], JA = {
|
1565
1581
|
__name: "ThemeMode",
|
1566
1582
|
props: {
|
1567
1583
|
themes: {
|
@@ -1580,22 +1596,22 @@ const Z1 = (e) => {
|
|
1580
1596
|
}, t = (s) => {
|
1581
1597
|
document.documentElement.dataset.theme = s;
|
1582
1598
|
};
|
1583
|
-
return
|
1599
|
+
return ie(() => {
|
1584
1600
|
const s = n();
|
1585
1601
|
t(s);
|
1586
|
-
}), (s, A) => e.show ? (r(),
|
1602
|
+
}), (s, A) => e.show ? (r(), d("div", $A, [
|
1587
1603
|
i("select", {
|
1588
|
-
onChange: A[0] || (A[0] = (
|
1604
|
+
onChange: A[0] || (A[0] = (l) => a(l))
|
1589
1605
|
}, [
|
1590
|
-
(r(!0),
|
1591
|
-
key:
|
1592
|
-
value:
|
1593
|
-
selected:
|
1594
|
-
}, _(
|
1606
|
+
(r(!0), d(B, null, q(f.themes, (l, u) => (r(), d("option", {
|
1607
|
+
key: u,
|
1608
|
+
value: l.code,
|
1609
|
+
selected: l.default === !0
|
1610
|
+
}, _(l.name), 9, WA))), 128))
|
1595
1611
|
], 32)
|
1596
1612
|
])) : h("", !0);
|
1597
1613
|
}
|
1598
|
-
},
|
1614
|
+
}, sl = /* @__PURE__ */ j(JA, [["__scopeId", "data-v-be17a762"]]), HA = { class: "sidebar" }, KA = { class: "sidebar__container" }, PA = { class: "sidebar__list" }, ZA = ["onClick"], GA = ["src", "alt"], XA = { key: 1 }, es = { class: "sidebar__list-fixed" }, fs = ["onClick"], ns = ["src", "alt"], as = { key: 1 }, ts = {
|
1599
1615
|
__name: "SideBar",
|
1600
1616
|
props: {
|
1601
1617
|
sidebarItems: {
|
@@ -1606,55 +1622,55 @@ const Z1 = (e) => {
|
|
1606
1622
|
},
|
1607
1623
|
emits: ["selectItem"],
|
1608
1624
|
setup(e, { emit: f }) {
|
1609
|
-
const a = Tn(e, "sidebarItems"), t = f, s = (
|
1610
|
-
const
|
1611
|
-
t("selectItem",
|
1612
|
-
}, A = (
|
1613
|
-
const
|
1614
|
-
return
|
1625
|
+
const a = Tn(e, "sidebarItems"), t = f, s = (l) => {
|
1626
|
+
const u = a.value.find((o) => o.itemId === l);
|
1627
|
+
t("selectItem", u);
|
1628
|
+
}, A = (l) => {
|
1629
|
+
const u = l.split(" ");
|
1630
|
+
return u.length > 2 ? u.slice(0, 2).join(" ") : l;
|
1615
1631
|
};
|
1616
|
-
return (
|
1632
|
+
return (l, u) => (r(), d("div", HA, [
|
1617
1633
|
i("div", KA, [
|
1618
1634
|
i("ul", PA, [
|
1619
|
-
(r(!0),
|
1620
|
-
key:
|
1635
|
+
(r(!0), d(B, null, q(a.value.filter((o) => !o.isFixedBottom), (o, c) => (r(), d("li", {
|
1636
|
+
key: c,
|
1621
1637
|
class: "sidebar__item",
|
1622
|
-
onClick: (
|
1638
|
+
onClick: (g) => s(o.itemId)
|
1623
1639
|
}, [
|
1624
1640
|
i("img", {
|
1625
|
-
src:
|
1626
|
-
alt:
|
1627
|
-
class: V(["sidebar__image", { "sidebar__image--active":
|
1641
|
+
src: o.icon,
|
1642
|
+
alt: o.name,
|
1643
|
+
class: V(["sidebar__image", { "sidebar__image--active": o.selected === !0 }])
|
1628
1644
|
}, null, 10, GA),
|
1629
|
-
|
1645
|
+
o.notificationCount ? (r(), d("span", {
|
1630
1646
|
key: 0,
|
1631
|
-
style: L({ backgroundColor:
|
1632
|
-
}, _(
|
1633
|
-
|
1647
|
+
style: L({ backgroundColor: o.notificationColor ? o.notificationColor : "red" })
|
1648
|
+
}, _(o.notificationCount > 99 ? "99+" : o.notificationCount), 5)) : h("", !0),
|
1649
|
+
o.name ? (r(), d("p", XA, _(A(o.name)), 1)) : h("", !0)
|
1634
1650
|
], 8, ZA))), 128))
|
1635
1651
|
]),
|
1636
1652
|
i("ul", es, [
|
1637
|
-
(r(!0),
|
1638
|
-
key:
|
1653
|
+
(r(!0), d(B, null, q(a.value.filter((o) => o.isFixedBottom), (o, c) => (r(), d("li", {
|
1654
|
+
key: c,
|
1639
1655
|
class: "sidebar__item",
|
1640
|
-
onClick: (
|
1656
|
+
onClick: (g) => s(o.itemId)
|
1641
1657
|
}, [
|
1642
1658
|
i("img", {
|
1643
|
-
src:
|
1644
|
-
alt:
|
1645
|
-
class: V(["sidebar__image", { "sidebar__image--active":
|
1659
|
+
src: o.icon,
|
1660
|
+
alt: o.name,
|
1661
|
+
class: V(["sidebar__image", { "sidebar__image--active": o.selected === !0 }])
|
1646
1662
|
}, null, 10, ns),
|
1647
|
-
|
1663
|
+
o.notificationCount ? (r(), d("span", {
|
1648
1664
|
key: 0,
|
1649
|
-
style: L({ backgroundColor:
|
1650
|
-
}, _(
|
1651
|
-
|
1665
|
+
style: L({ backgroundColor: o.notificationColor ? o.notificationColor : "red" })
|
1666
|
+
}, _(o.notificationCount > 99 ? "99+" : o.notificationCount), 5)) : h("", !0),
|
1667
|
+
o.name ? (r(), d("p", as, _(A(o.name)), 1)) : h("", !0)
|
1652
1668
|
], 8, fs))), 128))
|
1653
1669
|
])
|
1654
1670
|
])
|
1655
1671
|
]));
|
1656
1672
|
}
|
1657
|
-
},
|
1673
|
+
}, il = /* @__PURE__ */ j(ts, [["__scopeId", "data-v-5e22516c"]]), As = { class: "chat-panel" }, ss = { class: "chat-panel__title-container" }, is = {
|
1658
1674
|
key: 0,
|
1659
1675
|
class: "chat-panel__title"
|
1660
1676
|
}, os = {
|
@@ -1668,9 +1684,9 @@ const Z1 = (e) => {
|
|
1668
1684
|
},
|
1669
1685
|
emits: ["close-panel"],
|
1670
1686
|
setup(e, { emit: f }) {
|
1671
|
-
return (n, a) => (r(),
|
1687
|
+
return (n, a) => (r(), d("div", As, [
|
1672
1688
|
i("div", ss, [
|
1673
|
-
e.title ? (r(),
|
1689
|
+
e.title ? (r(), d("p", is, _(e.title), 1)) : h("", !0),
|
1674
1690
|
i("button", {
|
1675
1691
|
class: "chat-panel__button-close",
|
1676
1692
|
onClick: a[0] || (a[0] = (t) => n.$emit("close-panel"))
|
@@ -1683,7 +1699,7 @@ const Z1 = (e) => {
|
|
1683
1699
|
])
|
1684
1700
|
]));
|
1685
1701
|
}
|
1686
|
-
},
|
1702
|
+
}, ol = /* @__PURE__ */ j(os, [["__scopeId", "data-v-1f6ac199"]]), ls = { class: "channels__container" }, us = {
|
1687
1703
|
key: 0,
|
1688
1704
|
class: "channels__selected"
|
1689
1705
|
}, rs = {
|
@@ -1699,39 +1715,44 @@ const Z1 = (e) => {
|
|
1699
1715
|
type: Array,
|
1700
1716
|
required: !1,
|
1701
1717
|
default: () => []
|
1718
|
+
},
|
1719
|
+
mode: {
|
1720
|
+
type: String,
|
1721
|
+
required: !1,
|
1722
|
+
default: "hover"
|
1702
1723
|
}
|
1703
1724
|
},
|
1704
1725
|
emits: ["selectChannel"],
|
1705
1726
|
setup(e, { emit: f }) {
|
1706
|
-
const n = b(null), a = e, t = f, A = b(a.channels.find((
|
1707
|
-
A.value =
|
1727
|
+
const n = b(null), a = e, t = f, A = b(a.channels.find((u) => u.type === "default")), l = (u) => {
|
1728
|
+
A.value = u, t("selectChannel", A.value);
|
1708
1729
|
};
|
1709
|
-
return (
|
1730
|
+
return (u, o) => (r(), d("div", {
|
1710
1731
|
ref_key: "customDiv",
|
1711
1732
|
ref: n,
|
1712
1733
|
class: "channels"
|
1713
1734
|
}, [
|
1714
|
-
i("div",
|
1715
|
-
A.value ? (r(),
|
1716
|
-
A.value.icon ? (r(),
|
1735
|
+
i("div", ls, [
|
1736
|
+
A.value ? (r(), d("div", us, [
|
1737
|
+
A.value.icon ? (r(), d("span", rs, [
|
1717
1738
|
i("img", {
|
1718
1739
|
src: A.value.icon
|
1719
1740
|
}, null, 8, cs)
|
1720
1741
|
])) : h("", !0),
|
1721
1742
|
i("span", ds, _(A.value.title), 1)
|
1722
|
-
])) : (r(),
|
1723
|
-
C(
|
1743
|
+
])) : (r(), d("span", gs, "Канал не выбран")),
|
1744
|
+
C(nn, {
|
1724
1745
|
actions: e.channels,
|
1725
|
-
mode:
|
1746
|
+
mode: e.mode,
|
1726
1747
|
"button-class": "pi pi-list",
|
1727
1748
|
"menu-side": "top",
|
1728
1749
|
"context-menu-key": "channels",
|
1729
|
-
onClick:
|
1730
|
-
}, null, 8, ["actions"])
|
1750
|
+
onClick: l
|
1751
|
+
}, null, 8, ["actions", "mode"])
|
1731
1752
|
])
|
1732
1753
|
], 512));
|
1733
1754
|
}
|
1734
|
-
},
|
1755
|
+
}, ll = /* @__PURE__ */ j(ms, [["__scopeId", "data-v-c1ab6dd9"]]), ps = { class: "template-selector" }, Ms = { class: "template-selector__container" }, hs = { class: "template-selector__button-close" }, ys = { class: "template-selector__list" }, bs = ["onClick"], vs = { class: "template-selector__item-group" }, _s = { class: "template-selector__item-template" }, Is = { class: "template-selector__item-title" }, ws = { class: "template-selector__item-text" }, ks = { class: "template-selector__preview-container" }, Ns = {
|
1735
1756
|
key: 0,
|
1736
1757
|
class: "template-selector__preview"
|
1737
1758
|
}, Ds = { class: "template-selector__preview-wrapper" }, js = { class: "template-selector__preview-text" }, Vs = {
|
@@ -1748,80 +1769,109 @@ const Z1 = (e) => {
|
|
1748
1769
|
},
|
1749
1770
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
1750
1771
|
setup(e, { emit: f }) {
|
1751
|
-
const n = e, a = () => {
|
1752
|
-
|
1753
|
-
},
|
1754
|
-
n.templates.forEach((
|
1755
|
-
const
|
1756
|
-
|
1757
|
-
},
|
1758
|
-
return (
|
1772
|
+
const n = e, { message: a } = ef(), t = () => {
|
1773
|
+
s("closeTemplateWindow"), a.value.text = l.value.template;
|
1774
|
+
}, s = f, A = (u) => {
|
1775
|
+
n.templates.forEach((c) => c.isSelected = !1);
|
1776
|
+
const o = n.templates.find((c) => c.templateId === u.templateId);
|
1777
|
+
o.isSelected = !0;
|
1778
|
+
}, l = x(() => n.templates.find((u) => u.isSelected));
|
1779
|
+
return (u, o) => (r(), d("div", ps, [
|
1759
1780
|
i("div", Ms, [
|
1760
1781
|
i("button", hs, [
|
1761
1782
|
i("span", {
|
1762
1783
|
class: "pi pi-times",
|
1763
|
-
onClick:
|
1784
|
+
onClick: o[0] || (o[0] = (c) => u.$emit("closeTemplateWindow"))
|
1764
1785
|
})
|
1765
1786
|
]),
|
1766
1787
|
i("ul", ys, [
|
1767
|
-
(r(!0),
|
1788
|
+
(r(!0), d(B, null, q(e.templates, (c, g) => (r(), d("li", {
|
1768
1789
|
key: g,
|
1769
|
-
class: V(["template-selector__item", { "template-selector__item-selected":
|
1770
|
-
onClick: (
|
1790
|
+
class: V(["template-selector__item", { "template-selector__item-selected": c.isSelected }]),
|
1791
|
+
onClick: (m) => A(c)
|
1771
1792
|
}, [
|
1772
|
-
i("p", vs, _(
|
1793
|
+
i("p", vs, _(c.groupId), 1),
|
1773
1794
|
i("div", _s, [
|
1774
|
-
i("p", Is, _(
|
1775
|
-
i("p", ws, _(
|
1795
|
+
i("p", Is, _(c.title), 1),
|
1796
|
+
i("p", ws, _(c.template), 1)
|
1776
1797
|
])
|
1777
1798
|
], 10, bs))), 128))
|
1778
1799
|
]),
|
1779
|
-
i("div",
|
1780
|
-
|
1800
|
+
i("div", ks, [
|
1801
|
+
l.value ? (r(), d("div", Ns, [
|
1781
1802
|
i("div", Ds, [
|
1782
|
-
i("p", js, _(
|
1783
|
-
|
1803
|
+
i("p", js, _(l.value.template), 1),
|
1804
|
+
o[1] || (o[1] = i("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
1784
1805
|
])
|
1785
|
-
])) : (r(),
|
1806
|
+
])) : (r(), d("p", Vs, " Предпросмотр шаблона "))
|
1786
1807
|
]),
|
1787
1808
|
i("button", {
|
1788
1809
|
class: "template-selector__button-paste",
|
1789
|
-
onClick:
|
1810
|
+
onClick: t
|
1790
1811
|
}, " Вставить ")
|
1791
1812
|
])
|
1792
1813
|
]));
|
1793
1814
|
}
|
1794
|
-
}, Ts = /* @__PURE__ */ j(Es, [["__scopeId", "data-v-
|
1815
|
+
}, Ts = /* @__PURE__ */ j(Es, [["__scopeId", "data-v-a10e4042"]]), xs = {
|
1795
1816
|
__name: "ButtonTemplateSelector",
|
1796
1817
|
props: {
|
1797
1818
|
templates: {
|
1798
1819
|
type: Array,
|
1799
1820
|
required: !1,
|
1800
1821
|
default: () => []
|
1822
|
+
},
|
1823
|
+
mode: {
|
1824
|
+
type: String,
|
1825
|
+
required: !1,
|
1826
|
+
default: "click"
|
1801
1827
|
}
|
1802
1828
|
},
|
1803
1829
|
setup(e) {
|
1804
|
-
const f = b(
|
1805
|
-
|
1830
|
+
const f = e, n = b(null), a = b(null), t = () => {
|
1831
|
+
f.mode == "click" && (a.value.style.display = "inherit");
|
1832
|
+
}, s = () => {
|
1833
|
+
f.mode == "hover" && (a.value.style.display = "inherit");
|
1834
|
+
}, A = () => {
|
1835
|
+
f.mode == "hover" && (a.value.style.display = "none");
|
1836
|
+
}, l = (o) => {
|
1837
|
+
f.mode == "click" && !n.value.contains(o.target) && !a.value.contains(o.target) && (a.value.style.display = "none");
|
1838
|
+
}, u = () => {
|
1839
|
+
a.value.style.display = "none";
|
1840
|
+
};
|
1841
|
+
return ie(() => {
|
1842
|
+
a.value.style.display = "none", document.addEventListener("click", l);
|
1843
|
+
}), pf(() => {
|
1844
|
+
document.removeEventListener("click", l);
|
1845
|
+
}), (o, c) => (r(), d(B, null, [
|
1806
1846
|
i("button", {
|
1847
|
+
ref_key: "templateButton",
|
1848
|
+
ref: n,
|
1807
1849
|
class: "button-template",
|
1808
|
-
onClick:
|
1809
|
-
|
1850
|
+
onClick: t,
|
1851
|
+
onMouseover: s,
|
1852
|
+
onMouseout: A
|
1853
|
+
}, c[0] || (c[0] = [
|
1810
1854
|
i("span", { class: "pi pi-objects-column" }, null, -1)
|
1811
|
-
])),
|
1855
|
+
]), 544),
|
1812
1856
|
C(H, null, {
|
1813
1857
|
default: K(() => [
|
1814
|
-
|
1815
|
-
|
1816
|
-
|
1817
|
-
|
1818
|
-
|
1858
|
+
i("div", {
|
1859
|
+
ref_key: "template",
|
1860
|
+
ref: a,
|
1861
|
+
onMouseover: s,
|
1862
|
+
onMouseout: A
|
1863
|
+
}, [
|
1864
|
+
C(Ts, {
|
1865
|
+
templates: e.templates,
|
1866
|
+
onCloseTemplateWindow: u
|
1867
|
+
}, null, 8, ["templates"])
|
1868
|
+
], 544)
|
1819
1869
|
]),
|
1820
1870
|
_: 1
|
1821
1871
|
})
|
1822
1872
|
], 64));
|
1823
1873
|
}
|
1824
|
-
},
|
1874
|
+
}, ul = /* @__PURE__ */ j(xs, [["__scopeId", "data-v-4d56ef89"]]), an = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", tn = {
|
1825
1875
|
recent: "Recently used",
|
1826
1876
|
smileys_people: "Smiles & People",
|
1827
1877
|
animals_nature: "Animals & Nature",
|
@@ -1831,18 +1881,18 @@ const Z1 = (e) => {
|
|
1831
1881
|
objects: "Objects",
|
1832
1882
|
symbols: "Symbols",
|
1833
1883
|
flags: "Flags"
|
1834
|
-
},
|
1835
|
-
[
|
1836
|
-
[
|
1884
|
+
}, An = "u", ff = "n", We = "v", ze = "r", Ss = {
|
1885
|
+
[ff]: ["grinning face", "grinning"],
|
1886
|
+
[An]: "1f600",
|
1837
1887
|
[ze]: "1f600"
|
1838
|
-
}, Ze = "neutral", zs = "1f3fb", Os = "1f3fc", Cs = "1f3fd", Us = "1f3fe", Ls = "1f3ff",
|
1888
|
+
}, Ze = "neutral", zs = "1f3fb", Os = "1f3fc", Cs = "1f3fd", Us = "1f3fe", Ls = "1f3ff", Bs = [
|
1839
1889
|
Ze,
|
1840
1890
|
zs,
|
1841
1891
|
Os,
|
1842
1892
|
Cs,
|
1843
1893
|
Us,
|
1844
1894
|
Ls
|
1845
|
-
],
|
1895
|
+
], Qs = {
|
1846
1896
|
placeholder: "Search emoji",
|
1847
1897
|
skinTone: "Skin tone"
|
1848
1898
|
}, Ys = ["light", "dark", "auto"], Rs = [
|
@@ -13825,9 +13875,9 @@ var Ps = {
|
|
13825
13875
|
}
|
13826
13876
|
];
|
13827
13877
|
const Zs = (e, f) => f.some((n) => e instanceof n);
|
13828
|
-
let
|
13878
|
+
let Yf, Rf;
|
13829
13879
|
function Gs() {
|
13830
|
-
return
|
13880
|
+
return Yf || (Yf = [
|
13831
13881
|
IDBDatabase,
|
13832
13882
|
IDBObjectStore,
|
13833
13883
|
IDBIndex,
|
@@ -13836,13 +13886,13 @@ function Gs() {
|
|
13836
13886
|
]);
|
13837
13887
|
}
|
13838
13888
|
function Xs() {
|
13839
|
-
return
|
13889
|
+
return Rf || (Rf = [
|
13840
13890
|
IDBCursor.prototype.advance,
|
13841
13891
|
IDBCursor.prototype.continue,
|
13842
13892
|
IDBCursor.prototype.continuePrimaryKey
|
13843
13893
|
]);
|
13844
13894
|
}
|
13845
|
-
const
|
13895
|
+
const sn = /* @__PURE__ */ new WeakMap(), df = /* @__PURE__ */ new WeakMap(), on = /* @__PURE__ */ new WeakMap(), lf = /* @__PURE__ */ new WeakMap(), Mf = /* @__PURE__ */ new WeakMap();
|
13846
13896
|
function ei(e) {
|
13847
13897
|
const f = new Promise((n, a) => {
|
13848
13898
|
const t = () => {
|
@@ -13855,12 +13905,12 @@ function ei(e) {
|
|
13855
13905
|
e.addEventListener("success", s), e.addEventListener("error", A);
|
13856
13906
|
});
|
13857
13907
|
return f.then((n) => {
|
13858
|
-
n instanceof IDBCursor &&
|
13908
|
+
n instanceof IDBCursor && sn.set(n, e);
|
13859
13909
|
}).catch(() => {
|
13860
|
-
}),
|
13910
|
+
}), Mf.set(f, e), f;
|
13861
13911
|
}
|
13862
13912
|
function fi(e) {
|
13863
|
-
if (
|
13913
|
+
if (df.has(e))
|
13864
13914
|
return;
|
13865
13915
|
const f = new Promise((n, a) => {
|
13866
13916
|
const t = () => {
|
@@ -13872,15 +13922,15 @@ function fi(e) {
|
|
13872
13922
|
};
|
13873
13923
|
e.addEventListener("complete", s), e.addEventListener("error", A), e.addEventListener("abort", A);
|
13874
13924
|
});
|
13875
|
-
|
13925
|
+
df.set(e, f);
|
13876
13926
|
}
|
13877
|
-
let
|
13927
|
+
let gf = {
|
13878
13928
|
get(e, f, n) {
|
13879
13929
|
if (e instanceof IDBTransaction) {
|
13880
13930
|
if (f === "done")
|
13881
|
-
return
|
13931
|
+
return df.get(e);
|
13882
13932
|
if (f === "objectStoreNames")
|
13883
|
-
return e.objectStoreNames ||
|
13933
|
+
return e.objectStoreNames || on.get(e);
|
13884
13934
|
if (f === "store")
|
13885
13935
|
return n.objectStoreNames[1] ? void 0 : n.objectStore(n.objectStoreNames[0]);
|
13886
13936
|
}
|
@@ -13894,72 +13944,72 @@ let cf = {
|
|
13894
13944
|
}
|
13895
13945
|
};
|
13896
13946
|
function ni(e) {
|
13897
|
-
|
13947
|
+
gf = e(gf);
|
13898
13948
|
}
|
13899
13949
|
function ai(e) {
|
13900
13950
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...n) {
|
13901
13951
|
const a = e.call(uf(this), f, ...n);
|
13902
|
-
return
|
13952
|
+
return on.set(a, f.sort ? f.sort() : [f]), se(a);
|
13903
13953
|
} : Xs().includes(e) ? function(...f) {
|
13904
|
-
return e.apply(uf(this), f), se(
|
13954
|
+
return e.apply(uf(this), f), se(sn.get(this));
|
13905
13955
|
} : function(...f) {
|
13906
13956
|
return se(e.apply(uf(this), f));
|
13907
13957
|
};
|
13908
13958
|
}
|
13909
13959
|
function ti(e) {
|
13910
|
-
return typeof e == "function" ? ai(e) : (e instanceof IDBTransaction && fi(e), Zs(e, Gs()) ? new Proxy(e,
|
13960
|
+
return typeof e == "function" ? ai(e) : (e instanceof IDBTransaction && fi(e), Zs(e, Gs()) ? new Proxy(e, gf) : e);
|
13911
13961
|
}
|
13912
13962
|
function se(e) {
|
13913
13963
|
if (e instanceof IDBRequest)
|
13914
13964
|
return ei(e);
|
13915
|
-
if (
|
13916
|
-
return
|
13965
|
+
if (lf.has(e))
|
13966
|
+
return lf.get(e);
|
13917
13967
|
const f = ti(e);
|
13918
|
-
return f !== e && (
|
13968
|
+
return f !== e && (lf.set(e, f), Mf.set(f, e)), f;
|
13919
13969
|
}
|
13920
|
-
const uf = (e) =>
|
13921
|
-
function
|
13922
|
-
const A = indexedDB.open(e, f),
|
13923
|
-
return a && A.addEventListener("upgradeneeded", (
|
13924
|
-
a(se(A.result),
|
13925
|
-
}), n && A.addEventListener("blocked", (
|
13926
|
-
|
13927
|
-
|
13928
|
-
|
13929
|
-
)),
|
13930
|
-
s &&
|
13970
|
+
const uf = (e) => Mf.get(e);
|
13971
|
+
function hf(e, f, { blocked: n, upgrade: a, blocking: t, terminated: s } = {}) {
|
13972
|
+
const A = indexedDB.open(e, f), l = se(A);
|
13973
|
+
return a && A.addEventListener("upgradeneeded", (u) => {
|
13974
|
+
a(se(A.result), u.oldVersion, u.newVersion, se(A.transaction), u);
|
13975
|
+
}), n && A.addEventListener("blocked", (u) => n(
|
13976
|
+
u.oldVersion,
|
13977
|
+
u.newVersion,
|
13978
|
+
u
|
13979
|
+
)), l.then((u) => {
|
13980
|
+
s && u.addEventListener("close", () => s()), t && u.addEventListener("versionchange", (o) => t(o.oldVersion, o.newVersion, o));
|
13931
13981
|
}).catch(() => {
|
13932
|
-
}),
|
13982
|
+
}), l;
|
13933
13983
|
}
|
13934
|
-
const Ai = ["get", "getKey", "getAll", "getAllKeys", "count"], si = ["put", "add", "delete", "clear"],
|
13935
|
-
function
|
13984
|
+
const Ai = ["get", "getKey", "getAll", "getAllKeys", "count"], si = ["put", "add", "delete", "clear"], rf = /* @__PURE__ */ new Map();
|
13985
|
+
function qf(e, f) {
|
13936
13986
|
if (!(e instanceof IDBDatabase && !(f in e) && typeof f == "string"))
|
13937
13987
|
return;
|
13938
|
-
if (
|
13939
|
-
return
|
13988
|
+
if (rf.get(f))
|
13989
|
+
return rf.get(f);
|
13940
13990
|
const n = f.replace(/FromIndex$/, ""), a = f !== n, t = si.includes(n);
|
13941
13991
|
if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(t || Ai.includes(n)))
|
13942
13992
|
return;
|
13943
|
-
const s = async function(A, ...
|
13944
|
-
const
|
13945
|
-
let
|
13946
|
-
return a && (
|
13947
|
-
|
13948
|
-
t &&
|
13993
|
+
const s = async function(A, ...l) {
|
13994
|
+
const u = this.transaction(A, t ? "readwrite" : "readonly");
|
13995
|
+
let o = u.store;
|
13996
|
+
return a && (o = o.index(l.shift())), (await Promise.all([
|
13997
|
+
o[n](...l),
|
13998
|
+
t && u.done
|
13949
13999
|
]))[0];
|
13950
14000
|
};
|
13951
|
-
return
|
14001
|
+
return rf.set(f, s), s;
|
13952
14002
|
}
|
13953
14003
|
ni((e) => ({
|
13954
14004
|
...e,
|
13955
|
-
get: (f, n, a) =>
|
13956
|
-
has: (f, n) => !!
|
14005
|
+
get: (f, n, a) => qf(f, n) || e.get(f, n, a),
|
14006
|
+
has: (f, n) => !!qf(f, n) || e.has(f, n)
|
13957
14007
|
}));
|
13958
|
-
const
|
14008
|
+
const yf = "EMJ", ye = "emojis", bf = 3;
|
13959
14009
|
async function ii() {
|
13960
|
-
(await
|
14010
|
+
(await hf(yf, bf, {
|
13961
14011
|
upgrade(f, n) {
|
13962
|
-
f.objectStoreNames.contains(
|
14012
|
+
f.objectStoreNames.contains(ye) || f.createObjectStore(ye, {
|
13963
14013
|
keyPath: "id",
|
13964
14014
|
autoIncrement: !0
|
13965
14015
|
}).createIndex("id", "id", {
|
@@ -13982,10 +14032,10 @@ const oi = {
|
|
13982
14032
|
groupOrder: [],
|
13983
14033
|
groupIcons: {}
|
13984
14034
|
};
|
13985
|
-
async function
|
13986
|
-
return await (await
|
14035
|
+
async function li() {
|
14036
|
+
return await (await hf(yf, bf)).transaction(ye, "readonly").objectStore(ye).getAll();
|
13987
14037
|
}
|
13988
|
-
function
|
14038
|
+
function ui() {
|
13989
14039
|
const e = On({
|
13990
14040
|
search: "",
|
13991
14041
|
emoji: Ss,
|
@@ -14002,76 +14052,76 @@ function li() {
|
|
14002
14052
|
};
|
14003
14053
|
},
|
14004
14054
|
get disabled() {
|
14005
|
-
let
|
14006
|
-
return this.options.displayRecent || (
|
14055
|
+
let g = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
|
14056
|
+
return this.options.displayRecent || (g = ["recent", ...g]), g;
|
14007
14057
|
},
|
14008
14058
|
get groups() {
|
14009
14059
|
return Qf.filter(
|
14010
|
-
(
|
14060
|
+
(g) => !this.disabled.includes(g.key)
|
14011
14061
|
);
|
14012
14062
|
},
|
14013
14063
|
get orderedGroupKeys() {
|
14014
|
-
const
|
14064
|
+
const g = [
|
14015
14065
|
...this.options.groupOrder,
|
14016
14066
|
...Object.keys(this.options.additionalGroups),
|
14017
|
-
...Qf.map((
|
14067
|
+
...Qf.map((m) => m.key)
|
14018
14068
|
];
|
14019
|
-
return [...new Set(
|
14069
|
+
return [...new Set(g)].filter((m) => !this.disabled.includes(m));
|
14020
14070
|
}
|
14021
14071
|
});
|
14022
14072
|
function f() {
|
14023
14073
|
e.options.displayRecent && a();
|
14024
14074
|
}
|
14025
14075
|
async function n() {
|
14026
|
-
var
|
14027
|
-
let
|
14028
|
-
return Array.isArray(
|
14076
|
+
var g;
|
14077
|
+
let m = await li();
|
14078
|
+
return Array.isArray(m) && m.length ? m = JSON.parse(((g = m[0]) == null ? void 0 : g.value) || "") : m = [], m;
|
14029
14079
|
}
|
14030
14080
|
function a() {
|
14031
|
-
n().then((
|
14032
|
-
e.recent =
|
14081
|
+
n().then((g) => {
|
14082
|
+
e.recent = g, o();
|
14033
14083
|
});
|
14034
14084
|
}
|
14035
|
-
const t = (
|
14036
|
-
e.search =
|
14037
|
-
}, s = (
|
14038
|
-
e.emoji =
|
14039
|
-
}, A = (
|
14040
|
-
e.activeGroup =
|
14041
|
-
},
|
14042
|
-
e.skinTone =
|
14043
|
-
},
|
14044
|
-
e.options = Object.assign({}, e.options,
|
14085
|
+
const t = (g) => {
|
14086
|
+
e.search = g;
|
14087
|
+
}, s = (g) => {
|
14088
|
+
e.emoji = g;
|
14089
|
+
}, A = (g) => {
|
14090
|
+
e.activeGroup = g;
|
14091
|
+
}, l = (g = Ze) => {
|
14092
|
+
e.skinTone = g;
|
14093
|
+
}, u = (g) => {
|
14094
|
+
e.options = Object.assign({}, e.options, g), f();
|
14045
14095
|
};
|
14046
|
-
async function
|
14047
|
-
(await
|
14096
|
+
async function o() {
|
14097
|
+
(await hf(yf, bf)).transaction(ye, "readwrite").objectStore(ye).put({
|
14048
14098
|
id: 0,
|
14049
14099
|
value: JSON.stringify(e.recent)
|
14050
14100
|
});
|
14051
14101
|
}
|
14052
|
-
const
|
14102
|
+
const c = (g) => {
|
14053
14103
|
if (e.options.displayRecent !== !0)
|
14054
14104
|
return;
|
14055
|
-
const
|
14056
|
-
if (
|
14105
|
+
const m = e.recent.findIndex((y) => y.u === g.u);
|
14106
|
+
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
14057
14107
|
return;
|
14058
|
-
const
|
14059
|
-
e.recent = [
|
14108
|
+
const p = { u: g.u, n: fn(g.n) };
|
14109
|
+
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), o();
|
14060
14110
|
};
|
14061
14111
|
return {
|
14062
14112
|
state: Cn(e),
|
14063
14113
|
updateSearch: t,
|
14064
14114
|
updateEmoji: s,
|
14065
14115
|
updateActiveGroup: A,
|
14066
|
-
updateSkinTone:
|
14067
|
-
updateOptions:
|
14068
|
-
updateSelect:
|
14116
|
+
updateSkinTone: l,
|
14117
|
+
updateOptions: u,
|
14118
|
+
updateSelect: c
|
14069
14119
|
};
|
14070
14120
|
}
|
14071
|
-
var $ = "top", Z = "bottom", G = "right", W = "left",
|
14072
|
-
return e.concat([f + "-" +
|
14073
|
-
}, []), un = /* @__PURE__ */ [].concat(Le, [
|
14074
|
-
return e.concat([f, f + "-" +
|
14121
|
+
var $ = "top", Z = "bottom", G = "right", W = "left", vf = "auto", Le = [$, Z, G, W], be = "start", Oe = "end", ri = "clippingParents", ln = "viewport", Te = "popper", ci = "reference", Ff = /* @__PURE__ */ Le.reduce(function(e, f) {
|
14122
|
+
return e.concat([f + "-" + be, f + "-" + Oe]);
|
14123
|
+
}, []), un = /* @__PURE__ */ [].concat(Le, [vf]).reduce(function(e, f) {
|
14124
|
+
return e.concat([f, f + "-" + be, f + "-" + Oe]);
|
14075
14125
|
}, []), di = "beforeRead", gi = "read", mi = "afterRead", pi = "beforeMain", Mi = "main", hi = "afterMain", yi = "beforeWrite", bi = "write", vi = "afterWrite", _i = [di, gi, mi, pi, Mi, hi, yi, bi, vi];
|
14076
14126
|
function ne(e) {
|
14077
14127
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
@@ -14085,7 +14135,7 @@ function ee(e) {
|
|
14085
14135
|
}
|
14086
14136
|
return e;
|
14087
14137
|
}
|
14088
|
-
function
|
14138
|
+
function ve(e) {
|
14089
14139
|
var f = ee(e).Element;
|
14090
14140
|
return e instanceof f || e instanceof Element;
|
14091
14141
|
}
|
@@ -14093,7 +14143,7 @@ function P(e) {
|
|
14093
14143
|
var f = ee(e).HTMLElement;
|
14094
14144
|
return e instanceof f || e instanceof HTMLElement;
|
14095
14145
|
}
|
14096
|
-
function
|
14146
|
+
function rn(e) {
|
14097
14147
|
if (typeof ShadowRoot > "u")
|
14098
14148
|
return !1;
|
14099
14149
|
var f = ee(e).ShadowRoot;
|
@@ -14104,8 +14154,8 @@ function Ii(e) {
|
|
14104
14154
|
Object.keys(f.elements).forEach(function(n) {
|
14105
14155
|
var a = f.styles[n] || {}, t = f.attributes[n] || {}, s = f.elements[n];
|
14106
14156
|
!P(s) || !ne(s) || (Object.assign(s.style, a), Object.keys(t).forEach(function(A) {
|
14107
|
-
var
|
14108
|
-
|
14157
|
+
var l = t[A];
|
14158
|
+
l === !1 ? s.removeAttribute(A) : s.setAttribute(A, l === !0 ? "" : l);
|
14109
14159
|
}));
|
14110
14160
|
});
|
14111
14161
|
}
|
@@ -14124,16 +14174,16 @@ function wi(e) {
|
|
14124
14174
|
};
|
14125
14175
|
return Object.assign(f.elements.popper.style, n.popper), f.styles = n, f.elements.arrow && Object.assign(f.elements.arrow.style, n.arrow), function() {
|
14126
14176
|
Object.keys(f.elements).forEach(function(a) {
|
14127
|
-
var t = f.elements[a], s = f.attributes[a] || {}, A = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]),
|
14128
|
-
return
|
14177
|
+
var t = f.elements[a], s = f.attributes[a] || {}, A = Object.keys(f.styles.hasOwnProperty(a) ? f.styles[a] : n[a]), l = A.reduce(function(u, o) {
|
14178
|
+
return u[o] = "", u;
|
14129
14179
|
}, {});
|
14130
|
-
!P(t) || !ne(t) || (Object.assign(t.style,
|
14131
|
-
t.removeAttribute(
|
14180
|
+
!P(t) || !ne(t) || (Object.assign(t.style, l), Object.keys(s).forEach(function(u) {
|
14181
|
+
t.removeAttribute(u);
|
14132
14182
|
}));
|
14133
14183
|
});
|
14134
14184
|
};
|
14135
14185
|
}
|
14136
|
-
var
|
14186
|
+
var ki = {
|
14137
14187
|
name: "applyStyles",
|
14138
14188
|
enabled: !0,
|
14139
14189
|
phase: "write",
|
@@ -14144,13 +14194,13 @@ var Ni = {
|
|
14144
14194
|
function fe(e) {
|
14145
14195
|
return e.split("-")[0];
|
14146
14196
|
}
|
14147
|
-
var
|
14148
|
-
function
|
14197
|
+
var de = Math.max, Ge = Math.min, _e = Math.round;
|
14198
|
+
function Ie(e, f) {
|
14149
14199
|
f === void 0 && (f = !1);
|
14150
14200
|
var n = e.getBoundingClientRect(), a = 1, t = 1;
|
14151
14201
|
if (P(e) && f) {
|
14152
14202
|
var s = e.offsetHeight, A = e.offsetWidth;
|
14153
|
-
A > 0 && (a =
|
14203
|
+
A > 0 && (a = _e(n.width) / A || 1), s > 0 && (t = _e(n.height) / s || 1);
|
14154
14204
|
}
|
14155
14205
|
return {
|
14156
14206
|
width: n.width / a,
|
@@ -14163,8 +14213,8 @@ function _e(e, f) {
|
|
14163
14213
|
y: n.top / t
|
14164
14214
|
};
|
14165
14215
|
}
|
14166
|
-
function
|
14167
|
-
var f =
|
14216
|
+
function _f(e) {
|
14217
|
+
var f = Ie(e), n = e.offsetWidth, a = e.offsetHeight;
|
14168
14218
|
return Math.abs(f.width - n) <= 1 && (n = f.width), Math.abs(f.height - a) <= 1 && (a = f.height), {
|
14169
14219
|
x: e.offsetLeft,
|
14170
14220
|
y: e.offsetTop,
|
@@ -14172,11 +14222,11 @@ function bf(e) {
|
|
14172
14222
|
height: a
|
14173
14223
|
};
|
14174
14224
|
}
|
14175
|
-
function
|
14225
|
+
function cn(e, f) {
|
14176
14226
|
var n = f.getRootNode && f.getRootNode();
|
14177
14227
|
if (e.contains(f))
|
14178
14228
|
return !0;
|
14179
|
-
if (n &&
|
14229
|
+
if (n && rn(n)) {
|
14180
14230
|
var a = f;
|
14181
14231
|
do {
|
14182
14232
|
if (a && e.isSameNode(a))
|
@@ -14189,16 +14239,16 @@ function rn(e, f) {
|
|
14189
14239
|
function ae(e) {
|
14190
14240
|
return ee(e).getComputedStyle(e);
|
14191
14241
|
}
|
14192
|
-
function
|
14242
|
+
function Ni(e) {
|
14193
14243
|
return ["table", "td", "th"].indexOf(ne(e)) >= 0;
|
14194
14244
|
}
|
14195
|
-
function
|
14196
|
-
return ((
|
14245
|
+
function oe(e) {
|
14246
|
+
return ((ve(e) ? e.ownerDocument : e.document) || window.document).documentElement;
|
14197
14247
|
}
|
14198
|
-
function
|
14199
|
-
return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (
|
14248
|
+
function nf(e) {
|
14249
|
+
return ne(e) === "html" ? e : e.assignedSlot || e.parentNode || (rn(e) ? e.host : null) || oe(e);
|
14200
14250
|
}
|
14201
|
-
function
|
14251
|
+
function $f(e) {
|
14202
14252
|
return !P(e) || ae(e).position === "fixed" ? null : e.offsetParent;
|
14203
14253
|
}
|
14204
14254
|
function Di(e) {
|
@@ -14208,7 +14258,7 @@ function Di(e) {
|
|
14208
14258
|
if (a.position === "fixed")
|
14209
14259
|
return null;
|
14210
14260
|
}
|
14211
|
-
for (var t =
|
14261
|
+
for (var t = nf(e); P(t) && ["html", "body"].indexOf(ne(t)) < 0; ) {
|
14212
14262
|
var s = ae(t);
|
14213
14263
|
if (s.transform !== "none" || s.perspective !== "none" || s.contain === "paint" || ["transform", "perspective"].indexOf(s.willChange) !== -1 || f && s.willChange === "filter" || f && s.filter && s.filter !== "none")
|
14214
14264
|
return t;
|
@@ -14216,22 +14266,22 @@ function Di(e) {
|
|
14216
14266
|
}
|
14217
14267
|
return null;
|
14218
14268
|
}
|
14219
|
-
function
|
14220
|
-
for (var f = ee(e), n =
|
14221
|
-
n =
|
14269
|
+
function Be(e) {
|
14270
|
+
for (var f = ee(e), n = $f(e); n && Ni(n) && ae(n).position === "static"; )
|
14271
|
+
n = $f(n);
|
14222
14272
|
return n && (ne(n) === "html" || ne(n) === "body" && ae(n).position === "static") ? f : n || Di(e) || f;
|
14223
14273
|
}
|
14224
|
-
function
|
14274
|
+
function If(e) {
|
14225
14275
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
14226
14276
|
}
|
14227
14277
|
function xe(e, f, n) {
|
14228
|
-
return
|
14278
|
+
return de(e, Ge(f, n));
|
14229
14279
|
}
|
14230
14280
|
function ji(e, f, n) {
|
14231
14281
|
var a = xe(e, f, n);
|
14232
14282
|
return a > n ? n : a;
|
14233
14283
|
}
|
14234
|
-
function
|
14284
|
+
function dn() {
|
14235
14285
|
return {
|
14236
14286
|
top: 0,
|
14237
14287
|
right: 0,
|
@@ -14239,10 +14289,10 @@ function cn() {
|
|
14239
14289
|
left: 0
|
14240
14290
|
};
|
14241
14291
|
}
|
14242
|
-
function
|
14243
|
-
return Object.assign({},
|
14292
|
+
function gn(e) {
|
14293
|
+
return Object.assign({}, dn(), e);
|
14244
14294
|
}
|
14245
|
-
function
|
14295
|
+
function mn(e, f) {
|
14246
14296
|
return f.reduce(function(n, a) {
|
14247
14297
|
return n[a] = e, n;
|
14248
14298
|
}, {});
|
@@ -14250,18 +14300,18 @@ function gn(e, f) {
|
|
14250
14300
|
var Vi = function(f, n) {
|
14251
14301
|
return f = typeof f == "function" ? f(Object.assign({}, n.rects, {
|
14252
14302
|
placement: n.placement
|
14253
|
-
})) : f,
|
14303
|
+
})) : f, gn(typeof f != "number" ? f : mn(f, Le));
|
14254
14304
|
};
|
14255
14305
|
function Ei(e) {
|
14256
|
-
var f, n = e.state, a = e.name, t = e.options, s = n.elements.arrow, A = n.modifiersData.popperOffsets,
|
14306
|
+
var f, n = e.state, a = e.name, t = e.options, s = n.elements.arrow, A = n.modifiersData.popperOffsets, l = fe(n.placement), u = If(l), o = [W, G].indexOf(l) >= 0, c = o ? "height" : "width";
|
14257
14307
|
if (!(!s || !A)) {
|
14258
|
-
var
|
14259
|
-
n.modifiersData[a] = (f = {}, f[z] = D, f.centerOffset = D -
|
14308
|
+
var g = Vi(t.padding, n), m = _f(s), p = u === "y" ? $ : W, y = u === "y" ? Z : G, v = n.rects.reference[c] + n.rects.reference[u] - A[u] - n.rects.popper[c], M = A[u] - n.rects.reference[u], I = Be(s), w = I ? u === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, E = v / 2 - M / 2, N = g[p], S = w - m[c] - g[y], k = w / 2 - m[c] / 2 + E, D = xe(N, k, S), z = u;
|
14309
|
+
n.modifiersData[a] = (f = {}, f[z] = D, f.centerOffset = D - k, f);
|
14260
14310
|
}
|
14261
14311
|
}
|
14262
14312
|
function Ti(e) {
|
14263
14313
|
var f = e.state, n = e.options, a = n.element, t = a === void 0 ? "[data-popper-arrow]" : a;
|
14264
|
-
t != null && (typeof t == "string" && (t = f.elements.popper.querySelector(t), !t) ||
|
14314
|
+
t != null && (typeof t == "string" && (t = f.elements.popper.querySelector(t), !t) || cn(f.elements.popper, t) && (f.elements.arrow = t));
|
14265
14315
|
}
|
14266
14316
|
var xi = {
|
14267
14317
|
name: "arrow",
|
@@ -14272,7 +14322,7 @@ var xi = {
|
|
14272
14322
|
requires: ["popperOffsets"],
|
14273
14323
|
requiresIfExists: ["preventOverflow"]
|
14274
14324
|
};
|
14275
|
-
function
|
14325
|
+
function we(e) {
|
14276
14326
|
return e.split("-")[1];
|
14277
14327
|
}
|
14278
14328
|
var Si = {
|
@@ -14284,53 +14334,53 @@ var Si = {
|
|
14284
14334
|
function zi(e) {
|
14285
14335
|
var f = e.x, n = e.y, a = window, t = a.devicePixelRatio || 1;
|
14286
14336
|
return {
|
14287
|
-
x:
|
14288
|
-
y:
|
14337
|
+
x: _e(f * t) / t || 0,
|
14338
|
+
y: _e(n * t) / t || 0
|
14289
14339
|
};
|
14290
14340
|
}
|
14291
|
-
function
|
14292
|
-
var f, n = e.popper, a = e.popperRect, t = e.placement, s = e.variation, A = e.offsets,
|
14293
|
-
if (
|
14294
|
-
var
|
14295
|
-
if (
|
14296
|
-
|
14297
|
-
var T =
|
14298
|
-
M -= T - a.height, M *=
|
14341
|
+
function Wf(e) {
|
14342
|
+
var f, n = e.popper, a = e.popperRect, t = e.placement, s = e.variation, A = e.offsets, l = e.position, u = e.gpuAcceleration, o = e.adaptive, c = e.roundOffsets, g = e.isFixed, m = c === !0 ? zi(A) : typeof c == "function" ? c(A) : A, p = m.x, y = p === void 0 ? 0 : p, v = m.y, M = v === void 0 ? 0 : v, I = A.hasOwnProperty("x"), w = A.hasOwnProperty("y"), E = W, N = $, S = window;
|
14343
|
+
if (o) {
|
14344
|
+
var k = Be(n), D = "clientHeight", z = "clientWidth";
|
14345
|
+
if (k === ee(n) && (k = oe(n), ae(k).position !== "static" && l === "absolute" && (D = "scrollHeight", z = "scrollWidth")), k = k, t === $ || (t === W || t === G) && s === Oe) {
|
14346
|
+
N = Z;
|
14347
|
+
var T = g && S.visualViewport ? S.visualViewport.height : k[D];
|
14348
|
+
M -= T - a.height, M *= u ? 1 : -1;
|
14299
14349
|
}
|
14300
14350
|
if (t === W || (t === $ || t === Z) && s === Oe) {
|
14301
14351
|
E = G;
|
14302
|
-
var O =
|
14303
|
-
y -= O - a.width, y *=
|
14352
|
+
var O = g && S.visualViewport ? S.visualViewport.width : k[z];
|
14353
|
+
y -= O - a.width, y *= u ? 1 : -1;
|
14304
14354
|
}
|
14305
14355
|
}
|
14306
14356
|
var U = Object.assign({
|
14307
|
-
position:
|
14308
|
-
},
|
14309
|
-
if (
|
14310
|
-
var
|
14311
|
-
return Object.assign({}, U, (
|
14357
|
+
position: l
|
14358
|
+
}, o && Si);
|
14359
|
+
if (u) {
|
14360
|
+
var R;
|
14361
|
+
return Object.assign({}, U, (R = {}, R[N] = w ? "0" : "", R[E] = I ? "0" : "", R.transform = (S.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + M + "px)" : "translate3d(" + y + "px, " + M + "px, 0)", R));
|
14312
14362
|
}
|
14313
|
-
return Object.assign({}, U, (f = {}, f[
|
14363
|
+
return Object.assign({}, U, (f = {}, f[N] = w ? M + "px" : "", f[E] = I ? y + "px" : "", f.transform = "", f));
|
14314
14364
|
}
|
14315
14365
|
function Oi(e) {
|
14316
|
-
var f = e.state, n = e.options, a = n.gpuAcceleration, t = a === void 0 ? !0 : a, s = n.adaptive, A = s === void 0 ? !0 : s,
|
14366
|
+
var f = e.state, n = e.options, a = n.gpuAcceleration, t = a === void 0 ? !0 : a, s = n.adaptive, A = s === void 0 ? !0 : s, l = n.roundOffsets, u = l === void 0 ? !0 : l, o = {
|
14317
14367
|
placement: fe(f.placement),
|
14318
|
-
variation:
|
14368
|
+
variation: we(f.placement),
|
14319
14369
|
popper: f.elements.popper,
|
14320
14370
|
popperRect: f.rects.popper,
|
14321
14371
|
gpuAcceleration: t,
|
14322
14372
|
isFixed: f.options.strategy === "fixed"
|
14323
14373
|
};
|
14324
|
-
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper,
|
14374
|
+
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, Wf(Object.assign({}, o, {
|
14325
14375
|
offsets: f.modifiersData.popperOffsets,
|
14326
14376
|
position: f.options.strategy,
|
14327
14377
|
adaptive: A,
|
14328
|
-
roundOffsets:
|
14329
|
-
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow,
|
14378
|
+
roundOffsets: u
|
14379
|
+
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, Wf(Object.assign({}, o, {
|
14330
14380
|
offsets: f.modifiersData.arrow,
|
14331
14381
|
position: "absolute",
|
14332
14382
|
adaptive: !1,
|
14333
|
-
roundOffsets:
|
14383
|
+
roundOffsets: u
|
14334
14384
|
})))), f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
14335
14385
|
"data-popper-placement": f.placement
|
14336
14386
|
});
|
@@ -14345,13 +14395,13 @@ var Ci = {
|
|
14345
14395
|
passive: !0
|
14346
14396
|
};
|
14347
14397
|
function Ui(e) {
|
14348
|
-
var f = e.state, n = e.instance, a = e.options, t = a.scroll, s = t === void 0 ? !0 : t, A = a.resize,
|
14349
|
-
return s &&
|
14350
|
-
|
14351
|
-
}),
|
14352
|
-
s &&
|
14353
|
-
|
14354
|
-
}),
|
14398
|
+
var f = e.state, n = e.instance, a = e.options, t = a.scroll, s = t === void 0 ? !0 : t, A = a.resize, l = A === void 0 ? !0 : A, u = ee(f.elements.popper), o = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
14399
|
+
return s && o.forEach(function(c) {
|
14400
|
+
c.addEventListener("scroll", n.update, Je);
|
14401
|
+
}), l && u.addEventListener("resize", n.update, Je), function() {
|
14402
|
+
s && o.forEach(function(c) {
|
14403
|
+
c.removeEventListener("scroll", n.update, Je);
|
14404
|
+
}), l && u.removeEventListener("resize", n.update, Je);
|
14355
14405
|
};
|
14356
14406
|
}
|
14357
14407
|
var Li = {
|
@@ -14362,7 +14412,7 @@ var Li = {
|
|
14362
14412
|
},
|
14363
14413
|
effect: Ui,
|
14364
14414
|
data: {}
|
14365
|
-
},
|
14415
|
+
}, Bi = {
|
14366
14416
|
left: "right",
|
14367
14417
|
right: "left",
|
14368
14418
|
bottom: "top",
|
@@ -14370,60 +14420,60 @@ var Li = {
|
|
14370
14420
|
};
|
14371
14421
|
function Ke(e) {
|
14372
14422
|
return e.replace(/left|right|bottom|top/g, function(f) {
|
14373
|
-
return
|
14423
|
+
return Bi[f];
|
14374
14424
|
});
|
14375
14425
|
}
|
14376
|
-
var
|
14426
|
+
var Qi = {
|
14377
14427
|
start: "end",
|
14378
14428
|
end: "start"
|
14379
14429
|
};
|
14380
|
-
function
|
14430
|
+
function Jf(e) {
|
14381
14431
|
return e.replace(/start|end/g, function(f) {
|
14382
|
-
return
|
14432
|
+
return Qi[f];
|
14383
14433
|
});
|
14384
14434
|
}
|
14385
|
-
function
|
14435
|
+
function wf(e) {
|
14386
14436
|
var f = ee(e), n = f.pageXOffset, a = f.pageYOffset;
|
14387
14437
|
return {
|
14388
14438
|
scrollLeft: n,
|
14389
14439
|
scrollTop: a
|
14390
14440
|
};
|
14391
14441
|
}
|
14392
|
-
function
|
14393
|
-
return
|
14442
|
+
function kf(e) {
|
14443
|
+
return Ie(oe(e)).left + wf(e).scrollLeft;
|
14394
14444
|
}
|
14395
14445
|
function Yi(e) {
|
14396
|
-
var f = ee(e), n =
|
14397
|
-
return a && (t = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (A = a.offsetLeft,
|
14446
|
+
var f = ee(e), n = oe(e), a = f.visualViewport, t = n.clientWidth, s = n.clientHeight, A = 0, l = 0;
|
14447
|
+
return a && (t = a.width, s = a.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (A = a.offsetLeft, l = a.offsetTop)), {
|
14398
14448
|
width: t,
|
14399
14449
|
height: s,
|
14400
|
-
x: A +
|
14401
|
-
y:
|
14450
|
+
x: A + kf(e),
|
14451
|
+
y: l
|
14402
14452
|
};
|
14403
14453
|
}
|
14404
14454
|
function Ri(e) {
|
14405
|
-
var f, n =
|
14406
|
-
return ae(t || n).direction === "rtl" && (
|
14455
|
+
var f, n = oe(e), a = wf(e), t = (f = e.ownerDocument) == null ? void 0 : f.body, s = de(n.scrollWidth, n.clientWidth, t ? t.scrollWidth : 0, t ? t.clientWidth : 0), A = de(n.scrollHeight, n.clientHeight, t ? t.scrollHeight : 0, t ? t.clientHeight : 0), l = -a.scrollLeft + kf(e), u = -a.scrollTop;
|
14456
|
+
return ae(t || n).direction === "rtl" && (l += de(n.clientWidth, t ? t.clientWidth : 0) - s), {
|
14407
14457
|
width: s,
|
14408
14458
|
height: A,
|
14409
|
-
x:
|
14410
|
-
y:
|
14459
|
+
x: l,
|
14460
|
+
y: u
|
14411
14461
|
};
|
14412
14462
|
}
|
14413
|
-
function
|
14463
|
+
function Nf(e) {
|
14414
14464
|
var f = ae(e), n = f.overflow, a = f.overflowX, t = f.overflowY;
|
14415
14465
|
return /auto|scroll|overlay|hidden/.test(n + t + a);
|
14416
14466
|
}
|
14417
|
-
function
|
14418
|
-
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : P(e) &&
|
14467
|
+
function pn(e) {
|
14468
|
+
return ["html", "body", "#document"].indexOf(ne(e)) >= 0 ? e.ownerDocument.body : P(e) && Nf(e) ? e : pn(nf(e));
|
14419
14469
|
}
|
14420
14470
|
function Se(e, f) {
|
14421
14471
|
var n;
|
14422
14472
|
f === void 0 && (f = []);
|
14423
|
-
var a =
|
14424
|
-
return t ?
|
14473
|
+
var a = pn(e), t = a === ((n = e.ownerDocument) == null ? void 0 : n.body), s = ee(a), A = t ? [s].concat(s.visualViewport || [], Nf(a) ? a : []) : a, l = f.concat(A);
|
14474
|
+
return t ? l : l.concat(Se(nf(A)));
|
14425
14475
|
}
|
14426
|
-
function
|
14476
|
+
function mf(e) {
|
14427
14477
|
return Object.assign({}, e, {
|
14428
14478
|
left: e.x,
|
14429
14479
|
top: e.y,
|
@@ -14432,103 +14482,103 @@ function df(e) {
|
|
14432
14482
|
});
|
14433
14483
|
}
|
14434
14484
|
function qi(e) {
|
14435
|
-
var f =
|
14485
|
+
var f = Ie(e);
|
14436
14486
|
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;
|
14437
14487
|
}
|
14438
|
-
function
|
14439
|
-
return f ===
|
14488
|
+
function Hf(e, f) {
|
14489
|
+
return f === ln ? mf(Yi(e)) : ve(f) ? qi(f) : mf(Ri(oe(e)));
|
14440
14490
|
}
|
14441
14491
|
function Fi(e) {
|
14442
|
-
var f = Se(
|
14443
|
-
return
|
14444
|
-
return
|
14492
|
+
var f = Se(nf(e)), n = ["absolute", "fixed"].indexOf(ae(e).position) >= 0, a = n && P(e) ? Be(e) : e;
|
14493
|
+
return ve(a) ? f.filter(function(t) {
|
14494
|
+
return ve(t) && cn(t, a) && ne(t) !== "body" && (n ? ae(t).position !== "static" : !0);
|
14445
14495
|
}) : [];
|
14446
14496
|
}
|
14447
14497
|
function $i(e, f, n) {
|
14448
|
-
var a = f === "clippingParents" ? Fi(e) : [].concat(f), t = [].concat(a, [n]), s = t[0], A = t.reduce(function(
|
14449
|
-
var
|
14450
|
-
return
|
14451
|
-
},
|
14498
|
+
var a = f === "clippingParents" ? Fi(e) : [].concat(f), t = [].concat(a, [n]), s = t[0], A = t.reduce(function(l, u) {
|
14499
|
+
var o = Hf(e, u);
|
14500
|
+
return l.top = de(o.top, l.top), l.right = Ge(o.right, l.right), l.bottom = Ge(o.bottom, l.bottom), l.left = de(o.left, l.left), l;
|
14501
|
+
}, Hf(e, s));
|
14452
14502
|
return A.width = A.right - A.left, A.height = A.bottom - A.top, A.x = A.left, A.y = A.top, A;
|
14453
14503
|
}
|
14454
|
-
function
|
14455
|
-
var f = e.reference, n = e.element, a = e.placement, t = a ? fe(a) : null, s = a ?
|
14504
|
+
function Mn(e) {
|
14505
|
+
var f = e.reference, n = e.element, a = e.placement, t = a ? fe(a) : null, s = a ? we(a) : null, A = f.x + f.width / 2 - n.width / 2, l = f.y + f.height / 2 - n.height / 2, u;
|
14456
14506
|
switch (t) {
|
14457
14507
|
case $:
|
14458
|
-
|
14508
|
+
u = {
|
14459
14509
|
x: A,
|
14460
14510
|
y: f.y - n.height
|
14461
14511
|
};
|
14462
14512
|
break;
|
14463
14513
|
case Z:
|
14464
|
-
|
14514
|
+
u = {
|
14465
14515
|
x: A,
|
14466
14516
|
y: f.y + f.height
|
14467
14517
|
};
|
14468
14518
|
break;
|
14469
14519
|
case G:
|
14470
|
-
|
14520
|
+
u = {
|
14471
14521
|
x: f.x + f.width,
|
14472
|
-
y:
|
14522
|
+
y: l
|
14473
14523
|
};
|
14474
14524
|
break;
|
14475
14525
|
case W:
|
14476
|
-
|
14526
|
+
u = {
|
14477
14527
|
x: f.x - n.width,
|
14478
|
-
y:
|
14528
|
+
y: l
|
14479
14529
|
};
|
14480
14530
|
break;
|
14481
14531
|
default:
|
14482
|
-
|
14532
|
+
u = {
|
14483
14533
|
x: f.x,
|
14484
14534
|
y: f.y
|
14485
14535
|
};
|
14486
14536
|
}
|
14487
|
-
var
|
14488
|
-
if (
|
14489
|
-
var
|
14537
|
+
var o = t ? If(t) : null;
|
14538
|
+
if (o != null) {
|
14539
|
+
var c = o === "y" ? "height" : "width";
|
14490
14540
|
switch (s) {
|
14491
|
-
case
|
14492
|
-
|
14541
|
+
case be:
|
14542
|
+
u[o] = u[o] - (f[c] / 2 - n[c] / 2);
|
14493
14543
|
break;
|
14494
14544
|
case Oe:
|
14495
|
-
|
14545
|
+
u[o] = u[o] + (f[c] / 2 - n[c] / 2);
|
14496
14546
|
break;
|
14497
14547
|
}
|
14498
14548
|
}
|
14499
|
-
return
|
14549
|
+
return u;
|
14500
14550
|
}
|
14501
14551
|
function Ce(e, f) {
|
14502
14552
|
f === void 0 && (f = {});
|
14503
|
-
var n = f, a = n.placement, t = a === void 0 ? e.placement : a, s = n.boundary, A = s === void 0 ? ri : s,
|
14504
|
-
reference:
|
14553
|
+
var n = f, a = n.placement, t = a === void 0 ? e.placement : a, s = n.boundary, A = s === void 0 ? ri : s, l = n.rootBoundary, u = l === void 0 ? ln : l, o = n.elementContext, c = o === void 0 ? Te : o, g = n.altBoundary, m = g === void 0 ? !1 : g, p = n.padding, y = p === void 0 ? 0 : p, v = gn(typeof y != "number" ? y : mn(y, Le)), M = c === Te ? ci : Te, I = e.rects.popper, w = e.elements[m ? M : c], E = $i(ve(w) ? w : w.contextElement || oe(e.elements.popper), A, u), N = Ie(e.elements.reference), S = Mn({
|
14554
|
+
reference: N,
|
14505
14555
|
element: I,
|
14506
14556
|
strategy: "absolute",
|
14507
14557
|
placement: t
|
14508
|
-
}),
|
14558
|
+
}), k = mf(Object.assign({}, I, S)), D = c === Te ? k : N, z = {
|
14509
14559
|
top: E.top - D.top + v.top,
|
14510
14560
|
bottom: D.bottom - E.bottom + v.bottom,
|
14511
14561
|
left: E.left - D.left + v.left,
|
14512
14562
|
right: D.right - E.right + v.right
|
14513
14563
|
}, T = e.modifiersData.offset;
|
14514
|
-
if (
|
14564
|
+
if (c === Te && T) {
|
14515
14565
|
var O = T[t];
|
14516
14566
|
Object.keys(z).forEach(function(U) {
|
14517
|
-
var
|
14518
|
-
z[U] += O[
|
14567
|
+
var R = [G, Z].indexOf(U) >= 0 ? 1 : -1, le = [$, Z].indexOf(U) >= 0 ? "y" : "x";
|
14568
|
+
z[U] += O[le] * R;
|
14519
14569
|
});
|
14520
14570
|
}
|
14521
14571
|
return z;
|
14522
14572
|
}
|
14523
14573
|
function Wi(e, f) {
|
14524
14574
|
f === void 0 && (f = {});
|
14525
|
-
var n = f, a = n.placement, t = n.boundary, s = n.rootBoundary, A = n.padding,
|
14526
|
-
return
|
14527
|
-
}) : Le,
|
14528
|
-
return
|
14575
|
+
var n = f, a = n.placement, t = n.boundary, s = n.rootBoundary, A = n.padding, l = n.flipVariations, u = n.allowedAutoPlacements, o = u === void 0 ? un : u, c = we(a), g = c ? l ? Ff : Ff.filter(function(y) {
|
14576
|
+
return we(y) === c;
|
14577
|
+
}) : Le, m = g.filter(function(y) {
|
14578
|
+
return o.indexOf(y) >= 0;
|
14529
14579
|
});
|
14530
|
-
|
14531
|
-
var
|
14580
|
+
m.length === 0 && (m = g);
|
14581
|
+
var p = m.reduce(function(y, v) {
|
14532
14582
|
return y[v] = Ce(e, {
|
14533
14583
|
placement: v,
|
14534
14584
|
boundary: t,
|
@@ -14536,40 +14586,40 @@ function Wi(e, f) {
|
|
14536
14586
|
padding: A
|
14537
14587
|
})[fe(v)], y;
|
14538
14588
|
}, {});
|
14539
|
-
return Object.keys(
|
14540
|
-
return
|
14589
|
+
return Object.keys(p).sort(function(y, v) {
|
14590
|
+
return p[y] - p[v];
|
14541
14591
|
});
|
14542
14592
|
}
|
14543
14593
|
function Ji(e) {
|
14544
|
-
if (fe(e) ===
|
14594
|
+
if (fe(e) === vf)
|
14545
14595
|
return [];
|
14546
14596
|
var f = Ke(e);
|
14547
|
-
return [
|
14597
|
+
return [Jf(e), f, Jf(f)];
|
14548
14598
|
}
|
14549
14599
|
function Hi(e) {
|
14550
14600
|
var f = e.state, n = e.options, a = e.name;
|
14551
14601
|
if (!f.modifiersData[a]._skip) {
|
14552
|
-
for (var t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis,
|
14553
|
-
return
|
14602
|
+
for (var t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, l = A === void 0 ? !0 : A, u = n.fallbackPlacements, o = n.padding, c = n.boundary, g = n.rootBoundary, m = n.altBoundary, p = n.flipVariations, y = p === void 0 ? !0 : p, v = n.allowedAutoPlacements, M = f.options.placement, I = fe(M), w = I === M, E = u || (w || !y ? [Ke(M)] : Ji(M)), N = [M].concat(E).reduce(function(pe, Ae) {
|
14603
|
+
return pe.concat(fe(Ae) === vf ? Wi(f, {
|
14554
14604
|
placement: Ae,
|
14555
|
-
boundary:
|
14556
|
-
rootBoundary:
|
14557
|
-
padding:
|
14605
|
+
boundary: c,
|
14606
|
+
rootBoundary: g,
|
14607
|
+
padding: o,
|
14558
14608
|
flipVariations: y,
|
14559
14609
|
allowedAutoPlacements: v
|
14560
14610
|
}) : Ae);
|
14561
|
-
}, []), S = f.rects.reference,
|
14562
|
-
var U =
|
14611
|
+
}, []), S = f.rects.reference, k = f.rects.popper, D = /* @__PURE__ */ new Map(), z = !0, T = N[0], O = 0; O < N.length; O++) {
|
14612
|
+
var U = N[O], R = fe(U), le = we(U) === be, De = [$, Z].indexOf(R) >= 0, je = De ? "width" : "height", J = Ce(f, {
|
14563
14613
|
placement: U,
|
14564
|
-
boundary:
|
14565
|
-
rootBoundary:
|
14566
|
-
altBoundary:
|
14567
|
-
padding:
|
14568
|
-
}), X = De ?
|
14569
|
-
S[je] >
|
14614
|
+
boundary: c,
|
14615
|
+
rootBoundary: g,
|
14616
|
+
altBoundary: m,
|
14617
|
+
padding: o
|
14618
|
+
}), X = De ? le ? G : W : le ? Z : $;
|
14619
|
+
S[je] > k[je] && (X = Ke(X));
|
14570
14620
|
var Ye = Ke(X), ue = [];
|
14571
|
-
if (s && ue.push(J[
|
14572
|
-
return
|
14621
|
+
if (s && ue.push(J[R] <= 0), l && ue.push(J[X] <= 0, J[Ye] <= 0), ue.every(function(pe) {
|
14622
|
+
return pe;
|
14573
14623
|
})) {
|
14574
14624
|
T = U, z = !1;
|
14575
14625
|
break;
|
@@ -14577,18 +14627,18 @@ function Hi(e) {
|
|
14577
14627
|
D.set(U, ue);
|
14578
14628
|
}
|
14579
14629
|
if (z)
|
14580
|
-
for (var Re = y ? 3 : 1,
|
14581
|
-
var Ee =
|
14582
|
-
var
|
14583
|
-
if (
|
14584
|
-
return
|
14585
|
-
return
|
14630
|
+
for (var Re = y ? 3 : 1, af = function(Ae) {
|
14631
|
+
var Ee = N.find(function(Fe) {
|
14632
|
+
var re = D.get(Fe);
|
14633
|
+
if (re)
|
14634
|
+
return re.slice(0, Ae).every(function(tf) {
|
14635
|
+
return tf;
|
14586
14636
|
});
|
14587
14637
|
});
|
14588
14638
|
if (Ee)
|
14589
14639
|
return T = Ee, "break";
|
14590
14640
|
}, Ve = Re; Ve > 0; Ve--) {
|
14591
|
-
var qe =
|
14641
|
+
var qe = af(Ve);
|
14592
14642
|
if (qe === "break")
|
14593
14643
|
break;
|
14594
14644
|
}
|
@@ -14605,7 +14655,7 @@ var Ki = {
|
|
14605
14655
|
_skip: !1
|
14606
14656
|
}
|
14607
14657
|
};
|
14608
|
-
function
|
14658
|
+
function Kf(e, f, n) {
|
14609
14659
|
return n === void 0 && (n = {
|
14610
14660
|
x: 0,
|
14611
14661
|
y: 0
|
@@ -14616,7 +14666,7 @@ function Hf(e, f, n) {
|
|
14616
14666
|
left: e.left - f.width - n.x
|
14617
14667
|
};
|
14618
14668
|
}
|
14619
|
-
function
|
14669
|
+
function Pf(e) {
|
14620
14670
|
return [$, G, Z, W].some(function(f) {
|
14621
14671
|
return e[f] >= 0;
|
14622
14672
|
});
|
@@ -14624,17 +14674,17 @@ function Kf(e) {
|
|
14624
14674
|
function Pi(e) {
|
14625
14675
|
var f = e.state, n = e.name, a = f.rects.reference, t = f.rects.popper, s = f.modifiersData.preventOverflow, A = Ce(f, {
|
14626
14676
|
elementContext: "reference"
|
14627
|
-
}),
|
14677
|
+
}), l = Ce(f, {
|
14628
14678
|
altBoundary: !0
|
14629
|
-
}),
|
14679
|
+
}), u = Kf(A, a), o = Kf(l, t, s), c = Pf(u), g = Pf(o);
|
14630
14680
|
f.modifiersData[n] = {
|
14631
|
-
referenceClippingOffsets:
|
14632
|
-
popperEscapeOffsets:
|
14633
|
-
isReferenceHidden:
|
14634
|
-
hasPopperEscaped:
|
14681
|
+
referenceClippingOffsets: u,
|
14682
|
+
popperEscapeOffsets: o,
|
14683
|
+
isReferenceHidden: c,
|
14684
|
+
hasPopperEscaped: g
|
14635
14685
|
}, f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
14636
|
-
"data-popper-reference-hidden":
|
14637
|
-
"data-popper-escaped":
|
14686
|
+
"data-popper-reference-hidden": c,
|
14687
|
+
"data-popper-escaped": g
|
14638
14688
|
});
|
14639
14689
|
}
|
14640
14690
|
var Zi = {
|
@@ -14647,20 +14697,20 @@ var Zi = {
|
|
14647
14697
|
function Gi(e, f, n) {
|
14648
14698
|
var a = fe(e), t = [W, $].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
|
14649
14699
|
placement: e
|
14650
|
-
})) : n, A = s[0],
|
14651
|
-
return A = A || 0,
|
14652
|
-
x:
|
14700
|
+
})) : n, A = s[0], l = s[1];
|
14701
|
+
return A = A || 0, l = (l || 0) * t, [W, G].indexOf(a) >= 0 ? {
|
14702
|
+
x: l,
|
14653
14703
|
y: A
|
14654
14704
|
} : {
|
14655
14705
|
x: A,
|
14656
|
-
y:
|
14706
|
+
y: l
|
14657
14707
|
};
|
14658
14708
|
}
|
14659
14709
|
function Xi(e) {
|
14660
|
-
var f = e.state, n = e.options, a = e.name, t = n.offset, s = t === void 0 ? [0, 0] : t, A = un.reduce(function(
|
14661
|
-
return g
|
14662
|
-
}, {}),
|
14663
|
-
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x +=
|
14710
|
+
var f = e.state, n = e.options, a = e.name, t = n.offset, s = t === void 0 ? [0, 0] : t, A = un.reduce(function(c, g) {
|
14711
|
+
return c[g] = Gi(g, f.rects, s), c;
|
14712
|
+
}, {}), l = A[f.placement], u = l.x, o = l.y;
|
14713
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += u, f.modifiersData.popperOffsets.y += o), f.modifiersData[a] = A;
|
14664
14714
|
}
|
14665
14715
|
var eo = {
|
14666
14716
|
name: "offset",
|
@@ -14671,7 +14721,7 @@ var eo = {
|
|
14671
14721
|
};
|
14672
14722
|
function fo(e) {
|
14673
14723
|
var f = e.state, n = e.name;
|
14674
|
-
f.modifiersData[n] =
|
14724
|
+
f.modifiersData[n] = Mn({
|
14675
14725
|
reference: f.rects.reference,
|
14676
14726
|
element: f.rects.popper,
|
14677
14727
|
strategy: "absolute",
|
@@ -14689,12 +14739,12 @@ function ao(e) {
|
|
14689
14739
|
return e === "x" ? "y" : "x";
|
14690
14740
|
}
|
14691
14741
|
function to(e) {
|
14692
|
-
var f = e.state, n = e.options, a = e.name, t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis,
|
14693
|
-
boundary:
|
14694
|
-
rootBoundary:
|
14695
|
-
padding:
|
14696
|
-
altBoundary:
|
14697
|
-
}), I = fe(f.placement), w =
|
14742
|
+
var f = e.state, n = e.options, a = e.name, t = n.mainAxis, s = t === void 0 ? !0 : t, A = n.altAxis, l = A === void 0 ? !1 : A, u = n.boundary, o = n.rootBoundary, c = n.altBoundary, g = n.padding, m = n.tether, p = m === void 0 ? !0 : m, y = n.tetherOffset, v = y === void 0 ? 0 : y, M = Ce(f, {
|
14743
|
+
boundary: u,
|
14744
|
+
rootBoundary: o,
|
14745
|
+
padding: g,
|
14746
|
+
altBoundary: c
|
14747
|
+
}), I = fe(f.placement), w = we(f.placement), E = !w, N = If(I), S = ao(N), k = f.modifiersData.popperOffsets, D = f.rects.reference, z = f.rects.popper, T = typeof v == "function" ? v(Object.assign({}, f.rects, {
|
14698
14748
|
placement: f.placement
|
14699
14749
|
})) : v, O = typeof T == "number" ? {
|
14700
14750
|
mainAxis: T,
|
@@ -14702,23 +14752,23 @@ function to(e) {
|
|
14702
14752
|
} : Object.assign({
|
14703
14753
|
mainAxis: 0,
|
14704
14754
|
altAxis: 0
|
14705
|
-
}, T), U = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null,
|
14755
|
+
}, T), U = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, R = {
|
14706
14756
|
x: 0,
|
14707
14757
|
y: 0
|
14708
14758
|
};
|
14709
|
-
if (
|
14759
|
+
if (k) {
|
14710
14760
|
if (s) {
|
14711
|
-
var
|
14761
|
+
var le, De = N === "y" ? $ : W, je = N === "y" ? Z : G, J = N === "y" ? "height" : "width", X = k[N], Ye = X + M[De], ue = X - M[je], Re = p ? -z[J] / 2 : 0, af = w === be ? D[J] : z[J], Ve = w === be ? -z[J] : -D[J], qe = f.elements.arrow, pe = p && qe ? _f(qe) : {
|
14712
14762
|
width: 0,
|
14713
14763
|
height: 0
|
14714
|
-
}, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding :
|
14715
|
-
N
|
14764
|
+
}, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : dn(), Ee = Ae[De], Fe = Ae[je], re = xe(0, D[J], pe[J]), tf = E ? D[J] / 2 - Re - re - Ee - O.mainAxis : af - re - Ee - O.mainAxis, vn = E ? -D[J] / 2 + Re + re + Fe + O.mainAxis : Ve + re + Fe + O.mainAxis, Af = f.elements.arrow && Be(f.elements.arrow), _n = Af ? N === "y" ? Af.clientTop || 0 : Af.clientLeft || 0 : 0, jf = (le = U == null ? void 0 : U[N]) != null ? le : 0, In = X + tf - jf - _n, wn = X + vn - jf, Vf = xe(p ? Ge(Ye, In) : Ye, X, p ? de(ue, wn) : ue);
|
14765
|
+
k[N] = Vf, R[N] = Vf - X;
|
14716
14766
|
}
|
14717
|
-
if (
|
14718
|
-
var
|
14719
|
-
|
14767
|
+
if (l) {
|
14768
|
+
var Ef, kn = N === "x" ? $ : W, Nn = N === "x" ? Z : G, ce = k[S], $e = S === "y" ? "height" : "width", Tf = ce + M[kn], xf = ce - M[Nn], sf = [$, W].indexOf(I) !== -1, Sf = (Ef = U == null ? void 0 : U[S]) != null ? Ef : 0, zf = sf ? Tf : ce - D[$e] - z[$e] - Sf + O.altAxis, Of = sf ? ce + D[$e] + z[$e] - Sf - O.altAxis : xf, Cf = p && sf ? ji(zf, ce, Of) : xe(p ? zf : Tf, ce, p ? Of : xf);
|
14769
|
+
k[S] = Cf, R[S] = Cf - ce;
|
14720
14770
|
}
|
14721
|
-
f.modifiersData[a] =
|
14771
|
+
f.modifiersData[a] = R;
|
14722
14772
|
}
|
14723
14773
|
}
|
14724
14774
|
var Ao = {
|
@@ -14735,29 +14785,29 @@ function so(e) {
|
|
14735
14785
|
};
|
14736
14786
|
}
|
14737
14787
|
function io(e) {
|
14738
|
-
return e === ee(e) || !P(e) ?
|
14788
|
+
return e === ee(e) || !P(e) ? wf(e) : so(e);
|
14739
14789
|
}
|
14740
14790
|
function oo(e) {
|
14741
|
-
var f = e.getBoundingClientRect(), n =
|
14791
|
+
var f = e.getBoundingClientRect(), n = _e(f.width) / e.offsetWidth || 1, a = _e(f.height) / e.offsetHeight || 1;
|
14742
14792
|
return n !== 1 || a !== 1;
|
14743
14793
|
}
|
14744
|
-
function
|
14794
|
+
function lo(e, f, n) {
|
14745
14795
|
n === void 0 && (n = !1);
|
14746
|
-
var a = P(f), t = P(f) && oo(f), s =
|
14796
|
+
var a = P(f), t = P(f) && oo(f), s = oe(f), A = Ie(e, t), l = {
|
14747
14797
|
scrollLeft: 0,
|
14748
14798
|
scrollTop: 0
|
14749
|
-
},
|
14799
|
+
}, u = {
|
14750
14800
|
x: 0,
|
14751
14801
|
y: 0
|
14752
14802
|
};
|
14753
|
-
return (a || !a && !n) && ((ne(f) !== "body" ||
|
14754
|
-
x: A.left +
|
14755
|
-
y: A.top +
|
14803
|
+
return (a || !a && !n) && ((ne(f) !== "body" || Nf(s)) && (l = io(f)), P(f) ? (u = Ie(f, !0), u.x += f.clientLeft, u.y += f.clientTop) : s && (u.x = kf(s))), {
|
14804
|
+
x: A.left + l.scrollLeft - u.x,
|
14805
|
+
y: A.top + l.scrollTop - u.y,
|
14756
14806
|
width: A.width,
|
14757
14807
|
height: A.height
|
14758
14808
|
};
|
14759
14809
|
}
|
14760
|
-
function
|
14810
|
+
function uo(e) {
|
14761
14811
|
var f = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Set(), a = [];
|
14762
14812
|
e.forEach(function(s) {
|
14763
14813
|
f.set(s.name, s);
|
@@ -14765,10 +14815,10 @@ function lo(e) {
|
|
14765
14815
|
function t(s) {
|
14766
14816
|
n.add(s.name);
|
14767
14817
|
var A = [].concat(s.requires || [], s.requiresIfExists || []);
|
14768
|
-
A.forEach(function(
|
14769
|
-
if (!n.has(
|
14770
|
-
var
|
14771
|
-
|
14818
|
+
A.forEach(function(l) {
|
14819
|
+
if (!n.has(l)) {
|
14820
|
+
var u = f.get(l);
|
14821
|
+
u && t(u);
|
14772
14822
|
}
|
14773
14823
|
}), a.push(s);
|
14774
14824
|
}
|
@@ -14777,7 +14827,7 @@ function lo(e) {
|
|
14777
14827
|
}), a;
|
14778
14828
|
}
|
14779
14829
|
function ro(e) {
|
14780
|
-
var f =
|
14830
|
+
var f = uo(e);
|
14781
14831
|
return _i.reduce(function(n, a) {
|
14782
14832
|
return n.concat(f.filter(function(t) {
|
14783
14833
|
return t.phase === a;
|
@@ -14806,12 +14856,12 @@ function go(e) {
|
|
14806
14856
|
return f[n];
|
14807
14857
|
});
|
14808
14858
|
}
|
14809
|
-
var
|
14859
|
+
var Zf = {
|
14810
14860
|
placement: "bottom",
|
14811
14861
|
modifiers: [],
|
14812
14862
|
strategy: "absolute"
|
14813
14863
|
};
|
14814
|
-
function
|
14864
|
+
function Gf() {
|
14815
14865
|
for (var e = arguments.length, f = new Array(e), n = 0; n < e; n++)
|
14816
14866
|
f[n] = arguments[n];
|
14817
14867
|
return !f.some(function(a) {
|
@@ -14820,99 +14870,99 @@ function Zf() {
|
|
14820
14870
|
}
|
14821
14871
|
function mo(e) {
|
14822
14872
|
e === void 0 && (e = {});
|
14823
|
-
var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, t = f.defaultOptions, s = t === void 0 ?
|
14824
|
-
return function(
|
14825
|
-
|
14826
|
-
var
|
14873
|
+
var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, t = f.defaultOptions, s = t === void 0 ? Zf : t;
|
14874
|
+
return function(l, u, o) {
|
14875
|
+
o === void 0 && (o = s);
|
14876
|
+
var c = {
|
14827
14877
|
placement: "bottom",
|
14828
14878
|
orderedModifiers: [],
|
14829
|
-
options: Object.assign({},
|
14879
|
+
options: Object.assign({}, Zf, s),
|
14830
14880
|
modifiersData: {},
|
14831
14881
|
elements: {
|
14832
|
-
reference:
|
14833
|
-
popper:
|
14882
|
+
reference: l,
|
14883
|
+
popper: u
|
14834
14884
|
},
|
14835
14885
|
attributes: {},
|
14836
14886
|
styles: {}
|
14837
|
-
},
|
14838
|
-
state:
|
14887
|
+
}, g = [], m = !1, p = {
|
14888
|
+
state: c,
|
14839
14889
|
setOptions: function(I) {
|
14840
|
-
var w = typeof I == "function" ? I(
|
14841
|
-
v(),
|
14842
|
-
reference:
|
14843
|
-
popper: Se(
|
14890
|
+
var w = typeof I == "function" ? I(c.options) : I;
|
14891
|
+
v(), c.options = Object.assign({}, s, c.options, w), c.scrollParents = {
|
14892
|
+
reference: ve(l) ? Se(l) : l.contextElement ? Se(l.contextElement) : [],
|
14893
|
+
popper: Se(u)
|
14844
14894
|
};
|
14845
|
-
var E = ro(go([].concat(a,
|
14846
|
-
return
|
14847
|
-
return
|
14848
|
-
}), y(),
|
14895
|
+
var E = ro(go([].concat(a, c.options.modifiers)));
|
14896
|
+
return c.orderedModifiers = E.filter(function(N) {
|
14897
|
+
return N.enabled;
|
14898
|
+
}), y(), p.update();
|
14849
14899
|
},
|
14850
14900
|
forceUpdate: function() {
|
14851
|
-
if (!
|
14852
|
-
var I =
|
14853
|
-
if (
|
14854
|
-
|
14855
|
-
reference:
|
14856
|
-
popper:
|
14857
|
-
},
|
14858
|
-
return
|
14901
|
+
if (!m) {
|
14902
|
+
var I = c.elements, w = I.reference, E = I.popper;
|
14903
|
+
if (Gf(w, E)) {
|
14904
|
+
c.rects = {
|
14905
|
+
reference: lo(w, Be(E), c.options.strategy === "fixed"),
|
14906
|
+
popper: _f(E)
|
14907
|
+
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(O) {
|
14908
|
+
return c.modifiersData[O.name] = Object.assign({}, O.data);
|
14859
14909
|
});
|
14860
|
-
for (var
|
14861
|
-
if (
|
14862
|
-
|
14910
|
+
for (var N = 0; N < c.orderedModifiers.length; N++) {
|
14911
|
+
if (c.reset === !0) {
|
14912
|
+
c.reset = !1, N = -1;
|
14863
14913
|
continue;
|
14864
14914
|
}
|
14865
|
-
var S =
|
14866
|
-
typeof
|
14867
|
-
state:
|
14915
|
+
var S = c.orderedModifiers[N], k = S.fn, D = S.options, z = D === void 0 ? {} : D, T = S.name;
|
14916
|
+
typeof k == "function" && (c = k({
|
14917
|
+
state: c,
|
14868
14918
|
options: z,
|
14869
14919
|
name: T,
|
14870
|
-
instance:
|
14871
|
-
}) ||
|
14920
|
+
instance: p
|
14921
|
+
}) || c);
|
14872
14922
|
}
|
14873
14923
|
}
|
14874
14924
|
}
|
14875
14925
|
},
|
14876
14926
|
update: co(function() {
|
14877
14927
|
return new Promise(function(M) {
|
14878
|
-
|
14928
|
+
p.forceUpdate(), M(c);
|
14879
14929
|
});
|
14880
14930
|
}),
|
14881
14931
|
destroy: function() {
|
14882
|
-
v(),
|
14932
|
+
v(), m = !0;
|
14883
14933
|
}
|
14884
14934
|
};
|
14885
|
-
if (!
|
14886
|
-
return
|
14887
|
-
|
14888
|
-
!
|
14935
|
+
if (!Gf(l, u))
|
14936
|
+
return p;
|
14937
|
+
p.setOptions(o).then(function(M) {
|
14938
|
+
!m && o.onFirstUpdate && o.onFirstUpdate(M);
|
14889
14939
|
});
|
14890
14940
|
function y() {
|
14891
|
-
|
14892
|
-
var I = M.name, w = M.options, E = w === void 0 ? {} : w,
|
14893
|
-
if (typeof
|
14894
|
-
var S =
|
14895
|
-
state:
|
14941
|
+
c.orderedModifiers.forEach(function(M) {
|
14942
|
+
var I = M.name, w = M.options, E = w === void 0 ? {} : w, N = M.effect;
|
14943
|
+
if (typeof N == "function") {
|
14944
|
+
var S = N({
|
14945
|
+
state: c,
|
14896
14946
|
name: I,
|
14897
|
-
instance:
|
14947
|
+
instance: p,
|
14898
14948
|
options: E
|
14899
|
-
}),
|
14949
|
+
}), k = function() {
|
14900
14950
|
};
|
14901
|
-
|
14951
|
+
g.push(S || k);
|
14902
14952
|
}
|
14903
14953
|
});
|
14904
14954
|
}
|
14905
14955
|
function v() {
|
14906
|
-
|
14956
|
+
g.forEach(function(M) {
|
14907
14957
|
return M();
|
14908
|
-
}),
|
14958
|
+
}), g = [];
|
14909
14959
|
}
|
14910
|
-
return
|
14960
|
+
return p;
|
14911
14961
|
};
|
14912
14962
|
}
|
14913
|
-
var po = [Li, no, Ci,
|
14963
|
+
var po = [Li, no, Ci, ki, eo, Ki, Ao, xi, Zi], Mo = /* @__PURE__ */ mo({
|
14914
14964
|
defaultModifiers: po
|
14915
|
-
}),
|
14965
|
+
}), hn = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
|
14916
14966
|
function Pe(e) {
|
14917
14967
|
return e.split("-").map((f) => parseInt(f, 16)).map((f) => String.fromCodePoint(f)).join("");
|
14918
14968
|
}
|
@@ -14922,41 +14972,41 @@ function ho(e, f, n, a = []) {
|
|
14922
14972
|
if (a.includes(s))
|
14923
14973
|
return;
|
14924
14974
|
const A = [];
|
14925
|
-
e[s].forEach((
|
14926
|
-
var
|
14927
|
-
if (
|
14928
|
-
let
|
14929
|
-
if (n !== Ze && Array.isArray(
|
14930
|
-
const
|
14931
|
-
(
|
14975
|
+
e[s].forEach((l) => {
|
14976
|
+
var u;
|
14977
|
+
if (l[ff][0].includes(f.toLocaleLowerCase())) {
|
14978
|
+
let o = l[An];
|
14979
|
+
if (n !== Ze && Array.isArray(l[We])) {
|
14980
|
+
const c = ((u = l[We]) == null ? void 0 : u.findIndex(
|
14981
|
+
(g) => g.includes(n)
|
14932
14982
|
)) || -1;
|
14933
|
-
|
14983
|
+
c !== -1 && l[We] && (o = l[We][c]);
|
14934
14984
|
}
|
14935
14985
|
return A.push({
|
14936
|
-
...
|
14937
|
-
[ze]:
|
14986
|
+
...l,
|
14987
|
+
[ze]: o
|
14938
14988
|
});
|
14939
14989
|
}
|
14940
14990
|
}), A.length && (t[s] = A);
|
14941
14991
|
}), t;
|
14942
14992
|
}
|
14943
|
-
function
|
14993
|
+
function yn() {
|
14944
14994
|
var e;
|
14945
14995
|
return (((e = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : e.platform) || (navigator == null ? void 0 : navigator.platform) || "unknown").toUpperCase().indexOf("MAC") !== -1;
|
14946
14996
|
}
|
14947
|
-
function
|
14997
|
+
function bn(e) {
|
14948
14998
|
return e.replace(
|
14949
14999
|
/^_*(.)|_+(.)/g,
|
14950
15000
|
(f, n, a) => n ? n.toUpperCase() : " " + a.toUpperCase()
|
14951
15001
|
);
|
14952
15002
|
}
|
14953
|
-
var
|
15003
|
+
var Qe = (e, f) => {
|
14954
15004
|
const n = e.__vccOpts || e;
|
14955
15005
|
for (const [a, t] of f)
|
14956
15006
|
n[a] = t;
|
14957
15007
|
return n;
|
14958
15008
|
};
|
14959
|
-
const yo =
|
15009
|
+
const yo = ge({
|
14960
15010
|
name: "Body",
|
14961
15011
|
emits: {
|
14962
15012
|
select: (e) => !0
|
@@ -14967,22 +15017,22 @@ const yo = de({
|
|
14967
15017
|
e.search,
|
14968
15018
|
e.skinTone,
|
14969
15019
|
e.options.disabledGroups
|
14970
|
-
)), s = xn(), A = x(() => !e.options.hideGroupNames),
|
15020
|
+
)), s = xn(), A = x(() => !e.options.hideGroupNames), l = x(() => !e.options.disableStickyGroupNames), u = fn(e.options.groupNames), o = e.orderedGroupKeys;
|
14971
15021
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((y) => {
|
14972
|
-
e.options.groupNames[y] ?
|
15022
|
+
e.options.groupNames[y] ? u[y] = e.options.groupNames[y] : u[y] = bn(y);
|
14973
15023
|
});
|
14974
|
-
const
|
14975
|
-
function
|
15024
|
+
const c = yn() ? "is-mac" : "";
|
15025
|
+
function g(y) {
|
14976
15026
|
f(y);
|
14977
15027
|
}
|
14978
|
-
function
|
15028
|
+
function m(y) {
|
14979
15029
|
n(y), s == null || s.emit("select", {
|
14980
15030
|
...y,
|
14981
15031
|
t: e.skinTone,
|
14982
15032
|
i: Pe(y.r)
|
14983
15033
|
});
|
14984
15034
|
}
|
14985
|
-
function
|
15035
|
+
function p(y, v) {
|
14986
15036
|
var M;
|
14987
15037
|
const I = (M = y == null ? void 0 : y.target) == null ? void 0 : M.closest("button");
|
14988
15038
|
I && (I.innerHTML = `<span>${Pe(v)}</span>`);
|
@@ -14997,93 +15047,93 @@ const yo = de({
|
|
14997
15047
|
), {
|
14998
15048
|
emojis: t,
|
14999
15049
|
bodyInner: a,
|
15000
|
-
EMOJI_REMOTE_SRC:
|
15001
|
-
GROUP_NAMES:
|
15002
|
-
handleClick:
|
15003
|
-
handleError:
|
15004
|
-
handleMouseEnter:
|
15050
|
+
EMOJI_REMOTE_SRC: an,
|
15051
|
+
GROUP_NAMES: tn,
|
15052
|
+
handleClick: m,
|
15053
|
+
handleError: p,
|
15054
|
+
handleMouseEnter: g,
|
15005
15055
|
native: e.options.native,
|
15006
15056
|
unicodeToEmoji: Pe,
|
15007
15057
|
EMOJI_RESULT_KEY: ze,
|
15008
|
-
EMOJI_NAME_KEY:
|
15058
|
+
EMOJI_NAME_KEY: ff,
|
15009
15059
|
hasGroupNames: A,
|
15010
|
-
isSticky:
|
15011
|
-
platform:
|
15012
|
-
groupNames:
|
15013
|
-
orderedKeys:
|
15060
|
+
isSticky: l,
|
15061
|
+
platform: c,
|
15062
|
+
groupNames: u,
|
15063
|
+
orderedKeys: o
|
15014
15064
|
};
|
15015
15065
|
}
|
15016
|
-
}), bo = { class: "v3-body" }, vo = ["id"], _o = { class: "v3-emojis" }, Io = ["onMouseenter", "onClick"], wo = { key: 0 },
|
15066
|
+
}), bo = { class: "v3-body" }, vo = ["id"], _o = { class: "v3-emojis" }, Io = ["onMouseenter", "onClick"], wo = { key: 0 }, ko = ["src", "alt", "onError"], No = {
|
15017
15067
|
key: 1,
|
15018
15068
|
class: "v3-no-result"
|
15019
15069
|
};
|
15020
15070
|
function Do(e, f, n, a, t, s) {
|
15021
|
-
return r(),
|
15071
|
+
return r(), d("div", bo, [
|
15022
15072
|
i("div", {
|
15023
15073
|
ref: "bodyInner",
|
15024
15074
|
class: V([e.platform, "v3-body-inner"])
|
15025
15075
|
}, [
|
15026
|
-
e.orderedKeys.length ? (r(!0),
|
15076
|
+
e.orderedKeys.length ? (r(!0), d(B, { key: 0 }, q(e.orderedKeys, (A) => (r(), d("div", {
|
15027
15077
|
id: A,
|
15028
15078
|
key: A,
|
15029
15079
|
class: "v3-group"
|
15030
15080
|
}, [
|
15031
|
-
e.hasGroupNames ? te((r(),
|
15081
|
+
e.hasGroupNames ? te((r(), d("h5", {
|
15032
15082
|
key: 0,
|
15033
15083
|
class: V(e.isSticky ? "v3-sticky" : "")
|
15034
15084
|
}, _(e.groupNames[A]), 3)), [
|
15035
|
-
[
|
15085
|
+
[he, e.emojis[A]]
|
15036
15086
|
]) : h("", !0),
|
15037
15087
|
te(i("div", _o, [
|
15038
|
-
(r(!0),
|
15039
|
-
key:
|
15088
|
+
(r(!0), d(B, null, q(e.emojis[A], (l) => (r(), d("button", {
|
15089
|
+
key: l.r,
|
15040
15090
|
type: "button",
|
15041
|
-
onMouseenter: (
|
15042
|
-
onClick: (
|
15091
|
+
onMouseenter: (u) => e.handleMouseEnter(l),
|
15092
|
+
onClick: (u) => e.handleClick(l)
|
15043
15093
|
}, [
|
15044
|
-
e.native ? (r(),
|
15094
|
+
e.native ? (r(), d("span", wo, _(e.unicodeToEmoji(l.r)), 1)) : (r(), d("img", {
|
15045
15095
|
key: 1,
|
15046
|
-
src: e.EMOJI_REMOTE_SRC + `/${
|
15047
|
-
alt:
|
15048
|
-
onError: (
|
15049
|
-
}, null, 40,
|
15096
|
+
src: e.EMOJI_REMOTE_SRC + `/${l.r}.png`,
|
15097
|
+
alt: l.n[0],
|
15098
|
+
onError: (u) => e.handleError(u, l.r)
|
15099
|
+
}, null, 40, ko))
|
15050
15100
|
], 40, Io))), 128))
|
15051
15101
|
], 512), [
|
15052
|
-
[
|
15102
|
+
[he, e.emojis[A]]
|
15053
15103
|
])
|
15054
|
-
], 8, vo))), 128)) : (r(),
|
15104
|
+
], 8, vo))), 128)) : (r(), d("span", No, " No emoji has been found! "))
|
15055
15105
|
], 2)
|
15056
15106
|
]);
|
15057
15107
|
}
|
15058
|
-
var jo = /* @__PURE__ */ Be(yo, [["render", Do]]), Vo = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41IDE0IEMgMTMuNTcwMzEzIDE0IDE0LjUgMTMuMzkwNjI1IDE1LjA5Mzc1IDEyLjU2MjUgQyAxNS42ODc1IDExLjczNDM3NSAxNiAxMC42NjAxNTYgMTYgOS41IEMgMTYgOC4zMzk4NDQgMTUuNjg3NSA3LjI2NTYyNSAxNS4wOTM3NSA2LjQzNzUgQyAxNC41IDUuNjA5Mzc1IDEzLjU3MDMxMyA1IDEyLjUgNSBaIE0gMTYgOS41IEMgMTYgMTAuNjYwMTU2IDE2LjMxMjUgMTEuNzM0Mzc1IDE2LjkwNjI1IDEyLjU2MjUgQyAxNy41IDEzLjM5MDYyNSAxOC40Mjk2ODggMTQgMTkuNSAxNCBDIDIwLjU3MDMxMyAxNCAyMS41IDEzLjM5MDYyNSAyMi4wOTM3NSAxMi41NjI1IEMgMjIuN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110
|
name: "Header",
|
15061
15111
|
setup(e) {
|
15062
|
-
const { state: f, updateSearch: n, updateActiveGroup: a } = Xe("store"), t = x(() => !f.options.hideSearch), s = x(() => !f.options.hideGroupIcons), A = JSON.parse(JSON.stringify(f.orderedGroupKeys)),
|
15112
|
+
const { state: f, updateSearch: n, updateActiveGroup: a } = Xe("store"), t = x(() => !f.options.hideSearch), s = x(() => !f.options.hideGroupIcons), A = JSON.parse(JSON.stringify(f.orderedGroupKeys)), l = x(
|
15063
15113
|
() => f.options.staticTexts.placeholder || ""
|
15064
|
-
),
|
15114
|
+
), u = x({
|
15065
15115
|
get: () => f.search,
|
15066
|
-
set: (
|
15067
|
-
}),
|
15116
|
+
set: (g) => n(g)
|
15117
|
+
}), o = [
|
15068
15118
|
...f.groups,
|
15069
|
-
...Object.keys(f.options.additionalGroups).map((
|
15070
|
-
key:
|
15071
|
-
title: f.options.groupNames[
|
15119
|
+
...Object.keys(f.options.additionalGroups).map((g) => ({
|
15120
|
+
key: g,
|
15121
|
+
title: f.options.groupNames[g] ? f.options.groupNames[g] : bn(g)
|
15072
15122
|
}))
|
15073
|
-
],
|
15074
|
-
return A.forEach((
|
15075
|
-
const
|
15076
|
-
|
15123
|
+
], c = [];
|
15124
|
+
return A.forEach((g) => {
|
15125
|
+
const m = o.findIndex((p) => p.key === g);
|
15126
|
+
m !== -1 && (c.push(o[m]), o.splice(m, 1));
|
15077
15127
|
}), {
|
15078
|
-
orderedGroups:
|
15128
|
+
orderedGroups: c,
|
15079
15129
|
orderedKeys: A,
|
15080
|
-
searchValue:
|
15130
|
+
searchValue: u,
|
15081
15131
|
updateActiveGroup: a,
|
15082
15132
|
hasSearch: t,
|
15083
15133
|
hasGroupIcons: s,
|
15084
|
-
placeholder:
|
15134
|
+
placeholder: l,
|
15085
15135
|
icons: {
|
15086
|
-
smileys_people:
|
15136
|
+
smileys_people: hn,
|
15087
15137
|
animals_nature: Vo,
|
15088
15138
|
food_drink: Eo,
|
15089
15139
|
activities: To,
|
@@ -15099,10 +15149,10 @@ const Uo = de({
|
|
15099
15149
|
}), Lo = {
|
15100
15150
|
key: 0,
|
15101
15151
|
class: "v3-header"
|
15102
|
-
},
|
15152
|
+
}, Bo = {
|
15103
15153
|
key: 0,
|
15104
15154
|
class: "v3-groups"
|
15105
|
-
},
|
15155
|
+
}, Qo = ["onClick"], Yo = ["title"], Ro = ["src"], qo = {
|
15106
15156
|
key: 1,
|
15107
15157
|
class: "v3-spacing"
|
15108
15158
|
}, Fo = {
|
@@ -15110,15 +15160,15 @@ const Uo = de({
|
|
15110
15160
|
class: "v3-search"
|
15111
15161
|
}, $o = ["placeholder"];
|
15112
15162
|
function Wo(e, f, n, a, t, s) {
|
15113
|
-
return e.hasGroupIcons || e.hasSearch ? (r(),
|
15114
|
-
e.hasGroupIcons ? (r(),
|
15115
|
-
(r(!0),
|
15163
|
+
return e.hasGroupIcons || e.hasSearch ? (r(), d("div", Lo, [
|
15164
|
+
e.hasGroupIcons ? (r(), d("div", Bo, [
|
15165
|
+
(r(!0), d(B, null, q(e.orderedGroups, (A) => (r(), d("button", {
|
15116
15166
|
key: A.key,
|
15117
15167
|
type: "button",
|
15118
15168
|
class: V(["v3-group", {
|
15119
15169
|
"v3-is-hidden": !e.icons[A.key]
|
15120
15170
|
}]),
|
15121
|
-
onClick: (
|
15171
|
+
onClick: (l) => e.updateActiveGroup(A.key)
|
15122
15172
|
}, [
|
15123
15173
|
i("span", {
|
15124
15174
|
title: A.title,
|
@@ -15129,38 +15179,38 @@ function Wo(e, f, n, a, t, s) {
|
|
15129
15179
|
alt: ""
|
15130
15180
|
}, null, 8, Ro)
|
15131
15181
|
], 8, Yo)
|
15132
|
-
], 10,
|
15182
|
+
], 10, Qo))), 128))
|
15133
15183
|
])) : h("", !0),
|
15134
|
-
e.hasGroupIcons && e.hasSearch ? (r(),
|
15135
|
-
e.hasSearch ? (r(),
|
15184
|
+
e.hasGroupIcons && e.hasSearch ? (r(), d("div", qo)) : h("", !0),
|
15185
|
+
e.hasSearch ? (r(), d("div", Fo, [
|
15136
15186
|
te(i("input", {
|
15137
15187
|
"onUpdate:modelValue": f[0] || (f[0] = (A) => e.searchValue = A),
|
15138
15188
|
type: "text",
|
15139
15189
|
placeholder: e.placeholder
|
15140
15190
|
}, null, 8, $o), [
|
15141
|
-
[
|
15191
|
+
[en, e.searchValue]
|
15142
15192
|
])
|
15143
15193
|
])) : h("", !0)
|
15144
15194
|
])) : h("", !0);
|
15145
15195
|
}
|
15146
|
-
var Jo = /* @__PURE__ */
|
15147
|
-
const Ho =
|
15196
|
+
var Jo = /* @__PURE__ */ Qe(Uo, [["render", Wo]]);
|
15197
|
+
const Ho = ge({
|
15148
15198
|
name: "Header",
|
15149
15199
|
setup() {
|
15150
15200
|
const { state: e, updateSkinTone: f } = Xe("store"), n = b(!1), a = b(!1), t = x(() => e.skinTone), s = x(
|
15151
15201
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
15152
|
-
), A = x(() => !e.options.disableSkinTones),
|
15202
|
+
), A = x(() => !e.options.disableSkinTones), l = yn() ? "is-mac" : "", u = x(() => ({
|
15153
15203
|
...e.emoji,
|
15154
|
-
src:
|
15204
|
+
src: an + "/" + e.emoji[ze] + ".png"
|
15155
15205
|
}));
|
15156
|
-
function
|
15157
|
-
n.value =
|
15206
|
+
function o(m = !0) {
|
15207
|
+
n.value = m;
|
15158
15208
|
}
|
15159
|
-
function
|
15209
|
+
function c() {
|
15160
15210
|
n.value = !n.value;
|
15161
15211
|
}
|
15162
|
-
function
|
15163
|
-
f(
|
15212
|
+
function g(m) {
|
15213
|
+
f(m), o(!1);
|
15164
15214
|
}
|
15165
15215
|
return Ue(
|
15166
15216
|
() => e.emoji,
|
@@ -15168,26 +15218,26 @@ const Ho = de({
|
|
15168
15218
|
a.value = !1;
|
15169
15219
|
}
|
15170
15220
|
), {
|
15171
|
-
emoji:
|
15172
|
-
SKIN_TONES:
|
15173
|
-
updateSkinToneState:
|
15221
|
+
emoji: u,
|
15222
|
+
SKIN_TONES: Bs,
|
15223
|
+
updateSkinToneState: o,
|
15174
15224
|
skinTone: n,
|
15175
15225
|
stateSkinTone: t,
|
15176
|
-
selectSkinTone:
|
15177
|
-
toggleSkinToneState:
|
15226
|
+
selectSkinTone: g,
|
15227
|
+
toggleSkinToneState: c,
|
15178
15228
|
EMOJI_RESULT_KEY: ze,
|
15179
|
-
EMOJI_NAME_KEY:
|
15229
|
+
EMOJI_NAME_KEY: ff,
|
15180
15230
|
skinToneText: s,
|
15181
15231
|
hasSkinTones: A,
|
15182
15232
|
native: e.options.native,
|
15183
15233
|
unicodeToEmoji: Pe,
|
15184
|
-
platform:
|
15234
|
+
platform: l,
|
15185
15235
|
hasError: a
|
15186
15236
|
};
|
15187
15237
|
}
|
15188
15238
|
}), Ko = { class: "v3-foot-left" }, Po = { key: 0 }, Zo = ["alt", "src"], Go = { class: "v3-text" }, Xo = { class: "v3-text" }, e1 = ["onClick"];
|
15189
15239
|
function f1(e, f, n, a, t, s) {
|
15190
|
-
return r(),
|
15240
|
+
return r(), d("div", {
|
15191
15241
|
class: "v3-footer",
|
15192
15242
|
onMouseleave: f[2] || (f[2] = (A) => e.updateSkinToneState(!1))
|
15193
15243
|
}, [
|
@@ -15195,7 +15245,7 @@ function f1(e, f, n, a, t, s) {
|
|
15195
15245
|
i("span", {
|
15196
15246
|
class: V([e.platform, "v3-icon"])
|
15197
15247
|
}, [
|
15198
|
-
e.native || e.hasError ? (r(),
|
15248
|
+
e.native || e.hasError ? (r(), d("span", Po, _(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), d("img", {
|
15199
15249
|
key: 1,
|
15200
15250
|
alt: e.unicodeToEmoji(e.emoji.r),
|
15201
15251
|
src: e.emoji.src,
|
@@ -15204,7 +15254,7 @@ function f1(e, f, n, a, t, s) {
|
|
15204
15254
|
], 2),
|
15205
15255
|
i("span", Go, " :" + _(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
15206
15256
|
]),
|
15207
|
-
e.hasSkinTones ? (r(),
|
15257
|
+
e.hasSkinTones ? (r(), d(B, { key: 0 }, [
|
15208
15258
|
i("button", {
|
15209
15259
|
type: "button",
|
15210
15260
|
class: "v3-tone",
|
@@ -15218,18 +15268,18 @@ function f1(e, f, n, a, t, s) {
|
|
15218
15268
|
i("div", {
|
15219
15269
|
class: V([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
15220
15270
|
}, [
|
15221
|
-
(r(!0),
|
15271
|
+
(r(!0), d(B, null, q(e.SKIN_TONES, (A) => (r(), d("button", {
|
15222
15272
|
key: A,
|
15223
15273
|
type: "button",
|
15224
15274
|
class: V(["v3-skin-tone-" + A, "v3-skin-tone"]),
|
15225
|
-
onClick: (
|
15275
|
+
onClick: (l) => e.selectSkinTone(A)
|
15226
15276
|
}, null, 10, e1))), 128))
|
15227
15277
|
], 2)
|
15228
15278
|
], 64)) : h("", !0)
|
15229
15279
|
], 32);
|
15230
15280
|
}
|
15231
|
-
var n1 = /* @__PURE__ */
|
15232
|
-
const a1 =
|
15281
|
+
var n1 = /* @__PURE__ */ Qe(Ho, [["render", f1]]);
|
15282
|
+
const a1 = ge({
|
15233
15283
|
name: "PickerRoot",
|
15234
15284
|
components: {
|
15235
15285
|
Header: Jo,
|
@@ -15267,29 +15317,29 @@ const a1 = de({
|
|
15267
15317
|
"update:text": (e) => !0
|
15268
15318
|
},
|
15269
15319
|
setup(e, { emit: f }) {
|
15270
|
-
const n = b(), a = b(), t = b(), s = b(!1), A = b(e.text),
|
15271
|
-
let
|
15272
|
-
const { state:
|
15273
|
-
function
|
15274
|
-
if (
|
15275
|
-
const I =
|
15276
|
-
I === "prepend" ? A.value = M.i + A.value : I === "insert" &&
|
15320
|
+
const n = b(), a = b(), t = b(), s = b(!1), A = b(e.text), l = e.type === "input" || e.type === "textarea";
|
15321
|
+
let u = -1;
|
15322
|
+
const { state: o } = Xe("store"), c = x(() => o.options.colorTheme);
|
15323
|
+
function g(M) {
|
15324
|
+
if (l) {
|
15325
|
+
const I = o.options.mode;
|
15326
|
+
I === "prepend" ? A.value = M.i + A.value : I === "insert" && u !== -1 ? (A.value = `${A.value.slice(0, u)}${M.i}${A.value.slice(u)}`, u += M.i.length) : A.value += M.i, f("update:text", A.value);
|
15277
15327
|
}
|
15278
15328
|
f("select", M);
|
15279
15329
|
}
|
15280
|
-
function
|
15330
|
+
function m() {
|
15281
15331
|
var M;
|
15282
|
-
n.value && (
|
15332
|
+
n.value && (u = ((M = n.value) == null ? void 0 : M.selectionEnd) || -1);
|
15283
15333
|
}
|
15284
|
-
function
|
15334
|
+
function p(M) {
|
15285
15335
|
var I;
|
15286
15336
|
!((I = M.target) != null && I.closest(
|
15287
15337
|
".v3-input-picker-wrap"
|
15288
15338
|
)) && s.value && (s.value = !1);
|
15289
15339
|
}
|
15290
15340
|
function y() {
|
15291
|
-
if (a.value && t.value &&
|
15292
|
-
let M =
|
15341
|
+
if (a.value && t.value && l) {
|
15342
|
+
let M = o.options.offset;
|
15293
15343
|
typeof M != "number" && (M = 6), Mo(a.value, t.value, {
|
15294
15344
|
placement: "bottom-end",
|
15295
15345
|
modifiers: [
|
@@ -15300,53 +15350,53 @@ const a1 = de({
|
|
15300
15350
|
}
|
15301
15351
|
}
|
15302
15352
|
]
|
15303
|
-
}), document.body.addEventListener("click",
|
15353
|
+
}), document.body.addEventListener("click", p);
|
15304
15354
|
}
|
15305
15355
|
}
|
15306
15356
|
function v(M) {
|
15307
15357
|
A.value = M.target.value || "", f("update:text", A.value);
|
15308
15358
|
}
|
15309
|
-
return
|
15359
|
+
return ie(() => {
|
15310
15360
|
y();
|
15311
15361
|
}), Sn(() => {
|
15312
|
-
document.body.removeEventListener("click",
|
15362
|
+
document.body.removeEventListener("click", p);
|
15313
15363
|
}), {
|
15314
|
-
face:
|
15364
|
+
face: hn,
|
15315
15365
|
open: s,
|
15316
|
-
onSelect:
|
15366
|
+
onSelect: g,
|
15317
15367
|
input: A,
|
15318
15368
|
elem: n,
|
15319
|
-
updateCursor:
|
15369
|
+
updateCursor: m,
|
15320
15370
|
button: a,
|
15321
15371
|
picker: t,
|
15322
|
-
isInputType:
|
15372
|
+
isInputType: l,
|
15323
15373
|
onChangeText: v,
|
15324
|
-
colorTheme:
|
15374
|
+
colorTheme: c
|
15325
15375
|
};
|
15326
15376
|
}
|
15327
15377
|
}), t1 = {
|
15328
15378
|
key: 0,
|
15329
15379
|
class: "v3-input-emoji-picker"
|
15330
15380
|
}, A1 = { class: "v3-input-picker-root" }, s1 = ["value"], i1 = ["value"], o1 = ["src"];
|
15331
|
-
function
|
15332
|
-
const A = He("Header"),
|
15333
|
-
return e.isInputType ? (r(),
|
15381
|
+
function l1(e, f, n, a, t, s) {
|
15382
|
+
const A = He("Header"), l = He("Body"), u = He("Footer");
|
15383
|
+
return e.isInputType ? (r(), d("div", t1, [
|
15334
15384
|
i("div", A1, [
|
15335
|
-
e.type === "input" ? (r(),
|
15385
|
+
e.type === "input" ? (r(), d("input", {
|
15336
15386
|
key: 0,
|
15337
15387
|
ref: "elem",
|
15338
15388
|
value: e.input,
|
15339
15389
|
type: "text",
|
15340
15390
|
class: "v3-emoji-picker-input",
|
15341
|
-
onInput: f[0] || (f[0] = (...
|
15342
|
-
onBlur: f[1] || (f[1] = (...
|
15343
|
-
}, null, 40, s1)) : (r(),
|
15391
|
+
onInput: f[0] || (f[0] = (...o) => e.onChangeText && e.onChangeText(...o)),
|
15392
|
+
onBlur: f[1] || (f[1] = (...o) => e.updateCursor && e.updateCursor(...o))
|
15393
|
+
}, null, 40, s1)) : (r(), d("textarea", {
|
15344
15394
|
key: 1,
|
15345
15395
|
ref: "elem",
|
15346
15396
|
value: e.input,
|
15347
15397
|
class: "v3-emoji-picker-textarea",
|
15348
|
-
onInput: f[2] || (f[2] = (...
|
15349
|
-
onBlur: f[3] || (f[3] = (...
|
15398
|
+
onInput: f[2] || (f[2] = (...o) => e.onChangeText && e.onChangeText(...o)),
|
15399
|
+
onBlur: f[3] || (f[3] = (...o) => e.updateCursor && e.updateCursor(...o))
|
15350
15400
|
}, null, 40, i1)),
|
15351
15401
|
i("div", {
|
15352
15402
|
class: V(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
@@ -15355,7 +15405,7 @@ function u1(e, f, n, a, t, s) {
|
|
15355
15405
|
ref: "button",
|
15356
15406
|
type: "button",
|
15357
15407
|
class: "v3-input-picker-icon",
|
15358
|
-
onClick: f[4] || (f[4] = (
|
15408
|
+
onClick: f[4] || (f[4] = (o) => e.open = !e.open)
|
15359
15409
|
}, [
|
15360
15410
|
i("img", {
|
15361
15411
|
src: e.face,
|
@@ -15367,25 +15417,25 @@ function u1(e, f, n, a, t, s) {
|
|
15367
15417
|
class: V(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
15368
15418
|
}, [
|
15369
15419
|
C(A),
|
15370
|
-
C(
|
15371
|
-
C(
|
15420
|
+
C(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
15421
|
+
C(u)
|
15372
15422
|
], 2)
|
15373
15423
|
], 2)
|
15374
15424
|
])
|
15375
|
-
])) : (r(),
|
15425
|
+
])) : (r(), d("div", {
|
15376
15426
|
key: 1,
|
15377
15427
|
class: V(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
15378
15428
|
}, [
|
15379
15429
|
C(A),
|
15380
|
-
C(
|
15381
|
-
C(
|
15430
|
+
C(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
15431
|
+
C(u)
|
15382
15432
|
], 2));
|
15383
15433
|
}
|
15384
|
-
var
|
15385
|
-
const r1 =
|
15434
|
+
var u1 = /* @__PURE__ */ Qe(a1, [["render", l1]]);
|
15435
|
+
const r1 = ge({
|
15386
15436
|
name: "Picker",
|
15387
15437
|
components: {
|
15388
|
-
PickerRoot:
|
15438
|
+
PickerRoot: u1
|
15389
15439
|
},
|
15390
15440
|
props: {
|
15391
15441
|
native: {
|
@@ -15470,16 +15520,16 @@ const r1 = de({
|
|
15470
15520
|
function a(s) {
|
15471
15521
|
n.value = s || "", f("update:text", n.value);
|
15472
15522
|
}
|
15473
|
-
const t =
|
15523
|
+
const t = ui();
|
15474
15524
|
return t.updateOptions({
|
15475
15525
|
native: e.native,
|
15476
15526
|
hideSearch: e.hideSearch,
|
15477
15527
|
hideGroupIcons: e.hideGroupIcons,
|
15478
15528
|
hideGroupNames: e.hideGroupNames,
|
15479
|
-
staticTexts: { ...
|
15529
|
+
staticTexts: { ...Qs, ...e.staticTexts },
|
15480
15530
|
disableStickyGroupNames: e.disableStickyGroupNames,
|
15481
15531
|
disabledGroups: e.disabledGroups,
|
15482
|
-
groupNames: { ...
|
15532
|
+
groupNames: { ...tn, ...e.groupNames },
|
15483
15533
|
disableSkinTones: e.disableSkinTones,
|
15484
15534
|
displayRecent: e.displayRecent,
|
15485
15535
|
additionalGroups: e.additionalGroups,
|
@@ -15497,45 +15547,75 @@ const r1 = de({
|
|
15497
15547
|
});
|
15498
15548
|
function c1(e, f, n, a, t, s) {
|
15499
15549
|
const A = He("picker-root");
|
15500
|
-
return r(),
|
15550
|
+
return r(), Y(A, {
|
15501
15551
|
type: e.type,
|
15502
15552
|
text: e.input,
|
15503
|
-
onSelect: f[0] || (f[0] = (
|
15553
|
+
onSelect: f[0] || (f[0] = (l) => e.$emit("select", l)),
|
15504
15554
|
"onUpdate:text": e.onChangeText
|
15505
15555
|
}, null, 8, ["type", "text", "onUpdate:text"]);
|
15506
15556
|
}
|
15507
|
-
var d1 = /* @__PURE__ */
|
15557
|
+
var d1 = /* @__PURE__ */ Qe(r1, [["render", c1]]);
|
15508
15558
|
const g1 = {
|
15509
15559
|
__name: "ButtonEmojiPicker",
|
15560
|
+
props: {
|
15561
|
+
mode: {
|
15562
|
+
type: String,
|
15563
|
+
required: !1,
|
15564
|
+
default: "hover"
|
15565
|
+
}
|
15566
|
+
},
|
15510
15567
|
setup(e) {
|
15511
|
-
const { message:
|
15568
|
+
const f = e, n = b(null), a = b(null), { message: t } = ef(), s = x(() => {
|
15512
15569
|
if (document.documentElement.classList.contains("dark"))
|
15513
15570
|
return "dark";
|
15514
|
-
}),
|
15515
|
-
|
15571
|
+
}), A = (g) => {
|
15572
|
+
t.value.text = (t.value.text ? t.value.text : "") + g.i;
|
15573
|
+
}, l = () => {
|
15574
|
+
f.mode == "click" && (n.value.style.display = "inherit");
|
15575
|
+
}, u = () => {
|
15576
|
+
f.mode == "hover" && (n.value.style.display = "inherit");
|
15577
|
+
}, o = () => {
|
15578
|
+
f.mode == "hover" && (n.value.style.display = "none");
|
15579
|
+
}, c = (g) => {
|
15580
|
+
f.mode == "click" && !a.value.contains(g.target) && !n.value.contains(g.target) && (n.value.style.display = "none");
|
15516
15581
|
};
|
15517
|
-
return (
|
15518
|
-
|
15582
|
+
return ie(() => {
|
15583
|
+
n.value.style.display = "none", document.addEventListener("click", c);
|
15584
|
+
}), pf(() => {
|
15585
|
+
document.removeEventListener("click", c);
|
15586
|
+
}), (g, m) => (r(), d(B, null, [
|
15587
|
+
i("div", {
|
15588
|
+
ref_key: "emojiButton",
|
15589
|
+
ref: a,
|
15519
15590
|
class: "button",
|
15520
|
-
onClick:
|
15521
|
-
|
15591
|
+
onClick: l,
|
15592
|
+
onMouseover: u,
|
15593
|
+
onMouseout: o
|
15594
|
+
}, m[0] || (m[0] = [
|
15522
15595
|
i("span", { class: "pi pi-face-smile" }, null, -1)
|
15523
|
-
])),
|
15596
|
+
]), 544),
|
15524
15597
|
C(H, null, {
|
15525
15598
|
default: K(() => [
|
15526
|
-
|
15599
|
+
i("div", {
|
15600
|
+
ref_key: "emoji",
|
15601
|
+
ref: n,
|
15527
15602
|
class: "emoji",
|
15528
|
-
|
15529
|
-
|
15530
|
-
|
15531
|
-
|
15532
|
-
|
15603
|
+
onMouseover: u,
|
15604
|
+
onMouseout: o
|
15605
|
+
}, [
|
15606
|
+
C(Q(d1), {
|
15607
|
+
native: !0,
|
15608
|
+
theme: s.value,
|
15609
|
+
"picker-type": "",
|
15610
|
+
onSelect: A
|
15611
|
+
}, null, 8, ["theme"])
|
15612
|
+
], 544)
|
15533
15613
|
]),
|
15534
15614
|
_: 1
|
15535
15615
|
})
|
15536
15616
|
], 64));
|
15537
15617
|
}
|
15538
|
-
},
|
15618
|
+
}, rl = /* @__PURE__ */ j(g1, [["__scopeId", "data-v-74fd3b08"]]), m1 = {
|
15539
15619
|
key: 0,
|
15540
15620
|
class: "new-chat-modal"
|
15541
15621
|
}, p1 = { class: "modal-content" }, M1 = { class: "participant-list" }, h1 = ["id", "value"], y1 = ["for"], b1 = {
|
@@ -15553,45 +15633,45 @@ const g1 = {
|
|
15553
15633
|
emits: ["confirm", "close"],
|
15554
15634
|
setup(e, { emit: f }) {
|
15555
15635
|
const n = b(!0), a = b([]), t = f, s = async () => {
|
15556
|
-
t("confirm", a.value), A(),
|
15636
|
+
t("confirm", a.value), A(), l();
|
15557
15637
|
}, A = () => {
|
15558
15638
|
t("close"), n.value = !1;
|
15559
|
-
}, o = () => {
|
15560
|
-
a.value = [];
|
15561
15639
|
}, l = () => {
|
15562
|
-
|
15640
|
+
a.value = [];
|
15641
|
+
}, u = () => {
|
15642
|
+
A(), l();
|
15563
15643
|
};
|
15564
|
-
return (
|
15565
|
-
n.value ? (r(),
|
15644
|
+
return (o, c) => (r(), d("div", null, [
|
15645
|
+
n.value ? (r(), d("div", m1, [
|
15566
15646
|
i("div", p1, [
|
15567
15647
|
i("h2", null, _(e.title), 1),
|
15568
15648
|
i("div", M1, [
|
15569
|
-
(r(!0),
|
15570
|
-
key:
|
15649
|
+
(r(!0), d(B, null, q(e.users, (g) => (r(), d("div", {
|
15650
|
+
key: g.userId,
|
15571
15651
|
class: "participant-item"
|
15572
15652
|
}, [
|
15573
15653
|
te(i("input", {
|
15574
|
-
id:
|
15575
|
-
"onUpdate:modelValue":
|
15654
|
+
id: g.userId,
|
15655
|
+
"onUpdate:modelValue": c[0] || (c[0] = (m) => a.value = m),
|
15576
15656
|
type: "checkbox",
|
15577
|
-
value:
|
15657
|
+
value: g.userId
|
15578
15658
|
}, null, 8, h1), [
|
15579
15659
|
[Un, a.value]
|
15580
15660
|
]),
|
15581
15661
|
i("label", {
|
15582
|
-
for:
|
15583
|
-
}, _(
|
15662
|
+
for: g.userId
|
15663
|
+
}, _(g.name || "unknown username"), 9, y1)
|
15584
15664
|
]))), 128))
|
15585
15665
|
]),
|
15586
15666
|
i("div", { class: "modal-actions" }, [
|
15587
15667
|
i("button", { onClick: s }, " ОК "),
|
15588
|
-
i("button", { onClick:
|
15668
|
+
i("button", { onClick: u }, " Отмена ")
|
15589
15669
|
])
|
15590
15670
|
])
|
15591
15671
|
])) : h("", !0)
|
15592
15672
|
]));
|
15593
15673
|
}
|
15594
|
-
},
|
15674
|
+
}, cl = /* @__PURE__ */ j(b1, [["__scopeId", "data-v-66249b80"]]), v1 = { class: "modal-backdrop" }, _1 = {
|
15595
15675
|
class: "modal",
|
15596
15676
|
role: "dialog",
|
15597
15677
|
"aria-labelledby": "modalTitle",
|
@@ -15599,14 +15679,14 @@ const g1 = {
|
|
15599
15679
|
}, I1 = {
|
15600
15680
|
id: "modalDescription",
|
15601
15681
|
class: "modal-body"
|
15602
|
-
}, w1 = { class: "buttons" },
|
15682
|
+
}, w1 = { class: "buttons" }, k1 = {
|
15603
15683
|
__name: "Modal",
|
15604
15684
|
emits: ["close", "submit"],
|
15605
15685
|
setup(e, { emit: f }) {
|
15606
15686
|
const n = f, a = (s) => {
|
15607
15687
|
n("submit", s);
|
15608
15688
|
}, t = b(null);
|
15609
|
-
return (s, A) => (r(),
|
15689
|
+
return (s, A) => (r(), Y(H, { name: "modal-fade" }, {
|
15610
15690
|
default: K(() => [
|
15611
15691
|
i("div", v1, [
|
15612
15692
|
i("div", _1, [
|
@@ -15618,13 +15698,13 @@ const g1 = {
|
|
15618
15698
|
type: "button",
|
15619
15699
|
class: "btn-green",
|
15620
15700
|
"aria-label": "Close modal",
|
15621
|
-
onClick: A[0] || (A[0] = (
|
15701
|
+
onClick: A[0] || (A[0] = (l) => a(t.value))
|
15622
15702
|
}, " OK "),
|
15623
15703
|
i("button", {
|
15624
15704
|
type: "button",
|
15625
15705
|
class: "btn-green",
|
15626
15706
|
"aria-label": "Close modal",
|
15627
|
-
onClick: A[1] || (A[1] = (
|
15707
|
+
onClick: A[1] || (A[1] = (l) => s.$emit("close"))
|
15628
15708
|
}, " Cancel ")
|
15629
15709
|
])
|
15630
15710
|
])
|
@@ -15633,53 +15713,53 @@ const g1 = {
|
|
15633
15713
|
_: 3
|
15634
15714
|
}));
|
15635
15715
|
}
|
15636
|
-
},
|
15637
|
-
function
|
15716
|
+
}, N1 = /* @__PURE__ */ j(k1, [["__scopeId", "data-v-d48a1772"]]);
|
15717
|
+
function Df({ component: e, attrs: f }) {
|
15638
15718
|
return new Promise((n) => {
|
15639
15719
|
const a = document.createElement("div");
|
15640
15720
|
document.body.appendChild(a);
|
15641
15721
|
const t = b({}), s = () => {
|
15642
|
-
|
15722
|
+
o.unmount(), document.body.removeChild(a);
|
15643
15723
|
}, A = () => {
|
15644
15724
|
s(), n(t.value);
|
15645
|
-
},
|
15646
|
-
const
|
15647
|
-
t.value[
|
15648
|
-
},
|
15725
|
+
}, l = (c) => {
|
15726
|
+
const g = Object.keys(c)[0];
|
15727
|
+
t.value[g] = c[g];
|
15728
|
+
}, u = ge({
|
15649
15729
|
render() {
|
15650
|
-
return
|
15651
|
-
|
15730
|
+
return Uf(
|
15731
|
+
N1,
|
15652
15732
|
{
|
15653
15733
|
onSubmit: A,
|
15654
15734
|
onClose: s
|
15655
15735
|
},
|
15656
15736
|
{
|
15657
|
-
default: () =>
|
15737
|
+
default: () => Uf(
|
15658
15738
|
Ln(() => e),
|
15659
15739
|
{
|
15660
15740
|
...f,
|
15661
|
-
onChange:
|
15741
|
+
onChange: l
|
15662
15742
|
}
|
15663
15743
|
)
|
15664
15744
|
}
|
15665
15745
|
);
|
15666
15746
|
}
|
15667
|
-
}),
|
15668
|
-
|
15747
|
+
}), o = Bn(u);
|
15748
|
+
o.mount(a);
|
15669
15749
|
});
|
15670
15750
|
}
|
15671
|
-
const
|
15672
|
-
const n = await
|
15751
|
+
const dl = async (e, f) => {
|
15752
|
+
const n = await Df({
|
15673
15753
|
//в component должен быть встроен emit change(key: value)
|
15674
|
-
component: import("./SelectUser2-
|
15754
|
+
component: import("./SelectUser2-COvXdMwc.js"),
|
15675
15755
|
attrs: {
|
15676
15756
|
title: e,
|
15677
15757
|
users: f
|
15678
15758
|
}
|
15679
15759
|
});
|
15680
15760
|
return console.log("data", n), n;
|
15681
|
-
},
|
15682
|
-
const f = await
|
15761
|
+
}, gl = async (e) => {
|
15762
|
+
const f = await Df({
|
15683
15763
|
//в component должен быть встроен emit change(key: value)
|
15684
15764
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
15685
15765
|
attrs: {
|
@@ -15687,20 +15767,20 @@ const du = async (e, f) => {
|
|
15687
15767
|
}
|
15688
15768
|
});
|
15689
15769
|
return console.log("data", f), f;
|
15690
|
-
},
|
15770
|
+
}, ml = async (e) => await Df({
|
15691
15771
|
//в component должен быть встроен emit change(key: value)
|
15692
15772
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
15693
15773
|
attrs: {
|
15694
15774
|
title: e
|
15695
15775
|
}
|
15696
|
-
}), D1 = { class: "base" },
|
15776
|
+
}), D1 = { class: "base" }, pl = {
|
15697
15777
|
__name: "BaseContainer",
|
15698
15778
|
props: {
|
15699
15779
|
height: String,
|
15700
15780
|
width: String
|
15701
15781
|
},
|
15702
15782
|
setup(e) {
|
15703
|
-
return (f, n) => (r(),
|
15783
|
+
return (f, n) => (r(), d("div", D1, [
|
15704
15784
|
i("div", {
|
15705
15785
|
class: "base__container",
|
15706
15786
|
style: L({ height: e.height, width: e.width })
|
@@ -15729,16 +15809,16 @@ const du = async (e, f) => {
|
|
15729
15809
|
},
|
15730
15810
|
emits: ["close-window", "get-size"],
|
15731
15811
|
setup(e, { emit: f }) {
|
15732
|
-
const n = e, a = b({ x: 0, y: 0 }), t = b(null), s = b(null), A = b(!1),
|
15812
|
+
const n = e, a = b({ x: 0, y: 0 }), t = b(null), s = b(null), A = b(!1), l = b(0), u = b(0), o = b(0), c = () => {
|
15733
15813
|
if (t.value) {
|
15734
15814
|
const y = window.innerWidth, v = window.innerHeight, M = t.value.offsetWidth, I = t.value.offsetHeight;
|
15735
15815
|
a.value.x = (y - M) / 2, a.value.y = (v - I) / 2;
|
15736
15816
|
}
|
15737
|
-
},
|
15738
|
-
A.value = !0,
|
15739
|
-
},
|
15817
|
+
}, g = (y) => {
|
15818
|
+
A.value = !0, l.value = y.clientX - t.value.offsetLeft, u.value = y.clientY - t.value.offsetTop;
|
15819
|
+
}, m = () => A.value = !1, p = (y) => {
|
15740
15820
|
if (A.value) {
|
15741
|
-
const v = y.clientX -
|
15821
|
+
const v = y.clientX - l.value, M = y.clientY - u.value;
|
15742
15822
|
a.value.x = Math.max(
|
15743
15823
|
0,
|
15744
15824
|
Math.min(v, window.innerWidth - t.value.offsetWidth)
|
@@ -15748,8 +15828,8 @@ const du = async (e, f) => {
|
|
15748
15828
|
);
|
15749
15829
|
}
|
15750
15830
|
};
|
15751
|
-
return
|
15752
|
-
|
15831
|
+
return ie(() => {
|
15832
|
+
c(), document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
|
15753
15833
|
a.value.x = Math.max(
|
15754
15834
|
0,
|
15755
15835
|
Math.min(
|
@@ -15763,8 +15843,8 @@ const du = async (e, f) => {
|
|
15763
15843
|
window.innerHeight - t.value.offsetHeight
|
15764
15844
|
)
|
15765
15845
|
);
|
15766
|
-
}),
|
15767
|
-
}), (y, v) => (r(),
|
15846
|
+
}), o.value = t.value.offsetHeight - s.value.offsetHeight;
|
15847
|
+
}), (y, v) => (r(), d("div", {
|
15768
15848
|
ref_key: "element",
|
15769
15849
|
ref: t,
|
15770
15850
|
class: "float-window",
|
@@ -15783,11 +15863,11 @@ const du = async (e, f) => {
|
|
15783
15863
|
ref: s,
|
15784
15864
|
class: "float-window__controls",
|
15785
15865
|
style: L({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
|
15786
|
-
onMousedown:
|
15787
|
-
onMouseup:
|
15788
|
-
onMouseleave:
|
15866
|
+
onMousedown: g,
|
15867
|
+
onMouseup: m,
|
15868
|
+
onMouseleave: m
|
15789
15869
|
}, [
|
15790
|
-
n.avatar ? (r(),
|
15870
|
+
n.avatar ? (r(), d("img", {
|
15791
15871
|
key: 0,
|
15792
15872
|
class: "float-window__avatar",
|
15793
15873
|
src: n.avatar,
|
@@ -15803,16 +15883,16 @@ const du = async (e, f) => {
|
|
15803
15883
|
], 36),
|
15804
15884
|
i("div", {
|
15805
15885
|
class: "float-window__content",
|
15806
|
-
style: L({ height:
|
15886
|
+
style: L({ height: o.value + "px" })
|
15807
15887
|
}, [
|
15808
15888
|
F(y.$slots, "default", {}, void 0, !0)
|
15809
15889
|
], 4)
|
15810
15890
|
])
|
15811
15891
|
], 4));
|
15812
15892
|
}
|
15813
|
-
},
|
15893
|
+
}, Ml = /* @__PURE__ */ j(T1, [["__scopeId", "data-v-9a949e0f"]]), x1 = {}, S1 = { class: "base-layout__container" }, z1 = { class: "base-layout__first-col" }, O1 = { class: "base-layout__second-col" };
|
15814
15894
|
function C1(e, f) {
|
15815
|
-
return r(),
|
15895
|
+
return r(), d("div", S1, [
|
15816
15896
|
i("div", z1, [
|
15817
15897
|
F(e.$slots, "first-col", {}, void 0, !0)
|
15818
15898
|
]),
|
@@ -15821,55 +15901,55 @@ function C1(e, f) {
|
|
15821
15901
|
])
|
15822
15902
|
]);
|
15823
15903
|
}
|
15824
|
-
const
|
15904
|
+
const hl = /* @__PURE__ */ j(x1, [["render", C1], ["__scopeId", "data-v-93dc265d"]]), U1 = { class: "extend-layout__container" }, L1 = { class: "extend-layout__first-col" }, B1 = { class: "extend-layout__third-col" }, Q1 = {
|
15825
15905
|
__name: "ExtendedLayout",
|
15826
15906
|
setup(e) {
|
15827
15907
|
const f = b(null);
|
15828
15908
|
let n = b(!1), a = b(0), t = b(0), s = b(0);
|
15829
|
-
const A = (
|
15830
|
-
|
15831
|
-
},
|
15909
|
+
const A = (o) => {
|
15910
|
+
o.offsetX >= f.value.offsetWidth - 10 && (n.value = !0, a.value = f.value.offsetWidth, t.value = o.clientX, s.value = o.clientX, document.addEventListener("mousemove", l));
|
15911
|
+
}, l = (o) => {
|
15832
15912
|
if (n.value) {
|
15833
|
-
const
|
15834
|
-
f.value.style.width = `${Math.max(270,
|
15913
|
+
const c = a.value + (o.clientX - s.value);
|
15914
|
+
f.value.style.width = `${Math.max(270, c)}px`;
|
15835
15915
|
}
|
15836
|
-
},
|
15837
|
-
n.value = !1, document.removeEventListener("mousemove",
|
15916
|
+
}, u = () => {
|
15917
|
+
n.value = !1, document.removeEventListener("mousemove", l);
|
15838
15918
|
};
|
15839
|
-
return (
|
15919
|
+
return (o, c) => (r(), d("div", U1, [
|
15840
15920
|
i("div", L1, [
|
15841
|
-
F(
|
15921
|
+
F(o.$slots, "first-col", {}, void 0, !0)
|
15842
15922
|
]),
|
15843
15923
|
i("div", {
|
15844
15924
|
ref_key: "resizableDiv",
|
15845
15925
|
ref: f,
|
15846
15926
|
class: "extend-layout__second-col resizable-div",
|
15847
|
-
style: L({ userSelect:
|
15927
|
+
style: L({ userSelect: Q(n) ? "none" : "auto" }),
|
15848
15928
|
onMousedown: A,
|
15849
|
-
onMouseup:
|
15929
|
+
onMouseup: u
|
15850
15930
|
}, [
|
15851
|
-
F(
|
15931
|
+
F(o.$slots, "second-col", {}, void 0, !0)
|
15852
15932
|
], 36),
|
15853
|
-
i("div",
|
15854
|
-
F(
|
15933
|
+
i("div", B1, [
|
15934
|
+
F(o.$slots, "third-col", {}, void 0, !0)
|
15855
15935
|
])
|
15856
15936
|
]));
|
15857
15937
|
}
|
15858
|
-
},
|
15938
|
+
}, yl = /* @__PURE__ */ j(Q1, [["__scopeId", "data-v-cacc56ec"]]), Y1 = {}, R1 = { class: "base-layout__container" }, q1 = { class: "base-layout__first-col" };
|
15859
15939
|
function F1(e, f) {
|
15860
|
-
return r(),
|
15940
|
+
return r(), d("div", R1, [
|
15861
15941
|
i("div", q1, [
|
15862
15942
|
F(e.$slots, "default", {}, void 0, !0)
|
15863
15943
|
])
|
15864
15944
|
]);
|
15865
15945
|
}
|
15866
|
-
const
|
15946
|
+
const bl = /* @__PURE__ */ j(Y1, [["render", F1], ["__scopeId", "data-v-e71ea0ed"]]), $1 = { class: "chat-wrapper" }, W1 = {
|
15867
15947
|
key: 0,
|
15868
15948
|
class: "chat-wrapper__selected-chat"
|
15869
15949
|
}, J1 = {
|
15870
15950
|
key: 1,
|
15871
15951
|
style: { width: "100%" }
|
15872
|
-
}, H1 = /* @__PURE__ */
|
15952
|
+
}, H1 = /* @__PURE__ */ ge({
|
15873
15953
|
__name: "ChatWrapper",
|
15874
15954
|
props: {
|
15875
15955
|
isOpenChatPanel: {
|
@@ -15882,13 +15962,13 @@ const bu = /* @__PURE__ */ j(Y1, [["render", F1], ["__scopeId", "data-v-e71ea0ed
|
|
15882
15962
|
}
|
15883
15963
|
},
|
15884
15964
|
setup(e) {
|
15885
|
-
return (f, n) => (r(),
|
15886
|
-
e.isSelectedChat ? (r(),
|
15965
|
+
return (f, n) => (r(), d("div", $1, [
|
15966
|
+
e.isSelectedChat ? (r(), d("div", W1, [
|
15887
15967
|
F(f.$slots, "default", {}, void 0, !0)
|
15888
|
-
])) : (r(),
|
15968
|
+
])) : (r(), d("div", J1, n[0] || (n[0] = [
|
15889
15969
|
i("p", null, " Выберите контакт для начала общения ", -1)
|
15890
15970
|
]))),
|
15891
|
-
e.isOpenChatPanel ? (r(),
|
15971
|
+
e.isOpenChatPanel ? (r(), d("div", {
|
15892
15972
|
key: 2,
|
15893
15973
|
class: "chat-wrapper__chat-panel",
|
15894
15974
|
style: L({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
|
@@ -15897,45 +15977,45 @@ const bu = /* @__PURE__ */ j(Y1, [["render", F1], ["__scopeId", "data-v-e71ea0ed
|
|
15897
15977
|
], 4)) : h("", !0)
|
15898
15978
|
]));
|
15899
15979
|
}
|
15900
|
-
}),
|
15980
|
+
}), vl = /* @__PURE__ */ j(H1, [["__scopeId", "data-v-885e7d38"]]);
|
15901
15981
|
export {
|
15902
15982
|
Ua as A,
|
15903
|
-
|
15904
|
-
|
15983
|
+
nn as B,
|
15984
|
+
el as C,
|
15905
15985
|
Ra as D,
|
15906
|
-
|
15986
|
+
yl as E,
|
15907
15987
|
fa as F,
|
15908
|
-
|
15909
|
-
|
15988
|
+
ke as G,
|
15989
|
+
Ne as H,
|
15910
15990
|
ma as I,
|
15911
|
-
|
15912
|
-
|
15913
|
-
|
15991
|
+
il as S,
|
15992
|
+
ka as T,
|
15993
|
+
tl as U,
|
15914
15994
|
j as _,
|
15915
|
-
|
15916
|
-
|
15917
|
-
|
15918
|
-
|
15919
|
-
|
15920
|
-
|
15921
|
-
|
15922
|
-
|
15995
|
+
fl as a,
|
15996
|
+
nl as b,
|
15997
|
+
al as c,
|
15998
|
+
Al as d,
|
15999
|
+
sl as e,
|
16000
|
+
ol as f,
|
16001
|
+
ll as g,
|
16002
|
+
of as h,
|
15923
16003
|
yt as i,
|
15924
16004
|
Ts as j,
|
15925
|
-
|
15926
|
-
|
15927
|
-
|
15928
|
-
|
15929
|
-
|
15930
|
-
|
15931
|
-
|
15932
|
-
|
15933
|
-
|
15934
|
-
|
15935
|
-
|
16005
|
+
ul as k,
|
16006
|
+
rl as l,
|
16007
|
+
cl as m,
|
16008
|
+
gl as n,
|
16009
|
+
ml as o,
|
16010
|
+
pl as p,
|
16011
|
+
Ml as q,
|
16012
|
+
hl as r,
|
16013
|
+
bl as s,
|
16014
|
+
vl as t,
|
16015
|
+
dl as u,
|
15936
16016
|
P1 as v,
|
15937
16017
|
Z1 as w,
|
15938
16018
|
G1 as x,
|
15939
16019
|
X1 as y,
|
15940
|
-
|
16020
|
+
Lf as z
|
15941
16021
|
};
|