@mobilon-dev/chotto 0.3.106 → 0.3.108

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 (38) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +2 -2
  3. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +295 -268
  4. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
  5. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +185 -158
  6. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +3 -3
  7. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +227 -200
  8. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +2 -2
  9. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +62 -245
  10. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +7 -0
  11. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +231 -0
  12. package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +25 -25
  13. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
  14. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +209 -182
  15. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +2 -2
  16. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +190 -164
  17. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
  18. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +208 -181
  19. package/dist/components/3_compounds/Feed/Feed.vue.js +1 -1
  20. package/dist/components/3_compounds/Feed/Feed.vue2.js +207 -197
  21. package/dist/components/3_compounds/Feed/composables/useFeedProgressiveRender.js +52 -49
  22. package/dist/components/3_compounds/Feed/composables/useFeedReactionsOverlay.js +34 -0
  23. package/dist/hooks/messages/useMessageActions.js +81 -70
  24. package/dist/hooks/messages/useMessageHoverActions.js +9 -8
  25. package/dist/hooks/messages/useMessageReactionsInFeed.js +53 -0
  26. package/dist/hooks/messages/useMessageReactionsMount.js +21 -0
  27. package/dist/index.js +149 -144
  28. package/dist/types/apps/data/messages.d.ts +197 -0
  29. package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +4 -71
  30. package/dist/types/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.d.ts +2 -0
  31. package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts +2 -1
  32. package/dist/types/components/3_compounds/Feed/composables/index.d.ts +1 -0
  33. package/dist/types/components/3_compounds/Feed/composables/useFeedReactionsOverlay.d.ts +52 -0
  34. package/dist/types/hooks/messages/index.d.ts +2 -0
  35. package/dist/types/hooks/messages/useMessageHoverActions.d.ts +2 -1
  36. package/dist/types/hooks/messages/useMessageReactionsInFeed.d.ts +25 -0
  37. package/dist/types/hooks/messages/useMessageReactionsMount.d.ts +10 -0
  38. package/package.json +1 -1
@@ -1,31 +1,33 @@
1
- import { defineComponent as Ce, ref as R, computed as i, provide as A, inject as z, unref as t, watch as B, nextTick as F, onMounted as Te, createElementBlock as g, openBlock as l, createVNode as p, createBlock as y, createCommentVNode as m, normalizeStyle as G, renderSlot as H, withDirectives as De, createElementVNode as C, vShow as we, Transition as T, withCtx as D, Fragment as xe, renderList as Ke, isMemoSame as Oe, resolveDynamicComponent as je, mergeProps as Ne, toDisplayString as Le, Teleport as J } from "vue";
1
+ import { defineComponent as Te, ref as S, computed as l, provide as A, inject as G, unref as s, watch as B, nextTick as F, onMounted as De, createElementBlock as y, openBlock as i, createVNode as p, createBlock as f, createCommentVNode as c, normalizeStyle as H, renderSlot as J, withDirectives as we, createElementVNode as C, vShow as Ke, Transition as T, withCtx as D, Fragment as xe, renderList as Oe, isMemoSame as $e, resolveDynamicComponent as je, mergeProps as Ne, toDisplayString as Le, Teleport as Q } from "vue";
2
2
  import Ue from "../../2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js";
3
- import $e from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
4
- import qe from "../../2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
5
- import Ee from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
6
- import Pe from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
7
- import Ve from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
8
- import We from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
9
- import { useFeedButton as ze } from "./composables/useFeedButton.js";
10
- import { useFeedComponents as Ge } from "./composables/useFeedComponents.js";
11
- import { useFeedGrouping as He } from "./composables/useFeedGrouping.js";
12
- import { useFeedKeyboard as Je } from "./composables/useFeedKeyboard.js";
13
- import { useFeedLoadMore as Qe } from "./composables/useFeedLoadMore.js";
14
- import { useFeedMessageVisibility as Xe } from "./composables/useFeedMessageVisibility.js";
15
- import { useFeedProgressiveRender as Ye } from "./composables/useFeedProgressiveRender.js";
16
- import { useFeedReply as Ze } from "./composables/useFeedReply.js";
17
- import { useFeedScroll as _e } from "./composables/useFeedScroll.js";
18
- import { useFeedScrollTo as et } from "./composables/useFeedScrollTo.js";
19
- import { useStickyDate as tt } from "./composables/useStickyDate.js";
20
- import { throttle as ot } from "./functions/throttle.js";
21
- import { getDefaultMessageMenuActions as st } from "./utils/getDefaultMessageMenuActions.js";
22
- import { isSmsFeedMessage as nt } from "../../../functions/isSmsChannel.js";
3
+ import qe from "../../2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js";
4
+ import Ee from "../../2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js";
5
+ import Pe from "../../2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js";
6
+ import Ve from "../../2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js";
7
+ import We from "../../2_feed_elements/TypingMessage/TypingMessage.vue.js";
8
+ import ze from "../../1_atoms/LoadingIndicator/LoadingIndicator.vue.js";
9
+ import Ge from "../../2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js";
10
+ import { useFeedButton as He } from "./composables/useFeedButton.js";
11
+ import { useFeedComponents as Je } from "./composables/useFeedComponents.js";
12
+ import { useFeedGrouping as Qe } from "./composables/useFeedGrouping.js";
13
+ import { useFeedKeyboard as Xe } from "./composables/useFeedKeyboard.js";
14
+ import { useFeedLoadMore as Ye } from "./composables/useFeedLoadMore.js";
15
+ import { useFeedMessageVisibility as Ze } from "./composables/useFeedMessageVisibility.js";
16
+ import { useFeedProgressiveRender as _e } from "./composables/useFeedProgressiveRender.js";
17
+ import { provideFeedReactionsOverlay as et } from "./composables/useFeedReactionsOverlay.js";
18
+ import { useFeedReply as tt } from "./composables/useFeedReply.js";
19
+ import { useFeedScroll as ot } from "./composables/useFeedScroll.js";
20
+ import { useFeedScrollTo as st } from "./composables/useFeedScrollTo.js";
21
+ import { useStickyDate as nt } from "./composables/useStickyDate.js";
22
+ import { throttle as at } from "./functions/throttle.js";
23
+ import { getDefaultMessageMenuActions as rt } from "./utils/getDefaultMessageMenuActions.js";
24
+ import { isSmsFeedMessage as it } from "../../../functions/isSmsChannel.js";
23
25
  import "../../../functions/parseMarkdown.js";
24
- import at from "./assets/chat-background.svg.js";
25
- const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "message-feed__loading" }, dt = { style: { margin: "auto" } }, ct = {
26
+ import lt from "./assets/chat-background.svg.js";
27
+ const dt = { class: "message-feed-wrapper" }, ct = ["id"], ut = { class: "message-feed__loading" }, mt = { style: { margin: "auto" } }, ft = {
26
28
  key: 0,
27
29
  class: "message-feed__unread-amount"
28
- }, jt = /* @__PURE__ */ Ce({
30
+ }, qt = /* @__PURE__ */ Te({
29
31
  __name: "Feed",
30
32
  props: {
31
33
  /**
@@ -64,7 +66,7 @@ const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "messag
64
66
  keyboardAlign: {
65
67
  type: String,
66
68
  default: "right",
67
- validator: (s) => ["left", "center", "right"].includes(s)
69
+ validator: (n) => ["left", "center", "right"].includes(n)
68
70
  },
69
71
  feedKeyboards: {
70
72
  type: Array,
@@ -74,7 +76,7 @@ const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "messag
74
76
  feedKeyboardAlign: {
75
77
  type: String,
76
78
  default: "right",
77
- validator: (s) => ["left", "center", "right"].includes(s)
79
+ validator: (n) => ["left", "center", "right"].includes(n)
78
80
  },
79
81
  chatBackground: {
80
82
  type: String,
@@ -91,7 +93,7 @@ const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "messag
91
93
  reactionsMode: {
92
94
  type: String,
93
95
  default: "single",
94
- validator: (s) => ["single", "multi"].includes(s)
96
+ validator: (n) => ["single", "multi"].includes(n)
95
97
  },
96
98
  /** Id текущего пользователя — для расчёта «моих» реакций */
97
99
  currentUserId: {
@@ -123,7 +125,7 @@ const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "messag
123
125
  */
124
126
  messageMenuActions: {
125
127
  type: Array,
126
- default: () => st()
128
+ default: () => rt()
127
129
  }
128
130
  },
129
131
  emits: [
@@ -138,297 +140,305 @@ const rt = { class: "message-feed-wrapper" }, it = ["id"], lt = { class: "messag
138
140
  "smsInvite",
139
141
  "delimiterRead"
140
142
  ],
141
- setup(s, { emit: Q }) {
142
- const a = s, v = R(), c = R(), w = R(), {
143
- isShowButton: X,
144
- isKeyboardPlace: Y,
145
- checkButtonVisibility: Z
146
- } = ze({
147
- feedRef: c,
143
+ setup(n, { emit: X }) {
144
+ const a = n, v = S(), u = S(), w = S(), {
145
+ isShowButton: Y,
146
+ isKeyboardPlace: Z,
147
+ checkButtonVisibility: _
148
+ } = He({
149
+ feedRef: u,
148
150
  keyboardRef: w
149
- }), { componentsMap: _ } = Ge(), ee = i(() => a.reactionsEnabled), te = i(() => a.reactionsMode), x = i(() => a.currentUserId), K = i(() => a.reactionUserNames);
150
- A("currentUserId", x), A("reactionUserNames", K), A(
151
+ }), { componentsMap: ee } = Je(), K = l(() => a.reactionsEnabled);
152
+ et();
153
+ const te = l(() => a.reactionsMode), x = l(() => a.currentUserId), O = l(() => a.reactionUserNames);
154
+ A("currentUserId", x), A("reactionUserNames", O), A(
151
155
  "messageMenuActions",
152
- i(() => a.messageMenuActions)
156
+ l(() => a.messageMenuActions)
153
157
  );
154
- const { seriesFlags: O } = He({
155
- objects: i(() => a.objects)
158
+ const { seriesFlags: $ } = Qe({
159
+ objects: l(() => a.objects)
156
160
  }), {
157
161
  visibleObjects: oe,
158
162
  renderStart: h,
159
163
  isBackfilling: se,
160
164
  revealThroughIndex: ne,
161
165
  accelerateBackfill: ae
162
- } = Ye({
163
- objectsRef: i(() => a.objects),
164
- feedRef: c
165
- }), b = z("chatAppId"), j = z("selectedChat", void 0), N = i(() => {
166
+ } = _e({
167
+ objectsRef: l(() => a.objects),
168
+ feedRef: u
169
+ }), b = G("chatAppId"), j = G("selectedChat", void 0), N = l(() => {
166
170
  if (j)
167
- return t(j);
171
+ return s(j);
168
172
  });
169
- function re(o) {
170
- return o.timestamp;
173
+ function re(t) {
174
+ return t.timestamp;
175
+ }
176
+ function M(t, o) {
177
+ return t.messageId || `mid-${h.value + o}`;
171
178
  }
172
- function M(o, n) {
173
- return o.messageId || `mid-${h.value + n}`;
179
+ function ie(t) {
180
+ var e;
181
+ const o = (e = t.reactions) == null ? void 0 : e.items;
182
+ return o != null && o.length ? o.map((r) => `${r.key}:${r.userId}`).join(",") : "";
174
183
  }
175
- function L(o) {
176
- var u, d, k;
177
- const n = o, e = n.channelId || ((u = n.channel) == null ? void 0 : u.channelId) || ((d = n.meta) == null ? void 0 : d.channelId);
184
+ function L(t) {
185
+ var m, d, k;
186
+ const o = t, e = o.channelId || ((m = o.channel) == null ? void 0 : m.channelId) || ((d = o.meta) == null ? void 0 : d.channelId);
178
187
  if (e) return String(e);
179
- if (!n.dialogId || !((k = N.value) != null && k.dialogs))
188
+ if (!o.dialogId || !((k = N.value) != null && k.dialogs))
180
189
  return;
181
- const r = N.value.dialogs.find((I) => I.dialogId === n.dialogId);
190
+ const r = N.value.dialogs.find((I) => I.dialogId === o.dialogId);
182
191
  return r == null ? void 0 : r.channelId;
183
192
  }
184
- function ie(o) {
185
- return o.type === "message.call" && typeof a.callMessageOnCallback == "function" ? { onCall: a.callMessageOnCallback } : {};
193
+ function le(t) {
194
+ return t.type === "message.call" && typeof a.callMessageOnCallback == "function" ? { onCall: a.callMessageOnCallback } : {};
186
195
  }
187
- const f = Q, {
188
- checkScrollPosition: le,
196
+ const g = X, {
197
+ checkScrollPosition: de,
189
198
  startScrollWatch: U,
190
- stopScrollWatch: $,
191
- resetAllowFlags: de
192
- } = Qe({
193
- feedRef: c,
194
- emit: f,
195
- isLoadingMoreRef: i(() => a.isLoadingMore)
199
+ stopScrollWatch: q,
200
+ resetAllowFlags: ce
201
+ } = Ye({
202
+ feedRef: u,
203
+ emit: g,
204
+ isLoadingMoreRef: l(() => a.isLoadingMore)
196
205
  }), {
197
- getMessage: S,
198
- messageAction: ce,
199
- handleClickReplied: ue,
200
- feedObjectDoubleClick: me,
201
- handleResetReply: fe,
202
- handleResetEdit: ge
203
- } = Ze({
206
+ getMessage: R,
207
+ messageAction: ue,
208
+ handleClickReplied: me,
209
+ feedObjectDoubleClick: fe,
210
+ handleResetReply: ge,
211
+ handleResetEdit: ye
212
+ } = tt({
204
213
  enableDoubleClickReply: a.enableDoubleClickReply,
205
- emit: f,
206
- isReplyAllowed: (o) => !nt(o, L(o))
214
+ emit: g,
215
+ isReplyAllowed: (t) => !it(t, L(t))
207
216
  });
208
- function ye(o) {
209
- f("smsInvite", o);
217
+ function pe(t) {
218
+ g("smsInvite", t);
210
219
  }
211
- function pe(o) {
212
- f("delimiterRead", o);
220
+ function be(t) {
221
+ g("delimiterRead", t);
213
222
  }
214
223
  const {
215
- showKeyboard: be,
216
- keyboardAction: ke,
217
- feedKeyboardAction: ve
218
- } = Je({
219
- isKeyboardPlace: Y,
220
- objects: i(() => a.objects),
221
- emit: f
224
+ showKeyboard: ke,
225
+ keyboardAction: ve,
226
+ feedKeyboardAction: he
227
+ } = Xe({
228
+ isKeyboardPlace: Z,
229
+ objects: l(() => a.objects),
230
+ emit: g
222
231
  }), {
223
- showStickyDate: he,
224
- stickyDateText: Me,
225
- show: q
226
- } = tt({
227
- feedRef: c,
232
+ showStickyDate: Me,
233
+ stickyDateText: Re,
234
+ show: E
235
+ } = nt({
236
+ feedRef: u,
228
237
  trackingObjects: v
229
238
  }), {
230
- isInitialized: Se,
231
- initializeScroll: Ie,
232
- smoothScrollToBottom: Re
233
- } = _e({
234
- feedRef: c,
235
- objectsRef: i(() => a.objects),
236
- scrollToBottomRef: i(() => a.scrollToBottom)
237
- }), E = i(() => a.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(at)}`);
238
- function P(o = !0) {
239
- if (Z(), se.value) {
240
- const n = c.value;
241
- n && n.scrollTop < 300 && ae(), q();
239
+ isInitialized: Ie,
240
+ initializeScroll: Se,
241
+ smoothScrollToBottom: Ae
242
+ } = ot({
243
+ feedRef: u,
244
+ objectsRef: l(() => a.objects),
245
+ scrollToBottomRef: l(() => a.scrollToBottom)
246
+ }), P = l(() => a.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(lt)}`);
247
+ function V(t = !0) {
248
+ if (_(), se.value) {
249
+ const o = u.value;
250
+ o && o.scrollTop < 300 && ae(), E();
242
251
  return;
243
252
  }
244
- le(o), q();
253
+ de(t), E();
245
254
  }
246
- const Ae = ot(() => P(), 250);
247
- function Be() {
248
- f("forceScrollToBottom"), Re();
255
+ const Be = at(() => V(), 250);
256
+ function Fe() {
257
+ g("forceScrollToBottom"), Ae();
249
258
  }
250
- function Fe(o) {
251
- const n = a.objects;
252
- if (o.startsWith("mid-")) {
253
- const e = parseInt(o.slice(4), 10);
254
- return n[e];
259
+ function Ce(t) {
260
+ const o = a.objects;
261
+ if (t.startsWith("mid-")) {
262
+ const e = parseInt(t.slice(4), 10);
263
+ return o[e];
255
264
  }
256
- return n.find((e) => e.messageId === o);
265
+ return o.find((e) => e.messageId === t);
257
266
  }
258
- const { restartObserving: V } = Xe({
267
+ const { restartObserving: W } = Ze({
259
268
  trackingObjects: v,
260
269
  chatAppId: b,
261
- getMessageById: Fe,
262
- onMessageVisible: (o) => f("messageVisible", o)
270
+ getMessageById: Ce,
271
+ onMessageVisible: (t) => g("messageVisible", t)
263
272
  });
264
273
  return B(
265
274
  () => a.objects,
266
275
  () => {
267
276
  F(() => {
268
277
  requestAnimationFrame(() => {
269
- de(), P(!1), v.value = document.querySelectorAll(".tracking-message"), V();
278
+ ce(), V(!1), v.value = document.querySelectorAll(".tracking-message"), W();
270
279
  });
271
280
  });
272
281
  },
273
282
  { immediate: !0 }
274
283
  ), B(h, () => {
275
284
  F(() => {
276
- v.value = document.querySelectorAll(".tracking-message"), V();
285
+ v.value = document.querySelectorAll(".tracking-message"), W();
277
286
  });
278
287
  }), B(
279
288
  () => a.scrollTo,
280
- (o) => {
281
- if (!o) return;
282
- const n = a.objects, e = o.trim(), r = e.startsWith("msg-") ? e.slice(4) : e;
283
- let u = -1;
284
- r.startsWith("mid-") ? u = Number.parseInt(r.slice(4), 10) : u = n.findIndex((d) => d.messageId === r || d.messageId === e), Number.isFinite(u) && ne(u);
289
+ (t) => {
290
+ if (!t) return;
291
+ const o = a.objects, e = t.trim(), r = e.startsWith("msg-") ? e.slice(4) : e;
292
+ let m = -1;
293
+ r.startsWith("mid-") ? m = Number.parseInt(r.slice(4), 10) : m = o.findIndex((d) => d.messageId === r || d.messageId === e), Number.isFinite(m) && ne(m);
285
294
  }
286
- ), et({
287
- targetIdRef: i(() => a.scrollTo),
295
+ ), st({
296
+ targetIdRef: l(() => a.scrollTo),
288
297
  feedContainerId: `feed-container-${b}`
289
- }), Te(() => {
298
+ }), De(() => {
290
299
  F(() => {
291
- a.objects.length > 0 && !Se.value && Ie();
300
+ a.objects.length > 0 && !Ie.value && Se();
292
301
  });
293
- }), (o, n) => (l(), g("div", rt, [
294
- s.objects.length > 0 || s.typing ? (l(), g("div", {
302
+ }), (t, o) => (i(), y("div", dt, [
303
+ n.objects.length > 0 || n.typing ? (i(), y("div", {
295
304
  key: 0,
296
- id: "feed-container-" + t(b),
305
+ id: "feed-container-" + s(b),
297
306
  ref_key: "refFeed",
298
- ref: c,
307
+ ref: u,
299
308
  class: "message-feed",
300
- style: G({ backgroundImage: `url(${E.value})` }),
301
- onScroll: n[2] || (n[2] = (e) => t(Ae)()),
302
- onMousedown: n[3] || (n[3] = //@ts-ignore
303
- (...e) => t(U) && t(U)(...e)),
304
- onMouseup: n[4] || (n[4] = //@ts-ignore
305
- (...e) => t($) && t($)(...e))
309
+ style: H({ backgroundImage: `url(${P.value})` }),
310
+ onScroll: o[2] || (o[2] = (e) => s(Be)()),
311
+ onMousedown: o[3] || (o[3] = //@ts-ignore
312
+ (...e) => s(U) && s(U)(...e)),
313
+ onMouseup: o[4] || (o[4] = //@ts-ignore
314
+ (...e) => s(q) && s(q)(...e))
306
315
  }, [
307
- H(o.$slots, "prepend", {}, void 0, !0),
308
- De(C("div", lt, [
309
- p(We, {
310
- "is-loading": s.isLoadingMore,
316
+ J(t.$slots, "prepend", {}, void 0, !0),
317
+ we(C("div", ut, [
318
+ p(ze, {
319
+ "is-loading": n.isLoadingMore,
311
320
  size: "small",
312
321
  position: "top"
313
322
  }, null, 8, ["is-loading"])
314
323
  ], 512), [
315
- [we, s.isLoadingMore]
324
+ [Ke, n.isLoadingMore]
316
325
  ]),
317
326
  p(T, null, {
318
327
  default: D(() => [
319
- t(he) && !s.isLoadingMore ? (l(), y(Ue, {
328
+ s(Me) && !n.isLoadingMore ? (i(), f(Ue, {
320
329
  key: 0,
321
330
  class: "message-feed__sticky-date",
322
- text: t(Me)
323
- }, null, 8, ["text"])) : m("", !0)
331
+ text: s(Re)
332
+ }, null, 8, ["text"])) : c("", !0)
324
333
  ]),
325
334
  _: 1
326
335
  }),
327
- (l(!0), g(xe, null, Ke(t(oe), (e, r, u, d) => {
328
- const k = [e.messageId, e.text, e.status, e.reply, t(O)[t(h) + r]];
329
- if (d && d.key === M(e, r) && Oe(d, k)) return d;
330
- const I = (l(), g("div", {
336
+ (i(!0), y(xe, null, Oe(s(oe), (e, r, m, d) => {
337
+ const k = [e.messageId, e.text, e.status, e.reply, s($)[s(h) + r], ie(e)];
338
+ if (d && d.key === M(e, r) && $e(d, k)) return d;
339
+ const I = (i(), y("div", {
331
340
  id: "msg-" + M(e, r),
332
341
  key: M(e, r),
333
342
  "data-timestamp": re(e),
334
343
  class: "tracking-message",
335
- onDblclick: (W) => t(me)(W, e)
344
+ onDblclick: (z) => s(fe)(z, e)
336
345
  }, [
337
- (l(), y(je(t(_)(e)), Ne({
346
+ (i(), f(je(s(ee)(e)), Ne({
338
347
  key: M(e, r),
339
348
  class: "message-feed__message",
340
349
  message: e,
341
- "apply-style": s.applyStyle,
342
- "is-first-in-series": t(O)[t(h) + r],
343
- "reactions-enabled": ee.value,
350
+ "apply-style": n.applyStyle,
351
+ "is-first-in-series": s($)[s(h) + r],
352
+ "reactions-enabled": K.value,
344
353
  "reactions-mode": te.value,
345
354
  "current-user-id": x.value,
346
- "reaction-user-names": K.value,
347
- "subtext-tooltip-data": s.subtextTooltipData,
355
+ "reaction-user-names": O.value,
356
+ "subtext-tooltip-data": n.subtextTooltipData,
348
357
  channel: L(e)
349
- }, { ref_for: !0 }, ie(e), {
350
- onAction: t(ce),
351
- onReply: t(ue),
352
- onSmsInvite: (W) => ye(e),
353
- onRead: pe
358
+ }, { ref_for: !0 }, le(e), {
359
+ onAction: s(ue),
360
+ onReply: s(me),
361
+ onSmsInvite: (z) => pe(e),
362
+ onRead: be
354
363
  }), null, 16, ["message", "apply-style", "is-first-in-series", "reactions-enabled", "reactions-mode", "current-user-id", "reaction-user-names", "subtext-tooltip-data", "channel", "onAction", "onReply", "onSmsInvite"]))
355
364
  ], 40, ["id", "data-timestamp", "onDblclick"]));
356
365
  return I.memo = k, I;
357
- }, n, 0), 128)),
358
- s.typing ? (l(), y(Ve, {
366
+ }, o, 0), 128)),
367
+ n.typing ? (i(), f(We, {
359
368
  key: 0,
360
369
  message: {
361
- subText: s.typing.title,
362
- avatar: s.typing.avatar
370
+ subText: n.typing.title,
371
+ avatar: n.typing.avatar
363
372
  }
364
- }, null, 8, ["message"])) : m("", !0),
373
+ }, null, 8, ["message"])) : c("", !0),
365
374
  p(T, null, {
366
375
  default: D(() => [
367
- t(be) ? (l(), y(Ee, {
376
+ s(ke) ? (i(), f(Pe, {
368
377
  key: 0,
369
378
  ref_key: "keyboardRef",
370
379
  ref: w,
371
380
  class: "message-feed__keyboard",
372
- keyboard: s.objects[s.objects.length - 1].keyboard,
373
- align: s.keyboardAlign,
374
- onAction: t(ke)
375
- }, null, 8, ["keyboard", "align", "onAction"])) : m("", !0)
381
+ keyboard: n.objects[n.objects.length - 1].keyboard,
382
+ align: n.keyboardAlign,
383
+ onAction: s(ve)
384
+ }, null, 8, ["keyboard", "align", "onAction"])) : c("", !0)
376
385
  ]),
377
386
  _: 1
378
387
  }),
379
- s.feedKeyboards && s.feedKeyboards.length > 0 ? (l(), y(Pe, {
388
+ n.feedKeyboards && n.feedKeyboards.length > 0 ? (i(), f(Ve, {
380
389
  key: 1,
381
- buttons: s.feedKeyboards,
382
- align: s.feedKeyboardAlign,
383
- onAction: t(ve)
384
- }, null, 8, ["buttons", "align", "onAction"])) : m("", !0)
385
- ], 44, it)) : (l(), g("div", {
390
+ buttons: n.feedKeyboards,
391
+ align: n.feedKeyboardAlign,
392
+ onAction: s(he)
393
+ }, null, 8, ["buttons", "align", "onAction"])) : c("", !0)
394
+ ], 44, ct)) : (i(), y("div", {
386
395
  key: 1,
387
396
  ref_key: "refFeed",
388
- ref: c,
397
+ ref: u,
389
398
  class: "message-feed",
390
- style: G({ backgroundImage: `url(${E.value})` })
399
+ style: H({ backgroundImage: `url(${P.value})` })
391
400
  }, [
392
- C("div", dt, [
393
- H(o.$slots, "empty-feed", {}, void 0, !0)
401
+ C("div", mt, [
402
+ J(t.$slots, "empty-feed", {}, void 0, !0)
394
403
  ])
395
404
  ], 4)),
396
405
  p(T, null, {
397
406
  default: D(() => [
398
- t(X) ? (l(), g("button", {
407
+ s(Y) ? (i(), y("button", {
399
408
  key: 0,
400
409
  class: "message-feed__button-down",
401
- onClick: Be
410
+ onClick: Fe
402
411
  }, [
403
- s.buttonParams ? (l(), g("div", ct, Le(s.buttonParams.unreadAmount), 1)) : m("", !0),
404
- n[5] || (n[5] = C("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
405
- ])) : m("", !0)
412
+ n.buttonParams ? (i(), y("div", ft, Le(n.buttonParams.unreadAmount), 1)) : c("", !0),
413
+ o[5] || (o[5] = C("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
414
+ ])) : c("", !0)
406
415
  ]),
407
416
  _: 1
408
417
  }),
409
- t(S)().reply ? (l(), y(J, {
418
+ s(R)().reply ? (i(), f(Q, {
410
419
  key: 2,
411
- to: "#chat-input-reply-line-" + t(b)
420
+ to: "#chat-input-reply-line-" + s(b)
412
421
  }, [
413
- p($e, {
422
+ p(qe, {
414
423
  class: "chat-input-reply",
415
- message: t(S)().reply,
416
- onReset: t(fe)
424
+ message: s(R)().reply,
425
+ onReset: s(ge)
417
426
  }, null, 8, ["message", "onReset"])
418
- ], 8, ["to"])) : m("", !0),
419
- t(S)().edit ? (l(), y(J, {
427
+ ], 8, ["to"])) : c("", !0),
428
+ s(R)().edit ? (i(), f(Q, {
420
429
  key: 3,
421
- to: "#chat-input-reply-line-" + t(b)
430
+ to: "#chat-input-reply-line-" + s(b)
422
431
  }, [
423
- p(qe, {
432
+ p(Ee, {
424
433
  class: "chat-input-reply",
425
- message: t(S)().edit,
426
- onReset: t(ge)
434
+ message: s(R)().edit,
435
+ onReset: s(ye)
427
436
  }, null, 8, ["message", "onReset"])
428
- ], 8, ["to"])) : m("", !0)
437
+ ], 8, ["to"])) : c("", !0),
438
+ K.value ? (i(), f(Ge, { key: 4 })) : c("", !0)
429
439
  ]));
430
440
  }
431
441
  });
432
442
  export {
433
- jt as default
443
+ qt as default
434
444
  };