@linktr.ee/messaging-react 3.3.6-rc-1780987607 → 3.3.6
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/{Card-IjOI7UXs.js → Card-B9QrjooN.js} +3 -3
- package/dist/{Card-IjOI7UXs.js.map → Card-B9QrjooN.js.map} +1 -1
- package/dist/{Card-Cn7Zxc6U.cjs → Card-BRRlz4kq.cjs} +2 -2
- package/dist/{Card-Cn7Zxc6U.cjs.map → Card-BRRlz4kq.cjs.map} +1 -1
- package/dist/{Card-BlviN8Fb.cjs → Card-C-FCwjGa.cjs} +2 -2
- package/dist/{Card-BlviN8Fb.cjs.map → Card-C-FCwjGa.cjs.map} +1 -1
- package/dist/{Card-DE5bfj0l.js → Card-CVZzYmYW.js} +2 -2
- package/dist/{Card-DE5bfj0l.js.map → Card-CVZzYmYW.js.map} +1 -1
- package/dist/{Card-KgQxeR-B.cjs → Card-D_oLlfPw.cjs} +2 -2
- package/dist/{Card-KgQxeR-B.cjs.map → Card-D_oLlfPw.cjs.map} +1 -1
- package/dist/{Card-C4ncqjxJ.js → Card-DzjYyrie.js} +2 -2
- package/dist/{Card-C4ncqjxJ.js.map → Card-DzjYyrie.js.map} +1 -1
- package/dist/{LockedThumbnail-4-54cyJG.js → LockedThumbnail-CJfXY_Ut.js} +2 -2
- package/dist/{LockedThumbnail-4-54cyJG.js.map → LockedThumbnail-CJfXY_Ut.js.map} +1 -1
- package/dist/{LockedThumbnail-DL5NZzWJ.cjs → LockedThumbnail-Cth1yWnH.cjs} +2 -2
- package/dist/{LockedThumbnail-DL5NZzWJ.cjs.map → LockedThumbnail-Cth1yWnH.cjs.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/index-CBtOPvxW.cjs +2 -0
- package/dist/index-CBtOPvxW.cjs.map +1 -0
- package/dist/{index-C2wfgpUU.js → index-D7eRkXoG.js} +551 -585
- package/dist/index-D7eRkXoG.js.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/ChannelView.test.tsx +1 -12
- package/src/components/ChannelView.tsx +17 -34
- package/src/components/CustomMessageInput/index.tsx +4 -14
- package/src/styles.css +1 -0
- package/dist/index-C2wfgpUU.js.map +0 -1
- package/dist/index-nanry0Io.cjs +0 -2
- package/dist/index-nanry0Io.cjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as n, jsxs as h, Fragment as te } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { StreamChatService as
|
|
4
|
-
import { Chat as
|
|
5
|
-
import { StarIcon as Fe, DotsThreeIcon as
|
|
2
|
+
import $, { createContext as Ge, useContext as Te, useCallback as W, useState as P, useRef as H, useEffect as Y, useId as En, useMemo as ee, Suspense as He } from "react";
|
|
3
|
+
import { StreamChatService as Sn } from "@linktr.ee/messaging-core";
|
|
4
|
+
import { Chat as In, DateSeparator as Tn, useChannelStateContext as ce, useChatContext as Ye, areMessageUIPropsEqual as An, useMessageReminder as Mn, useComponentContext as Ut, Attachment as Rn, EditMessageModal as Ln, MessageBlocked as Dn, MessageBouncePrompt as Pn, MessageDeleted as On, MessageIsThreadReplyInChannelButtonIndicator as zn, MessageRepliesCountButton as $n, ReminderNotification as Fn, StreamedMessageText as Bn, messageHasAttachments as Un, messageHasReactions as jn, isDateSeparatorMessage as Vn, isMessageBlocked as Gn, isMessageBounced as Hn, MessageBounceModal as Yn, MessageText as Tt, Poll as qn, MessageErrorIcon as Wn, useMessageContext as pe, useMessageComposer as Xn, useStateStore as Kn, MessageInput as Jn, useMessageInputContext as Zn, useMessageComposerHasSendableData as Qn, AttachmentPreviewList as es, QuotedMessagePreview as ts, TextareaComposer as ns, MessageTimestamp as Le, AIStates as De, useTypingContext as ss, useAIState as as, Channel as rs, WithComponents as is, Window as os, MessageList as ls, ChannelList as cs } from "stream-chat-react";
|
|
5
|
+
import { StarIcon as Fe, DotsThreeIcon as ds, SpinnerGapIcon as Ce, SignOutIcon as us, ProhibitInsetIcon as At, FlagIcon as jt, FileIcon as Vt, ImageIcon as ms, SpeakerHighIcon as hs, VideoCameraIcon as Gt, FileMdIcon as fs, FileTextIcon as gs, FileZipIcon as bs, FilePptIcon as ps, FileCsvIcon as vs, FileXlsIcon as xs, FileDocIcon as ws, FilePdfIcon as Ns, CircleNotchIcon as ge, PlayIcon as Be, PauseIcon as _s, LinkIcon as ys, DownloadSimpleIcon as be, GiftIcon as Cs, ThumbsUpIcon as ks, ThumbsDownIcon as Es, TrashSimpleIcon as Ss, XIcon as Ae, ArrowUpIcon as Is, SparkleIcon as Ue, ProhibitIcon as Ts, ArrowLeftIcon as Mt, PencilSimpleIcon as As, CaretLeftIcon as Ms, CaretRightIcon as Rs } from "@phosphor-icons/react";
|
|
6
6
|
import y from "classnames";
|
|
7
|
-
import { MessageActions as
|
|
7
|
+
import { MessageActions as Ls, DefaultDropdownActionButton as Ht } from "stream-chat-react/experimental";
|
|
8
8
|
import { LinkPreviewsManager as Rt } from "stream-chat";
|
|
9
9
|
const Yt = Ge({
|
|
10
10
|
service: null,
|
|
@@ -16,7 +16,7 @@ const Yt = Ge({
|
|
|
16
16
|
refreshConnection: async () => {
|
|
17
17
|
},
|
|
18
18
|
debug: !1
|
|
19
|
-
}), qe = () => Te(Yt),
|
|
19
|
+
}), qe = () => Te(Yt), wi = ({
|
|
20
20
|
children: e,
|
|
21
21
|
user: t,
|
|
22
22
|
serviceConfig: s,
|
|
@@ -36,14 +36,14 @@ const Yt = Ge({
|
|
|
36
36
|
serviceConfig: !!s,
|
|
37
37
|
capabilities: Object.keys(r)
|
|
38
38
|
});
|
|
39
|
-
const [l, d] =
|
|
39
|
+
const [l, d] = P(null), [m, b] = P(null), [u, f] = P(!1), [c, g] = P(!1), [p, v] = P(null), N = H(!1), x = H({
|
|
40
40
|
userId: t == null ? void 0 : t.id,
|
|
41
41
|
apiKey: a,
|
|
42
42
|
serviceConfig: s,
|
|
43
43
|
capabilities: r
|
|
44
|
-
}),
|
|
45
|
-
|
|
46
|
-
renderCount:
|
|
44
|
+
}), S = H(0);
|
|
45
|
+
S.current++, o("📊 RENDER INFO", {
|
|
46
|
+
renderCount: S.current,
|
|
47
47
|
currentProps: { userId: t == null ? void 0 : t.id, apiKey: (a == null ? void 0 : a.substring(0, 8)) + "..." },
|
|
48
48
|
propChanges: {
|
|
49
49
|
userChanged: x.current.userId !== (t == null ? void 0 : t.id),
|
|
@@ -57,7 +57,7 @@ const Yt = Ge({
|
|
|
57
57
|
serviceConfig: s,
|
|
58
58
|
capabilities: r
|
|
59
59
|
}, Y(() => {
|
|
60
|
-
const k =
|
|
60
|
+
const k = S.current;
|
|
61
61
|
if (o("🔧 SERVICE INIT EFFECT TRIGGERED", {
|
|
62
62
|
renderCount: k,
|
|
63
63
|
apiKey: !!a,
|
|
@@ -80,7 +80,7 @@ const Yt = Ge({
|
|
|
80
80
|
apiKey: (a == null ? void 0 : a.substring(0, 8)) + "...",
|
|
81
81
|
serviceConfigChanged: x.current.serviceConfig !== s
|
|
82
82
|
});
|
|
83
|
-
const T = new
|
|
83
|
+
const T = new Sn({
|
|
84
84
|
...s,
|
|
85
85
|
apiKey: a,
|
|
86
86
|
debug: i
|
|
@@ -124,13 +124,13 @@ const Yt = Ge({
|
|
|
124
124
|
o("🚀 STARTING USER CONNECTION", { userId: t.id }), N.current = !0, g(!0), v(null);
|
|
125
125
|
try {
|
|
126
126
|
o("📞 CALLING SERVICE.CONNECTUSER", { userId: t.id });
|
|
127
|
-
const
|
|
128
|
-
b(
|
|
127
|
+
const I = await l.connectUser(t);
|
|
128
|
+
b(I), f(!0), E.current = { serviceId: l, userId: t.id }, o("✅ USER CONNECTION SUCCESS", {
|
|
129
129
|
userId: t.id,
|
|
130
|
-
clientId:
|
|
130
|
+
clientId: I.userID
|
|
131
131
|
});
|
|
132
|
-
} catch (
|
|
133
|
-
const R =
|
|
132
|
+
} catch (I) {
|
|
133
|
+
const R = I instanceof Error ? I.message : "Connection failed";
|
|
134
134
|
v(R), o("❌ USER CONNECTION ERROR", {
|
|
135
135
|
userId: t.id,
|
|
136
136
|
error: R
|
|
@@ -176,7 +176,7 @@ const Yt = Ge({
|
|
|
176
176
|
} finally {
|
|
177
177
|
g(!1), o("🔄 CONNECTION REFRESH FINISHED", { userId: t.id });
|
|
178
178
|
}
|
|
179
|
-
}, [l, t, o]),
|
|
179
|
+
}, [l, t, o]), D = $.useMemo(() => (o("💫 CONTEXT VALUE MEMOIZATION", {
|
|
180
180
|
hasService: !!l,
|
|
181
181
|
hasClient: !!m,
|
|
182
182
|
isConnected: u,
|
|
@@ -204,11 +204,11 @@ const Yt = Ge({
|
|
|
204
204
|
o
|
|
205
205
|
]);
|
|
206
206
|
return o("🔄 RENDER END", {
|
|
207
|
-
renderCount:
|
|
207
|
+
renderCount: S.current,
|
|
208
208
|
willRenderChat: !!(m && u),
|
|
209
|
-
contextValueReady: !!
|
|
210
|
-
}), /* @__PURE__ */ n(Yt.Provider, { value:
|
|
211
|
-
|
|
209
|
+
contextValueReady: !!D
|
|
210
|
+
}), /* @__PURE__ */ n(Yt.Provider, { value: D, children: m && u ? /* @__PURE__ */ n(
|
|
211
|
+
In,
|
|
212
212
|
{
|
|
213
213
|
client: m,
|
|
214
214
|
customClasses: {
|
|
@@ -217,9 +217,9 @@ const Yt = Ge({
|
|
|
217
217
|
children: e
|
|
218
218
|
}
|
|
219
219
|
) : e });
|
|
220
|
-
},
|
|
220
|
+
}, Ds = () => qe(), qt = (e) => {
|
|
221
221
|
var a, r;
|
|
222
|
-
const [t, s] =
|
|
222
|
+
const [t, s] = P(
|
|
223
223
|
!!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
|
|
224
224
|
);
|
|
225
225
|
return Y(() => {
|
|
@@ -239,13 +239,13 @@ const Yt = Ge({
|
|
|
239
239
|
e.off("member.updated", i);
|
|
240
240
|
};
|
|
241
241
|
}, [e]), t;
|
|
242
|
-
},
|
|
243
|
-
function
|
|
244
|
-
return
|
|
242
|
+
}, Ps = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
243
|
+
function Os(e) {
|
|
244
|
+
return Ps.test(e.trim());
|
|
245
245
|
}
|
|
246
246
|
function Lt(e, t) {
|
|
247
247
|
const s = e == null ? void 0 : e.trim();
|
|
248
|
-
return !s || t && s === t ? !1 : !
|
|
248
|
+
return !s || t && s === t ? !1 : !Os(s);
|
|
249
249
|
}
|
|
250
250
|
function Wt(e) {
|
|
251
251
|
return Lt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Lt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
|
|
@@ -278,7 +278,7 @@ const Dt = [
|
|
|
278
278
|
"🍈"
|
|
279
279
|
// Melon
|
|
280
280
|
];
|
|
281
|
-
function
|
|
281
|
+
function zs(e) {
|
|
282
282
|
let t = 0;
|
|
283
283
|
for (let s = 0; s < e.length; s++) {
|
|
284
284
|
const a = e.charCodeAt(s);
|
|
@@ -286,8 +286,8 @@ function $s(e) {
|
|
|
286
286
|
}
|
|
287
287
|
return Math.abs(t);
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
const s =
|
|
289
|
+
function $s(e) {
|
|
290
|
+
const s = zs(e) % Dt.length;
|
|
291
291
|
return Dt[s];
|
|
292
292
|
}
|
|
293
293
|
const ae = ({
|
|
@@ -299,7 +299,7 @@ const ae = ({
|
|
|
299
299
|
shape: i = "squircle",
|
|
300
300
|
dmAgentEnabled: o = !1
|
|
301
301
|
}) => {
|
|
302
|
-
const l =
|
|
302
|
+
const l = $s(e), m = s < 32 ? "text-xs" : s < 56 ? "text-sm" : s < 120 ? "text-lg" : "text-4xl", b = s >= 40 ? 2 : 1, u = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, f = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: u, children: t ? /* @__PURE__ */ n(
|
|
303
303
|
"img",
|
|
304
304
|
{
|
|
305
305
|
src: t,
|
|
@@ -361,7 +361,7 @@ const ae = ({
|
|
|
361
361
|
]
|
|
362
362
|
}
|
|
363
363
|
);
|
|
364
|
-
},
|
|
364
|
+
}, Fs = "https://linktr.ee/s/about/trust-center/report", Bs = ({
|
|
365
365
|
channel: e,
|
|
366
366
|
participant: t,
|
|
367
367
|
showBlockParticipant: s = !0,
|
|
@@ -374,8 +374,8 @@ const ae = ({
|
|
|
374
374
|
onActionComplete: m,
|
|
375
375
|
logLabel: b = "useChannelModerationActions"
|
|
376
376
|
}) => {
|
|
377
|
-
var
|
|
378
|
-
const { service: u, debug: f } = qe(), c = (
|
|
377
|
+
var F;
|
|
378
|
+
const { service: u, debug: f } = qe(), c = (F = t == null ? void 0 : t.user) == null ? void 0 : F.id, g = !!(a && s && u && c), [p, v] = P(!1), [N, x] = P(null), [S, E] = P(!1), [M, D] = P(!1), k = g && ((N == null ? void 0 : N.participantId) !== c || (N == null ? void 0 : N.service) !== u);
|
|
379
379
|
return Y(() => {
|
|
380
380
|
if (!g || !u || !c) {
|
|
381
381
|
v(!1), x(null);
|
|
@@ -384,15 +384,15 @@ const ae = ({
|
|
|
384
384
|
let A = !1;
|
|
385
385
|
return (async () => {
|
|
386
386
|
try {
|
|
387
|
-
const
|
|
387
|
+
const L = await u.getBlockedUsers();
|
|
388
388
|
if (A) return;
|
|
389
389
|
v(
|
|
390
|
-
|
|
390
|
+
L.some(
|
|
391
391
|
(z) => z.blocked_user_id === c
|
|
392
392
|
)
|
|
393
393
|
);
|
|
394
|
-
} catch (
|
|
395
|
-
A || console.error(`[${b}] Failed to check blocked status:`,
|
|
394
|
+
} catch (L) {
|
|
395
|
+
A || console.error(`[${b}] Failed to check blocked status:`, L);
|
|
396
396
|
} finally {
|
|
397
397
|
A || x({ participantId: c, service: u });
|
|
398
398
|
}
|
|
@@ -402,50 +402,50 @@ const ae = ({
|
|
|
402
402
|
}, [g, u, c, b]), {
|
|
403
403
|
isParticipantBlocked: p,
|
|
404
404
|
isCheckingBlockedStatus: k,
|
|
405
|
-
isLeaving:
|
|
405
|
+
isLeaving: S,
|
|
406
406
|
isUpdatingBlockStatus: M,
|
|
407
407
|
handleLeaveConversation: async () => {
|
|
408
408
|
var A;
|
|
409
|
-
if (!
|
|
409
|
+
if (!S) {
|
|
410
410
|
o == null || o(), f && console.log(`[${b}] Leave conversation`, e.cid), E(!0);
|
|
411
411
|
try {
|
|
412
|
-
const
|
|
413
|
-
await e.hide(
|
|
414
|
-
} catch (
|
|
415
|
-
console.error(`[${b}] Failed to leave conversation`,
|
|
412
|
+
const L = ((A = e._client) == null ? void 0 : A.userID) ?? null;
|
|
413
|
+
await e.hide(L, !1), r && await r(e), m == null || m();
|
|
414
|
+
} catch (L) {
|
|
415
|
+
console.error(`[${b}] Failed to leave conversation`, L);
|
|
416
416
|
} finally {
|
|
417
417
|
E(!1);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
421
|
handleBlockUser: async () => {
|
|
422
|
-
var A,
|
|
422
|
+
var A, L, z;
|
|
423
423
|
if (!(M || !u)) {
|
|
424
|
-
l == null || l(), f && console.log(`[${b}] Block member`, (A = t == null ? void 0 : t.user) == null ? void 0 : A.id),
|
|
424
|
+
l == null || l(), f && console.log(`[${b}] Block member`, (A = t == null ? void 0 : t.user) == null ? void 0 : A.id), D(!0);
|
|
425
425
|
try {
|
|
426
|
-
await u.blockUser((
|
|
427
|
-
} catch (
|
|
428
|
-
console.error(`[${b}] Failed to block member`,
|
|
426
|
+
await u.blockUser((L = t == null ? void 0 : t.user) == null ? void 0 : L.id), i && await i((z = t == null ? void 0 : t.user) == null ? void 0 : z.id), m == null || m();
|
|
427
|
+
} catch (V) {
|
|
428
|
+
console.error(`[${b}] Failed to block member`, V);
|
|
429
429
|
} finally {
|
|
430
|
-
|
|
430
|
+
D(!1);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
433
|
},
|
|
434
434
|
handleUnblockUser: async () => {
|
|
435
|
-
var A,
|
|
435
|
+
var A, L, z;
|
|
436
436
|
if (!(M || !u)) {
|
|
437
|
-
l == null || l(), f && console.log(`[${b}] Unblock member`, (A = t == null ? void 0 : t.user) == null ? void 0 : A.id),
|
|
437
|
+
l == null || l(), f && console.log(`[${b}] Unblock member`, (A = t == null ? void 0 : t.user) == null ? void 0 : A.id), D(!0);
|
|
438
438
|
try {
|
|
439
|
-
await u.unBlockUser((
|
|
440
|
-
} catch (
|
|
441
|
-
console.error(`[${b}] Failed to unblock member`,
|
|
439
|
+
await u.unBlockUser((L = t == null ? void 0 : t.user) == null ? void 0 : L.id), i && await i((z = t == null ? void 0 : t.user) == null ? void 0 : z.id), m == null || m();
|
|
440
|
+
} catch (V) {
|
|
441
|
+
console.error(`[${b}] Failed to unblock member`, V);
|
|
442
442
|
} finally {
|
|
443
|
-
|
|
443
|
+
D(!1);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
},
|
|
447
447
|
handleReportUser: () => {
|
|
448
|
-
d == null || d(), m == null || m(), window.open(
|
|
448
|
+
d == null || d(), m == null || m(), window.open(Fs, "_blank", "noopener,noreferrer");
|
|
449
449
|
}
|
|
450
450
|
};
|
|
451
451
|
}, he = ({
|
|
@@ -479,16 +479,16 @@ const ae = ({
|
|
|
479
479
|
customChannelActions: b,
|
|
480
480
|
triggerClassName: u
|
|
481
481
|
}) => {
|
|
482
|
-
const [f, c] =
|
|
482
|
+
const [f, c] = P(!1), g = H(null), p = En(), v = W(() => c(!1), []), {
|
|
483
483
|
isParticipantBlocked: N,
|
|
484
484
|
isCheckingBlockedStatus: x,
|
|
485
|
-
isLeaving:
|
|
485
|
+
isLeaving: S,
|
|
486
486
|
isUpdatingBlockStatus: E,
|
|
487
487
|
handleLeaveConversation: M,
|
|
488
|
-
handleBlockUser:
|
|
488
|
+
handleBlockUser: D,
|
|
489
489
|
handleUnblockUser: k,
|
|
490
490
|
handleReportUser: T
|
|
491
|
-
} =
|
|
491
|
+
} = Bs({
|
|
492
492
|
channel: e,
|
|
493
493
|
participant: t,
|
|
494
494
|
showBlockParticipant: a,
|
|
@@ -503,13 +503,13 @@ const ae = ({
|
|
|
503
503
|
});
|
|
504
504
|
return Y(() => {
|
|
505
505
|
if (!f) return;
|
|
506
|
-
const
|
|
507
|
-
g.current && !g.current.contains(
|
|
508
|
-
}, R = (
|
|
509
|
-
|
|
506
|
+
const I = (F) => {
|
|
507
|
+
g.current && !g.current.contains(F.target) && c(!1);
|
|
508
|
+
}, R = (F) => {
|
|
509
|
+
F.key === "Escape" && c(!1);
|
|
510
510
|
};
|
|
511
|
-
return document.addEventListener("mousedown",
|
|
512
|
-
document.removeEventListener("mousedown",
|
|
511
|
+
return document.addEventListener("mousedown", I), document.addEventListener("keydown", R), () => {
|
|
512
|
+
document.removeEventListener("mousedown", I), document.removeEventListener("keydown", R);
|
|
513
513
|
};
|
|
514
514
|
}, [f]), !t || !(s || a || r || !!b) ? null : /* @__PURE__ */ h("div", { ref: g, className: "relative", children: [
|
|
515
515
|
/* @__PURE__ */ h(
|
|
@@ -520,9 +520,9 @@ const ae = ({
|
|
|
520
520
|
"aria-haspopup": "true",
|
|
521
521
|
"aria-expanded": f,
|
|
522
522
|
"aria-controls": f ? p : void 0,
|
|
523
|
-
onClick: () => c((
|
|
523
|
+
onClick: () => c((I) => !I),
|
|
524
524
|
children: [
|
|
525
|
-
/* @__PURE__ */ n(
|
|
525
|
+
/* @__PURE__ */ n(ds, { className: "size-5 text-black/90" }),
|
|
526
526
|
/* @__PURE__ */ n("span", { className: "sr-only", children: "More options" })
|
|
527
527
|
]
|
|
528
528
|
}
|
|
@@ -541,10 +541,10 @@ const ae = ({
|
|
|
541
541
|
he,
|
|
542
542
|
{
|
|
543
543
|
onClick: M,
|
|
544
|
-
disabled:
|
|
545
|
-
"aria-busy":
|
|
544
|
+
disabled: S,
|
|
545
|
+
"aria-busy": S,
|
|
546
546
|
children: [
|
|
547
|
-
|
|
547
|
+
S ? /* @__PURE__ */ n(Ce, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(us, { className: "h-5 w-5" }),
|
|
548
548
|
/* @__PURE__ */ n("span", { children: "Delete Conversation" })
|
|
549
549
|
]
|
|
550
550
|
}
|
|
@@ -570,7 +570,7 @@ const ae = ({
|
|
|
570
570
|
) : /* @__PURE__ */ h(
|
|
571
571
|
he,
|
|
572
572
|
{
|
|
573
|
-
onClick:
|
|
573
|
+
onClick: D,
|
|
574
574
|
disabled: E,
|
|
575
575
|
"aria-busy": E,
|
|
576
576
|
children: [
|
|
@@ -588,13 +588,13 @@ const ae = ({
|
|
|
588
588
|
}
|
|
589
589
|
)
|
|
590
590
|
] });
|
|
591
|
-
},
|
|
592
|
-
function
|
|
591
|
+
}, Us = (e) => /* @__PURE__ */ n(Tn, { ...e, position: "center" }), je = "vote_up", Ve = "vote_down";
|
|
592
|
+
function js(e) {
|
|
593
593
|
return e != null && e.length ? e.some((t) => t.type === Ve) ? "down" : e.some((t) => t.type === je) ? "up" : null : null;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Vs(e) {
|
|
596
596
|
const { channel: t } = ce(), { client: s } = Ye("useMessageVote"), a = ee(
|
|
597
|
-
() =>
|
|
597
|
+
() => js(e.own_reactions),
|
|
598
598
|
[e.own_reactions]
|
|
599
599
|
), r = W(async () => {
|
|
600
600
|
if (s != null && s.userID)
|
|
@@ -619,7 +619,7 @@ function Gs(e) {
|
|
|
619
619
|
}, [t, s == null ? void 0 : s.userID, e.id, a]);
|
|
620
620
|
return { selected: a, voteUp: r, voteDown: i };
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Gs(e) {
|
|
623
623
|
return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
|
|
624
624
|
}
|
|
625
625
|
function Xt({
|
|
@@ -627,16 +627,16 @@ function Xt({
|
|
|
627
627
|
viewerLanguage: t
|
|
628
628
|
}) {
|
|
629
629
|
var r;
|
|
630
|
-
const s = e == null ? void 0 : e.text, a =
|
|
630
|
+
const s = e == null ? void 0 : e.text, a = Gs(t);
|
|
631
631
|
return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? s : s;
|
|
632
632
|
}
|
|
633
|
-
const
|
|
633
|
+
const Hs = $.lazy(() => import("./Card-CVZzYmYW.js")), Ys = $.lazy(() => import("./Card-DzjYyrie.js")), qs = $.lazy(() => import("./Card-B9QrjooN.js")), We = () => /* @__PURE__ */ n(
|
|
634
634
|
"div",
|
|
635
635
|
{
|
|
636
636
|
className: "w-[280px] min-h-[200px] animate-pulse rounded-md bg-black/[0.06] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_1px_2px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.1)]",
|
|
637
637
|
"aria-hidden": !0
|
|
638
638
|
}
|
|
639
|
-
),
|
|
639
|
+
), Ws = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Hs, { ...e }) }), Kt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Ys, { ...e }) }), Jt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(qs, { ...e }) }), Xs = Kt, Ks = Jt, Ot = { Composer: Ws, Sent: Kt, Received: Jt, Creator: Xs, Visitor: Ks }, Js = [
|
|
640
640
|
[/pdf/, "pdf"],
|
|
641
641
|
[/wordprocessingml|msword|\.doc/, "doc"],
|
|
642
642
|
[/spreadsheetml|ms-excel|\.xls/, "xls"],
|
|
@@ -650,38 +650,38 @@ function ne(e) {
|
|
|
650
650
|
return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
|
|
651
651
|
}
|
|
652
652
|
function Zt(e) {
|
|
653
|
-
const t =
|
|
653
|
+
const t = Js.find(
|
|
654
654
|
([s]) => s.test(e)
|
|
655
655
|
);
|
|
656
656
|
return t ? t[1] : "generic";
|
|
657
657
|
}
|
|
658
|
-
const
|
|
658
|
+
const Zs = {
|
|
659
659
|
video: Gt,
|
|
660
|
-
audio:
|
|
661
|
-
image:
|
|
660
|
+
audio: hs,
|
|
661
|
+
image: ms,
|
|
662
662
|
document: Vt
|
|
663
|
-
},
|
|
664
|
-
pdf:
|
|
665
|
-
doc:
|
|
666
|
-
xls:
|
|
667
|
-
csv:
|
|
668
|
-
ppt:
|
|
669
|
-
zip:
|
|
670
|
-
text:
|
|
671
|
-
markdown:
|
|
663
|
+
}, Qs = {
|
|
664
|
+
pdf: Ns,
|
|
665
|
+
doc: ws,
|
|
666
|
+
xls: xs,
|
|
667
|
+
csv: vs,
|
|
668
|
+
ppt: ps,
|
|
669
|
+
zip: bs,
|
|
670
|
+
text: gs,
|
|
671
|
+
markdown: fs,
|
|
672
672
|
generic: Vt
|
|
673
673
|
};
|
|
674
|
-
function
|
|
674
|
+
function ea(e) {
|
|
675
675
|
const t = ne(e);
|
|
676
|
-
return t !== "document" ?
|
|
676
|
+
return t !== "document" ? Zs[t] : Qs[Zt(e)];
|
|
677
677
|
}
|
|
678
678
|
function le(e, t) {
|
|
679
|
-
return
|
|
679
|
+
return $.createElement(ea(e), t);
|
|
680
680
|
}
|
|
681
|
-
const
|
|
681
|
+
const ta = (e) => {
|
|
682
682
|
var t, s;
|
|
683
683
|
return "touches" in e ? ((t = e.touches[0]) == null ? void 0 : t.clientX) ?? ((s = e.changedTouches[0]) == null ? void 0 : s.clientX) ?? 0 : e.clientX;
|
|
684
|
-
},
|
|
684
|
+
}, na = ({
|
|
685
685
|
source: e,
|
|
686
686
|
mimeType: t,
|
|
687
687
|
poster: s,
|
|
@@ -693,23 +693,23 @@ const na = (e) => {
|
|
|
693
693
|
muted: d = !1,
|
|
694
694
|
onContainerClick: m
|
|
695
695
|
}) => {
|
|
696
|
-
const b = ne(t), u = H(null), f = H(null), c = H(null), g = H(r), [p, v] =
|
|
696
|
+
const b = ne(t), u = H(null), f = H(null), c = H(null), g = H(r), [p, v] = P(a), [N, x] = P(0), [S, E] = P(!1), [M, D] = P(!1), [k, T] = P(!1), [_, I] = P(!1), [R, F] = P(!0), [A, L] = P(null), z = W(() => {
|
|
697
697
|
T(!1), v(!0);
|
|
698
|
-
}, []),
|
|
698
|
+
}, []), V = W((w) => {
|
|
699
699
|
const C = f.current;
|
|
700
700
|
if (!C) return 0;
|
|
701
|
-
const
|
|
701
|
+
const j = C.getBoundingClientRect();
|
|
702
702
|
return Math.max(
|
|
703
703
|
0,
|
|
704
|
-
Math.min(1, (
|
|
704
|
+
Math.min(1, (ta(w) - j.left) / j.width)
|
|
705
705
|
);
|
|
706
|
-
}, []),
|
|
706
|
+
}, []), B = W((w) => {
|
|
707
707
|
const C = u.current;
|
|
708
708
|
C && C.duration && (C.currentTime = w * C.duration);
|
|
709
|
-
}, []),
|
|
709
|
+
}, []), U = (w) => {
|
|
710
710
|
w.stopPropagation(), E(!0);
|
|
711
|
-
const C =
|
|
712
|
-
x(C),
|
|
711
|
+
const C = V(w);
|
|
712
|
+
x(C), B(C);
|
|
713
713
|
};
|
|
714
714
|
Y(() => {
|
|
715
715
|
r !== void 0 && r !== g.current && (g.current = r, v(r));
|
|
@@ -720,32 +720,32 @@ const na = (e) => {
|
|
|
720
720
|
}
|
|
721
721
|
const w = () => {
|
|
722
722
|
const C = u.current;
|
|
723
|
-
C && C.duration && !
|
|
723
|
+
C && C.duration && !S && x(C.currentTime / C.duration), c.current = requestAnimationFrame(w);
|
|
724
724
|
};
|
|
725
725
|
return c.current = requestAnimationFrame(w), () => {
|
|
726
726
|
c.current !== null && cancelAnimationFrame(c.current);
|
|
727
727
|
};
|
|
728
|
-
}, [p,
|
|
728
|
+
}, [p, S]), Y(() => {
|
|
729
729
|
const w = u.current;
|
|
730
730
|
w && (p ? w.play().catch((C) => {
|
|
731
731
|
v(!1), T(!0);
|
|
732
732
|
}) : w.pause());
|
|
733
733
|
}, [p]), Y(() => {
|
|
734
|
-
if (!
|
|
735
|
-
const w = (
|
|
736
|
-
E(!1),
|
|
734
|
+
if (!S) return;
|
|
735
|
+
const w = (j) => x(V(j)), C = (j) => {
|
|
736
|
+
E(!1), B(V(j));
|
|
737
737
|
};
|
|
738
738
|
return window.addEventListener("mousemove", w), window.addEventListener("mouseup", C), window.addEventListener("touchmove", w, { passive: !0 }), window.addEventListener("touchend", C), () => {
|
|
739
739
|
window.removeEventListener("mousemove", w), window.removeEventListener("mouseup", C), window.removeEventListener("touchmove", w), window.removeEventListener("touchend", C);
|
|
740
740
|
};
|
|
741
|
-
}, [
|
|
742
|
-
const X = A ? { aspectRatio: String(A) } : void 0,
|
|
741
|
+
}, [S, V, B]);
|
|
742
|
+
const X = A ? { aspectRatio: String(A) } : void 0, G = A ? "" : " aspect-video", O = Math.round(N * 100);
|
|
743
743
|
return /* @__PURE__ */ h(
|
|
744
744
|
"div",
|
|
745
745
|
{
|
|
746
746
|
role: "button",
|
|
747
747
|
tabIndex: 0,
|
|
748
|
-
className: `relative cursor-pointer overflow-hidden bg-black ${
|
|
748
|
+
className: `relative cursor-pointer overflow-hidden bg-black ${G}`,
|
|
749
749
|
style: X,
|
|
750
750
|
onClick: (w) => {
|
|
751
751
|
if (m) {
|
|
@@ -784,11 +784,11 @@ const na = (e) => {
|
|
|
784
784
|
loop: i,
|
|
785
785
|
muted: d,
|
|
786
786
|
style: { width: "100%", height: "100%" },
|
|
787
|
-
onLoadStart: () =>
|
|
787
|
+
onLoadStart: () => I(!0),
|
|
788
788
|
onCanPlay: () => {
|
|
789
|
-
|
|
789
|
+
I(!1), F(!1);
|
|
790
790
|
},
|
|
791
|
-
onWaiting: () =>
|
|
791
|
+
onWaiting: () => I(!0),
|
|
792
792
|
onPlay: () => T(!1),
|
|
793
793
|
onEnded: () => {
|
|
794
794
|
i || (v(!1), x(0));
|
|
@@ -804,15 +804,15 @@ const na = (e) => {
|
|
|
804
804
|
muted: d,
|
|
805
805
|
playsInline: !0,
|
|
806
806
|
style: { width: "100%", height: "100%" },
|
|
807
|
-
onLoadStart: () =>
|
|
807
|
+
onLoadStart: () => I(!0),
|
|
808
808
|
onCanPlay: () => {
|
|
809
|
-
|
|
809
|
+
I(!1), F(!1);
|
|
810
810
|
},
|
|
811
|
-
onWaiting: () =>
|
|
811
|
+
onWaiting: () => I(!0),
|
|
812
812
|
onPlay: () => T(!1),
|
|
813
813
|
onLoadedMetadata: () => {
|
|
814
814
|
const w = u.current;
|
|
815
|
-
w instanceof HTMLVideoElement && w.videoWidth && w.videoHeight &&
|
|
815
|
+
w instanceof HTMLVideoElement && w.videoWidth && w.videoHeight && L(w.videoWidth / w.videoHeight);
|
|
816
816
|
},
|
|
817
817
|
onEnded: () => {
|
|
818
818
|
i || (v(!1), x(0));
|
|
@@ -848,23 +848,23 @@ const na = (e) => {
|
|
|
848
848
|
{
|
|
849
849
|
role: "slider",
|
|
850
850
|
"aria-label": "Playback position",
|
|
851
|
-
"aria-valuenow":
|
|
851
|
+
"aria-valuenow": O,
|
|
852
852
|
"aria-valuemin": 0,
|
|
853
853
|
"aria-valuemax": 100,
|
|
854
854
|
tabIndex: 0,
|
|
855
855
|
ref: f,
|
|
856
856
|
className: "relative flex h-4 w-full cursor-pointer items-center",
|
|
857
|
-
onMouseDown:
|
|
858
|
-
onTouchStart:
|
|
857
|
+
onMouseDown: U,
|
|
858
|
+
onTouchStart: U,
|
|
859
859
|
onClick: (w) => w.stopPropagation(),
|
|
860
860
|
onKeyDown: (w) => {
|
|
861
|
-
w.key === "ArrowRight" &&
|
|
861
|
+
w.key === "ArrowRight" && B(Math.min(1, N + 0.05)), w.key === "ArrowLeft" && B(Math.max(0, N - 0.05));
|
|
862
862
|
},
|
|
863
863
|
children: /* @__PURE__ */ n("div", { className: "w-full overflow-hidden rounded-full bg-white/30 h-1", children: /* @__PURE__ */ n(
|
|
864
864
|
"div",
|
|
865
865
|
{
|
|
866
866
|
className: "h-full rounded-full bg-white",
|
|
867
|
-
style: { width: `${
|
|
867
|
+
style: { width: `${O}%` }
|
|
868
868
|
}
|
|
869
869
|
) })
|
|
870
870
|
}
|
|
@@ -879,7 +879,7 @@ const na = (e) => {
|
|
|
879
879
|
},
|
|
880
880
|
className: "shrink-0 text-white",
|
|
881
881
|
"aria-label": p ? "Pause" : "Play",
|
|
882
|
-
children: p ? /* @__PURE__ */ n(
|
|
882
|
+
children: p ? /* @__PURE__ */ n(_s, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(Be, { className: "size-5 translate-x-px", weight: "fill" })
|
|
883
883
|
}
|
|
884
884
|
),
|
|
885
885
|
/* @__PURE__ */ h(
|
|
@@ -887,30 +887,30 @@ const na = (e) => {
|
|
|
887
887
|
{
|
|
888
888
|
role: "slider",
|
|
889
889
|
"aria-label": "Playback position",
|
|
890
|
-
"aria-valuenow":
|
|
890
|
+
"aria-valuenow": O,
|
|
891
891
|
"aria-valuemin": 0,
|
|
892
892
|
"aria-valuemax": 100,
|
|
893
893
|
tabIndex: 0,
|
|
894
894
|
ref: f,
|
|
895
895
|
className: "relative flex h-4 w-full cursor-pointer items-center",
|
|
896
|
-
onMouseDown:
|
|
897
|
-
onTouchStart:
|
|
896
|
+
onMouseDown: U,
|
|
897
|
+
onTouchStart: U,
|
|
898
898
|
onClick: (w) => w.stopPropagation(),
|
|
899
|
-
onMouseEnter: () =>
|
|
900
|
-
onMouseLeave: () =>
|
|
899
|
+
onMouseEnter: () => D(!0),
|
|
900
|
+
onMouseLeave: () => D(!1),
|
|
901
901
|
onKeyDown: (w) => {
|
|
902
|
-
w.key === "ArrowRight" &&
|
|
902
|
+
w.key === "ArrowRight" && B(Math.min(1, N + 0.05)), w.key === "ArrowLeft" && B(Math.max(0, N - 0.05));
|
|
903
903
|
},
|
|
904
904
|
children: [
|
|
905
905
|
/* @__PURE__ */ n(
|
|
906
906
|
"div",
|
|
907
907
|
{
|
|
908
|
-
className: `w-full overflow-hidden rounded-full bg-white/30 transition-all duration-200 ${M ||
|
|
908
|
+
className: `w-full overflow-hidden rounded-full bg-white/30 transition-all duration-200 ${M || S ? "h-1.5" : "h-1"}`,
|
|
909
909
|
children: /* @__PURE__ */ n(
|
|
910
910
|
"div",
|
|
911
911
|
{
|
|
912
912
|
className: "h-full rounded-full bg-white",
|
|
913
|
-
style: { width: `${
|
|
913
|
+
style: { width: `${O}%` }
|
|
914
914
|
}
|
|
915
915
|
)
|
|
916
916
|
}
|
|
@@ -918,8 +918,8 @@ const na = (e) => {
|
|
|
918
918
|
/* @__PURE__ */ n(
|
|
919
919
|
"div",
|
|
920
920
|
{
|
|
921
|
-
className: `absolute size-3 -translate-x-1/2 rounded-full bg-white shadow transition-[opacity,transform] duration-200 ${M ||
|
|
922
|
-
style: { left: `${
|
|
921
|
+
className: `absolute size-3 -translate-x-1/2 rounded-full bg-white shadow transition-[opacity,transform] duration-200 ${M || S ? "scale-100 opacity-100" : "scale-0 opacity-0"}`,
|
|
922
|
+
style: { left: `${O}%` }
|
|
923
923
|
}
|
|
924
924
|
)
|
|
925
925
|
]
|
|
@@ -929,7 +929,7 @@ const na = (e) => {
|
|
|
929
929
|
]
|
|
930
930
|
}
|
|
931
931
|
);
|
|
932
|
-
}, zt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20",
|
|
932
|
+
}, zt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", sa = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", Qt = ({
|
|
933
933
|
mimeType: e,
|
|
934
934
|
sourceUrl: t,
|
|
935
935
|
thumbnailUrl: s,
|
|
@@ -938,9 +938,9 @@ const na = (e) => {
|
|
|
938
938
|
mediaPlayerProps: i,
|
|
939
939
|
containedImage: o = !1
|
|
940
940
|
}) => {
|
|
941
|
-
const l = ne(e), [d, m] =
|
|
941
|
+
const l = ne(e), [d, m] = P(!1);
|
|
942
942
|
return t && (l === "video" || l === "audio") ? /* @__PURE__ */ n(
|
|
943
|
-
|
|
943
|
+
na,
|
|
944
944
|
{
|
|
945
945
|
source: t,
|
|
946
946
|
mimeType: e,
|
|
@@ -991,7 +991,7 @@ const na = (e) => {
|
|
|
991
991
|
weight: "regular"
|
|
992
992
|
})
|
|
993
993
|
}
|
|
994
|
-
) : s ? /* @__PURE__ */ n("div", { className: `relative ${
|
|
994
|
+
) : s ? /* @__PURE__ */ n("div", { className: `relative ${sa(r)}`, children: /* @__PURE__ */ n(
|
|
995
995
|
"img",
|
|
996
996
|
{
|
|
997
997
|
src: s,
|
|
@@ -1081,23 +1081,23 @@ function tn(e) {
|
|
|
1081
1081
|
function Xe(e) {
|
|
1082
1082
|
return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#121110]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function aa(e) {
|
|
1085
1085
|
return e ? "bg-white/10" : "bg-black/5";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function ra(e) {
|
|
1088
1088
|
return e ? "text-white" : "text-black";
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function ia(e) {
|
|
1091
1091
|
return e ? "text-white/55" : "text-black/55";
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function oa(e) {
|
|
1094
1094
|
return e ? "text-white/40" : "text-black/40";
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function la(e) {
|
|
1097
1097
|
return e ? "text-white/20" : "text-black/20";
|
|
1098
1098
|
}
|
|
1099
1099
|
const Ke = ({ attachment: e, isMyMessage: t }) => {
|
|
1100
|
-
const { title: s, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, l = i ?? o, d = typeof l == "string" && l.trim() !== "" ? l : void 0, m = /* @__PURE__ */ h(
|
|
1100
|
+
const { title: s, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, l = i ?? o, d = typeof l == "string" && l.trim() !== "" ? l : void 0, m = /* @__PURE__ */ h($.Fragment, { children: [
|
|
1101
1101
|
/* @__PURE__ */ n("div", { className: "p-2", children: r ? /* @__PURE__ */ n(
|
|
1102
1102
|
"img",
|
|
1103
1103
|
{
|
|
@@ -1108,14 +1108,14 @@ const Ke = ({ attachment: e, isMyMessage: t }) => {
|
|
|
1108
1108
|
) : /* @__PURE__ */ n(
|
|
1109
1109
|
"div",
|
|
1110
1110
|
{
|
|
1111
|
-
className: `aspect-video w-full rounded-[20px] ${
|
|
1112
|
-
children: /* @__PURE__ */ n(
|
|
1111
|
+
className: `aspect-video w-full rounded-[20px] ${aa(t)} flex items-center justify-center`,
|
|
1112
|
+
children: /* @__PURE__ */ n(ys, { className: `size-12 ${la(t)}` })
|
|
1113
1113
|
}
|
|
1114
1114
|
) }),
|
|
1115
1115
|
/* @__PURE__ */ h("div", { className: "px-3 pb-3", children: [
|
|
1116
|
-
s && /* @__PURE__ */ n("p", { className: `truncate text-[14px] font-medium leading-5 ${
|
|
1117
|
-
a && /* @__PURE__ */ n("p", { className: `truncate text-[12px] leading-4 ${
|
|
1118
|
-
d && /* @__PURE__ */ n("p", { className: `mt-1 truncate text-[12px] leading-4 ${
|
|
1116
|
+
s && /* @__PURE__ */ n("p", { className: `truncate text-[14px] font-medium leading-5 ${ra(t)}`, children: s }),
|
|
1117
|
+
a && /* @__PURE__ */ n("p", { className: `truncate text-[12px] leading-4 ${ia(t)}`, children: a }),
|
|
1118
|
+
d && /* @__PURE__ */ n("p", { className: `mt-1 truncate text-[12px] leading-4 ${oa(t)}`, children: d })
|
|
1119
1119
|
] })
|
|
1120
1120
|
] });
|
|
1121
1121
|
return d ? /* @__PURE__ */ n("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "block no-underline", children: m }) : /* @__PURE__ */ n("div", { className: "block", children: m });
|
|
@@ -1127,7 +1127,7 @@ function Je(e) {
|
|
|
1127
1127
|
var t;
|
|
1128
1128
|
return (t = e.attachments) == null ? void 0 : t.find(nn);
|
|
1129
1129
|
}
|
|
1130
|
-
async function
|
|
1130
|
+
async function ca(e, t) {
|
|
1131
1131
|
let s;
|
|
1132
1132
|
try {
|
|
1133
1133
|
s = t ?? new URL(e).pathname.split("/").pop() ?? "download";
|
|
@@ -1139,11 +1139,11 @@ async function da(e, t) {
|
|
|
1139
1139
|
const r = await a.blob(), i = URL.createObjectURL(r), o = document.createElement("a");
|
|
1140
1140
|
o.href = i, o.download = s, o.style.display = "none", document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(i);
|
|
1141
1141
|
}
|
|
1142
|
-
const
|
|
1142
|
+
const da = ({
|
|
1143
1143
|
url: e,
|
|
1144
1144
|
filename: t
|
|
1145
1145
|
}) => {
|
|
1146
|
-
const [s, a] =
|
|
1146
|
+
const [s, a] = P(!1);
|
|
1147
1147
|
return /* @__PURE__ */ n(
|
|
1148
1148
|
"button",
|
|
1149
1149
|
{
|
|
@@ -1151,7 +1151,7 @@ const ua = ({
|
|
|
1151
1151
|
onClick: (i) => {
|
|
1152
1152
|
i.stopPropagation();
|
|
1153
1153
|
const o = window.open("", "_blank", "noopener,noreferrer");
|
|
1154
|
-
a(!0),
|
|
1154
|
+
a(!0), ca(e, t).then(() => {
|
|
1155
1155
|
o == null || o.close();
|
|
1156
1156
|
}).catch(() => {
|
|
1157
1157
|
o && (o.location.href = e);
|
|
@@ -1159,7 +1159,7 @@ const ua = ({
|
|
|
1159
1159
|
},
|
|
1160
1160
|
disabled: s,
|
|
1161
1161
|
className: "mt-3 inline-flex h-10 w-full items-center justify-center gap-2 rounded-full bg-[#121110] px-4 text-sm font-medium leading-none text-white hover:bg-[#2a2928] disabled:opacity-70",
|
|
1162
|
-
children: s ? /* @__PURE__ */ n(ge, { className: "size-4 animate-spin text-white", weight: "bold" }) : /* @__PURE__ */ h(
|
|
1162
|
+
children: s ? /* @__PURE__ */ n(ge, { className: "size-4 animate-spin text-white", weight: "bold" }) : /* @__PURE__ */ h($.Fragment, { children: [
|
|
1163
1163
|
/* @__PURE__ */ n(be, { className: "size-4 text-white", weight: "bold" }),
|
|
1164
1164
|
"Download"
|
|
1165
1165
|
] })
|
|
@@ -1241,10 +1241,10 @@ const sn = ({
|
|
|
1241
1241
|
containedImage: i === "image" || i === "document"
|
|
1242
1242
|
}
|
|
1243
1243
|
),
|
|
1244
|
-
action: /* @__PURE__ */ n(
|
|
1244
|
+
action: /* @__PURE__ */ n(da, { url: e, filename: s })
|
|
1245
1245
|
}
|
|
1246
1246
|
);
|
|
1247
|
-
},
|
|
1247
|
+
}, ua = ({
|
|
1248
1248
|
message: e,
|
|
1249
1249
|
isMyMessage: t = !1
|
|
1250
1250
|
}) => {
|
|
@@ -1275,7 +1275,7 @@ const sn = ({
|
|
|
1275
1275
|
}
|
|
1276
1276
|
)
|
|
1277
1277
|
] });
|
|
1278
|
-
},
|
|
1278
|
+
}, ma = ({
|
|
1279
1279
|
message: e
|
|
1280
1280
|
}) => {
|
|
1281
1281
|
const t = Je(e);
|
|
@@ -1283,7 +1283,7 @@ const sn = ({
|
|
|
1283
1283
|
return /* @__PURE__ */ n("div", { className: Xe(!0), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !0 }) });
|
|
1284
1284
|
const s = Ze(e);
|
|
1285
1285
|
return s ? /* @__PURE__ */ n(sn, { ...s }) : null;
|
|
1286
|
-
},
|
|
1286
|
+
}, ha = ({
|
|
1287
1287
|
message: e
|
|
1288
1288
|
}) => {
|
|
1289
1289
|
const t = Je(e);
|
|
@@ -1291,18 +1291,18 @@ const sn = ({
|
|
|
1291
1291
|
return /* @__PURE__ */ n("div", { className: Xe(!1), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !1 }) });
|
|
1292
1292
|
const s = Ze(e);
|
|
1293
1293
|
return s ? /* @__PURE__ */ n(an, { ...s }) : null;
|
|
1294
|
-
},
|
|
1295
|
-
Creator:
|
|
1296
|
-
Visitor:
|
|
1297
|
-
}),
|
|
1294
|
+
}, Ni = Object.assign(ua, {
|
|
1295
|
+
Creator: ma,
|
|
1296
|
+
Visitor: ha
|
|
1297
|
+
}), fa = {
|
|
1298
1298
|
isUnlocking: () => !1
|
|
1299
|
-
},
|
|
1300
|
-
LockedAttachment:
|
|
1301
|
-
}, rn = Ge({}),
|
|
1302
|
-
function
|
|
1303
|
-
return Te(rn)[e] ??
|
|
1299
|
+
}, ga = {
|
|
1300
|
+
LockedAttachment: fa
|
|
1301
|
+
}, rn = Ge({}), _i = rn.Provider;
|
|
1302
|
+
function ba(e) {
|
|
1303
|
+
return Te(rn)[e] ?? ga[e];
|
|
1304
1304
|
}
|
|
1305
|
-
const
|
|
1305
|
+
const pa = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
1306
1306
|
"svg",
|
|
1307
1307
|
{
|
|
1308
1308
|
width: e,
|
|
@@ -1319,19 +1319,19 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1319
1319
|
}
|
|
1320
1320
|
)
|
|
1321
1321
|
}
|
|
1322
|
-
),
|
|
1322
|
+
), va = (e) => {
|
|
1323
1323
|
var t;
|
|
1324
1324
|
return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_TIP";
|
|
1325
|
-
},
|
|
1325
|
+
}, xa = (e) => {
|
|
1326
1326
|
var t;
|
|
1327
1327
|
return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_PAID";
|
|
1328
1328
|
}, ke = (e) => {
|
|
1329
1329
|
var t;
|
|
1330
1330
|
return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_CHATBOT";
|
|
1331
|
-
},
|
|
1331
|
+
}, wa = (e) => {
|
|
1332
1332
|
var t;
|
|
1333
1333
|
return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_ATTACHMENT";
|
|
1334
|
-
}, on = (e) =>
|
|
1334
|
+
}, on = (e) => va(e) || xa(e), Na = (e) => {
|
|
1335
1335
|
var t;
|
|
1336
1336
|
return on(e) && !((t = e.text) != null && t.trim());
|
|
1337
1337
|
}, Pe = ({
|
|
@@ -1349,7 +1349,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1349
1349
|
if (!f) return null;
|
|
1350
1350
|
const c = t ? "message-tip-standalone" : "message-tag message-tag--tip", g = t ? `${f} tip` : `Delivered with ${f} tip`;
|
|
1351
1351
|
return /* @__PURE__ */ h("div", { className: c, children: [
|
|
1352
|
-
/* @__PURE__ */ n(
|
|
1352
|
+
/* @__PURE__ */ n(Cs, { size: t ? 14 : 12 }),
|
|
1353
1353
|
/* @__PURE__ */ n("span", { children: g })
|
|
1354
1354
|
] });
|
|
1355
1355
|
}
|
|
@@ -1357,7 +1357,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1357
1357
|
"message-chatbot-indicator",
|
|
1358
1358
|
s ? "message-chatbot-indicator--sender" : "message-chatbot-indicator--receiver",
|
|
1359
1359
|
o ? "message-chatbot-indicator--attachment" : "message-chatbot-indicator--text"
|
|
1360
|
-
].join(" "), m = /* @__PURE__ */ n("span", { className: "message-chatbot-indicator__label", children: l }), b = /* @__PURE__ */ n("span", { className: "message-chatbot-indicator__icon", children: /* @__PURE__ */ n(
|
|
1360
|
+
].join(" "), m = /* @__PURE__ */ n("span", { className: "message-chatbot-indicator__label", children: l }), b = /* @__PURE__ */ n("span", { className: "message-chatbot-indicator__icon", children: /* @__PURE__ */ n(pa, { size: o ? 12 : 15 }) });
|
|
1361
1361
|
return /* @__PURE__ */ n("div", { className: d, "data-testid": "message-chatbot-indicator", children: s && !o ? /* @__PURE__ */ h(te, { children: [
|
|
1362
1362
|
m,
|
|
1363
1363
|
b
|
|
@@ -1365,7 +1365,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1365
1365
|
b,
|
|
1366
1366
|
m
|
|
1367
1367
|
] }) });
|
|
1368
|
-
},
|
|
1368
|
+
}, _a = ({
|
|
1369
1369
|
selected: e,
|
|
1370
1370
|
onVoteUp: t,
|
|
1371
1371
|
onVoteDown: s
|
|
@@ -1381,7 +1381,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1381
1381
|
"aria-label": "Good response",
|
|
1382
1382
|
"aria-pressed": e === "up",
|
|
1383
1383
|
"data-tooltip": "Good response",
|
|
1384
|
-
children: /* @__PURE__ */ n(
|
|
1384
|
+
children: /* @__PURE__ */ n(ks, { size: 16, weight: e === "up" ? "fill" : "regular" })
|
|
1385
1385
|
}
|
|
1386
1386
|
),
|
|
1387
1387
|
/* @__PURE__ */ n(
|
|
@@ -1395,10 +1395,10 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1395
1395
|
"aria-label": "Bad response",
|
|
1396
1396
|
"aria-pressed": e === "down",
|
|
1397
1397
|
"data-tooltip": "Bad response",
|
|
1398
|
-
children: /* @__PURE__ */ n(
|
|
1398
|
+
children: /* @__PURE__ */ n(Es, { size: 16, weight: e === "down" ? "fill" : "regular" })
|
|
1399
1399
|
}
|
|
1400
1400
|
)
|
|
1401
|
-
] }),
|
|
1401
|
+
] }), ya = (e) => {
|
|
1402
1402
|
var ht, ft, gt, bt, pt, vt, xt, wt, Nt, _t, yt, Ct, kt, Et;
|
|
1403
1403
|
const {
|
|
1404
1404
|
additionalMessageInputProps: t,
|
|
@@ -1417,26 +1417,26 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1417
1417
|
renderText: g,
|
|
1418
1418
|
threadList: p,
|
|
1419
1419
|
viewerLanguage: v
|
|
1420
|
-
} = e, { client: N } = Ye("CustomMessage"), { channel: x } = ce("CustomMessage"), { isUnlocking:
|
|
1420
|
+
} = e, { client: N } = Ye("CustomMessage"), { channel: x } = ce("CustomMessage"), { isUnlocking: S, onUnlockClick: E, onFetchSource: M, onDownloadClick: D } = ba("LockedAttachment"), [k, T] = P(!1), _ = Mn(c.id), { selected: I, voteUp: R, voteDown: F } = Vs(c), {
|
|
1421
1421
|
Attachment: A = Rn,
|
|
1422
|
-
EditMessageModal:
|
|
1422
|
+
EditMessageModal: L = Ln,
|
|
1423
1423
|
MessageActions: z,
|
|
1424
|
-
MessageBlocked:
|
|
1425
|
-
MessageBouncePrompt:
|
|
1426
|
-
MessageDeleted:
|
|
1424
|
+
MessageBlocked: V = Dn,
|
|
1425
|
+
MessageBouncePrompt: B = Pn,
|
|
1426
|
+
MessageDeleted: U = On,
|
|
1427
1427
|
MessageIsThreadReplyInChannelButtonIndicator: X = zn,
|
|
1428
|
-
MessageRepliesCountButton:
|
|
1429
|
-
ReminderNotification:
|
|
1428
|
+
MessageRepliesCountButton: G = $n,
|
|
1429
|
+
ReminderNotification: O = Fn,
|
|
1430
1430
|
StreamedMessageText: w = Bn,
|
|
1431
1431
|
PinIndicator: C
|
|
1432
|
-
} = Ut("CustomMessage"),
|
|
1432
|
+
} = Ut("CustomMessage"), j = Un(c), q = jn(c), _e = ee(
|
|
1433
1433
|
() => u == null ? void 0 : u(c),
|
|
1434
1434
|
[u, c]
|
|
1435
1435
|
), K = ee(() => {
|
|
1436
1436
|
const me = c.attachments ?? [], ye = c.shared_location ? [c.shared_location, ...me] : me;
|
|
1437
1437
|
if (!ke(c)) return ye;
|
|
1438
|
-
const
|
|
1439
|
-
return
|
|
1438
|
+
const St = ye.filter((It) => !("type" in It) || !nn(It));
|
|
1439
|
+
return St.length === ye.length ? ye : St;
|
|
1440
1440
|
}, [c]), re = ee(() => {
|
|
1441
1441
|
const me = Xt({ message: c, viewerLanguage: v });
|
|
1442
1442
|
return me === c.text ? c : { ...c, text: me };
|
|
@@ -1444,9 +1444,9 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1444
1444
|
if (Vn(c))
|
|
1445
1445
|
return null;
|
|
1446
1446
|
if (c.deleted_at || c.type === "deleted")
|
|
1447
|
-
return /* @__PURE__ */ n(
|
|
1447
|
+
return /* @__PURE__ */ n(U, { message: c });
|
|
1448
1448
|
if (Gn(c))
|
|
1449
|
-
return /* @__PURE__ */ n(
|
|
1449
|
+
return /* @__PURE__ */ n(V, {});
|
|
1450
1450
|
const J = !p && !!c.reply_count, se = !p && c.show_in_channel && c.parent_id, Q = c.status === "failed" && ((ht = c.error) == null ? void 0 : ht.status) !== 403, lt = Hn(c);
|
|
1451
1451
|
let ie;
|
|
1452
1452
|
Q ? ie = () => m(c) : lt && (ie = () => T(!0));
|
|
@@ -1457,7 +1457,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1457
1457
|
de ? "str-chat__message--me str-chat__message-simple--me" : "str-chat__message--other",
|
|
1458
1458
|
c.text ? "str-chat__message--has-text" : "has-no-text",
|
|
1459
1459
|
{
|
|
1460
|
-
"str-chat__message--has-attachment":
|
|
1460
|
+
"str-chat__message--has-attachment": j,
|
|
1461
1461
|
"str-chat__message--highlighted": b,
|
|
1462
1462
|
"str-chat__message--pinned pinned-message": c.pinned,
|
|
1463
1463
|
"str-chat__message--with-reactions": q,
|
|
@@ -1467,10 +1467,10 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1467
1467
|
"str-chat__virtual-message__wrapper--first": i,
|
|
1468
1468
|
"str-chat__virtual-message__wrapper--group": o
|
|
1469
1469
|
}
|
|
1470
|
-
), ct = c.poll_id && N.polls.fromState(c.poll_id), dt =
|
|
1470
|
+
), ct = c.poll_id && N.polls.fromState(c.poll_id), dt = Na(c), ue = ke(c), ut = wa(c), Re = !!(K != null && K.length && !c.quoted_message), mt = ue && de && Re;
|
|
1471
1471
|
return /* @__PURE__ */ h(te, { children: [
|
|
1472
1472
|
a && /* @__PURE__ */ n(
|
|
1473
|
-
|
|
1473
|
+
L,
|
|
1474
1474
|
{
|
|
1475
1475
|
additionalMessageInputProps: t
|
|
1476
1476
|
}
|
|
@@ -1478,7 +1478,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1478
1478
|
k && /* @__PURE__ */ n(
|
|
1479
1479
|
Yn,
|
|
1480
1480
|
{
|
|
1481
|
-
MessageBouncePrompt:
|
|
1481
|
+
MessageBouncePrompt: B,
|
|
1482
1482
|
onClose: () => T(!1),
|
|
1483
1483
|
open: k
|
|
1484
1484
|
}
|
|
@@ -1490,7 +1490,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1490
1490
|
"data-message-id": c.id,
|
|
1491
1491
|
children: [
|
|
1492
1492
|
C && /* @__PURE__ */ n(C, {}),
|
|
1493
|
-
!!_ && /* @__PURE__ */ n(
|
|
1493
|
+
!!_ && /* @__PURE__ */ n(O, { reminder: _ }),
|
|
1494
1494
|
c.user && /* @__PURE__ */ n(
|
|
1495
1495
|
ae,
|
|
1496
1496
|
{
|
|
@@ -1546,10 +1546,10 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1546
1546
|
amountText: (Ct = c.metadata) == null ? void 0 : Ct.amount_text,
|
|
1547
1547
|
detail: (kt = c.metadata) == null ? void 0 : kt.attachment_detail,
|
|
1548
1548
|
paymentStatus: (Et = c.metadata) == null ? void 0 : Et.payment_status,
|
|
1549
|
-
isUnlocking:
|
|
1549
|
+
isUnlocking: S(c.id),
|
|
1550
1550
|
onUnlockClick: () => E == null ? void 0 : E(c, x),
|
|
1551
1551
|
onFetchSource: async () => await (M == null ? void 0 : M(c, x)),
|
|
1552
|
-
onDownloadClick: () =>
|
|
1552
|
+
onDownloadClick: () => D == null ? void 0 : D(c, x)
|
|
1553
1553
|
}
|
|
1554
1554
|
),
|
|
1555
1555
|
z && /* @__PURE__ */ n(z, {})
|
|
@@ -1608,16 +1608,16 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1608
1608
|
}
|
|
1609
1609
|
),
|
|
1610
1610
|
s && ue && /* @__PURE__ */ n(
|
|
1611
|
-
|
|
1611
|
+
_a,
|
|
1612
1612
|
{
|
|
1613
|
-
selected:
|
|
1613
|
+
selected: I,
|
|
1614
1614
|
onVoteUp: R,
|
|
1615
|
-
onVoteDown:
|
|
1615
|
+
onVoteDown: F
|
|
1616
1616
|
}
|
|
1617
1617
|
)
|
|
1618
1618
|
] }),
|
|
1619
1619
|
J && /* @__PURE__ */ n(
|
|
1620
|
-
|
|
1620
|
+
G,
|
|
1621
1621
|
{
|
|
1622
1622
|
onClick: d,
|
|
1623
1623
|
reply_count: c.reply_count
|
|
@@ -1629,13 +1629,13 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1629
1629
|
c.id
|
|
1630
1630
|
)
|
|
1631
1631
|
] });
|
|
1632
|
-
},
|
|
1633
|
-
|
|
1632
|
+
}, Ca = $.memo(
|
|
1633
|
+
ya,
|
|
1634
1634
|
(e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : An(e, t)
|
|
1635
|
-
),
|
|
1635
|
+
), ka = (e) => {
|
|
1636
1636
|
const t = pe("CustomMessage");
|
|
1637
|
-
return /* @__PURE__ */ n(
|
|
1638
|
-
},
|
|
1637
|
+
return /* @__PURE__ */ n(Ca, { ...t, ...e });
|
|
1638
|
+
}, Ea = () => {
|
|
1639
1639
|
var s;
|
|
1640
1640
|
const { handleDelete: e, message: t } = pe("CustomMessageActions");
|
|
1641
1641
|
return ((s = t.metadata) == null ? void 0 : s.payment_status) === "paid" ? null : /* @__PURE__ */ n(
|
|
@@ -1660,19 +1660,19 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1660
1660
|
children: /* @__PURE__ */ n(jt, { size: 16, weight: "light", "aria-hidden": !0 })
|
|
1661
1661
|
}
|
|
1662
1662
|
);
|
|
1663
|
-
},
|
|
1663
|
+
}, Ia = () => {
|
|
1664
1664
|
var t;
|
|
1665
1665
|
const { message: e } = pe("CustomMessageActions");
|
|
1666
1666
|
return ((t = e.metadata) == null ? void 0 : t.custom_type) !== "MESSAGE_ATTACHMENT" ? null : /* @__PURE__ */ n(
|
|
1667
|
-
|
|
1667
|
+
Ls,
|
|
1668
1668
|
{
|
|
1669
1669
|
messageActionSet: [
|
|
1670
|
-
{ Component:
|
|
1670
|
+
{ Component: Ea, placement: "quick", type: "delete" },
|
|
1671
1671
|
{ Component: Sa, placement: "quick", type: "flag" }
|
|
1672
1672
|
]
|
|
1673
1673
|
}
|
|
1674
1674
|
);
|
|
1675
|
-
},
|
|
1675
|
+
}, Ta = ({
|
|
1676
1676
|
link: e,
|
|
1677
1677
|
onDismiss: t
|
|
1678
1678
|
}) => {
|
|
@@ -1712,26 +1712,26 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1712
1712
|
]
|
|
1713
1713
|
}
|
|
1714
1714
|
);
|
|
1715
|
-
},
|
|
1715
|
+
}, Aa = (e) => ({
|
|
1716
1716
|
linkPreviews: Array.from(e.previews.values()).filter(
|
|
1717
1717
|
(t) => Rt.previewIsLoaded(t) || Rt.previewIsLoading(t)
|
|
1718
1718
|
)
|
|
1719
|
-
}),
|
|
1719
|
+
}), Ma = () => {
|
|
1720
1720
|
const { linkPreviewsManager: e } = Xn(), { linkPreviews: t } = Kn(
|
|
1721
1721
|
e.state,
|
|
1722
|
-
|
|
1722
|
+
Aa
|
|
1723
1723
|
), s = (r) => {
|
|
1724
1724
|
e.dismissPreview(r);
|
|
1725
1725
|
};
|
|
1726
1726
|
return t.length > 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center w-full gap-2 mb-4", children: t.map((r) => /* @__PURE__ */ n(
|
|
1727
|
-
|
|
1727
|
+
Ta,
|
|
1728
1728
|
{
|
|
1729
1729
|
link: r,
|
|
1730
1730
|
onDismiss: s
|
|
1731
1731
|
},
|
|
1732
1732
|
r.og_scrape_url
|
|
1733
1733
|
)) }) : null;
|
|
1734
|
-
}, ln =
|
|
1734
|
+
}, ln = $.createContext(!1), Ra = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
|
|
1735
1735
|
"button",
|
|
1736
1736
|
{
|
|
1737
1737
|
...s,
|
|
@@ -1739,16 +1739,16 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1739
1739
|
"aria-label": "Send",
|
|
1740
1740
|
disabled: t,
|
|
1741
1741
|
onClick: e,
|
|
1742
|
-
children: /* @__PURE__ */ n(
|
|
1742
|
+
children: /* @__PURE__ */ n(Is, { weight: "bold", className: "size-4" })
|
|
1743
1743
|
}
|
|
1744
|
-
),
|
|
1744
|
+
), La = () => {
|
|
1745
1745
|
const e = Te(ln), { handleSubmit: t } = Zn(), s = Qn(), a = e || !s, {
|
|
1746
|
-
SendButton: r =
|
|
1746
|
+
SendButton: r = Ra,
|
|
1747
1747
|
AttachmentPreviewList: i = es
|
|
1748
1748
|
} = Ut("CustomMessageInput");
|
|
1749
1749
|
return /* @__PURE__ */ h("div", { className: "central-container flex flex-col gap-2 min-w-0 w-full p-2 bg-white rounded-[1.5rem] shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_1px_2px_0_rgba(0,0,0,0.04),0_0_0_1px_rgba(0,0,0,0.04)]", children: [
|
|
1750
1750
|
/* @__PURE__ */ n(ts, {}),
|
|
1751
|
-
/* @__PURE__ */ n(
|
|
1751
|
+
/* @__PURE__ */ n(Ma, {}),
|
|
1752
1752
|
/* @__PURE__ */ n(i, {}),
|
|
1753
1753
|
/* @__PURE__ */ h("div", { className: "flex", children: [
|
|
1754
1754
|
/* @__PURE__ */ n("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ n(
|
|
@@ -1775,56 +1775,43 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1775
1775
|
)
|
|
1776
1776
|
] })
|
|
1777
1777
|
] });
|
|
1778
|
-
},
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
disabledReason: r
|
|
1778
|
+
}, Da = ({
|
|
1779
|
+
renderActions: e,
|
|
1780
|
+
renderFooter: t,
|
|
1781
|
+
disabled: s = !1,
|
|
1782
|
+
disabledReason: a
|
|
1784
1783
|
}) => {
|
|
1785
|
-
var
|
|
1786
|
-
const { channel:
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
{
|
|
1792
|
-
className: y(
|
|
1793
|
-
"messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3",
|
|
1794
|
-
e
|
|
1795
|
-
),
|
|
1796
|
-
children: r ? /* @__PURE__ */ n("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: r }) : null
|
|
1797
|
-
}
|
|
1798
|
-
),
|
|
1799
|
-
s == null ? void 0 : s()
|
|
1800
|
-
] });
|
|
1801
|
-
const l = t == null ? void 0 : t();
|
|
1802
|
-
return /* @__PURE__ */ h("div", { className: y("flex flex-col gap-4", e), children: [
|
|
1784
|
+
var o;
|
|
1785
|
+
const { channel: r } = ce(), i = ((o = r == null ? void 0 : r.data) == null ? void 0 : o.frozen) === !0;
|
|
1786
|
+
return s ? /* @__PURE__ */ h(te, { children: [
|
|
1787
|
+
/* @__PURE__ */ n("div", { className: "messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3 px-6 py-4", children: a ? /* @__PURE__ */ n("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: a }) : null }),
|
|
1788
|
+
t == null ? void 0 : t()
|
|
1789
|
+
] }) : /* @__PURE__ */ h("div", { className: "flex flex-col gap-4 p-4", children: [
|
|
1803
1790
|
/* @__PURE__ */ h(
|
|
1804
1791
|
"div",
|
|
1805
1792
|
{
|
|
1806
|
-
inert:
|
|
1807
|
-
"aria-disabled":
|
|
1793
|
+
inert: i ? "" : void 0,
|
|
1794
|
+
"aria-disabled": i || void 0,
|
|
1808
1795
|
className: "message-input flex items-end gap-4 aria-disabled:opacity-40",
|
|
1809
1796
|
children: [
|
|
1810
|
-
|
|
1811
|
-
/* @__PURE__ */ n(ln.Provider, { value:
|
|
1797
|
+
e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
|
|
1798
|
+
/* @__PURE__ */ n(ln.Provider, { value: i, children: /* @__PURE__ */ n(Jn, { Input: La }) })
|
|
1812
1799
|
]
|
|
1813
1800
|
}
|
|
1814
1801
|
),
|
|
1815
|
-
|
|
1802
|
+
t == null ? void 0 : t()
|
|
1816
1803
|
] });
|
|
1817
|
-
},
|
|
1804
|
+
}, Pa = [
|
|
1818
1805
|
"SYSTEM_DM_AGENT_PAUSED",
|
|
1819
1806
|
"SYSTEM_DM_AGENT_RESUMED"
|
|
1820
|
-
],
|
|
1807
|
+
], Oa = {
|
|
1821
1808
|
SYSTEM_DM_AGENT_PAUSED: "DM Agent has left the conversation",
|
|
1822
1809
|
SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
|
|
1823
|
-
},
|
|
1810
|
+
}, za = [
|
|
1824
1811
|
"SYSTEM_AGE_SAFETY_BLOCKED"
|
|
1825
|
-
],
|
|
1812
|
+
], $a = {
|
|
1826
1813
|
SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
|
|
1827
|
-
}, Oe = "age safety guidelines.",
|
|
1814
|
+
}, Oe = "age safety guidelines.", Fa = "https://linktr.ee/s/about/contact", $t = (e) => Pa.includes(e), Ba = (e) => za.includes(e), Ua = (e) => {
|
|
1828
1815
|
var a;
|
|
1829
1816
|
const t = (a = e.metadata) == null ? void 0 : a.custom_type;
|
|
1830
1817
|
if ($t(t))
|
|
@@ -1832,7 +1819,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1832
1819
|
kind: "dm-agent",
|
|
1833
1820
|
type: t
|
|
1834
1821
|
};
|
|
1835
|
-
if (
|
|
1822
|
+
if (Ba(t))
|
|
1836
1823
|
return {
|
|
1837
1824
|
kind: "age-safety",
|
|
1838
1825
|
type: t
|
|
@@ -1843,7 +1830,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1843
1830
|
kind: "dm-agent",
|
|
1844
1831
|
type: s
|
|
1845
1832
|
};
|
|
1846
|
-
},
|
|
1833
|
+
}, ja = (e) => {
|
|
1847
1834
|
const t = e.indexOf(Oe);
|
|
1848
1835
|
if (t === -1)
|
|
1849
1836
|
return e;
|
|
@@ -1853,7 +1840,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1853
1840
|
/* @__PURE__ */ n(
|
|
1854
1841
|
"a",
|
|
1855
1842
|
{
|
|
1856
|
-
href:
|
|
1843
|
+
href: Fa,
|
|
1857
1844
|
target: "_blank",
|
|
1858
1845
|
rel: "noopener noreferrer",
|
|
1859
1846
|
className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
|
|
@@ -1862,13 +1849,13 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1862
1849
|
),
|
|
1863
1850
|
e.slice(s)
|
|
1864
1851
|
] });
|
|
1865
|
-
},
|
|
1852
|
+
}, Va = (e) => {
|
|
1866
1853
|
var a, r;
|
|
1867
|
-
const t = e.message.hide_date === !0, s =
|
|
1854
|
+
const t = e.message.hide_date === !0, s = Ua(
|
|
1868
1855
|
e.message
|
|
1869
1856
|
);
|
|
1870
1857
|
if ((s == null ? void 0 : s.kind) === "dm-agent") {
|
|
1871
|
-
const i = ((a = e.message.text) == null ? void 0 : a.trim()) ||
|
|
1858
|
+
const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Oa[s.type];
|
|
1872
1859
|
return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
|
|
1873
1860
|
/* @__PURE__ */ h(
|
|
1874
1861
|
"div",
|
|
@@ -1894,7 +1881,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1894
1881
|
] });
|
|
1895
1882
|
}
|
|
1896
1883
|
if ((s == null ? void 0 : s.kind) === "age-safety") {
|
|
1897
|
-
const i = ((r = e.message.text) == null ? void 0 : r.trim()) ||
|
|
1884
|
+
const i = ((r = e.message.text) == null ? void 0 : r.trim()) || $a[s.type];
|
|
1898
1885
|
return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
|
|
1899
1886
|
/* @__PURE__ */ h(
|
|
1900
1887
|
"div",
|
|
@@ -1904,7 +1891,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1904
1891
|
"data-age-safety-system-type": s.type,
|
|
1905
1892
|
children: [
|
|
1906
1893
|
/* @__PURE__ */ n(
|
|
1907
|
-
|
|
1894
|
+
Ts,
|
|
1908
1895
|
{
|
|
1909
1896
|
size: 24,
|
|
1910
1897
|
weight: "duotone",
|
|
@@ -1913,7 +1900,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1913
1900
|
"data-testid": "age-safety-system-message-icon"
|
|
1914
1901
|
}
|
|
1915
1902
|
),
|
|
1916
|
-
/* @__PURE__ */ n("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ n("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children:
|
|
1903
|
+
/* @__PURE__ */ n("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ n("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children: ja(i) }) })
|
|
1917
1904
|
]
|
|
1918
1905
|
}
|
|
1919
1906
|
),
|
|
@@ -1938,15 +1925,15 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
1938
1925
|
begin: `${120 * t}ms`,
|
|
1939
1926
|
repeatCount: "indefinite"
|
|
1940
1927
|
}
|
|
1941
|
-
) }),
|
|
1928
|
+
) }), Ga = /* @__PURE__ */ new Set([
|
|
1942
1929
|
De.Thinking,
|
|
1943
1930
|
De.Generating,
|
|
1944
1931
|
De.ExternalSources
|
|
1945
|
-
]),
|
|
1932
|
+
]), Ha = ({ threadList: e }) => {
|
|
1946
1933
|
var g, p;
|
|
1947
1934
|
const { channel: t, channelConfig: s, thread: a } = ce(), { client: r } = Ye(), { typing: i = {} } = ss(), { aiState: o } = as(t), l = Te(cn);
|
|
1948
|
-
if (!e && l &&
|
|
1949
|
-
const v =
|
|
1935
|
+
if (!e && l && Ga.has(o)) {
|
|
1936
|
+
const v = Ya(t, (g = r.user) == null ? void 0 : g.id);
|
|
1950
1937
|
return /* @__PURE__ */ n(
|
|
1951
1938
|
Ft,
|
|
1952
1939
|
{
|
|
@@ -2023,7 +2010,7 @@ const va = ({ size: e = 15 }) => /* @__PURE__ */ n(
|
|
|
2023
2010
|
]
|
|
2024
2011
|
}
|
|
2025
2012
|
);
|
|
2026
|
-
function
|
|
2013
|
+
function Ya(e, t) {
|
|
2027
2014
|
var a;
|
|
2028
2015
|
const s = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
|
|
2029
2016
|
for (const r of Object.values(s)) {
|
|
@@ -2032,7 +2019,7 @@ function qa(e, t) {
|
|
|
2032
2019
|
return i;
|
|
2033
2020
|
}
|
|
2034
2021
|
}
|
|
2035
|
-
const
|
|
2022
|
+
const qa = () => null, Wa = ({ className: e, message: t }) => /* @__PURE__ */ h(
|
|
2036
2023
|
"div",
|
|
2037
2024
|
{
|
|
2038
2025
|
className: y("flex items-center justify-center h-full", e),
|
|
@@ -2075,12 +2062,12 @@ const Wa = () => null, Xa = ({ className: e, message: t }) => /* @__PURE__ */ h(
|
|
|
2075
2062
|
t && /* @__PURE__ */ n("span", { className: "text-stone", children: t })
|
|
2076
2063
|
]
|
|
2077
2064
|
}
|
|
2078
|
-
), Ee =
|
|
2079
|
-
/* @__PURE__ */ n(
|
|
2065
|
+
), Ee = $.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ h("div", { className: "flex items-center", children: [
|
|
2066
|
+
/* @__PURE__ */ n(Wa, { className: "w-6 h-6" }),
|
|
2080
2067
|
/* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
|
|
2081
2068
|
] }) }));
|
|
2082
2069
|
Ee.displayName = "LoadingState";
|
|
2083
|
-
const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Bt = "Replies instantly with AI assistant",
|
|
2070
|
+
const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Bt = "Replies instantly with AI assistant", Xa = ({
|
|
2084
2071
|
onBack: e,
|
|
2085
2072
|
showBackButton: t,
|
|
2086
2073
|
showStarButton: s = !1,
|
|
@@ -2096,17 +2083,17 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2096
2083
|
customChannelActions: f,
|
|
2097
2084
|
showActionsMenu: c = !0
|
|
2098
2085
|
}) => {
|
|
2099
|
-
var E, M,
|
|
2100
|
-
const { channel: g } = ce(), p =
|
|
2101
|
-
var R,
|
|
2086
|
+
var E, M, D, k, T;
|
|
2087
|
+
const { channel: g } = ce(), p = $.useMemo(() => {
|
|
2088
|
+
var R, F;
|
|
2102
2089
|
const _ = (R = g._client) == null ? void 0 : R.userID;
|
|
2103
|
-
return _ ? Object.values(((
|
|
2090
|
+
return _ ? Object.values(((F = g.state) == null ? void 0 : F.members) || {}).find(
|
|
2104
2091
|
(A) => {
|
|
2105
|
-
var
|
|
2106
|
-
return ((
|
|
2092
|
+
var L;
|
|
2093
|
+
return ((L = A.user) == null ? void 0 : L.id) && A.user.id !== _;
|
|
2107
2094
|
}
|
|
2108
2095
|
) : void 0;
|
|
2109
|
-
}, [(E = g._client) == null ? void 0 : E.userID, (M = g.state) == null ? void 0 : M.members]), v = Wt(p == null ? void 0 : p.user), N = (
|
|
2096
|
+
}, [(E = g._client) == null ? void 0 : E.userID, (M = g.state) == null ? void 0 : M.members]), v = Wt(p == null ? void 0 : p.user), N = (D = p == null ? void 0 : p.user) == null ? void 0 : D.image, x = qt(g), S = async () => {
|
|
2110
2097
|
try {
|
|
2111
2098
|
x ? await g.unpin() : await g.pin();
|
|
2112
2099
|
} catch (_) {
|
|
@@ -2155,7 +2142,7 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2155
2142
|
"button",
|
|
2156
2143
|
{
|
|
2157
2144
|
className: oe,
|
|
2158
|
-
onClick:
|
|
2145
|
+
onClick: S,
|
|
2159
2146
|
type: "button",
|
|
2160
2147
|
"aria-label": x ? "Unstar conversation" : "Star conversation",
|
|
2161
2148
|
children: /* @__PURE__ */ n(
|
|
@@ -2228,7 +2215,7 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2228
2215
|
"button",
|
|
2229
2216
|
{
|
|
2230
2217
|
className: oe,
|
|
2231
|
-
onClick:
|
|
2218
|
+
onClick: S,
|
|
2232
2219
|
type: "button",
|
|
2233
2220
|
"aria-label": x ? "Unstar conversation" : "Star conversation",
|
|
2234
2221
|
children: /* @__PURE__ */ n(
|
|
@@ -2263,7 +2250,7 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2263
2250
|
] })
|
|
2264
2251
|
] })
|
|
2265
2252
|
] });
|
|
2266
|
-
},
|
|
2253
|
+
}, Ka = ({
|
|
2267
2254
|
onBack: e,
|
|
2268
2255
|
showBackButton: t,
|
|
2269
2256
|
renderMessageInputActions: s,
|
|
@@ -2283,58 +2270,58 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2283
2270
|
chatbotVotingEnabled: v = !1,
|
|
2284
2271
|
renderChannelBanner: N,
|
|
2285
2272
|
customChannelActions: x,
|
|
2286
|
-
renderMessage:
|
|
2273
|
+
renderMessage: S,
|
|
2287
2274
|
dmAgentEnabled: E = !1,
|
|
2288
2275
|
viewerLanguage: M,
|
|
2289
|
-
showChannelInfo:
|
|
2276
|
+
showChannelInfo: D = !0
|
|
2290
2277
|
}) => {
|
|
2291
|
-
var
|
|
2292
|
-
const { channel: k } = ce(), T =
|
|
2278
|
+
var L, z, V, B, U, X;
|
|
2279
|
+
const { channel: k } = ce(), T = $.useMemo(() => {
|
|
2293
2280
|
var w, C;
|
|
2294
|
-
const
|
|
2295
|
-
return
|
|
2296
|
-
(
|
|
2281
|
+
const G = (w = k._client) == null ? void 0 : w.userID;
|
|
2282
|
+
return G ? Object.values(((C = k.state) == null ? void 0 : C.members) || {}).find(
|
|
2283
|
+
(j) => {
|
|
2297
2284
|
var q;
|
|
2298
|
-
return ((q =
|
|
2285
|
+
return ((q = j.user) == null ? void 0 : q.id) && j.user.id !== G;
|
|
2299
2286
|
}
|
|
2300
2287
|
) : void 0;
|
|
2301
|
-
}, [(
|
|
2288
|
+
}, [(L = k._client) == null ? void 0 : L.userID, (z = k.state) == null ? void 0 : z.members]), _ = $.useMemo(() => {
|
|
2302
2289
|
var w, C;
|
|
2303
|
-
const
|
|
2304
|
-
return
|
|
2290
|
+
const G = (w = k._client) == null ? void 0 : w.userID;
|
|
2291
|
+
return G ? Object.values(((C = k.state) == null ? void 0 : C.members) || {}).find((j) => {
|
|
2305
2292
|
var q;
|
|
2306
|
-
return ((q =
|
|
2293
|
+
return ((q = j.user) == null ? void 0 : q.id) === G;
|
|
2307
2294
|
}) : void 0;
|
|
2308
|
-
}, [(
|
|
2309
|
-
(
|
|
2310
|
-
const { message:
|
|
2311
|
-
|
|
2295
|
+
}, [(V = k._client) == null ? void 0 : V.userID, (B = k.state) == null ? void 0 : B.members]), I = ((U = _ == null ? void 0 : _.user) == null ? void 0 : U.is_account) ?? (_ == null ? void 0 : _.is_account), R = ((X = T == null ? void 0 : T.user) == null ? void 0 : X.is_account) ?? (T == null ? void 0 : T.is_account), F = E && I === !1 && R === !0, A = W(
|
|
2296
|
+
(G) => {
|
|
2297
|
+
const { message: O } = pe("ChannelView"), w = /* @__PURE__ */ n(
|
|
2298
|
+
ka,
|
|
2312
2299
|
{
|
|
2313
|
-
...
|
|
2300
|
+
...G,
|
|
2314
2301
|
chatbotVotingEnabled: v,
|
|
2315
2302
|
viewerLanguage: M
|
|
2316
2303
|
}
|
|
2317
2304
|
);
|
|
2318
|
-
return !
|
|
2305
|
+
return !S || !O ? w : S(w, O);
|
|
2319
2306
|
},
|
|
2320
|
-
[v,
|
|
2307
|
+
[v, S, M]
|
|
2321
2308
|
);
|
|
2322
2309
|
return /* @__PURE__ */ n(te, { children: /* @__PURE__ */ n(
|
|
2323
2310
|
is,
|
|
2324
2311
|
{
|
|
2325
2312
|
overrides: {
|
|
2326
2313
|
Message: A,
|
|
2327
|
-
MessageActions:
|
|
2314
|
+
MessageActions: Ia
|
|
2328
2315
|
},
|
|
2329
2316
|
children: /* @__PURE__ */ h(os, { children: [
|
|
2330
2317
|
/* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
|
|
2331
|
-
|
|
2318
|
+
Xa,
|
|
2332
2319
|
{
|
|
2333
2320
|
onBack: e,
|
|
2334
2321
|
showBackButton: t,
|
|
2335
|
-
showActionsMenu:
|
|
2322
|
+
showActionsMenu: D,
|
|
2336
2323
|
showStarButton: p,
|
|
2337
|
-
dmAgentEnabled:
|
|
2324
|
+
dmAgentEnabled: F,
|
|
2338
2325
|
onLeaveConversation: i,
|
|
2339
2326
|
onBlockParticipant: o,
|
|
2340
2327
|
showDeleteConversation: l,
|
|
@@ -2346,53 +2333,32 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2346
2333
|
customChannelActions: x
|
|
2347
2334
|
}
|
|
2348
2335
|
) }, "lt-channel-header"),
|
|
2349
|
-
N ? /* @__PURE__ */ n(
|
|
2336
|
+
N ? /* @__PURE__ */ n($.Fragment, { children: N() }, "lt-channel-banner") : null,
|
|
2350
2337
|
/* @__PURE__ */ n(
|
|
2351
2338
|
"div",
|
|
2352
2339
|
{
|
|
2353
2340
|
className: "flex-1 overflow-hidden relative",
|
|
2354
|
-
children: /* @__PURE__ */ n(
|
|
2355
|
-
ls,
|
|
2356
|
-
{
|
|
2357
|
-
hideDeletedMessages: !0,
|
|
2358
|
-
hideNewMessageSeparator: !1,
|
|
2359
|
-
renderMessages: (V) => {
|
|
2360
|
-
const L = cs(V);
|
|
2361
|
-
return r && L.push(
|
|
2362
|
-
/* @__PURE__ */ n("li", { children: r(k) }, "lt-channel-conversation-footer")
|
|
2363
|
-
), L.push(
|
|
2364
|
-
// Message Input
|
|
2365
|
-
/* @__PURE__ */ h(
|
|
2366
|
-
"li",
|
|
2367
|
-
{
|
|
2368
|
-
className: "flex sticky bottom-0 p-4 pt-1 inset-x-0 mx-[calc(-1*var(--str-chat\\_\\_spacing-2))] md:mx-[calc(-1*min(var(--str-chat\\_\\_spacing-10),4%))]",
|
|
2369
|
-
children: [
|
|
2370
|
-
/* @__PURE__ */ n("div", { className: "absolute bottom-0 inset-x-0 w-full h-4/5 backdrop-blur-[16px] [mask-image:linear-gradient(to_top,black_0%,transparent_100%)] [-webkit-mask-image:linear-gradient(to_top,black_0%,transparent_100%)]" }),
|
|
2371
|
-
/* @__PURE__ */ n(
|
|
2372
|
-
Pa,
|
|
2373
|
-
{
|
|
2374
|
-
className: "isolate w-full",
|
|
2375
|
-
renderActions: () => s == null ? void 0 : s(k),
|
|
2376
|
-
renderFooter: () => a == null ? void 0 : a(k),
|
|
2377
|
-
disabled: c,
|
|
2378
|
-
disabledReason: g
|
|
2379
|
-
}
|
|
2380
|
-
)
|
|
2381
|
-
]
|
|
2382
|
-
},
|
|
2383
|
-
"lt-channel-message-input"
|
|
2384
|
-
)
|
|
2385
|
-
), L;
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
)
|
|
2341
|
+
children: /* @__PURE__ */ n(ls, { hideDeletedMessages: !0, hideNewMessageSeparator: !1 })
|
|
2389
2342
|
},
|
|
2390
2343
|
"lt-channel-message-list"
|
|
2344
|
+
),
|
|
2345
|
+
r ? /* @__PURE__ */ n($.Fragment, { children: r(k) }, "lt-channel-conversation-footer") : null,
|
|
2346
|
+
/* @__PURE__ */ n(
|
|
2347
|
+
Da,
|
|
2348
|
+
{
|
|
2349
|
+
...s && {
|
|
2350
|
+
renderActions: () => s == null ? void 0 : s(k)
|
|
2351
|
+
},
|
|
2352
|
+
renderFooter: () => a == null ? void 0 : a(k),
|
|
2353
|
+
disabled: c,
|
|
2354
|
+
disabledReason: g
|
|
2355
|
+
},
|
|
2356
|
+
"lt-channel-message-input"
|
|
2391
2357
|
)
|
|
2392
2358
|
] })
|
|
2393
2359
|
}
|
|
2394
2360
|
) });
|
|
2395
|
-
}, dn =
|
|
2361
|
+
}, dn = $.memo(
|
|
2396
2362
|
({
|
|
2397
2363
|
channel: e,
|
|
2398
2364
|
onBack: t,
|
|
@@ -2403,7 +2369,7 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2403
2369
|
onLeaveConversation: o,
|
|
2404
2370
|
onBlockParticipant: l,
|
|
2405
2371
|
className: d,
|
|
2406
|
-
CustomChannelEmptyState: m =
|
|
2372
|
+
CustomChannelEmptyState: m = qa,
|
|
2407
2373
|
showDeleteConversation: b = !0,
|
|
2408
2374
|
onDeleteConversationClick: u,
|
|
2409
2375
|
onBlockParticipantClick: f,
|
|
@@ -2413,54 +2379,54 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2413
2379
|
composerDisabled: v = !1,
|
|
2414
2380
|
composerDisabledReason: N,
|
|
2415
2381
|
dmAgentEnabled: x,
|
|
2416
|
-
messageMetadata:
|
|
2382
|
+
messageMetadata: S,
|
|
2417
2383
|
onMessageSent: E,
|
|
2418
2384
|
showStarButton: M = !1,
|
|
2419
|
-
chatbotVotingEnabled:
|
|
2385
|
+
chatbotVotingEnabled: D = !1,
|
|
2420
2386
|
renderChannelBanner: k,
|
|
2421
2387
|
customChannelActions: T,
|
|
2422
2388
|
renderMessage: _,
|
|
2423
|
-
onMessageLinkClick:
|
|
2389
|
+
onMessageLinkClick: I,
|
|
2424
2390
|
sendButton: R,
|
|
2425
|
-
attachmentPreviewList:
|
|
2391
|
+
attachmentPreviewList: F,
|
|
2426
2392
|
viewerLanguage: A,
|
|
2427
|
-
showChannelInfo:
|
|
2393
|
+
showChannelInfo: L = !0
|
|
2428
2394
|
}) => {
|
|
2429
2395
|
const z = W(
|
|
2430
|
-
async (
|
|
2396
|
+
async (B, U, X) => {
|
|
2431
2397
|
var q;
|
|
2432
|
-
const
|
|
2433
|
-
...
|
|
2434
|
-
...
|
|
2435
|
-
...
|
|
2398
|
+
const G = ((q = e.data) == null ? void 0 : q.chatbot_paused) === !0, O = x && !G, w = {
|
|
2399
|
+
...U,
|
|
2400
|
+
...O && { silent: !0 },
|
|
2401
|
+
...S && {
|
|
2436
2402
|
metadata: {
|
|
2437
|
-
...
|
|
2438
|
-
...
|
|
2403
|
+
...U.metadata ?? {},
|
|
2404
|
+
...S
|
|
2439
2405
|
}
|
|
2440
2406
|
}
|
|
2441
2407
|
}, C = {
|
|
2442
2408
|
...X,
|
|
2443
|
-
...
|
|
2444
|
-
},
|
|
2445
|
-
return E == null || E(
|
|
2409
|
+
...O && { skip_push: !0 }
|
|
2410
|
+
}, j = await e.sendMessage(w, C);
|
|
2411
|
+
return E == null || E(j), j;
|
|
2446
2412
|
},
|
|
2447
|
-
[e, x,
|
|
2448
|
-
),
|
|
2413
|
+
[e, x, S, E]
|
|
2414
|
+
), V = H(null);
|
|
2449
2415
|
return Y(() => {
|
|
2450
|
-
if (!
|
|
2451
|
-
const
|
|
2452
|
-
if (!
|
|
2453
|
-
const
|
|
2454
|
-
const
|
|
2416
|
+
if (!I) return;
|
|
2417
|
+
const B = V.current;
|
|
2418
|
+
if (!B) return;
|
|
2419
|
+
const U = (X) => {
|
|
2420
|
+
const G = X.target, O = G == null ? void 0 : G.closest("a[href]"), w = O == null ? void 0 : O.getAttribute("href");
|
|
2455
2421
|
if (!w) return;
|
|
2456
|
-
const C =
|
|
2457
|
-
|
|
2422
|
+
const C = O == null ? void 0 : O.closest("[data-message-id]"), j = C == null ? void 0 : C.getAttribute("data-message-id"), q = j ? e.state.messages.find((_e) => _e.id === j) : void 0;
|
|
2423
|
+
I(w, q);
|
|
2458
2424
|
};
|
|
2459
|
-
return
|
|
2460
|
-
}, [
|
|
2425
|
+
return B.addEventListener("click", U), () => B.removeEventListener("click", U);
|
|
2426
|
+
}, [I, e]), /* @__PURE__ */ n(
|
|
2461
2427
|
"div",
|
|
2462
2428
|
{
|
|
2463
|
-
ref:
|
|
2429
|
+
ref: V,
|
|
2464
2430
|
className: y(
|
|
2465
2431
|
"messaging-channel-view h-full flex flex-col",
|
|
2466
2432
|
d
|
|
@@ -2469,16 +2435,16 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2469
2435
|
rs,
|
|
2470
2436
|
{
|
|
2471
2437
|
channel: e,
|
|
2472
|
-
MessageSystem:
|
|
2438
|
+
MessageSystem: Va,
|
|
2473
2439
|
EmptyStateIndicator: m,
|
|
2474
2440
|
LoadingIndicator: Ee,
|
|
2475
|
-
DateSeparator:
|
|
2476
|
-
TypingIndicator:
|
|
2441
|
+
DateSeparator: Us,
|
|
2442
|
+
TypingIndicator: Ha,
|
|
2477
2443
|
doSendMessageRequest: z,
|
|
2478
2444
|
...R ? { SendButton: R } : {},
|
|
2479
|
-
|
|
2445
|
+
...F ? { AttachmentPreviewList: F } : {},
|
|
2480
2446
|
children: /* @__PURE__ */ n(
|
|
2481
|
-
|
|
2447
|
+
Ka,
|
|
2482
2448
|
{
|
|
2483
2449
|
onBack: t,
|
|
2484
2450
|
showBackButton: s,
|
|
@@ -2498,12 +2464,12 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2498
2464
|
composerDisabledReason: N,
|
|
2499
2465
|
showStarButton: M,
|
|
2500
2466
|
dmAgentEnabled: x,
|
|
2501
|
-
chatbotVotingEnabled:
|
|
2467
|
+
chatbotVotingEnabled: D,
|
|
2502
2468
|
renderChannelBanner: k,
|
|
2503
2469
|
customChannelActions: T,
|
|
2504
2470
|
renderMessage: _,
|
|
2505
2471
|
viewerLanguage: A,
|
|
2506
|
-
showChannelInfo:
|
|
2472
|
+
showChannelInfo: L
|
|
2507
2473
|
}
|
|
2508
2474
|
)
|
|
2509
2475
|
}
|
|
@@ -2513,7 +2479,7 @@ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
|
|
|
2513
2479
|
}
|
|
2514
2480
|
);
|
|
2515
2481
|
dn.displayName = "ChannelView";
|
|
2516
|
-
const fe =
|
|
2482
|
+
const fe = $.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ h("div", { className: "text-center max-w-sm", children: [
|
|
2517
2483
|
/* @__PURE__ */ n("div", { className: "w-24 h-24 bg-danger-alt/20 rounded-full flex items-center justify-center mx-auto mb-6", children: /* @__PURE__ */ n("span", { className: "text-4xl", children: "⚠️" }) }),
|
|
2518
2484
|
/* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
|
|
2519
2485
|
/* @__PURE__ */ n("p", { className: "text-stone text-sm mb-6", children: e }),
|
|
@@ -2528,7 +2494,7 @@ const fe = j.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { clas
|
|
|
2528
2494
|
)
|
|
2529
2495
|
] }) }));
|
|
2530
2496
|
fe.displayName = "ErrorState";
|
|
2531
|
-
const
|
|
2497
|
+
const yi = ({
|
|
2532
2498
|
capabilities: e = {},
|
|
2533
2499
|
renderMessageInputActions: t,
|
|
2534
2500
|
renderConversationFooter: s,
|
|
@@ -2550,29 +2516,29 @@ const Ci = ({
|
|
|
2550
2516
|
showChannelInfo: x
|
|
2551
2517
|
}) => {
|
|
2552
2518
|
const {
|
|
2553
|
-
client:
|
|
2519
|
+
client: S,
|
|
2554
2520
|
isConnected: E,
|
|
2555
2521
|
isLoading: M,
|
|
2556
|
-
error:
|
|
2522
|
+
error: D,
|
|
2557
2523
|
refreshConnection: k,
|
|
2558
2524
|
service: T,
|
|
2559
2525
|
debug: _
|
|
2560
|
-
} =
|
|
2561
|
-
|
|
2562
|
-
const
|
|
2563
|
-
|
|
2564
|
-
const X = H(null),
|
|
2526
|
+
} = Ds(), [I, R] = P(null), [F, A] = P(null), [L, z] = P(!1), { showDeleteConversation: V = !0 } = e, B = H(o);
|
|
2527
|
+
B.current = o;
|
|
2528
|
+
const U = H(a);
|
|
2529
|
+
U.current = a;
|
|
2530
|
+
const X = H(null), G = H(null);
|
|
2565
2531
|
Y(() => {
|
|
2566
|
-
|
|
2567
|
-
}, [
|
|
2568
|
-
if (!
|
|
2569
|
-
const C =
|
|
2532
|
+
G.current = I;
|
|
2533
|
+
}, [I]), Y(() => {
|
|
2534
|
+
if (!S || !E) return;
|
|
2535
|
+
const C = S.userID;
|
|
2570
2536
|
if (!C) return;
|
|
2571
|
-
const
|
|
2572
|
-
if (X.current ===
|
|
2573
|
-
X.current =
|
|
2537
|
+
const j = `${C}::${i}`;
|
|
2538
|
+
if (X.current === j) return;
|
|
2539
|
+
X.current = j;
|
|
2574
2540
|
const q = () => {
|
|
2575
|
-
X.current ===
|
|
2541
|
+
X.current === j && (X.current = null);
|
|
2576
2542
|
};
|
|
2577
2543
|
(async () => {
|
|
2578
2544
|
var K, re;
|
|
@@ -2581,7 +2547,7 @@ const Ci = ({
|
|
|
2581
2547
|
"[MessagingShell] Loading initial conversation with:",
|
|
2582
2548
|
i
|
|
2583
2549
|
);
|
|
2584
|
-
const J = await
|
|
2550
|
+
const J = await S.queryChannels(
|
|
2585
2551
|
{
|
|
2586
2552
|
type: "messaging",
|
|
2587
2553
|
members: { $eq: [C, i] }
|
|
@@ -2590,13 +2556,13 @@ const Ci = ({
|
|
|
2590
2556
|
{ limit: 1 }
|
|
2591
2557
|
);
|
|
2592
2558
|
if (J.length > 0) {
|
|
2593
|
-
R(J[0]), A(null), (K =
|
|
2559
|
+
R(J[0]), A(null), (K = U.current) == null || K.call(U, J[0]), _ && console.log(
|
|
2594
2560
|
"[MessagingShell] Initial conversation loaded:",
|
|
2595
2561
|
J[0].id
|
|
2596
2562
|
);
|
|
2597
2563
|
return;
|
|
2598
2564
|
}
|
|
2599
|
-
const se =
|
|
2565
|
+
const se = B.current;
|
|
2600
2566
|
if (!se || !T) {
|
|
2601
2567
|
q(), A("No conversation found with this account"), _ && console.log(
|
|
2602
2568
|
"[MessagingShell] No conversation found for:",
|
|
@@ -2610,7 +2576,7 @@ const Ci = ({
|
|
|
2610
2576
|
name: se.name,
|
|
2611
2577
|
phone: se.phone
|
|
2612
2578
|
});
|
|
2613
|
-
R(Q), A(null), (re =
|
|
2579
|
+
R(Q), A(null), (re = U.current) == null || re.call(U, Q), _ && console.log(
|
|
2614
2580
|
"[MessagingShell] Channel created and loaded:",
|
|
2615
2581
|
Q.id
|
|
2616
2582
|
);
|
|
@@ -2624,33 +2590,33 @@ const Ci = ({
|
|
|
2624
2590
|
console.error(
|
|
2625
2591
|
"[MessagingShell] Failed to load initial conversation:",
|
|
2626
2592
|
J
|
|
2627
|
-
), q(),
|
|
2593
|
+
), q(), G.current || A("Failed to load conversation");
|
|
2628
2594
|
}
|
|
2629
2595
|
})();
|
|
2630
|
-
}, [i,
|
|
2631
|
-
const
|
|
2632
|
-
|
|
2596
|
+
}, [i, S, E, T, _]);
|
|
2597
|
+
const O = H(r);
|
|
2598
|
+
O.current = r;
|
|
2633
2599
|
const w = W(() => {
|
|
2634
2600
|
var C;
|
|
2635
|
-
R(null), z(!0), (C =
|
|
2601
|
+
R(null), z(!0), (C = O.current) == null || C.call(O);
|
|
2636
2602
|
}, []);
|
|
2637
|
-
return M ? /* @__PURE__ */ n(Ee, {}) :
|
|
2603
|
+
return M ? /* @__PURE__ */ n(Ee, {}) : D ? /* @__PURE__ */ n(fe, { message: D, onBack: k }) : !E || !S ? /* @__PURE__ */ n(
|
|
2638
2604
|
fe,
|
|
2639
2605
|
{
|
|
2640
2606
|
message: "Not connected to messaging service",
|
|
2641
2607
|
onBack: k
|
|
2642
2608
|
}
|
|
2643
|
-
) :
|
|
2609
|
+
) : F ? /* @__PURE__ */ n(fe, { message: F }) : L && !I ? /* @__PURE__ */ n(fe, { message: "Conversation ended" }) : I ? /* @__PURE__ */ n("div", { className: "messaging-shell h-full bg-background-primary overflow-hidden", children: /* @__PURE__ */ n("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ n(
|
|
2644
2610
|
dn,
|
|
2645
2611
|
{
|
|
2646
|
-
channel:
|
|
2612
|
+
channel: I,
|
|
2647
2613
|
renderMessageInputActions: t,
|
|
2648
2614
|
renderConversationFooter: s,
|
|
2649
2615
|
renderChannelBanner: g,
|
|
2650
2616
|
onLeaveConversation: w,
|
|
2651
2617
|
onBlockParticipant: w,
|
|
2652
2618
|
CustomChannelEmptyState: l,
|
|
2653
|
-
showDeleteConversation:
|
|
2619
|
+
showDeleteConversation: V,
|
|
2654
2620
|
onBlockParticipantClick: d,
|
|
2655
2621
|
onReportParticipantClick: m,
|
|
2656
2622
|
dmAgentEnabled: b,
|
|
@@ -2662,34 +2628,34 @@ const Ci = ({
|
|
|
2662
2628
|
onMessageLinkClick: N,
|
|
2663
2629
|
showChannelInfo: x
|
|
2664
2630
|
},
|
|
2665
|
-
|
|
2631
|
+
I.id
|
|
2666
2632
|
) }) }) : /* @__PURE__ */ n(Ee, {});
|
|
2667
2633
|
};
|
|
2668
|
-
function
|
|
2634
|
+
function Ja(e) {
|
|
2669
2635
|
const t = e.state.pending_messages;
|
|
2670
2636
|
if (t != null && t.length)
|
|
2671
2637
|
for (const s of t)
|
|
2672
2638
|
e.state.addMessageSorted(s.message);
|
|
2673
2639
|
}
|
|
2674
|
-
const un =
|
|
2640
|
+
const un = $.createContext({
|
|
2675
2641
|
selectedChannel: void 0,
|
|
2676
2642
|
onChannelSelect: () => {
|
|
2677
2643
|
},
|
|
2678
2644
|
debug: !1,
|
|
2679
2645
|
renderMessagePreview: void 0,
|
|
2680
2646
|
viewerLanguage: void 0
|
|
2681
|
-
}),
|
|
2647
|
+
}), Za = un.Provider, Qa = () => $.useContext(un), er = (e, t) => {
|
|
2682
2648
|
const s = new Date(
|
|
2683
2649
|
Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
|
|
2684
2650
|
), r = new Date(
|
|
2685
2651
|
Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())
|
|
2686
2652
|
).getTime() - s.getTime();
|
|
2687
2653
|
return Math.floor(r / (1e3 * 60 * 60 * 24));
|
|
2688
|
-
},
|
|
2654
|
+
}, tr = (e) => {
|
|
2689
2655
|
const t = /* @__PURE__ */ new Date();
|
|
2690
2656
|
if (Math.floor((t.getTime() - e.getTime()) / 1e3) < 60)
|
|
2691
2657
|
return "Just now";
|
|
2692
|
-
const a =
|
|
2658
|
+
const a = er(e, t);
|
|
2693
2659
|
return a === 0 ? e.toLocaleTimeString([], {
|
|
2694
2660
|
hour: "numeric",
|
|
2695
2661
|
minute: "2-digit",
|
|
@@ -2699,45 +2665,45 @@ const un = j.createContext({
|
|
|
2699
2665
|
day: "numeric",
|
|
2700
2666
|
year: "2-digit"
|
|
2701
2667
|
});
|
|
2702
|
-
}, mn =
|
|
2668
|
+
}, mn = $.memo(
|
|
2703
2669
|
({ channel: e, unread: t }) => {
|
|
2704
|
-
var
|
|
2670
|
+
var D, k, T;
|
|
2705
2671
|
const {
|
|
2706
2672
|
selectedChannel: s,
|
|
2707
2673
|
onChannelSelect: a,
|
|
2708
2674
|
debug: r,
|
|
2709
2675
|
renderMessagePreview: i,
|
|
2710
2676
|
viewerLanguage: o
|
|
2711
|
-
} =
|
|
2677
|
+
} = Qa(), l = (s == null ? void 0 : s.id) === (e == null ? void 0 : e.id), d = () => {
|
|
2712
2678
|
e && a(e);
|
|
2713
2679
|
}, m = (_) => {
|
|
2714
|
-
const
|
|
2715
|
-
!
|
|
2716
|
-
}, u = Object.values(((
|
|
2680
|
+
const I = _.key === "Enter" || _.key === " ", R = _.repeat;
|
|
2681
|
+
!I || R || (_.preventDefault(), d());
|
|
2682
|
+
}, u = Object.values(((D = e == null ? void 0 : e.state) == null ? void 0 : D.members) || {}).find(
|
|
2717
2683
|
(_) => {
|
|
2718
|
-
var
|
|
2719
|
-
return ((
|
|
2684
|
+
var I, R;
|
|
2685
|
+
return ((I = _.user) == null ? void 0 : I.id) && _.user.id !== ((R = e == null ? void 0 : e._client) == null ? void 0 : R.userID);
|
|
2720
2686
|
}
|
|
2721
2687
|
), f = Wt(u == null ? void 0 : u.user), c = (k = u == null ? void 0 : u.user) == null ? void 0 : k.image, g = (() => {
|
|
2722
|
-
var
|
|
2723
|
-
const _ = (
|
|
2688
|
+
var I;
|
|
2689
|
+
const _ = (I = e == null ? void 0 : e.state) == null ? void 0 : I.messages;
|
|
2724
2690
|
if (_ != null && _.length) {
|
|
2725
2691
|
for (let R = _.length - 1; R >= 0; R--)
|
|
2726
2692
|
if (_[R].type !== "system") return _[R];
|
|
2727
2693
|
}
|
|
2728
2694
|
})(), v = (() => {
|
|
2729
|
-
var
|
|
2695
|
+
var L, z, V, B;
|
|
2730
2696
|
const _ = Xt({
|
|
2731
2697
|
message: g,
|
|
2732
2698
|
viewerLanguage: o
|
|
2733
2699
|
});
|
|
2734
|
-
if (((
|
|
2700
|
+
if (((L = g == null ? void 0 : g.metadata) == null ? void 0 : L.custom_type) === "MESSAGE_TIP") return _ ? `💵 ${_}` : "💵 Sent a tip";
|
|
2735
2701
|
if (((z = g == null ? void 0 : g.metadata) == null ? void 0 : z.custom_type) === "MESSAGE_PAID") return _ ? `💰 ${_}` : "💰 Sent a message";
|
|
2736
|
-
if (((
|
|
2702
|
+
if (((V = g == null ? void 0 : g.metadata) == null ? void 0 : V.custom_type) === "MESSAGE_ATTACHMENT") return _ ? `📎 ${_}` : "📎 Sent an attachment";
|
|
2737
2703
|
if (_) return _;
|
|
2738
|
-
const A = (
|
|
2704
|
+
const A = (B = g == null ? void 0 : g.attachments) == null ? void 0 : B[0];
|
|
2739
2705
|
return A ? A.og_scrape_url ? A.og_scrape_url : A.type === "image" ? "📷 Sent an image" : A.type === "video" ? "🎥 Sent a video" : A.type === "audio" ? "🎵 Sent audio" : A.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
|
|
2740
|
-
})(), N = g != null && g.created_at ?
|
|
2706
|
+
})(), N = g != null && g.created_at ? tr(new Date(g.created_at)) : "", x = g ? ke(g) : !1, S = i ? i(g, v) : `${x ? "✨ " : ""}${v}`, E = qt(e), M = t ?? 0;
|
|
2741
2707
|
return r && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
|
|
2742
2708
|
channelId: e == null ? void 0 : e.id,
|
|
2743
2709
|
isSelected: l,
|
|
@@ -2786,7 +2752,7 @@ const un = j.createContext({
|
|
|
2786
2752
|
N && /* @__PURE__ */ n("span", { className: "text-xs text-[#717070] flex-shrink-0", children: N })
|
|
2787
2753
|
] }),
|
|
2788
2754
|
/* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
|
|
2789
|
-
/* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children:
|
|
2755
|
+
/* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: S }),
|
|
2790
2756
|
M > 0 && /* @__PURE__ */ n("span", { className: "bg-[#7f22fe] text-white text-[10px] rounded-full h-4 flex items-center justify-center p-1 min-w-4 text-center flex-shrink-0", children: M > 99 ? "99+" : M })
|
|
2791
2757
|
] })
|
|
2792
2758
|
] })
|
|
@@ -2796,25 +2762,25 @@ const un = j.createContext({
|
|
|
2796
2762
|
}
|
|
2797
2763
|
);
|
|
2798
2764
|
mn.displayName = "CustomChannelPreview";
|
|
2799
|
-
const
|
|
2765
|
+
const nr = { last_message_at: -1 }, sr = $.memo(
|
|
2800
2766
|
({
|
|
2801
2767
|
onChannelSelect: e,
|
|
2802
2768
|
selectedChannel: t,
|
|
2803
2769
|
filters: s,
|
|
2804
2770
|
allowNewMessagesFromUnfilteredChannels: a = !1,
|
|
2805
2771
|
channelRenderFilterFn: r,
|
|
2806
|
-
sort: i =
|
|
2772
|
+
sort: i = nr,
|
|
2807
2773
|
className: o,
|
|
2808
2774
|
customEmptyStateIndicator: l,
|
|
2809
2775
|
renderMessagePreview: d,
|
|
2810
2776
|
viewerLanguage: m
|
|
2811
2777
|
}) => {
|
|
2812
|
-
const b =
|
|
2778
|
+
const b = $.useRef(0);
|
|
2813
2779
|
b.current++;
|
|
2814
|
-
const { debug: u = !1 } = qe(), f =
|
|
2780
|
+
const { debug: u = !1 } = qe(), f = $.useCallback(
|
|
2815
2781
|
(g) => {
|
|
2816
2782
|
for (const p of g)
|
|
2817
|
-
|
|
2783
|
+
Ja(p);
|
|
2818
2784
|
return r ? r(g) : g;
|
|
2819
2785
|
},
|
|
2820
2786
|
[r]
|
|
@@ -2824,7 +2790,7 @@ const sr = { last_message_at: -1 }, ar = j.memo(
|
|
|
2824
2790
|
selectedChannelId: t == null ? void 0 : t.id,
|
|
2825
2791
|
filters: s
|
|
2826
2792
|
});
|
|
2827
|
-
const c =
|
|
2793
|
+
const c = $.useMemo(
|
|
2828
2794
|
() => ({
|
|
2829
2795
|
selectedChannel: t,
|
|
2830
2796
|
onChannelSelect: e,
|
|
@@ -2847,8 +2813,8 @@ const sr = { last_message_at: -1 }, ar = j.memo(
|
|
|
2847
2813
|
"messaging-channel-list h-full flex flex-col min-w-0 overflow-hidden",
|
|
2848
2814
|
o
|
|
2849
2815
|
),
|
|
2850
|
-
children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(
|
|
2851
|
-
|
|
2816
|
+
children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(Za, { value: c, children: /* @__PURE__ */ n(
|
|
2817
|
+
cs,
|
|
2852
2818
|
{
|
|
2853
2819
|
filters: s,
|
|
2854
2820
|
sort: i,
|
|
@@ -2864,26 +2830,26 @@ const sr = { last_message_at: -1 }, ar = j.memo(
|
|
|
2864
2830
|
);
|
|
2865
2831
|
}
|
|
2866
2832
|
);
|
|
2867
|
-
|
|
2868
|
-
const
|
|
2833
|
+
sr.displayName = "ChannelList";
|
|
2834
|
+
const ar = /^([a-z][a-z0-9+.-]*):/i, rr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
|
|
2869
2835
|
function Qe(e) {
|
|
2870
2836
|
if (typeof e != "string") return;
|
|
2871
2837
|
const t = e.trim();
|
|
2872
2838
|
if (t === "") return;
|
|
2873
|
-
const s =
|
|
2839
|
+
const s = ar.exec(t);
|
|
2874
2840
|
if (s) {
|
|
2875
2841
|
const a = s[1].toLowerCase();
|
|
2876
|
-
return
|
|
2842
|
+
return rr.has(a) ? t : void 0;
|
|
2877
2843
|
}
|
|
2878
2844
|
return t.startsWith("//") || t.startsWith("/") ? t : `https://${t}`;
|
|
2879
2845
|
}
|
|
2880
|
-
const
|
|
2846
|
+
const ir = {
|
|
2881
2847
|
dark: "bg-white text-[#121110] hover:bg-white/90",
|
|
2882
2848
|
light: "bg-[#121110] text-white hover:bg-[#2a2928]"
|
|
2883
|
-
},
|
|
2849
|
+
}, or = ({ variant: e, cta: t }) => {
|
|
2884
2850
|
const s = y(
|
|
2885
2851
|
"mt-2 inline-flex h-10 w-full items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
|
|
2886
|
-
|
|
2852
|
+
ir[e]
|
|
2887
2853
|
), a = Qe(t.href);
|
|
2888
2854
|
return a ? /* @__PURE__ */ n(
|
|
2889
2855
|
"a",
|
|
@@ -2910,10 +2876,10 @@ const or = {
|
|
|
2910
2876
|
children: t.label
|
|
2911
2877
|
}
|
|
2912
2878
|
);
|
|
2913
|
-
},
|
|
2879
|
+
}, lr = {
|
|
2914
2880
|
dark: "text-white",
|
|
2915
2881
|
light: "text-black/90"
|
|
2916
|
-
},
|
|
2882
|
+
}, cr = "text-white/30", dr = {
|
|
2917
2883
|
dark: "text-white/55",
|
|
2918
2884
|
light: "text-black/55"
|
|
2919
2885
|
}, et = ({
|
|
@@ -2930,10 +2896,10 @@ const or = {
|
|
|
2930
2896
|
if (!b && !u && !c && !g) return null;
|
|
2931
2897
|
const v = y(
|
|
2932
2898
|
"truncate text-base font-medium leading-6",
|
|
2933
|
-
d && !t ?
|
|
2899
|
+
d && !t ? cr : lr[e]
|
|
2934
2900
|
), N = y(
|
|
2935
2901
|
"truncate text-xs leading-4",
|
|
2936
|
-
|
|
2902
|
+
dr[e]
|
|
2937
2903
|
);
|
|
2938
2904
|
return /* @__PURE__ */ h("div", { className: "px-4 py-3", children: [
|
|
2939
2905
|
/* @__PURE__ */ h("div", { className: "flex items-end gap-3", children: [
|
|
@@ -2949,16 +2915,16 @@ const or = {
|
|
|
2949
2915
|
] }),
|
|
2950
2916
|
l && /* @__PURE__ */ n("div", { className: "shrink-0", children: l })
|
|
2951
2917
|
] }),
|
|
2952
|
-
o && /* @__PURE__ */ n(
|
|
2918
|
+
o && /* @__PURE__ */ n(or, { variant: e, cta: o })
|
|
2953
2919
|
] });
|
|
2954
|
-
},
|
|
2920
|
+
}, ur = y(
|
|
2955
2921
|
"relative block w-[280px] select-none overflow-hidden rounded-md",
|
|
2956
2922
|
// 1px hairline border that sits flush with the card chrome — matches
|
|
2957
2923
|
// the messaging design system's "small border around link attachments"
|
|
2958
2924
|
// treatment from the mobile spec. The drop shadow remains for depth.
|
|
2959
2925
|
"border border-black/[0.08]",
|
|
2960
2926
|
"shadow-[0_1px_2px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.1)]"
|
|
2961
|
-
),
|
|
2927
|
+
), Se = ({
|
|
2962
2928
|
variant: e,
|
|
2963
2929
|
children: t,
|
|
2964
2930
|
href: s,
|
|
@@ -2970,7 +2936,7 @@ const or = {
|
|
|
2970
2936
|
"data-testid": d
|
|
2971
2937
|
}) => {
|
|
2972
2938
|
const m = s != null || a != null, b = y(
|
|
2973
|
-
|
|
2939
|
+
ur,
|
|
2974
2940
|
l ?? (e === "dark" ? "bg-[#121110]" : "bg-white"),
|
|
2975
2941
|
// `focus-ring` is a design-system utility from the component-library
|
|
2976
2942
|
// tailwind preset — outline-none + a black 2px focus-visible ring
|
|
@@ -3018,17 +2984,17 @@ const or = {
|
|
|
3018
2984
|
]
|
|
3019
2985
|
}
|
|
3020
2986
|
);
|
|
3021
|
-
},
|
|
2987
|
+
}, mr = {
|
|
3022
2988
|
dark: "bg-white/10",
|
|
3023
2989
|
light: "bg-black/5"
|
|
3024
|
-
},
|
|
2990
|
+
}, hr = {
|
|
3025
2991
|
dark: "size-16 text-white/25",
|
|
3026
2992
|
light: "size-16 text-black/25"
|
|
3027
2993
|
}, Me = (e, t) => !!t && !!e && ne(e) === "audio", hn = (e, t) => {
|
|
3028
2994
|
if (!t || !e) return !1;
|
|
3029
2995
|
const s = ne(e);
|
|
3030
2996
|
return s === "video" || s === "audio";
|
|
3031
|
-
}, tt = "bg-[#F2F3F4]",
|
|
2997
|
+
}, tt = "bg-[#F2F3F4]", Ie = ({
|
|
3032
2998
|
variant: e,
|
|
3033
2999
|
thumbnailUrl: t,
|
|
3034
3000
|
sourceUrl: s,
|
|
@@ -3079,10 +3045,10 @@ const or = {
|
|
|
3079
3045
|
{
|
|
3080
3046
|
className: y(
|
|
3081
3047
|
"flex h-full w-full items-center justify-center",
|
|
3082
|
-
|
|
3048
|
+
mr[e]
|
|
3083
3049
|
),
|
|
3084
3050
|
children: le(r, {
|
|
3085
|
-
className:
|
|
3051
|
+
className: hr[e],
|
|
3086
3052
|
weight: "regular"
|
|
3087
3053
|
})
|
|
3088
3054
|
}
|
|
@@ -3092,7 +3058,7 @@ const or = {
|
|
|
3092
3058
|
]
|
|
3093
3059
|
}
|
|
3094
3060
|
);
|
|
3095
|
-
},
|
|
3061
|
+
}, fr = ({
|
|
3096
3062
|
title: e,
|
|
3097
3063
|
placeholderTitle: t,
|
|
3098
3064
|
description: s,
|
|
@@ -3122,12 +3088,12 @@ const or = {
|
|
|
3122
3088
|
onClick: u,
|
|
3123
3089
|
"aria-label": "Edit attachment",
|
|
3124
3090
|
className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
|
|
3125
|
-
children: /* @__PURE__ */ n(
|
|
3091
|
+
children: /* @__PURE__ */ n(As, { className: "size-5", weight: "regular" })
|
|
3126
3092
|
}
|
|
3127
3093
|
) : void 0;
|
|
3128
|
-
return c ? /* @__PURE__ */ n(
|
|
3094
|
+
return c ? /* @__PURE__ */ n(Se, { variant: "dark", bgClassName: tt, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
|
|
3129
3095
|
/* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
|
|
3130
|
-
|
|
3096
|
+
Ie,
|
|
3131
3097
|
{
|
|
3132
3098
|
variant: "dark",
|
|
3133
3099
|
sourceUrl: o,
|
|
@@ -3137,13 +3103,13 @@ const or = {
|
|
|
3137
3103
|
) }),
|
|
3138
3104
|
g && /* @__PURE__ */ n("div", { className: "shrink-0", children: g })
|
|
3139
3105
|
] }) }) : /* @__PURE__ */ h(
|
|
3140
|
-
|
|
3106
|
+
Se,
|
|
3141
3107
|
{
|
|
3142
3108
|
variant: "dark",
|
|
3143
3109
|
topRight: f ? g : void 0,
|
|
3144
3110
|
children: [
|
|
3145
3111
|
!f && /* @__PURE__ */ n(
|
|
3146
|
-
|
|
3112
|
+
Ie,
|
|
3147
3113
|
{
|
|
3148
3114
|
variant: "dark",
|
|
3149
3115
|
thumbnailUrl: i,
|
|
@@ -3169,7 +3135,7 @@ const or = {
|
|
|
3169
3135
|
]
|
|
3170
3136
|
}
|
|
3171
3137
|
);
|
|
3172
|
-
},
|
|
3138
|
+
}, gr = ({
|
|
3173
3139
|
title: e,
|
|
3174
3140
|
description: t,
|
|
3175
3141
|
url: s,
|
|
@@ -3189,7 +3155,7 @@ const or = {
|
|
|
3189
3155
|
}
|
|
3190
3156
|
} : d;
|
|
3191
3157
|
return /* @__PURE__ */ h(
|
|
3192
|
-
|
|
3158
|
+
Se,
|
|
3193
3159
|
{
|
|
3194
3160
|
variant: "light",
|
|
3195
3161
|
href: f,
|
|
@@ -3199,7 +3165,7 @@ const or = {
|
|
|
3199
3165
|
"data-testid": "link-attachment",
|
|
3200
3166
|
children: [
|
|
3201
3167
|
o === "featured" && /* @__PURE__ */ n(
|
|
3202
|
-
|
|
3168
|
+
Ie,
|
|
3203
3169
|
{
|
|
3204
3170
|
variant: "light",
|
|
3205
3171
|
thumbnailUrl: r,
|
|
@@ -3222,7 +3188,7 @@ const or = {
|
|
|
3222
3188
|
]
|
|
3223
3189
|
}
|
|
3224
3190
|
);
|
|
3225
|
-
},
|
|
3191
|
+
}, br = ({
|
|
3226
3192
|
title: e,
|
|
3227
3193
|
placeholderTitle: t,
|
|
3228
3194
|
description: s,
|
|
@@ -3237,7 +3203,7 @@ const or = {
|
|
|
3237
3203
|
}) => {
|
|
3238
3204
|
const u = hn(r, o), f = Qe(a), c = m == null && f != null && !u ? f : void 0, g = m == null && !u && c != null ? b : void 0;
|
|
3239
3205
|
return /* @__PURE__ */ h(
|
|
3240
|
-
|
|
3206
|
+
Se,
|
|
3241
3207
|
{
|
|
3242
3208
|
variant: "dark",
|
|
3243
3209
|
href: c,
|
|
@@ -3245,7 +3211,7 @@ const or = {
|
|
|
3245
3211
|
bgClassName: Me(r, o) ? tt : void 0,
|
|
3246
3212
|
children: [
|
|
3247
3213
|
l === "featured" && /* @__PURE__ */ n(
|
|
3248
|
-
|
|
3214
|
+
Ie,
|
|
3249
3215
|
{
|
|
3250
3216
|
variant: "dark",
|
|
3251
3217
|
thumbnailUrl: i,
|
|
@@ -3269,20 +3235,20 @@ const or = {
|
|
|
3269
3235
|
]
|
|
3270
3236
|
}
|
|
3271
3237
|
);
|
|
3272
|
-
},
|
|
3273
|
-
Composer:
|
|
3274
|
-
Sent:
|
|
3275
|
-
Received:
|
|
3276
|
-
},
|
|
3238
|
+
}, Ci = {
|
|
3239
|
+
Composer: fr,
|
|
3240
|
+
Sent: br,
|
|
3241
|
+
Received: gr
|
|
3242
|
+
}, pr = {
|
|
3277
3243
|
dark: "bg-[#121110]",
|
|
3278
3244
|
light: "bg-[#e9eaed]"
|
|
3279
|
-
},
|
|
3245
|
+
}, vr = {
|
|
3280
3246
|
dark: "text-white",
|
|
3281
3247
|
light: "text-[#080707]"
|
|
3282
|
-
},
|
|
3248
|
+
}, xr = {
|
|
3283
3249
|
dark: "border-white/[0.08]",
|
|
3284
3250
|
light: "border-black/[0.08]"
|
|
3285
|
-
},
|
|
3251
|
+
}, wr = (e) => e === "dark" ? "sender" : "receiver", Nr = {
|
|
3286
3252
|
sender: {
|
|
3287
3253
|
single: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]",
|
|
3288
3254
|
first: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[4px]",
|
|
@@ -3304,7 +3270,7 @@ const or = {
|
|
|
3304
3270
|
children: i,
|
|
3305
3271
|
"data-testid": o
|
|
3306
3272
|
}) => {
|
|
3307
|
-
const l = t != null && t !== "", d =
|
|
3273
|
+
const l = t != null && t !== "", d = Nr[wr(e)][a];
|
|
3308
3274
|
return /* @__PURE__ */ h(
|
|
3309
3275
|
"div",
|
|
3310
3276
|
{
|
|
@@ -3319,10 +3285,10 @@ const or = {
|
|
|
3319
3285
|
// as the surrounding `CustomMessage` text bubbles.
|
|
3320
3286
|
"relative w-[280px] overflow-hidden px-2 py-2",
|
|
3321
3287
|
d,
|
|
3288
|
+
pr[e],
|
|
3322
3289
|
vr[e],
|
|
3323
|
-
xr[e],
|
|
3324
3290
|
s && "border",
|
|
3325
|
-
s &&
|
|
3291
|
+
s && xr[e],
|
|
3326
3292
|
r
|
|
3327
3293
|
),
|
|
3328
3294
|
children: [
|
|
@@ -3365,16 +3331,16 @@ const or = {
|
|
|
3365
3331
|
),
|
|
3366
3332
|
children: /* @__PURE__ */ n(Ae, { className: "size-3", weight: "bold" })
|
|
3367
3333
|
}
|
|
3368
|
-
), we = (e) => e === "received" ? "light" : "dark",
|
|
3334
|
+
), we = (e) => e === "received" ? "light" : "dark", ki = ({
|
|
3369
3335
|
firstOfGroup: e,
|
|
3370
3336
|
endOfGroup: t,
|
|
3371
3337
|
groupedByUser: s
|
|
3372
|
-
}) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle",
|
|
3338
|
+
}) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", _r = ({
|
|
3373
3339
|
src: e,
|
|
3374
3340
|
mimeType: t,
|
|
3375
3341
|
filename: s,
|
|
3376
3342
|
items: a
|
|
3377
|
-
}) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [],
|
|
3343
|
+
}) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], yr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
|
|
3378
3344
|
/* @__PURE__ */ n(
|
|
3379
3345
|
"audio",
|
|
3380
3346
|
{
|
|
@@ -3397,7 +3363,7 @@ const or = {
|
|
|
3397
3363
|
preload: l,
|
|
3398
3364
|
onDismiss: d
|
|
3399
3365
|
}) => {
|
|
3400
|
-
const m = we(e), b = e === "composer" && !!d, u =
|
|
3366
|
+
const m = we(e), b = e === "composer" && !!d, u = _r({ src: t, mimeType: s, filename: a, items: r });
|
|
3401
3367
|
if (u.length === 0)
|
|
3402
3368
|
return null;
|
|
3403
3369
|
const f = l ?? (u.length > 1 ? "none" : "metadata");
|
|
@@ -3409,7 +3375,7 @@ const or = {
|
|
|
3409
3375
|
groupPosition: o,
|
|
3410
3376
|
"data-testid": "audio-attachment",
|
|
3411
3377
|
children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((c, g) => /* @__PURE__ */ n(
|
|
3412
|
-
|
|
3378
|
+
yr,
|
|
3413
3379
|
{
|
|
3414
3380
|
item: c,
|
|
3415
3381
|
preload: f,
|
|
@@ -3423,15 +3389,15 @@ const or = {
|
|
|
3423
3389
|
)) })
|
|
3424
3390
|
}
|
|
3425
3391
|
);
|
|
3426
|
-
},
|
|
3427
|
-
Composer:
|
|
3428
|
-
Sent:
|
|
3429
|
-
Received:
|
|
3392
|
+
}, Cr = (e) => /* @__PURE__ */ n(nt, { ...e, state: "composer" }), kr = (e) => /* @__PURE__ */ n(nt, { ...e, state: "sent" }), Er = (e) => /* @__PURE__ */ n(nt, { ...e, state: "received" }), Sr = {
|
|
3393
|
+
Composer: Cr,
|
|
3394
|
+
Sent: kr,
|
|
3395
|
+
Received: Er
|
|
3430
3396
|
};
|
|
3431
|
-
function
|
|
3397
|
+
function Ir(e) {
|
|
3432
3398
|
return !Number.isFinite(e) || e < 0 ? "" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(2)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(2)} GB`;
|
|
3433
3399
|
}
|
|
3434
|
-
const
|
|
3400
|
+
const Tr = {
|
|
3435
3401
|
pdf: "PDF",
|
|
3436
3402
|
doc: "DOC",
|
|
3437
3403
|
xls: "XLS",
|
|
@@ -3441,7 +3407,7 @@ const Ar = {
|
|
|
3441
3407
|
text: "TXT",
|
|
3442
3408
|
markdown: "MD"
|
|
3443
3409
|
};
|
|
3444
|
-
function
|
|
3410
|
+
function Ar(e, t) {
|
|
3445
3411
|
if (t) {
|
|
3446
3412
|
const r = t.lastIndexOf(".");
|
|
3447
3413
|
if (r > 0 && r < t.length - 1) {
|
|
@@ -3451,7 +3417,7 @@ function Mr(e, t) {
|
|
|
3451
3417
|
}
|
|
3452
3418
|
if (!e) return;
|
|
3453
3419
|
if (ne(e) === "document") {
|
|
3454
|
-
const r = Zt(e), i =
|
|
3420
|
+
const r = Zt(e), i = Tr[r];
|
|
3455
3421
|
if (i) return i;
|
|
3456
3422
|
if (e === "application/octet-stream") return;
|
|
3457
3423
|
}
|
|
@@ -3459,8 +3425,8 @@ function Mr(e, t) {
|
|
|
3459
3425
|
if (!(!a || a === "*"))
|
|
3460
3426
|
return a.toUpperCase();
|
|
3461
3427
|
}
|
|
3462
|
-
function
|
|
3463
|
-
const a =
|
|
3428
|
+
function Mr(e, t, s) {
|
|
3429
|
+
const a = Ar(e, t), r = typeof s == "number" && s > 0 ? Ir(s) : void 0;
|
|
3464
3430
|
return [a, r].filter(Boolean).join(" · ") || void 0;
|
|
3465
3431
|
}
|
|
3466
3432
|
function Z(e) {
|
|
@@ -3471,13 +3437,13 @@ function Z(e) {
|
|
|
3471
3437
|
return "download";
|
|
3472
3438
|
}
|
|
3473
3439
|
}
|
|
3474
|
-
const
|
|
3440
|
+
const Rr = {
|
|
3475
3441
|
dark: "text-white/55",
|
|
3476
3442
|
light: "text-black/65"
|
|
3477
|
-
},
|
|
3443
|
+
}, Lr = {
|
|
3478
3444
|
dark: "bg-white/10",
|
|
3479
3445
|
light: "bg-black/5"
|
|
3480
|
-
},
|
|
3446
|
+
}, Dr = {
|
|
3481
3447
|
dark: "text-white/85",
|
|
3482
3448
|
light: "text-black/85"
|
|
3483
3449
|
}, fn = ({
|
|
@@ -3490,16 +3456,16 @@ const Lr = {
|
|
|
3490
3456
|
activateLabel: o,
|
|
3491
3457
|
trailingAction: l
|
|
3492
3458
|
}) => {
|
|
3493
|
-
const d = s ?? t ?? "File", m =
|
|
3459
|
+
const d = s ?? t ?? "File", m = Mr(a, t, r), b = /* @__PURE__ */ n(
|
|
3494
3460
|
"div",
|
|
3495
3461
|
{
|
|
3496
3462
|
className: y(
|
|
3497
3463
|
"flex size-10 shrink-0 items-center justify-center rounded-sm",
|
|
3498
|
-
|
|
3464
|
+
Lr[e]
|
|
3499
3465
|
),
|
|
3500
3466
|
"aria-hidden": !0,
|
|
3501
3467
|
children: le(a, {
|
|
3502
|
-
className: y("size-6",
|
|
3468
|
+
className: y("size-6", Dr[e]),
|
|
3503
3469
|
weight: "regular"
|
|
3504
3470
|
})
|
|
3505
3471
|
}
|
|
@@ -3510,7 +3476,7 @@ const Lr = {
|
|
|
3510
3476
|
{
|
|
3511
3477
|
className: y(
|
|
3512
3478
|
"truncate text-xs leading-4",
|
|
3513
|
-
|
|
3479
|
+
Rr[e]
|
|
3514
3480
|
),
|
|
3515
3481
|
children: m
|
|
3516
3482
|
}
|
|
@@ -3553,14 +3519,14 @@ async function gn(e, t) {
|
|
|
3553
3519
|
}
|
|
3554
3520
|
}
|
|
3555
3521
|
}
|
|
3556
|
-
const
|
|
3522
|
+
const Pr = ({
|
|
3557
3523
|
src: e,
|
|
3558
3524
|
filename: t,
|
|
3559
3525
|
fileSize: s,
|
|
3560
3526
|
mimeType: a,
|
|
3561
3527
|
title: r,
|
|
3562
3528
|
items: i
|
|
3563
|
-
}) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [],
|
|
3529
|
+
}) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], Or = ({
|
|
3564
3530
|
variant: e,
|
|
3565
3531
|
item: t,
|
|
3566
3532
|
index: s,
|
|
@@ -3594,7 +3560,7 @@ const Or = ({
|
|
|
3594
3560
|
onClick: m,
|
|
3595
3561
|
onDismiss: b
|
|
3596
3562
|
}) => {
|
|
3597
|
-
const u = we(e), f = e === "composer" && !!b, c =
|
|
3563
|
+
const u = we(e), f = e === "composer" && !!b, c = Pr({
|
|
3598
3564
|
src: t,
|
|
3599
3565
|
filename: s,
|
|
3600
3566
|
fileSize: a,
|
|
@@ -3629,7 +3595,7 @@ const Or = ({
|
|
|
3629
3595
|
groupPosition: d,
|
|
3630
3596
|
"data-testid": "file-attachment",
|
|
3631
3597
|
children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: c.map((v, N) => /* @__PURE__ */ n(
|
|
3632
|
-
|
|
3598
|
+
Or,
|
|
3633
3599
|
{
|
|
3634
3600
|
variant: u,
|
|
3635
3601
|
item: v,
|
|
@@ -3641,10 +3607,10 @@ const Or = ({
|
|
|
3641
3607
|
)) })
|
|
3642
3608
|
}
|
|
3643
3609
|
);
|
|
3644
|
-
},
|
|
3645
|
-
Composer:
|
|
3646
|
-
Sent:
|
|
3647
|
-
Received:
|
|
3610
|
+
}, zr = (e) => /* @__PURE__ */ n(st, { ...e, state: "composer" }), $r = (e) => /* @__PURE__ */ n(st, { ...e, state: "sent" }), Fr = (e) => /* @__PURE__ */ n(st, { ...e, state: "received" }), Br = {
|
|
3611
|
+
Composer: zr,
|
|
3612
|
+
Sent: $r,
|
|
3613
|
+
Received: Fr
|
|
3648
3614
|
}, at = ({
|
|
3649
3615
|
onPrev: e,
|
|
3650
3616
|
onNext: t,
|
|
@@ -3658,7 +3624,7 @@ const Or = ({
|
|
|
3658
3624
|
onClick: e,
|
|
3659
3625
|
"aria-label": s,
|
|
3660
3626
|
className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
|
|
3661
|
-
children: /* @__PURE__ */ n(
|
|
3627
|
+
children: /* @__PURE__ */ n(Ms, { size: 20, weight: "bold", "aria-hidden": !0 })
|
|
3662
3628
|
}
|
|
3663
3629
|
),
|
|
3664
3630
|
/* @__PURE__ */ n(
|
|
@@ -3668,7 +3634,7 @@ const Or = ({
|
|
|
3668
3634
|
onClick: t,
|
|
3669
3635
|
"aria-label": a,
|
|
3670
3636
|
className: "mes-media-viewer__nav mes-media-viewer__nav--next",
|
|
3671
|
-
children: /* @__PURE__ */ n(
|
|
3637
|
+
children: /* @__PURE__ */ n(Rs, { size: 20, weight: "bold", "aria-hidden": !0 })
|
|
3672
3638
|
}
|
|
3673
3639
|
)
|
|
3674
3640
|
] }), bn = ({
|
|
@@ -3680,7 +3646,7 @@ const Or = ({
|
|
|
3680
3646
|
tone: i = "dark",
|
|
3681
3647
|
onTriggered: o
|
|
3682
3648
|
}) => {
|
|
3683
|
-
const [l, d] =
|
|
3649
|
+
const [l, d] = P(!1), m = W(
|
|
3684
3650
|
(c) => {
|
|
3685
3651
|
c.stopPropagation(), !l && (d(!0), gn(e, t).catch(() => {
|
|
3686
3652
|
}).finally(() => {
|
|
@@ -3761,7 +3727,7 @@ const Or = ({
|
|
|
3761
3727
|
initialIndex: t,
|
|
3762
3728
|
open: s
|
|
3763
3729
|
}) => {
|
|
3764
|
-
const a = $e(t, 0, Math.max(e - 1, 0)), [r, i] =
|
|
3730
|
+
const a = $e(t, 0, Math.max(e - 1, 0)), [r, i] = P(a);
|
|
3765
3731
|
Y(() => {
|
|
3766
3732
|
s && i($e(t, 0, Math.max(e - 1, 0)));
|
|
3767
3733
|
}, [s, t, e]), Y(() => {
|
|
@@ -3927,7 +3893,7 @@ const Or = ({
|
|
|
3927
3893
|
]
|
|
3928
3894
|
}
|
|
3929
3895
|
) : null;
|
|
3930
|
-
},
|
|
3896
|
+
}, Ur = "relative block size-full overflow-hidden bg-black/5 outline-none focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-black", vn = ({
|
|
3931
3897
|
tiles: e,
|
|
3932
3898
|
onTileActivate: t,
|
|
3933
3899
|
maxVisible: s = 4,
|
|
@@ -3936,7 +3902,7 @@ const Or = ({
|
|
|
3936
3902
|
const r = e.length;
|
|
3937
3903
|
if (r === 0) return null;
|
|
3938
3904
|
const i = e.slice(0, Math.min(r, s)), o = r - i.length, l = (d, m, b) => {
|
|
3939
|
-
const u = y(
|
|
3905
|
+
const u = y(Ur, "h-full w-full");
|
|
3940
3906
|
return t ? /* @__PURE__ */ h(
|
|
3941
3907
|
"button",
|
|
3942
3908
|
{
|
|
@@ -3998,14 +3964,14 @@ const Or = ({
|
|
|
3998
3964
|
}
|
|
3999
3965
|
);
|
|
4000
3966
|
}, Ne = (e) => {
|
|
4001
|
-
const [t, s] =
|
|
3967
|
+
const [t, s] = P(!1), [a, r] = P(0), i = W(
|
|
4002
3968
|
(l) => {
|
|
4003
3969
|
(e == null ? void 0 : e(l)) !== !1 && (r(l), s(!0));
|
|
4004
3970
|
},
|
|
4005
3971
|
[e]
|
|
4006
3972
|
), o = W(() => s(!1), []);
|
|
4007
3973
|
return { viewerOpen: t, viewerIndex: a, handleActivate: i, closeViewer: o };
|
|
4008
|
-
},
|
|
3974
|
+
}, jr = (e, t, s, a) => ({
|
|
4009
3975
|
ariaLabel: `Open image ${t + 1} of ${s}`,
|
|
4010
3976
|
content: /* @__PURE__ */ n(
|
|
4011
3977
|
"img",
|
|
@@ -4020,7 +3986,7 @@ const Or = ({
|
|
|
4020
3986
|
className: "absolute inset-0 size-full rounded-md object-cover"
|
|
4021
3987
|
}
|
|
4022
3988
|
)
|
|
4023
|
-
}),
|
|
3989
|
+
}), Vr = ({
|
|
4024
3990
|
src: e,
|
|
4025
3991
|
alt: t,
|
|
4026
3992
|
items: s
|
|
@@ -4028,7 +3994,7 @@ const Or = ({
|
|
|
4028
3994
|
src: s.src,
|
|
4029
3995
|
alt: s.alt,
|
|
4030
3996
|
filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
|
|
4031
|
-
})),
|
|
3997
|
+
})), Gr = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
|
|
4032
3998
|
const { viewerOpen: o, viewerIndex: l, handleActivate: d, closeViewer: m } = Ne(
|
|
4033
3999
|
r
|
|
4034
4000
|
);
|
|
@@ -4075,13 +4041,13 @@ const Or = ({
|
|
|
4075
4041
|
loading: l = "lazy",
|
|
4076
4042
|
onClick: d
|
|
4077
4043
|
}) => {
|
|
4078
|
-
const m =
|
|
4044
|
+
const m = Vr({ src: t, alt: s, items: r }), b = we(e), { viewerOpen: u, viewerIndex: f, handleActivate: c, closeViewer: g } = Ne(
|
|
4079
4045
|
d
|
|
4080
4046
|
);
|
|
4081
4047
|
if (m.length === 0)
|
|
4082
4048
|
return null;
|
|
4083
4049
|
const p = m.map(
|
|
4084
|
-
(v, N) =>
|
|
4050
|
+
(v, N) => jr(v, N, m.length, l)
|
|
4085
4051
|
);
|
|
4086
4052
|
return /* @__PURE__ */ h(
|
|
4087
4053
|
ve,
|
|
@@ -4104,11 +4070,11 @@ const Or = ({
|
|
|
4104
4070
|
]
|
|
4105
4071
|
}
|
|
4106
4072
|
);
|
|
4107
|
-
},
|
|
4108
|
-
Composer:
|
|
4109
|
-
Sent:
|
|
4110
|
-
Received:
|
|
4111
|
-
},
|
|
4073
|
+
}, Hr = (e) => /* @__PURE__ */ n(Gr, { ...e }), Yr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "sent" }), qr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "received" }), Wr = {
|
|
4074
|
+
Composer: Hr,
|
|
4075
|
+
Sent: Yr,
|
|
4076
|
+
Received: qr
|
|
4077
|
+
}, Xr = ({
|
|
4112
4078
|
open: e,
|
|
4113
4079
|
items: t,
|
|
4114
4080
|
initialIndex: s = 0,
|
|
@@ -4122,7 +4088,7 @@ const Or = ({
|
|
|
4122
4088
|
() => (l == null ? void 0 : l.filename) ?? (l ? Z(l.src) : "document"),
|
|
4123
4089
|
[l]
|
|
4124
4090
|
), m = ee(
|
|
4125
|
-
() => l ?
|
|
4091
|
+
() => l ? Kr(l.src) : void 0,
|
|
4126
4092
|
[l]
|
|
4127
4093
|
);
|
|
4128
4094
|
return !l || !m ? null : /* @__PURE__ */ h(
|
|
@@ -4156,16 +4122,16 @@ const Or = ({
|
|
|
4156
4122
|
]
|
|
4157
4123
|
}
|
|
4158
4124
|
);
|
|
4159
|
-
},
|
|
4125
|
+
}, Kr = (e) => {
|
|
4160
4126
|
const t = e.indexOf("#"), s = t === -1 ? e : e.slice(0, t), a = t === -1 ? "" : e.slice(t + 1), r = new URLSearchParams(a);
|
|
4161
4127
|
return r.has("toolbar") || r.set("toolbar", "0"), r.has("navpanes") || r.set("navpanes", "0"), `${s}#${r.toString()}`;
|
|
4162
|
-
},
|
|
4128
|
+
}, Jr = ({
|
|
4163
4129
|
src: e,
|
|
4164
4130
|
filename: t,
|
|
4165
4131
|
fileSize: s,
|
|
4166
4132
|
title: a,
|
|
4167
4133
|
items: r
|
|
4168
|
-
}) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [],
|
|
4134
|
+
}) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], Zr = ({
|
|
4169
4135
|
variant: e,
|
|
4170
4136
|
item: t,
|
|
4171
4137
|
index: s,
|
|
@@ -4198,7 +4164,7 @@ const Or = ({
|
|
|
4198
4164
|
onClick: d,
|
|
4199
4165
|
onDismiss: m
|
|
4200
4166
|
}) => {
|
|
4201
|
-
const b = we(e), u =
|
|
4167
|
+
const b = we(e), u = Jr({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: g, closeViewer: p } = Ne(
|
|
4202
4168
|
d
|
|
4203
4169
|
), v = e === "composer" && !!m;
|
|
4204
4170
|
if (u.length === 0)
|
|
@@ -4215,8 +4181,8 @@ const Or = ({
|
|
|
4215
4181
|
groupPosition: l,
|
|
4216
4182
|
"data-testid": "pdf-attachment",
|
|
4217
4183
|
children: [
|
|
4218
|
-
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((x,
|
|
4219
|
-
const E = x.filename ?? Z(x.src), M = v &&
|
|
4184
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((x, S) => {
|
|
4185
|
+
const E = x.filename ?? Z(x.src), M = v && S === 0 ? /* @__PURE__ */ n(xe, { onClick: m, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
|
|
4220
4186
|
bn,
|
|
4221
4187
|
{
|
|
4222
4188
|
url: x.src,
|
|
@@ -4227,19 +4193,19 @@ const Or = ({
|
|
|
4227
4193
|
}
|
|
4228
4194
|
);
|
|
4229
4195
|
return /* @__PURE__ */ n(
|
|
4230
|
-
|
|
4196
|
+
Zr,
|
|
4231
4197
|
{
|
|
4232
4198
|
variant: b,
|
|
4233
4199
|
item: x,
|
|
4234
|
-
index:
|
|
4200
|
+
index: S,
|
|
4235
4201
|
onActivate: g,
|
|
4236
4202
|
trailingAction: M
|
|
4237
4203
|
},
|
|
4238
|
-
`${x.src}-${
|
|
4204
|
+
`${x.src}-${S}`
|
|
4239
4205
|
);
|
|
4240
4206
|
}) }),
|
|
4241
4207
|
/* @__PURE__ */ n(
|
|
4242
|
-
|
|
4208
|
+
Xr,
|
|
4243
4209
|
{
|
|
4244
4210
|
open: f,
|
|
4245
4211
|
items: N,
|
|
@@ -4250,10 +4216,10 @@ const Or = ({
|
|
|
4250
4216
|
]
|
|
4251
4217
|
}
|
|
4252
4218
|
);
|
|
4253
|
-
},
|
|
4254
|
-
Composer:
|
|
4255
|
-
Sent:
|
|
4256
|
-
Received:
|
|
4219
|
+
}, Qr = (e) => /* @__PURE__ */ n(ot, { ...e, state: "composer" }), ei = (e) => /* @__PURE__ */ n(ot, { ...e, state: "sent" }), ti = (e) => /* @__PURE__ */ n(ot, { ...e, state: "received" }), ni = {
|
|
4220
|
+
Composer: Qr,
|
|
4221
|
+
Sent: ei,
|
|
4222
|
+
Received: ti
|
|
4257
4223
|
}, Nn = ({
|
|
4258
4224
|
open: e,
|
|
4259
4225
|
items: t,
|
|
@@ -4304,7 +4270,7 @@ const Or = ({
|
|
|
4304
4270
|
]
|
|
4305
4271
|
}
|
|
4306
4272
|
) : null;
|
|
4307
|
-
},
|
|
4273
|
+
}, si = () => /* @__PURE__ */ n("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n("span", { className: "flex size-12 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur", children: /* @__PURE__ */ n(Be, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), _n = ({
|
|
4308
4274
|
item: e,
|
|
4309
4275
|
index: t
|
|
4310
4276
|
}) => /* @__PURE__ */ h("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
|
|
@@ -4326,11 +4292,11 @@ const Or = ({
|
|
|
4326
4292
|
"aria-hidden": !0
|
|
4327
4293
|
}
|
|
4328
4294
|
) }),
|
|
4329
|
-
/* @__PURE__ */ n(
|
|
4330
|
-
] }),
|
|
4295
|
+
/* @__PURE__ */ n(si, {})
|
|
4296
|
+
] }), ai = (e, t, s) => ({
|
|
4331
4297
|
ariaLabel: `Play video ${t + 1} of ${s}`,
|
|
4332
4298
|
content: /* @__PURE__ */ n(_n, { item: e, index: t })
|
|
4333
|
-
}),
|
|
4299
|
+
}), ri = ({
|
|
4334
4300
|
src: e,
|
|
4335
4301
|
poster: t,
|
|
4336
4302
|
mimeType: s,
|
|
@@ -4342,7 +4308,7 @@ const Or = ({
|
|
|
4342
4308
|
mimeType: s.mimeType,
|
|
4343
4309
|
preload: s.preload,
|
|
4344
4310
|
filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
|
|
4345
|
-
})),
|
|
4311
|
+
})), ii = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
|
|
4346
4312
|
const { viewerOpen: l, viewerIndex: d, handleActivate: m, closeViewer: b } = Ne(
|
|
4347
4313
|
i
|
|
4348
4314
|
);
|
|
@@ -4383,13 +4349,13 @@ const Or = ({
|
|
|
4383
4349
|
preload: d,
|
|
4384
4350
|
onClick: m
|
|
4385
4351
|
}) => {
|
|
4386
|
-
const b =
|
|
4352
|
+
const b = ri({ src: t, poster: s, mimeType: a, preload: d, items: i }), u = we(e), { viewerOpen: f, viewerIndex: c, handleActivate: g, closeViewer: p } = Ne(
|
|
4387
4353
|
m
|
|
4388
4354
|
);
|
|
4389
4355
|
if (b.length === 0)
|
|
4390
4356
|
return null;
|
|
4391
4357
|
const v = b.map(
|
|
4392
|
-
(N, x) =>
|
|
4358
|
+
(N, x) => ai(N, x, b.length)
|
|
4393
4359
|
);
|
|
4394
4360
|
return /* @__PURE__ */ h(
|
|
4395
4361
|
ve,
|
|
@@ -4419,17 +4385,17 @@ const Or = ({
|
|
|
4419
4385
|
]
|
|
4420
4386
|
}
|
|
4421
4387
|
);
|
|
4422
|
-
},
|
|
4423
|
-
Composer:
|
|
4424
|
-
Sent:
|
|
4425
|
-
Received:
|
|
4426
|
-
},
|
|
4427
|
-
Image:
|
|
4428
|
-
Video:
|
|
4388
|
+
}, oi = (e) => /* @__PURE__ */ n(ii, { ...e }), li = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "sent" }), ci = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "received" }), di = {
|
|
4389
|
+
Composer: oi,
|
|
4390
|
+
Sent: li,
|
|
4391
|
+
Received: ci
|
|
4392
|
+
}, Ei = {
|
|
4393
|
+
Image: Wr,
|
|
4394
|
+
Video: di,
|
|
4429
4395
|
Audio: Sr,
|
|
4430
|
-
Pdf:
|
|
4431
|
-
File:
|
|
4432
|
-
},
|
|
4396
|
+
Pdf: ni,
|
|
4397
|
+
File: Br
|
|
4398
|
+
}, ui = ({
|
|
4433
4399
|
question: e,
|
|
4434
4400
|
onClick: t,
|
|
4435
4401
|
loading: s = !1,
|
|
@@ -4480,7 +4446,7 @@ const Or = ({
|
|
|
4480
4446
|
children: [
|
|
4481
4447
|
a && /* @__PURE__ */ n("p", { className: "text-md text-charcoal mb-4", children: a }),
|
|
4482
4448
|
l.map((d) => /* @__PURE__ */ n(
|
|
4483
|
-
|
|
4449
|
+
ui,
|
|
4484
4450
|
{
|
|
4485
4451
|
question: d.question,
|
|
4486
4452
|
onClick: () => t(d.id),
|
|
@@ -4495,37 +4461,37 @@ const Or = ({
|
|
|
4495
4461
|
};
|
|
4496
4462
|
export {
|
|
4497
4463
|
Qt as A,
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4464
|
+
Vs as B,
|
|
4465
|
+
qa as C,
|
|
4466
|
+
Ds as D,
|
|
4501
4467
|
Si as F,
|
|
4502
|
-
|
|
4503
|
-
|
|
4468
|
+
Ci as L,
|
|
4469
|
+
Ni as M,
|
|
4504
4470
|
he as a,
|
|
4505
4471
|
ae as b,
|
|
4506
|
-
|
|
4472
|
+
sr as c,
|
|
4507
4473
|
dn as d,
|
|
4508
|
-
|
|
4509
|
-
|
|
4474
|
+
_i as e,
|
|
4475
|
+
ui as f,
|
|
4510
4476
|
ne as g,
|
|
4511
4477
|
Ot as h,
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4478
|
+
Ei as i,
|
|
4479
|
+
_a as j,
|
|
4480
|
+
wi as k,
|
|
4481
|
+
yi as l,
|
|
4482
|
+
Mr as m,
|
|
4483
|
+
Ir as n,
|
|
4484
|
+
tr as o,
|
|
4485
|
+
Ar as p,
|
|
4520
4486
|
Xt as q,
|
|
4521
4487
|
le as r,
|
|
4522
4488
|
nn as s,
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4489
|
+
Os as t,
|
|
4490
|
+
ki as u,
|
|
4491
|
+
Gs as v,
|
|
4526
4492
|
Je as w,
|
|
4527
4493
|
Ze as x,
|
|
4528
4494
|
Wt as y,
|
|
4529
|
-
|
|
4495
|
+
ba as z
|
|
4530
4496
|
};
|
|
4531
|
-
//# sourceMappingURL=index-
|
|
4497
|
+
//# sourceMappingURL=index-D7eRkXoG.js.map
|