@mobilon-dev/chotto 0.3.80 → 0.3.82

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