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