@mobilon-dev/chotto 0.0.52 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
|
|
1
|
-
import { openBlock as c, createElementBlock as d, createElementVNode as
|
2
|
-
const
|
1
|
+
import { openBlock as c, createElementBlock as d, createElementVNode as o, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as ke, watch as Oe, nextTick as vt, unref as j, withDirectives as we, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as q, withCtx as H, createBlock as F, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as P, useId as St, onMounted as Ne, onUnmounted as zt, computed as U, Teleport as Ot, toRef as va, vModelRadio as Ia, getCurrentInstance as _a, toRaw as Cn, onBeforeUnmount as wa, provide as Ct, reactive as ka, readonly as Na, vShow as Df, resolveComponent as If, h as un, defineAsyncComponent as Da, createApp as ja } from "vue";
|
2
|
+
const z = (e, f) => {
|
3
3
|
const t = e.__vccOpts || e;
|
4
4
|
for (const [n, a] of f)
|
5
5
|
t[n] = a;
|
@@ -25,7 +25,7 @@ const S = (e, f) => {
|
|
25
25
|
setup(e, { emit: f }) {
|
26
26
|
const t = e;
|
27
27
|
return (n, a) => e.chat ? (c(), d("div", Ea, [
|
28
|
-
|
28
|
+
o("div", Ta, [
|
29
29
|
t.chat.avatar ? (c(), d("img", {
|
30
30
|
key: 0,
|
31
31
|
src: t.chat.avatar,
|
@@ -33,18 +33,18 @@ const S = (e, f) => {
|
|
33
33
|
height: "48"
|
34
34
|
}, null, 8, Va)) : (c(), d("span", xa))
|
35
35
|
]),
|
36
|
-
|
37
|
-
|
36
|
+
o("div", Sa, [
|
37
|
+
o("h2", za, w(e.chat.name), 1),
|
38
38
|
e.chat["lastActivity.time"] ? (c(), d("p", Oa, w(e.chat["lastActivity.time"]), 1)) : b("", !0)
|
39
39
|
]),
|
40
|
-
|
40
|
+
o("div", Ca, [
|
41
41
|
G(n.$slots, "actions", {}, void 0, !0)
|
42
42
|
])
|
43
43
|
])) : b("", !0);
|
44
44
|
}
|
45
|
-
}, pu = /* @__PURE__ */
|
45
|
+
}, pu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-e1d212c7"]]), he = I([]), At = (e) => {
|
46
46
|
const f = I(0);
|
47
|
-
let t = he.value.find(({ id:
|
47
|
+
let t = he.value.find(({ id: l }) => l == e);
|
48
48
|
t != null ? f.value = he.value.indexOf(t) : (he.value.push({
|
49
49
|
id: e,
|
50
50
|
text: "",
|
@@ -56,19 +56,19 @@ const S = (e, f) => {
|
|
56
56
|
text: "",
|
57
57
|
file: void 0
|
58
58
|
};
|
59
|
-
}, a = (
|
59
|
+
}, a = (l) => {
|
60
60
|
he.value[f.value] = {
|
61
61
|
id: i().id,
|
62
|
-
text:
|
62
|
+
text: l,
|
63
63
|
file: i().file
|
64
64
|
};
|
65
|
-
},
|
65
|
+
}, A = (l) => {
|
66
66
|
he.value[f.value] = {
|
67
67
|
id: i().id,
|
68
68
|
text: i().text,
|
69
|
-
file:
|
69
|
+
file: l
|
70
70
|
};
|
71
|
-
},
|
71
|
+
}, s = () => {
|
72
72
|
he.value[f.value] = {
|
73
73
|
id: i().id,
|
74
74
|
text: i().text,
|
@@ -78,7 +78,7 @@ const S = (e, f) => {
|
|
78
78
|
function i() {
|
79
79
|
return he.value[f.value];
|
80
80
|
}
|
81
|
-
return { getMessage: i, resetMessage: n, setMessageFile:
|
81
|
+
return { getMessage: i, resetMessage: n, setMessageFile: A, resetMessageFile: s, setMessageText: a };
|
82
82
|
}, Ua = {
|
83
83
|
"component.ChatList.Title": "Чаты",
|
84
84
|
"component.ChatFilter.InputPlaceholder": "Поиск диалога",
|
@@ -102,7 +102,7 @@ const S = (e, f) => {
|
|
102
102
|
name: "Pусский",
|
103
103
|
flag: "russian"
|
104
104
|
}
|
105
|
-
],
|
105
|
+
], cn = I(Ln[1]);
|
106
106
|
let Qa = {
|
107
107
|
ru: Ua,
|
108
108
|
en: Ba
|
@@ -110,11 +110,11 @@ let Qa = {
|
|
110
110
|
const Se = Ra().t;
|
111
111
|
function Ra() {
|
112
112
|
function e(f) {
|
113
|
-
return Qa[
|
113
|
+
return Qa[cn.value.code][f];
|
114
114
|
}
|
115
115
|
return {
|
116
116
|
t: e,
|
117
|
-
locale:
|
117
|
+
locale: cn,
|
118
118
|
locales: Ln
|
119
119
|
};
|
120
120
|
}
|
@@ -129,28 +129,28 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
129
129
|
},
|
130
130
|
emits: ["send", "typing", "selectChannel"],
|
131
131
|
setup(e, { emit: f }) {
|
132
|
-
const t = f, n = ke("chatAppId"), { resetMessage: a, getMessage:
|
132
|
+
const t = f, n = ke("chatAppId"), { resetMessage: a, getMessage: A, setMessageText: s } = At(n), i = I(null);
|
133
133
|
Oe(
|
134
|
-
() =>
|
134
|
+
() => A().text,
|
135
135
|
() => {
|
136
136
|
vt(function() {
|
137
137
|
i.value.style.height = "auto", i.value.style.scrollHeight = "auto", i.value.style.height = i.value.scrollHeight + "px";
|
138
138
|
});
|
139
139
|
}
|
140
140
|
);
|
141
|
-
const
|
142
|
-
t("typing",
|
143
|
-
},
|
144
|
-
if (
|
145
|
-
let m =
|
146
|
-
|
147
|
-
`, m, m, "end"),
|
141
|
+
const l = (u) => {
|
142
|
+
t("typing", u.target.value);
|
143
|
+
}, r = (u) => {
|
144
|
+
if (u.ctrlKey) {
|
145
|
+
let m = u.target.selectionStart;
|
146
|
+
u.target.setRangeText(`
|
147
|
+
`, m, m, "end"), s(u.target.value);
|
148
148
|
} else
|
149
|
-
|
149
|
+
u.preventDefault(), g();
|
150
150
|
}, g = () => {
|
151
151
|
var m;
|
152
|
-
const
|
153
|
-
if (
|
152
|
+
const u = I(A());
|
153
|
+
if (u.value.text != "" || u.value.file) {
|
154
154
|
const p = {
|
155
155
|
type: null,
|
156
156
|
text: null,
|
@@ -158,41 +158,41 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
158
158
|
filename: null,
|
159
159
|
size: null
|
160
160
|
};
|
161
|
-
|
161
|
+
u.value.file ? (p.type = "message." + u.value.file.type, p.url = u.value.file.url, p.filename = u.value.file.name, p.size = u.value.file.size, p.text = (m = u == null ? void 0 : u.value) == null ? void 0 : m.text.trim()) : (p.type = "message.text", p.text = u.value.text.trim()), t("send", p), a(), j(i).focus();
|
162
162
|
}
|
163
163
|
};
|
164
|
-
return (
|
165
|
-
|
166
|
-
|
167
|
-
id: "chat-input-first-line-" +
|
164
|
+
return (u, m) => (c(), d("div", Ya, [
|
165
|
+
o("div", qa, [
|
166
|
+
o("div", {
|
167
|
+
id: "chat-input-first-line-" + j(n),
|
168
168
|
class: "chat-input__first-line"
|
169
169
|
}, null, 8, Ha),
|
170
|
-
|
171
|
-
we(
|
170
|
+
o("div", Fa, [
|
171
|
+
we(o("textarea", {
|
172
172
|
ref_key: "refInput",
|
173
173
|
ref: i,
|
174
|
-
"onUpdate:modelValue": m[0] || (m[0] = (p) =>
|
174
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => j(A)().text = p),
|
175
175
|
class: "chat-input__input",
|
176
|
-
placeholder:
|
177
|
-
onKeydown: Ma(
|
178
|
-
onInput:
|
176
|
+
placeholder: j(Se)("component.ChatInput.InputPlaceholder"),
|
177
|
+
onKeydown: Ma(r, ["enter"]),
|
178
|
+
onInput: l
|
179
179
|
}, null, 40, Pa), [
|
180
|
-
[xt,
|
180
|
+
[xt, j(A)().text]
|
181
181
|
]),
|
182
|
-
|
183
|
-
class:
|
182
|
+
o("button", {
|
183
|
+
class: x(["chat-input__button-send", { "chat-input__button-send-disabled": j(A)().text == "" && !j(A)().file }]),
|
184
184
|
onClick: g
|
185
185
|
}, m[1] || (m[1] = [
|
186
|
-
|
186
|
+
o("span", { class: "pi pi-send" }, null, -1)
|
187
187
|
]), 2)
|
188
188
|
]),
|
189
|
-
|
190
|
-
G(
|
189
|
+
o("div", $a, [
|
190
|
+
G(u.$slots, "buttons", {}, void 0, !0)
|
191
191
|
])
|
192
192
|
])
|
193
193
|
]));
|
194
194
|
}
|
195
|
-
}, hu = /* @__PURE__ */
|
195
|
+
}, hu = /* @__PURE__ */ z(Wa, [["__scopeId", "data-v-23fafc19"]]), Ka = { class: "chat-list" }, Ja = { class: "chat-list__title" }, Ga = {
|
196
196
|
key: 0,
|
197
197
|
class: "pi pi-minus"
|
198
198
|
}, Za = {
|
@@ -219,27 +219,27 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
219
219
|
setup(e, { emit: f }) {
|
220
220
|
const t = I(""), n = I(!1), a = () => {
|
221
221
|
n.value = !1;
|
222
|
-
},
|
223
|
-
|
224
|
-
const m =
|
225
|
-
m.isSelected = !0,
|
226
|
-
},
|
227
|
-
if (Number(
|
228
|
-
if (Number(
|
229
|
-
if (Number(
|
230
|
-
}).toSorted((
|
231
|
-
if (
|
232
|
-
if (
|
233
|
-
if (
|
234
|
-
}).filter((
|
235
|
-
t.value =
|
236
|
-
}, g = (
|
237
|
-
return (
|
238
|
-
|
222
|
+
}, A = e, s = f, i = (u) => {
|
223
|
+
A.chats.forEach((p) => p.isSelected = !1);
|
224
|
+
const m = A.chats.find((p) => p.chatId === u.chatId);
|
225
|
+
m.isSelected = !0, s("select", u);
|
226
|
+
}, l = () => A.chats.toSorted((u, m) => {
|
227
|
+
if (Number(u["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
|
228
|
+
if (Number(u["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
|
229
|
+
if (Number(u["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
|
230
|
+
}).toSorted((u, m) => {
|
231
|
+
if (u.countUnread > m.countUnread) return -1;
|
232
|
+
if (u.countUnread < m.countUnread) return 1;
|
233
|
+
if (u.countUnread == m.countUnread) return 0;
|
234
|
+
}).filter((u) => u.name.includes(t.value) || u.metadata.includes(t.value)), r = (u) => {
|
235
|
+
t.value = u;
|
236
|
+
}, g = (u) => s("action", u);
|
237
|
+
return (u, m) => (c(), d("div", Ka, [
|
238
|
+
o("div", {
|
239
239
|
class: "chat-list__title-container",
|
240
240
|
onMouseleave: a
|
241
241
|
}, [
|
242
|
-
|
242
|
+
o("h2", Ja, w(j(Se)("component.ChatList.Title")), 1),
|
243
243
|
e.actions.length ? (c(), d("button", {
|
244
244
|
key: 0,
|
245
245
|
class: "chat-list__button-actions",
|
@@ -249,7 +249,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
249
249
|
])) : b("", !0),
|
250
250
|
L(q, null, {
|
251
251
|
default: H(() => [
|
252
|
-
n.value && e.actions ? (c(), F(
|
252
|
+
n.value && e.actions ? (c(), F(j(je), {
|
253
253
|
key: 0,
|
254
254
|
actions: e.actions,
|
255
255
|
class: "chat-list__context-menu",
|
@@ -259,14 +259,14 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
259
259
|
_: 1
|
260
260
|
})
|
261
261
|
], 32),
|
262
|
-
e.filterEnabled ? (c(), F(
|
262
|
+
e.filterEnabled ? (c(), F(j(_s), {
|
263
263
|
key: 0,
|
264
264
|
class: "chat-list__filter",
|
265
|
-
onUpdate:
|
265
|
+
onUpdate: r
|
266
266
|
})) : b("", !0),
|
267
|
-
|
268
|
-
|
269
|
-
(c(!0), d($, null, Z(
|
267
|
+
o("div", Xa, [
|
268
|
+
o("div", eA, [
|
269
|
+
(c(!0), d($, null, Z(l().filter((p) => p.isFixedTop), (p) => (c(), F(j(dt), {
|
270
270
|
key: p.chatId,
|
271
271
|
class: "chat-list__item",
|
272
272
|
chat: p,
|
@@ -274,8 +274,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
274
274
|
onAction: g
|
275
275
|
}, null, 8, ["chat"]))), 128))
|
276
276
|
]),
|
277
|
-
|
278
|
-
(c(!0), d($, null, Z(
|
277
|
+
o("div", fA, [
|
278
|
+
(c(!0), d($, null, Z(l().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), F(j(dt), {
|
279
279
|
key: p.chatId,
|
280
280
|
class: "chat-list__item",
|
281
281
|
chat: p,
|
@@ -283,8 +283,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
283
283
|
onAction: g
|
284
284
|
}, null, 8, ["chat"]))), 128))
|
285
285
|
]),
|
286
|
-
|
287
|
-
(c(!0), d($, null, Z(
|
286
|
+
o("div", tA, [
|
287
|
+
(c(!0), d($, null, Z(l().filter((p) => p.isFixedBottom), (p) => (c(), F(j(dt), {
|
288
288
|
key: p.chatId,
|
289
289
|
class: "chat-list__item",
|
290
290
|
chat: p,
|
@@ -295,7 +295,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
295
295
|
])
|
296
296
|
]));
|
297
297
|
}
|
298
|
-
}, Mu = /* @__PURE__ */
|
298
|
+
}, Mu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-05a7f886"]]), aA = { class: "message-feed__container" }, AA = {
|
299
299
|
key: 0,
|
300
300
|
class: "message-feed__unread-amount"
|
301
301
|
}, sA = /* @__PURE__ */ K({
|
@@ -323,10 +323,10 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
323
323
|
},
|
324
324
|
emits: ["messageAction", "loadMore"],
|
325
325
|
setup(e, { emit: f }) {
|
326
|
-
const t = I(), n = I(!1), a = e,
|
327
|
-
const
|
328
|
-
|
329
|
-
}, i = (
|
326
|
+
const t = I(), n = I(!1), a = e, A = f, s = () => {
|
327
|
+
const u = j(t);
|
328
|
+
u.scrollHeight - u.scrollTop - u.clientHeight < 100 ? n.value = !1 : n.value = !0, u.scrollTop === 0 && A("loadMore");
|
329
|
+
}, i = (u) => ({
|
330
330
|
"message.text": Ol,
|
331
331
|
"message.image": ol,
|
332
332
|
"message.file": P1,
|
@@ -335,31 +335,31 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
335
335
|
"message.call": Er,
|
336
336
|
"message.system": zr,
|
337
337
|
"system.date": Xl,
|
338
|
-
"message.typing":
|
339
|
-
})[
|
340
|
-
function
|
338
|
+
"message.typing": On
|
339
|
+
})[u];
|
340
|
+
function l() {
|
341
341
|
a.isScrollToBottomOnUpdateObjectsEnabled && vt(function() {
|
342
|
-
const
|
343
|
-
|
342
|
+
const u = j(t);
|
343
|
+
u.scrollTop = u.scrollHeight;
|
344
344
|
});
|
345
345
|
}
|
346
|
-
function
|
346
|
+
function r() {
|
347
347
|
vt(function() {
|
348
|
-
const
|
349
|
-
|
348
|
+
const u = j(t);
|
349
|
+
u.scrollTop = u.scrollHeight;
|
350
350
|
});
|
351
351
|
}
|
352
|
-
ya(() =>
|
353
|
-
const g = (
|
354
|
-
|
352
|
+
ya(() => l), Oe(() => a.objects, l);
|
353
|
+
const g = (u) => {
|
354
|
+
A("messageAction", u);
|
355
355
|
};
|
356
|
-
return (
|
356
|
+
return (u, m) => (c(), d("div", {
|
357
357
|
ref_key: "refFeed",
|
358
358
|
ref: t,
|
359
359
|
class: "message-feed",
|
360
|
-
onScroll:
|
360
|
+
onScroll: s
|
361
361
|
}, [
|
362
|
-
|
362
|
+
o("div", aA, [
|
363
363
|
(c(!0), d($, null, Z(e.objects, (p) => (c(), F(ba(i(p.type)), {
|
364
364
|
key: p.messageId,
|
365
365
|
class: "message-feed__message",
|
@@ -367,7 +367,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
367
367
|
onAction: g
|
368
368
|
}, null, 40, ["message"]))), 128))
|
369
369
|
]),
|
370
|
-
e.typing ? (c(), F(
|
370
|
+
e.typing ? (c(), F(j(On), {
|
371
371
|
key: 0,
|
372
372
|
message: {
|
373
373
|
subText: e.typing.title,
|
@@ -379,17 +379,17 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
379
379
|
n.value ? (c(), d("button", {
|
380
380
|
key: 0,
|
381
381
|
class: "message-feed__button-down",
|
382
|
-
onClick:
|
382
|
+
onClick: r
|
383
383
|
}, [
|
384
384
|
e.buttonParams ? (c(), d("div", AA, w(e.buttonParams.unreadAmount), 1)) : b("", !0),
|
385
|
-
m[0] || (m[0] =
|
385
|
+
m[0] || (m[0] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
386
386
|
])) : b("", !0)
|
387
387
|
]),
|
388
388
|
_: 1
|
389
389
|
})
|
390
390
|
], 544));
|
391
391
|
}
|
392
|
-
}), yu = /* @__PURE__ */
|
392
|
+
}), yu = /* @__PURE__ */ z(sA, [["__scopeId", "data-v-4172cced"]]), iA = { class: "profile" }, oA = {
|
393
393
|
key: 0,
|
394
394
|
class: "profile__container"
|
395
395
|
}, lA = {
|
@@ -407,23 +407,23 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
407
407
|
return (f, t) => (c(), d("div", iA, [
|
408
408
|
e.user ? (c(), d("div", oA, [
|
409
409
|
e.user.avatar ? (c(), d("div", lA, [
|
410
|
-
|
410
|
+
o("span", {
|
411
411
|
class: "profile__status",
|
412
412
|
style: P({ backgroundColor: e.user.status })
|
413
413
|
}, null, 4),
|
414
|
-
|
414
|
+
o("img", {
|
415
415
|
src: e.user.avatar,
|
416
416
|
height: "48",
|
417
417
|
width: "48"
|
418
418
|
}, null, 8, rA)
|
419
419
|
])) : b("", !0),
|
420
|
-
|
421
|
-
|
422
|
-
|
420
|
+
o("h2", uA, w(e.user.name), 1),
|
421
|
+
o("p", cA, w(e.user.email), 1),
|
422
|
+
o("p", dA, w(e.user.phone), 1)
|
423
423
|
])) : b("", !0)
|
424
424
|
]));
|
425
425
|
}
|
426
|
-
}, bu = /* @__PURE__ */
|
426
|
+
}, bu = /* @__PURE__ */ z(gA, [["__scopeId", "data-v-04a5ab7d"]]), mA = ["id"], pA = {
|
427
427
|
__name: "ButtonContextMenu",
|
428
428
|
props: {
|
429
429
|
actions: {
|
@@ -454,28 +454,23 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
454
454
|
type: String,
|
455
455
|
required: !1,
|
456
456
|
default: "top"
|
457
|
-
},
|
458
|
-
contextMenuKey: {
|
459
|
-
type: String,
|
460
|
-
required: !1,
|
461
|
-
default: "key"
|
462
457
|
}
|
463
458
|
},
|
464
459
|
emits: ["click", "buttonClick"],
|
465
460
|
setup(e, { emit: f }) {
|
466
|
-
const t = e, n =
|
467
|
-
|
468
|
-
},
|
469
|
-
t.disabled || (t.mode == "click" && (
|
470
|
-
},
|
471
|
-
t.mode == "hover" && !t.disabled && (
|
472
|
-
},
|
473
|
-
t.mode == "hover" && (
|
474
|
-
},
|
475
|
-
t.mode == "click" && s.value && !s.value.contains(
|
461
|
+
const t = e, n = St(), a = f, A = I(null), s = I(null), i = (m) => {
|
462
|
+
A.value.$el.style.display = "none", a("click", m);
|
463
|
+
}, l = () => {
|
464
|
+
t.disabled || (t.mode == "click" && (A.value.$el.style.display = "inherit"), a("buttonClick"));
|
465
|
+
}, r = () => {
|
466
|
+
t.mode == "hover" && !t.disabled && (A.value.$el.style.display = "inherit");
|
467
|
+
}, g = () => {
|
468
|
+
t.mode == "hover" && (A.value.$el.style.display = "none");
|
469
|
+
}, u = (m) => {
|
470
|
+
t.mode == "click" && s.value && !s.value.contains(m.target) && (A.value.$el.style.display = "none");
|
476
471
|
};
|
477
472
|
return Ne(() => {
|
478
|
-
const
|
473
|
+
const m = {
|
479
474
|
top: {
|
480
475
|
h: -1,
|
481
476
|
w: -0.25
|
@@ -493,57 +488,57 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
493
488
|
w: 1
|
494
489
|
}
|
495
490
|
};
|
496
|
-
let
|
497
|
-
t.menuSide == "top" && (
|
498
|
-
}),
|
499
|
-
document.removeEventListener("click",
|
500
|
-
}), (
|
501
|
-
id: "container-" +
|
491
|
+
let p, h;
|
492
|
+
t.menuSide == "top" && (p = document.getElementById("container-" + n).offsetWidth, h = document.getElementById("context-menu-" + n).offsetHeight, A.value.$el.style.left = m[t.menuSide].w * p + "px"), t.menuSide == "bottom" && (p = document.getElementById("context-menu-" + n).offsetWidth, h = document.getElementById("container-" + n).offsetHeight, A.value.$el.style.right = m[t.menuSide].w * p + "px"), t.menuSide == "left" && (p = document.getElementById("container-" + n).offsetWidth, h = document.getElementById("context-menu-" + n).offsetHeight, A.value.$el.style.right = m[t.menuSide].w * p + "px"), t.menuSide == "right" && (p = document.getElementById("container-" + n).offsetWidth, h = document.getElementById("context-menu-" + n).offsetHeight, A.value.$el.style.left = m[t.menuSide].w * p + "px"), A.value.$el.style.top = m[t.menuSide].h * h + "px", A.value.$el.style.display = "none", document.addEventListener("click", u);
|
493
|
+
}), zt(() => {
|
494
|
+
document.removeEventListener("click", u);
|
495
|
+
}), (m, p) => (c(), d("div", {
|
496
|
+
id: "container-" + j(n),
|
502
497
|
ref_key: "actionScope",
|
503
498
|
ref: s,
|
504
499
|
style: { position: "relative", width: "fit-content" }
|
505
500
|
}, [
|
506
|
-
|
507
|
-
class:
|
501
|
+
o("div", {
|
502
|
+
class: x(["button", {
|
508
503
|
"disabled-button": e.disabled
|
509
504
|
}]),
|
510
|
-
onClick:
|
511
|
-
onMouseover:
|
512
|
-
onMouseout:
|
505
|
+
onClick: l,
|
506
|
+
onMouseover: r,
|
507
|
+
onMouseout: g
|
513
508
|
}, [
|
514
|
-
|
515
|
-
class:
|
509
|
+
o("span", {
|
510
|
+
class: x(e.buttonClass)
|
516
511
|
}, w(e.buttonTitle), 3)
|
517
512
|
], 34),
|
518
|
-
L(
|
519
|
-
id: "context-menu-" +
|
513
|
+
L(j(je), {
|
514
|
+
id: "context-menu-" + j(n),
|
520
515
|
ref_key: "contextMenu",
|
521
|
-
ref:
|
516
|
+
ref: A,
|
522
517
|
actions: e.actions,
|
523
|
-
onMouseover:
|
524
|
-
onMouseout:
|
525
|
-
onClick:
|
518
|
+
onMouseover: r,
|
519
|
+
onMouseout: g,
|
520
|
+
onClick: i
|
526
521
|
}, null, 8, ["id", "actions"])
|
527
522
|
], 8, mA));
|
528
523
|
}
|
529
|
-
}, Un = /* @__PURE__ */
|
524
|
+
}, Un = /* @__PURE__ */ z(pA, [["__scopeId", "data-v-febe2c45"]]);
|
530
525
|
function vu(e) {
|
531
526
|
if (!e || e === "") return;
|
532
|
-
const f = +new Date(Number(e) * 1e3), t = +/* @__PURE__ */ new Date(), n = Math.floor((t - f) / 1e3), a = Math.floor(n / 60),
|
533
|
-
return
|
527
|
+
const f = +new Date(Number(e) * 1e3), t = +/* @__PURE__ */ new Date(), n = Math.floor((t - f) / 1e3), a = Math.floor(n / 60), A = Math.floor(a / 60), s = Math.floor(A / 24);
|
528
|
+
return s > 30 ? new Date(f).toLocaleDateString("ru-RU") : s > 0 ? `${s} ${s === 1 ? "день" : "дня"} назад` : A > 0 ? `${A} ${A === 1 ? "час" : "часа"} назад` : a > 0 ? `${a} ${a === 1 ? "минута" : "минуты"} назад` : n > 0 ? `${n} ${n === 1 ? "секунда" : "секунды"} назад` : "Только что";
|
534
529
|
}
|
535
530
|
const Iu = (e) => {
|
536
531
|
const f = [];
|
537
532
|
let t = null;
|
538
533
|
for (let n = 0; n < e.length; n++) {
|
539
|
-
const a = e[n],
|
540
|
-
console.log("message", a,
|
534
|
+
const a = e[n], A = new Date(a.timestamp * 1e3).toLocaleDateString();
|
535
|
+
console.log("message", a, A), A !== t && (f.push({
|
541
536
|
isSeparator: !0,
|
542
|
-
day:
|
537
|
+
day: A,
|
543
538
|
// Можно использовать локальную дату, если необходимо
|
544
|
-
text:
|
539
|
+
text: A,
|
545
540
|
type: "system.date"
|
546
|
-
}), t =
|
541
|
+
}), t = A), f.push(a);
|
547
542
|
}
|
548
543
|
return f;
|
549
544
|
}, _u = async () => {
|
@@ -555,7 +550,7 @@ const Iu = (e) => {
|
|
555
550
|
} catch {
|
556
551
|
console.log("no audio permissions");
|
557
552
|
}
|
558
|
-
}, wu = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0),
|
553
|
+
}, wu = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0), dn = (e) => {
|
559
554
|
let f = "file";
|
560
555
|
return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
|
561
556
|
}, Pe = ["read", "received", "sent"], $e = (e) => {
|
@@ -601,37 +596,37 @@ const Iu = (e) => {
|
|
601
596
|
function a() {
|
602
597
|
n("reset");
|
603
598
|
}
|
604
|
-
return (
|
605
|
-
|
599
|
+
return (A, s) => (c(), d("div", hA, [
|
600
|
+
o("div", MA, [
|
606
601
|
t.isImage ? (c(), d("div", yA, [
|
607
|
-
|
602
|
+
o("img", {
|
608
603
|
src: e.previewUrl,
|
609
604
|
alt: "Image Preview",
|
610
605
|
class: "preview__image"
|
611
606
|
}, null, 8, bA)
|
612
607
|
])) : t.isVideo ? (c(), d("div", vA, [
|
613
|
-
|
608
|
+
o("video", {
|
614
609
|
src: e.previewUrl,
|
615
610
|
class: "preview__video"
|
616
611
|
}, null, 8, IA)
|
617
|
-
])) : t.isAudio ? (c(), d("div", _A,
|
618
|
-
|
612
|
+
])) : t.isAudio ? (c(), d("div", _A, s[0] || (s[0] = [
|
613
|
+
o("span", {
|
619
614
|
class: "pi pi-headphones",
|
620
615
|
style: { "font-size": "2.5rem" }
|
621
616
|
}, null, -1)
|
622
|
-
]))) : (c(), d("div", wA,
|
623
|
-
|
617
|
+
]))) : (c(), d("div", wA, s[1] || (s[1] = [
|
618
|
+
o("span", {
|
624
619
|
class: "pi pi-file",
|
625
620
|
style: { "font-size": "2.5rem" }
|
626
621
|
}, null, -1)
|
627
622
|
])))
|
628
623
|
]),
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
624
|
+
o("div", kA, [
|
625
|
+
o("div", NA, [
|
626
|
+
o("span", DA, w(e.fileName), 1),
|
627
|
+
o("span", jA, w(e.fileSize), 1)
|
633
628
|
]),
|
634
|
-
|
629
|
+
o("span", {
|
635
630
|
class: "pi pi-times preview__reset",
|
636
631
|
style: { "font-size": "1rem" },
|
637
632
|
onClick: a
|
@@ -639,16 +634,20 @@ const Iu = (e) => {
|
|
639
634
|
])
|
640
635
|
]));
|
641
636
|
}
|
642
|
-
}, TA = /* @__PURE__ */
|
637
|
+
}, TA = /* @__PURE__ */ z(EA, [["__scopeId", "data-v-c4e18bbf"]]), VA = { class: "uploader-container" }, xA = { key: 0 }, SA = { key: 1 }, zA = {
|
643
638
|
__name: "FileUploader",
|
644
639
|
props: {
|
645
640
|
filebumpUrl: {
|
646
641
|
type: String
|
642
|
+
},
|
643
|
+
state: {
|
644
|
+
type: String,
|
645
|
+
default: "active"
|
647
646
|
}
|
648
647
|
},
|
649
648
|
emits: ["fileUploaded"],
|
650
649
|
setup(e, { emit: f }) {
|
651
|
-
const t = e, n = I(null), a = I(""),
|
650
|
+
const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), l = I(!1), r = I(null), g = I(""), u = ke("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
|
652
651
|
{
|
653
652
|
action: "audio/*",
|
654
653
|
title: "Аудио",
|
@@ -669,93 +668,92 @@ const Iu = (e) => {
|
|
669
668
|
title: "Файл",
|
670
669
|
prime: "file"
|
671
670
|
}
|
672
|
-
], y = U(() => !
|
673
|
-
n.value = null, p(),
|
674
|
-
}, k = (
|
675
|
-
_(), console.log("onFileSelected",
|
671
|
+
], y = U(() => !h().file), _ = () => {
|
672
|
+
n.value = null, p(), A.value = "", a.value = "";
|
673
|
+
}, k = (T) => {
|
674
|
+
_(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (D(), N());
|
676
675
|
}, D = () => {
|
677
|
-
const
|
678
|
-
if (
|
676
|
+
const T = n.value, O = dn(T.type);
|
677
|
+
if (s.value = !1, i.value = !1, l.value = !1, O === "image" ? s.value = !0 : O === "video" ? i.value = !0 : O === "audio" && (l.value = !0), s.value || i.value) {
|
679
678
|
const R = new FileReader();
|
680
679
|
R.onload = (te) => {
|
681
|
-
|
682
|
-
}, R.readAsDataURL(
|
680
|
+
A.value = te.target.result;
|
681
|
+
}, R.readAsDataURL(T);
|
683
682
|
} else
|
684
|
-
|
683
|
+
A.value = "";
|
685
684
|
const Q = ["б", "Кб", "Мб", "Гб"];
|
686
|
-
let
|
687
|
-
for (;
|
688
|
-
|
689
|
-
|
685
|
+
let C = T.size, B = 0;
|
686
|
+
for (; C > 1024; )
|
687
|
+
C = C / 1024, B++;
|
688
|
+
C = C.toFixed(2) + Q[B], g.value = C;
|
690
689
|
}, N = async () => {
|
691
690
|
a.value = "uploading";
|
692
|
-
const
|
693
|
-
|
691
|
+
const T = new FormData();
|
692
|
+
T.append("file", n.value);
|
694
693
|
const Q = (t.filebumpUrl ? t.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
|
695
694
|
try {
|
696
695
|
const B = await (await fetch(
|
697
696
|
Q,
|
698
697
|
{
|
699
698
|
method: "POST",
|
700
|
-
body:
|
699
|
+
body: T
|
701
700
|
}
|
702
701
|
)).json();
|
703
702
|
a.value = "success", m({
|
704
703
|
url: B.url,
|
705
704
|
name: n.value.name,
|
706
705
|
size: n.value.size,
|
707
|
-
type:
|
706
|
+
type: dn(n.value.type)
|
708
707
|
});
|
709
|
-
} catch (
|
710
|
-
console.error("Ошибка при загрузке файла:",
|
708
|
+
} catch (C) {
|
709
|
+
console.error("Ошибка при загрузке файла:", C), a.value = "error";
|
711
710
|
}
|
712
|
-
},
|
713
|
-
|
714
|
-
},
|
715
|
-
|
711
|
+
}, E = (T) => {
|
712
|
+
r.value && y && (r.value.accept = T.action, r.value.click());
|
713
|
+
}, S = () => {
|
714
|
+
r.value && y && t.state == "active" && r.value.click();
|
716
715
|
};
|
717
|
-
return (
|
718
|
-
|
719
|
-
a.value === "uploading" ? (c(), d("div", xA,
|
720
|
-
|
721
|
-
]))) : a.value === "error" ? (c(), d("div", SA,
|
722
|
-
|
716
|
+
return (T, O) => (c(), d($, null, [
|
717
|
+
o("div", VA, [
|
718
|
+
a.value === "uploading" ? (c(), d("div", xA, O[0] || (O[0] = [
|
719
|
+
o("p", null, "Загрузка файла...", -1)
|
720
|
+
]))) : a.value === "error" ? (c(), d("div", SA, O[1] || (O[1] = [
|
721
|
+
o("p", null, "Ошибка при загрузке файла.", -1)
|
723
722
|
]))) : (c(), F(Un, {
|
724
723
|
key: 2,
|
725
|
-
actions:
|
724
|
+
actions: M,
|
726
725
|
mode: "hover",
|
727
726
|
"button-class": "pi pi-file-arrow-up",
|
728
727
|
"menu-side": "top",
|
729
|
-
|
730
|
-
|
731
|
-
|
732
|
-
onButtonClick: x
|
728
|
+
disabled: !y.value || e.state == "disabled",
|
729
|
+
onClick: E,
|
730
|
+
onButtonClick: S
|
733
731
|
}, null, 8, ["disabled"])),
|
734
|
-
|
732
|
+
o("input", {
|
735
733
|
ref_key: "fileInput",
|
736
|
-
ref:
|
734
|
+
ref: r,
|
737
735
|
style: { display: "none" },
|
738
736
|
type: "file",
|
739
737
|
onChange: k
|
740
738
|
}, null, 544)
|
741
739
|
]),
|
742
|
-
|
740
|
+
j(h)().file ? (c(), F(Ot, {
|
743
741
|
key: 0,
|
744
|
-
to: "#chat-input-first-line-" +
|
742
|
+
to: "#chat-input-first-line-" + j(u)
|
745
743
|
}, [
|
746
744
|
L(TA, {
|
747
|
-
"preview-url":
|
748
|
-
"is-image":
|
745
|
+
"preview-url": A.value,
|
746
|
+
"is-image": s.value,
|
749
747
|
"is-video": i.value,
|
750
|
-
"is-audio":
|
751
|
-
"file-name":
|
748
|
+
"is-audio": l.value,
|
749
|
+
"file-name": j(h)().file.name,
|
752
750
|
"file-size": g.value,
|
753
751
|
onReset: _
|
754
752
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
|
755
753
|
], 8, ["to"])) : b("", !0)
|
756
754
|
], 64));
|
757
755
|
}
|
758
|
-
}, ku = /* @__PURE__ */
|
756
|
+
}, ku = /* @__PURE__ */ z(zA, [["__scopeId", "data-v-1cdabe09"]]), OA = { key: 0 }, CA = ["value", "selected"], LA = {
|
759
757
|
__name: "ThemeMode",
|
760
758
|
props: {
|
761
759
|
themes: {
|
@@ -766,30 +764,30 @@ const Iu = (e) => {
|
|
766
764
|
},
|
767
765
|
setup(e) {
|
768
766
|
const f = e, t = () => {
|
769
|
-
const
|
770
|
-
return
|
771
|
-
}, n = (
|
772
|
-
const
|
773
|
-
a(
|
774
|
-
}, a = (
|
775
|
-
document.documentElement.dataset.theme =
|
767
|
+
const A = f.themes.find((s) => s.default === !0);
|
768
|
+
return A ? A.code : f.themes[0].code;
|
769
|
+
}, n = (A) => {
|
770
|
+
const s = A.target.value;
|
771
|
+
a(s);
|
772
|
+
}, a = (A) => {
|
773
|
+
document.documentElement.dataset.theme = A;
|
776
774
|
};
|
777
775
|
return Ne(() => {
|
778
|
-
const
|
779
|
-
a(
|
780
|
-
}), (
|
781
|
-
|
782
|
-
onChange:
|
776
|
+
const A = t();
|
777
|
+
a(A);
|
778
|
+
}), (A, s) => e.show ? (c(), d("div", OA, [
|
779
|
+
o("select", {
|
780
|
+
onChange: s[0] || (s[0] = (i) => n(i))
|
783
781
|
}, [
|
784
|
-
(c(!0), d($, null, Z(f.themes, (i,
|
785
|
-
key:
|
782
|
+
(c(!0), d($, null, Z(f.themes, (i, l) => (c(), d("option", {
|
783
|
+
key: l,
|
786
784
|
value: i.code,
|
787
785
|
selected: i.default === !0
|
788
786
|
}, w(i.name), 9, CA))), 128))
|
789
787
|
], 32)
|
790
788
|
])) : b("", !0);
|
791
789
|
}
|
792
|
-
}, Nu = /* @__PURE__ */
|
790
|
+
}, Nu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-be17a762"]]), UA = { class: "sidebar" }, BA = { class: "sidebar__container" }, QA = { class: "sidebar__list" }, RA = ["onClick"], YA = ["src", "alt"], qA = { key: 1 }, HA = { class: "sidebar__list-fixed" }, FA = ["onClick"], PA = ["src", "alt"], $A = { key: 1 }, WA = {
|
793
791
|
__name: "SideBar",
|
794
792
|
props: {
|
795
793
|
sidebarItems: {
|
@@ -800,55 +798,55 @@ const Iu = (e) => {
|
|
800
798
|
},
|
801
799
|
emits: ["selectItem"],
|
802
800
|
setup(e, { emit: f }) {
|
803
|
-
const n = va(e, "sidebarItems"), a = f,
|
804
|
-
const
|
805
|
-
a("selectItem",
|
806
|
-
},
|
807
|
-
const
|
808
|
-
return
|
801
|
+
const n = va(e, "sidebarItems"), a = f, A = (i) => {
|
802
|
+
const l = n.value.find((r) => r.itemId === i);
|
803
|
+
a("selectItem", l);
|
804
|
+
}, s = (i) => {
|
805
|
+
const l = i.split(" ");
|
806
|
+
return l.length > 2 ? l.slice(0, 2).join(" ") : i;
|
809
807
|
};
|
810
|
-
return (i,
|
811
|
-
|
812
|
-
|
813
|
-
(c(!0), d($, null, Z(n.value.filter((
|
808
|
+
return (i, l) => (c(), d("div", UA, [
|
809
|
+
o("div", BA, [
|
810
|
+
o("ul", QA, [
|
811
|
+
(c(!0), d($, null, Z(n.value.filter((r) => !r.isFixedBottom), (r, g) => (c(), d("li", {
|
814
812
|
key: g,
|
815
813
|
class: "sidebar__item",
|
816
|
-
onClick: (
|
814
|
+
onClick: (u) => A(r.itemId)
|
817
815
|
}, [
|
818
|
-
|
819
|
-
src:
|
820
|
-
alt:
|
821
|
-
class:
|
816
|
+
o("img", {
|
817
|
+
src: r.icon,
|
818
|
+
alt: r.name,
|
819
|
+
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
822
820
|
}, null, 10, YA),
|
823
|
-
|
821
|
+
r.notificationCount ? (c(), d("span", {
|
824
822
|
key: 0,
|
825
|
-
style: P({ backgroundColor:
|
826
|
-
}, w(
|
827
|
-
|
823
|
+
style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
|
824
|
+
}, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
|
825
|
+
r.name ? (c(), d("p", qA, w(s(r.name)), 1)) : b("", !0)
|
828
826
|
], 8, RA))), 128))
|
829
827
|
]),
|
830
|
-
|
831
|
-
(c(!0), d($, null, Z(n.value.filter((
|
828
|
+
o("ul", HA, [
|
829
|
+
(c(!0), d($, null, Z(n.value.filter((r) => r.isFixedBottom), (r, g) => (c(), d("li", {
|
832
830
|
key: g,
|
833
831
|
class: "sidebar__item",
|
834
|
-
onClick: (
|
832
|
+
onClick: (u) => A(r.itemId)
|
835
833
|
}, [
|
836
|
-
|
837
|
-
src:
|
838
|
-
alt:
|
839
|
-
class:
|
834
|
+
o("img", {
|
835
|
+
src: r.icon,
|
836
|
+
alt: r.name,
|
837
|
+
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
840
838
|
}, null, 10, PA),
|
841
|
-
|
839
|
+
r.notificationCount ? (c(), d("span", {
|
842
840
|
key: 0,
|
843
|
-
style: P({ backgroundColor:
|
844
|
-
}, w(
|
845
|
-
|
841
|
+
style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
|
842
|
+
}, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
|
843
|
+
r.name ? (c(), d("p", $A, w(s(r.name)), 1)) : b("", !0)
|
846
844
|
], 8, FA))), 128))
|
847
845
|
])
|
848
846
|
])
|
849
847
|
]));
|
850
848
|
}
|
851
|
-
}, Du = /* @__PURE__ */
|
849
|
+
}, Du = /* @__PURE__ */ z(WA, [["__scopeId", "data-v-5e22516c"]]), KA = { class: "chat-panel" }, JA = { class: "chat-panel__title-container" }, GA = {
|
852
850
|
key: 0,
|
853
851
|
class: "chat-panel__title"
|
854
852
|
}, ZA = {
|
@@ -863,21 +861,21 @@ const Iu = (e) => {
|
|
863
861
|
emits: ["close-panel"],
|
864
862
|
setup(e, { emit: f }) {
|
865
863
|
return (t, n) => (c(), d("div", KA, [
|
866
|
-
|
864
|
+
o("div", JA, [
|
867
865
|
e.title ? (c(), d("p", GA, w(e.title), 1)) : b("", !0),
|
868
|
-
|
866
|
+
o("button", {
|
869
867
|
class: "chat-panel__button-close",
|
870
868
|
onClick: n[0] || (n[0] = (a) => t.$emit("close-panel"))
|
871
869
|
}, n[1] || (n[1] = [
|
872
|
-
|
870
|
+
o("span", { class: "pi pi-times" }, null, -1)
|
873
871
|
]))
|
874
872
|
]),
|
875
|
-
|
873
|
+
o("div", null, [
|
876
874
|
G(t.$slots, "content", {}, void 0, !0)
|
877
875
|
])
|
878
876
|
]));
|
879
877
|
}
|
880
|
-
}, ju = /* @__PURE__ */
|
878
|
+
}, ju = /* @__PURE__ */ z(ZA, [["__scopeId", "data-v-1f6ac199"]]), XA = { class: "channels" }, es = {
|
881
879
|
key: 0,
|
882
880
|
class: "channels__selected"
|
883
881
|
}, fs = {
|
@@ -898,39 +896,41 @@ const Iu = (e) => {
|
|
898
896
|
type: String,
|
899
897
|
required: !1,
|
900
898
|
default: "hover"
|
899
|
+
},
|
900
|
+
state: {
|
901
|
+
type: String,
|
902
|
+
default: "active"
|
901
903
|
}
|
902
904
|
},
|
903
905
|
emits: ["selectChannel"],
|
904
906
|
setup(e, { emit: f }) {
|
905
|
-
const t =
|
906
|
-
A.value =
|
907
|
+
const t = e, n = f, A = I(t.channels.find((i) => i.type === "default")), s = (i) => {
|
908
|
+
A.value = i, n("selectChannel", A.value);
|
907
909
|
};
|
908
|
-
return (
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
}, [
|
913
|
-
l("div", XA, [
|
910
|
+
return (i, l) => (c(), d("div", XA, [
|
911
|
+
o("div", {
|
912
|
+
class: x(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
913
|
+
}, [
|
914
914
|
A.value ? (c(), d("div", es, [
|
915
915
|
A.value.icon ? (c(), d("span", fs, [
|
916
|
-
|
916
|
+
o("img", {
|
917
917
|
src: A.value.icon
|
918
918
|
}, null, 8, ts)
|
919
919
|
])) : b("", !0),
|
920
|
-
|
920
|
+
o("span", ns, w(A.value.title), 1)
|
921
921
|
])) : (c(), d("span", as, "Канал не выбран")),
|
922
922
|
L(Un, {
|
923
923
|
actions: e.channels,
|
924
924
|
mode: e.mode,
|
925
925
|
"button-class": "pi pi-list",
|
926
926
|
"menu-side": "top",
|
927
|
-
|
928
|
-
onClick:
|
929
|
-
}, null, 8, ["actions", "mode"])
|
930
|
-
])
|
931
|
-
]
|
927
|
+
disabled: e.state == "disabled",
|
928
|
+
onClick: s
|
929
|
+
}, null, 8, ["actions", "mode", "disabled"])
|
930
|
+
], 2)
|
931
|
+
]));
|
932
932
|
}
|
933
|
-
}, Eu = /* @__PURE__ */
|
933
|
+
}, Eu = /* @__PURE__ */ z(As, [["__scopeId", "data-v-018ec6fe"]]), ss = { class: "chat-item__avatar-container" }, is = ["src"], os = {
|
934
934
|
key: 1,
|
935
935
|
class: "pi pi-user"
|
936
936
|
}, ls = { class: "chat-item__info-container" }, rs = { class: "chat-item__name" }, us = {
|
@@ -963,15 +963,15 @@ const Iu = (e) => {
|
|
963
963
|
setup(e, { emit: f }) {
|
964
964
|
const t = e, n = f, a = () => {
|
965
965
|
n("select", t.chat);
|
966
|
-
},
|
966
|
+
}, A = () => t.chat.isSelected ? "chat-item__selected" : "chat-item", s = (y) => {
|
967
967
|
g(), n("action", { chatId: t.chat.chatId, ...y });
|
968
|
-
}, i = I(!1),
|
969
|
-
|
968
|
+
}, i = I(!1), l = I(!1), r = () => {
|
969
|
+
l.value = !0;
|
970
970
|
}, g = () => {
|
971
|
-
|
972
|
-
},
|
971
|
+
l.value = !1, i.value = !1;
|
972
|
+
}, u = U(() => $e(t.chat["lastMessage.status"]));
|
973
973
|
let m;
|
974
|
-
const p = I(0),
|
974
|
+
const p = I(0), h = [Se("component.ChatItem.typing") + ".", Se("component.ChatItem.typing") + "..", Se("component.ChatItem.typing") + "..."], M = U(() => t.chat.typing ? h[p.value] : t.chat.lastMessage);
|
975
975
|
return Oe(
|
976
976
|
() => t.chat.typing,
|
977
977
|
() => {
|
@@ -981,16 +981,16 @@ const Iu = (e) => {
|
|
981
981
|
},
|
982
982
|
{ immediate: !0 }
|
983
983
|
), (y, _) => (c(), d("div", {
|
984
|
-
class:
|
984
|
+
class: x(A()),
|
985
985
|
onClick: a
|
986
986
|
}, [
|
987
|
-
|
987
|
+
o("div", {
|
988
988
|
class: "chat-item__container",
|
989
|
-
onMouseenter:
|
989
|
+
onMouseenter: r,
|
990
990
|
onMouseleave: g
|
991
991
|
}, [
|
992
|
-
|
993
|
-
|
992
|
+
o("div", ss, [
|
993
|
+
o("span", {
|
994
994
|
class: "chat-item__status-user",
|
995
995
|
style: P({ backgroundColor: t.chat.status })
|
996
996
|
}, null, 4),
|
@@ -1001,38 +1001,38 @@ const Iu = (e) => {
|
|
1001
1001
|
width: "48"
|
1002
1002
|
}, null, 8, is)) : (c(), d("span", os))
|
1003
1003
|
]),
|
1004
|
-
|
1005
|
-
|
1006
|
-
e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(
|
1004
|
+
o("div", ls, [
|
1005
|
+
o("div", rs, w(e.chat.name), 1),
|
1006
|
+
e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(M.value), 1)) : b("", !0)
|
1007
1007
|
]),
|
1008
|
-
|
1009
|
-
e.chat["lastActivity.time"] && !
|
1008
|
+
o("div", cs, [
|
1009
|
+
e.chat["lastActivity.time"] && !l.value ? (c(), d("div", ds, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
|
1010
1010
|
e.chat.countUnread > 0 ? (c(), d("div", gs, w(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : b("", !0),
|
1011
|
-
|
1011
|
+
l.value && e.chat.actions ? (c(), d("button", {
|
1012
1012
|
key: 2,
|
1013
1013
|
class: "chat-item__menu-button",
|
1014
1014
|
onClick: _[0] || (_[0] = (k) => i.value = !i.value)
|
1015
1015
|
}, _[1] || (_[1] = [
|
1016
|
-
|
1016
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1017
1017
|
]))) : b("", !0),
|
1018
1018
|
e.chat.countUnread < 1 ? (c(), d("div", ms, [
|
1019
|
-
|
1019
|
+
j(Pe).includes(e.chat["lastMessage.status"]) ? (c(), d("div", {
|
1020
1020
|
key: 0,
|
1021
|
-
class:
|
1021
|
+
class: x(["chat-item__status-message", u.value])
|
1022
1022
|
}, [
|
1023
1023
|
e.chat["lastMessage.status"] !== "sent" ? (c(), d("span", ps)) : b("", !0),
|
1024
|
-
_[2] || (_[2] =
|
1024
|
+
_[2] || (_[2] = o("span", { class: "pi pi-check" }, null, -1))
|
1025
1025
|
], 2)) : b("", !0),
|
1026
1026
|
e.chat.isFixedTop || e.chat.isFixedBottom ? (c(), d("span", hs)) : b("", !0)
|
1027
1027
|
])) : b("", !0)
|
1028
1028
|
]),
|
1029
1029
|
L(q, { name: "menu" }, {
|
1030
1030
|
default: H(() => [
|
1031
|
-
i.value && e.chat.actions ? (c(), F(
|
1031
|
+
i.value && e.chat.actions ? (c(), F(j(je), {
|
1032
1032
|
key: 0,
|
1033
1033
|
class: "chat-item__context-menu",
|
1034
1034
|
actions: e.chat.actions,
|
1035
|
-
onClick:
|
1035
|
+
onClick: s
|
1036
1036
|
}, null, 8, ["actions"])) : b("", !0)
|
1037
1037
|
]),
|
1038
1038
|
_: 1
|
@@ -1040,28 +1040,28 @@ const Iu = (e) => {
|
|
1040
1040
|
], 32)
|
1041
1041
|
], 2));
|
1042
1042
|
}
|
1043
|
-
}, dt = /* @__PURE__ */
|
1043
|
+
}, dt = /* @__PURE__ */ z(Ms, [["__scopeId", "data-v-30b00fea"]]), ys = { class: "chat-filter" }, bs = { class: "chat-filter__container" }, vs = ["placeholder"], Is = {
|
1044
1044
|
__name: "ChatFilter",
|
1045
1045
|
emits: ["update"],
|
1046
1046
|
setup(e, { emit: f }) {
|
1047
1047
|
const t = I(""), n = f, a = () => {
|
1048
|
-
const
|
1049
|
-
n("update",
|
1048
|
+
const A = j(t);
|
1049
|
+
n("update", A.value);
|
1050
1050
|
};
|
1051
|
-
return (
|
1052
|
-
|
1053
|
-
|
1051
|
+
return (A, s) => (c(), d("div", ys, [
|
1052
|
+
o("div", bs, [
|
1053
|
+
o("input", {
|
1054
1054
|
ref_key: "refInput",
|
1055
1055
|
ref: t,
|
1056
1056
|
class: "chat-filter__input",
|
1057
1057
|
type: "text",
|
1058
|
-
placeholder:
|
1058
|
+
placeholder: j(Se)("component.ChatFilter.InputPlaceholder"),
|
1059
1059
|
onInput: a
|
1060
1060
|
}, null, 40, vs)
|
1061
1061
|
])
|
1062
1062
|
]));
|
1063
1063
|
}
|
1064
|
-
}, _s = /* @__PURE__ */
|
1064
|
+
}, _s = /* @__PURE__ */ z(Is, [["__scopeId", "data-v-5ff387fd"]]), ws = { class: "template-selector" }, ks = { class: "template-selector__container" }, Ns = { class: "template-selector__button-close" }, Ds = { class: "template-selector__list-groups" }, js = { class: "template-selector__label-group" }, Es = ["src", "alt"], Ts = ["id", "value"], Vs = { class: "template-selector__searching-container" }, xs = { class: "template-selector__templates" }, Ss = {
|
1065
1065
|
key: 0,
|
1066
1066
|
class: "template-selector__list-templates"
|
1067
1067
|
}, zs = ["onClick"], Os = { class: "template-selector__item-template-info" }, Cs = { class: "template-selector__item-title" }, Ls = { class: "template-selector__item-text" }, Us = {
|
@@ -1089,90 +1089,90 @@ const Iu = (e) => {
|
|
1089
1089
|
},
|
1090
1090
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
1091
1091
|
setup(e, { emit: f }) {
|
1092
|
-
const t = e, n = ke("chatAppId"), { setMessageText: a } = At(n),
|
1093
|
-
|
1094
|
-
},
|
1095
|
-
t.templates.forEach((
|
1096
|
-
},
|
1097
|
-
t.templates.forEach((
|
1098
|
-
}, m = U(() => i.value ? t.templates.filter((
|
1099
|
-
const
|
1100
|
-
return m.value.filter((
|
1092
|
+
const t = e, n = ke("chatAppId"), { setMessageText: a } = At(n), A = () => {
|
1093
|
+
s("closeTemplateWindow"), a(l.value.template);
|
1094
|
+
}, s = f, i = I(null), l = I(null), r = I(""), g = (h) => {
|
1095
|
+
t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, l.value = h;
|
1096
|
+
}, u = () => {
|
1097
|
+
t.templates.forEach((h) => h.isSelected = !1);
|
1098
|
+
}, m = U(() => i.value ? t.templates.filter((h) => h.groupId === i.value.groupId) : t.templates), p = U(() => {
|
1099
|
+
const h = r.value.trim().toLowerCase();
|
1100
|
+
return m.value.filter((M) => (console.log(M), M.title.toLowerCase().includes(h) || M.template.toLowerCase().includes(h)));
|
1101
1101
|
});
|
1102
|
-
return (
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1102
|
+
return (h, M) => (c(), d("div", ws, [
|
1103
|
+
o("div", ks, [
|
1104
|
+
o("button", Ns, [
|
1105
|
+
o("span", {
|
1106
1106
|
class: "pi pi-times",
|
1107
|
-
onClick:
|
1107
|
+
onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
|
1108
1108
|
})
|
1109
1109
|
]),
|
1110
|
-
|
1110
|
+
o("ul", Ds, [
|
1111
1111
|
(c(!0), d($, null, Z(e.groupTemplates, (y, _) => (c(), d("li", {
|
1112
1112
|
key: _,
|
1113
|
-
class:
|
1114
|
-
onClick:
|
1113
|
+
class: x(["template-selector__item-group", { "template-selector__item-selected": i.value === y }]),
|
1114
|
+
onClick: u
|
1115
1115
|
}, [
|
1116
|
-
|
1116
|
+
o("label", js, [
|
1117
1117
|
y.iconUrl ? (c(), d("img", {
|
1118
1118
|
key: 0,
|
1119
1119
|
class: "template-selector__item-group-icon",
|
1120
1120
|
src: y.iconUrl,
|
1121
1121
|
alt: y.title
|
1122
1122
|
}, null, 8, Es)) : b("", !0),
|
1123
|
-
we(
|
1123
|
+
we(o("input", {
|
1124
1124
|
id: _,
|
1125
|
-
"onUpdate:modelValue":
|
1125
|
+
"onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
|
1126
1126
|
value: y,
|
1127
1127
|
class: "template-selector__input-group",
|
1128
1128
|
type: "radio"
|
1129
1129
|
}, null, 8, Ts), [
|
1130
1130
|
[Ia, i.value]
|
1131
1131
|
]),
|
1132
|
-
|
1132
|
+
o("span", null, w(y.title), 1)
|
1133
1133
|
])
|
1134
1134
|
], 2))), 128))
|
1135
1135
|
]),
|
1136
|
-
|
1137
|
-
we(
|
1138
|
-
"onUpdate:modelValue":
|
1136
|
+
o("div", Vs, [
|
1137
|
+
we(o("input", {
|
1138
|
+
"onUpdate:modelValue": M[2] || (M[2] = (y) => r.value = y),
|
1139
1139
|
class: "template-selector__searching-input",
|
1140
1140
|
type: "text",
|
1141
1141
|
placeholder: "Поиск шаблона"
|
1142
1142
|
}, null, 512), [
|
1143
|
-
[xt,
|
1143
|
+
[xt, r.value]
|
1144
1144
|
])
|
1145
1145
|
]),
|
1146
|
-
|
1146
|
+
o("div", xs, [
|
1147
1147
|
p.value.length !== 0 ? (c(), d("ul", Ss, [
|
1148
1148
|
(c(!0), d($, null, Z(p.value, (y, _) => (c(), d("li", {
|
1149
1149
|
key: _,
|
1150
|
-
class:
|
1150
|
+
class: x(["template-selector__item-template", { "template-selector__item-selected": y.isSelected }]),
|
1151
1151
|
onClick: (k) => g(y)
|
1152
1152
|
}, [
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1153
|
+
o("div", Os, [
|
1154
|
+
o("p", Cs, w(y.title), 1),
|
1155
|
+
o("p", Ls, w(y.template), 1)
|
1156
1156
|
])
|
1157
1157
|
], 10, zs))), 128))
|
1158
1158
|
])) : (c(), d("p", Us, " Шаблоны отсутствуют "))
|
1159
1159
|
]),
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
|
1160
|
+
o("div", Bs, [
|
1161
|
+
l.value ? (c(), d("div", Qs, [
|
1162
|
+
o("div", Rs, [
|
1163
|
+
o("p", Ys, w(l.value.template), 1),
|
1164
|
+
M[3] || (M[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
1165
1165
|
])
|
1166
1166
|
])) : (c(), d("p", qs, " Предпросмотр шаблона "))
|
1167
1167
|
]),
|
1168
|
-
|
1168
|
+
o("button", {
|
1169
1169
|
class: "template-selector__button-paste",
|
1170
|
-
onClick:
|
1170
|
+
onClick: A
|
1171
1171
|
}, " Вставить ")
|
1172
1172
|
])
|
1173
1173
|
]));
|
1174
1174
|
}
|
1175
|
-
}, Fs = /* @__PURE__ */
|
1175
|
+
}, Fs = /* @__PURE__ */ z(Hs, [["__scopeId", "data-v-65d5e9c8"]]), Ps = {
|
1176
1176
|
__name: "ButtonTemplateSelector",
|
1177
1177
|
props: {
|
1178
1178
|
templates: {
|
@@ -1189,47 +1189,51 @@ const Iu = (e) => {
|
|
1189
1189
|
type: String,
|
1190
1190
|
required: !1,
|
1191
1191
|
default: "click"
|
1192
|
+
},
|
1193
|
+
state: {
|
1194
|
+
type: String,
|
1195
|
+
default: "active"
|
1192
1196
|
}
|
1193
1197
|
},
|
1194
1198
|
setup(e) {
|
1195
1199
|
const f = e, t = I(null), n = I(null), a = () => {
|
1196
|
-
f.mode == "click" && (n.value.style.display == "none" ? n.value.style.display = "inherit" : n.value.style.display == "inherit" && (n.value.style.display = "none"));
|
1197
|
-
}, s = () => {
|
1198
|
-
f.mode == "hover" && (n.value.style.display = "inherit");
|
1200
|
+
f.mode == "click" && f.state == "active" && (n.value.style.display == "none" ? n.value.style.display = "inherit" : n.value.style.display == "inherit" && (n.value.style.display = "none"));
|
1199
1201
|
}, A = () => {
|
1200
|
-
f.mode == "hover" && (n.value.style.display = "
|
1201
|
-
},
|
1202
|
-
f.mode == "
|
1203
|
-
},
|
1202
|
+
f.mode == "hover" && f.state == "active" && (n.value.style.display = "inherit");
|
1203
|
+
}, s = () => {
|
1204
|
+
f.mode == "hover" && f.state == "active" && (n.value.style.display = "none");
|
1205
|
+
}, i = (r) => {
|
1206
|
+
f.mode == "click" && !t.value.contains(r.target) && !n.value.contains(r.target) && (n.value.style.display = "none");
|
1207
|
+
}, l = () => {
|
1204
1208
|
n.value.style.display = "none";
|
1205
1209
|
};
|
1206
1210
|
return Ne(() => {
|
1207
1211
|
n.value.style.display = "none", document.addEventListener("click", i);
|
1208
|
-
}),
|
1212
|
+
}), zt(() => {
|
1209
1213
|
document.removeEventListener("click", i);
|
1210
|
-
}), (
|
1211
|
-
|
1214
|
+
}), (r, g) => (c(), d($, null, [
|
1215
|
+
o("button", {
|
1212
1216
|
ref_key: "templateButton",
|
1213
1217
|
ref: t,
|
1214
|
-
class: "button-template",
|
1218
|
+
class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
1215
1219
|
onClick: a,
|
1216
|
-
onMouseover:
|
1217
|
-
onMouseout:
|
1220
|
+
onMouseover: A,
|
1221
|
+
onMouseout: s
|
1218
1222
|
}, g[0] || (g[0] = [
|
1219
|
-
|
1220
|
-
]),
|
1223
|
+
o("span", { class: "pi pi-objects-column" }, null, -1)
|
1224
|
+
]), 34),
|
1221
1225
|
L(q, null, {
|
1222
1226
|
default: H(() => [
|
1223
|
-
|
1227
|
+
o("div", {
|
1224
1228
|
ref_key: "template",
|
1225
1229
|
ref: n,
|
1226
|
-
onMouseover:
|
1227
|
-
onMouseout:
|
1230
|
+
onMouseover: A,
|
1231
|
+
onMouseout: s
|
1228
1232
|
}, [
|
1229
1233
|
L(Fs, {
|
1230
1234
|
templates: e.templates,
|
1231
1235
|
"group-templates": e.groupTemplates,
|
1232
|
-
onCloseTemplateWindow:
|
1236
|
+
onCloseTemplateWindow: l
|
1233
1237
|
}, null, 8, ["templates", "group-templates"])
|
1234
1238
|
], 544)
|
1235
1239
|
]),
|
@@ -1237,7 +1241,7 @@ const Iu = (e) => {
|
|
1237
1241
|
})
|
1238
1242
|
], 64));
|
1239
1243
|
}
|
1240
|
-
}, Tu = /* @__PURE__ */
|
1244
|
+
}, Tu = /* @__PURE__ */ z(Ps, [["__scopeId", "data-v-8d6cf607"]]), Bn = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Qn = {
|
1241
1245
|
recent: "Recently used",
|
1242
1246
|
smileys_people: "Smiles & People",
|
1243
1247
|
animals_nature: "Animals & Nature",
|
@@ -13193,7 +13197,7 @@ var ri = {
|
|
13193
13197
|
objects: ii,
|
13194
13198
|
symbols: oi,
|
13195
13199
|
flags: li
|
13196
|
-
},
|
13200
|
+
}, gn = [
|
13197
13201
|
{
|
13198
13202
|
key: "recent",
|
13199
13203
|
title: "Recently Used",
|
@@ -13241,9 +13245,9 @@ var ri = {
|
|
13241
13245
|
}
|
13242
13246
|
];
|
13243
13247
|
const ui = (e, f) => f.some((t) => e instanceof t);
|
13244
|
-
let
|
13248
|
+
let mn, pn;
|
13245
13249
|
function ci() {
|
13246
|
-
return
|
13250
|
+
return mn || (mn = [
|
13247
13251
|
IDBDatabase,
|
13248
13252
|
IDBObjectStore,
|
13249
13253
|
IDBIndex,
|
@@ -13252,41 +13256,41 @@ function ci() {
|
|
13252
13256
|
]);
|
13253
13257
|
}
|
13254
13258
|
function di() {
|
13255
|
-
return
|
13259
|
+
return pn || (pn = [
|
13256
13260
|
IDBCursor.prototype.advance,
|
13257
13261
|
IDBCursor.prototype.continue,
|
13258
13262
|
IDBCursor.prototype.continuePrimaryKey
|
13259
13263
|
]);
|
13260
13264
|
}
|
13261
|
-
const Yn = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(),
|
13265
|
+
const Yn = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap();
|
13262
13266
|
function gi(e) {
|
13263
13267
|
const f = new Promise((t, n) => {
|
13264
13268
|
const a = () => {
|
13265
|
-
e.removeEventListener("success",
|
13266
|
-
}, s = () => {
|
13267
|
-
t(_e(e.result)), a();
|
13269
|
+
e.removeEventListener("success", A), e.removeEventListener("error", s);
|
13268
13270
|
}, A = () => {
|
13271
|
+
t(_e(e.result)), a();
|
13272
|
+
}, s = () => {
|
13269
13273
|
n(e.error), a();
|
13270
13274
|
};
|
13271
|
-
e.addEventListener("success",
|
13275
|
+
e.addEventListener("success", A), e.addEventListener("error", s);
|
13272
13276
|
});
|
13273
13277
|
return f.then((t) => {
|
13274
13278
|
t instanceof IDBCursor && Yn.set(t, e);
|
13275
13279
|
}).catch(() => {
|
13276
|
-
}),
|
13280
|
+
}), Lt.set(f, e), f;
|
13277
13281
|
}
|
13278
13282
|
function mi(e) {
|
13279
13283
|
if (It.has(e))
|
13280
13284
|
return;
|
13281
13285
|
const f = new Promise((t, n) => {
|
13282
13286
|
const a = () => {
|
13283
|
-
e.removeEventListener("complete",
|
13284
|
-
}, s = () => {
|
13285
|
-
t(), a();
|
13287
|
+
e.removeEventListener("complete", A), e.removeEventListener("error", s), e.removeEventListener("abort", s);
|
13286
13288
|
}, A = () => {
|
13289
|
+
t(), a();
|
13290
|
+
}, s = () => {
|
13287
13291
|
n(e.error || new DOMException("AbortError", "AbortError")), a();
|
13288
13292
|
};
|
13289
|
-
e.addEventListener("complete",
|
13293
|
+
e.addEventListener("complete", A), e.addEventListener("error", s), e.addEventListener("abort", s);
|
13290
13294
|
});
|
13291
13295
|
It.set(e, f);
|
13292
13296
|
}
|
@@ -13331,24 +13335,24 @@ function _e(e) {
|
|
13331
13335
|
if (gt.has(e))
|
13332
13336
|
return gt.get(e);
|
13333
13337
|
const f = Mi(e);
|
13334
|
-
return f !== e && (gt.set(e, f),
|
13338
|
+
return f !== e && (gt.set(e, f), Lt.set(f, e)), f;
|
13335
13339
|
}
|
13336
|
-
const mt = (e) =>
|
13337
|
-
function
|
13338
|
-
const
|
13339
|
-
return n &&
|
13340
|
-
n(_e(
|
13341
|
-
}), t &&
|
13342
|
-
|
13343
|
-
|
13344
|
-
|
13345
|
-
)), i.then((
|
13346
|
-
|
13340
|
+
const mt = (e) => Lt.get(e);
|
13341
|
+
function Ut(e, f, { blocked: t, upgrade: n, blocking: a, terminated: A } = {}) {
|
13342
|
+
const s = indexedDB.open(e, f), i = _e(s);
|
13343
|
+
return n && s.addEventListener("upgradeneeded", (l) => {
|
13344
|
+
n(_e(s.result), l.oldVersion, l.newVersion, _e(s.transaction), l);
|
13345
|
+
}), t && s.addEventListener("blocked", (l) => t(
|
13346
|
+
l.oldVersion,
|
13347
|
+
l.newVersion,
|
13348
|
+
l
|
13349
|
+
)), i.then((l) => {
|
13350
|
+
A && l.addEventListener("close", () => A()), a && l.addEventListener("versionchange", (r) => a(r.oldVersion, r.newVersion, r));
|
13347
13351
|
}).catch(() => {
|
13348
13352
|
}), i;
|
13349
13353
|
}
|
13350
13354
|
const yi = ["get", "getKey", "getAll", "getAllKeys", "count"], bi = ["put", "add", "delete", "clear"], pt = /* @__PURE__ */ new Map();
|
13351
|
-
function
|
13355
|
+
function hn(e, f) {
|
13352
13356
|
if (!(e instanceof IDBDatabase && !(f in e) && typeof f == "string"))
|
13353
13357
|
return;
|
13354
13358
|
if (pt.get(f))
|
@@ -13356,24 +13360,24 @@ function pn(e, f) {
|
|
13356
13360
|
const t = f.replace(/FromIndex$/, ""), n = f !== t, a = bi.includes(t);
|
13357
13361
|
if (!(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(a || yi.includes(t)))
|
13358
13362
|
return;
|
13359
|
-
const
|
13360
|
-
const
|
13361
|
-
let
|
13362
|
-
return n && (
|
13363
|
-
|
13364
|
-
a &&
|
13363
|
+
const A = async function(s, ...i) {
|
13364
|
+
const l = this.transaction(s, a ? "readwrite" : "readonly");
|
13365
|
+
let r = l.store;
|
13366
|
+
return n && (r = r.index(i.shift())), (await Promise.all([
|
13367
|
+
r[t](...i),
|
13368
|
+
a && l.done
|
13365
13369
|
]))[0];
|
13366
13370
|
};
|
13367
|
-
return pt.set(f,
|
13371
|
+
return pt.set(f, A), A;
|
13368
13372
|
}
|
13369
13373
|
pi((e) => ({
|
13370
13374
|
...e,
|
13371
|
-
get: (f, t, n) =>
|
13372
|
-
has: (f, t) => !!
|
13375
|
+
get: (f, t, n) => hn(f, t) || e.get(f, t, n),
|
13376
|
+
has: (f, t) => !!hn(f, t) || e.has(f, t)
|
13373
13377
|
}));
|
13374
|
-
const
|
13378
|
+
const Bt = "EMJ", Be = "emojis", Qt = 3;
|
13375
13379
|
async function vi() {
|
13376
|
-
(await
|
13380
|
+
(await Ut(Bt, Qt, {
|
13377
13381
|
upgrade(f, t) {
|
13378
13382
|
f.objectStoreNames.contains(Be) || f.createObjectStore(Be, {
|
13379
13383
|
keyPath: "id",
|
@@ -13399,7 +13403,7 @@ const Ii = {
|
|
13399
13403
|
groupIcons: {}
|
13400
13404
|
};
|
13401
13405
|
async function _i() {
|
13402
|
-
return await (await
|
13406
|
+
return await (await Ut(Bt, Qt)).transaction(Be, "readonly").objectStore(Be).getAll();
|
13403
13407
|
}
|
13404
13408
|
function wi() {
|
13405
13409
|
const e = ka({
|
@@ -13418,75 +13422,75 @@ function wi() {
|
|
13418
13422
|
};
|
13419
13423
|
},
|
13420
13424
|
get disabled() {
|
13421
|
-
let
|
13422
|
-
return this.options.displayRecent || (
|
13425
|
+
let u = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
|
13426
|
+
return this.options.displayRecent || (u = ["recent", ...u]), u;
|
13423
13427
|
},
|
13424
13428
|
get groups() {
|
13425
|
-
return
|
13426
|
-
(
|
13429
|
+
return gn.filter(
|
13430
|
+
(u) => !this.disabled.includes(u.key)
|
13427
13431
|
);
|
13428
13432
|
},
|
13429
13433
|
get orderedGroupKeys() {
|
13430
|
-
const
|
13434
|
+
const u = [
|
13431
13435
|
...this.options.groupOrder,
|
13432
13436
|
...Object.keys(this.options.additionalGroups),
|
13433
|
-
...
|
13437
|
+
...gn.map((m) => m.key)
|
13434
13438
|
];
|
13435
|
-
return [...new Set(
|
13439
|
+
return [...new Set(u)].filter((m) => !this.disabled.includes(m));
|
13436
13440
|
}
|
13437
13441
|
});
|
13438
13442
|
function f() {
|
13439
13443
|
e.options.displayRecent && n();
|
13440
13444
|
}
|
13441
13445
|
async function t() {
|
13442
|
-
var
|
13446
|
+
var u;
|
13443
13447
|
let m = await _i();
|
13444
|
-
return Array.isArray(m) && m.length ? m = JSON.parse(((
|
13448
|
+
return Array.isArray(m) && m.length ? m = JSON.parse(((u = m[0]) == null ? void 0 : u.value) || "") : m = [], m;
|
13445
13449
|
}
|
13446
13450
|
function n() {
|
13447
|
-
t().then((
|
13448
|
-
e.recent =
|
13451
|
+
t().then((u) => {
|
13452
|
+
e.recent = u, r();
|
13449
13453
|
});
|
13450
13454
|
}
|
13451
|
-
const a = (
|
13452
|
-
e.search =
|
13453
|
-
},
|
13454
|
-
e.emoji =
|
13455
|
-
},
|
13456
|
-
e.activeGroup =
|
13457
|
-
}, i = (
|
13458
|
-
e.skinTone =
|
13459
|
-
},
|
13460
|
-
e.options = Object.assign({}, e.options,
|
13455
|
+
const a = (u) => {
|
13456
|
+
e.search = u;
|
13457
|
+
}, A = (u) => {
|
13458
|
+
e.emoji = u;
|
13459
|
+
}, s = (u) => {
|
13460
|
+
e.activeGroup = u;
|
13461
|
+
}, i = (u = jf) => {
|
13462
|
+
e.skinTone = u;
|
13463
|
+
}, l = (u) => {
|
13464
|
+
e.options = Object.assign({}, e.options, u), f();
|
13461
13465
|
};
|
13462
|
-
async function
|
13463
|
-
(await
|
13466
|
+
async function r() {
|
13467
|
+
(await Ut(Bt, Qt)).transaction(Be, "readwrite").objectStore(Be).put({
|
13464
13468
|
id: 0,
|
13465
13469
|
value: JSON.stringify(e.recent)
|
13466
13470
|
});
|
13467
13471
|
}
|
13468
|
-
const g = (
|
13472
|
+
const g = (u) => {
|
13469
13473
|
if (e.options.displayRecent !== !0)
|
13470
13474
|
return;
|
13471
|
-
const m = e.recent.findIndex((
|
13475
|
+
const m = e.recent.findIndex((h) => h.u === u.u);
|
13472
13476
|
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
13473
13477
|
return;
|
13474
|
-
const p = { u:
|
13475
|
-
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24),
|
13478
|
+
const p = { u: u.u, n: Cn(u.n) };
|
13479
|
+
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
|
13476
13480
|
};
|
13477
13481
|
return {
|
13478
13482
|
state: Na(e),
|
13479
13483
|
updateSearch: a,
|
13480
|
-
updateEmoji:
|
13481
|
-
updateActiveGroup:
|
13484
|
+
updateEmoji: A,
|
13485
|
+
updateActiveGroup: s,
|
13482
13486
|
updateSkinTone: i,
|
13483
|
-
updateOptions:
|
13487
|
+
updateOptions: l,
|
13484
13488
|
updateSelect: g
|
13485
13489
|
};
|
13486
13490
|
}
|
13487
|
-
var X = "top", se = "bottom", ie = "right", ee = "left",
|
13491
|
+
var X = "top", se = "bottom", ie = "right", ee = "left", Rt = "auto", of = [X, se, ie, ee], Qe = "start", nf = "end", ki = "clippingParents", Hn = "viewport", Je = "popper", Ni = "reference", Mn = /* @__PURE__ */ of.reduce(function(e, f) {
|
13488
13492
|
return e.concat([f + "-" + Qe, f + "-" + nf]);
|
13489
|
-
}, []), Fn = /* @__PURE__ */ [].concat(of, [
|
13493
|
+
}, []), Fn = /* @__PURE__ */ [].concat(of, [Rt]).reduce(function(e, f) {
|
13490
13494
|
return e.concat([f, f + "-" + Qe, f + "-" + nf]);
|
13491
13495
|
}, []), Di = "beforeRead", ji = "read", Ei = "afterRead", Ti = "beforeMain", Vi = "main", xi = "afterMain", Si = "beforeWrite", zi = "write", Oi = "afterWrite", Ci = [Di, ji, Ei, Ti, Vi, xi, Si, zi, Oi];
|
13492
13496
|
function ge(e) {
|
@@ -13518,10 +13522,10 @@ function Pn(e) {
|
|
13518
13522
|
function Li(e) {
|
13519
13523
|
var f = e.state;
|
13520
13524
|
Object.keys(f.elements).forEach(function(t) {
|
13521
|
-
var n = f.styles[t] || {}, a = f.attributes[t] || {},
|
13522
|
-
!Ae(
|
13523
|
-
var i = a[
|
13524
|
-
i === !1 ?
|
13525
|
+
var n = f.styles[t] || {}, a = f.attributes[t] || {}, A = f.elements[t];
|
13526
|
+
!Ae(A) || !ge(A) || (Object.assign(A.style, n), Object.keys(a).forEach(function(s) {
|
13527
|
+
var i = a[s];
|
13528
|
+
i === !1 ? A.removeAttribute(s) : A.setAttribute(s, i === !0 ? "" : i);
|
13525
13529
|
}));
|
13526
13530
|
});
|
13527
13531
|
}
|
@@ -13540,11 +13544,11 @@ function Ui(e) {
|
|
13540
13544
|
};
|
13541
13545
|
return Object.assign(f.elements.popper.style, t.popper), f.styles = t, f.elements.arrow && Object.assign(f.elements.arrow.style, t.arrow), function() {
|
13542
13546
|
Object.keys(f.elements).forEach(function(n) {
|
13543
|
-
var a = f.elements[n],
|
13544
|
-
return
|
13547
|
+
var a = f.elements[n], A = f.attributes[n] || {}, s = Object.keys(f.styles.hasOwnProperty(n) ? f.styles[n] : t[n]), i = s.reduce(function(l, r) {
|
13548
|
+
return l[r] = "", l;
|
13545
13549
|
}, {});
|
13546
|
-
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(
|
13547
|
-
a.removeAttribute(
|
13550
|
+
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(l) {
|
13551
|
+
a.removeAttribute(l);
|
13548
13552
|
}));
|
13549
13553
|
});
|
13550
13554
|
};
|
@@ -13565,8 +13569,8 @@ function qe(e, f) {
|
|
13565
13569
|
f === void 0 && (f = !1);
|
13566
13570
|
var t = e.getBoundingClientRect(), n = 1, a = 1;
|
13567
13571
|
if (Ae(e) && f) {
|
13568
|
-
var
|
13569
|
-
|
13572
|
+
var A = e.offsetHeight, s = e.offsetWidth;
|
13573
|
+
s > 0 && (n = Ye(t.width) / s || 1), A > 0 && (a = Ye(t.height) / A || 1);
|
13570
13574
|
}
|
13571
13575
|
return {
|
13572
13576
|
width: t.width / n,
|
@@ -13579,7 +13583,7 @@ function qe(e, f) {
|
|
13579
13583
|
y: t.top / a
|
13580
13584
|
};
|
13581
13585
|
}
|
13582
|
-
function
|
13586
|
+
function Yt(e) {
|
13583
13587
|
var f = qe(e), t = e.offsetWidth, n = e.offsetHeight;
|
13584
13588
|
return Math.abs(f.width - t) <= 1 && (t = f.width), Math.abs(f.height - n) <= 1 && (n = f.height), {
|
13585
13589
|
x: e.offsetLeft,
|
@@ -13614,7 +13618,7 @@ function De(e) {
|
|
13614
13618
|
function it(e) {
|
13615
13619
|
return ge(e) === "html" ? e : e.assignedSlot || e.parentNode || (Pn(e) ? e.host : null) || De(e);
|
13616
13620
|
}
|
13617
|
-
function
|
13621
|
+
function yn(e) {
|
13618
13622
|
return !Ae(e) || me(e).position === "fixed" ? null : e.offsetParent;
|
13619
13623
|
}
|
13620
13624
|
function Ri(e) {
|
@@ -13625,19 +13629,19 @@ function Ri(e) {
|
|
13625
13629
|
return null;
|
13626
13630
|
}
|
13627
13631
|
for (var a = it(e); Ae(a) && ["html", "body"].indexOf(ge(a)) < 0; ) {
|
13628
|
-
var
|
13629
|
-
if (
|
13632
|
+
var A = me(a);
|
13633
|
+
if (A.transform !== "none" || A.perspective !== "none" || A.contain === "paint" || ["transform", "perspective"].indexOf(A.willChange) !== -1 || f && A.willChange === "filter" || f && A.filter && A.filter !== "none")
|
13630
13634
|
return a;
|
13631
13635
|
a = a.parentNode;
|
13632
13636
|
}
|
13633
13637
|
return null;
|
13634
13638
|
}
|
13635
13639
|
function lf(e) {
|
13636
|
-
for (var f = oe(e), t =
|
13637
|
-
t =
|
13640
|
+
for (var f = oe(e), t = yn(e); t && Qi(t) && me(t).position === "static"; )
|
13641
|
+
t = yn(t);
|
13638
13642
|
return t && (ge(t) === "html" || ge(t) === "body" && me(t).position === "static") ? f : t || Ri(e) || f;
|
13639
13643
|
}
|
13640
|
-
function
|
13644
|
+
function qt(e) {
|
13641
13645
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
13642
13646
|
}
|
13643
13647
|
function Ge(e, f, t) {
|
@@ -13669,10 +13673,10 @@ var qi = function(f, t) {
|
|
13669
13673
|
})) : f, Kn(typeof f != "number" ? f : Jn(f, of));
|
13670
13674
|
};
|
13671
13675
|
function Hi(e) {
|
13672
|
-
var f, t = e.state, n = e.name, a = e.options,
|
13673
|
-
if (!(!
|
13674
|
-
var
|
13675
|
-
t.modifiersData[n] = (f = {}, f[
|
13676
|
+
var f, t = e.state, n = e.name, a = e.options, A = t.elements.arrow, s = t.modifiersData.popperOffsets, i = de(t.placement), l = qt(i), r = [ee, ie].indexOf(i) >= 0, g = r ? "height" : "width";
|
13677
|
+
if (!(!A || !s)) {
|
13678
|
+
var u = qi(a.padding, t), m = Yt(A), p = l === "y" ? X : ee, h = l === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[l] - s[l] - t.rects.popper[g], y = s[l] - t.rects.reference[l], _ = lf(A), k = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + D, T = Ge(N, S, E), O = l;
|
13679
|
+
t.modifiersData[n] = (f = {}, f[O] = T, f.centerOffset = T - S, f);
|
13676
13680
|
}
|
13677
13681
|
}
|
13678
13682
|
function Fi(e) {
|
@@ -13704,32 +13708,32 @@ function Wi(e) {
|
|
13704
13708
|
y: Ye(t * a) / a || 0
|
13705
13709
|
};
|
13706
13710
|
}
|
13707
|
-
function
|
13708
|
-
var f, t = e.popper, n = e.popperRect, a = e.placement,
|
13709
|
-
if (
|
13710
|
-
var
|
13711
|
-
if (
|
13711
|
+
function bn(e) {
|
13712
|
+
var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position, l = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, u = e.isFixed, m = g === !0 ? Wi(s) : typeof g == "function" ? g(s) : s, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), D = ee, N = X, E = window;
|
13713
|
+
if (r) {
|
13714
|
+
var S = lf(t), T = "clientHeight", O = "clientWidth";
|
13715
|
+
if (S === oe(t) && (S = De(t), me(S).position !== "static" && i === "absolute" && (T = "scrollHeight", O = "scrollWidth")), S = S, a === X || (a === ee || a === ie) && A === nf) {
|
13712
13716
|
N = se;
|
13713
|
-
var Q =
|
13714
|
-
y -= Q - n.height, y *=
|
13717
|
+
var Q = u && E.visualViewport ? E.visualViewport.height : S[T];
|
13718
|
+
y -= Q - n.height, y *= l ? 1 : -1;
|
13715
13719
|
}
|
13716
|
-
if (a === ee || (a === X || a === se) &&
|
13720
|
+
if (a === ee || (a === X || a === se) && A === nf) {
|
13717
13721
|
D = ie;
|
13718
|
-
var
|
13719
|
-
|
13722
|
+
var C = u && E.visualViewport ? E.visualViewport.width : S[O];
|
13723
|
+
h -= C - n.width, h *= l ? 1 : -1;
|
13720
13724
|
}
|
13721
13725
|
}
|
13722
13726
|
var B = Object.assign({
|
13723
13727
|
position: i
|
13724
|
-
},
|
13725
|
-
if (
|
13728
|
+
}, r && $i);
|
13729
|
+
if (l) {
|
13726
13730
|
var R;
|
13727
|
-
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (
|
13731
|
+
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
|
13728
13732
|
}
|
13729
|
-
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ?
|
13733
|
+
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? h + "px" : "", f.transform = "", f));
|
13730
13734
|
}
|
13731
13735
|
function Ki(e) {
|
13732
|
-
var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n,
|
13736
|
+
var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, A = t.adaptive, s = A === void 0 ? !0 : A, i = t.roundOffsets, l = i === void 0 ? !0 : i, r = {
|
13733
13737
|
placement: de(f.placement),
|
13734
13738
|
variation: He(f.placement),
|
13735
13739
|
popper: f.elements.popper,
|
@@ -13737,16 +13741,16 @@ function Ki(e) {
|
|
13737
13741
|
gpuAcceleration: a,
|
13738
13742
|
isFixed: f.options.strategy === "fixed"
|
13739
13743
|
};
|
13740
|
-
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper,
|
13744
|
+
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, bn(Object.assign({}, r, {
|
13741
13745
|
offsets: f.modifiersData.popperOffsets,
|
13742
13746
|
position: f.options.strategy,
|
13743
|
-
adaptive:
|
13744
|
-
roundOffsets:
|
13745
|
-
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow,
|
13747
|
+
adaptive: s,
|
13748
|
+
roundOffsets: l
|
13749
|
+
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, r, {
|
13746
13750
|
offsets: f.modifiersData.arrow,
|
13747
13751
|
position: "absolute",
|
13748
13752
|
adaptive: !1,
|
13749
|
-
roundOffsets:
|
13753
|
+
roundOffsets: l
|
13750
13754
|
})))), f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
13751
13755
|
"data-popper-placement": f.placement
|
13752
13756
|
});
|
@@ -13761,13 +13765,13 @@ var Ji = {
|
|
13761
13765
|
passive: !0
|
13762
13766
|
};
|
13763
13767
|
function Gi(e) {
|
13764
|
-
var f = e.state, t = e.instance, n = e.options, a = n.scroll,
|
13765
|
-
return
|
13768
|
+
var f = e.state, t = e.instance, n = e.options, a = n.scroll, A = a === void 0 ? !0 : a, s = n.resize, i = s === void 0 ? !0 : s, l = oe(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
13769
|
+
return A && r.forEach(function(g) {
|
13766
13770
|
g.addEventListener("scroll", t.update, hf);
|
13767
|
-
}), i &&
|
13768
|
-
|
13771
|
+
}), i && l.addEventListener("resize", t.update, hf), function() {
|
13772
|
+
A && r.forEach(function(g) {
|
13769
13773
|
g.removeEventListener("scroll", t.update, hf);
|
13770
|
-
}), i &&
|
13774
|
+
}), i && l.removeEventListener("resize", t.update, hf);
|
13771
13775
|
};
|
13772
13776
|
}
|
13773
13777
|
var Zi = {
|
@@ -13793,51 +13797,51 @@ var eo = {
|
|
13793
13797
|
start: "end",
|
13794
13798
|
end: "start"
|
13795
13799
|
};
|
13796
|
-
function
|
13800
|
+
function vn(e) {
|
13797
13801
|
return e.replace(/start|end/g, function(f) {
|
13798
13802
|
return eo[f];
|
13799
13803
|
});
|
13800
13804
|
}
|
13801
|
-
function
|
13805
|
+
function Ht(e) {
|
13802
13806
|
var f = oe(e), t = f.pageXOffset, n = f.pageYOffset;
|
13803
13807
|
return {
|
13804
13808
|
scrollLeft: t,
|
13805
13809
|
scrollTop: n
|
13806
13810
|
};
|
13807
13811
|
}
|
13808
|
-
function
|
13809
|
-
return qe(De(e)).left +
|
13812
|
+
function Ft(e) {
|
13813
|
+
return qe(De(e)).left + Ht(e).scrollLeft;
|
13810
13814
|
}
|
13811
13815
|
function fo(e) {
|
13812
|
-
var f = oe(e), t = De(e), n = f.visualViewport, a = t.clientWidth,
|
13813
|
-
return n && (a = n.width,
|
13816
|
+
var f = oe(e), t = De(e), n = f.visualViewport, a = t.clientWidth, A = t.clientHeight, s = 0, i = 0;
|
13817
|
+
return n && (a = n.width, A = n.height, /^((?!chrome|android).)*safari/i.test(navigator.userAgent) || (s = n.offsetLeft, i = n.offsetTop)), {
|
13814
13818
|
width: a,
|
13815
|
-
height:
|
13816
|
-
x:
|
13819
|
+
height: A,
|
13820
|
+
x: s + Ft(e),
|
13817
13821
|
y: i
|
13818
13822
|
};
|
13819
13823
|
}
|
13820
13824
|
function to(e) {
|
13821
|
-
var f, t = De(e), n =
|
13822
|
-
return me(a || t).direction === "rtl" && (i += ze(t.clientWidth, a ? a.clientWidth : 0) -
|
13823
|
-
width:
|
13824
|
-
height:
|
13825
|
+
var f, t = De(e), n = Ht(e), a = (f = e.ownerDocument) == null ? void 0 : f.body, A = ze(t.scrollWidth, t.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = ze(t.scrollHeight, t.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ft(e), l = -n.scrollTop;
|
13826
|
+
return me(a || t).direction === "rtl" && (i += ze(t.clientWidth, a ? a.clientWidth : 0) - A), {
|
13827
|
+
width: A,
|
13828
|
+
height: s,
|
13825
13829
|
x: i,
|
13826
|
-
y:
|
13830
|
+
y: l
|
13827
13831
|
};
|
13828
13832
|
}
|
13829
|
-
function
|
13833
|
+
function Pt(e) {
|
13830
13834
|
var f = me(e), t = f.overflow, n = f.overflowX, a = f.overflowY;
|
13831
13835
|
return /auto|scroll|overlay|hidden/.test(t + a + n);
|
13832
13836
|
}
|
13833
13837
|
function Gn(e) {
|
13834
|
-
return ["html", "body", "#document"].indexOf(ge(e)) >= 0 ? e.ownerDocument.body : Ae(e) &&
|
13838
|
+
return ["html", "body", "#document"].indexOf(ge(e)) >= 0 ? e.ownerDocument.body : Ae(e) && Pt(e) ? e : Gn(it(e));
|
13835
13839
|
}
|
13836
13840
|
function Ze(e, f) {
|
13837
13841
|
var t;
|
13838
13842
|
f === void 0 && (f = []);
|
13839
|
-
var n = Gn(e), a = n === ((t = e.ownerDocument) == null ? void 0 : t.body),
|
13840
|
-
return a ? i : i.concat(Ze(it(
|
13843
|
+
var n = Gn(e), a = n === ((t = e.ownerDocument) == null ? void 0 : t.body), A = oe(n), s = a ? [A].concat(A.visualViewport || [], Pt(n) ? n : []) : n, i = f.concat(s);
|
13844
|
+
return a ? i : i.concat(Ze(it(s)));
|
13841
13845
|
}
|
13842
13846
|
function wt(e) {
|
13843
13847
|
return Object.assign({}, e, {
|
@@ -13851,7 +13855,7 @@ function no(e) {
|
|
13851
13855
|
var f = qe(e);
|
13852
13856
|
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;
|
13853
13857
|
}
|
13854
|
-
function
|
13858
|
+
function In(e, f) {
|
13855
13859
|
return f === Hn ? wt(fo(e)) : Re(f) ? no(f) : wt(to(De(e)));
|
13856
13860
|
}
|
13857
13861
|
function ao(e) {
|
@@ -13861,141 +13865,141 @@ function ao(e) {
|
|
13861
13865
|
}) : [];
|
13862
13866
|
}
|
13863
13867
|
function Ao(e, f, t) {
|
13864
|
-
var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]),
|
13865
|
-
var
|
13866
|
-
return i.top = ze(
|
13867
|
-
},
|
13868
|
-
return
|
13868
|
+
var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i, l) {
|
13869
|
+
var r = In(e, l);
|
13870
|
+
return i.top = ze(r.top, i.top), i.right = Ef(r.right, i.right), i.bottom = Ef(r.bottom, i.bottom), i.left = ze(r.left, i.left), i;
|
13871
|
+
}, In(e, A));
|
13872
|
+
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
13869
13873
|
}
|
13870
13874
|
function Zn(e) {
|
13871
|
-
var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null,
|
13875
|
+
var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null, A = n ? He(n) : null, s = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2, l;
|
13872
13876
|
switch (a) {
|
13873
13877
|
case X:
|
13874
|
-
|
13875
|
-
x:
|
13878
|
+
l = {
|
13879
|
+
x: s,
|
13876
13880
|
y: f.y - t.height
|
13877
13881
|
};
|
13878
13882
|
break;
|
13879
13883
|
case se:
|
13880
|
-
|
13881
|
-
x:
|
13884
|
+
l = {
|
13885
|
+
x: s,
|
13882
13886
|
y: f.y + f.height
|
13883
13887
|
};
|
13884
13888
|
break;
|
13885
13889
|
case ie:
|
13886
|
-
|
13890
|
+
l = {
|
13887
13891
|
x: f.x + f.width,
|
13888
13892
|
y: i
|
13889
13893
|
};
|
13890
13894
|
break;
|
13891
13895
|
case ee:
|
13892
|
-
|
13896
|
+
l = {
|
13893
13897
|
x: f.x - t.width,
|
13894
13898
|
y: i
|
13895
13899
|
};
|
13896
13900
|
break;
|
13897
13901
|
default:
|
13898
|
-
|
13902
|
+
l = {
|
13899
13903
|
x: f.x,
|
13900
13904
|
y: f.y
|
13901
13905
|
};
|
13902
13906
|
}
|
13903
|
-
var
|
13904
|
-
if (
|
13905
|
-
var g =
|
13906
|
-
switch (
|
13907
|
+
var r = a ? qt(a) : null;
|
13908
|
+
if (r != null) {
|
13909
|
+
var g = r === "y" ? "height" : "width";
|
13910
|
+
switch (A) {
|
13907
13911
|
case Qe:
|
13908
|
-
|
13912
|
+
l[r] = l[r] - (f[g] / 2 - t[g] / 2);
|
13909
13913
|
break;
|
13910
13914
|
case nf:
|
13911
|
-
|
13915
|
+
l[r] = l[r] + (f[g] / 2 - t[g] / 2);
|
13912
13916
|
break;
|
13913
13917
|
}
|
13914
13918
|
}
|
13915
|
-
return
|
13919
|
+
return l;
|
13916
13920
|
}
|
13917
13921
|
function af(e, f) {
|
13918
13922
|
f === void 0 && (f = {});
|
13919
|
-
var t = f, n = t.placement, a = n === void 0 ? e.placement : n,
|
13923
|
+
var t = f, n = t.placement, a = n === void 0 ? e.placement : n, A = t.boundary, s = A === void 0 ? ki : A, i = t.rootBoundary, l = i === void 0 ? Hn : i, r = t.elementContext, g = r === void 0 ? Je : r, u = t.altBoundary, m = u === void 0 ? !1 : u, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, l), N = qe(e.elements.reference), E = Zn({
|
13920
13924
|
reference: N,
|
13921
13925
|
element: _,
|
13922
13926
|
strategy: "absolute",
|
13923
13927
|
placement: a
|
13924
|
-
}),
|
13925
|
-
top: D.top -
|
13926
|
-
bottom:
|
13927
|
-
left: D.left -
|
13928
|
-
right:
|
13928
|
+
}), S = wt(Object.assign({}, _, E)), T = g === Je ? S : N, O = {
|
13929
|
+
top: D.top - T.top + M.top,
|
13930
|
+
bottom: T.bottom - D.bottom + M.bottom,
|
13931
|
+
left: D.left - T.left + M.left,
|
13932
|
+
right: T.right - D.right + M.right
|
13929
13933
|
}, Q = e.modifiersData.offset;
|
13930
13934
|
if (g === Je && Q) {
|
13931
|
-
var
|
13932
|
-
Object.keys(
|
13935
|
+
var C = Q[a];
|
13936
|
+
Object.keys(O).forEach(function(B) {
|
13933
13937
|
var R = [ie, se].indexOf(B) >= 0 ? 1 : -1, te = [X, se].indexOf(B) >= 0 ? "y" : "x";
|
13934
|
-
|
13938
|
+
O[B] += C[te] * R;
|
13935
13939
|
});
|
13936
13940
|
}
|
13937
|
-
return
|
13941
|
+
return O;
|
13938
13942
|
}
|
13939
13943
|
function so(e, f) {
|
13940
13944
|
f === void 0 && (f = {});
|
13941
|
-
var t = f, n = t.placement, a = t.boundary,
|
13942
|
-
return He(
|
13943
|
-
}) : of, m =
|
13944
|
-
return
|
13945
|
+
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, l = t.allowedAutoPlacements, r = l === void 0 ? Fn : l, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
|
13946
|
+
return He(h) === g;
|
13947
|
+
}) : of, m = u.filter(function(h) {
|
13948
|
+
return r.indexOf(h) >= 0;
|
13945
13949
|
});
|
13946
|
-
m.length === 0 && (m =
|
13947
|
-
var p = m.reduce(function(
|
13948
|
-
return M
|
13949
|
-
placement:
|
13950
|
+
m.length === 0 && (m = u);
|
13951
|
+
var p = m.reduce(function(h, M) {
|
13952
|
+
return h[M] = af(e, {
|
13953
|
+
placement: M,
|
13950
13954
|
boundary: a,
|
13951
|
-
rootBoundary:
|
13952
|
-
padding:
|
13953
|
-
})[de(
|
13955
|
+
rootBoundary: A,
|
13956
|
+
padding: s
|
13957
|
+
})[de(M)], h;
|
13954
13958
|
}, {});
|
13955
|
-
return Object.keys(p).sort(function(
|
13956
|
-
return p[
|
13959
|
+
return Object.keys(p).sort(function(h, M) {
|
13960
|
+
return p[h] - p[M];
|
13957
13961
|
});
|
13958
13962
|
}
|
13959
13963
|
function io(e) {
|
13960
|
-
if (de(e) ===
|
13964
|
+
if (de(e) === Rt)
|
13961
13965
|
return [];
|
13962
13966
|
var f = _f(e);
|
13963
|
-
return [
|
13967
|
+
return [vn(e), f, vn(f)];
|
13964
13968
|
}
|
13965
13969
|
function oo(e) {
|
13966
13970
|
var f = e.state, t = e.options, n = e.name;
|
13967
13971
|
if (!f.modifiersData[n]._skip) {
|
13968
|
-
for (var a = t.mainAxis,
|
13969
|
-
return Ce.concat(de(ye) ===
|
13972
|
+
for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, l = t.fallbackPlacements, r = t.padding, g = t.boundary, u = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = l || (k || !h ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, ye) {
|
13973
|
+
return Ce.concat(de(ye) === Rt ? so(f, {
|
13970
13974
|
placement: ye,
|
13971
13975
|
boundary: g,
|
13972
|
-
rootBoundary:
|
13973
|
-
padding:
|
13974
|
-
flipVariations:
|
13975
|
-
allowedAutoPlacements:
|
13976
|
+
rootBoundary: u,
|
13977
|
+
padding: r,
|
13978
|
+
flipVariations: h,
|
13979
|
+
allowedAutoPlacements: M
|
13976
13980
|
}) : ye);
|
13977
|
-
}, []),
|
13978
|
-
var B = N[
|
13981
|
+
}, []), E = f.rects.reference, S = f.rects.popper, T = /* @__PURE__ */ new Map(), O = !0, Q = N[0], C = 0; C < N.length; C++) {
|
13982
|
+
var B = N[C], R = de(B), te = He(B) === Qe, pe = [X, se].indexOf(R) >= 0, le = pe ? "width" : "height", Y = af(f, {
|
13979
13983
|
placement: B,
|
13980
13984
|
boundary: g,
|
13981
|
-
rootBoundary:
|
13985
|
+
rootBoundary: u,
|
13982
13986
|
altBoundary: m,
|
13983
|
-
padding:
|
13987
|
+
padding: r
|
13984
13988
|
}), W = pe ? te ? ie : ee : te ? se : X;
|
13985
|
-
|
13989
|
+
E[le] > S[le] && (W = _f(W));
|
13986
13990
|
var uf = _f(W), Ee = [];
|
13987
|
-
if (
|
13991
|
+
if (A && Ee.push(Y[R] <= 0), i && Ee.push(Y[W] <= 0, Y[uf] <= 0), Ee.every(function(Ce) {
|
13988
13992
|
return Ce;
|
13989
13993
|
})) {
|
13990
|
-
Q = B,
|
13994
|
+
Q = B, O = !1;
|
13991
13995
|
break;
|
13992
13996
|
}
|
13993
|
-
|
13997
|
+
T.set(B, Ee);
|
13994
13998
|
}
|
13995
|
-
if (
|
13996
|
-
for (var cf =
|
13999
|
+
if (O)
|
14000
|
+
for (var cf = h ? 3 : 1, lt = function(ye) {
|
13997
14001
|
var Ke = N.find(function(gf) {
|
13998
|
-
var Te =
|
14002
|
+
var Te = T.get(gf);
|
13999
14003
|
if (Te)
|
14000
14004
|
return Te.slice(0, ye).every(function(rt) {
|
14001
14005
|
return rt;
|
@@ -14021,7 +14025,7 @@ var lo = {
|
|
14021
14025
|
_skip: !1
|
14022
14026
|
}
|
14023
14027
|
};
|
14024
|
-
function
|
14028
|
+
function _n(e, f, t) {
|
14025
14029
|
return t === void 0 && (t = {
|
14026
14030
|
x: 0,
|
14027
14031
|
y: 0
|
@@ -14032,25 +14036,25 @@ function In(e, f, t) {
|
|
14032
14036
|
left: e.left - f.width - t.x
|
14033
14037
|
};
|
14034
14038
|
}
|
14035
|
-
function
|
14039
|
+
function wn(e) {
|
14036
14040
|
return [X, ie, se, ee].some(function(f) {
|
14037
14041
|
return e[f] >= 0;
|
14038
14042
|
});
|
14039
14043
|
}
|
14040
14044
|
function ro(e) {
|
14041
|
-
var f = e.state, t = e.name, n = f.rects.reference, a = f.rects.popper,
|
14045
|
+
var f = e.state, t = e.name, n = f.rects.reference, a = f.rects.popper, A = f.modifiersData.preventOverflow, s = af(f, {
|
14042
14046
|
elementContext: "reference"
|
14043
14047
|
}), i = af(f, {
|
14044
14048
|
altBoundary: !0
|
14045
|
-
}),
|
14049
|
+
}), l = _n(s, n), r = _n(i, a, A), g = wn(l), u = wn(r);
|
14046
14050
|
f.modifiersData[t] = {
|
14047
|
-
referenceClippingOffsets:
|
14048
|
-
popperEscapeOffsets:
|
14051
|
+
referenceClippingOffsets: l,
|
14052
|
+
popperEscapeOffsets: r,
|
14049
14053
|
isReferenceHidden: g,
|
14050
|
-
hasPopperEscaped:
|
14054
|
+
hasPopperEscaped: u
|
14051
14055
|
}, f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
14052
14056
|
"data-popper-reference-hidden": g,
|
14053
|
-
"data-popper-escaped":
|
14057
|
+
"data-popper-escaped": u
|
14054
14058
|
});
|
14055
14059
|
}
|
14056
14060
|
var uo = {
|
@@ -14061,22 +14065,22 @@ var uo = {
|
|
14061
14065
|
fn: ro
|
14062
14066
|
};
|
14063
14067
|
function co(e, f, t) {
|
14064
|
-
var n = de(e), a = [ee, X].indexOf(n) >= 0 ? -1 : 1,
|
14068
|
+
var n = de(e), a = [ee, X].indexOf(n) >= 0 ? -1 : 1, A = typeof t == "function" ? t(Object.assign({}, f, {
|
14065
14069
|
placement: e
|
14066
|
-
})) : t,
|
14067
|
-
return
|
14070
|
+
})) : t, s = A[0], i = A[1];
|
14071
|
+
return s = s || 0, i = (i || 0) * a, [ee, ie].indexOf(n) >= 0 ? {
|
14068
14072
|
x: i,
|
14069
|
-
y:
|
14073
|
+
y: s
|
14070
14074
|
} : {
|
14071
|
-
x:
|
14075
|
+
x: s,
|
14072
14076
|
y: i
|
14073
14077
|
};
|
14074
14078
|
}
|
14075
14079
|
function go(e) {
|
14076
|
-
var f = e.state, t = e.options, n = e.name, a = t.offset,
|
14077
|
-
return g[
|
14078
|
-
}, {}), i =
|
14079
|
-
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x +=
|
14080
|
+
var f = e.state, t = e.options, n = e.name, a = t.offset, A = a === void 0 ? [0, 0] : a, s = Fn.reduce(function(g, u) {
|
14081
|
+
return g[u] = co(u, f.rects, A), g;
|
14082
|
+
}, {}), i = s[f.placement], l = i.x, r = i.y;
|
14083
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += l, f.modifiersData.popperOffsets.y += r), f.modifiersData[n] = s;
|
14080
14084
|
}
|
14081
14085
|
var mo = {
|
14082
14086
|
name: "offset",
|
@@ -14105,14 +14109,14 @@ function Mo(e) {
|
|
14105
14109
|
return e === "x" ? "y" : "x";
|
14106
14110
|
}
|
14107
14111
|
function yo(e) {
|
14108
|
-
var f = e.state, t = e.options, n = e.name, a = t.mainAxis,
|
14109
|
-
boundary:
|
14110
|
-
rootBoundary:
|
14111
|
-
padding:
|
14112
|
+
var f = e.state, t = e.options, n = e.name, a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !1 : s, l = t.boundary, r = t.rootBoundary, g = t.altBoundary, u = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
|
14113
|
+
boundary: l,
|
14114
|
+
rootBoundary: r,
|
14115
|
+
padding: u,
|
14112
14116
|
altBoundary: g
|
14113
|
-
}), _ = de(f.placement), k = He(f.placement), D = !k, N =
|
14117
|
+
}), _ = de(f.placement), k = He(f.placement), D = !k, N = qt(_), E = Mo(N), S = f.modifiersData.popperOffsets, T = f.rects.reference, O = f.rects.popper, Q = typeof M == "function" ? M(Object.assign({}, f.rects, {
|
14114
14118
|
placement: f.placement
|
14115
|
-
})) :
|
14119
|
+
})) : M, C = typeof Q == "number" ? {
|
14116
14120
|
mainAxis: Q,
|
14117
14121
|
altAxis: Q
|
14118
14122
|
} : Object.assign({
|
@@ -14122,17 +14126,17 @@ function yo(e) {
|
|
14122
14126
|
x: 0,
|
14123
14127
|
y: 0
|
14124
14128
|
};
|
14125
|
-
if (
|
14126
|
-
if (
|
14127
|
-
var te, pe = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W =
|
14129
|
+
if (S) {
|
14130
|
+
if (A) {
|
14131
|
+
var te, pe = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[pe], Ee = W - y[le], cf = p ? -O[Y] / 2 : 0, lt = k === Qe ? T[Y] : O[Y], We = k === Qe ? -O[Y] : -T[Y], df = f.elements.arrow, Ce = p && df ? Yt(df) : {
|
14128
14132
|
width: 0,
|
14129
14133
|
height: 0
|
14130
|
-
}, ye = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = ye[pe], gf = ye[le], Te = Ge(0,
|
14131
|
-
|
14134
|
+
}, ye = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = ye[pe], gf = ye[le], Te = Ge(0, T[Y], Ce[Y]), rt = D ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = D ? -T[Y] / 2 + cf + Te + gf + C.mainAxis : We + Te + gf + C.mainAxis, ut = f.elements.arrow && lf(f.elements.arrow), da = ut ? N === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, fn = (te = B == null ? void 0 : B[N]) != null ? te : 0, ga = W + rt - fn - da, ma = W + ca - fn, tn = Ge(p ? Ef(uf, ga) : uf, W, p ? ze(Ee, ma) : Ee);
|
14135
|
+
S[N] = tn, R[N] = tn - W;
|
14132
14136
|
}
|
14133
14137
|
if (i) {
|
14134
|
-
var
|
14135
|
-
|
14138
|
+
var nn, pa = N === "x" ? X : ee, ha = N === "x" ? se : ie, Ve = S[E], mf = E === "y" ? "height" : "width", an = Ve + y[pa], An = Ve - y[ha], ct = [X, ee].indexOf(_) !== -1, sn = (nn = B == null ? void 0 : B[E]) != null ? nn : 0, on = ct ? an : Ve - T[mf] - O[mf] - sn + C.altAxis, ln = ct ? Ve + T[mf] + O[mf] - sn - C.altAxis : An, rn = p && ct ? Yi(on, Ve, ln) : Ge(p ? on : an, Ve, p ? ln : An);
|
14139
|
+
S[E] = rn, R[E] = rn - Ve;
|
14136
14140
|
}
|
14137
14141
|
f.modifiersData[n] = R;
|
14138
14142
|
}
|
@@ -14151,7 +14155,7 @@ function vo(e) {
|
|
14151
14155
|
};
|
14152
14156
|
}
|
14153
14157
|
function Io(e) {
|
14154
|
-
return e === oe(e) || !Ae(e) ?
|
14158
|
+
return e === oe(e) || !Ae(e) ? Ht(e) : vo(e);
|
14155
14159
|
}
|
14156
14160
|
function _o(e) {
|
14157
14161
|
var f = e.getBoundingClientRect(), t = Ye(f.width) / e.offsetWidth || 1, n = Ye(f.height) / e.offsetHeight || 1;
|
@@ -14159,37 +14163,37 @@ function _o(e) {
|
|
14159
14163
|
}
|
14160
14164
|
function wo(e, f, t) {
|
14161
14165
|
t === void 0 && (t = !1);
|
14162
|
-
var n = Ae(f), a = Ae(f) && _o(f),
|
14166
|
+
var n = Ae(f), a = Ae(f) && _o(f), A = De(f), s = qe(e, a), i = {
|
14163
14167
|
scrollLeft: 0,
|
14164
14168
|
scrollTop: 0
|
14165
|
-
},
|
14169
|
+
}, l = {
|
14166
14170
|
x: 0,
|
14167
14171
|
y: 0
|
14168
14172
|
};
|
14169
|
-
return (n || !n && !t) && ((ge(f) !== "body" ||
|
14170
|
-
x:
|
14171
|
-
y:
|
14172
|
-
width:
|
14173
|
-
height:
|
14173
|
+
return (n || !n && !t) && ((ge(f) !== "body" || Pt(A)) && (i = Io(f)), Ae(f) ? (l = qe(f, !0), l.x += f.clientLeft, l.y += f.clientTop) : A && (l.x = Ft(A))), {
|
14174
|
+
x: s.left + i.scrollLeft - l.x,
|
14175
|
+
y: s.top + i.scrollTop - l.y,
|
14176
|
+
width: s.width,
|
14177
|
+
height: s.height
|
14174
14178
|
};
|
14175
14179
|
}
|
14176
14180
|
function ko(e) {
|
14177
14181
|
var f = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set(), n = [];
|
14178
|
-
e.forEach(function(
|
14179
|
-
f.set(
|
14182
|
+
e.forEach(function(A) {
|
14183
|
+
f.set(A.name, A);
|
14180
14184
|
});
|
14181
|
-
function a(
|
14182
|
-
t.add(
|
14183
|
-
var
|
14184
|
-
|
14185
|
+
function a(A) {
|
14186
|
+
t.add(A.name);
|
14187
|
+
var s = [].concat(A.requires || [], A.requiresIfExists || []);
|
14188
|
+
s.forEach(function(i) {
|
14185
14189
|
if (!t.has(i)) {
|
14186
|
-
var
|
14187
|
-
|
14190
|
+
var l = f.get(i);
|
14191
|
+
l && a(l);
|
14188
14192
|
}
|
14189
|
-
}), n.push(
|
14193
|
+
}), n.push(A);
|
14190
14194
|
}
|
14191
|
-
return e.forEach(function(
|
14192
|
-
t.has(
|
14195
|
+
return e.forEach(function(A) {
|
14196
|
+
t.has(A.name) || a(A);
|
14193
14197
|
}), n;
|
14194
14198
|
}
|
14195
14199
|
function No(e) {
|
@@ -14222,12 +14226,12 @@ function jo(e) {
|
|
14222
14226
|
return f[t];
|
14223
14227
|
});
|
14224
14228
|
}
|
14225
|
-
var
|
14229
|
+
var kn = {
|
14226
14230
|
placement: "bottom",
|
14227
14231
|
modifiers: [],
|
14228
14232
|
strategy: "absolute"
|
14229
14233
|
};
|
14230
|
-
function
|
14234
|
+
function Nn() {
|
14231
14235
|
for (var e = arguments.length, f = new Array(e), t = 0; t < e; t++)
|
14232
14236
|
f[t] = arguments[t];
|
14233
14237
|
return !f.some(function(n) {
|
@@ -14236,52 +14240,52 @@ function kn() {
|
|
14236
14240
|
}
|
14237
14241
|
function Eo(e) {
|
14238
14242
|
e === void 0 && (e = {});
|
14239
|
-
var f = e, t = f.defaultModifiers, n = t === void 0 ? [] : t, a = f.defaultOptions,
|
14240
|
-
return function(i,
|
14241
|
-
|
14243
|
+
var f = e, t = f.defaultModifiers, n = t === void 0 ? [] : t, a = f.defaultOptions, A = a === void 0 ? kn : a;
|
14244
|
+
return function(i, l, r) {
|
14245
|
+
r === void 0 && (r = A);
|
14242
14246
|
var g = {
|
14243
14247
|
placement: "bottom",
|
14244
14248
|
orderedModifiers: [],
|
14245
|
-
options: Object.assign({},
|
14249
|
+
options: Object.assign({}, kn, A),
|
14246
14250
|
modifiersData: {},
|
14247
14251
|
elements: {
|
14248
14252
|
reference: i,
|
14249
|
-
popper:
|
14253
|
+
popper: l
|
14250
14254
|
},
|
14251
14255
|
attributes: {},
|
14252
14256
|
styles: {}
|
14253
|
-
},
|
14257
|
+
}, u = [], m = !1, p = {
|
14254
14258
|
state: g,
|
14255
14259
|
setOptions: function(_) {
|
14256
14260
|
var k = typeof _ == "function" ? _(g.options) : _;
|
14257
|
-
|
14261
|
+
M(), g.options = Object.assign({}, A, g.options, k), g.scrollParents = {
|
14258
14262
|
reference: Re(i) ? Ze(i) : i.contextElement ? Ze(i.contextElement) : [],
|
14259
|
-
popper: Ze(
|
14263
|
+
popper: Ze(l)
|
14260
14264
|
};
|
14261
14265
|
var D = No(jo([].concat(n, g.options.modifiers)));
|
14262
14266
|
return g.orderedModifiers = D.filter(function(N) {
|
14263
14267
|
return N.enabled;
|
14264
|
-
}),
|
14268
|
+
}), h(), p.update();
|
14265
14269
|
},
|
14266
14270
|
forceUpdate: function() {
|
14267
14271
|
if (!m) {
|
14268
14272
|
var _ = g.elements, k = _.reference, D = _.popper;
|
14269
|
-
if (
|
14273
|
+
if (Nn(k, D)) {
|
14270
14274
|
g.rects = {
|
14271
14275
|
reference: wo(k, lf(D), g.options.strategy === "fixed"),
|
14272
|
-
popper:
|
14273
|
-
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(
|
14274
|
-
return g.modifiersData[
|
14276
|
+
popper: Yt(D)
|
14277
|
+
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(C) {
|
14278
|
+
return g.modifiersData[C.name] = Object.assign({}, C.data);
|
14275
14279
|
});
|
14276
14280
|
for (var N = 0; N < g.orderedModifiers.length; N++) {
|
14277
14281
|
if (g.reset === !0) {
|
14278
14282
|
g.reset = !1, N = -1;
|
14279
14283
|
continue;
|
14280
14284
|
}
|
14281
|
-
var
|
14282
|
-
typeof
|
14285
|
+
var E = g.orderedModifiers[N], S = E.fn, T = E.options, O = T === void 0 ? {} : T, Q = E.name;
|
14286
|
+
typeof S == "function" && (g = S({
|
14283
14287
|
state: g,
|
14284
|
-
options:
|
14288
|
+
options: O,
|
14285
14289
|
name: Q,
|
14286
14290
|
instance: p
|
14287
14291
|
}) || g);
|
@@ -14295,33 +14299,33 @@ function Eo(e) {
|
|
14295
14299
|
});
|
14296
14300
|
}),
|
14297
14301
|
destroy: function() {
|
14298
|
-
|
14302
|
+
M(), m = !0;
|
14299
14303
|
}
|
14300
14304
|
};
|
14301
|
-
if (!
|
14305
|
+
if (!Nn(i, l))
|
14302
14306
|
return p;
|
14303
|
-
p.setOptions(
|
14304
|
-
!m &&
|
14307
|
+
p.setOptions(r).then(function(y) {
|
14308
|
+
!m && r.onFirstUpdate && r.onFirstUpdate(y);
|
14305
14309
|
});
|
14306
|
-
function
|
14310
|
+
function h() {
|
14307
14311
|
g.orderedModifiers.forEach(function(y) {
|
14308
14312
|
var _ = y.name, k = y.options, D = k === void 0 ? {} : k, N = y.effect;
|
14309
14313
|
if (typeof N == "function") {
|
14310
|
-
var
|
14314
|
+
var E = N({
|
14311
14315
|
state: g,
|
14312
14316
|
name: _,
|
14313
14317
|
instance: p,
|
14314
14318
|
options: D
|
14315
|
-
}),
|
14319
|
+
}), S = function() {
|
14316
14320
|
};
|
14317
|
-
|
14321
|
+
u.push(E || S);
|
14318
14322
|
}
|
14319
14323
|
});
|
14320
14324
|
}
|
14321
|
-
function
|
14322
|
-
|
14325
|
+
function M() {
|
14326
|
+
u.forEach(function(y) {
|
14323
14327
|
return y();
|
14324
|
-
}),
|
14328
|
+
}), u = [];
|
14325
14329
|
}
|
14326
14330
|
return p;
|
14327
14331
|
};
|
@@ -14334,26 +14338,26 @@ function wf(e) {
|
|
14334
14338
|
}
|
14335
14339
|
function xo(e, f, t, n = []) {
|
14336
14340
|
const a = {};
|
14337
|
-
return Object.keys(e).forEach((
|
14338
|
-
if (n.includes(
|
14341
|
+
return Object.keys(e).forEach((A) => {
|
14342
|
+
if (n.includes(A))
|
14339
14343
|
return;
|
14340
|
-
const
|
14341
|
-
e[
|
14342
|
-
var
|
14344
|
+
const s = [];
|
14345
|
+
e[A].forEach((i) => {
|
14346
|
+
var l;
|
14343
14347
|
if (i[st][0].includes(f.toLocaleLowerCase())) {
|
14344
|
-
let
|
14348
|
+
let r = i[Rn];
|
14345
14349
|
if (t !== jf && Array.isArray(i[pf])) {
|
14346
|
-
const g = ((
|
14347
|
-
(
|
14350
|
+
const g = ((l = i[pf]) == null ? void 0 : l.findIndex(
|
14351
|
+
(u) => u.includes(t)
|
14348
14352
|
)) || -1;
|
14349
|
-
g !== -1 && i[pf] && (
|
14353
|
+
g !== -1 && i[pf] && (r = i[pf][g]);
|
14350
14354
|
}
|
14351
|
-
return
|
14355
|
+
return s.push({
|
14352
14356
|
...i,
|
14353
|
-
[tf]:
|
14357
|
+
[tf]: r
|
14354
14358
|
});
|
14355
14359
|
}
|
14356
|
-
}),
|
14360
|
+
}), s.length && (a[A] = s);
|
14357
14361
|
}), a;
|
14358
14362
|
}
|
14359
14363
|
function ea() {
|
@@ -14383,32 +14387,32 @@ const So = K({
|
|
14383
14387
|
e.search,
|
14384
14388
|
e.skinTone,
|
14385
14389
|
e.options.disabledGroups
|
14386
|
-
)),
|
14387
|
-
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((
|
14388
|
-
e.options.groupNames[
|
14390
|
+
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), l = Cn(e.options.groupNames), r = e.orderedGroupKeys;
|
14391
|
+
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
|
14392
|
+
e.options.groupNames[h] ? l[h] = e.options.groupNames[h] : l[h] = fa(h);
|
14389
14393
|
});
|
14390
14394
|
const g = ea() ? "is-mac" : "";
|
14391
|
-
function
|
14392
|
-
f(
|
14395
|
+
function u(h) {
|
14396
|
+
f(h);
|
14393
14397
|
}
|
14394
|
-
function m(
|
14395
|
-
t(
|
14396
|
-
...
|
14398
|
+
function m(h) {
|
14399
|
+
t(h), A == null || A.emit("select", {
|
14400
|
+
...h,
|
14397
14401
|
t: e.skinTone,
|
14398
|
-
i: wf(
|
14402
|
+
i: wf(h.r)
|
14399
14403
|
});
|
14400
14404
|
}
|
14401
|
-
function p(
|
14405
|
+
function p(h, M) {
|
14402
14406
|
var y;
|
14403
|
-
const _ = (y =
|
14404
|
-
_ && (_.innerHTML = `<span>${wf(
|
14407
|
+
const _ = (y = h == null ? void 0 : h.target) == null ? void 0 : y.closest("button");
|
14408
|
+
_ && (_.innerHTML = `<span>${wf(M)}</span>`);
|
14405
14409
|
}
|
14406
14410
|
return Oe(
|
14407
14411
|
() => e.activeGroup,
|
14408
14412
|
() => {
|
14409
|
-
var
|
14410
|
-
const
|
14411
|
-
|
14413
|
+
var h;
|
14414
|
+
const M = (h = n.value) == null ? void 0 : h.querySelector("#" + e.activeGroup);
|
14415
|
+
M && (M.parentNode.scrollTop = M.offsetTop - M.parentNode.offsetTop);
|
14412
14416
|
}
|
14413
14417
|
), {
|
14414
14418
|
emojis: a,
|
@@ -14417,55 +14421,55 @@ const So = K({
|
|
14417
14421
|
GROUP_NAMES: Qn,
|
14418
14422
|
handleClick: m,
|
14419
14423
|
handleError: p,
|
14420
|
-
handleMouseEnter:
|
14424
|
+
handleMouseEnter: u,
|
14421
14425
|
native: e.options.native,
|
14422
14426
|
unicodeToEmoji: wf,
|
14423
14427
|
EMOJI_RESULT_KEY: tf,
|
14424
14428
|
EMOJI_NAME_KEY: st,
|
14425
|
-
hasGroupNames:
|
14429
|
+
hasGroupNames: s,
|
14426
14430
|
isSticky: i,
|
14427
14431
|
platform: g,
|
14428
|
-
groupNames:
|
14429
|
-
orderedKeys:
|
14432
|
+
groupNames: l,
|
14433
|
+
orderedKeys: r
|
14430
14434
|
};
|
14431
14435
|
}
|
14432
14436
|
}), zo = { class: "v3-body" }, Oo = ["id"], Co = { class: "v3-emojis" }, Lo = ["onMouseenter", "onClick"], Uo = { key: 0 }, Bo = ["src", "alt", "onError"], Qo = {
|
14433
14437
|
key: 1,
|
14434
14438
|
class: "v3-no-result"
|
14435
14439
|
};
|
14436
|
-
function Ro(e, f, t, n, a,
|
14440
|
+
function Ro(e, f, t, n, a, A) {
|
14437
14441
|
return c(), d("div", zo, [
|
14438
|
-
|
14442
|
+
o("div", {
|
14439
14443
|
ref: "bodyInner",
|
14440
|
-
class:
|
14444
|
+
class: x([e.platform, "v3-body-inner"])
|
14441
14445
|
}, [
|
14442
|
-
e.orderedKeys.length ? (c(!0), d($, { key: 0 }, Z(e.orderedKeys, (
|
14443
|
-
id:
|
14444
|
-
key:
|
14446
|
+
e.orderedKeys.length ? (c(!0), d($, { key: 0 }, Z(e.orderedKeys, (s) => (c(), d("div", {
|
14447
|
+
id: s,
|
14448
|
+
key: s,
|
14445
14449
|
class: "v3-group"
|
14446
14450
|
}, [
|
14447
14451
|
e.hasGroupNames ? we((c(), d("h5", {
|
14448
14452
|
key: 0,
|
14449
|
-
class:
|
14450
|
-
}, w(e.groupNames[
|
14451
|
-
[Df, e.emojis[
|
14453
|
+
class: x(e.isSticky ? "v3-sticky" : "")
|
14454
|
+
}, w(e.groupNames[s]), 3)), [
|
14455
|
+
[Df, e.emojis[s]]
|
14452
14456
|
]) : b("", !0),
|
14453
|
-
we(
|
14454
|
-
(c(!0), d($, null, Z(e.emojis[
|
14457
|
+
we(o("div", Co, [
|
14458
|
+
(c(!0), d($, null, Z(e.emojis[s], (i) => (c(), d("button", {
|
14455
14459
|
key: i.r,
|
14456
14460
|
type: "button",
|
14457
|
-
onMouseenter: (
|
14458
|
-
onClick: (
|
14461
|
+
onMouseenter: (l) => e.handleMouseEnter(i),
|
14462
|
+
onClick: (l) => e.handleClick(i)
|
14459
14463
|
}, [
|
14460
14464
|
e.native ? (c(), d("span", Uo, w(e.unicodeToEmoji(i.r)), 1)) : (c(), d("img", {
|
14461
14465
|
key: 1,
|
14462
14466
|
src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
|
14463
14467
|
alt: i.n[0],
|
14464
|
-
onError: (
|
14468
|
+
onError: (l) => e.handleError(l, i.r)
|
14465
14469
|
}, null, 40, Bo))
|
14466
14470
|
], 40, Lo))), 128))
|
14467
14471
|
], 512), [
|
14468
|
-
[Df, e.emojis[
|
14472
|
+
[Df, e.emojis[s]]
|
14469
14473
|
])
|
14470
14474
|
], 8, Oo))), 128)) : (c(), d("span", Qo, " No emoji has been found! "))
|
14471
14475
|
], 2)
|
@@ -14475,28 +14479,28 @@ var Yo = /* @__PURE__ */ rf(So, [["render", Ro]]), qo = "data:image/svg+xml;base
|
|
14475
14479
|
const Go = K({
|
14476
14480
|
name: "Header",
|
14477
14481
|
setup(e) {
|
14478
|
-
const { state: f, updateSearch: t, updateActiveGroup: n } = ke("store"), a = U(() => !f.options.hideSearch),
|
14482
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = ke("store"), a = U(() => !f.options.hideSearch), A = U(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = U(
|
14479
14483
|
() => f.options.staticTexts.placeholder || ""
|
14480
|
-
),
|
14484
|
+
), l = U({
|
14481
14485
|
get: () => f.search,
|
14482
|
-
set: (
|
14483
|
-
}),
|
14486
|
+
set: (u) => t(u)
|
14487
|
+
}), r = [
|
14484
14488
|
...f.groups,
|
14485
|
-
...Object.keys(f.options.additionalGroups).map((
|
14486
|
-
key:
|
14487
|
-
title: f.options.groupNames[
|
14489
|
+
...Object.keys(f.options.additionalGroups).map((u) => ({
|
14490
|
+
key: u,
|
14491
|
+
title: f.options.groupNames[u] ? f.options.groupNames[u] : fa(u)
|
14488
14492
|
}))
|
14489
14493
|
], g = [];
|
14490
|
-
return
|
14491
|
-
const m =
|
14492
|
-
m !== -1 && (g.push(
|
14494
|
+
return s.forEach((u) => {
|
14495
|
+
const m = r.findIndex((p) => p.key === u);
|
14496
|
+
m !== -1 && (g.push(r[m]), r.splice(m, 1));
|
14493
14497
|
}), {
|
14494
14498
|
orderedGroups: g,
|
14495
|
-
orderedKeys:
|
14496
|
-
searchValue:
|
14499
|
+
orderedKeys: s,
|
14500
|
+
searchValue: l,
|
14497
14501
|
updateActiveGroup: n,
|
14498
14502
|
hasSearch: a,
|
14499
|
-
hasGroupIcons:
|
14503
|
+
hasGroupIcons: A,
|
14500
14504
|
placeholder: i,
|
14501
14505
|
icons: {
|
14502
14506
|
smileys_people: Xn,
|
@@ -14525,23 +14529,23 @@ const Go = K({
|
|
14525
14529
|
key: 2,
|
14526
14530
|
class: "v3-search"
|
14527
14531
|
}, A1 = ["placeholder"];
|
14528
|
-
function s1(e, f, t, n, a,
|
14532
|
+
function s1(e, f, t, n, a, A) {
|
14529
14533
|
return e.hasGroupIcons || e.hasSearch ? (c(), d("div", Zo, [
|
14530
14534
|
e.hasGroupIcons ? (c(), d("div", Xo, [
|
14531
|
-
(c(!0), d($, null, Z(e.orderedGroups, (
|
14532
|
-
key:
|
14535
|
+
(c(!0), d($, null, Z(e.orderedGroups, (s) => (c(), d("button", {
|
14536
|
+
key: s.key,
|
14533
14537
|
type: "button",
|
14534
|
-
class:
|
14535
|
-
"v3-is-hidden": !e.icons[
|
14538
|
+
class: x(["v3-group", {
|
14539
|
+
"v3-is-hidden": !e.icons[s.key]
|
14536
14540
|
}]),
|
14537
|
-
onClick: (i) => e.updateActiveGroup(
|
14541
|
+
onClick: (i) => e.updateActiveGroup(s.key)
|
14538
14542
|
}, [
|
14539
|
-
|
14540
|
-
title:
|
14543
|
+
o("span", {
|
14544
|
+
title: s.title,
|
14541
14545
|
class: "v3-icon"
|
14542
14546
|
}, [
|
14543
|
-
|
14544
|
-
src: e.icons[
|
14547
|
+
o("img", {
|
14548
|
+
src: e.icons[s.key],
|
14545
14549
|
alt: ""
|
14546
14550
|
}, null, 8, t1)
|
14547
14551
|
], 8, f1)
|
@@ -14549,8 +14553,8 @@ function s1(e, f, t, n, a, s) {
|
|
14549
14553
|
])) : b("", !0),
|
14550
14554
|
e.hasGroupIcons && e.hasSearch ? (c(), d("div", n1)) : b("", !0),
|
14551
14555
|
e.hasSearch ? (c(), d("div", a1, [
|
14552
|
-
we(
|
14553
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
14556
|
+
we(o("input", {
|
14557
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
14554
14558
|
type: "text",
|
14555
14559
|
placeholder: e.placeholder
|
14556
14560
|
}, null, 8, A1), [
|
@@ -14563,20 +14567,20 @@ var i1 = /* @__PURE__ */ rf(Go, [["render", s1]]);
|
|
14563
14567
|
const o1 = K({
|
14564
14568
|
name: "Header",
|
14565
14569
|
setup() {
|
14566
|
-
const { state: e, updateSkinTone: f } = ke("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone),
|
14570
|
+
const { state: e, updateSkinTone: f } = ke("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone), A = U(
|
14567
14571
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
14568
|
-
),
|
14572
|
+
), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "", l = U(() => ({
|
14569
14573
|
...e.emoji,
|
14570
14574
|
src: Bn + "/" + e.emoji[tf] + ".png"
|
14571
14575
|
}));
|
14572
|
-
function
|
14576
|
+
function r(m = !0) {
|
14573
14577
|
t.value = m;
|
14574
14578
|
}
|
14575
14579
|
function g() {
|
14576
14580
|
t.value = !t.value;
|
14577
14581
|
}
|
14578
|
-
function
|
14579
|
-
f(m),
|
14582
|
+
function u(m) {
|
14583
|
+
f(m), r(!1);
|
14580
14584
|
}
|
14581
14585
|
return Oe(
|
14582
14586
|
() => e.emoji,
|
@@ -14584,17 +14588,17 @@ const o1 = K({
|
|
14584
14588
|
n.value = !1;
|
14585
14589
|
}
|
14586
14590
|
), {
|
14587
|
-
emoji:
|
14591
|
+
emoji: l,
|
14588
14592
|
SKIN_TONES: Xs,
|
14589
|
-
updateSkinToneState:
|
14593
|
+
updateSkinToneState: r,
|
14590
14594
|
skinTone: t,
|
14591
14595
|
stateSkinTone: a,
|
14592
|
-
selectSkinTone:
|
14596
|
+
selectSkinTone: u,
|
14593
14597
|
toggleSkinToneState: g,
|
14594
14598
|
EMOJI_RESULT_KEY: tf,
|
14595
14599
|
EMOJI_NAME_KEY: st,
|
14596
|
-
skinToneText:
|
14597
|
-
hasSkinTones:
|
14600
|
+
skinToneText: A,
|
14601
|
+
hasSkinTones: s,
|
14598
14602
|
native: e.options.native,
|
14599
14603
|
unicodeToEmoji: wf,
|
14600
14604
|
platform: i,
|
@@ -14602,43 +14606,43 @@ const o1 = K({
|
|
14602
14606
|
};
|
14603
14607
|
}
|
14604
14608
|
}), l1 = { class: "v3-foot-left" }, r1 = { key: 0 }, u1 = ["alt", "src"], c1 = { class: "v3-text" }, d1 = { class: "v3-text" }, g1 = ["onClick"];
|
14605
|
-
function m1(e, f, t, n, a,
|
14609
|
+
function m1(e, f, t, n, a, A) {
|
14606
14610
|
return c(), d("div", {
|
14607
14611
|
class: "v3-footer",
|
14608
|
-
onMouseleave: f[2] || (f[2] = (
|
14612
|
+
onMouseleave: f[2] || (f[2] = (s) => e.updateSkinToneState(!1))
|
14609
14613
|
}, [
|
14610
|
-
|
14611
|
-
|
14612
|
-
class:
|
14614
|
+
o("div", l1, [
|
14615
|
+
o("span", {
|
14616
|
+
class: x([e.platform, "v3-icon"])
|
14613
14617
|
}, [
|
14614
14618
|
e.native || e.hasError ? (c(), d("span", r1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (c(), d("img", {
|
14615
14619
|
key: 1,
|
14616
14620
|
alt: e.unicodeToEmoji(e.emoji.r),
|
14617
14621
|
src: e.emoji.src,
|
14618
|
-
onError: f[0] || (f[0] = (
|
14622
|
+
onError: f[0] || (f[0] = (s) => e.hasError = !0)
|
14619
14623
|
}, null, 40, u1))
|
14620
14624
|
], 2),
|
14621
|
-
|
14625
|
+
o("span", c1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
14622
14626
|
]),
|
14623
14627
|
e.hasSkinTones ? (c(), d($, { key: 0 }, [
|
14624
|
-
|
14628
|
+
o("button", {
|
14625
14629
|
type: "button",
|
14626
14630
|
class: "v3-tone",
|
14627
|
-
onClick: f[1] || (f[1] = (...
|
14631
|
+
onClick: f[1] || (f[1] = (...s) => e.toggleSkinToneState && e.toggleSkinToneState(...s))
|
14628
14632
|
}, [
|
14629
|
-
|
14630
|
-
|
14631
|
-
class:
|
14633
|
+
o("span", d1, w(e.skinToneText), 1),
|
14634
|
+
o("span", {
|
14635
|
+
class: x(`v3-icon v3-tone-${e.stateSkinTone}`)
|
14632
14636
|
}, null, 2)
|
14633
14637
|
]),
|
14634
|
-
|
14635
|
-
class:
|
14638
|
+
o("div", {
|
14639
|
+
class: x([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
14636
14640
|
}, [
|
14637
|
-
(c(!0), d($, null, Z(e.SKIN_TONES, (
|
14638
|
-
key:
|
14641
|
+
(c(!0), d($, null, Z(e.SKIN_TONES, (s) => (c(), d("button", {
|
14642
|
+
key: s,
|
14639
14643
|
type: "button",
|
14640
|
-
class:
|
14641
|
-
onClick: (i) => e.selectSkinTone(
|
14644
|
+
class: x(["v3-skin-tone-" + s, "v3-skin-tone"]),
|
14645
|
+
onClick: (i) => e.selectSkinTone(s)
|
14642
14646
|
}, null, 10, g1))), 128))
|
14643
14647
|
], 2)
|
14644
14648
|
], 64)) : b("", !0)
|
@@ -14683,29 +14687,29 @@ const h1 = K({
|
|
14683
14687
|
"update:text": (e) => !0
|
14684
14688
|
},
|
14685
14689
|
setup(e, { emit: f }) {
|
14686
|
-
const t = I(), n = I(), a = I(),
|
14687
|
-
let
|
14688
|
-
const { state:
|
14689
|
-
function
|
14690
|
+
const t = I(), n = I(), a = I(), A = I(!1), s = I(e.text), i = e.type === "input" || e.type === "textarea";
|
14691
|
+
let l = -1;
|
14692
|
+
const { state: r } = ke("store"), g = U(() => r.options.colorTheme);
|
14693
|
+
function u(y) {
|
14690
14694
|
if (i) {
|
14691
|
-
const _ =
|
14692
|
-
_ === "prepend" ?
|
14695
|
+
const _ = r.options.mode;
|
14696
|
+
_ === "prepend" ? s.value = y.i + s.value : _ === "insert" && l !== -1 ? (s.value = `${s.value.slice(0, l)}${y.i}${s.value.slice(l)}`, l += y.i.length) : s.value += y.i, f("update:text", s.value);
|
14693
14697
|
}
|
14694
14698
|
f("select", y);
|
14695
14699
|
}
|
14696
14700
|
function m() {
|
14697
14701
|
var y;
|
14698
|
-
t.value && (
|
14702
|
+
t.value && (l = ((y = t.value) == null ? void 0 : y.selectionEnd) || -1);
|
14699
14703
|
}
|
14700
14704
|
function p(y) {
|
14701
14705
|
var _;
|
14702
14706
|
!((_ = y.target) != null && _.closest(
|
14703
14707
|
".v3-input-picker-wrap"
|
14704
|
-
)) &&
|
14708
|
+
)) && A.value && (A.value = !1);
|
14705
14709
|
}
|
14706
|
-
function
|
14710
|
+
function h() {
|
14707
14711
|
if (n.value && a.value && i) {
|
14708
|
-
let y =
|
14712
|
+
let y = r.options.offset;
|
14709
14713
|
typeof y != "number" && (y = 6), Vo(n.value, a.value, {
|
14710
14714
|
placement: "bottom-end",
|
14711
14715
|
modifiers: [
|
@@ -14719,24 +14723,24 @@ const h1 = K({
|
|
14719
14723
|
}), document.body.addEventListener("click", p);
|
14720
14724
|
}
|
14721
14725
|
}
|
14722
|
-
function
|
14723
|
-
|
14726
|
+
function M(y) {
|
14727
|
+
s.value = y.target.value || "", f("update:text", s.value);
|
14724
14728
|
}
|
14725
14729
|
return Ne(() => {
|
14726
|
-
|
14730
|
+
h();
|
14727
14731
|
}), wa(() => {
|
14728
14732
|
document.body.removeEventListener("click", p);
|
14729
14733
|
}), {
|
14730
14734
|
face: Xn,
|
14731
|
-
open:
|
14732
|
-
onSelect:
|
14733
|
-
input:
|
14735
|
+
open: A,
|
14736
|
+
onSelect: u,
|
14737
|
+
input: s,
|
14734
14738
|
elem: t,
|
14735
14739
|
updateCursor: m,
|
14736
14740
|
button: n,
|
14737
14741
|
picker: a,
|
14738
14742
|
isInputType: i,
|
14739
|
-
onChangeText:
|
14743
|
+
onChangeText: M,
|
14740
14744
|
colorTheme: g
|
14741
14745
|
};
|
14742
14746
|
}
|
@@ -14744,57 +14748,57 @@ const h1 = K({
|
|
14744
14748
|
key: 0,
|
14745
14749
|
class: "v3-input-emoji-picker"
|
14746
14750
|
}, y1 = { class: "v3-input-picker-root" }, b1 = ["value"], v1 = ["value"], I1 = ["src"];
|
14747
|
-
function _1(e, f, t, n, a,
|
14748
|
-
const
|
14751
|
+
function _1(e, f, t, n, a, A) {
|
14752
|
+
const s = If("Header"), i = If("Body"), l = If("Footer");
|
14749
14753
|
return e.isInputType ? (c(), d("div", M1, [
|
14750
|
-
|
14754
|
+
o("div", y1, [
|
14751
14755
|
e.type === "input" ? (c(), d("input", {
|
14752
14756
|
key: 0,
|
14753
14757
|
ref: "elem",
|
14754
14758
|
value: e.input,
|
14755
14759
|
type: "text",
|
14756
14760
|
class: "v3-emoji-picker-input",
|
14757
|
-
onInput: f[0] || (f[0] = (...
|
14758
|
-
onBlur: f[1] || (f[1] = (...
|
14761
|
+
onInput: f[0] || (f[0] = (...r) => e.onChangeText && e.onChangeText(...r)),
|
14762
|
+
onBlur: f[1] || (f[1] = (...r) => e.updateCursor && e.updateCursor(...r))
|
14759
14763
|
}, null, 40, b1)) : (c(), d("textarea", {
|
14760
14764
|
key: 1,
|
14761
14765
|
ref: "elem",
|
14762
14766
|
value: e.input,
|
14763
14767
|
class: "v3-emoji-picker-textarea",
|
14764
|
-
onInput: f[2] || (f[2] = (...
|
14765
|
-
onBlur: f[3] || (f[3] = (...
|
14768
|
+
onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
|
14769
|
+
onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
|
14766
14770
|
}, null, 40, v1)),
|
14767
|
-
|
14768
|
-
class:
|
14771
|
+
o("div", {
|
14772
|
+
class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
14769
14773
|
}, [
|
14770
|
-
|
14774
|
+
o("button", {
|
14771
14775
|
ref: "button",
|
14772
14776
|
type: "button",
|
14773
14777
|
class: "v3-input-picker-icon",
|
14774
|
-
onClick: f[4] || (f[4] = (
|
14778
|
+
onClick: f[4] || (f[4] = (r) => e.open = !e.open)
|
14775
14779
|
}, [
|
14776
|
-
|
14780
|
+
o("img", {
|
14777
14781
|
src: e.face,
|
14778
14782
|
alt: ""
|
14779
14783
|
}, null, 8, I1)
|
14780
14784
|
], 512),
|
14781
|
-
|
14785
|
+
o("div", {
|
14782
14786
|
ref: "picker",
|
14783
|
-
class:
|
14787
|
+
class: x(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14784
14788
|
}, [
|
14785
|
-
L(
|
14789
|
+
L(s),
|
14786
14790
|
L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14787
|
-
L(
|
14791
|
+
L(l)
|
14788
14792
|
], 2)
|
14789
14793
|
], 2)
|
14790
14794
|
])
|
14791
14795
|
])) : (c(), d("div", {
|
14792
14796
|
key: 1,
|
14793
|
-
class:
|
14797
|
+
class: x(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14794
14798
|
}, [
|
14795
|
-
L(
|
14799
|
+
L(s),
|
14796
14800
|
L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14797
|
-
L(
|
14801
|
+
L(l)
|
14798
14802
|
], 2));
|
14799
14803
|
}
|
14800
14804
|
var w1 = /* @__PURE__ */ rf(h1, [["render", _1]]);
|
@@ -14883,8 +14887,8 @@ const k1 = K({
|
|
14883
14887
|
},
|
14884
14888
|
setup(e, { emit: f }) {
|
14885
14889
|
const t = I(e.text);
|
14886
|
-
function n(
|
14887
|
-
t.value =
|
14890
|
+
function n(A) {
|
14891
|
+
t.value = A || "", f("update:text", t.value);
|
14888
14892
|
}
|
14889
14893
|
const a = wi();
|
14890
14894
|
return a.updateOptions({
|
@@ -14904,16 +14908,16 @@ const k1 = K({
|
|
14904
14908
|
groupOrder: e.groupOrder,
|
14905
14909
|
groupIcons: e.groupIcons,
|
14906
14910
|
colorTheme: fi.includes(e.theme) ? e.theme : "light"
|
14907
|
-
}),
|
14911
|
+
}), Ct("store", a), {
|
14908
14912
|
type: e.pickerType,
|
14909
14913
|
input: t,
|
14910
14914
|
onChangeText: n
|
14911
14915
|
};
|
14912
14916
|
}
|
14913
14917
|
});
|
14914
|
-
function N1(e, f, t, n, a,
|
14915
|
-
const
|
14916
|
-
return c(), F(
|
14918
|
+
function N1(e, f, t, n, a, A) {
|
14919
|
+
const s = If("picker-root");
|
14920
|
+
return c(), F(s, {
|
14917
14921
|
type: e.type,
|
14918
14922
|
text: e.input,
|
14919
14923
|
onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
|
@@ -14928,52 +14932,56 @@ const j1 = {
|
|
14928
14932
|
type: String,
|
14929
14933
|
required: !1,
|
14930
14934
|
default: "hover"
|
14935
|
+
},
|
14936
|
+
state: {
|
14937
|
+
type: String,
|
14938
|
+
default: "active"
|
14931
14939
|
}
|
14932
14940
|
},
|
14933
14941
|
setup(e) {
|
14934
|
-
const f = e, t = I(null), n = I(null), a = ke("chatAppId"), { setMessageText:
|
14942
|
+
const f = e, t = I(null), n = I(null), a = ke("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
|
14935
14943
|
if (document.documentElement.classList.contains("dark"))
|
14936
14944
|
return "dark";
|
14937
|
-
}),
|
14938
|
-
s(
|
14939
|
-
}, u = () => {
|
14940
|
-
f.mode == "click" && (t.value.style.display = "inherit");
|
14941
|
-
}, g = () => {
|
14942
|
-
f.mode == "hover" && (t.value.style.display = "inherit");
|
14945
|
+
}), l = (p) => {
|
14946
|
+
A(s().text + p.i);
|
14943
14947
|
}, r = () => {
|
14944
|
-
f.mode == "
|
14948
|
+
f.mode == "click" && f.state == "active" && (t.value.style.display = "inherit");
|
14949
|
+
}, g = () => {
|
14950
|
+
f.mode == "hover" && f.state == "active" && (t.value.style.display = "inherit");
|
14951
|
+
}, u = () => {
|
14952
|
+
f.mode == "hover" && f.state == "active" && (t.value.style.display = "none");
|
14945
14953
|
}, m = (p) => {
|
14946
14954
|
f.mode == "click" && !n.value.contains(p.target) && !t.value.contains(p.target) && (t.value.style.display = "none");
|
14947
14955
|
};
|
14948
14956
|
return Ne(() => {
|
14949
14957
|
t.value.style.display = "none", document.addEventListener("click", m);
|
14950
|
-
}),
|
14958
|
+
}), zt(() => {
|
14951
14959
|
document.removeEventListener("click", m);
|
14952
|
-
}), (p,
|
14953
|
-
|
14960
|
+
}), (p, h) => (c(), d($, null, [
|
14961
|
+
o("div", {
|
14954
14962
|
ref_key: "emojiButton",
|
14955
14963
|
ref: n,
|
14956
|
-
class: "button",
|
14957
|
-
onClick:
|
14964
|
+
class: x(["button", { "button-disabled": e.state == "disabled" }]),
|
14965
|
+
onClick: r,
|
14958
14966
|
onMouseover: g,
|
14959
|
-
onMouseout:
|
14960
|
-
},
|
14961
|
-
|
14962
|
-
]),
|
14967
|
+
onMouseout: u
|
14968
|
+
}, h[0] || (h[0] = [
|
14969
|
+
o("span", { class: "pi pi-face-smile" }, null, -1)
|
14970
|
+
]), 34),
|
14963
14971
|
L(q, null, {
|
14964
14972
|
default: H(() => [
|
14965
|
-
|
14973
|
+
o("div", {
|
14966
14974
|
ref_key: "emoji",
|
14967
14975
|
ref: t,
|
14968
14976
|
class: "emoji",
|
14969
14977
|
onMouseover: g,
|
14970
|
-
onMouseout:
|
14978
|
+
onMouseout: u
|
14971
14979
|
}, [
|
14972
|
-
L(
|
14980
|
+
L(j(D1), {
|
14973
14981
|
native: !0,
|
14974
14982
|
theme: i.value,
|
14975
14983
|
"picker-type": "",
|
14976
|
-
onSelect:
|
14984
|
+
onSelect: l
|
14977
14985
|
}, null, 8, ["theme"])
|
14978
14986
|
], 544)
|
14979
14987
|
]),
|
@@ -14981,7 +14989,7 @@ const j1 = {
|
|
14981
14989
|
})
|
14982
14990
|
], 64));
|
14983
14991
|
}
|
14984
|
-
}, Vu = /* @__PURE__ */
|
14992
|
+
}, Vu = /* @__PURE__ */ z(j1, [["__scopeId", "data-v-116254cb"]]), E1 = { class: "context-menu" }, T1 = { class: "context-menu__container" }, V1 = { class: "context-menu__list" }, x1 = ["onClick"], S1 = ["src"], z1 = {
|
14985
14993
|
__name: "ContextMenu",
|
14986
14994
|
props: {
|
14987
14995
|
actions: {
|
@@ -14991,17 +14999,17 @@ const j1 = {
|
|
14991
14999
|
},
|
14992
15000
|
emits: ["click"],
|
14993
15001
|
setup(e, { emit: f }) {
|
14994
|
-
const t = e, n = f, a = (
|
14995
|
-
const
|
14996
|
-
n("click",
|
15002
|
+
const t = e, n = f, a = (A) => {
|
15003
|
+
const s = t.actions[A];
|
15004
|
+
n("click", s);
|
14997
15005
|
};
|
14998
|
-
return (
|
14999
|
-
|
15000
|
-
|
15001
|
-
(c(!0), d($, null, Z(t.actions, (i,
|
15002
|
-
key:
|
15006
|
+
return (A, s) => (c(), d("div", E1, [
|
15007
|
+
o("div", T1, [
|
15008
|
+
o("ul", V1, [
|
15009
|
+
(c(!0), d($, null, Z(t.actions, (i, l) => (c(), d("li", {
|
15010
|
+
key: l,
|
15003
15011
|
class: "context-menu__item",
|
15004
|
-
onClick: (
|
15012
|
+
onClick: (r) => a(l)
|
15005
15013
|
}, [
|
15006
15014
|
i.icon ? (c(), d("img", {
|
15007
15015
|
key: 0,
|
@@ -15010,15 +15018,15 @@ const j1 = {
|
|
15010
15018
|
height: "18"
|
15011
15019
|
}, null, 8, S1)) : i.prime ? (c(), d("i", {
|
15012
15020
|
key: 1,
|
15013
|
-
class:
|
15021
|
+
class: x("pi pi-" + i.prime)
|
15014
15022
|
}, null, 2)) : b("", !0),
|
15015
|
-
|
15023
|
+
o("span", null, w(i.title), 1)
|
15016
15024
|
], 8, x1))), 128))
|
15017
15025
|
])
|
15018
15026
|
])
|
15019
15027
|
]));
|
15020
15028
|
}
|
15021
|
-
}, je = /* @__PURE__ */
|
15029
|
+
}, je = /* @__PURE__ */ z(z1, [["__scopeId", "data-v-7784f539"]]), O1 = ["messageId"], C1 = ["src"], L1 = {
|
15022
15030
|
key: 1,
|
15023
15031
|
class: "file-message__subtext"
|
15024
15032
|
}, U1 = ["href"], B1 = { class: "file-message__filename-text" }, Q1 = { class: "file-message__info-container" }, R1 = { class: "file-message__time" }, Y1 = {
|
@@ -15037,18 +15045,18 @@ const j1 = {
|
|
15037
15045
|
},
|
15038
15046
|
setup(e) {
|
15039
15047
|
const f = e, t = I(!1), n = I(!1), a = () => {
|
15040
|
-
}, s = () => {
|
15041
|
-
n.value = !0;
|
15042
15048
|
}, A = () => {
|
15049
|
+
n.value = !0;
|
15050
|
+
}, s = () => {
|
15043
15051
|
n.value = !1, t.value = !1;
|
15044
15052
|
}, i = U(() => $e(f.message.status));
|
15045
|
-
function
|
15046
|
-
return
|
15053
|
+
function l(r) {
|
15054
|
+
return r.position === "left" ? "file-message__left" : "file-message__right";
|
15047
15055
|
}
|
15048
|
-
return (
|
15049
|
-
class:
|
15056
|
+
return (r, g) => (c(), d("div", {
|
15057
|
+
class: x(["file-message", l(e.message)]),
|
15050
15058
|
messageId: e.message.messageId,
|
15051
|
-
onMouseleave:
|
15059
|
+
onMouseleave: s
|
15052
15060
|
}, [
|
15053
15061
|
e.message.avatar ? (c(), d("img", {
|
15054
15062
|
key: 0,
|
@@ -15059,47 +15067,47 @@ const j1 = {
|
|
15059
15067
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
15060
15068
|
}, null, 12, C1)) : b("", !0),
|
15061
15069
|
e.message.subText ? (c(), d("p", L1, w(e.message.subText), 1)) : b("", !0),
|
15062
|
-
|
15070
|
+
o("div", {
|
15063
15071
|
class: "file-message__content",
|
15064
|
-
onMouseenter:
|
15072
|
+
onMouseenter: A
|
15065
15073
|
}, [
|
15066
|
-
|
15074
|
+
o("a", {
|
15067
15075
|
class: "file-message__link",
|
15068
15076
|
href: e.message.url,
|
15069
15077
|
download: "",
|
15070
15078
|
target: "_blank"
|
15071
15079
|
}, [
|
15072
|
-
g[1] || (g[1] =
|
15073
|
-
|
15080
|
+
g[1] || (g[1] = o("span", { class: "pi pi-file" }, null, -1)),
|
15081
|
+
o("p", B1, w(e.message.filename), 1)
|
15074
15082
|
], 8, U1),
|
15075
|
-
|
15076
|
-
|
15077
|
-
|
15083
|
+
o("div", Q1, [
|
15084
|
+
o("span", R1, w(e.message.time), 1),
|
15085
|
+
l(e.message) === "file-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15078
15086
|
key: 0,
|
15079
|
-
class:
|
15087
|
+
class: x(["file-message__status", i.value])
|
15080
15088
|
}, [
|
15081
15089
|
e.message.status !== "sent" ? (c(), d("span", Y1)) : b("", !0),
|
15082
|
-
g[2] || (g[2] =
|
15090
|
+
g[2] || (g[2] = o("span", { class: "pi pi-check" }, null, -1))
|
15083
15091
|
], 2)) : b("", !0)
|
15084
15092
|
]),
|
15085
15093
|
n.value && e.message.actions ? (c(), d("button", {
|
15086
15094
|
key: 0,
|
15087
15095
|
class: "file-message__menu-button",
|
15088
|
-
onClick: g[0] || (g[0] = (
|
15096
|
+
onClick: g[0] || (g[0] = (u) => t.value = !t.value)
|
15089
15097
|
}, g[3] || (g[3] = [
|
15090
|
-
|
15098
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15091
15099
|
]))) : b("", !0),
|
15092
|
-
|
15100
|
+
o("a", {
|
15093
15101
|
class: "file-message__download-button",
|
15094
15102
|
href: e.message.url,
|
15095
15103
|
download: "",
|
15096
15104
|
target: "_blank"
|
15097
15105
|
}, g[4] || (g[4] = [
|
15098
|
-
|
15106
|
+
o("span", { class: "pi pi-download" }, null, -1)
|
15099
15107
|
]), 8, q1),
|
15100
15108
|
L(q, null, {
|
15101
15109
|
default: H(() => [
|
15102
|
-
t.value && e.message.actions ? (c(), F(
|
15110
|
+
t.value && e.message.actions ? (c(), F(j(je), {
|
15103
15111
|
key: 0,
|
15104
15112
|
class: "file-message__context-menu",
|
15105
15113
|
actions: e.message.actions,
|
@@ -15109,12 +15117,12 @@ const j1 = {
|
|
15109
15117
|
_: 1
|
15110
15118
|
}),
|
15111
15119
|
e.message.text ? (c(), d("div", H1, [
|
15112
|
-
|
15120
|
+
o("p", null, w(e.message.text), 1)
|
15113
15121
|
])) : b("", !0)
|
15114
15122
|
], 32)
|
15115
15123
|
], 42, O1));
|
15116
15124
|
}
|
15117
|
-
}), P1 = /* @__PURE__ */
|
15125
|
+
}), P1 = /* @__PURE__ */ z(F1, [["__scopeId", "data-v-438b619b"]]), $1 = ["messageId"], W1 = ["src"], K1 = {
|
15118
15126
|
key: 1,
|
15119
15127
|
class: "image-message__subtext"
|
15120
15128
|
}, J1 = { class: "image-message__content" }, G1 = ["src", "alt"], Z1 = {
|
@@ -15141,19 +15149,19 @@ const j1 = {
|
|
15141
15149
|
}
|
15142
15150
|
},
|
15143
15151
|
setup(e) {
|
15144
|
-
const f = e, t = I(!1), n = I(!1), a = I(!1),
|
15152
|
+
const f = e, t = I(!1), n = I(!1), a = I(!1), A = I(!1), s = () => {
|
15145
15153
|
}, i = () => {
|
15146
|
-
a.value = !0,
|
15147
|
-
},
|
15154
|
+
a.value = !0, A.value = !0;
|
15155
|
+
}, l = () => {
|
15148
15156
|
a.value = !1, n.value = !1;
|
15149
|
-
},
|
15150
|
-
function g(
|
15151
|
-
return
|
15157
|
+
}, r = U(() => $e(f.message.status));
|
15158
|
+
function g(u) {
|
15159
|
+
return u.position === "left" ? "image-message__left" : "image-message__right";
|
15152
15160
|
}
|
15153
|
-
return (
|
15154
|
-
class:
|
15161
|
+
return (u, m) => (c(), d("div", {
|
15162
|
+
class: x(["image-message", g(e.message)]),
|
15155
15163
|
messageId: e.message.messageId,
|
15156
|
-
onMouseleave:
|
15164
|
+
onMouseleave: l
|
15157
15165
|
}, [
|
15158
15166
|
e.message.avatar ? (c(), d("img", {
|
15159
15167
|
key: 0,
|
@@ -15163,14 +15171,14 @@ const j1 = {
|
|
15163
15171
|
width: "32"
|
15164
15172
|
}, null, 8, W1)) : b("", !0),
|
15165
15173
|
e.message.subText ? (c(), d("p", K1, w(e.message.subText), 1)) : b("", !0),
|
15166
|
-
|
15167
|
-
|
15174
|
+
o("div", J1, [
|
15175
|
+
o("div", {
|
15168
15176
|
class: "image-message__preview-button",
|
15169
15177
|
onClick: m[0] || (m[0] = (p) => t.value = !0),
|
15170
15178
|
onMouseenter: i,
|
15171
|
-
onMouseleave: m[1] || (m[1] = (p) =>
|
15179
|
+
onMouseleave: m[1] || (m[1] = (p) => A.value = !A.value)
|
15172
15180
|
}, [
|
15173
|
-
|
15181
|
+
o("img", {
|
15174
15182
|
class: "image-message__preview-image",
|
15175
15183
|
style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
15176
15184
|
src: e.message.url,
|
@@ -15178,18 +15186,18 @@ const j1 = {
|
|
15178
15186
|
}, null, 12, G1),
|
15179
15187
|
L(q, { name: "modal-fade" }, {
|
15180
15188
|
default: H(() => [
|
15181
|
-
|
15189
|
+
A.value ? (c(), d("div", Z1, [
|
15182
15190
|
e.message.views ? (c(), d("div", X1, [
|
15183
|
-
m[4] || (m[4] =
|
15184
|
-
|
15191
|
+
m[4] || (m[4] = o("span", { class: "pi pi-eye" }, null, -1)),
|
15192
|
+
o("p", null, w(e.message.views), 1)
|
15185
15193
|
])) : b("", !0),
|
15186
|
-
|
15187
|
-
g(e.message) === "image-message__right" &&
|
15194
|
+
o("span", el, w(e.message.time), 1),
|
15195
|
+
g(e.message) === "image-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15188
15196
|
key: 1,
|
15189
|
-
class:
|
15197
|
+
class: x(["image-message__status", r.value])
|
15190
15198
|
}, [
|
15191
15199
|
e.message.status !== "sent" ? (c(), d("span", fl)) : b("", !0),
|
15192
|
-
m[5] || (m[5] =
|
15200
|
+
m[5] || (m[5] = o("span", { class: "pi pi-check" }, null, -1))
|
15193
15201
|
], 2)) : b("", !0)
|
15194
15202
|
])) : b("", !0)
|
15195
15203
|
]),
|
@@ -15197,14 +15205,14 @@ const j1 = {
|
|
15197
15205
|
}),
|
15198
15206
|
L(q, { name: "modal-fade" }, {
|
15199
15207
|
default: H(() => [
|
15200
|
-
|
15208
|
+
A.value ? (c(), d("a", {
|
15201
15209
|
key: 0,
|
15202
15210
|
class: "image-message__download-button",
|
15203
15211
|
href: e.message.url,
|
15204
15212
|
download: "",
|
15205
15213
|
target: "_blank"
|
15206
15214
|
}, m[6] || (m[6] = [
|
15207
|
-
|
15215
|
+
o("span", { class: "pi pi-download" }, null, -1)
|
15208
15216
|
]), 8, tl)) : b("", !0)
|
15209
15217
|
]),
|
15210
15218
|
_: 1
|
@@ -15217,40 +15225,40 @@ const j1 = {
|
|
15217
15225
|
class: "image-message__menu-button",
|
15218
15226
|
onClick: m[2] || (m[2] = (p) => n.value = !n.value)
|
15219
15227
|
}, m[7] || (m[7] = [
|
15220
|
-
|
15228
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15221
15229
|
]))) : b("", !0)
|
15222
15230
|
]),
|
15223
15231
|
_: 1
|
15224
15232
|
}),
|
15225
15233
|
L(q, { name: "context-menu" }, {
|
15226
15234
|
default: H(() => [
|
15227
|
-
n.value && e.message.actions ? (c(), F(
|
15235
|
+
n.value && e.message.actions ? (c(), F(j(je), {
|
15228
15236
|
key: 0,
|
15229
15237
|
class: "image-message__context-menu",
|
15230
15238
|
actions: e.message.actions,
|
15231
|
-
onClick:
|
15239
|
+
onClick: s
|
15232
15240
|
}, null, 8, ["actions"])) : b("", !0)
|
15233
15241
|
]),
|
15234
15242
|
_: 1
|
15235
15243
|
}),
|
15236
15244
|
e.message.text ? (c(), d("div", nl, [
|
15237
|
-
|
15245
|
+
o("p", null, w(e.message.text), 1)
|
15238
15246
|
])) : b("", !0)
|
15239
15247
|
]),
|
15240
|
-
(c(), F(
|
15248
|
+
(c(), F(Ot, { to: "body" }, [
|
15241
15249
|
L(q, { name: "modal-fade" }, {
|
15242
15250
|
default: H(() => [
|
15243
15251
|
t.value ? (c(), d("div", al, [
|
15244
|
-
|
15245
|
-
|
15252
|
+
o("div", Al, [
|
15253
|
+
o("button", {
|
15246
15254
|
class: "image-message__modal-close-button",
|
15247
15255
|
onClick: m[3] || (m[3] = (p) => t.value = !1)
|
15248
15256
|
}, m[8] || (m[8] = [
|
15249
|
-
|
15250
|
-
|
15257
|
+
o("span", null, [
|
15258
|
+
o("i", { class: "pi pi-times" })
|
15251
15259
|
], -1)
|
15252
15260
|
])),
|
15253
|
-
|
15261
|
+
o("img", {
|
15254
15262
|
class: "image-message__modal-image",
|
15255
15263
|
src: e.message.url,
|
15256
15264
|
alt: e.message.alt
|
@@ -15263,11 +15271,11 @@ const j1 = {
|
|
15263
15271
|
]))
|
15264
15272
|
], 42, $1));
|
15265
15273
|
}
|
15266
|
-
}), ol = /* @__PURE__ */
|
15274
|
+
}), ol = /* @__PURE__ */ z(il, [["__scopeId", "data-v-98deabd2"]]), ll = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", rl = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Fe = (e, f) => {
|
15267
15275
|
for (const t in f)
|
15268
15276
|
e[t] = f[t];
|
15269
15277
|
return e;
|
15270
|
-
}, kt = "numeric", Nt = "ascii", Dt = "alpha", kf = "asciinumeric", Mf = "alphanumeric", jt = "domain", ta = "emoji", ul = "scheme", cl = "slashscheme",
|
15278
|
+
}, kt = "numeric", Nt = "ascii", Dt = "alpha", kf = "asciinumeric", Mf = "alphanumeric", jt = "domain", ta = "emoji", ul = "scheme", cl = "slashscheme", Dn = "whitespace";
|
15271
15279
|
function dl(e, f) {
|
15272
15280
|
return e in f || (f[e] = []), f[e];
|
15273
15281
|
}
|
@@ -15303,9 +15311,9 @@ fe.prototype = {
|
|
15303
15311
|
if (t)
|
15304
15312
|
return t;
|
15305
15313
|
for (let n = 0; n < f.jr.length; n++) {
|
15306
|
-
const a = f.jr[n][0],
|
15307
|
-
if (
|
15308
|
-
return
|
15314
|
+
const a = f.jr[n][0], A = f.jr[n][1];
|
15315
|
+
if (A && a.test(e))
|
15316
|
+
return A;
|
15309
15317
|
}
|
15310
15318
|
return f.jd;
|
15311
15319
|
},
|
@@ -15357,12 +15365,12 @@ fe.prototype = {
|
|
15357
15365
|
*/
|
15358
15366
|
ts(e, f, t, n) {
|
15359
15367
|
let a = this;
|
15360
|
-
const
|
15361
|
-
if (!
|
15368
|
+
const A = e.length;
|
15369
|
+
if (!A)
|
15362
15370
|
return a;
|
15363
|
-
for (let
|
15364
|
-
a = a.tt(e[
|
15365
|
-
return a.tt(e[
|
15371
|
+
for (let s = 0; s < A - 1; s++)
|
15372
|
+
a = a.tt(e[s]);
|
15373
|
+
return a.tt(e[A - 1], f, t, n);
|
15366
15374
|
},
|
15367
15375
|
/**
|
15368
15376
|
* Short for "take transition", this is a method for building/working with
|
@@ -15395,20 +15403,20 @@ fe.prototype = {
|
|
15395
15403
|
const a = this;
|
15396
15404
|
if (f && f.j)
|
15397
15405
|
return a.j[e] = f, f;
|
15398
|
-
const
|
15399
|
-
let
|
15400
|
-
if (i ? (
|
15406
|
+
const A = f;
|
15407
|
+
let s, i = a.go(e);
|
15408
|
+
if (i ? (s = new fe(), Fe(s.j, i.j), s.jr.push.apply(s.jr, i.jr), s.jd = i.jd, s.t = i.t) : s = new fe(), A) {
|
15401
15409
|
if (n)
|
15402
|
-
if (
|
15403
|
-
const
|
15404
|
-
xe(
|
15405
|
-
} else t && xe(
|
15406
|
-
|
15410
|
+
if (s.t && typeof s.t == "string") {
|
15411
|
+
const l = Fe(gl(s.t, n), t);
|
15412
|
+
xe(A, l, n);
|
15413
|
+
} else t && xe(A, t, n);
|
15414
|
+
s.t = A;
|
15407
15415
|
}
|
15408
|
-
return a.j[e] =
|
15416
|
+
return a.j[e] = s, s;
|
15409
15417
|
}
|
15410
15418
|
};
|
15411
|
-
const
|
15419
|
+
const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Me = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK", ve = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", Ie = "COLON", Kt = "COMMA", Jf = "DOLLAR", re = "DOT", Gf = "EQUALS", Jt = "EXCLAMATION", ue = "HYPHEN", Zf = "PERCENT", Xf = "PIPE", et = "PLUS", ft = "POUND", tt = "QUERY", Gt = "QUOTE", aa = "FULLWIDTHMIDDLEDOT", Zt = "SEMI", ce = "SLASH", ff = "TILDE", nt = "UNDERSCORE", Aa = "EMOJI", at = "SYM";
|
15412
15420
|
var sa = /* @__PURE__ */ Object.freeze({
|
15413
15421
|
__proto__: null,
|
15414
15422
|
WORD: Me,
|
@@ -15418,9 +15426,9 @@ var sa = /* @__PURE__ */ Object.freeze({
|
|
15418
15426
|
UTLD: Vt,
|
15419
15427
|
SCHEME: Nf,
|
15420
15428
|
SLASH_SCHEME: Ue,
|
15421
|
-
NUM:
|
15429
|
+
NUM: $t,
|
15422
15430
|
WS: na,
|
15423
|
-
NL:
|
15431
|
+
NL: Wt,
|
15424
15432
|
OPENBRACE: Xe,
|
15425
15433
|
CLOSEBRACE: ef,
|
15426
15434
|
OPENBRACKET: Tf,
|
@@ -15445,35 +15453,35 @@ var sa = /* @__PURE__ */ Object.freeze({
|
|
15445
15453
|
BACKTICK: Wf,
|
15446
15454
|
CARET: Kf,
|
15447
15455
|
COLON: Ie,
|
15448
|
-
COMMA:
|
15456
|
+
COMMA: Kt,
|
15449
15457
|
DOLLAR: Jf,
|
15450
15458
|
DOT: re,
|
15451
15459
|
EQUALS: Gf,
|
15452
|
-
EXCLAMATION:
|
15460
|
+
EXCLAMATION: Jt,
|
15453
15461
|
HYPHEN: ue,
|
15454
15462
|
PERCENT: Zf,
|
15455
15463
|
PIPE: Xf,
|
15456
15464
|
PLUS: et,
|
15457
15465
|
POUND: ft,
|
15458
15466
|
QUERY: tt,
|
15459
|
-
QUOTE:
|
15467
|
+
QUOTE: Gt,
|
15460
15468
|
FULLWIDTHMIDDLEDOT: aa,
|
15461
|
-
SEMI:
|
15469
|
+
SEMI: Zt,
|
15462
15470
|
SLASH: ce,
|
15463
15471
|
TILDE: ff,
|
15464
15472
|
UNDERSCORE: nt,
|
15465
15473
|
EMOJI: Aa,
|
15466
15474
|
SYM: at
|
15467
15475
|
});
|
15468
|
-
const Le = /[a-z]/, ht = new RegExp("\\p{L}", "u"), Mt = new RegExp("\\p{Emoji}", "u"), yt = /\d/,
|
15476
|
+
const Le = /[a-z]/, ht = new RegExp("\\p{L}", "u"), Mt = new RegExp("\\p{Emoji}", "u"), yt = /\d/, En = /\s/, Tn = `
|
15469
15477
|
`, ml = "️", pl = "";
|
15470
15478
|
let yf = null, bf = null;
|
15471
15479
|
function hl(e = []) {
|
15472
15480
|
const f = {};
|
15473
15481
|
fe.groups = f;
|
15474
15482
|
const t = new fe();
|
15475
|
-
yf == null && (yf =
|
15476
|
-
const n = ne(t, yt,
|
15483
|
+
yf == null && (yf = Vn(ll)), bf == null && (bf = Vn(rl)), v(t, "'", Ff), v(t, "{", Xe), v(t, "}", ef), v(t, "[", Tf), v(t, "]", Vf), v(t, "(", xf), v(t, ")", Sf), v(t, "<", zf), v(t, ">", Of), v(t, "(", Cf), v(t, ")", Lf), v(t, "「", Uf), v(t, "」", Bf), v(t, "『", Qf), v(t, "』", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "&", Hf), v(t, "*", Pf), v(t, "@", ve), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", Ie), v(t, ",", Kt), v(t, "$", Jf), v(t, ".", re), v(t, "=", Gf), v(t, "!", Jt), v(t, "-", ue), v(t, "%", Zf), v(t, "|", Xf), v(t, "+", et), v(t, "#", ft), v(t, "?", tt), v(t, '"', Gt), v(t, "/", ce), v(t, ";", Zt), v(t, "~", ff), v(t, "_", nt), v(t, "\\", $f), v(t, "・", aa);
|
15484
|
+
const n = ne(t, yt, $t, {
|
15477
15485
|
[kt]: !0
|
15478
15486
|
});
|
15479
15487
|
ne(n, yt, n);
|
@@ -15481,49 +15489,49 @@ function hl(e = []) {
|
|
15481
15489
|
[Nt]: !0
|
15482
15490
|
});
|
15483
15491
|
ne(a, Le, a);
|
15484
|
-
const
|
15492
|
+
const A = ne(t, ht, Et, {
|
15485
15493
|
[Dt]: !0
|
15486
15494
|
});
|
15487
|
-
ne(
|
15488
|
-
const
|
15489
|
-
[
|
15495
|
+
ne(A, Le), ne(A, ht, A);
|
15496
|
+
const s = ne(t, En, na, {
|
15497
|
+
[Dn]: !0
|
15490
15498
|
});
|
15491
|
-
v(t,
|
15492
|
-
[
|
15493
|
-
}), v(
|
15499
|
+
v(t, Tn, Wt, {
|
15500
|
+
[Dn]: !0
|
15501
|
+
}), v(s, Tn), ne(s, En, s);
|
15494
15502
|
const i = ne(t, Mt, Aa, {
|
15495
15503
|
[ta]: !0
|
15496
15504
|
});
|
15497
15505
|
ne(i, Mt, i), v(i, ml, i);
|
15498
|
-
const
|
15499
|
-
ne(
|
15500
|
-
const
|
15501
|
-
for (let
|
15502
|
-
be(t, yf[
|
15503
|
-
for (let
|
15504
|
-
be(t, bf[
|
15506
|
+
const l = v(i, pl);
|
15507
|
+
ne(l, Mt, i);
|
15508
|
+
const r = [[Le, a]], g = [[Le, null], [ht, A]];
|
15509
|
+
for (let u = 0; u < yf.length; u++)
|
15510
|
+
be(t, yf[u], Tt, Me, r);
|
15511
|
+
for (let u = 0; u < bf.length; u++)
|
15512
|
+
be(t, bf[u], Vt, Et, g);
|
15505
15513
|
xe(Tt, {
|
15506
15514
|
tld: !0,
|
15507
15515
|
ascii: !0
|
15508
15516
|
}, f), xe(Vt, {
|
15509
15517
|
utld: !0,
|
15510
15518
|
alpha: !0
|
15511
|
-
}, f), be(t, "file", Nf, Me,
|
15519
|
+
}, f), be(t, "file", Nf, Me, r), be(t, "mailto", Nf, Me, r), be(t, "http", Ue, Me, r), be(t, "https", Ue, Me, r), be(t, "ftp", Ue, Me, r), be(t, "ftps", Ue, Me, r), xe(Nf, {
|
15512
15520
|
scheme: !0,
|
15513
15521
|
ascii: !0
|
15514
15522
|
}, f), xe(Ue, {
|
15515
15523
|
slashscheme: !0,
|
15516
15524
|
ascii: !0
|
15517
|
-
}, f), e = e.sort((
|
15518
|
-
for (let
|
15519
|
-
const m = e[
|
15525
|
+
}, f), e = e.sort((u, m) => u[0] > m[0] ? 1 : -1);
|
15526
|
+
for (let u = 0; u < e.length; u++) {
|
15527
|
+
const m = e[u][0], h = e[u][1] ? {
|
15520
15528
|
[ul]: !0
|
15521
15529
|
} : {
|
15522
15530
|
[cl]: !0
|
15523
15531
|
};
|
15524
|
-
m.indexOf("-") >= 0 ?
|
15532
|
+
m.indexOf("-") >= 0 ? h[jt] = !0 : Le.test(m) ? yt.test(m) ? h[kf] = !0 : h[Nt] = !0 : h[kt] = !0, jn(t, m, m, h);
|
15525
15533
|
}
|
15526
|
-
return
|
15534
|
+
return jn(t, "localhost", Af, {
|
15527
15535
|
ascii: !0
|
15528
15536
|
}), t.jd = new fe(at), {
|
15529
15537
|
start: t,
|
@@ -15534,19 +15542,19 @@ function hl(e = []) {
|
|
15534
15542
|
}
|
15535
15543
|
function ia(e, f) {
|
15536
15544
|
const t = Ml(f.replace(/[A-Z]/g, (i) => i.toLowerCase())), n = t.length, a = [];
|
15537
|
-
let
|
15538
|
-
for (;
|
15539
|
-
let i = e,
|
15540
|
-
for (;
|
15541
|
-
i =
|
15542
|
-
|
15545
|
+
let A = 0, s = 0;
|
15546
|
+
for (; s < n; ) {
|
15547
|
+
let i = e, l = null, r = 0, g = null, u = -1, m = -1;
|
15548
|
+
for (; s < n && (l = i.go(t[s])); )
|
15549
|
+
i = l, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), r += t[s].length, A += t[s].length, s++;
|
15550
|
+
A -= u, s -= m, r -= u, a.push({
|
15543
15551
|
t: g.t,
|
15544
15552
|
// token type/name
|
15545
|
-
v: f.slice(
|
15553
|
+
v: f.slice(A - r, A),
|
15546
15554
|
// string value
|
15547
|
-
s:
|
15555
|
+
s: A - r,
|
15548
15556
|
// start index
|
15549
|
-
e:
|
15557
|
+
e: A
|
15550
15558
|
// end index (excluding)
|
15551
15559
|
});
|
15552
15560
|
}
|
@@ -15556,32 +15564,32 @@ function Ml(e) {
|
|
15556
15564
|
const f = [], t = e.length;
|
15557
15565
|
let n = 0;
|
15558
15566
|
for (; n < t; ) {
|
15559
|
-
let a = e.charCodeAt(n),
|
15560
|
-
f.push(
|
15567
|
+
let a = e.charCodeAt(n), A, s = a < 55296 || a > 56319 || n + 1 === t || (A = e.charCodeAt(n + 1)) < 56320 || A > 57343 ? e[n] : e.slice(n, n + 2);
|
15568
|
+
f.push(s), n += s.length;
|
15561
15569
|
}
|
15562
15570
|
return f;
|
15563
15571
|
}
|
15564
15572
|
function be(e, f, t, n, a) {
|
15565
|
-
let
|
15566
|
-
const
|
15567
|
-
for (let i = 0; i <
|
15568
|
-
const
|
15569
|
-
e.j[
|
15573
|
+
let A;
|
15574
|
+
const s = f.length;
|
15575
|
+
for (let i = 0; i < s - 1; i++) {
|
15576
|
+
const l = f[i];
|
15577
|
+
e.j[l] ? A = e.j[l] : (A = new fe(n), A.jr = a.slice(), e.j[l] = A), e = A;
|
15570
15578
|
}
|
15571
|
-
return
|
15579
|
+
return A = new fe(t), A.jr = a.slice(), e.j[f[s - 1]] = A, A;
|
15572
15580
|
}
|
15573
|
-
function
|
15581
|
+
function Vn(e) {
|
15574
15582
|
const f = [], t = [];
|
15575
15583
|
let n = 0, a = "0123456789";
|
15576
15584
|
for (; n < e.length; ) {
|
15577
|
-
let
|
15578
|
-
for (; a.indexOf(e[n +
|
15579
|
-
|
15580
|
-
if (
|
15585
|
+
let A = 0;
|
15586
|
+
for (; a.indexOf(e[n + A]) >= 0; )
|
15587
|
+
A++;
|
15588
|
+
if (A > 0) {
|
15581
15589
|
f.push(t.join(""));
|
15582
|
-
for (let
|
15590
|
+
for (let s = parseInt(e.substring(n, n + A), 10); s > 0; s--)
|
15583
15591
|
t.pop();
|
15584
|
-
n +=
|
15592
|
+
n += A;
|
15585
15593
|
} else
|
15586
15594
|
t.push(e[n]), n++;
|
15587
15595
|
}
|
@@ -15590,8 +15598,8 @@ function Tn(e) {
|
|
15590
15598
|
const sf = {
|
15591
15599
|
defaultProtocol: "http",
|
15592
15600
|
events: null,
|
15593
|
-
format:
|
15594
|
-
formatHref:
|
15601
|
+
format: xn,
|
15602
|
+
formatHref: xn,
|
15595
15603
|
nl2br: !1,
|
15596
15604
|
tagName: "a",
|
15597
15605
|
target: null,
|
@@ -15603,15 +15611,15 @@ const sf = {
|
|
15603
15611
|
ignoreTags: [],
|
15604
15612
|
render: null
|
15605
15613
|
};
|
15606
|
-
function
|
15614
|
+
function Xt(e, f = null) {
|
15607
15615
|
let t = Fe({}, sf);
|
15608
|
-
e && (t = Fe(t, e instanceof
|
15616
|
+
e && (t = Fe(t, e instanceof Xt ? e.o : e));
|
15609
15617
|
const n = t.ignoreTags, a = [];
|
15610
|
-
for (let
|
15611
|
-
a.push(n[
|
15618
|
+
for (let A = 0; A < n.length; A++)
|
15619
|
+
a.push(n[A].toUpperCase());
|
15612
15620
|
this.o = t, f && (this.defaultRender = f), this.ignoreTags = a;
|
15613
15621
|
}
|
15614
|
-
|
15622
|
+
Xt.prototype = {
|
15615
15623
|
o: sf,
|
15616
15624
|
/**
|
15617
15625
|
* @type string[]
|
@@ -15673,7 +15681,7 @@ Zt.prototype = {
|
|
15673
15681
|
return (this.get("render", null, e) || this.defaultRender)(f, e.t, e);
|
15674
15682
|
}
|
15675
15683
|
};
|
15676
|
-
function
|
15684
|
+
function xn(e) {
|
15677
15685
|
return e;
|
15678
15686
|
}
|
15679
15687
|
function oa(e, f) {
|
@@ -15774,31 +15782,31 @@ oa.prototype = {
|
|
15774
15782
|
* @param {Options} options Formattinng options
|
15775
15783
|
*/
|
15776
15784
|
render(e) {
|
15777
|
-
const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f),
|
15778
|
-
return
|
15785
|
+
const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f), A = this.toFormattedString(e), s = {}, i = e.get("className", t, f), l = e.get("target", t, f), r = e.get("rel", t, f), g = e.getObj("attributes", t, f), u = e.getObj("events", t, f);
|
15786
|
+
return s.href = n, i && (s.class = i), l && (s.target = l), r && (s.rel = r), g && Fe(s, g), {
|
15779
15787
|
tagName: a,
|
15780
|
-
attributes:
|
15781
|
-
content:
|
15782
|
-
eventListeners:
|
15788
|
+
attributes: s,
|
15789
|
+
content: A,
|
15790
|
+
eventListeners: u
|
15783
15791
|
};
|
15784
15792
|
}
|
15785
15793
|
};
|
15786
15794
|
function ot(e, f) {
|
15787
15795
|
class t extends oa {
|
15788
|
-
constructor(a,
|
15789
|
-
super(a,
|
15796
|
+
constructor(a, A) {
|
15797
|
+
super(a, A), this.t = e;
|
15790
15798
|
}
|
15791
15799
|
}
|
15792
15800
|
for (const n in f)
|
15793
15801
|
t.prototype[n] = f[n];
|
15794
15802
|
return t.t = e, t;
|
15795
15803
|
}
|
15796
|
-
const
|
15804
|
+
const Sn = ot("email", {
|
15797
15805
|
isLink: !0,
|
15798
15806
|
toHref() {
|
15799
15807
|
return "mailto:" + this.toString();
|
15800
15808
|
}
|
15801
|
-
}),
|
15809
|
+
}), zn = ot("text"), yl = ot("nl"), vf = ot("url", {
|
15802
15810
|
isLink: !0,
|
15803
15811
|
/**
|
15804
15812
|
Lowercases relevant parts of the domain and adds the protocol if
|
@@ -15822,34 +15830,34 @@ const xn = ot("email", {
|
|
15822
15830
|
function bl({
|
15823
15831
|
groups: e
|
15824
15832
|
}) {
|
15825
|
-
const f = e.domain.concat([Hf, Pf, ve, $f, Wf, Kf, Jf, Gf, ue,
|
15826
|
-
|
15827
|
-
const
|
15828
|
-
|
15829
|
-
const
|
15830
|
-
v(
|
15831
|
-
const g = v(
|
15832
|
-
|
15833
|
-
const
|
15834
|
-
|
15835
|
-
const m = v(
|
15836
|
-
|
15837
|
-
const p = ae(
|
15838
|
-
|
15839
|
-
const
|
15840
|
-
|
15841
|
-
const
|
15842
|
-
|
15843
|
-
const y = v(
|
15844
|
-
|
15833
|
+
const f = e.domain.concat([Hf, Pf, ve, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, Ie, Kt, re, Jt, tt, Gt, Zt, zf, Of, Xe, ef, Vf, Tf, xf, Sf, Cf, Lf, Uf, Bf, Qf, Rf, Yf, qf], n = [Hf, Ff, Pf, $f, Wf, Kf, Jf, Gf, ue, Xe, ef, Zf, Xf, et, ft, tt, ce, at, ff, nt], a = ae(), A = v(a, ff);
|
15834
|
+
V(A, n, A), V(A, e.domain, A);
|
15835
|
+
const s = ae(), i = ae(), l = ae();
|
15836
|
+
V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme, l), V(s, n, A), V(s, e.domain, s);
|
15837
|
+
const r = v(s, ve);
|
15838
|
+
v(A, ve, r), v(i, ve, r), v(l, ve, r);
|
15839
|
+
const g = v(A, re);
|
15840
|
+
V(g, n, A), V(g, e.domain, A);
|
15841
|
+
const u = ae();
|
15842
|
+
V(r, e.domain, u), V(u, e.domain, u);
|
15843
|
+
const m = v(u, re);
|
15844
|
+
V(m, e.domain, u);
|
15845
|
+
const p = ae(Sn);
|
15846
|
+
V(m, e.tld, p), V(m, e.utld, p), v(r, Af, p);
|
15847
|
+
const h = v(u, ue);
|
15848
|
+
V(h, e.domain, u), V(p, e.domain, u), v(p, re, m), v(p, ue, h);
|
15849
|
+
const M = v(p, Ie);
|
15850
|
+
V(M, e.numeric, Sn);
|
15851
|
+
const y = v(s, ue), _ = v(s, re);
|
15852
|
+
V(y, e.domain, s), V(_, n, A), V(_, e.domain, s);
|
15845
15853
|
const k = ae(vf);
|
15846
|
-
|
15854
|
+
V(_, e.tld, k), V(_, e.utld, k), V(k, e.domain, s), V(k, n, A), v(k, re, _), v(k, ue, y), v(k, ve, r);
|
15847
15855
|
const D = v(k, Ie), N = ae(vf);
|
15848
|
-
|
15849
|
-
const
|
15850
|
-
|
15851
|
-
const
|
15852
|
-
|
15856
|
+
V(D, e.numeric, N);
|
15857
|
+
const E = ae(vf), S = ae();
|
15858
|
+
V(E, f, E), V(E, t, S), V(S, f, E), V(S, t, S), v(k, ce, E), v(N, ce, E);
|
15859
|
+
const T = v(i, Ie), O = v(l, Ie), Q = v(O, ce), C = v(Q, ce);
|
15860
|
+
V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(l, e.domain, s), v(l, re, _), v(l, ue, y), V(T, e.domain, E), v(T, ce, E), V(C, e.domain, E), V(C, f, E), v(C, ce, E);
|
15853
15861
|
const B = [
|
15854
15862
|
[Xe, ef],
|
15855
15863
|
// {}
|
@@ -15869,39 +15877,39 @@ function bl({
|
|
15869
15877
|
// <>
|
15870
15878
|
];
|
15871
15879
|
for (let R = 0; R < B.length; R++) {
|
15872
|
-
const [te, pe] = B[R], le = v(
|
15873
|
-
v(
|
15880
|
+
const [te, pe] = B[R], le = v(E, te);
|
15881
|
+
v(S, te, le), v(le, pe, E);
|
15874
15882
|
const Y = ae(vf);
|
15875
|
-
|
15883
|
+
V(le, f, Y);
|
15876
15884
|
const W = ae();
|
15877
|
-
|
15885
|
+
V(le, t), V(Y, f, Y), V(Y, t, W), V(W, f, Y), V(W, t, W), v(Y, pe, E), v(W, pe, E);
|
15878
15886
|
}
|
15879
|
-
return v(a, Af, k), v(a,
|
15887
|
+
return v(a, Af, k), v(a, Wt, yl), {
|
15880
15888
|
start: a,
|
15881
15889
|
tokens: sa
|
15882
15890
|
};
|
15883
15891
|
}
|
15884
15892
|
function vl(e, f, t) {
|
15885
|
-
let n = t.length, a = 0,
|
15893
|
+
let n = t.length, a = 0, A = [], s = [];
|
15886
15894
|
for (; a < n; ) {
|
15887
|
-
let i = e,
|
15888
|
-
for (; a < n && !(
|
15889
|
-
|
15890
|
-
for (; a < n && (
|
15891
|
-
|
15895
|
+
let i = e, l = null, r = null, g = 0, u = null, m = -1;
|
15896
|
+
for (; a < n && !(l = i.go(t[a].t)); )
|
15897
|
+
s.push(t[a++]);
|
15898
|
+
for (; a < n && (r = l || i.go(t[a].t)); )
|
15899
|
+
l = null, i = r, i.accepts() ? (m = 0, u = i) : m >= 0 && m++, a++, g++;
|
15892
15900
|
if (m < 0)
|
15893
|
-
a -= g, a < n && (
|
15901
|
+
a -= g, a < n && (s.push(t[a]), a++);
|
15894
15902
|
else {
|
15895
|
-
|
15896
|
-
const p =
|
15897
|
-
|
15903
|
+
s.length > 0 && (A.push(bt(zn, f, s)), s = []), a -= m, g -= m;
|
15904
|
+
const p = u.t, h = t.slice(a - g, a);
|
15905
|
+
A.push(bt(p, f, h));
|
15898
15906
|
}
|
15899
15907
|
}
|
15900
|
-
return
|
15908
|
+
return s.length > 0 && A.push(bt(zn, f, s)), A;
|
15901
15909
|
}
|
15902
15910
|
function bt(e, f, t) {
|
15903
|
-
const n = t[0].s, a = t[t.length - 1].e,
|
15904
|
-
return new e(
|
15911
|
+
const n = t[0].s, a = t[t.length - 1].e, A = f.slice(n, a);
|
15912
|
+
return new e(A, t);
|
15905
15913
|
}
|
15906
15914
|
const J = {
|
15907
15915
|
scanner: null,
|
@@ -15951,12 +15959,12 @@ function kl({
|
|
15951
15959
|
return `<${e} ${wl(f)}>${ra(t)}</${e}>`;
|
15952
15960
|
}
|
15953
15961
|
function ua(e, f = {}) {
|
15954
|
-
f = new
|
15962
|
+
f = new Xt(f, kl);
|
15955
15963
|
const t = la(e), n = [];
|
15956
15964
|
for (let a = 0; a < t.length; a++) {
|
15957
|
-
const
|
15958
|
-
|
15959
|
-
`) : !
|
15965
|
+
const A = t[a];
|
15966
|
+
A.t === "nl" && f.get("nl2br") ? n.push(`<br>
|
15967
|
+
`) : !A.isLink || !f.check(A) ? n.push(ra(A.toString())) : n.push(f.render(A));
|
15960
15968
|
}
|
15961
15969
|
return n.join("");
|
15962
15970
|
}
|
@@ -15985,34 +15993,34 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
15985
15993
|
},
|
15986
15994
|
emits: ["action"],
|
15987
15995
|
setup(e, { emit: f }) {
|
15988
|
-
const t = e, n = f, a = I(!1),
|
15996
|
+
const t = e, n = f, a = I(!1), A = I(!1), s = I("");
|
15989
15997
|
Oe(
|
15990
15998
|
() => t.message.text,
|
15991
15999
|
() => {
|
15992
|
-
|
16000
|
+
s.value = ua(t.message.text);
|
15993
16001
|
},
|
15994
16002
|
{ immediate: !0 }
|
15995
16003
|
);
|
15996
|
-
function i(
|
15997
|
-
|
16004
|
+
function i(h) {
|
16005
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
15998
16006
|
}
|
15999
|
-
const
|
16000
|
-
|
16001
|
-
},
|
16002
|
-
|
16003
|
-
}, g = U(() => $e(t.message.status)),
|
16004
|
-
|
16007
|
+
const l = () => {
|
16008
|
+
A.value = !0;
|
16009
|
+
}, r = () => {
|
16010
|
+
A.value = !1, a.value = !1;
|
16011
|
+
}, g = U(() => $e(t.message.status)), u = (h) => {
|
16012
|
+
r(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
|
16005
16013
|
}, m = () => {
|
16006
|
-
|
16014
|
+
r(), n("action", { messageId: t.message.messageId, type: "views" });
|
16007
16015
|
};
|
16008
|
-
function p(
|
16009
|
-
return
|
16016
|
+
function p(h) {
|
16017
|
+
return h.position === "left" ? "text-message__left" : "text-message__right";
|
16010
16018
|
}
|
16011
|
-
return (
|
16012
|
-
|
16013
|
-
class:
|
16019
|
+
return (h, M) => (c(), d("div", Nl, [
|
16020
|
+
o("div", {
|
16021
|
+
class: x(p(e.message)),
|
16014
16022
|
messageId: e.message.messageId,
|
16015
|
-
onMouseleave:
|
16023
|
+
onMouseleave: r
|
16016
16024
|
}, [
|
16017
16025
|
e.message.avatar ? (c(), d("img", {
|
16018
16026
|
key: 0,
|
@@ -16023,47 +16031,47 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16023
16031
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16024
16032
|
}, null, 12, jl)) : b("", !0),
|
16025
16033
|
e.message.subText ? (c(), d("p", El, w(e.message.subText), 1)) : b("", !0),
|
16026
|
-
|
16034
|
+
o("div", {
|
16027
16035
|
class: "text-message__content",
|
16028
|
-
onMouseenter:
|
16036
|
+
onMouseenter: l
|
16029
16037
|
}, [
|
16030
|
-
|
16031
|
-
innerHTML:
|
16038
|
+
o("p", {
|
16039
|
+
innerHTML: s.value,
|
16032
16040
|
class: "text-message__text",
|
16033
16041
|
onClick: i
|
16034
16042
|
}, null, 8, Tl),
|
16035
|
-
|
16043
|
+
o("div", Vl, [
|
16036
16044
|
e.message.views ? (c(), d("div", {
|
16037
16045
|
key: 0,
|
16038
16046
|
class: "text-message__views",
|
16039
16047
|
onClick: m
|
16040
16048
|
}, [
|
16041
|
-
|
16042
|
-
|
16049
|
+
M[1] || (M[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16050
|
+
o("p", null, w(e.message.views), 1)
|
16043
16051
|
])) : b("", !0),
|
16044
16052
|
e.message.time ? (c(), d("span", xl, w(e.message.time), 1)) : b("", !0),
|
16045
|
-
p(e.message) === "text-message__right" &&
|
16053
|
+
p(e.message) === "text-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16046
16054
|
key: 2,
|
16047
|
-
class:
|
16055
|
+
class: x(["text-message__status", g.value])
|
16048
16056
|
}, [
|
16049
16057
|
e.message.status !== "sent" ? (c(), d("span", Sl)) : b("", !0),
|
16050
|
-
|
16058
|
+
M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
|
16051
16059
|
], 2)) : b("", !0)
|
16052
16060
|
]),
|
16053
|
-
|
16061
|
+
A.value && e.message.actions ? (c(), d("button", {
|
16054
16062
|
key: 0,
|
16055
16063
|
class: "text-message__menu-button",
|
16056
|
-
onClick:
|
16057
|
-
},
|
16058
|
-
|
16064
|
+
onClick: M[0] || (M[0] = (y) => a.value = !a.value)
|
16065
|
+
}, M[3] || (M[3] = [
|
16066
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16059
16067
|
]))) : b("", !0),
|
16060
16068
|
L(q, null, {
|
16061
16069
|
default: H(() => [
|
16062
|
-
a.value && e.message.actions ? (c(), F(
|
16070
|
+
a.value && e.message.actions ? (c(), F(j(je), {
|
16063
16071
|
key: 0,
|
16064
16072
|
class: "text-message__context-menu",
|
16065
16073
|
actions: e.message.actions,
|
16066
|
-
onClick:
|
16074
|
+
onClick: u
|
16067
16075
|
}, null, 8, ["actions"])) : b("", !0)
|
16068
16076
|
]),
|
16069
16077
|
_: 1
|
@@ -16072,7 +16080,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16072
16080
|
], 42, Dl)
|
16073
16081
|
]));
|
16074
16082
|
}
|
16075
|
-
}), Ol = /* @__PURE__ */
|
16083
|
+
}), Ol = /* @__PURE__ */ z(zl, [["__scopeId", "data-v-8acbeea8"]]), Cl = ["messageId"], Ll = ["src"], Ul = {
|
16076
16084
|
key: 1,
|
16077
16085
|
class: "audio-message__subtext"
|
16078
16086
|
}, Bl = ["src"], Ql = { class: "audio-message__progress-bar-container" }, Rl = { class: "audio-message__remaining-time" }, Yl = { class: "audio-message__info-container" }, ql = { class: "audio-message__time" }, Hl = {
|
@@ -16090,19 +16098,19 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16090
16098
|
}
|
16091
16099
|
},
|
16092
16100
|
setup(e) {
|
16093
|
-
const f = e, t = I(), n = I(!1), a = I(0),
|
16101
|
+
const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1), l = () => {
|
16094
16102
|
i.value = !0;
|
16095
|
-
},
|
16096
|
-
i.value = !1,
|
16103
|
+
}, r = () => {
|
16104
|
+
i.value = !1, s.value = !1;
|
16097
16105
|
}, g = () => {
|
16098
|
-
},
|
16106
|
+
}, u = U(() => $e(f.message.status));
|
16099
16107
|
function m() {
|
16100
16108
|
t.value && (n.value ? t.value.pause() : t.value.play(), n.value = !n.value);
|
16101
16109
|
}
|
16102
16110
|
const p = (k) => {
|
16103
16111
|
const D = Math.floor(k / 60), N = Math.floor(k % 60);
|
16104
16112
|
return `${D.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
16105
|
-
},
|
16113
|
+
}, h = U(() => t.value ? p(A.value) : "0:00"), M = U(() => t.value ? p(a.value) : "0:00"), y = U(() => a.value > 0 ? A.value / a.value * 100 : 0);
|
16106
16114
|
function _(k) {
|
16107
16115
|
return k.position === "left" ? "audio-message__left" : "audio-message__right";
|
16108
16116
|
}
|
@@ -16110,12 +16118,12 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16110
16118
|
t.value != null && (t.value.addEventListener("loadedmetadata", () => {
|
16111
16119
|
a.value = t.value != null ? t.value.duration : 0;
|
16112
16120
|
}), t.value.addEventListener("timeupdate", () => {
|
16113
|
-
|
16121
|
+
A.value = t.value != null ? t.value.currentTime : 0;
|
16114
16122
|
}));
|
16115
16123
|
}), (k, D) => (c(), d("div", {
|
16116
|
-
class:
|
16124
|
+
class: x(["audio-message", _(e.message)]),
|
16117
16125
|
messageId: e.message.messageId,
|
16118
|
-
onMouseleave:
|
16126
|
+
onMouseleave: r
|
16119
16127
|
}, [
|
16120
16128
|
e.message.avatar ? (c(), d("img", {
|
16121
16129
|
key: 0,
|
@@ -16126,66 +16134,66 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16126
16134
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16127
16135
|
}, null, 12, Ll)) : b("", !0),
|
16128
16136
|
e.message.subText ? (c(), d("p", Ul, w(e.message.subText), 1)) : b("", !0),
|
16129
|
-
|
16137
|
+
o("div", {
|
16130
16138
|
class: "audio-message__content",
|
16131
|
-
onMouseenter:
|
16139
|
+
onMouseenter: l
|
16132
16140
|
}, [
|
16133
|
-
|
16141
|
+
o("audio", {
|
16134
16142
|
ref_key: "player",
|
16135
16143
|
ref: t,
|
16136
16144
|
src: e.message.url
|
16137
16145
|
}, null, 8, Bl),
|
16138
|
-
we(
|
16146
|
+
we(o("button", {
|
16139
16147
|
class: "audio-message__play",
|
16140
16148
|
onClick: m
|
16141
16149
|
}, D[1] || (D[1] = [
|
16142
|
-
|
16150
|
+
o("span", { class: "pi pi-play" }, null, -1)
|
16143
16151
|
]), 512), [
|
16144
16152
|
[Df, !n.value]
|
16145
16153
|
]),
|
16146
|
-
we(
|
16154
|
+
we(o("button", {
|
16147
16155
|
class: "audio-message__pause",
|
16148
16156
|
onClick: m
|
16149
16157
|
}, D[2] || (D[2] = [
|
16150
|
-
|
16158
|
+
o("span", { class: "pi pi-pause" }, null, -1)
|
16151
16159
|
]), 512), [
|
16152
16160
|
[Df, n.value]
|
16153
16161
|
]),
|
16154
|
-
|
16155
|
-
|
16162
|
+
o("div", Ql, [
|
16163
|
+
o("div", {
|
16156
16164
|
class: "audio-message__progress-bar",
|
16157
16165
|
style: P({ width: y.value + "%" })
|
16158
16166
|
}, null, 4)
|
16159
16167
|
]),
|
16160
|
-
|
16161
|
-
|
16162
|
-
|
16163
|
-
_(e.message) === "audio-message__right" &&
|
16168
|
+
o("p", Rl, w(`${h.value} / ${M.value}`), 1),
|
16169
|
+
o("div", Yl, [
|
16170
|
+
o("span", ql, w(e.message.time), 1),
|
16171
|
+
_(e.message) === "audio-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16164
16172
|
key: 0,
|
16165
|
-
class:
|
16173
|
+
class: x(["audio-message__status", u.value])
|
16166
16174
|
}, [
|
16167
16175
|
e.message.status !== "sent" ? (c(), d("span", Hl)) : b("", !0),
|
16168
|
-
D[3] || (D[3] =
|
16176
|
+
D[3] || (D[3] = o("span", { class: "pi pi-check" }, null, -1))
|
16169
16177
|
], 2)) : b("", !0)
|
16170
16178
|
]),
|
16171
16179
|
i.value && e.message.actions ? (c(), d("button", {
|
16172
16180
|
key: 0,
|
16173
16181
|
class: "audio-message__menu-button",
|
16174
|
-
onClick: D[0] || (D[0] = (N) =>
|
16182
|
+
onClick: D[0] || (D[0] = (N) => s.value = !s.value)
|
16175
16183
|
}, D[4] || (D[4] = [
|
16176
|
-
|
16184
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16177
16185
|
]))) : b("", !0),
|
16178
|
-
|
16186
|
+
o("a", {
|
16179
16187
|
class: "audio-message__download-button",
|
16180
16188
|
href: e.message.url,
|
16181
16189
|
download: "",
|
16182
16190
|
target: "_blank"
|
16183
16191
|
}, D[5] || (D[5] = [
|
16184
|
-
|
16192
|
+
o("span", { class: "pi pi-download" }, null, -1)
|
16185
16193
|
]), 8, Fl),
|
16186
16194
|
L(q, null, {
|
16187
16195
|
default: H(() => [
|
16188
|
-
|
16196
|
+
s.value && e.message.actions ? (c(), F(j(je), {
|
16189
16197
|
key: 0,
|
16190
16198
|
class: "audio-message__context-menu",
|
16191
16199
|
actions: e.message.actions,
|
@@ -16195,12 +16203,12 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16195
16203
|
_: 1
|
16196
16204
|
}),
|
16197
16205
|
e.message.text ? (c(), d("div", Pl, [
|
16198
|
-
|
16206
|
+
o("p", null, w(e.message.text), 1)
|
16199
16207
|
])) : b("", !0)
|
16200
16208
|
], 32)
|
16201
16209
|
], 42, Cl));
|
16202
16210
|
}
|
16203
|
-
}), Wl = /* @__PURE__ */
|
16211
|
+
}), Wl = /* @__PURE__ */ z($l, [["__scopeId", "data-v-d59f3c55"]]), Kl = { class: "date-message" }, Jl = { class: "date-message__container" }, Gl = { class: "date-message__text" }, Zl = /* @__PURE__ */ K({
|
16204
16212
|
__name: "DateMessage",
|
16205
16213
|
props: {
|
16206
16214
|
message: {
|
@@ -16212,12 +16220,12 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16212
16220
|
},
|
16213
16221
|
setup(e) {
|
16214
16222
|
return (f, t) => (c(), d("div", Kl, [
|
16215
|
-
|
16216
|
-
|
16223
|
+
o("div", Jl, [
|
16224
|
+
o("p", Gl, w(e.message.text), 1)
|
16217
16225
|
])
|
16218
16226
|
]));
|
16219
16227
|
}
|
16220
|
-
}), Xl = /* @__PURE__ */
|
16228
|
+
}), Xl = /* @__PURE__ */ z(Zl, [["__scopeId", "data-v-b2b05bd8"]]), er = ["messageId"], fr = ["src"], tr = {
|
16221
16229
|
key: 1,
|
16222
16230
|
class: "video-message__subtext"
|
16223
16231
|
}, nr = { class: "video-message__content" }, ar = ["src"], Ar = {
|
@@ -16245,23 +16253,23 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16245
16253
|
},
|
16246
16254
|
setup(e) {
|
16247
16255
|
const f = e;
|
16248
|
-
function t(
|
16249
|
-
return
|
16256
|
+
function t(h) {
|
16257
|
+
return h.position === "left" ? "video-message__left" : "video-message__right";
|
16250
16258
|
}
|
16251
|
-
const n = I(), a = I(),
|
16259
|
+
const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), l = I(!1), r = () => {
|
16252
16260
|
}, g = () => {
|
16253
|
-
i.value = !0,
|
16254
|
-
},
|
16255
|
-
i.value = !1,
|
16261
|
+
i.value = !0, l.value = !0;
|
16262
|
+
}, u = () => {
|
16263
|
+
i.value = !1, s.value = !1;
|
16256
16264
|
}, m = U(() => $e(f.message.status)), p = () => {
|
16257
16265
|
a.value && (a.value.currentTime = 0, a.value.play());
|
16258
16266
|
};
|
16259
|
-
return Oe([n, a], ([
|
16260
|
-
|
16261
|
-
}), (
|
16262
|
-
class:
|
16267
|
+
return Oe([n, a], ([h, M]) => {
|
16268
|
+
h ? M && (M.pause(), M.currentTime = 0) : M && (M.play(), M.currentTime = 0);
|
16269
|
+
}), (h, M) => (c(), d("div", {
|
16270
|
+
class: x(["video-message", t(e.message)]),
|
16263
16271
|
messageId: e.message.messageId,
|
16264
|
-
onMouseleave:
|
16272
|
+
onMouseleave: u
|
16265
16273
|
}, [
|
16266
16274
|
e.message.avatar ? (c(), d("img", {
|
16267
16275
|
key: 0,
|
@@ -16271,14 +16279,14 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16271
16279
|
width: "32"
|
16272
16280
|
}, null, 8, fr)) : b("", !0),
|
16273
16281
|
e.message.subText ? (c(), d("p", tr, w(e.message.subText), 1)) : b("", !0),
|
16274
|
-
|
16275
|
-
|
16282
|
+
o("div", nr, [
|
16283
|
+
o("div", {
|
16276
16284
|
class: "video-message__preview-button",
|
16277
|
-
onClick:
|
16285
|
+
onClick: M[0] || (M[0] = (y) => A.value = !0),
|
16278
16286
|
onMouseenter: g,
|
16279
|
-
onMouseleave:
|
16287
|
+
onMouseleave: M[1] || (M[1] = (y) => l.value = !l.value)
|
16280
16288
|
}, [
|
16281
|
-
|
16289
|
+
o("video", {
|
16282
16290
|
ref_key: "previewPlayer",
|
16283
16291
|
ref: a,
|
16284
16292
|
class: "video-message__video",
|
@@ -16290,18 +16298,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16290
16298
|
}, null, 44, ar),
|
16291
16299
|
L(q, { name: "modal-fade" }, {
|
16292
16300
|
default: H(() => [
|
16293
|
-
|
16301
|
+
l.value ? (c(), d("div", Ar, [
|
16294
16302
|
e.message.views ? (c(), d("div", sr, [
|
16295
|
-
|
16296
|
-
|
16303
|
+
M[4] || (M[4] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16304
|
+
o("p", null, w(e.message.views), 1)
|
16297
16305
|
])) : b("", !0),
|
16298
|
-
|
16299
|
-
t(e.message) === "video-message__right" &&
|
16306
|
+
o("span", ir, w(e.message.time), 1),
|
16307
|
+
t(e.message) === "video-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16300
16308
|
key: 1,
|
16301
|
-
class:
|
16309
|
+
class: x(["video-message__status", m.value])
|
16302
16310
|
}, [
|
16303
16311
|
e.message.status !== "sent" ? (c(), d("span", or)) : b("", !0),
|
16304
|
-
|
16312
|
+
M[5] || (M[5] = o("span", { class: "pi pi-check" }, null, -1))
|
16305
16313
|
], 2)) : b("", !0)
|
16306
16314
|
])) : b("", !0)
|
16307
16315
|
]),
|
@@ -16309,14 +16317,14 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16309
16317
|
}),
|
16310
16318
|
L(q, { name: "modal-fade" }, {
|
16311
16319
|
default: H(() => [
|
16312
|
-
|
16320
|
+
l.value ? (c(), d("a", {
|
16313
16321
|
key: 0,
|
16314
16322
|
class: "video-message__download-button",
|
16315
16323
|
href: e.message.url,
|
16316
16324
|
download: "",
|
16317
16325
|
target: "_blank"
|
16318
|
-
},
|
16319
|
-
|
16326
|
+
}, M[6] || (M[6] = [
|
16327
|
+
o("span", { class: "pi pi-download" }, null, -1)
|
16320
16328
|
]), 8, lr)) : b("", !0)
|
16321
16329
|
]),
|
16322
16330
|
_: 1
|
@@ -16327,42 +16335,42 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16327
16335
|
i.value && e.message.actions ? (c(), d("button", {
|
16328
16336
|
key: 0,
|
16329
16337
|
class: "video-message__menu-button",
|
16330
|
-
onClick:
|
16331
|
-
},
|
16332
|
-
|
16338
|
+
onClick: M[2] || (M[2] = (y) => s.value = !s.value)
|
16339
|
+
}, M[7] || (M[7] = [
|
16340
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16333
16341
|
]))) : b("", !0)
|
16334
16342
|
]),
|
16335
16343
|
_: 1
|
16336
16344
|
}),
|
16337
16345
|
L(q, { name: "context-menu" }, {
|
16338
16346
|
default: H(() => [
|
16339
|
-
|
16347
|
+
s.value && e.message.actions ? (c(), F(j(je), {
|
16340
16348
|
key: 0,
|
16341
16349
|
class: "video-message__context-menu",
|
16342
16350
|
actions: e.message.actions,
|
16343
|
-
onClick:
|
16351
|
+
onClick: r
|
16344
16352
|
}, null, 8, ["actions"])) : b("", !0)
|
16345
16353
|
]),
|
16346
16354
|
_: 1
|
16347
16355
|
}),
|
16348
16356
|
e.message.text ? (c(), d("div", rr, [
|
16349
|
-
|
16357
|
+
o("p", null, w(e.message.text), 1)
|
16350
16358
|
])) : b("", !0)
|
16351
16359
|
]),
|
16352
|
-
(c(), F(
|
16360
|
+
(c(), F(Ot, { to: "body" }, [
|
16353
16361
|
L(q, { name: "modal-fade" }, {
|
16354
16362
|
default: H(() => [
|
16355
|
-
|
16356
|
-
|
16357
|
-
|
16363
|
+
A.value ? (c(), d("div", ur, [
|
16364
|
+
o("div", cr, [
|
16365
|
+
o("button", {
|
16358
16366
|
class: "video-message__modal-close-button",
|
16359
|
-
onClick:
|
16360
|
-
},
|
16361
|
-
|
16362
|
-
|
16367
|
+
onClick: M[3] || (M[3] = (y) => A.value = !1)
|
16368
|
+
}, M[8] || (M[8] = [
|
16369
|
+
o("span", null, [
|
16370
|
+
o("i", { class: "pi pi-times" })
|
16363
16371
|
], -1)
|
16364
16372
|
])),
|
16365
|
-
|
16373
|
+
o("video", {
|
16366
16374
|
ref_key: "player",
|
16367
16375
|
ref: n,
|
16368
16376
|
class: "video-message__modal-video",
|
@@ -16379,7 +16387,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16379
16387
|
]))
|
16380
16388
|
], 42, er));
|
16381
16389
|
}
|
16382
|
-
}), mr = /* @__PURE__ */
|
16390
|
+
}), mr = /* @__PURE__ */ z(gr, [["__scopeId", "data-v-f71bed08"]]), pr = { class: "call-message" }, hr = ["messageId"], Mr = ["src"], yr = {
|
16383
16391
|
key: 1,
|
16384
16392
|
class: "call-message__subtext"
|
16385
16393
|
}, br = { class: "call-message__content" }, vr = {
|
@@ -16410,8 +16418,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16410
16418
|
return t.position === "left" ? "call-message__left" : "call-message__right";
|
16411
16419
|
}
|
16412
16420
|
return (t, n) => (c(), d("div", pr, [
|
16413
|
-
|
16414
|
-
class:
|
16421
|
+
o("div", {
|
16422
|
+
class: x(f(e.message)),
|
16415
16423
|
messageId: e.message.messageId
|
16416
16424
|
}, [
|
16417
16425
|
e.message.avatar ? (c(), d("img", {
|
@@ -16423,21 +16431,21 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16423
16431
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16424
16432
|
}, null, 12, Mr)) : b("", !0),
|
16425
16433
|
e.message.subText ? (c(), d("p", yr, w(e.message.subText), 1)) : b("", !0),
|
16426
|
-
|
16427
|
-
|
16434
|
+
o("div", br, [
|
16435
|
+
o("span", {
|
16428
16436
|
class: "call-message__icon pi pi-phone",
|
16429
16437
|
style: P({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
16430
16438
|
}, null, 4),
|
16431
16439
|
e.message.isMissedCall ? (c(), d("span", Ir, "Пропущенный аудиозвонок")) : (c(), d("span", vr, "Аудиозвонок")),
|
16432
16440
|
e.message.callDuration ? (c(), d("span", _r, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (c(), d("span", wr, "Нажмите, чтобы перезвонить")) : (c(), d("span", kr, "Нет ответа")),
|
16433
|
-
|
16434
|
-
|
16441
|
+
o("div", Nr, [
|
16442
|
+
o("span", Dr, w(e.message.time), 1)
|
16435
16443
|
])
|
16436
16444
|
])
|
16437
16445
|
], 10, hr)
|
16438
16446
|
]));
|
16439
16447
|
}
|
16440
|
-
}), Er = /* @__PURE__ */
|
16448
|
+
}), Er = /* @__PURE__ */ z(jr, [["__scopeId", "data-v-c2897961"]]), Tr = { class: "system-message" }, Vr = { class: "system-message__container" }, xr = { class: "system-message__text" }, Sr = /* @__PURE__ */ K({
|
16441
16449
|
__name: "SystemMessage",
|
16442
16450
|
props: {
|
16443
16451
|
message: {
|
@@ -16447,12 +16455,12 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16447
16455
|
},
|
16448
16456
|
setup(e) {
|
16449
16457
|
return (f, t) => (c(), d("div", Tr, [
|
16450
|
-
|
16451
|
-
|
16458
|
+
o("div", Vr, [
|
16459
|
+
o("p", xr, w(e.message.text), 1)
|
16452
16460
|
])
|
16453
16461
|
]));
|
16454
16462
|
}
|
16455
|
-
}), zr = /* @__PURE__ */
|
16463
|
+
}), zr = /* @__PURE__ */ z(Sr, [["__scopeId", "data-v-d0876c1e"]]), Or = { class: "typing-message" }, Cr = { class: "typing-message__container" }, Lr = ["src"], Ur = {
|
16456
16464
|
key: 1,
|
16457
16465
|
class: "typing-message__subtext"
|
16458
16466
|
}, Br = /* @__PURE__ */ K({
|
@@ -16465,7 +16473,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16465
16473
|
},
|
16466
16474
|
setup(e) {
|
16467
16475
|
return (f, t) => (c(), d("div", Or, [
|
16468
|
-
|
16476
|
+
o("div", Cr, [
|
16469
16477
|
e.message.avatar ? (c(), d("img", {
|
16470
16478
|
key: 0,
|
16471
16479
|
class: "typing-message__avatar",
|
@@ -16475,13 +16483,13 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16475
16483
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16476
16484
|
}, null, 12, Lr)) : b("", !0),
|
16477
16485
|
e.message.subText ? (c(), d("p", Ur, w(e.message.subText), 1)) : b("", !0),
|
16478
|
-
t[0] || (t[0] =
|
16479
|
-
|
16486
|
+
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
16487
|
+
o("div", { class: "typing-message__loader" })
|
16480
16488
|
], -1))
|
16481
16489
|
])
|
16482
16490
|
]));
|
16483
16491
|
}
|
16484
|
-
}),
|
16492
|
+
}), On = /* @__PURE__ */ z(Br, [["__scopeId", "data-v-88389095"]]), Qr = { class: "modal-backdrop" }, Rr = {
|
16485
16493
|
class: "modal",
|
16486
16494
|
role: "dialog",
|
16487
16495
|
"aria-labelledby": "modalTitle",
|
@@ -16493,28 +16501,28 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16493
16501
|
__name: "Modal",
|
16494
16502
|
emits: ["close", "submit"],
|
16495
16503
|
setup(e, { emit: f }) {
|
16496
|
-
const t = f, n = (
|
16497
|
-
t("submit",
|
16504
|
+
const t = f, n = (A) => {
|
16505
|
+
t("submit", A);
|
16498
16506
|
}, a = I(null);
|
16499
|
-
return (
|
16507
|
+
return (A, s) => (c(), F(q, { name: "modal-fade" }, {
|
16500
16508
|
default: H(() => [
|
16501
|
-
|
16502
|
-
|
16503
|
-
|
16504
|
-
G(
|
16509
|
+
o("div", Qr, [
|
16510
|
+
o("div", Rr, [
|
16511
|
+
o("div", Yr, [
|
16512
|
+
G(A.$slots, "default", {}, void 0, !0)
|
16505
16513
|
]),
|
16506
|
-
|
16507
|
-
|
16514
|
+
o("div", qr, [
|
16515
|
+
o("button", {
|
16508
16516
|
type: "button",
|
16509
16517
|
class: "btn-green",
|
16510
16518
|
"aria-label": "Close modal",
|
16511
|
-
onClick:
|
16519
|
+
onClick: s[0] || (s[0] = (i) => n(a.value))
|
16512
16520
|
}, " OK "),
|
16513
|
-
|
16521
|
+
o("button", {
|
16514
16522
|
type: "button",
|
16515
16523
|
class: "btn-green",
|
16516
16524
|
"aria-label": "Close modal",
|
16517
|
-
onClick:
|
16525
|
+
onClick: s[1] || (s[1] = (i) => A.$emit("close"))
|
16518
16526
|
}, " Cancel ")
|
16519
16527
|
])
|
16520
16528
|
])
|
@@ -16523,28 +16531,28 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16523
16531
|
_: 3
|
16524
16532
|
}));
|
16525
16533
|
}
|
16526
|
-
}, Fr = /* @__PURE__ */
|
16527
|
-
function
|
16534
|
+
}, Fr = /* @__PURE__ */ z(Hr, [["__scopeId", "data-v-d48a1772"]]);
|
16535
|
+
function en({ component: e, attrs: f }) {
|
16528
16536
|
return new Promise((t) => {
|
16529
16537
|
const n = document.createElement("div");
|
16530
16538
|
document.body.appendChild(n);
|
16531
|
-
const a = I({}),
|
16532
|
-
|
16533
|
-
},
|
16534
|
-
|
16539
|
+
const a = I({}), A = () => {
|
16540
|
+
r.unmount(), document.body.removeChild(n);
|
16541
|
+
}, s = () => {
|
16542
|
+
A(), t(a.value);
|
16535
16543
|
}, i = (g) => {
|
16536
|
-
const
|
16537
|
-
a.value[
|
16538
|
-
},
|
16544
|
+
const u = Object.keys(g)[0];
|
16545
|
+
a.value[u] = g[u];
|
16546
|
+
}, l = K({
|
16539
16547
|
render() {
|
16540
|
-
return
|
16548
|
+
return un(
|
16541
16549
|
Fr,
|
16542
16550
|
{
|
16543
|
-
onSubmit:
|
16544
|
-
onClose:
|
16551
|
+
onSubmit: s,
|
16552
|
+
onClose: A
|
16545
16553
|
},
|
16546
16554
|
{
|
16547
|
-
default: () =>
|
16555
|
+
default: () => un(
|
16548
16556
|
Da(() => e),
|
16549
16557
|
{
|
16550
16558
|
...f,
|
@@ -16554,14 +16562,14 @@ function Xt({ component: e, attrs: f }) {
|
|
16554
16562
|
}
|
16555
16563
|
);
|
16556
16564
|
}
|
16557
|
-
}),
|
16558
|
-
|
16565
|
+
}), r = ja(l);
|
16566
|
+
r.mount(n);
|
16559
16567
|
});
|
16560
16568
|
}
|
16561
16569
|
const xu = async (e, f) => {
|
16562
|
-
const t = await
|
16570
|
+
const t = await en({
|
16563
16571
|
//в component должен быть встроен emit change(key: value)
|
16564
|
-
component: import("./SelectUser2-
|
16572
|
+
component: import("./SelectUser2-DyHGD8g8.js"),
|
16565
16573
|
attrs: {
|
16566
16574
|
title: e,
|
16567
16575
|
users: f
|
@@ -16569,7 +16577,7 @@ const xu = async (e, f) => {
|
|
16569
16577
|
});
|
16570
16578
|
return console.log("data", t), t;
|
16571
16579
|
}, Su = async (e) => {
|
16572
|
-
const f = await
|
16580
|
+
const f = await en({
|
16573
16581
|
//в component должен быть встроен emit change(key: value)
|
16574
16582
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
16575
16583
|
attrs: {
|
@@ -16577,7 +16585,7 @@ const xu = async (e, f) => {
|
|
16577
16585
|
}
|
16578
16586
|
});
|
16579
16587
|
return console.log("data", f), f;
|
16580
|
-
}, zu = async (e) => await
|
16588
|
+
}, zu = async (e) => await en({
|
16581
16589
|
//в component должен быть встроен emit change(key: value)
|
16582
16590
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
16583
16591
|
attrs: {
|
@@ -16590,12 +16598,12 @@ const xu = async (e, f) => {
|
|
16590
16598
|
width: String
|
16591
16599
|
},
|
16592
16600
|
setup(e) {
|
16593
|
-
const f =
|
16594
|
-
return
|
16601
|
+
const f = St();
|
16602
|
+
return Ct("chatAppId", f), (t, n) => (c(), d("div", {
|
16595
16603
|
class: "base",
|
16596
|
-
id:
|
16604
|
+
id: j(f)
|
16597
16605
|
}, [
|
16598
|
-
|
16606
|
+
o("div", {
|
16599
16607
|
class: "base__container",
|
16600
16608
|
style: P({ height: e.height, width: e.width })
|
16601
16609
|
}, [
|
@@ -16623,29 +16631,18 @@ const xu = async (e, f) => {
|
|
16623
16631
|
},
|
16624
16632
|
emits: ["close-window", "get-size"],
|
16625
16633
|
setup(e, { emit: f }) {
|
16626
|
-
const t = e, n = I({ x: 0, y: 0 }), a = I(null),
|
16627
|
-
|
16628
|
-
const
|
16629
|
-
|
16630
|
-
|
16631
|
-
|
16632
|
-
|
16633
|
-
|
16634
|
-
A.value = !0, i.value = h.clientX - a.value.offsetLeft, o.value = h.clientY - a.value.offsetTop;
|
16635
|
-
}, p = () => A.value = !1, M = (h) => {
|
16636
|
-
if (A.value) {
|
16637
|
-
const y = h.clientX - i.value, _ = h.clientY - o.value;
|
16638
|
-
n.value.x = Math.max(
|
16639
|
-
0,
|
16640
|
-
Math.min(y, window.innerWidth - a.value.offsetWidth)
|
16641
|
-
), n.value.y = Math.max(
|
16642
|
-
0,
|
16643
|
-
Math.min(_, window.innerHeight - a.value.offsetHeight)
|
16644
|
-
);
|
16634
|
+
const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), l = I(0), r = I(0), g = St();
|
16635
|
+
Ct("chatAppId", g);
|
16636
|
+
const u = (h) => {
|
16637
|
+
s.value = !0, i.value = h.clientX - a.value.offsetLeft, l.value = h.clientY - a.value.offsetTop;
|
16638
|
+
}, m = () => s.value = !1, p = (h) => {
|
16639
|
+
if (s.value) {
|
16640
|
+
const M = h.clientX - i.value, y = h.clientY - l.value;
|
16641
|
+
n.value.x = M, n.value.y = y;
|
16645
16642
|
}
|
16646
16643
|
};
|
16647
16644
|
return Ne(() => {
|
16648
|
-
|
16645
|
+
document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
|
16649
16646
|
n.value.x = Math.max(
|
16650
16647
|
0,
|
16651
16648
|
Math.min(
|
@@ -16659,30 +16656,30 @@ const xu = async (e, f) => {
|
|
16659
16656
|
window.innerHeight - a.value.offsetHeight
|
16660
16657
|
)
|
16661
16658
|
);
|
16662
|
-
}),
|
16663
|
-
}), (h,
|
16659
|
+
}), r.value = a.value.offsetHeight - A.value.offsetHeight;
|
16660
|
+
}), (h, M) => (c(), d("div", {
|
16664
16661
|
ref_key: "element",
|
16665
16662
|
ref: a,
|
16666
16663
|
class: "float-window",
|
16667
|
-
id:
|
16664
|
+
id: j(g),
|
16668
16665
|
style: P({
|
16669
16666
|
left: n.value.x + "px",
|
16670
16667
|
top: n.value.y + "px",
|
16671
|
-
userSelect:
|
16668
|
+
userSelect: s.value ? "none" : "auto",
|
16672
16669
|
height: e.height,
|
16673
16670
|
width: e.width,
|
16674
16671
|
display: "flex"
|
16675
16672
|
})
|
16676
16673
|
}, [
|
16677
|
-
|
16678
|
-
|
16674
|
+
o("div", Wr, [
|
16675
|
+
o("div", {
|
16679
16676
|
ref_key: "container",
|
16680
|
-
ref:
|
16677
|
+
ref: A,
|
16681
16678
|
class: "float-window__controls",
|
16682
16679
|
style: P({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
|
16683
|
-
onMousedown:
|
16684
|
-
onMouseup:
|
16685
|
-
onMouseleave:
|
16680
|
+
onMousedown: u,
|
16681
|
+
onMouseup: m,
|
16682
|
+
onMouseleave: m
|
16686
16683
|
}, [
|
16687
16684
|
t.avatar ? (c(), d("img", {
|
16688
16685
|
key: 0,
|
@@ -16690,79 +16687,79 @@ const xu = async (e, f) => {
|
|
16690
16687
|
src: t.avatar,
|
16691
16688
|
alt: t.title
|
16692
16689
|
}, null, 8, Kr)) : b("", !0),
|
16693
|
-
|
16694
|
-
|
16690
|
+
o("p", Jr, w(t.title), 1),
|
16691
|
+
o("button", {
|
16695
16692
|
class: "float-window__close-button",
|
16696
|
-
onClick:
|
16697
|
-
},
|
16698
|
-
|
16693
|
+
onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
|
16694
|
+
}, M[1] || (M[1] = [
|
16695
|
+
o("span", { class: "pi pi-times" }, null, -1)
|
16699
16696
|
]))
|
16700
16697
|
], 36),
|
16701
|
-
|
16698
|
+
o("div", {
|
16702
16699
|
class: "float-window__content",
|
16703
|
-
style: P({ height:
|
16700
|
+
style: P({ height: r.value + "px" })
|
16704
16701
|
}, [
|
16705
16702
|
G(h.$slots, "default", {}, void 0, !0)
|
16706
16703
|
], 4)
|
16707
16704
|
])
|
16708
16705
|
], 12, $r));
|
16709
16706
|
}
|
16710
|
-
}, Cu = /* @__PURE__ */
|
16707
|
+
}, Cu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-efd0f13a"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
|
16711
16708
|
function tu(e, f) {
|
16712
16709
|
return c(), d("div", Xr, [
|
16713
|
-
|
16710
|
+
o("div", eu, [
|
16714
16711
|
G(e.$slots, "first-col", {}, void 0, !0)
|
16715
16712
|
]),
|
16716
|
-
|
16713
|
+
o("div", fu, [
|
16717
16714
|
G(e.$slots, "second-col", {}, void 0, !0)
|
16718
16715
|
])
|
16719
16716
|
]);
|
16720
16717
|
}
|
16721
|
-
const Lu = /* @__PURE__ */
|
16718
|
+
const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-93dc265d"]]), nu = { class: "extend-layout__container" }, au = { class: "extend-layout__first-col" }, Au = { class: "extend-layout__third-col" }, su = {
|
16722
16719
|
__name: "ExtendedLayout",
|
16723
16720
|
setup(e) {
|
16724
16721
|
const f = I(null);
|
16725
|
-
let t = I(!1), n = I(0), a = I(0),
|
16726
|
-
const
|
16727
|
-
|
16728
|
-
}, i = (
|
16722
|
+
let t = I(!1), n = I(0), a = I(0), A = I(0);
|
16723
|
+
const s = (r) => {
|
16724
|
+
r.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = r.clientX, A.value = r.clientX, document.addEventListener("mousemove", i));
|
16725
|
+
}, i = (r) => {
|
16729
16726
|
if (t.value) {
|
16730
|
-
const g = n.value + (
|
16727
|
+
const g = n.value + (r.clientX - A.value);
|
16731
16728
|
f.value.style.width = `${Math.max(270, g)}px`;
|
16732
16729
|
}
|
16733
|
-
},
|
16730
|
+
}, l = () => {
|
16734
16731
|
t.value = !1, document.removeEventListener("mousemove", i);
|
16735
16732
|
};
|
16736
16733
|
return Ne(() => {
|
16737
16734
|
f.value && (f.value.style.width = "350px");
|
16738
|
-
}), (
|
16739
|
-
|
16740
|
-
G(
|
16735
|
+
}), (r, g) => (c(), d("div", nu, [
|
16736
|
+
o("div", au, [
|
16737
|
+
G(r.$slots, "first-col", {}, void 0, !0)
|
16741
16738
|
]),
|
16742
|
-
|
16739
|
+
o("div", {
|
16743
16740
|
ref_key: "resizableDiv",
|
16744
16741
|
ref: f,
|
16745
16742
|
class: "extend-layout__second-col resizable-div",
|
16746
|
-
style: P({ userSelect:
|
16747
|
-
onMousedown:
|
16748
|
-
onMouseup:
|
16743
|
+
style: P({ userSelect: j(t) ? "none" : "auto" }),
|
16744
|
+
onMousedown: s,
|
16745
|
+
onMouseup: l
|
16749
16746
|
}, [
|
16750
|
-
G(
|
16747
|
+
G(r.$slots, "second-col", {}, void 0, !0)
|
16751
16748
|
], 36),
|
16752
|
-
|
16753
|
-
G(
|
16749
|
+
o("div", Au, [
|
16750
|
+
G(r.$slots, "third-col", {}, void 0, !0)
|
16754
16751
|
])
|
16755
16752
|
]));
|
16756
16753
|
}
|
16757
|
-
}, Uu = /* @__PURE__ */
|
16754
|
+
}, Uu = /* @__PURE__ */ z(su, [["__scopeId", "data-v-7c3b977d"]]), iu = {}, ou = { class: "base-layout__container" }, lu = { class: "base-layout__first-col" };
|
16758
16755
|
function ru(e, f) {
|
16759
16756
|
return c(), d("div", ou, [
|
16760
|
-
|
16757
|
+
o("div", lu, [
|
16761
16758
|
G(e.$slots, "default", {}, void 0, !0)
|
16762
16759
|
])
|
16763
16760
|
]);
|
16764
16761
|
}
|
16765
|
-
const Bu = /* @__PURE__ */
|
16762
|
+
const Bu = /* @__PURE__ */ z(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed"]]), uu = { class: "chat-wrapper" }, cu = {
|
16766
16763
|
key: 0,
|
16767
16764
|
class: "chat-wrapper__selected-chat"
|
16768
16765
|
}, du = {
|
@@ -16785,7 +16782,7 @@ const Bu = /* @__PURE__ */ S(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed
|
|
16785
16782
|
e.isSelectedChat ? (c(), d("div", cu, [
|
16786
16783
|
G(f.$slots, "default", {}, void 0, !0)
|
16787
16784
|
])) : (c(), d("div", du, [
|
16788
|
-
|
16785
|
+
o("p", null, w(j(Se)("layout.ChatWrapper.noSelectedChat")), 1)
|
16789
16786
|
])),
|
16790
16787
|
e.isOpenChatPanel ? (c(), d("div", {
|
16791
16788
|
key: 2,
|
@@ -16796,7 +16793,7 @@ const Bu = /* @__PURE__ */ S(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed
|
|
16796
16793
|
], 4)) : b("", !0)
|
16797
16794
|
]));
|
16798
16795
|
}
|
16799
|
-
}), Qu = /* @__PURE__ */
|
16796
|
+
}), Qu = /* @__PURE__ */ z(gu, [["__scopeId", "data-v-12c6a622"]]);
|
16800
16797
|
export {
|
16801
16798
|
Wl as A,
|
16802
16799
|
Un as B,
|
@@ -16807,15 +16804,15 @@ export {
|
|
16807
16804
|
_u as G,
|
16808
16805
|
wu as H,
|
16809
16806
|
ol as I,
|
16810
|
-
|
16807
|
+
dn as J,
|
16811
16808
|
Pe as K,
|
16812
16809
|
$e as L,
|
16813
16810
|
zr as S,
|
16814
16811
|
Ol as T,
|
16815
16812
|
bu as U,
|
16816
16813
|
mr as V,
|
16817
|
-
|
16818
|
-
|
16814
|
+
z as _,
|
16815
|
+
On as a,
|
16819
16816
|
pu as b,
|
16820
16817
|
hu as c,
|
16821
16818
|
Mu as d,
|