@linktr.ee/messaging-react 3.5.5-rc-1782980871 → 3.5.5-rc-1782981024

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/{Card-CXpxfxsk.js → Card-BP7VHMzx.js} +2 -2
  2. package/dist/{Card-CXpxfxsk.js.map → Card-BP7VHMzx.js.map} +1 -1
  3. package/dist/{Card-Cx5NdR_m.cjs → Card-BmQbBb9A.cjs} +2 -2
  4. package/dist/{Card-Cx5NdR_m.cjs.map → Card-BmQbBb9A.cjs.map} +1 -1
  5. package/dist/{Card-5sNhDH41.cjs → Card-C8Bgd2lJ.cjs} +2 -2
  6. package/dist/{Card-5sNhDH41.cjs.map → Card-C8Bgd2lJ.cjs.map} +1 -1
  7. package/dist/{Card-CGImMuaB.js → Card-CErKgZmK.js} +2 -2
  8. package/dist/{Card-CGImMuaB.js.map → Card-CErKgZmK.js.map} +1 -1
  9. package/dist/{Card-CeWBGjvN.js → Card-DD0muNC6.js} +3 -3
  10. package/dist/{Card-CeWBGjvN.js.map → Card-DD0muNC6.js.map} +1 -1
  11. package/dist/{Card-WXgdraGF.cjs → Card-DnKuLKJG.cjs} +2 -2
  12. package/dist/{Card-WXgdraGF.cjs.map → Card-DnKuLKJG.cjs.map} +1 -1
  13. package/dist/{LockedThumbnail-DPiO3hh2.cjs → LockedThumbnail-B2Jx7oY5.cjs} +2 -2
  14. package/dist/{LockedThumbnail-DPiO3hh2.cjs.map → LockedThumbnail-B2Jx7oY5.cjs.map} +1 -1
  15. package/dist/{LockedThumbnail-D7H6Vllh.js → LockedThumbnail-HyrhKbnz.js} +2 -2
  16. package/dist/{LockedThumbnail-D7H6Vllh.js.map → LockedThumbnail-HyrhKbnz.js.map} +1 -1
  17. package/dist/{index-CXWxy_j9.js → index-BVpq3q3z.js} +564 -589
  18. package/dist/index-BVpq3q3z.js.map +1 -0
  19. package/dist/index-DhrVhE58.cjs +2 -0
  20. package/dist/index-DhrVhE58.cjs.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/package.json +2 -2
  24. package/src/components/Avatar/getAvatarEmoji.ts +25 -42
  25. package/dist/index-CXWxy_j9.js.map +0 -1
  26. package/dist/index-lw0gsgkI.cjs +0 -2
  27. package/dist/index-lw0gsgkI.cjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as n, jsxs as h, Fragment as se } from "react/jsx-runtime";
2
- import $, { createContext as Xe, useContext as ye, useCallback as W, useState as F, useRef as H, useEffect as q, useId as Tn, useMemo as re, Suspense as Je } from "react";
2
+ import $, { createContext as Xe, useContext as ye, useCallback as W, useState as F, useRef as H, useEffect as q, useId as Tn, useMemo as re, Suspense as Ke } from "react";
3
3
  import { StreamChatService as An } from "@linktr.ee/messaging-core";
4
4
  import { StreamChat as Mn, LinkPreviewsManager as Dt } from "stream-chat";
5
- import { Chat as Ln, DateSeparator as Rn, useChannelStateContext as de, useChatContext as ue, areMessageUIPropsEqual as Dn, useMessageReminder as On, useComponentContext as Ht, Attachment as Pn, EditMessageModal as zn, MessageBlocked as Fn, MessageBouncePrompt as $n, MessageDeleted as Bn, MessageIsThreadReplyInChannelButtonIndicator as Un, MessageRepliesCountButton as jn, ReminderNotification as Vn, StreamedMessageText as Gn, messageHasAttachments as Hn, messageHasReactions as Yn, isDateSeparatorMessage as qn, isMessageBlocked as Wn, isMessageBounced as Xn, MessageBounceModal as Jn, MessageText as Ot, Poll as Kn, MessageErrorIcon as Zn, useMessageContext as ke, useMessageComposer as Qn, useStateStore as es, MessageInput as ts, useMessageInputContext as ns, useMessageComposerHasSendableData as ss, AttachmentPreviewList as as, QuotedMessagePreview as rs, TextareaComposer as is, MessageTimestamp as $e, AIStates as Be, useTypingContext as os, useAIState as ls, Channel as cs, WithComponents as ds, Window as us, MessageList as ms, ChannelList as hs, InfiniteScroll as fs } from "stream-chat-react";
6
- import { StarIcon as He, DotsThreeIcon as gs, SpinnerGapIcon as Ae, SignOutIcon as ps, ProhibitInsetIcon as Pt, FlagIcon as Yt, FileIcon as qt, ImageIcon as bs, SpeakerHighIcon as vs, VideoCameraIcon as Wt, FileMdIcon as xs, FileTextIcon as ws, FileZipIcon as Ns, FilePptIcon as _s, FileCsvIcon as ys, FileXlsIcon as ks, FileDocIcon as Cs, FilePdfIcon as Es, CircleNotchIcon as Ne, PlayIcon as Ye, PauseIcon as Is, LinkIcon as Ss, DownloadSimpleIcon as _e, GiftIcon as Ts, ThumbsUpIcon as As, ThumbsDownIcon as Ms, TrashSimpleIcon as Ls, XIcon as Pe, ArrowUpIcon as Rs, SparkleIcon as ve, ProhibitIcon as Ds, ArrowLeftIcon as zt, CaretRightIcon as xe, PencilSimpleIcon as Os, CaretLeftIcon as Ps } from "@phosphor-icons/react";
7
- import k from "classnames";
5
+ import { Chat as Rn, DateSeparator as Ln, useChannelStateContext as de, useChatContext as ue, areMessageUIPropsEqual as Dn, useMessageReminder as Pn, useComponentContext as Ht, Attachment as On, EditMessageModal as zn, MessageBlocked as Fn, MessageBouncePrompt as $n, MessageDeleted as Bn, MessageIsThreadReplyInChannelButtonIndicator as jn, MessageRepliesCountButton as Un, ReminderNotification as Vn, StreamedMessageText as Gn, messageHasAttachments as Hn, messageHasReactions as Yn, isDateSeparatorMessage as qn, isMessageBlocked as Wn, isMessageBounced as Xn, MessageBounceModal as Kn, MessageText as Pt, Poll as Jn, MessageErrorIcon as Zn, useMessageContext as Ce, useMessageComposer as Qn, useStateStore as es, MessageInput as ts, useMessageInputContext as ns, useMessageComposerHasSendableData as ss, AttachmentPreviewList as as, QuotedMessagePreview as rs, TextareaComposer as is, MessageTimestamp as $e, AIStates as Be, useTypingContext as os, useAIState as ls, Channel as cs, WithComponents as ds, Window as us, MessageList as ms, ChannelList as hs, InfiniteScroll as fs } from "stream-chat-react";
6
+ import { StarIcon as He, DotsThreeIcon as gs, SpinnerGapIcon as Ae, SignOutIcon as ps, ProhibitInsetIcon as Ot, FlagIcon as Yt, FileIcon as qt, ImageIcon as bs, SpeakerHighIcon as vs, VideoCameraIcon as Wt, FileMdIcon as xs, FileTextIcon as ws, FileZipIcon as Ns, FilePptIcon as _s, FileCsvIcon as ys, FileXlsIcon as Cs, FileDocIcon as ks, FilePdfIcon as Es, CircleNotchIcon as Ne, PlayIcon as Ye, PauseIcon as Is, LinkIcon as Ss, DownloadSimpleIcon as _e, GiftIcon as Ts, ThumbsUpIcon as As, ThumbsDownIcon as Ms, TrashSimpleIcon as Rs, XIcon as Oe, ArrowUpIcon as Ls, SparkleIcon as ve, ProhibitIcon as Ds, ArrowLeftIcon as zt, CaretRightIcon as xe, PencilSimpleIcon as Ps, CaretLeftIcon as Os } from "@phosphor-icons/react";
7
+ import C from "classnames";
8
8
  import { MessageActions as zs, DefaultDropdownActionButton as Xt } from "stream-chat-react/experimental";
9
- const Jt = Xe({
9
+ const Kt = Xe({
10
10
  service: null,
11
11
  client: null,
12
12
  isConnected: !1,
@@ -16,7 +16,7 @@ const Jt = Xe({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), Ke = () => ye(Jt), Si = ({
19
+ }), Je = () => ye(Kt), Ii = ({
20
20
  children: e,
21
21
  user: t,
22
22
  serviceConfig: s,
@@ -41,7 +41,7 @@ const Jt = Xe({
41
41
  _.current = s;
42
42
  const T = H(i);
43
43
  T.current = i;
44
- const L = H({
44
+ const R = H({
45
45
  userId: t == null ? void 0 : t.id,
46
46
  apiKey: a,
47
47
  serviceConfig: s,
@@ -51,20 +51,20 @@ const Jt = Xe({
51
51
  renderCount: M.current,
52
52
  currentProps: { userId: t == null ? void 0 : t.id, apiKey: (a == null ? void 0 : a.substring(0, 8)) + "..." },
53
53
  propChanges: {
54
- userChanged: L.current.userId !== (t == null ? void 0 : t.id),
55
- apiKeyChanged: L.current.apiKey !== a,
56
- serviceConfigChanged: L.current.serviceConfig !== s,
57
- capabilitiesChanged: L.current.capabilities !== r
54
+ userChanged: R.current.userId !== (t == null ? void 0 : t.id),
55
+ apiKeyChanged: R.current.apiKey !== a,
56
+ serviceConfigChanged: R.current.serviceConfig !== s,
57
+ capabilitiesChanged: R.current.capabilities !== r
58
58
  }
59
- }), L.current = {
59
+ }), R.current = {
60
60
  userId: t == null ? void 0 : t.id,
61
61
  apiKey: a,
62
62
  serviceConfig: s,
63
63
  capabilities: r
64
64
  };
65
- const R = H(null);
66
- a && ((A = R.current) == null ? void 0 : A.apiKey) !== a && (R.current = { apiKey: a, client: new Mn(a) });
67
- const D = a ? ((E = R.current) == null ? void 0 : E.client) ?? null : null;
65
+ const L = H(null);
66
+ a && ((A = L.current) == null ? void 0 : A.apiKey) !== a && (L.current = { apiKey: a, client: new Mn(a) });
67
+ const D = a ? ((E = L.current) == null ? void 0 : E.client) ?? null : null;
68
68
  q(() => {
69
69
  const y = M.current, I = _.current;
70
70
  if (!a || !D || !I) {
@@ -118,16 +118,16 @@ const Jt = Xe({
118
118
  o("🚀 STARTING USER CONNECTION", { userId: t.id }), p.current = !0, b(!0), v(null);
119
119
  try {
120
120
  o("📞 CALLING SERVICE.CONNECTUSER", { userId: t.id });
121
- const P = await l.connectUser(t);
122
- g(P), f(!0), B.current = { serviceId: l, userId: t.id }, o("✅ USER CONNECTION SUCCESS", {
121
+ const O = await l.connectUser(t);
122
+ g(O), f(!0), B.current = { serviceId: l, userId: t.id }, o("✅ USER CONNECTION SUCCESS", {
123
123
  userId: t.id,
124
- clientId: P.userID
124
+ clientId: O.userID
125
125
  });
126
- } catch (P) {
127
- const U = P instanceof Error ? P.message : "Connection failed";
128
- v(U), o("❌ USER CONNECTION ERROR", {
126
+ } catch (O) {
127
+ const j = O instanceof Error ? O.message : "Connection failed";
128
+ v(j), o("❌ USER CONNECTION ERROR", {
129
129
  userId: t.id,
130
- error: U
130
+ error: j
131
131
  });
132
132
  } finally {
133
133
  b(!1), p.current = !1, o("🔄 USER CONNECTION FINISHED", {
@@ -143,7 +143,7 @@ const Jt = Xe({
143
143
  y && (B.current = null, (I = N.current) == null || I.disconnectUser().catch(console.error));
144
144
  };
145
145
  }, [D]);
146
- const O = W(async () => {
146
+ const P = W(async () => {
147
147
  if (o("🔄 REFRESH CONNECTION CALLED", {
148
148
  hasService: !!l,
149
149
  hasUser: !!t
@@ -165,7 +165,7 @@ const Jt = Xe({
165
165
  } finally {
166
166
  b(!1), o("🔄 CONNECTION REFRESH FINISHED", { userId: t.id });
167
167
  }
168
- }, [l, t, o]), C = $.useMemo(() => (o("💫 CONTEXT VALUE MEMOIZATION", {
168
+ }, [l, t, o]), k = $.useMemo(() => (o("💫 CONTEXT VALUE MEMOIZATION", {
169
169
  hasService: !!l,
170
170
  hasClient: !!u,
171
171
  isConnected: m,
@@ -179,7 +179,7 @@ const Jt = Xe({
179
179
  isLoading: c,
180
180
  error: w,
181
181
  capabilities: r,
182
- refreshConnection: O,
182
+ refreshConnection: P,
183
183
  debug: i
184
184
  }), [
185
185
  l,
@@ -188,16 +188,16 @@ const Jt = Xe({
188
188
  c,
189
189
  w,
190
190
  r,
191
- O,
191
+ P,
192
192
  i,
193
193
  o
194
194
  ]);
195
195
  return o("🔄 RENDER END", {
196
196
  renderCount: M.current,
197
197
  willRenderChat: !!D,
198
- contextValueReady: !!C
199
- }), /* @__PURE__ */ n(Jt.Provider, { value: C, children: D ? /* @__PURE__ */ n(
200
- Ln,
198
+ contextValueReady: !!k
199
+ }), /* @__PURE__ */ n(Kt.Provider, { value: k, children: D ? /* @__PURE__ */ n(
200
+ Rn,
201
201
  {
202
202
  client: D,
203
203
  customClasses: {
@@ -206,7 +206,7 @@ const Jt = Xe({
206
206
  children: e
207
207
  }
208
208
  ) : e });
209
- }, Fs = () => Ke(), Kt = (e) => {
209
+ }, Fs = () => Je(), Jt = (e) => {
210
210
  var a, r;
211
211
  const [t, s] = F(
212
212
  !!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
@@ -247,73 +247,46 @@ function Ze(e, t, s) {
247
247
  }
248
248
  );
249
249
  }
250
- const Us = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
251
- function js(e) {
252
- return Us.test(e.trim());
250
+ const js = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
251
+ function Us(e) {
252
+ return js.test(e.trim());
253
253
  }
254
254
  function Ft(e, t) {
255
255
  const s = e == null ? void 0 : e.trim();
256
- return !s || t && s === t ? !1 : !js(s);
256
+ return !s || t && s === t ? !1 : !Us(s);
257
257
  }
258
258
  function Zt(e) {
259
259
  return Ft(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Ft(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
260
260
  }
261
261
  const $t = [
262
- "🍎",
262
+ { emoji: "🍎", bgColor: "#FFD1DD" },
263
263
  // Apple
264
- "🍌",
264
+ { emoji: "🍌", bgColor: "#FFF1C9" },
265
265
  // Banana
266
- "🍇",
266
+ { emoji: "🍇", bgColor: "#E6D9FF" },
267
267
  // Grape
268
- "🍊",
268
+ { emoji: "🍊", bgColor: "#D6F4FF" },
269
269
  // Orange
270
- "🍓",
270
+ { emoji: "🍓", bgColor: "#FFE0AE" },
271
271
  // Strawberry
272
- "🥥",
272
+ { emoji: "🥥", bgColor: "#F7E7D8" },
273
273
  // Coconut
274
- "🍒",
274
+ { emoji: "🍒", bgColor: "#DFF4D8" },
275
275
  // Cherry
276
- "🥭",
276
+ { emoji: "🥭", bgColor: "#FFD8C2" },
277
277
  // Mango
278
- "🍉",
278
+ { emoji: "🍉", bgColor: "#D6EBFF" },
279
279
  // Watermelon
280
- "🍋",
280
+ { emoji: "🍋", bgColor: "#CAEEB5" },
281
281
  // Lemon
282
- "🥝",
282
+ { emoji: "🥝", bgColor: "#FFE7C7" },
283
283
  // Kiwi
284
- "🫒",
284
+ { emoji: "🫒", bgColor: "#F6E3B4" },
285
285
  // Olive
286
- "🍈"
286
+ { emoji: "🍈", bgColor: "#D9F7E1" }
287
287
  // Melon
288
- ], Vs = {
289
- "🍉": "#D6EBFF",
290
- // Watermelon
291
- "🍎": "#FFD1DD",
292
- // Apple
293
- "🍓": "#FFE0AE",
294
- // Strawberry
295
- "🍋": "#CAEEB5",
296
- // Lemon
297
- "🍌": "#FFF1C9",
298
- // Banana
299
- "🍇": "#E6D9FF",
300
- // Grape
301
- "🍊": "#D6F4FF",
302
- // Orange
303
- "🥥": "#F7E7D8",
304
- // Coconut
305
- "🍒": "#DFF4D8",
306
- // Cherry
307
- "🥭": "#FFD8C2",
308
- // Mango
309
- "🥝": "#FFE7C7",
310
- // Kiwi
311
- "🫒": "#F6E3B4",
312
- // Olive
313
- "🍈": "#D9F7E1"
314
- // Melon
315
- }, Gs = "#E6E5E3";
316
- function Hs(e) {
288
+ ];
289
+ function Vs(e) {
317
290
  let t = 0;
318
291
  for (let s = 0; s < e.length; s++) {
319
292
  const a = e.charCodeAt(s);
@@ -322,11 +295,13 @@ function Hs(e) {
322
295
  return Math.abs(t);
323
296
  }
324
297
  function Qt(e) {
325
- const s = Hs(e) % $t.length;
326
- return $t[s];
298
+ return $t[Vs(e) % $t.length];
299
+ }
300
+ function Gs(e) {
301
+ return Qt(e).emoji;
327
302
  }
328
- function Ys(e) {
329
- return Vs[Qt(e)] ?? Gs;
303
+ function Hs(e) {
304
+ return Qt(e).bgColor;
330
305
  }
331
306
  const ne = ({
332
307
  id: e,
@@ -337,7 +312,7 @@ const ne = ({
337
312
  shape: i = "squircle",
338
313
  dmAgentEnabled: o = !1
339
314
  }) => {
340
- const l = Qt(e), d = Ys(e), u = 0.45, m = s < 32 ? Math.round(s * u) : s < 56 ? 14 : s < 120 ? 18 : 36, f = s >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, b = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ n(
315
+ const l = Gs(e), d = Hs(e), u = 0.45, m = s < 32 ? Math.round(s * u) : s < 56 ? 14 : s < 120 ? 18 : 36, f = s >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, b = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ n(
341
316
  "img",
342
317
  {
343
318
  src: t,
@@ -348,7 +323,7 @@ const ne = ({
348
323
  "div",
349
324
  {
350
325
  "aria-hidden": "true",
351
- className: k(
326
+ className: C(
352
327
  "avatar-fallback flex h-full w-full items-center justify-center font-semibold select-none transition-colors"
353
328
  ),
354
329
  style: { fontSize: m, lineHeight: 1 },
@@ -358,7 +333,7 @@ const ne = ({
358
333
  return /* @__PURE__ */ h(
359
334
  "div",
360
335
  {
361
- className: k(
336
+ className: C(
362
337
  "relative flex-shrink-0",
363
338
  a
364
339
  ),
@@ -382,7 +357,7 @@ const ne = ({
382
357
  "div",
383
358
  {
384
359
  "data-testid": "avatar-ring",
385
- className: k(
360
+ className: C(
386
361
  "h-full w-full",
387
362
  "bg-transparent"
388
363
  ),
@@ -401,7 +376,7 @@ const ne = ({
401
376
  ]
402
377
  }
403
378
  );
404
- }, qs = "https://linktr.ee/s/about/trust-center/report", Ws = ({
379
+ }, Ys = "https://linktr.ee/s/about/trust-center/report", qs = ({
405
380
  channel: e,
406
381
  participant: t,
407
382
  showBlockParticipant: s = !0,
@@ -415,7 +390,7 @@ const ne = ({
415
390
  logLabel: g = "useChannelModerationActions"
416
391
  }) => {
417
392
  var A;
418
- const { service: m, debug: f } = Ke(), c = (A = t == null ? void 0 : t.user) == null ? void 0 : A.id, b = !!(a && s && m && c), [w, v] = F(!1), [p, N] = F(null), [_, T] = F(!1), [L, M] = F(!1), R = b && ((p == null ? void 0 : p.participantId) !== c || (p == null ? void 0 : p.service) !== m);
393
+ const { service: m, debug: f } = Je(), c = (A = t == null ? void 0 : t.user) == null ? void 0 : A.id, b = !!(a && s && m && c), [w, v] = F(!1), [p, N] = F(null), [_, T] = F(!1), [R, M] = F(!1), L = b && ((p == null ? void 0 : p.participantId) !== c || (p == null ? void 0 : p.service) !== m);
419
394
  return q(() => {
420
395
  if (!b || !m || !c) {
421
396
  v(!1), N(null);
@@ -441,9 +416,9 @@ const ne = ({
441
416
  };
442
417
  }, [b, m, c, g]), {
443
418
  isParticipantBlocked: w,
444
- isCheckingBlockedStatus: R,
419
+ isCheckingBlockedStatus: L,
445
420
  isLeaving: _,
446
- isUpdatingBlockStatus: L,
421
+ isUpdatingBlockStatus: R,
447
422
  handleLeaveConversation: async () => {
448
423
  var E;
449
424
  if (!_) {
@@ -460,7 +435,7 @@ const ne = ({
460
435
  },
461
436
  handleBlockUser: async () => {
462
437
  var E, y, I;
463
- if (!(L || !m)) {
438
+ if (!(R || !m)) {
464
439
  l == null || l(), f && console.log(`[${g}] Block member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
465
440
  try {
466
441
  await m.blockUser((y = t == null ? void 0 : t.user) == null ? void 0 : y.id), i && await i((I = t == null ? void 0 : t.user) == null ? void 0 : I.id), u == null || u();
@@ -473,7 +448,7 @@ const ne = ({
473
448
  },
474
449
  handleUnblockUser: async () => {
475
450
  var E, y, I;
476
- if (!(L || !m)) {
451
+ if (!(R || !m)) {
477
452
  l == null || l(), f && console.log(`[${g}] Unblock member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
478
453
  try {
479
454
  await m.unBlockUser((y = t == null ? void 0 : t.user) == null ? void 0 : y.id), i && await i((I = t == null ? void 0 : t.user) == null ? void 0 : I.id), u == null || u();
@@ -485,7 +460,7 @@ const ne = ({
485
460
  }
486
461
  },
487
462
  handleReportUser: () => {
488
- d == null || d(), u == null || u(), window.open(qs, "_blank", "noopener,noreferrer");
463
+ d == null || d(), u == null || u(), window.open(Ys, "_blank", "noopener,noreferrer");
489
464
  }
490
465
  };
491
466
  }, be = ({
@@ -497,7 +472,7 @@ const ne = ({
497
472
  "button",
498
473
  {
499
474
  type: "button",
500
- className: k(
475
+ className: C(
501
476
  "flex w-full items-center gap-3 rounded-lg px-4 py-3 text-left text-sm transition-colors focus-ring disabled:cursor-not-allowed disabled:opacity-60",
502
477
  e === "danger" ? "text-danger hover:bg-danger/50" : "text-charcoal hover:bg-sand",
503
478
  t
@@ -524,11 +499,11 @@ const ne = ({
524
499
  isCheckingBlockedStatus: N,
525
500
  isLeaving: _,
526
501
  isUpdatingBlockStatus: T,
527
- handleLeaveConversation: L,
502
+ handleLeaveConversation: R,
528
503
  handleBlockUser: M,
529
- handleUnblockUser: R,
504
+ handleUnblockUser: L,
530
505
  handleReportUser: D
531
- } = Ws({
506
+ } = qs({
532
507
  channel: e,
533
508
  participant: t,
534
509
  showBlockParticipant: a,
@@ -543,13 +518,13 @@ const ne = ({
543
518
  });
544
519
  return q(() => {
545
520
  if (!f) return;
546
- const O = (A) => {
521
+ const P = (A) => {
547
522
  b.current && !b.current.contains(A.target) && c(!1);
548
- }, C = (A) => {
523
+ }, k = (A) => {
549
524
  A.key === "Escape" && c(!1);
550
525
  };
551
- return document.addEventListener("mousedown", O), document.addEventListener("keydown", C), () => {
552
- document.removeEventListener("mousedown", O), document.removeEventListener("keydown", C);
526
+ return document.addEventListener("mousedown", P), document.addEventListener("keydown", k), () => {
527
+ document.removeEventListener("mousedown", P), document.removeEventListener("keydown", k);
553
528
  };
554
529
  }, [f]), !t || !(s || a || r || !!g) ? null : /* @__PURE__ */ h("div", { ref: b, className: "relative", children: [
555
530
  /* @__PURE__ */ h(
@@ -560,7 +535,7 @@ const ne = ({
560
535
  "aria-haspopup": "true",
561
536
  "aria-expanded": f,
562
537
  "aria-controls": f ? w : void 0,
563
- onClick: () => c((O) => !O),
538
+ onClick: () => c((P) => !P),
564
539
  children: [
565
540
  /* @__PURE__ */ n(gs, { className: "size-5 text-black/90" }),
566
541
  /* @__PURE__ */ n("span", { className: "sr-only", children: "More options" })
@@ -572,7 +547,7 @@ const ne = ({
572
547
  {
573
548
  id: w,
574
549
  "aria-label": "Conversation options",
575
- className: k(
550
+ className: C(
576
551
  "absolute right-0 top-full z-50 mt-2 w-56 overflow-hidden",
577
552
  "rounded-lg border border-sand bg-white p-1 shadow-max-elevation-light"
578
553
  ),
@@ -580,7 +555,7 @@ const ne = ({
580
555
  s && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ h(
581
556
  be,
582
557
  {
583
- onClick: L,
558
+ onClick: R,
584
559
  disabled: _,
585
560
  "aria-busy": _,
586
561
  children: [
@@ -599,11 +574,11 @@ const ne = ({
599
574
  ) : p ? /* @__PURE__ */ h(
600
575
  be,
601
576
  {
602
- onClick: R,
577
+ onClick: L,
603
578
  disabled: T,
604
579
  "aria-busy": T,
605
580
  children: [
606
- T ? /* @__PURE__ */ n(Ae, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Pt, { className: "h-5 w-5" }),
581
+ T ? /* @__PURE__ */ n(Ae, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Ot, { className: "h-5 w-5" }),
607
582
  /* @__PURE__ */ n("span", { children: "Unblock" })
608
583
  ]
609
584
  }
@@ -614,7 +589,7 @@ const ne = ({
614
589
  disabled: T,
615
590
  "aria-busy": T,
616
591
  children: [
617
- T ? /* @__PURE__ */ n(Ae, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Pt, { className: "h-5 w-5" }),
592
+ T ? /* @__PURE__ */ n(Ae, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Ot, { className: "h-5 w-5" }),
618
593
  /* @__PURE__ */ n("span", { children: "Block" })
619
594
  ]
620
595
  }
@@ -628,13 +603,13 @@ const ne = ({
628
603
  }
629
604
  )
630
605
  ] });
631
- }, Xs = (e) => /* @__PURE__ */ n(Rn, { ...e, position: "center" }), qe = "vote_up", We = "vote_down";
632
- function Js(e) {
606
+ }, Ws = (e) => /* @__PURE__ */ n(Ln, { ...e, position: "center" }), qe = "vote_up", We = "vote_down";
607
+ function Xs(e) {
633
608
  return e != null && e.length ? e.some((t) => t.type === We) ? "down" : e.some((t) => t.type === qe) ? "up" : null : null;
634
609
  }
635
610
  function Ks(e) {
636
611
  const { channel: t } = de(), { client: s } = ue("useMessageVote"), a = re(
637
- () => Js(e.own_reactions),
612
+ () => Xs(e.own_reactions),
638
613
  [e.own_reactions]
639
614
  ), r = W(async () => {
640
615
  if (s != null && s.userID)
@@ -659,7 +634,7 @@ function Ks(e) {
659
634
  }, [t, s == null ? void 0 : s.userID, e.id, a]);
660
635
  return { selected: a, voteUp: r, voteDown: i };
661
636
  }
662
- function Zs(e) {
637
+ function Js(e) {
663
638
  return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
664
639
  }
665
640
  function en({
@@ -667,16 +642,16 @@ function en({
667
642
  viewerLanguage: t
668
643
  }) {
669
644
  var r;
670
- const s = e == null ? void 0 : e.text, a = Zs(t);
645
+ const s = e == null ? void 0 : e.text, a = Js(t);
671
646
  return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? s : s;
672
647
  }
673
- const Qs = $.lazy(() => import("./Card-CGImMuaB.js")), ea = $.lazy(() => import("./Card-CXpxfxsk.js")), ta = $.lazy(() => import("./Card-CeWBGjvN.js")), Qe = () => /* @__PURE__ */ n(
648
+ const Zs = $.lazy(() => import("./Card-CErKgZmK.js")), Qs = $.lazy(() => import("./Card-BP7VHMzx.js")), ea = $.lazy(() => import("./Card-DD0muNC6.js")), Qe = () => /* @__PURE__ */ n(
674
649
  "div",
675
650
  {
676
651
  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)]",
677
652
  "aria-hidden": !0
678
653
  }
679
- ), na = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(Qs, { ...e }) }), tn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(ea, { ...e }) }), nn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(ta, { ...e }) }), sa = tn, aa = nn, Ut = { Composer: na, Sent: tn, Received: nn, Creator: sa, Visitor: aa }, ra = [
654
+ ), ta = (e) => /* @__PURE__ */ n(Ke, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(Zs, { ...e }) }), tn = (e) => /* @__PURE__ */ n(Ke, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(Qs, { ...e }) }), nn = (e) => /* @__PURE__ */ n(Ke, { fallback: /* @__PURE__ */ n(Qe, {}), children: /* @__PURE__ */ n(ea, { ...e }) }), na = tn, sa = nn, jt = { Composer: ta, Sent: tn, Received: nn, Creator: na, Visitor: sa }, aa = [
680
655
  [/pdf/, "pdf"],
681
656
  [/wordprocessingml|msword|\.doc/, "doc"],
682
657
  [/spreadsheetml|ms-excel|\.xls/, "xls"],
@@ -690,20 +665,20 @@ function ie(e) {
690
665
  return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
691
666
  }
692
667
  function sn(e) {
693
- const t = ra.find(
668
+ const t = aa.find(
694
669
  ([s]) => s.test(e)
695
670
  );
696
671
  return t ? t[1] : "generic";
697
672
  }
698
- const ia = {
673
+ const ra = {
699
674
  video: Wt,
700
675
  audio: vs,
701
676
  image: bs,
702
677
  document: qt
703
- }, oa = {
678
+ }, ia = {
704
679
  pdf: Es,
705
- doc: Cs,
706
- xls: ks,
680
+ doc: ks,
681
+ xls: Cs,
707
682
  csv: ys,
708
683
  ppt: _s,
709
684
  zip: Ns,
@@ -711,17 +686,17 @@ const ia = {
711
686
  markdown: xs,
712
687
  generic: qt
713
688
  };
714
- function la(e) {
689
+ function oa(e) {
715
690
  const t = ie(e);
716
- return t !== "document" ? ia[t] : oa[sn(e)];
691
+ return t !== "document" ? ra[t] : ia[sn(e)];
717
692
  }
718
693
  function ce(e, t) {
719
- return $.createElement(la(e), t);
694
+ return $.createElement(oa(e), t);
720
695
  }
721
- const ca = (e) => {
696
+ const la = (e) => {
722
697
  var t, s;
723
698
  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;
724
- }, da = ({
699
+ }, ca = ({
725
700
  source: e,
726
701
  mimeType: t,
727
702
  poster: s,
@@ -733,7 +708,7 @@ const ca = (e) => {
733
708
  muted: d = !1,
734
709
  onContainerClick: u
735
710
  }) => {
736
- const g = ie(t), m = H(null), f = H(null), c = H(null), b = H(r), [w, v] = F(a), [p, N] = F(0), [_, T] = F(!1), [L, M] = F(!1), [R, D] = F(!1), [B, O] = F(!1), [C, A] = F(!0), [E, y] = F(null), I = W(() => {
711
+ const g = ie(t), m = H(null), f = H(null), c = H(null), b = H(r), [w, v] = F(a), [p, N] = F(0), [_, T] = F(!1), [R, M] = F(!1), [L, D] = F(!1), [B, P] = F(!1), [k, A] = F(!0), [E, y] = F(null), I = W(() => {
737
712
  D(!1), v(!0);
738
713
  }, []), z = W((x) => {
739
714
  const S = f.current;
@@ -741,15 +716,15 @@ const ca = (e) => {
741
716
  const G = S.getBoundingClientRect();
742
717
  return Math.max(
743
718
  0,
744
- Math.min(1, (ca(x) - G.left) / G.width)
719
+ Math.min(1, (la(x) - G.left) / G.width)
745
720
  );
746
- }, []), P = W((x) => {
721
+ }, []), O = W((x) => {
747
722
  const S = m.current;
748
723
  S && S.duration && (S.currentTime = x * S.duration);
749
- }, []), U = (x) => {
724
+ }, []), j = (x) => {
750
725
  x.stopPropagation(), T(!0);
751
726
  const S = z(x);
752
- N(S), P(S);
727
+ N(S), O(S);
753
728
  };
754
729
  q(() => {
755
730
  r !== void 0 && r !== b.current && (b.current = r, v(r));
@@ -773,12 +748,12 @@ const ca = (e) => {
773
748
  }, [w]), q(() => {
774
749
  if (!_) return;
775
750
  const x = (G) => N(z(G)), S = (G) => {
776
- T(!1), P(z(G));
751
+ T(!1), O(z(G));
777
752
  };
778
753
  return window.addEventListener("mousemove", x), window.addEventListener("mouseup", S), window.addEventListener("touchmove", x, { passive: !0 }), window.addEventListener("touchend", S), () => {
779
754
  window.removeEventListener("mousemove", x), window.removeEventListener("mouseup", S), window.removeEventListener("touchmove", x), window.removeEventListener("touchend", S);
780
755
  };
781
- }, [_, z, P]);
756
+ }, [_, z, O]);
782
757
  const X = E ? { aspectRatio: String(E) } : void 0, Z = E ? "" : " aspect-video", Y = Math.round(p * 100);
783
758
  return /* @__PURE__ */ h(
784
759
  "div",
@@ -792,7 +767,7 @@ const ca = (e) => {
792
767
  u(x);
793
768
  return;
794
769
  }
795
- R || o && v((S) => !S);
770
+ L || o && v((S) => !S);
796
771
  },
797
772
  onKeyDown: (x) => {
798
773
  if (!(x.key !== "Enter" && x.key !== " ")) {
@@ -800,11 +775,11 @@ const ca = (e) => {
800
775
  u(x);
801
776
  return;
802
777
  }
803
- R || o && v((S) => !S);
778
+ L || o && v((S) => !S);
804
779
  }
805
780
  },
806
781
  children: [
807
- s && (g === "audio" || C) && /* @__PURE__ */ n(
782
+ s && (g === "audio" || k) && /* @__PURE__ */ n(
808
783
  "img",
809
784
  {
810
785
  src: s,
@@ -812,7 +787,7 @@ const ca = (e) => {
812
787
  className: "absolute inset-0 h-full w-full object-cover"
813
788
  }
814
789
  ),
815
- !s && (g === "audio" || C) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: ce(t, {
790
+ !s && (g === "audio" || k) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: ce(t, {
816
791
  className: "size-12 text-black/20",
817
792
  weight: "regular"
818
793
  }) }),
@@ -824,11 +799,11 @@ const ca = (e) => {
824
799
  loop: i,
825
800
  muted: d,
826
801
  style: { width: "100%", height: "100%" },
827
- onLoadStart: () => O(!0),
802
+ onLoadStart: () => P(!0),
828
803
  onCanPlay: () => {
829
- O(!1), A(!1);
804
+ P(!1), A(!1);
830
805
  },
831
- onWaiting: () => O(!0),
806
+ onWaiting: () => P(!0),
832
807
  onPlay: () => D(!1),
833
808
  onEnded: () => {
834
809
  i || (v(!1), N(0));
@@ -844,11 +819,11 @@ const ca = (e) => {
844
819
  muted: d,
845
820
  playsInline: !0,
846
821
  style: { width: "100%", height: "100%" },
847
- onLoadStart: () => O(!0),
822
+ onLoadStart: () => P(!0),
848
823
  onCanPlay: () => {
849
- O(!1), A(!1);
824
+ P(!1), A(!1);
850
825
  },
851
- onWaiting: () => O(!0),
826
+ onWaiting: () => P(!0),
852
827
  onPlay: () => D(!1),
853
828
  onLoadedMetadata: () => {
854
829
  const x = m.current;
@@ -860,14 +835,14 @@ const ca = (e) => {
860
835
  children: /* @__PURE__ */ n("track", { kind: "captions" })
861
836
  }
862
837
  ) }),
863
- B && !R && /* @__PURE__ */ n("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ n(
838
+ B && !L && /* @__PURE__ */ n("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ n(
864
839
  Ne,
865
840
  {
866
841
  className: "size-8 animate-spin text-white/80",
867
842
  weight: "bold"
868
843
  }
869
844
  ) }),
870
- R && !o && /* @__PURE__ */ n(
845
+ L && !o && /* @__PURE__ */ n(
871
846
  "div",
872
847
  {
873
848
  className: "absolute inset-0 z-30 flex cursor-pointer items-center justify-center bg-black/35",
@@ -894,11 +869,11 @@ const ca = (e) => {
894
869
  tabIndex: 0,
895
870
  ref: f,
896
871
  className: "relative flex h-4 w-full cursor-pointer items-center",
897
- onMouseDown: U,
898
- onTouchStart: U,
872
+ onMouseDown: j,
873
+ onTouchStart: j,
899
874
  onClick: (x) => x.stopPropagation(),
900
875
  onKeyDown: (x) => {
901
- x.key === "ArrowRight" && P(Math.min(1, p + 0.05)), x.key === "ArrowLeft" && P(Math.max(0, p - 0.05));
876
+ x.key === "ArrowRight" && O(Math.min(1, p + 0.05)), x.key === "ArrowLeft" && O(Math.max(0, p - 0.05));
902
877
  },
903
878
  children: /* @__PURE__ */ n("div", { className: "w-full overflow-hidden rounded-full bg-white/30 h-1", children: /* @__PURE__ */ n(
904
879
  "div",
@@ -933,19 +908,19 @@ const ca = (e) => {
933
908
  tabIndex: 0,
934
909
  ref: f,
935
910
  className: "relative flex h-4 w-full cursor-pointer items-center",
936
- onMouseDown: U,
937
- onTouchStart: U,
911
+ onMouseDown: j,
912
+ onTouchStart: j,
938
913
  onClick: (x) => x.stopPropagation(),
939
914
  onMouseEnter: () => M(!0),
940
915
  onMouseLeave: () => M(!1),
941
916
  onKeyDown: (x) => {
942
- x.key === "ArrowRight" && P(Math.min(1, p + 0.05)), x.key === "ArrowLeft" && P(Math.max(0, p - 0.05));
917
+ x.key === "ArrowRight" && O(Math.min(1, p + 0.05)), x.key === "ArrowLeft" && O(Math.max(0, p - 0.05));
943
918
  },
944
919
  children: [
945
920
  /* @__PURE__ */ n(
946
921
  "div",
947
922
  {
948
- className: `w-full overflow-hidden rounded-full bg-white/30 transition-all duration-200 ${L || _ ? "h-1.5" : "h-1"}`,
923
+ className: `w-full overflow-hidden rounded-full bg-white/30 transition-all duration-200 ${R || _ ? "h-1.5" : "h-1"}`,
949
924
  children: /* @__PURE__ */ n(
950
925
  "div",
951
926
  {
@@ -958,7 +933,7 @@ const ca = (e) => {
958
933
  /* @__PURE__ */ n(
959
934
  "div",
960
935
  {
961
- className: `absolute size-3 -translate-x-1/2 rounded-full bg-white shadow transition-[opacity,transform] duration-200 ${L || _ ? "scale-100 opacity-100" : "scale-0 opacity-0"}`,
936
+ className: `absolute size-3 -translate-x-1/2 rounded-full bg-white shadow transition-[opacity,transform] duration-200 ${R || _ ? "scale-100 opacity-100" : "scale-0 opacity-0"}`,
962
937
  style: { left: `${Y}%` }
963
938
  }
964
939
  )
@@ -969,7 +944,7 @@ const ca = (e) => {
969
944
  ]
970
945
  }
971
946
  );
972
- }, jt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", ua = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", an = ({
947
+ }, Ut = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", da = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", an = ({
973
948
  mimeType: e,
974
949
  sourceUrl: t,
975
950
  thumbnailUrl: s,
@@ -980,7 +955,7 @@ const ca = (e) => {
980
955
  }) => {
981
956
  const l = ie(e), [d, u] = F(!1);
982
957
  return t && (l === "video" || l === "audio") ? /* @__PURE__ */ n(
983
- da,
958
+ ca,
984
959
  {
985
960
  source: t,
986
961
  mimeType: e,
@@ -1027,11 +1002,11 @@ const ca = (e) => {
1027
1002
  {
1028
1003
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1029
1004
  children: ce(e, {
1030
- className: jt(r),
1005
+ className: Ut(r),
1031
1006
  weight: "regular"
1032
1007
  })
1033
1008
  }
1034
- ) : s ? /* @__PURE__ */ n("div", { className: `relative ${ua(r)}`, children: /* @__PURE__ */ n(
1009
+ ) : s ? /* @__PURE__ */ n("div", { className: `relative ${da(r)}`, children: /* @__PURE__ */ n(
1035
1010
  "img",
1036
1011
  {
1037
1012
  src: s,
@@ -1044,7 +1019,7 @@ const ca = (e) => {
1044
1019
  {
1045
1020
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1046
1021
  children: ce(e, {
1047
- className: jt(r),
1022
+ className: Ut(r),
1048
1023
  weight: "regular"
1049
1024
  })
1050
1025
  }
@@ -1069,7 +1044,7 @@ const ca = (e) => {
1069
1044
  {
1070
1045
  ref: g,
1071
1046
  "data-testid": m,
1072
- className: k(
1047
+ className: C(
1073
1048
  "relative w-[280px] select-none overflow-hidden rounded-[24px] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]",
1074
1049
  f ? "bg-[#121110]" : "bg-white"
1075
1050
  ),
@@ -1081,7 +1056,7 @@ const ca = (e) => {
1081
1056
  c.trim() !== "" && /* @__PURE__ */ n(
1082
1057
  "p",
1083
1058
  {
1084
- className: k("mb-0.5 truncate text-base font-medium", {
1059
+ className: C("mb-0.5 truncate text-base font-medium", {
1085
1060
  "text-black": !f,
1086
1061
  "text-white/30": f && b,
1087
1062
  "text-white": f && !b
@@ -1091,7 +1066,7 @@ const ca = (e) => {
1091
1066
  ),
1092
1067
  /* @__PURE__ */ h("div", { className: "flex flex-wrap items-center gap-1", children: [
1093
1068
  ce(r, {
1094
- className: k(
1069
+ className: C(
1095
1070
  "size-5 shrink-0",
1096
1071
  f ? "text-white/55" : "text-black/55"
1097
1072
  ),
@@ -1100,7 +1075,7 @@ const ca = (e) => {
1100
1075
  i != null && i !== "" && /* @__PURE__ */ n(
1101
1076
  "span",
1102
1077
  {
1103
- className: k(
1078
+ className: C(
1104
1079
  "text-xs font-medium",
1105
1080
  f ? "text-white/55" : "text-black/55"
1106
1081
  ),
@@ -1121,19 +1096,19 @@ function on(e) {
1121
1096
  function et(e) {
1122
1097
  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)]`;
1123
1098
  }
1124
- function ma(e) {
1099
+ function ua(e) {
1125
1100
  return e ? "bg-white/10" : "bg-black/5";
1126
1101
  }
1127
- function ha(e) {
1102
+ function ma(e) {
1128
1103
  return e ? "text-white" : "text-black";
1129
1104
  }
1130
- function fa(e) {
1105
+ function ha(e) {
1131
1106
  return e ? "text-white/55" : "text-black/55";
1132
1107
  }
1133
- function ga(e) {
1108
+ function fa(e) {
1134
1109
  return e ? "text-white/40" : "text-black/40";
1135
1110
  }
1136
- function pa(e) {
1111
+ function ga(e) {
1137
1112
  return e ? "text-white/20" : "text-black/20";
1138
1113
  }
1139
1114
  const tt = ({ attachment: e, isMyMessage: t }) => {
@@ -1148,14 +1123,14 @@ const tt = ({ attachment: e, isMyMessage: t }) => {
1148
1123
  ) : /* @__PURE__ */ n(
1149
1124
  "div",
1150
1125
  {
1151
- className: `aspect-video w-full rounded-[20px] ${ma(t)} flex items-center justify-center`,
1152
- children: /* @__PURE__ */ n(Ss, { className: `size-12 ${pa(t)}` })
1126
+ className: `aspect-video w-full rounded-[20px] ${ua(t)} flex items-center justify-center`,
1127
+ children: /* @__PURE__ */ n(Ss, { className: `size-12 ${ga(t)}` })
1153
1128
  }
1154
1129
  ) }),
1155
1130
  /* @__PURE__ */ h("div", { className: "px-3 pb-3", children: [
1156
- s && /* @__PURE__ */ n("p", { className: `truncate text-[14px] font-medium leading-5 ${ha(t)}`, children: s }),
1157
- a && /* @__PURE__ */ n("p", { className: `truncate text-[12px] leading-4 ${fa(t)}`, children: a }),
1158
- d && /* @__PURE__ */ n("p", { className: `mt-1 truncate text-[12px] leading-4 ${ga(t)}`, children: d })
1131
+ s && /* @__PURE__ */ n("p", { className: `truncate text-[14px] font-medium leading-5 ${ma(t)}`, children: s }),
1132
+ a && /* @__PURE__ */ n("p", { className: `truncate text-[12px] leading-4 ${ha(t)}`, children: a }),
1133
+ d && /* @__PURE__ */ n("p", { className: `mt-1 truncate text-[12px] leading-4 ${fa(t)}`, children: d })
1159
1134
  ] })
1160
1135
  ] });
1161
1136
  return d ? /* @__PURE__ */ n("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "block no-underline", children: u }) : /* @__PURE__ */ n("div", { className: "block", children: u });
@@ -1167,7 +1142,7 @@ function nt(e) {
1167
1142
  var t;
1168
1143
  return (t = e.attachments) == null ? void 0 : t.find(ln);
1169
1144
  }
1170
- async function ba(e, t) {
1145
+ async function pa(e, t) {
1171
1146
  let s;
1172
1147
  try {
1173
1148
  s = t ?? new URL(e).pathname.split("/").pop() ?? "download";
@@ -1179,7 +1154,7 @@ async function ba(e, t) {
1179
1154
  const r = await a.blob(), i = URL.createObjectURL(r), o = document.createElement("a");
1180
1155
  o.href = i, o.download = s, o.style.display = "none", document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(i);
1181
1156
  }
1182
- const va = ({
1157
+ const ba = ({
1183
1158
  url: e,
1184
1159
  filename: t
1185
1160
  }) => {
@@ -1191,7 +1166,7 @@ const va = ({
1191
1166
  onClick: (i) => {
1192
1167
  i.stopPropagation();
1193
1168
  const o = window.open("", "_blank", "noopener,noreferrer");
1194
- a(!0), ba(e, t).then(() => {
1169
+ a(!0), pa(e, t).then(() => {
1195
1170
  o == null || o.close();
1196
1171
  }).catch(() => {
1197
1172
  o && (o.location.href = e);
@@ -1281,10 +1256,10 @@ const cn = ({
1281
1256
  containedImage: i === "image" || i === "document"
1282
1257
  }
1283
1258
  ),
1284
- action: /* @__PURE__ */ n(va, { url: e, filename: s })
1259
+ action: /* @__PURE__ */ n(ba, { url: e, filename: s })
1285
1260
  }
1286
1261
  );
1287
- }, xa = ({
1262
+ }, va = ({
1288
1263
  message: e,
1289
1264
  isMyMessage: t = !1
1290
1265
  }) => {
@@ -1315,7 +1290,7 @@ const cn = ({
1315
1290
  }
1316
1291
  )
1317
1292
  ] });
1318
- }, wa = ({
1293
+ }, xa = ({
1319
1294
  message: e
1320
1295
  }) => {
1321
1296
  const t = nt(e);
@@ -1323,7 +1298,7 @@ const cn = ({
1323
1298
  return /* @__PURE__ */ n("div", { className: et(!0), "data-dd-privacy": "mask", children: /* @__PURE__ */ n(tt, { attachment: t, isMyMessage: !0 }) });
1324
1299
  const s = st(e);
1325
1300
  return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(cn, { ...s }) }) : null;
1326
- }, Na = ({
1301
+ }, wa = ({
1327
1302
  message: e
1328
1303
  }) => {
1329
1304
  const t = nt(e);
@@ -1331,16 +1306,16 @@ const cn = ({
1331
1306
  return /* @__PURE__ */ n("div", { className: et(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ n(tt, { attachment: t, isMyMessage: !1 }) });
1332
1307
  const s = st(e);
1333
1308
  return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(dn, { ...s }) }) : null;
1334
- }, Ti = Object.assign(xa, {
1335
- Creator: wa,
1336
- Visitor: Na
1337
- }), _a = {
1309
+ }, Si = Object.assign(va, {
1310
+ Creator: xa,
1311
+ Visitor: wa
1312
+ }), Na = {
1338
1313
  isUnlocking: () => !1
1339
- }, ya = {
1340
- LockedAttachment: _a
1341
- }, un = Xe({}), Ai = un.Provider;
1342
- function ka(e) {
1343
- return ye(un)[e] ?? ya[e];
1314
+ }, _a = {
1315
+ LockedAttachment: Na
1316
+ }, un = Xe({}), Ti = un.Provider;
1317
+ function ya(e) {
1318
+ return ye(un)[e] ?? _a[e];
1344
1319
  }
1345
1320
  const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1346
1321
  "svg",
@@ -1359,29 +1334,29 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1359
1334
  }
1360
1335
  )
1361
1336
  }
1362
- ), Ea = (e) => {
1337
+ ), ka = (e) => {
1363
1338
  var t;
1364
1339
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_TIP";
1365
- }, Ia = (e) => {
1340
+ }, Ea = (e) => {
1366
1341
  var t;
1367
1342
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_PAID";
1368
- }, Le = (e) => {
1343
+ }, Re = (e) => {
1369
1344
  var t;
1370
1345
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_CHATBOT";
1371
- }, Sa = (e) => {
1346
+ }, Ia = (e) => {
1372
1347
  var t;
1373
1348
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_ATTACHMENT";
1374
- }, mn = (e) => Ea(e) || Ia(e), Ta = (e) => {
1349
+ }, mn = (e) => ka(e) || Ea(e), Sa = (e) => {
1375
1350
  var t;
1376
1351
  return mn(e) && !((t = e.text) != null && t.trim());
1377
- }, Ue = ({
1352
+ }, je = ({
1378
1353
  message: e,
1379
1354
  standalone: t = !1,
1380
1355
  isMyMessage: s = !1,
1381
1356
  hasAttachment: a = !1
1382
1357
  }) => {
1383
1358
  var m;
1384
- const r = mn(e), i = Le(e);
1359
+ const r = mn(e), i = Re(e);
1385
1360
  if (!r && !i)
1386
1361
  return null;
1387
1362
  if (r) {
@@ -1405,7 +1380,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1405
1380
  g,
1406
1381
  u
1407
1382
  ] }) });
1408
- }, Aa = ({
1383
+ }, Ta = ({
1409
1384
  selected: e,
1410
1385
  onVoteUp: t,
1411
1386
  onVoteDown: s
@@ -1414,7 +1389,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1414
1389
  "button",
1415
1390
  {
1416
1391
  type: "button",
1417
- className: k("message-vote-button focus-ring", {
1392
+ className: C("message-vote-button focus-ring", {
1418
1393
  "message-vote-button--selected": e === "up"
1419
1394
  }),
1420
1395
  onClick: t,
@@ -1428,7 +1403,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1428
1403
  "button",
1429
1404
  {
1430
1405
  type: "button",
1431
- className: k("message-vote-button focus-ring", {
1406
+ className: C("message-vote-button focus-ring", {
1432
1407
  "message-vote-button--selected": e === "down"
1433
1408
  }),
1434
1409
  onClick: s,
@@ -1438,8 +1413,8 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1438
1413
  children: /* @__PURE__ */ n(Ms, { size: 16, weight: e === "down" ? "fill" : "regular" })
1439
1414
  }
1440
1415
  )
1441
- ] }), Ma = (e) => {
1442
- var vt, xt, wt, Nt, _t, yt, kt, Ct, Et, It, St, Tt, At, Mt;
1416
+ ] }), Aa = (e) => {
1417
+ var vt, xt, wt, Nt, _t, yt, Ct, kt, Et, It, St, Tt, At, Mt;
1443
1418
  const {
1444
1419
  additionalMessageInputProps: t,
1445
1420
  chatbotVotingEnabled: s,
@@ -1457,40 +1432,40 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1457
1432
  renderText: b,
1458
1433
  threadList: w,
1459
1434
  viewerLanguage: v
1460
- } = e, { client: p } = ue("CustomMessage"), { channel: N } = de("CustomMessage"), { isUnlocking: _, onUnlockClick: T, onFetchSource: L, onDownloadClick: M } = ka("LockedAttachment"), [R, D] = F(!1), B = On(c.id), { selected: O, voteUp: C, voteDown: A } = Ks(c), {
1461
- Attachment: E = Pn,
1435
+ } = e, { client: p } = ue("CustomMessage"), { channel: N } = de("CustomMessage"), { isUnlocking: _, onUnlockClick: T, onFetchSource: R, onDownloadClick: M } = ya("LockedAttachment"), [L, D] = F(!1), B = Pn(c.id), { selected: P, voteUp: k, voteDown: A } = Ks(c), {
1436
+ Attachment: E = On,
1462
1437
  EditMessageModal: y = zn,
1463
1438
  MessageActions: I,
1464
1439
  MessageBlocked: z = Fn,
1465
- MessageBouncePrompt: P = $n,
1466
- MessageDeleted: U = Bn,
1467
- MessageIsThreadReplyInChannelButtonIndicator: X = Un,
1468
- MessageRepliesCountButton: Z = jn,
1440
+ MessageBouncePrompt: O = $n,
1441
+ MessageDeleted: j = Bn,
1442
+ MessageIsThreadReplyInChannelButtonIndicator: X = jn,
1443
+ MessageRepliesCountButton: Z = Un,
1469
1444
  ReminderNotification: Y = Vn,
1470
1445
  StreamedMessageText: x = Gn,
1471
1446
  PinIndicator: S
1472
1447
  } = Ht("CustomMessage"), G = Hn(c), V = Yn(c), Q = re(
1473
1448
  () => m == null ? void 0 : m(c),
1474
1449
  [m, c]
1475
- ), j = re(() => {
1450
+ ), U = re(() => {
1476
1451
  const pe = c.attachments ?? [], Te = c.shared_location ? [c.shared_location, ...pe] : pe;
1477
- if (!Le(c)) return Te;
1478
- const Lt = Te.filter((Rt) => !("type" in Rt) || !ln(Rt));
1479
- return Lt.length === Te.length ? Te : Lt;
1480
- }, [c]), J = re(() => {
1452
+ if (!Re(c)) return Te;
1453
+ const Rt = Te.filter((Lt) => !("type" in Lt) || !ln(Lt));
1454
+ return Rt.length === Te.length ? Te : Rt;
1455
+ }, [c]), K = re(() => {
1481
1456
  const pe = en({ message: c, viewerLanguage: v });
1482
1457
  return pe === c.text ? c : { ...c, text: pe };
1483
1458
  }, [c, v]);
1484
1459
  if (qn(c))
1485
1460
  return null;
1486
1461
  if (c.deleted_at || c.type === "deleted")
1487
- return /* @__PURE__ */ n(U, { message: c });
1462
+ return /* @__PURE__ */ n(j, { message: c });
1488
1463
  if (Wn(c))
1489
1464
  return /* @__PURE__ */ n(z, {});
1490
1465
  const ee = !w && !!c.reply_count, me = !w && c.show_in_channel && c.parent_id, he = c.status === "failed" && ((vt = c.error) == null ? void 0 : vt.status) !== 403, fe = Xn(c);
1491
- let K;
1492
- he ? K = () => u(c) : fe && (K = () => D(!0));
1493
- const te = f(), oe = k(
1466
+ let J;
1467
+ he ? J = () => u(c) : fe && (J = () => D(!0));
1468
+ const te = f(), oe = C(
1494
1469
  "str-chat__message str-chat__message-simple",
1495
1470
  `str-chat__message--${c.type}`,
1496
1471
  `str-chat__message--${c.status}`,
@@ -1507,7 +1482,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1507
1482
  "str-chat__virtual-message__wrapper--first": i,
1508
1483
  "str-chat__virtual-message__wrapper--group": o
1509
1484
  }
1510
- ), ft = c.poll_id && p.polls.fromState(c.poll_id), gt = Ta(c), ge = Le(c), pt = Sa(c), Fe = !!(j != null && j.length && !c.quoted_message), bt = ge && te && Fe;
1485
+ ), ft = c.poll_id && p.polls.fromState(c.poll_id), gt = Sa(c), ge = Re(c), pt = Ia(c), Fe = !!(U != null && U.length && !c.quoted_message), bt = ge && te && Fe;
1511
1486
  return /* @__PURE__ */ h(se, { children: [
1512
1487
  a && /* @__PURE__ */ n(
1513
1488
  y,
@@ -1515,12 +1490,12 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1515
1490
  additionalMessageInputProps: t
1516
1491
  }
1517
1492
  ),
1518
- R && /* @__PURE__ */ n(
1519
- Jn,
1493
+ L && /* @__PURE__ */ n(
1494
+ Kn,
1520
1495
  {
1521
- MessageBouncePrompt: P,
1496
+ MessageBouncePrompt: O,
1522
1497
  onClose: () => D(!1),
1523
- open: R
1498
+ open: L
1524
1499
  }
1525
1500
  ),
1526
1501
  /* @__PURE__ */ h(
@@ -1547,14 +1522,14 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1547
1522
  /* @__PURE__ */ n(
1548
1523
  "div",
1549
1524
  {
1550
- className: k("str-chat__message-inner", {
1525
+ className: C("str-chat__message-inner", {
1551
1526
  "str-chat__simple-message--error-failed": he || fe
1552
1527
  }),
1553
1528
  "data-testid": "message-inner",
1554
- onClick: K,
1555
- onKeyDown: K,
1556
- role: K ? "button" : void 0,
1557
- tabIndex: K ? 0 : void 0,
1529
+ onClick: J,
1530
+ onKeyDown: J,
1531
+ role: J ? "button" : void 0,
1532
+ tabIndex: J ? 0 : void 0,
1558
1533
  style: {
1559
1534
  // Force margins to 0 to prevent hover layout shift
1560
1535
  // Stream Chat CSS sets margin-inline-end/start to 78px, then 0 on hover
@@ -1565,21 +1540,21 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1565
1540
  te ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1566
1541
  I && /* @__PURE__ */ n(I, {}),
1567
1542
  /* @__PURE__ */ n(
1568
- Ut.Sent,
1543
+ jt.Sent,
1569
1544
  {
1570
1545
  title: (wt = c.metadata) == null ? void 0 : wt.attachment_title,
1571
1546
  mimeType: (Nt = c.metadata) == null ? void 0 : Nt.attachment_mime_type,
1572
1547
  thumbnailUrl: (_t = c.metadata) == null ? void 0 : _t.attachment_thumbnail,
1573
1548
  amountText: (yt = c.metadata) == null ? void 0 : yt.amount_text,
1574
- detail: (kt = c.metadata) == null ? void 0 : kt.attachment_detail,
1575
- paymentStatus: (Ct = c.metadata) == null ? void 0 : Ct.payment_status,
1549
+ detail: (Ct = c.metadata) == null ? void 0 : Ct.attachment_detail,
1550
+ paymentStatus: (kt = c.metadata) == null ? void 0 : kt.payment_status,
1576
1551
  onPreviewClick: () => T == null ? void 0 : T(c, N),
1577
- onFetchSource: async () => await (L == null ? void 0 : L(c, N))
1552
+ onFetchSource: async () => await (R == null ? void 0 : R(c, N))
1578
1553
  }
1579
1554
  )
1580
1555
  ] }) : /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1581
1556
  /* @__PURE__ */ n(
1582
- Ut.Received,
1557
+ jt.Received,
1583
1558
  {
1584
1559
  title: (Et = c.metadata) == null ? void 0 : Et.attachment_title,
1585
1560
  mimeType: (It = c.metadata) == null ? void 0 : It.attachment_mime_type,
@@ -1589,49 +1564,49 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1589
1564
  paymentStatus: (Mt = c.metadata) == null ? void 0 : Mt.payment_status,
1590
1565
  isUnlocking: _(c.id),
1591
1566
  onUnlockClick: () => T == null ? void 0 : T(c, N),
1592
- onFetchSource: async () => await (L == null ? void 0 : L(c, N)),
1567
+ onFetchSource: async () => await (R == null ? void 0 : R(c, N)),
1593
1568
  onDownloadClick: () => M == null ? void 0 : M(c, N)
1594
1569
  }
1595
1570
  ),
1596
1571
  I && /* @__PURE__ */ n(I, {})
1597
1572
  ] }),
1598
1573
  c.text && /* @__PURE__ */ n("div", { className: "str-chat__message-bubble", children: /* @__PURE__ */ n(
1599
- Ot,
1574
+ Pt,
1600
1575
  {
1601
- message: J,
1576
+ message: K,
1602
1577
  renderText: b
1603
1578
  }
1604
1579
  ) })
1605
1580
  ] }) : gt ? (
1606
1581
  /* Tip-only messages render as a standalone bubble */
1607
- /* @__PURE__ */ n(Ue, { message: c, standalone: !0 })
1582
+ /* @__PURE__ */ n(je, { message: c, standalone: !0 })
1608
1583
  ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ h("div", { className: "str-chat__message-bubble", children: [
1609
1584
  ge && !bt && /* @__PURE__ */ n(
1610
- Ue,
1585
+ je,
1611
1586
  {
1612
1587
  message: c,
1613
1588
  hasAttachment: Fe,
1614
1589
  isMyMessage: te
1615
1590
  }
1616
1591
  ),
1617
- ft && /* @__PURE__ */ n(Kn, { poll: ft }),
1618
- j != null && j.length && !c.quoted_message ? /* @__PURE__ */ n(
1592
+ ft && /* @__PURE__ */ n(Jn, { poll: ft }),
1593
+ U != null && U.length && !c.quoted_message ? /* @__PURE__ */ n(
1619
1594
  E,
1620
1595
  {
1621
1596
  actionHandler: l,
1622
- attachments: j
1597
+ attachments: U
1623
1598
  }
1624
1599
  ) : null,
1625
1600
  Q ? /* @__PURE__ */ n(
1626
1601
  x,
1627
1602
  {
1628
- message: J,
1603
+ message: K,
1629
1604
  renderText: b
1630
1605
  }
1631
1606
  ) : /* @__PURE__ */ n(
1632
- Ot,
1607
+ Pt,
1633
1608
  {
1634
- message: J,
1609
+ message: K,
1635
1610
  renderText: b
1636
1611
  }
1637
1612
  ),
@@ -1641,7 +1616,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1641
1616
  ),
1642
1617
  !pt && !gt && /* @__PURE__ */ h("div", { className: "str-chat__message-footer", children: [
1643
1618
  (!ge || bt) && /* @__PURE__ */ n(
1644
- Ue,
1619
+ je,
1645
1620
  {
1646
1621
  message: c,
1647
1622
  hasAttachment: Fe,
@@ -1649,10 +1624,10 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1649
1624
  }
1650
1625
  ),
1651
1626
  s && ge && /* @__PURE__ */ n(
1652
- Aa,
1627
+ Ta,
1653
1628
  {
1654
- selected: O,
1655
- onVoteUp: C,
1629
+ selected: P,
1630
+ onVoteUp: k,
1656
1631
  onVoteDown: A
1657
1632
  }
1658
1633
  )
@@ -1670,15 +1645,15 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1670
1645
  c.id
1671
1646
  )
1672
1647
  ] });
1673
- }, La = $.memo(
1674
- Ma,
1648
+ }, Ma = $.memo(
1649
+ Aa,
1675
1650
  (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Dn(e, t)
1676
1651
  ), Ra = (e) => {
1677
- const t = ke("CustomMessage");
1678
- return /* @__PURE__ */ n(La, { ...t, ...e });
1679
- }, Da = () => {
1652
+ const t = Ce("CustomMessage");
1653
+ return /* @__PURE__ */ n(Ma, { ...t, ...e });
1654
+ }, La = () => {
1680
1655
  var s;
1681
- const { handleDelete: e, message: t } = ke("CustomMessageActions");
1656
+ const { handleDelete: e, message: t } = Ce("CustomMessageActions");
1682
1657
  return ((s = t.metadata) == null ? void 0 : s.payment_status) === "paid" ? null : /* @__PURE__ */ n(
1683
1658
  Xt,
1684
1659
  {
@@ -1686,11 +1661,11 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1686
1661
  "aria-label": "Delete",
1687
1662
  title: "Delete",
1688
1663
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
1689
- children: /* @__PURE__ */ n(Ls, { size: 16, weight: "light", "aria-hidden": !0 })
1664
+ children: /* @__PURE__ */ n(Rs, { size: 16, weight: "light", "aria-hidden": !0 })
1690
1665
  }
1691
1666
  );
1692
- }, Oa = () => {
1693
- const { handleFlag: e } = ke("CustomMessageActions");
1667
+ }, Da = () => {
1668
+ const { handleFlag: e } = Ce("CustomMessageActions");
1694
1669
  return /* @__PURE__ */ n(
1695
1670
  Xt,
1696
1671
  {
@@ -1703,17 +1678,17 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1703
1678
  );
1704
1679
  }, Pa = () => {
1705
1680
  var t;
1706
- const { message: e } = ke("CustomMessageActions");
1681
+ const { message: e } = Ce("CustomMessageActions");
1707
1682
  return ((t = e.metadata) == null ? void 0 : t.custom_type) !== "MESSAGE_ATTACHMENT" ? null : /* @__PURE__ */ n(
1708
1683
  zs,
1709
1684
  {
1710
1685
  messageActionSet: [
1711
- { Component: Da, placement: "quick", type: "delete" },
1712
- { Component: Oa, placement: "quick", type: "flag" }
1686
+ { Component: La, placement: "quick", type: "delete" },
1687
+ { Component: Da, placement: "quick", type: "flag" }
1713
1688
  ]
1714
1689
  }
1715
1690
  );
1716
- }, za = ({
1691
+ }, Oa = ({
1717
1692
  link: e,
1718
1693
  onDismiss: t
1719
1694
  }) => {
@@ -1743,7 +1718,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1743
1718
  },
1744
1719
  className: "absolute right-4 top-4 flex size-6 items-center justify-center rounded-full border border-white/40 bg-white/70 backdrop-blur-2xl focus-ring",
1745
1720
  "aria-label": "Close link preview",
1746
- children: /* @__PURE__ */ n(Pe, { className: "size-4 text-black/90" })
1721
+ children: /* @__PURE__ */ n(Oe, { className: "size-4 text-black/90" })
1747
1722
  }
1748
1723
  ),
1749
1724
  /* @__PURE__ */ h("div", { className: "p-2", children: [
@@ -1753,26 +1728,26 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1753
1728
  ]
1754
1729
  }
1755
1730
  );
1756
- }, Fa = (e) => ({
1731
+ }, za = (e) => ({
1757
1732
  linkPreviews: Array.from(e.previews.values()).filter(
1758
1733
  (t) => Dt.previewIsLoaded(t) || Dt.previewIsLoading(t)
1759
1734
  )
1760
- }), $a = () => {
1735
+ }), Fa = () => {
1761
1736
  const { linkPreviewsManager: e } = Qn(), { linkPreviews: t } = es(
1762
1737
  e.state,
1763
- Fa
1738
+ za
1764
1739
  ), s = (r) => {
1765
1740
  e.dismissPreview(r);
1766
1741
  };
1767
1742
  return t.length > 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-stretch w-full gap-2 mb-4", children: t.map((r) => /* @__PURE__ */ n(
1768
- za,
1743
+ Oa,
1769
1744
  {
1770
1745
  link: r,
1771
1746
  onDismiss: s
1772
1747
  },
1773
1748
  r.og_scrape_url
1774
1749
  )) }) : null;
1775
- }, at = $.createContext(!1), Mi = () => ye(at), Ba = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1750
+ }, at = $.createContext(!1), Ai = () => ye(at), $a = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1776
1751
  "button",
1777
1752
  {
1778
1753
  ...s,
@@ -1780,11 +1755,11 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1780
1755
  "aria-label": "Send",
1781
1756
  disabled: t,
1782
1757
  onClick: e,
1783
- children: /* @__PURE__ */ n(Rs, { weight: "bold", className: "size-4" })
1758
+ children: /* @__PURE__ */ n(Ls, { weight: "bold", className: "size-4" })
1784
1759
  }
1785
- ), Ua = () => {
1760
+ ), Ba = () => {
1786
1761
  const e = ye(at), { handleSubmit: t } = ns(), s = ss(), a = e || !s, {
1787
- SendButton: r = Ba,
1762
+ SendButton: r = $a,
1788
1763
  AttachmentPreviewList: i = as
1789
1764
  } = Ht("CustomMessageInput");
1790
1765
  return /* @__PURE__ */ h(
@@ -1794,7 +1769,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1794
1769
  "data-dd-privacy": "mask",
1795
1770
  children: [
1796
1771
  /* @__PURE__ */ n(rs, {}),
1797
- /* @__PURE__ */ n($a, {}),
1772
+ /* @__PURE__ */ n(Fa, {}),
1798
1773
  /* @__PURE__ */ n(i, {}),
1799
1774
  /* @__PURE__ */ h("div", { className: "flex", children: [
1800
1775
  /* @__PURE__ */ n("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ n(
@@ -1844,23 +1819,23 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1844
1819
  className: "message-input flex items-end gap-4 aria-disabled:opacity-40",
1845
1820
  children: [
1846
1821
  e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
1847
- /* @__PURE__ */ n(at.Provider, { value: o, children: /* @__PURE__ */ n(ts, { Input: r ?? Ua }) })
1822
+ /* @__PURE__ */ n(at.Provider, { value: o, children: /* @__PURE__ */ n(ts, { Input: r ?? Ba }) })
1848
1823
  ]
1849
1824
  }
1850
1825
  ),
1851
1826
  t == null ? void 0 : t()
1852
1827
  ] });
1853
- }, Va = [
1828
+ }, Ua = [
1854
1829
  "SYSTEM_DM_AGENT_PAUSED",
1855
1830
  "SYSTEM_DM_AGENT_RESUMED"
1856
- ], Ga = {
1831
+ ], Va = {
1857
1832
  SYSTEM_DM_AGENT_PAUSED: "DM Agent has left the conversation",
1858
1833
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
1859
- }, Ha = [
1834
+ }, Ga = [
1860
1835
  "SYSTEM_AGE_SAFETY_BLOCKED"
1861
- ], Ya = {
1836
+ ], Ha = {
1862
1837
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
1863
- }, je = "age safety guidelines.", qa = "https://linktr.ee/s/about/contact", Vt = (e) => Va.includes(e), Wa = (e) => Ha.includes(e), Xa = (e) => {
1838
+ }, Ue = "age safety guidelines.", Ya = "https://linktr.ee/s/about/contact", Vt = (e) => Ua.includes(e), qa = (e) => Ga.includes(e), Wa = (e) => {
1864
1839
  var a;
1865
1840
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
1866
1841
  if (Vt(t))
@@ -1868,7 +1843,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1868
1843
  kind: "dm-agent",
1869
1844
  type: t
1870
1845
  };
1871
- if (Wa(t))
1846
+ if (qa(t))
1872
1847
  return {
1873
1848
  kind: "age-safety",
1874
1849
  type: t
@@ -1879,32 +1854,32 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1879
1854
  kind: "dm-agent",
1880
1855
  type: s
1881
1856
  };
1882
- }, Ja = (e) => {
1883
- const t = e.indexOf(je);
1857
+ }, Xa = (e) => {
1858
+ const t = e.indexOf(Ue);
1884
1859
  if (t === -1)
1885
1860
  return e;
1886
- const s = t + je.length;
1861
+ const s = t + Ue.length;
1887
1862
  return /* @__PURE__ */ h(se, { children: [
1888
1863
  e.slice(0, t),
1889
1864
  /* @__PURE__ */ n(
1890
1865
  "a",
1891
1866
  {
1892
- href: qa,
1867
+ href: Ya,
1893
1868
  target: "_blank",
1894
1869
  rel: "noopener noreferrer",
1895
1870
  className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
1896
- children: je
1871
+ children: Ue
1897
1872
  }
1898
1873
  ),
1899
1874
  e.slice(s)
1900
1875
  ] });
1901
1876
  }, Ka = (e) => {
1902
1877
  var a, r;
1903
- const t = e.message.hide_date === !0, s = Xa(
1878
+ const t = e.message.hide_date === !0, s = Wa(
1904
1879
  e.message
1905
1880
  );
1906
1881
  if ((s == null ? void 0 : s.kind) === "dm-agent") {
1907
- const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Ga[s.type];
1882
+ const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Va[s.type];
1908
1883
  return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
1909
1884
  /* @__PURE__ */ h(
1910
1885
  "div",
@@ -1930,7 +1905,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1930
1905
  ] });
1931
1906
  }
1932
1907
  if ((s == null ? void 0 : s.kind) === "age-safety") {
1933
- const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ya[s.type];
1908
+ const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ha[s.type];
1934
1909
  return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
1935
1910
  /* @__PURE__ */ h(
1936
1911
  "div",
@@ -1949,7 +1924,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1949
1924
  "data-testid": "age-safety-system-message-icon"
1950
1925
  }
1951
1926
  ),
1952
- /* @__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) }) })
1927
+ /* @__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: Xa(i) }) })
1953
1928
  ]
1954
1929
  }
1955
1930
  ),
@@ -1974,15 +1949,15 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
1974
1949
  begin: `${120 * t}ms`,
1975
1950
  repeatCount: "indefinite"
1976
1951
  }
1977
- ) }), Za = /* @__PURE__ */ new Set([
1952
+ ) }), Ja = /* @__PURE__ */ new Set([
1978
1953
  Be.Thinking,
1979
1954
  Be.Generating,
1980
1955
  Be.ExternalSources
1981
- ]), Qa = ({ threadList: e }) => {
1956
+ ]), Za = ({ threadList: e }) => {
1982
1957
  var b, w;
1983
1958
  const { channel: t, channelConfig: s, thread: a } = de(), { client: r } = ue(), { typing: i = {} } = os(), { aiState: o } = ls(t), l = ye(hn);
1984
- if (!e && l && Za.has(o)) {
1985
- const v = er(t, (b = r.user) == null ? void 0 : b.id);
1959
+ if (!e && l && Ja.has(o)) {
1960
+ const v = Qa(t, (b = r.user) == null ? void 0 : b.id);
1986
1961
  return /* @__PURE__ */ n(
1987
1962
  Gt,
1988
1963
  {
@@ -2062,7 +2037,7 @@ const Ca = ({ size: e = 15 }) => /* @__PURE__ */ n(
2062
2037
  ] })
2063
2038
  }
2064
2039
  );
2065
- function er(e, t) {
2040
+ function Qa(e, t) {
2066
2041
  var a;
2067
2042
  const s = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
2068
2043
  for (const r of Object.values(s)) {
@@ -2071,10 +2046,10 @@ function er(e, t) {
2071
2046
  return i;
2072
2047
  }
2073
2048
  }
2074
- const tr = () => null, nr = ({ className: e, message: t }) => /* @__PURE__ */ h(
2049
+ const er = () => null, tr = ({ className: e, message: t }) => /* @__PURE__ */ h(
2075
2050
  "div",
2076
2051
  {
2077
- className: k("flex items-center justify-center h-full", e),
2052
+ className: C("flex items-center justify-center h-full", e),
2078
2053
  children: [
2079
2054
  /* @__PURE__ */ h("svg", { viewBox: "0 0 100 100", className: "size-8 fill-pebble", stroke: "none", children: [
2080
2055
  /* @__PURE__ */ n("circle", { cx: "6", cy: "50", r: "6", children: /* @__PURE__ */ n(
@@ -2114,12 +2089,12 @@ const tr = () => null, nr = ({ className: e, message: t }) => /* @__PURE__ */ h(
2114
2089
  t && /* @__PURE__ */ n("span", { className: "text-stone", children: t })
2115
2090
  ]
2116
2091
  }
2117
- ), Re = $.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ h("div", { className: "flex items-center", children: [
2118
- /* @__PURE__ */ n(nr, { className: "w-6 h-6" }),
2092
+ ), Le = $.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ h("div", { className: "flex items-center", children: [
2093
+ /* @__PURE__ */ n(tr, { className: "w-6 h-6" }),
2119
2094
  /* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
2120
2095
  ] }) }));
2121
- Re.displayName = "LoadingState";
2122
- const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Me = "Replies instantly with AI assistant", sr = ({
2096
+ Le.displayName = "LoadingState";
2097
+ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Me = "Replies instantly with AI assistant", nr = ({
2123
2098
  onBack: e,
2124
2099
  showBackButton: t,
2125
2100
  showStarButton: s = !1,
@@ -2138,30 +2113,30 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2138
2113
  onParticipantNameClick: w,
2139
2114
  renderHeaderTitleBadges: v
2140
2115
  }) => {
2141
- var A, E, y, I, z, P;
2116
+ var A, E, y, I, z, O;
2142
2117
  const { channel: p } = de(), { client: N } = ue(), _ = $.useMemo(
2143
2118
  () => {
2144
- var U;
2119
+ var j;
2145
2120
  return Ze(
2146
- (U = p.state) == null ? void 0 : U.members,
2121
+ (j = p.state) == null ? void 0 : j.members,
2147
2122
  N == null ? void 0 : N.userID,
2148
2123
  p.type
2149
2124
  );
2150
2125
  },
2151
2126
  [(A = p.state) == null ? void 0 : A.members, N == null ? void 0 : N.userID, p.type]
2152
- ), T = Zt(_ == null ? void 0 : _.user), L = (E = _ == null ? void 0 : _.user) == null ? void 0 : E.image, M = Kt(p), R = v == null ? void 0 : v({
2127
+ ), T = Zt(_ == null ? void 0 : _.user), R = (E = _ == null ? void 0 : _.user) == null ? void 0 : E.image, M = Jt(p), L = v == null ? void 0 : v({
2153
2128
  channel: p,
2154
2129
  participant: _
2155
- }), D = "flex max-w-full flex-col items-center gap-1 rounded-[12px] px-1 py-0.5 text-center text-xs font-medium text-black/90", B = "flex min-w-0 max-w-full items-center gap-4 rounded-[12px] px-1 py-0.5 text-left text-black/90", O = /* @__PURE__ */ h(se, { children: [
2130
+ }), D = "flex max-w-full flex-col items-center gap-1 rounded-[12px] px-1 py-0.5 text-center text-xs font-medium text-black/90", B = "flex min-w-0 max-w-full items-center gap-4 rounded-[12px] px-1 py-0.5 text-left text-black/90", P = /* @__PURE__ */ h(se, { children: [
2156
2131
  /* @__PURE__ */ n("span", { className: "min-w-0 truncate", children: T }),
2157
- R && /* @__PURE__ */ n("span", { className: "shrink-0", children: R })
2158
- ] }), C = async () => {
2132
+ L && /* @__PURE__ */ n("span", { className: "shrink-0", children: L })
2133
+ ] }), k = async () => {
2159
2134
  try {
2160
2135
  M ? await p.unpin() : await p.pin();
2161
- } catch (U) {
2136
+ } catch (j) {
2162
2137
  console.error(
2163
2138
  "[CustomChannelHeader] Failed to update pinned status:",
2164
- U
2139
+ j
2165
2140
  );
2166
2141
  }
2167
2142
  };
@@ -2170,7 +2145,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2170
2145
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: t && /* @__PURE__ */ n(
2171
2146
  "button",
2172
2147
  {
2173
- className: k(
2148
+ className: C(
2174
2149
  le,
2175
2150
  "messaging-channel-view-back-button-mobile bg-[#F1F0EE]"
2176
2151
  ),
@@ -2192,7 +2167,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2192
2167
  type: "button",
2193
2168
  onClick: w,
2194
2169
  "aria-label": `View details for ${T}`,
2195
- className: k(
2170
+ className: C(
2196
2171
  D,
2197
2172
  "appearance-none border-0 bg-transparent transition-opacity hover:opacity-70 focus-ring focus-visible:outline-none"
2198
2173
  ),
@@ -2202,14 +2177,14 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2202
2177
  {
2203
2178
  id: ((y = _ == null ? void 0 : _.user) == null ? void 0 : y.id) || p.id || "unknown",
2204
2179
  name: T,
2205
- image: L,
2180
+ image: R,
2206
2181
  starred: s && M,
2207
2182
  dmAgentEnabled: a,
2208
2183
  size: 48
2209
2184
  }
2210
2185
  ),
2211
2186
  /* @__PURE__ */ h("span", { className: "flex max-w-full items-center gap-0.5", children: [
2212
- O,
2187
+ P,
2213
2188
  /* @__PURE__ */ n(xe, { className: "size-3 shrink-0", weight: "bold" })
2214
2189
  ] }),
2215
2190
  a && /* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
@@ -2224,14 +2199,14 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2224
2199
  {
2225
2200
  id: ((I = _ == null ? void 0 : _.user) == null ? void 0 : I.id) || p.id || "unknown",
2226
2201
  name: T,
2227
- image: L,
2202
+ image: R,
2228
2203
  starred: s && M,
2229
2204
  dmAgentEnabled: a,
2230
2205
  size: 48
2231
2206
  }
2232
2207
  ),
2233
2208
  /* @__PURE__ */ h("p", { className: "flex max-w-full items-center justify-center gap-0.5", children: [
2234
- O,
2209
+ P,
2235
2210
  /* @__PURE__ */ n(
2236
2211
  xe,
2237
2212
  {
@@ -2252,13 +2227,13 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2252
2227
  "button",
2253
2228
  {
2254
2229
  className: le,
2255
- onClick: C,
2230
+ onClick: k,
2256
2231
  type: "button",
2257
2232
  "aria-label": M ? "Unstar conversation" : "Star conversation",
2258
2233
  children: /* @__PURE__ */ n(
2259
2234
  He,
2260
2235
  {
2261
- className: k("size-5", {
2236
+ className: C("size-5", {
2262
2237
  "text-yellow-600": M,
2263
2238
  "text-black/90": !M
2264
2239
  }),
@@ -2281,7 +2256,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2281
2256
  onBlockParticipantClick: g,
2282
2257
  onReportParticipantClick: m,
2283
2258
  customChannelActions: f,
2284
- triggerClassName: k(le, "bg-[#F1F0EE]")
2259
+ triggerClassName: C(le, "bg-[#F1F0EE]")
2285
2260
  }
2286
2261
  ))
2287
2262
  ] })
@@ -2291,7 +2266,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2291
2266
  t && e && /* @__PURE__ */ n(
2292
2267
  "button",
2293
2268
  {
2294
- className: k(
2269
+ className: C(
2295
2270
  le,
2296
2271
  "messaging-channel-view-back-button-desktop"
2297
2272
  ),
@@ -2307,7 +2282,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2307
2282
  type: "button",
2308
2283
  onClick: w,
2309
2284
  "aria-label": `View details for ${T}`,
2310
- className: k(
2285
+ className: C(
2311
2286
  B,
2312
2287
  "appearance-none border-0 bg-transparent transition-opacity hover:opacity-70 focus-ring focus-visible:outline-none"
2313
2288
  ),
@@ -2317,7 +2292,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2317
2292
  {
2318
2293
  id: ((z = _ == null ? void 0 : _.user) == null ? void 0 : z.id) || p.id || "unknown",
2319
2294
  name: T,
2320
- image: L,
2295
+ image: R,
2321
2296
  starred: s && M,
2322
2297
  dmAgentEnabled: a,
2323
2298
  size: 48
@@ -2325,7 +2300,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2325
2300
  ),
2326
2301
  /* @__PURE__ */ h("div", { className: "min-w-0", children: [
2327
2302
  /* @__PURE__ */ h("h1", { className: "flex min-w-0 items-center gap-1 font-medium text-black/90", children: [
2328
- O,
2303
+ P,
2329
2304
  /* @__PURE__ */ n(xe, { className: "size-4 shrink-0", weight: "bold" })
2330
2305
  ] }),
2331
2306
  a && /* @__PURE__ */ h("div", { className: "mt-0.5 flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
@@ -2339,9 +2314,9 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2339
2314
  /* @__PURE__ */ n(
2340
2315
  ne,
2341
2316
  {
2342
- id: ((P = _ == null ? void 0 : _.user) == null ? void 0 : P.id) || p.id || "unknown",
2317
+ id: ((O = _ == null ? void 0 : _.user) == null ? void 0 : O.id) || p.id || "unknown",
2343
2318
  name: T,
2344
- image: L,
2319
+ image: R,
2345
2320
  starred: s && M,
2346
2321
  dmAgentEnabled: a,
2347
2322
  size: 48
@@ -2349,7 +2324,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2349
2324
  ),
2350
2325
  /* @__PURE__ */ h("div", { className: "min-w-0", children: [
2351
2326
  /* @__PURE__ */ h("h1", { className: "flex min-w-0 items-center gap-1 font-medium text-black/90", children: [
2352
- O,
2327
+ P,
2353
2328
  /* @__PURE__ */ n(
2354
2329
  xe,
2355
2330
  {
@@ -2370,13 +2345,13 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2370
2345
  "button",
2371
2346
  {
2372
2347
  className: le,
2373
- onClick: C,
2348
+ onClick: k,
2374
2349
  type: "button",
2375
2350
  "aria-label": M ? "Unstar conversation" : "Star conversation",
2376
2351
  children: /* @__PURE__ */ n(
2377
2352
  He,
2378
2353
  {
2379
- className: k("size-6", {
2354
+ className: C("size-6", {
2380
2355
  "text-yellow-600": M,
2381
2356
  "text-black/90": !M
2382
2357
  }),
@@ -2405,7 +2380,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2405
2380
  ] })
2406
2381
  ] })
2407
2382
  ] });
2408
- }, ar = ({
2383
+ }, sr = ({
2409
2384
  onBack: e,
2410
2385
  showBackButton: t,
2411
2386
  renderMessageInputActions: s,
@@ -2427,61 +2402,61 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2427
2402
  renderHeaderTitleBadges: N,
2428
2403
  customChannelActions: _,
2429
2404
  renderChannelActions: T,
2430
- renderMessage: L,
2405
+ renderMessage: R,
2431
2406
  dmAgentEnabled: M = !1,
2432
- viewerLanguage: R,
2407
+ viewerLanguage: L,
2433
2408
  showChannelInfo: D = !0,
2434
2409
  onParticipantNameClick: B,
2435
- composerInput: O
2410
+ composerInput: P
2436
2411
  }) => {
2437
2412
  var X, Z, Y, x;
2438
- const { channel: C } = de(), { client: A } = ue(), E = $.useMemo(
2413
+ const { channel: k } = de(), { client: A } = ue(), E = $.useMemo(
2439
2414
  () => {
2440
2415
  var S;
2441
2416
  return Ze(
2442
- (S = C.state) == null ? void 0 : S.members,
2417
+ (S = k.state) == null ? void 0 : S.members,
2443
2418
  A == null ? void 0 : A.userID,
2444
- C.type
2419
+ k.type
2445
2420
  );
2446
2421
  },
2447
- [(X = C.state) == null ? void 0 : X.members, A == null ? void 0 : A.userID, C.type]
2422
+ [(X = k.state) == null ? void 0 : X.members, A == null ? void 0 : A.userID, k.type]
2448
2423
  ), y = $.useMemo(() => {
2449
2424
  var V;
2450
2425
  const S = A == null ? void 0 : A.userID;
2451
- return S ? Object.values(((V = C.state) == null ? void 0 : V.members) || {}).find((Q) => {
2452
- var j;
2453
- return ((j = Q.user) == null ? void 0 : j.id) === S;
2426
+ return S ? Object.values(((V = k.state) == null ? void 0 : V.members) || {}).find((Q) => {
2427
+ var U;
2428
+ return ((U = Q.user) == null ? void 0 : U.id) === S;
2454
2429
  }) : void 0;
2455
- }, [A == null ? void 0 : A.userID, (Z = C.state) == null ? void 0 : Z.members]), I = ((Y = y == null ? void 0 : y.user) == null ? void 0 : Y.is_account) ?? (y == null ? void 0 : y.is_account), z = ((x = E == null ? void 0 : E.user) == null ? void 0 : x.is_account) ?? (E == null ? void 0 : E.is_account), P = M && I === !1 && z === !0, U = W(
2430
+ }, [A == null ? void 0 : A.userID, (Z = k.state) == null ? void 0 : Z.members]), I = ((Y = y == null ? void 0 : y.user) == null ? void 0 : Y.is_account) ?? (y == null ? void 0 : y.is_account), z = ((x = E == null ? void 0 : E.user) == null ? void 0 : x.is_account) ?? (E == null ? void 0 : E.is_account), O = M && I === !1 && z === !0, j = W(
2456
2431
  (S) => {
2457
- const { message: G } = ke("ChannelView"), V = /* @__PURE__ */ n(
2432
+ const { message: G } = Ce("ChannelView"), V = /* @__PURE__ */ n(
2458
2433
  Ra,
2459
2434
  {
2460
2435
  ...S,
2461
2436
  chatbotVotingEnabled: v,
2462
- viewerLanguage: R
2437
+ viewerLanguage: L
2463
2438
  }
2464
2439
  );
2465
- return !L || !G ? V : L(V, G);
2440
+ return !R || !G ? V : R(V, G);
2466
2441
  },
2467
- [v, L, R]
2442
+ [v, R, L]
2468
2443
  );
2469
2444
  return /* @__PURE__ */ n(se, { children: /* @__PURE__ */ n(
2470
2445
  ds,
2471
2446
  {
2472
2447
  overrides: {
2473
- Message: U,
2448
+ Message: j,
2474
2449
  MessageActions: Pa
2475
2450
  },
2476
2451
  children: /* @__PURE__ */ h(us, { children: [
2477
2452
  /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
2478
- sr,
2453
+ nr,
2479
2454
  {
2480
2455
  onBack: e,
2481
2456
  showBackButton: t,
2482
2457
  showChannelInfo: D,
2483
2458
  showStarButton: w,
2484
- dmAgentEnabled: P,
2459
+ dmAgentEnabled: O,
2485
2460
  onLeaveConversation: i,
2486
2461
  onBlockParticipant: o,
2487
2462
  showDeleteConversation: l,
@@ -2505,17 +2480,17 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2505
2480
  },
2506
2481
  "lt-channel-message-list"
2507
2482
  ),
2508
- r ? /* @__PURE__ */ n($.Fragment, { children: r(C) }, "lt-channel-conversation-footer") : null,
2483
+ r ? /* @__PURE__ */ n($.Fragment, { children: r(k) }, "lt-channel-conversation-footer") : null,
2509
2484
  /* @__PURE__ */ n(
2510
2485
  ja,
2511
2486
  {
2512
2487
  ...s && {
2513
- renderActions: () => s == null ? void 0 : s(C)
2488
+ renderActions: () => s == null ? void 0 : s(k)
2514
2489
  },
2515
- renderFooter: () => a == null ? void 0 : a(C),
2490
+ renderFooter: () => a == null ? void 0 : a(k),
2516
2491
  disabled: c,
2517
2492
  disabledReason: b,
2518
- composerInput: O
2493
+ composerInput: P
2519
2494
  },
2520
2495
  "lt-channel-message-input"
2521
2496
  )
@@ -2533,7 +2508,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2533
2508
  onLeaveConversation: o,
2534
2509
  onBlockParticipant: l,
2535
2510
  className: d,
2536
- CustomChannelEmptyState: u = tr,
2511
+ CustomChannelEmptyState: u = er,
2537
2512
  showDeleteConversation: g = !0,
2538
2513
  onDeleteConversationClick: m,
2539
2514
  onBlockParticipantClick: f,
@@ -2545,20 +2520,20 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2545
2520
  dmAgentEnabled: N,
2546
2521
  messageMetadata: _,
2547
2522
  onMessageSent: T,
2548
- showStarButton: L = !1,
2523
+ showStarButton: R = !1,
2549
2524
  chatbotVotingEnabled: M = !1,
2550
- renderChannelBanner: R,
2525
+ renderChannelBanner: L,
2551
2526
  renderHeaderTitleBadges: D,
2552
2527
  customChannelActions: B,
2553
- renderChannelActions: O,
2554
- renderMessage: C,
2528
+ renderChannelActions: P,
2529
+ renderMessage: k,
2555
2530
  onMessageLinkClick: A,
2556
2531
  sendButton: E,
2557
2532
  attachmentPreviewList: y,
2558
2533
  viewerLanguage: I,
2559
2534
  showChannelInfo: z = !0,
2560
- onParticipantNameClick: P,
2561
- composerInput: U
2535
+ onParticipantNameClick: O,
2536
+ composerInput: j
2562
2537
  }) => {
2563
2538
  const X = W(
2564
2539
  async (Y, x, S) => {
@@ -2572,11 +2547,11 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2572
2547
  ..._
2573
2548
  }
2574
2549
  }
2575
- }, j = {
2550
+ }, U = {
2576
2551
  ...S,
2577
2552
  ...V && { skip_push: !0 }
2578
- }, J = await e.sendMessage(Q, j);
2579
- return T == null || T(J), J;
2553
+ }, K = await e.sendMessage(Q, U);
2554
+ return T == null || T(K), K;
2580
2555
  },
2581
2556
  [e, N, _, T]
2582
2557
  ), Z = H(null);
@@ -2587,7 +2562,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2587
2562
  const x = (S) => {
2588
2563
  const G = S.target, V = G == null ? void 0 : G.closest("a[href]"), Q = V == null ? void 0 : V.getAttribute("href");
2589
2564
  if (!Q) return;
2590
- const j = V == null ? void 0 : V.closest("[data-message-id]"), J = j == null ? void 0 : j.getAttribute("data-message-id"), ee = J ? e.state.messages.find((me) => me.id === J) : void 0;
2565
+ const U = V == null ? void 0 : V.closest("[data-message-id]"), K = U == null ? void 0 : U.getAttribute("data-message-id"), ee = K ? e.state.messages.find((me) => me.id === K) : void 0;
2591
2566
  A(Q, ee);
2592
2567
  };
2593
2568
  return Y.addEventListener("click", x), () => Y.removeEventListener("click", x);
@@ -2595,7 +2570,7 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2595
2570
  "div",
2596
2571
  {
2597
2572
  ref: Z,
2598
- className: k(
2573
+ className: C(
2599
2574
  "messaging-channel-view h-full flex flex-col",
2600
2575
  d
2601
2576
  ),
@@ -2605,14 +2580,14 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2605
2580
  channel: e,
2606
2581
  MessageSystem: Ka,
2607
2582
  EmptyStateIndicator: u,
2608
- LoadingIndicator: Re,
2609
- DateSeparator: Xs,
2610
- TypingIndicator: Qa,
2583
+ LoadingIndicator: Le,
2584
+ DateSeparator: Ws,
2585
+ TypingIndicator: Za,
2611
2586
  doSendMessageRequest: X,
2612
2587
  ...E ? { SendButton: E } : {},
2613
2588
  ...y ? { AttachmentPreviewList: y } : {},
2614
2589
  children: /* @__PURE__ */ n(
2615
- ar,
2590
+ sr,
2616
2591
  {
2617
2592
  onBack: t,
2618
2593
  showBackButton: s,
@@ -2630,18 +2605,18 @@ const le = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
2630
2605
  showReportParticipant: w,
2631
2606
  composerDisabled: v,
2632
2607
  composerDisabledReason: p,
2633
- showStarButton: L,
2608
+ showStarButton: R,
2634
2609
  dmAgentEnabled: N,
2635
2610
  chatbotVotingEnabled: M,
2636
- renderChannelBanner: R,
2611
+ renderChannelBanner: L,
2637
2612
  renderHeaderTitleBadges: D,
2638
2613
  customChannelActions: B,
2639
- renderChannelActions: O,
2640
- renderMessage: C,
2614
+ renderChannelActions: P,
2615
+ renderMessage: k,
2641
2616
  viewerLanguage: I,
2642
2617
  showChannelInfo: z,
2643
- onParticipantNameClick: P,
2644
- composerInput: U
2618
+ onParticipantNameClick: O,
2619
+ composerInput: j
2645
2620
  }
2646
2621
  )
2647
2622
  }
@@ -2666,7 +2641,7 @@ const we = $.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { clas
2666
2641
  )
2667
2642
  ] }) }));
2668
2643
  we.displayName = "ErrorState";
2669
- const Li = ({
2644
+ const Mi = ({
2670
2645
  capabilities: e = {},
2671
2646
  renderMessageInputActions: t,
2672
2647
  renderConversationFooter: s,
@@ -2688,18 +2663,18 @@ const Li = ({
2688
2663
  onParticipantNameClick: N,
2689
2664
  renderMessage: _,
2690
2665
  onMessageLinkClick: T,
2691
- showChannelInfo: L,
2666
+ showChannelInfo: R,
2692
2667
  composerInput: M
2693
2668
  }) => {
2694
2669
  const {
2695
- client: R,
2670
+ client: L,
2696
2671
  isConnected: D,
2697
2672
  isLoading: B,
2698
- error: O,
2699
- refreshConnection: C,
2673
+ error: P,
2674
+ refreshConnection: k,
2700
2675
  service: A,
2701
2676
  debug: E
2702
- } = Fs(), [y, I] = F(null), [z, P] = F(null), [U, X] = F(!1), { showDeleteConversation: Z = !0 } = e, Y = H(o);
2677
+ } = Fs(), [y, I] = F(null), [z, O] = F(null), [j, X] = F(!1), { showDeleteConversation: Z = !0 } = e, Y = H(o);
2703
2678
  Y.current = o;
2704
2679
  const x = H(a);
2705
2680
  x.current = a;
@@ -2707,14 +2682,14 @@ const Li = ({
2707
2682
  q(() => {
2708
2683
  G.current = y;
2709
2684
  }, [y]), q(() => {
2710
- if (!R || !D) return;
2711
- const j = R.userID;
2712
- if (!j) return;
2713
- const J = `${j}::${i}`;
2714
- if (S.current === J) return;
2715
- S.current = J;
2685
+ if (!L || !D) return;
2686
+ const U = L.userID;
2687
+ if (!U) return;
2688
+ const K = `${U}::${i}`;
2689
+ if (S.current === K) return;
2690
+ S.current = K;
2716
2691
  const ee = () => {
2717
- S.current === J && (S.current = null);
2692
+ S.current === K && (S.current = null);
2718
2693
  };
2719
2694
  (async () => {
2720
2695
  var he, fe;
@@ -2723,24 +2698,24 @@ const Li = ({
2723
2698
  "[MessagingShell] Loading initial conversation with:",
2724
2699
  i
2725
2700
  );
2726
- const K = await R.queryChannels(
2701
+ const J = await L.queryChannels(
2727
2702
  {
2728
2703
  type: "messaging",
2729
- members: { $eq: [j, i] }
2704
+ members: { $eq: [U, i] }
2730
2705
  },
2731
2706
  {},
2732
2707
  { limit: 1 }
2733
2708
  );
2734
- if (K.length > 0) {
2735
- I(K[0]), P(null), (he = x.current) == null || he.call(x, K[0]), E && console.log(
2709
+ if (J.length > 0) {
2710
+ I(J[0]), O(null), (he = x.current) == null || he.call(x, J[0]), E && console.log(
2736
2711
  "[MessagingShell] Initial conversation loaded:",
2737
- K[0].id
2712
+ J[0].id
2738
2713
  );
2739
2714
  return;
2740
2715
  }
2741
2716
  const te = Y.current;
2742
2717
  if (!te || !A) {
2743
- ee(), P("No conversation found with this account"), E && console.log(
2718
+ ee(), O("No conversation found with this account"), E && console.log(
2744
2719
  "[MessagingShell] No conversation found for:",
2745
2720
  i
2746
2721
  );
@@ -2752,7 +2727,7 @@ const Li = ({
2752
2727
  name: te.name,
2753
2728
  phone: te.phone
2754
2729
  });
2755
- I(oe), P(null), (fe = x.current) == null || fe.call(x, oe), E && console.log(
2730
+ I(oe), O(null), (fe = x.current) == null || fe.call(x, oe), E && console.log(
2756
2731
  "[MessagingShell] Channel created and loaded:",
2757
2732
  oe.id
2758
2733
  );
@@ -2760,29 +2735,29 @@ const Li = ({
2760
2735
  console.error(
2761
2736
  "[MessagingShell] Failed to create conversation:",
2762
2737
  oe
2763
- ), ee(), P("Failed to create conversation");
2738
+ ), ee(), O("Failed to create conversation");
2764
2739
  }
2765
- } catch (K) {
2740
+ } catch (J) {
2766
2741
  console.error(
2767
2742
  "[MessagingShell] Failed to load initial conversation:",
2768
- K
2769
- ), ee(), G.current || P("Failed to load conversation");
2743
+ J
2744
+ ), ee(), G.current || O("Failed to load conversation");
2770
2745
  }
2771
2746
  })();
2772
- }, [i, R, D, A, E]);
2747
+ }, [i, L, D, A, E]);
2773
2748
  const V = H(r);
2774
2749
  V.current = r;
2775
2750
  const Q = W(() => {
2776
- var j;
2777
- I(null), X(!0), (j = V.current) == null || j.call(V);
2751
+ var U;
2752
+ I(null), X(!0), (U = V.current) == null || U.call(V);
2778
2753
  }, []);
2779
- return B ? /* @__PURE__ */ n(Re, {}) : O ? /* @__PURE__ */ n(we, { message: O, onBack: C }) : !D || !R ? /* @__PURE__ */ n(
2754
+ return B ? /* @__PURE__ */ n(Le, {}) : P ? /* @__PURE__ */ n(we, { message: P, onBack: k }) : !D || !L ? /* @__PURE__ */ n(
2780
2755
  we,
2781
2756
  {
2782
2757
  message: "Not connected to messaging service",
2783
- onBack: C
2758
+ onBack: k
2784
2759
  }
2785
- ) : z ? /* @__PURE__ */ n(we, { message: z }) : U && !y ? /* @__PURE__ */ n(we, { message: "Conversation ended" }) : y ? /* @__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(
2760
+ ) : z ? /* @__PURE__ */ n(we, { message: z }) : j && !y ? /* @__PURE__ */ n(we, { message: "Conversation ended" }) : y ? /* @__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(
2786
2761
  fn,
2787
2762
  {
2788
2763
  channel: y,
@@ -2805,13 +2780,13 @@ const Li = ({
2805
2780
  onParticipantNameClick: N,
2806
2781
  renderMessage: _,
2807
2782
  onMessageLinkClick: T,
2808
- showChannelInfo: L,
2783
+ showChannelInfo: R,
2809
2784
  composerInput: M
2810
2785
  },
2811
2786
  y.id
2812
- ) }) }) : /* @__PURE__ */ n(Re, {});
2787
+ ) }) }) : /* @__PURE__ */ n(Le, {});
2813
2788
  };
2814
- function rr(e) {
2789
+ function ar(e) {
2815
2790
  const t = e.state.pending_messages;
2816
2791
  if (t != null && t.length)
2817
2792
  for (const s of t)
@@ -2825,18 +2800,18 @@ const gn = $.createContext({
2825
2800
  renderMessagePreview: void 0,
2826
2801
  channelPreview: void 0,
2827
2802
  viewerLanguage: void 0
2828
- }), ir = gn.Provider, or = () => $.useContext(gn), lr = (e, t) => {
2803
+ }), rr = gn.Provider, ir = () => $.useContext(gn), or = (e, t) => {
2829
2804
  const s = new Date(
2830
2805
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
2831
2806
  ), r = new Date(
2832
2807
  Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())
2833
2808
  ).getTime() - s.getTime();
2834
2809
  return Math.floor(r / (1e3 * 60 * 60 * 24));
2835
- }, cr = (e) => {
2810
+ }, lr = (e) => {
2836
2811
  const t = /* @__PURE__ */ new Date();
2837
2812
  if (Math.floor((t.getTime() - e.getTime()) / 1e3) < 60)
2838
2813
  return "Just now";
2839
- const a = lr(e, t);
2814
+ const a = or(e, t);
2840
2815
  return a === 0 ? e.toLocaleTimeString([], {
2841
2816
  hour: "numeric",
2842
2817
  minute: "2-digit",
@@ -2848,7 +2823,7 @@ const gn = $.createContext({
2848
2823
  });
2849
2824
  }, pn = $.memo(
2850
2825
  (e) => {
2851
- var D, B, O;
2826
+ var D, B, P;
2852
2827
  const { channel: t, unread: s } = e, {
2853
2828
  selectedChannel: a,
2854
2829
  onChannelSelect: r,
@@ -2856,7 +2831,7 @@ const gn = $.createContext({
2856
2831
  channelPreview: o,
2857
2832
  renderMessagePreview: l,
2858
2833
  viewerLanguage: d
2859
- } = or(), { client: u } = ue(), g = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = Kt(t);
2834
+ } = ir(), { client: u } = ue(), g = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = Jt(t);
2860
2835
  if (o)
2861
2836
  return /* @__PURE__ */ n(
2862
2837
  o,
@@ -2870,39 +2845,39 @@ const gn = $.createContext({
2870
2845
  );
2871
2846
  const f = () => {
2872
2847
  t && r(t);
2873
- }, c = (C) => {
2874
- const A = C.key === "Enter" || C.key === " ", E = C.repeat;
2875
- !A || E || (C.preventDefault(), f());
2848
+ }, c = (k) => {
2849
+ const A = k.key === "Enter" || k.key === " ", E = k.repeat;
2850
+ !A || E || (k.preventDefault(), f());
2876
2851
  }, b = Ze(
2877
2852
  (D = t == null ? void 0 : t.state) == null ? void 0 : D.members,
2878
2853
  u == null ? void 0 : u.userID,
2879
2854
  t == null ? void 0 : t.type
2880
2855
  ), w = Zt(b == null ? void 0 : b.user), v = (B = b == null ? void 0 : b.user) == null ? void 0 : B.image, p = (() => {
2881
2856
  var A;
2882
- const C = (A = t == null ? void 0 : t.state) == null ? void 0 : A.messages;
2883
- if (C != null && C.length) {
2884
- for (let E = C.length - 1; E >= 0; E--)
2885
- if (C[E].type !== "system") return C[E];
2857
+ const k = (A = t == null ? void 0 : t.state) == null ? void 0 : A.messages;
2858
+ if (k != null && k.length) {
2859
+ for (let E = k.length - 1; E >= 0; E--)
2860
+ if (k[E].type !== "system") return k[E];
2886
2861
  }
2887
2862
  })(), _ = (() => {
2888
- var z, P, U, X;
2889
- const C = en({
2863
+ var z, O, j, X;
2864
+ const k = en({
2890
2865
  message: p,
2891
2866
  viewerLanguage: d
2892
2867
  });
2893
- if (((z = p == null ? void 0 : p.metadata) == null ? void 0 : z.custom_type) === "MESSAGE_TIP") return C ? `💵 ${C}` : "💵 Sent a tip";
2894
- if (((P = p == null ? void 0 : p.metadata) == null ? void 0 : P.custom_type) === "MESSAGE_PAID") return C ? `💰 ${C}` : "💰 Sent a message";
2895
- if (((U = p == null ? void 0 : p.metadata) == null ? void 0 : U.custom_type) === "MESSAGE_ATTACHMENT")
2896
- return C ? `📎 ${C}` : "📎 Sent an attachment";
2897
- if (C) return C;
2868
+ if (((z = p == null ? void 0 : p.metadata) == null ? void 0 : z.custom_type) === "MESSAGE_TIP") return k ? `💵 ${k}` : "💵 Sent a tip";
2869
+ if (((O = p == null ? void 0 : p.metadata) == null ? void 0 : O.custom_type) === "MESSAGE_PAID") return k ? `💰 ${k}` : "💰 Sent a message";
2870
+ if (((j = p == null ? void 0 : p.metadata) == null ? void 0 : j.custom_type) === "MESSAGE_ATTACHMENT")
2871
+ return k ? `📎 ${k}` : "📎 Sent an attachment";
2872
+ if (k) return k;
2898
2873
  const I = (X = p == null ? void 0 : p.attachments) == null ? void 0 : X[0];
2899
2874
  return I ? I.og_scrape_url ? I.og_scrape_url : I.type === "image" ? "📷 Sent an image" : I.type === "video" ? "🎥 Sent a video" : I.type === "audio" ? "🎵 Sent audio" : I.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
2900
- })(), T = p != null && p.created_at ? cr(new Date(p.created_at)) : "", L = p ? Le(p) : !1, M = l ? l(p, _) : `${L ? "✨ " : ""}${_}`, R = s ?? 0;
2875
+ })(), T = p != null && p.created_at ? lr(new Date(p.created_at)) : "", R = p ? Re(p) : !1, M = l ? l(p, _) : `${R ? "✨ " : ""}${_}`, L = s ?? 0;
2901
2876
  return i && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
2902
2877
  channelId: t == null ? void 0 : t.id,
2903
2878
  isSelected: g,
2904
2879
  participantName: w,
2905
- unreadCount: R,
2880
+ unreadCount: L,
2906
2881
  hasTimestamp: !!T
2907
2882
  }), /* @__PURE__ */ n(
2908
2883
  "div",
@@ -2911,7 +2886,7 @@ const gn = $.createContext({
2911
2886
  tabIndex: 0,
2912
2887
  onClick: f,
2913
2888
  onKeyDown: c,
2914
- className: k(
2889
+ className: C(
2915
2890
  "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring rounded-[12px] [&+&]:mt-2",
2916
2891
  {
2917
2892
  "bg-black/[0.04]": g,
@@ -2923,7 +2898,7 @@ const gn = $.createContext({
2923
2898
  /* @__PURE__ */ n(
2924
2899
  ne,
2925
2900
  {
2926
- id: ((O = b == null ? void 0 : b.user) == null ? void 0 : O.id) || t.id || "unknown",
2901
+ id: ((P = b == null ? void 0 : b.user) == null ? void 0 : P.id) || t.id || "unknown",
2927
2902
  name: w,
2928
2903
  image: v,
2929
2904
  size: 48,
@@ -2935,7 +2910,7 @@ const gn = $.createContext({
2935
2910
  /* @__PURE__ */ h(
2936
2911
  "h3",
2937
2912
  {
2938
- className: k(
2913
+ className: C(
2939
2914
  "text-sm font-medium truncate text-[#191918]"
2940
2915
  ),
2941
2916
  children: [
@@ -2948,7 +2923,7 @@ const gn = $.createContext({
2948
2923
  ] }),
2949
2924
  /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
2950
2925
  /* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: M }),
2951
- R > 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: R > 99 ? "99+" : R })
2926
+ L > 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: L > 99 ? "99+" : L })
2952
2927
  ] })
2953
2928
  ] })
2954
2929
  ] })
@@ -2957,14 +2932,14 @@ const gn = $.createContext({
2957
2932
  }
2958
2933
  );
2959
2934
  pn.displayName = "CustomChannelPreview";
2960
- const dr = { last_message_at: -1 }, ur = $.memo(
2935
+ const cr = { last_message_at: -1 }, dr = $.memo(
2961
2936
  ({
2962
2937
  onChannelSelect: e,
2963
2938
  selectedChannel: t,
2964
2939
  filters: s,
2965
2940
  allowNewMessagesFromUnfilteredChannels: a = !1,
2966
2941
  channelRenderFilterFn: r,
2967
- sort: i = dr,
2942
+ sort: i = cr,
2968
2943
  className: o,
2969
2944
  customEmptyStateIndicator: l,
2970
2945
  channelListPaginator: d = fs,
@@ -2974,10 +2949,10 @@ const dr = { last_message_at: -1 }, ur = $.memo(
2974
2949
  }) => {
2975
2950
  const f = $.useRef(0);
2976
2951
  f.current++;
2977
- const { debug: c = !1 } = Ke(), b = $.useCallback(
2952
+ const { debug: c = !1 } = Je(), b = $.useCallback(
2978
2953
  (v) => {
2979
2954
  for (const p of v)
2980
- rr(p);
2955
+ ar(p);
2981
2956
  return r ? r(v) : v;
2982
2957
  },
2983
2958
  [r]
@@ -3008,11 +2983,11 @@ const dr = { last_message_at: -1 }, ur = $.memo(
3008
2983
  return /* @__PURE__ */ n(
3009
2984
  "div",
3010
2985
  {
3011
- className: k(
2986
+ className: C(
3012
2987
  "messaging-channel-list h-full flex flex-col min-w-0 overflow-hidden",
3013
2988
  o
3014
2989
  ),
3015
- children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(ir, { value: w, children: /* @__PURE__ */ n(
2990
+ children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(rr, { value: w, children: /* @__PURE__ */ n(
3016
2991
  hs,
3017
2992
  {
3018
2993
  filters: s,
@@ -3030,26 +3005,26 @@ const dr = { last_message_at: -1 }, ur = $.memo(
3030
3005
  );
3031
3006
  }
3032
3007
  );
3033
- ur.displayName = "ChannelList";
3034
- const mr = /^([a-z][a-z0-9+.-]*):/i, hr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
3008
+ dr.displayName = "ChannelList";
3009
+ const ur = /^([a-z][a-z0-9+.-]*):/i, mr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
3035
3010
  function rt(e) {
3036
3011
  if (typeof e != "string") return;
3037
3012
  const t = e.trim();
3038
3013
  if (t === "") return;
3039
- const s = mr.exec(t);
3014
+ const s = ur.exec(t);
3040
3015
  if (s) {
3041
3016
  const a = s[1].toLowerCase();
3042
- return hr.has(a) ? t : void 0;
3017
+ return mr.has(a) ? t : void 0;
3043
3018
  }
3044
3019
  return t.startsWith("//") || t.startsWith("/") ? t : `https://${t}`;
3045
3020
  }
3046
- const fr = {
3021
+ const hr = {
3047
3022
  dark: "bg-white text-[#121110] hover:bg-white/90",
3048
3023
  light: "bg-[#121110] text-white hover:bg-[#2a2928]"
3049
- }, gr = ({ variant: e, cta: t }) => {
3050
- const s = k(
3024
+ }, fr = ({ variant: e, cta: t }) => {
3025
+ const s = C(
3051
3026
  "mt-2 inline-flex h-10 w-full items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
3052
- fr[e]
3027
+ hr[e]
3053
3028
  ), a = rt(t.href);
3054
3029
  return a ? /* @__PURE__ */ n(
3055
3030
  "a",
@@ -3076,10 +3051,10 @@ const fr = {
3076
3051
  children: t.label
3077
3052
  }
3078
3053
  );
3079
- }, pr = {
3054
+ }, gr = {
3080
3055
  dark: "text-white",
3081
3056
  light: "text-black/90"
3082
- }, br = "text-white/30", vr = {
3057
+ }, pr = "text-white/30", br = {
3083
3058
  dark: "text-white/55",
3084
3059
  light: "text-black/55"
3085
3060
  }, it = ({
@@ -3094,12 +3069,12 @@ const fr = {
3094
3069
  }) => {
3095
3070
  const d = e === "dark", u = t ?? (d ? s : void 0) ?? "", g = u.trim() !== "", m = a != null && a.trim() !== "", f = typeof r == "string" ? r.trim() : "", c = f !== "", b = o != null;
3096
3071
  if (!g && !m && !c && !b) return null;
3097
- const v = k(
3072
+ const v = C(
3098
3073
  "truncate text-base font-medium leading-6",
3099
- d && !t ? br : pr[e]
3100
- ), p = k(
3074
+ d && !t ? pr : gr[e]
3075
+ ), p = C(
3101
3076
  "truncate text-xs leading-4",
3102
- vr[e]
3077
+ br[e]
3103
3078
  );
3104
3079
  return /* @__PURE__ */ h("div", { className: "px-4 py-3", children: [
3105
3080
  /* @__PURE__ */ h("div", { className: "flex items-end gap-3", children: [
@@ -3107,7 +3082,7 @@ const fr = {
3107
3082
  /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-col gap-1", children: [
3108
3083
  g && /* @__PURE__ */ h("div", { className: "flex min-w-0 items-center gap-2", children: [
3109
3084
  i ? /* @__PURE__ */ n("span", { className: "shrink-0", children: i }) : null,
3110
- /* @__PURE__ */ n("p", { className: k("min-w-0", v), children: u })
3085
+ /* @__PURE__ */ n("p", { className: C("min-w-0", v), children: u })
3111
3086
  ] }),
3112
3087
  m && /* @__PURE__ */ n("p", { className: p, children: a })
3113
3088
  ] }),
@@ -3115,9 +3090,9 @@ const fr = {
3115
3090
  ] }),
3116
3091
  l && /* @__PURE__ */ n("div", { className: "shrink-0", children: l })
3117
3092
  ] }),
3118
- o && /* @__PURE__ */ n(gr, { variant: e, cta: o })
3093
+ o && /* @__PURE__ */ n(fr, { variant: e, cta: o })
3119
3094
  ] });
3120
- }, xr = k(
3095
+ }, vr = C(
3121
3096
  "relative block w-[280px] select-none overflow-hidden rounded-md",
3122
3097
  // 1px hairline border that sits flush with the card chrome — matches
3123
3098
  // the messaging design system's "small border around link attachments"
@@ -3135,8 +3110,8 @@ const fr = {
3135
3110
  bgClassName: l,
3136
3111
  "data-testid": d
3137
3112
  }) => {
3138
- const u = s != null || a != null, g = k(
3139
- xr,
3113
+ const u = s != null || a != null, g = C(
3114
+ vr,
3140
3115
  l ?? (e === "dark" ? "bg-[#121110]" : "bg-white"),
3141
3116
  // `focus-ring` is a design-system utility from the component-library
3142
3117
  // tailwind preset — outline-none + a black 2px focus-visible ring
@@ -3166,7 +3141,7 @@ const fr = {
3166
3141
  onClick: a,
3167
3142
  "aria-label": r,
3168
3143
  "data-testid": d,
3169
- className: k(g, "text-left"),
3144
+ className: C(g, "text-left"),
3170
3145
  children: [
3171
3146
  t,
3172
3147
  m
@@ -3184,17 +3159,17 @@ const fr = {
3184
3159
  ]
3185
3160
  }
3186
3161
  );
3187
- }, wr = {
3162
+ }, xr = {
3188
3163
  dark: "bg-white/10",
3189
3164
  light: "bg-black/5"
3190
- }, Nr = {
3165
+ }, wr = {
3191
3166
  dark: "size-16 text-white/25",
3192
3167
  light: "size-16 text-black/25"
3193
3168
  }, ze = (e, t) => !!t && !!e && ie(e) === "audio", bn = (e, t) => {
3194
3169
  if (!t || !e) return !1;
3195
3170
  const s = ie(e);
3196
3171
  return s === "video" || s === "audio";
3197
- }, ot = "bg-[#F2F3F4]", Oe = ({
3172
+ }, ot = "bg-[#F2F3F4]", Pe = ({
3198
3173
  variant: e,
3199
3174
  thumbnailUrl: t,
3200
3175
  sourceUrl: s,
@@ -3216,7 +3191,7 @@ const fr = {
3216
3191
  ) }) : /* @__PURE__ */ h(
3217
3192
  "div",
3218
3193
  {
3219
- className: k(
3194
+ className: C(
3220
3195
  "relative h-[180px] w-full overflow-hidden",
3221
3196
  d && "bg-black"
3222
3197
  ),
@@ -3243,12 +3218,12 @@ const fr = {
3243
3218
  ) : /* @__PURE__ */ n(
3244
3219
  "div",
3245
3220
  {
3246
- className: k(
3221
+ className: C(
3247
3222
  "flex h-full w-full items-center justify-center",
3248
- wr[e]
3223
+ xr[e]
3249
3224
  ),
3250
3225
  children: ce(r, {
3251
- className: Nr[e],
3226
+ className: wr[e],
3252
3227
  weight: "regular"
3253
3228
  })
3254
3229
  }
@@ -3258,7 +3233,7 @@ const fr = {
3258
3233
  ]
3259
3234
  }
3260
3235
  );
3261
- }, _r = ({
3236
+ }, Nr = ({
3262
3237
  title: e,
3263
3238
  placeholderTitle: t,
3264
3239
  description: s,
@@ -3279,7 +3254,7 @@ const fr = {
3279
3254
  onClick: g,
3280
3255
  "aria-label": "Dismiss attachment",
3281
3256
  className: "flex size-6 items-center justify-center rounded-full bg-[#121110] text-white",
3282
- children: /* @__PURE__ */ n(Pe, { className: "size-3", weight: "bold" })
3257
+ children: /* @__PURE__ */ n(Oe, { className: "size-3", weight: "bold" })
3283
3258
  }
3284
3259
  ) : void 0, w = m ? /* @__PURE__ */ n(
3285
3260
  "button",
@@ -3288,12 +3263,12 @@ const fr = {
3288
3263
  onClick: m,
3289
3264
  "aria-label": "Edit attachment",
3290
3265
  className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
3291
- children: /* @__PURE__ */ n(Os, { className: "size-5", weight: "regular" })
3266
+ children: /* @__PURE__ */ n(Ps, { className: "size-5", weight: "regular" })
3292
3267
  }
3293
3268
  ) : void 0;
3294
3269
  return c ? /* @__PURE__ */ n(De, { variant: "dark", bgClassName: ot, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
3295
3270
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
3296
- Oe,
3271
+ Pe,
3297
3272
  {
3298
3273
  variant: "dark",
3299
3274
  sourceUrl: o,
@@ -3309,7 +3284,7 @@ const fr = {
3309
3284
  topRight: f ? b : void 0,
3310
3285
  children: [
3311
3286
  !f && /* @__PURE__ */ n(
3312
- Oe,
3287
+ Pe,
3313
3288
  {
3314
3289
  variant: "dark",
3315
3290
  thumbnailUrl: i,
@@ -3335,7 +3310,7 @@ const fr = {
3335
3310
  ]
3336
3311
  }
3337
3312
  );
3338
- }, yr = ({
3313
+ }, _r = ({
3339
3314
  title: e,
3340
3315
  description: t,
3341
3316
  url: s,
@@ -3365,7 +3340,7 @@ const fr = {
3365
3340
  "data-testid": "link-attachment",
3366
3341
  children: [
3367
3342
  o === "featured" && /* @__PURE__ */ n(
3368
- Oe,
3343
+ Pe,
3369
3344
  {
3370
3345
  variant: "light",
3371
3346
  thumbnailUrl: r,
@@ -3388,7 +3363,7 @@ const fr = {
3388
3363
  ]
3389
3364
  }
3390
3365
  );
3391
- }, kr = ({
3366
+ }, yr = ({
3392
3367
  title: e,
3393
3368
  placeholderTitle: t,
3394
3369
  description: s,
@@ -3411,7 +3386,7 @@ const fr = {
3411
3386
  bgClassName: ze(r, o) ? ot : void 0,
3412
3387
  children: [
3413
3388
  l === "featured" && /* @__PURE__ */ n(
3414
- Oe,
3389
+ Pe,
3415
3390
  {
3416
3391
  variant: "dark",
3417
3392
  thumbnailUrl: i,
@@ -3436,19 +3411,19 @@ const fr = {
3436
3411
  }
3437
3412
  );
3438
3413
  }, Ri = {
3439
- Composer: _r,
3440
- Sent: kr,
3441
- Received: yr
3414
+ Composer: Nr,
3415
+ Sent: yr,
3416
+ Received: _r
3442
3417
  }, Cr = {
3443
3418
  dark: "bg-[#121110]",
3444
3419
  light: "bg-[#e9eaed]"
3445
- }, Er = {
3420
+ }, kr = {
3446
3421
  dark: "text-white",
3447
3422
  light: "text-[#080707]"
3448
- }, Ir = {
3423
+ }, Er = {
3449
3424
  dark: "border-white/[0.08]",
3450
3425
  light: "border-black/[0.08]"
3451
- }, Sr = (e) => e === "dark" ? "sender" : "receiver", Tr = {
3426
+ }, Ir = (e) => e === "dark" ? "sender" : "receiver", Sr = {
3452
3427
  sender: {
3453
3428
  single: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]",
3454
3429
  first: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[4px]",
@@ -3461,7 +3436,7 @@ const fr = {
3461
3436
  middle: "rounded-tl-[4px] rounded-tr-[18px] rounded-bl-[4px] rounded-br-[18px]",
3462
3437
  end: "rounded-tl-[4px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]"
3463
3438
  }
3464
- }, Ce = ({
3439
+ }, ke = ({
3465
3440
  variant: e,
3466
3441
  text: t,
3467
3442
  bordered: s = !0,
@@ -3470,13 +3445,13 @@ const fr = {
3470
3445
  children: i,
3471
3446
  "data-testid": o
3472
3447
  }) => {
3473
- const l = t != null && t !== "", d = Tr[Sr(e)][a];
3448
+ const l = t != null && t !== "", d = Sr[Ir(e)][a];
3474
3449
  return /* @__PURE__ */ h(
3475
3450
  "div",
3476
3451
  {
3477
3452
  "data-testid": o,
3478
3453
  "data-group-position": a,
3479
- className: k(
3454
+ className: C(
3480
3455
  // 280px-wide bubble — matches the mobile chat attachment width
3481
3456
  // and keeps the document / image / audio bubbles visually
3482
3457
  // consistent inside the conversation timeline. The 8px / 16px
@@ -3486,9 +3461,9 @@ const fr = {
3486
3461
  "relative w-[280px] overflow-hidden px-2 py-2",
3487
3462
  d,
3488
3463
  Cr[e],
3489
- Er[e],
3464
+ kr[e],
3490
3465
  s && "border",
3491
- s && Ir[e],
3466
+ s && Er[e],
3492
3467
  r
3493
3468
  ),
3494
3469
  children: [
@@ -3496,7 +3471,7 @@ const fr = {
3496
3471
  l ? /* @__PURE__ */ n(
3497
3472
  "p",
3498
3473
  {
3499
- className: k(
3474
+ className: C(
3500
3475
  // No `text-*` / `font-*` overrides here — caption inherits
3501
3476
  // the same font family + size as `.str-chat__message-text`
3502
3477
  // so it matches the surrounding `CustomMessage` bubbles.
@@ -3525,22 +3500,22 @@ const fr = {
3525
3500
  a.stopPropagation(), e();
3526
3501
  },
3527
3502
  "aria-label": s,
3528
- className: k(
3503
+ className: C(
3529
3504
  "flex size-6 items-center justify-center rounded-full text-white",
3530
3505
  t === "overlay" ? "bg-[#121110]/85 backdrop-blur" : "bg-white/15 hover:bg-white/25"
3531
3506
  ),
3532
- children: /* @__PURE__ */ n(Pe, { className: "size-3", weight: "bold" })
3507
+ children: /* @__PURE__ */ n(Oe, { className: "size-3", weight: "bold" })
3533
3508
  }
3534
- ), Ie = (e) => e === "received" ? "light" : "dark", Di = ({
3509
+ ), Ie = (e) => e === "received" ? "light" : "dark", Li = ({
3535
3510
  firstOfGroup: e,
3536
3511
  endOfGroup: t,
3537
3512
  groupedByUser: s
3538
- }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", Ar = ({
3513
+ }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", Tr = ({
3539
3514
  src: e,
3540
3515
  mimeType: t,
3541
3516
  filename: s,
3542
3517
  items: a
3543
- }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Mr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
3518
+ }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Ar = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
3544
3519
  /* @__PURE__ */ n(
3545
3520
  "audio",
3546
3521
  {
@@ -3563,19 +3538,19 @@ const fr = {
3563
3538
  preload: l,
3564
3539
  onDismiss: d
3565
3540
  }) => {
3566
- const u = Ie(e), g = e === "composer" && !!d, m = Ar({ src: t, mimeType: s, filename: a, items: r });
3541
+ const u = Ie(e), g = e === "composer" && !!d, m = Tr({ src: t, mimeType: s, filename: a, items: r });
3567
3542
  if (m.length === 0)
3568
3543
  return null;
3569
3544
  const f = l ?? (m.length > 1 ? "none" : "metadata");
3570
3545
  return /* @__PURE__ */ n(
3571
- Ce,
3546
+ ke,
3572
3547
  {
3573
3548
  variant: u,
3574
3549
  text: i,
3575
3550
  groupPosition: o,
3576
3551
  "data-testid": "audio-attachment",
3577
3552
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: m.map((c, b) => /* @__PURE__ */ n(
3578
- Mr,
3553
+ Ar,
3579
3554
  {
3580
3555
  item: c,
3581
3556
  preload: f,
@@ -3589,15 +3564,15 @@ const fr = {
3589
3564
  )) })
3590
3565
  }
3591
3566
  );
3592
- }, Lr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "composer" }), Rr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "sent" }), Dr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "received" }), Or = {
3593
- Composer: Lr,
3567
+ }, Mr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "composer" }), Rr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "sent" }), Lr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "received" }), Dr = {
3568
+ Composer: Mr,
3594
3569
  Sent: Rr,
3595
- Received: Dr
3570
+ Received: Lr
3596
3571
  };
3597
3572
  function Pr(e) {
3598
3573
  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`;
3599
3574
  }
3600
- const zr = {
3575
+ const Or = {
3601
3576
  pdf: "PDF",
3602
3577
  doc: "DOC",
3603
3578
  xls: "XLS",
@@ -3607,7 +3582,7 @@ const zr = {
3607
3582
  text: "TXT",
3608
3583
  markdown: "MD"
3609
3584
  };
3610
- function Fr(e, t) {
3585
+ function zr(e, t) {
3611
3586
  if (t) {
3612
3587
  const r = t.lastIndexOf(".");
3613
3588
  if (r > 0 && r < t.length - 1) {
@@ -3617,7 +3592,7 @@ function Fr(e, t) {
3617
3592
  }
3618
3593
  if (!e) return;
3619
3594
  if (ie(e) === "document") {
3620
- const r = sn(e), i = zr[r];
3595
+ const r = sn(e), i = Or[r];
3621
3596
  if (i) return i;
3622
3597
  if (e === "application/octet-stream") return;
3623
3598
  }
@@ -3625,8 +3600,8 @@ function Fr(e, t) {
3625
3600
  if (!(!a || a === "*"))
3626
3601
  return a.toUpperCase();
3627
3602
  }
3628
- function $r(e, t, s) {
3629
- const a = Fr(e, t), r = typeof s == "number" && s > 0 ? Pr(s) : void 0;
3603
+ function Fr(e, t, s) {
3604
+ const a = zr(e, t), r = typeof s == "number" && s > 0 ? Pr(s) : void 0;
3630
3605
  return [a, r].filter(Boolean).join(" · ") || void 0;
3631
3606
  }
3632
3607
  function ae(e) {
@@ -3637,10 +3612,10 @@ function ae(e) {
3637
3612
  return "download";
3638
3613
  }
3639
3614
  }
3640
- const Br = {
3615
+ const $r = {
3641
3616
  dark: "text-white/55",
3642
3617
  light: "text-black/65"
3643
- }, Ur = {
3618
+ }, Br = {
3644
3619
  dark: "bg-white/10",
3645
3620
  light: "bg-black/5"
3646
3621
  }, jr = {
@@ -3656,16 +3631,16 @@ const Br = {
3656
3631
  activateLabel: o,
3657
3632
  trailingAction: l
3658
3633
  }) => {
3659
- const d = s ?? t ?? "File", u = $r(a, t, r), g = /* @__PURE__ */ n(
3634
+ const d = s ?? t ?? "File", u = Fr(a, t, r), g = /* @__PURE__ */ n(
3660
3635
  "div",
3661
3636
  {
3662
- className: k(
3637
+ className: C(
3663
3638
  "flex size-10 shrink-0 items-center justify-center rounded-sm",
3664
- Ur[e]
3639
+ Br[e]
3665
3640
  ),
3666
3641
  "aria-hidden": !0,
3667
3642
  children: ce(a, {
3668
- className: k("size-6", jr[e]),
3643
+ className: C("size-6", jr[e]),
3669
3644
  weight: "regular"
3670
3645
  })
3671
3646
  }
@@ -3674,9 +3649,9 @@ const Br = {
3674
3649
  u ? /* @__PURE__ */ n(
3675
3650
  "p",
3676
3651
  {
3677
- className: k(
3652
+ className: C(
3678
3653
  "truncate text-xs leading-4",
3679
- Br[e]
3654
+ $r[e]
3680
3655
  ),
3681
3656
  children: u
3682
3657
  }
@@ -3687,7 +3662,7 @@ const Br = {
3687
3662
  type: "button",
3688
3663
  onClick: i,
3689
3664
  "aria-label": o,
3690
- className: k(
3665
+ className: C(
3691
3666
  "flex min-w-0 flex-1 items-center gap-3 rounded-sm text-left transition-colors",
3692
3667
  e === "dark" ? "hover:bg-white/[0.04]" : "hover:bg-black/[0.04]"
3693
3668
  ),
@@ -3719,14 +3694,14 @@ async function xn(e, t) {
3719
3694
  }
3720
3695
  }
3721
3696
  }
3722
- const Vr = ({
3697
+ const Ur = ({
3723
3698
  src: e,
3724
3699
  filename: t,
3725
3700
  fileSize: s,
3726
3701
  mimeType: a,
3727
3702
  title: r,
3728
3703
  items: i
3729
- }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], Gr = ({
3704
+ }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], Vr = ({
3730
3705
  variant: e,
3731
3706
  item: t,
3732
3707
  index: s,
@@ -3760,7 +3735,7 @@ const Vr = ({
3760
3735
  onClick: u,
3761
3736
  onDismiss: g
3762
3737
  }) => {
3763
- const m = Ie(e), f = e === "composer" && !!g, c = Vr({
3738
+ const m = Ie(e), f = e === "composer" && !!g, c = Ur({
3764
3739
  src: t,
3765
3740
  filename: s,
3766
3741
  fileSize: a,
@@ -3779,7 +3754,7 @@ const Vr = ({
3779
3754
  const w = /* @__PURE__ */ n(
3780
3755
  "span",
3781
3756
  {
3782
- className: k(
3757
+ className: C(
3783
3758
  "flex size-8 items-center justify-center rounded-full",
3784
3759
  m === "dark" ? "text-white/70" : "text-black/70"
3785
3760
  ),
@@ -3788,14 +3763,14 @@ const Vr = ({
3788
3763
  }
3789
3764
  );
3790
3765
  return /* @__PURE__ */ n(
3791
- Ce,
3766
+ ke,
3792
3767
  {
3793
3768
  variant: m,
3794
3769
  text: l,
3795
3770
  groupPosition: d,
3796
3771
  "data-testid": "file-attachment",
3797
3772
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: c.map((v, p) => /* @__PURE__ */ n(
3798
- Gr,
3773
+ Vr,
3799
3774
  {
3800
3775
  variant: m,
3801
3776
  item: v,
@@ -3807,10 +3782,10 @@ const Vr = ({
3807
3782
  )) })
3808
3783
  }
3809
3784
  );
3810
- }, Hr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "composer" }), Yr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "sent" }), qr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "received" }), Wr = {
3811
- Composer: Hr,
3812
- Sent: Yr,
3813
- Received: qr
3785
+ }, Gr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "composer" }), Hr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "sent" }), Yr = (e) => /* @__PURE__ */ n(ct, { ...e, state: "received" }), qr = {
3786
+ Composer: Gr,
3787
+ Sent: Hr,
3788
+ Received: Yr
3814
3789
  }, dt = ({
3815
3790
  onPrev: e,
3816
3791
  onNext: t,
@@ -3824,7 +3799,7 @@ const Vr = ({
3824
3799
  onClick: e,
3825
3800
  "aria-label": s,
3826
3801
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
3827
- children: /* @__PURE__ */ n(Ps, { size: 20, weight: "bold", "aria-hidden": !0 })
3802
+ children: /* @__PURE__ */ n(Os, { size: 20, weight: "bold", "aria-hidden": !0 })
3828
3803
  }
3829
3804
  ),
3830
3805
  /* @__PURE__ */ n(
@@ -3854,7 +3829,7 @@ const Vr = ({
3854
3829
  }));
3855
3830
  },
3856
3831
  [l, e, t, o]
3857
- ), g = r ?? s !== "pill", f = { className: k(
3832
+ ), g = r ?? s !== "pill", f = { className: C(
3858
3833
  s === "pill" ? "size-4" : "size-5",
3859
3834
  "shrink-0"
3860
3835
  ), weight: "bold" };
@@ -3865,7 +3840,7 @@ const Vr = ({
3865
3840
  onClick: u,
3866
3841
  disabled: l,
3867
3842
  "aria-label": a,
3868
- className: k(
3843
+ className: C(
3869
3844
  "flex size-8 shrink-0 items-center justify-center rounded-full transition-colors disabled:opacity-70",
3870
3845
  {
3871
3846
  dark: "text-white/70 hover:bg-white/[0.08] hover:text-white",
@@ -3905,7 +3880,7 @@ const Vr = ({
3905
3880
  onClick: u,
3906
3881
  disabled: l,
3907
3882
  "aria-label": g ? a : void 0,
3908
- className: k(
3883
+ className: C(
3909
3884
  "mt-3 inline-flex h-10 w-full items-center justify-center gap-2 rounded-full px-4 text-sm font-medium leading-none transition-colors disabled:opacity-70",
3910
3885
  i === "dark" ? "bg-[#121110] text-white hover:bg-[#2a2928]" : "bg-white text-[#121110] hover:bg-white/90"
3911
3886
  ),
@@ -4028,7 +4003,7 @@ const Vr = ({
4028
4003
  onClick: t,
4029
4004
  "aria-label": "Close viewer",
4030
4005
  className: "mes-media-viewer__action",
4031
- children: /* @__PURE__ */ n(Pe, { size: 20, weight: "bold", "aria-hidden": !0 })
4006
+ children: /* @__PURE__ */ n(Oe, { size: 20, weight: "bold", "aria-hidden": !0 })
4032
4007
  }
4033
4008
  )
4034
4009
  ] })
@@ -4093,7 +4068,7 @@ const Vr = ({
4093
4068
  ]
4094
4069
  }
4095
4070
  ) : null;
4096
- }, Xr = "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", _n = ({
4071
+ }, Wr = "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", _n = ({
4097
4072
  tiles: e,
4098
4073
  onTileActivate: t,
4099
4074
  maxVisible: s = 4,
@@ -4102,14 +4077,14 @@ const Vr = ({
4102
4077
  const r = e.length;
4103
4078
  if (r === 0) return null;
4104
4079
  const i = e.slice(0, Math.min(r, s)), o = r - i.length, l = (d, u, g) => {
4105
- const m = k(Xr, "h-full w-full");
4080
+ const m = C(Wr, "h-full w-full");
4106
4081
  return t ? /* @__PURE__ */ h(
4107
4082
  "button",
4108
4083
  {
4109
4084
  type: "button",
4110
4085
  onClick: () => t(u),
4111
4086
  "aria-label": d.ariaLabel ?? `Open media ${u + 1}`,
4112
- className: k(m, "cursor-zoom-in"),
4087
+ className: C(m, "cursor-zoom-in"),
4113
4088
  children: [
4114
4089
  d.content,
4115
4090
  g
@@ -4121,10 +4096,10 @@ const Vr = ({
4121
4096
  g
4122
4097
  ] }, u);
4123
4098
  };
4124
- return i.length === 1 ? /* @__PURE__ */ n("div", { className: k("aspect-square w-full", a), children: l(i[0], 0) }) : i.length === 2 ? /* @__PURE__ */ n(
4099
+ return i.length === 1 ? /* @__PURE__ */ n("div", { className: C("aspect-square w-full", a), children: l(i[0], 0) }) : i.length === 2 ? /* @__PURE__ */ n(
4125
4100
  "div",
4126
4101
  {
4127
- className: k(
4102
+ className: C(
4128
4103
  "grid aspect-[16/9] w-full grid-cols-2 gap-0.5",
4129
4104
  a
4130
4105
  ),
@@ -4133,7 +4108,7 @@ const Vr = ({
4133
4108
  ) : i.length === 3 ? /* @__PURE__ */ h(
4134
4109
  "div",
4135
4110
  {
4136
- className: k(
4111
+ className: C(
4137
4112
  "grid aspect-[4/3] w-full grid-cols-2 grid-rows-2 gap-0.5",
4138
4113
  a
4139
4114
  ),
@@ -4146,7 +4121,7 @@ const Vr = ({
4146
4121
  ) : /* @__PURE__ */ n(
4147
4122
  "div",
4148
4123
  {
4149
- className: k(
4124
+ className: C(
4150
4125
  "grid aspect-[4/3] w-full grid-cols-2 grid-rows-2 gap-0.5",
4151
4126
  a
4152
4127
  ),
@@ -4171,7 +4146,7 @@ const Vr = ({
4171
4146
  [e]
4172
4147
  ), o = W(() => s(!1), []);
4173
4148
  return { viewerOpen: t, viewerIndex: a, handleActivate: i, closeViewer: o };
4174
- }, Jr = (e, t, s, a) => ({
4149
+ }, Xr = (e, t, s, a) => ({
4175
4150
  ariaLabel: `Open image ${t + 1} of ${s}`,
4176
4151
  content: /* @__PURE__ */ n(
4177
4152
  "img",
@@ -4194,7 +4169,7 @@ const Vr = ({
4194
4169
  src: s.src,
4195
4170
  alt: s.alt,
4196
4171
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
4197
- })), Zr = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
4172
+ })), Jr = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
4198
4173
  const { viewerOpen: o, viewerIndex: l, handleActivate: d, closeViewer: u } = Se(
4199
4174
  r
4200
4175
  );
@@ -4230,7 +4205,7 @@ const Vr = ({
4230
4205
  }
4231
4206
  )
4232
4207
  ] });
4233
- }, kn = ({
4208
+ }, Cn = ({
4234
4209
  state: e,
4235
4210
  src: t,
4236
4211
  alt: s,
@@ -4247,10 +4222,10 @@ const Vr = ({
4247
4222
  if (u.length === 0)
4248
4223
  return null;
4249
4224
  const w = u.map(
4250
- (v, p) => Jr(v, p, u.length, l)
4225
+ (v, p) => Xr(v, p, u.length, l)
4251
4226
  );
4252
4227
  return /* @__PURE__ */ h(
4253
- Ce,
4228
+ ke,
4254
4229
  {
4255
4230
  variant: g,
4256
4231
  text: i,
@@ -4270,11 +4245,11 @@ const Vr = ({
4270
4245
  ]
4271
4246
  }
4272
4247
  );
4273
- }, Qr = (e) => /* @__PURE__ */ n(Zr, { ...e }), ei = (e) => /* @__PURE__ */ n(kn, { ...e, state: "sent" }), ti = (e) => /* @__PURE__ */ n(kn, { ...e, state: "received" }), ni = {
4274
- Composer: Qr,
4275
- Sent: ei,
4276
- Received: ti
4277
- }, si = ({
4248
+ }, Zr = (e) => /* @__PURE__ */ n(Jr, { ...e }), Qr = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "sent" }), ei = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "received" }), ti = {
4249
+ Composer: Zr,
4250
+ Sent: Qr,
4251
+ Received: ei
4252
+ }, ni = ({
4278
4253
  open: e,
4279
4254
  items: t,
4280
4255
  initialIndex: s = 0,
@@ -4288,7 +4263,7 @@ const Vr = ({
4288
4263
  () => (l == null ? void 0 : l.filename) ?? (l ? ae(l.src) : "document"),
4289
4264
  [l]
4290
4265
  ), u = re(
4291
- () => l ? ai(l.src) : void 0,
4266
+ () => l ? si(l.src) : void 0,
4292
4267
  [l]
4293
4268
  );
4294
4269
  return !l || !u ? null : /* @__PURE__ */ h(
@@ -4322,16 +4297,16 @@ const Vr = ({
4322
4297
  ]
4323
4298
  }
4324
4299
  );
4325
- }, ai = (e) => {
4300
+ }, si = (e) => {
4326
4301
  const t = e.indexOf("#"), s = t === -1 ? e : e.slice(0, t), a = t === -1 ? "" : e.slice(t + 1), r = new URLSearchParams(a);
4327
4302
  return r.has("toolbar") || r.set("toolbar", "0"), r.has("navpanes") || r.set("navpanes", "0"), `${s}#${r.toString()}`;
4328
- }, ri = ({
4303
+ }, ai = ({
4329
4304
  src: e,
4330
4305
  filename: t,
4331
4306
  fileSize: s,
4332
4307
  title: a,
4333
4308
  items: r
4334
- }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], ii = ({
4309
+ }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], ri = ({
4335
4310
  variant: e,
4336
4311
  item: t,
4337
4312
  index: s,
@@ -4364,7 +4339,7 @@ const Vr = ({
4364
4339
  onClick: d,
4365
4340
  onDismiss: u
4366
4341
  }) => {
4367
- const g = Ie(e), m = ri({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: w } = Se(
4342
+ const g = Ie(e), m = ai({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: w } = Se(
4368
4343
  d
4369
4344
  ), v = e === "composer" && !!u;
4370
4345
  if (m.length === 0)
@@ -4374,7 +4349,7 @@ const Vr = ({
4374
4349
  filename: N.filename ?? ae(N.src)
4375
4350
  }));
4376
4351
  return /* @__PURE__ */ h(
4377
- Ce,
4352
+ ke,
4378
4353
  {
4379
4354
  variant: g,
4380
4355
  text: o,
@@ -4382,7 +4357,7 @@ const Vr = ({
4382
4357
  "data-testid": "pdf-attachment",
4383
4358
  children: [
4384
4359
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: m.map((N, _) => {
4385
- const T = N.filename ?? ae(N.src), L = v && _ === 0 ? /* @__PURE__ */ n(Ee, { onClick: u, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4360
+ const T = N.filename ?? ae(N.src), R = v && _ === 0 ? /* @__PURE__ */ n(Ee, { onClick: u, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4386
4361
  wn,
4387
4362
  {
4388
4363
  url: N.src,
@@ -4393,19 +4368,19 @@ const Vr = ({
4393
4368
  }
4394
4369
  );
4395
4370
  return /* @__PURE__ */ n(
4396
- ii,
4371
+ ri,
4397
4372
  {
4398
4373
  variant: g,
4399
4374
  item: N,
4400
4375
  index: _,
4401
4376
  onActivate: b,
4402
- trailingAction: L
4377
+ trailingAction: R
4403
4378
  },
4404
4379
  `${N.src}-${_}`
4405
4380
  );
4406
4381
  }) }),
4407
4382
  /* @__PURE__ */ n(
4408
- si,
4383
+ ni,
4409
4384
  {
4410
4385
  open: f,
4411
4386
  items: p,
@@ -4416,11 +4391,11 @@ const Vr = ({
4416
4391
  ]
4417
4392
  }
4418
4393
  );
4419
- }, oi = (e) => /* @__PURE__ */ n(ht, { ...e, state: "composer" }), li = (e) => /* @__PURE__ */ n(ht, { ...e, state: "sent" }), ci = (e) => /* @__PURE__ */ n(ht, { ...e, state: "received" }), di = {
4420
- Composer: oi,
4421
- Sent: li,
4422
- Received: ci
4423
- }, Cn = ({
4394
+ }, ii = (e) => /* @__PURE__ */ n(ht, { ...e, state: "composer" }), oi = (e) => /* @__PURE__ */ n(ht, { ...e, state: "sent" }), li = (e) => /* @__PURE__ */ n(ht, { ...e, state: "received" }), ci = {
4395
+ Composer: ii,
4396
+ Sent: oi,
4397
+ Received: li
4398
+ }, kn = ({
4424
4399
  open: e,
4425
4400
  items: t,
4426
4401
  initialIndex: s = 0,
@@ -4470,7 +4445,7 @@ const Vr = ({
4470
4445
  ]
4471
4446
  }
4472
4447
  ) : null;
4473
- }, ui = () => /* @__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(Ye, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), En = ({
4448
+ }, di = () => /* @__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(Ye, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), En = ({
4474
4449
  item: e,
4475
4450
  index: t
4476
4451
  }) => /* @__PURE__ */ h("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -4492,11 +4467,11 @@ const Vr = ({
4492
4467
  "aria-hidden": !0
4493
4468
  }
4494
4469
  ) }),
4495
- /* @__PURE__ */ n(ui, {})
4496
- ] }), mi = (e, t, s) => ({
4470
+ /* @__PURE__ */ n(di, {})
4471
+ ] }), ui = (e, t, s) => ({
4497
4472
  ariaLabel: `Play video ${t + 1} of ${s}`,
4498
4473
  content: /* @__PURE__ */ n(En, { item: e, index: t })
4499
- }), hi = ({
4474
+ }), mi = ({
4500
4475
  src: e,
4501
4476
  poster: t,
4502
4477
  mimeType: s,
@@ -4508,7 +4483,7 @@ const Vr = ({
4508
4483
  mimeType: s.mimeType,
4509
4484
  preload: s.preload,
4510
4485
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
4511
- })), fi = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
4486
+ })), hi = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
4512
4487
  const { viewerOpen: l, viewerIndex: d, handleActivate: u, closeViewer: g } = Se(
4513
4488
  i
4514
4489
  );
@@ -4525,7 +4500,7 @@ const Vr = ({
4525
4500
  ),
4526
4501
  o ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(Ee, { onClick: o }) }) : null,
4527
4502
  /* @__PURE__ */ n(
4528
- Cn,
4503
+ kn,
4529
4504
  {
4530
4505
  open: l,
4531
4506
  items: In(
@@ -4549,16 +4524,16 @@ const Vr = ({
4549
4524
  preload: d,
4550
4525
  onClick: u
4551
4526
  }) => {
4552
- const g = hi({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Ie(e), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: w } = Se(
4527
+ const g = mi({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Ie(e), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: w } = Se(
4553
4528
  u
4554
4529
  );
4555
4530
  if (g.length === 0)
4556
4531
  return null;
4557
4532
  const v = g.map(
4558
- (p, N) => mi(p, N, g.length)
4533
+ (p, N) => ui(p, N, g.length)
4559
4534
  );
4560
4535
  return /* @__PURE__ */ h(
4561
- Ce,
4536
+ ke,
4562
4537
  {
4563
4538
  variant: m,
4564
4539
  text: o,
@@ -4574,7 +4549,7 @@ const Vr = ({
4574
4549
  }
4575
4550
  ) }),
4576
4551
  /* @__PURE__ */ n(
4577
- Cn,
4552
+ kn,
4578
4553
  {
4579
4554
  open: f,
4580
4555
  items: In(g, r),
@@ -4585,17 +4560,17 @@ const Vr = ({
4585
4560
  ]
4586
4561
  }
4587
4562
  );
4588
- }, gi = (e) => /* @__PURE__ */ n(fi, { ...e }), pi = (e) => /* @__PURE__ */ n(Sn, { ...e, state: "sent" }), bi = (e) => /* @__PURE__ */ n(Sn, { ...e, state: "received" }), vi = {
4589
- Composer: gi,
4590
- Sent: pi,
4591
- Received: bi
4592
- }, Oi = {
4593
- Image: ni,
4594
- Video: vi,
4595
- Audio: Or,
4596
- Pdf: di,
4597
- File: Wr
4598
- }, xi = ({
4563
+ }, fi = (e) => /* @__PURE__ */ n(hi, { ...e }), gi = (e) => /* @__PURE__ */ n(Sn, { ...e, state: "sent" }), pi = (e) => /* @__PURE__ */ n(Sn, { ...e, state: "received" }), bi = {
4564
+ Composer: fi,
4565
+ Sent: gi,
4566
+ Received: pi
4567
+ }, Di = {
4568
+ Image: ti,
4569
+ Video: bi,
4570
+ Audio: Dr,
4571
+ Pdf: ci,
4572
+ File: qr
4573
+ }, vi = ({
4599
4574
  question: e,
4600
4575
  onClick: t,
4601
4576
  loading: s = !1,
@@ -4607,7 +4582,7 @@ const Vr = ({
4607
4582
  onClick: t,
4608
4583
  disabled: s,
4609
4584
  style: { backgroundColor: "#E6E5E3" },
4610
- className: k(
4585
+ className: C(
4611
4586
  "w-full text-center p-4 rounded-xl text-charcoal font-medium transition-colors focus-ring",
4612
4587
  {
4613
4588
  "hover:brightness-95 active:brightness-90": !s,
@@ -4646,7 +4621,7 @@ const Vr = ({
4646
4621
  children: [
4647
4622
  a && /* @__PURE__ */ n("p", { className: "text-md text-charcoal mb-4", children: a }),
4648
4623
  l.map((d) => /* @__PURE__ */ n(
4649
- xi,
4624
+ vi,
4650
4625
  {
4651
4626
  question: d.question,
4652
4627
  onClick: () => t(d.id),
@@ -4661,39 +4636,39 @@ const Vr = ({
4661
4636
  };
4662
4637
  export {
4663
4638
  an as A,
4664
- Mi as B,
4665
- tr as C,
4666
- ka as D,
4639
+ Ai as B,
4640
+ er as C,
4641
+ ya as D,
4667
4642
  Ks as E,
4668
4643
  Pi as F,
4669
4644
  Fs as G,
4670
4645
  Ri as L,
4671
- Ti as M,
4646
+ Si as M,
4672
4647
  be as a,
4673
4648
  ne as b,
4674
- ur as c,
4649
+ dr as c,
4675
4650
  fn as d,
4676
- Ai as e,
4677
- xi as f,
4651
+ Ti as e,
4652
+ vi as f,
4678
4653
  ie as g,
4679
- Ut as h,
4680
- Oi as i,
4681
- Aa as j,
4682
- Si as k,
4683
- Li as l,
4684
- $r as m,
4654
+ jt as h,
4655
+ Di as i,
4656
+ Ta as j,
4657
+ Ii as k,
4658
+ Mi as l,
4659
+ Fr as m,
4685
4660
  Pr as n,
4686
- cr as o,
4687
- Fr as p,
4661
+ lr as o,
4662
+ zr as p,
4688
4663
  en as q,
4689
4664
  ce as r,
4690
4665
  ln as s,
4691
- js as t,
4692
- Di as u,
4693
- Zs as v,
4666
+ Us as t,
4667
+ Li as u,
4668
+ Js as v,
4694
4669
  Ze as w,
4695
4670
  nt as x,
4696
4671
  st as y,
4697
4672
  Zt as z
4698
4673
  };
4699
- //# sourceMappingURL=index-CXWxy_j9.js.map
4674
+ //# sourceMappingURL=index-BVpq3q3z.js.map