@mobilon-dev/chotto 0.0.55 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as c, createElementBlock as d, createElementVNode as
|
1
|
+
import { openBlock as c, createElementBlock as d, createElementVNode as l, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as ye, watch as Oe, nextTick as vt, unref as j, withDirectives as ke, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as q, withCtx as H, createBlock as F, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as P, useId as St, onMounted as Ne, onUnmounted as zt, computed as U, Teleport as Ot, toRef as va, vModelRadio as Ia, getCurrentInstance as _a, toRaw as Cn, onBeforeUnmount as wa, provide as Ct, reactive as ka, readonly as Na, vShow as Df, resolveComponent as If, h as un, defineAsyncComponent as Da, createApp as ja } from "vue";
|
2
2
|
const z = (e, f) => {
|
3
3
|
const t = e.__vccOpts || e;
|
4
4
|
for (const [n, a] of f)
|
@@ -25,7 +25,7 @@ const z = (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
|
+
l("div", Ta, [
|
29
29
|
t.chat.avatar ? (c(), d("img", {
|
30
30
|
key: 0,
|
31
31
|
src: t.chat.avatar,
|
@@ -33,50 +33,50 @@ const z = (e, f) => {
|
|
33
33
|
height: "48"
|
34
34
|
}, null, 8, Va)) : (c(), d("span", xa))
|
35
35
|
]),
|
36
|
-
|
37
|
-
|
36
|
+
l("div", Sa, [
|
37
|
+
l("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
|
+
l("div", Ca, [
|
41
41
|
G(n.$slots, "actions", {}, void 0, !0)
|
42
42
|
])
|
43
43
|
])) : b("", !0);
|
44
44
|
}
|
45
|
-
},
|
45
|
+
}, pu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-26bb16be"]]), he = I([]), At = (e) => {
|
46
46
|
const f = I(0);
|
47
|
-
let t =
|
48
|
-
t != null ? f.value =
|
47
|
+
let t = he.value.find(({ id: o }) => o == e);
|
48
|
+
t != null ? f.value = he.value.indexOf(t) : (he.value.push({
|
49
49
|
id: e,
|
50
50
|
text: "",
|
51
51
|
file: void 0
|
52
|
-
}), f.value =
|
52
|
+
}), f.value = he.value.length - 1);
|
53
53
|
const n = () => {
|
54
|
-
|
54
|
+
he.value[f.value] = {
|
55
55
|
id: i().id,
|
56
56
|
text: "",
|
57
57
|
file: void 0
|
58
58
|
};
|
59
59
|
}, a = (o) => {
|
60
|
-
|
60
|
+
he.value[f.value] = {
|
61
61
|
id: i().id,
|
62
62
|
text: o,
|
63
63
|
file: i().file
|
64
64
|
};
|
65
65
|
}, A = (o) => {
|
66
|
-
|
66
|
+
he.value[f.value] = {
|
67
67
|
id: i().id,
|
68
68
|
text: i().text,
|
69
69
|
file: o
|
70
70
|
};
|
71
71
|
}, s = () => {
|
72
|
-
|
72
|
+
he.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 he.value[f.value];
|
80
80
|
}
|
81
81
|
return { getMessage: i, resetMessage: n, setMessageFile: A, resetMessageFile: s, setMessageText: a };
|
82
82
|
}, Ua = {
|
@@ -129,7 +129,7 @@ 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 = ye("chatAppId"), { resetMessage: a, getMessage: A, setMessageText: s } = At(n), i = I(null);
|
133
133
|
Oe(
|
134
134
|
() => A().text,
|
135
135
|
() => {
|
@@ -140,7 +140,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
140
140
|
);
|
141
141
|
const o = (u) => {
|
142
142
|
t("typing", u.target.value);
|
143
|
-
},
|
143
|
+
}, r = (u) => {
|
144
144
|
if (u.ctrlKey) {
|
145
145
|
let m = u.target.selectionStart;
|
146
146
|
u.target.setRangeText(`
|
@@ -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
|
-
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(),
|
161
|
+
u.value.file ? (p.type = "message." + u.value.file.type, p.url = u.value.file.url, p.filename = u.value.file.name, p.size = u.value.file.size, p.text = (m = u == null ? void 0 : u.value) == null ? void 0 : m.text.trim()) : (p.type = "message.text", p.text = u.value.text.trim()), t("send", p), a(), j(i).focus();
|
162
162
|
}
|
163
163
|
};
|
164
164
|
return (u, m) => (c(), d("div", Ya, [
|
165
|
-
|
166
|
-
|
167
|
-
id: "chat-input-first-line-" +
|
165
|
+
l("div", qa, [
|
166
|
+
l("div", {
|
167
|
+
id: "chat-input-first-line-" + j(n),
|
168
168
|
class: "chat-input__first-line"
|
169
169
|
}, null, 8, Ha),
|
170
|
-
|
171
|
-
|
170
|
+
l("div", Fa, [
|
171
|
+
ke(l("textarea", {
|
172
172
|
ref_key: "refInput",
|
173
173
|
ref: i,
|
174
|
-
"onUpdate:modelValue": m[0] || (m[0] = (p) =>
|
174
|
+
"onUpdate:modelValue": m[0] || (m[0] = (p) => j(A)().text = p),
|
175
175
|
class: "chat-input__input",
|
176
|
-
placeholder:
|
177
|
-
onKeydown: Ma(
|
176
|
+
placeholder: j(Se)("component.ChatInput.InputPlaceholder"),
|
177
|
+
onKeydown: Ma(r, ["enter"]),
|
178
178
|
onInput: o
|
179
179
|
}, null, 40, Pa), [
|
180
|
-
[xt,
|
180
|
+
[xt, j(A)().text]
|
181
181
|
]),
|
182
|
-
|
183
|
-
class: x(["chat-input__button-send", { "chat-input__button-send-disabled":
|
182
|
+
l("button", {
|
183
|
+
class: x(["chat-input__button-send", { "chat-input__button-send-disabled": j(A)().text == "" && !j(A)().file }]),
|
184
184
|
onClick: g
|
185
185
|
}, m[1] || (m[1] = [
|
186
|
-
|
186
|
+
l("span", { class: "pi pi-send" }, null, -1)
|
187
187
|
]), 2)
|
188
188
|
]),
|
189
|
-
|
189
|
+
l("div", $a, [
|
190
190
|
G(u.$slots, "buttons", {}, void 0, !0)
|
191
191
|
])
|
192
192
|
])
|
193
193
|
]));
|
194
194
|
}
|
195
|
-
},
|
195
|
+
}, hu = /* @__PURE__ */ z(Wa, [["__scopeId", "data-v-23fafc19"]]), Ka = { class: "chat-list" }, Ja = { class: "chat-list__title" }, Ga = {
|
196
196
|
key: 0,
|
197
197
|
class: "pi pi-minus"
|
198
198
|
}, Za = {
|
@@ -231,15 +231,15 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
231
231
|
if (u.countUnread > m.countUnread) return -1;
|
232
232
|
if (u.countUnread < m.countUnread) return 1;
|
233
233
|
if (u.countUnread == m.countUnread) return 0;
|
234
|
-
}).filter((u) => u.name.includes(t.value) || u.metadata.includes(t.value)),
|
234
|
+
}).filter((u) => u.name.includes(t.value) || u.metadata.includes(t.value)), r = (u) => {
|
235
235
|
t.value = u;
|
236
236
|
}, g = (u) => s("action", u);
|
237
237
|
return (u, m) => (c(), d("div", Ka, [
|
238
|
-
|
238
|
+
l("div", {
|
239
239
|
class: "chat-list__title-container",
|
240
240
|
onMouseleave: a
|
241
241
|
}, [
|
242
|
-
|
242
|
+
l("h2", Ja, w(j(Se)("component.ChatList.Title")), 1),
|
243
243
|
e.actions.length ? (c(), d("button", {
|
244
244
|
key: 0,
|
245
245
|
class: "chat-list__button-actions",
|
@@ -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(q, null, {
|
251
|
+
default: H(() => [
|
252
|
+
n.value && e.actions ? (c(), F(j(je), {
|
253
253
|
key: 0,
|
254
254
|
actions: e.actions,
|
255
255
|
class: "chat-list__context-menu",
|
@@ -259,14 +259,14 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
259
259
|
_: 1
|
260
260
|
})
|
261
261
|
], 32),
|
262
|
-
e.filterEnabled ? (c(),
|
262
|
+
e.filterEnabled ? (c(), F(j(_s), {
|
263
263
|
key: 0,
|
264
264
|
class: "chat-list__filter",
|
265
|
-
onUpdate:
|
265
|
+
onUpdate: r
|
266
266
|
})) : b("", !0),
|
267
|
-
|
268
|
-
|
269
|
-
(c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(),
|
267
|
+
l("div", Xa, [
|
268
|
+
l("div", eA, [
|
269
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(), F(j(dt), {
|
270
270
|
key: p.chatId,
|
271
271
|
class: "chat-list__item",
|
272
272
|
chat: p,
|
@@ -274,8 +274,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
274
274
|
onAction: g
|
275
275
|
}, null, 8, ["chat"]))), 128))
|
276
276
|
]),
|
277
|
-
|
278
|
-
(c(!0), d($, null, Z(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(),
|
277
|
+
l("div", fA, [
|
278
|
+
(c(!0), d($, null, Z(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), F(j(dt), {
|
279
279
|
key: p.chatId,
|
280
280
|
class: "chat-list__item",
|
281
281
|
chat: p,
|
@@ -283,8 +283,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
283
283
|
onAction: g
|
284
284
|
}, null, 8, ["chat"]))), 128))
|
285
285
|
]),
|
286
|
-
|
287
|
-
(c(!0), d($, null, Z(o().filter((p) => p.isFixedBottom), (p) => (c(),
|
286
|
+
l("div", tA, [
|
287
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedBottom), (p) => (c(), F(j(dt), {
|
288
288
|
key: p.chatId,
|
289
289
|
class: "chat-list__item",
|
290
290
|
chat: p,
|
@@ -295,7 +295,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
295
295
|
])
|
296
296
|
]));
|
297
297
|
}
|
298
|
-
},
|
298
|
+
}, Mu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-ba9fb868"]]), aA = { class: "message-feed__container" }, AA = {
|
299
299
|
key: 0,
|
300
300
|
class: "message-feed__unread-amount"
|
301
301
|
}, sA = /* @__PURE__ */ K({
|
@@ -324,7 +324,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
324
324
|
emits: ["messageAction", "loadMore"],
|
325
325
|
setup(e, { emit: f }) {
|
326
326
|
const t = I(), n = I(!1), a = e, A = f, s = () => {
|
327
|
-
const u =
|
327
|
+
const u = j(t);
|
328
328
|
u.scrollHeight - u.scrollTop - u.clientHeight < 100 ? n.value = !1 : n.value = !0, u.scrollTop === 0 && A("loadMore");
|
329
329
|
}, i = (u) => ({
|
330
330
|
"message.text": Ol,
|
@@ -339,13 +339,13 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
339
339
|
})[u];
|
340
340
|
function o() {
|
341
341
|
a.isScrollToBottomOnUpdateObjectsEnabled && vt(function() {
|
342
|
-
const u =
|
342
|
+
const u = j(t);
|
343
343
|
u.scrollTop = u.scrollHeight;
|
344
344
|
});
|
345
345
|
}
|
346
|
-
function
|
346
|
+
function r() {
|
347
347
|
vt(function() {
|
348
|
-
const u =
|
348
|
+
const u = j(t);
|
349
349
|
u.scrollTop = u.scrollHeight;
|
350
350
|
});
|
351
351
|
}
|
@@ -359,37 +359,37 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
359
359
|
class: "message-feed",
|
360
360
|
onScroll: s
|
361
361
|
}, [
|
362
|
-
|
363
|
-
(c(!0), d($, null, Z(e.objects, (p) => (c(),
|
362
|
+
l("div", aA, [
|
363
|
+
(c(!0), d($, null, Z(e.objects, (p) => (c(), F(ba(i(p.type)), {
|
364
364
|
key: p.messageId,
|
365
365
|
class: "message-feed__message",
|
366
366
|
message: p,
|
367
367
|
onAction: g
|
368
368
|
}, null, 40, ["message"]))), 128))
|
369
369
|
]),
|
370
|
-
e.typing ? (c(),
|
370
|
+
e.typing ? (c(), F(j(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(q, null, {
|
378
|
+
default: H(() => [
|
379
379
|
n.value ? (c(), d("button", {
|
380
380
|
key: 0,
|
381
381
|
class: "message-feed__button-down",
|
382
|
-
onClick:
|
382
|
+
onClick: r
|
383
383
|
}, [
|
384
384
|
e.buttonParams ? (c(), d("div", AA, w(e.buttonParams.unreadAmount), 1)) : b("", !0),
|
385
|
-
m[0] || (m[0] =
|
385
|
+
m[0] || (m[0] = l("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
|
+
}), yu = /* @__PURE__ */ z(sA, [["__scopeId", "data-v-4172cced"]]), iA = { class: "profile" }, oA = {
|
393
393
|
key: 0,
|
394
394
|
class: "profile__container"
|
395
395
|
}, lA = {
|
@@ -407,23 +407,23 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
407
407
|
return (f, t) => (c(), d("div", iA, [
|
408
408
|
e.user ? (c(), d("div", oA, [
|
409
409
|
e.user.avatar ? (c(), d("div", lA, [
|
410
|
-
|
410
|
+
l("span", {
|
411
411
|
class: "profile__status",
|
412
|
-
style:
|
412
|
+
style: P({ backgroundColor: e.user.status })
|
413
413
|
}, null, 4),
|
414
|
-
|
414
|
+
l("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
|
+
l("h2", uA, w(e.user.name), 1),
|
421
|
+
l("p", cA, w(e.user.email), 1),
|
422
|
+
l("p", dA, w(e.user.phone), 1)
|
423
423
|
])) : b("", !0)
|
424
424
|
]));
|
425
425
|
}
|
426
|
-
},
|
426
|
+
}, bu = /* @__PURE__ */ z(gA, [["__scopeId", "data-v-04a5ab7d"]]), mA = ["id"], pA = {
|
427
427
|
__name: "ButtonContextMenu",
|
428
428
|
props: {
|
429
429
|
actions: {
|
@@ -462,14 +462,14 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
462
462
|
A.value.$el.style.display = "none", a("click", m);
|
463
463
|
}, o = () => {
|
464
464
|
t.disabled || (t.mode == "click" && (A.value.$el.style.display = "inherit"), a("buttonClick"));
|
465
|
-
},
|
465
|
+
}, r = () => {
|
466
466
|
t.mode == "hover" && !t.disabled && (A.value.$el.style.display = "inherit");
|
467
467
|
}, g = () => {
|
468
468
|
t.mode == "hover" && (A.value.$el.style.display = "none");
|
469
469
|
}, u = (m) => {
|
470
470
|
t.mode == "click" && s.value && !s.value.contains(m.target) && (A.value.$el.style.display = "none");
|
471
471
|
};
|
472
|
-
return
|
472
|
+
return Ne(() => {
|
473
473
|
const m = {
|
474
474
|
top: {
|
475
475
|
h: -1,
|
@@ -493,41 +493,41 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
493
493
|
}), zt(() => {
|
494
494
|
document.removeEventListener("click", u);
|
495
495
|
}), (m, p) => (c(), d("div", {
|
496
|
-
id: "container-" +
|
496
|
+
id: "container-" + j(n),
|
497
497
|
ref_key: "actionScope",
|
498
498
|
ref: s,
|
499
499
|
style: { position: "relative", width: "fit-content" }
|
500
500
|
}, [
|
501
|
-
|
501
|
+
l("div", {
|
502
502
|
class: x(["button", {
|
503
503
|
"disabled-button": e.disabled
|
504
504
|
}]),
|
505
505
|
onClick: o,
|
506
|
-
onMouseover:
|
506
|
+
onMouseover: r,
|
507
507
|
onMouseout: g
|
508
508
|
}, [
|
509
|
-
|
509
|
+
l("span", {
|
510
510
|
class: x(e.buttonClass)
|
511
511
|
}, w(e.buttonTitle), 3)
|
512
512
|
], 34),
|
513
|
-
L(
|
514
|
-
id: "context-menu-" +
|
513
|
+
L(j(je), {
|
514
|
+
id: "context-menu-" + j(n),
|
515
515
|
ref_key: "contextMenu",
|
516
516
|
ref: A,
|
517
517
|
actions: e.actions,
|
518
|
-
onMouseover:
|
518
|
+
onMouseover: r,
|
519
519
|
onMouseout: g,
|
520
520
|
onClick: i
|
521
521
|
}, null, 8, ["id", "actions"])
|
522
522
|
], 8, mA));
|
523
523
|
}
|
524
524
|
}, Un = /* @__PURE__ */ z(pA, [["__scopeId", "data-v-febe2c45"]]);
|
525
|
-
function
|
525
|
+
function vu(e) {
|
526
526
|
if (!e || e === "") return;
|
527
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
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 ? "секунда" : "секунды"} назад` : "Только что";
|
529
529
|
}
|
530
|
-
const
|
530
|
+
const Iu = (e) => {
|
531
531
|
const f = [];
|
532
532
|
let t = null;
|
533
533
|
for (let n = 0; n < e.length; n++) {
|
@@ -541,7 +541,7 @@ const bu = (e) => {
|
|
541
541
|
}), t = A), f.push(a);
|
542
542
|
}
|
543
543
|
return f;
|
544
|
-
},
|
544
|
+
}, _u = async () => {
|
545
545
|
try {
|
546
546
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
547
547
|
const f = new Audio();
|
@@ -550,7 +550,7 @@ const bu = (e) => {
|
|
550
550
|
} catch {
|
551
551
|
console.log("no audio permissions");
|
552
552
|
}
|
553
|
-
},
|
553
|
+
}, wu = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0), dn = (e) => {
|
554
554
|
let f = "file";
|
555
555
|
return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
|
556
556
|
}, Pe = ["read", "received", "sent"], $e = (e) => {
|
@@ -597,36 +597,36 @@ const bu = (e) => {
|
|
597
597
|
n("reset");
|
598
598
|
}
|
599
599
|
return (A, s) => (c(), d("div", hA, [
|
600
|
-
|
600
|
+
l("div", MA, [
|
601
601
|
t.isImage ? (c(), d("div", yA, [
|
602
|
-
|
602
|
+
l("img", {
|
603
603
|
src: e.previewUrl,
|
604
604
|
alt: "Image Preview",
|
605
605
|
class: "preview__image"
|
606
606
|
}, null, 8, bA)
|
607
607
|
])) : t.isVideo ? (c(), d("div", vA, [
|
608
|
-
|
608
|
+
l("video", {
|
609
609
|
src: e.previewUrl,
|
610
610
|
class: "preview__video"
|
611
611
|
}, null, 8, IA)
|
612
612
|
])) : t.isAudio ? (c(), d("div", _A, s[0] || (s[0] = [
|
613
|
-
|
613
|
+
l("span", {
|
614
614
|
class: "pi pi-headphones",
|
615
615
|
style: { "font-size": "2.5rem" }
|
616
616
|
}, null, -1)
|
617
617
|
]))) : (c(), d("div", wA, s[1] || (s[1] = [
|
618
|
-
|
618
|
+
l("span", {
|
619
619
|
class: "pi pi-file",
|
620
620
|
style: { "font-size": "2.5rem" }
|
621
621
|
}, null, -1)
|
622
622
|
])))
|
623
623
|
]),
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
624
|
+
l("div", kA, [
|
625
|
+
l("div", NA, [
|
626
|
+
l("span", DA, w(e.fileName), 1),
|
627
|
+
l("span", jA, w(e.fileSize), 1)
|
628
628
|
]),
|
629
|
-
|
629
|
+
l("span", {
|
630
630
|
class: "pi pi-times preview__reset",
|
631
631
|
style: { "font-size": "1rem" },
|
632
632
|
onClick: a
|
@@ -647,7 +647,7 @@ const bu = (e) => {
|
|
647
647
|
},
|
648
648
|
emits: ["fileUploaded"],
|
649
649
|
setup(e, { emit: f }) {
|
650
|
-
const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), o = I(!1),
|
650
|
+
const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), o = I(!1), r = I(null), g = I(""), u = ye("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
|
651
651
|
{
|
652
652
|
action: "audio/*",
|
653
653
|
title: "Аудио",
|
@@ -671,8 +671,8 @@ const bu = (e) => {
|
|
671
671
|
], y = U(() => !h().file), _ = () => {
|
672
672
|
n.value = null, p(), A.value = "", a.value = "";
|
673
673
|
}, k = (T) => {
|
674
|
-
_(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (
|
675
|
-
},
|
674
|
+
_(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (D(), N());
|
675
|
+
}, D = () => {
|
676
676
|
const T = n.value, O = dn(T.type);
|
677
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) {
|
678
678
|
const R = new FileReader();
|
@@ -709,17 +709,17 @@ const bu = (e) => {
|
|
709
709
|
console.error("Ошибка при загрузке файла:", C), a.value = "error";
|
710
710
|
}
|
711
711
|
}, E = (T) => {
|
712
|
-
|
712
|
+
r.value && y && (r.value.accept = T.action, r.value.click());
|
713
713
|
}, S = () => {
|
714
|
-
|
714
|
+
r.value && y && t.state == "active" && r.value.click();
|
715
715
|
};
|
716
716
|
return (T, O) => (c(), d($, null, [
|
717
|
-
|
717
|
+
l("div", VA, [
|
718
718
|
a.value === "uploading" ? (c(), d("div", xA, O[0] || (O[0] = [
|
719
|
-
|
719
|
+
l("p", null, "Загрузка файла...", -1)
|
720
720
|
]))) : a.value === "error" ? (c(), d("div", SA, O[1] || (O[1] = [
|
721
|
-
|
722
|
-
]))) : (c(),
|
721
|
+
l("p", null, "Ошибка при загрузке файла.", -1)
|
722
|
+
]))) : (c(), F(Un, {
|
723
723
|
key: 2,
|
724
724
|
actions: M,
|
725
725
|
mode: "hover",
|
@@ -729,31 +729,31 @@ const bu = (e) => {
|
|
729
729
|
onClick: E,
|
730
730
|
onButtonClick: S
|
731
731
|
}, null, 8, ["disabled"])),
|
732
|
-
|
732
|
+
l("input", {
|
733
733
|
ref_key: "fileInput",
|
734
|
-
ref:
|
734
|
+
ref: r,
|
735
735
|
style: { display: "none" },
|
736
736
|
type: "file",
|
737
737
|
onChange: k
|
738
738
|
}, null, 544)
|
739
739
|
]),
|
740
|
-
|
740
|
+
j(h)().file ? (c(), F(Ot, {
|
741
741
|
key: 0,
|
742
|
-
to: "#chat-input-first-line-" +
|
742
|
+
to: "#chat-input-first-line-" + j(u)
|
743
743
|
}, [
|
744
744
|
L(TA, {
|
745
745
|
"preview-url": A.value,
|
746
746
|
"is-image": s.value,
|
747
747
|
"is-video": i.value,
|
748
748
|
"is-audio": o.value,
|
749
|
-
"file-name":
|
749
|
+
"file-name": j(h)().file.name,
|
750
750
|
"file-size": g.value,
|
751
751
|
onReset: _
|
752
752
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
|
753
753
|
], 8, ["to"])) : b("", !0)
|
754
754
|
], 64));
|
755
755
|
}
|
756
|
-
},
|
756
|
+
}, ku = /* @__PURE__ */ z(zA, [["__scopeId", "data-v-1cdabe09"]]), OA = { key: 0 }, CA = ["value", "selected"], LA = {
|
757
757
|
__name: "ThemeMode",
|
758
758
|
props: {
|
759
759
|
themes: {
|
@@ -763,7 +763,7 @@ const bu = (e) => {
|
|
763
763
|
show: Boolean
|
764
764
|
},
|
765
765
|
setup(e) {
|
766
|
-
const f = e, t =
|
766
|
+
const f = e, t = ye("chatAppId"), n = () => {
|
767
767
|
const s = f.themes.find((i) => i.default === !0);
|
768
768
|
return s ? s.code : f.themes[0].code;
|
769
769
|
}, a = (s) => {
|
@@ -772,22 +772,22 @@ const bu = (e) => {
|
|
772
772
|
}, A = (s) => {
|
773
773
|
document.getElementById(t).dataset.theme = s;
|
774
774
|
};
|
775
|
-
return
|
775
|
+
return Ne(() => {
|
776
776
|
const s = n();
|
777
777
|
A(s);
|
778
778
|
}), (s, i) => e.show ? (c(), d("div", OA, [
|
779
|
-
|
779
|
+
l("select", {
|
780
780
|
onChange: i[0] || (i[0] = (o) => a(o))
|
781
781
|
}, [
|
782
|
-
(c(!0), d($, null, Z(f.themes, (o,
|
783
|
-
key:
|
782
|
+
(c(!0), d($, null, Z(f.themes, (o, r) => (c(), d("option", {
|
783
|
+
key: r,
|
784
784
|
value: o.code,
|
785
785
|
selected: o.default === !0
|
786
786
|
}, w(o.name), 9, CA))), 128))
|
787
787
|
], 32)
|
788
788
|
])) : b("", !0);
|
789
789
|
}
|
790
|
-
},
|
790
|
+
}, Nu = /* @__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 = {
|
791
791
|
__name: "SideBar",
|
792
792
|
props: {
|
793
793
|
sidebarItems: {
|
@@ -799,54 +799,54 @@ const bu = (e) => {
|
|
799
799
|
emits: ["selectItem"],
|
800
800
|
setup(e, { emit: f }) {
|
801
801
|
const n = va(e, "sidebarItems"), a = f, A = (i) => {
|
802
|
-
const o = n.value.find((
|
802
|
+
const o = n.value.find((r) => r.itemId === i);
|
803
803
|
a("selectItem", o);
|
804
804
|
}, s = (i) => {
|
805
805
|
const o = i.split(" ");
|
806
806
|
return o.length > 2 ? o.slice(0, 2).join(" ") : i;
|
807
807
|
};
|
808
808
|
return (i, o) => (c(), d("div", UA, [
|
809
|
-
|
810
|
-
|
811
|
-
(c(!0), d($, null, Z(n.value.filter((
|
809
|
+
l("div", BA, [
|
810
|
+
l("ul", QA, [
|
811
|
+
(c(!0), d($, null, Z(n.value.filter((r) => !r.isFixedBottom), (r, g) => (c(), d("li", {
|
812
812
|
key: g,
|
813
813
|
class: "sidebar__item",
|
814
|
-
onClick: (u) => A(
|
814
|
+
onClick: (u) => A(r.itemId)
|
815
815
|
}, [
|
816
|
-
|
817
|
-
src:
|
818
|
-
alt:
|
819
|
-
class: x(["sidebar__image", { "sidebar__image--active":
|
816
|
+
l("img", {
|
817
|
+
src: r.icon,
|
818
|
+
alt: r.name,
|
819
|
+
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
820
820
|
}, null, 10, YA),
|
821
|
-
|
821
|
+
r.notificationCount ? (c(), d("span", {
|
822
822
|
key: 0,
|
823
|
-
style:
|
824
|
-
}, w(
|
825
|
-
|
823
|
+
style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
|
824
|
+
}, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
|
825
|
+
r.name ? (c(), d("p", qA, w(s(r.name)), 1)) : b("", !0)
|
826
826
|
], 8, RA))), 128))
|
827
827
|
]),
|
828
|
-
|
829
|
-
(c(!0), d($, null, Z(n.value.filter((
|
828
|
+
l("ul", HA, [
|
829
|
+
(c(!0), d($, null, Z(n.value.filter((r) => r.isFixedBottom), (r, g) => (c(), d("li", {
|
830
830
|
key: g,
|
831
831
|
class: "sidebar__item",
|
832
|
-
onClick: (u) => A(
|
832
|
+
onClick: (u) => A(r.itemId)
|
833
833
|
}, [
|
834
|
-
|
835
|
-
src:
|
836
|
-
alt:
|
837
|
-
class: x(["sidebar__image", { "sidebar__image--active":
|
834
|
+
l("img", {
|
835
|
+
src: r.icon,
|
836
|
+
alt: r.name,
|
837
|
+
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
838
838
|
}, null, 10, PA),
|
839
|
-
|
839
|
+
r.notificationCount ? (c(), d("span", {
|
840
840
|
key: 0,
|
841
|
-
style:
|
842
|
-
}, w(
|
843
|
-
|
841
|
+
style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
|
842
|
+
}, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
|
843
|
+
r.name ? (c(), d("p", $A, w(s(r.name)), 1)) : b("", !0)
|
844
844
|
], 8, FA))), 128))
|
845
845
|
])
|
846
846
|
])
|
847
847
|
]));
|
848
848
|
}
|
849
|
-
},
|
849
|
+
}, Du = /* @__PURE__ */ z(WA, [["__scopeId", "data-v-5e22516c"]]), KA = { class: "chat-panel" }, JA = { class: "chat-panel__title-container" }, GA = {
|
850
850
|
key: 0,
|
851
851
|
class: "chat-panel__title"
|
852
852
|
}, ZA = {
|
@@ -861,21 +861,21 @@ const bu = (e) => {
|
|
861
861
|
emits: ["close-panel"],
|
862
862
|
setup(e, { emit: f }) {
|
863
863
|
return (t, n) => (c(), d("div", KA, [
|
864
|
-
|
864
|
+
l("div", JA, [
|
865
865
|
e.title ? (c(), d("p", GA, w(e.title), 1)) : b("", !0),
|
866
|
-
|
866
|
+
l("button", {
|
867
867
|
class: "chat-panel__button-close",
|
868
868
|
onClick: n[0] || (n[0] = (a) => t.$emit("close-panel"))
|
869
869
|
}, n[1] || (n[1] = [
|
870
|
-
|
870
|
+
l("span", { class: "pi pi-times" }, null, -1)
|
871
871
|
]))
|
872
872
|
]),
|
873
|
-
|
873
|
+
l("div", null, [
|
874
874
|
G(t.$slots, "content", {}, void 0, !0)
|
875
875
|
])
|
876
876
|
]));
|
877
877
|
}
|
878
|
-
},
|
878
|
+
}, ju = /* @__PURE__ */ z(ZA, [["__scopeId", "data-v-1f6ac199"]]), XA = { class: "channels" }, es = {
|
879
879
|
key: 0,
|
880
880
|
class: "channels__selected"
|
881
881
|
}, fs = {
|
@@ -908,16 +908,16 @@ const bu = (e) => {
|
|
908
908
|
A.value = i, n("selectChannel", A.value);
|
909
909
|
};
|
910
910
|
return (i, o) => (c(), d("div", XA, [
|
911
|
-
|
911
|
+
l("div", {
|
912
912
|
class: x(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
913
913
|
}, [
|
914
914
|
A.value ? (c(), d("div", es, [
|
915
915
|
A.value.icon ? (c(), d("span", fs, [
|
916
|
-
|
916
|
+
l("img", {
|
917
917
|
src: A.value.icon
|
918
918
|
}, null, 8, ts)
|
919
919
|
])) : b("", !0),
|
920
|
-
|
920
|
+
l("span", ns, w(A.value.title), 1)
|
921
921
|
])) : (c(), d("span", as, "Канал не выбран")),
|
922
922
|
L(Un, {
|
923
923
|
actions: e.channels,
|
@@ -930,7 +930,7 @@ const bu = (e) => {
|
|
930
930
|
], 2)
|
931
931
|
]));
|
932
932
|
}
|
933
|
-
},
|
933
|
+
}, Eu = /* @__PURE__ */ z(As, [["__scopeId", "data-v-018ec6fe"]]), ss = { class: "chat-item__avatar-container" }, is = ["src"], os = {
|
934
934
|
key: 1,
|
935
935
|
class: "pi pi-user"
|
936
936
|
}, ls = { class: "chat-item__info-container" }, rs = { class: "chat-item__name" }, us = {
|
@@ -965,7 +965,7 @@ const bu = (e) => {
|
|
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), r = () => {
|
969
969
|
o.value = !0;
|
970
970
|
}, g = () => {
|
971
971
|
o.value = !1, i.value = !1;
|
@@ -984,15 +984,15 @@ const bu = (e) => {
|
|
984
984
|
class: x(A()),
|
985
985
|
onClick: a
|
986
986
|
}, [
|
987
|
-
|
987
|
+
l("div", {
|
988
988
|
class: "chat-item__container",
|
989
|
-
onMouseenter:
|
989
|
+
onMouseenter: r,
|
990
990
|
onMouseleave: g
|
991
991
|
}, [
|
992
|
-
|
993
|
-
|
992
|
+
l("div", ss, [
|
993
|
+
l("span", {
|
994
994
|
class: "chat-item__status-user",
|
995
|
-
style:
|
995
|
+
style: P({ 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 bu = (e) => {
|
|
1001
1001
|
width: "48"
|
1002
1002
|
}, null, 8, is)) : (c(), d("span", os))
|
1003
1003
|
]),
|
1004
|
-
|
1005
|
-
|
1004
|
+
l("div", ls, [
|
1005
|
+
l("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
|
+
l("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,22 +1013,22 @@ const bu = (e) => {
|
|
1013
1013
|
class: "chat-item__menu-button",
|
1014
1014
|
onClick: _[0] || (_[0] = (k) => i.value = !i.value)
|
1015
1015
|
}, _[1] || (_[1] = [
|
1016
|
-
|
1016
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1017
1017
|
]))) : b("", !0),
|
1018
1018
|
e.chat.countUnread < 1 ? (c(), d("div", ms, [
|
1019
|
-
|
1019
|
+
j(Pe).includes(e.chat["lastMessage.status"]) ? (c(), d("div", {
|
1020
1020
|
key: 0,
|
1021
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] = l("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(q, { name: "menu" }, {
|
1030
|
+
default: H(() => [
|
1031
|
+
i.value && e.chat.actions ? (c(), F(j(je), {
|
1032
1032
|
key: 0,
|
1033
1033
|
class: "chat-item__context-menu",
|
1034
1034
|
actions: e.chat.actions,
|
@@ -1045,17 +1045,17 @@ const bu = (e) => {
|
|
1045
1045
|
emits: ["update"],
|
1046
1046
|
setup(e, { emit: f }) {
|
1047
1047
|
const t = I(""), n = f, a = () => {
|
1048
|
-
const A =
|
1048
|
+
const A = j(t);
|
1049
1049
|
n("update", A.value);
|
1050
1050
|
};
|
1051
1051
|
return (A, s) => (c(), d("div", ys, [
|
1052
|
-
|
1053
|
-
|
1052
|
+
l("div", bs, [
|
1053
|
+
l("input", {
|
1054
1054
|
ref_key: "refInput",
|
1055
1055
|
ref: t,
|
1056
1056
|
class: "chat-filter__input",
|
1057
1057
|
type: "text",
|
1058
|
-
placeholder:
|
1058
|
+
placeholder: j(Se)("component.ChatFilter.InputPlaceholder"),
|
1059
1059
|
onInput: a
|
1060
1060
|
}, null, 40, vs)
|
1061
1061
|
])
|
@@ -1089,38 +1089,38 @@ const bu = (e) => {
|
|
1089
1089
|
},
|
1090
1090
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
1091
1091
|
setup(e, { emit: f }) {
|
1092
|
-
const t = e, n =
|
1092
|
+
const t = e, n = ye("chatAppId"), { setMessageText: a } = At(n), A = () => {
|
1093
1093
|
s("closeTemplateWindow"), a(o.value.template);
|
1094
|
-
}, s = f, i = I(null), o = I(null),
|
1094
|
+
}, s = f, i = I(null), o = I(null), r = 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 = r.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
|
+
l("div", ks, [
|
1104
|
+
l("button", Ns, [
|
1105
|
+
l("span", {
|
1106
1106
|
class: "pi pi-times",
|
1107
1107
|
onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
|
1108
1108
|
})
|
1109
1109
|
]),
|
1110
|
-
|
1110
|
+
l("ul", Ds, [
|
1111
1111
|
(c(!0), d($, null, Z(e.groupTemplates, (y, _) => (c(), d("li", {
|
1112
1112
|
key: _,
|
1113
1113
|
class: x(["template-selector__item-group", { "template-selector__item-selected": i.value === y }]),
|
1114
1114
|
onClick: u
|
1115
1115
|
}, [
|
1116
|
-
|
1116
|
+
l("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
|
+
ke(l("input", {
|
1124
1124
|
id: _,
|
1125
1125
|
"onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
|
1126
1126
|
value: y,
|
@@ -1129,43 +1129,43 @@ const bu = (e) => {
|
|
1129
1129
|
}, null, 8, Ts), [
|
1130
1130
|
[Ia, i.value]
|
1131
1131
|
]),
|
1132
|
-
|
1132
|
+
l("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
|
+
l("div", Vs, [
|
1137
|
+
ke(l("input", {
|
1138
|
+
"onUpdate:modelValue": M[2] || (M[2] = (y) => r.value = y),
|
1139
1139
|
class: "template-selector__searching-input",
|
1140
1140
|
type: "text",
|
1141
1141
|
placeholder: "Поиск шаблона"
|
1142
1142
|
}, null, 512), [
|
1143
|
-
[xt,
|
1143
|
+
[xt, r.value]
|
1144
1144
|
])
|
1145
1145
|
]),
|
1146
|
-
|
1146
|
+
l("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
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
|
+
l("div", Os, [
|
1154
|
+
l("p", Cs, w(y.title), 1),
|
1155
|
+
l("p", Ls, w(y.template), 1)
|
1156
1156
|
])
|
1157
1157
|
], 10, zs))), 128))
|
1158
1158
|
])) : (c(), d("p", Us, " Шаблоны отсутствуют "))
|
1159
1159
|
]),
|
1160
|
-
|
1160
|
+
l("div", Bs, [
|
1161
1161
|
o.value ? (c(), d("div", Qs, [
|
1162
|
-
|
1163
|
-
|
1164
|
-
M[3] || (M[3] =
|
1162
|
+
l("div", Rs, [
|
1163
|
+
l("p", Ys, w(o.value.template), 1),
|
1164
|
+
M[3] || (M[3] = l("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
1165
1165
|
])
|
1166
1166
|
])) : (c(), d("p", qs, " Предпросмотр шаблона "))
|
1167
1167
|
]),
|
1168
|
-
|
1168
|
+
l("button", {
|
1169
1169
|
class: "template-selector__button-paste",
|
1170
1170
|
onClick: A
|
1171
1171
|
}, " Вставить ")
|
@@ -1202,17 +1202,17 @@ const bu = (e) => {
|
|
1202
1202
|
f.mode == "hover" && f.state == "active" && (n.value.style.display = "inherit");
|
1203
1203
|
}, s = () => {
|
1204
1204
|
f.mode == "hover" && f.state == "active" && (n.value.style.display = "none");
|
1205
|
-
}, i = (
|
1206
|
-
f.mode == "click" && !t.value.contains(
|
1205
|
+
}, i = (r) => {
|
1206
|
+
f.mode == "click" && !t.value.contains(r.target) && !n.value.contains(r.target) && (n.value.style.display = "none");
|
1207
1207
|
}, o = () => {
|
1208
1208
|
n.value.style.display = "none";
|
1209
1209
|
};
|
1210
|
-
return
|
1210
|
+
return Ne(() => {
|
1211
1211
|
n.value.style.display = "none", document.addEventListener("click", i);
|
1212
1212
|
}), zt(() => {
|
1213
1213
|
document.removeEventListener("click", i);
|
1214
|
-
}), (
|
1215
|
-
|
1214
|
+
}), (r, g) => (c(), d($, null, [
|
1215
|
+
l("button", {
|
1216
1216
|
ref_key: "templateButton",
|
1217
1217
|
ref: t,
|
1218
1218
|
class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
@@ -1220,11 +1220,11 @@ const bu = (e) => {
|
|
1220
1220
|
onMouseover: A,
|
1221
1221
|
onMouseout: s
|
1222
1222
|
}, g[0] || (g[0] = [
|
1223
|
-
|
1223
|
+
l("span", { class: "pi pi-objects-column" }, null, -1)
|
1224
1224
|
]), 34),
|
1225
|
-
L(
|
1226
|
-
default:
|
1227
|
-
|
1225
|
+
L(q, null, {
|
1226
|
+
default: H(() => [
|
1227
|
+
l("div", {
|
1228
1228
|
ref_key: "template",
|
1229
1229
|
ref: n,
|
1230
1230
|
onMouseover: A,
|
@@ -1241,7 +1241,7 @@ const bu = (e) => {
|
|
1241
1241
|
})
|
1242
1242
|
], 64));
|
1243
1243
|
}
|
1244
|
-
},
|
1244
|
+
}, Tu = /* @__PURE__ */ z(Ps, [["__scopeId", "data-v-8d6cf607"]]), Bn = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Qn = {
|
1245
1245
|
recent: "Recently used",
|
1246
1246
|
smileys_people: "Smiles & People",
|
1247
1247
|
animals_nature: "Animals & Nature",
|
@@ -13268,7 +13268,7 @@ function gi(e) {
|
|
13268
13268
|
const a = () => {
|
13269
13269
|
e.removeEventListener("success", A), e.removeEventListener("error", s);
|
13270
13270
|
}, A = () => {
|
13271
|
-
t(
|
13271
|
+
t(we(e.result)), a();
|
13272
13272
|
}, s = () => {
|
13273
13273
|
n(e.error), a();
|
13274
13274
|
};
|
@@ -13304,7 +13304,7 @@ let _t = {
|
|
13304
13304
|
if (f === "store")
|
13305
13305
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
13306
13306
|
}
|
13307
|
-
return
|
13307
|
+
return we(e[f]);
|
13308
13308
|
},
|
13309
13309
|
set(e, f, t) {
|
13310
13310
|
return e[f] = t, !0;
|
@@ -13319,17 +13319,17 @@ function pi(e) {
|
|
13319
13319
|
function hi(e) {
|
13320
13320
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...t) {
|
13321
13321
|
const n = e.call(mt(this), f, ...t);
|
13322
|
-
return qn.set(n, f.sort ? f.sort() : [f]),
|
13322
|
+
return qn.set(n, f.sort ? f.sort() : [f]), we(n);
|
13323
13323
|
} : di().includes(e) ? function(...f) {
|
13324
|
-
return e.apply(mt(this), f),
|
13324
|
+
return e.apply(mt(this), f), we(Yn.get(this));
|
13325
13325
|
} : function(...f) {
|
13326
|
-
return
|
13326
|
+
return we(e.apply(mt(this), f));
|
13327
13327
|
};
|
13328
13328
|
}
|
13329
13329
|
function Mi(e) {
|
13330
13330
|
return typeof e == "function" ? hi(e) : (e instanceof IDBTransaction && mi(e), ui(e, ci()) ? new Proxy(e, _t) : e);
|
13331
13331
|
}
|
13332
|
-
function
|
13332
|
+
function we(e) {
|
13333
13333
|
if (e instanceof IDBRequest)
|
13334
13334
|
return gi(e);
|
13335
13335
|
if (gt.has(e))
|
@@ -13339,15 +13339,15 @@ function ke(e) {
|
|
13339
13339
|
}
|
13340
13340
|
const mt = (e) => Lt.get(e);
|
13341
13341
|
function Ut(e, f, { blocked: t, upgrade: n, blocking: a, terminated: A } = {}) {
|
13342
|
-
const s = indexedDB.open(e, f), i =
|
13342
|
+
const s = indexedDB.open(e, f), i = we(s);
|
13343
13343
|
return n && s.addEventListener("upgradeneeded", (o) => {
|
13344
|
-
n(
|
13344
|
+
n(we(s.result), o.oldVersion, o.newVersion, we(s.transaction), o);
|
13345
13345
|
}), t && s.addEventListener("blocked", (o) => t(
|
13346
13346
|
o.oldVersion,
|
13347
13347
|
o.newVersion,
|
13348
13348
|
o
|
13349
13349
|
)), i.then((o) => {
|
13350
|
-
A && o.addEventListener("close", () => A()), a && o.addEventListener("versionchange", (
|
13350
|
+
A && o.addEventListener("close", () => A()), a && o.addEventListener("versionchange", (r) => a(r.oldVersion, r.newVersion, r));
|
13351
13351
|
}).catch(() => {
|
13352
13352
|
}), i;
|
13353
13353
|
}
|
@@ -13362,9 +13362,9 @@ function hn(e, f) {
|
|
13362
13362
|
return;
|
13363
13363
|
const A = async function(s, ...i) {
|
13364
13364
|
const o = this.transaction(s, a ? "readwrite" : "readonly");
|
13365
|
-
let
|
13366
|
-
return n && (
|
13367
|
-
|
13365
|
+
let r = o.store;
|
13366
|
+
return n && (r = r.index(i.shift())), (await Promise.all([
|
13367
|
+
r[t](...i),
|
13368
13368
|
a && o.done
|
13369
13369
|
]))[0];
|
13370
13370
|
};
|
@@ -13449,7 +13449,7 @@ function wi() {
|
|
13449
13449
|
}
|
13450
13450
|
function n() {
|
13451
13451
|
t().then((u) => {
|
13452
|
-
e.recent = u,
|
13452
|
+
e.recent = u, r();
|
13453
13453
|
});
|
13454
13454
|
}
|
13455
13455
|
const a = (u) => {
|
@@ -13463,7 +13463,7 @@ function wi() {
|
|
13463
13463
|
}, o = (u) => {
|
13464
13464
|
e.options = Object.assign({}, e.options, u), f();
|
13465
13465
|
};
|
13466
|
-
async function
|
13466
|
+
async function r() {
|
13467
13467
|
(await Ut(Bt, Qt)).transaction(Be, "readwrite").objectStore(Be).put({
|
13468
13468
|
id: 0,
|
13469
13469
|
value: JSON.stringify(e.recent)
|
@@ -13476,7 +13476,7 @@ function wi() {
|
|
13476
13476
|
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
13477
13477
|
return;
|
13478
13478
|
const p = { u: u.u, n: Cn(u.n) };
|
13479
|
-
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24),
|
13479
|
+
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
|
13480
13480
|
};
|
13481
13481
|
return {
|
13482
13482
|
state: Na(e),
|
@@ -13544,8 +13544,8 @@ function Ui(e) {
|
|
13544
13544
|
};
|
13545
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() {
|
13546
13546
|
Object.keys(f.elements).forEach(function(n) {
|
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,
|
13548
|
-
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, r) {
|
13548
|
+
return o[r] = "", o;
|
13549
13549
|
}, {});
|
13550
13550
|
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(o) {
|
13551
13551
|
a.removeAttribute(o);
|
@@ -13673,9 +13673,9 @@ var qi = function(f, t) {
|
|
13673
13673
|
})) : f, Kn(typeof f != "number" ? f : Jn(f, of));
|
13674
13674
|
};
|
13675
13675
|
function Hi(e) {
|
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),
|
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), r = [ee, ie].indexOf(i) >= 0, g = r ? "height" : "width";
|
13677
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,
|
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, D = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + D, T = Ge(N, S, E), O = o;
|
13679
13679
|
t.modifiersData[n] = (f = {}, f[O] = T, f.centerOffset = T - S, f);
|
13680
13680
|
}
|
13681
13681
|
}
|
@@ -13709,8 +13709,8 @@ function Wi(e) {
|
|
13709
13709
|
};
|
13710
13710
|
}
|
13711
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,
|
13713
|
-
if (
|
13712
|
+
var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position, o = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, u = e.isFixed, m = g === !0 ? Wi(s) : typeof g == "function" ? g(s) : s, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), D = ee, N = X, E = window;
|
13713
|
+
if (r) {
|
13714
13714
|
var S = lf(t), T = "clientHeight", O = "clientWidth";
|
13715
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) {
|
13716
13716
|
N = se;
|
@@ -13718,22 +13718,22 @@ function bn(e) {
|
|
13718
13718
|
y -= Q - n.height, y *= o ? 1 : -1;
|
13719
13719
|
}
|
13720
13720
|
if (a === ee || (a === X || a === se) && A === nf) {
|
13721
|
-
|
13721
|
+
D = ie;
|
13722
13722
|
var C = u && E.visualViewport ? E.visualViewport.width : S[O];
|
13723
13723
|
h -= C - n.width, h *= o ? 1 : -1;
|
13724
13724
|
}
|
13725
13725
|
}
|
13726
13726
|
var B = Object.assign({
|
13727
13727
|
position: i
|
13728
|
-
},
|
13728
|
+
}, r && $i);
|
13729
13729
|
if (o) {
|
13730
13730
|
var R;
|
13731
|
-
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[
|
13731
|
+
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
|
13732
13732
|
}
|
13733
|
-
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[
|
13733
|
+
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? h + "px" : "", f.transform = "", f));
|
13734
13734
|
}
|
13735
13735
|
function Ki(e) {
|
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,
|
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, r = {
|
13737
13737
|
placement: de(f.placement),
|
13738
13738
|
variation: He(f.placement),
|
13739
13739
|
popper: f.elements.popper,
|
@@ -13741,12 +13741,12 @@ function Ki(e) {
|
|
13741
13741
|
gpuAcceleration: a,
|
13742
13742
|
isFixed: f.options.strategy === "fixed"
|
13743
13743
|
};
|
13744
|
-
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, bn(Object.assign({},
|
13744
|
+
f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, bn(Object.assign({}, r, {
|
13745
13745
|
offsets: f.modifiersData.popperOffsets,
|
13746
13746
|
position: f.options.strategy,
|
13747
13747
|
adaptive: s,
|
13748
13748
|
roundOffsets: o
|
13749
|
-
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({},
|
13749
|
+
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, r, {
|
13750
13750
|
offsets: f.modifiersData.arrow,
|
13751
13751
|
position: "absolute",
|
13752
13752
|
adaptive: !1,
|
@@ -13765,11 +13765,11 @@ var Ji = {
|
|
13765
13765
|
passive: !0
|
13766
13766
|
};
|
13767
13767
|
function Gi(e) {
|
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),
|
13769
|
-
return A &&
|
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), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
13769
|
+
return A && r.forEach(function(g) {
|
13770
13770
|
g.addEventListener("scroll", t.update, hf);
|
13771
13771
|
}), i && o.addEventListener("resize", t.update, hf), function() {
|
13772
|
-
A &&
|
13772
|
+
A && r.forEach(function(g) {
|
13773
13773
|
g.removeEventListener("scroll", t.update, hf);
|
13774
13774
|
}), i && o.removeEventListener("resize", t.update, hf);
|
13775
13775
|
};
|
@@ -13866,8 +13866,8 @@ function ao(e) {
|
|
13866
13866
|
}
|
13867
13867
|
function Ao(e, f, t) {
|
13868
13868
|
var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i, o) {
|
13869
|
-
var
|
13870
|
-
return i.top = ze(
|
13869
|
+
var r = In(e, o);
|
13870
|
+
return i.top = ze(r.top, i.top), i.right = Ef(r.right, i.right), i.bottom = Ef(r.bottom, i.bottom), i.left = ze(r.left, i.left), i;
|
13871
13871
|
}, In(e, A));
|
13872
13872
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
13873
13873
|
}
|
@@ -13904,15 +13904,15 @@ function Zn(e) {
|
|
13904
13904
|
y: f.y
|
13905
13905
|
};
|
13906
13906
|
}
|
13907
|
-
var
|
13908
|
-
if (
|
13909
|
-
var g =
|
13907
|
+
var r = a ? qt(a) : null;
|
13908
|
+
if (r != null) {
|
13909
|
+
var g = r === "y" ? "height" : "width";
|
13910
13910
|
switch (A) {
|
13911
13911
|
case Qe:
|
13912
|
-
o[
|
13912
|
+
o[r] = o[r] - (f[g] / 2 - t[g] / 2);
|
13913
13913
|
break;
|
13914
13914
|
case nf:
|
13915
|
-
o[
|
13915
|
+
o[r] = o[r] + (f[g] / 2 - t[g] / 2);
|
13916
13916
|
break;
|
13917
13917
|
}
|
13918
13918
|
}
|
@@ -13920,16 +13920,16 @@ function Zn(e) {
|
|
13920
13920
|
}
|
13921
13921
|
function af(e, f) {
|
13922
13922
|
f === void 0 && (f = {});
|
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,
|
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, r = t.elementContext, g = r === void 0 ? Je : r, u = t.altBoundary, m = u === void 0 ? !1 : u, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, o), N = qe(e.elements.reference), E = Zn({
|
13924
13924
|
reference: N,
|
13925
13925
|
element: _,
|
13926
13926
|
strategy: "absolute",
|
13927
13927
|
placement: a
|
13928
13928
|
}), S = wt(Object.assign({}, _, E)), T = g === Je ? S : N, O = {
|
13929
|
-
top:
|
13930
|
-
bottom: T.bottom -
|
13931
|
-
left:
|
13932
|
-
right: T.right -
|
13929
|
+
top: D.top - T.top + M.top,
|
13930
|
+
bottom: T.bottom - D.bottom + M.bottom,
|
13931
|
+
left: D.left - T.left + M.left,
|
13932
|
+
right: T.right - D.right + M.right
|
13933
13933
|
}, Q = e.modifiersData.offset;
|
13934
13934
|
if (g === Je && Q) {
|
13935
13935
|
var C = Q[a];
|
@@ -13942,10 +13942,10 @@ function af(e, f) {
|
|
13942
13942
|
}
|
13943
13943
|
function so(e, f) {
|
13944
13944
|
f === void 0 && (f = {});
|
13945
|
-
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements,
|
13945
|
+
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, r = o === void 0 ? Fn : o, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
|
13946
13946
|
return He(h) === g;
|
13947
13947
|
}) : of, m = u.filter(function(h) {
|
13948
|
-
return
|
13948
|
+
return r.indexOf(h) >= 0;
|
13949
13949
|
});
|
13950
13950
|
m.length === 0 && (m = u);
|
13951
13951
|
var p = m.reduce(function(h, M) {
|
@@ -13969,23 +13969,23 @@ function io(e) {
|
|
13969
13969
|
function oo(e) {
|
13970
13970
|
var f = e.state, t = e.options, n = e.name;
|
13971
13971
|
if (!f.modifiersData[n]._skip) {
|
13972
|
-
for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, o = t.fallbackPlacements,
|
13973
|
-
return Ce.concat(de(
|
13974
|
-
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, r = t.padding, g = t.boundary, u = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = o || (k || !h ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, be) {
|
13973
|
+
return Ce.concat(de(be) === Rt ? so(f, {
|
13974
|
+
placement: be,
|
13975
13975
|
boundary: g,
|
13976
13976
|
rootBoundary: u,
|
13977
|
-
padding:
|
13977
|
+
padding: r,
|
13978
13978
|
flipVariations: h,
|
13979
13979
|
allowedAutoPlacements: M
|
13980
|
-
}) :
|
13980
|
+
}) : be);
|
13981
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,
|
13982
|
+
var B = N[C], R = de(B), te = He(B) === Qe, pe = [X, se].indexOf(R) >= 0, le = pe ? "width" : "height", Y = af(f, {
|
13983
13983
|
placement: B,
|
13984
13984
|
boundary: g,
|
13985
13985
|
rootBoundary: u,
|
13986
13986
|
altBoundary: m,
|
13987
|
-
padding:
|
13988
|
-
}), W =
|
13987
|
+
padding: r
|
13988
|
+
}), W = pe ? te ? ie : ee : te ? se : X;
|
13989
13989
|
E[le] > S[le] && (W = _f(W));
|
13990
13990
|
var uf = _f(W), Ee = [];
|
13991
13991
|
if (A && Ee.push(Y[R] <= 0), i && Ee.push(Y[W] <= 0, Y[uf] <= 0), Ee.every(function(Ce) {
|
@@ -13997,11 +13997,11 @@ function oo(e) {
|
|
13997
13997
|
T.set(B, Ee);
|
13998
13998
|
}
|
13999
13999
|
if (O)
|
14000
|
-
for (var cf = h ? 3 : 1, lt = function(
|
14000
|
+
for (var cf = h ? 3 : 1, lt = function(be) {
|
14001
14001
|
var Ke = N.find(function(gf) {
|
14002
14002
|
var Te = T.get(gf);
|
14003
14003
|
if (Te)
|
14004
|
-
return Te.slice(0,
|
14004
|
+
return Te.slice(0, be).every(function(rt) {
|
14005
14005
|
return rt;
|
14006
14006
|
});
|
14007
14007
|
});
|
@@ -14046,10 +14046,10 @@ function ro(e) {
|
|
14046
14046
|
elementContext: "reference"
|
14047
14047
|
}), i = af(f, {
|
14048
14048
|
altBoundary: !0
|
14049
|
-
}), o = _n(s, n),
|
14049
|
+
}), o = _n(s, n), r = _n(i, a, A), g = wn(o), u = wn(r);
|
14050
14050
|
f.modifiersData[t] = {
|
14051
14051
|
referenceClippingOffsets: o,
|
14052
|
-
popperEscapeOffsets:
|
14052
|
+
popperEscapeOffsets: r,
|
14053
14053
|
isReferenceHidden: g,
|
14054
14054
|
hasPopperEscaped: u
|
14055
14055
|
}, f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
@@ -14079,8 +14079,8 @@ function co(e, f, t) {
|
|
14079
14079
|
function go(e) {
|
14080
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
14081
|
return g[u] = co(u, f.rects, A), g;
|
14082
|
-
}, {}), i = s[f.placement], o = i.x,
|
14083
|
-
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += o, f.modifiersData.popperOffsets.y +=
|
14082
|
+
}, {}), i = s[f.placement], o = i.x, r = i.y;
|
14083
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += o, f.modifiersData.popperOffsets.y += r), f.modifiersData[n] = s;
|
14084
14084
|
}
|
14085
14085
|
var mo = {
|
14086
14086
|
name: "offset",
|
@@ -14109,12 +14109,12 @@ function Mo(e) {
|
|
14109
14109
|
return e === "x" ? "y" : "x";
|
14110
14110
|
}
|
14111
14111
|
function yo(e) {
|
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,
|
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, r = t.rootBoundary, g = t.altBoundary, u = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
|
14113
14113
|
boundary: o,
|
14114
|
-
rootBoundary:
|
14114
|
+
rootBoundary: r,
|
14115
14115
|
padding: u,
|
14116
14116
|
altBoundary: g
|
14117
|
-
}), _ = de(f.placement), k = He(f.placement),
|
14117
|
+
}), _ = de(f.placement), k = He(f.placement), D = !k, N = qt(_), E = Mo(N), S = f.modifiersData.popperOffsets, T = f.rects.reference, O = f.rects.popper, Q = typeof M == "function" ? M(Object.assign({}, f.rects, {
|
14118
14118
|
placement: f.placement
|
14119
14119
|
})) : M, C = typeof Q == "number" ? {
|
14120
14120
|
mainAxis: Q,
|
@@ -14128,10 +14128,10 @@ function yo(e) {
|
|
14128
14128
|
};
|
14129
14129
|
if (S) {
|
14130
14130
|
if (A) {
|
14131
|
-
var te,
|
14131
|
+
var te, pe = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[pe], Ee = W - y[le], cf = p ? -O[Y] / 2 : 0, lt = k === Qe ? T[Y] : O[Y], We = k === Qe ? -O[Y] : -T[Y], df = f.elements.arrow, Ce = p && df ? Yt(df) : {
|
14132
14132
|
width: 0,
|
14133
14133
|
height: 0
|
14134
|
-
},
|
14134
|
+
}, be = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = be[pe], gf = be[le], Te = Ge(0, T[Y], Ce[Y]), rt = D ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = D ? -T[Y] / 2 + cf + Te + gf + C.mainAxis : We + Te + gf + C.mainAxis, ut = f.elements.arrow && lf(f.elements.arrow), da = ut ? N === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, fn = (te = B == null ? void 0 : B[N]) != null ? te : 0, ga = W + rt - fn - da, ma = W + ca - fn, tn = Ge(p ? Ef(uf, ga) : uf, W, p ? ze(Ee, ma) : Ee);
|
14135
14135
|
S[N] = tn, R[N] = tn - W;
|
14136
14136
|
}
|
14137
14137
|
if (i) {
|
@@ -14241,8 +14241,8 @@ function Nn() {
|
|
14241
14241
|
function Eo(e) {
|
14242
14242
|
e === void 0 && (e = {});
|
14243
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,
|
14245
|
-
|
14244
|
+
return function(i, o, r) {
|
14245
|
+
r === void 0 && (r = A);
|
14246
14246
|
var g = {
|
14247
14247
|
placement: "bottom",
|
14248
14248
|
orderedModifiers: [],
|
@@ -14262,18 +14262,18 @@ function Eo(e) {
|
|
14262
14262
|
reference: Re(i) ? Ze(i) : i.contextElement ? Ze(i.contextElement) : [],
|
14263
14263
|
popper: Ze(o)
|
14264
14264
|
};
|
14265
|
-
var
|
14266
|
-
return g.orderedModifiers =
|
14265
|
+
var D = No(jo([].concat(n, g.options.modifiers)));
|
14266
|
+
return g.orderedModifiers = D.filter(function(N) {
|
14267
14267
|
return N.enabled;
|
14268
14268
|
}), h(), p.update();
|
14269
14269
|
},
|
14270
14270
|
forceUpdate: function() {
|
14271
14271
|
if (!m) {
|
14272
|
-
var _ = g.elements, k = _.reference,
|
14273
|
-
if (Nn(k,
|
14272
|
+
var _ = g.elements, k = _.reference, D = _.popper;
|
14273
|
+
if (Nn(k, D)) {
|
14274
14274
|
g.rects = {
|
14275
|
-
reference: wo(k, lf(
|
14276
|
-
popper: Yt(
|
14275
|
+
reference: wo(k, lf(D), g.options.strategy === "fixed"),
|
14276
|
+
popper: Yt(D)
|
14277
14277
|
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(C) {
|
14278
14278
|
return g.modifiersData[C.name] = Object.assign({}, C.data);
|
14279
14279
|
});
|
@@ -14304,18 +14304,18 @@ function Eo(e) {
|
|
14304
14304
|
};
|
14305
14305
|
if (!Nn(i, o))
|
14306
14306
|
return p;
|
14307
|
-
p.setOptions(
|
14308
|
-
!m &&
|
14307
|
+
p.setOptions(r).then(function(y) {
|
14308
|
+
!m && r.onFirstUpdate && r.onFirstUpdate(y);
|
14309
14309
|
});
|
14310
14310
|
function h() {
|
14311
14311
|
g.orderedModifiers.forEach(function(y) {
|
14312
|
-
var _ = y.name, k = y.options,
|
14312
|
+
var _ = y.name, k = y.options, D = k === void 0 ? {} : k, N = y.effect;
|
14313
14313
|
if (typeof N == "function") {
|
14314
14314
|
var E = N({
|
14315
14315
|
state: g,
|
14316
14316
|
name: _,
|
14317
14317
|
instance: p,
|
14318
|
-
options:
|
14318
|
+
options: D
|
14319
14319
|
}), S = function() {
|
14320
14320
|
};
|
14321
14321
|
u.push(E || S);
|
@@ -14345,16 +14345,16 @@ function xo(e, f, t, n = []) {
|
|
14345
14345
|
e[A].forEach((i) => {
|
14346
14346
|
var o;
|
14347
14347
|
if (i[st][0].includes(f.toLocaleLowerCase())) {
|
14348
|
-
let
|
14348
|
+
let r = i[Rn];
|
14349
14349
|
if (t !== jf && Array.isArray(i[pf])) {
|
14350
14350
|
const g = ((o = i[pf]) == null ? void 0 : o.findIndex(
|
14351
14351
|
(u) => u.includes(t)
|
14352
14352
|
)) || -1;
|
14353
|
-
g !== -1 && i[pf] && (
|
14353
|
+
g !== -1 && i[pf] && (r = i[pf][g]);
|
14354
14354
|
}
|
14355
14355
|
return s.push({
|
14356
14356
|
...i,
|
14357
|
-
[tf]:
|
14357
|
+
[tf]: r
|
14358
14358
|
});
|
14359
14359
|
}
|
14360
14360
|
}), s.length && (a[A] = s);
|
@@ -14382,12 +14382,12 @@ const So = K({
|
|
14382
14382
|
select: (e) => !0
|
14383
14383
|
},
|
14384
14384
|
setup() {
|
14385
|
-
const { state: e, updateEmoji: f, updateSelect: t } =
|
14385
|
+
const { state: e, updateEmoji: f, updateSelect: t } = ye("store"), n = I(null), a = U(() => xo(
|
14386
14386
|
e.emojis,
|
14387
14387
|
e.search,
|
14388
14388
|
e.skinTone,
|
14389
14389
|
e.options.disabledGroups
|
14390
|
-
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = Cn(e.options.groupNames),
|
14390
|
+
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = Cn(e.options.groupNames), r = e.orderedGroupKeys;
|
14391
14391
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
|
14392
14392
|
e.options.groupNames[h] ? o[h] = e.options.groupNames[h] : o[h] = fa(h);
|
14393
14393
|
});
|
@@ -14430,7 +14430,7 @@ const So = K({
|
|
14430
14430
|
isSticky: i,
|
14431
14431
|
platform: g,
|
14432
14432
|
groupNames: o,
|
14433
|
-
orderedKeys:
|
14433
|
+
orderedKeys: r
|
14434
14434
|
};
|
14435
14435
|
}
|
14436
14436
|
}), zo = { class: "v3-body" }, Oo = ["id"], Co = { class: "v3-emojis" }, Lo = ["onMouseenter", "onClick"], Uo = { key: 0 }, Bo = ["src", "alt", "onError"], Qo = {
|
@@ -14439,7 +14439,7 @@ const So = K({
|
|
14439
14439
|
};
|
14440
14440
|
function Ro(e, f, t, n, a, A) {
|
14441
14441
|
return c(), d("div", zo, [
|
14442
|
-
|
14442
|
+
l("div", {
|
14443
14443
|
ref: "bodyInner",
|
14444
14444
|
class: x([e.platform, "v3-body-inner"])
|
14445
14445
|
}, [
|
@@ -14448,13 +14448,13 @@ function Ro(e, f, t, n, a, A) {
|
|
14448
14448
|
key: s,
|
14449
14449
|
class: "v3-group"
|
14450
14450
|
}, [
|
14451
|
-
e.hasGroupNames ?
|
14451
|
+
e.hasGroupNames ? ke((c(), d("h5", {
|
14452
14452
|
key: 0,
|
14453
14453
|
class: x(e.isSticky ? "v3-sticky" : "")
|
14454
14454
|
}, w(e.groupNames[s]), 3)), [
|
14455
14455
|
[Df, e.emojis[s]]
|
14456
14456
|
]) : b("", !0),
|
14457
|
-
|
14457
|
+
ke(l("div", Co, [
|
14458
14458
|
(c(!0), d($, null, Z(e.emojis[s], (i) => (c(), d("button", {
|
14459
14459
|
key: i.r,
|
14460
14460
|
type: "button",
|
@@ -14479,12 +14479,12 @@ var Yo = /* @__PURE__ */ rf(So, [["render", Ro]]), qo = "data:image/svg+xml;base
|
|
14479
14479
|
const Go = K({
|
14480
14480
|
name: "Header",
|
14481
14481
|
setup(e) {
|
14482
|
-
const { state: f, updateSearch: t, updateActiveGroup: n } =
|
14482
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = ye("store"), a = U(() => !f.options.hideSearch), A = U(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = U(
|
14483
14483
|
() => f.options.staticTexts.placeholder || ""
|
14484
14484
|
), o = U({
|
14485
14485
|
get: () => f.search,
|
14486
14486
|
set: (u) => t(u)
|
14487
|
-
}),
|
14487
|
+
}), r = [
|
14488
14488
|
...f.groups,
|
14489
14489
|
...Object.keys(f.options.additionalGroups).map((u) => ({
|
14490
14490
|
key: u,
|
@@ -14492,8 +14492,8 @@ const Go = K({
|
|
14492
14492
|
}))
|
14493
14493
|
], g = [];
|
14494
14494
|
return s.forEach((u) => {
|
14495
|
-
const m =
|
14496
|
-
m !== -1 && (g.push(
|
14495
|
+
const m = r.findIndex((p) => p.key === u);
|
14496
|
+
m !== -1 && (g.push(r[m]), r.splice(m, 1));
|
14497
14497
|
}), {
|
14498
14498
|
orderedGroups: g,
|
14499
14499
|
orderedKeys: s,
|
@@ -14540,11 +14540,11 @@ function s1(e, f, t, n, a, A) {
|
|
14540
14540
|
}]),
|
14541
14541
|
onClick: (i) => e.updateActiveGroup(s.key)
|
14542
14542
|
}, [
|
14543
|
-
|
14543
|
+
l("span", {
|
14544
14544
|
title: s.title,
|
14545
14545
|
class: "v3-icon"
|
14546
14546
|
}, [
|
14547
|
-
|
14547
|
+
l("img", {
|
14548
14548
|
src: e.icons[s.key],
|
14549
14549
|
alt: ""
|
14550
14550
|
}, null, 8, t1)
|
@@ -14553,7 +14553,7 @@ function s1(e, f, t, n, a, A) {
|
|
14553
14553
|
])) : b("", !0),
|
14554
14554
|
e.hasGroupIcons && e.hasSearch ? (c(), d("div", n1)) : b("", !0),
|
14555
14555
|
e.hasSearch ? (c(), d("div", a1, [
|
14556
|
-
|
14556
|
+
ke(l("input", {
|
14557
14557
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
14558
14558
|
type: "text",
|
14559
14559
|
placeholder: e.placeholder
|
@@ -14567,20 +14567,20 @@ var i1 = /* @__PURE__ */ rf(Go, [["render", s1]]);
|
|
14567
14567
|
const o1 = K({
|
14568
14568
|
name: "Header",
|
14569
14569
|
setup() {
|
14570
|
-
const { state: e, updateSkinTone: f } =
|
14570
|
+
const { state: e, updateSkinTone: f } = ye("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone), A = U(
|
14571
14571
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
14572
14572
|
), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "", o = U(() => ({
|
14573
14573
|
...e.emoji,
|
14574
14574
|
src: Bn + "/" + e.emoji[tf] + ".png"
|
14575
14575
|
}));
|
14576
|
-
function
|
14576
|
+
function r(m = !0) {
|
14577
14577
|
t.value = m;
|
14578
14578
|
}
|
14579
14579
|
function g() {
|
14580
14580
|
t.value = !t.value;
|
14581
14581
|
}
|
14582
14582
|
function u(m) {
|
14583
|
-
f(m),
|
14583
|
+
f(m), r(!1);
|
14584
14584
|
}
|
14585
14585
|
return Oe(
|
14586
14586
|
() => e.emoji,
|
@@ -14590,7 +14590,7 @@ const o1 = K({
|
|
14590
14590
|
), {
|
14591
14591
|
emoji: o,
|
14592
14592
|
SKIN_TONES: Xs,
|
14593
|
-
updateSkinToneState:
|
14593
|
+
updateSkinToneState: r,
|
14594
14594
|
skinTone: t,
|
14595
14595
|
stateSkinTone: a,
|
14596
14596
|
selectSkinTone: u,
|
@@ -14611,8 +14611,8 @@ function m1(e, f, t, n, a, A) {
|
|
14611
14611
|
class: "v3-footer",
|
14612
14612
|
onMouseleave: f[2] || (f[2] = (s) => e.updateSkinToneState(!1))
|
14613
14613
|
}, [
|
14614
|
-
|
14615
|
-
|
14614
|
+
l("div", l1, [
|
14615
|
+
l("span", {
|
14616
14616
|
class: x([e.platform, "v3-icon"])
|
14617
14617
|
}, [
|
14618
14618
|
e.native || e.hasError ? (c(), d("span", r1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (c(), d("img", {
|
@@ -14622,20 +14622,20 @@ function m1(e, f, t, n, a, A) {
|
|
14622
14622
|
onError: f[0] || (f[0] = (s) => e.hasError = !0)
|
14623
14623
|
}, null, 40, u1))
|
14624
14624
|
], 2),
|
14625
|
-
|
14625
|
+
l("span", c1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
14626
14626
|
]),
|
14627
14627
|
e.hasSkinTones ? (c(), d($, { key: 0 }, [
|
14628
|
-
|
14628
|
+
l("button", {
|
14629
14629
|
type: "button",
|
14630
14630
|
class: "v3-tone",
|
14631
14631
|
onClick: f[1] || (f[1] = (...s) => e.toggleSkinToneState && e.toggleSkinToneState(...s))
|
14632
14632
|
}, [
|
14633
|
-
|
14634
|
-
|
14633
|
+
l("span", d1, w(e.skinToneText), 1),
|
14634
|
+
l("span", {
|
14635
14635
|
class: x(`v3-icon v3-tone-${e.stateSkinTone}`)
|
14636
14636
|
}, null, 2)
|
14637
14637
|
]),
|
14638
|
-
|
14638
|
+
l("div", {
|
14639
14639
|
class: x([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
14640
14640
|
}, [
|
14641
14641
|
(c(!0), d($, null, Z(e.SKIN_TONES, (s) => (c(), d("button", {
|
@@ -14689,10 +14689,10 @@ const h1 = K({
|
|
14689
14689
|
setup(e, { emit: f }) {
|
14690
14690
|
const t = I(), n = I(), a = I(), A = I(!1), s = I(e.text), i = e.type === "input" || e.type === "textarea";
|
14691
14691
|
let o = -1;
|
14692
|
-
const { state:
|
14692
|
+
const { state: r } = ye("store"), g = U(() => r.options.colorTheme);
|
14693
14693
|
function u(y) {
|
14694
14694
|
if (i) {
|
14695
|
-
const _ =
|
14695
|
+
const _ = r.options.mode;
|
14696
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);
|
14697
14697
|
}
|
14698
14698
|
f("select", y);
|
@@ -14709,7 +14709,7 @@ const h1 = K({
|
|
14709
14709
|
}
|
14710
14710
|
function h() {
|
14711
14711
|
if (n.value && a.value && i) {
|
14712
|
-
let y =
|
14712
|
+
let y = r.options.offset;
|
14713
14713
|
typeof y != "number" && (y = 6), Vo(n.value, a.value, {
|
14714
14714
|
placement: "bottom-end",
|
14715
14715
|
modifiers: [
|
@@ -14726,7 +14726,7 @@ const h1 = K({
|
|
14726
14726
|
function M(y) {
|
14727
14727
|
s.value = y.target.value || "", f("update:text", s.value);
|
14728
14728
|
}
|
14729
|
-
return
|
14729
|
+
return Ne(() => {
|
14730
14730
|
h();
|
14731
14731
|
}), wa(() => {
|
14732
14732
|
document.body.removeEventListener("click", p);
|
@@ -14751,38 +14751,38 @@ const h1 = K({
|
|
14751
14751
|
function _1(e, f, t, n, a, A) {
|
14752
14752
|
const s = If("Header"), i = If("Body"), o = If("Footer");
|
14753
14753
|
return e.isInputType ? (c(), d("div", M1, [
|
14754
|
-
|
14754
|
+
l("div", y1, [
|
14755
14755
|
e.type === "input" ? (c(), d("input", {
|
14756
14756
|
key: 0,
|
14757
14757
|
ref: "elem",
|
14758
14758
|
value: e.input,
|
14759
14759
|
type: "text",
|
14760
14760
|
class: "v3-emoji-picker-input",
|
14761
|
-
onInput: f[0] || (f[0] = (...
|
14762
|
-
onBlur: f[1] || (f[1] = (...
|
14761
|
+
onInput: f[0] || (f[0] = (...r) => e.onChangeText && e.onChangeText(...r)),
|
14762
|
+
onBlur: f[1] || (f[1] = (...r) => e.updateCursor && e.updateCursor(...r))
|
14763
14763
|
}, null, 40, b1)) : (c(), d("textarea", {
|
14764
14764
|
key: 1,
|
14765
14765
|
ref: "elem",
|
14766
14766
|
value: e.input,
|
14767
14767
|
class: "v3-emoji-picker-textarea",
|
14768
|
-
onInput: f[2] || (f[2] = (...
|
14769
|
-
onBlur: f[3] || (f[3] = (...
|
14768
|
+
onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
|
14769
|
+
onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
|
14770
14770
|
}, null, 40, v1)),
|
14771
|
-
|
14771
|
+
l("div", {
|
14772
14772
|
class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
14773
14773
|
}, [
|
14774
|
-
|
14774
|
+
l("button", {
|
14775
14775
|
ref: "button",
|
14776
14776
|
type: "button",
|
14777
14777
|
class: "v3-input-picker-icon",
|
14778
|
-
onClick: f[4] || (f[4] = (
|
14778
|
+
onClick: f[4] || (f[4] = (r) => e.open = !e.open)
|
14779
14779
|
}, [
|
14780
|
-
|
14780
|
+
l("img", {
|
14781
14781
|
src: e.face,
|
14782
14782
|
alt: ""
|
14783
14783
|
}, null, 8, I1)
|
14784
14784
|
], 512),
|
14785
|
-
|
14785
|
+
l("div", {
|
14786
14786
|
ref: "picker",
|
14787
14787
|
class: x(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14788
14788
|
}, [
|
@@ -14917,7 +14917,7 @@ const k1 = K({
|
|
14917
14917
|
});
|
14918
14918
|
function N1(e, f, t, n, a, A) {
|
14919
14919
|
const s = If("picker-root");
|
14920
|
-
return c(),
|
14920
|
+
return c(), F(s, {
|
14921
14921
|
type: e.type,
|
14922
14922
|
text: e.input,
|
14923
14923
|
onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
|
@@ -14939,12 +14939,12 @@ const j1 = {
|
|
14939
14939
|
}
|
14940
14940
|
},
|
14941
14941
|
setup(e) {
|
14942
|
-
const f = e, t = I(null), n = I(null), a =
|
14942
|
+
const f = e, t = I(null), n = I(null), a = ye("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
|
14943
14943
|
if (document.documentElement.classList.contains("dark"))
|
14944
14944
|
return "dark";
|
14945
14945
|
}), o = (p) => {
|
14946
14946
|
A(s().text + p.i);
|
14947
|
-
},
|
14947
|
+
}, r = () => {
|
14948
14948
|
f.mode == "click" && f.state == "active" && (t.value.style.display = "inherit");
|
14949
14949
|
}, g = () => {
|
14950
14950
|
f.mode == "hover" && f.state == "active" && (t.value.style.display = "inherit");
|
@@ -14953,31 +14953,31 @@ const j1 = {
|
|
14953
14953
|
}, m = (p) => {
|
14954
14954
|
f.mode == "click" && !n.value.contains(p.target) && !t.value.contains(p.target) && (t.value.style.display = "none");
|
14955
14955
|
};
|
14956
|
-
return
|
14956
|
+
return Ne(() => {
|
14957
14957
|
t.value.style.display = "none", document.addEventListener("click", m);
|
14958
14958
|
}), zt(() => {
|
14959
14959
|
document.removeEventListener("click", m);
|
14960
14960
|
}), (p, h) => (c(), d($, null, [
|
14961
|
-
|
14961
|
+
l("div", {
|
14962
14962
|
ref_key: "emojiButton",
|
14963
14963
|
ref: n,
|
14964
14964
|
class: x(["button", { "button-disabled": e.state == "disabled" }]),
|
14965
|
-
onClick:
|
14965
|
+
onClick: r,
|
14966
14966
|
onMouseover: g,
|
14967
14967
|
onMouseout: u
|
14968
14968
|
}, h[0] || (h[0] = [
|
14969
|
-
|
14969
|
+
l("span", { class: "pi pi-face-smile" }, null, -1)
|
14970
14970
|
]), 34),
|
14971
|
-
L(
|
14972
|
-
default:
|
14973
|
-
|
14971
|
+
L(q, null, {
|
14972
|
+
default: H(() => [
|
14973
|
+
l("div", {
|
14974
14974
|
ref_key: "emoji",
|
14975
14975
|
ref: t,
|
14976
14976
|
class: "emoji",
|
14977
14977
|
onMouseover: g,
|
14978
14978
|
onMouseout: u
|
14979
14979
|
}, [
|
14980
|
-
L(
|
14980
|
+
L(j(D1), {
|
14981
14981
|
native: !0,
|
14982
14982
|
theme: i.value,
|
14983
14983
|
"picker-type": "",
|
@@ -14989,7 +14989,7 @@ const j1 = {
|
|
14989
14989
|
})
|
14990
14990
|
], 64));
|
14991
14991
|
}
|
14992
|
-
},
|
14992
|
+
}, Vu = /* @__PURE__ */ z(j1, [["__scopeId", "data-v-116254cb"]]), E1 = { class: "context-menu" }, T1 = { class: "context-menu__container" }, V1 = { class: "context-menu__list" }, x1 = ["onClick"], S1 = ["src"], z1 = {
|
14993
14993
|
__name: "ContextMenu",
|
14994
14994
|
props: {
|
14995
14995
|
actions: {
|
@@ -15004,12 +15004,12 @@ const j1 = {
|
|
15004
15004
|
n("click", s);
|
15005
15005
|
};
|
15006
15006
|
return (A, s) => (c(), d("div", E1, [
|
15007
|
-
|
15008
|
-
|
15007
|
+
l("div", T1, [
|
15008
|
+
l("ul", V1, [
|
15009
15009
|
(c(!0), d($, null, Z(t.actions, (i, o) => (c(), d("li", {
|
15010
15010
|
key: o,
|
15011
15011
|
class: "context-menu__item",
|
15012
|
-
onClick: (
|
15012
|
+
onClick: (r) => a(o)
|
15013
15013
|
}, [
|
15014
15014
|
i.icon ? (c(), d("img", {
|
15015
15015
|
key: 0,
|
@@ -15020,7 +15020,7 @@ const j1 = {
|
|
15020
15020
|
key: 1,
|
15021
15021
|
class: x("pi pi-" + i.prime)
|
15022
15022
|
}, null, 2)) : b("", !0),
|
15023
|
-
|
15023
|
+
l("span", null, w(i.title), 1)
|
15024
15024
|
], 8, x1))), 128))
|
15025
15025
|
])
|
15026
15026
|
])
|
@@ -15050,10 +15050,10 @@ const j1 = {
|
|
15050
15050
|
}, s = () => {
|
15051
15051
|
n.value = !1, t.value = !1;
|
15052
15052
|
}, i = U(() => $e(f.message.status));
|
15053
|
-
function o(
|
15054
|
-
return
|
15053
|
+
function o(r) {
|
15054
|
+
return r.position === "left" ? "file-message__left" : "file-message__right";
|
15055
15055
|
}
|
15056
|
-
return (
|
15056
|
+
return (r, g) => (c(), d("div", {
|
15057
15057
|
class: x(["file-message", o(e.message)]),
|
15058
15058
|
messageId: e.message.messageId,
|
15059
15059
|
onMouseleave: s
|
@@ -15064,30 +15064,30 @@ const j1 = {
|
|
15064
15064
|
src: e.message.avatar,
|
15065
15065
|
height: "32",
|
15066
15066
|
width: "32",
|
15067
|
-
style:
|
15067
|
+
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
15068
15068
|
}, null, 12, C1)) : b("", !0),
|
15069
15069
|
e.message.subText ? (c(), d("p", L1, w(e.message.subText), 1)) : b("", !0),
|
15070
|
-
|
15070
|
+
l("div", {
|
15071
15071
|
class: "file-message__content",
|
15072
15072
|
onMouseenter: A
|
15073
15073
|
}, [
|
15074
|
-
|
15074
|
+
l("a", {
|
15075
15075
|
class: "file-message__link",
|
15076
15076
|
href: e.message.url,
|
15077
15077
|
download: "",
|
15078
15078
|
target: "_blank"
|
15079
15079
|
}, [
|
15080
|
-
g[1] || (g[1] =
|
15081
|
-
|
15080
|
+
g[1] || (g[1] = l("span", { class: "pi pi-file" }, null, -1)),
|
15081
|
+
l("p", B1, w(e.message.filename), 1)
|
15082
15082
|
], 8, U1),
|
15083
|
-
|
15084
|
-
|
15085
|
-
o(e.message) === "file-message__right" &&
|
15083
|
+
l("div", Q1, [
|
15084
|
+
l("span", R1, w(e.message.time), 1),
|
15085
|
+
o(e.message) === "file-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15086
15086
|
key: 0,
|
15087
15087
|
class: x(["file-message__status", i.value])
|
15088
15088
|
}, [
|
15089
15089
|
e.message.status !== "sent" ? (c(), d("span", Y1)) : b("", !0),
|
15090
|
-
g[2] || (g[2] =
|
15090
|
+
g[2] || (g[2] = l("span", { class: "pi pi-check" }, null, -1))
|
15091
15091
|
], 2)) : b("", !0)
|
15092
15092
|
]),
|
15093
15093
|
n.value && e.message.actions ? (c(), d("button", {
|
@@ -15095,19 +15095,19 @@ const j1 = {
|
|
15095
15095
|
class: "file-message__menu-button",
|
15096
15096
|
onClick: g[0] || (g[0] = (u) => t.value = !t.value)
|
15097
15097
|
}, g[3] || (g[3] = [
|
15098
|
-
|
15098
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15099
15099
|
]))) : b("", !0),
|
15100
|
-
|
15100
|
+
l("a", {
|
15101
15101
|
class: "file-message__download-button",
|
15102
15102
|
href: e.message.url,
|
15103
15103
|
download: "",
|
15104
15104
|
target: "_blank"
|
15105
15105
|
}, g[4] || (g[4] = [
|
15106
|
-
|
15106
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
15107
15107
|
]), 8, q1),
|
15108
|
-
L(
|
15109
|
-
default:
|
15110
|
-
t.value && e.message.actions ? (c(),
|
15108
|
+
L(q, null, {
|
15109
|
+
default: H(() => [
|
15110
|
+
t.value && e.message.actions ? (c(), F(j(je), {
|
15111
15111
|
key: 0,
|
15112
15112
|
class: "file-message__context-menu",
|
15113
15113
|
actions: e.message.actions,
|
@@ -15117,7 +15117,7 @@ const j1 = {
|
|
15117
15117
|
_: 1
|
15118
15118
|
}),
|
15119
15119
|
e.message.text ? (c(), d("div", H1, [
|
15120
|
-
|
15120
|
+
l("p", null, w(e.message.text), 1)
|
15121
15121
|
])) : b("", !0)
|
15122
15122
|
], 32)
|
15123
15123
|
], 42, O1));
|
@@ -15154,7 +15154,7 @@ const j1 = {
|
|
15154
15154
|
a.value = !0, A.value = !0;
|
15155
15155
|
}, o = () => {
|
15156
15156
|
a.value = !1, n.value = !1;
|
15157
|
-
},
|
15157
|
+
}, r = U(() => $e(f.message.status));
|
15158
15158
|
function g(u) {
|
15159
15159
|
return u.position === "left" ? "image-message__left" : "image-message__right";
|
15160
15160
|
}
|
@@ -15171,40 +15171,40 @@ const j1 = {
|
|
15171
15171
|
width: "32"
|
15172
15172
|
}, null, 8, W1)) : b("", !0),
|
15173
15173
|
e.message.subText ? (c(), d("p", K1, w(e.message.subText), 1)) : b("", !0),
|
15174
|
-
|
15175
|
-
|
15174
|
+
l("div", J1, [
|
15175
|
+
l("div", {
|
15176
15176
|
class: "image-message__preview-button",
|
15177
15177
|
onClick: m[0] || (m[0] = (p) => t.value = !0),
|
15178
15178
|
onMouseenter: i,
|
15179
15179
|
onMouseleave: m[1] || (m[1] = (p) => A.value = !A.value)
|
15180
15180
|
}, [
|
15181
|
-
|
15181
|
+
l("img", {
|
15182
15182
|
class: "image-message__preview-image",
|
15183
|
-
style:
|
15183
|
+
style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
15184
15184
|
src: e.message.url,
|
15185
15185
|
alt: e.message.alt
|
15186
15186
|
}, null, 12, G1),
|
15187
|
-
L(
|
15188
|
-
default:
|
15187
|
+
L(q, { name: "modal-fade" }, {
|
15188
|
+
default: H(() => [
|
15189
15189
|
A.value ? (c(), d("div", Z1, [
|
15190
15190
|
e.message.views ? (c(), d("div", X1, [
|
15191
|
-
m[4] || (m[4] =
|
15192
|
-
|
15191
|
+
m[4] || (m[4] = l("span", { class: "pi pi-eye" }, null, -1)),
|
15192
|
+
l("p", null, w(e.message.views), 1)
|
15193
15193
|
])) : b("", !0),
|
15194
|
-
|
15195
|
-
g(e.message) === "image-message__right" &&
|
15194
|
+
l("span", el, w(e.message.time), 1),
|
15195
|
+
g(e.message) === "image-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15196
15196
|
key: 1,
|
15197
|
-
class: x(["image-message__status",
|
15197
|
+
class: x(["image-message__status", r.value])
|
15198
15198
|
}, [
|
15199
15199
|
e.message.status !== "sent" ? (c(), d("span", fl)) : b("", !0),
|
15200
|
-
m[5] || (m[5] =
|
15200
|
+
m[5] || (m[5] = l("span", { class: "pi pi-check" }, null, -1))
|
15201
15201
|
], 2)) : b("", !0)
|
15202
15202
|
])) : b("", !0)
|
15203
15203
|
]),
|
15204
15204
|
_: 1
|
15205
15205
|
}),
|
15206
|
-
L(
|
15207
|
-
default:
|
15206
|
+
L(q, { name: "modal-fade" }, {
|
15207
|
+
default: H(() => [
|
15208
15208
|
A.value ? (c(), d("a", {
|
15209
15209
|
key: 0,
|
15210
15210
|
class: "image-message__download-button",
|
@@ -15212,27 +15212,27 @@ const j1 = {
|
|
15212
15212
|
download: "",
|
15213
15213
|
target: "_blank"
|
15214
15214
|
}, m[6] || (m[6] = [
|
15215
|
-
|
15215
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
15216
15216
|
]), 8, tl)) : b("", !0)
|
15217
15217
|
]),
|
15218
15218
|
_: 1
|
15219
15219
|
})
|
15220
15220
|
], 32),
|
15221
|
-
L(
|
15222
|
-
default:
|
15221
|
+
L(q, { name: "modal-fade" }, {
|
15222
|
+
default: H(() => [
|
15223
15223
|
a.value && e.message.actions ? (c(), d("button", {
|
15224
15224
|
key: 0,
|
15225
15225
|
class: "image-message__menu-button",
|
15226
15226
|
onClick: m[2] || (m[2] = (p) => n.value = !n.value)
|
15227
15227
|
}, m[7] || (m[7] = [
|
15228
|
-
|
15228
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15229
15229
|
]))) : b("", !0)
|
15230
15230
|
]),
|
15231
15231
|
_: 1
|
15232
15232
|
}),
|
15233
|
-
L(
|
15234
|
-
default:
|
15235
|
-
n.value && e.message.actions ? (c(),
|
15233
|
+
L(q, { name: "context-menu" }, {
|
15234
|
+
default: H(() => [
|
15235
|
+
n.value && e.message.actions ? (c(), F(j(je), {
|
15236
15236
|
key: 0,
|
15237
15237
|
class: "image-message__context-menu",
|
15238
15238
|
actions: e.message.actions,
|
@@ -15242,23 +15242,23 @@ const j1 = {
|
|
15242
15242
|
_: 1
|
15243
15243
|
}),
|
15244
15244
|
e.message.text ? (c(), d("div", nl, [
|
15245
|
-
|
15245
|
+
l("p", null, w(e.message.text), 1)
|
15246
15246
|
])) : b("", !0)
|
15247
15247
|
]),
|
15248
|
-
(c(),
|
15249
|
-
L(
|
15250
|
-
default:
|
15248
|
+
(c(), F(Ot, { to: "body" }, [
|
15249
|
+
L(q, { name: "modal-fade" }, {
|
15250
|
+
default: H(() => [
|
15251
15251
|
t.value ? (c(), d("div", al, [
|
15252
|
-
|
15253
|
-
|
15252
|
+
l("div", Al, [
|
15253
|
+
l("button", {
|
15254
15254
|
class: "image-message__modal-close-button",
|
15255
15255
|
onClick: m[3] || (m[3] = (p) => t.value = !1)
|
15256
15256
|
}, m[8] || (m[8] = [
|
15257
|
-
|
15258
|
-
|
15257
|
+
l("span", null, [
|
15258
|
+
l("i", { class: "pi pi-times" })
|
15259
15259
|
], -1)
|
15260
15260
|
])),
|
15261
|
-
|
15261
|
+
l("img", {
|
15262
15262
|
class: "image-message__modal-image",
|
15263
15263
|
src: e.message.url,
|
15264
15264
|
alt: e.message.alt
|
@@ -15416,10 +15416,10 @@ fe.prototype = {
|
|
15416
15416
|
return a.j[e] = s, s;
|
15417
15417
|
}
|
15418
15418
|
};
|
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),
|
15419
|
+
const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Me = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK", Ie = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", _e = "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";
|
15420
15420
|
var sa = /* @__PURE__ */ Object.freeze({
|
15421
15421
|
__proto__: null,
|
15422
|
-
WORD:
|
15422
|
+
WORD: Me,
|
15423
15423
|
UWORD: Et,
|
15424
15424
|
LOCALHOST: Af,
|
15425
15425
|
TLD: Tt,
|
@@ -15448,11 +15448,11 @@ var sa = /* @__PURE__ */ Object.freeze({
|
|
15448
15448
|
AMPERSAND: Hf,
|
15449
15449
|
APOSTROPHE: Ff,
|
15450
15450
|
ASTERISK: Pf,
|
15451
|
-
AT:
|
15451
|
+
AT: Ie,
|
15452
15452
|
BACKSLASH: $f,
|
15453
15453
|
BACKTICK: Wf,
|
15454
15454
|
CARET: Kf,
|
15455
|
-
COLON:
|
15455
|
+
COLON: _e,
|
15456
15456
|
COMMA: Kt,
|
15457
15457
|
DOLLAR: Jf,
|
15458
15458
|
DOT: re,
|
@@ -15480,12 +15480,12 @@ function hl(e = []) {
|
|
15480
15480
|
const f = {};
|
15481
15481
|
fe.groups = f;
|
15482
15482
|
const t = new fe();
|
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, "@",
|
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, "@", Ie), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", _e), 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
15484
|
const n = ne(t, yt, $t, {
|
15485
15485
|
[kt]: !0
|
15486
15486
|
});
|
15487
15487
|
ne(n, yt, n);
|
15488
|
-
const a = ne(t, Le,
|
15488
|
+
const a = ne(t, Le, Me, {
|
15489
15489
|
[Nt]: !0
|
15490
15490
|
});
|
15491
15491
|
ne(a, Le, a);
|
@@ -15505,18 +15505,18 @@ function hl(e = []) {
|
|
15505
15505
|
ne(i, Mt, i), v(i, ml, i);
|
15506
15506
|
const o = v(i, pl);
|
15507
15507
|
ne(o, Mt, i);
|
15508
|
-
const
|
15508
|
+
const r = [[Le, a]], g = [[Le, null], [ht, A]];
|
15509
15509
|
for (let u = 0; u < yf.length; u++)
|
15510
|
-
|
15510
|
+
ve(t, yf[u], Tt, Me, r);
|
15511
15511
|
for (let u = 0; u < bf.length; u++)
|
15512
|
-
|
15512
|
+
ve(t, bf[u], Vt, Et, g);
|
15513
15513
|
xe(Tt, {
|
15514
15514
|
tld: !0,
|
15515
15515
|
ascii: !0
|
15516
15516
|
}, f), xe(Vt, {
|
15517
15517
|
utld: !0,
|
15518
15518
|
alpha: !0
|
15519
|
-
}, f),
|
15519
|
+
}, f), ve(t, "file", Nf, Me, r), ve(t, "mailto", Nf, Me, r), ve(t, "http", Ue, Me, r), ve(t, "https", Ue, Me, r), ve(t, "ftp", Ue, Me, r), ve(t, "ftps", Ue, Me, r), xe(Nf, {
|
15520
15520
|
scheme: !0,
|
15521
15521
|
ascii: !0
|
15522
15522
|
}, f), xe(Ue, {
|
@@ -15544,15 +15544,15 @@ function ia(e, f) {
|
|
15544
15544
|
const t = Ml(f.replace(/[A-Z]/g, (i) => i.toLowerCase())), n = t.length, a = [];
|
15545
15545
|
let A = 0, s = 0;
|
15546
15546
|
for (; s < n; ) {
|
15547
|
-
let i = e, o = null,
|
15547
|
+
let i = e, o = null, r = 0, g = null, u = -1, m = -1;
|
15548
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++),
|
15550
|
-
A -= u, s -= m,
|
15549
|
+
i = o, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), r += t[s].length, A += t[s].length, s++;
|
15550
|
+
A -= u, s -= m, r -= u, a.push({
|
15551
15551
|
t: g.t,
|
15552
15552
|
// token type/name
|
15553
|
-
v: f.slice(A -
|
15553
|
+
v: f.slice(A - r, A),
|
15554
15554
|
// string value
|
15555
|
-
s: A -
|
15555
|
+
s: A - r,
|
15556
15556
|
// start index
|
15557
15557
|
e: A
|
15558
15558
|
// end index (excluding)
|
@@ -15569,7 +15569,7 @@ function Ml(e) {
|
|
15569
15569
|
}
|
15570
15570
|
return f;
|
15571
15571
|
}
|
15572
|
-
function
|
15572
|
+
function ve(e, f, t, n, a) {
|
15573
15573
|
let A;
|
15574
15574
|
const s = f.length;
|
15575
15575
|
for (let i = 0; i < s - 1; i++) {
|
@@ -15782,8 +15782,8 @@ oa.prototype = {
|
|
15782
15782
|
* @param {Options} options Formattinng options
|
15783
15783
|
*/
|
15784
15784
|
render(e) {
|
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),
|
15786
|
-
return s.href = n, i && (s.class = i), o && (s.target = o),
|
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), r = e.get("rel", t, f), g = e.getObj("attributes", t, f), u = e.getObj("events", t, f);
|
15786
|
+
return s.href = n, i && (s.class = i), o && (s.target = o), r && (s.rel = r), g && Fe(s, g), {
|
15787
15787
|
tagName: a,
|
15788
15788
|
attributes: s,
|
15789
15789
|
content: A,
|
@@ -15824,39 +15824,39 @@ const Sn = ot("email", {
|
|
15824
15824
|
*/
|
15825
15825
|
hasProtocol() {
|
15826
15826
|
const e = this.tk;
|
15827
|
-
return e.length >= 2 && e[0].t !== Af && e[1].t ===
|
15827
|
+
return e.length >= 2 && e[0].t !== Af && e[1].t === _e;
|
15828
15828
|
}
|
15829
15829
|
}), ae = (e) => new fe(e);
|
15830
15830
|
function bl({
|
15831
15831
|
groups: e
|
15832
15832
|
}) {
|
15833
|
-
const f = e.domain.concat([Hf, Pf,
|
15833
|
+
const f = e.domain.concat([Hf, Pf, Ie, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, _e, 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
15834
|
V(A, n, A), V(A, e.domain, A);
|
15835
15835
|
const s = ae(), i = ae(), o = ae();
|
15836
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
|
15838
|
-
v(A,
|
15837
|
+
const r = v(s, Ie);
|
15838
|
+
v(A, Ie, r), v(i, Ie, r), v(o, Ie, r);
|
15839
15839
|
const g = v(A, re);
|
15840
15840
|
V(g, n, A), V(g, e.domain, A);
|
15841
15841
|
const u = ae();
|
15842
|
-
V(
|
15842
|
+
V(r, e.domain, u), V(u, e.domain, u);
|
15843
15843
|
const m = v(u, re);
|
15844
15844
|
V(m, e.domain, u);
|
15845
15845
|
const p = ae(Sn);
|
15846
|
-
V(m, e.tld, p), V(m, e.utld, p), v(
|
15846
|
+
V(m, e.tld, p), V(m, e.utld, p), v(r, Af, p);
|
15847
15847
|
const h = v(u, ue);
|
15848
15848
|
V(h, e.domain, u), V(p, e.domain, u), v(p, re, m), v(p, ue, h);
|
15849
|
-
const M = v(p,
|
15849
|
+
const M = v(p, _e);
|
15850
15850
|
V(M, e.numeric, Sn);
|
15851
15851
|
const y = v(s, ue), _ = v(s, re);
|
15852
15852
|
V(y, e.domain, s), V(_, n, A), V(_, e.domain, s);
|
15853
15853
|
const k = ae(vf);
|
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,
|
15855
|
-
const
|
15856
|
-
V(
|
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, Ie, r);
|
15855
|
+
const D = v(k, _e), N = ae(vf);
|
15856
|
+
V(D, e.numeric, N);
|
15857
15857
|
const E = ae(vf), S = ae();
|
15858
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,
|
15859
|
+
const T = v(i, _e), O = v(o, _e), Q = v(O, ce), C = v(Q, ce);
|
15860
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);
|
15861
15861
|
const B = [
|
15862
15862
|
[Xe, ef],
|
@@ -15877,12 +15877,12 @@ function bl({
|
|
15877
15877
|
// <>
|
15878
15878
|
];
|
15879
15879
|
for (let R = 0; R < B.length; R++) {
|
15880
|
-
const [te,
|
15881
|
-
v(S, te, le), v(le,
|
15880
|
+
const [te, pe] = B[R], le = v(E, te);
|
15881
|
+
v(S, te, le), v(le, pe, E);
|
15882
15882
|
const Y = ae(vf);
|
15883
15883
|
V(le, f, Y);
|
15884
15884
|
const W = ae();
|
15885
|
-
V(le, t), V(Y, f, Y), V(Y, t, W), V(W, f, Y), V(W, t, W), v(Y,
|
15885
|
+
V(le, t), V(Y, f, Y), V(Y, t, W), V(W, f, Y), V(W, t, W), v(Y, pe, E), v(W, pe, E);
|
15886
15886
|
}
|
15887
15887
|
return v(a, Af, k), v(a, Wt, yl), {
|
15888
15888
|
start: a,
|
@@ -15892,11 +15892,11 @@ function bl({
|
|
15892
15892
|
function vl(e, f, t) {
|
15893
15893
|
let n = t.length, a = 0, A = [], s = [];
|
15894
15894
|
for (; a < n; ) {
|
15895
|
-
let i = e, o = null,
|
15895
|
+
let i = e, o = null, r = null, g = 0, u = null, m = -1;
|
15896
15896
|
for (; a < n && !(o = i.go(t[a].t)); )
|
15897
15897
|
s.push(t[a++]);
|
15898
|
-
for (; a < n && (
|
15899
|
-
o = null, i =
|
15898
|
+
for (; a < n && (r = o || i.go(t[a].t)); )
|
15899
|
+
o = null, i = r, i.accepts() ? (m = 0, u = i) : m >= 0 && m++, a++, g++;
|
15900
15900
|
if (m < 0)
|
15901
15901
|
a -= g, a < n && (s.push(t[a]), a++);
|
15902
15902
|
else {
|
@@ -16006,21 +16006,21 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16006
16006
|
}
|
16007
16007
|
const o = () => {
|
16008
16008
|
A.value = !0;
|
16009
|
-
},
|
16009
|
+
}, r = () => {
|
16010
16010
|
A.value = !1, a.value = !1;
|
16011
16011
|
}, g = U(() => $e(t.message.status)), u = (h) => {
|
16012
|
-
|
16012
|
+
r(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
|
16013
16013
|
}, m = () => {
|
16014
|
-
|
16014
|
+
r(), n("action", { messageId: t.message.messageId, type: "views" });
|
16015
16015
|
};
|
16016
16016
|
function p(h) {
|
16017
16017
|
return h.position === "left" ? "text-message__left" : "text-message__right";
|
16018
16018
|
}
|
16019
16019
|
return (h, M) => (c(), d("div", Nl, [
|
16020
|
-
|
16020
|
+
l("div", {
|
16021
16021
|
class: x(p(e.message)),
|
16022
16022
|
messageId: e.message.messageId,
|
16023
|
-
onMouseleave:
|
16023
|
+
onMouseleave: r
|
16024
16024
|
}, [
|
16025
16025
|
e.message.avatar ? (c(), d("img", {
|
16026
16026
|
key: 0,
|
@@ -16028,34 +16028,34 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16028
16028
|
src: e.message.avatar,
|
16029
16029
|
height: "32",
|
16030
16030
|
width: "32",
|
16031
|
-
style:
|
16031
|
+
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16032
16032
|
}, null, 12, jl)) : b("", !0),
|
16033
16033
|
e.message.subText ? (c(), d("p", El, w(e.message.subText), 1)) : b("", !0),
|
16034
|
-
|
16034
|
+
l("div", {
|
16035
16035
|
class: "text-message__content",
|
16036
16036
|
onMouseenter: o
|
16037
16037
|
}, [
|
16038
|
-
|
16038
|
+
l("p", {
|
16039
16039
|
innerHTML: s.value,
|
16040
16040
|
class: "text-message__text",
|
16041
16041
|
onClick: i
|
16042
16042
|
}, null, 8, Tl),
|
16043
|
-
|
16043
|
+
l("div", Vl, [
|
16044
16044
|
e.message.views ? (c(), d("div", {
|
16045
16045
|
key: 0,
|
16046
16046
|
class: "text-message__views",
|
16047
16047
|
onClick: m
|
16048
16048
|
}, [
|
16049
|
-
M[1] || (M[1] =
|
16050
|
-
|
16049
|
+
M[1] || (M[1] = l("span", { class: "pi pi-eye" }, null, -1)),
|
16050
|
+
l("p", null, w(e.message.views), 1)
|
16051
16051
|
])) : b("", !0),
|
16052
16052
|
e.message.time ? (c(), d("span", xl, w(e.message.time), 1)) : b("", !0),
|
16053
|
-
p(e.message) === "text-message__right" &&
|
16053
|
+
p(e.message) === "text-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16054
16054
|
key: 2,
|
16055
16055
|
class: x(["text-message__status", g.value])
|
16056
16056
|
}, [
|
16057
16057
|
e.message.status !== "sent" ? (c(), d("span", Sl)) : b("", !0),
|
16058
|
-
M[2] || (M[2] =
|
16058
|
+
M[2] || (M[2] = l("span", { class: "pi pi-check" }, null, -1))
|
16059
16059
|
], 2)) : b("", !0)
|
16060
16060
|
]),
|
16061
16061
|
A.value && e.message.actions ? (c(), d("button", {
|
@@ -16063,11 +16063,11 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16063
16063
|
class: "text-message__menu-button",
|
16064
16064
|
onClick: M[0] || (M[0] = (y) => a.value = !a.value)
|
16065
16065
|
}, M[3] || (M[3] = [
|
16066
|
-
|
16066
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16067
16067
|
]))) : b("", !0),
|
16068
|
-
L(
|
16069
|
-
default:
|
16070
|
-
a.value && e.message.actions ? (c(),
|
16068
|
+
L(q, null, {
|
16069
|
+
default: H(() => [
|
16070
|
+
a.value && e.message.actions ? (c(), F(j(je), {
|
16071
16071
|
key: 0,
|
16072
16072
|
class: "text-message__context-menu",
|
16073
16073
|
actions: e.message.actions,
|
@@ -16100,7 +16100,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16100
16100
|
setup(e) {
|
16101
16101
|
const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1), o = () => {
|
16102
16102
|
i.value = !0;
|
16103
|
-
},
|
16103
|
+
}, r = () => {
|
16104
16104
|
i.value = !1, s.value = !1;
|
16105
16105
|
}, g = () => {
|
16106
16106
|
}, u = U(() => $e(f.message.status));
|
@@ -16108,22 +16108,22 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16108
16108
|
t.value && (n.value ? t.value.pause() : t.value.play(), n.value = !n.value);
|
16109
16109
|
}
|
16110
16110
|
const p = (k) => {
|
16111
|
-
const
|
16112
|
-
return `${
|
16111
|
+
const D = Math.floor(k / 60), N = Math.floor(k % 60);
|
16112
|
+
return `${D.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
16113
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);
|
16114
16114
|
function _(k) {
|
16115
16115
|
return k.position === "left" ? "audio-message__left" : "audio-message__right";
|
16116
16116
|
}
|
16117
|
-
return
|
16117
|
+
return Ne(() => {
|
16118
16118
|
t.value != null && (t.value.addEventListener("loadedmetadata", () => {
|
16119
16119
|
a.value = t.value != null ? t.value.duration : 0;
|
16120
16120
|
}), t.value.addEventListener("timeupdate", () => {
|
16121
16121
|
A.value = t.value != null ? t.value.currentTime : 0;
|
16122
16122
|
}));
|
16123
|
-
}), (k,
|
16123
|
+
}), (k, D) => (c(), d("div", {
|
16124
16124
|
class: x(["audio-message", _(e.message)]),
|
16125
16125
|
messageId: e.message.messageId,
|
16126
|
-
onMouseleave:
|
16126
|
+
onMouseleave: r
|
16127
16127
|
}, [
|
16128
16128
|
e.message.avatar ? (c(), d("img", {
|
16129
16129
|
key: 0,
|
@@ -16131,69 +16131,69 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16131
16131
|
src: e.message.avatar,
|
16132
16132
|
height: "32",
|
16133
16133
|
width: "32",
|
16134
|
-
style:
|
16134
|
+
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16135
16135
|
}, null, 12, Ll)) : b("", !0),
|
16136
16136
|
e.message.subText ? (c(), d("p", Ul, w(e.message.subText), 1)) : b("", !0),
|
16137
|
-
|
16137
|
+
l("div", {
|
16138
16138
|
class: "audio-message__content",
|
16139
16139
|
onMouseenter: o
|
16140
16140
|
}, [
|
16141
|
-
|
16141
|
+
l("audio", {
|
16142
16142
|
ref_key: "player",
|
16143
16143
|
ref: t,
|
16144
16144
|
src: e.message.url
|
16145
16145
|
}, null, 8, Bl),
|
16146
|
-
|
16146
|
+
ke(l("button", {
|
16147
16147
|
class: "audio-message__play",
|
16148
16148
|
onClick: m
|
16149
|
-
},
|
16150
|
-
|
16149
|
+
}, D[1] || (D[1] = [
|
16150
|
+
l("span", { class: "pi pi-play" }, null, -1)
|
16151
16151
|
]), 512), [
|
16152
16152
|
[Df, !n.value]
|
16153
16153
|
]),
|
16154
|
-
|
16154
|
+
ke(l("button", {
|
16155
16155
|
class: "audio-message__pause",
|
16156
16156
|
onClick: m
|
16157
|
-
},
|
16158
|
-
|
16157
|
+
}, D[2] || (D[2] = [
|
16158
|
+
l("span", { class: "pi pi-pause" }, null, -1)
|
16159
16159
|
]), 512), [
|
16160
16160
|
[Df, n.value]
|
16161
16161
|
]),
|
16162
|
-
|
16163
|
-
|
16162
|
+
l("div", Ql, [
|
16163
|
+
l("div", {
|
16164
16164
|
class: "audio-message__progress-bar",
|
16165
|
-
style:
|
16165
|
+
style: P({ width: y.value + "%" })
|
16166
16166
|
}, null, 4)
|
16167
16167
|
]),
|
16168
|
-
|
16169
|
-
|
16170
|
-
|
16171
|
-
_(e.message) === "audio-message__right" &&
|
16168
|
+
l("p", Rl, w(`${h.value} / ${M.value}`), 1),
|
16169
|
+
l("div", Yl, [
|
16170
|
+
l("span", ql, w(e.message.time), 1),
|
16171
|
+
_(e.message) === "audio-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16172
16172
|
key: 0,
|
16173
16173
|
class: x(["audio-message__status", u.value])
|
16174
16174
|
}, [
|
16175
16175
|
e.message.status !== "sent" ? (c(), d("span", Hl)) : b("", !0),
|
16176
|
-
|
16176
|
+
D[3] || (D[3] = l("span", { class: "pi pi-check" }, null, -1))
|
16177
16177
|
], 2)) : b("", !0)
|
16178
16178
|
]),
|
16179
16179
|
i.value && e.message.actions ? (c(), d("button", {
|
16180
16180
|
key: 0,
|
16181
16181
|
class: "audio-message__menu-button",
|
16182
|
-
onClick:
|
16183
|
-
},
|
16184
|
-
|
16182
|
+
onClick: D[0] || (D[0] = (N) => s.value = !s.value)
|
16183
|
+
}, D[4] || (D[4] = [
|
16184
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16185
16185
|
]))) : b("", !0),
|
16186
|
-
|
16186
|
+
l("a", {
|
16187
16187
|
class: "audio-message__download-button",
|
16188
16188
|
href: e.message.url,
|
16189
16189
|
download: "",
|
16190
16190
|
target: "_blank"
|
16191
|
-
},
|
16192
|
-
|
16191
|
+
}, D[5] || (D[5] = [
|
16192
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
16193
16193
|
]), 8, Fl),
|
16194
|
-
L(
|
16195
|
-
default:
|
16196
|
-
s.value && e.message.actions ? (c(),
|
16194
|
+
L(q, null, {
|
16195
|
+
default: H(() => [
|
16196
|
+
s.value && e.message.actions ? (c(), F(j(je), {
|
16197
16197
|
key: 0,
|
16198
16198
|
class: "audio-message__context-menu",
|
16199
16199
|
actions: e.message.actions,
|
@@ -16203,7 +16203,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16203
16203
|
_: 1
|
16204
16204
|
}),
|
16205
16205
|
e.message.text ? (c(), d("div", Pl, [
|
16206
|
-
|
16206
|
+
l("p", null, w(e.message.text), 1)
|
16207
16207
|
])) : b("", !0)
|
16208
16208
|
], 32)
|
16209
16209
|
], 42, Cl));
|
@@ -16220,8 +16220,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16220
16220
|
},
|
16221
16221
|
setup(e) {
|
16222
16222
|
return (f, t) => (c(), d("div", Kl, [
|
16223
|
-
|
16224
|
-
|
16223
|
+
l("div", Jl, [
|
16224
|
+
l("p", Gl, w(e.message.text), 1)
|
16225
16225
|
])
|
16226
16226
|
]));
|
16227
16227
|
}
|
@@ -16256,7 +16256,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16256
16256
|
function t(h) {
|
16257
16257
|
return h.position === "left" ? "video-message__left" : "video-message__right";
|
16258
16258
|
}
|
16259
|
-
const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), o = I(!1),
|
16259
|
+
const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), o = I(!1), r = () => {
|
16260
16260
|
}, g = () => {
|
16261
16261
|
i.value = !0, o.value = !0;
|
16262
16262
|
}, u = () => {
|
@@ -16279,44 +16279,44 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16279
16279
|
width: "32"
|
16280
16280
|
}, null, 8, fr)) : b("", !0),
|
16281
16281
|
e.message.subText ? (c(), d("p", tr, w(e.message.subText), 1)) : b("", !0),
|
16282
|
-
|
16283
|
-
|
16282
|
+
l("div", nr, [
|
16283
|
+
l("div", {
|
16284
16284
|
class: "video-message__preview-button",
|
16285
16285
|
onClick: M[0] || (M[0] = (y) => A.value = !0),
|
16286
16286
|
onMouseenter: g,
|
16287
16287
|
onMouseleave: M[1] || (M[1] = (y) => o.value = !o.value)
|
16288
16288
|
}, [
|
16289
|
-
|
16289
|
+
l("video", {
|
16290
16290
|
ref_key: "previewPlayer",
|
16291
16291
|
ref: a,
|
16292
16292
|
class: "video-message__video",
|
16293
|
-
style:
|
16293
|
+
style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
16294
16294
|
onEnded: p,
|
16295
16295
|
src: e.message.url,
|
16296
16296
|
muted: !0,
|
16297
16297
|
autoplay: ""
|
16298
16298
|
}, null, 44, ar),
|
16299
|
-
L(
|
16300
|
-
default:
|
16299
|
+
L(q, { name: "modal-fade" }, {
|
16300
|
+
default: H(() => [
|
16301
16301
|
o.value ? (c(), d("div", Ar, [
|
16302
16302
|
e.message.views ? (c(), d("div", sr, [
|
16303
|
-
M[4] || (M[4] =
|
16304
|
-
|
16303
|
+
M[4] || (M[4] = l("span", { class: "pi pi-eye" }, null, -1)),
|
16304
|
+
l("p", null, w(e.message.views), 1)
|
16305
16305
|
])) : b("", !0),
|
16306
|
-
|
16307
|
-
t(e.message) === "video-message__right" &&
|
16306
|
+
l("span", ir, w(e.message.time), 1),
|
16307
|
+
t(e.message) === "video-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16308
16308
|
key: 1,
|
16309
16309
|
class: x(["video-message__status", m.value])
|
16310
16310
|
}, [
|
16311
16311
|
e.message.status !== "sent" ? (c(), d("span", or)) : b("", !0),
|
16312
|
-
M[5] || (M[5] =
|
16312
|
+
M[5] || (M[5] = l("span", { class: "pi pi-check" }, null, -1))
|
16313
16313
|
], 2)) : b("", !0)
|
16314
16314
|
])) : b("", !0)
|
16315
16315
|
]),
|
16316
16316
|
_: 1
|
16317
16317
|
}),
|
16318
|
-
L(
|
16319
|
-
default:
|
16318
|
+
L(q, { name: "modal-fade" }, {
|
16319
|
+
default: H(() => [
|
16320
16320
|
o.value ? (c(), d("a", {
|
16321
16321
|
key: 0,
|
16322
16322
|
class: "video-message__download-button",
|
@@ -16324,53 +16324,53 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16324
16324
|
download: "",
|
16325
16325
|
target: "_blank"
|
16326
16326
|
}, M[6] || (M[6] = [
|
16327
|
-
|
16327
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
16328
16328
|
]), 8, lr)) : b("", !0)
|
16329
16329
|
]),
|
16330
16330
|
_: 1
|
16331
16331
|
})
|
16332
16332
|
], 32),
|
16333
|
-
L(
|
16334
|
-
default:
|
16333
|
+
L(q, { name: "modal-fade" }, {
|
16334
|
+
default: H(() => [
|
16335
16335
|
i.value && e.message.actions ? (c(), d("button", {
|
16336
16336
|
key: 0,
|
16337
16337
|
class: "video-message__menu-button",
|
16338
16338
|
onClick: M[2] || (M[2] = (y) => s.value = !s.value)
|
16339
16339
|
}, M[7] || (M[7] = [
|
16340
|
-
|
16340
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16341
16341
|
]))) : b("", !0)
|
16342
16342
|
]),
|
16343
16343
|
_: 1
|
16344
16344
|
}),
|
16345
|
-
L(
|
16346
|
-
default:
|
16347
|
-
s.value && e.message.actions ? (c(),
|
16345
|
+
L(q, { name: "context-menu" }, {
|
16346
|
+
default: H(() => [
|
16347
|
+
s.value && e.message.actions ? (c(), F(j(je), {
|
16348
16348
|
key: 0,
|
16349
16349
|
class: "video-message__context-menu",
|
16350
16350
|
actions: e.message.actions,
|
16351
|
-
onClick:
|
16351
|
+
onClick: r
|
16352
16352
|
}, null, 8, ["actions"])) : b("", !0)
|
16353
16353
|
]),
|
16354
16354
|
_: 1
|
16355
16355
|
}),
|
16356
16356
|
e.message.text ? (c(), d("div", rr, [
|
16357
|
-
|
16357
|
+
l("p", null, w(e.message.text), 1)
|
16358
16358
|
])) : b("", !0)
|
16359
16359
|
]),
|
16360
|
-
(c(),
|
16361
|
-
L(
|
16362
|
-
default:
|
16360
|
+
(c(), F(Ot, { to: "body" }, [
|
16361
|
+
L(q, { name: "modal-fade" }, {
|
16362
|
+
default: H(() => [
|
16363
16363
|
A.value ? (c(), d("div", ur, [
|
16364
|
-
|
16365
|
-
|
16364
|
+
l("div", cr, [
|
16365
|
+
l("button", {
|
16366
16366
|
class: "video-message__modal-close-button",
|
16367
16367
|
onClick: M[3] || (M[3] = (y) => A.value = !1)
|
16368
16368
|
}, M[8] || (M[8] = [
|
16369
|
-
|
16370
|
-
|
16369
|
+
l("span", null, [
|
16370
|
+
l("i", { class: "pi pi-times" })
|
16371
16371
|
], -1)
|
16372
16372
|
])),
|
16373
|
-
|
16373
|
+
l("video", {
|
16374
16374
|
ref_key: "player",
|
16375
16375
|
ref: n,
|
16376
16376
|
class: "video-message__modal-video",
|
@@ -16418,7 +16418,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16418
16418
|
return t.position === "left" ? "call-message__left" : "call-message__right";
|
16419
16419
|
}
|
16420
16420
|
return (t, n) => (c(), d("div", pr, [
|
16421
|
-
|
16421
|
+
l("div", {
|
16422
16422
|
class: x(f(e.message)),
|
16423
16423
|
messageId: e.message.messageId
|
16424
16424
|
}, [
|
@@ -16428,18 +16428,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16428
16428
|
src: e.message.avatar,
|
16429
16429
|
height: "32",
|
16430
16430
|
width: "32",
|
16431
|
-
style:
|
16431
|
+
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16432
16432
|
}, null, 12, Mr)) : b("", !0),
|
16433
16433
|
e.message.subText ? (c(), d("p", yr, w(e.message.subText), 1)) : b("", !0),
|
16434
|
-
|
16435
|
-
|
16434
|
+
l("div", br, [
|
16435
|
+
l("span", {
|
16436
16436
|
class: "call-message__icon pi pi-phone",
|
16437
|
-
style:
|
16437
|
+
style: P({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
16438
16438
|
}, null, 4),
|
16439
16439
|
e.message.isMissedCall ? (c(), d("span", Ir, "Пропущенный аудиозвонок")) : (c(), d("span", vr, "Аудиозвонок")),
|
16440
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, "Нет ответа")),
|
16441
|
-
|
16442
|
-
|
16441
|
+
l("div", Nr, [
|
16442
|
+
l("span", Dr, w(e.message.time), 1)
|
16443
16443
|
])
|
16444
16444
|
])
|
16445
16445
|
], 10, hr)
|
@@ -16455,8 +16455,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16455
16455
|
},
|
16456
16456
|
setup(e) {
|
16457
16457
|
return (f, t) => (c(), d("div", Tr, [
|
16458
|
-
|
16459
|
-
|
16458
|
+
l("div", Vr, [
|
16459
|
+
l("p", xr, w(e.message.text), 1)
|
16460
16460
|
])
|
16461
16461
|
]));
|
16462
16462
|
}
|
@@ -16473,18 +16473,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16473
16473
|
},
|
16474
16474
|
setup(e) {
|
16475
16475
|
return (f, t) => (c(), d("div", Or, [
|
16476
|
-
|
16476
|
+
l("div", Cr, [
|
16477
16477
|
e.message.avatar ? (c(), d("img", {
|
16478
16478
|
key: 0,
|
16479
16479
|
class: "typing-message__avatar",
|
16480
16480
|
src: e.message.avatar,
|
16481
16481
|
height: "32",
|
16482
16482
|
width: "32",
|
16483
|
-
style:
|
16483
|
+
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16484
16484
|
}, null, 12, Lr)) : b("", !0),
|
16485
16485
|
e.message.subText ? (c(), d("p", Ur, w(e.message.subText), 1)) : b("", !0),
|
16486
|
-
t[0] || (t[0] =
|
16487
|
-
|
16486
|
+
t[0] || (t[0] = l("div", { class: "typing-message__loader-container" }, [
|
16487
|
+
l("div", { class: "typing-message__loader" })
|
16488
16488
|
], -1))
|
16489
16489
|
])
|
16490
16490
|
]));
|
@@ -16504,21 +16504,21 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16504
16504
|
const t = f, n = (A) => {
|
16505
16505
|
t("submit", A);
|
16506
16506
|
}, a = I(null);
|
16507
|
-
return (A, s) => (c(),
|
16508
|
-
default:
|
16509
|
-
|
16510
|
-
|
16511
|
-
|
16507
|
+
return (A, s) => (c(), F(q, { name: "modal-fade" }, {
|
16508
|
+
default: H(() => [
|
16509
|
+
l("div", Qr, [
|
16510
|
+
l("div", Rr, [
|
16511
|
+
l("div", Yr, [
|
16512
16512
|
G(A.$slots, "default", {}, void 0, !0)
|
16513
16513
|
]),
|
16514
|
-
|
16515
|
-
|
16514
|
+
l("div", qr, [
|
16515
|
+
l("button", {
|
16516
16516
|
type: "button",
|
16517
16517
|
class: "btn-green",
|
16518
16518
|
"aria-label": "Close modal",
|
16519
16519
|
onClick: s[0] || (s[0] = (i) => n(a.value))
|
16520
16520
|
}, " OK "),
|
16521
|
-
|
16521
|
+
l("button", {
|
16522
16522
|
type: "button",
|
16523
16523
|
class: "btn-green",
|
16524
16524
|
"aria-label": "Close modal",
|
@@ -16537,7 +16537,7 @@ function en({ component: e, attrs: f }) {
|
|
16537
16537
|
const n = document.createElement("div");
|
16538
16538
|
document.body.appendChild(n);
|
16539
16539
|
const a = I({}), A = () => {
|
16540
|
-
|
16540
|
+
r.unmount(), document.body.removeChild(n);
|
16541
16541
|
}, s = () => {
|
16542
16542
|
A(), t(a.value);
|
16543
16543
|
}, i = (g) => {
|
@@ -16562,21 +16562,21 @@ function en({ component: e, attrs: f }) {
|
|
16562
16562
|
}
|
16563
16563
|
);
|
16564
16564
|
}
|
16565
|
-
}),
|
16566
|
-
|
16565
|
+
}), r = ja(o);
|
16566
|
+
r.mount(n);
|
16567
16567
|
});
|
16568
16568
|
}
|
16569
|
-
const
|
16569
|
+
const xu = async (e, f) => {
|
16570
16570
|
const t = await en({
|
16571
16571
|
//в component должен быть встроен emit change(key: value)
|
16572
|
-
component: import("./SelectUser2-
|
16572
|
+
component: import("./SelectUser2-Babd7Ddg.js"),
|
16573
16573
|
attrs: {
|
16574
16574
|
title: e,
|
16575
16575
|
users: f
|
16576
16576
|
}
|
16577
16577
|
});
|
16578
16578
|
return console.log("data", t), t;
|
16579
|
-
},
|
16579
|
+
}, Su = async (e) => {
|
16580
16580
|
const f = await en({
|
16581
16581
|
//в component должен быть встроен emit change(key: value)
|
16582
16582
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
@@ -16585,56 +16585,29 @@ const Tu = async (e, f) => {
|
|
16585
16585
|
}
|
16586
16586
|
});
|
16587
16587
|
return console.log("data", f), f;
|
16588
|
-
},
|
16588
|
+
}, zu = async (e) => await en({
|
16589
16589
|
//в component должен быть встроен emit change(key: value)
|
16590
16590
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
16591
16591
|
attrs: {
|
16592
16592
|
title: e
|
16593
16593
|
}
|
16594
|
-
}), Pr = ["id"],
|
16594
|
+
}), Pr = ["id"], Ou = {
|
16595
16595
|
__name: "BaseContainer",
|
16596
16596
|
props: {
|
16597
16597
|
height: String,
|
16598
|
-
width: String
|
16599
|
-
defaultTheme: {
|
16600
|
-
type: String,
|
16601
|
-
default: "green",
|
16602
|
-
required: !1
|
16603
|
-
}
|
16598
|
+
width: String
|
16604
16599
|
},
|
16605
16600
|
setup(e) {
|
16606
|
-
const f =
|
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", {
|
16601
|
+
const f = St();
|
16602
|
+
return Ct("chatAppId", f), (t, n) => (c(), d("div", {
|
16630
16603
|
class: "base",
|
16631
|
-
id:
|
16604
|
+
id: j(f)
|
16632
16605
|
}, [
|
16633
|
-
|
16606
|
+
l("div", {
|
16634
16607
|
class: "base__container",
|
16635
|
-
style:
|
16608
|
+
style: P({ height: e.height, width: e.width })
|
16636
16609
|
}, [
|
16637
|
-
G(
|
16610
|
+
G(t.$slots, "default")
|
16638
16611
|
], 4)
|
16639
16612
|
], 8, Pr));
|
16640
16613
|
}
|
@@ -16654,44 +16627,22 @@ const Tu = async (e, f) => {
|
|
16654
16627
|
required: !0
|
16655
16628
|
},
|
16656
16629
|
height: String,
|
16657
|
-
width: String
|
16658
|
-
defaultTheme: {
|
16659
|
-
type: String,
|
16660
|
-
default: "green",
|
16661
|
-
required: !1
|
16662
|
-
}
|
16630
|
+
width: String
|
16663
16631
|
},
|
16664
16632
|
emits: ["close-window", "get-size"],
|
16665
16633
|
setup(e, { emit: f }) {
|
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),
|
16634
|
+
const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), o = I(0), r = I(0), g = St();
|
16667
16635
|
Ct("chatAppId", g);
|
16668
|
-
const u =
|
16669
|
-
|
16670
|
-
|
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) => {
|
16636
|
+
const u = (h) => {
|
16637
|
+
s.value = !0, i.value = h.clientX - a.value.offsetLeft, o.value = h.clientY - a.value.offsetTop;
|
16638
|
+
}, m = () => s.value = !1, p = (h) => {
|
16688
16639
|
if (s.value) {
|
16689
|
-
const
|
16690
|
-
n.value.x =
|
16640
|
+
const M = h.clientX - i.value, y = h.clientY - o.value;
|
16641
|
+
n.value.x = M, n.value.y = y;
|
16691
16642
|
}
|
16692
16643
|
};
|
16693
|
-
return
|
16694
|
-
document.addEventListener("mousemove",
|
16644
|
+
return Ne(() => {
|
16645
|
+
document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
|
16695
16646
|
n.value.x = Math.max(
|
16696
16647
|
0,
|
16697
16648
|
Math.min(
|
@@ -16705,15 +16656,13 @@ const Tu = async (e, f) => {
|
|
16705
16656
|
window.innerHeight - a.value.offsetHeight
|
16706
16657
|
)
|
16707
16658
|
);
|
16708
|
-
}),
|
16709
|
-
|
16710
|
-
console.log(M), document.getElementById(g).dataset.theme = M;
|
16711
|
-
}), (M, y) => (c(), d("div", {
|
16659
|
+
}), r.value = a.value.offsetHeight - A.value.offsetHeight;
|
16660
|
+
}), (h, M) => (c(), d("div", {
|
16712
16661
|
ref_key: "element",
|
16713
16662
|
ref: a,
|
16714
16663
|
class: "float-window",
|
16715
|
-
id:
|
16716
|
-
style:
|
16664
|
+
id: j(g),
|
16665
|
+
style: P({
|
16717
16666
|
left: n.value.x + "px",
|
16718
16667
|
top: n.value.y + "px",
|
16719
16668
|
userSelect: s.value ? "none" : "auto",
|
@@ -16722,15 +16671,15 @@ const Tu = async (e, f) => {
|
|
16722
16671
|
display: "flex"
|
16723
16672
|
})
|
16724
16673
|
}, [
|
16725
|
-
|
16726
|
-
|
16674
|
+
l("div", Wr, [
|
16675
|
+
l("div", {
|
16727
16676
|
ref_key: "container",
|
16728
16677
|
ref: A,
|
16729
16678
|
class: "float-window__controls",
|
16730
|
-
style:
|
16731
|
-
onMousedown:
|
16732
|
-
onMouseup:
|
16733
|
-
onMouseleave:
|
16679
|
+
style: P({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
|
16680
|
+
onMousedown: u,
|
16681
|
+
onMouseup: m,
|
16682
|
+
onMouseleave: m
|
16734
16683
|
}, [
|
16735
16684
|
t.avatar ? (c(), d("img", {
|
16736
16685
|
key: 0,
|
@@ -16738,107 +16687,85 @@ const Tu = async (e, f) => {
|
|
16738
16687
|
src: t.avatar,
|
16739
16688
|
alt: t.title
|
16740
16689
|
}, null, 8, Kr)) : b("", !0),
|
16741
|
-
|
16742
|
-
|
16690
|
+
l("p", Jr, w(t.title), 1),
|
16691
|
+
l("button", {
|
16743
16692
|
class: "float-window__close-button",
|
16744
|
-
onClick:
|
16745
|
-
},
|
16746
|
-
|
16693
|
+
onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
|
16694
|
+
}, M[1] || (M[1] = [
|
16695
|
+
l("span", { class: "pi pi-times" }, null, -1)
|
16747
16696
|
]))
|
16748
16697
|
], 36),
|
16749
|
-
|
16698
|
+
l("div", {
|
16750
16699
|
class: "float-window__content",
|
16751
|
-
style:
|
16700
|
+
style: P({ height: r.value + "px" })
|
16752
16701
|
}, [
|
16753
|
-
G(
|
16702
|
+
G(h.$slots, "default", {}, void 0, !0)
|
16754
16703
|
], 4)
|
16755
16704
|
])
|
16756
16705
|
], 12, $r));
|
16757
16706
|
}
|
16758
|
-
},
|
16759
|
-
|
16760
|
-
|
16761
|
-
|
16762
|
-
|
16763
|
-
|
16764
|
-
|
16765
|
-
|
16766
|
-
|
16767
|
-
|
16768
|
-
|
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 = {
|
16707
|
+
}, Cu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-efd0f13a"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
|
16708
|
+
function tu(e, f) {
|
16709
|
+
return c(), d("div", Xr, [
|
16710
|
+
l("div", eu, [
|
16711
|
+
G(e.$slots, "first-col", {}, void 0, !0)
|
16712
|
+
]),
|
16713
|
+
l("div", fu, [
|
16714
|
+
G(e.$slots, "second-col", {}, void 0, !0)
|
16715
|
+
])
|
16716
|
+
]);
|
16717
|
+
}
|
16718
|
+
const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-a5df3fcf"]]), nu = { class: "extend-layout__container" }, au = { class: "extend-layout__first-col" }, Au = { class: "extend-layout__third-col" }, su = {
|
16792
16719
|
__name: "ExtendedLayout",
|
16793
16720
|
setup(e) {
|
16794
16721
|
const f = I(null);
|
16795
16722
|
let t = I(!1), n = I(0), a = I(0), A = I(0);
|
16796
|
-
const s = (
|
16797
|
-
|
16798
|
-
}, i = (
|
16723
|
+
const s = (r) => {
|
16724
|
+
r.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = r.clientX, A.value = r.clientX, document.addEventListener("mousemove", i));
|
16725
|
+
}, i = (r) => {
|
16799
16726
|
if (t.value) {
|
16800
|
-
const g = n.value + (
|
16727
|
+
const g = n.value + (r.clientX - A.value);
|
16801
16728
|
f.value.style.width = `${Math.max(270, g)}px`;
|
16802
16729
|
}
|
16803
16730
|
}, o = () => {
|
16804
16731
|
t.value = !1, document.removeEventListener("mousemove", i);
|
16805
16732
|
};
|
16806
|
-
return
|
16733
|
+
return Ne(() => {
|
16807
16734
|
f.value && (f.value.style.width = "350px");
|
16808
|
-
}), (
|
16809
|
-
|
16810
|
-
G(
|
16735
|
+
}), (r, g) => (c(), d("div", nu, [
|
16736
|
+
l("div", au, [
|
16737
|
+
G(r.$slots, "first-col", {}, void 0, !0)
|
16811
16738
|
]),
|
16812
|
-
|
16739
|
+
l("div", {
|
16813
16740
|
ref_key: "resizableDiv",
|
16814
16741
|
ref: f,
|
16815
16742
|
class: "extend-layout__second-col resizable-div",
|
16816
|
-
style:
|
16743
|
+
style: P({ userSelect: j(t) ? "none" : "auto" }),
|
16817
16744
|
onMousedown: s,
|
16818
16745
|
onMouseup: o
|
16819
16746
|
}, [
|
16820
|
-
G(
|
16747
|
+
G(r.$slots, "second-col", {}, void 0, !0)
|
16821
16748
|
], 36),
|
16822
|
-
|
16823
|
-
G(
|
16749
|
+
l("div", Au, [
|
16750
|
+
G(r.$slots, "third-col", {}, void 0, !0)
|
16824
16751
|
])
|
16825
16752
|
]));
|
16826
16753
|
}
|
16827
|
-
},
|
16828
|
-
function
|
16829
|
-
return c(), d("div",
|
16830
|
-
|
16754
|
+
}, Uu = /* @__PURE__ */ z(su, [["__scopeId", "data-v-7c3b977d"]]), iu = {}, ou = { class: "base-layout__container" }, lu = { class: "base-layout__first-col" };
|
16755
|
+
function ru(e, f) {
|
16756
|
+
return c(), d("div", ou, [
|
16757
|
+
l("div", lu, [
|
16831
16758
|
G(e.$slots, "default", {}, void 0, !0)
|
16832
16759
|
])
|
16833
16760
|
]);
|
16834
16761
|
}
|
16835
|
-
const
|
16762
|
+
const Bu = /* @__PURE__ */ z(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed"]]), uu = { class: "chat-wrapper" }, cu = {
|
16836
16763
|
key: 0,
|
16837
16764
|
class: "chat-wrapper__selected-chat"
|
16838
|
-
},
|
16765
|
+
}, du = {
|
16839
16766
|
key: 1,
|
16840
16767
|
style: { width: "100%" }
|
16841
|
-
},
|
16768
|
+
}, gu = /* @__PURE__ */ K({
|
16842
16769
|
__name: "ChatWrapper",
|
16843
16770
|
props: {
|
16844
16771
|
isOpenChatPanel: {
|
@@ -16851,64 +16778,64 @@ const Lu = /* @__PURE__ */ z(Au, [["render", ou], ["__scopeId", "data-v-e71ea0ed
|
|
16851
16778
|
}
|
16852
16779
|
},
|
16853
16780
|
setup(e) {
|
16854
|
-
return (f, t) => (c(), d("div",
|
16855
|
-
e.isSelectedChat ? (c(), d("div",
|
16781
|
+
return (f, t) => (c(), d("div", uu, [
|
16782
|
+
e.isSelectedChat ? (c(), d("div", cu, [
|
16856
16783
|
G(f.$slots, "default", {}, void 0, !0)
|
16857
|
-
])) : (c(), d("div",
|
16858
|
-
|
16784
|
+
])) : (c(), d("div", du, [
|
16785
|
+
l("p", null, w(j(Se)("layout.ChatWrapper.noSelectedChat")), 1)
|
16859
16786
|
])),
|
16860
16787
|
e.isOpenChatPanel ? (c(), d("div", {
|
16861
16788
|
key: 2,
|
16862
16789
|
class: "chat-wrapper__chat-panel",
|
16863
|
-
style:
|
16790
|
+
style: P({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
|
16864
16791
|
}, [
|
16865
16792
|
G(f.$slots, "chatpanel", {}, void 0, !0)
|
16866
16793
|
], 4)) : b("", !0)
|
16867
16794
|
]));
|
16868
16795
|
}
|
16869
|
-
}),
|
16796
|
+
}), Qu = /* @__PURE__ */ z(gu, [["__scopeId", "data-v-12c6a622"]]);
|
16870
16797
|
export {
|
16871
16798
|
Wl as A,
|
16872
16799
|
Un as B,
|
16873
16800
|
Er as C,
|
16874
16801
|
Xl as D,
|
16875
|
-
|
16802
|
+
Uu as E,
|
16876
16803
|
P1 as F,
|
16877
|
-
|
16878
|
-
|
16804
|
+
_u as G,
|
16805
|
+
wu as H,
|
16879
16806
|
ol as I,
|
16880
16807
|
dn as J,
|
16881
16808
|
Pe as K,
|
16882
16809
|
$e as L,
|
16883
16810
|
zr as S,
|
16884
16811
|
Ol as T,
|
16885
|
-
|
16812
|
+
bu as U,
|
16886
16813
|
mr as V,
|
16887
16814
|
z as _,
|
16888
16815
|
On as a,
|
16889
|
-
|
16890
|
-
|
16891
|
-
|
16892
|
-
|
16893
|
-
|
16894
|
-
|
16895
|
-
|
16896
|
-
|
16897
|
-
|
16816
|
+
pu as b,
|
16817
|
+
hu as c,
|
16818
|
+
Mu as d,
|
16819
|
+
yu as e,
|
16820
|
+
ku as f,
|
16821
|
+
Nu as g,
|
16822
|
+
Du as h,
|
16823
|
+
ju as i,
|
16824
|
+
Eu as j,
|
16898
16825
|
dt as k,
|
16899
16826
|
_s as l,
|
16900
16827
|
Fs as m,
|
16901
|
-
|
16902
|
-
|
16828
|
+
Tu as n,
|
16829
|
+
Vu as o,
|
16903
16830
|
je as p,
|
16904
|
-
|
16905
|
-
|
16906
|
-
|
16907
|
-
|
16908
|
-
|
16909
|
-
|
16910
|
-
|
16911
|
-
|
16912
|
-
|
16913
|
-
|
16831
|
+
Su as q,
|
16832
|
+
zu as r,
|
16833
|
+
Ou as s,
|
16834
|
+
Cu as t,
|
16835
|
+
xu as u,
|
16836
|
+
Lu as v,
|
16837
|
+
Bu as w,
|
16838
|
+
Qu as x,
|
16839
|
+
vu as y,
|
16840
|
+
Iu as z
|
16914
16841
|
};
|