@mobilon-dev/chotto 0.0.53 → 0.0.55
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 r, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as be, watch as Oe, nextTick as vt, unref as D, withDirectives as Ne, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as H, withCtx as F, createBlock as P, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as q, useId as St, onMounted as pe, 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
|
+
r("div", Ta, [
|
29
29
|
t.chat.avatar ? (c(), d("img", {
|
30
30
|
key: 0,
|
31
31
|
src: t.chat.avatar,
|
@@ -33,52 +33,52 @@ const S = (e, f) => {
|
|
33
33
|
height: "48"
|
34
34
|
}, null, 8, Va)) : (c(), d("span", xa))
|
35
35
|
]),
|
36
|
-
|
37
|
-
|
36
|
+
r("div", Sa, [
|
37
|
+
r("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
|
+
r("div", Ca, [
|
41
41
|
G(n.$slots, "actions", {}, void 0, !0)
|
42
42
|
])
|
43
43
|
])) : b("", !0);
|
44
44
|
}
|
45
|
-
},
|
45
|
+
}, gu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-e1d212c7"]]), Me = I([]), At = (e) => {
|
46
46
|
const f = I(0);
|
47
|
-
let t =
|
48
|
-
t != null ? f.value =
|
47
|
+
let t = Me.value.find(({ id: o }) => o == e);
|
48
|
+
t != null ? f.value = Me.value.indexOf(t) : (Me.value.push({
|
49
49
|
id: e,
|
50
50
|
text: "",
|
51
51
|
file: void 0
|
52
|
-
}), f.value =
|
52
|
+
}), f.value = Me.value.length - 1);
|
53
53
|
const n = () => {
|
54
|
-
|
54
|
+
Me.value[f.value] = {
|
55
55
|
id: i().id,
|
56
56
|
text: "",
|
57
57
|
file: void 0
|
58
58
|
};
|
59
59
|
}, a = (o) => {
|
60
|
-
|
60
|
+
Me.value[f.value] = {
|
61
61
|
id: i().id,
|
62
62
|
text: o,
|
63
63
|
file: i().file
|
64
64
|
};
|
65
|
-
},
|
66
|
-
|
65
|
+
}, A = (o) => {
|
66
|
+
Me.value[f.value] = {
|
67
67
|
id: i().id,
|
68
68
|
text: i().text,
|
69
69
|
file: o
|
70
70
|
};
|
71
|
-
},
|
72
|
-
|
71
|
+
}, s = () => {
|
72
|
+
Me.value[f.value] = {
|
73
73
|
id: i().id,
|
74
74
|
text: i().text,
|
75
75
|
file: void 0
|
76
76
|
};
|
77
77
|
};
|
78
78
|
function i() {
|
79
|
-
return
|
79
|
+
return Me.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 =
|
132
|
+
const t = f, n = be("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 o = (
|
142
|
-
t("typing",
|
143
|
-
},
|
144
|
-
if (
|
145
|
-
let m =
|
146
|
-
|
147
|
-
`, m, m, "end"),
|
141
|
+
const o = (u) => {
|
142
|
+
t("typing", u.target.value);
|
143
|
+
}, l = (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(), D(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
|
+
r("div", qa, [
|
166
|
+
r("div", {
|
167
|
+
id: "chat-input-first-line-" + D(n),
|
168
168
|
class: "chat-input__first-line"
|
169
169
|
}, null, 8, Ha),
|
170
|
-
|
171
|
-
|
170
|
+
r("div", Fa, [
|
171
|
+
Ne(r("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) => D(A)().text = p),
|
175
175
|
class: "chat-input__input",
|
176
|
-
placeholder:
|
177
|
-
onKeydown: Ma(
|
176
|
+
placeholder: D(Se)("component.ChatInput.InputPlaceholder"),
|
177
|
+
onKeydown: Ma(l, ["enter"]),
|
178
178
|
onInput: o
|
179
179
|
}, null, 40, Pa), [
|
180
|
-
[xt,
|
180
|
+
[xt, D(A)().text]
|
181
181
|
]),
|
182
|
-
|
183
|
-
class:
|
182
|
+
r("button", {
|
183
|
+
class: x(["chat-input__button-send", { "chat-input__button-send-disabled": D(A)().text == "" && !D(A)().file }]),
|
184
184
|
onClick: g
|
185
185
|
}, m[1] || (m[1] = [
|
186
|
-
|
186
|
+
r("span", { class: "pi pi-send" }, null, -1)
|
187
187
|
]), 2)
|
188
188
|
]),
|
189
|
-
|
190
|
-
G(
|
189
|
+
r("div", $a, [
|
190
|
+
G(u.$slots, "buttons", {}, void 0, !0)
|
191
191
|
])
|
192
192
|
])
|
193
193
|
]));
|
194
194
|
}
|
195
|
-
},
|
195
|
+
}, mu = /* @__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
|
-
}, o = () =>
|
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
|
+
}, o = () => 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)), l = (u) => {
|
235
|
+
t.value = u;
|
236
|
+
}, g = (u) => s("action", u);
|
237
|
+
return (u, m) => (c(), d("div", Ka, [
|
238
|
+
r("div", {
|
239
239
|
class: "chat-list__title-container",
|
240
240
|
onMouseleave: a
|
241
241
|
}, [
|
242
|
-
|
242
|
+
r("h2", Ja, w(D(Se)("component.ChatList.Title")), 1),
|
243
243
|
e.actions.length ? (c(), d("button", {
|
244
244
|
key: 0,
|
245
245
|
class: "chat-list__button-actions",
|
@@ -247,9 +247,9 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
247
247
|
}, [
|
248
248
|
n.value ? (c(), d("span", Ga)) : (c(), d("span", Za))
|
249
249
|
])) : b("", !0),
|
250
|
-
L(
|
251
|
-
default:
|
252
|
-
n.value && e.actions ? (c(),
|
250
|
+
L(H, null, {
|
251
|
+
default: F(() => [
|
252
|
+
n.value && e.actions ? (c(), P(D(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(),
|
262
|
+
e.filterEnabled ? (c(), P(D(_s), {
|
263
263
|
key: 0,
|
264
264
|
class: "chat-list__filter",
|
265
|
-
onUpdate:
|
265
|
+
onUpdate: l
|
266
266
|
})) : b("", !0),
|
267
|
-
|
268
|
-
|
269
|
-
(c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(),
|
267
|
+
r("div", Xa, [
|
268
|
+
r("div", eA, [
|
269
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(), P(D(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(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(),
|
277
|
+
r("div", fA, [
|
278
|
+
(c(!0), d($, null, Z(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), P(D(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(o().filter((p) => p.isFixedBottom), (p) => (c(),
|
286
|
+
r("div", tA, [
|
287
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedBottom), (p) => (c(), P(D(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
|
-
},
|
298
|
+
}, pu = /* @__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 = D(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,61 +335,61 @@ 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
|
-
})[
|
338
|
+
"message.typing": On
|
339
|
+
})[u];
|
340
340
|
function o() {
|
341
341
|
a.isScrollToBottomOnUpdateObjectsEnabled && vt(function() {
|
342
|
-
const
|
343
|
-
|
342
|
+
const u = D(t);
|
343
|
+
u.scrollTop = u.scrollHeight;
|
344
344
|
});
|
345
345
|
}
|
346
|
-
function
|
346
|
+
function l() {
|
347
347
|
vt(function() {
|
348
|
-
const
|
349
|
-
|
348
|
+
const u = D(t);
|
349
|
+
u.scrollTop = u.scrollHeight;
|
350
350
|
});
|
351
351
|
}
|
352
352
|
ya(() => o), Oe(() => a.objects, o);
|
353
|
-
const g = (
|
354
|
-
|
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
|
-
|
363
|
-
(c(!0), d($, null, Z(e.objects, (p) => (c(),
|
362
|
+
r("div", aA, [
|
363
|
+
(c(!0), d($, null, Z(e.objects, (p) => (c(), P(ba(i(p.type)), {
|
364
364
|
key: p.messageId,
|
365
365
|
class: "message-feed__message",
|
366
366
|
message: p,
|
367
367
|
onAction: g
|
368
368
|
}, null, 40, ["message"]))), 128))
|
369
369
|
]),
|
370
|
-
e.typing ? (c(),
|
370
|
+
e.typing ? (c(), P(D(On), {
|
371
371
|
key: 0,
|
372
372
|
message: {
|
373
373
|
subText: e.typing.title,
|
374
374
|
avatar: e.typing.avatar
|
375
375
|
}
|
376
376
|
}, null, 8, ["message"])) : b("", !0),
|
377
|
-
L(
|
378
|
-
default:
|
377
|
+
L(H, null, {
|
378
|
+
default: F(() => [
|
379
379
|
n.value ? (c(), d("button", {
|
380
380
|
key: 0,
|
381
381
|
class: "message-feed__button-down",
|
382
|
-
onClick:
|
382
|
+
onClick: l
|
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] = r("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
|
-
}),
|
392
|
+
}), hu = /* @__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
|
+
r("span", {
|
411
411
|
class: "profile__status",
|
412
|
-
style:
|
412
|
+
style: q({ backgroundColor: e.user.status })
|
413
413
|
}, null, 4),
|
414
|
-
|
414
|
+
r("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
|
+
r("h2", uA, w(e.user.name), 1),
|
421
|
+
r("p", cA, w(e.user.email), 1),
|
422
|
+
r("p", dA, w(e.user.phone), 1)
|
423
423
|
])) : b("", !0)
|
424
424
|
]));
|
425
425
|
}
|
426
|
-
},
|
426
|
+
}, Mu = /* @__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
|
-
}, i = () => {
|
469
|
-
t.disabled || (t.mode == "click" && (a.value.$el.style.display = "inherit"), n("buttonClick"));
|
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);
|
470
463
|
}, o = () => {
|
471
|
-
t.mode == "
|
472
|
-
},
|
473
|
-
t.mode == "hover" && (
|
474
|
-
}, g = (
|
475
|
-
t.mode == "
|
464
|
+
t.disabled || (t.mode == "click" && (A.value.$el.style.display = "inherit"), a("buttonClick"));
|
465
|
+
}, l = () => {
|
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
|
-
return
|
478
|
-
const
|
472
|
+
return pe(() => {
|
473
|
+
const m = {
|
479
474
|
top: {
|
480
475
|
h: -1,
|
481
476
|
w: -0.25
|
@@ -493,60 +488,60 @@ 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-" + D(n),
|
502
497
|
ref_key: "actionScope",
|
503
498
|
ref: s,
|
504
499
|
style: { position: "relative", width: "fit-content" }
|
505
500
|
}, [
|
506
|
-
|
507
|
-
class:
|
501
|
+
r("div", {
|
502
|
+
class: x(["button", {
|
508
503
|
"disabled-button": e.disabled
|
509
504
|
}]),
|
510
|
-
onClick:
|
511
|
-
onMouseover:
|
512
|
-
onMouseout:
|
505
|
+
onClick: o,
|
506
|
+
onMouseover: l,
|
507
|
+
onMouseout: g
|
513
508
|
}, [
|
514
|
-
|
515
|
-
class:
|
509
|
+
r("span", {
|
510
|
+
class: x(e.buttonClass)
|
516
511
|
}, w(e.buttonTitle), 3)
|
517
512
|
], 34),
|
518
|
-
L(
|
519
|
-
id: "context-menu-" +
|
513
|
+
L(D(je), {
|
514
|
+
id: "context-menu-" + D(n),
|
520
515
|
ref_key: "contextMenu",
|
521
|
-
ref:
|
516
|
+
ref: A,
|
522
517
|
actions: e.actions,
|
523
|
-
onMouseover:
|
524
|
-
onMouseout:
|
525
|
-
onClick:
|
518
|
+
onMouseover: l,
|
519
|
+
onMouseout: g,
|
520
|
+
onClick: i
|
526
521
|
}, null, 8, ["id", "actions"])
|
527
522
|
], 8, mA));
|
528
523
|
}
|
529
|
-
}, Un = /* @__PURE__ */
|
530
|
-
function
|
524
|
+
}, Un = /* @__PURE__ */ z(pA, [["__scopeId", "data-v-febe2c45"]]);
|
525
|
+
function yu(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
|
-
const
|
530
|
+
const bu = (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
|
+
}, vu = async () => {
|
550
545
|
try {
|
551
546
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
552
547
|
const f = new Audio();
|
@@ -555,7 +550,7 @@ const Iu = (e) => {
|
|
555
550
|
} catch {
|
556
551
|
console.log("no audio permissions");
|
557
552
|
}
|
558
|
-
},
|
553
|
+
}, Iu = (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
|
+
r("div", MA, [
|
606
601
|
t.isImage ? (c(), d("div", yA, [
|
607
|
-
|
602
|
+
r("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
|
+
r("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
|
+
r("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
|
+
r("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
|
+
r("div", kA, [
|
625
|
+
r("div", NA, [
|
626
|
+
r("span", DA, w(e.fileName), 1),
|
627
|
+
r("span", jA, w(e.fileSize), 1)
|
633
628
|
]),
|
634
|
-
|
629
|
+
r("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), o = I(!1), l = I(null), g = I(""), u = be("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
|
652
651
|
{
|
653
652
|
action: "audio/*",
|
654
653
|
title: "Аудио",
|
@@ -670,92 +669,91 @@ const Iu = (e) => {
|
|
670
669
|
prime: "file"
|
671
670
|
}
|
672
671
|
], y = U(() => !h().file), _ = () => {
|
673
|
-
n.value = null, p(),
|
674
|
-
}, k = (
|
675
|
-
_(), console.log("onFileSelected",
|
676
|
-
},
|
677
|
-
const
|
678
|
-
if (
|
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 && (j(), N());
|
675
|
+
}, j = () => {
|
676
|
+
const T = n.value, O = dn(T.type);
|
677
|
+
if (s.value = !1, i.value = !1, o.value = !1, O === "image" ? s.value = !0 : O === "video" ? i.value = !0 : O === "audio" && (o.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
|
+
l.value && y && (l.value.accept = T.action, l.value.click());
|
713
|
+
}, S = () => {
|
714
|
+
l.value && y && t.state == "active" && l.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
|
-
|
723
|
-
]))) : (c(),
|
716
|
+
return (T, O) => (c(), d($, null, [
|
717
|
+
r("div", VA, [
|
718
|
+
a.value === "uploading" ? (c(), d("div", xA, O[0] || (O[0] = [
|
719
|
+
r("p", null, "Загрузка файла...", -1)
|
720
|
+
]))) : a.value === "error" ? (c(), d("div", SA, O[1] || (O[1] = [
|
721
|
+
r("p", null, "Ошибка при загрузке файла.", -1)
|
722
|
+
]))) : (c(), P(Un, {
|
724
723
|
key: 2,
|
725
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
|
+
r("input", {
|
735
733
|
ref_key: "fileInput",
|
736
|
-
ref:
|
734
|
+
ref: l,
|
737
735
|
style: { display: "none" },
|
738
736
|
type: "file",
|
739
737
|
onChange: k
|
740
738
|
}, null, 544)
|
741
739
|
]),
|
742
|
-
|
740
|
+
D(h)().file ? (c(), P(Ot, {
|
743
741
|
key: 0,
|
744
|
-
to: "#chat-input-first-line-" +
|
742
|
+
to: "#chat-input-first-line-" + D(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
748
|
"is-audio": o.value,
|
751
|
-
"file-name":
|
749
|
+
"file-name": D(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
|
-
},
|
756
|
+
}, _u = /* @__PURE__ */ z(zA, [["__scopeId", "data-v-1cdabe09"]]), OA = { key: 0 }, CA = ["value", "selected"], LA = {
|
759
757
|
__name: "ThemeMode",
|
760
758
|
props: {
|
761
759
|
themes: {
|
@@ -765,31 +763,31 @@ const Iu = (e) => {
|
|
765
763
|
show: Boolean
|
766
764
|
},
|
767
765
|
setup(e) {
|
768
|
-
const f = e, t = () => {
|
769
|
-
const s = f.themes.find((
|
766
|
+
const f = e, t = be("chatAppId"), n = () => {
|
767
|
+
const s = f.themes.find((i) => i.default === !0);
|
770
768
|
return s ? s.code : f.themes[0].code;
|
771
|
-
}, n = (s) => {
|
772
|
-
const A = s.target.value;
|
773
|
-
a(A);
|
774
769
|
}, a = (s) => {
|
775
|
-
|
770
|
+
const i = s.target.value;
|
771
|
+
A(i);
|
772
|
+
}, A = (s) => {
|
773
|
+
document.getElementById(t).dataset.theme = s;
|
776
774
|
};
|
777
|
-
return
|
778
|
-
const s =
|
779
|
-
|
780
|
-
}), (s,
|
781
|
-
|
782
|
-
onChange:
|
775
|
+
return pe(() => {
|
776
|
+
const s = n();
|
777
|
+
A(s);
|
778
|
+
}), (s, i) => e.show ? (c(), d("div", OA, [
|
779
|
+
r("select", {
|
780
|
+
onChange: i[0] || (i[0] = (o) => a(o))
|
783
781
|
}, [
|
784
|
-
(c(!0), d($, null, Z(f.themes, (
|
785
|
-
key:
|
786
|
-
value:
|
787
|
-
selected:
|
788
|
-
}, w(
|
782
|
+
(c(!0), d($, null, Z(f.themes, (o, l) => (c(), d("option", {
|
783
|
+
key: l,
|
784
|
+
value: o.code,
|
785
|
+
selected: o.default === !0
|
786
|
+
}, w(o.name), 9, CA))), 128))
|
789
787
|
], 32)
|
790
788
|
])) : b("", !0);
|
791
789
|
}
|
792
|
-
},
|
790
|
+
}, wu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-a950b8eb"]]), 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 o = n.value.find((
|
801
|
+
const n = va(e, "sidebarItems"), a = f, A = (i) => {
|
802
|
+
const o = n.value.find((l) => l.itemId === i);
|
805
803
|
a("selectItem", o);
|
806
|
-
},
|
804
|
+
}, s = (i) => {
|
807
805
|
const o = i.split(" ");
|
808
806
|
return o.length > 2 ? o.slice(0, 2).join(" ") : i;
|
809
807
|
};
|
810
808
|
return (i, o) => (c(), d("div", UA, [
|
811
|
-
|
812
|
-
|
813
|
-
(c(!0), d($, null, Z(n.value.filter((
|
809
|
+
r("div", BA, [
|
810
|
+
r("ul", QA, [
|
811
|
+
(c(!0), d($, null, Z(n.value.filter((l) => !l.isFixedBottom), (l, g) => (c(), d("li", {
|
814
812
|
key: g,
|
815
813
|
class: "sidebar__item",
|
816
|
-
onClick: (
|
814
|
+
onClick: (u) => A(l.itemId)
|
817
815
|
}, [
|
818
|
-
|
819
|
-
src:
|
820
|
-
alt:
|
821
|
-
class:
|
816
|
+
r("img", {
|
817
|
+
src: l.icon,
|
818
|
+
alt: l.name,
|
819
|
+
class: x(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
|
822
820
|
}, null, 10, YA),
|
823
|
-
|
821
|
+
l.notificationCount ? (c(), d("span", {
|
824
822
|
key: 0,
|
825
|
-
style:
|
826
|
-
}, w(
|
827
|
-
|
823
|
+
style: q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
824
|
+
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
825
|
+
l.name ? (c(), d("p", qA, w(s(l.name)), 1)) : b("", !0)
|
828
826
|
], 8, RA))), 128))
|
829
827
|
]),
|
830
|
-
|
831
|
-
(c(!0), d($, null, Z(n.value.filter((
|
828
|
+
r("ul", HA, [
|
829
|
+
(c(!0), d($, null, Z(n.value.filter((l) => l.isFixedBottom), (l, g) => (c(), d("li", {
|
832
830
|
key: g,
|
833
831
|
class: "sidebar__item",
|
834
|
-
onClick: (
|
832
|
+
onClick: (u) => A(l.itemId)
|
835
833
|
}, [
|
836
|
-
|
837
|
-
src:
|
838
|
-
alt:
|
839
|
-
class:
|
834
|
+
r("img", {
|
835
|
+
src: l.icon,
|
836
|
+
alt: l.name,
|
837
|
+
class: x(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
|
840
838
|
}, null, 10, PA),
|
841
|
-
|
839
|
+
l.notificationCount ? (c(), d("span", {
|
842
840
|
key: 0,
|
843
|
-
style:
|
844
|
-
}, w(
|
845
|
-
|
841
|
+
style: q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
|
842
|
+
}, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
|
843
|
+
l.name ? (c(), d("p", $A, w(s(l.name)), 1)) : b("", !0)
|
846
844
|
], 8, FA))), 128))
|
847
845
|
])
|
848
846
|
])
|
849
847
|
]));
|
850
848
|
}
|
851
|
-
},
|
849
|
+
}, ku = /* @__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
|
+
r("div", JA, [
|
867
865
|
e.title ? (c(), d("p", GA, w(e.title), 1)) : b("", !0),
|
868
|
-
|
866
|
+
r("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
|
+
r("span", { class: "pi pi-times" }, null, -1)
|
873
871
|
]))
|
874
872
|
]),
|
875
|
-
|
873
|
+
r("div", null, [
|
876
874
|
G(t.$slots, "content", {}, void 0, !0)
|
877
875
|
])
|
878
876
|
]));
|
879
877
|
}
|
880
|
-
},
|
878
|
+
}, Nu = /* @__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, o) => (c(), d("div", XA, [
|
911
|
+
r("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
|
+
r("img", {
|
917
917
|
src: A.value.icon
|
918
918
|
}, null, 8, ts)
|
919
919
|
])) : b("", !0),
|
920
|
-
|
920
|
+
r("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
|
-
},
|
933
|
+
}, Du = /* @__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,13 +963,13 @@ 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), o = I(!1),
|
968
|
+
}, i = I(!1), o = I(!1), l = () => {
|
969
969
|
o.value = !0;
|
970
970
|
}, g = () => {
|
971
971
|
o.value = !1, i.value = !1;
|
972
|
-
},
|
972
|
+
}, u = U(() => $e(t.chat["lastMessage.status"]));
|
973
973
|
let m;
|
974
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(
|
@@ -981,18 +981,18 @@ 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
|
+
r("div", {
|
988
988
|
class: "chat-item__container",
|
989
|
-
onMouseenter:
|
989
|
+
onMouseenter: l,
|
990
990
|
onMouseleave: g
|
991
991
|
}, [
|
992
|
-
|
993
|
-
|
992
|
+
r("div", ss, [
|
993
|
+
r("span", {
|
994
994
|
class: "chat-item__status-user",
|
995
|
-
style:
|
995
|
+
style: q({ backgroundColor: t.chat.status })
|
996
996
|
}, null, 4),
|
997
997
|
t.chat.avatar ? (c(), d("img", {
|
998
998
|
key: 0,
|
@@ -1001,11 +1001,11 @@ const Iu = (e) => {
|
|
1001
1001
|
width: "48"
|
1002
1002
|
}, null, 8, is)) : (c(), d("span", os))
|
1003
1003
|
]),
|
1004
|
-
|
1005
|
-
|
1004
|
+
r("div", ls, [
|
1005
|
+
r("div", rs, w(e.chat.name), 1),
|
1006
1006
|
e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(M.value), 1)) : b("", !0)
|
1007
1007
|
]),
|
1008
|
-
|
1008
|
+
r("div", cs, [
|
1009
1009
|
e.chat["lastActivity.time"] && !o.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
|
o.value && e.chat.actions ? (c(), d("button", {
|
@@ -1013,26 +1013,26 @@ const Iu = (e) => {
|
|
1013
1013
|
class: "chat-item__menu-button",
|
1014
1014
|
onClick: _[0] || (_[0] = (k) => i.value = !i.value)
|
1015
1015
|
}, _[1] || (_[1] = [
|
1016
|
-
|
1016
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1017
1017
|
]))) : b("", !0),
|
1018
1018
|
e.chat.countUnread < 1 ? (c(), d("div", ms, [
|
1019
|
-
|
1019
|
+
D(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] = r("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
|
-
L(
|
1030
|
-
default:
|
1031
|
-
i.value && e.chat.actions ? (c(),
|
1029
|
+
L(H, { name: "menu" }, {
|
1030
|
+
default: F(() => [
|
1031
|
+
i.value && e.chat.actions ? (c(), P(D(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 = D(t);
|
1049
|
+
n("update", A.value);
|
1050
1050
|
};
|
1051
|
-
return (
|
1052
|
-
|
1053
|
-
|
1051
|
+
return (A, s) => (c(), d("div", ys, [
|
1052
|
+
r("div", bs, [
|
1053
|
+
r("input", {
|
1054
1054
|
ref_key: "refInput",
|
1055
1055
|
ref: t,
|
1056
1056
|
class: "chat-filter__input",
|
1057
1057
|
type: "text",
|
1058
|
-
placeholder:
|
1058
|
+
placeholder: D(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,38 +1089,38 @@ const Iu = (e) => {
|
|
1089
1089
|
},
|
1090
1090
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
1091
1091
|
setup(e, { emit: f }) {
|
1092
|
-
const t = e, n =
|
1093
|
-
|
1094
|
-
},
|
1092
|
+
const t = e, n = be("chatAppId"), { setMessageText: a } = At(n), A = () => {
|
1093
|
+
s("closeTemplateWindow"), a(o.value.template);
|
1094
|
+
}, s = f, i = I(null), o = I(null), l = I(""), g = (h) => {
|
1095
1095
|
t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, o.value = h;
|
1096
|
-
},
|
1096
|
+
}, u = () => {
|
1097
1097
|
t.templates.forEach((h) => h.isSelected = !1);
|
1098
1098
|
}, m = U(() => i.value ? t.templates.filter((h) => h.groupId === i.value.groupId) : t.templates), p = U(() => {
|
1099
|
-
const h =
|
1099
|
+
const h = l.value.trim().toLowerCase();
|
1100
1100
|
return m.value.filter((M) => (console.log(M), M.title.toLowerCase().includes(h) || M.template.toLowerCase().includes(h)));
|
1101
1101
|
});
|
1102
1102
|
return (h, M) => (c(), d("div", ws, [
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1103
|
+
r("div", ks, [
|
1104
|
+
r("button", Ns, [
|
1105
|
+
r("span", {
|
1106
1106
|
class: "pi pi-times",
|
1107
1107
|
onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
|
1108
1108
|
})
|
1109
1109
|
]),
|
1110
|
-
|
1110
|
+
r("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
|
+
r("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
|
-
|
1123
|
+
Ne(r("input", {
|
1124
1124
|
id: _,
|
1125
1125
|
"onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
|
1126
1126
|
value: y,
|
@@ -1129,50 +1129,50 @@ const Iu = (e) => {
|
|
1129
1129
|
}, null, 8, Ts), [
|
1130
1130
|
[Ia, i.value]
|
1131
1131
|
]),
|
1132
|
-
|
1132
|
+
r("span", null, w(y.title), 1)
|
1133
1133
|
])
|
1134
1134
|
], 2))), 128))
|
1135
1135
|
]),
|
1136
|
-
|
1137
|
-
|
1138
|
-
"onUpdate:modelValue": M[2] || (M[2] = (y) =>
|
1136
|
+
r("div", Vs, [
|
1137
|
+
Ne(r("input", {
|
1138
|
+
"onUpdate:modelValue": M[2] || (M[2] = (y) => l.value = y),
|
1139
1139
|
class: "template-selector__searching-input",
|
1140
1140
|
type: "text",
|
1141
1141
|
placeholder: "Поиск шаблона"
|
1142
1142
|
}, null, 512), [
|
1143
|
-
[xt,
|
1143
|
+
[xt, l.value]
|
1144
1144
|
])
|
1145
1145
|
]),
|
1146
|
-
|
1146
|
+
r("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
|
+
r("div", Os, [
|
1154
|
+
r("p", Cs, w(y.title), 1),
|
1155
|
+
r("p", Ls, w(y.template), 1)
|
1156
1156
|
])
|
1157
1157
|
], 10, zs))), 128))
|
1158
1158
|
])) : (c(), d("p", Us, " Шаблоны отсутствуют "))
|
1159
1159
|
]),
|
1160
|
-
|
1160
|
+
r("div", Bs, [
|
1161
1161
|
o.value ? (c(), d("div", Qs, [
|
1162
|
-
|
1163
|
-
|
1164
|
-
M[3] || (M[3] =
|
1162
|
+
r("div", Rs, [
|
1163
|
+
r("p", Ys, w(o.value.template), 1),
|
1164
|
+
M[3] || (M[3] = r("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
1165
1165
|
])
|
1166
1166
|
])) : (c(), d("p", qs, " Предпросмотр шаблона "))
|
1167
1167
|
]),
|
1168
|
-
|
1168
|
+
r("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,42 +1189,46 @@ 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 == "
|
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 = (l) => {
|
1206
|
+
f.mode == "click" && !t.value.contains(l.target) && !n.value.contains(l.target) && (n.value.style.display = "none");
|
1203
1207
|
}, o = () => {
|
1204
1208
|
n.value.style.display = "none";
|
1205
1209
|
};
|
1206
|
-
return
|
1210
|
+
return pe(() => {
|
1207
1211
|
n.value.style.display = "none", document.addEventListener("click", i);
|
1208
|
-
}),
|
1212
|
+
}), zt(() => {
|
1209
1213
|
document.removeEventListener("click", i);
|
1210
|
-
}), (
|
1211
|
-
|
1214
|
+
}), (l, g) => (c(), d($, null, [
|
1215
|
+
r("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
|
-
]),
|
1221
|
-
L(
|
1222
|
-
default:
|
1223
|
-
|
1223
|
+
r("span", { class: "pi pi-objects-column" }, null, -1)
|
1224
|
+
]), 34),
|
1225
|
+
L(H, null, {
|
1226
|
+
default: F(() => [
|
1227
|
+
r("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,
|
@@ -1237,7 +1241,7 @@ const Iu = (e) => {
|
|
1237
1241
|
})
|
1238
1242
|
], 64));
|
1239
1243
|
}
|
1240
|
-
},
|
1244
|
+
}, ju = /* @__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(ke(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
|
}
|
@@ -13300,7 +13304,7 @@ let _t = {
|
|
13300
13304
|
if (f === "store")
|
13301
13305
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
13302
13306
|
}
|
13303
|
-
return
|
13307
|
+
return ke(e[f]);
|
13304
13308
|
},
|
13305
13309
|
set(e, f, t) {
|
13306
13310
|
return e[f] = t, !0;
|
@@ -13315,40 +13319,40 @@ function pi(e) {
|
|
13315
13319
|
function hi(e) {
|
13316
13320
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...t) {
|
13317
13321
|
const n = e.call(mt(this), f, ...t);
|
13318
|
-
return qn.set(n, f.sort ? f.sort() : [f]),
|
13322
|
+
return qn.set(n, f.sort ? f.sort() : [f]), ke(n);
|
13319
13323
|
} : di().includes(e) ? function(...f) {
|
13320
|
-
return e.apply(mt(this), f),
|
13324
|
+
return e.apply(mt(this), f), ke(Yn.get(this));
|
13321
13325
|
} : function(...f) {
|
13322
|
-
return
|
13326
|
+
return ke(e.apply(mt(this), f));
|
13323
13327
|
};
|
13324
13328
|
}
|
13325
13329
|
function Mi(e) {
|
13326
13330
|
return typeof e == "function" ? hi(e) : (e instanceof IDBTransaction && mi(e), ui(e, ci()) ? new Proxy(e, _t) : e);
|
13327
13331
|
}
|
13328
|
-
function
|
13332
|
+
function ke(e) {
|
13329
13333
|
if (e instanceof IDBRequest)
|
13330
13334
|
return gi(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(
|
13341
|
-
}), t &&
|
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 = ke(s);
|
13343
|
+
return n && s.addEventListener("upgradeneeded", (o) => {
|
13344
|
+
n(ke(s.result), o.oldVersion, o.newVersion, ke(s.transaction), o);
|
13345
|
+
}), t && s.addEventListener("blocked", (o) => t(
|
13342
13346
|
o.oldVersion,
|
13343
13347
|
o.newVersion,
|
13344
13348
|
o
|
13345
13349
|
)), i.then((o) => {
|
13346
|
-
|
13350
|
+
A && o.addEventListener("close", () => A()), a && o.addEventListener("versionchange", (l) => a(l.oldVersion, l.newVersion, l));
|
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 o = this.transaction(
|
13361
|
-
let
|
13362
|
-
return n && (
|
13363
|
-
|
13363
|
+
const A = async function(s, ...i) {
|
13364
|
+
const o = this.transaction(s, a ? "readwrite" : "readonly");
|
13365
|
+
let l = o.store;
|
13366
|
+
return n && (l = l.index(i.shift())), (await Promise.all([
|
13367
|
+
l[t](...i),
|
13364
13368
|
a && o.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, l();
|
13449
13453
|
});
|
13450
13454
|
}
|
13451
|
-
const a = (
|
13452
|
-
e.search =
|
13453
|
-
},
|
13454
|
-
e.emoji =
|
13455
|
-
},
|
13456
|
-
e.activeGroup =
|
13457
|
-
}, i = (
|
13458
|
-
e.skinTone =
|
13459
|
-
}, o = (
|
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
|
+
}, o = (u) => {
|
13464
|
+
e.options = Object.assign({}, e.options, u), f();
|
13461
13465
|
};
|
13462
|
-
async function
|
13463
|
-
(await
|
13466
|
+
async function l() {
|
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((h) => h.u ===
|
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), l();
|
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
13487
|
updateOptions: o,
|
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,10 +13544,10 @@ 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 o[
|
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(o, l) {
|
13548
|
+
return o[l] = "", o;
|
13545
13549
|
}, {});
|
13546
|
-
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(
|
13550
|
+
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(o) {
|
13547
13551
|
a.removeAttribute(o);
|
13548
13552
|
}));
|
13549
13553
|
});
|
@@ -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), o = qt(i), l = [ee, ie].indexOf(i) >= 0, g = l ? "height" : "width";
|
13677
|
+
if (!(!A || !s)) {
|
13678
|
+
var u = qi(a.padding, t), m = Yt(A), p = o === "y" ? X : ee, h = o === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[o] - s[o] - t.rects.popper[g], y = s[o] - t.rects.reference[o], _ = lf(A), k = _ ? o === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, j = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + j, T = Ge(N, S, E), O = o;
|
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, o = e.gpuAcceleration, l = 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"), j = ee, N = X, E = window;
|
13713
|
+
if (l) {
|
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 =
|
13717
|
+
var Q = u && E.visualViewport ? E.visualViewport.height : S[T];
|
13714
13718
|
y -= Q - n.height, y *= o ? 1 : -1;
|
13715
13719
|
}
|
13716
|
-
if (a === ee || (a === X || a === se) &&
|
13717
|
-
|
13718
|
-
var
|
13719
|
-
h -=
|
13720
|
+
if (a === ee || (a === X || a === se) && A === nf) {
|
13721
|
+
j = ie;
|
13722
|
+
var C = u && E.visualViewport ? E.visualViewport.width : S[O];
|
13723
|
+
h -= C - n.width, h *= o ? 1 : -1;
|
13720
13724
|
}
|
13721
13725
|
}
|
13722
13726
|
var B = Object.assign({
|
13723
13727
|
position: i
|
13724
|
-
},
|
13728
|
+
}, l && $i);
|
13725
13729
|
if (o) {
|
13726
13730
|
var R;
|
13727
|
-
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[
|
13731
|
+
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[j] = _ ? "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[
|
13733
|
+
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[j] = _ ? 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, o = i === void 0 ? !0 : i, l = {
|
13733
13737
|
placement: de(f.placement),
|
13734
13738
|
variation: He(f.placement),
|
13735
13739
|
popper: f.elements.popper,
|
@@ -13737,12 +13741,12 @@ 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({}, l, {
|
13741
13745
|
offsets: f.modifiersData.popperOffsets,
|
13742
13746
|
position: f.options.strategy,
|
13743
|
-
adaptive:
|
13747
|
+
adaptive: s,
|
13744
13748
|
roundOffsets: o
|
13745
|
-
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow,
|
13749
|
+
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, l, {
|
13746
13750
|
offsets: f.modifiersData.arrow,
|
13747
13751
|
position: "absolute",
|
13748
13752
|
adaptive: !1,
|
@@ -13761,11 +13765,11 @@ 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, o = oe(f.elements.popper), l = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
13769
|
+
return A && l.forEach(function(g) {
|
13766
13770
|
g.addEventListener("scroll", t.update, hf);
|
13767
13771
|
}), i && o.addEventListener("resize", t.update, hf), function() {
|
13768
|
-
|
13772
|
+
A && l.forEach(function(g) {
|
13769
13773
|
g.removeEventListener("scroll", t.update, hf);
|
13770
13774
|
}), i && o.removeEventListener("resize", t.update, hf);
|
13771
13775
|
};
|
@@ -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), o = -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
13830
|
y: o
|
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,24 +13865,24 @@ 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, o) {
|
13869
|
+
var l = In(e, o);
|
13870
|
+
return i.top = ze(l.top, i.top), i.right = Ef(l.right, i.right), i.bottom = Ef(l.bottom, i.bottom), i.left = ze(l.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, o;
|
13872
13876
|
switch (a) {
|
13873
13877
|
case X:
|
13874
13878
|
o = {
|
13875
|
-
x:
|
13879
|
+
x: s,
|
13876
13880
|
y: f.y - t.height
|
13877
13881
|
};
|
13878
13882
|
break;
|
13879
13883
|
case se:
|
13880
13884
|
o = {
|
13881
|
-
x:
|
13885
|
+
x: s,
|
13882
13886
|
y: f.y + f.height
|
13883
13887
|
};
|
13884
13888
|
break;
|
@@ -13900,15 +13904,15 @@ function Zn(e) {
|
|
13900
13904
|
y: f.y
|
13901
13905
|
};
|
13902
13906
|
}
|
13903
|
-
var
|
13904
|
-
if (
|
13905
|
-
var g =
|
13906
|
-
switch (
|
13907
|
+
var l = a ? qt(a) : null;
|
13908
|
+
if (l != null) {
|
13909
|
+
var g = l === "y" ? "height" : "width";
|
13910
|
+
switch (A) {
|
13907
13911
|
case Qe:
|
13908
|
-
o[
|
13912
|
+
o[l] = o[l] - (f[g] / 2 - t[g] / 2);
|
13909
13913
|
break;
|
13910
13914
|
case nf:
|
13911
|
-
o[
|
13915
|
+
o[l] = o[l] + (f[g] / 2 - t[g] / 2);
|
13912
13916
|
break;
|
13913
13917
|
}
|
13914
13918
|
}
|
@@ -13916,40 +13920,40 @@ function Zn(e) {
|
|
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, o = i === void 0 ? Hn : i, l = t.elementContext, g = l === void 0 ? Je : l, 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], j = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, o), 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:
|
13926
|
-
bottom:
|
13927
|
-
left:
|
13928
|
-
right:
|
13928
|
+
}), S = wt(Object.assign({}, _, E)), T = g === Je ? S : N, O = {
|
13929
|
+
top: j.top - T.top + M.top,
|
13930
|
+
bottom: T.bottom - j.bottom + M.bottom,
|
13931
|
+
left: j.left - T.left + M.left,
|
13932
|
+
right: T.right - j.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,
|
13945
|
+
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, l = o === void 0 ? Fn : o, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
|
13942
13946
|
return He(h) === g;
|
13943
|
-
}) : of, m =
|
13944
|
-
return
|
13947
|
+
}) : of, m = u.filter(function(h) {
|
13948
|
+
return l.indexOf(h) >= 0;
|
13945
13949
|
});
|
13946
|
-
m.length === 0 && (m =
|
13950
|
+
m.length === 0 && (m = u);
|
13947
13951
|
var p = m.reduce(function(h, M) {
|
13948
13952
|
return h[M] = af(e, {
|
13949
13953
|
placement: M,
|
13950
13954
|
boundary: a,
|
13951
|
-
rootBoundary:
|
13952
|
-
padding:
|
13955
|
+
rootBoundary: A,
|
13956
|
+
padding: s
|
13953
13957
|
})[de(M)], h;
|
13954
13958
|
}, {});
|
13955
13959
|
return Object.keys(p).sort(function(h, M) {
|
@@ -13957,47 +13961,47 @@ function so(e, f) {
|
|
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(
|
13970
|
-
placement:
|
13972
|
+
for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, o = t.fallbackPlacements, l = 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, j = o || (k || !h ? [_f(y)] : io(y)), N = [y].concat(j).reduce(function(Ce, ve) {
|
13973
|
+
return Ce.concat(de(ve) === Rt ? so(f, {
|
13974
|
+
placement: ve,
|
13971
13975
|
boundary: g,
|
13972
|
-
rootBoundary:
|
13973
|
-
padding:
|
13976
|
+
rootBoundary: u,
|
13977
|
+
padding: l,
|
13974
13978
|
flipVariations: h,
|
13975
13979
|
allowedAutoPlacements: M
|
13976
|
-
}) :
|
13977
|
-
}, []),
|
13978
|
-
var B = N[
|
13980
|
+
}) : ve);
|
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, he = [X, se].indexOf(R) >= 0, le = he ? "width" : "height", Y = af(f, {
|
13979
13983
|
placement: B,
|
13980
13984
|
boundary: g,
|
13981
|
-
rootBoundary:
|
13985
|
+
rootBoundary: u,
|
13982
13986
|
altBoundary: m,
|
13983
|
-
padding:
|
13984
|
-
}), W =
|
13985
|
-
|
13987
|
+
padding: l
|
13988
|
+
}), W = he ? te ? ie : ee : te ? se : X;
|
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 = h ? 3 : 1, lt = function(
|
13999
|
+
if (O)
|
14000
|
+
for (var cf = h ? 3 : 1, lt = function(ve) {
|
13997
14001
|
var Ke = N.find(function(gf) {
|
13998
|
-
var Te =
|
14002
|
+
var Te = T.get(gf);
|
13999
14003
|
if (Te)
|
14000
|
-
return Te.slice(0,
|
14004
|
+
return Te.slice(0, ve).every(function(rt) {
|
14001
14005
|
return rt;
|
14002
14006
|
});
|
14003
14007
|
});
|
@@ -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
|
-
}), o =
|
14049
|
+
}), o = _n(s, n), l = _n(i, a, A), g = wn(o), u = wn(l);
|
14046
14050
|
f.modifiersData[t] = {
|
14047
14051
|
referenceClippingOffsets: o,
|
14048
|
-
popperEscapeOffsets:
|
14052
|
+
popperEscapeOffsets: l,
|
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 += o, f.modifiersData.popperOffsets.y +=
|
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], o = i.x, l = i.y;
|
14083
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += o, f.modifiersData.popperOffsets.y += l), 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,
|
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, o = t.boundary, l = 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, {
|
14109
14113
|
boundary: o,
|
14110
|
-
rootBoundary:
|
14111
|
-
padding:
|
14114
|
+
rootBoundary: l,
|
14115
|
+
padding: u,
|
14112
14116
|
altBoundary: g
|
14113
|
-
}), _ = de(f.placement), k = He(f.placement),
|
14117
|
+
}), _ = de(f.placement), k = He(f.placement), j = !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
|
-
})) : M,
|
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,
|
14129
|
+
if (S) {
|
14130
|
+
if (A) {
|
14131
|
+
var te, he = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[he], 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
|
-
},
|
14131
|
-
|
14134
|
+
}, ve = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = ve[he], gf = ve[le], Te = Ge(0, T[Y], Ce[Y]), rt = j ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = j ? -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
|
}, o = {
|
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) ? (o = qe(f, !0), o.x += f.clientLeft, o.y += f.clientTop) : A && (o.x = Ft(A))), {
|
14174
|
+
x: s.left + i.scrollLeft - o.x,
|
14175
|
+
y: s.top + i.scrollTop - o.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
14190
|
var o = f.get(i);
|
14187
14191
|
o && a(o);
|
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,13 +14240,13 @@ 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, o,
|
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, o, l) {
|
14245
|
+
l === void 0 && (l = 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,
|
@@ -14250,38 +14254,38 @@ function Eo(e) {
|
|
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
|
-
M(), g.options = Object.assign({},
|
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
14263
|
popper: Ze(o)
|
14260
14264
|
};
|
14261
|
-
var
|
14262
|
-
return g.orderedModifiers =
|
14265
|
+
var j = No(jo([].concat(n, g.options.modifiers)));
|
14266
|
+
return g.orderedModifiers = j.filter(function(N) {
|
14263
14267
|
return N.enabled;
|
14264
14268
|
}), h(), p.update();
|
14265
14269
|
},
|
14266
14270
|
forceUpdate: function() {
|
14267
14271
|
if (!m) {
|
14268
|
-
var _ = g.elements, k = _.reference,
|
14269
|
-
if (
|
14272
|
+
var _ = g.elements, k = _.reference, j = _.popper;
|
14273
|
+
if (Nn(k, j)) {
|
14270
14274
|
g.rects = {
|
14271
|
-
reference: wo(k, lf(
|
14272
|
-
popper:
|
14273
|
-
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(
|
14274
|
-
return g.modifiersData[
|
14275
|
+
reference: wo(k, lf(j), g.options.strategy === "fixed"),
|
14276
|
+
popper: Yt(j)
|
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);
|
@@ -14298,30 +14302,30 @@ function Eo(e) {
|
|
14298
14302
|
M(), m = !0;
|
14299
14303
|
}
|
14300
14304
|
};
|
14301
|
-
if (!
|
14305
|
+
if (!Nn(i, o))
|
14302
14306
|
return p;
|
14303
|
-
p.setOptions(
|
14304
|
-
!m &&
|
14307
|
+
p.setOptions(l).then(function(y) {
|
14308
|
+
!m && l.onFirstUpdate && l.onFirstUpdate(y);
|
14305
14309
|
});
|
14306
14310
|
function h() {
|
14307
14311
|
g.orderedModifiers.forEach(function(y) {
|
14308
|
-
var _ = y.name, k = y.options,
|
14312
|
+
var _ = y.name, k = y.options, j = 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
|
-
options:
|
14315
|
-
}),
|
14318
|
+
options: j
|
14319
|
+
}), S = function() {
|
14316
14320
|
};
|
14317
|
-
|
14321
|
+
u.push(E || S);
|
14318
14322
|
}
|
14319
14323
|
});
|
14320
14324
|
}
|
14321
14325
|
function M() {
|
14322
|
-
|
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[
|
14344
|
+
const s = [];
|
14345
|
+
e[A].forEach((i) => {
|
14342
14346
|
var o;
|
14343
14347
|
if (i[st][0].includes(f.toLocaleLowerCase())) {
|
14344
|
-
let
|
14348
|
+
let l = i[Rn];
|
14345
14349
|
if (t !== jf && Array.isArray(i[pf])) {
|
14346
14350
|
const g = ((o = i[pf]) == null ? void 0 : o.findIndex(
|
14347
|
-
(
|
14351
|
+
(u) => u.includes(t)
|
14348
14352
|
)) || -1;
|
14349
|
-
g !== -1 && i[pf] && (
|
14353
|
+
g !== -1 && i[pf] && (l = i[pf][g]);
|
14350
14354
|
}
|
14351
|
-
return
|
14355
|
+
return s.push({
|
14352
14356
|
...i,
|
14353
|
-
[tf]:
|
14357
|
+
[tf]: l
|
14354
14358
|
});
|
14355
14359
|
}
|
14356
|
-
}),
|
14360
|
+
}), s.length && (a[A] = s);
|
14357
14361
|
}), a;
|
14358
14362
|
}
|
14359
14363
|
function ea() {
|
@@ -14378,21 +14382,21 @@ const So = K({
|
|
14378
14382
|
select: (e) => !0
|
14379
14383
|
},
|
14380
14384
|
setup() {
|
14381
|
-
const { state: e, updateEmoji: f, updateSelect: t } =
|
14385
|
+
const { state: e, updateEmoji: f, updateSelect: t } = be("store"), n = I(null), a = U(() => xo(
|
14382
14386
|
e.emojis,
|
14383
14387
|
e.search,
|
14384
14388
|
e.skinTone,
|
14385
14389
|
e.options.disabledGroups
|
14386
|
-
)),
|
14390
|
+
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = Cn(e.options.groupNames), l = e.orderedGroupKeys;
|
14387
14391
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
|
14388
14392
|
e.options.groupNames[h] ? o[h] = e.options.groupNames[h] : o[h] = fa(h);
|
14389
14393
|
});
|
14390
14394
|
const g = ea() ? "is-mac" : "";
|
14391
|
-
function
|
14395
|
+
function u(h) {
|
14392
14396
|
f(h);
|
14393
14397
|
}
|
14394
14398
|
function m(h) {
|
14395
|
-
t(h),
|
14399
|
+
t(h), A == null || A.emit("select", {
|
14396
14400
|
...h,
|
14397
14401
|
t: e.skinTone,
|
14398
14402
|
i: wf(h.r)
|
@@ -14417,41 +14421,41 @@ 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
14432
|
groupNames: o,
|
14429
|
-
orderedKeys:
|
14433
|
+
orderedKeys: l
|
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
|
+
r("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
|
-
e.hasGroupNames ?
|
14451
|
+
e.hasGroupNames ? Ne((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
|
-
|
14454
|
-
(c(!0), d($, null, Z(e.emojis[
|
14457
|
+
Ne(r("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
14461
|
onMouseenter: (o) => e.handleMouseEnter(i),
|
@@ -14465,7 +14469,7 @@ function Ro(e, f, t, n, a, s) {
|
|
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 } =
|
14482
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = be("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
|
), o = U({
|
14481
14485
|
get: () => f.search,
|
14482
|
-
set: (
|
14483
|
-
}),
|
14486
|
+
set: (u) => t(u)
|
14487
|
+
}), l = [
|
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 = l.findIndex((p) => p.key === u);
|
14496
|
+
m !== -1 && (g.push(l[m]), l.splice(m, 1));
|
14493
14497
|
}), {
|
14494
14498
|
orderedGroups: g,
|
14495
|
-
orderedKeys:
|
14499
|
+
orderedKeys: s,
|
14496
14500
|
searchValue: o,
|
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
|
+
r("span", {
|
14544
|
+
title: s.title,
|
14541
14545
|
class: "v3-icon"
|
14542
14546
|
}, [
|
14543
|
-
|
14544
|
-
src: e.icons[
|
14547
|
+
r("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
|
-
|
14553
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
14556
|
+
Ne(r("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 } =
|
14570
|
+
const { state: e, updateSkinTone: f } = be("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" : "", o = U(() => ({
|
14569
14573
|
...e.emoji,
|
14570
14574
|
src: Bn + "/" + e.emoji[tf] + ".png"
|
14571
14575
|
}));
|
14572
|
-
function
|
14576
|
+
function l(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), l(!1);
|
14580
14584
|
}
|
14581
14585
|
return Oe(
|
14582
14586
|
() => e.emoji,
|
@@ -14586,15 +14590,15 @@ const o1 = K({
|
|
14586
14590
|
), {
|
14587
14591
|
emoji: o,
|
14588
14592
|
SKIN_TONES: Xs,
|
14589
|
-
updateSkinToneState:
|
14593
|
+
updateSkinToneState: l,
|
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
|
+
r("div", l1, [
|
14615
|
+
r("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
|
+
r("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
|
+
r("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
|
+
r("span", d1, w(e.skinToneText), 1),
|
14634
|
+
r("span", {
|
14635
|
+
class: x(`v3-icon v3-tone-${e.stateSkinTone}`)
|
14632
14636
|
}, null, 2)
|
14633
14637
|
]),
|
14634
|
-
|
14635
|
-
class:
|
14638
|
+
r("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,13 +14687,13 @@ 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(),
|
14690
|
+
const t = I(), n = I(), a = I(), A = I(!1), s = I(e.text), i = e.type === "input" || e.type === "textarea";
|
14687
14691
|
let o = -1;
|
14688
|
-
const { state:
|
14689
|
-
function
|
14692
|
+
const { state: l } = be("store"), g = U(() => l.options.colorTheme);
|
14693
|
+
function u(y) {
|
14690
14694
|
if (i) {
|
14691
|
-
const _ =
|
14692
|
-
_ === "prepend" ?
|
14695
|
+
const _ = l.options.mode;
|
14696
|
+
_ === "prepend" ? s.value = y.i + s.value : _ === "insert" && o !== -1 ? (s.value = `${s.value.slice(0, o)}${y.i}${s.value.slice(o)}`, o += y.i.length) : s.value += y.i, f("update:text", s.value);
|
14693
14697
|
}
|
14694
14698
|
f("select", y);
|
14695
14699
|
}
|
@@ -14701,11 +14705,11 @@ const h1 = K({
|
|
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
14710
|
function h() {
|
14707
14711
|
if (n.value && a.value && i) {
|
14708
|
-
let y =
|
14712
|
+
let y = l.options.offset;
|
14709
14713
|
typeof y != "number" && (y = 6), Vo(n.value, a.value, {
|
14710
14714
|
placement: "bottom-end",
|
14711
14715
|
modifiers: [
|
@@ -14720,17 +14724,17 @@ const h1 = K({
|
|
14720
14724
|
}
|
14721
14725
|
}
|
14722
14726
|
function M(y) {
|
14723
|
-
|
14727
|
+
s.value = y.target.value || "", f("update:text", s.value);
|
14724
14728
|
}
|
14725
|
-
return
|
14729
|
+
return pe(() => {
|
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,
|
@@ -14744,45 +14748,45 @@ 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"), o = If("Footer");
|
14749
14753
|
return e.isInputType ? (c(), d("div", M1, [
|
14750
|
-
|
14754
|
+
r("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] = (...l) => e.onChangeText && e.onChangeText(...l)),
|
14762
|
+
onBlur: f[1] || (f[1] = (...l) => e.updateCursor && e.updateCursor(...l))
|
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] = (...l) => e.onChangeText && e.onChangeText(...l)),
|
14769
|
+
onBlur: f[3] || (f[3] = (...l) => e.updateCursor && e.updateCursor(...l))
|
14766
14770
|
}, null, 40, v1)),
|
14767
|
-
|
14768
|
-
class:
|
14771
|
+
r("div", {
|
14772
|
+
class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
14769
14773
|
}, [
|
14770
|
-
|
14774
|
+
r("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] = (l) => e.open = !e.open)
|
14775
14779
|
}, [
|
14776
|
-
|
14780
|
+
r("img", {
|
14777
14781
|
src: e.face,
|
14778
14782
|
alt: ""
|
14779
14783
|
}, null, 8, I1)
|
14780
14784
|
], 512),
|
14781
|
-
|
14785
|
+
r("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
14791
|
L(o)
|
14788
14792
|
], 2)
|
@@ -14790,9 +14794,9 @@ function _1(e, f, t, n, a, s) {
|
|
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
14801
|
L(o)
|
14798
14802
|
], 2));
|
@@ -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(),
|
14918
|
+
function N1(e, f, t, n, a, A) {
|
14919
|
+
const s = If("picker-root");
|
14920
|
+
return c(), P(s, {
|
14917
14921
|
type: e.type,
|
14918
14922
|
text: e.input,
|
14919
14923
|
onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
|
@@ -14928,48 +14932,52 @@ 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 =
|
14942
|
+
const f = e, t = I(null), n = I(null), a = be("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
|
14935
14943
|
if (document.documentElement.classList.contains("dark"))
|
14936
14944
|
return "dark";
|
14937
14945
|
}), o = (p) => {
|
14938
|
-
s(
|
14939
|
-
},
|
14940
|
-
f.mode == "click" && (t.value.style.display = "inherit");
|
14946
|
+
A(s().text + p.i);
|
14947
|
+
}, l = () => {
|
14948
|
+
f.mode == "click" && f.state == "active" && (t.value.style.display = "inherit");
|
14941
14949
|
}, g = () => {
|
14942
|
-
f.mode == "hover" && (t.value.style.display = "inherit");
|
14943
|
-
},
|
14944
|
-
f.mode == "hover" && (t.value.style.display = "none");
|
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
|
-
return
|
14956
|
+
return pe(() => {
|
14949
14957
|
t.value.style.display = "none", document.addEventListener("click", m);
|
14950
|
-
}),
|
14958
|
+
}), zt(() => {
|
14951
14959
|
document.removeEventListener("click", m);
|
14952
14960
|
}), (p, h) => (c(), d($, null, [
|
14953
|
-
|
14961
|
+
r("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: l,
|
14958
14966
|
onMouseover: g,
|
14959
|
-
onMouseout:
|
14967
|
+
onMouseout: u
|
14960
14968
|
}, h[0] || (h[0] = [
|
14961
|
-
|
14962
|
-
]),
|
14963
|
-
L(
|
14964
|
-
default:
|
14965
|
-
|
14969
|
+
r("span", { class: "pi pi-face-smile" }, null, -1)
|
14970
|
+
]), 34),
|
14971
|
+
L(H, null, {
|
14972
|
+
default: F(() => [
|
14973
|
+
r("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(D(D1), {
|
14973
14981
|
native: !0,
|
14974
14982
|
theme: i.value,
|
14975
14983
|
"picker-type": "",
|
@@ -14981,7 +14989,7 @@ const j1 = {
|
|
14981
14989
|
})
|
14982
14990
|
], 64));
|
14983
14991
|
}
|
14984
|
-
},
|
14992
|
+
}, Eu = /* @__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
|
-
|
15006
|
+
return (A, s) => (c(), d("div", E1, [
|
15007
|
+
r("div", T1, [
|
15008
|
+
r("ul", V1, [
|
15001
15009
|
(c(!0), d($, null, Z(t.actions, (i, o) => (c(), d("li", {
|
15002
15010
|
key: o,
|
15003
15011
|
class: "context-menu__item",
|
15004
|
-
onClick: (
|
15012
|
+
onClick: (l) => a(o)
|
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
|
+
r("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 o(
|
15046
|
-
return
|
15053
|
+
function o(l) {
|
15054
|
+
return l.position === "left" ? "file-message__left" : "file-message__right";
|
15047
15055
|
}
|
15048
|
-
return (
|
15049
|
-
class:
|
15056
|
+
return (l, g) => (c(), d("div", {
|
15057
|
+
class: x(["file-message", o(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,
|
@@ -15056,50 +15064,50 @@ const j1 = {
|
|
15056
15064
|
src: e.message.avatar,
|
15057
15065
|
height: "32",
|
15058
15066
|
width: "32",
|
15059
|
-
style:
|
15067
|
+
style: q({ 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
|
+
r("div", {
|
15063
15071
|
class: "file-message__content",
|
15064
|
-
onMouseenter:
|
15072
|
+
onMouseenter: A
|
15065
15073
|
}, [
|
15066
|
-
|
15074
|
+
r("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] = r("span", { class: "pi pi-file" }, null, -1)),
|
15081
|
+
r("p", B1, w(e.message.filename), 1)
|
15074
15082
|
], 8, U1),
|
15075
|
-
|
15076
|
-
|
15077
|
-
o(e.message) === "file-message__right" &&
|
15083
|
+
r("div", Q1, [
|
15084
|
+
r("span", R1, w(e.message.time), 1),
|
15085
|
+
o(e.message) === "file-message__right" && D(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] = r("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
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15091
15099
|
]))) : b("", !0),
|
15092
|
-
|
15100
|
+
r("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
|
+
r("span", { class: "pi pi-download" }, null, -1)
|
15099
15107
|
]), 8, q1),
|
15100
|
-
L(
|
15101
|
-
default:
|
15102
|
-
t.value && e.message.actions ? (c(),
|
15108
|
+
L(H, null, {
|
15109
|
+
default: F(() => [
|
15110
|
+
t.value && e.message.actions ? (c(), P(D(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
|
+
r("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,17 +15149,17 @@ 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,
|
15154
|
+
a.value = !0, A.value = !0;
|
15147
15155
|
}, o = () => {
|
15148
15156
|
a.value = !1, n.value = !1;
|
15149
|
-
},
|
15150
|
-
function g(
|
15151
|
-
return
|
15157
|
+
}, l = 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
15164
|
onMouseleave: o
|
15157
15165
|
}, [
|
@@ -15163,94 +15171,94 @@ 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
|
+
r("div", J1, [
|
15175
|
+
r("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
|
+
r("img", {
|
15174
15182
|
class: "image-message__preview-image",
|
15175
|
-
style:
|
15183
|
+
style: q({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
15176
15184
|
src: e.message.url,
|
15177
15185
|
alt: e.message.alt
|
15178
15186
|
}, null, 12, G1),
|
15179
|
-
L(
|
15180
|
-
default:
|
15181
|
-
|
15187
|
+
L(H, { name: "modal-fade" }, {
|
15188
|
+
default: F(() => [
|
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] = r("span", { class: "pi pi-eye" }, null, -1)),
|
15192
|
+
r("p", null, w(e.message.views), 1)
|
15185
15193
|
])) : b("", !0),
|
15186
|
-
|
15187
|
-
g(e.message) === "image-message__right" &&
|
15194
|
+
r("span", el, w(e.message.time), 1),
|
15195
|
+
g(e.message) === "image-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
|
15188
15196
|
key: 1,
|
15189
|
-
class:
|
15197
|
+
class: x(["image-message__status", l.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] = r("span", { class: "pi pi-check" }, null, -1))
|
15193
15201
|
], 2)) : b("", !0)
|
15194
15202
|
])) : b("", !0)
|
15195
15203
|
]),
|
15196
15204
|
_: 1
|
15197
15205
|
}),
|
15198
|
-
L(
|
15199
|
-
default:
|
15200
|
-
|
15206
|
+
L(H, { name: "modal-fade" }, {
|
15207
|
+
default: F(() => [
|
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
|
+
r("span", { class: "pi pi-download" }, null, -1)
|
15208
15216
|
]), 8, tl)) : b("", !0)
|
15209
15217
|
]),
|
15210
15218
|
_: 1
|
15211
15219
|
})
|
15212
15220
|
], 32),
|
15213
|
-
L(
|
15214
|
-
default:
|
15221
|
+
L(H, { name: "modal-fade" }, {
|
15222
|
+
default: F(() => [
|
15215
15223
|
a.value && e.message.actions ? (c(), d("button", {
|
15216
15224
|
key: 0,
|
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
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15221
15229
|
]))) : b("", !0)
|
15222
15230
|
]),
|
15223
15231
|
_: 1
|
15224
15232
|
}),
|
15225
|
-
L(
|
15226
|
-
default:
|
15227
|
-
n.value && e.message.actions ? (c(),
|
15233
|
+
L(H, { name: "context-menu" }, {
|
15234
|
+
default: F(() => [
|
15235
|
+
n.value && e.message.actions ? (c(), P(D(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
|
+
r("p", null, w(e.message.text), 1)
|
15238
15246
|
])) : b("", !0)
|
15239
15247
|
]),
|
15240
|
-
(c(),
|
15241
|
-
L(
|
15242
|
-
default:
|
15248
|
+
(c(), P(Ot, { to: "body" }, [
|
15249
|
+
L(H, { name: "modal-fade" }, {
|
15250
|
+
default: F(() => [
|
15243
15251
|
t.value ? (c(), d("div", al, [
|
15244
|
-
|
15245
|
-
|
15252
|
+
r("div", Al, [
|
15253
|
+
r("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
|
+
r("span", null, [
|
15258
|
+
r("i", { class: "pi pi-times" })
|
15251
15259
|
], -1)
|
15252
15260
|
])),
|
15253
|
-
|
15261
|
+
r("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,32 +15403,32 @@ 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 o = Fe(gl(
|
15404
|
-
xe(
|
15405
|
-
} else t && xe(
|
15406
|
-
|
15410
|
+
if (s.t && typeof s.t == "string") {
|
15411
|
+
const o = Fe(gl(s.t, n), t);
|
15412
|
+
xe(A, o, 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), ye = "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", _e = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", we = "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
|
-
WORD:
|
15422
|
+
WORD: ye,
|
15415
15423
|
UWORD: Et,
|
15416
15424
|
LOCALHOST: Af,
|
15417
15425
|
TLD: Tt,
|
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,
|
@@ -15440,90 +15448,90 @@ var sa = /* @__PURE__ */ Object.freeze({
|
|
15440
15448
|
AMPERSAND: Hf,
|
15441
15449
|
APOSTROPHE: Ff,
|
15442
15450
|
ASTERISK: Pf,
|
15443
|
-
AT:
|
15451
|
+
AT: _e,
|
15444
15452
|
BACKSLASH: $f,
|
15445
15453
|
BACKTICK: Wf,
|
15446
15454
|
CARET: Kf,
|
15447
|
-
COLON:
|
15448
|
-
COMMA:
|
15455
|
+
COLON: we,
|
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, "@", _e), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", we), 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);
|
15480
|
-
const a = ne(t, Le,
|
15488
|
+
const a = ne(t, Le, ye, {
|
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
15506
|
const o = v(i, pl);
|
15499
15507
|
ne(o, Mt, i);
|
15500
|
-
const
|
15501
|
-
for (let
|
15502
|
-
|
15503
|
-
for (let
|
15504
|
-
|
15508
|
+
const l = [[Le, a]], g = [[Le, null], [ht, A]];
|
15509
|
+
for (let u = 0; u < yf.length; u++)
|
15510
|
+
Ie(t, yf[u], Tt, ye, l);
|
15511
|
+
for (let u = 0; u < bf.length; u++)
|
15512
|
+
Ie(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),
|
15519
|
+
}, f), Ie(t, "file", Nf, ye, l), Ie(t, "mailto", Nf, ye, l), Ie(t, "http", Ue, ye, l), Ie(t, "https", Ue, ye, l), Ie(t, "ftp", Ue, ye, l), Ie(t, "ftps", Ue, ye, l), 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 ? h[jt] = !0 : Le.test(m) ? yt.test(m) ? h[kf] = !0 : h[Nt] = !0 : h[kt] = !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, o = null,
|
15540
|
-
for (;
|
15541
|
-
i = o, i.accepts() ? (
|
15542
|
-
|
15545
|
+
let A = 0, s = 0;
|
15546
|
+
for (; s < n; ) {
|
15547
|
+
let i = e, o = null, l = 0, g = null, u = -1, m = -1;
|
15548
|
+
for (; s < n && (o = i.go(t[s])); )
|
15549
|
+
i = o, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), l += t[s].length, A += t[s].length, s++;
|
15550
|
+
A -= u, s -= m, l -= u, a.push({
|
15543
15551
|
t: g.t,
|
15544
15552
|
// token type/name
|
15545
|
-
v: f.slice(
|
15553
|
+
v: f.slice(A - l, A),
|
15546
15554
|
// string value
|
15547
|
-
s:
|
15555
|
+
s: A - l,
|
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
|
-
function
|
15565
|
-
let
|
15566
|
-
const
|
15567
|
-
for (let i = 0; i <
|
15572
|
+
function Ie(e, f, t, n, a) {
|
15573
|
+
let A;
|
15574
|
+
const s = f.length;
|
15575
|
+
for (let i = 0; i < s - 1; i++) {
|
15568
15576
|
const o = f[i];
|
15569
|
-
e.j[o] ?
|
15577
|
+
e.j[o] ? A = e.j[o] : (A = new fe(n), A.jr = a.slice(), e.j[o] = 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), o = e.get("target", t, f), l = 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), o && (s.target = o), l && (s.rel = l), 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
|
@@ -15816,40 +15824,40 @@ const xn = ot("email", {
|
|
15816
15824
|
*/
|
15817
15825
|
hasProtocol() {
|
15818
15826
|
const e = this.tk;
|
15819
|
-
return e.length >= 2 && e[0].t !== Af && e[1].t ===
|
15827
|
+
return e.length >= 2 && e[0].t !== Af && e[1].t === we;
|
15820
15828
|
}
|
15821
15829
|
}), ae = (e) => new fe(e);
|
15822
15830
|
function bl({
|
15823
15831
|
groups: e
|
15824
15832
|
}) {
|
15825
|
-
const f = e.domain.concat([Hf, Pf,
|
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 h = v(
|
15840
|
-
|
15841
|
-
const M = v(p,
|
15842
|
-
|
15843
|
-
const y = v(
|
15844
|
-
|
15833
|
+
const f = e.domain.concat([Hf, Pf, _e, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, we, 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(), o = ae();
|
15836
|
+
V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme, o), V(s, n, A), V(s, e.domain, s);
|
15837
|
+
const l = v(s, _e);
|
15838
|
+
v(A, _e, l), v(i, _e, l), v(o, _e, l);
|
15839
|
+
const g = v(A, re);
|
15840
|
+
V(g, n, A), V(g, e.domain, A);
|
15841
|
+
const u = ae();
|
15842
|
+
V(l, 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(l, 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, we);
|
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
|
-
|
15847
|
-
const
|
15848
|
-
|
15849
|
-
const
|
15850
|
-
|
15851
|
-
const
|
15852
|
-
|
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, _e, l);
|
15855
|
+
const j = v(k, we), N = ae(vf);
|
15856
|
+
V(j, 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, we), O = v(o, we), Q = v(O, ce), C = v(Q, ce);
|
15860
|
+
V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(o, e.domain, s), v(o, re, _), v(o, 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,
|
15873
|
-
v(
|
15880
|
+
const [te, he] = B[R], le = v(E, te);
|
15881
|
+
v(S, te, le), v(le, he, 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, he, E), v(W, he, 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, o = null,
|
15895
|
+
let i = e, o = null, l = null, g = 0, u = null, m = -1;
|
15888
15896
|
for (; a < n && !(o = i.go(t[a].t)); )
|
15889
|
-
|
15890
|
-
for (; a < n && (
|
15891
|
-
o = null, i =
|
15897
|
+
s.push(t[a++]);
|
15898
|
+
for (; a < n && (l = o || i.go(t[a].t)); )
|
15899
|
+
o = null, i = l, 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,11 +15993,11 @@ 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
|
);
|
@@ -15997,22 +16005,22 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
15997
16005
|
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
15998
16006
|
}
|
15999
16007
|
const o = () => {
|
16000
|
-
|
16001
|
-
},
|
16002
|
-
|
16003
|
-
}, g = U(() => $e(t.message.status)),
|
16004
|
-
|
16008
|
+
A.value = !0;
|
16009
|
+
}, l = () => {
|
16010
|
+
A.value = !1, a.value = !1;
|
16011
|
+
}, g = U(() => $e(t.message.status)), u = (h) => {
|
16012
|
+
l(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
|
16005
16013
|
}, m = () => {
|
16006
|
-
|
16014
|
+
l(), n("action", { messageId: t.message.messageId, type: "views" });
|
16007
16015
|
};
|
16008
16016
|
function p(h) {
|
16009
16017
|
return h.position === "left" ? "text-message__left" : "text-message__right";
|
16010
16018
|
}
|
16011
16019
|
return (h, M) => (c(), d("div", Nl, [
|
16012
|
-
|
16013
|
-
class:
|
16020
|
+
r("div", {
|
16021
|
+
class: x(p(e.message)),
|
16014
16022
|
messageId: e.message.messageId,
|
16015
|
-
onMouseleave:
|
16023
|
+
onMouseleave: l
|
16016
16024
|
}, [
|
16017
16025
|
e.message.avatar ? (c(), d("img", {
|
16018
16026
|
key: 0,
|
@@ -16020,50 +16028,50 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16020
16028
|
src: e.message.avatar,
|
16021
16029
|
height: "32",
|
16022
16030
|
width: "32",
|
16023
|
-
style:
|
16031
|
+
style: q({ 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
|
+
r("div", {
|
16027
16035
|
class: "text-message__content",
|
16028
16036
|
onMouseenter: o
|
16029
16037
|
}, [
|
16030
|
-
|
16031
|
-
innerHTML:
|
16038
|
+
r("p", {
|
16039
|
+
innerHTML: s.value,
|
16032
16040
|
class: "text-message__text",
|
16033
16041
|
onClick: i
|
16034
16042
|
}, null, 8, Tl),
|
16035
|
-
|
16043
|
+
r("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
|
-
M[1] || (M[1] =
|
16042
|
-
|
16049
|
+
M[1] || (M[1] = r("span", { class: "pi pi-eye" }, null, -1)),
|
16050
|
+
r("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" && D(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
|
-
M[2] || (M[2] =
|
16058
|
+
M[2] || (M[2] = r("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
16064
|
onClick: M[0] || (M[0] = (y) => a.value = !a.value)
|
16057
16065
|
}, M[3] || (M[3] = [
|
16058
|
-
|
16066
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16059
16067
|
]))) : b("", !0),
|
16060
|
-
L(
|
16061
|
-
default:
|
16062
|
-
a.value && e.message.actions ? (c(),
|
16068
|
+
L(H, null, {
|
16069
|
+
default: F(() => [
|
16070
|
+
a.value && e.message.actions ? (c(), P(D(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,32 +16098,32 @@ 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), o = () => {
|
16094
16102
|
i.value = !0;
|
16095
|
-
},
|
16096
|
-
i.value = !1,
|
16103
|
+
}, l = () => {
|
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
|
-
const
|
16104
|
-
return `${
|
16105
|
-
}, h = U(() => t.value ? p(
|
16111
|
+
const j = Math.floor(k / 60), N = Math.floor(k % 60);
|
16112
|
+
return `${j.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
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
|
}
|
16109
|
-
return
|
16117
|
+
return pe(() => {
|
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
|
-
}), (k,
|
16116
|
-
class:
|
16123
|
+
}), (k, j) => (c(), d("div", {
|
16124
|
+
class: x(["audio-message", _(e.message)]),
|
16117
16125
|
messageId: e.message.messageId,
|
16118
|
-
onMouseleave:
|
16126
|
+
onMouseleave: l
|
16119
16127
|
}, [
|
16120
16128
|
e.message.avatar ? (c(), d("img", {
|
16121
16129
|
key: 0,
|
@@ -16123,69 +16131,69 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16123
16131
|
src: e.message.avatar,
|
16124
16132
|
height: "32",
|
16125
16133
|
width: "32",
|
16126
|
-
style:
|
16134
|
+
style: q({ 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
|
+
r("div", {
|
16130
16138
|
class: "audio-message__content",
|
16131
16139
|
onMouseenter: o
|
16132
16140
|
}, [
|
16133
|
-
|
16141
|
+
r("audio", {
|
16134
16142
|
ref_key: "player",
|
16135
16143
|
ref: t,
|
16136
16144
|
src: e.message.url
|
16137
16145
|
}, null, 8, Bl),
|
16138
|
-
|
16146
|
+
Ne(r("button", {
|
16139
16147
|
class: "audio-message__play",
|
16140
16148
|
onClick: m
|
16141
|
-
},
|
16142
|
-
|
16149
|
+
}, j[1] || (j[1] = [
|
16150
|
+
r("span", { class: "pi pi-play" }, null, -1)
|
16143
16151
|
]), 512), [
|
16144
16152
|
[Df, !n.value]
|
16145
16153
|
]),
|
16146
|
-
|
16154
|
+
Ne(r("button", {
|
16147
16155
|
class: "audio-message__pause",
|
16148
16156
|
onClick: m
|
16149
|
-
},
|
16150
|
-
|
16157
|
+
}, j[2] || (j[2] = [
|
16158
|
+
r("span", { class: "pi pi-pause" }, null, -1)
|
16151
16159
|
]), 512), [
|
16152
16160
|
[Df, n.value]
|
16153
16161
|
]),
|
16154
|
-
|
16155
|
-
|
16162
|
+
r("div", Ql, [
|
16163
|
+
r("div", {
|
16156
16164
|
class: "audio-message__progress-bar",
|
16157
|
-
style:
|
16165
|
+
style: q({ width: y.value + "%" })
|
16158
16166
|
}, null, 4)
|
16159
16167
|
]),
|
16160
|
-
|
16161
|
-
|
16162
|
-
|
16163
|
-
_(e.message) === "audio-message__right" &&
|
16168
|
+
r("p", Rl, w(`${h.value} / ${M.value}`), 1),
|
16169
|
+
r("div", Yl, [
|
16170
|
+
r("span", ql, w(e.message.time), 1),
|
16171
|
+
_(e.message) === "audio-message__right" && D(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
|
-
|
16176
|
+
j[3] || (j[3] = r("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:
|
16175
|
-
},
|
16176
|
-
|
16182
|
+
onClick: j[0] || (j[0] = (N) => s.value = !s.value)
|
16183
|
+
}, j[4] || (j[4] = [
|
16184
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16177
16185
|
]))) : b("", !0),
|
16178
|
-
|
16186
|
+
r("a", {
|
16179
16187
|
class: "audio-message__download-button",
|
16180
16188
|
href: e.message.url,
|
16181
16189
|
download: "",
|
16182
16190
|
target: "_blank"
|
16183
|
-
},
|
16184
|
-
|
16191
|
+
}, j[5] || (j[5] = [
|
16192
|
+
r("span", { class: "pi pi-download" }, null, -1)
|
16185
16193
|
]), 8, Fl),
|
16186
|
-
L(
|
16187
|
-
default:
|
16188
|
-
|
16194
|
+
L(H, null, {
|
16195
|
+
default: F(() => [
|
16196
|
+
s.value && e.message.actions ? (c(), P(D(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
|
+
r("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
|
+
r("div", Jl, [
|
16224
|
+
r("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 = {
|
@@ -16248,20 +16256,20 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16248
16256
|
function t(h) {
|
16249
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), o = I(!1), l = () => {
|
16252
16260
|
}, g = () => {
|
16253
16261
|
i.value = !0, o.value = !0;
|
16254
|
-
},
|
16255
|
-
i.value = !1,
|
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
16267
|
return Oe([n, a], ([h, M]) => {
|
16260
16268
|
h ? M && (M.pause(), M.currentTime = 0) : M && (M.play(), M.currentTime = 0);
|
16261
16269
|
}), (h, M) => (c(), d("div", {
|
16262
|
-
class:
|
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,44 +16279,44 @@ 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
|
+
r("div", nr, [
|
16283
|
+
r("div", {
|
16276
16284
|
class: "video-message__preview-button",
|
16277
|
-
onClick: M[0] || (M[0] = (y) =>
|
16285
|
+
onClick: M[0] || (M[0] = (y) => A.value = !0),
|
16278
16286
|
onMouseenter: g,
|
16279
16287
|
onMouseleave: M[1] || (M[1] = (y) => o.value = !o.value)
|
16280
16288
|
}, [
|
16281
|
-
|
16289
|
+
r("video", {
|
16282
16290
|
ref_key: "previewPlayer",
|
16283
16291
|
ref: a,
|
16284
16292
|
class: "video-message__video",
|
16285
|
-
style:
|
16293
|
+
style: q({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
16286
16294
|
onEnded: p,
|
16287
16295
|
src: e.message.url,
|
16288
16296
|
muted: !0,
|
16289
16297
|
autoplay: ""
|
16290
16298
|
}, null, 44, ar),
|
16291
|
-
L(
|
16292
|
-
default:
|
16299
|
+
L(H, { name: "modal-fade" }, {
|
16300
|
+
default: F(() => [
|
16293
16301
|
o.value ? (c(), d("div", Ar, [
|
16294
16302
|
e.message.views ? (c(), d("div", sr, [
|
16295
|
-
M[4] || (M[4] =
|
16296
|
-
|
16303
|
+
M[4] || (M[4] = r("span", { class: "pi pi-eye" }, null, -1)),
|
16304
|
+
r("p", null, w(e.message.views), 1)
|
16297
16305
|
])) : b("", !0),
|
16298
|
-
|
16299
|
-
t(e.message) === "video-message__right" &&
|
16306
|
+
r("span", ir, w(e.message.time), 1),
|
16307
|
+
t(e.message) === "video-message__right" && D(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
|
-
M[5] || (M[5] =
|
16312
|
+
M[5] || (M[5] = r("span", { class: "pi pi-check" }, null, -1))
|
16305
16313
|
], 2)) : b("", !0)
|
16306
16314
|
])) : b("", !0)
|
16307
16315
|
]),
|
16308
16316
|
_: 1
|
16309
16317
|
}),
|
16310
|
-
L(
|
16311
|
-
default:
|
16318
|
+
L(H, { name: "modal-fade" }, {
|
16319
|
+
default: F(() => [
|
16312
16320
|
o.value ? (c(), d("a", {
|
16313
16321
|
key: 0,
|
16314
16322
|
class: "video-message__download-button",
|
@@ -16316,53 +16324,53 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16316
16324
|
download: "",
|
16317
16325
|
target: "_blank"
|
16318
16326
|
}, M[6] || (M[6] = [
|
16319
|
-
|
16327
|
+
r("span", { class: "pi pi-download" }, null, -1)
|
16320
16328
|
]), 8, lr)) : b("", !0)
|
16321
16329
|
]),
|
16322
16330
|
_: 1
|
16323
16331
|
})
|
16324
16332
|
], 32),
|
16325
|
-
L(
|
16326
|
-
default:
|
16333
|
+
L(H, { name: "modal-fade" }, {
|
16334
|
+
default: F(() => [
|
16327
16335
|
i.value && e.message.actions ? (c(), d("button", {
|
16328
16336
|
key: 0,
|
16329
16337
|
class: "video-message__menu-button",
|
16330
|
-
onClick: M[2] || (M[2] = (y) =>
|
16338
|
+
onClick: M[2] || (M[2] = (y) => s.value = !s.value)
|
16331
16339
|
}, M[7] || (M[7] = [
|
16332
|
-
|
16340
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16333
16341
|
]))) : b("", !0)
|
16334
16342
|
]),
|
16335
16343
|
_: 1
|
16336
16344
|
}),
|
16337
|
-
L(
|
16338
|
-
default:
|
16339
|
-
|
16345
|
+
L(H, { name: "context-menu" }, {
|
16346
|
+
default: F(() => [
|
16347
|
+
s.value && e.message.actions ? (c(), P(D(je), {
|
16340
16348
|
key: 0,
|
16341
16349
|
class: "video-message__context-menu",
|
16342
16350
|
actions: e.message.actions,
|
16343
|
-
onClick:
|
16351
|
+
onClick: l
|
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
|
+
r("p", null, w(e.message.text), 1)
|
16350
16358
|
])) : b("", !0)
|
16351
16359
|
]),
|
16352
|
-
(c(),
|
16353
|
-
L(
|
16354
|
-
default:
|
16355
|
-
|
16356
|
-
|
16357
|
-
|
16360
|
+
(c(), P(Ot, { to: "body" }, [
|
16361
|
+
L(H, { name: "modal-fade" }, {
|
16362
|
+
default: F(() => [
|
16363
|
+
A.value ? (c(), d("div", ur, [
|
16364
|
+
r("div", cr, [
|
16365
|
+
r("button", {
|
16358
16366
|
class: "video-message__modal-close-button",
|
16359
|
-
onClick: M[3] || (M[3] = (y) =>
|
16367
|
+
onClick: M[3] || (M[3] = (y) => A.value = !1)
|
16360
16368
|
}, M[8] || (M[8] = [
|
16361
|
-
|
16362
|
-
|
16369
|
+
r("span", null, [
|
16370
|
+
r("i", { class: "pi pi-times" })
|
16363
16371
|
], -1)
|
16364
16372
|
])),
|
16365
|
-
|
16373
|
+
r("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
|
+
r("div", {
|
16422
|
+
class: x(f(e.message)),
|
16415
16423
|
messageId: e.message.messageId
|
16416
16424
|
}, [
|
16417
16425
|
e.message.avatar ? (c(), d("img", {
|
@@ -16420,24 +16428,24 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16420
16428
|
src: e.message.avatar,
|
16421
16429
|
height: "32",
|
16422
16430
|
width: "32",
|
16423
|
-
style:
|
16431
|
+
style: q({ 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
|
+
r("div", br, [
|
16435
|
+
r("span", {
|
16428
16436
|
class: "call-message__icon pi pi-phone",
|
16429
|
-
style:
|
16437
|
+
style: q({ 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
|
+
r("div", Nr, [
|
16442
|
+
r("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
|
+
r("div", Vr, [
|
16459
|
+
r("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,23 +16473,23 @@ 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
|
+
r("div", Cr, [
|
16469
16477
|
e.message.avatar ? (c(), d("img", {
|
16470
16478
|
key: 0,
|
16471
16479
|
class: "typing-message__avatar",
|
16472
16480
|
src: e.message.avatar,
|
16473
16481
|
height: "32",
|
16474
16482
|
width: "32",
|
16475
|
-
style:
|
16483
|
+
style: q({ 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] = r("div", { class: "typing-message__loader-container" }, [
|
16487
|
+
r("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 (
|
16500
|
-
default:
|
16501
|
-
|
16502
|
-
|
16503
|
-
|
16504
|
-
G(
|
16507
|
+
return (A, s) => (c(), P(H, { name: "modal-fade" }, {
|
16508
|
+
default: F(() => [
|
16509
|
+
r("div", Qr, [
|
16510
|
+
r("div", Rr, [
|
16511
|
+
r("div", Yr, [
|
16512
|
+
G(A.$slots, "default", {}, void 0, !0)
|
16505
16513
|
]),
|
16506
|
-
|
16507
|
-
|
16514
|
+
r("div", qr, [
|
16515
|
+
r("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
|
+
r("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
|
+
l.unmount(), document.body.removeChild(n);
|
16541
|
+
}, s = () => {
|
16542
|
+
A(), t(a.value);
|
16535
16543
|
}, i = (g) => {
|
16536
|
-
const
|
16537
|
-
a.value[
|
16544
|
+
const u = Object.keys(g)[0];
|
16545
|
+
a.value[u] = g[u];
|
16538
16546
|
}, o = 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,22 +16562,22 @@ function Xt({ component: e, attrs: f }) {
|
|
16554
16562
|
}
|
16555
16563
|
);
|
16556
16564
|
}
|
16557
|
-
}),
|
16558
|
-
|
16565
|
+
}), l = ja(o);
|
16566
|
+
l.mount(n);
|
16559
16567
|
});
|
16560
16568
|
}
|
16561
|
-
const
|
16562
|
-
const t = await
|
16569
|
+
const Tu = async (e, f) => {
|
16570
|
+
const t = await en({
|
16563
16571
|
//в component должен быть встроен emit change(key: value)
|
16564
|
-
component: import("./SelectUser2-
|
16572
|
+
component: import("./SelectUser2-JwrGlSc2.js"),
|
16565
16573
|
attrs: {
|
16566
16574
|
title: e,
|
16567
16575
|
users: f
|
16568
16576
|
}
|
16569
16577
|
});
|
16570
16578
|
return console.log("data", t), t;
|
16571
|
-
},
|
16572
|
-
const f = await
|
16579
|
+
}, Vu = async (e) => {
|
16580
|
+
const f = await en({
|
16573
16581
|
//в component должен быть встроен emit change(key: value)
|
16574
16582
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
16575
16583
|
attrs: {
|
@@ -16577,29 +16585,56 @@ const xu = async (e, f) => {
|
|
16577
16585
|
}
|
16578
16586
|
});
|
16579
16587
|
return console.log("data", f), f;
|
16580
|
-
},
|
16588
|
+
}, xu = async (e) => await en({
|
16581
16589
|
//в component должен быть встроен emit change(key: value)
|
16582
16590
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
16583
16591
|
attrs: {
|
16584
16592
|
title: e
|
16585
16593
|
}
|
16586
|
-
}), Pr = ["id"],
|
16594
|
+
}), Pr = ["id"], Su = {
|
16587
16595
|
__name: "BaseContainer",
|
16588
16596
|
props: {
|
16589
16597
|
height: String,
|
16590
|
-
width: String
|
16598
|
+
width: String,
|
16599
|
+
defaultTheme: {
|
16600
|
+
type: String,
|
16601
|
+
default: "green",
|
16602
|
+
required: !1
|
16603
|
+
}
|
16591
16604
|
},
|
16592
16605
|
setup(e) {
|
16593
|
-
const f =
|
16594
|
-
|
16606
|
+
const f = e, t = St();
|
16607
|
+
Ct("chatAppId", t);
|
16608
|
+
const n = [
|
16609
|
+
{
|
16610
|
+
code: "light",
|
16611
|
+
name: "Light"
|
16612
|
+
},
|
16613
|
+
{
|
16614
|
+
code: "dark",
|
16615
|
+
name: "Dark"
|
16616
|
+
},
|
16617
|
+
{
|
16618
|
+
code: "green",
|
16619
|
+
name: "Green"
|
16620
|
+
},
|
16621
|
+
{
|
16622
|
+
code: "diamond",
|
16623
|
+
name: "Diamond"
|
16624
|
+
}
|
16625
|
+
];
|
16626
|
+
return pe(() => {
|
16627
|
+
const a = n.find((A) => A.code === f.defaultTheme).code;
|
16628
|
+
console.log(a), document.getElementById(t).dataset.theme = a;
|
16629
|
+
}), (a, A) => (c(), d("div", {
|
16595
16630
|
class: "base",
|
16596
|
-
id:
|
16631
|
+
id: D(t)
|
16597
16632
|
}, [
|
16598
|
-
|
16633
|
+
r("div", {
|
16599
16634
|
class: "base__container",
|
16600
|
-
style:
|
16635
|
+
style: q({ height: e.height, width: e.width })
|
16601
16636
|
}, [
|
16602
|
-
G(
|
16637
|
+
G(a.$slots, "default")
|
16603
16638
|
], 4)
|
16604
16639
|
], 8, Pr));
|
16605
16640
|
}
|
@@ -16619,22 +16654,44 @@ const xu = async (e, f) => {
|
|
16619
16654
|
required: !0
|
16620
16655
|
},
|
16621
16656
|
height: String,
|
16622
|
-
width: String
|
16657
|
+
width: String,
|
16658
|
+
defaultTheme: {
|
16659
|
+
type: String,
|
16660
|
+
default: "green",
|
16661
|
+
required: !1
|
16662
|
+
}
|
16623
16663
|
},
|
16624
16664
|
emits: ["close-window", "get-size"],
|
16625
16665
|
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
|
-
|
16666
|
+
const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), o = I(0), l = I(0), g = St();
|
16667
|
+
Ct("chatAppId", g);
|
16668
|
+
const u = [
|
16669
|
+
{
|
16670
|
+
code: "light",
|
16671
|
+
name: "Light"
|
16672
|
+
},
|
16673
|
+
{
|
16674
|
+
code: "dark",
|
16675
|
+
name: "Dark"
|
16676
|
+
},
|
16677
|
+
{
|
16678
|
+
code: "green",
|
16679
|
+
name: "Green"
|
16680
|
+
},
|
16681
|
+
{
|
16682
|
+
code: "diamond",
|
16683
|
+
name: "Diamond"
|
16684
|
+
}
|
16685
|
+
], m = (M) => {
|
16686
|
+
s.value = !0, i.value = M.clientX - a.value.offsetLeft, o.value = M.clientY - a.value.offsetTop;
|
16687
|
+
}, p = () => s.value = !1, h = (M) => {
|
16688
|
+
if (s.value) {
|
16689
|
+
const y = M.clientX - i.value, _ = M.clientY - o.value;
|
16690
|
+
n.value.x = y, n.value.y = _;
|
16634
16691
|
}
|
16635
16692
|
};
|
16636
|
-
return
|
16637
|
-
document.addEventListener("mousemove",
|
16693
|
+
return pe(() => {
|
16694
|
+
document.addEventListener("mousemove", h), window.addEventListener("resize", () => {
|
16638
16695
|
n.value.x = Math.max(
|
16639
16696
|
0,
|
16640
16697
|
Math.min(
|
@@ -16648,30 +16705,32 @@ const xu = async (e, f) => {
|
|
16648
16705
|
window.innerHeight - a.value.offsetHeight
|
16649
16706
|
)
|
16650
16707
|
);
|
16651
|
-
}),
|
16652
|
-
|
16708
|
+
}), l.value = a.value.offsetHeight - A.value.offsetHeight;
|
16709
|
+
const M = u.find((y) => y.code === t.defaultTheme).code;
|
16710
|
+
console.log(M), document.getElementById(g).dataset.theme = M;
|
16711
|
+
}), (M, y) => (c(), d("div", {
|
16653
16712
|
ref_key: "element",
|
16654
16713
|
ref: a,
|
16655
16714
|
class: "float-window",
|
16656
|
-
id:
|
16657
|
-
style:
|
16715
|
+
id: D(g),
|
16716
|
+
style: q({
|
16658
16717
|
left: n.value.x + "px",
|
16659
16718
|
top: n.value.y + "px",
|
16660
|
-
userSelect:
|
16719
|
+
userSelect: s.value ? "none" : "auto",
|
16661
16720
|
height: e.height,
|
16662
16721
|
width: e.width,
|
16663
16722
|
display: "flex"
|
16664
16723
|
})
|
16665
16724
|
}, [
|
16666
|
-
|
16667
|
-
|
16725
|
+
r("div", Wr, [
|
16726
|
+
r("div", {
|
16668
16727
|
ref_key: "container",
|
16669
|
-
ref:
|
16728
|
+
ref: A,
|
16670
16729
|
class: "float-window__controls",
|
16671
|
-
style:
|
16672
|
-
onMousedown:
|
16673
|
-
onMouseup:
|
16674
|
-
onMouseleave:
|
16730
|
+
style: q({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
|
16731
|
+
onMousedown: m,
|
16732
|
+
onMouseup: p,
|
16733
|
+
onMouseleave: p
|
16675
16734
|
}, [
|
16676
16735
|
t.avatar ? (c(), d("img", {
|
16677
16736
|
key: 0,
|
@@ -16679,85 +16738,107 @@ const xu = async (e, f) => {
|
|
16679
16738
|
src: t.avatar,
|
16680
16739
|
alt: t.title
|
16681
16740
|
}, null, 8, Kr)) : b("", !0),
|
16682
|
-
|
16683
|
-
|
16741
|
+
r("p", Jr, w(t.title), 1),
|
16742
|
+
r("button", {
|
16684
16743
|
class: "float-window__close-button",
|
16685
|
-
onClick:
|
16686
|
-
},
|
16687
|
-
|
16744
|
+
onClick: y[0] || (y[0] = (_) => M.$emit("close-window"))
|
16745
|
+
}, y[1] || (y[1] = [
|
16746
|
+
r("span", { class: "pi pi-times" }, null, -1)
|
16688
16747
|
]))
|
16689
16748
|
], 36),
|
16690
|
-
|
16749
|
+
r("div", {
|
16691
16750
|
class: "float-window__content",
|
16692
|
-
style:
|
16751
|
+
style: q({ height: l.value + "px" })
|
16693
16752
|
}, [
|
16694
|
-
G(
|
16753
|
+
G(M.$slots, "default", {}, void 0, !0)
|
16695
16754
|
], 4)
|
16696
16755
|
])
|
16697
16756
|
], 12, $r));
|
16698
16757
|
}
|
16699
|
-
},
|
16700
|
-
|
16701
|
-
|
16702
|
-
|
16703
|
-
|
16704
|
-
|
16705
|
-
|
16706
|
-
|
16707
|
-
|
16708
|
-
|
16709
|
-
}
|
16710
|
-
|
16758
|
+
}, zu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-3be75eeb"]]), Zr = { class: "base-layout__container" }, Xr = { class: "base-layout__second-col" }, eu = {
|
16759
|
+
__name: "BaseLayout",
|
16760
|
+
setup(e) {
|
16761
|
+
const f = I(null);
|
16762
|
+
let t = I(!1), n = I(0), a = I(0), A = I(0);
|
16763
|
+
const s = (l) => {
|
16764
|
+
l.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = l.clientX, A.value = l.clientX, document.addEventListener("mousemove", i));
|
16765
|
+
}, i = (l) => {
|
16766
|
+
if (t.value) {
|
16767
|
+
const g = n.value + (l.clientX - A.value);
|
16768
|
+
f.value.style.width = `${Math.max(270, g)}px`;
|
16769
|
+
}
|
16770
|
+
}, o = () => {
|
16771
|
+
t.value = !1, document.removeEventListener("mousemove", i);
|
16772
|
+
};
|
16773
|
+
return pe(() => {
|
16774
|
+
f.value && (f.value.style.width = "400px");
|
16775
|
+
}), (l, g) => (c(), d("div", Zr, [
|
16776
|
+
r("div", {
|
16777
|
+
class: "base-layout__first-col resizable-div",
|
16778
|
+
ref_key: "resizableDiv",
|
16779
|
+
ref: f,
|
16780
|
+
style: q({ userSelect: D(t) ? "none" : "auto" }),
|
16781
|
+
onMousedown: s,
|
16782
|
+
onMouseup: o
|
16783
|
+
}, [
|
16784
|
+
G(l.$slots, "first-col", {}, void 0, !0)
|
16785
|
+
], 36),
|
16786
|
+
r("div", Xr, [
|
16787
|
+
G(l.$slots, "second-col", {}, void 0, !0)
|
16788
|
+
])
|
16789
|
+
]));
|
16790
|
+
}
|
16791
|
+
}, Ou = /* @__PURE__ */ z(eu, [["__scopeId", "data-v-88d3a852"]]), fu = { class: "extend-layout__container" }, tu = { class: "extend-layout__first-col" }, nu = { class: "extend-layout__third-col" }, au = {
|
16711
16792
|
__name: "ExtendedLayout",
|
16712
16793
|
setup(e) {
|
16713
16794
|
const f = I(null);
|
16714
|
-
let t = I(!1), n = I(0), a = I(0),
|
16715
|
-
const
|
16716
|
-
|
16717
|
-
}, i = (
|
16795
|
+
let t = I(!1), n = I(0), a = I(0), A = I(0);
|
16796
|
+
const s = (l) => {
|
16797
|
+
l.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = l.clientX, A.value = l.clientX, document.addEventListener("mousemove", i));
|
16798
|
+
}, i = (l) => {
|
16718
16799
|
if (t.value) {
|
16719
|
-
const g = n.value + (
|
16800
|
+
const g = n.value + (l.clientX - A.value);
|
16720
16801
|
f.value.style.width = `${Math.max(270, g)}px`;
|
16721
16802
|
}
|
16722
16803
|
}, o = () => {
|
16723
16804
|
t.value = !1, document.removeEventListener("mousemove", i);
|
16724
16805
|
};
|
16725
|
-
return
|
16806
|
+
return pe(() => {
|
16726
16807
|
f.value && (f.value.style.width = "350px");
|
16727
|
-
}), (
|
16728
|
-
|
16729
|
-
G(
|
16808
|
+
}), (l, g) => (c(), d("div", fu, [
|
16809
|
+
r("div", tu, [
|
16810
|
+
G(l.$slots, "first-col", {}, void 0, !0)
|
16730
16811
|
]),
|
16731
|
-
|
16812
|
+
r("div", {
|
16732
16813
|
ref_key: "resizableDiv",
|
16733
16814
|
ref: f,
|
16734
16815
|
class: "extend-layout__second-col resizable-div",
|
16735
|
-
style:
|
16736
|
-
onMousedown:
|
16816
|
+
style: q({ userSelect: D(t) ? "none" : "auto" }),
|
16817
|
+
onMousedown: s,
|
16737
16818
|
onMouseup: o
|
16738
16819
|
}, [
|
16739
|
-
G(
|
16820
|
+
G(l.$slots, "second-col", {}, void 0, !0)
|
16740
16821
|
], 36),
|
16741
|
-
|
16742
|
-
G(
|
16822
|
+
r("div", nu, [
|
16823
|
+
G(l.$slots, "third-col", {}, void 0, !0)
|
16743
16824
|
])
|
16744
16825
|
]));
|
16745
16826
|
}
|
16746
|
-
},
|
16747
|
-
function
|
16748
|
-
return c(), d("div",
|
16749
|
-
|
16827
|
+
}, Cu = /* @__PURE__ */ z(au, [["__scopeId", "data-v-7c3b977d"]]), Au = {}, su = { class: "base-layout__container" }, iu = { class: "base-layout__first-col" };
|
16828
|
+
function ou(e, f) {
|
16829
|
+
return c(), d("div", su, [
|
16830
|
+
r("div", iu, [
|
16750
16831
|
G(e.$slots, "default", {}, void 0, !0)
|
16751
16832
|
])
|
16752
16833
|
]);
|
16753
16834
|
}
|
16754
|
-
const
|
16835
|
+
const Lu = /* @__PURE__ */ z(Au, [["render", ou], ["__scopeId", "data-v-e71ea0ed"]]), lu = { class: "chat-wrapper" }, ru = {
|
16755
16836
|
key: 0,
|
16756
16837
|
class: "chat-wrapper__selected-chat"
|
16757
|
-
},
|
16838
|
+
}, uu = {
|
16758
16839
|
key: 1,
|
16759
16840
|
style: { width: "100%" }
|
16760
|
-
},
|
16841
|
+
}, cu = /* @__PURE__ */ K({
|
16761
16842
|
__name: "ChatWrapper",
|
16762
16843
|
props: {
|
16763
16844
|
isOpenChatPanel: {
|
@@ -16770,64 +16851,64 @@ const Bu = /* @__PURE__ */ S(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed
|
|
16770
16851
|
}
|
16771
16852
|
},
|
16772
16853
|
setup(e) {
|
16773
|
-
return (f, t) => (c(), d("div",
|
16774
|
-
e.isSelectedChat ? (c(), d("div",
|
16854
|
+
return (f, t) => (c(), d("div", lu, [
|
16855
|
+
e.isSelectedChat ? (c(), d("div", ru, [
|
16775
16856
|
G(f.$slots, "default", {}, void 0, !0)
|
16776
|
-
])) : (c(), d("div",
|
16777
|
-
|
16857
|
+
])) : (c(), d("div", uu, [
|
16858
|
+
r("p", null, w(D(Se)("layout.ChatWrapper.noSelectedChat")), 1)
|
16778
16859
|
])),
|
16779
16860
|
e.isOpenChatPanel ? (c(), d("div", {
|
16780
16861
|
key: 2,
|
16781
16862
|
class: "chat-wrapper__chat-panel",
|
16782
|
-
style:
|
16863
|
+
style: q({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
|
16783
16864
|
}, [
|
16784
16865
|
G(f.$slots, "chatpanel", {}, void 0, !0)
|
16785
16866
|
], 4)) : b("", !0)
|
16786
16867
|
]));
|
16787
16868
|
}
|
16788
|
-
}),
|
16869
|
+
}), Uu = /* @__PURE__ */ z(cu, [["__scopeId", "data-v-12c6a622"]]);
|
16789
16870
|
export {
|
16790
16871
|
Wl as A,
|
16791
16872
|
Un as B,
|
16792
16873
|
Er as C,
|
16793
16874
|
Xl as D,
|
16794
|
-
|
16875
|
+
Cu as E,
|
16795
16876
|
P1 as F,
|
16796
|
-
|
16797
|
-
|
16877
|
+
vu as G,
|
16878
|
+
Iu as H,
|
16798
16879
|
ol as I,
|
16799
|
-
|
16880
|
+
dn as J,
|
16800
16881
|
Pe as K,
|
16801
16882
|
$e as L,
|
16802
16883
|
zr as S,
|
16803
16884
|
Ol as T,
|
16804
|
-
|
16885
|
+
Mu as U,
|
16805
16886
|
mr as V,
|
16806
|
-
|
16807
|
-
|
16808
|
-
|
16809
|
-
|
16810
|
-
|
16811
|
-
|
16812
|
-
|
16813
|
-
|
16814
|
-
|
16815
|
-
|
16816
|
-
|
16887
|
+
z as _,
|
16888
|
+
On as a,
|
16889
|
+
gu as b,
|
16890
|
+
mu as c,
|
16891
|
+
pu as d,
|
16892
|
+
hu as e,
|
16893
|
+
_u as f,
|
16894
|
+
wu as g,
|
16895
|
+
ku as h,
|
16896
|
+
Nu as i,
|
16897
|
+
Du as j,
|
16817
16898
|
dt as k,
|
16818
16899
|
_s as l,
|
16819
16900
|
Fs as m,
|
16820
|
-
|
16821
|
-
|
16901
|
+
ju as n,
|
16902
|
+
Eu as o,
|
16822
16903
|
je as p,
|
16823
|
-
|
16824
|
-
|
16825
|
-
|
16826
|
-
|
16827
|
-
|
16828
|
-
|
16829
|
-
|
16830
|
-
|
16831
|
-
|
16832
|
-
|
16904
|
+
Vu as q,
|
16905
|
+
xu as r,
|
16906
|
+
Su as s,
|
16907
|
+
zu as t,
|
16908
|
+
Tu as u,
|
16909
|
+
Ou as v,
|
16910
|
+
Lu as w,
|
16911
|
+
Uu as x,
|
16912
|
+
yu as y,
|
16913
|
+
bu as z
|
16833
16914
|
};
|