@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.
Files changed (48) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +7 -0
  3. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +114 -0
  4. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +23 -19
  5. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +2 -2
  6. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +62 -34
  7. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +262 -203
  8. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +56 -52
  9. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +20 -17
  10. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +27 -23
  11. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +1 -1
  12. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +176 -203
  13. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +7 -0
  14. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +18 -0
  15. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +1 -1
  16. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +2 -2
  17. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +71 -65
  18. package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +14 -17
  19. package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +13 -11
  20. package/dist/index.js +239 -235
  21. package/dist/locale/en.js +4 -0
  22. package/dist/locale/ru.js +6 -2
  23. package/dist/themes/dark.css +1 -1
  24. package/dist/themes/default.css +1 -1
  25. package/dist/themes/glass.css +1 -1
  26. package/dist/themes/green.css +1 -1
  27. package/dist/themes/mobilon1.css +1 -1
  28. package/dist/types/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.d.ts +59 -0
  29. package/dist/types/components/1_atoms/ContactContextMenu/stories/ContactContextMenu.stories.d.ts +10 -0
  30. package/dist/types/components/1_atoms/ContactContextMenu/styles/types.d.ts +67 -0
  31. package/dist/types/components/1_atoms/ContextMenu/styles/types.d.ts +6 -0
  32. package/dist/types/components/1_atoms/Tooltip/Tooltip.vue.d.ts +22 -1
  33. package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +6 -0
  34. package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.d.ts +6 -2
  35. package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.d.ts +10 -2
  36. package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +6 -0
  37. package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +8 -0
  38. package/dist/types/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.d.ts +13 -0
  39. package/dist/types/components/2_feed_elements/DelimiterMessage/stories/DelimiterMessage.stories.d.ts +6 -0
  40. package/dist/types/components/2_feed_elements/DelimiterMessage/styles/types.d.ts +27 -0
  41. package/dist/types/components/2_feed_elements/types/messages.d.ts +4 -0
  42. package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +1 -1
  43. package/dist/types/components/3_compounds/ChatList/composables/useChatListFilter.d.ts +3 -3
  44. package/dist/types/components/4_layouts/BaseLayout/styles/types.d.ts +6 -0
  45. package/dist/types/components/index.d.ts +2 -0
  46. package/dist/types/locale/en.d.ts +4 -0
  47. package/dist/types/locale/ru.d.ts +4 -0
  48. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
- import { defineComponent as Oe, ref as a, inject as Ae, computed as h, watchEffect as Be, watch as j, onMounted as We, onUnmounted as Ne, createElementBlock as n, openBlock as c, Fragment as z, createCommentVNode as E, createVNode as C, unref as P, normalizeClass as se, createElementVNode as L, Transition as le, withCtx as re, withDirectives as Ve, renderList as oe, toDisplayString as ae, vShow as Re, normalizeStyle as He } from "vue";
2
- import { useMessageDraft as Ie } from "../../../hooks/useMessageDraft.js";
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 ne from "./icons/StickerIcon.vue.js";
10
- import { isAnimatedSticker as F } from "../../2_feed_elements/StickerMessage/utils/stickerUtils.js";
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 Xe = { class: "sticker-picker__container" }, Ye = ["onClick", "onMouseenter", "onMouseleave"], je = ["src"], ze = ["src", "alt"], Ge = {
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
- }, Ke = { class: "sticker-picker__content" }, qe = {
15
+ }, He = { class: "sticker-picker__content" }, Ie = {
16
16
  key: 0,
17
17
  class: "sticker-picker__empty"
18
- }, Je = {
18
+ }, je = {
19
19
  key: 1,
20
20
  class: "sticker-picker__grid"
21
- }, Qe = ["onClick", "onMousedown", "onMouseenter", "onTouchstart"], Ze = ["src"], xe = ["src", "alt"], et = ["src"], tt = ["src", "alt"], st = {
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
- }, lt = 500, pt = /* @__PURE__ */ Oe({
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 r = U, $ = a(null), D = a(null), O = a(null), A = a(null), v = a(!1), p = a(0), _ = Ae("chatAppId"), { getMessage: ce, setMessageFile: ie, setForceSendMessage: ue } = Ie(_), T = a("#5F5F5F"), M = a("#404040"), B = a(!1);
34
- let g = null;
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
- T.value = "#5F5F5F", M.value = "#404040";
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
- T.value = "#5F5F5F", M.value = "#404040";
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(), l = t.getPropertyValue("--chotto-stickerpicker-button-span-hover-color").trim();
46
- T.value = s || "#5F5F5F", M.value = l || "#404040";
47
- }, ve = h(() => B.value ? M.value : T.value);
48
- Be(() => {
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 i = a(null), N = a({}), m = a(null), u = a(!1), fe = a(null), f = a(/* @__PURE__ */ new Map()), d = a(/* @__PURE__ */ new Map());
52
- let w = !1, S = !1;
53
- const k = a(!1), V = a(!1);
54
- async function G() {
55
- if (!(k.value || V.value)) {
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"), k.value = !0;
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 ke = () => {
67
- if (!r.stickers || !Array.isArray(r.stickers) || r.stickers.length === 0)
66
+ const ie = () => {
67
+ if (!l.stickers || !Array.isArray(l.stickers) || l.stickers.length === 0)
68
68
  return { hasTabs: !1, tabs: [] };
69
- const e = r.stickers[0], t = Array.isArray(e), s = e && typeof e == "object" && "stickers" in 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: r.stickers.map((l, o) => ({
73
- id: `tab-${o}`,
74
- label: `Set ${o + 1}`,
75
- stickers: l,
76
- iconUrl: l && l.length > 0 ? l[0].url : null
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: r.stickers.map((l, o) => ({
81
- id: l.id || `tab-${o}`,
82
- label: l.label || `Set ${o + 1}`,
83
- stickers: l.stickers || [],
84
- iconUrl: l.iconUrl || (l.stickers && l.stickers.length > 0 ? l.stickers[0].url : null)
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: r.stickers,
92
- iconUrl: r.stickers.length > 0 ? r.stickers[0].url : null
91
+ stickers: l.stickers,
92
+ iconUrl: l.stickers.length > 0 ? l.stickers[0].url : null
93
93
  }]
94
94
  };
95
- }, R = h(() => ke()), de = h(() => R.value.hasTabs && R.value.tabs.length > 0), y = h(() => R.value.tabs), H = h(() => {
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 y.value.length === 0 ? [] : ((e = y.value[p.value]) == null ? void 0 : e.stickers) || [];
98
- }), K = h(() => {
99
- const e = H.value.some((s) => F(s.url)), t = y.value.some((s) => s.iconUrl && F(s.iconUrl));
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
- j(K, (e) => {
103
- e && !k.value && G();
102
+ z(G, (e) => {
103
+ e && !f.value && Y();
104
104
  }, { immediate: !0 });
105
- const I = (e) => F(e.url), pe = (e, t) => {
106
- t ? f.value.set(e, t) : f.value.delete(e);
107
- }, me = (e, t) => {
108
- t ? d.value.set(e, t) : d.value.delete(e);
109
- }, he = (e) => {
110
- const t = d.value.get(e);
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
- }, _e = (e) => {
113
- const t = d.value.get(e);
112
+ }, fe = (e) => {
113
+ const t = k.value.get(e);
114
114
  t && typeof t.pause == "function" && t.pause();
115
115
  };
116
- j(p, () => {
117
- f.value.clear();
118
- }), j(() => r.stickers, () => {
119
- p.value >= y.value.length && (p.value = 0);
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 ge = (e) => {
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
- }, q = (e) => {
126
- if (r.state === "disabled") return;
127
- const t = ge(e.url);
128
- ie({
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
- }), ue(!0), r.mode === "click" && (v.value = !1);
133
- }, J = (e, t) => {
134
- fe.value = t.currentTarget, u.value = !1, m.value && clearTimeout(m.value), m.value = setTimeout(() => {
135
- u.value = !0, we(e);
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
- }, be = () => {
148
- f.value.forEach((e) => {
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
- }), !(u.value && i.value) && (X(), b());
151
- }, Te = (e, t) => {
152
- const s = new MouseEvent("mousedown", {
153
- bubbles: !0,
154
- cancelable: !0,
155
- clientX: t.touches[0].clientX,
156
- clientY: t.touches[0].clientY
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
- }, b = () => {
176
- i.value = null, N.value = {};
177
- }, Se = () => {
178
- i.value && (q(i.value), b());
179
- }, x = () => {
180
- r.state === "active" && (v.value = !0);
181
- }, Y = () => {
182
- f.value.forEach((e) => {
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
- }), d.value.forEach((e) => {
164
+ }), k.value.forEach((e) => {
185
165
  e && typeof e.pause == "function" && e.pause();
186
- }), v.value = !1;
187
- }, Ee = () => {
188
- r.mode === "click" && (v.value = !v.value, v.value && x());
189
- }, Ce = () => {
190
- r.mode === "hover" && (w = !0, x());
191
- }, Pe = () => {
192
- r.mode === "hover" && (w = !1, setTimeout(() => {
193
- !S && !w && Y();
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
- }, Le = () => {
196
- B.value = !0, Ce();
197
- }, Fe = () => {
198
- B.value = !1, Pe();
199
- }, Ue = () => {
200
- r.mode === "hover" && (S = !0);
201
- }, $e = () => {
202
- r.mode === "hover" && (S = !1, setTimeout(() => {
203
- !w && !S && Y();
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
- }, De = (e) => {
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
- }, ee = (e) => {
210
- r.mode === "click" && v.value && D.value && $.value && e.target instanceof Node && !D.value.contains(e.target) && !$.value.contains(e.target) && Y(), i.value && A.value && e.target instanceof Node && !A.value.contains(e.target) && b();
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 We(() => {
215
- if (document.addEventListener("click", ee), document.addEventListener("mouseup", te), W(), _) {
216
- const e = document.getElementById(_);
217
- e && (g = new MutationObserver((t) => {
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
- }), g.observe(e, {
199
+ }), h.observe(e, {
222
200
  attributes: !0,
223
201
  attributeFilter: ["data-theme"]
224
202
  }));
225
203
  }
226
- K.value && !k.value && G();
227
- }), Ne(() => {
228
- document.removeEventListener("click", ee), document.removeEventListener("mouseup", te), X(), b(), g && (g.disconnect(), g = null), f.value.forEach((e) => {
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
- }), f.value.clear(), d.value.forEach((e) => {
208
+ }), v.value.clear(), k.value.forEach((e) => {
231
209
  e && typeof e.pause == "function" && e.pause();
232
- }), d.value.clear();
233
- }), (e, t) => (c(), n(z, null, [
234
- P(ce)().isRecording ? E("", !0) : (c(), n("button", {
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: se(["button", { "button-disabled": U.state === "disabled" }]),
239
- onClick: Ee,
240
- onMouseenter: Le,
241
- onMouseleave: Fe
216
+ class: Q(["button", { "button-disabled": U.state === "disabled" }]),
217
+ onClick: ge,
218
+ onMouseenter: we,
219
+ onMouseleave: Te
242
220
  }, [
243
- L("span", null, [
244
- C(P(ne), { fill: ve.value }, null, 8, ["fill"])
221
+ P("span", null, [
222
+ E(F(se), { fill: oe.value }, null, 8, ["fill"])
245
223
  ])
246
224
  ], 34)),
247
- C(le, null, {
248
- default: re(() => [
249
- Ve(L("div", {
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: Ue,
254
- onMouseleave: $e
231
+ onMouseenter: Me,
232
+ onMouseleave: Se
255
233
  }, [
256
- L("div", Xe, [
257
- de.value ? (c(), n("div", {
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: De
240
+ onWheel: Ce
263
241
  }, [
264
- (c(!0), n(z, null, oe(y.value, (s, l) => (c(), n("button", {
265
- key: l,
266
- class: se(["sticker-picker__tab", { "sticker-picker__tab--active": p.value === l }]),
267
- onClick: (o) => p.value = l,
268
- onMouseenter: (o) => he(l),
269
- onMouseleave: (o) => _e(l)
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 && P(F)(s.iconUrl) && k.value ? (c(), n("tgs-player", {
249
+ s.iconUrl && F(L)(s.iconUrl) && f.value ? (o(), a("tgs-player", {
272
250
  key: 0,
273
251
  ref_for: !0,
274
- ref: (o) => me(l, o),
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, je)) : s.iconUrl ? (c(), n("img", {
257
+ }, null, 8, Ne)) : s.iconUrl ? (o(), a("img", {
280
258
  key: 1,
281
259
  src: s.iconUrl,
282
- alt: s.label || `Tab ${l + 1}`,
260
+ alt: s.label || `Tab ${r + 1}`,
283
261
  class: "sticker-picker__tab-icon"
284
- }, null, 8, ze)) : (c(), n("span", Ge, [
285
- C(P(ne))
262
+ }, null, 8, Ve)) : (o(), a("span", Re, [
263
+ E(F(se))
286
264
  ]))
287
- ], 42, Ye))), 128))
288
- ], 544)) : E("", !0),
289
- L("div", Ke, [
290
- H.value.length === 0 ? (c(), n("div", qe, ae(U.emptyText), 1)) : (c(), n("div", Je, [
291
- (c(!0), n(z, null, oe(H.value, (s, l) => (c(), n("button", {
292
- key: l,
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: (o) => Me(s, o),
295
- onMousedown: (o) => J(s, o),
296
- onMouseup: Q,
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) && k.value ? (c(), n("tgs-player", {
276
+ I(s) && f.value ? (o(), a("tgs-player", {
304
277
  key: 0,
305
278
  ref_for: !0,
306
- ref: (o) => pe(l, o),
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, Ze)) : (c(), n("img", {
284
+ }, null, 8, Xe)) : (o(), a("img", {
312
285
  key: 1,
313
286
  src: s.url,
314
- alt: s.alt || `Sticker ${l + 1}`,
287
+ alt: s.alt || `Sticker ${r + 1}`,
315
288
  class: "sticker-picker__image"
316
- }, null, 8, xe))
317
- ], 40, Qe))), 128))
289
+ }, null, 8, Ye))
290
+ ], 40, ze))), 128))
318
291
  ]))
319
292
  ])
320
293
  ])
321
294
  ], 544), [
322
- [Re, v.value]
295
+ [De, u.value]
323
296
  ])
324
297
  ]),
325
298
  _: 1
326
299
  }),
327
- C(le, { name: "preview" }, {
328
- default: re(() => [
329
- i.value ? (c(), n("div", {
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: He(N.value),
335
- onClick: Se
307
+ style: Oe(N.value),
308
+ onClick: _e
336
309
  }, [
337
- I(i.value) && k.value ? (c(), n("tgs-player", {
310
+ I(n.value) && f.value ? (o(), a("tgs-player", {
338
311
  key: 0,
339
- src: i.value.url,
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, et)) : (c(), n("img", {
317
+ }, null, 8, Ge)) : (o(), a("img", {
345
318
  key: 1,
346
- src: i.value.url,
347
- alt: i.value.alt || "Preview",
319
+ src: n.value.url,
320
+ alt: n.value.alt || "Preview",
348
321
  class: "sticker-picker__preview-image"
349
- }, null, 8, tt)),
350
- i.value.alt ? (c(), n("div", st, ae(i.value.alt), 1)) : E("", !0)
351
- ], 4)) : E("", !0)
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
- pt as default
332
+ ct as default
360
333
  };
@@ -0,0 +1,7 @@
1
+ import o from "./DelimiterMessage.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5ac955b7"]]);
5
+ export {
6
+ m as default
7
+ };
@@ -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
+ };
@@ -7,7 +7,7 @@ const S = {
7
7
  class: "pi pi-clock"
8
8
  }, k = {
9
9
  key: 1,
10
- class: "pi pi-times-circle"
10
+ class: "pi pi-exclamation-circle"
11
11
  }, h = {
12
12
  key: 0,
13
13
  class: "pi pi-check"
@@ -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 m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-07a5cda0"]]);
4
+ const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-efefc137"]]);
5
5
  export {
6
- m as default
6
+ a as default
7
7
  };