@linktr.ee/messaging-react 3.1.2 → 3.1.3-rc-1780618254

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-Dbz87-zR.cjs → Card-BHF-XfHG.cjs} +2 -2
  2. package/dist/{Card-Dbz87-zR.cjs.map → Card-BHF-XfHG.cjs.map} +1 -1
  3. package/dist/{Card-2Vcm5_-_.cjs → Card-CqeFyk7l.cjs} +2 -2
  4. package/dist/{Card-2Vcm5_-_.cjs.map → Card-CqeFyk7l.cjs.map} +1 -1
  5. package/dist/{Card-CScx0yAg.js → Card-Ctub3AU9.js} +2 -2
  6. package/dist/{Card-CScx0yAg.js.map → Card-Ctub3AU9.js.map} +1 -1
  7. package/dist/{Card-BUsHZ7Og.cjs → Card-DvoK42pX.cjs} +2 -2
  8. package/dist/{Card-BUsHZ7Og.cjs.map → Card-DvoK42pX.cjs.map} +1 -1
  9. package/dist/{Card-CbR6yi8j.js → Card-RHd97_iq.js} +2 -2
  10. package/dist/{Card-CbR6yi8j.js.map → Card-RHd97_iq.js.map} +1 -1
  11. package/dist/{Card-DWc7s-Ty.js → Card-VEde2Hfe.js} +3 -3
  12. package/dist/{Card-DWc7s-Ty.js.map → Card-VEde2Hfe.js.map} +1 -1
  13. package/dist/{LockedThumbnail-_OY_3HpX.js → LockedThumbnail-BADzjHNM.js} +2 -2
  14. package/dist/{LockedThumbnail-_OY_3HpX.js.map → LockedThumbnail-BADzjHNM.js.map} +1 -1
  15. package/dist/{LockedThumbnail-C-rn_o2_.cjs → LockedThumbnail-BPMP5yZP.cjs} +2 -2
  16. package/dist/{LockedThumbnail-C-rn_o2_.cjs.map → LockedThumbnail-BPMP5yZP.cjs.map} +1 -1
  17. package/dist/assets/index.css +1 -1
  18. package/dist/index-BQf4WkPC.cjs +2 -0
  19. package/dist/index-BQf4WkPC.cjs.map +1 -0
  20. package/dist/{index-Dca2QSVv.js → index-CnOvDQIp.js} +207 -217
  21. package/dist/index-CnOvDQIp.js.map +1 -0
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +1 -1
  24. package/package.json +1 -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 +20 -19
  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-Bgbm6F_U.cjs +0 -2
  33. package/dist/index-Bgbm6F_U.cjs.map +0 -1
  34. package/dist/index-Dca2QSVv.js.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as n, jsxs as h, Fragment as se } from "react/jsx-runtime";
2
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 In } from "@linktr.ee/messaging-core";
4
- import { Chat as Sn, DateSeparator as Tn, useChannelStateContext as de, useChatContext as Ye, 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 Un, isDateSeparatorMessage as Vn, isMessageBlocked as Gn, isMessageBounced as Hn, MessageBounceModal as Yn, MessageText as At, 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 Mt, FlagIcon as Vt, FileIcon as Gt, ImageIcon as us, SpeakerHighIcon as ms, VideoCameraIcon as Ht, 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 Dt, DotsThreeIcon as Rt, CaretRightIcon as Yt, PencilSimpleIcon as Ts, CaretLeftIcon as As } from "@phosphor-icons/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 Ut, 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 Un, isMessageBlocked as Vn, 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 Vt, 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";
7
+ import { MessageActions as Ms, DefaultDropdownActionButton as Yt } from "stream-chat-react/experimental";
8
8
  import { LinkPreviewsManager as Lt } from "stream-chat";
9
- const Wt = Ge({
9
+ const qt = Ge({
10
10
  service: null,
11
11
  client: null,
12
12
  isConnected: !1,
@@ -16,7 +16,7 @@ const Wt = Ge({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), qe = () => 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 = Ge({
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 = Ge({
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 = () => qe(), 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)
@@ -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,
@@ -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
  }
@@ -596,12 +593,12 @@ const $s = ({
596
593
  }
597
594
  )
598
595
  );
599
- }, Bs = (e) => /* @__PURE__ */ n(Tn, { ...e, position: "center" }), Ue = "vote_up", Ve = "vote_down";
596
+ }, Bs = (e) => /* @__PURE__ */ n(Sn, { ...e, position: "center" }), Ue = "vote_up", Ve = "vote_down";
600
597
  function js(e) {
601
598
  return e != null && e.length ? e.some((t) => t.type === Ve) ? "down" : e.some((t) => t.type === Ue) ? "up" : null : null;
602
599
  }
603
600
  function Us(e) {
604
- const { channel: t } = de(), { client: s } = Ye("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 () => {
@@ -630,7 +627,7 @@ function Us(e) {
630
627
  function Vs(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 = Vs(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-CScx0yAg.js")), Hs = z.lazy(() => import("./Card-CbR6yi8j.js")), Ys = z.lazy(() => import("./Card-DWc7s-Ty.js")), We = () => /* @__PURE__ */ n(
638
+ const Gs = z.lazy(() => import("./Card-Ctub3AU9.js")), Hs = z.lazy(() => import("./Card-RHd97_iq.js")), Ys = z.lazy(() => import("./Card-VEde2Hfe.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(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Gs, { ...e }) }), Jt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Hs, { ...e }) }), Zt = (e) => /* @__PURE__ */ n(He, { fallback: /* @__PURE__ */ n(We, {}), children: /* @__PURE__ */ n(Ys, { ...e }) }), Ws = Jt, Xs = Zt, zt = { 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,7 +654,7 @@ const Gs = z.lazy(() => import("./Card-CScx0yAg.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
  );
@@ -665,25 +662,25 @@ function Qt(e) {
665
662
  }
666
663
  const Js = {
667
664
  video: Ht,
668
- audio: ms,
669
- image: us,
665
+ audio: us,
666
+ image: ds,
670
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,
669
+ pdf: xs,
670
+ doc: vs,
671
+ xls: ps,
672
+ csv: bs,
673
+ ppt: gs,
674
+ zip: fs,
675
+ text: hs,
676
+ markdown: ms,
680
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
- }, 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", 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,7 +991,7 @@ 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, {
994
+ children: le(e, {
998
995
  className: Ft(r),
999
996
  weight: "regular"
1000
997
  })
@@ -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, {
1011
+ children: le(e, {
1015
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,7 +1080,7 @@ 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
1086
  function Xe(e) {
@@ -1117,7 +1114,7 @@ const Ke = ({ 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 Ke = ({ 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
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;
@@ -1195,16 +1192,16 @@ function Ze(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,
@@ -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: Xe(t), children: /* @__PURE__ */ n(Ke, { 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
  }
@@ -1290,7 +1287,7 @@ const an = ({
1290
1287
  if (t)
1291
1288
  return /* @__PURE__ */ n("div", { className: Xe(!0), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !0 }) });
1292
1289
  const s = Ze(e);
1293
- return s ? /* @__PURE__ */ n(an, { ...s }) : null;
1290
+ return s ? /* @__PURE__ */ n(sn, { ...s }) : null;
1294
1291
  }, ma = ({
1295
1292
  message: e
1296
1293
  }) => {
@@ -1298,7 +1295,7 @@ const an = ({
1298
1295
  if (t)
1299
1296
  return /* @__PURE__ */ n("div", { className: Xe(!1), children: /* @__PURE__ */ n(Ke, { attachment: t, isMyMessage: !1 }) });
1300
1297
  const s = Ze(e);
1301
- return s ? /* @__PURE__ */ n(rn, { ...s }) : null;
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 = Ge({}), 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,7 +1400,7 @@ 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) => {
@@ -1425,44 +1422,44 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1425
1422
  renderText: p,
1426
1423
  threadList: N,
1427
1424
  viewerLanguage: v
1428
- } = e, { client: x } = Ye("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: U } = Us(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: U } = Us(c), {
1426
+ Attachment: F = Mn,
1427
+ EditMessageModal: Z = Dn,
1431
1428
  MessageActions: V,
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 = Un(c), W = ne(
1437
+ } = Ut("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 St = _e.filter((Tt) => !("type" in Tt) || !sn(Tt));
1443
+ const St = _e.filter((Tt) => !("type" in Tt) || !nn(Tt));
1447
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 (Vn(c))
1449
+ if (Un(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 (Vn(c))
1457
1454
  return /* @__PURE__ */ n(G, {});
1458
- 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 = 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
1457
  lt ? ie = () => m(c) : ct && (ie = () => C(!0));
1461
- const ue = f(), En = y(
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,
@@ -1475,7 +1472,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1475
1472
  "str-chat__virtual-message__wrapper--first": i,
1476
1473
  "str-chat__virtual-message__wrapper--group": o
1477
1474
  }
1478
- ), dt = c.poll_id && x.polls.fromState(c.poll_id), ut = wa(c), oe = Ce(c), mt = xa(c), Me = !!(j != null && j.length && !c.quoted_message), ht = 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,9 +1503,9 @@ 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(
@@ -1529,7 +1526,7 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1529
1526
  marginInlineStart: 0
1530
1527
  },
1531
1528
  children: mt ? /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper", children: [
1532
- ue ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1529
+ de ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1533
1530
  V && /* @__PURE__ */ n(V, {}),
1534
1531
  /* @__PURE__ */ n(
1535
1532
  zt.Sent,
@@ -1573,15 +1570,15 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
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 && !ht && /* @__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
- dt && /* @__PURE__ */ n(qn, { poll: dt }),
1581
+ dt && /* @__PURE__ */ n(Yn, { poll: dt }),
1585
1582
  j != null && j.length && !c.quoted_message ? /* @__PURE__ */ n(
1586
1583
  F,
1587
1584
  {
@@ -1602,20 +1599,20 @@ const ba = ({ size: e = 15 }) => /* @__PURE__ */ n(
1602
1599
  renderText: p
1603
1600
  }
1604
1601
  ),
1605
- /* @__PURE__ */ n(Wn, {})
1602
+ /* @__PURE__ */ n(qn, {})
1606
1603
  ] }) })
1607
1604
  }
1608
1605
  ),
1609
1606
  !mt && !ut && /* @__PURE__ */ h("div", { className: "str-chat__message-footer", children: [
1610
- (!oe || ht) && /* @__PURE__ */ n(
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,19 +1644,19 @@ 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",
@@ -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
1752
+ AttachmentPreviewList: i = Qn
1756
1753
  } = Ut("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
  ),
@@ -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 = Ge(!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,7 +1936,7 @@ 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 } = Ye(), { 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 && Va.has(o)) {
1944
1941
  const v = Ha(t, (p = r.user) == null ? void 0 : p.id);
1945
1942
  return /* @__PURE__ */ n(
@@ -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", jt = "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,13 +2101,13 @@ 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
  }),
@@ -2128,7 +2125,7 @@ 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
2131
  /* @__PURE__ */ n("p", { className: "text-center text-xs font-medium text-black/90", children: d }),
@@ -2141,7 +2138,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2141
2138
  r && /* @__PURE__ */ n(
2142
2139
  "button",
2143
2140
  {
2144
- className: le,
2141
+ className: oe,
2145
2142
  onClick: u,
2146
2143
  type: "button",
2147
2144
  "aria-label": g ? "Unstar conversation" : "Star conversation",
@@ -2160,7 +2157,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2160
2157
  /* @__PURE__ */ n(
2161
2158
  "button",
2162
2159
  {
2163
- className: le,
2160
+ className: y(oe, "bg-[#F1F0EE]"),
2164
2161
  onClick: s,
2165
2162
  type: "button",
2166
2163
  "aria-label": "Show info",
@@ -2169,13 +2166,13 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2169
2166
  )
2170
2167
  ] })
2171
2168
  ] }),
2172
- /* @__PURE__ */ h("div", { className: "hidden @lg:flex items-center justify-between gap-3 min-h-12", children: [
2169
+ /* @__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: [
2173
2170
  /* @__PURE__ */ h("div", { className: "flex items-center gap-4 min-w-0", children: [
2174
2171
  t && e && /* @__PURE__ */ n(
2175
2172
  "button",
2176
2173
  {
2177
2174
  className: y(
2178
- le,
2175
+ oe,
2179
2176
  "messaging-channel-view-back-button-desktop"
2180
2177
  ),
2181
2178
  type: "button",
@@ -2192,21 +2189,18 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2192
2189
  image: m,
2193
2190
  starred: r && g,
2194
2191
  dmAgentEnabled: i,
2195
- size: 40
2192
+ size: 48
2196
2193
  }
2197
2194
  ),
2198
2195
  /* @__PURE__ */ h("div", { className: "min-w-0", children: [
2199
- a ? /* @__PURE__ */ h(
2196
+ a ? /* @__PURE__ */ n(
2200
2197
  "button",
2201
2198
  {
2202
2199
  type: "button",
2203
2200
  onClick: s,
2204
2201
  className: "flex items-center gap-1 font-medium text-black/90 truncate hover:text-black/70 transition-colors",
2205
2202
  "aria-label": `View info for ${d}`,
2206
- children: [
2207
- /* @__PURE__ */ n("span", { className: "truncate", children: d }),
2208
- /* @__PURE__ */ n(Yt, { className: "size-4 shrink-0" })
2209
- ]
2203
+ children: /* @__PURE__ */ n("span", { className: "truncate", children: d })
2210
2204
  }
2211
2205
  ) : /* @__PURE__ */ n("h1", { className: "font-medium text-black/90 truncate", children: d }),
2212
2206
  i && /* @__PURE__ */ h("div", { className: "mt-0.5 flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
@@ -2219,14 +2213,14 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2219
2213
  r && /* @__PURE__ */ n(
2220
2214
  "button",
2221
2215
  {
2222
- className: le,
2216
+ className: oe,
2223
2217
  onClick: u,
2224
2218
  type: "button",
2225
2219
  "aria-label": g ? "Unstar conversation" : "Star conversation",
2226
2220
  children: /* @__PURE__ */ n(
2227
2221
  $e,
2228
2222
  {
2229
- className: y("size-5", {
2223
+ className: y("size-6", {
2230
2224
  "text-yellow-600": g,
2231
2225
  "text-black/90": !g
2232
2226
  }),
@@ -2238,11 +2232,11 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2238
2232
  a && s && /* @__PURE__ */ n(
2239
2233
  "button",
2240
2234
  {
2241
- className: le,
2235
+ className: oe,
2242
2236
  onClick: s,
2243
2237
  type: "button",
2244
2238
  "aria-label": "Show info",
2245
- children: /* @__PURE__ */ n(Rt, { className: "size-5 text-black/90" })
2239
+ children: /* @__PURE__ */ n(Rt, { className: "size-6 text-black/90" })
2246
2240
  }
2247
2241
  )
2248
2242
  ] })
@@ -2275,7 +2269,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2275
2269
  viewerLanguage: I
2276
2270
  }) => {
2277
2271
  var H, Y, $, b, _, L;
2278
- const { channel: C } = de(), k = X(null), E = z.useMemo(() => {
2272
+ const { channel: C } = ce(), k = X(null), E = z.useMemo(() => {
2279
2273
  var j, K;
2280
2274
  const M = (j = C._client) == null ? void 0 : j.userID;
2281
2275
  return M ? Object.values(((K = C.state) == null ? void 0 : K.members) || {}).find(
@@ -2320,14 +2314,14 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2320
2314
  );
2321
2315
  return /* @__PURE__ */ h(se, { children: [
2322
2316
  /* @__PURE__ */ n(
2323
- is,
2317
+ rs,
2324
2318
  {
2325
2319
  overrides: {
2326
2320
  Message: B,
2327
2321
  MessageActions: Ia
2328
2322
  },
2329
- children: /* @__PURE__ */ h(os, { children: [
2330
- /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(
2323
+ children: /* @__PURE__ */ h(is, { children: [
2324
+ /* @__PURE__ */ n("div", { children: /* @__PURE__ */ n(
2331
2325
  Wa,
2332
2326
  {
2333
2327
  onBack: e,
@@ -2343,13 +2337,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2343
2337
  "div",
2344
2338
  {
2345
2339
  className: "flex-1 overflow-hidden relative",
2346
- children: /* @__PURE__ */ n(
2347
- ls,
2348
- {
2349
- hideDeletedMessages: !0,
2350
- hideNewMessageSeparator: !1
2351
- }
2352
- )
2340
+ children: /* @__PURE__ */ n(os, { hideDeletedMessages: !0, hideNewMessageSeparator: !1 })
2353
2341
  },
2354
2342
  "lt-channel-message-list"
2355
2343
  ),
@@ -2357,7 +2345,9 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2357
2345
  /* @__PURE__ */ n(
2358
2346
  Ra,
2359
2347
  {
2360
- renderActions: () => s == null ? void 0 : s(C),
2348
+ ...s && {
2349
+ renderActions: () => s == null ? void 0 : s(C)
2350
+ },
2361
2351
  renderFooter: () => a == null ? void 0 : a(C),
2362
2352
  disabled: p,
2363
2353
  disabledReason: N
@@ -2373,7 +2363,9 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2373
2363
  dialogRef: k,
2374
2364
  onClose: P,
2375
2365
  participant: E,
2376
- participantDisplayName: Te(E == null ? void 0 : E.user),
2366
+ participantDisplayName: Te(
2367
+ E == null ? void 0 : E.user
2368
+ ),
2377
2369
  channel: C,
2378
2370
  followerStatusLabel: V,
2379
2371
  onLeaveConversation: i,
@@ -2389,7 +2381,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2389
2381
  }
2390
2382
  )
2391
2383
  ] });
2392
- }, un = z.memo(
2384
+ }, dn = z.memo(
2393
2385
  ({
2394
2386
  channel: e,
2395
2387
  onBack: t,
@@ -2463,8 +2455,8 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2463
2455
  "messaging-channel-view h-full flex flex-col",
2464
2456
  d
2465
2457
  ),
2466
- children: /* @__PURE__ */ n(dn.Provider, { value: A ?? !1, children: /* @__PURE__ */ n(
2467
- rs,
2458
+ children: /* @__PURE__ */ n(cn.Provider, { value: A ?? !1, children: /* @__PURE__ */ n(
2459
+ as,
2468
2460
  {
2469
2461
  channel: e,
2470
2462
  MessageSystem: Ua,
@@ -2511,7 +2503,7 @@ const le = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2511
2503
  );
2512
2504
  }
2513
2505
  );
2514
- un.displayName = "ChannelView";
2506
+ dn.displayName = "ChannelView";
2515
2507
  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: [
2516
2508
  /* @__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: "⚠️" }) }),
2517
2509
  /* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
@@ -2639,7 +2631,7 @@ const _i = ({
2639
2631
  onBack: R
2640
2632
  }
2641
2633
  ) : 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(
2642
- un,
2634
+ dn,
2643
2635
  {
2644
2636
  channel: k,
2645
2637
  renderMessageInputActions: t,
@@ -2668,14 +2660,14 @@ function Ka(e) {
2668
2660
  for (const s of t)
2669
2661
  e.state.addMessageSorted(s.message);
2670
2662
  }
2671
- const mn = z.createContext({
2663
+ const un = z.createContext({
2672
2664
  selectedChannel: void 0,
2673
2665
  onChannelSelect: () => {
2674
2666
  },
2675
2667
  debug: !1,
2676
2668
  renderMessagePreview: void 0,
2677
2669
  viewerLanguage: void 0
2678
- }), Ja = mn.Provider, Za = () => z.useContext(mn), Qa = (e, t) => {
2670
+ }), Ja = un.Provider, Za = () => z.useContext(un), Qa = (e, t) => {
2679
2671
  const s = new Date(
2680
2672
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
2681
2673
  ), r = new Date(
@@ -2696,7 +2688,7 @@ const mn = z.createContext({
2696
2688
  day: "numeric",
2697
2689
  year: "2-digit"
2698
2690
  });
2699
- }, hn = z.memo(
2691
+ }, mn = z.memo(
2700
2692
  ({ channel: e, unread: t }) => {
2701
2693
  var R, I, C;
2702
2694
  const {
@@ -2724,7 +2716,7 @@ const mn = z.createContext({
2724
2716
  }
2725
2717
  })(), v = (() => {
2726
2718
  var Z, V, G, P;
2727
- const k = Kt({
2719
+ const k = Xt({
2728
2720
  message: p,
2729
2721
  viewerLanguage: o
2730
2722
  });
@@ -2734,7 +2726,7 @@ const mn = z.createContext({
2734
2726
  if (k) return k;
2735
2727
  const F = (P = p == null ? void 0 : p.attachments) == null ? void 0 : P[0];
2736
2728
  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";
2737
- })(), 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;
2729
+ })(), 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;
2738
2730
  return r && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
2739
2731
  channelId: e == null ? void 0 : e.id,
2740
2732
  isSelected: l,
@@ -2749,22 +2741,21 @@ const mn = z.createContext({
2749
2741
  onClick: d,
2750
2742
  onKeyDown: m,
2751
2743
  className: y(
2752
- "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring",
2744
+ "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring rounded-[12px] [&+&]:mt-2",
2753
2745
  {
2754
- "bg-primary-alt/10 border-l-4 border-l-primary": l,
2755
- "hover:bg-sand": !l
2746
+ "bg-black/[0.04]": l,
2747
+ "hover:bg-black/[0.02]": !l
2756
2748
  }
2757
2749
  ),
2758
- children: /* @__PURE__ */ h("div", { className: "flex items-start gap-3", children: [
2750
+ children: /* @__PURE__ */ h("div", { className: "flex items-start gap-4", children: [
2759
2751
  /* @__PURE__ */ n(
2760
2752
  ae,
2761
2753
  {
2762
2754
  id: ((C = u == null ? void 0 : u.user) == null ? void 0 : C.id) || e.id || "unknown",
2763
2755
  name: f,
2764
2756
  image: c,
2765
- size: 44,
2766
- starred: T,
2767
- className: "[&_.avatar-fallback]:group-hover:bg-[#eeeeee]"
2757
+ size: 48,
2758
+ starred: T
2768
2759
  }
2769
2760
  ),
2770
2761
  /* @__PURE__ */ h("div", { className: "flex-1 min-w-0 flex flex-col gap-1", children: [
@@ -2773,8 +2764,7 @@ const mn = z.createContext({
2773
2764
  "h3",
2774
2765
  {
2775
2766
  className: y(
2776
- "text-sm font-medium truncate",
2777
- l ? "text-primary" : "text-charcoal"
2767
+ "text-sm font-medium truncate text-[#191918]"
2778
2768
  ),
2779
2769
  children: [
2780
2770
  T && /* @__PURE__ */ n("span", { className: "sr-only", children: "Starred conversation. " }),
@@ -2782,11 +2772,11 @@ const mn = z.createContext({
2782
2772
  ]
2783
2773
  }
2784
2774
  ),
2785
- x && /* @__PURE__ */ n("span", { className: "text-xs text-stone flex-shrink-0", children: x })
2775
+ x && /* @__PURE__ */ n("span", { className: "text-xs text-[#717070] flex-shrink-0", children: x })
2786
2776
  ] }),
2787
2777
  /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
2788
- /* @__PURE__ */ n("p", { className: "text-xs text-stone flex-1 line-clamp-1", children: A }),
2789
- 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 })
2778
+ /* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: A }),
2779
+ 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 })
2790
2780
  ] })
2791
2781
  ] })
2792
2782
  ] })
@@ -2794,7 +2784,7 @@ const mn = z.createContext({
2794
2784
  );
2795
2785
  }
2796
2786
  );
2797
- hn.displayName = "CustomChannelPreview";
2787
+ mn.displayName = "CustomChannelPreview";
2798
2788
  const tr = { last_message_at: -1 }, nr = z.memo(
2799
2789
  ({
2800
2790
  onChannelSelect: e,
@@ -2847,14 +2837,14 @@ const tr = { last_message_at: -1 }, nr = z.memo(
2847
2837
  o
2848
2838
  ),
2849
2839
  children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(Ja, { value: c, children: /* @__PURE__ */ n(
2850
- cs,
2840
+ ls,
2851
2841
  {
2852
2842
  filters: s,
2853
2843
  sort: i,
2854
2844
  options: { limit: 30 },
2855
2845
  allowNewMessagesFromUnfilteredChannels: a,
2856
2846
  channelRenderFilterFn: f,
2857
- Preview: hn,
2847
+ Preview: mn,
2858
2848
  EmptyStateIndicator: l
2859
2849
  },
2860
2850
  `${JSON.stringify(s)}:${JSON.stringify(i)}`
@@ -3023,7 +3013,7 @@ const rr = {
3023
3013
  }, mr = {
3024
3014
  dark: "size-16 text-white/25",
3025
3015
  light: "size-16 text-black/25"
3026
- }, Ae = (e, t) => !!t && !!e && re(e) === "audio", fn = (e, t) => {
3016
+ }, Ae = (e, t) => !!t && !!e && re(e) === "audio", hn = (e, t) => {
3027
3017
  if (!t || !e) return !1;
3028
3018
  const s = re(e);
3029
3019
  return s === "video" || s === "audio";
@@ -3080,7 +3070,7 @@ const rr = {
3080
3070
  "flex h-full w-full items-center justify-center",
3081
3071
  ur[e]
3082
3072
  ),
3083
- children: ce(r, {
3073
+ children: le(r, {
3084
3074
  className: mr[e],
3085
3075
  weight: "regular"
3086
3076
  })
@@ -3121,7 +3111,7 @@ const rr = {
3121
3111
  onClick: u,
3122
3112
  "aria-label": "Edit attachment",
3123
3113
  className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
3124
- children: /* @__PURE__ */ n(Ts, { className: "size-5", weight: "regular" })
3114
+ children: /* @__PURE__ */ n(Ss, { className: "size-5", weight: "regular" })
3125
3115
  }
3126
3116
  ) : void 0;
3127
3117
  return c ? /* @__PURE__ */ n(Ee, { variant: "dark", bgClassName: tt, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
@@ -3180,7 +3170,7 @@ const rr = {
3180
3170
  cta: d,
3181
3171
  onClick: m
3182
3172
  }) => {
3183
- const g = fn(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 ? {
3173
+ 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 ? {
3184
3174
  ...d,
3185
3175
  onClick: () => {
3186
3176
  var v;
@@ -3234,7 +3224,7 @@ const rr = {
3234
3224
  cta: m,
3235
3225
  onClick: g
3236
3226
  }) => {
3237
- const u = fn(r, o), f = Qe(a), c = m == null && f != null && !u ? f : void 0, p = m == null && !u && c != null ? g : void 0;
3227
+ 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;
3238
3228
  return /* @__PURE__ */ h(
3239
3229
  Ee,
3240
3230
  {
@@ -3450,7 +3440,7 @@ function Tr(e, t) {
3450
3440
  }
3451
3441
  if (!e) return;
3452
3442
  if (re(e) === "document") {
3453
- const r = Qt(e), i = Sr[r];
3443
+ const r = Zt(e), i = Sr[r];
3454
3444
  if (i) return i;
3455
3445
  if (e === "application/octet-stream") return;
3456
3446
  }
@@ -3479,7 +3469,7 @@ const Mr = {
3479
3469
  }, Rr = {
3480
3470
  dark: "text-white/85",
3481
3471
  light: "text-black/85"
3482
- }, gn = ({
3472
+ }, fn = ({
3483
3473
  variant: e,
3484
3474
  filename: t,
3485
3475
  title: s,
@@ -3497,7 +3487,7 @@ const Mr = {
3497
3487
  Dr[e]
3498
3488
  ),
3499
3489
  "aria-hidden": !0,
3500
- children: ce(a, {
3490
+ children: le(a, {
3501
3491
  className: y("size-6", Rr[e]),
3502
3492
  weight: "regular"
3503
3493
  })
@@ -3538,7 +3528,7 @@ const Mr = {
3538
3528
  l ? /* @__PURE__ */ n("div", { className: "shrink-0", children: l }) : null
3539
3529
  ] });
3540
3530
  };
3541
- async function bn(e, t) {
3531
+ async function gn(e, t) {
3542
3532
  const s = t ?? te(e);
3543
3533
  try {
3544
3534
  const a = await fetch(e, { mode: "cors" });
@@ -3568,7 +3558,7 @@ const Lr = ({
3568
3558
  }) => {
3569
3559
  const i = t.filename ?? te(t.src);
3570
3560
  return /* @__PURE__ */ n(
3571
- gn,
3561
+ fn,
3572
3562
  {
3573
3563
  variant: e,
3574
3564
  filename: i,
@@ -3605,7 +3595,7 @@ const Lr = ({
3605
3595
  const x = c[v];
3606
3596
  if (!x) return;
3607
3597
  const w = x.filename ?? te(x.src);
3608
- bn(x.src, w);
3598
+ gn(x.src, w);
3609
3599
  };
3610
3600
  if (c.length === 0)
3611
3601
  return null;
@@ -3657,7 +3647,7 @@ const Lr = ({
3657
3647
  onClick: e,
3658
3648
  "aria-label": s,
3659
3649
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
3660
- children: /* @__PURE__ */ n(As, { size: 20, weight: "bold", "aria-hidden": !0 })
3650
+ children: /* @__PURE__ */ n(Ts, { size: 20, weight: "bold", "aria-hidden": !0 })
3661
3651
  }
3662
3652
  ),
3663
3653
  /* @__PURE__ */ n(
@@ -3667,10 +3657,10 @@ const Lr = ({
3667
3657
  onClick: t,
3668
3658
  "aria-label": a,
3669
3659
  className: "mes-media-viewer__nav mes-media-viewer__nav--next",
3670
- children: /* @__PURE__ */ n(Yt, { size: 20, weight: "bold", "aria-hidden": !0 })
3660
+ children: /* @__PURE__ */ n(As, { size: 20, weight: "bold", "aria-hidden": !0 })
3671
3661
  }
3672
3662
  )
3673
- ] }), pn = ({
3663
+ ] }), bn = ({
3674
3664
  url: e,
3675
3665
  filename: t,
3676
3666
  variant: s = "pill",
@@ -3681,7 +3671,7 @@ const Lr = ({
3681
3671
  }) => {
3682
3672
  const [l, d] = O(!1), m = q(
3683
3673
  (c) => {
3684
- c.stopPropagation(), !l && (d(!0), bn(e, t).catch(() => {
3674
+ c.stopPropagation(), !l && (d(!0), gn(e, t).catch(() => {
3685
3675
  }).finally(() => {
3686
3676
  d(!1), o == null || o();
3687
3677
  }));
@@ -3870,7 +3860,7 @@ const Lr = ({
3870
3860
  ]
3871
3861
  }
3872
3862
  );
3873
- }, vn = ({
3863
+ }, pn = ({
3874
3864
  open: e,
3875
3865
  items: t,
3876
3866
  initialIndex: s = 0,
@@ -3892,7 +3882,7 @@ const Lr = ({
3892
3882
  ariaLabel: d,
3893
3883
  counter: t.length > 1 ? `${r + 1} / ${t.length}` : void 0,
3894
3884
  actions: /* @__PURE__ */ n(
3895
- pn,
3885
+ bn,
3896
3886
  {
3897
3887
  url: l.src,
3898
3888
  filename: d,
@@ -3926,7 +3916,7 @@ const Lr = ({
3926
3916
  ]
3927
3917
  }
3928
3918
  ) : null;
3929
- }, 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 = ({
3919
+ }, 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 = ({
3930
3920
  tiles: e,
3931
3921
  onTileActivate: t,
3932
3922
  maxVisible: s = 4,
@@ -4023,7 +4013,7 @@ const Lr = ({
4023
4013
  src: e,
4024
4014
  alt: t,
4025
4015
  items: s
4026
- }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], wn = (e, t) => e.map((s, a) => ({
4016
+ }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], xn = (e, t) => e.map((s, a) => ({
4027
4017
  src: s.src,
4028
4018
  alt: s.alt,
4029
4019
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
@@ -4054,16 +4044,16 @@ const Lr = ({
4054
4044
  ),
4055
4045
  i ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(xe, { onClick: i }) }) : null,
4056
4046
  /* @__PURE__ */ n(
4057
- vn,
4047
+ pn,
4058
4048
  {
4059
4049
  open: o,
4060
- items: wn([{ src: e, alt: t }], s),
4050
+ items: xn([{ src: e, alt: t }], s),
4061
4051
  initialIndex: l,
4062
4052
  onClose: m
4063
4053
  }
4064
4054
  )
4065
4055
  ] });
4066
- }, Nn = ({
4056
+ }, wn = ({
4067
4057
  state: e,
4068
4058
  src: t,
4069
4059
  alt: s,
@@ -4090,12 +4080,12 @@ const Lr = ({
4090
4080
  groupPosition: o,
4091
4081
  "data-testid": "image-attachment",
4092
4082
  children: [
4093
- /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(xn, { tiles: N, onTileActivate: c }) }),
4083
+ /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(vn, { tiles: N, onTileActivate: c }) }),
4094
4084
  /* @__PURE__ */ n(
4095
- vn,
4085
+ pn,
4096
4086
  {
4097
4087
  open: u,
4098
- items: wn(m, a),
4088
+ items: xn(m, a),
4099
4089
  initialIndex: f,
4100
4090
  onClose: p
4101
4091
  }
@@ -4103,7 +4093,7 @@ const Lr = ({
4103
4093
  ]
4104
4094
  }
4105
4095
  );
4106
- }, Gr = (e) => /* @__PURE__ */ n(Vr, { ...e }), Hr = (e) => /* @__PURE__ */ n(Nn, { ...e, state: "sent" }), Yr = (e) => /* @__PURE__ */ n(Nn, { ...e, state: "received" }), qr = {
4096
+ }, Gr = (e) => /* @__PURE__ */ n(Vr, { ...e }), Hr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "sent" }), Yr = (e) => /* @__PURE__ */ n(wn, { ...e, state: "received" }), qr = {
4107
4097
  Composer: Gr,
4108
4098
  Sent: Hr,
4109
4099
  Received: Yr
@@ -4173,7 +4163,7 @@ const Lr = ({
4173
4163
  }) => {
4174
4164
  const i = t.filename ?? te(t.src);
4175
4165
  return /* @__PURE__ */ n(
4176
- gn,
4166
+ fn,
4177
4167
  {
4178
4168
  variant: e,
4179
4169
  filename: i,
@@ -4216,7 +4206,7 @@ const Lr = ({
4216
4206
  children: [
4217
4207
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((w, A) => {
4218
4208
  const T = w.filename ?? te(w.src), S = v && A === 0 ? /* @__PURE__ */ n(xe, { onClick: m, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4219
- pn,
4209
+ bn,
4220
4210
  {
4221
4211
  url: w.src,
4222
4212
  filename: T,
@@ -4253,7 +4243,7 @@ const Lr = ({
4253
4243
  Composer: Zr,
4254
4244
  Sent: Qr,
4255
4245
  Received: ei
4256
- }, _n = ({
4246
+ }, Nn = ({
4257
4247
  open: e,
4258
4248
  items: t,
4259
4249
  initialIndex: s = 0,
@@ -4303,7 +4293,7 @@ const Lr = ({
4303
4293
  ]
4304
4294
  }
4305
4295
  ) : null;
4306
- }, 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 = ({
4296
+ }, 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 = ({
4307
4297
  item: e,
4308
4298
  index: t
4309
4299
  }) => /* @__PURE__ */ h("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -4328,14 +4318,14 @@ const Lr = ({
4328
4318
  /* @__PURE__ */ n(ni, {})
4329
4319
  ] }), si = (e, t, s) => ({
4330
4320
  ariaLabel: `Play video ${t + 1} of ${s}`,
4331
- content: /* @__PURE__ */ n(yn, { item: e, index: t })
4321
+ content: /* @__PURE__ */ n(_n, { item: e, index: t })
4332
4322
  }), ai = ({
4333
4323
  src: e,
4334
4324
  poster: t,
4335
4325
  mimeType: s,
4336
4326
  preload: a,
4337
4327
  items: r
4338
- }) => 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) => ({
4328
+ }) => 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) => ({
4339
4329
  src: s.src,
4340
4330
  poster: s.poster,
4341
4331
  mimeType: s.mimeType,
@@ -4353,15 +4343,15 @@ const Lr = ({
4353
4343
  onClick: () => m(0),
4354
4344
  "aria-label": "Play video",
4355
4345
  className: "relative block size-[280px] cursor-pointer overflow-hidden rounded-md outline-none focus-visible:ring-2 focus-visible:ring-black/40",
4356
- children: /* @__PURE__ */ n(yn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4346
+ children: /* @__PURE__ */ n(_n, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4357
4347
  }
4358
4348
  ),
4359
4349
  o ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(xe, { onClick: o }) }) : null,
4360
4350
  /* @__PURE__ */ n(
4361
- _n,
4351
+ Nn,
4362
4352
  {
4363
4353
  open: l,
4364
- items: Cn(
4354
+ items: yn(
4365
4355
  [{ src: e, poster: t, mimeType: s, preload: r }],
4366
4356
  a
4367
4357
  ),
@@ -4370,7 +4360,7 @@ const Lr = ({
4370
4360
  }
4371
4361
  )
4372
4362
  ] });
4373
- }, kn = ({
4363
+ }, Cn = ({
4374
4364
  state: e,
4375
4365
  src: t,
4376
4366
  poster: s,
@@ -4399,7 +4389,7 @@ const Lr = ({
4399
4389
  "data-testid": "video-attachment",
4400
4390
  children: [
4401
4391
  /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(
4402
- xn,
4392
+ vn,
4403
4393
  {
4404
4394
  tiles: v,
4405
4395
  onTileActivate: p,
@@ -4407,10 +4397,10 @@ const Lr = ({
4407
4397
  }
4408
4398
  ) }),
4409
4399
  /* @__PURE__ */ n(
4410
- _n,
4400
+ Nn,
4411
4401
  {
4412
4402
  open: f,
4413
- items: Cn(g, r),
4403
+ items: yn(g, r),
4414
4404
  initialIndex: c,
4415
4405
  onClose: N
4416
4406
  }
@@ -4418,7 +4408,7 @@ const Lr = ({
4418
4408
  ]
4419
4409
  }
4420
4410
  );
4421
- }, ii = (e) => /* @__PURE__ */ n(ri, { ...e }), oi = (e) => /* @__PURE__ */ n(kn, { ...e, state: "sent" }), li = (e) => /* @__PURE__ */ n(kn, { ...e, state: "received" }), ci = {
4411
+ }, ii = (e) => /* @__PURE__ */ n(ri, { ...e }), oi = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "sent" }), li = (e) => /* @__PURE__ */ n(Cn, { ...e, state: "received" }), ci = {
4422
4412
  Composer: ii,
4423
4413
  Sent: oi,
4424
4414
  Received: li
@@ -4493,7 +4483,7 @@ const Lr = ({
4493
4483
  ] }) });
4494
4484
  };
4495
4485
  export {
4496
- en as A,
4486
+ Qt as A,
4497
4487
  Us as B,
4498
4488
  Ya as C,
4499
4489
  Ds as D,
@@ -4503,7 +4493,7 @@ export {
4503
4493
  ye as a,
4504
4494
  ae as b,
4505
4495
  nr as c,
4506
- un as d,
4496
+ dn as d,
4507
4497
  Ni as e,
4508
4498
  di as f,
4509
4499
  re as g,
@@ -4516,9 +4506,9 @@ export {
4516
4506
  Ir as n,
4517
4507
  er as o,
4518
4508
  Tr as p,
4519
- Kt as q,
4520
- ce as r,
4521
- sn as s,
4509
+ Xt as q,
4510
+ le as r,
4511
+ nn as s,
4522
4512
  Ls as t,
4523
4513
  Ci as u,
4524
4514
  Vs as v,
@@ -4527,4 +4517,4 @@ export {
4527
4517
  Te as y,
4528
4518
  ga as z
4529
4519
  };
4530
- //# sourceMappingURL=index-Dca2QSVv.js.map
4520
+ //# sourceMappingURL=index-CnOvDQIp.js.map