@mobilon-dev/chotto 0.3.35 → 0.3.37
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/chotto.css +1 -1
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +7 -0
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +114 -0
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +23 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +62 -34
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +262 -203
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +56 -52
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +20 -17
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +27 -23
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +1 -1
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +176 -203
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +18 -0
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +1 -1
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +71 -65
- package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +14 -17
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +13 -11
- package/dist/index.js +239 -235
- package/dist/locale/en.js +4 -0
- package/dist/locale/ru.js +6 -2
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.d.ts +59 -0
- package/dist/types/components/1_atoms/ContactContextMenu/stories/ContactContextMenu.stories.d.ts +10 -0
- package/dist/types/components/1_atoms/ContactContextMenu/styles/types.d.ts +67 -0
- package/dist/types/components/1_atoms/ContextMenu/styles/types.d.ts +6 -0
- package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +22 -1
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +6 -0
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.d.ts +6 -2
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.d.ts +10 -2
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +6 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +8 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.d.ts +13 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/stories/DelimiterMessage.stories.d.ts +6 -0
- package/dist/types/components/2_feed_elements/DelimiterMessage/styles/types.d.ts +27 -0
- package/dist/types/components/2_feed_elements/types/messages.d.ts +4 -0
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +1 -1
- package/dist/types/components/3_compounds/ChatList/composables/useChatListFilter.d.ts +3 -3
- package/dist/types/components/4_layouts/BaseLayout/styles/types.d.ts +6 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/locale/en.d.ts +4 -0
- package/dist/types/locale/ru.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as Ee, ref as i, inject as Fe, computed as d, watchEffect as Pe, watch as z, onMounted as Le, onUnmounted as Ue, createElementBlock as a, openBlock as o, Fragment as X, createCommentVNode as C, createVNode as E, unref as F, normalizeClass as Q, createElementVNode as P, Transition as Z, withCtx as x, withDirectives as $e, renderList as ee, toDisplayString as te, vShow as De, normalizeStyle as Oe } from "vue";
|
|
2
|
+
import { useMessageDraft as Ae } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
8
8
|
import "../../../functions/parseMarkdown.js";
|
|
9
|
-
import
|
|
10
|
-
import { isAnimatedSticker as
|
|
9
|
+
import se from "./icons/StickerIcon.vue.js";
|
|
10
|
+
import { isAnimatedSticker as L } from "../../2_feed_elements/StickerMessage/utils/stickerUtils.js";
|
|
11
11
|
import "../../2_feed_elements/StickerMessage/utils/suppress-lit-warning.js";
|
|
12
|
-
const
|
|
12
|
+
const Be = { class: "sticker-picker__container" }, We = ["onClick", "onMouseenter", "onMouseleave"], Ne = ["src"], Ve = ["src", "alt"], Re = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "sticker-picker__tab-icon-placeholder"
|
|
15
|
-
},
|
|
15
|
+
}, He = { class: "sticker-picker__content" }, Ie = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "sticker-picker__empty"
|
|
18
|
-
},
|
|
18
|
+
}, je = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "sticker-picker__grid"
|
|
21
|
-
},
|
|
21
|
+
}, ze = ["onClick", "onMouseenter"], Xe = ["src"], Ye = ["src", "alt"], Ge = ["src"], Ke = ["src", "alt"], qe = {
|
|
22
22
|
key: 2,
|
|
23
23
|
class: "sticker-picker__preview-label"
|
|
24
|
-
},
|
|
24
|
+
}, Je = 700, ct = /* @__PURE__ */ Ee({
|
|
25
25
|
__name: "StickerPicker",
|
|
26
26
|
props: {
|
|
27
27
|
state: { default: "active" },
|
|
@@ -30,32 +30,32 @@ const Xe = { class: "sticker-picker__container" }, Ye = ["onClick", "onMouseente
|
|
|
30
30
|
emptyText: { default: "Нет доступных стикеров" }
|
|
31
31
|
},
|
|
32
32
|
setup(U) {
|
|
33
|
-
const
|
|
34
|
-
let
|
|
33
|
+
const l = U, $ = i(null), D = i(null), O = i(null), A = i(null), u = i(!1), p = i(0), m = Fe("chatAppId"), { getMessage: re, setMessageFile: le, setForceSendMessage: ae } = Ae(m), y = i("#5F5F5F"), b = i("#404040"), B = i(!1);
|
|
34
|
+
let h = null;
|
|
35
35
|
const W = () => {
|
|
36
|
-
if (!
|
|
37
|
-
|
|
36
|
+
if (!m) {
|
|
37
|
+
y.value = "#5F5F5F", b.value = "#404040";
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
const e = document.getElementById(
|
|
40
|
+
const e = document.getElementById(m);
|
|
41
41
|
if (!e) {
|
|
42
|
-
|
|
42
|
+
y.value = "#5F5F5F", b.value = "#404040";
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
const t = window.getComputedStyle(e), s = t.getPropertyValue("--chotto-stickerpicker-button-span-color").trim(),
|
|
46
|
-
|
|
47
|
-
},
|
|
48
|
-
|
|
45
|
+
const t = window.getComputedStyle(e), s = t.getPropertyValue("--chotto-stickerpicker-button-span-color").trim(), r = t.getPropertyValue("--chotto-stickerpicker-button-span-hover-color").trim();
|
|
46
|
+
y.value = s || "#5F5F5F", b.value = r || "#404040";
|
|
47
|
+
}, oe = d(() => B.value ? b.value : y.value);
|
|
48
|
+
Pe(() => {
|
|
49
49
|
W();
|
|
50
50
|
});
|
|
51
|
-
const
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
async function
|
|
55
|
-
if (!(
|
|
51
|
+
const n = i(null), N = i({}), w = i(null), v = i(/* @__PURE__ */ new Map()), k = i(/* @__PURE__ */ new Map());
|
|
52
|
+
let T = !1, M = !1;
|
|
53
|
+
const f = i(!1), V = i(!1);
|
|
54
|
+
async function Y() {
|
|
55
|
+
if (!(f.value || V.value)) {
|
|
56
56
|
V.value = !0;
|
|
57
57
|
try {
|
|
58
|
-
await import("../../2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.js"), await import("../../2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.js"),
|
|
58
|
+
await import("../../2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.js"), await import("../../2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.js"), f.value = !0;
|
|
59
59
|
} catch (e) {
|
|
60
60
|
console.error("Failed to load TGS libraries:", e);
|
|
61
61
|
} finally {
|
|
@@ -63,292 +63,265 @@ const Xe = { class: "sticker-picker__container" }, Ye = ["onClick", "onMouseente
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const
|
|
67
|
-
if (!
|
|
66
|
+
const ie = () => {
|
|
67
|
+
if (!l.stickers || !Array.isArray(l.stickers) || l.stickers.length === 0)
|
|
68
68
|
return { hasTabs: !1, tabs: [] };
|
|
69
|
-
const e =
|
|
69
|
+
const e = l.stickers[0], t = Array.isArray(e), s = e && typeof e == "object" && "stickers" in e;
|
|
70
70
|
return t ? {
|
|
71
71
|
hasTabs: !0,
|
|
72
|
-
tabs:
|
|
73
|
-
id: `tab-${
|
|
74
|
-
label: `Set ${
|
|
75
|
-
stickers:
|
|
76
|
-
iconUrl:
|
|
72
|
+
tabs: l.stickers.map((r, c) => ({
|
|
73
|
+
id: `tab-${c}`,
|
|
74
|
+
label: `Set ${c + 1}`,
|
|
75
|
+
stickers: r,
|
|
76
|
+
iconUrl: r && r.length > 0 ? r[0].url : null
|
|
77
77
|
}))
|
|
78
78
|
} : s && "stickers" in e ? {
|
|
79
79
|
hasTabs: !0,
|
|
80
|
-
tabs:
|
|
81
|
-
id:
|
|
82
|
-
label:
|
|
83
|
-
stickers:
|
|
84
|
-
iconUrl:
|
|
80
|
+
tabs: l.stickers.map((r, c) => ({
|
|
81
|
+
id: r.id || `tab-${c}`,
|
|
82
|
+
label: r.label || `Set ${c + 1}`,
|
|
83
|
+
stickers: r.stickers || [],
|
|
84
|
+
iconUrl: r.iconUrl || (r.stickers && r.stickers.length > 0 ? r.stickers[0].url : null)
|
|
85
85
|
}))
|
|
86
86
|
} : {
|
|
87
87
|
hasTabs: !0,
|
|
88
88
|
tabs: [{
|
|
89
89
|
id: "default",
|
|
90
90
|
label: "Stickers",
|
|
91
|
-
stickers:
|
|
92
|
-
iconUrl:
|
|
91
|
+
stickers: l.stickers,
|
|
92
|
+
iconUrl: l.stickers.length > 0 ? l.stickers[0].url : null
|
|
93
93
|
}]
|
|
94
94
|
};
|
|
95
|
-
}, R =
|
|
95
|
+
}, R = d(() => ie()), ce = d(() => R.value.hasTabs && R.value.tabs.length > 0), _ = d(() => R.value.tabs), H = d(() => {
|
|
96
96
|
var e;
|
|
97
|
-
return
|
|
98
|
-
}),
|
|
99
|
-
const e = H.value.some((s) =>
|
|
97
|
+
return _.value.length === 0 ? [] : ((e = _.value[p.value]) == null ? void 0 : e.stickers) || [];
|
|
98
|
+
}), G = d(() => {
|
|
99
|
+
const e = H.value.some((s) => L(s.url)), t = _.value.some((s) => s.iconUrl && L(s.iconUrl));
|
|
100
100
|
return e || t;
|
|
101
101
|
});
|
|
102
|
-
|
|
103
|
-
e && !
|
|
102
|
+
z(G, (e) => {
|
|
103
|
+
e && !f.value && Y();
|
|
104
104
|
}, { immediate: !0 });
|
|
105
|
-
const I = (e) =>
|
|
106
|
-
t ?
|
|
107
|
-
},
|
|
108
|
-
t ?
|
|
109
|
-
},
|
|
110
|
-
const t =
|
|
105
|
+
const I = (e) => L(e.url), ne = (e, t) => {
|
|
106
|
+
t ? v.value.set(e, t) : v.value.delete(e);
|
|
107
|
+
}, ue = (e, t) => {
|
|
108
|
+
t ? k.value.set(e, t) : k.value.delete(e);
|
|
109
|
+
}, ve = (e) => {
|
|
110
|
+
const t = k.value.get(e);
|
|
111
111
|
t && typeof t.play == "function" && t.play();
|
|
112
|
-
},
|
|
113
|
-
const t =
|
|
112
|
+
}, fe = (e) => {
|
|
113
|
+
const t = k.value.get(e);
|
|
114
114
|
t && typeof t.pause == "function" && t.pause();
|
|
115
115
|
};
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}),
|
|
119
|
-
p.value >=
|
|
116
|
+
z(p, () => {
|
|
117
|
+
v.value.clear();
|
|
118
|
+
}), z(() => l.stickers, () => {
|
|
119
|
+
p.value >= _.value.length && (p.value = 0);
|
|
120
120
|
}, { deep: !0 });
|
|
121
|
-
const
|
|
121
|
+
const ke = (e) => {
|
|
122
122
|
if (!e) return "image";
|
|
123
123
|
const t = e.toLowerCase();
|
|
124
124
|
return t.endsWith(".tgs") || t.endsWith(".webp") ? "sticker" : "image";
|
|
125
|
-
},
|
|
126
|
-
if (
|
|
127
|
-
const t =
|
|
128
|
-
|
|
125
|
+
}, K = (e) => {
|
|
126
|
+
if (l.state === "disabled") return;
|
|
127
|
+
const t = ke(e.url);
|
|
128
|
+
le({
|
|
129
129
|
url: e.url,
|
|
130
130
|
name: e.alt || `sticker.${t === "sticker" ? e.url.toLowerCase().endsWith(".tgs") ? "tgs" : "webp" : "png"}`,
|
|
131
131
|
type: t
|
|
132
|
-
}),
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
}, lt);
|
|
137
|
-
}, Q = () => {
|
|
138
|
-
if (X(), u.value) {
|
|
139
|
-
u.value = !1;
|
|
140
|
-
return;
|
|
141
|
-
}
|
|
142
|
-
}, ye = (e, t) => {
|
|
143
|
-
if (I(e) && k.value) {
|
|
144
|
-
const s = f.value.get(t);
|
|
132
|
+
}), ae(!0), l.mode === "click" && (u.value = !1);
|
|
133
|
+
}, pe = (e, t) => {
|
|
134
|
+
if (I(e) && f.value) {
|
|
135
|
+
const s = v.value.get(t);
|
|
145
136
|
s && typeof s.play == "function" && s.play();
|
|
146
137
|
}
|
|
147
|
-
|
|
148
|
-
|
|
138
|
+
S(), w.value = setTimeout(() => {
|
|
139
|
+
he(e);
|
|
140
|
+
}, Je);
|
|
141
|
+
}, de = () => {
|
|
142
|
+
v.value.forEach((e) => {
|
|
149
143
|
e && typeof e.pause == "function" && e.pause();
|
|
150
|
-
}),
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
});
|
|
158
|
-
J(e, s);
|
|
159
|
-
}, Z = () => {
|
|
160
|
-
Q();
|
|
161
|
-
}, Me = (e, t) => {
|
|
162
|
-
if (u.value) {
|
|
163
|
-
t.preventDefault(), t.stopPropagation(), u.value = !1, b();
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
q(e);
|
|
167
|
-
}, X = () => {
|
|
168
|
-
m.value && (clearTimeout(m.value), m.value = null);
|
|
169
|
-
}, we = (e) => {
|
|
170
|
-
i.value = e, N.value = {
|
|
144
|
+
}), S(), g();
|
|
145
|
+
}, me = (e) => {
|
|
146
|
+
S(), g(), K(e);
|
|
147
|
+
}, S = () => {
|
|
148
|
+
w.value && (clearTimeout(w.value), w.value = null);
|
|
149
|
+
}, he = (e) => {
|
|
150
|
+
n.value = e, N.value = {
|
|
171
151
|
left: "50%",
|
|
172
152
|
top: "50%",
|
|
173
153
|
transform: "translate(-50%, -50%)"
|
|
174
154
|
};
|
|
175
|
-
},
|
|
176
|
-
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
},
|
|
182
|
-
|
|
155
|
+
}, g = () => {
|
|
156
|
+
n.value = null, N.value = {};
|
|
157
|
+
}, _e = () => {
|
|
158
|
+
n.value && (K(n.value), g());
|
|
159
|
+
}, q = () => {
|
|
160
|
+
l.state === "active" && (u.value = !0);
|
|
161
|
+
}, j = () => {
|
|
162
|
+
v.value.forEach((e) => {
|
|
183
163
|
e && typeof e.pause == "function" && e.pause();
|
|
184
|
-
}),
|
|
164
|
+
}), k.value.forEach((e) => {
|
|
185
165
|
e && typeof e.pause == "function" && e.pause();
|
|
186
|
-
}),
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
},
|
|
190
|
-
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
!
|
|
166
|
+
}), u.value = !1;
|
|
167
|
+
}, ge = () => {
|
|
168
|
+
l.mode === "click" && (u.value = !u.value, u.value && q());
|
|
169
|
+
}, ye = () => {
|
|
170
|
+
l.mode === "hover" && (T = !0, q());
|
|
171
|
+
}, be = () => {
|
|
172
|
+
l.mode === "hover" && (T = !1, setTimeout(() => {
|
|
173
|
+
!M && !T && j();
|
|
194
174
|
}, 150));
|
|
195
|
-
},
|
|
196
|
-
B.value = !0,
|
|
197
|
-
},
|
|
198
|
-
B.value = !1,
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
!
|
|
175
|
+
}, we = () => {
|
|
176
|
+
B.value = !0, ye();
|
|
177
|
+
}, Te = () => {
|
|
178
|
+
B.value = !1, be();
|
|
179
|
+
}, Me = () => {
|
|
180
|
+
l.mode === "hover" && (M = !0);
|
|
181
|
+
}, Se = () => {
|
|
182
|
+
l.mode === "hover" && (M = !1, setTimeout(() => {
|
|
183
|
+
!T && !M && j();
|
|
204
184
|
}, 150));
|
|
205
|
-
},
|
|
185
|
+
}, Ce = (e) => {
|
|
206
186
|
if (!O.value) return;
|
|
207
187
|
const t = e.shiftKey || Math.abs(e.deltaX) > Math.abs(e.deltaY) ? e.deltaX : e.deltaY;
|
|
208
188
|
O.value.scrollLeft += t, e.preventDefault();
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
}, te = () => {
|
|
212
|
-
u.value && (u.value = !1);
|
|
189
|
+
}, J = (e) => {
|
|
190
|
+
l.mode === "click" && u.value && D.value && $.value && e.target instanceof Node && !D.value.contains(e.target) && !$.value.contains(e.target) && j(), n.value && A.value && e.target instanceof Node && !A.value.contains(e.target) && g();
|
|
213
191
|
};
|
|
214
|
-
return
|
|
215
|
-
if (document.addEventListener("click",
|
|
216
|
-
const e = document.getElementById(
|
|
217
|
-
e && (
|
|
192
|
+
return Le(() => {
|
|
193
|
+
if (document.addEventListener("click", J), W(), m) {
|
|
194
|
+
const e = document.getElementById(m);
|
|
195
|
+
e && (h = new MutationObserver((t) => {
|
|
218
196
|
t.forEach((s) => {
|
|
219
197
|
s.type === "attributes" && s.attributeName === "data-theme" && W();
|
|
220
198
|
});
|
|
221
|
-
}),
|
|
199
|
+
}), h.observe(e, {
|
|
222
200
|
attributes: !0,
|
|
223
201
|
attributeFilter: ["data-theme"]
|
|
224
202
|
}));
|
|
225
203
|
}
|
|
226
|
-
|
|
227
|
-
}),
|
|
228
|
-
document.removeEventListener("click",
|
|
204
|
+
G.value && !f.value && Y();
|
|
205
|
+
}), Ue(() => {
|
|
206
|
+
document.removeEventListener("click", J), S(), g(), h && (h.disconnect(), h = null), v.value.forEach((e) => {
|
|
229
207
|
e && typeof e.pause == "function" && e.pause();
|
|
230
|
-
}),
|
|
208
|
+
}), v.value.clear(), k.value.forEach((e) => {
|
|
231
209
|
e && typeof e.pause == "function" && e.pause();
|
|
232
|
-
}),
|
|
233
|
-
}), (e, t) => (
|
|
234
|
-
|
|
210
|
+
}), k.value.clear();
|
|
211
|
+
}), (e, t) => (o(), a(X, null, [
|
|
212
|
+
F(re)().isRecording ? C("", !0) : (o(), a("button", {
|
|
235
213
|
key: 0,
|
|
236
214
|
ref_key: "stickerButton",
|
|
237
215
|
ref: D,
|
|
238
|
-
class:
|
|
239
|
-
onClick:
|
|
240
|
-
onMouseenter:
|
|
241
|
-
onMouseleave:
|
|
216
|
+
class: Q(["button", { "button-disabled": U.state === "disabled" }]),
|
|
217
|
+
onClick: ge,
|
|
218
|
+
onMouseenter: we,
|
|
219
|
+
onMouseleave: Te
|
|
242
220
|
}, [
|
|
243
|
-
|
|
244
|
-
|
|
221
|
+
P("span", null, [
|
|
222
|
+
E(F(se), { fill: oe.value }, null, 8, ["fill"])
|
|
245
223
|
])
|
|
246
224
|
], 34)),
|
|
247
|
-
|
|
248
|
-
default:
|
|
249
|
-
|
|
225
|
+
E(Z, null, {
|
|
226
|
+
default: x(() => [
|
|
227
|
+
$e(P("div", {
|
|
250
228
|
ref_key: "stickerPicker",
|
|
251
229
|
ref: $,
|
|
252
230
|
class: "sticker-picker",
|
|
253
|
-
onMouseenter:
|
|
254
|
-
onMouseleave:
|
|
231
|
+
onMouseenter: Me,
|
|
232
|
+
onMouseleave: Se
|
|
255
233
|
}, [
|
|
256
|
-
|
|
257
|
-
|
|
234
|
+
P("div", Be, [
|
|
235
|
+
ce.value ? (o(), a("div", {
|
|
258
236
|
key: 0,
|
|
259
237
|
ref_key: "tabsContainer",
|
|
260
238
|
ref: O,
|
|
261
239
|
class: "sticker-picker__tabs",
|
|
262
|
-
onWheel:
|
|
240
|
+
onWheel: Ce
|
|
263
241
|
}, [
|
|
264
|
-
(
|
|
265
|
-
key:
|
|
266
|
-
class:
|
|
267
|
-
onClick: (
|
|
268
|
-
onMouseenter: (
|
|
269
|
-
onMouseleave: (
|
|
242
|
+
(o(!0), a(X, null, ee(_.value, (s, r) => (o(), a("button", {
|
|
243
|
+
key: r,
|
|
244
|
+
class: Q(["sticker-picker__tab", { "sticker-picker__tab--active": p.value === r }]),
|
|
245
|
+
onClick: (c) => p.value = r,
|
|
246
|
+
onMouseenter: (c) => ve(r),
|
|
247
|
+
onMouseleave: (c) => fe(r)
|
|
270
248
|
}, [
|
|
271
|
-
s.iconUrl &&
|
|
249
|
+
s.iconUrl && F(L)(s.iconUrl) && f.value ? (o(), a("tgs-player", {
|
|
272
250
|
key: 0,
|
|
273
251
|
ref_for: !0,
|
|
274
|
-
ref: (
|
|
252
|
+
ref: (c) => ue(r, c),
|
|
275
253
|
src: s.iconUrl,
|
|
276
254
|
class: "sticker-picker__tab-icon sticker-picker__tab-icon-animated",
|
|
277
255
|
loop: "",
|
|
278
256
|
mode: "normal"
|
|
279
|
-
}, null, 8,
|
|
257
|
+
}, null, 8, Ne)) : s.iconUrl ? (o(), a("img", {
|
|
280
258
|
key: 1,
|
|
281
259
|
src: s.iconUrl,
|
|
282
|
-
alt: s.label || `Tab ${
|
|
260
|
+
alt: s.label || `Tab ${r + 1}`,
|
|
283
261
|
class: "sticker-picker__tab-icon"
|
|
284
|
-
}, null, 8,
|
|
285
|
-
|
|
262
|
+
}, null, 8, Ve)) : (o(), a("span", Re, [
|
|
263
|
+
E(F(se))
|
|
286
264
|
]))
|
|
287
|
-
], 42,
|
|
288
|
-
], 544)) :
|
|
289
|
-
|
|
290
|
-
H.value.length === 0 ? (
|
|
291
|
-
(
|
|
292
|
-
key:
|
|
265
|
+
], 42, We))), 128))
|
|
266
|
+
], 544)) : C("", !0),
|
|
267
|
+
P("div", He, [
|
|
268
|
+
H.value.length === 0 ? (o(), a("div", Ie, te(U.emptyText), 1)) : (o(), a("div", je, [
|
|
269
|
+
(o(!0), a(X, null, ee(H.value, (s, r) => (o(), a("button", {
|
|
270
|
+
key: r,
|
|
293
271
|
class: "sticker-picker__item",
|
|
294
|
-
onClick: (
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
onMouseenter: (o) => ye(s, l),
|
|
298
|
-
onMouseleave: be,
|
|
299
|
-
onTouchstart: (o) => Te(s, o),
|
|
300
|
-
onTouchend: Z,
|
|
301
|
-
onTouchcancel: Z
|
|
272
|
+
onClick: (c) => me(s),
|
|
273
|
+
onMouseenter: (c) => pe(s, r),
|
|
274
|
+
onMouseleave: de
|
|
302
275
|
}, [
|
|
303
|
-
I(s) &&
|
|
276
|
+
I(s) && f.value ? (o(), a("tgs-player", {
|
|
304
277
|
key: 0,
|
|
305
278
|
ref_for: !0,
|
|
306
|
-
ref: (
|
|
279
|
+
ref: (c) => ne(r, c),
|
|
307
280
|
src: s.url,
|
|
308
281
|
class: "sticker-picker__image sticker-picker__image-animated",
|
|
309
282
|
loop: "",
|
|
310
283
|
mode: "normal"
|
|
311
|
-
}, null, 8,
|
|
284
|
+
}, null, 8, Xe)) : (o(), a("img", {
|
|
312
285
|
key: 1,
|
|
313
286
|
src: s.url,
|
|
314
|
-
alt: s.alt || `Sticker ${
|
|
287
|
+
alt: s.alt || `Sticker ${r + 1}`,
|
|
315
288
|
class: "sticker-picker__image"
|
|
316
|
-
}, null, 8,
|
|
317
|
-
], 40,
|
|
289
|
+
}, null, 8, Ye))
|
|
290
|
+
], 40, ze))), 128))
|
|
318
291
|
]))
|
|
319
292
|
])
|
|
320
293
|
])
|
|
321
294
|
], 544), [
|
|
322
|
-
[
|
|
295
|
+
[De, u.value]
|
|
323
296
|
])
|
|
324
297
|
]),
|
|
325
298
|
_: 1
|
|
326
299
|
}),
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
|
|
300
|
+
E(Z, { name: "preview" }, {
|
|
301
|
+
default: x(() => [
|
|
302
|
+
n.value ? (o(), a("div", {
|
|
330
303
|
key: 0,
|
|
331
304
|
ref_key: "previewElement",
|
|
332
305
|
ref: A,
|
|
333
306
|
class: "sticker-picker__preview",
|
|
334
|
-
style:
|
|
335
|
-
onClick:
|
|
307
|
+
style: Oe(N.value),
|
|
308
|
+
onClick: _e
|
|
336
309
|
}, [
|
|
337
|
-
I(
|
|
310
|
+
I(n.value) && f.value ? (o(), a("tgs-player", {
|
|
338
311
|
key: 0,
|
|
339
|
-
src:
|
|
312
|
+
src: n.value.url,
|
|
340
313
|
class: "sticker-picker__preview-image sticker-picker__preview-image-animated",
|
|
341
314
|
autoplay: "",
|
|
342
315
|
loop: "",
|
|
343
316
|
mode: "normal"
|
|
344
|
-
}, null, 8,
|
|
317
|
+
}, null, 8, Ge)) : (o(), a("img", {
|
|
345
318
|
key: 1,
|
|
346
|
-
src:
|
|
347
|
-
alt:
|
|
319
|
+
src: n.value.url,
|
|
320
|
+
alt: n.value.alt || "Preview",
|
|
348
321
|
class: "sticker-picker__preview-image"
|
|
349
|
-
}, null, 8,
|
|
350
|
-
|
|
351
|
-
], 4)) :
|
|
322
|
+
}, null, 8, Ke)),
|
|
323
|
+
n.value.alt ? (o(), a("div", qe, te(n.value.alt), 1)) : C("", !0)
|
|
324
|
+
], 4)) : C("", !0)
|
|
352
325
|
]),
|
|
353
326
|
_: 1
|
|
354
327
|
})
|
|
@@ -356,5 +329,5 @@ const Xe = { class: "sticker-picker__container" }, Ye = ["onClick", "onMouseente
|
|
|
356
329
|
}
|
|
357
330
|
});
|
|
358
331
|
export {
|
|
359
|
-
|
|
332
|
+
ct as default
|
|
360
333
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as t, createElementBlock as s, openBlock as r, createElementVNode as o, toDisplayString as a } from "vue";
|
|
2
|
+
const i = { class: "delimiter-message__container" }, n = { class: "delimiter-message__text" }, l = /* @__PURE__ */ t({
|
|
3
|
+
__name: "DelimiterMessage",
|
|
4
|
+
props: {
|
|
5
|
+
message: {
|
|
6
|
+
type: Object,
|
|
7
|
+
required: !0
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (c, m) => (r(), s("div", i, [
|
|
12
|
+
o("p", n, a(e.message.text), 1)
|
|
13
|
+
]));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
l as default
|
|
18
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./ChatInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-efefc137"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|