@linktr.ee/messaging-react 2.5.2 → 2.5.3

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 (29) hide show
  1. package/dist/{Card-Obhvbcgk.cjs → Card-B7TJ2lbG.cjs} +2 -2
  2. package/dist/{Card-Obhvbcgk.cjs.map → Card-B7TJ2lbG.cjs.map} +1 -1
  3. package/dist/{Card-Bp3XzYXV.cjs → Card-BbMWytg6.cjs} +2 -2
  4. package/dist/{Card-Bp3XzYXV.cjs.map → Card-BbMWytg6.cjs.map} +1 -1
  5. package/dist/{Card-CBeF7eUm.js → Card-BwygcpzI.js} +2 -2
  6. package/dist/{Card-CBeF7eUm.js.map → Card-BwygcpzI.js.map} +1 -1
  7. package/dist/{Card-cl8fYGrO.js → Card-CJDGgG0O.js} +3 -3
  8. package/dist/{Card-cl8fYGrO.js.map → Card-CJDGgG0O.js.map} +1 -1
  9. package/dist/{Card-C8C9ZL55.cjs → Card-CruyYUqd.cjs} +2 -2
  10. package/dist/{Card-C8C9ZL55.cjs.map → Card-CruyYUqd.cjs.map} +1 -1
  11. package/dist/{Card-CSvw2WUm.js → Card-Dy66r68A.js} +2 -2
  12. package/dist/{Card-CSvw2WUm.js.map → Card-Dy66r68A.js.map} +1 -1
  13. package/dist/{LockedThumbnail-BQ5gB3Gj.js → LockedThumbnail-BJxXEcxk.js} +2 -2
  14. package/dist/{LockedThumbnail-BQ5gB3Gj.js.map → LockedThumbnail-BJxXEcxk.js.map} +1 -1
  15. package/dist/{LockedThumbnail-DR1i_N1L.cjs → LockedThumbnail-DrsPt5LN.cjs} +2 -2
  16. package/dist/{LockedThumbnail-DR1i_N1L.cjs.map → LockedThumbnail-DrsPt5LN.cjs.map} +1 -1
  17. package/dist/index-BIInWpum.cjs +2 -0
  18. package/dist/index-BIInWpum.cjs.map +1 -0
  19. package/dist/{index-BGwytfkX.js → index-CPa6Qru7.js} +585 -546
  20. package/dist/index-CPa6Qru7.js.map +1 -0
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +1 -1
  23. package/package.json +1 -1
  24. package/src/components/CustomMessage/CustomMessage.stories.tsx +43 -38
  25. package/src/components/CustomMessage/CustomMessageActions.tsx +30 -16
  26. package/src/components/CustomMessage/index.tsx +37 -28
  27. package/dist/index-BGwytfkX.js.map +0 -1
  28. package/dist/index-Dgh0_9UW.cjs +0 -2
  29. package/dist/index-Dgh0_9UW.cjs.map +0 -1
@@ -1,12 +1,12 @@
1
1
  import { jsx as n, jsxs as m, Fragment as ie } from "react/jsx-runtime";
2
2
  import y from "classnames";
3
3
  import $, { createContext as Ze, useContext as Ke, useCallback as V, useState as z, useRef as Z, useEffect as X, useMemo as re, Suspense as Je } from "react";
4
- import { StreamChatService as In } from "@linktr.ee/messaging-core";
5
- import { Chat as Sn, ChannelList as Tn, DateSeparator as An, useChannelStateContext as me, useChatContext as Qe, areMessageUIPropsEqual as Mn, useMessageReminder as Dn, useComponentContext as Gt, Attachment as Rn, EditMessageModal as Ln, MessageBlocked as Fn, MessageBouncePrompt as On, MessageDeleted as zn, MessageIsThreadReplyInChannelButtonIndicator as Pn, MessageRepliesCountButton as Bn, ReminderNotification as $n, StreamedMessageText as jn, messageHasAttachments as Un, messageHasReactions as Vn, isDateSeparatorMessage as Gn, isMessageBlocked as Hn, isMessageBounced as Yn, MessageBounceModal as Wn, MessageText as Dt, Poll as qn, MessageErrorIcon as Xn, useMessageContext as Le, useTranslationContext as Zn, useMessageComposer as Kn, useStateStore as Jn, MessageInput as Qn, useMessageInputContext as es, useMessageComposerHasSendableData as ts, SimpleAttachmentSelector as ns, QuotedMessagePreview as ss, AttachmentPreviewList as as, TextareaComposer as rs, MessageTimestamp as ze, AIStates as Pe, useTypingContext as is, useAIState as os, Channel as ls, WithComponents as cs, Window as ds, MessageList as us } from "stream-chat-react";
6
- import { StarIcon as Ge, GiftIcon as ms, XIcon as xe, SpinnerGapIcon as Be, SignOutIcon as hs, ProhibitInsetIcon as Rt, FlagIcon as fs, FileIcon as Ht, ImageIcon as gs, SpeakerHighIcon as bs, VideoCameraIcon as Yt, FileMdIcon as ps, FileTextIcon as vs, FileZipIcon as xs, FilePptIcon as ws, FileCsvIcon as Ns, FileXlsIcon as ys, FileDocIcon as _s, FilePdfIcon as Cs, CircleNotchIcon as pe, PlayIcon as He, PauseIcon as ks, LinkIcon as Es, DownloadSimpleIcon as ve, ThumbsUpIcon as Is, ThumbsDownIcon as Ss, ArrowUpIcon as Ts, SparkleIcon as Ye, ProhibitIcon as As, ArrowLeftIcon as Lt, CaretRightIcon as We, DotsThreeIcon as Ft, PencilSimpleIcon as Ms, CaretLeftIcon as Ds } from "@phosphor-icons/react";
4
+ import { StreamChatService as Sn } from "@linktr.ee/messaging-core";
5
+ import { Chat as Tn, ChannelList as An, DateSeparator as Mn, useChannelStateContext as me, useChatContext as Qe, areMessageUIPropsEqual as Dn, useMessageReminder as Rn, useComponentContext as Gt, Attachment as Ln, EditMessageModal as Fn, MessageBlocked as On, MessageBouncePrompt as zn, MessageDeleted as Pn, MessageIsThreadReplyInChannelButtonIndicator as Bn, MessageRepliesCountButton as $n, ReminderNotification as jn, StreamedMessageText as Un, messageHasAttachments as Vn, messageHasReactions as Gn, isDateSeparatorMessage as Hn, isMessageBlocked as Yn, isMessageBounced as qn, MessageBounceModal as Wn, MessageText as Dt, Poll as Xn, MessageErrorIcon as Zn, useMessageContext as xe, useMessageComposer as Kn, useStateStore as Jn, MessageInput as Qn, useMessageInputContext as es, useMessageComposerHasSendableData as ts, SimpleAttachmentSelector as ns, QuotedMessagePreview as ss, AttachmentPreviewList as as, TextareaComposer as rs, MessageTimestamp as ze, AIStates as Pe, useTypingContext as is, useAIState as os, Channel as ls, WithComponents as cs, Window as ds, MessageList as us } from "stream-chat-react";
6
+ import { StarIcon as Ge, GiftIcon as ms, XIcon as we, SpinnerGapIcon as Be, SignOutIcon as hs, ProhibitInsetIcon as Rt, FlagIcon as Ht, FileIcon as Yt, ImageIcon as fs, SpeakerHighIcon as gs, VideoCameraIcon as qt, FileMdIcon as bs, FileTextIcon as ps, FileZipIcon as vs, FilePptIcon as xs, FileCsvIcon as ws, FileXlsIcon as Ns, FileDocIcon as ys, FilePdfIcon as _s, CircleNotchIcon as pe, PlayIcon as He, PauseIcon as Cs, LinkIcon as ks, DownloadSimpleIcon as ve, ThumbsUpIcon as Es, ThumbsDownIcon as Is, TrashSimpleIcon as Ss, ArrowUpIcon as Ts, SparkleIcon as Ye, ProhibitIcon as As, ArrowLeftIcon as Lt, CaretRightIcon as qe, DotsThreeIcon as Ft, PencilSimpleIcon as Ms, CaretLeftIcon as Ds } from "@phosphor-icons/react";
7
7
  import { MessageActions as Rs, DefaultDropdownActionButton as Wt } from "stream-chat-react/experimental";
8
8
  import { LinkPreviewsManager as Ot } from "stream-chat";
9
- const qt = Ze({
9
+ const Xt = Ze({
10
10
  service: null,
11
11
  client: null,
12
12
  isConnected: !1,
@@ -16,7 +16,7 @@ const qt = Ze({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), et = () => Ke(qt), yi = ({
19
+ }), et = () => Ke(Xt), Ni = ({
20
20
  children: e,
21
21
  user: t,
22
22
  serviceConfig: s,
@@ -80,7 +80,7 @@ const qt = Ze({
80
80
  apiKey: (a == null ? void 0 : a.substring(0, 8)) + "...",
81
81
  serviceConfigChanged: w.current.serviceConfig !== s
82
82
  });
83
- const O = new In({
83
+ const O = new Sn({
84
84
  ...s,
85
85
  apiKey: a,
86
86
  debug: i
@@ -207,8 +207,8 @@ const qt = Ze({
207
207
  renderCount: I.current,
208
208
  willRenderChat: !!(h && u),
209
209
  contextValueReady: !!D
210
- }), /* @__PURE__ */ n(qt.Provider, { value: D, children: h && u ? /* @__PURE__ */ n(
211
- Sn,
210
+ }), /* @__PURE__ */ n(Xt.Provider, { value: D, children: h && u ? /* @__PURE__ */ n(
211
+ Tn,
212
212
  {
213
213
  client: h,
214
214
  customClasses: {
@@ -224,14 +224,14 @@ function Fs(e) {
224
224
  for (const s of t)
225
225
  e.state.addMessageSorted(s.message);
226
226
  }
227
- const Xt = $.createContext({
227
+ const Zt = $.createContext({
228
228
  selectedChannel: void 0,
229
229
  onChannelSelect: () => {
230
230
  },
231
231
  debug: !1,
232
232
  renderMessagePreview: void 0,
233
233
  viewerLanguage: void 0
234
- }), Os = Xt.Provider, zs = () => $.useContext(Xt), Zt = (e) => {
234
+ }), Os = Zt.Provider, zs = () => $.useContext(Zt), Kt = (e) => {
235
235
  var a, r;
236
236
  const [t, s] = z(
237
237
  !!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
@@ -278,7 +278,7 @@ const Xt = $.createContext({
278
278
  function $s(e) {
279
279
  return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
280
280
  }
281
- function Kt({
281
+ function Jt({
282
282
  message: e,
283
283
  viewerLanguage: t
284
284
  }) {
@@ -431,18 +431,18 @@ const oe = ({
431
431
  ), Ys = (e) => {
432
432
  var t;
433
433
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_TIP";
434
- }, Ws = (e) => {
434
+ }, qs = (e) => {
435
435
  var t;
436
436
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_PAID";
437
- }, Ae = (e) => {
437
+ }, Me = (e) => {
438
438
  var t;
439
439
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_CHATBOT";
440
- }, qs = (e) => {
440
+ }, Ws = (e) => {
441
441
  var t;
442
442
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_ATTACHMENT";
443
- }, Jt = (e) => Ys(e) || Ws(e), Xs = (e) => {
443
+ }, Qt = (e) => Ys(e) || qs(e), Xs = (e) => {
444
444
  var t;
445
- return Jt(e) && !((t = e.text) != null && t.trim());
445
+ return Qt(e) && !((t = e.text) != null && t.trim());
446
446
  }, $e = ({
447
447
  message: e,
448
448
  standalone: t = !1,
@@ -450,7 +450,7 @@ const oe = ({
450
450
  hasAttachment: a = !1
451
451
  }) => {
452
452
  var u;
453
- const r = Jt(e), i = Ae(e);
453
+ const r = Qt(e), i = Me(e);
454
454
  if (!r && !i)
455
455
  return null;
456
456
  if (r) {
@@ -474,7 +474,7 @@ const oe = ({
474
474
  g,
475
475
  h
476
476
  ] }) });
477
- }, Qt = $.memo(
477
+ }, en = $.memo(
478
478
  ({ channel: e, unread: t }) => {
479
479
  var D, A, O;
480
480
  const {
@@ -501,18 +501,18 @@ const oe = ({
501
501
  if (E[P].type !== "system") return E[P];
502
502
  }
503
503
  })(), v = (() => {
504
- var B, H, U, L;
505
- const E = Kt({
504
+ var B, G, U, L;
505
+ const E = Jt({
506
506
  message: b,
507
507
  viewerLanguage: l
508
508
  });
509
509
  if (((B = b == null ? void 0 : b.metadata) == null ? void 0 : B.custom_type) === "MESSAGE_TIP") return E ? `💵 ${E}` : "💵 Sent a tip";
510
- if (((H = b == null ? void 0 : b.metadata) == null ? void 0 : H.custom_type) === "MESSAGE_PAID") return E ? `💰 ${E}` : "💰 Sent a message";
510
+ if (((G = b == null ? void 0 : b.metadata) == null ? void 0 : G.custom_type) === "MESSAGE_PAID") return E ? `💰 ${E}` : "💰 Sent a message";
511
511
  if (((U = b == null ? void 0 : b.metadata) == null ? void 0 : U.custom_type) === "MESSAGE_ATTACHMENT") return E ? `📎 ${E}` : "📎 Sent an attachment";
512
512
  if (E) return E;
513
513
  const C = (L = b == null ? void 0 : b.attachments) == null ? void 0 : L[0];
514
514
  return C ? C.og_scrape_url ? C.og_scrape_url : C.type === "image" ? "📷 Sent an image" : C.type === "video" ? "🎥 Sent a video" : C.type === "audio" ? "🎵 Sent audio" : C.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
515
- })(), N = b != null && b.created_at ? Bs(new Date(b.created_at)) : "", w = b ? Ae(b) : !1, I = i ? i(b, v) : `${w ? "✨ " : ""}${v}`, S = Zt(e), T = t ?? 0;
515
+ })(), N = b != null && b.created_at ? Bs(new Date(b.created_at)) : "", w = b ? Me(b) : !1, I = i ? i(b, v) : `${w ? "✨ " : ""}${v}`, S = Kt(e), T = t ?? 0;
516
516
  return r && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
517
517
  channelId: e == null ? void 0 : e.id,
518
518
  isSelected: o,
@@ -572,8 +572,8 @@ const oe = ({
572
572
  );
573
573
  }
574
574
  );
575
- Qt.displayName = "CustomChannelPreview";
576
- const Zs = { last_message_at: -1 }, en = $.memo(
575
+ en.displayName = "CustomChannelPreview";
576
+ const Zs = { last_message_at: -1 }, tn = $.memo(
577
577
  ({
578
578
  onChannelSelect: e,
579
579
  selectedChannel: t,
@@ -627,7 +627,7 @@ const Zs = { last_message_at: -1 }, en = $.memo(
627
627
  d
628
628
  ),
629
629
  children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(Os, { value: x, children: /* @__PURE__ */ n(
630
- Tn,
630
+ An,
631
631
  {
632
632
  filters: s,
633
633
  sort: o,
@@ -636,7 +636,7 @@ const Zs = { last_message_at: -1 }, en = $.memo(
636
636
  onMessageNew: r,
637
637
  onAddedToChannel: i,
638
638
  channelRenderFilterFn: b,
639
- Preview: Qt,
639
+ Preview: en,
640
640
  EmptyStateIndicator: h
641
641
  },
642
642
  `${JSON.stringify(s)}:${JSON.stringify(o)}`
@@ -645,8 +645,8 @@ const Zs = { last_message_at: -1 }, en = $.memo(
645
645
  );
646
646
  }
647
647
  );
648
- en.displayName = "ChannelList";
649
- const Se = ({
648
+ tn.displayName = "ChannelList";
649
+ const Te = ({
650
650
  variant: e = "default",
651
651
  className: t,
652
652
  children: s,
@@ -686,7 +686,7 @@ function Ks({ label: e, className: t, children: s, ...a }) {
686
686
  );
687
687
  }
688
688
  function Js({ onClick: e }) {
689
- return /* @__PURE__ */ n(Ks, { label: "Close", onClick: e, className: "p-1", children: /* @__PURE__ */ n(xe, { className: "h-5 w-5 text-stone", weight: "bold" }) });
689
+ return /* @__PURE__ */ n(Ks, { label: "Close", onClick: e, className: "p-1", children: /* @__PURE__ */ n(we, { className: "h-5 w-5 text-stone", weight: "bold" }) });
690
690
  }
691
691
  const Qs = ({
692
692
  dialogRef: e,
@@ -704,7 +704,7 @@ const Qs = ({
704
704
  customProfileContent: f,
705
705
  customChannelActions: c
706
706
  }) => {
707
- var U, L, F, G;
707
+ var U, L, F, H;
708
708
  const { service: b, debug: x } = et(), [v, N] = z(!1), [w, I] = z(!1), [S, T] = z(!1), D = V(async () => {
709
709
  var _;
710
710
  if (!(!b || !((_ = s == null ? void 0 : s.user) != null && _.id)))
@@ -771,7 +771,7 @@ const Qs = ({
771
771
  );
772
772
  };
773
773
  if (!s) return null;
774
- const P = a ?? tt(s.user), W = (L = s.user) == null ? void 0 : L.image, C = (F = s.user) == null ? void 0 : F.username, B = C ? `linktr.ee/${C}` : void 0, H = ((G = s.user) == null ? void 0 : G.id) || "unknown";
774
+ const P = a ?? tt(s.user), q = (L = s.user) == null ? void 0 : L.image, C = (F = s.user) == null ? void 0 : F.username, B = C ? `linktr.ee/${C}` : void 0, G = ((H = s.user) == null ? void 0 : H.id) || "unknown";
775
775
  return (
776
776
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
777
777
  /* @__PURE__ */ n(
@@ -799,9 +799,9 @@ const Qs = ({
799
799
  /* @__PURE__ */ n(
800
800
  oe,
801
801
  {
802
- id: H,
802
+ id: G,
803
803
  name: P,
804
- image: W,
804
+ image: q,
805
805
  size: 88,
806
806
  shape: "circle"
807
807
  }
@@ -831,7 +831,7 @@ const Qs = ({
831
831
  ),
832
832
  /* @__PURE__ */ m("ul", { className: "flex flex-col gap-2 mt-2", children: [
833
833
  d && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ m(
834
- Se,
834
+ Te,
835
835
  {
836
836
  onClick: A,
837
837
  disabled: w,
@@ -843,7 +843,7 @@ const Qs = ({
843
843
  }
844
844
  ) }),
845
845
  /* @__PURE__ */ n("li", { children: v ? /* @__PURE__ */ m(
846
- Se,
846
+ Te,
847
847
  {
848
848
  onClick: E,
849
849
  disabled: S,
@@ -854,7 +854,7 @@ const Qs = ({
854
854
  ]
855
855
  }
856
856
  ) : /* @__PURE__ */ m(
857
- Se,
857
+ Te,
858
858
  {
859
859
  onClick: O,
860
860
  disabled: S,
@@ -865,8 +865,8 @@ const Qs = ({
865
865
  ]
866
866
  }
867
867
  ) }),
868
- /* @__PURE__ */ n("li", { children: /* @__PURE__ */ m(Se, { variant: "danger", onClick: R, children: [
869
- /* @__PURE__ */ n(fs, { className: "h-5 w-5" }),
868
+ /* @__PURE__ */ n("li", { children: /* @__PURE__ */ m(Te, { variant: "danger", onClick: R, children: [
869
+ /* @__PURE__ */ n(Ht, { className: "h-5 w-5" }),
870
870
  /* @__PURE__ */ n("span", { children: "Report" })
871
871
  ] }) }),
872
872
  c
@@ -876,9 +876,9 @@ const Qs = ({
876
876
  }
877
877
  )
878
878
  );
879
- }, ea = (e) => /* @__PURE__ */ n(An, { ...e, position: "center" }), qe = "vote_up", Xe = "vote_down";
879
+ }, ea = (e) => /* @__PURE__ */ n(Mn, { ...e, position: "center" }), We = "vote_up", Xe = "vote_down";
880
880
  function ta(e) {
881
- return e != null && e.length ? e.some((t) => t.type === Xe) ? "down" : e.some((t) => t.type === qe) ? "up" : null : null;
881
+ return e != null && e.length ? e.some((t) => t.type === Xe) ? "down" : e.some((t) => t.type === We) ? "up" : null : null;
882
882
  }
883
883
  function na(e) {
884
884
  const { channel: t } = me(), { client: s } = Qe("useMessageVote"), a = re(
@@ -887,9 +887,9 @@ function na(e) {
887
887
  ), r = V(async () => {
888
888
  if (s != null && s.userID)
889
889
  try {
890
- a === "up" ? await t.deleteReaction(e.id, qe) : await t.sendReaction(
890
+ a === "up" ? await t.deleteReaction(e.id, We) : await t.sendReaction(
891
891
  e.id,
892
- { type: qe },
892
+ { type: We },
893
893
  { enforce_unique: !0, skip_push: !0 }
894
894
  );
895
895
  } catch {
@@ -907,13 +907,13 @@ function na(e) {
907
907
  }, [t, s == null ? void 0 : s.userID, e.id, a]);
908
908
  return { selected: a, voteUp: r, voteDown: i };
909
909
  }
910
- const sa = $.lazy(() => import("./Card-CBeF7eUm.js")), aa = $.lazy(() => import("./Card-CSvw2WUm.js")), ra = $.lazy(() => import("./Card-cl8fYGrO.js")), nt = () => /* @__PURE__ */ n(
910
+ const sa = $.lazy(() => import("./Card-BwygcpzI.js")), aa = $.lazy(() => import("./Card-Dy66r68A.js")), ra = $.lazy(() => import("./Card-CJDGgG0O.js")), nt = () => /* @__PURE__ */ n(
911
911
  "div",
912
912
  {
913
913
  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)]",
914
914
  "aria-hidden": !0
915
915
  }
916
- ), ia = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(sa, { ...e }) }), tn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(aa, { ...e }) }), nn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(ra, { ...e }) }), oa = tn, la = nn, Bt = { Composer: ia, Sent: tn, Received: nn, Creator: oa, Visitor: la }, ca = [
916
+ ), ia = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(sa, { ...e }) }), nn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(aa, { ...e }) }), sn = (e) => /* @__PURE__ */ n(Je, { fallback: /* @__PURE__ */ n(nt, {}), children: /* @__PURE__ */ n(ra, { ...e }) }), oa = nn, la = sn, Bt = { Composer: ia, Sent: nn, Received: sn, Creator: oa, Visitor: la }, ca = [
917
917
  [/pdf/, "pdf"],
918
918
  [/wordprocessingml|msword|\.doc/, "doc"],
919
919
  [/spreadsheetml|ms-excel|\.xls/, "xls"],
@@ -926,31 +926,31 @@ const sa = $.lazy(() => import("./Card-CBeF7eUm.js")), aa = $.lazy(() => import(
926
926
  function le(e) {
927
927
  return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
928
928
  }
929
- function sn(e) {
929
+ function an(e) {
930
930
  const t = ca.find(
931
931
  ([s]) => s.test(e)
932
932
  );
933
933
  return t ? t[1] : "generic";
934
934
  }
935
935
  const da = {
936
- video: Yt,
937
- audio: bs,
938
- image: gs,
939
- document: Ht
936
+ video: qt,
937
+ audio: gs,
938
+ image: fs,
939
+ document: Yt
940
940
  }, ua = {
941
- pdf: Cs,
942
- doc: _s,
943
- xls: ys,
944
- csv: Ns,
945
- ppt: ws,
946
- zip: xs,
947
- text: vs,
948
- markdown: ps,
949
- generic: Ht
941
+ pdf: _s,
942
+ doc: ys,
943
+ xls: Ns,
944
+ csv: ws,
945
+ ppt: xs,
946
+ zip: vs,
947
+ text: ps,
948
+ markdown: bs,
949
+ generic: Yt
950
950
  };
951
951
  function ma(e) {
952
952
  const t = le(e);
953
- return t !== "document" ? da[t] : ua[sn(e)];
953
+ return t !== "document" ? da[t] : ua[an(e)];
954
954
  }
955
955
  function ge(e, t) {
956
956
  return $.createElement(ma(e), t);
@@ -970,7 +970,7 @@ const ha = (e) => {
970
970
  muted: d = !1,
971
971
  onContainerClick: h
972
972
  }) => {
973
- const g = le(t), u = Z(null), f = Z(null), c = Z(null), b = Z(r), [x, v] = z(a), [N, w] = z(0), [I, S] = z(!1), [T, D] = z(!1), [A, O] = z(!1), [E, R] = z(!1), [P, W] = z(!0), [C, B] = z(null), H = V(() => {
973
+ const g = le(t), u = Z(null), f = Z(null), c = Z(null), b = Z(r), [x, v] = z(a), [N, w] = z(0), [I, S] = z(!1), [T, D] = z(!1), [A, O] = z(!1), [E, R] = z(!1), [P, q] = z(!0), [C, B] = z(null), G = V(() => {
974
974
  O(!1), v(!0);
975
975
  }, []), U = V((p) => {
976
976
  const k = f.current;
@@ -1016,14 +1016,14 @@ const ha = (e) => {
1016
1016
  window.removeEventListener("mousemove", p), window.removeEventListener("mouseup", k), window.removeEventListener("touchmove", p), window.removeEventListener("touchend", k);
1017
1017
  };
1018
1018
  }, [I, U, L]);
1019
- const G = C ? { aspectRatio: String(C) } : void 0, _ = C ? "" : " aspect-video", M = Math.round(N * 100);
1019
+ const H = C ? { aspectRatio: String(C) } : void 0, _ = C ? "" : " aspect-video", M = Math.round(N * 100);
1020
1020
  return /* @__PURE__ */ m(
1021
1021
  "div",
1022
1022
  {
1023
1023
  role: "button",
1024
1024
  tabIndex: 0,
1025
1025
  className: `relative cursor-pointer overflow-hidden bg-black ${_}`,
1026
- style: G,
1026
+ style: H,
1027
1027
  onClick: (p) => {
1028
1028
  if (h) {
1029
1029
  h(p);
@@ -1063,7 +1063,7 @@ const ha = (e) => {
1063
1063
  style: { width: "100%", height: "100%" },
1064
1064
  onLoadStart: () => R(!0),
1065
1065
  onCanPlay: () => {
1066
- R(!1), W(!1);
1066
+ R(!1), q(!1);
1067
1067
  },
1068
1068
  onWaiting: () => R(!0),
1069
1069
  onPlay: () => O(!1),
@@ -1083,7 +1083,7 @@ const ha = (e) => {
1083
1083
  style: { width: "100%", height: "100%" },
1084
1084
  onLoadStart: () => R(!0),
1085
1085
  onCanPlay: () => {
1086
- R(!1), W(!1);
1086
+ R(!1), q(!1);
1087
1087
  },
1088
1088
  onWaiting: () => R(!0),
1089
1089
  onPlay: () => O(!1),
@@ -1112,10 +1112,10 @@ const ha = (e) => {
1112
1112
  tabIndex: 0,
1113
1113
  "aria-label": "Play preview",
1114
1114
  onClick: (p) => {
1115
- p.stopPropagation(), H();
1115
+ p.stopPropagation(), G();
1116
1116
  },
1117
1117
  onKeyDown: (p) => {
1118
- p.key !== "Enter" && p.key !== " " || (p.preventDefault(), p.stopPropagation(), H());
1118
+ p.key !== "Enter" && p.key !== " " || (p.preventDefault(), p.stopPropagation(), G());
1119
1119
  },
1120
1120
  children: /* @__PURE__ */ n("span", { className: "flex size-16 items-center justify-center rounded-full bg-white/20 text-white backdrop-blur-sm", children: /* @__PURE__ */ n(He, { className: "size-9 translate-x-0.5", weight: "fill" }) })
1121
1121
  }
@@ -1156,7 +1156,7 @@ const ha = (e) => {
1156
1156
  },
1157
1157
  className: "shrink-0 text-white",
1158
1158
  "aria-label": x ? "Pause" : "Play",
1159
- children: x ? /* @__PURE__ */ n(ks, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(He, { className: "size-5 translate-x-px", weight: "fill" })
1159
+ children: x ? /* @__PURE__ */ n(Cs, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(He, { className: "size-5 translate-x-px", weight: "fill" })
1160
1160
  }
1161
1161
  ),
1162
1162
  /* @__PURE__ */ m(
@@ -1206,7 +1206,7 @@ const ha = (e) => {
1206
1206
  ]
1207
1207
  }
1208
1208
  );
1209
- }, $t = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", ga = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", an = ({
1209
+ }, $t = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", ga = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", rn = ({
1210
1210
  mimeType: e,
1211
1211
  sourceUrl: t,
1212
1212
  thumbnailUrl: s,
@@ -1286,7 +1286,7 @@ const ha = (e) => {
1286
1286
  })
1287
1287
  }
1288
1288
  );
1289
- }, rn = ({
1289
+ }, on = ({
1290
1290
  variant: e,
1291
1291
  thumbnail: t,
1292
1292
  title: s,
@@ -1352,7 +1352,7 @@ const ha = (e) => {
1352
1352
  }
1353
1353
  );
1354
1354
  };
1355
- function on(e) {
1355
+ function ln(e) {
1356
1356
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1357
1357
  }
1358
1358
  function st(e) {
@@ -1386,7 +1386,7 @@ const at = ({ attachment: e, isMyMessage: t }) => {
1386
1386
  "div",
1387
1387
  {
1388
1388
  className: `aspect-video w-full rounded-[20px] ${ba(t)} flex items-center justify-center`,
1389
- children: /* @__PURE__ */ n(Es, { className: `size-12 ${wa(t)}` })
1389
+ children: /* @__PURE__ */ n(ks, { className: `size-12 ${wa(t)}` })
1390
1390
  }
1391
1391
  ) }),
1392
1392
  /* @__PURE__ */ m("div", { className: "px-3 pb-3", children: [
@@ -1397,12 +1397,12 @@ const at = ({ attachment: e, isMyMessage: t }) => {
1397
1397
  ] });
1398
1398
  return d ? /* @__PURE__ */ n("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "block no-underline", children: h }) : /* @__PURE__ */ n("div", { className: "block", children: h });
1399
1399
  };
1400
- function ln(e) {
1400
+ function cn(e) {
1401
1401
  return e.type === "link" || !!e.og_scrape_url && !e.asset_url;
1402
1402
  }
1403
1403
  function rt(e) {
1404
1404
  var t;
1405
- return (t = e.attachments) == null ? void 0 : t.find(ln);
1405
+ return (t = e.attachments) == null ? void 0 : t.find(cn);
1406
1406
  }
1407
1407
  async function Na(e, t) {
1408
1408
  let s;
@@ -1464,16 +1464,16 @@ function it(e) {
1464
1464
  thumbnailUrl: g
1465
1465
  };
1466
1466
  }
1467
- const cn = ({
1467
+ const dn = ({
1468
1468
  resolvedUrl: e,
1469
1469
  resolvedType: t,
1470
1470
  title: s,
1471
1471
  fileSize: a,
1472
1472
  thumbnailUrl: r
1473
1473
  }) => {
1474
- const i = a !== void 0 ? on(a) : void 0;
1474
+ const i = a !== void 0 ? ln(a) : void 0;
1475
1475
  return /* @__PURE__ */ n(
1476
- rn,
1476
+ on,
1477
1477
  {
1478
1478
  variant: "dark",
1479
1479
  title: s,
@@ -1481,7 +1481,7 @@ const cn = ({
1481
1481
  mimeType: t,
1482
1482
  detail: i,
1483
1483
  thumbnail: /* @__PURE__ */ n(
1484
- an,
1484
+ rn,
1485
1485
  {
1486
1486
  mimeType: t,
1487
1487
  sourceUrl: e,
@@ -1492,23 +1492,23 @@ const cn = ({
1492
1492
  )
1493
1493
  }
1494
1494
  );
1495
- }, dn = ({
1495
+ }, un = ({
1496
1496
  resolvedUrl: e,
1497
1497
  resolvedType: t,
1498
1498
  title: s,
1499
1499
  fileSize: a,
1500
1500
  thumbnailUrl: r
1501
1501
  }) => {
1502
- const i = le(t), l = a !== void 0 ? on(a) : void 0;
1502
+ const i = le(t), l = a !== void 0 ? ln(a) : void 0;
1503
1503
  return /* @__PURE__ */ n(
1504
- rn,
1504
+ on,
1505
1505
  {
1506
1506
  variant: "light",
1507
1507
  title: s,
1508
1508
  mimeType: t,
1509
1509
  detail: l,
1510
1510
  thumbnail: /* @__PURE__ */ n(
1511
- an,
1511
+ rn,
1512
1512
  {
1513
1513
  mimeType: t,
1514
1514
  sourceUrl: e,
@@ -1546,7 +1546,7 @@ const cn = ({
1546
1546
  {
1547
1547
  className: "str-chat__message-bubble",
1548
1548
  style: { padding: 0, borderRadius: 0, overflow: "visible", background: "transparent" },
1549
- children: s ? /* @__PURE__ */ n("div", { className: st(t), children: /* @__PURE__ */ n(at, { attachment: s, isMyMessage: t }) }) : t ? /* @__PURE__ */ n(cn, { ...a }) : /* @__PURE__ */ n(dn, { ...a })
1549
+ children: s ? /* @__PURE__ */ n("div", { className: st(t), children: /* @__PURE__ */ n(at, { attachment: s, isMyMessage: t }) }) : t ? /* @__PURE__ */ n(dn, { ...a }) : /* @__PURE__ */ n(un, { ...a })
1550
1550
  }
1551
1551
  ) })
1552
1552
  }
@@ -1559,7 +1559,7 @@ const cn = ({
1559
1559
  if (t)
1560
1560
  return /* @__PURE__ */ n("div", { className: st(!0), children: /* @__PURE__ */ n(at, { attachment: t, isMyMessage: !0 }) });
1561
1561
  const s = it(e);
1562
- return s ? /* @__PURE__ */ n(cn, { ...s }) : null;
1562
+ return s ? /* @__PURE__ */ n(dn, { ...s }) : null;
1563
1563
  }, ka = ({
1564
1564
  message: e
1565
1565
  }) => {
@@ -1567,17 +1567,17 @@ const cn = ({
1567
1567
  if (t)
1568
1568
  return /* @__PURE__ */ n("div", { className: st(!1), children: /* @__PURE__ */ n(at, { attachment: t, isMyMessage: !1 }) });
1569
1569
  const s = it(e);
1570
- return s ? /* @__PURE__ */ n(dn, { ...s }) : null;
1571
- }, _i = Object.assign(_a, {
1570
+ return s ? /* @__PURE__ */ n(un, { ...s }) : null;
1571
+ }, yi = Object.assign(_a, {
1572
1572
  Creator: Ca,
1573
1573
  Visitor: ka
1574
1574
  }), Ea = {
1575
1575
  isUnlocking: () => !1
1576
1576
  }, Ia = {
1577
1577
  LockedAttachment: Ea
1578
- }, un = Ze({}), Ci = un.Provider;
1578
+ }, mn = Ze({}), _i = mn.Provider;
1579
1579
  function Sa(e) {
1580
- return Ke(un)[e] ?? Ia[e];
1580
+ return Ke(mn)[e] ?? Ia[e];
1581
1581
  }
1582
1582
  const Ta = ({
1583
1583
  selected: e,
@@ -1595,7 +1595,7 @@ const Ta = ({
1595
1595
  "aria-label": "Good response",
1596
1596
  "aria-pressed": e === "up",
1597
1597
  "data-tooltip": "Good response",
1598
- children: /* @__PURE__ */ n(Is, { size: 16, weight: e === "up" ? "fill" : "regular" })
1598
+ children: /* @__PURE__ */ n(Es, { size: 16, weight: e === "up" ? "fill" : "regular" })
1599
1599
  }
1600
1600
  ),
1601
1601
  /* @__PURE__ */ n(
@@ -1609,7 +1609,7 @@ const Ta = ({
1609
1609
  "aria-label": "Bad response",
1610
1610
  "aria-pressed": e === "down",
1611
1611
  "data-tooltip": "Bad response",
1612
- children: /* @__PURE__ */ n(Ss, { size: 16, weight: e === "down" ? "fill" : "regular" })
1612
+ children: /* @__PURE__ */ n(Is, { size: 16, weight: e === "down" ? "fill" : "regular" })
1613
1613
  }
1614
1614
  )
1615
1615
  ] }), Aa = (e) => {
@@ -1631,37 +1631,37 @@ const Ta = ({
1631
1631
  renderText: b,
1632
1632
  threadList: x,
1633
1633
  viewerLanguage: v
1634
- } = e, { client: N } = Qe("CustomMessage"), { channel: w } = me("CustomMessage"), { isUnlocking: I, onUnlockClick: S, onFetchSource: T, onDownloadClick: D } = Sa("LockedAttachment"), [A, O] = z(!1), E = Dn(c.id), { selected: R, voteUp: P, voteDown: W } = na(c), {
1635
- Attachment: C = Rn,
1636
- EditMessageModal: B = Ln,
1637
- MessageActions: H,
1638
- MessageBlocked: U = Fn,
1639
- MessageBouncePrompt: L = On,
1640
- MessageDeleted: F = zn,
1641
- MessageIsThreadReplyInChannelButtonIndicator: G = Pn,
1642
- MessageRepliesCountButton: _ = Bn,
1643
- ReminderNotification: M = $n,
1644
- StreamedMessageText: p = jn,
1634
+ } = e, { client: N } = Qe("CustomMessage"), { channel: w } = me("CustomMessage"), { isUnlocking: I, onUnlockClick: S, onFetchSource: T, onDownloadClick: D } = Sa("LockedAttachment"), [A, O] = z(!1), E = Rn(c.id), { selected: R, voteUp: P, voteDown: q } = na(c), {
1635
+ Attachment: C = Ln,
1636
+ EditMessageModal: B = Fn,
1637
+ MessageActions: G,
1638
+ MessageBlocked: U = On,
1639
+ MessageBouncePrompt: L = zn,
1640
+ MessageDeleted: F = Pn,
1641
+ MessageIsThreadReplyInChannelButtonIndicator: H = Bn,
1642
+ MessageRepliesCountButton: _ = $n,
1643
+ ReminderNotification: M = jn,
1644
+ StreamedMessageText: p = Un,
1645
1645
  PinIndicator: k
1646
- } = Gt("CustomMessage"), Y = Un(c), q = Vn(c), he = re(
1646
+ } = Gt("CustomMessage"), Y = Vn(c), W = Gn(c), he = re(
1647
1647
  () => u == null ? void 0 : u(c),
1648
1648
  [u, c]
1649
1649
  ), J = re(() => {
1650
- const be = c.attachments ?? [], Ie = c.shared_location ? [c.shared_location, ...be] : be;
1651
- if (!Ae(c)) return Ie;
1652
- const At = Ie.filter((Mt) => !("type" in Mt) || !ln(Mt));
1653
- return At.length === Ie.length ? Ie : At;
1650
+ const be = c.attachments ?? [], Se = c.shared_location ? [c.shared_location, ...be] : be;
1651
+ if (!Me(c)) return Se;
1652
+ const At = Se.filter((Mt) => !("type" in Mt) || !cn(Mt));
1653
+ return At.length === Se.length ? Se : At;
1654
1654
  }, [c]), ee = re(() => {
1655
- const be = Kt({ message: c, viewerLanguage: v });
1655
+ const be = Jt({ message: c, viewerLanguage: v });
1656
1656
  return be === c.text ? c : { ...c, text: be };
1657
1657
  }, [c, v]);
1658
- if (Gn(c))
1658
+ if (Hn(c))
1659
1659
  return null;
1660
1660
  if (c.deleted_at || c.type === "deleted")
1661
1661
  return /* @__PURE__ */ n(F, { message: c });
1662
- if (Hn(c))
1662
+ if (Yn(c))
1663
1663
  return /* @__PURE__ */ n(U, {});
1664
- const Ce = !x && !!c.reply_count, ke = !x && c.show_in_channel && c.parent_id, ce = c.status === "failed" && ((bt = c.error) == null ? void 0 : bt.status) !== 403, te = Yn(c);
1664
+ const ke = !x && !!c.reply_count, Ee = !x && c.show_in_channel && c.parent_id, ce = c.status === "failed" && ((bt = c.error) == null ? void 0 : bt.status) !== 403, te = qn(c);
1665
1665
  let se;
1666
1666
  ce ? se = () => h(c) : te && (se = () => O(!0));
1667
1667
  const de = f(), Oe = y(
@@ -1674,14 +1674,14 @@ const Ta = ({
1674
1674
  "str-chat__message--has-attachment": Y,
1675
1675
  "str-chat__message--highlighted": g,
1676
1676
  "str-chat__message--pinned pinned-message": c.pinned,
1677
- "str-chat__message--with-reactions": q,
1677
+ "str-chat__message--with-reactions": W,
1678
1678
  "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((pt = c == null ? void 0 : c.error) == null ? void 0 : pt.status) !== 403,
1679
- "str-chat__message-with-thread-link": Ce || ke,
1679
+ "str-chat__message-with-thread-link": ke || Ee,
1680
1680
  "str-chat__virtual-message__wrapper--end": r,
1681
1681
  "str-chat__virtual-message__wrapper--first": i,
1682
1682
  "str-chat__virtual-message__wrapper--group": l
1683
1683
  }
1684
- ), Ee = c.poll_id && N.polls.fromState(c.poll_id), ue = Xs(c), j = Ae(c), K = qs(c), Q = !!(J != null && J.length && !c.quoted_message), ae = j && de && Q;
1684
+ ), Ie = c.poll_id && N.polls.fromState(c.poll_id), ue = Xs(c), j = Me(c), K = Ws(c), Q = !!(J != null && J.length && !c.quoted_message), ae = j && de && Q;
1685
1685
  return /* @__PURE__ */ m(ie, { children: [
1686
1686
  a && /* @__PURE__ */ n(
1687
1687
  B,
@@ -1697,161 +1697,200 @@ const Ta = ({
1697
1697
  open: A
1698
1698
  }
1699
1699
  ),
1700
- /* @__PURE__ */ m("div", { className: Oe, "data-message-id": c.id, children: [
1701
- k && /* @__PURE__ */ n(k, {}),
1702
- !!E && /* @__PURE__ */ n(M, { reminder: E }),
1703
- c.user && /* @__PURE__ */ n(
1704
- oe,
1705
- {
1706
- className: "str-chat__avatar str-chat__message-sender-avatar",
1707
- id: c.user.id,
1708
- image: c.user.image,
1709
- name: c.user.name || c.user.id,
1710
- size: j ? 24 : 28,
1711
- shape: "circle",
1712
- dmAgentEnabled: j
1713
- }
1714
- ),
1715
- /* @__PURE__ */ m(
1716
- "div",
1717
- {
1718
- className: y("str-chat__message-inner", {
1719
- "str-chat__simple-message--error-failed": ce || te
1720
- }),
1721
- "data-testid": "message-inner",
1722
- onClick: se,
1723
- onKeyDown: se,
1724
- role: se ? "button" : void 0,
1725
- tabIndex: se ? 0 : void 0,
1726
- style: {
1727
- // Force margins to 0 to prevent hover layout shift
1728
- // Stream Chat CSS sets margin-inline-end/start to 78px, then 0 on hover
1729
- marginInlineEnd: 0,
1730
- marginInlineStart: 0
1731
- },
1732
- children: [
1733
- K ? /* @__PURE__ */ m("div", { className: "str-chat__message-bubble-wrapper", children: [
1734
- de ? /* @__PURE__ */ n(
1735
- Bt.Sent,
1736
- {
1737
- title: (vt = c.metadata) == null ? void 0 : vt.attachment_title,
1738
- mimeType: (xt = c.metadata) == null ? void 0 : xt.attachment_mime_type,
1739
- thumbnailUrl: (wt = c.metadata) == null ? void 0 : wt.attachment_thumbnail,
1740
- amountText: (Nt = c.metadata) == null ? void 0 : Nt.amount_text,
1741
- detail: (yt = c.metadata) == null ? void 0 : yt.attachment_detail,
1742
- paymentStatus: (_t = c.metadata) == null ? void 0 : _t.payment_status,
1743
- onPreviewClick: () => S == null ? void 0 : S(c, w),
1744
- onFetchSource: async () => await (T == null ? void 0 : T(c, w))
1745
- }
1746
- ) : /* @__PURE__ */ n(
1747
- Bt.Received,
1748
- {
1749
- title: (Ct = c.metadata) == null ? void 0 : Ct.attachment_title,
1750
- mimeType: (kt = c.metadata) == null ? void 0 : kt.attachment_mime_type,
1751
- thumbnailUrl: (Et = c.metadata) == null ? void 0 : Et.attachment_thumbnail,
1752
- amountText: (It = c.metadata) == null ? void 0 : It.amount_text,
1753
- detail: (St = c.metadata) == null ? void 0 : St.attachment_detail,
1754
- paymentStatus: (Tt = c.metadata) == null ? void 0 : Tt.payment_status,
1755
- isUnlocking: I(c.id),
1756
- onUnlockClick: () => S == null ? void 0 : S(c, w),
1757
- onFetchSource: async () => await (T == null ? void 0 : T(c, w)),
1758
- onDownloadClick: () => D == null ? void 0 : D(c, w)
1759
- }
1760
- ),
1761
- c.text && /* @__PURE__ */ n("div", { className: "str-chat__message-bubble", children: /* @__PURE__ */ n(
1762
- Dt,
1763
- {
1764
- message: ee,
1765
- renderText: b
1766
- }
1767
- ) })
1768
- ] }) : ue ? (
1769
- /* Tip-only messages render as a standalone bubble */
1770
- /* @__PURE__ */ n($e, { message: c, standalone: !0 })
1771
- ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ m("div", { className: "str-chat__message-bubble", children: [
1772
- j && !ae && /* @__PURE__ */ n(
1773
- $e,
1774
- {
1775
- message: c,
1776
- hasAttachment: Q,
1777
- isMyMessage: de
1778
- }
1779
- ),
1780
- Ee && /* @__PURE__ */ n(qn, { poll: Ee }),
1781
- J != null && J.length && !c.quoted_message ? /* @__PURE__ */ n(
1782
- C,
1783
- {
1784
- actionHandler: o,
1785
- attachments: J
1786
- }
1787
- ) : null,
1788
- he ? /* @__PURE__ */ n(
1789
- p,
1790
- {
1791
- message: ee,
1792
- renderText: b
1793
- }
1794
- ) : /* @__PURE__ */ n(
1795
- Dt,
1796
- {
1797
- message: ee,
1798
- renderText: b
1799
- }
1800
- ),
1801
- /* @__PURE__ */ n(Xn, {})
1802
- ] }) }),
1803
- H && /* @__PURE__ */ n(H, {})
1804
- ]
1805
- }
1806
- ),
1807
- !K && !ue && /* @__PURE__ */ m("div", { className: "str-chat__message-footer", children: [
1808
- (!j || ae) && /* @__PURE__ */ n(
1809
- $e,
1810
- {
1811
- message: c,
1812
- hasAttachment: Q,
1813
- isMyMessage: de
1814
- }
1815
- ),
1816
- s && j && /* @__PURE__ */ n(
1817
- Ta,
1818
- {
1819
- selected: R,
1820
- onVoteUp: P,
1821
- onVoteDown: W
1822
- }
1823
- )
1824
- ] }),
1825
- Ce && /* @__PURE__ */ n(
1826
- _,
1827
- {
1828
- onClick: d,
1829
- reply_count: c.reply_count
1830
- }
1831
- ),
1832
- ke && /* @__PURE__ */ n(G, {})
1833
- ] }, c.id)
1700
+ /* @__PURE__ */ m(
1701
+ "div",
1702
+ {
1703
+ className: Oe,
1704
+ "data-message-id": c.id,
1705
+ children: [
1706
+ k && /* @__PURE__ */ n(k, {}),
1707
+ !!E && /* @__PURE__ */ n(M, { reminder: E }),
1708
+ c.user && /* @__PURE__ */ n(
1709
+ oe,
1710
+ {
1711
+ className: "str-chat__avatar str-chat__message-sender-avatar",
1712
+ id: c.user.id,
1713
+ image: c.user.image,
1714
+ name: c.user.name || c.user.id,
1715
+ size: j ? 24 : 28,
1716
+ shape: "circle",
1717
+ dmAgentEnabled: j
1718
+ }
1719
+ ),
1720
+ /* @__PURE__ */ n(
1721
+ "div",
1722
+ {
1723
+ className: y("str-chat__message-inner", {
1724
+ "str-chat__simple-message--error-failed": ce || te
1725
+ }),
1726
+ "data-testid": "message-inner",
1727
+ onClick: se,
1728
+ onKeyDown: se,
1729
+ role: se ? "button" : void 0,
1730
+ tabIndex: se ? 0 : void 0,
1731
+ style: {
1732
+ // Force margins to 0 to prevent hover layout shift
1733
+ // Stream Chat CSS sets margin-inline-end/start to 78px, then 0 on hover
1734
+ marginInlineEnd: 0,
1735
+ marginInlineStart: 0
1736
+ },
1737
+ children: K ? /* @__PURE__ */ m("div", { className: "str-chat__message-bubble-wrapper", children: [
1738
+ de ? /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
1739
+ G && /* @__PURE__ */ n(G, {}),
1740
+ /* @__PURE__ */ n(
1741
+ Bt.Sent,
1742
+ {
1743
+ title: (vt = c.metadata) == null ? void 0 : vt.attachment_title,
1744
+ mimeType: (xt = c.metadata) == null ? void 0 : xt.attachment_mime_type,
1745
+ thumbnailUrl: (wt = c.metadata) == null ? void 0 : wt.attachment_thumbnail,
1746
+ amountText: (Nt = c.metadata) == null ? void 0 : Nt.amount_text,
1747
+ detail: (yt = c.metadata) == null ? void 0 : yt.attachment_detail,
1748
+ paymentStatus: (_t = c.metadata) == null ? void 0 : _t.payment_status,
1749
+ onPreviewClick: () => S == null ? void 0 : S(c, w),
1750
+ onFetchSource: async () => await (T == null ? void 0 : T(c, w))
1751
+ }
1752
+ )
1753
+ ] }) : /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
1754
+ /* @__PURE__ */ n(
1755
+ Bt.Received,
1756
+ {
1757
+ title: (Ct = c.metadata) == null ? void 0 : Ct.attachment_title,
1758
+ mimeType: (kt = c.metadata) == null ? void 0 : kt.attachment_mime_type,
1759
+ thumbnailUrl: (Et = c.metadata) == null ? void 0 : Et.attachment_thumbnail,
1760
+ amountText: (It = c.metadata) == null ? void 0 : It.amount_text,
1761
+ detail: (St = c.metadata) == null ? void 0 : St.attachment_detail,
1762
+ paymentStatus: (Tt = c.metadata) == null ? void 0 : Tt.payment_status,
1763
+ isUnlocking: I(c.id),
1764
+ onUnlockClick: () => S == null ? void 0 : S(c, w),
1765
+ onFetchSource: async () => await (T == null ? void 0 : T(c, w)),
1766
+ onDownloadClick: () => D == null ? void 0 : D(c, w)
1767
+ }
1768
+ ),
1769
+ G && /* @__PURE__ */ n(G, {})
1770
+ ] }),
1771
+ c.text && /* @__PURE__ */ n("div", { className: "str-chat__message-bubble", children: /* @__PURE__ */ n(
1772
+ Dt,
1773
+ {
1774
+ message: ee,
1775
+ renderText: b
1776
+ }
1777
+ ) })
1778
+ ] }) : ue ? (
1779
+ /* Tip-only messages render as a standalone bubble */
1780
+ /* @__PURE__ */ n($e, { message: c, standalone: !0 })
1781
+ ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ m("div", { className: "str-chat__message-bubble", children: [
1782
+ j && !ae && /* @__PURE__ */ n(
1783
+ $e,
1784
+ {
1785
+ message: c,
1786
+ hasAttachment: Q,
1787
+ isMyMessage: de
1788
+ }
1789
+ ),
1790
+ Ie && /* @__PURE__ */ n(Xn, { poll: Ie }),
1791
+ J != null && J.length && !c.quoted_message ? /* @__PURE__ */ n(
1792
+ C,
1793
+ {
1794
+ actionHandler: o,
1795
+ attachments: J
1796
+ }
1797
+ ) : null,
1798
+ he ? /* @__PURE__ */ n(
1799
+ p,
1800
+ {
1801
+ message: ee,
1802
+ renderText: b
1803
+ }
1804
+ ) : /* @__PURE__ */ n(
1805
+ Dt,
1806
+ {
1807
+ message: ee,
1808
+ renderText: b
1809
+ }
1810
+ ),
1811
+ /* @__PURE__ */ n(Zn, {})
1812
+ ] }) })
1813
+ }
1814
+ ),
1815
+ !K && !ue && /* @__PURE__ */ m("div", { className: "str-chat__message-footer", children: [
1816
+ (!j || ae) && /* @__PURE__ */ n(
1817
+ $e,
1818
+ {
1819
+ message: c,
1820
+ hasAttachment: Q,
1821
+ isMyMessage: de
1822
+ }
1823
+ ),
1824
+ s && j && /* @__PURE__ */ n(
1825
+ Ta,
1826
+ {
1827
+ selected: R,
1828
+ onVoteUp: P,
1829
+ onVoteDown: q
1830
+ }
1831
+ )
1832
+ ] }),
1833
+ ke && /* @__PURE__ */ n(
1834
+ _,
1835
+ {
1836
+ onClick: d,
1837
+ reply_count: c.reply_count
1838
+ }
1839
+ ),
1840
+ Ee && /* @__PURE__ */ n(H, {})
1841
+ ]
1842
+ },
1843
+ c.id
1844
+ )
1834
1845
  ] });
1835
1846
  }, Ma = $.memo(
1836
1847
  Aa,
1837
- (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Mn(e, t)
1848
+ (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Dn(e, t)
1838
1849
  ), Da = (e) => {
1839
- const t = Le("CustomMessage");
1850
+ const t = xe("CustomMessage");
1840
1851
  return /* @__PURE__ */ n(Ma, { ...t, ...e });
1841
1852
  }, Ra = () => {
1842
- const { handleDelete: e } = Le("CustomMessageActions"), { t } = Zn("CustomMessageActions");
1843
- return /* @__PURE__ */ n(Wt, { onClick: e, children: t("Delete") });
1853
+ var s;
1854
+ const { handleDelete: e, message: t } = xe("CustomMessageActions");
1855
+ return ((s = t.metadata) == null ? void 0 : s.payment_status) !== "paid" ? null : /* @__PURE__ */ n(
1856
+ Wt,
1857
+ {
1858
+ onClick: e,
1859
+ "aria-label": "Delete",
1860
+ title: "Delete",
1861
+ className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
1862
+ children: /* @__PURE__ */ n(Ss, { size: 16, weight: "light", "aria-hidden": !0 })
1863
+ }
1864
+ );
1844
1865
  }, La = () => {
1845
- const { handleFlag: e } = Le("CustomMessageActions");
1846
- return /* @__PURE__ */ n(Wt, { onClick: e, children: "Report" });
1847
- }, Fa = [
1848
- { Component: Ra, placement: "dropdown", type: "delete" },
1849
- { Component: La, placement: "dropdown", type: "flag" }
1850
- ], Oa = () => /* @__PURE__ */ n(Rs, { messageActionSet: Fa }), za = (e) => ({
1866
+ const { handleFlag: e } = xe("CustomMessageActions");
1867
+ return /* @__PURE__ */ n(
1868
+ Wt,
1869
+ {
1870
+ onClick: e,
1871
+ "aria-label": "Report",
1872
+ title: "Report",
1873
+ className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
1874
+ children: /* @__PURE__ */ n(Ht, { size: 16, weight: "light", "aria-hidden": !0 })
1875
+ }
1876
+ );
1877
+ }, Fa = () => {
1878
+ var t;
1879
+ const { message: e } = xe("CustomMessageActions");
1880
+ return ((t = e.metadata) == null ? void 0 : t.custom_type) !== "MESSAGE_ATTACHMENT" ? null : /* @__PURE__ */ n(
1881
+ Rs,
1882
+ {
1883
+ messageActionSet: [
1884
+ { Component: Ra, placement: "quick", type: "delete" },
1885
+ { Component: La, placement: "quick", type: "flag" }
1886
+ ]
1887
+ }
1888
+ );
1889
+ }, Oa = (e) => ({
1851
1890
  linkPreviews: Array.from(e.previews.values()).filter(
1852
1891
  (t) => Ot.previewIsLoaded(t) || Ot.previewIsLoading(t)
1853
1892
  )
1854
- }), Pa = ({
1893
+ }), za = ({
1855
1894
  link: e,
1856
1895
  onDismiss: t
1857
1896
  }) => {
@@ -1881,7 +1920,7 @@ const Ta = ({
1881
1920
  },
1882
1921
  className: "absolute right-4 top-4 flex size-6 items-center justify-center rounded-full border border-white/40 bg-white/70 backdrop-blur-2xl focus-ring",
1883
1922
  "aria-label": "Close link preview",
1884
- children: /* @__PURE__ */ n(xe, { className: "size-4 text-black/90" })
1923
+ children: /* @__PURE__ */ n(we, { className: "size-4 text-black/90" })
1885
1924
  }
1886
1925
  ),
1887
1926
  /* @__PURE__ */ m("div", { className: "p-2", children: [
@@ -1891,22 +1930,22 @@ const Ta = ({
1891
1930
  ]
1892
1931
  }
1893
1932
  );
1894
- }, Ba = () => {
1933
+ }, Pa = () => {
1895
1934
  const { linkPreviewsManager: e } = Kn(), { linkPreviews: t } = Jn(
1896
1935
  e.state,
1897
- za
1936
+ Oa
1898
1937
  ), s = (r) => {
1899
1938
  e.dismissPreview(r);
1900
1939
  };
1901
1940
  return t.length > 0 ? /* @__PURE__ */ n("div", { className: "flex flex-col items-center w-full gap-2 mb-4", children: t.map((r) => /* @__PURE__ */ n(
1902
- Pa,
1941
+ za,
1903
1942
  {
1904
1943
  link: r,
1905
1944
  onDismiss: s
1906
1945
  },
1907
1946
  r.og_scrape_url
1908
1947
  )) }) : null;
1909
- }, $a = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1948
+ }, Ba = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
1910
1949
  "button",
1911
1950
  {
1912
1951
  ...s,
@@ -1916,14 +1955,14 @@ const Ta = ({
1916
1955
  onClick: e,
1917
1956
  children: /* @__PURE__ */ n(Ts, { weight: "bold", className: "size-4" })
1918
1957
  }
1919
- ), ja = () => {
1958
+ ), $a = () => {
1920
1959
  var o;
1921
- const { channel: e } = me(), t = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.frozen) === !0, { handleSubmit: s } = es(), { SendButton: a } = Gt("CustomMessageInput"), r = a ?? $a, i = ts();
1960
+ const { channel: e } = me(), t = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.frozen) === !0, { handleSubmit: s } = es(), { SendButton: a } = Gt("CustomMessageInput"), r = a ?? Ba, i = ts();
1922
1961
  return /* @__PURE__ */ m(ie, { children: [
1923
1962
  /* @__PURE__ */ n("div", { className: "left-container", children: /* @__PURE__ */ n(ns, {}) }),
1924
1963
  /* @__PURE__ */ m("div", { className: "central-container 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: [
1925
1964
  /* @__PURE__ */ n(ss, {}),
1926
- /* @__PURE__ */ n(Ba, {}),
1965
+ /* @__PURE__ */ n(Pa, {}),
1927
1966
  /* @__PURE__ */ n(as, {}),
1928
1967
  /* @__PURE__ */ m("div", { className: "flex", children: [
1929
1968
  /* @__PURE__ */ n("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ n(
@@ -1951,7 +1990,7 @@ const Ta = ({
1951
1990
  ] })
1952
1991
  ] })
1953
1992
  ] });
1954
- }, Ua = ({
1993
+ }, ja = ({
1955
1994
  renderActions: e
1956
1995
  }) => {
1957
1996
  var a;
@@ -1964,21 +2003,21 @@ const Ta = ({
1964
2003
  className: "message-input flex items-center gap-2 p-4 aria-disabled:opacity-40",
1965
2004
  children: [
1966
2005
  e == null ? void 0 : e(),
1967
- /* @__PURE__ */ n(Qn, { Input: ja })
2006
+ /* @__PURE__ */ n(Qn, { Input: $a })
1968
2007
  ]
1969
2008
  }
1970
2009
  );
1971
- }, Va = [
2010
+ }, Ua = [
1972
2011
  "SYSTEM_DM_AGENT_PAUSED",
1973
2012
  "SYSTEM_DM_AGENT_RESUMED"
1974
- ], Ga = {
2013
+ ], Va = {
1975
2014
  SYSTEM_DM_AGENT_PAUSED: "DM Agent has left the conversation",
1976
2015
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
1977
- }, Ha = [
2016
+ }, Ga = [
1978
2017
  "SYSTEM_AGE_SAFETY_BLOCKED"
1979
- ], Ya = {
2018
+ ], Ha = {
1980
2019
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
1981
- }, je = "age safety guidelines.", Wa = "https://linktr.ee/s/about/contact", jt = (e) => Va.includes(e), qa = (e) => Ha.includes(e), Xa = (e) => {
2020
+ }, je = "age safety guidelines.", Ya = "https://linktr.ee/s/about/contact", jt = (e) => Ua.includes(e), qa = (e) => Ga.includes(e), Wa = (e) => {
1982
2021
  var a;
1983
2022
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
1984
2023
  if (jt(t))
@@ -1997,7 +2036,7 @@ const Ta = ({
1997
2036
  kind: "dm-agent",
1998
2037
  type: s
1999
2038
  };
2000
- }, Za = (e) => {
2039
+ }, Xa = (e) => {
2001
2040
  const t = e.indexOf(je);
2002
2041
  if (t === -1)
2003
2042
  return e;
@@ -2007,7 +2046,7 @@ const Ta = ({
2007
2046
  /* @__PURE__ */ n(
2008
2047
  "a",
2009
2048
  {
2010
- href: Wa,
2049
+ href: Ya,
2011
2050
  target: "_blank",
2012
2051
  rel: "noopener noreferrer",
2013
2052
  className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
@@ -2016,13 +2055,13 @@ const Ta = ({
2016
2055
  ),
2017
2056
  e.slice(s)
2018
2057
  ] });
2019
- }, Ka = (e) => {
2058
+ }, Za = (e) => {
2020
2059
  var a, r;
2021
- const t = e.message.hide_date === !0, s = Xa(
2060
+ const t = e.message.hide_date === !0, s = Wa(
2022
2061
  e.message
2023
2062
  );
2024
2063
  if ((s == null ? void 0 : s.kind) === "dm-agent") {
2025
- const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Ga[s.type];
2064
+ const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Va[s.type];
2026
2065
  return /* @__PURE__ */ m("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
2027
2066
  /* @__PURE__ */ m(
2028
2067
  "div",
@@ -2048,7 +2087,7 @@ const Ta = ({
2048
2087
  ] });
2049
2088
  }
2050
2089
  if ((s == null ? void 0 : s.kind) === "age-safety") {
2051
- const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ya[s.type];
2090
+ const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ha[s.type];
2052
2091
  return /* @__PURE__ */ m("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
2053
2092
  /* @__PURE__ */ m(
2054
2093
  "div",
@@ -2067,7 +2106,7 @@ const Ta = ({
2067
2106
  "data-testid": "age-safety-system-message-icon"
2068
2107
  }
2069
2108
  ),
2070
- /* @__PURE__ */ n("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ n("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children: Za(i) }) })
2109
+ /* @__PURE__ */ n("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ n("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children: Xa(i) }) })
2071
2110
  ]
2072
2111
  }
2073
2112
  ),
@@ -2082,7 +2121,7 @@ const Ta = ({
2082
2121
  ] }),
2083
2122
  !t && /* @__PURE__ */ n(ze, { message: e.message })
2084
2123
  ] });
2085
- }, mn = Ze(!1), Ue = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "4", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
2124
+ }, hn = Ze(!1), Ue = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "4", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
2086
2125
  "animateTransform",
2087
2126
  {
2088
2127
  attributeName: "transform",
@@ -2092,15 +2131,15 @@ const Ta = ({
2092
2131
  begin: `${120 * t}ms`,
2093
2132
  repeatCount: "indefinite"
2094
2133
  }
2095
- ) }), Ja = /* @__PURE__ */ new Set([
2134
+ ) }), Ka = /* @__PURE__ */ new Set([
2096
2135
  Pe.Thinking,
2097
2136
  Pe.Generating,
2098
2137
  Pe.ExternalSources
2099
- ]), Qa = ({ threadList: e }) => {
2138
+ ]), Ja = ({ threadList: e }) => {
2100
2139
  var b, x;
2101
- const { channel: t, channelConfig: s, thread: a } = me(), { client: r } = Qe(), { typing: i = {} } = is(), { aiState: l } = os(t), o = Ke(mn);
2102
- if (!e && o && Ja.has(l)) {
2103
- const v = er(t, (b = r.user) == null ? void 0 : b.id);
2140
+ const { channel: t, channelConfig: s, thread: a } = me(), { client: r } = Qe(), { typing: i = {} } = is(), { aiState: l } = os(t), o = Ke(hn);
2141
+ if (!e && o && Ka.has(l)) {
2142
+ const v = Qa(t, (b = r.user) == null ? void 0 : b.id);
2104
2143
  return /* @__PURE__ */ n(
2105
2144
  Ut,
2106
2145
  {
@@ -2177,7 +2216,7 @@ const Ta = ({
2177
2216
  ]
2178
2217
  }
2179
2218
  );
2180
- function er(e, t) {
2219
+ function Qa(e, t) {
2181
2220
  var a;
2182
2221
  const s = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
2183
2222
  for (const r of Object.values(s)) {
@@ -2186,7 +2225,7 @@ function er(e, t) {
2186
2225
  return i;
2187
2226
  }
2188
2227
  }
2189
- const tr = () => null, nr = ({ className: e, message: t }) => /* @__PURE__ */ m(
2228
+ const er = () => null, tr = ({ className: e, message: t }) => /* @__PURE__ */ m(
2190
2229
  "div",
2191
2230
  {
2192
2231
  className: y("flex items-center justify-center h-full", e),
@@ -2229,12 +2268,12 @@ const tr = () => null, nr = ({ className: e, message: t }) => /* @__PURE__ */ m(
2229
2268
  t && /* @__PURE__ */ n("span", { className: "text-stone", children: t })
2230
2269
  ]
2231
2270
  }
2232
- ), Me = $.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ m("div", { className: "flex items-center", children: [
2233
- /* @__PURE__ */ n(nr, { className: "w-6 h-6" }),
2271
+ ), De = $.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ m("div", { className: "flex items-center", children: [
2272
+ /* @__PURE__ */ n(tr, { className: "w-6 h-6" }),
2234
2273
  /* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
2235
2274
  ] }) }));
2236
- Me.displayName = "LoadingState";
2237
- const fe = "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", sr = ({
2275
+ De.displayName = "LoadingState";
2276
+ const fe = "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", nr = ({
2238
2277
  onBack: e,
2239
2278
  showBackButton: t,
2240
2279
  onShowInfo: s,
@@ -2253,7 +2292,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2253
2292
  return ((A = D.user) == null ? void 0 : A.id) && D.user.id !== w;
2254
2293
  }
2255
2294
  ) : void 0;
2256
- }, [(c = o._client) == null ? void 0 : c.userID, (b = o.state) == null ? void 0 : b.members]), h = l(d), g = (x = d == null ? void 0 : d.user) == null ? void 0 : x.image, u = Zt(o), f = async () => {
2295
+ }, [(c = o._client) == null ? void 0 : c.userID, (b = o.state) == null ? void 0 : b.members]), h = l(d), g = (x = d == null ? void 0 : d.user) == null ? void 0 : x.image, u = Kt(o), f = async () => {
2257
2296
  try {
2258
2297
  u ? await o.unpin() : await o.pin();
2259
2298
  } catch (w) {
@@ -2300,7 +2339,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2300
2339
  "aria-label": `View info for ${h}`,
2301
2340
  children: [
2302
2341
  h,
2303
- /* @__PURE__ */ n(We, { className: "size-3 shrink-0" })
2342
+ /* @__PURE__ */ n(qe, { className: "size-3 shrink-0" })
2304
2343
  ]
2305
2344
  }
2306
2345
  ),
@@ -2377,7 +2416,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2377
2416
  "aria-label": `View info for ${h}`,
2378
2417
  children: [
2379
2418
  /* @__PURE__ */ n("span", { className: "truncate", children: h }),
2380
- /* @__PURE__ */ n(We, { className: "size-4 shrink-0" })
2419
+ /* @__PURE__ */ n(qe, { className: "size-4 shrink-0" })
2381
2420
  ]
2382
2421
  }
2383
2422
  ) : /* @__PURE__ */ n("h1", { className: "font-medium text-black/90 truncate", children: h }),
@@ -2420,7 +2459,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2420
2459
  ] })
2421
2460
  ] })
2422
2461
  ] });
2423
- }, ar = ({
2462
+ }, sr = ({
2424
2463
  onBack: e,
2425
2464
  showBackButton: t,
2426
2465
  renderMessageInputActions: s,
@@ -2441,24 +2480,24 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2441
2480
  viewerLanguage: N,
2442
2481
  getParticipantDisplayName: w
2443
2482
  }) => {
2444
- var B, H, U, L, F, G;
2483
+ var B, G, U, L, F, H;
2445
2484
  const { channel: I } = me(), S = Z(null), T = $.useMemo(() => {
2446
2485
  var p, k;
2447
2486
  const _ = (p = I._client) == null ? void 0 : p.userID;
2448
2487
  return _ ? Object.values(((k = I.state) == null ? void 0 : k.members) || {}).find(
2449
2488
  (Y) => {
2450
- var q;
2451
- return ((q = Y.user) == null ? void 0 : q.id) && Y.user.id !== _;
2489
+ var W;
2490
+ return ((W = Y.user) == null ? void 0 : W.id) && Y.user.id !== _;
2452
2491
  }
2453
2492
  ) : void 0;
2454
- }, [(B = I._client) == null ? void 0 : B.userID, (H = I.state) == null ? void 0 : H.members]), D = $.useMemo(() => {
2493
+ }, [(B = I._client) == null ? void 0 : B.userID, (G = I.state) == null ? void 0 : G.members]), D = $.useMemo(() => {
2455
2494
  var p, k;
2456
2495
  const _ = (p = I._client) == null ? void 0 : p.userID;
2457
2496
  return _ ? Object.values(((k = I.state) == null ? void 0 : k.members) || {}).find((Y) => {
2458
- var q;
2459
- return ((q = Y.user) == null ? void 0 : q.id) === _;
2497
+ var W;
2498
+ return ((W = Y.user) == null ? void 0 : W.id) === _;
2460
2499
  }) : void 0;
2461
- }, [(U = I._client) == null ? void 0 : U.userID, (L = I.state) == null ? void 0 : L.members]), A = ((F = D == null ? void 0 : D.user) == null ? void 0 : F.is_account) ?? (D == null ? void 0 : D.is_account), O = ((G = T == null ? void 0 : T.user) == null ? void 0 : G.is_account) ?? (T == null ? void 0 : T.is_account), E = v && A === !1 && O === !0, R = $.useMemo(() => {
2500
+ }, [(U = I._client) == null ? void 0 : U.userID, (L = I.state) == null ? void 0 : L.members]), A = ((F = D == null ? void 0 : D.user) == null ? void 0 : F.is_account) ?? (D == null ? void 0 : D.is_account), O = ((H = T == null ? void 0 : T.user) == null ? void 0 : H.is_account) ?? (T == null ? void 0 : T.is_account), E = v && A === !1 && O === !0, R = $.useMemo(() => {
2462
2501
  const _ = I.data ?? {};
2463
2502
  if (_.followerStatus)
2464
2503
  return String(_.followerStatus);
@@ -2467,12 +2506,12 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2467
2506
  }, [I.data]), P = V(() => {
2468
2507
  var _;
2469
2508
  (_ = S.current) == null || _.showModal();
2470
- }, []), W = V(() => {
2509
+ }, []), q = V(() => {
2471
2510
  var _;
2472
2511
  (_ = S.current) == null || _.close();
2473
2512
  }, []), C = V(
2474
2513
  (_) => {
2475
- const { message: M } = Le("ChannelView"), p = /* @__PURE__ */ n(
2514
+ const { message: M } = xe("ChannelView"), p = /* @__PURE__ */ n(
2476
2515
  Da,
2477
2516
  {
2478
2517
  ..._,
@@ -2490,11 +2529,11 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2490
2529
  {
2491
2530
  overrides: {
2492
2531
  Message: C,
2493
- MessageActions: Oa
2532
+ MessageActions: Fa
2494
2533
  },
2495
2534
  children: /* @__PURE__ */ m(ds, { children: [
2496
2535
  /* @__PURE__ */ n("div", { className: "p-4", children: /* @__PURE__ */ n(
2497
- sr,
2536
+ nr,
2498
2537
  {
2499
2538
  onBack: e,
2500
2539
  showBackButton: t,
@@ -2522,7 +2561,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2522
2561
  ),
2523
2562
  a ? /* @__PURE__ */ n($.Fragment, { children: a(I) }, "lt-channel-conversation-footer") : null,
2524
2563
  /* @__PURE__ */ n(
2525
- Ua,
2564
+ ja,
2526
2565
  {
2527
2566
  renderActions: () => s == null ? void 0 : s(I)
2528
2567
  },
@@ -2535,7 +2574,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2535
2574
  Qs,
2536
2575
  {
2537
2576
  dialogRef: S,
2538
- onClose: W,
2577
+ onClose: q,
2539
2578
  participant: T,
2540
2579
  participantDisplayName: w(T),
2541
2580
  channel: I,
@@ -2551,7 +2590,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2551
2590
  }
2552
2591
  )
2553
2592
  ] });
2554
- }, hn = $.memo(
2593
+ }, fn = $.memo(
2555
2594
  ({
2556
2595
  channel: e,
2557
2596
  onBack: t,
@@ -2561,7 +2600,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2561
2600
  onLeaveConversation: i,
2562
2601
  onBlockParticipant: l,
2563
2602
  className: o,
2564
- CustomChannelEmptyState: d = tr,
2603
+ CustomChannelEmptyState: d = er,
2565
2604
  showDeleteConversation: h = !0,
2566
2605
  onDeleteConversationClick: g,
2567
2606
  onBlockParticipantClick: u,
@@ -2584,7 +2623,7 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2584
2623
  (C) => (E == null ? void 0 : E(C)) ?? tt(C == null ? void 0 : C.user),
2585
2624
  [E]
2586
2625
  ), P = V(
2587
- async (C, B, H) => {
2626
+ async (C, B, G) => {
2588
2627
  var M;
2589
2628
  const U = ((M = e.data) == null ? void 0 : M.chatbot_paused) === !0, L = c && !U, F = {
2590
2629
  ...B,
@@ -2595,46 +2634,46 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2595
2634
  ...b
2596
2635
  }
2597
2636
  }
2598
- }, G = {
2599
- ...H,
2637
+ }, H = {
2638
+ ...G,
2600
2639
  ...L && { skip_push: !0 }
2601
- }, _ = await e.sendMessage(F, G);
2640
+ }, _ = await e.sendMessage(F, H);
2602
2641
  return x == null || x(_), _;
2603
2642
  },
2604
2643
  [e, c, b, x]
2605
- ), W = Z(null);
2644
+ ), q = Z(null);
2606
2645
  return X(() => {
2607
2646
  if (!D) return;
2608
- const C = W.current;
2647
+ const C = q.current;
2609
2648
  if (!C) return;
2610
- const B = (H) => {
2611
- const U = H.target, L = U == null ? void 0 : U.closest("a[href]"), F = L == null ? void 0 : L.getAttribute("href");
2649
+ const B = (G) => {
2650
+ const U = G.target, L = U == null ? void 0 : U.closest("a[href]"), F = L == null ? void 0 : L.getAttribute("href");
2612
2651
  if (!F) return;
2613
- const G = L == null ? void 0 : L.closest("[data-message-id]"), _ = G == null ? void 0 : G.getAttribute("data-message-id"), M = _ ? e.state.messages.find((p) => p.id === _) : void 0;
2652
+ const H = L == null ? void 0 : L.closest("[data-message-id]"), _ = H == null ? void 0 : H.getAttribute("data-message-id"), M = _ ? e.state.messages.find((p) => p.id === _) : void 0;
2614
2653
  D(F, M);
2615
2654
  };
2616
2655
  return C.addEventListener("click", B), () => C.removeEventListener("click", B);
2617
2656
  }, [D, e]), /* @__PURE__ */ n(
2618
2657
  "div",
2619
2658
  {
2620
- ref: W,
2659
+ ref: q,
2621
2660
  className: y(
2622
2661
  "messaging-channel-view h-full flex flex-col",
2623
2662
  o
2624
2663
  ),
2625
- children: /* @__PURE__ */ n(mn.Provider, { value: c ?? !1, children: /* @__PURE__ */ n(
2664
+ children: /* @__PURE__ */ n(hn.Provider, { value: c ?? !1, children: /* @__PURE__ */ n(
2626
2665
  ls,
2627
2666
  {
2628
2667
  channel: e,
2629
- MessageSystem: Ka,
2668
+ MessageSystem: Za,
2630
2669
  EmptyStateIndicator: d,
2631
- LoadingIndicator: Me,
2670
+ LoadingIndicator: De,
2632
2671
  DateSeparator: ea,
2633
- TypingIndicator: Qa,
2672
+ TypingIndicator: Ja,
2634
2673
  doSendMessageRequest: P,
2635
2674
  ...A ? { SendButton: A } : {},
2636
2675
  children: /* @__PURE__ */ n(
2637
- ar,
2676
+ sr,
2638
2677
  {
2639
2678
  onBack: t,
2640
2679
  showBackButton: s,
@@ -2664,8 +2703,8 @@ const fe = "size-10 rounded-full bg-[#F1F0EE] hover:bg-[#E5E4E1] flex items-cent
2664
2703
  );
2665
2704
  }
2666
2705
  );
2667
- hn.displayName = "ChannelView";
2668
- const rr = ({ className: e }) => /* @__PURE__ */ m(
2706
+ fn.displayName = "ChannelView";
2707
+ const ar = ({ className: e }) => /* @__PURE__ */ m(
2669
2708
  "svg",
2670
2709
  {
2671
2710
  width: "140",
@@ -2799,17 +2838,17 @@ const rr = ({ className: e }) => /* @__PURE__ */ m(
2799
2838
  ] })
2800
2839
  ]
2801
2840
  }
2802
- ), fn = $.memo(
2841
+ ), gn = $.memo(
2803
2842
  ({ hasChannels: e, channelsLoaded: t }) => /* @__PURE__ */ n("div", { className: "messaging-empty-state flex items-center justify-center h-full p-8 text-balance", children: /* @__PURE__ */ m("div", { className: "flex flex-col items-center max-w-sm text-center", children: [
2804
- /* @__PURE__ */ n(rr, {}),
2843
+ /* @__PURE__ */ n(ar, {}),
2805
2844
  t && !e && /* @__PURE__ */ m("div", { className: "mt-8", children: [
2806
2845
  /* @__PURE__ */ n("h2", { className: "font-medium text-black text-[18px] mb-2", children: "Your inbox is empty" }),
2807
2846
  /* @__PURE__ */ n("p", { className: "text-[#676B5F] text-sm mb-6", children: "Share with your followers to start receiving messages" })
2808
2847
  ] })
2809
2848
  ] }) })
2810
2849
  );
2811
- fn.displayName = "EmptyState";
2812
- const Te = $.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ m("div", { className: "text-center max-w-sm", children: [
2850
+ gn.displayName = "EmptyState";
2851
+ const Ae = $.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ m("div", { className: "text-center max-w-sm", children: [
2813
2852
  /* @__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: "⚠️" }) }),
2814
2853
  /* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
2815
2854
  /* @__PURE__ */ n("p", { className: "text-stone text-sm mb-6", children: e }),
@@ -2823,8 +2862,8 @@ const Te = $.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { clas
2823
2862
  }
2824
2863
  )
2825
2864
  ] }) }));
2826
- Te.displayName = "ErrorState";
2827
- const ki = ({
2865
+ Ae.displayName = "ErrorState";
2866
+ const Ci = ({
2828
2867
  capabilities: e = {},
2829
2868
  className: t,
2830
2869
  renderMessageInputActions: s,
@@ -2855,14 +2894,14 @@ const ki = ({
2855
2894
  sendButton: P
2856
2895
  }) => {
2857
2896
  const {
2858
- service: W,
2897
+ service: q,
2859
2898
  client: C,
2860
2899
  isConnected: B,
2861
- isLoading: H,
2900
+ isLoading: G,
2862
2901
  error: U,
2863
2902
  refreshConnection: L,
2864
2903
  debug: F
2865
- } = Ls(), [G, _] = z(null), [M, p] = z(!1), [k, Y] = z(!1), [q, he] = z(!1), [J, ee] = z(null), { showDeleteConversation: Ce = !0 } = e, ke = $.useMemo(() => {
2904
+ } = Ls(), [H, _] = z(null), [M, p] = z(!1), [k, Y] = z(!1), [W, he] = z(!1), [J, ee] = z(null), { showDeleteConversation: ke = !0 } = e, Ee = $.useMemo(() => {
2866
2905
  const j = C == null ? void 0 : C.userID;
2867
2906
  return {
2868
2907
  ...{
@@ -2923,13 +2962,13 @@ const ki = ({
2923
2962
  "[MessagingShell] Initial conversation loaded:",
2924
2963
  Q[0].id
2925
2964
  );
2926
- else if (l && W) {
2965
+ else if (l && q) {
2927
2966
  F && console.log(
2928
2967
  "[MessagingShell] No conversation found, creating one for:",
2929
2968
  l
2930
2969
  );
2931
2970
  try {
2932
- const ae = await W.startChannelWithParticipant({
2971
+ const ae = await q.startChannelWithParticipant({
2933
2972
  id: l.id,
2934
2973
  name: l.name,
2935
2974
  phone: l.phone
@@ -2963,7 +3002,7 @@ const ki = ({
2963
3002
  l,
2964
3003
  C,
2965
3004
  B,
2966
- W,
3005
+ q,
2967
3006
  F,
2968
3007
  r
2969
3008
  ]);
@@ -2973,25 +3012,25 @@ const ki = ({
2973
3012
  },
2974
3013
  [r]
2975
3014
  ), de = V(() => {
2976
- q || _(null);
2977
- }, [q]), Oe = V(
3015
+ W || _(null);
3016
+ }, [W]), Oe = V(
2978
3017
  async (j) => {
2979
3018
  F && console.log("[MessagingShell] Leaving conversation:", j.id), _(null), he(!1), ce.current = null, await te();
2980
3019
  },
2981
3020
  [te, F]
2982
- ), Ee = V(
3021
+ ), Ie = V(
2983
3022
  async (j) => {
2984
3023
  F && console.log("[MessagingShell] Blocking participant:", j), _(null), he(!1), ce.current = null, await te();
2985
3024
  },
2986
3025
  [te, F]
2987
- ), ue = !!G;
2988
- return H ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(Me, {}) }) : U ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(Te, { message: U, onBack: L }) }) : !B || !C ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(
2989
- Te,
3026
+ ), ue = !!H;
3027
+ return G ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(De, {}) }) : U ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(Ae, { message: U, onBack: L }) }) : !B || !C ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(
3028
+ Ae,
2990
3029
  {
2991
3030
  message: "Not connected to messaging service",
2992
3031
  onBack: L
2993
3032
  }
2994
- ) }) : J ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(Te, { message: J }) }) : /* @__PURE__ */ n(
3033
+ ) }) : J ? /* @__PURE__ */ n("div", { className: y("h-full", t), children: /* @__PURE__ */ n(Ae, { message: J }) }) : /* @__PURE__ */ n(
2995
3034
  "div",
2996
3035
  {
2997
3036
  className: y(
@@ -3005,19 +3044,19 @@ const ki = ({
3005
3044
  className: y(
3006
3045
  "messaging-channel-list-sidebar min-h-0 min-w-0 lg:flex lg:flex-col",
3007
3046
  {
3008
- "!hidden": d === !1 || q,
3047
+ "!hidden": d === !1 || W,
3009
3048
  // Hide on mobile when channel selected, show on desktop with consistent wide width
3010
- "hidden lg:flex lg:flex-1 lg:max-w-2xl": d !== !1 && !q && ue,
3049
+ "hidden lg:flex lg:flex-1 lg:max-w-2xl": d !== !1 && !W && ue,
3011
3050
  // Show on mobile when no channel selected, use same wide width on desktop
3012
- "flex flex-col w-full lg:flex-1 lg:max-w-2xl": d !== !1 && !q && !ue
3051
+ "flex flex-col w-full lg:flex-1 lg:max-w-2xl": d !== !1 && !W && !ue
3013
3052
  }
3014
3053
  ),
3015
3054
  children: /* @__PURE__ */ n(
3016
- en,
3055
+ tn,
3017
3056
  {
3018
3057
  onChannelSelect: se,
3019
- selectedChannel: G || void 0,
3020
- filters: ke,
3058
+ selectedChannel: H || void 0,
3059
+ filters: Ee,
3021
3060
  channelRenderFilterFn: g,
3022
3061
  customEmptyStateIndicator: u,
3023
3062
  renderMessagePreview: T,
@@ -3033,24 +3072,24 @@ const ki = ({
3033
3072
  "messaging-conversation-view flex-1 flex-col min-w-0 min-h-0",
3034
3073
  {
3035
3074
  // In direct conversation mode (or waiting for it), always show (full width)
3036
- flex: q || ue || i,
3075
+ flex: W || ue || i,
3037
3076
  // Normal mode: hide on mobile when no channel selected
3038
- "hidden lg:flex": !q && !ue && !i
3077
+ "hidden lg:flex": !W && !ue && !i
3039
3078
  }
3040
3079
  ),
3041
- children: G ? /* @__PURE__ */ n("div", { className: "flex-1 min-h-0 flex flex-col", children: /* @__PURE__ */ n(
3042
- hn,
3080
+ children: H ? /* @__PURE__ */ n("div", { className: "flex-1 min-h-0 flex flex-col", children: /* @__PURE__ */ n(
3081
+ fn,
3043
3082
  {
3044
- channel: G,
3083
+ channel: H,
3045
3084
  onBack: de,
3046
- showBackButton: !q,
3085
+ showBackButton: !W,
3047
3086
  renderMessageInputActions: s,
3048
3087
  renderConversationFooter: a,
3049
3088
  renderChannelBanner: D,
3050
3089
  onLeaveConversation: Oe,
3051
- onBlockParticipant: Ee,
3090
+ onBlockParticipant: Ie,
3052
3091
  CustomChannelEmptyState: o,
3053
- showDeleteConversation: Ce,
3092
+ showDeleteConversation: ke,
3054
3093
  onDeleteConversationClick: f,
3055
3094
  onBlockParticipantClick: c,
3056
3095
  onReportParticipantClick: b,
@@ -3066,12 +3105,12 @@ const ki = ({
3066
3105
  onMessageLinkClick: R,
3067
3106
  sendButton: P
3068
3107
  },
3069
- G.id
3108
+ H.id
3070
3109
  ) }) : i ? (
3071
3110
  // Show loading while creating/loading direct conversation channel
3072
- /* @__PURE__ */ n(Me, {})
3111
+ /* @__PURE__ */ n(De, {})
3073
3112
  ) : /* @__PURE__ */ n(
3074
- fn,
3113
+ gn,
3075
3114
  {
3076
3115
  hasChannels: M,
3077
3116
  channelsLoaded: k
@@ -3082,25 +3121,25 @@ const ki = ({
3082
3121
  ] })
3083
3122
  }
3084
3123
  );
3085
- }, ir = /^([a-z][a-z0-9+.-]*):/i, or = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
3124
+ }, rr = /^([a-z][a-z0-9+.-]*):/i, ir = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
3086
3125
  function ot(e) {
3087
3126
  if (typeof e != "string") return;
3088
3127
  const t = e.trim();
3089
3128
  if (t === "") return;
3090
- const s = ir.exec(t);
3129
+ const s = rr.exec(t);
3091
3130
  if (s) {
3092
3131
  const a = s[1].toLowerCase();
3093
- return or.has(a) ? t : void 0;
3132
+ return ir.has(a) ? t : void 0;
3094
3133
  }
3095
3134
  return t.startsWith("//") || t.startsWith("/") ? t : `https://${t}`;
3096
3135
  }
3097
- const lr = {
3136
+ const or = {
3098
3137
  dark: "bg-white text-[#121110] hover:bg-white/90",
3099
3138
  light: "bg-[#121110] text-white hover:bg-[#2a2928]"
3100
- }, cr = ({ variant: e, cta: t }) => {
3139
+ }, lr = ({ variant: e, cta: t }) => {
3101
3140
  const s = y(
3102
3141
  "mt-2 inline-flex h-10 w-full items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
3103
- lr[e]
3142
+ or[e]
3104
3143
  ), a = ot(t.href);
3105
3144
  return a ? /* @__PURE__ */ n(
3106
3145
  "a",
@@ -3127,10 +3166,10 @@ const lr = {
3127
3166
  children: t.label
3128
3167
  }
3129
3168
  );
3130
- }, dr = {
3169
+ }, cr = {
3131
3170
  dark: "text-white",
3132
3171
  light: "text-black/90"
3133
- }, ur = "text-white/30", mr = {
3172
+ }, dr = "text-white/30", ur = {
3134
3173
  dark: "text-white/55",
3135
3174
  light: "text-black/55"
3136
3175
  }, lt = ({
@@ -3147,10 +3186,10 @@ const lr = {
3147
3186
  if (!g && !u && !c && !b) return null;
3148
3187
  const v = y(
3149
3188
  "truncate text-base font-medium leading-6",
3150
- d && !t ? ur : dr[e]
3189
+ d && !t ? dr : cr[e]
3151
3190
  ), N = y(
3152
3191
  "truncate text-xs leading-4",
3153
- mr[e]
3192
+ ur[e]
3154
3193
  );
3155
3194
  return /* @__PURE__ */ m("div", { className: "px-4 py-3", children: [
3156
3195
  /* @__PURE__ */ m("div", { className: "flex items-end gap-3", children: [
@@ -3166,16 +3205,16 @@ const lr = {
3166
3205
  ] }),
3167
3206
  o && /* @__PURE__ */ n("div", { className: "shrink-0", children: o })
3168
3207
  ] }),
3169
- l && /* @__PURE__ */ n(cr, { variant: e, cta: l })
3208
+ l && /* @__PURE__ */ n(lr, { variant: e, cta: l })
3170
3209
  ] });
3171
- }, hr = y(
3210
+ }, mr = y(
3172
3211
  "relative block w-[280px] select-none overflow-hidden rounded-md",
3173
3212
  // 1px hairline border that sits flush with the card chrome — matches
3174
3213
  // the messaging design system's "small border around link attachments"
3175
3214
  // treatment from the mobile spec. The drop shadow remains for depth.
3176
3215
  "border border-black/[0.08]",
3177
3216
  "shadow-[0_1px_2px_rgba(0,0,0,0.04),0_8px_32px_rgba(0,0,0,0.1)]"
3178
- ), De = ({
3217
+ ), Re = ({
3179
3218
  variant: e,
3180
3219
  children: t,
3181
3220
  href: s,
@@ -3187,7 +3226,7 @@ const lr = {
3187
3226
  "data-testid": d
3188
3227
  }) => {
3189
3228
  const h = s != null || a != null, g = y(
3190
- hr,
3229
+ mr,
3191
3230
  o ?? (e === "dark" ? "bg-[#121110]" : "bg-white"),
3192
3231
  // `focus-ring` is a design-system utility from the component-library
3193
3232
  // tailwind preset — outline-none + a black 2px focus-visible ring
@@ -3235,17 +3274,17 @@ const lr = {
3235
3274
  ]
3236
3275
  }
3237
3276
  );
3238
- }, fr = {
3277
+ }, hr = {
3239
3278
  dark: "bg-white/10",
3240
3279
  light: "bg-black/5"
3241
- }, gr = {
3280
+ }, fr = {
3242
3281
  dark: "size-16 text-white/25",
3243
3282
  light: "size-16 text-black/25"
3244
- }, Fe = (e, t) => !!t && !!e && le(e) === "audio", gn = (e, t) => {
3283
+ }, Fe = (e, t) => !!t && !!e && le(e) === "audio", bn = (e, t) => {
3245
3284
  if (!t || !e) return !1;
3246
3285
  const s = le(e);
3247
3286
  return s === "video" || s === "audio";
3248
- }, ct = "bg-[#F2F3F4]", Re = ({
3287
+ }, ct = "bg-[#F2F3F4]", Le = ({
3249
3288
  variant: e,
3250
3289
  thumbnailUrl: t,
3251
3290
  sourceUrl: s,
@@ -3296,10 +3335,10 @@ const lr = {
3296
3335
  {
3297
3336
  className: y(
3298
3337
  "flex h-full w-full items-center justify-center",
3299
- fr[e]
3338
+ hr[e]
3300
3339
  ),
3301
3340
  children: ge(r, {
3302
- className: gr[e],
3341
+ className: fr[e],
3303
3342
  weight: "regular"
3304
3343
  })
3305
3344
  }
@@ -3309,7 +3348,7 @@ const lr = {
3309
3348
  ]
3310
3349
  }
3311
3350
  );
3312
- }, br = ({
3351
+ }, gr = ({
3313
3352
  title: e,
3314
3353
  placeholderTitle: t,
3315
3354
  description: s,
@@ -3330,7 +3369,7 @@ const lr = {
3330
3369
  onClick: g,
3331
3370
  "aria-label": "Dismiss attachment",
3332
3371
  className: "flex size-6 items-center justify-center rounded-full bg-[#121110] text-white",
3333
- children: /* @__PURE__ */ n(xe, { className: "size-3", weight: "bold" })
3372
+ children: /* @__PURE__ */ n(we, { className: "size-3", weight: "bold" })
3334
3373
  }
3335
3374
  ) : void 0, x = u ? /* @__PURE__ */ n(
3336
3375
  "button",
@@ -3342,9 +3381,9 @@ const lr = {
3342
3381
  children: /* @__PURE__ */ n(Ms, { className: "size-5", weight: "regular" })
3343
3382
  }
3344
3383
  ) : void 0;
3345
- return c ? /* @__PURE__ */ n(De, { variant: "dark", bgClassName: ct, children: /* @__PURE__ */ m("div", { className: "flex items-center gap-2 pr-3", children: [
3384
+ return c ? /* @__PURE__ */ n(Re, { variant: "dark", bgClassName: ct, children: /* @__PURE__ */ m("div", { className: "flex items-center gap-2 pr-3", children: [
3346
3385
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
3347
- Re,
3386
+ Le,
3348
3387
  {
3349
3388
  variant: "dark",
3350
3389
  sourceUrl: l,
@@ -3354,13 +3393,13 @@ const lr = {
3354
3393
  ) }),
3355
3394
  b && /* @__PURE__ */ n("div", { className: "shrink-0", children: b })
3356
3395
  ] }) }) : /* @__PURE__ */ m(
3357
- De,
3396
+ Re,
3358
3397
  {
3359
3398
  variant: "dark",
3360
3399
  topRight: f ? b : void 0,
3361
3400
  children: [
3362
3401
  !f && /* @__PURE__ */ n(
3363
- Re,
3402
+ Le,
3364
3403
  {
3365
3404
  variant: "dark",
3366
3405
  thumbnailUrl: i,
@@ -3386,7 +3425,7 @@ const lr = {
3386
3425
  ]
3387
3426
  }
3388
3427
  );
3389
- }, pr = ({
3428
+ }, br = ({
3390
3429
  title: e,
3391
3430
  description: t,
3392
3431
  url: s,
@@ -3398,7 +3437,7 @@ const lr = {
3398
3437
  cta: d,
3399
3438
  onClick: h
3400
3439
  }) => {
3401
- const g = gn(a, i), u = ot(s), f = d == null && u != null && !g ? u : void 0, c = d == null && !g ? h : void 0, b = Fe(a, i) ? ct : void 0, x = d && h ? {
3440
+ const g = bn(a, i), u = ot(s), f = d == null && u != null && !g ? u : void 0, c = d == null && !g ? h : void 0, b = Fe(a, i) ? ct : void 0, x = d && h ? {
3402
3441
  ...d,
3403
3442
  onClick: () => {
3404
3443
  var v;
@@ -3406,7 +3445,7 @@ const lr = {
3406
3445
  }
3407
3446
  } : d;
3408
3447
  return /* @__PURE__ */ m(
3409
- De,
3448
+ Re,
3410
3449
  {
3411
3450
  variant: "light",
3412
3451
  href: f,
@@ -3416,7 +3455,7 @@ const lr = {
3416
3455
  "data-testid": "link-attachment",
3417
3456
  children: [
3418
3457
  l === "featured" && /* @__PURE__ */ n(
3419
- Re,
3458
+ Le,
3420
3459
  {
3421
3460
  variant: "light",
3422
3461
  thumbnailUrl: r,
@@ -3439,7 +3478,7 @@ const lr = {
3439
3478
  ]
3440
3479
  }
3441
3480
  );
3442
- }, vr = ({
3481
+ }, pr = ({
3443
3482
  title: e,
3444
3483
  placeholderTitle: t,
3445
3484
  description: s,
@@ -3452,9 +3491,9 @@ const lr = {
3452
3491
  cta: h,
3453
3492
  onClick: g
3454
3493
  }) => {
3455
- const u = gn(r, l), f = ot(a), c = h == null && f != null && !u ? f : void 0, b = h == null && !u && c != null ? g : void 0;
3494
+ const u = bn(r, l), f = ot(a), c = h == null && f != null && !u ? f : void 0, b = h == null && !u && c != null ? g : void 0;
3456
3495
  return /* @__PURE__ */ m(
3457
- De,
3496
+ Re,
3458
3497
  {
3459
3498
  variant: "dark",
3460
3499
  href: c,
@@ -3462,7 +3501,7 @@ const lr = {
3462
3501
  bgClassName: Fe(r, l) ? ct : void 0,
3463
3502
  children: [
3464
3503
  o === "featured" && /* @__PURE__ */ n(
3465
- Re,
3504
+ Le,
3466
3505
  {
3467
3506
  variant: "dark",
3468
3507
  thumbnailUrl: i,
@@ -3486,20 +3525,20 @@ const lr = {
3486
3525
  ]
3487
3526
  }
3488
3527
  );
3489
- }, Ei = {
3490
- Composer: br,
3491
- Sent: vr,
3492
- Received: pr
3493
- }, xr = {
3528
+ }, ki = {
3529
+ Composer: gr,
3530
+ Sent: pr,
3531
+ Received: br
3532
+ }, vr = {
3494
3533
  dark: "bg-[#121110]",
3495
3534
  light: "bg-[#e9eaed]"
3496
- }, wr = {
3535
+ }, xr = {
3497
3536
  dark: "text-white",
3498
3537
  light: "text-[#080707]"
3499
- }, Nr = {
3538
+ }, wr = {
3500
3539
  dark: "border-white/[0.08]",
3501
3540
  light: "border-black/[0.08]"
3502
- }, yr = (e) => e === "dark" ? "sender" : "receiver", _r = {
3541
+ }, Nr = (e) => e === "dark" ? "sender" : "receiver", yr = {
3503
3542
  sender: {
3504
3543
  single: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]",
3505
3544
  first: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[4px]",
@@ -3512,7 +3551,7 @@ const lr = {
3512
3551
  middle: "rounded-tl-[4px] rounded-tr-[18px] rounded-bl-[4px] rounded-br-[18px]",
3513
3552
  end: "rounded-tl-[4px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]"
3514
3553
  }
3515
- }, we = ({
3554
+ }, Ne = ({
3516
3555
  variant: e,
3517
3556
  text: t,
3518
3557
  bordered: s = !0,
@@ -3521,7 +3560,7 @@ const lr = {
3521
3560
  children: i,
3522
3561
  "data-testid": l
3523
3562
  }) => {
3524
- const o = t != null && t !== "", d = _r[yr(e)][a];
3563
+ const o = t != null && t !== "", d = yr[Nr(e)][a];
3525
3564
  return /* @__PURE__ */ m(
3526
3565
  "div",
3527
3566
  {
@@ -3536,10 +3575,10 @@ const lr = {
3536
3575
  // as the surrounding `CustomMessage` text bubbles.
3537
3576
  "relative w-[280px] overflow-hidden px-2 py-2",
3538
3577
  d,
3578
+ vr[e],
3539
3579
  xr[e],
3540
- wr[e],
3541
3580
  s && "border",
3542
- s && Nr[e],
3581
+ s && wr[e],
3543
3582
  r
3544
3583
  ),
3545
3584
  children: [
@@ -3564,7 +3603,7 @@ const lr = {
3564
3603
  ]
3565
3604
  }
3566
3605
  );
3567
- }, Ne = ({
3606
+ }, ye = ({
3568
3607
  onClick: e,
3569
3608
  variant: t = "overlay",
3570
3609
  ariaLabel: s = "Dismiss attachment"
@@ -3580,18 +3619,18 @@ const lr = {
3580
3619
  "flex size-6 items-center justify-center rounded-full text-white",
3581
3620
  t === "overlay" ? "bg-[#121110]/85 backdrop-blur" : "bg-white/15 hover:bg-white/25"
3582
3621
  ),
3583
- children: /* @__PURE__ */ n(xe, { className: "size-3", weight: "bold" })
3622
+ children: /* @__PURE__ */ n(we, { className: "size-3", weight: "bold" })
3584
3623
  }
3585
- ), ye = (e) => e === "received" ? "light" : "dark", Ii = ({
3624
+ ), _e = (e) => e === "received" ? "light" : "dark", Ei = ({
3586
3625
  firstOfGroup: e,
3587
3626
  endOfGroup: t,
3588
3627
  groupedByUser: s
3589
- }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", Cr = ({
3628
+ }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", _r = ({
3590
3629
  src: e,
3591
3630
  mimeType: t,
3592
3631
  filename: s,
3593
3632
  items: a
3594
- }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], kr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
3633
+ }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Cr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
3595
3634
  /* @__PURE__ */ n(
3596
3635
  "audio",
3597
3636
  {
@@ -3614,41 +3653,41 @@ const lr = {
3614
3653
  preload: o,
3615
3654
  onDismiss: d
3616
3655
  }) => {
3617
- const h = ye(e), g = e === "composer" && !!d, u = Cr({ src: t, mimeType: s, filename: a, items: r });
3656
+ const h = _e(e), g = e === "composer" && !!d, u = _r({ src: t, mimeType: s, filename: a, items: r });
3618
3657
  if (u.length === 0)
3619
3658
  return null;
3620
3659
  const f = o ?? (u.length > 1 ? "none" : "metadata");
3621
3660
  return /* @__PURE__ */ n(
3622
- we,
3661
+ Ne,
3623
3662
  {
3624
3663
  variant: h,
3625
3664
  text: i,
3626
3665
  groupPosition: l,
3627
3666
  "data-testid": "audio-attachment",
3628
3667
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((c, b) => /* @__PURE__ */ n(
3629
- kr,
3668
+ Cr,
3630
3669
  {
3631
3670
  item: c,
3632
3671
  preload: f,
3633
3672
  trailingAction: (
3634
3673
  // Composer only supports a single attachment, so the
3635
3674
  // dismiss control sits on the only player.
3636
- g && b === 0 ? /* @__PURE__ */ n(Ne, { onClick: d, variant: "inline" }) : void 0
3675
+ g && b === 0 ? /* @__PURE__ */ n(ye, { onClick: d, variant: "inline" }) : void 0
3637
3676
  )
3638
3677
  },
3639
3678
  `${c.src}-${b}`
3640
3679
  )) })
3641
3680
  }
3642
3681
  );
3643
- }, Er = (e) => /* @__PURE__ */ n(dt, { ...e, state: "composer" }), Ir = (e) => /* @__PURE__ */ n(dt, { ...e, state: "sent" }), Sr = (e) => /* @__PURE__ */ n(dt, { ...e, state: "received" }), Tr = {
3644
- Composer: Er,
3645
- Sent: Ir,
3646
- Received: Sr
3682
+ }, kr = (e) => /* @__PURE__ */ n(dt, { ...e, state: "composer" }), Er = (e) => /* @__PURE__ */ n(dt, { ...e, state: "sent" }), Ir = (e) => /* @__PURE__ */ n(dt, { ...e, state: "received" }), Sr = {
3683
+ Composer: kr,
3684
+ Sent: Er,
3685
+ Received: Ir
3647
3686
  };
3648
- function Ar(e) {
3687
+ function Tr(e) {
3649
3688
  return !Number.isFinite(e) || e < 0 ? "" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(2)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(2)} GB`;
3650
3689
  }
3651
- const Mr = {
3690
+ const Ar = {
3652
3691
  pdf: "PDF",
3653
3692
  doc: "DOC",
3654
3693
  xls: "XLS",
@@ -3658,7 +3697,7 @@ const Mr = {
3658
3697
  text: "TXT",
3659
3698
  markdown: "MD"
3660
3699
  };
3661
- function Dr(e, t) {
3700
+ function Mr(e, t) {
3662
3701
  if (t) {
3663
3702
  const r = t.lastIndexOf(".");
3664
3703
  if (r > 0 && r < t.length - 1) {
@@ -3668,7 +3707,7 @@ function Dr(e, t) {
3668
3707
  }
3669
3708
  if (!e) return;
3670
3709
  if (le(e) === "document") {
3671
- const r = sn(e), i = Mr[r];
3710
+ const r = an(e), i = Ar[r];
3672
3711
  if (i) return i;
3673
3712
  if (e === "application/octet-stream") return;
3674
3713
  }
@@ -3676,8 +3715,8 @@ function Dr(e, t) {
3676
3715
  if (!(!a || a === "*"))
3677
3716
  return a.toUpperCase();
3678
3717
  }
3679
- function Rr(e, t, s) {
3680
- const a = Dr(e, t), r = typeof s == "number" && s > 0 ? Ar(s) : void 0;
3718
+ function Dr(e, t, s) {
3719
+ const a = Mr(e, t), r = typeof s == "number" && s > 0 ? Tr(s) : void 0;
3681
3720
  return [a, r].filter(Boolean).join(" · ") || void 0;
3682
3721
  }
3683
3722
  function ne(e) {
@@ -3688,16 +3727,16 @@ function ne(e) {
3688
3727
  return "download";
3689
3728
  }
3690
3729
  }
3691
- const Lr = {
3730
+ const Rr = {
3692
3731
  dark: "text-white/55",
3693
3732
  light: "text-black/65"
3694
- }, Fr = {
3733
+ }, Lr = {
3695
3734
  dark: "bg-white/10",
3696
3735
  light: "bg-black/5"
3697
- }, Or = {
3736
+ }, Fr = {
3698
3737
  dark: "text-white/85",
3699
3738
  light: "text-black/85"
3700
- }, bn = ({
3739
+ }, pn = ({
3701
3740
  variant: e,
3702
3741
  filename: t,
3703
3742
  title: s,
@@ -3707,16 +3746,16 @@ const Lr = {
3707
3746
  activateLabel: l,
3708
3747
  trailingAction: o
3709
3748
  }) => {
3710
- const d = s ?? t ?? "File", h = Rr(a, t, r), g = /* @__PURE__ */ n(
3749
+ const d = s ?? t ?? "File", h = Dr(a, t, r), g = /* @__PURE__ */ n(
3711
3750
  "div",
3712
3751
  {
3713
3752
  className: y(
3714
3753
  "flex size-10 shrink-0 items-center justify-center rounded-sm",
3715
- Fr[e]
3754
+ Lr[e]
3716
3755
  ),
3717
3756
  "aria-hidden": !0,
3718
3757
  children: ge(a, {
3719
- className: y("size-6", Or[e]),
3758
+ className: y("size-6", Fr[e]),
3720
3759
  weight: "regular"
3721
3760
  })
3722
3761
  }
@@ -3727,7 +3766,7 @@ const Lr = {
3727
3766
  {
3728
3767
  className: y(
3729
3768
  "truncate text-xs leading-4",
3730
- Lr[e]
3769
+ Rr[e]
3731
3770
  ),
3732
3771
  children: h
3733
3772
  }
@@ -3756,7 +3795,7 @@ const Lr = {
3756
3795
  o ? /* @__PURE__ */ n("div", { className: "shrink-0", children: o }) : null
3757
3796
  ] });
3758
3797
  };
3759
- async function pn(e, t) {
3798
+ async function vn(e, t) {
3760
3799
  const s = t ?? ne(e);
3761
3800
  try {
3762
3801
  const a = await fetch(e, { mode: "cors" });
@@ -3770,14 +3809,14 @@ async function pn(e, t) {
3770
3809
  }
3771
3810
  }
3772
3811
  }
3773
- const zr = ({
3812
+ const Or = ({
3774
3813
  src: e,
3775
3814
  filename: t,
3776
3815
  fileSize: s,
3777
3816
  mimeType: a,
3778
3817
  title: r,
3779
3818
  items: i
3780
- }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], Pr = ({
3819
+ }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], zr = ({
3781
3820
  variant: e,
3782
3821
  item: t,
3783
3822
  index: s,
@@ -3786,7 +3825,7 @@ const zr = ({
3786
3825
  }) => {
3787
3826
  const i = t.filename ?? ne(t.src);
3788
3827
  return /* @__PURE__ */ n(
3789
- bn,
3828
+ pn,
3790
3829
  {
3791
3830
  variant: e,
3792
3831
  filename: i,
@@ -3811,7 +3850,7 @@ const zr = ({
3811
3850
  onClick: h,
3812
3851
  onDismiss: g
3813
3852
  }) => {
3814
- const u = ye(e), f = e === "composer" && !!g, c = zr({
3853
+ const u = _e(e), f = e === "composer" && !!g, c = Or({
3815
3854
  src: t,
3816
3855
  filename: s,
3817
3856
  fileSize: a,
@@ -3823,7 +3862,7 @@ const zr = ({
3823
3862
  const N = c[v];
3824
3863
  if (!N) return;
3825
3864
  const w = N.filename ?? ne(N.src);
3826
- pn(N.src, w);
3865
+ vn(N.src, w);
3827
3866
  };
3828
3867
  if (c.length === 0)
3829
3868
  return null;
@@ -3839,29 +3878,29 @@ const zr = ({
3839
3878
  }
3840
3879
  );
3841
3880
  return /* @__PURE__ */ n(
3842
- we,
3881
+ Ne,
3843
3882
  {
3844
3883
  variant: u,
3845
3884
  text: o,
3846
3885
  groupPosition: d,
3847
3886
  "data-testid": "file-attachment",
3848
3887
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: c.map((v, N) => /* @__PURE__ */ n(
3849
- Pr,
3888
+ zr,
3850
3889
  {
3851
3890
  variant: u,
3852
3891
  item: v,
3853
3892
  index: N,
3854
3893
  onActivate: b,
3855
- trailingAction: f && N === 0 ? /* @__PURE__ */ n(Ne, { onClick: g, variant: "inline" }) : x
3894
+ trailingAction: f && N === 0 ? /* @__PURE__ */ n(ye, { onClick: g, variant: "inline" }) : x
3856
3895
  },
3857
3896
  `${v.src}-${N}`
3858
3897
  )) })
3859
3898
  }
3860
3899
  );
3861
- }, Br = (e) => /* @__PURE__ */ n(ut, { ...e, state: "composer" }), $r = (e) => /* @__PURE__ */ n(ut, { ...e, state: "sent" }), jr = (e) => /* @__PURE__ */ n(ut, { ...e, state: "received" }), Ur = {
3862
- Composer: Br,
3863
- Sent: $r,
3864
- Received: jr
3900
+ }, Pr = (e) => /* @__PURE__ */ n(ut, { ...e, state: "composer" }), Br = (e) => /* @__PURE__ */ n(ut, { ...e, state: "sent" }), $r = (e) => /* @__PURE__ */ n(ut, { ...e, state: "received" }), jr = {
3901
+ Composer: Pr,
3902
+ Sent: Br,
3903
+ Received: $r
3865
3904
  }, mt = ({
3866
3905
  onPrev: e,
3867
3906
  onNext: t,
@@ -3885,10 +3924,10 @@ const zr = ({
3885
3924
  onClick: t,
3886
3925
  "aria-label": a,
3887
3926
  className: "mes-media-viewer__nav mes-media-viewer__nav--next",
3888
- children: /* @__PURE__ */ n(We, { size: 20, weight: "bold", "aria-hidden": !0 })
3927
+ children: /* @__PURE__ */ n(qe, { size: 20, weight: "bold", "aria-hidden": !0 })
3889
3928
  }
3890
3929
  )
3891
- ] }), vn = ({
3930
+ ] }), xn = ({
3892
3931
  url: e,
3893
3932
  filename: t,
3894
3933
  variant: s = "pill",
@@ -3899,7 +3938,7 @@ const zr = ({
3899
3938
  }) => {
3900
3939
  const [o, d] = z(!1), h = V(
3901
3940
  (c) => {
3902
- c.stopPropagation(), !o && (d(!0), pn(e, t).catch(() => {
3941
+ c.stopPropagation(), !o && (d(!0), vn(e, t).catch(() => {
3903
3942
  }).finally(() => {
3904
3943
  d(!1), l == null || l();
3905
3944
  }));
@@ -4079,7 +4118,7 @@ const zr = ({
4079
4118
  onClick: t,
4080
4119
  "aria-label": "Close viewer",
4081
4120
  className: "mes-media-viewer__action",
4082
- children: /* @__PURE__ */ n(xe, { size: 20, weight: "bold", "aria-hidden": !0 })
4121
+ children: /* @__PURE__ */ n(we, { size: 20, weight: "bold", "aria-hidden": !0 })
4083
4122
  }
4084
4123
  )
4085
4124
  ] })
@@ -4088,7 +4127,7 @@ const zr = ({
4088
4127
  ]
4089
4128
  }
4090
4129
  );
4091
- }, xn = ({
4130
+ }, wn = ({
4092
4131
  open: e,
4093
4132
  items: t,
4094
4133
  initialIndex: s = 0,
@@ -4110,7 +4149,7 @@ const zr = ({
4110
4149
  ariaLabel: d,
4111
4150
  counter: t.length > 1 ? `${r + 1} / ${t.length}` : void 0,
4112
4151
  actions: /* @__PURE__ */ n(
4113
- vn,
4152
+ xn,
4114
4153
  {
4115
4154
  url: o.src,
4116
4155
  filename: d,
@@ -4144,7 +4183,7 @@ const zr = ({
4144
4183
  ]
4145
4184
  }
4146
4185
  ) : null;
4147
- }, Vr = "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", wn = ({
4186
+ }, Ur = "relative block size-full overflow-hidden bg-black/5 outline-none focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-black", Nn = ({
4148
4187
  tiles: e,
4149
4188
  onTileActivate: t,
4150
4189
  maxVisible: s = 4,
@@ -4153,7 +4192,7 @@ const zr = ({
4153
4192
  const r = e.length;
4154
4193
  if (r === 0) return null;
4155
4194
  const i = e.slice(0, Math.min(r, s)), l = r - i.length, o = (d, h, g) => {
4156
- const u = y(Vr, "h-full w-full");
4195
+ const u = y(Ur, "h-full w-full");
4157
4196
  return t ? /* @__PURE__ */ m(
4158
4197
  "button",
4159
4198
  {
@@ -4214,7 +4253,7 @@ const zr = ({
4214
4253
  })
4215
4254
  }
4216
4255
  );
4217
- }, _e = (e) => {
4256
+ }, Ce = (e) => {
4218
4257
  const [t, s] = z(!1), [a, r] = z(0), i = V(
4219
4258
  (o) => {
4220
4259
  (e == null ? void 0 : e(o)) !== !1 && (r(o), s(!0));
@@ -4222,7 +4261,7 @@ const zr = ({
4222
4261
  [e]
4223
4262
  ), l = V(() => s(!1), []);
4224
4263
  return { viewerOpen: t, viewerIndex: a, handleActivate: i, closeViewer: l };
4225
- }, Gr = (e, t, s, a) => ({
4264
+ }, Vr = (e, t, s, a) => ({
4226
4265
  ariaLabel: `Open image ${t + 1} of ${s}`,
4227
4266
  content: /* @__PURE__ */ n(
4228
4267
  "img",
@@ -4237,16 +4276,16 @@ const zr = ({
4237
4276
  className: "absolute inset-0 size-full rounded-md object-cover"
4238
4277
  }
4239
4278
  )
4240
- }), Hr = ({
4279
+ }), Gr = ({
4241
4280
  src: e,
4242
4281
  alt: t,
4243
4282
  items: s
4244
- }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], Nn = (e, t) => e.map((s, a) => ({
4283
+ }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], yn = (e, t) => e.map((s, a) => ({
4245
4284
  src: s.src,
4246
4285
  alt: s.alt,
4247
4286
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
4248
- })), Yr = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
4249
- const { viewerOpen: l, viewerIndex: o, handleActivate: d, closeViewer: h } = _e(
4287
+ })), Hr = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
4288
+ const { viewerOpen: l, viewerIndex: o, handleActivate: d, closeViewer: h } = Ce(
4250
4289
  r
4251
4290
  );
4252
4291
  return /* @__PURE__ */ m("div", { className: "relative w-fit", children: [
@@ -4270,18 +4309,18 @@ const zr = ({
4270
4309
  )
4271
4310
  }
4272
4311
  ),
4273
- i ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(Ne, { onClick: i }) }) : null,
4312
+ i ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(ye, { onClick: i }) }) : null,
4274
4313
  /* @__PURE__ */ n(
4275
- xn,
4314
+ wn,
4276
4315
  {
4277
4316
  open: l,
4278
- items: Nn([{ src: e, alt: t }], s),
4317
+ items: yn([{ src: e, alt: t }], s),
4279
4318
  initialIndex: o,
4280
4319
  onClose: h
4281
4320
  }
4282
4321
  )
4283
4322
  ] });
4284
- }, yn = ({
4323
+ }, _n = ({
4285
4324
  state: e,
4286
4325
  src: t,
4287
4326
  alt: s,
@@ -4292,28 +4331,28 @@ const zr = ({
4292
4331
  loading: o = "lazy",
4293
4332
  onClick: d
4294
4333
  }) => {
4295
- const h = Hr({ src: t, alt: s, items: r }), g = ye(e), { viewerOpen: u, viewerIndex: f, handleActivate: c, closeViewer: b } = _e(
4334
+ const h = Gr({ src: t, alt: s, items: r }), g = _e(e), { viewerOpen: u, viewerIndex: f, handleActivate: c, closeViewer: b } = Ce(
4296
4335
  d
4297
4336
  );
4298
4337
  if (h.length === 0)
4299
4338
  return null;
4300
4339
  const x = h.map(
4301
- (v, N) => Gr(v, N, h.length, o)
4340
+ (v, N) => Vr(v, N, h.length, o)
4302
4341
  );
4303
4342
  return /* @__PURE__ */ m(
4304
- we,
4343
+ Ne,
4305
4344
  {
4306
4345
  variant: g,
4307
4346
  text: i,
4308
4347
  groupPosition: l,
4309
4348
  "data-testid": "image-attachment",
4310
4349
  children: [
4311
- /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(wn, { tiles: x, onTileActivate: c }) }),
4350
+ /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(Nn, { tiles: x, onTileActivate: c }) }),
4312
4351
  /* @__PURE__ */ n(
4313
- xn,
4352
+ wn,
4314
4353
  {
4315
4354
  open: u,
4316
- items: Nn(h, a),
4355
+ items: yn(h, a),
4317
4356
  initialIndex: f,
4318
4357
  onClose: b
4319
4358
  }
@@ -4321,11 +4360,11 @@ const zr = ({
4321
4360
  ]
4322
4361
  }
4323
4362
  );
4324
- }, Wr = (e) => /* @__PURE__ */ n(Yr, { ...e }), qr = (e) => /* @__PURE__ */ n(yn, { ...e, state: "sent" }), Xr = (e) => /* @__PURE__ */ n(yn, { ...e, state: "received" }), Zr = {
4325
- Composer: Wr,
4363
+ }, Yr = (e) => /* @__PURE__ */ n(Hr, { ...e }), qr = (e) => /* @__PURE__ */ n(_n, { ...e, state: "sent" }), Wr = (e) => /* @__PURE__ */ n(_n, { ...e, state: "received" }), Xr = {
4364
+ Composer: Yr,
4326
4365
  Sent: qr,
4327
- Received: Xr
4328
- }, Kr = ({
4366
+ Received: Wr
4367
+ }, Zr = ({
4329
4368
  open: e,
4330
4369
  items: t,
4331
4370
  initialIndex: s = 0,
@@ -4339,7 +4378,7 @@ const zr = ({
4339
4378
  () => (o == null ? void 0 : o.filename) ?? (o ? ne(o.src) : "document"),
4340
4379
  [o]
4341
4380
  ), h = re(
4342
- () => o ? Jr(o.src) : void 0,
4381
+ () => o ? Kr(o.src) : void 0,
4343
4382
  [o]
4344
4383
  );
4345
4384
  return !o || !h ? null : /* @__PURE__ */ m(
@@ -4373,16 +4412,16 @@ const zr = ({
4373
4412
  ]
4374
4413
  }
4375
4414
  );
4376
- }, Jr = (e) => {
4415
+ }, Kr = (e) => {
4377
4416
  const t = e.indexOf("#"), s = t === -1 ? e : e.slice(0, t), a = t === -1 ? "" : e.slice(t + 1), r = new URLSearchParams(a);
4378
4417
  return r.has("toolbar") || r.set("toolbar", "0"), r.has("navpanes") || r.set("navpanes", "0"), `${s}#${r.toString()}`;
4379
- }, Qr = ({
4418
+ }, Jr = ({
4380
4419
  src: e,
4381
4420
  filename: t,
4382
4421
  fileSize: s,
4383
4422
  title: a,
4384
4423
  items: r
4385
- }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], ei = ({
4424
+ }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], Qr = ({
4386
4425
  variant: e,
4387
4426
  item: t,
4388
4427
  index: s,
@@ -4391,7 +4430,7 @@ const zr = ({
4391
4430
  }) => {
4392
4431
  const i = t.filename ?? ne(t.src);
4393
4432
  return /* @__PURE__ */ n(
4394
- bn,
4433
+ pn,
4395
4434
  {
4396
4435
  variant: e,
4397
4436
  filename: i,
@@ -4415,7 +4454,7 @@ const zr = ({
4415
4454
  onClick: d,
4416
4455
  onDismiss: h
4417
4456
  }) => {
4418
- const g = ye(e), u = Qr({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: x } = _e(
4457
+ const g = _e(e), u = Jr({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: x } = Ce(
4419
4458
  d
4420
4459
  ), v = e === "composer" && !!h;
4421
4460
  if (u.length === 0)
@@ -4425,7 +4464,7 @@ const zr = ({
4425
4464
  filename: w.filename ?? ne(w.src)
4426
4465
  }));
4427
4466
  return /* @__PURE__ */ m(
4428
- we,
4467
+ Ne,
4429
4468
  {
4430
4469
  variant: g,
4431
4470
  text: l,
@@ -4433,8 +4472,8 @@ const zr = ({
4433
4472
  "data-testid": "pdf-attachment",
4434
4473
  children: [
4435
4474
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: u.map((w, I) => {
4436
- const S = w.filename ?? ne(w.src), T = v && I === 0 ? /* @__PURE__ */ n(Ne, { onClick: h, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4437
- vn,
4475
+ const S = w.filename ?? ne(w.src), T = v && I === 0 ? /* @__PURE__ */ n(ye, { onClick: h, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
4476
+ xn,
4438
4477
  {
4439
4478
  url: w.src,
4440
4479
  filename: S,
@@ -4444,7 +4483,7 @@ const zr = ({
4444
4483
  }
4445
4484
  );
4446
4485
  return /* @__PURE__ */ n(
4447
- ei,
4486
+ Qr,
4448
4487
  {
4449
4488
  variant: g,
4450
4489
  item: w,
@@ -4456,7 +4495,7 @@ const zr = ({
4456
4495
  );
4457
4496
  }) }),
4458
4497
  /* @__PURE__ */ n(
4459
- Kr,
4498
+ Zr,
4460
4499
  {
4461
4500
  open: f,
4462
4501
  items: N,
@@ -4467,11 +4506,11 @@ const zr = ({
4467
4506
  ]
4468
4507
  }
4469
4508
  );
4470
- }, ti = (e) => /* @__PURE__ */ n(gt, { ...e, state: "composer" }), ni = (e) => /* @__PURE__ */ n(gt, { ...e, state: "sent" }), si = (e) => /* @__PURE__ */ n(gt, { ...e, state: "received" }), ai = {
4471
- Composer: ti,
4472
- Sent: ni,
4473
- Received: si
4474
- }, _n = ({
4509
+ }, ei = (e) => /* @__PURE__ */ n(gt, { ...e, state: "composer" }), ti = (e) => /* @__PURE__ */ n(gt, { ...e, state: "sent" }), ni = (e) => /* @__PURE__ */ n(gt, { ...e, state: "received" }), si = {
4510
+ Composer: ei,
4511
+ Sent: ti,
4512
+ Received: ni
4513
+ }, Cn = ({
4475
4514
  open: e,
4476
4515
  items: t,
4477
4516
  initialIndex: s = 0,
@@ -4521,7 +4560,7 @@ const zr = ({
4521
4560
  ]
4522
4561
  }
4523
4562
  ) : null;
4524
- }, ri = () => /* @__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(He, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), Cn = ({
4563
+ }, ai = () => /* @__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(He, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), kn = ({
4525
4564
  item: e,
4526
4565
  index: t
4527
4566
  }) => /* @__PURE__ */ m("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -4536,31 +4575,31 @@ const zr = ({
4536
4575
  className: "absolute inset-0 size-full rounded-md object-cover"
4537
4576
  }
4538
4577
  ) : /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n(
4539
- Yt,
4578
+ qt,
4540
4579
  {
4541
4580
  className: "size-16 rounded-md text-white/30",
4542
4581
  weight: "regular",
4543
4582
  "aria-hidden": !0
4544
4583
  }
4545
4584
  ) }),
4546
- /* @__PURE__ */ n(ri, {})
4547
- ] }), ii = (e, t, s) => ({
4585
+ /* @__PURE__ */ n(ai, {})
4586
+ ] }), ri = (e, t, s) => ({
4548
4587
  ariaLabel: `Play video ${t + 1} of ${s}`,
4549
- content: /* @__PURE__ */ n(Cn, { item: e, index: t })
4550
- }), oi = ({
4588
+ content: /* @__PURE__ */ n(kn, { item: e, index: t })
4589
+ }), ii = ({
4551
4590
  src: e,
4552
4591
  poster: t,
4553
4592
  mimeType: s,
4554
4593
  preload: a,
4555
4594
  items: r
4556
- }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: s, preload: a }] : [], kn = (e, t) => e.map((s, a) => ({
4595
+ }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: s, preload: a }] : [], En = (e, t) => e.map((s, a) => ({
4557
4596
  src: s.src,
4558
4597
  poster: s.poster,
4559
4598
  mimeType: s.mimeType,
4560
4599
  preload: s.preload,
4561
4600
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
4562
- })), li = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: l }) => {
4563
- const { viewerOpen: o, viewerIndex: d, handleActivate: h, closeViewer: g } = _e(
4601
+ })), oi = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: l }) => {
4602
+ const { viewerOpen: o, viewerIndex: d, handleActivate: h, closeViewer: g } = Ce(
4564
4603
  i
4565
4604
  );
4566
4605
  return /* @__PURE__ */ m("div", { className: "relative w-fit", children: [
@@ -4571,15 +4610,15 @@ const zr = ({
4571
4610
  onClick: () => h(0),
4572
4611
  "aria-label": "Play video",
4573
4612
  className: "relative block size-[280px] cursor-pointer overflow-hidden rounded-md outline-none focus-visible:ring-2 focus-visible:ring-black/40",
4574
- children: /* @__PURE__ */ n(Cn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4613
+ children: /* @__PURE__ */ n(kn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
4575
4614
  }
4576
4615
  ),
4577
- l ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(Ne, { onClick: l }) }) : null,
4616
+ l ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(ye, { onClick: l }) }) : null,
4578
4617
  /* @__PURE__ */ n(
4579
- _n,
4618
+ Cn,
4580
4619
  {
4581
4620
  open: o,
4582
- items: kn(
4621
+ items: En(
4583
4622
  [{ src: e, poster: t, mimeType: s, preload: r }],
4584
4623
  a
4585
4624
  ),
@@ -4588,7 +4627,7 @@ const zr = ({
4588
4627
  }
4589
4628
  )
4590
4629
  ] });
4591
- }, En = ({
4630
+ }, In = ({
4592
4631
  state: e,
4593
4632
  src: t,
4594
4633
  poster: s,
@@ -4600,16 +4639,16 @@ const zr = ({
4600
4639
  preload: d,
4601
4640
  onClick: h
4602
4641
  }) => {
4603
- const g = oi({ src: t, poster: s, mimeType: a, preload: d, items: i }), u = ye(e), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: x } = _e(
4642
+ const g = ii({ src: t, poster: s, mimeType: a, preload: d, items: i }), u = _e(e), { viewerOpen: f, viewerIndex: c, handleActivate: b, closeViewer: x } = Ce(
4604
4643
  h
4605
4644
  );
4606
4645
  if (g.length === 0)
4607
4646
  return null;
4608
4647
  const v = g.map(
4609
- (N, w) => ii(N, w, g.length)
4648
+ (N, w) => ri(N, w, g.length)
4610
4649
  );
4611
4650
  return /* @__PURE__ */ m(
4612
- we,
4651
+ Ne,
4613
4652
  {
4614
4653
  variant: u,
4615
4654
  text: l,
@@ -4617,7 +4656,7 @@ const zr = ({
4617
4656
  "data-testid": "video-attachment",
4618
4657
  children: [
4619
4658
  /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(
4620
- wn,
4659
+ Nn,
4621
4660
  {
4622
4661
  tiles: v,
4623
4662
  onTileActivate: b,
@@ -4625,10 +4664,10 @@ const zr = ({
4625
4664
  }
4626
4665
  ) }),
4627
4666
  /* @__PURE__ */ n(
4628
- _n,
4667
+ Cn,
4629
4668
  {
4630
4669
  open: f,
4631
- items: kn(g, r),
4670
+ items: En(g, r),
4632
4671
  initialIndex: c,
4633
4672
  onClose: x
4634
4673
  }
@@ -4636,17 +4675,17 @@ const zr = ({
4636
4675
  ]
4637
4676
  }
4638
4677
  );
4639
- }, ci = (e) => /* @__PURE__ */ n(li, { ...e }), di = (e) => /* @__PURE__ */ n(En, { ...e, state: "sent" }), ui = (e) => /* @__PURE__ */ n(En, { ...e, state: "received" }), mi = {
4640
- Composer: ci,
4641
- Sent: di,
4642
- Received: ui
4643
- }, Si = {
4644
- Image: Zr,
4645
- Video: mi,
4646
- Audio: Tr,
4647
- Pdf: ai,
4648
- File: Ur
4649
- }, hi = ({
4678
+ }, li = (e) => /* @__PURE__ */ n(oi, { ...e }), ci = (e) => /* @__PURE__ */ n(In, { ...e, state: "sent" }), di = (e) => /* @__PURE__ */ n(In, { ...e, state: "received" }), ui = {
4679
+ Composer: li,
4680
+ Sent: ci,
4681
+ Received: di
4682
+ }, Ii = {
4683
+ Image: Xr,
4684
+ Video: ui,
4685
+ Audio: Sr,
4686
+ Pdf: si,
4687
+ File: jr
4688
+ }, mi = ({
4650
4689
  question: e,
4651
4690
  onClick: t,
4652
4691
  loading: s = !1,
@@ -4668,7 +4707,7 @@ const zr = ({
4668
4707
  ),
4669
4708
  children: e
4670
4709
  }
4671
- ), Ti = ({
4710
+ ), Si = ({
4672
4711
  faqs: e,
4673
4712
  onFaqClick: t,
4674
4713
  loadingFaqId: s,
@@ -4697,7 +4736,7 @@ const zr = ({
4697
4736
  children: [
4698
4737
  a && /* @__PURE__ */ n("p", { className: "text-md text-charcoal mb-4", children: a }),
4699
4738
  o.map((d) => /* @__PURE__ */ n(
4700
- hi,
4739
+ mi,
4701
4740
  {
4702
4741
  question: d.question,
4703
4742
  onClick: () => t(d.id),
@@ -4711,38 +4750,38 @@ const zr = ({
4711
4750
  ] }) });
4712
4751
  };
4713
4752
  export {
4714
- an as A,
4753
+ rn as A,
4715
4754
  na as B,
4716
- tr as C,
4755
+ er as C,
4717
4756
  Ls as D,
4718
- Ti as F,
4719
- Ei as L,
4720
- _i as M,
4721
- Se as a,
4757
+ Si as F,
4758
+ ki as L,
4759
+ yi as M,
4760
+ Te as a,
4722
4761
  oe as b,
4723
- en as c,
4724
- hn as d,
4725
- Ci as e,
4726
- hi as f,
4762
+ tn as c,
4763
+ fn as d,
4764
+ _i as e,
4765
+ mi as f,
4727
4766
  le as g,
4728
4767
  Bt as h,
4729
- Si as i,
4768
+ Ii as i,
4730
4769
  Ta as j,
4731
- yi as k,
4732
- ki as l,
4733
- Rr as m,
4734
- Ar as n,
4770
+ Ni as k,
4771
+ Ci as l,
4772
+ Dr as m,
4773
+ Tr as n,
4735
4774
  Bs as o,
4736
- Dr as p,
4737
- Kt as q,
4775
+ Mr as p,
4776
+ Jt as q,
4738
4777
  ge as r,
4739
- ln as s,
4778
+ cn as s,
4740
4779
  Us as t,
4741
- Ii as u,
4780
+ Ei as u,
4742
4781
  $s as v,
4743
4782
  rt as w,
4744
4783
  it as x,
4745
4784
  tt as y,
4746
4785
  Sa as z
4747
4786
  };
4748
- //# sourceMappingURL=index-BGwytfkX.js.map
4787
+ //# sourceMappingURL=index-CPa6Qru7.js.map