prlg-ui 1.6.0 → 1.6.1
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.
- package/dist/FileIcon-DkEbi-bi.js +101 -0
- package/dist/FileIcon-sxADkCIe.cjs +1 -0
- package/dist/Image-CqmYPuqB.js +174 -0
- package/dist/Image-DDHrjTpr.cjs +1 -0
- package/dist/{TrashIcon-CI-cs4RF.js → TrashIcon-D9034G7A.js} +45 -100
- package/dist/TrashIcon-DJApIo8R.cjs +1 -0
- package/dist/{WarningFillIcon-IXRCDZt1.js → WarningFillIcon-CM57QlUR.js} +1 -1
- package/dist/WarningFillIcon-D5bEU2m7.cjs +1 -0
- package/dist/blocks/index.cjs.js +1 -1
- package/dist/blocks/index.es.js +147 -258
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +14 -14
- package/dist/index.d.ts +80 -34
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +96 -93
- package/dist/utils/parseFileSize.util.ts +21 -1
- package/package.json +1 -1
- package/dist/EyeIcon-DSS0kjsN.cjs +0 -1
- package/dist/EyeIcon-DvnVzBB3.js +0 -46
- package/dist/TrashIcon-7HM_h8Xj.cjs +0 -1
- package/dist/WarningFillIcon-DOUVCfcK.cjs +0 -1
package/dist/blocks/index.es.js
CHANGED
|
@@ -1,156 +1,45 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
class: "image-full-modal"
|
|
9
|
-
}, le = { class: "image-full-modal__wrapper" }, ie = { class: "image-full-modal__header" }, ne = { class: "image-full-modal__main" }, oe = ["src", "alt"], ce = /* @__PURE__ */ v({
|
|
10
|
-
__name: "ImageFullModal",
|
|
11
|
-
props: {
|
|
12
|
-
src: {},
|
|
13
|
-
alt: {}
|
|
14
|
-
},
|
|
15
|
-
setup(s, { expose: o }) {
|
|
16
|
-
const e = b(!1);
|
|
17
|
-
return o({
|
|
18
|
-
open: () => {
|
|
19
|
-
e.value = !0;
|
|
20
|
-
},
|
|
21
|
-
close: () => {
|
|
22
|
-
e.value = !1;
|
|
23
|
-
}
|
|
24
|
-
}), (i, l) => (n(), _(O, { to: "body" }, [
|
|
25
|
-
f(x, { name: "fade" }, {
|
|
26
|
-
default: B(() => [
|
|
27
|
-
e.value ? (n(), u("div", te, [
|
|
28
|
-
a("div", {
|
|
29
|
-
class: "image-full-modal__overlay",
|
|
30
|
-
onClick: l[0] || (l[0] = (r) => e.value = !1)
|
|
31
|
-
}),
|
|
32
|
-
a("div", le, [
|
|
33
|
-
a("div", ie, [
|
|
34
|
-
a("button", {
|
|
35
|
-
class: "image-full-modal__close",
|
|
36
|
-
onClick: l[1] || (l[1] = (r) => e.value = !1)
|
|
37
|
-
}, [
|
|
38
|
-
f(m(E))
|
|
39
|
-
])
|
|
40
|
-
]),
|
|
41
|
-
a("div", ne, [
|
|
42
|
-
a("img", {
|
|
43
|
-
src: i.src,
|
|
44
|
-
alt: i.alt
|
|
45
|
-
}, null, 8, oe)
|
|
46
|
-
]),
|
|
47
|
-
l[2] || (l[2] = a("div", { class: "image-full-modal__footer" }, null, -1))
|
|
48
|
-
])
|
|
49
|
-
])) : h("", !0)
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
})
|
|
53
|
-
]));
|
|
54
|
-
}
|
|
55
|
-
}), re = /* @__PURE__ */ C(ce, [["__scopeId", "data-v-edc1a47e"]]), de = ["src", "alt"], ue = /* @__PURE__ */ v({
|
|
56
|
-
__name: "Image",
|
|
57
|
-
props: {
|
|
58
|
-
src: {},
|
|
59
|
-
alt: {},
|
|
60
|
-
size: { default: "medium" },
|
|
61
|
-
fillScreen: { type: Boolean }
|
|
62
|
-
},
|
|
63
|
-
setup(s) {
|
|
64
|
-
const o = k("imageFullModal");
|
|
65
|
-
return (e, i) => (n(), u($, null, [
|
|
66
|
-
a("div", {
|
|
67
|
-
class: y(["image", `image--${e.size}`, { "image--fill-screen": e.fillScreen }])
|
|
68
|
-
}, [
|
|
69
|
-
e.fillScreen ? (n(), u("div", {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: "image__overlay",
|
|
72
|
-
onClick: i[0] || (i[0] = (l) => o.value?.open())
|
|
73
|
-
}, [
|
|
74
|
-
f(m(T))
|
|
75
|
-
])) : h("", !0),
|
|
76
|
-
a("img", {
|
|
77
|
-
src: e.src,
|
|
78
|
-
alt: e.alt
|
|
79
|
-
}, null, 8, de)
|
|
80
|
-
], 2),
|
|
81
|
-
e.fillScreen ? (n(), _(re, {
|
|
82
|
-
key: 0,
|
|
83
|
-
ref: "imageFullModal",
|
|
84
|
-
src: e.src,
|
|
85
|
-
alt: e.alt
|
|
86
|
-
}, null, 8, ["src", "alt"])) : h("", !0)
|
|
87
|
-
], 64));
|
|
88
|
-
}
|
|
89
|
-
}), me = /* @__PURE__ */ C(ue, [["__scopeId", "data-v-360a26ed"]]);
|
|
90
|
-
function F(s) {
|
|
91
|
-
return s.startsWith("image/") ? "image" : s === "application/pdf" ? "pdf" : s === "application/msword" || s === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : s === "application/vnd.ms-excel" || s === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
|
|
92
|
-
}
|
|
93
|
-
const fe = { class: "chat-file__content" }, _e = {
|
|
94
|
-
key: 1,
|
|
95
|
-
class: "chat-file__content-file"
|
|
96
|
-
}, pe = { class: "chat-file__content-file-icon" }, ve = { class: "chat-file__content-file-name" }, ge = /* @__PURE__ */ v({
|
|
1
|
+
import { defineComponent as g, computed as w, createElementBlock as u, openBlock as o, normalizeClass as h, unref as r, createElementVNode as l, createVNode as f, createBlock as p, mergeModels as y, useModel as b, useTemplateRef as k, ref as C, reactive as R, shallowRef as $, onMounted as x, Transition as A, withCtx as z, withDirectives as S, Fragment as F, renderList as B, resolveDynamicComponent as L, toDisplayString as _, vShow as T, createCommentVNode as I, vModelText as E, onUnmounted as D, withModifiers as U, createTextVNode as N } from "vue";
|
|
2
|
+
import { g as M, I as O, F as P, p as j } from "../Image-CqmYPuqB.js";
|
|
3
|
+
import { C as H, _ as V, F as q } from "../FileIcon-DkEbi-bi.js";
|
|
4
|
+
import { I as X, P as Y, S as G, A as J, C as K, T as Q, B as W } from "../TrashIcon-D9034G7A.js";
|
|
5
|
+
import { o as Z } from "../onClickOutside.util-CJueL_Rz.js";
|
|
6
|
+
import { d as ee } from "../dayjs.util-RJe77c19.js";
|
|
7
|
+
const se = { class: "chat-file__content" }, te = /* @__PURE__ */ g({
|
|
97
8
|
__name: "ChatFile",
|
|
98
9
|
props: {
|
|
99
10
|
file: {}
|
|
100
11
|
},
|
|
101
12
|
emits: ["deleteFile"],
|
|
102
|
-
setup(
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return G;
|
|
107
|
-
case "word":
|
|
108
|
-
return q;
|
|
109
|
-
case "excel":
|
|
110
|
-
return W;
|
|
111
|
-
case "other":
|
|
112
|
-
return L;
|
|
113
|
-
default:
|
|
114
|
-
return null;
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
return (r, t) => (n(), u("div", {
|
|
118
|
-
class: y(["chat-file", { "chat-file--image": m(F)(r.file.type) === "image" }])
|
|
13
|
+
setup(a, { emit: c }) {
|
|
14
|
+
const s = c, d = w(() => URL.createObjectURL(a.file));
|
|
15
|
+
return (t, m) => (o(), u("div", {
|
|
16
|
+
class: h(["chat-file", { "chat-file--image": r(M)(t.file.type) === "image" }])
|
|
119
17
|
}, [
|
|
120
|
-
|
|
18
|
+
l("button", {
|
|
121
19
|
class: "chat-file__delete",
|
|
122
|
-
onClick:
|
|
20
|
+
onClick: m[0] || (m[0] = (e) => s("deleteFile", t.file))
|
|
123
21
|
}, [
|
|
124
|
-
f(
|
|
22
|
+
f(r(H))
|
|
125
23
|
]),
|
|
126
|
-
|
|
127
|
-
|
|
24
|
+
l("div", se, [
|
|
25
|
+
r(M)(t.file.type) === "image" ? (o(), p(r(O), {
|
|
128
26
|
key: 0,
|
|
129
|
-
src:
|
|
130
|
-
alt:
|
|
27
|
+
src: d.value,
|
|
28
|
+
alt: t.file.name,
|
|
131
29
|
size: "large",
|
|
132
30
|
"fill-screen": ""
|
|
133
|
-
}, null, 8, ["src", "alt"])) : (
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
])),
|
|
139
|
-
t[1] || (t[1] = a("div", { class: "chat-file__info" }, [
|
|
140
|
-
a("div", { class: "chat-file__info-name" }, " PNG "),
|
|
141
|
-
a("div", { class: "chat-file__info-separator" }),
|
|
142
|
-
a("div", { class: "chat-file__info-size" }, " 34 MB ")
|
|
143
|
-
], -1))
|
|
31
|
+
}, null, 8, ["src", "alt"])) : (o(), p(r(P), {
|
|
32
|
+
key: 1,
|
|
33
|
+
file: t.file,
|
|
34
|
+
outlined: !1
|
|
35
|
+
}, null, 8, ["file"]))
|
|
144
36
|
])
|
|
145
37
|
], 2));
|
|
146
38
|
}
|
|
147
|
-
}),
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
function be(s) {
|
|
152
|
-
if (!s) return;
|
|
153
|
-
const o = Array.isArray(s) ? s : [s], e = {
|
|
39
|
+
}), ae = /* @__PURE__ */ V(te, [["__scopeId", "data-v-4956400c"]]);
|
|
40
|
+
function le(a) {
|
|
41
|
+
if (!a) return;
|
|
42
|
+
const c = Array.isArray(a) ? a : [a], s = {
|
|
154
43
|
image: ["image/*"],
|
|
155
44
|
pdf: ["application/pdf"],
|
|
156
45
|
excel: [
|
|
@@ -163,30 +52,30 @@ function be(s) {
|
|
|
163
52
|
],
|
|
164
53
|
all: ["*/*"]
|
|
165
54
|
};
|
|
166
|
-
return
|
|
55
|
+
return c.flatMap((d) => s[d] || []).join(",");
|
|
167
56
|
}
|
|
168
|
-
function
|
|
169
|
-
return new Promise((
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
const
|
|
175
|
-
let
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
|
|
57
|
+
function ie(a = {}) {
|
|
58
|
+
return new Promise((c) => {
|
|
59
|
+
const s = document.createElement("input");
|
|
60
|
+
s.type = "file", s.style.display = "none", a.maxFiles && a.maxFiles > 1 && (s.multiple = !0);
|
|
61
|
+
const d = le(a.accept);
|
|
62
|
+
d && (s.accept = d), s.addEventListener("change", (t) => {
|
|
63
|
+
const m = t.target;
|
|
64
|
+
let e = [];
|
|
65
|
+
if (m.files && m.files.length > 0 && (e = Array.from(m.files), a.maxFiles && e.length > a.maxFiles && (e = e.slice(0, a.maxFiles)), a.maxFileSize)) {
|
|
66
|
+
const i = j(a.maxFileSize);
|
|
67
|
+
e = e.filter((n) => n.size <= i);
|
|
179
68
|
}
|
|
180
|
-
|
|
181
|
-
}), document.body.appendChild(
|
|
69
|
+
c(e), document.body.removeChild(s);
|
|
70
|
+
}), document.body.appendChild(s), s.click();
|
|
182
71
|
});
|
|
183
72
|
}
|
|
184
|
-
const
|
|
73
|
+
const ne = { class: "chat-field-actions" }, oe = {
|
|
185
74
|
ref: "overlay",
|
|
186
75
|
class: "chat-field-actions__overlay"
|
|
187
|
-
},
|
|
76
|
+
}, ce = ["onClick"], de = { class: "chat-field-actions__overlay-item__label" }, me = ["disabled"], re = /* @__PURE__ */ g({
|
|
188
77
|
__name: "ChatFieldActions",
|
|
189
|
-
props: /* @__PURE__ */
|
|
78
|
+
props: /* @__PURE__ */ y({
|
|
190
79
|
actions: {},
|
|
191
80
|
disabled: { type: Boolean, default: !1 },
|
|
192
81
|
multiple: { type: Boolean, default: !0 }
|
|
@@ -195,63 +84,63 @@ const Ce = { class: "chat-field-actions" }, Fe = {
|
|
|
195
84
|
modelModifiers: {}
|
|
196
85
|
}),
|
|
197
86
|
emits: ["update:modelValue"],
|
|
198
|
-
setup(
|
|
199
|
-
const
|
|
87
|
+
setup(a) {
|
|
88
|
+
const c = b(a, "modelValue"), s = k("button"), d = k("overlay"), t = C(!1), m = R({
|
|
200
89
|
image: {
|
|
201
|
-
icon:
|
|
90
|
+
icon: $(X),
|
|
202
91
|
label: "Добавить изображение"
|
|
203
92
|
},
|
|
204
93
|
file: {
|
|
205
|
-
icon:
|
|
94
|
+
icon: $(q),
|
|
206
95
|
label: "Добавить файл"
|
|
207
96
|
}
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
accept:
|
|
97
|
+
}), e = (i) => {
|
|
98
|
+
ie({
|
|
99
|
+
accept: i === "image" ? ["image"] : ["pdf", "excel", "word"],
|
|
211
100
|
maxFileSize: "5mb",
|
|
212
101
|
maxFiles: 1
|
|
213
|
-
}).then((
|
|
214
|
-
|
|
102
|
+
}).then((n) => {
|
|
103
|
+
c.value ? c.value = a.multiple ? [...c.value, ...n] : n : c.value = [...n], t.value = !1;
|
|
215
104
|
});
|
|
216
105
|
};
|
|
217
|
-
return
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
}, { ignore: [
|
|
221
|
-
}), (
|
|
222
|
-
f(
|
|
223
|
-
default:
|
|
224
|
-
|
|
225
|
-
(
|
|
106
|
+
return x(() => {
|
|
107
|
+
Z(d.value, () => {
|
|
108
|
+
t.value = !1;
|
|
109
|
+
}, { ignore: [s.value] });
|
|
110
|
+
}), (i, n) => (o(), u("div", ne, [
|
|
111
|
+
f(A, { name: "slide-up" }, {
|
|
112
|
+
default: z(() => [
|
|
113
|
+
S(l("div", oe, [
|
|
114
|
+
(o(!0), u(F, null, B(i.actions, (v) => (o(), u("div", {
|
|
226
115
|
class: "chat-field-actions__overlay-item",
|
|
227
|
-
key:
|
|
228
|
-
onClick: (
|
|
116
|
+
key: v,
|
|
117
|
+
onClick: (we) => e(v)
|
|
229
118
|
}, [
|
|
230
|
-
(
|
|
231
|
-
|
|
232
|
-
], 8,
|
|
119
|
+
(o(), p(L(m[v].icon), { class: "chat-field-actions__overlay-item__icon" })),
|
|
120
|
+
l("span", de, _(m[v].label), 1)
|
|
121
|
+
], 8, ce))), 128))
|
|
233
122
|
], 512), [
|
|
234
|
-
[
|
|
123
|
+
[T, t.value]
|
|
235
124
|
])
|
|
236
125
|
]),
|
|
237
126
|
_: 1
|
|
238
127
|
}),
|
|
239
|
-
|
|
128
|
+
l("button", {
|
|
240
129
|
ref: "button",
|
|
241
|
-
onClick:
|
|
242
|
-
class:
|
|
243
|
-
disabled:
|
|
130
|
+
onClick: n[0] || (n[0] = (v) => t.value = !t.value),
|
|
131
|
+
class: h(["chat-field-actions__button", { "chat-field-actions__button--active": t.value }]),
|
|
132
|
+
disabled: i.disabled
|
|
244
133
|
}, [
|
|
245
|
-
f(
|
|
246
|
-
], 10,
|
|
134
|
+
f(r(Y))
|
|
135
|
+
], 10, me)
|
|
247
136
|
]));
|
|
248
137
|
}
|
|
249
|
-
}),
|
|
138
|
+
}), ue = /* @__PURE__ */ V(re, [["__scopeId", "data-v-6b295528"]]), fe = { class: "chat-field" }, _e = {
|
|
250
139
|
key: 0,
|
|
251
140
|
class: "chat-field__files"
|
|
252
|
-
},
|
|
141
|
+
}, pe = { class: "chat-field__wrapper" }, ve = ["placeholder"], ze = /* @__PURE__ */ g({
|
|
253
142
|
__name: "ChatField",
|
|
254
|
-
props: /* @__PURE__ */
|
|
143
|
+
props: /* @__PURE__ */ y({
|
|
255
144
|
viewActions: { type: Boolean, default: !1 },
|
|
256
145
|
actions: { default: () => ["file", "image"] },
|
|
257
146
|
placeholder: { default: "Введите сообщение" },
|
|
@@ -262,112 +151,112 @@ const Ce = { class: "chat-field-actions" }, Fe = {
|
|
|
262
151
|
files: {},
|
|
263
152
|
filesModifiers: {}
|
|
264
153
|
}),
|
|
265
|
-
emits: /* @__PURE__ */
|
|
266
|
-
setup(
|
|
267
|
-
const
|
|
268
|
-
|
|
154
|
+
emits: /* @__PURE__ */ y(["sendMessage"], ["update:message", "update:files"]),
|
|
155
|
+
setup(a, { emit: c }) {
|
|
156
|
+
const s = c, d = b(a, "message"), t = b(a, "files"), m = (e) => {
|
|
157
|
+
t.value && (t.value = t.value.filter((i) => i.name !== e.name));
|
|
269
158
|
};
|
|
270
|
-
return (
|
|
271
|
-
|
|
272
|
-
(
|
|
273
|
-
key:
|
|
274
|
-
file:
|
|
275
|
-
onDeleteFile:
|
|
159
|
+
return (e, i) => (o(), u("div", fe, [
|
|
160
|
+
t.value && t.value.length > 0 ? (o(), u("div", _e, [
|
|
161
|
+
(o(!0), u(F, null, B(t.value, (n) => (o(), p(ae, {
|
|
162
|
+
key: n.name,
|
|
163
|
+
file: n,
|
|
164
|
+
onDeleteFile: m
|
|
276
165
|
}, null, 8, ["file"]))), 128))
|
|
277
|
-
])) :
|
|
278
|
-
|
|
279
|
-
|
|
166
|
+
])) : I("", !0),
|
|
167
|
+
l("div", pe, [
|
|
168
|
+
e.viewActions && e.actions.length > 0 ? (o(), p(ue, {
|
|
280
169
|
key: 0,
|
|
281
|
-
modelValue:
|
|
282
|
-
"onUpdate:modelValue":
|
|
283
|
-
actions:
|
|
284
|
-
disabled:
|
|
285
|
-
}, null, 8, ["modelValue", "actions", "disabled"])) :
|
|
286
|
-
|
|
287
|
-
"onUpdate:modelValue":
|
|
170
|
+
modelValue: t.value,
|
|
171
|
+
"onUpdate:modelValue": i[0] || (i[0] = (n) => t.value = n),
|
|
172
|
+
actions: e.actions,
|
|
173
|
+
disabled: e.disabled
|
|
174
|
+
}, null, 8, ["modelValue", "actions", "disabled"])) : I("", !0),
|
|
175
|
+
S(l("input", {
|
|
176
|
+
"onUpdate:modelValue": i[1] || (i[1] = (n) => d.value = n),
|
|
288
177
|
class: "chat-field__input",
|
|
289
|
-
placeholder:
|
|
290
|
-
}, null, 8,
|
|
291
|
-
[
|
|
178
|
+
placeholder: e.placeholder
|
|
179
|
+
}, null, 8, ve), [
|
|
180
|
+
[E, d.value]
|
|
292
181
|
]),
|
|
293
|
-
|
|
182
|
+
l("button", {
|
|
294
183
|
class: "chat-field__button",
|
|
295
|
-
onClick:
|
|
184
|
+
onClick: i[2] || (i[2] = (n) => s("sendMessage"))
|
|
296
185
|
}, [
|
|
297
|
-
f(
|
|
186
|
+
f(r(G))
|
|
298
187
|
])
|
|
299
188
|
])
|
|
300
189
|
]));
|
|
301
190
|
}
|
|
302
|
-
}),
|
|
191
|
+
}), ge = { class: "message__avatar" }, he = ["src"], ye = { class: "message__content" }, be = { class: "message__info" }, Ce = { class: "message__name" }, Fe = { class: "message__time" }, ke = { class: "message__text" }, $e = { class: "message-actions__item" }, Ie = { class: "message-actions__item" }, Le = /* @__PURE__ */ g({
|
|
303
192
|
__name: "Message",
|
|
304
193
|
props: {
|
|
305
194
|
message: {},
|
|
306
195
|
position: { default: "left" }
|
|
307
196
|
},
|
|
308
|
-
setup(
|
|
309
|
-
const
|
|
197
|
+
setup(a) {
|
|
198
|
+
const c = w(() => [
|
|
310
199
|
"message",
|
|
311
|
-
`message--${
|
|
312
|
-
]),
|
|
313
|
-
|
|
314
|
-
},
|
|
315
|
-
|
|
200
|
+
`message--${a.position}`
|
|
201
|
+
]), s = C(null), d = C(!1), t = (e) => {
|
|
202
|
+
s.value && (d.value = !0, s.value.style.left = `${e.offsetX}px`, s.value.style.top = `${e.offsetY}px`);
|
|
203
|
+
}, m = (e) => {
|
|
204
|
+
s.value && e.composedPath().includes(s.value) || (d.value = !1);
|
|
316
205
|
};
|
|
317
|
-
return
|
|
318
|
-
document.addEventListener("click",
|
|
319
|
-
}),
|
|
320
|
-
document.removeEventListener("click",
|
|
321
|
-
}), (
|
|
322
|
-
|
|
323
|
-
class:
|
|
324
|
-
onContextmenu:
|
|
206
|
+
return x(() => {
|
|
207
|
+
document.addEventListener("click", m);
|
|
208
|
+
}), D(() => {
|
|
209
|
+
document.removeEventListener("click", m);
|
|
210
|
+
}), (e, i) => (o(), u(F, null, [
|
|
211
|
+
l("div", {
|
|
212
|
+
class: h(c.value),
|
|
213
|
+
onContextmenu: U(t, ["right", "prevent"])
|
|
325
214
|
}, [
|
|
326
|
-
|
|
327
|
-
|
|
215
|
+
l("div", ge, [
|
|
216
|
+
e.message.user.avatar ? (o(), u("img", {
|
|
328
217
|
key: 1,
|
|
329
|
-
src:
|
|
218
|
+
src: e.message.user.avatar,
|
|
330
219
|
alt: "avatar"
|
|
331
|
-
}, null, 8,
|
|
220
|
+
}, null, 8, he)) : (o(), p(r(J), { key: 0 }))
|
|
332
221
|
]),
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
222
|
+
l("div", ye, [
|
|
223
|
+
l("div", be, [
|
|
224
|
+
l("div", Ce, [
|
|
225
|
+
l("strong", null, _(e.message.user.name) + " " + _(e.message.user.lastname), 1),
|
|
226
|
+
N(" (" + _(e.message.user.post) + ") ", 1)
|
|
338
227
|
]),
|
|
339
|
-
|
|
228
|
+
l("div", Fe, _(r(ee)(e.message.created_at).format("HH:mm")), 1)
|
|
340
229
|
]),
|
|
341
|
-
|
|
230
|
+
l("p", ke, _(e.message.text), 1)
|
|
342
231
|
])
|
|
343
232
|
], 34),
|
|
344
|
-
|
|
233
|
+
l("div", {
|
|
345
234
|
ref_key: "actionsRef",
|
|
346
|
-
ref:
|
|
347
|
-
class:
|
|
235
|
+
ref: s,
|
|
236
|
+
class: h(["message-actions", { "message-actions--visible": d.value }])
|
|
348
237
|
}, [
|
|
349
|
-
|
|
350
|
-
f(
|
|
351
|
-
|
|
238
|
+
l("div", $e, [
|
|
239
|
+
f(r(K), { class: "message-actions__item-icon" }),
|
|
240
|
+
i[0] || (i[0] = l("span", { class: "message-actions__item-text" }, "Копировать", -1))
|
|
352
241
|
]),
|
|
353
|
-
|
|
354
|
-
f(
|
|
355
|
-
|
|
242
|
+
l("div", Ie, [
|
|
243
|
+
f(r(Q), { class: "message-actions__item-icon" }),
|
|
244
|
+
i[1] || (i[1] = l("span", { class: "message-actions__item-text" }, "Удалить", -1))
|
|
356
245
|
])
|
|
357
246
|
], 2)
|
|
358
247
|
], 64));
|
|
359
248
|
}
|
|
360
|
-
}),
|
|
249
|
+
}), Me = { class: "bonus-summary" }, Te = /* @__PURE__ */ g({
|
|
361
250
|
__name: "BonusSummary",
|
|
362
|
-
setup(
|
|
363
|
-
return (
|
|
364
|
-
f(
|
|
365
|
-
|
|
251
|
+
setup(a) {
|
|
252
|
+
return (c, s) => (o(), u("div", Me, [
|
|
253
|
+
f(r(W), { class: "bonus-summary__icon" }),
|
|
254
|
+
s[0] || (s[0] = l("div", { class: "bonus-summary__number" }, "123", -1))
|
|
366
255
|
]));
|
|
367
256
|
}
|
|
368
257
|
});
|
|
369
258
|
export {
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
259
|
+
Te as BonusSummary,
|
|
260
|
+
ze as ChatField,
|
|
261
|
+
Le as Message
|
|
373
262
|
};
|