@linktr.ee/messaging-react 3.1.1 → 3.1.2-rc-1780563075

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 (34) hide show
  1. package/dist/{Card-Bh-xdrvU.cjs → Card-0J3_7gmN.cjs} +2 -2
  2. package/dist/{Card-Bh-xdrvU.cjs.map → Card-0J3_7gmN.cjs.map} +1 -1
  3. package/dist/{Card-C8Q8MH6Y.js → Card-CserQom-.js} +2 -2
  4. package/dist/{Card-C8Q8MH6Y.js.map → Card-CserQom-.js.map} +1 -1
  5. package/dist/{Card-C33YVsqY.cjs → Card-DI2viIxR.cjs} +2 -2
  6. package/dist/{Card-C33YVsqY.cjs.map → Card-DI2viIxR.cjs.map} +1 -1
  7. package/dist/{Card-D8QPP3I9.js → Card-DOcs__XO.js} +2 -2
  8. package/dist/{Card-D8QPP3I9.js.map → Card-DOcs__XO.js.map} +1 -1
  9. package/dist/{Card-DO7ipVZF.cjs → Card-EqHFqs6U.cjs} +2 -2
  10. package/dist/{Card-DO7ipVZF.cjs.map → Card-EqHFqs6U.cjs.map} +1 -1
  11. package/dist/{Card-Bm_eCczn.js → Card-MDGTBRIk.js} +3 -3
  12. package/dist/{Card-Bm_eCczn.js.map → Card-MDGTBRIk.js.map} +1 -1
  13. package/dist/{LockedThumbnail-yEutwXEz.cjs → LockedThumbnail-CJTQSHKu.cjs} +2 -2
  14. package/dist/{LockedThumbnail-yEutwXEz.cjs.map → LockedThumbnail-CJTQSHKu.cjs.map} +1 -1
  15. package/dist/{LockedThumbnail-6Ykc8JiU.js → LockedThumbnail-Cw7R8xmf.js} +2 -2
  16. package/dist/{LockedThumbnail-6Ykc8JiU.js.map → LockedThumbnail-Cw7R8xmf.js.map} +1 -1
  17. package/dist/assets/index.css +1 -1
  18. package/dist/index-Dy7wBqvi.cjs +2 -0
  19. package/dist/index-Dy7wBqvi.cjs.map +1 -0
  20. package/dist/{index-Cj6b1oEe.js → index-UtNoTrrb.js} +309 -318
  21. package/dist/index-UtNoTrrb.js.map +1 -0
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +1 -1
  24. package/package.json +2 -1
  25. package/src/components/Avatar/index.tsx +1 -4
  26. package/src/components/ChannelList/CustomChannelPreview.tsx +9 -11
  27. package/src/components/ChannelView.tsx +14 -15
  28. package/src/components/CustomMessage/index.tsx +1 -1
  29. package/src/components/CustomMessageInput/index.tsx +1 -1
  30. package/src/providers/MessagingProvider.tsx +1 -1
  31. package/src/styles.css +53 -10
  32. package/dist/index-Cj6b1oEe.js.map +0 -1
  33. package/dist/index-DluSX5DB.cjs +0 -2
  34. package/dist/index-DluSX5DB.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 z, { createContext as He, useContext as Se, useCallback as q, useState as O, useRef as X, useEffect as J, useMemo as ne, Suspense as Ye } from "react";
3
- import { StreamChatService as In } from "@linktr.ee/messaging-core";
4
- import { Chat as Sn, DateSeparator as Tn, useChannelStateContext as de, useChatContext as qe, areMessageUIPropsEqual as An, useMessageReminder as Mn, useComponentContext as Ut, Attachment as Dn, EditMessageModal as Rn, MessageBlocked as Ln, MessageBouncePrompt as Pn, MessageDeleted as On, MessageIsThreadReplyInChannelButtonIndicator as zn, MessageRepliesCountButton as Fn, ReminderNotification as $n, StreamedMessageText as Bn, messageHasAttachments as jn, messageHasReactions as Vn, isDateSeparatorMessage as Un, isMessageBlocked as Gn, isMessageBounced as Hn, MessageBounceModal as Yn, MessageText as Mt, Poll as qn, MessageErrorIcon as Wn, useMessageContext as be, useMessageComposer as Xn, useStateStore as Kn, MessageInput as Jn, useMessageInputContext as Zn, useMessageComposerHasSendableData as Qn, AttachmentPreviewList as es, QuotedMessagePreview as ts, TextareaComposer as ns, MessageTimestamp as De, AIStates as Re, useTypingContext as ss, useAIState as as, Channel as rs, WithComponents as is, Window as os, MessageList as ls, ChannelList as cs } from "stream-chat-react";
5
- import { StarIcon as $e, XIcon as pe, SpinnerGapIcon as Le, SignOutIcon as ds, ProhibitInsetIcon as Dt, FlagIcon as Gt, FileIcon as Ht, ImageIcon as us, SpeakerHighIcon as ms, VideoCameraIcon as Yt, FileMdIcon as hs, FileTextIcon as fs, FileZipIcon as gs, FilePptIcon as bs, FileCsvIcon as ps, FileXlsIcon as vs, FileDocIcon as xs, FilePdfIcon as ws, CircleNotchIcon as fe, PlayIcon as Be, PauseIcon as Ns, LinkIcon as _s, DownloadSimpleIcon as ge, GiftIcon as ys, ThumbsUpIcon as Cs, ThumbsDownIcon as ks, TrashSimpleIcon as Es, ArrowUpIcon as Is, SparkleIcon as je, ProhibitIcon as Ss, ArrowLeftIcon as Rt, CaretRightIcon as Ve, DotsThreeIcon as Lt, PencilSimpleIcon as Ts, CaretLeftIcon as As } from "@phosphor-icons/react";
2
+ import z, { createContext as Ge, useContext as Se, useCallback as q, useState as O, useRef as X, useEffect as J, useMemo as ne, Suspense as He } from "react";
3
+ import { StreamChatService as En } from "@linktr.ee/messaging-core";
4
+ import { Chat as In, DateSeparator as Sn, useChannelStateContext as ce, useChatContext as Ye, areMessageUIPropsEqual as Tn, useMessageReminder as An, useComponentContext as Vt, Attachment as Mn, EditMessageModal as Dn, MessageBlocked as Rn, MessageBouncePrompt as Ln, MessageDeleted as Pn, MessageIsThreadReplyInChannelButtonIndicator as On, MessageRepliesCountButton as zn, ReminderNotification as Fn, StreamedMessageText as $n, messageHasAttachments as Bn, messageHasReactions as jn, isDateSeparatorMessage as Vn, isMessageBlocked as Un, isMessageBounced as Gn, MessageBounceModal as Hn, MessageText as At, Poll as Yn, MessageErrorIcon as qn, useMessageContext as be, useMessageComposer as Wn, useStateStore as Xn, MessageInput as Kn, useMessageInputContext as Jn, useMessageComposerHasSendableData as Zn, AttachmentPreviewList as Qn, QuotedMessagePreview as es, TextareaComposer as ts, MessageTimestamp as De, AIStates as Re, useTypingContext as ns, useAIState as ss, Channel as as, WithComponents as rs, Window as is, MessageList as os, ChannelList as ls } from "stream-chat-react";
5
+ import { StarIcon as $e, XIcon as pe, SpinnerGapIcon as Le, SignOutIcon as cs, ProhibitInsetIcon as Mt, FlagIcon as Ut, FileIcon as Gt, ImageIcon as ds, SpeakerHighIcon as us, VideoCameraIcon as Ht, FileMdIcon as ms, FileTextIcon as hs, FileZipIcon as fs, FilePptIcon as gs, FileCsvIcon as bs, FileXlsIcon as ps, FileDocIcon as vs, FilePdfIcon as xs, CircleNotchIcon as fe, PlayIcon as Be, PauseIcon as ws, LinkIcon as Ns, DownloadSimpleIcon as ge, GiftIcon as _s, ThumbsUpIcon as ys, ThumbsDownIcon as Cs, TrashSimpleIcon as ks, ArrowUpIcon as Es, SparkleIcon as je, ProhibitIcon as Is, ArrowLeftIcon as Dt, DotsThreeIcon as Rt, PencilSimpleIcon as Ss, CaretLeftIcon as Ts, CaretRightIcon as As } from "@phosphor-icons/react";
6
6
  import y from "classnames";
7
- import { MessageActions as Ms, DefaultDropdownActionButton as qt } from "stream-chat-react/experimental";
8
- import { LinkPreviewsManager as Pt } from "stream-chat";
9
- const Wt = He({
7
+ import { MessageActions as Ms, DefaultDropdownActionButton as Yt } from "stream-chat-react/experimental";
8
+ import { LinkPreviewsManager as Lt } from "stream-chat";
9
+ const qt = Ge({
10
10
  service: null,
11
11
  client: null,
12
12
  isConnected: !1,
@@ -16,7 +16,7 @@ const Wt = He({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), We = () => Se(Wt), xi = ({
19
+ }), qe = () => Se(qt), xi = ({
20
20
  children: e,
21
21
  user: t,
22
22
  serviceConfig: s,
@@ -80,7 +80,7 @@ const Wt = He({
80
80
  apiKey: (a == null ? void 0 : a.substring(0, 8)) + "...",
81
81
  serviceConfigChanged: w.current.serviceConfig !== s
82
82
  });
83
- const C = new In({
83
+ const C = new En({
84
84
  ...s,
85
85
  apiKey: a,
86
86
  debug: i
@@ -207,17 +207,17 @@ const Wt = He({
207
207
  renderCount: A.current,
208
208
  willRenderChat: !!(m && u),
209
209
  contextValueReady: !!R
210
- }), /* @__PURE__ */ n(Wt.Provider, { value: R, children: m && u ? /* @__PURE__ */ n(
211
- Sn,
210
+ }), /* @__PURE__ */ n(qt.Provider, { value: R, children: m && u ? /* @__PURE__ */ n(
211
+ In,
212
212
  {
213
213
  client: m,
214
214
  customClasses: {
215
- channelList: "str-chat__channel-list str-chat__channel-list-react bg-transparent lg:border-r-2 border-r-0 border-[#0000000A]"
215
+ channelList: "str-chat__channel-list str-chat__channel-list-react bg-transparent lg:border-r-2 border-r-0 border-[#0000000A] p-4"
216
216
  },
217
217
  children: e
218
218
  }
219
219
  ) : e });
220
- }, Ds = () => We(), Xt = (e) => {
220
+ }, Ds = () => qe(), Wt = (e) => {
221
221
  var a, r;
222
222
  const [t, s] = O(
223
223
  !!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
@@ -243,14 +243,14 @@ const Wt = He({
243
243
  function Ls(e) {
244
244
  return Rs.test(e.trim());
245
245
  }
246
- function Ot(e, t) {
246
+ function Pt(e, t) {
247
247
  const s = e == null ? void 0 : e.trim();
248
248
  return !s || t && s === t ? !1 : !Ls(s);
249
249
  }
250
250
  function Te(e) {
251
- return Ot(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Ot(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
251
+ return Pt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Pt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
252
252
  }
253
- const zt = [
253
+ const Ot = [
254
254
  "🍎",
255
255
  // Apple
256
256
  "🍌",
@@ -287,8 +287,8 @@ function Ps(e) {
287
287
  return Math.abs(t);
288
288
  }
289
289
  function Os(e) {
290
- const s = Ps(e) % zt.length;
291
- return zt[s];
290
+ const s = Ps(e) % Ot.length;
291
+ return Ot[s];
292
292
  }
293
293
  const ae = ({
294
294
  id: e,
@@ -299,10 +299,7 @@ const ae = ({
299
299
  shape: i = "squircle",
300
300
  dmAgentEnabled: o = !1
301
301
  }) => {
302
- const l = Os(e), m = s < 32 ? "text-xs" : s < 56 ? "text-sm" : s < 120 ? "text-lg" : "text-4xl", g = s >= 40 ? 2 : 1, u = i === "circle" ? { borderRadius: "50%" } : {
303
- borderRadius: "33%",
304
- cornerShape: "superellipse(1.3)"
305
- }, f = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: u, children: t ? /* @__PURE__ */ n(
302
+ const l = Os(e), m = s < 32 ? "text-xs" : s < 56 ? "text-sm" : s < 120 ? "text-lg" : "text-4xl", g = s >= 40 ? 2 : 1, u = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, f = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: u, children: t ? /* @__PURE__ */ n(
306
303
  "img",
307
304
  {
308
305
  src: t,
@@ -425,7 +422,7 @@ const $s = ({
425
422
  customChannelActions: N
426
423
  }) => {
427
424
  var B, H, Y, $;
428
- const { service: v, debug: x } = We(), [w, A] = O(!1), [T, S] = O(!1), [R, I] = O(!1), C = q(async () => {
425
+ const { service: v, debug: x } = qe(), [w, A] = O(!1), [T, S] = O(!1), [R, I] = O(!1), C = q(async () => {
429
426
  var b;
430
427
  if (!(!m || !v || !((b = s == null ? void 0 : s.user) != null && b.id)))
431
428
  try {
@@ -557,7 +554,7 @@ const $s = ({
557
554
  disabled: T,
558
555
  "aria-busy": T,
559
556
  children: [
560
- T ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(ds, { className: "h-5 w-5" }),
557
+ T ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(cs, { className: "h-5 w-5" }),
561
558
  /* @__PURE__ */ n("span", { children: "Delete Conversation" })
562
559
  ]
563
560
  }
@@ -569,7 +566,7 @@ const $s = ({
569
566
  disabled: R,
570
567
  "aria-busy": R,
571
568
  children: [
572
- R ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Dt, { className: "h-5 w-5" }),
569
+ R ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Mt, { className: "h-5 w-5" }),
573
570
  /* @__PURE__ */ n("span", { children: "Unblock" })
574
571
  ]
575
572
  }
@@ -580,13 +577,13 @@ const $s = ({
580
577
  disabled: R,
581
578
  "aria-busy": R,
582
579
  children: [
583
- R ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Dt, { className: "h-5 w-5" }),
580
+ R ? /* @__PURE__ */ n(Le, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Mt, { className: "h-5 w-5" }),
584
581
  /* @__PURE__ */ n("span", { children: "Block" })
585
582
  ]
586
583
  }
587
584
  ) }),
588
585
  g && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ h(ye, { variant: "danger", onClick: V, children: [
589
- /* @__PURE__ */ n(Gt, { className: "h-5 w-5" }),
586
+ /* @__PURE__ */ n(Ut, { className: "h-5 w-5" }),
590
587
  /* @__PURE__ */ n("span", { children: "Report" })
591
588
  ] }) }),
592
589
  N
@@ -596,20 +593,20 @@ const $s = ({
596
593
  }
597
594
  )
598
595
  );
599
- }, Bs = (e) => /* @__PURE__ */ n(Tn, { ...e, position: "center" }), Ue = "vote_up", Ge = "vote_down";
596
+ }, Bs = (e) => /* @__PURE__ */ n(Sn, { ...e, position: "center" }), Ve = "vote_up", Ue = "vote_down";
600
597
  function js(e) {
601
- return e != null && e.length ? e.some((t) => t.type === Ge) ? "down" : e.some((t) => t.type === Ue) ? "up" : null : null;
598
+ return e != null && e.length ? e.some((t) => t.type === Ue) ? "down" : e.some((t) => t.type === Ve) ? "up" : null : null;
602
599
  }
603
600
  function Vs(e) {
604
- const { channel: t } = de(), { client: s } = qe("useMessageVote"), a = ne(
601
+ const { channel: t } = ce(), { client: s } = Ye("useMessageVote"), a = ne(
605
602
  () => js(e.own_reactions),
606
603
  [e.own_reactions]
607
604
  ), r = q(async () => {
608
605
  if (s != null && s.userID)
609
606
  try {
610
- a === "up" ? await t.deleteReaction(e.id, Ue) : await t.sendReaction(
607
+ a === "up" ? await t.deleteReaction(e.id, Ve) : await t.sendReaction(
611
608
  e.id,
612
- { type: Ue },
609
+ { type: Ve },
613
610
  { enforce_unique: !0, skip_push: !0 }
614
611
  );
615
612
  } catch {
@@ -617,9 +614,9 @@ function Vs(e) {
617
614
  }, [t, s == null ? void 0 : s.userID, e.id, a]), i = q(async () => {
618
615
  if (s != null && s.userID)
619
616
  try {
620
- a === "down" ? await t.deleteReaction(e.id, Ge) : await t.sendReaction(
617
+ a === "down" ? await t.deleteReaction(e.id, Ue) : await t.sendReaction(
621
618
  e.id,
622
- { type: Ge },
619
+ { type: Ue },
623
620
  { enforce_unique: !0, skip_push: !0 }
624
621
  );
625
622
  } catch {
@@ -630,7 +627,7 @@ function Vs(e) {
630
627
  function Us(e) {
631
628
  return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
632
629
  }
633
- function Kt({
630
+ function Xt({
634
631
  message: e,
635
632
  viewerLanguage: t
636
633
  }) {
@@ -638,13 +635,13 @@ function Kt({
638
635
  const s = e == null ? void 0 : e.text, a = Us(t);
639
636
  return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? s : s;
640
637
  }
641
- const Gs = z.lazy(() => import("./Card-D8QPP3I9.js")), Hs = z.lazy(() => import("./Card-C8Q8MH6Y.js")), Ys = z.lazy(() => import("./Card-Bm_eCczn.js")), Xe = () => /* @__PURE__ */ n(
638
+ const Gs = z.lazy(() => import("./Card-DOcs__XO.js")), Hs = z.lazy(() => import("./Card-CserQom-.js")), Ys = z.lazy(() => import("./Card-MDGTBRIk.js")), We = () => /* @__PURE__ */ n(
642
639
  "div",
643
640
  {
644
641
  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)]",
645
642
  "aria-hidden": !0
646
643
  }
647
- ), qs = (e) => /* @__PURE__ */ n(Ye, { fallback: /* @__PURE__ */ n(Xe, {}), children: /* @__PURE__ */ n(Gs, { ...e }) }), Jt = (e) => /* @__PURE__ */ n(Ye, { fallback: /* @__PURE__ */ n(Xe, {}), children: /* @__PURE__ */ n(Hs, { ...e }) }), Zt = (e) => /* @__PURE__ */ n(Ye, { fallback: /* @__PURE__ */ n(Xe, {}), children: /* @__PURE__ */ n(Ys, { ...e }) }), Ws = Jt, Xs = Zt, Ft = { Composer: qs, Sent: Jt, Received: Zt, Creator: Ws, Visitor: Xs }, Ks = [
644
+ ), qs = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Gs, { ...e }) }), Kt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Hs, { ...e }) }), Jt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Ys, { ...e }) }), Ws = Kt, Xs = Jt, zt = { Composer: qs, Sent: Kt, Received: Jt, Creator: Ws, Visitor: Xs }, Ks = [
648
645
  [/pdf/, "pdf"],
649
646
  [/wordprocessingml|msword|\.doc/, "doc"],
650
647
  [/spreadsheetml|ms-excel|\.xls/, "xls"],
@@ -657,33 +654,33 @@ const Gs = z.lazy(() => import("./Card-D8QPP3I9.js")), Hs = z.lazy(() => import(
657
654
  function re(e) {
658
655
  return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
659
656
  }
660
- function Qt(e) {
657
+ function Zt(e) {
661
658
  const t = Ks.find(
662
659
  ([s]) => s.test(e)
663
660
  );
664
661
  return t ? t[1] : "generic";
665
662
  }
666
663
  const Js = {
667
- video: Yt,
668
- audio: ms,
669
- image: us,
670
- document: Ht
664
+ video: Ht,
665
+ audio: us,
666
+ image: ds,
667
+ document: Gt
671
668
  }, Zs = {
672
- pdf: ws,
673
- doc: xs,
674
- xls: vs,
675
- csv: ps,
676
- ppt: bs,
677
- zip: gs,
678
- text: fs,
679
- markdown: hs,
680
- generic: Ht
669
+ pdf: xs,
670
+ doc: vs,
671
+ xls: ps,
672
+ csv: bs,
673
+ ppt: gs,
674
+ zip: fs,
675
+ text: hs,
676
+ markdown: ms,
677
+ generic: Gt
681
678
  };
682
679
  function Qs(e) {
683
680
  const t = re(e);
684
- return t !== "document" ? Js[t] : Zs[Qt(e)];
681
+ return t !== "document" ? Js[t] : Zs[Zt(e)];
685
682
  }
686
- function ce(e, t) {
683
+ function le(e, t) {
687
684
  return z.createElement(Qs(e), t);
688
685
  }
689
686
  const ea = (e) => {
@@ -780,7 +777,7 @@ const ea = (e) => {
780
777
  className: "absolute inset-0 h-full w-full object-cover"
781
778
  }
782
779
  ),
783
- !s && (g === "audio" || D) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: ce(t, {
780
+ !s && (g === "audio" || D) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: le(t, {
784
781
  className: "size-12 text-black/20",
785
782
  weight: "regular"
786
783
  }) }),
@@ -887,7 +884,7 @@ const ea = (e) => {
887
884
  },
888
885
  className: "shrink-0 text-white",
889
886
  "aria-label": N ? "Pause" : "Play",
890
- children: N ? /* @__PURE__ */ n(Ns, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(Be, { className: "size-5 translate-x-px", weight: "fill" })
887
+ children: N ? /* @__PURE__ */ n(ws, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(Be, { className: "size-5 translate-x-px", weight: "fill" })
891
888
  }
892
889
  ),
893
890
  /* @__PURE__ */ h(
@@ -937,7 +934,7 @@ const ea = (e) => {
937
934
  ]
938
935
  }
939
936
  );
940
- }, $t = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", na = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", en = ({
937
+ }, Ft = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", na = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", Qt = ({
941
938
  mimeType: e,
942
939
  sourceUrl: t,
943
940
  thumbnailUrl: s,
@@ -994,8 +991,8 @@ const ea = (e) => {
994
991
  "div",
995
992
  {
996
993
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
997
- children: ce(e, {
998
- className: $t(r),
994
+ children: le(e, {
995
+ className: Ft(r),
999
996
  weight: "regular"
1000
997
  })
1001
998
  }
@@ -1011,13 +1008,13 @@ const ea = (e) => {
1011
1008
  "div",
1012
1009
  {
1013
1010
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1014
- children: ce(e, {
1015
- className: $t(r),
1011
+ children: le(e, {
1012
+ className: Ft(r),
1016
1013
  weight: "regular"
1017
1014
  })
1018
1015
  }
1019
1016
  );
1020
- }, tn = ({
1017
+ }, en = ({
1021
1018
  variant: e,
1022
1019
  thumbnail: t,
1023
1020
  title: s,
@@ -1058,7 +1055,7 @@ const ea = (e) => {
1058
1055
  }
1059
1056
  ),
1060
1057
  /* @__PURE__ */ h("div", { className: "flex flex-wrap items-center gap-1", children: [
1061
- ce(r, {
1058
+ le(r, {
1062
1059
  className: y(
1063
1060
  "size-5 shrink-0",
1064
1061
  f ? "text-white/55" : "text-black/55"
@@ -1083,10 +1080,10 @@ const ea = (e) => {
1083
1080
  }
1084
1081
  );
1085
1082
  };
1086
- function nn(e) {
1083
+ function tn(e) {
1087
1084
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1088
1085
  }
1089
- function Ke(e) {
1086
+ function Xe(e) {
1090
1087
  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)]`;
1091
1088
  }
1092
1089
  function sa(e) {
@@ -1104,7 +1101,7 @@ function ia(e) {
1104
1101
  function oa(e) {
1105
1102
  return e ? "text-white/20" : "text-black/20";
1106
1103
  }
1107
- const Je = ({ attachment: e, isMyMessage: t }) => {
1104
+ const Ke = ({ attachment: e, isMyMessage: t }) => {
1108
1105
  const { title: s, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, l = i ?? o, d = typeof l == "string" && l.trim() !== "" ? l : void 0, m = /* @__PURE__ */ h(z.Fragment, { children: [
1109
1106
  /* @__PURE__ */ n("div", { className: "p-2", children: r ? /* @__PURE__ */ n(
1110
1107
  "img",
@@ -1117,7 +1114,7 @@ const Je = ({ attachment: e, isMyMessage: t }) => {
1117
1114
  "div",
1118
1115
  {
1119
1116
  className: `aspect-video w-full rounded-[20px] ${sa(t)} flex items-center justify-center`,
1120
- children: /* @__PURE__ */ n(_s, { className: `size-12 ${oa(t)}` })
1117
+ children: /* @__PURE__ */ n(Ns, { className: `size-12 ${oa(t)}` })
1121
1118
  }
1122
1119
  ) }),
1123
1120
  /* @__PURE__ */ h("div", { className: "px-3 pb-3", children: [
@@ -1128,12 +1125,12 @@ const Je = ({ attachment: e, isMyMessage: t }) => {
1128
1125
  ] });
1129
1126
  return d ? /* @__PURE__ */ n("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "block no-underline", children: m }) : /* @__PURE__ */ n("div", { className: "block", children: m });
1130
1127
  };
1131
- function sn(e) {
1128
+ function nn(e) {
1132
1129
  return e.type === "link" || !!e.og_scrape_url && !e.asset_url;
1133
1130
  }
1134
- function Ze(e) {
1131
+ function Je(e) {
1135
1132
  var t;
1136
- return (t = e.attachments) == null ? void 0 : t.find(sn);
1133
+ return (t = e.attachments) == null ? void 0 : t.find(nn);
1137
1134
  }
1138
1135
  async function la(e, t) {
1139
1136
  let s;
@@ -1174,7 +1171,7 @@ const ca = ({
1174
1171
  }
1175
1172
  );
1176
1173
  };
1177
- function Qe(e) {
1174
+ function Ze(e) {
1178
1175
  var u, f, c, p;
1179
1176
  const t = (u = e.attachments) == null ? void 0 : u.find(
1180
1177
  (N) => N.type === "video" && N.asset_url
@@ -1195,16 +1192,16 @@ function Qe(e) {
1195
1192
  thumbnailUrl: g
1196
1193
  };
1197
1194
  }
1198
- const an = ({
1195
+ const sn = ({
1199
1196
  resolvedUrl: e,
1200
1197
  resolvedType: t,
1201
1198
  title: s,
1202
1199
  fileSize: a,
1203
1200
  thumbnailUrl: r
1204
1201
  }) => {
1205
- const i = a !== void 0 ? nn(a) : void 0;
1202
+ const i = a !== void 0 ? tn(a) : void 0;
1206
1203
  return /* @__PURE__ */ n(
1207
- tn,
1204
+ en,
1208
1205
  {
1209
1206
  variant: "dark",
1210
1207
  title: s,
@@ -1212,7 +1209,7 @@ const an = ({
1212
1209
  mimeType: t,
1213
1210
  detail: i,
1214
1211
  thumbnail: /* @__PURE__ */ n(
1215
- en,
1212
+ Qt,
1216
1213
  {
1217
1214
  mimeType: t,
1218
1215
  sourceUrl: e,
@@ -1223,23 +1220,23 @@ const an = ({
1223
1220
  )
1224
1221
  }
1225
1222
  );
1226
- }, rn = ({
1223
+ }, an = ({
1227
1224
  resolvedUrl: e,
1228
1225
  resolvedType: t,
1229
1226
  title: s,
1230
1227
  fileSize: a,
1231
1228
  thumbnailUrl: r
1232
1229
  }) => {
1233
- const i = re(t), o = a !== void 0 ? nn(a) : void 0;
1230
+ const i = re(t), o = a !== void 0 ? tn(a) : void 0;
1234
1231
  return /* @__PURE__ */ n(
1235
- tn,
1232
+ en,
1236
1233
  {
1237
1234
  variant: "light",
1238
1235
  title: s,
1239
1236
  mimeType: t,
1240
1237
  detail: o,
1241
1238
  thumbnail: /* @__PURE__ */ n(
1242
- en,
1239
+ Qt,
1243
1240
  {
1244
1241
  mimeType: t,
1245
1242
  sourceUrl: e,
@@ -1256,7 +1253,7 @@ const an = ({
1256
1253
  message: e,
1257
1254
  isMyMessage: t = !1
1258
1255
  }) => {
1259
- const s = Ze(e), a = Qe(e);
1256
+ const s = Je(e), a = Ze(e);
1260
1257
  return !s && !a ? null : /* @__PURE__ */ h("div", { className: t ? "str-chat__message str-chat__message-simple str-chat__message--me str-chat__message-simple--me" : "str-chat__message str-chat__message-simple str-chat__message--other", children: [
1261
1258
  !t && e.user && /* @__PURE__ */ n(
1262
1259
  ae,
@@ -1277,7 +1274,7 @@ const an = ({
1277
1274
  {
1278
1275
  className: "str-chat__message-bubble",
1279
1276
  style: { padding: 0, borderRadius: 0, overflow: "visible", background: "transparent" },
1280
- children: s ? /* @__PURE__ */ n("div", { className: Ke(t), children: /* @__PURE__ */ n(Je, { attachment: s, isMyMessage: t }) }) : t ? /* @__PURE__ */ n(an, { ...a }) : /* @__PURE__ */ n(rn, { ...a })
1277
+ children: s ? /* @__PURE__ */ n("div", { className: Xe(t), children: /* @__PURE__ */ n(Ke, { attachment: s, isMyMessage: t }) }) : t ? /* @__PURE__ */ n(sn, { ...a }) : /* @__PURE__ */ n(an, { ...a })
1281
1278
  }
1282
1279
  ) })
1283
1280
  }
@@ -1286,19 +1283,19 @@ const an = ({
1286
1283
  }, ua = ({
1287
1284
  message: e
1288
1285
  }) => {
1289
- const t = Ze(e);
1286
+ const t = Je(e);
1290
1287
  if (t)
1291
- return /* @__PURE__ */ n("div", { className: Ke(!0), children: /* @__PURE__ */ n(Je, { attachment: t, isMyMessage: !0 }) });
1292
- const s = Qe(e);
1293
- return s ? /* @__PURE__ */ n(an, { ...s }) : null;
1288
+ return /* @__PURE__ */ n("div", { className: Xe(!0), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !0 }) });
1289
+ const s = Ze(e);
1290
+ return s ? /* @__PURE__ */ n(sn, { ...s }) : null;
1294
1291
  }, ma = ({
1295
1292
  message: e
1296
1293
  }) => {
1297
- const t = Ze(e);
1294
+ const t = Je(e);
1298
1295
  if (t)
1299
- return /* @__PURE__ */ n("div", { className: Ke(!1), children: /* @__PURE__ */ n(Je, { attachment: t, isMyMessage: !1 }) });
1300
- const s = Qe(e);
1301
- return s ? /* @__PURE__ */ n(rn, { ...s }) : null;
1296
+ return /* @__PURE__ */ n("div", { className: Xe(!1), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !1 }) });
1297
+ const s = Ze(e);
1298
+ return s ? /* @__PURE__ */ n(an, { ...s }) : null;
1302
1299
  }, wi = Object.assign(da, {
1303
1300
  Creator: ua,
1304
1301
  Visitor: ma
@@ -1306,9 +1303,9 @@ const an = ({
1306
1303
  isUnlocking: () => !1
1307
1304
  }, fa = {
1308
1305
  LockedAttachment: ha
1309
- }, on = He({}), Ni = on.Provider;
1306
+ }, rn = Ge({}), Ni = rn.Provider;
1310
1307
  function ga(e) {
1311
- return Se(on)[e] ?? fa[e];
1308
+ return Se(rn)[e] ?? fa[e];
1312
1309
  }
1313
1310
  const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1314
1311
  "svg",
@@ -1339,9 +1336,9 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1339
1336
  }, xa = (e) => {
1340
1337
  var t;
1341
1338
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_ATTACHMENT";
1342
- }, ln = (e) => pa(e) || va(e), wa = (e) => {
1339
+ }, on = (e) => pa(e) || va(e), wa = (e) => {
1343
1340
  var t;
1344
- return ln(e) && !((t = e.text) != null && t.trim());
1341
+ return on(e) && !((t = e.text) != null && t.trim());
1345
1342
  }, Pe = ({
1346
1343
  message: e,
1347
1344
  standalone: t = !1,
@@ -1349,7 +1346,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1349
1346
  hasAttachment: a = !1
1350
1347
  }) => {
1351
1348
  var u;
1352
- const r = ln(e), i = Ce(e);
1349
+ const r = on(e), i = Ce(e);
1353
1350
  if (!r && !i)
1354
1351
  return null;
1355
1352
  if (r) {
@@ -1357,7 +1354,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1357
1354
  if (!f) return null;
1358
1355
  const c = t ? "message-tip-standalone" : "message-tag message-tag--tip", p = t ? `${f} tip` : `Delivered with ${f} tip`;
1359
1356
  return /* @__PURE__ */ h("div", { className: c, children: [
1360
- /* @__PURE__ */ n(ys, { size: t ? 14 : 12 }),
1357
+ /* @__PURE__ */ n(_s, { size: t ? 14 : 12 }),
1361
1358
  /* @__PURE__ */ n("span", { children: p })
1362
1359
  ] });
1363
1360
  }
@@ -1389,7 +1386,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1389
1386
  "aria-label": "Good response",
1390
1387
  "aria-pressed": e === "up",
1391
1388
  "data-tooltip": "Good response",
1392
- children: /* @__PURE__ */ n(Cs, { size: 16, weight: e === "up" ? "fill" : "regular" })
1389
+ children: /* @__PURE__ */ n(ys, { size: 16, weight: e === "up" ? "fill" : "regular" })
1393
1390
  }
1394
1391
  ),
1395
1392
  /* @__PURE__ */ n(
@@ -1403,11 +1400,11 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1403
1400
  "aria-label": "Bad response",
1404
1401
  "aria-pressed": e === "down",
1405
1402
  "data-tooltip": "Bad response",
1406
- children: /* @__PURE__ */ n(ks, { size: 16, weight: e === "down" ? "fill" : "regular" })
1403
+ children: /* @__PURE__ */ n(Cs, { size: 16, weight: e === "down" ? "fill" : "regular" })
1407
1404
  }
1408
1405
  )
1409
1406
  ] }), _a = (e) => {
1410
- var gt, bt, pt, vt, xt, wt, Nt, _t, yt, Ct, kt, Et, It, St;
1407
+ var ft, gt, bt, pt, vt, xt, wt, Nt, _t, yt, Ct, kt, Et, It;
1411
1408
  const {
1412
1409
  additionalMessageInputProps: t,
1413
1410
  chatbotVotingEnabled: s,
@@ -1425,57 +1422,57 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1425
1422
  renderText: p,
1426
1423
  threadList: N,
1427
1424
  viewerLanguage: v
1428
- } = e, { client: x } = qe("CustomMessage"), { channel: w } = de("CustomMessage"), { isUnlocking: A, onUnlockClick: T, onFetchSource: S, onDownloadClick: R } = ga("LockedAttachment"), [I, C] = O(!1), k = Mn(c.id), { selected: E, voteUp: D, voteDown: V } = Vs(c), {
1429
- Attachment: F = Dn,
1430
- EditMessageModal: Z = Rn,
1425
+ } = e, { client: x } = Ye("CustomMessage"), { channel: w } = ce("CustomMessage"), { isUnlocking: A, onUnlockClick: T, onFetchSource: S, onDownloadClick: R } = ga("LockedAttachment"), [I, C] = O(!1), k = An(c.id), { selected: E, voteUp: D, voteDown: V } = Vs(c), {
1426
+ Attachment: F = Mn,
1427
+ EditMessageModal: Z = Dn,
1431
1428
  MessageActions: U,
1432
- MessageBlocked: G = Ln,
1433
- MessageBouncePrompt: P = Pn,
1434
- MessageDeleted: B = On,
1435
- MessageIsThreadReplyInChannelButtonIndicator: H = zn,
1436
- MessageRepliesCountButton: Y = Fn,
1437
- ReminderNotification: $ = $n,
1438
- StreamedMessageText: b = Bn,
1429
+ MessageBlocked: G = Rn,
1430
+ MessageBouncePrompt: P = Ln,
1431
+ MessageDeleted: B = Pn,
1432
+ MessageIsThreadReplyInChannelButtonIndicator: H = On,
1433
+ MessageRepliesCountButton: Y = zn,
1434
+ ReminderNotification: $ = Fn,
1435
+ StreamedMessageText: b = $n,
1439
1436
  PinIndicator: _
1440
- } = Ut("CustomMessage"), L = jn(c), M = Vn(c), W = ne(
1437
+ } = Vt("CustomMessage"), L = Bn(c), M = jn(c), W = ne(
1441
1438
  () => u == null ? void 0 : u(c),
1442
1439
  [u, c]
1443
1440
  ), j = ne(() => {
1444
1441
  const me = c.attachments ?? [], _e = c.shared_location ? [c.shared_location, ...me] : me;
1445
1442
  if (!Ce(c)) return _e;
1446
- const Tt = _e.filter((At) => !("type" in At) || !sn(At));
1447
- return Tt.length === _e.length ? _e : Tt;
1443
+ const St = _e.filter((Tt) => !("type" in Tt) || !nn(Tt));
1444
+ return St.length === _e.length ? _e : St;
1448
1445
  }, [c]), K = ne(() => {
1449
- const me = Kt({ message: c, viewerLanguage: v });
1446
+ const me = Xt({ message: c, viewerLanguage: v });
1450
1447
  return me === c.text ? c : { ...c, text: me };
1451
1448
  }, [c, v]);
1452
- if (Un(c))
1449
+ if (Vn(c))
1453
1450
  return null;
1454
1451
  if (c.deleted_at || c.type === "deleted")
1455
1452
  return /* @__PURE__ */ n(B, { message: c });
1456
- if (Gn(c))
1453
+ if (Un(c))
1457
1454
  return /* @__PURE__ */ n(G, {});
1458
- const ee = !N && !!c.reply_count, Q = !N && c.show_in_channel && c.parent_id, ct = c.status === "failed" && ((gt = c.error) == null ? void 0 : gt.status) !== 403, dt = Hn(c);
1455
+ const ee = !N && !!c.reply_count, Q = !N && c.show_in_channel && c.parent_id, lt = c.status === "failed" && ((ft = c.error) == null ? void 0 : ft.status) !== 403, ct = Gn(c);
1459
1456
  let ie;
1460
- ct ? ie = () => m(c) : dt && (ie = () => C(!0));
1461
- const ue = f(), En = y(
1457
+ lt ? ie = () => m(c) : ct && (ie = () => C(!0));
1458
+ const de = f(), kn = y(
1462
1459
  "str-chat__message str-chat__message-simple",
1463
1460
  `str-chat__message--${c.type}`,
1464
1461
  `str-chat__message--${c.status}`,
1465
- ue ? "str-chat__message--me str-chat__message-simple--me" : "str-chat__message--other",
1462
+ de ? "str-chat__message--me str-chat__message-simple--me" : "str-chat__message--other",
1466
1463
  c.text ? "str-chat__message--has-text" : "has-no-text",
1467
1464
  {
1468
1465
  "str-chat__message--has-attachment": L,
1469
1466
  "str-chat__message--highlighted": g,
1470
1467
  "str-chat__message--pinned pinned-message": c.pinned,
1471
1468
  "str-chat__message--with-reactions": M,
1472
- "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((bt = c == null ? void 0 : c.error) == null ? void 0 : bt.status) !== 403,
1469
+ "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((gt = c == null ? void 0 : c.error) == null ? void 0 : gt.status) !== 403,
1473
1470
  "str-chat__message-with-thread-link": ee || Q,
1474
1471
  "str-chat__virtual-message__wrapper--end": r,
1475
1472
  "str-chat__virtual-message__wrapper--first": i,
1476
1473
  "str-chat__virtual-message__wrapper--group": o
1477
1474
  }
1478
- ), ut = c.poll_id && x.polls.fromState(c.poll_id), mt = wa(c), oe = Ce(c), ht = xa(c), Me = !!(j != null && j.length && !c.quoted_message), ft = oe && ue && Me;
1475
+ ), dt = c.poll_id && x.polls.fromState(c.poll_id), ut = wa(c), ue = Ce(c), mt = xa(c), Me = !!(j != null && j.length && !c.quoted_message), ht = ue && de && Me;
1479
1476
  return /* @__PURE__ */ h(se, { children: [
1480
1477
  a && /* @__PURE__ */ n(
1481
1478
  Z,
@@ -1484,7 +1481,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1484
1481
  }
1485
1482
  ),
1486
1483
  I && /* @__PURE__ */ n(
1487
- Yn,
1484
+ Hn,
1488
1485
  {
1489
1486
  MessageBouncePrompt: P,
1490
1487
  onClose: () => C(!1),
@@ -1494,7 +1491,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1494
1491
  /* @__PURE__ */ h(
1495
1492
  "div",
1496
1493
  {
1497
- className: En,
1494
+ className: kn,
1498
1495
  "data-message-id": c.id,
1499
1496
  children: [
1500
1497
  _ && /* @__PURE__ */ n(_, {}),
@@ -1506,16 +1503,16 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1506
1503
  id: c.user.id,
1507
1504
  image: c.user.image,
1508
1505
  name: c.user.name || c.user.id,
1509
- size: oe ? 24 : 28,
1506
+ size: 24,
1510
1507
  shape: "circle",
1511
- dmAgentEnabled: oe
1508
+ dmAgentEnabled: ue
1512
1509
  }
1513
1510
  ),
1514
1511
  /* @__PURE__ */ n(
1515
1512
  "div",
1516
1513
  {
1517
1514
  className: y("str-chat__message-inner", {
1518
- "str-chat__simple-message--error-failed": ct || dt
1515
+ "str-chat__simple-message--error-failed": lt || ct
1519
1516
  }),
1520
1517
  "data-testid": "message-inner",
1521
1518
  onClick: ie,
@@ -1528,32 +1525,32 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1528
1525
  marginInlineEnd: 0,
1529
1526
  marginInlineStart: 0
1530
1527
  },
1531
- children: ht ? /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper", children: [
1532
- ue ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1528
+ children: mt ? /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper", children: [
1529
+ de ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1533
1530
  U && /* @__PURE__ */ n(U, {}),
1534
1531
  /* @__PURE__ */ n(
1535
- Ft.Sent,
1532
+ zt.Sent,
1536
1533
  {
1537
- title: (pt = c.metadata) == null ? void 0 : pt.attachment_title,
1538
- mimeType: (vt = c.metadata) == null ? void 0 : vt.attachment_mime_type,
1539
- thumbnailUrl: (xt = c.metadata) == null ? void 0 : xt.attachment_thumbnail,
1540
- amountText: (wt = c.metadata) == null ? void 0 : wt.amount_text,
1541
- detail: (Nt = c.metadata) == null ? void 0 : Nt.attachment_detail,
1542
- paymentStatus: (_t = c.metadata) == null ? void 0 : _t.payment_status,
1534
+ title: (bt = c.metadata) == null ? void 0 : bt.attachment_title,
1535
+ mimeType: (pt = c.metadata) == null ? void 0 : pt.attachment_mime_type,
1536
+ thumbnailUrl: (vt = c.metadata) == null ? void 0 : vt.attachment_thumbnail,
1537
+ amountText: (xt = c.metadata) == null ? void 0 : xt.amount_text,
1538
+ detail: (wt = c.metadata) == null ? void 0 : wt.attachment_detail,
1539
+ paymentStatus: (Nt = c.metadata) == null ? void 0 : Nt.payment_status,
1543
1540
  onPreviewClick: () => T == null ? void 0 : T(c, w),
1544
1541
  onFetchSource: async () => await (S == null ? void 0 : S(c, w))
1545
1542
  }
1546
1543
  )
1547
1544
  ] }) : /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1548
1545
  /* @__PURE__ */ n(
1549
- Ft.Received,
1546
+ zt.Received,
1550
1547
  {
1551
- title: (yt = c.metadata) == null ? void 0 : yt.attachment_title,
1552
- mimeType: (Ct = c.metadata) == null ? void 0 : Ct.attachment_mime_type,
1553
- thumbnailUrl: (kt = c.metadata) == null ? void 0 : kt.attachment_thumbnail,
1554
- amountText: (Et = c.metadata) == null ? void 0 : Et.amount_text,
1555
- detail: (It = c.metadata) == null ? void 0 : It.attachment_detail,
1556
- paymentStatus: (St = c.metadata) == null ? void 0 : St.payment_status,
1548
+ title: (_t = c.metadata) == null ? void 0 : _t.attachment_title,
1549
+ mimeType: (yt = c.metadata) == null ? void 0 : yt.attachment_mime_type,
1550
+ thumbnailUrl: (Ct = c.metadata) == null ? void 0 : Ct.attachment_thumbnail,
1551
+ amountText: (kt = c.metadata) == null ? void 0 : kt.amount_text,
1552
+ detail: (Et = c.metadata) == null ? void 0 : Et.attachment_detail,
1553
+ paymentStatus: (It = c.metadata) == null ? void 0 : It.payment_status,
1557
1554
  isUnlocking: A(c.id),
1558
1555
  onUnlockClick: () => T == null ? void 0 : T(c, w),
1559
1556
  onFetchSource: async () => await (S == null ? void 0 : S(c, w)),
@@ -1563,25 +1560,25 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1563
1560
  U && /* @__PURE__ */ n(U, {})
1564
1561
  ] }),
1565
1562
  c.text && /* @__PURE__ */ n("div", { className: "str-chat__message-bubble", children: /* @__PURE__ */ n(
1566
- Mt,
1563
+ At,
1567
1564
  {
1568
1565
  message: K,
1569
1566
  renderText: p
1570
1567
  }
1571
1568
  ) })
1572
- ] }) : mt ? (
1569
+ ] }) : ut ? (
1573
1570
  /* Tip-only messages render as a standalone bubble */
1574
1571
  /* @__PURE__ */ n(Pe, { message: c, standalone: !0 })
1575
1572
  ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ h("div", { className: "str-chat__message-bubble", children: [
1576
- oe && !ft && /* @__PURE__ */ n(
1573
+ ue && !ht && /* @__PURE__ */ n(
1577
1574
  Pe,
1578
1575
  {
1579
1576
  message: c,
1580
1577
  hasAttachment: Me,
1581
- isMyMessage: ue
1578
+ isMyMessage: de
1582
1579
  }
1583
1580
  ),
1584
- ut && /* @__PURE__ */ n(qn, { poll: ut }),
1581
+ dt && /* @__PURE__ */ n(Yn, { poll: dt }),
1585
1582
  j != null && j.length && !c.quoted_message ? /* @__PURE__ */ n(
1586
1583
  F,
1587
1584
  {
@@ -1596,26 +1593,26 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1596
1593
  renderText: p
1597
1594
  }
1598
1595
  ) : /* @__PURE__ */ n(
1599
- Mt,
1596
+ At,
1600
1597
  {
1601
1598
  message: K,
1602
1599
  renderText: p
1603
1600
  }
1604
1601
  ),
1605
- /* @__PURE__ */ n(Wn, {})
1602
+ /* @__PURE__ */ n(qn, {})
1606
1603
  ] }) })
1607
1604
  }
1608
1605
  ),
1609
- !ht && !mt && /* @__PURE__ */ h("div", { className: "str-chat__message-footer", children: [
1610
- (!oe || ft) && /* @__PURE__ */ n(
1606
+ !mt && !ut && /* @__PURE__ */ h("div", { className: "str-chat__message-footer", children: [
1607
+ (!ue || ht) && /* @__PURE__ */ n(
1611
1608
  Pe,
1612
1609
  {
1613
1610
  message: c,
1614
1611
  hasAttachment: Me,
1615
- isMyMessage: ue
1612
+ isMyMessage: de
1616
1613
  }
1617
1614
  ),
1618
- s && oe && /* @__PURE__ */ n(
1615
+ s && ue && /* @__PURE__ */ n(
1619
1616
  Na,
1620
1617
  {
1621
1618
  selected: E,
@@ -1639,7 +1636,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1639
1636
  ] });
1640
1637
  }, ya = z.memo(
1641
1638
  _a,
1642
- (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : An(e, t)
1639
+ (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Tn(e, t)
1643
1640
  ), Ca = (e) => {
1644
1641
  const t = be("CustomMessage");
1645
1642
  return /* @__PURE__ */ n(ya, { ...t, ...e });
@@ -1647,25 +1644,25 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1647
1644
  var s;
1648
1645
  const { handleDelete: e, message: t } = be("CustomMessageActions");
1649
1646
  return ((s = t.metadata) == null ? void 0 : s.payment_status) === "paid" ? null : /* @__PURE__ */ n(
1650
- qt,
1647
+ Yt,
1651
1648
  {
1652
1649
  onClick: e,
1653
1650
  "aria-label": "Delete",
1654
1651
  title: "Delete",
1655
1652
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
1656
- children: /* @__PURE__ */ n(Es, { size: 16, weight: "light", "aria-hidden": !0 })
1653
+ children: /* @__PURE__ */ n(ks, { size: 16, weight: "light", "aria-hidden": !0 })
1657
1654
  }
1658
1655
  );
1659
1656
  }, Ea = () => {
1660
1657
  const { handleFlag: e } = be("CustomMessageActions");
1661
1658
  return /* @__PURE__ */ n(
1662
- qt,
1659
+ Yt,
1663
1660
  {
1664
1661
  onClick: e,
1665
1662
  "aria-label": "Report",
1666
1663
  title: "Report",
1667
1664
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
1668
- children: /* @__PURE__ */ n(Gt, { size: 16, weight: "light", "aria-hidden": !0 })
1665
+ children: /* @__PURE__ */ n(Ut, { size: 16, weight: "light", "aria-hidden": !0 })
1669
1666
  }
1670
1667
  );
1671
1668
  }, Ia = () => {
@@ -1682,7 +1679,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1682
1679
  );
1683
1680
  }, Sa = (e) => ({
1684
1681
  linkPreviews: Array.from(e.previews.values()).filter(
1685
- (t) => Pt.previewIsLoaded(t) || Pt.previewIsLoading(t)
1682
+ (t) => Lt.previewIsLoaded(t) || Lt.previewIsLoading(t)
1686
1683
  )
1687
1684
  }), Ta = ({
1688
1685
  link: e,
@@ -1725,7 +1722,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1725
1722
  }
1726
1723
  );
1727
1724
  }, Aa = () => {
1728
- const { linkPreviewsManager: e } = Xn(), { linkPreviews: t } = Kn(
1725
+ const { linkPreviewsManager: e } = Wn(), { linkPreviews: t } = Xn(
1729
1726
  e.state,
1730
1727
  Sa
1731
1728
  ), s = (r) => {
@@ -1739,7 +1736,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1739
1736
  },
1740
1737
  r.og_scrape_url
1741
1738
  )) }) : null;
1742
- }, cn = z.createContext(!1), Ma = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1739
+ }, ln = z.createContext(!1), Ma = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1743
1740
  "button",
1744
1741
  {
1745
1742
  ...s,
@@ -1747,23 +1744,23 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1747
1744
  "aria-label": "Send",
1748
1745
  disabled: t,
1749
1746
  onClick: e,
1750
- children: /* @__PURE__ */ n(Is, { weight: "bold", className: "size-4" })
1747
+ children: /* @__PURE__ */ n(Es, { weight: "bold", className: "size-4" })
1751
1748
  }
1752
1749
  ), Da = () => {
1753
- const e = Se(cn), { handleSubmit: t } = Zn(), s = Qn(), a = e || !s, {
1750
+ const e = Se(ln), { handleSubmit: t } = Jn(), s = Zn(), a = e || !s, {
1754
1751
  SendButton: r = Ma,
1755
- AttachmentPreviewList: i = es
1756
- } = Ut("CustomMessageInput");
1752
+ AttachmentPreviewList: i = Qn
1753
+ } = Vt("CustomMessageInput");
1757
1754
  return /* @__PURE__ */ h("div", { className: "central-container flex flex-col gap-2 min-w-0 w-full p-2 bg-white rounded-[1.5rem] shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_1px_2px_0_rgba(0,0,0,0.04),0_0_0_1px_rgba(0,0,0,0.04)]", children: [
1758
- /* @__PURE__ */ n(ts, {}),
1755
+ /* @__PURE__ */ n(es, {}),
1759
1756
  /* @__PURE__ */ n(Aa, {}),
1760
1757
  /* @__PURE__ */ n(i, {}),
1761
1758
  /* @__PURE__ */ h("div", { className: "flex", children: [
1762
1759
  /* @__PURE__ */ n("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ n(
1763
- ns,
1760
+ ts,
1764
1761
  {
1765
1762
  "aria-disabled": e || void 0,
1766
- className: "w-full resize-none outline-none leading-6",
1763
+ className: "w-full resize-none outline-none leading-5 placeholder:text-black/30 text-sm",
1767
1764
  autoFocus: !e,
1768
1765
  maxRows: 4,
1769
1766
  readOnly: e,
@@ -1790,7 +1787,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1790
1787
  disabledReason: a
1791
1788
  }) => {
1792
1789
  var o;
1793
- const { channel: r } = de(), i = ((o = r == null ? void 0 : r.data) == null ? void 0 : o.frozen) === !0;
1790
+ const { channel: r } = ce(), i = ((o = r == null ? void 0 : r.data) == null ? void 0 : o.frozen) === !0;
1794
1791
  return s ? /* @__PURE__ */ h(se, { children: [
1795
1792
  /* @__PURE__ */ n("div", { className: "messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3 px-6 py-4", children: a ? /* @__PURE__ */ n("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: a }) : null }),
1796
1793
  t == null ? void 0 : t()
@@ -1803,7 +1800,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1803
1800
  className: "message-input flex items-end gap-4 aria-disabled:opacity-40",
1804
1801
  children: [
1805
1802
  e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
1806
- /* @__PURE__ */ n(cn.Provider, { value: i, children: /* @__PURE__ */ n(Jn, { Input: Da }) })
1803
+ /* @__PURE__ */ n(ln.Provider, { value: i, children: /* @__PURE__ */ n(Kn, { Input: Da }) })
1807
1804
  ]
1808
1805
  }
1809
1806
  ),
@@ -1819,10 +1816,10 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1819
1816
  "SYSTEM_AGE_SAFETY_BLOCKED"
1820
1817
  ], za = {
1821
1818
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
1822
- }, Oe = "age safety guidelines.", Fa = "https://linktr.ee/s/about/contact", Bt = (e) => La.includes(e), $a = (e) => Oa.includes(e), Ba = (e) => {
1819
+ }, Oe = "age safety guidelines.", Fa = "https://linktr.ee/s/about/contact", $t = (e) => La.includes(e), $a = (e) => Oa.includes(e), Ba = (e) => {
1823
1820
  var a;
1824
1821
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
1825
- if (Bt(t))
1822
+ if ($t(t))
1826
1823
  return {
1827
1824
  kind: "dm-agent",
1828
1825
  type: t
@@ -1833,7 +1830,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1833
1830
  type: t
1834
1831
  };
1835
1832
  const s = e.dm_agent_system_type;
1836
- if (Bt(s))
1833
+ if ($t(s))
1837
1834
  return {
1838
1835
  kind: "dm-agent",
1839
1836
  type: s
@@ -1899,7 +1896,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1899
1896
  "data-age-safety-system-type": s.type,
1900
1897
  children: [
1901
1898
  /* @__PURE__ */ n(
1902
- Ss,
1899
+ Is,
1903
1900
  {
1904
1901
  size: 24,
1905
1902
  weight: "duotone",
@@ -1923,7 +1920,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1923
1920
  ] }),
1924
1921
  !t && /* @__PURE__ */ n(De, { message: e.message })
1925
1922
  ] });
1926
- }, dn = He(!1), ze = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "4", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
1923
+ }, cn = Ge(!1), ze = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "4", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
1927
1924
  "animateTransform",
1928
1925
  {
1929
1926
  attributeName: "transform",
@@ -1939,11 +1936,11 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1939
1936
  Re.ExternalSources
1940
1937
  ]), Ga = ({ threadList: e }) => {
1941
1938
  var p, N;
1942
- const { channel: t, channelConfig: s, thread: a } = de(), { client: r } = qe(), { typing: i = {} } = ss(), { aiState: o } = as(t), l = Se(dn);
1939
+ const { channel: t, channelConfig: s, thread: a } = ce(), { client: r } = Ye(), { typing: i = {} } = ns(), { aiState: o } = ss(t), l = Se(cn);
1943
1940
  if (!e && l && Ua.has(o)) {
1944
1941
  const v = Ha(t, (p = r.user) == null ? void 0 : p.id);
1945
1942
  return /* @__PURE__ */ n(
1946
- jt,
1943
+ Bt,
1947
1944
  {
1948
1945
  avatarId: (v == null ? void 0 : v.id) ?? "ai-agent",
1949
1946
  avatarName: (v == null ? void 0 : v.name) ?? (v == null ? void 0 : v.id) ?? "Agent",
@@ -1969,7 +1966,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1969
1966
  return null;
1970
1967
  const f = (N = u[0]) == null ? void 0 : N.user, c = f != null && f.id && t.state.members[f.id] ? t.state.members[f.id].user : void 0;
1971
1968
  return /* @__PURE__ */ n(
1972
- jt,
1969
+ Bt,
1973
1970
  {
1974
1971
  avatarId: (f == null ? void 0 : f.id) ?? (c == null ? void 0 : c.id) ?? "typing-user",
1975
1972
  avatarName: (f == null ? void 0 : f.name) ?? (c == null ? void 0 : c.name) ?? (f == null ? void 0 : f.id) ?? "Typing user",
@@ -1977,7 +1974,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1977
1974
  testId: "typing-indicator"
1978
1975
  }
1979
1976
  );
1980
- }, jt = ({
1977
+ }, Bt = ({
1981
1978
  avatarId: e,
1982
1979
  avatarName: t,
1983
1980
  avatarImage: s,
@@ -2075,7 +2072,7 @@ const Ya = () => null, qa = ({ className: e, message: t }) => /* @__PURE__ */ h(
2075
2072
  /* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
2076
2073
  ] }) }));
2077
2074
  ke.displayName = "LoadingState";
2078
- const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Vt = "Replies instantly with AI assistant", Wa = ({
2075
+ const oe = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", jt = "Replies instantly with AI assistant", Wa = ({
2079
2076
  onBack: e,
2080
2077
  showBackButton: t,
2081
2078
  onShowInfo: s,
@@ -2084,7 +2081,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2084
2081
  dmAgentEnabled: i = !1
2085
2082
  }) => {
2086
2083
  var f, c, p, N, v;
2087
- const { channel: o } = de(), l = z.useMemo(() => {
2084
+ const { channel: o } = ce(), l = z.useMemo(() => {
2088
2085
  var A, T;
2089
2086
  const x = (A = o._client) == null ? void 0 : A.userID;
2090
2087
  return x ? Object.values(((T = o.state) == null ? void 0 : T.members) || {}).find(
@@ -2093,7 +2090,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2093
2090
  return ((R = S.user) == null ? void 0 : R.id) && S.user.id !== x;
2094
2091
  }
2095
2092
  ) : void 0;
2096
- }, [(f = o._client) == null ? void 0 : f.userID, (c = o.state) == null ? void 0 : c.members]), d = Te(l == null ? void 0 : l.user), m = (p = l == null ? void 0 : l.user) == null ? void 0 : p.image, g = Xt(o), u = async () => {
2093
+ }, [(f = o._client) == null ? void 0 : f.userID, (c = o.state) == null ? void 0 : c.members]), d = Te(l == null ? void 0 : l.user), m = (p = l == null ? void 0 : l.user) == null ? void 0 : p.image, g = Wt(o), u = async () => {
2097
2094
  try {
2098
2095
  g ? await o.unpin() : await o.pin();
2099
2096
  } catch (x) {
@@ -2104,19 +2101,19 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2104
2101
  }
2105
2102
  };
2106
2103
  return /* @__PURE__ */ h("div", { className: "@container", children: [
2107
- /* @__PURE__ */ h("div", { className: "grid grid-cols-[1fr_auto_1fr] w-full items-center @lg:hidden", children: [
2104
+ /* @__PURE__ */ h("div", { className: "grid grid-cols-[1fr_auto_1fr] w-full items-center @lg:hidden px-6 py-3", children: [
2108
2105
  /* @__PURE__ */ n("div", { className: "flex items-center gap-2", children: t && /* @__PURE__ */ n(
2109
2106
  "button",
2110
2107
  {
2111
2108
  className: y(
2112
- le,
2113
- "messaging-channel-view-back-button-mobile"
2109
+ oe,
2110
+ "messaging-channel-view-back-button-mobile bg-[#F1F0EE]"
2114
2111
  ),
2115
2112
  onClick: e || (() => {
2116
2113
  }),
2117
2114
  type: "button",
2118
2115
  "aria-label": "Back to conversations",
2119
- children: /* @__PURE__ */ n(Rt, { className: "size-5 text-black/90" })
2116
+ children: /* @__PURE__ */ n(Dt, { className: "size-5 text-black/90" })
2120
2117
  }
2121
2118
  ) }),
2122
2119
  /* @__PURE__ */ h("div", { className: "flex flex-col gap-1 items-center", children: [
@@ -2128,32 +2125,29 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2128
2125
  image: m,
2129
2126
  starred: r && g,
2130
2127
  dmAgentEnabled: i,
2131
- size: 40
2128
+ size: 48
2132
2129
  }
2133
2130
  ),
2134
- /* @__PURE__ */ h(
2131
+ /* @__PURE__ */ n(
2135
2132
  "button",
2136
2133
  {
2137
2134
  type: "button",
2138
2135
  onClick: s,
2139
- className: "flex items-center gap-0.5 rounded-full bg-black/[0.05] px-3 py-1 text-xs font-medium text-black/90 hover:bg-black/[0.08] transition-colors",
2136
+ className: "flex items-center gap-0.5 rounded-full px-3 py-1 text-xs font-medium text-black/90 hover:bg-black/[0.08] transition-colors",
2140
2137
  "aria-label": `View info for ${d}`,
2141
- children: [
2142
- d,
2143
- /* @__PURE__ */ n(Ve, { className: "size-3 shrink-0" })
2144
- ]
2138
+ children: d
2145
2139
  }
2146
2140
  ),
2147
2141
  i && /* @__PURE__ */ h("div", { className: "flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
2148
2142
  /* @__PURE__ */ n(je, { className: "size-3 shrink-0 text-black/55" }),
2149
- /* @__PURE__ */ n("span", { children: Vt })
2143
+ /* @__PURE__ */ n("span", { children: jt })
2150
2144
  ] })
2151
2145
  ] }),
2152
2146
  /* @__PURE__ */ h("div", { className: "flex justify-end items-center gap-2", children: [
2153
2147
  r && /* @__PURE__ */ n(
2154
2148
  "button",
2155
2149
  {
2156
- className: le,
2150
+ className: oe,
2157
2151
  onClick: u,
2158
2152
  type: "button",
2159
2153
  "aria-label": g ? "Unstar conversation" : "Star conversation",
@@ -2172,28 +2166,28 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2172
2166
  /* @__PURE__ */ n(
2173
2167
  "button",
2174
2168
  {
2175
- className: le,
2169
+ className: y(oe, "bg-[#F1F0EE]"),
2176
2170
  onClick: s,
2177
2171
  type: "button",
2178
2172
  "aria-label": "Show info",
2179
- children: /* @__PURE__ */ n(Lt, { className: "size-5 text-black/90" })
2173
+ children: /* @__PURE__ */ n(Rt, { className: "size-5 text-black/90" })
2180
2174
  }
2181
2175
  )
2182
2176
  ] })
2183
2177
  ] }),
2184
- /* @__PURE__ */ h("div", { className: "hidden @lg:flex items-center justify-between gap-3 min-h-12", children: [
2178
+ /* @__PURE__ */ h("div", { className: "px-6 py-3 hidden @lg:flex items-center justify-between gap-3 min-h-12 border-b border-b-black/[0.08]", children: [
2185
2179
  /* @__PURE__ */ h("div", { className: "flex items-center gap-4 min-w-0", children: [
2186
2180
  t && e && /* @__PURE__ */ n(
2187
2181
  "button",
2188
2182
  {
2189
2183
  className: y(
2190
- le,
2184
+ oe,
2191
2185
  "messaging-channel-view-back-button-desktop"
2192
2186
  ),
2193
2187
  type: "button",
2194
2188
  onClick: e,
2195
2189
  "aria-label": "Back to conversations",
2196
- children: /* @__PURE__ */ n(Rt, { className: "size-5 text-black/90" })
2190
+ children: /* @__PURE__ */ n(Dt, { className: "size-5 text-black/90" })
2197
2191
  }
2198
2192
  ),
2199
2193
  /* @__PURE__ */ n(
@@ -2204,26 +2198,23 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2204
2198
  image: m,
2205
2199
  starred: r && g,
2206
2200
  dmAgentEnabled: i,
2207
- size: 40
2201
+ size: 48
2208
2202
  }
2209
2203
  ),
2210
2204
  /* @__PURE__ */ h("div", { className: "min-w-0", children: [
2211
- a ? /* @__PURE__ */ h(
2205
+ a ? /* @__PURE__ */ n(
2212
2206
  "button",
2213
2207
  {
2214
2208
  type: "button",
2215
2209
  onClick: s,
2216
2210
  className: "flex items-center gap-1 font-medium text-black/90 truncate hover:text-black/70 transition-colors",
2217
2211
  "aria-label": `View info for ${d}`,
2218
- children: [
2219
- /* @__PURE__ */ n("span", { className: "truncate", children: d }),
2220
- /* @__PURE__ */ n(Ve, { className: "size-4 shrink-0" })
2221
- ]
2212
+ children: /* @__PURE__ */ n("span", { className: "truncate", children: d })
2222
2213
  }
2223
2214
  ) : /* @__PURE__ */ n("h1", { className: "font-medium text-black/90 truncate", children: d }),
2224
2215
  i && /* @__PURE__ */ h("div", { className: "mt-0.5 flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
2225
2216
  /* @__PURE__ */ n(je, { className: "size-3 shrink-0 text-black/55" }),
2226
- /* @__PURE__ */ n("span", { className: "truncate", children: Vt })
2217
+ /* @__PURE__ */ n("span", { className: "truncate", children: jt })
2227
2218
  ] })
2228
2219
  ] })
2229
2220
  ] }),
@@ -2231,14 +2222,14 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2231
2222
  r && /* @__PURE__ */ n(
2232
2223
  "button",
2233
2224
  {
2234
- className: le,
2225
+ className: oe,
2235
2226
  onClick: u,
2236
2227
  type: "button",
2237
2228
  "aria-label": g ? "Unstar conversation" : "Star conversation",
2238
2229
  children: /* @__PURE__ */ n(
2239
2230
  $e,
2240
2231
  {
2241
- className: y("size-5", {
2232
+ className: y("size-6", {
2242
2233
  "text-yellow-600": g,
2243
2234
  "text-black/90": !g
2244
2235
  }),
@@ -2250,11 +2241,11 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2250
2241
  a && s && /* @__PURE__ */ n(
2251
2242
  "button",
2252
2243
  {
2253
- className: le,
2244
+ className: oe,
2254
2245
  onClick: s,
2255
2246
  type: "button",
2256
2247
  "aria-label": "Show info",
2257
- children: /* @__PURE__ */ n(Lt, { className: "size-5 text-black/90" })
2248
+ children: /* @__PURE__ */ n(Rt, { className: "size-6 text-black/90" })
2258
2249
  }
2259
2250
  )
2260
2251
  ] })
@@ -2287,7 +2278,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2287
2278
  viewerLanguage: I
2288
2279
  }) => {
2289
2280
  var H, Y, $, b, _, L;
2290
- const { channel: C } = de(), k = X(null), E = z.useMemo(() => {
2281
+ const { channel: C } = ce(), k = X(null), E = z.useMemo(() => {
2291
2282
  var j, K;
2292
2283
  const M = (j = C._client) == null ? void 0 : j.userID;
2293
2284
  return M ? Object.values(((K = C.state) == null ? void 0 : K.members) || {}).find(
@@ -2332,14 +2323,14 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2332
2323
  );
2333
2324
  return /* @__PURE__ */ h(se, { children: [
2334
2325
  /* @__PURE__ */ n(
2335
- is,
2326
+ rs,
2336
2327
  {
2337
2328
  overrides: {
2338
2329
  Message: B,
2339
2330
  MessageActions: Ia
2340
2331
  },
2341
- children: /* @__PURE__ */ h(os, { children: [
2342
- /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(
2332
+ children: /* @__PURE__ */ h(is, { children: [
2333
+ /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
2343
2334
  Wa,
2344
2335
  {
2345
2336
  onBack: e,
@@ -2356,7 +2347,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2356
2347
  {
2357
2348
  className: "flex-1 overflow-hidden relative",
2358
2349
  children: /* @__PURE__ */ n(
2359
- ls,
2350
+ os,
2360
2351
  {
2361
2352
  hideDeletedMessages: !0,
2362
2353
  hideNewMessageSeparator: !1
@@ -2369,7 +2360,9 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2369
2360
  /* @__PURE__ */ n(
2370
2361
  Ra,
2371
2362
  {
2372
- renderActions: () => s == null ? void 0 : s(C),
2363
+ ...s && {
2364
+ renderActions: () => s == null ? void 0 : s(C)
2365
+ },
2373
2366
  renderFooter: () => a == null ? void 0 : a(C),
2374
2367
  disabled: p,
2375
2368
  disabledReason: N
@@ -2401,7 +2394,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2401
2394
  }
2402
2395
  )
2403
2396
  ] });
2404
- }, un = z.memo(
2397
+ }, dn = z.memo(
2405
2398
  ({
2406
2399
  channel: e,
2407
2400
  onBack: t,
@@ -2475,8 +2468,8 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2475
2468
  "messaging-channel-view h-full flex flex-col",
2476
2469
  d
2477
2470
  ),
2478
- children: /* @__PURE__ */ n(dn.Provider, { value: A ?? !1, children: /* @__PURE__ */ n(
2479
- rs,
2471
+ children: /* @__PURE__ */ n(cn.Provider, { value: A ?? !1, children: /* @__PURE__ */ n(
2472
+ as,
2480
2473
  {
2481
2474
  channel: e,
2482
2475
  MessageSystem: Va,
@@ -2523,7 +2516,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2523
2516
  );
2524
2517
  }
2525
2518
  );
2526
- un.displayName = "ChannelView";
2519
+ dn.displayName = "ChannelView";
2527
2520
  const he = z.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ h("div", { className: "text-center max-w-sm", children: [
2528
2521
  /* @__PURE__ */ n("div", { className: "w-24 h-24 bg-danger-alt/20 rounded-full flex items-center justify-center mx-auto mb-6", children: /* @__PURE__ */ n("span", { className: "text-4xl", children: "⚠️" }) }),
2529
2522
  /* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
@@ -2651,7 +2644,7 @@ const _i = ({
2651
2644
  onBack: R
2652
2645
  }
2653
2646
  ) : D ? /* @__PURE__ */ n(he, { message: D }) : F && !k ? /* @__PURE__ */ n(he, { message: "Conversation ended" }) : k ? /* @__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(
2654
- un,
2647
+ dn,
2655
2648
  {
2656
2649
  channel: k,
2657
2650
  renderMessageInputActions: t,
@@ -2680,14 +2673,14 @@ function Ka(e) {
2680
2673
  for (const s of t)
2681
2674
  e.state.addMessageSorted(s.message);
2682
2675
  }
2683
- const mn = z.createContext({
2676
+ const un = z.createContext({
2684
2677
  selectedChannel: void 0,
2685
2678
  onChannelSelect: () => {
2686
2679
  },
2687
2680
  debug: !1,
2688
2681
  renderMessagePreview: void 0,
2689
2682
  viewerLanguage: void 0
2690
- }), Ja = mn.Provider, Za = () => z.useContext(mn), Qa = (e, t) => {
2683
+ }), Ja = un.Provider, Za = () => z.useContext(un), Qa = (e, t) => {
2691
2684
  const s = new Date(
2692
2685
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
2693
2686
  ), r = new Date(
@@ -2708,7 +2701,7 @@ const mn = z.createContext({
2708
2701
  day: "numeric",
2709
2702
  year: "2-digit"
2710
2703
  });
2711
- }, hn = z.memo(
2704
+ }, mn = z.memo(
2712
2705
  ({ channel: e, unread: t }) => {
2713
2706
  var R, I, C;
2714
2707
  const {
@@ -2736,7 +2729,7 @@ const mn = z.createContext({
2736
2729
  }
2737
2730
  })(), v = (() => {
2738
2731
  var Z, U, G, P;
2739
- const k = Kt({
2732
+ const k = Xt({
2740
2733
  message: p,
2741
2734
  viewerLanguage: o
2742
2735
  });
@@ -2746,7 +2739,7 @@ const mn = z.createContext({
2746
2739
  if (k) return k;
2747
2740
  const F = (P = p == null ? void 0 : p.attachments) == null ? void 0 : P[0];
2748
2741
  return F ? F.og_scrape_url ? F.og_scrape_url : F.type === "image" ? "📷 Sent an image" : F.type === "video" ? "🎥 Sent a video" : F.type === "audio" ? "🎵 Sent audio" : F.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
2749
- })(), x = p != null && p.created_at ? er(new Date(p.created_at)) : "", w = p ? Ce(p) : !1, A = i ? i(p, v) : `${w ? "✨ " : ""}${v}`, T = Xt(e), S = t ?? 0;
2742
+ })(), x = p != null && p.created_at ? er(new Date(p.created_at)) : "", w = p ? Ce(p) : !1, A = i ? i(p, v) : `${w ? "✨ " : ""}${v}`, T = Wt(e), S = t ?? 0;
2750
2743
  return r && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
2751
2744
  channelId: e == null ? void 0 : e.id,
2752
2745
  isSelected: l,
@@ -2761,22 +2754,21 @@ const mn = z.createContext({
2761
2754
  onClick: d,
2762
2755
  onKeyDown: m,
2763
2756
  className: y(
2764
- "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring",
2757
+ "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring rounded-[12px] [&+&]:mt-2",
2765
2758
  {
2766
- "bg-primary-alt/10 border-l-4 border-l-primary": l,
2767
- "hover:bg-sand": !l
2759
+ "bg-black/[0.04]": l,
2760
+ "hover:bg-black/[0.02]": !l
2768
2761
  }
2769
2762
  ),
2770
- children: /* @__PURE__ */ h("div", { className: "flex items-start gap-3", children: [
2763
+ children: /* @__PURE__ */ h("div", { className: "flex items-start gap-4", children: [
2771
2764
  /* @__PURE__ */ n(
2772
2765
  ae,
2773
2766
  {
2774
2767
  id: ((C = u == null ? void 0 : u.user) == null ? void 0 : C.id) || e.id || "unknown",
2775
2768
  name: f,
2776
2769
  image: c,
2777
- size: 44,
2778
- starred: T,
2779
- className: "[&_.avatar-fallback]:group-hover:bg-[#eeeeee]"
2770
+ size: 48,
2771
+ starred: T
2780
2772
  }
2781
2773
  ),
2782
2774
  /* @__PURE__ */ h("div", { className: "flex-1 min-w-0 flex flex-col gap-1", children: [
@@ -2785,8 +2777,7 @@ const mn = z.createContext({
2785
2777
  "h3",
2786
2778
  {
2787
2779
  className: y(
2788
- "text-sm font-medium truncate",
2789
- l ? "text-primary" : "text-charcoal"
2780
+ "text-sm font-medium truncate text-[#191918]"
2790
2781
  ),
2791
2782
  children: [
2792
2783
  T && /* @__PURE__ */ n("span", { className: "sr-only", children: "Starred conversation. " }),
@@ -2794,11 +2785,11 @@ const mn = z.createContext({
2794
2785
  ]
2795
2786
  }
2796
2787
  ),
2797
- x && /* @__PURE__ */ n("span", { className: "text-xs text-stone flex-shrink-0", children: x })
2788
+ x && /* @__PURE__ */ n("span", { className: "text-xs text-[#717070] flex-shrink-0", children: x })
2798
2789
  ] }),
2799
2790
  /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
2800
- /* @__PURE__ */ n("p", { className: "text-xs text-stone flex-1 line-clamp-1", children: A }),
2801
- S > 0 && /* @__PURE__ */ n("span", { className: "bg-[#7f22fe] text-white text-xs px-2 py-0.5 rounded-full min-w-[20px] text-center flex-shrink-0", children: S > 99 ? "99+" : S })
2791
+ /* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: A }),
2792
+ S > 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: S > 99 ? "99+" : S })
2802
2793
  ] })
2803
2794
  ] })
2804
2795
  ] })
@@ -2806,7 +2797,7 @@ const mn = z.createContext({
2806
2797
  );
2807
2798
  }
2808
2799
  );
2809
- hn.displayName = "CustomChannelPreview";
2800
+ mn.displayName = "CustomChannelPreview";
2810
2801
  const tr = { last_message_at: -1 }, nr = z.memo(
2811
2802
  ({
2812
2803
  onChannelSelect: e,
@@ -2822,7 +2813,7 @@ const tr = { last_message_at: -1 }, nr = z.memo(
2822
2813
  }) => {
2823
2814
  const g = z.useRef(0);
2824
2815
  g.current++;
2825
- const { debug: u = !1 } = We(), f = z.useCallback(
2816
+ const { debug: u = !1 } = qe(), f = z.useCallback(
2826
2817
  (p) => {
2827
2818
  for (const N of p)
2828
2819
  Ka(N);
@@ -2859,14 +2850,14 @@ const tr = { last_message_at: -1 }, nr = z.memo(
2859
2850
  o
2860
2851
  ),
2861
2852
  children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(Ja, { value: c, children: /* @__PURE__ */ n(
2862
- cs,
2853
+ ls,
2863
2854
  {
2864
2855
  filters: s,
2865
2856
  sort: i,
2866
2857
  options: { limit: 30 },
2867
2858
  allowNewMessagesFromUnfilteredChannels: a,
2868
2859
  channelRenderFilterFn: f,
2869
- Preview: hn,
2860
+ Preview: mn,
2870
2861
  EmptyStateIndicator: l
2871
2862
  },
2872
2863
  `${JSON.stringify(s)}:${JSON.stringify(i)}`
@@ -2877,7 +2868,7 @@ const tr = { last_message_at: -1 }, nr = z.memo(
2877
2868
  );
2878
2869
  nr.displayName = "ChannelList";
2879
2870
  const sr = /^([a-z][a-z0-9+.-]*):/i, ar = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
2880
- function et(e) {
2871
+ function Qe(e) {
2881
2872
  if (typeof e != "string") return;
2882
2873
  const t = e.trim();
2883
2874
  if (t === "") return;
@@ -2895,7 +2886,7 @@ const rr = {
2895
2886
  const s = y(
2896
2887
  "mt-2 inline-flex h-10 w-full items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
2897
2888
  rr[e]
2898
- ), a = et(t.href);
2889
+ ), a = Qe(t.href);
2899
2890
  return a ? /* @__PURE__ */ n(
2900
2891
  "a",
2901
2892
  {
@@ -2927,7 +2918,7 @@ const rr = {
2927
2918
  }, lr = "text-white/30", cr = {
2928
2919
  dark: "text-white/55",
2929
2920
  light: "text-black/55"
2930
- }, tt = ({
2921
+ }, et = ({
2931
2922
  variant: e,
2932
2923
  title: t,
2933
2924
  placeholderTitle: s,
@@ -3035,11 +3026,11 @@ const rr = {
3035
3026
  }, mr = {
3036
3027
  dark: "size-16 text-white/25",
3037
3028
  light: "size-16 text-black/25"
3038
- }, Ae = (e, t) => !!t && !!e && re(e) === "audio", fn = (e, t) => {
3029
+ }, Ae = (e, t) => !!t && !!e && re(e) === "audio", hn = (e, t) => {
3039
3030
  if (!t || !e) return !1;
3040
3031
  const s = re(e);
3041
3032
  return s === "video" || s === "audio";
3042
- }, nt = "bg-[#F2F3F4]", Ie = ({
3033
+ }, tt = "bg-[#F2F3F4]", Ie = ({
3043
3034
  variant: e,
3044
3035
  thumbnailUrl: t,
3045
3036
  sourceUrl: s,
@@ -3092,7 +3083,7 @@ const rr = {
3092
3083
  "flex h-full w-full items-center justify-center",
3093
3084
  ur[e]
3094
3085
  ),
3095
- children: ce(r, {
3086
+ children: le(r, {
3096
3087
  className: mr[e],
3097
3088
  weight: "regular"
3098
3089
  })
@@ -3133,10 +3124,10 @@ const rr = {
3133
3124
  onClick: u,
3134
3125
  "aria-label": "Edit attachment",
3135
3126
  className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
3136
- children: /* @__PURE__ */ n(Ts, { className: "size-5", weight: "regular" })
3127
+ children: /* @__PURE__ */ n(Ss, { className: "size-5", weight: "regular" })
3137
3128
  }
3138
3129
  ) : void 0;
3139
- return c ? /* @__PURE__ */ n(Ee, { variant: "dark", bgClassName: nt, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
3130
+ return c ? /* @__PURE__ */ n(Ee, { variant: "dark", bgClassName: tt, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
3140
3131
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
3141
3132
  Ie,
3142
3133
  {
@@ -3165,7 +3156,7 @@ const rr = {
3165
3156
  }
3166
3157
  ),
3167
3158
  /* @__PURE__ */ n(
3168
- tt,
3159
+ et,
3169
3160
  {
3170
3161
  variant: "dark",
3171
3162
  title: e,
@@ -3192,7 +3183,7 @@ const rr = {
3192
3183
  cta: d,
3193
3184
  onClick: m
3194
3185
  }) => {
3195
- const g = fn(a, i), u = et(s), f = d == null && u != null && !g ? u : void 0, c = d == null && !g ? m : void 0, p = Ae(a, i) ? nt : void 0, N = d && m ? {
3186
+ const g = hn(a, i), u = Qe(s), f = d == null && u != null && !g ? u : void 0, c = d == null && !g ? m : void 0, p = Ae(a, i) ? tt : void 0, N = d && m ? {
3196
3187
  ...d,
3197
3188
  onClick: () => {
3198
3189
  var v;
@@ -3220,7 +3211,7 @@ const rr = {
3220
3211
  }
3221
3212
  ),
3222
3213
  /* @__PURE__ */ n(
3223
- tt,
3214
+ et,
3224
3215
  {
3225
3216
  variant: "light",
3226
3217
  title: e,
@@ -3246,14 +3237,14 @@ const rr = {
3246
3237
  cta: m,
3247
3238
  onClick: g
3248
3239
  }) => {
3249
- const u = fn(r, o), f = et(a), c = m == null && f != null && !u ? f : void 0, p = m == null && !u && c != null ? g : void 0;
3240
+ const u = hn(r, o), f = Qe(a), c = m == null && f != null && !u ? f : void 0, p = m == null && !u && c != null ? g : void 0;
3250
3241
  return /* @__PURE__ */ h(
3251
3242
  Ee,
3252
3243
  {
3253
3244
  variant: "dark",
3254
3245
  href: c,
3255
3246
  onClick: p,
3256
- bgClassName: Ae(r, o) ? nt : void 0,
3247
+ bgClassName: Ae(r, o) ? tt : void 0,
3257
3248
  children: [
3258
3249
  l === "featured" && /* @__PURE__ */ n(
3259
3250
  Ie,
@@ -3266,7 +3257,7 @@ const rr = {
3266
3257
  }
3267
3258
  ),
3268
3259
  /* @__PURE__ */ n(
3269
- tt,
3260
+ et,
3270
3261
  {
3271
3262
  variant: "dark",
3272
3263
  title: e,
@@ -3397,7 +3388,7 @@ const rr = {
3397
3388
  }
3398
3389
  ),
3399
3390
  s ?? null
3400
- ] }), st = ({
3391
+ ] }), nt = ({
3401
3392
  state: e,
3402
3393
  src: t,
3403
3394
  mimeType: s,
@@ -3434,7 +3425,7 @@ const rr = {
3434
3425
  )) })
3435
3426
  }
3436
3427
  );
3437
- }, yr = (e) => /* @__PURE__ */ n(st, { ...e, state: "composer" }), Cr = (e) => /* @__PURE__ */ n(st, { ...e, state: "sent" }), kr = (e) => /* @__PURE__ */ n(st, { ...e, state: "received" }), Er = {
3428
+ }, yr = (e) => /* @__PURE__ */ n(nt, { ...e, state: "composer" }), Cr = (e) => /* @__PURE__ */ n(nt, { ...e, state: "sent" }), kr = (e) => /* @__PURE__ */ n(nt, { ...e, state: "received" }), Er = {
3438
3429
  Composer: yr,
3439
3430
  Sent: Cr,
3440
3431
  Received: kr
@@ -3462,7 +3453,7 @@ function Tr(e, t) {
3462
3453
  }
3463
3454
  if (!e) return;
3464
3455
  if (re(e) === "document") {
3465
- const r = Qt(e), i = Sr[r];
3456
+ const r = Zt(e), i = Sr[r];
3466
3457
  if (i) return i;
3467
3458
  if (e === "application/octet-stream") return;
3468
3459
  }
@@ -3491,7 +3482,7 @@ const Mr = {
3491
3482
  }, Rr = {
3492
3483
  dark: "text-white/85",
3493
3484
  light: "text-black/85"
3494
- }, gn = ({
3485
+ }, fn = ({
3495
3486
  variant: e,
3496
3487
  filename: t,
3497
3488
  title: s,
@@ -3509,7 +3500,7 @@ const Mr = {
3509
3500
  Dr[e]
3510
3501
  ),
3511
3502
  "aria-hidden": !0,
3512
- children: ce(a, {
3503
+ children: le(a, {
3513
3504
  className: y("size-6", Rr[e]),
3514
3505
  weight: "regular"
3515
3506
  })
@@ -3550,7 +3541,7 @@ const Mr = {
3550
3541
  l ? /* @__PURE__ */ n("div", { className: "shrink-0", children: l }) : null
3551
3542
  ] });
3552
3543
  };
3553
- async function bn(e, t) {
3544
+ async function gn(e, t) {
3554
3545
  const s = t ?? te(e);
3555
3546
  try {
3556
3547
  const a = await fetch(e, { mode: "cors" });
@@ -3580,7 +3571,7 @@ const Lr = ({
3580
3571
  }) => {
3581
3572
  const i = t.filename ?? te(t.src);
3582
3573
  return /* @__PURE__ */ n(
3583
- gn,
3574
+ fn,
3584
3575
  {
3585
3576
  variant: e,
3586
3577
  filename: i,
@@ -3592,7 +3583,7 @@ const Lr = ({
3592
3583
  trailingAction: r
3593
3584
  }
3594
3585
  );
3595
- }, at = ({
3586
+ }, st = ({
3596
3587
  state: e,
3597
3588
  src: t,
3598
3589
  filename: s,
@@ -3617,7 +3608,7 @@ const Lr = ({
3617
3608
  const x = c[v];
3618
3609
  if (!x) return;
3619
3610
  const w = x.filename ?? te(x.src);
3620
- bn(x.src, w);
3611
+ gn(x.src, w);
3621
3612
  };
3622
3613
  if (c.length === 0)
3623
3614
  return null;
@@ -3652,11 +3643,11 @@ const Lr = ({
3652
3643
  )) })
3653
3644
  }
3654
3645
  );
3655
- }, Or = (e) => /* @__PURE__ */ n(at, { ...e, state: "composer" }), zr = (e) => /* @__PURE__ */ n(at, { ...e, state: "sent" }), Fr = (e) => /* @__PURE__ */ n(at, { ...e, state: "received" }), $r = {
3646
+ }, Or = (e) => /* @__PURE__ */ n(st, { ...e, state: "composer" }), zr = (e) => /* @__PURE__ */ n(st, { ...e, state: "sent" }), Fr = (e) => /* @__PURE__ */ n(st, { ...e, state: "received" }), $r = {
3656
3647
  Composer: Or,
3657
3648
  Sent: zr,
3658
3649
  Received: Fr
3659
- }, rt = ({
3650
+ }, at = ({
3660
3651
  onPrev: e,
3661
3652
  onNext: t,
3662
3653
  prevLabel: s = "Previous",
@@ -3669,7 +3660,7 @@ const Lr = ({
3669
3660
  onClick: e,
3670
3661
  "aria-label": s,
3671
3662
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
3672
- children: /* @__PURE__ */ n(As, { size: 20, weight: "bold", "aria-hidden": !0 })
3663
+ children: /* @__PURE__ */ n(Ts, { size: 20, weight: "bold", "aria-hidden": !0 })
3673
3664
  }
3674
3665
  ),
3675
3666
  /* @__PURE__ */ n(
@@ -3679,10 +3670,10 @@ const Lr = ({
3679
3670
  onClick: t,
3680
3671
  "aria-label": a,
3681
3672
  className: "mes-media-viewer__nav mes-media-viewer__nav--next",
3682
- children: /* @__PURE__ */ n(Ve, { size: 20, weight: "bold", "aria-hidden": !0 })
3673
+ children: /* @__PURE__ */ n(As, { size: 20, weight: "bold", "aria-hidden": !0 })
3683
3674
  }
3684
3675
  )
3685
- ] }), pn = ({
3676
+ ] }), bn = ({
3686
3677
  url: e,
3687
3678
  filename: t,
3688
3679
  variant: s = "pill",
@@ -3693,7 +3684,7 @@ const Lr = ({
3693
3684
  }) => {
3694
3685
  const [l, d] = O(!1), m = q(
3695
3686
  (c) => {
3696
- c.stopPropagation(), !l && (d(!0), bn(e, t).catch(() => {
3687
+ c.stopPropagation(), !l && (d(!0), gn(e, t).catch(() => {
3697
3688
  }).finally(() => {
3698
3689
  d(!1), o == null || o();
3699
3690
  }));
@@ -3767,7 +3758,7 @@ const Lr = ({
3767
3758
  ]
3768
3759
  }
3769
3760
  );
3770
- }, Fe = (e, t, s) => Math.min(Math.max(e, t), s), it = ({
3761
+ }, Fe = (e, t, s) => Math.min(Math.max(e, t), s), rt = ({
3771
3762
  length: e,
3772
3763
  initialIndex: t,
3773
3764
  open: s
@@ -3792,7 +3783,7 @@ const Lr = ({
3792
3783
  };
3793
3784
  return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
3794
3785
  }, [s, e, o, l]), { index: r, prev: o, next: l };
3795
- }, ot = ({
3786
+ }, it = ({
3796
3787
  open: e,
3797
3788
  onClose: t,
3798
3789
  ariaLabel: s,
@@ -3882,13 +3873,13 @@ const Lr = ({
3882
3873
  ]
3883
3874
  }
3884
3875
  );
3885
- }, vn = ({
3876
+ }, pn = ({
3886
3877
  open: e,
3887
3878
  items: t,
3888
3879
  initialIndex: s = 0,
3889
3880
  onClose: a
3890
3881
  }) => {
3891
- const { index: r, prev: i, next: o } = it({
3882
+ const { index: r, prev: i, next: o } = rt({
3892
3883
  length: t.length,
3893
3884
  initialIndex: s,
3894
3885
  open: e
@@ -3897,14 +3888,14 @@ const Lr = ({
3897
3888
  [l]
3898
3889
  );
3899
3890
  return l ? /* @__PURE__ */ h(
3900
- ot,
3891
+ it,
3901
3892
  {
3902
3893
  open: e,
3903
3894
  onClose: a,
3904
3895
  ariaLabel: d,
3905
3896
  counter: t.length > 1 ? `${r + 1} / ${t.length}` : void 0,
3906
3897
  actions: /* @__PURE__ */ n(
3907
- pn,
3898
+ bn,
3908
3899
  {
3909
3900
  url: l.src,
3910
3901
  filename: d,
@@ -3927,7 +3918,7 @@ const Lr = ({
3927
3918
  `${r}:${l.src}`
3928
3919
  ),
3929
3920
  t.length > 1 ? /* @__PURE__ */ n(
3930
- rt,
3921
+ at,
3931
3922
  {
3932
3923
  onPrev: i,
3933
3924
  onNext: o,
@@ -3938,7 +3929,7 @@ const Lr = ({
3938
3929
  ]
3939
3930
  }
3940
3931
  ) : null;
3941
- }, Br = "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", xn = ({
3932
+ }, Br = "relative block size-full overflow-hidden bg-black/5 outline-none focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-black", vn = ({
3942
3933
  tiles: e,
3943
3934
  onTileActivate: t,
3944
3935
  maxVisible: s = 4,
@@ -4035,7 +4026,7 @@ const Lr = ({
4035
4026
  src: e,
4036
4027
  alt: t,
4037
4028
  items: s
4038
- }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], wn = (e, t) => e.map((s, a) => ({
4029
+ }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], xn = (e, t) => e.map((s, a) => ({
4039
4030
  src: s.src,
4040
4031
  alt: s.alt,
4041
4032
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
@@ -4066,16 +4057,16 @@ const Lr = ({
4066
4057
  ),
4067
4058
  i ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(xe, { onClick: i }) }) : null,
4068
4059
  /* @__PURE__ */ n(
4069
- vn,
4060
+ pn,
4070
4061
  {
4071
4062
  open: o,
4072
- items: wn([{ src: e, alt: t }], s),
4063
+ items: xn([{ src: e, alt: t }], s),
4073
4064
  initialIndex: l,
4074
4065
  onClose: m
4075
4066
  }
4076
4067
  )
4077
4068
  ] });
4078
- }, Nn = ({
4069
+ }, wn = ({
4079
4070
  state: e,
4080
4071
  src: t,
4081
4072
  alt: s,
@@ -4102,12 +4093,12 @@ const Lr = ({
4102
4093
  groupPosition: o,
4103
4094
  "data-testid": "image-attachment",
4104
4095
  children: [
4105
- /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(xn, { tiles: N, onTileActivate: c }) }),
4096
+ /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(vn, { tiles: N, onTileActivate: c }) }),
4106
4097
  /* @__PURE__ */ n(
4107
- vn,
4098
+ pn,
4108
4099
  {
4109
4100
  open: u,
4110
- items: wn(m, a),
4101
+ items: xn(m, a),
4111
4102
  initialIndex: f,
4112
4103
  onClose: p
4113
4104
  }
@@ -4115,7 +4106,7 @@ const Lr = ({
4115
4106
  ]
4116
4107
  }
4117
4108
  );
4118
- }, Gr = (e) => /* @__PURE__ */ n(Ur, { ...e }), Hr = (e) => /* @__PURE__ */ n(Nn, { ...e, state: "sent" }), Yr = (e) => /* @__PURE__ */ n(Nn, { ...e, state: "received" }), qr = {
4109
+ }, Gr = (e) => /* @__PURE__ */ n(Ur, { ...e }), Hr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "sent" }), Yr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "received" }), qr = {
4119
4110
  Composer: Gr,
4120
4111
  Sent: Hr,
4121
4112
  Received: Yr
@@ -4125,7 +4116,7 @@ const Lr = ({
4125
4116
  initialIndex: s = 0,
4126
4117
  onClose: a
4127
4118
  }) => {
4128
- const { index: r, prev: i, next: o } = it({
4119
+ const { index: r, prev: i, next: o } = rt({
4129
4120
  length: t.length,
4130
4121
  initialIndex: s,
4131
4122
  open: e
@@ -4137,7 +4128,7 @@ const Lr = ({
4137
4128
  [l]
4138
4129
  );
4139
4130
  return !l || !m ? null : /* @__PURE__ */ h(
4140
- ot,
4131
+ it,
4141
4132
  {
4142
4133
  open: e,
4143
4134
  onClose: a,
@@ -4156,7 +4147,7 @@ const Lr = ({
4156
4147
  `${r}:${l.src}`
4157
4148
  ),
4158
4149
  t.length > 1 ? /* @__PURE__ */ n(
4159
- rt,
4150
+ at,
4160
4151
  {
4161
4152
  onPrev: i,
4162
4153
  onNext: o,
@@ -4185,7 +4176,7 @@ const Lr = ({
4185
4176
  }) => {
4186
4177
  const i = t.filename ?? te(t.src);
4187
4178
  return /* @__PURE__ */ n(
4188
- gn,
4179
+ fn,
4189
4180
  {
4190
4181
  variant: e,
4191
4182
  filename: i,
@@ -4197,7 +4188,7 @@ const Lr = ({
4197
4188
  trailingAction: r
4198
4189
  }
4199
4190
  );
4200
- }, lt = ({
4191
+ }, ot = ({
4201
4192
  state: e,
4202
4193
  src: t,
4203
4194
  filename: s,
@@ -4228,7 +4219,7 @@ const Lr = ({
4228
4219
  children: [
4229
4220
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((w, A) => {
4230
4221
  const T = w.filename ?? te(w.src), S = v && A === 0 ? /* @__PURE__ */ n(xe, { onClick: m, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4231
- pn,
4222
+ bn,
4232
4223
  {
4233
4224
  url: w.src,
4234
4225
  filename: T,
@@ -4261,17 +4252,17 @@ const Lr = ({
4261
4252
  ]
4262
4253
  }
4263
4254
  );
4264
- }, Zr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "composer" }), Qr = (e) => /* @__PURE__ */ n(lt, { ...e, state: "sent" }), ei = (e) => /* @__PURE__ */ n(lt, { ...e, state: "received" }), ti = {
4255
+ }, Zr = (e) => /* @__PURE__ */ n(ot, { ...e, state: "composer" }), Qr = (e) => /* @__PURE__ */ n(ot, { ...e, state: "sent" }), ei = (e) => /* @__PURE__ */ n(ot, { ...e, state: "received" }), ti = {
4265
4256
  Composer: Zr,
4266
4257
  Sent: Qr,
4267
4258
  Received: ei
4268
- }, _n = ({
4259
+ }, Nn = ({
4269
4260
  open: e,
4270
4261
  items: t,
4271
4262
  initialIndex: s = 0,
4272
4263
  onClose: a
4273
4264
  }) => {
4274
- const { index: r, prev: i, next: o } = it({
4265
+ const { index: r, prev: i, next: o } = rt({
4275
4266
  length: t.length,
4276
4267
  initialIndex: s,
4277
4268
  open: e
@@ -4280,7 +4271,7 @@ const Lr = ({
4280
4271
  [l]
4281
4272
  );
4282
4273
  return l ? /* @__PURE__ */ h(
4283
- ot,
4274
+ it,
4284
4275
  {
4285
4276
  open: e,
4286
4277
  onClose: a,
@@ -4304,7 +4295,7 @@ const Lr = ({
4304
4295
  `${r}:${l.src}`
4305
4296
  ),
4306
4297
  t.length > 1 ? /* @__PURE__ */ n(
4307
- rt,
4298
+ at,
4308
4299
  {
4309
4300
  onPrev: i,
4310
4301
  onNext: o,
@@ -4315,7 +4306,7 @@ const Lr = ({
4315
4306
  ]
4316
4307
  }
4317
4308
  ) : null;
4318
- }, ni = () => /* @__PURE__ */ n("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n("span", { className: "flex size-12 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur", children: /* @__PURE__ */ n(Be, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), yn = ({
4309
+ }, ni = () => /* @__PURE__ */ n("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n("span", { className: "flex size-12 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur", children: /* @__PURE__ */ n(Be, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), _n = ({
4319
4310
  item: e,
4320
4311
  index: t
4321
4312
  }) => /* @__PURE__ */ h("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -4330,7 +4321,7 @@ const Lr = ({
4330
4321
  className: "absolute inset-0 size-full rounded-md object-cover"
4331
4322
  }
4332
4323
  ) : /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n(
4333
- Yt,
4324
+ Ht,
4334
4325
  {
4335
4326
  className: "size-16 rounded-md text-white/30",
4336
4327
  weight: "regular",
@@ -4340,14 +4331,14 @@ const Lr = ({
4340
4331
  /* @__PURE__ */ n(ni, {})
4341
4332
  ] }), si = (e, t, s) => ({
4342
4333
  ariaLabel: `Play video ${t + 1} of ${s}`,
4343
- content: /* @__PURE__ */ n(yn, { item: e, index: t })
4334
+ content: /* @__PURE__ */ n(_n, { item: e, index: t })
4344
4335
  }), ai = ({
4345
4336
  src: e,
4346
4337
  poster: t,
4347
4338
  mimeType: s,
4348
4339
  preload: a,
4349
4340
  items: r
4350
- }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: s, preload: a }] : [], Cn = (e, t) => e.map((s, a) => ({
4341
+ }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: s, preload: a }] : [], yn = (e, t) => e.map((s, a) => ({
4351
4342
  src: s.src,
4352
4343
  poster: s.poster,
4353
4344
  mimeType: s.mimeType,
@@ -4365,15 +4356,15 @@ const Lr = ({
4365
4356
  onClick: () => m(0),
4366
4357
  "aria-label": "Play video",
4367
4358
  className: "relative block size-[280px] cursor-pointer overflow-hidden rounded-md outline-none focus-visible:ring-2 focus-visible:ring-black/40",
4368
- children: /* @__PURE__ */ n(yn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4359
+ children: /* @__PURE__ */ n(_n, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4369
4360
  }
4370
4361
  ),
4371
4362
  o ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(xe, { onClick: o }) }) : null,
4372
4363
  /* @__PURE__ */ n(
4373
- _n,
4364
+ Nn,
4374
4365
  {
4375
4366
  open: l,
4376
- items: Cn(
4367
+ items: yn(
4377
4368
  [{ src: e, poster: t, mimeType: s, preload: r }],
4378
4369
  a
4379
4370
  ),
@@ -4382,7 +4373,7 @@ const Lr = ({
4382
4373
  }
4383
4374
  )
4384
4375
  ] });
4385
- }, kn = ({
4376
+ }, Cn = ({
4386
4377
  state: e,
4387
4378
  src: t,
4388
4379
  poster: s,
@@ -4411,7 +4402,7 @@ const Lr = ({
4411
4402
  "data-testid": "video-attachment",
4412
4403
  children: [
4413
4404
  /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(
4414
- xn,
4405
+ vn,
4415
4406
  {
4416
4407
  tiles: v,
4417
4408
  onTileActivate: p,
@@ -4419,10 +4410,10 @@ const Lr = ({
4419
4410
  }
4420
4411
  ) }),
4421
4412
  /* @__PURE__ */ n(
4422
- _n,
4413
+ Nn,
4423
4414
  {
4424
4415
  open: f,
4425
- items: Cn(g, r),
4416
+ items: yn(g, r),
4426
4417
  initialIndex: c,
4427
4418
  onClose: N
4428
4419
  }
@@ -4430,7 +4421,7 @@ const Lr = ({
4430
4421
  ]
4431
4422
  }
4432
4423
  );
4433
- }, ii = (e) => /* @__PURE__ */ n(ri, { ...e }), oi = (e) => /* @__PURE__ */ n(kn, { ...e, state: "sent" }), li = (e) => /* @__PURE__ */ n(kn, { ...e, state: "received" }), ci = {
4424
+ }, ii = (e) => /* @__PURE__ */ n(ri, { ...e }), oi = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "sent" }), li = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "received" }), ci = {
4434
4425
  Composer: ii,
4435
4426
  Sent: oi,
4436
4427
  Received: li
@@ -4505,7 +4496,7 @@ const Lr = ({
4505
4496
  ] }) });
4506
4497
  };
4507
4498
  export {
4508
- en as A,
4499
+ Qt as A,
4509
4500
  Vs as B,
4510
4501
  Ya as C,
4511
4502
  Ds as D,
@@ -4515,11 +4506,11 @@ export {
4515
4506
  ye as a,
4516
4507
  ae as b,
4517
4508
  nr as c,
4518
- un as d,
4509
+ dn as d,
4519
4510
  Ni as e,
4520
4511
  di as f,
4521
4512
  re as g,
4522
- Ft as h,
4513
+ zt as h,
4523
4514
  ki as i,
4524
4515
  Na as j,
4525
4516
  xi as k,
@@ -4528,15 +4519,15 @@ export {
4528
4519
  Ir as n,
4529
4520
  er as o,
4530
4521
  Tr as p,
4531
- Kt as q,
4532
- ce as r,
4533
- sn as s,
4522
+ Xt as q,
4523
+ le as r,
4524
+ nn as s,
4534
4525
  Ls as t,
4535
4526
  Ci as u,
4536
4527
  Us as v,
4537
- Ze as w,
4538
- Qe as x,
4528
+ Je as w,
4529
+ Ze as x,
4539
4530
  Te as y,
4540
4531
  ga as z
4541
4532
  };
4542
- //# sourceMappingURL=index-Cj6b1oEe.js.map
4533
+ //# sourceMappingURL=index-UtNoTrrb.js.map