@linktr.ee/messaging-react 3.13.3 → 3.13.4-rc-1784505930

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.
@@ -1,9 +1,9 @@
1
1
  import { jsx as s, jsxs as u, Fragment as te } from "react/jsx-runtime";
2
- import V, { createContext as dt, useContext as Te, useCallback as Q, useState as B, useRef as G, useEffect as K, useId as qs, useMemo as re, Suspense as Ws } from "react";
2
+ import V, { createContext as dt, useContext as Te, useCallback as Q, useState as B, useRef as G, useEffect as K, useId as Ws, useMemo as re, Suspense as qs } from "react";
3
3
  import { StreamChatService as Xs } from "@linktr.ee/messaging-core";
4
4
  import { StreamChat as Ks, LinkPreviewsManager as Ht } from "stream-chat";
5
- import { Chat as Zs, useChannelStateContext as oe, useChatContext as fe, DateSeparator as Js, MessageStatus as Qs, useMessageContext as Ne, MessageErrorIcon as at, MessageText as $e, areMessageUIPropsEqual as en, useMessageReminder as tn, useComponentContext as cs, Attachment as sn, EditMessageModal as nn, MessageBlocked as an, MessageBouncePrompt as rn, MessageDeleted as ln, MessageIsThreadReplyInChannelButtonIndicator as on, MessageRepliesCountButton as cn, ReminderNotification as dn, StreamedMessageText as un, messageHasAttachments as mn, messageHasReactions as hn, isDateSeparatorMessage as fn, isMessageBlocked as gn, isMessageBounced as pn, MessageBounceModal as bn, Poll as vn, useMessageComposer as xn, useStateStore as wn, MessageInput as qt, useMessageInputContext as _n, useMessageComposerHasSendableData as Nn, AttachmentPreviewList as yn, QuotedMessagePreview as kn, TextareaComposer as Cn, MessageTimestamp as Ke, AIStates as Ze, useTypingContext as Sn, useAIState as En, Channel as In, WithComponents as Tn, Window as Mn, MessageList as Wt, ChannelList as An, InfiniteScroll as Rn } from "stream-chat-react";
6
- import { StarIcon as Ie, DotsThreeIcon as Ln, SpinnerGapIcon as Pe, SignOutIcon as Dn, ProhibitInsetIcon as Xt, FlagIcon as ds, ArrowLeftIcon as rt, CurrencyDollarIcon as zn, CaretRightIcon as xe, SparkleIcon as we, FileIcon as us, ImageIcon as Pn, SpeakerHighIcon as On, VideoCameraIcon as ms, FileMdIcon as Fn, FileTextIcon as $n, FileZipIcon as Un, FilePptIcon as Bn, FileCsvIcon as jn, FileXlsIcon as Vn, FileDocIcon as Gn, FilePdfIcon as Yn, CircleNotchIcon as Se, PlayIcon as it, PauseIcon as Hn, LinkIcon as qn, DownloadSimpleIcon as Ee, XIcon as Ye, CaretLeftIcon as Wn, GiftIcon as Xn, ThumbsUpIcon as Kn, ThumbsDownIcon as Zn, ChecksIcon as Jn, PencilSimpleIcon as Qn, TrashSimpleIcon as ea, ArrowUpIcon as ta, ProhibitIcon as sa } from "@phosphor-icons/react";
5
+ import { Chat as Zs, useChannelStateContext as oe, useChatContext as fe, DateSeparator as Js, MessageStatus as Qs, useMessageContext as Ne, MessageErrorIcon as at, MessageText as $e, areMessageUIPropsEqual as en, useMessageReminder as tn, useComponentContext as cs, Attachment as sn, EditMessageModal as nn, MessageBlocked as an, MessageBouncePrompt as rn, MessageDeleted as ln, MessageIsThreadReplyInChannelButtonIndicator as on, MessageRepliesCountButton as cn, ReminderNotification as dn, StreamedMessageText as un, messageHasAttachments as mn, messageHasReactions as hn, isDateSeparatorMessage as fn, isMessageBlocked as gn, isMessageBounced as pn, MessageBounceModal as bn, Poll as vn, useMessageComposer as xn, useStateStore as wn, MessageInput as Wt, useMessageInputContext as _n, useMessageComposerHasSendableData as Nn, AttachmentPreviewList as yn, QuotedMessagePreview as kn, TextareaComposer as Cn, MessageTimestamp as Ke, AIStates as Ze, useTypingContext as Sn, useAIState as En, Channel as In, WithComponents as Tn, Window as Mn, MessageList as qt, ChannelList as An, InfiniteScroll as Rn } from "stream-chat-react";
6
+ import { StarIcon as Ie, DotsThreeIcon as Ln, SpinnerGapIcon as Pe, SignOutIcon as Dn, ProhibitInsetIcon as Xt, FlagIcon as ds, ArrowLeftIcon as rt, CurrencyDollarIcon as zn, CaretRightIcon as xe, SparkleIcon as we, FileIcon as us, ImageIcon as Pn, SpeakerHighIcon as On, VideoCameraIcon as ms, FileMdIcon as Fn, FileTextIcon as $n, FileZipIcon as Un, FilePptIcon as Bn, FileCsvIcon as jn, FileXlsIcon as Vn, FileDocIcon as Gn, FilePdfIcon as Yn, CircleNotchIcon as Se, PlayIcon as it, PauseIcon as Hn, LinkIcon as Wn, DownloadSimpleIcon as Ee, XIcon as Ye, CaretLeftIcon as qn, GiftIcon as Xn, ThumbsUpIcon as Kn, ThumbsDownIcon as Zn, ChecksIcon as Jn, PencilSimpleIcon as Qn, TrashSimpleIcon as ea, ArrowUpIcon as ta, ProhibitIcon as sa } from "@phosphor-icons/react";
7
7
  import C from "classnames";
8
8
  import { MessageActions as na, DefaultDropdownActionButton as hs } from "stream-chat-react/experimental";
9
9
  const fs = dt({
@@ -16,7 +16,7 @@ const fs = dt({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), ut = () => Te(fs), ml = ({
19
+ }), ut = () => Te(fs), gl = ({
20
20
  children: e,
21
21
  user: t,
22
22
  serviceConfig: n,
@@ -512,7 +512,7 @@ const ne = ({
512
512
  customChannelActions: g,
513
513
  triggerClassName: h
514
514
  }) => {
515
- const [f, c] = B(!1), b = G(null), v = qs(), x = Q(() => c(!1), []), {
515
+ const [f, c] = B(!1), b = G(null), v = Ws(), x = Q(() => c(!1), []), {
516
516
  isParticipantBlocked: p,
517
517
  isCheckingBlockedStatus: _,
518
518
  isLeaving: w,
@@ -1319,7 +1319,7 @@ const gt = ({ attachment: e, isMyMessage: t }) => {
1319
1319
  "div",
1320
1320
  {
1321
1321
  className: `aspect-video w-full rounded-[20px] ${Ra(t)} flex items-center justify-center`,
1322
- children: /* @__PURE__ */ s(qn, { className: `size-12 ${Pa(t)}` })
1322
+ children: /* @__PURE__ */ s(Wn, { className: `size-12 ${Pa(t)}` })
1323
1323
  }
1324
1324
  ) }),
1325
1325
  /* @__PURE__ */ u("div", { className: "px-3 pb-3", children: [
@@ -1502,7 +1502,7 @@ const Ns = ({
1502
1502
  return /* @__PURE__ */ s("div", { className: ft(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ s(gt, { attachment: t, isMyMessage: !1 }) });
1503
1503
  const n = bt(e);
1504
1504
  return n ? /* @__PURE__ */ s("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ s(ys, { ...n }) }) : null;
1505
- }, hl = Object.assign($a, {
1505
+ }, pl = Object.assign($a, {
1506
1506
  Creator: Ua,
1507
1507
  Visitor: Ba
1508
1508
  }), ja = {
@@ -1597,11 +1597,11 @@ const Ns = ({
1597
1597
  ),
1598
1598
  children: /* @__PURE__ */ s(Ye, { className: "size-3", weight: "bold" })
1599
1599
  }
1600
- ), Re = (e) => e === "received" ? "light" : "dark", qa = ({
1600
+ ), Re = (e) => e === "received" ? "light" : "dark", Wa = ({
1601
1601
  firstOfGroup: e,
1602
1602
  endOfGroup: t,
1603
1603
  groupedByUser: n
1604
- }) => !n || e && t ? "single" : e ? "first" : t ? "end" : "middle", Wa = ({
1604
+ }) => !n || e && t ? "single" : e ? "first" : t ? "end" : "middle", qa = ({
1605
1605
  src: e,
1606
1606
  mimeType: t,
1607
1607
  filename: n,
@@ -1629,7 +1629,7 @@ const Ns = ({
1629
1629
  preload: l,
1630
1630
  onDismiss: d
1631
1631
  }) => {
1632
- const m = Re(e), g = e === "composer" && !!d, h = Wa({ src: t, mimeType: n, filename: a, items: r });
1632
+ const m = Re(e), g = e === "composer" && !!d, h = qa({ src: t, mimeType: n, filename: a, items: r });
1633
1633
  if (h.length === 0)
1634
1634
  return null;
1635
1635
  const f = l ?? (h.length > 1 ? "none" : "metadata");
@@ -1890,7 +1890,7 @@ const lr = ({
1890
1890
  onClick: e,
1891
1891
  "aria-label": n,
1892
1892
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
1893
- children: /* @__PURE__ */ s(Wn, { size: 20, weight: "bold", "aria-hidden": !0 })
1893
+ children: /* @__PURE__ */ s(qn, { size: 20, weight: "bold", "aria-hidden": !0 })
1894
1894
  }
1895
1895
  ),
1896
1896
  /* @__PURE__ */ s(
@@ -2665,17 +2665,17 @@ const lr = ({
2665
2665
  isUnlocking: () => !1
2666
2666
  }, Fr = {
2667
2667
  LockedAttachment: Or
2668
- }, zs = dt({}), fl = zs.Provider;
2668
+ }, zs = dt({}), bl = zs.Provider;
2669
2669
  function $r(e) {
2670
2670
  return Te(zs)[e] ?? Fr[e];
2671
2671
  }
2672
- const Ur = V.lazy(() => import("./Card-qS17qnN0.js")), Br = V.lazy(() => import("./Card-DKc9To0f.js")), jr = () => /* @__PURE__ */ s(
2672
+ const Ur = V.lazy(() => import("./Card-qS17qnN0.js")), Br = V.lazy(() => import("./Card-fPhu90tj.js")), jr = () => /* @__PURE__ */ s(
2673
2673
  "div",
2674
2674
  {
2675
2675
  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)]",
2676
2676
  "aria-hidden": !0
2677
2677
  }
2678
- ), Oe = (e) => /* @__PURE__ */ s(Ws, { fallback: /* @__PURE__ */ s(jr, {}), children: e.contentType === "text" ? /* @__PURE__ */ s(Ur, { ...e }) : /* @__PURE__ */ s(Br, { ...e }) }), Vr = ({ size: e = 15 }) => /* @__PURE__ */ s(
2678
+ ), Oe = (e) => /* @__PURE__ */ s(qs, { fallback: /* @__PURE__ */ s(jr, {}), children: e.contentType === "text" ? /* @__PURE__ */ s(Ur, { ...e }) : /* @__PURE__ */ s(Br, { ...e }) }), Vr = ({ size: e = 15 }) => /* @__PURE__ */ s(
2679
2679
  "svg",
2680
2680
  {
2681
2681
  width: e,
@@ -2707,10 +2707,10 @@ const Ur = V.lazy(() => import("./Card-qS17qnN0.js")), Br = V.lazy(() => import(
2707
2707
  }, Hr = (e) => {
2708
2708
  var t;
2709
2709
  return kt(e) && ((t = e.metadata) == null ? void 0 : t.attachment_content_type) === "text";
2710
- }, qr = (e) => {
2710
+ }, Wr = (e) => {
2711
2711
  var t;
2712
2712
  return kt(e) && ((t = e.metadata) == null ? void 0 : t.attachment_content_type) !== "text";
2713
- }, Ps = (e) => Gr(e) || Yr(e), Wr = (e) => {
2713
+ }, Ps = (e) => Gr(e) || Yr(e), qr = (e) => {
2714
2714
  var t;
2715
2715
  return Ps(e) && !((t = e.text) != null && t.trim());
2716
2716
  }, et = ({
@@ -2957,7 +2957,7 @@ const ei = {
2957
2957
  }, li = {
2958
2958
  dark: "size-16 text-white/25",
2959
2959
  light: "size-16 text-black/25"
2960
- }, qe = (e, t) => !!t && !!e && ce(e) === "audio", Et = (e, t) => {
2960
+ }, We = (e, t) => !!t && !!e && ce(e) === "audio", Et = (e, t) => {
2961
2961
  if (!t || !e) return !1;
2962
2962
  const n = ce(e);
2963
2963
  return n === "video" || n === "audio";
@@ -2971,7 +2971,7 @@ const ei = {
2971
2971
  topRight: o
2972
2972
  }) => {
2973
2973
  const l = ce(r), d = !!n && l === "video", m = he(t);
2974
- return qe(r, n) ? /* @__PURE__ */ s("div", { className: "p-3", children: /* @__PURE__ */ s(
2974
+ return We(r, n) ? /* @__PURE__ */ s("div", { className: "p-3", children: /* @__PURE__ */ s(
2975
2975
  "audio",
2976
2976
  {
2977
2977
  src: n,
@@ -3039,7 +3039,7 @@ const ei = {
3039
3039
  onDismiss: g,
3040
3040
  onEditClick: h
3041
3041
  }) => {
3042
- const f = l === "classic", c = qe(r, o), b = g ? /* @__PURE__ */ s(
3042
+ const f = l === "classic", c = We(r, o), b = g ? /* @__PURE__ */ s(
3043
3043
  "button",
3044
3044
  {
3045
3045
  type: "button",
@@ -3114,7 +3114,7 @@ const ei = {
3114
3114
  cta: d,
3115
3115
  onClick: m
3116
3116
  }) => {
3117
- const g = Et(a, i), h = Ct(n), f = d == null && h != null && !g ? h : void 0, c = d == null && !g ? m : void 0, b = qe(a, i) ? It : void 0, v = d && m ? {
3117
+ const g = Et(a, i), h = Ct(n), f = d == null && h != null && !g ? h : void 0, c = d == null && !g ? m : void 0, b = We(a, i) ? It : void 0, v = d && m ? {
3118
3118
  ...d,
3119
3119
  onClick: () => {
3120
3120
  var x;
@@ -3175,7 +3175,7 @@ const ei = {
3175
3175
  variant: "dark",
3176
3176
  href: c,
3177
3177
  onClick: b,
3178
- bgClassName: qe(r, o) ? It : void 0,
3178
+ bgClassName: We(r, o) ? It : void 0,
3179
3179
  children: [
3180
3180
  l === "featured" && /* @__PURE__ */ s(
3181
3181
  je,
@@ -3497,7 +3497,7 @@ const vi = ({
3497
3497
  ReminderNotification: X = dn,
3498
3498
  StreamedMessageText: N = un,
3499
3499
  PinIndicator: A
3500
- } = cs("CustomMessage"), Y = mn(c), q = hn(c), H = re(
3500
+ } = cs("CustomMessage"), Y = mn(c), W = hn(c), H = re(
3501
3501
  () => h == null ? void 0 : h(c),
3502
3502
  [h, c]
3503
3503
  ), U = re(() => {
@@ -3505,16 +3505,16 @@ const vi = ({
3505
3505
  if (!Ue(c)) return be;
3506
3506
  const Gt = be.filter((Yt) => !("type" in Yt) || !_s(Yt));
3507
3507
  return Gt.length === be.length ? be : Gt;
3508
- }, [c]), W = re(
3508
+ }, [c]), q = re(
3509
3509
  () => Fs(U),
3510
3510
  [U]
3511
3511
  ), J = re(() => {
3512
3512
  const me = ps({ message: c, viewerLanguage: x });
3513
3513
  return me === c.text ? c : { ...c, text: me };
3514
- }, [c, x]), de = W.length > 0, De = W.reduce(
3514
+ }, [c, x]), de = q.length > 0, De = q.reduce(
3515
3515
  (me, be) => me + be.attachments.length,
3516
3516
  0
3517
- ) === ((U == null ? void 0 : U.length) ?? 0), ze = qa({
3517
+ ) === ((U == null ? void 0 : U.length) ?? 0), ze = Wa({
3518
3518
  endOfGroup: r,
3519
3519
  firstOfGroup: i,
3520
3520
  groupedByUser: o
@@ -3538,14 +3538,14 @@ const vi = ({
3538
3538
  "str-chat__message--has-attachment": Y,
3539
3539
  "str-chat__message--highlighted": g,
3540
3540
  "str-chat__message--pinned pinned-message": c.pinned,
3541
- "str-chat__message--with-reactions": q,
3541
+ "str-chat__message--with-reactions": W,
3542
3542
  "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((zt = c == null ? void 0 : c.error) == null ? void 0 : zt.status) !== 403,
3543
3543
  "str-chat__message-with-thread-link": ae || ue,
3544
3544
  "str-chat__virtual-message__wrapper--end": r,
3545
3545
  "str-chat__virtual-message__wrapper--first": i,
3546
3546
  "str-chat__virtual-message__wrapper--group": o
3547
3547
  }
3548
- ), We = c.poll_id && p.polls.fromState(c.poll_id), Mt = Wr(c), pe = Ue(c), Ys = kt(c), Xe = !!(U != null && U.length && !c.quoted_message), At = pe && se && Xe, Hs = de && De && !c.quoted_message && !We && !H && !pe, Rt = {
3548
+ ), qe = c.poll_id && p.polls.fromState(c.poll_id), Mt = qr(c), pe = Ue(c), Ys = kt(c), Xe = !!(U != null && U.length && !c.quoted_message), At = pe && se && Xe, Hs = de && De && !c.quoted_message && !qe && !H && !pe, Rt = {
3549
3549
  contentType: "text",
3550
3550
  amountText: (Pt = c.metadata) == null ? void 0 : Pt.amount_text,
3551
3551
  paymentStatus: (Ot = c.metadata) == null ? void 0 : Ot.payment_status,
@@ -3631,7 +3631,7 @@ const vi = ({
3631
3631
  }
3632
3632
  ),
3633
3633
  !se && M && /* @__PURE__ */ s(M, {})
3634
- ] }) }) : qr(c) ? /* @__PURE__ */ u("div", { className: "str-chat__message-bubble-wrapper", children: [
3634
+ ] }) }) : Wr(c) ? /* @__PURE__ */ u("div", { className: "str-chat__message-bubble-wrapper", children: [
3635
3635
  /* @__PURE__ */ u("div", { className: "flex items-center gap-2", children: [
3636
3636
  se && M && /* @__PURE__ */ s(M, {}),
3637
3637
  se ? /* @__PURE__ */ s(
@@ -3684,7 +3684,7 @@ const vi = ({
3684
3684
  isMyMessage: se
3685
3685
  }
3686
3686
  ),
3687
- We && /* @__PURE__ */ s(vn, { poll: We }),
3687
+ qe && /* @__PURE__ */ s(vn, { poll: qe }),
3688
3688
  U != null && U.length && !c.quoted_message ? /* @__PURE__ */ s(
3689
3689
  k,
3690
3690
  {
@@ -3846,7 +3846,7 @@ const vi = ({
3846
3846
  // fixed-height hero would spill out of the collapsed card box.
3847
3847
  /* @__PURE__ */ s("div", { className: "messaging-link-preview-list flex min-h-0 flex-col items-stretch w-full gap-2 mb-4 overflow-y-auto overscroll-contain", children: t.map((r) => /* @__PURE__ */ s("div", { className: "w-full shrink-0", children: /* @__PURE__ */ s(Ci, { link: r, onDismiss: n }) }, r.og_scrape_url)) })
3848
3848
  ) : null;
3849
- }, Ve = V.createContext(!1), gl = () => Te(Ve), Ii = ({ sendMessage: e, disabled: t, ...n }) => /* @__PURE__ */ s(
3849
+ }, Ve = V.createContext(!1), vl = () => Te(Ve), Ii = ({ sendMessage: e, disabled: t, ...n }) => /* @__PURE__ */ s(
3850
3850
  "button",
3851
3851
  {
3852
3852
  ...n,
@@ -3986,7 +3986,7 @@ const vi = ({
3986
3986
  className: "message-input flex min-h-0 items-end gap-4 aria-disabled:opacity-40",
3987
3987
  children: [
3988
3988
  e && /* @__PURE__ */ s("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
3989
- /* @__PURE__ */ s(Ve.Provider, { value: l, children: /* @__PURE__ */ s(qt, { Input: i ?? as }) })
3989
+ /* @__PURE__ */ s(Ve.Provider, { value: l, children: /* @__PURE__ */ s(Wt, { Input: i ?? as }) })
3990
3990
  ]
3991
3991
  }
3992
3992
  ),
@@ -4005,7 +4005,7 @@ const vi = ({
4005
4005
  className: "message-input flex min-h-0 items-end gap-4 aria-disabled:opacity-40",
4006
4006
  children: [
4007
4007
  e && /* @__PURE__ */ s("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
4008
- /* @__PURE__ */ s(Ve.Provider, { value: l, children: /* @__PURE__ */ s(qt, { Input: as }) })
4008
+ /* @__PURE__ */ s(Ve.Provider, { value: l, children: /* @__PURE__ */ s(Wt, { Input: as }) })
4009
4009
  ]
4010
4010
  }
4011
4011
  ),
@@ -4019,9 +4019,14 @@ const vi = ({
4019
4019
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
4020
4020
  }, Ai = [
4021
4021
  "SYSTEM_AGE_SAFETY_BLOCKED"
4022
- ], Ri = {
4022
+ ], Ri = ["SYSTEM_AGE_SAFETY_BLOCKED"], Li = {
4023
4023
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
4024
- }, st = "age safety guidelines.", Li = "https://linktr.ee/s/about/contact", is = (e) => Ti.includes(e), Di = (e) => Ai.includes(e), zi = (e) => {
4024
+ }, st = "age safety guidelines.", Di = "https://linktr.ee/s/about/contact", is = (e) => Ti.includes(e), zi = (e) => Ai.includes(e), Pi = (e) => Ri.includes(
4025
+ e
4026
+ ), Oi = (e) => {
4027
+ var t;
4028
+ return Pi((t = e.metadata) == null ? void 0 : t.custom_type);
4029
+ }, Fi = (e) => {
4025
4030
  var a;
4026
4031
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
4027
4032
  if (is(t))
@@ -4029,7 +4034,7 @@ const vi = ({
4029
4034
  kind: "dm-agent",
4030
4035
  type: t
4031
4036
  };
4032
- if (Di(t))
4037
+ if (zi(t))
4033
4038
  return {
4034
4039
  kind: "age-safety",
4035
4040
  type: t
@@ -4040,7 +4045,7 @@ const vi = ({
4040
4045
  kind: "dm-agent",
4041
4046
  type: n
4042
4047
  };
4043
- }, Pi = (e) => {
4048
+ }, $i = (e) => {
4044
4049
  const t = e.indexOf(st);
4045
4050
  if (t === -1)
4046
4051
  return e;
@@ -4050,7 +4055,7 @@ const vi = ({
4050
4055
  /* @__PURE__ */ s(
4051
4056
  "a",
4052
4057
  {
4053
- href: Li,
4058
+ href: Di,
4054
4059
  target: "_blank",
4055
4060
  rel: "noopener noreferrer",
4056
4061
  className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
@@ -4059,9 +4064,9 @@ const vi = ({
4059
4064
  ),
4060
4065
  e.slice(n)
4061
4066
  ] });
4062
- }, Oi = (e) => {
4067
+ }, Ui = (e) => {
4063
4068
  var a, r;
4064
- const t = e.message.hide_date === !0, n = zi(
4069
+ const t = !Oi(e.message), n = Fi(
4065
4070
  e.message
4066
4071
  );
4067
4072
  if ((n == null ? void 0 : n.kind) === "dm-agent") {
@@ -4091,7 +4096,7 @@ const vi = ({
4091
4096
  ] });
4092
4097
  }
4093
4098
  if ((n == null ? void 0 : n.kind) === "age-safety") {
4094
- const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ri[n.type];
4099
+ const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Li[n.type];
4095
4100
  return /* @__PURE__ */ u("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4096
4101
  /* @__PURE__ */ u(
4097
4102
  "div",
@@ -4110,7 +4115,7 @@ const vi = ({
4110
4115
  "data-testid": "age-safety-system-message-icon"
4111
4116
  }
4112
4117
  ),
4113
- /* @__PURE__ */ s("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ s("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: Pi(i) }) })
4118
+ /* @__PURE__ */ s("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ s("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: $i(i) }) })
4114
4119
  ]
4115
4120
  }
4116
4121
  ),
@@ -4135,15 +4140,15 @@ const vi = ({
4135
4140
  begin: `${120 * t}ms`,
4136
4141
  repeatCount: "indefinite"
4137
4142
  }
4138
- ) }), Fi = /* @__PURE__ */ new Set([
4143
+ ) }), Bi = /* @__PURE__ */ new Set([
4139
4144
  Ze.Thinking,
4140
4145
  Ze.Generating,
4141
4146
  Ze.ExternalSources
4142
- ]), $i = ({ threadList: e }) => {
4147
+ ]), ji = ({ threadList: e }) => {
4143
4148
  var b, v;
4144
4149
  const { channel: t, channelConfig: n, thread: a } = oe(), { client: r } = fe(), { typing: i = {} } = Sn(), { aiState: o } = En(t), l = Te($s);
4145
- if (!e && l && Fi.has(o)) {
4146
- const x = Ui(t, (b = r.user) == null ? void 0 : b.id);
4150
+ if (!e && l && Bi.has(o)) {
4151
+ const x = Vi(t, (b = r.user) == null ? void 0 : b.id);
4147
4152
  return /* @__PURE__ */ s(
4148
4153
  ls,
4149
4154
  {
@@ -4223,7 +4228,7 @@ const vi = ({
4223
4228
  ] })
4224
4229
  }
4225
4230
  );
4226
- function Ui(e, t) {
4231
+ function Vi(e, t) {
4227
4232
  var a;
4228
4233
  const n = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
4229
4234
  for (const r of Object.values(n)) {
@@ -4232,7 +4237,7 @@ function Ui(e, t) {
4232
4237
  return i;
4233
4238
  }
4234
4239
  }
4235
- const Bi = () => null, ji = ({ className: e, message: t }) => /* @__PURE__ */ u(
4240
+ const Gi = () => null, Yi = ({ className: e, message: t }) => /* @__PURE__ */ u(
4236
4241
  "div",
4237
4242
  {
4238
4243
  className: C("flex items-center justify-center h-full", e),
@@ -4276,11 +4281,11 @@ const Bi = () => null, ji = ({ className: e, message: t }) => /* @__PURE__ */ u(
4276
4281
  ]
4277
4282
  }
4278
4283
  ), Ge = V.memo(() => /* @__PURE__ */ s("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ u("div", { className: "flex items-center", children: [
4279
- /* @__PURE__ */ s(ji, { className: "w-6 h-6" }),
4284
+ /* @__PURE__ */ s(Yi, { className: "w-6 h-6" }),
4280
4285
  /* @__PURE__ */ s("span", { className: "text-sm text-stone", children: "Loading messages" })
4281
4286
  ] }) }));
4282
4287
  Ge.displayName = "LoadingState";
4283
- const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Fe = "Replies instantly with AI assistant", Vi = ({
4288
+ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Fe = "Replies instantly with AI assistant", Hi = ({
4284
4289
  onBack: e,
4285
4290
  showBackButton: t,
4286
4291
  showStarButton: n = !1,
@@ -4566,7 +4571,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4566
4571
  ] })
4567
4572
  ] })
4568
4573
  ] });
4569
- }, Gi = ({
4574
+ }, Wi = ({
4570
4575
  onBack: e,
4571
4576
  showBackButton: t,
4572
4577
  renderMessageInputActions: n,
@@ -4595,7 +4600,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4595
4600
  onParticipantNameClick: D,
4596
4601
  composerInput: L
4597
4602
  }) => {
4598
- var N, A, Y, q;
4603
+ var N, A, Y, W;
4599
4604
  const { channel: y } = oe(), { client: I } = fe(), k = V.useMemo(
4600
4605
  () => {
4601
4606
  var H;
@@ -4607,13 +4612,13 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4607
4612
  },
4608
4613
  [(N = y.state) == null ? void 0 : N.members, I == null ? void 0 : I.userID, y.type]
4609
4614
  ), T = V.useMemo(() => {
4610
- var W;
4615
+ var q;
4611
4616
  const H = I == null ? void 0 : I.userID;
4612
- return H ? Object.values(((W = y.state) == null ? void 0 : W.members) || {}).find((J) => {
4617
+ return H ? Object.values(((q = y.state) == null ? void 0 : q.members) || {}).find((J) => {
4613
4618
  var de;
4614
4619
  return ((de = J.user) == null ? void 0 : de.id) === H;
4615
4620
  }) : void 0;
4616
- }, [I == null ? void 0 : I.userID, (A = y.state) == null ? void 0 : A.members]), M = ((Y = T == null ? void 0 : T.user) == null ? void 0 : Y.is_account) ?? (T == null ? void 0 : T.is_account), O = ((q = k == null ? void 0 : k.user) == null ? void 0 : q.is_account) ?? (k == null ? void 0 : k.is_account), $ = E && M === !1 && O === !0, j = y.state.messages.some(
4621
+ }, [I == null ? void 0 : I.userID, (A = y.state) == null ? void 0 : A.members]), M = ((Y = T == null ? void 0 : T.user) == null ? void 0 : Y.is_account) ?? (T == null ? void 0 : T.is_account), O = ((W = k == null ? void 0 : k.user) == null ? void 0 : W.is_account) ?? (k == null ? void 0 : k.is_account), $ = E && M === !1 && O === !0, j = y.state.messages.some(
4617
4622
  (H) => H.type !== "deleted"
4618
4623
  ), Z = p ? /* @__PURE__ */ s(V.Fragment, { children: p() }, "lt-channel-banner") : null, ee = D ? /* @__PURE__ */ s(
4619
4624
  ba,
@@ -4638,7 +4643,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4638
4643
  }
4639
4644
  ) : null, X = Q(
4640
4645
  (H) => {
4641
- const { message: U } = Ne("ChannelView"), W = /* @__PURE__ */ s(
4646
+ const { message: U } = Ne("ChannelView"), q = /* @__PURE__ */ s(
4642
4647
  _i,
4643
4648
  {
4644
4649
  ...H,
@@ -4646,7 +4651,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4646
4651
  viewerLanguage: R
4647
4652
  }
4648
4653
  );
4649
- return !z || !U ? W : z(W, U);
4654
+ return !z || !U ? q : z(q, U);
4650
4655
  },
4651
4656
  [x, z, R]
4652
4657
  );
@@ -4662,7 +4667,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4662
4667
  children: /* @__PURE__ */ u(Mn, { children: [
4663
4668
  !D && /* @__PURE__ */ u(te, { children: [
4664
4669
  /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
4665
- Vi,
4670
+ Hi,
4666
4671
  {
4667
4672
  onBack: e,
4668
4673
  showBackButton: t,
@@ -4695,7 +4700,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4695
4700
  Z
4696
4701
  ] }) }),
4697
4702
  /* @__PURE__ */ s(
4698
- Wt,
4703
+ qt,
4699
4704
  {
4700
4705
  head: D && j ? /* @__PURE__ */ u("div", { className: "sticky top-0 z-10", children: [
4701
4706
  ee,
@@ -4736,7 +4741,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4736
4741
  Z
4737
4742
  ] }) }),
4738
4743
  /* @__PURE__ */ s(
4739
- Wt,
4744
+ qt,
4740
4745
  {
4741
4746
  head: D && j ? /* @__PURE__ */ u("div", { className: "sticky top-0 z-10", children: [
4742
4747
  ee,
@@ -4779,7 +4784,7 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4779
4784
  onLeaveConversation: o,
4780
4785
  onBlockParticipant: l,
4781
4786
  className: d,
4782
- CustomChannelEmptyState: m = Bi,
4787
+ CustomChannelEmptyState: m = Gi,
4783
4788
  showDeleteConversation: g = !0,
4784
4789
  onDeleteConversationClick: h,
4785
4790
  onBlockParticipantClick: f,
@@ -4809,9 +4814,9 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4809
4814
  const Z = Q(
4810
4815
  async (X, N, A) => {
4811
4816
  var J;
4812
- const Y = ((J = e.data) == null ? void 0 : J.chatbot_paused) === !0, q = _ && !Y, H = {
4817
+ const Y = ((J = e.data) == null ? void 0 : J.chatbot_paused) === !0, W = _ && !Y, H = {
4813
4818
  ...N,
4814
- ...q && { silent: !0 },
4819
+ ...W && { silent: !0 },
4815
4820
  ...w && {
4816
4821
  metadata: {
4817
4822
  ...N.metadata ?? {},
@@ -4820,9 +4825,9 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4820
4825
  }
4821
4826
  }, U = {
4822
4827
  ...A,
4823
- ...q && { skip_push: !0 }
4824
- }, W = await e.sendMessage(H, U);
4825
- return S == null || S(W), W;
4828
+ ...W && { skip_push: !0 }
4829
+ }, q = await e.sendMessage(H, U);
4830
+ return S == null || S(q), q;
4826
4831
  },
4827
4832
  [e, _, w, S]
4828
4833
  ), ee = G(null);
@@ -4831,9 +4836,9 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4831
4836
  const X = ee.current;
4832
4837
  if (!X) return;
4833
4838
  const N = (A) => {
4834
- const Y = A.target, q = Y == null ? void 0 : Y.closest("a[href]"), H = q == null ? void 0 : q.getAttribute("href");
4839
+ const Y = A.target, W = Y == null ? void 0 : Y.closest("a[href]"), H = W == null ? void 0 : W.getAttribute("href");
4835
4840
  if (!H) return;
4836
- const U = q == null ? void 0 : q.closest("[data-message-id]"), W = U == null ? void 0 : U.getAttribute("data-message-id"), J = W ? e.state.messages.find((de) => de.id === W) : void 0;
4841
+ const U = W == null ? void 0 : W.closest("[data-message-id]"), q = U == null ? void 0 : U.getAttribute("data-message-id"), J = q ? e.state.messages.find((de) => de.id === q) : void 0;
4837
4842
  I(H, J);
4838
4843
  };
4839
4844
  return X.addEventListener("click", N), () => X.removeEventListener("click", N);
@@ -4849,16 +4854,16 @@ const ve = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4849
4854
  In,
4850
4855
  {
4851
4856
  channel: e,
4852
- MessageSystem: Oi,
4857
+ MessageSystem: Ui,
4853
4858
  EmptyStateIndicator: m,
4854
4859
  LoadingIndicator: Ge,
4855
4860
  DateSeparator: va,
4856
- TypingIndicator: $i,
4861
+ TypingIndicator: ji,
4857
4862
  doSendMessageRequest: Z,
4858
4863
  ...k ? { SendButton: k } : {},
4859
4864
  ...T ? { AttachmentPreviewList: T } : {},
4860
4865
  children: /* @__PURE__ */ s(
4861
- Gi,
4866
+ Wi,
4862
4867
  {
4863
4868
  onBack: t,
4864
4869
  showBackButton: n,
@@ -4912,7 +4917,7 @@ const Ce = V.memo(({ message: e, onBack: t }) => /* @__PURE__ */ s("div", { clas
4912
4917
  )
4913
4918
  ] }) }));
4914
4919
  Ce.displayName = "ErrorState";
4915
- const pl = ({
4920
+ const xl = ({
4916
4921
  capabilities: e = {},
4917
4922
  renderMessageInputActions: t,
4918
4923
  renderConversationFooter: n,
@@ -4956,11 +4961,11 @@ const pl = ({
4956
4961
  if (!R || !F) return;
4957
4962
  const U = R.userID;
4958
4963
  if (!U) return;
4959
- const W = `${U}::${i}`;
4960
- if (A.current === W) return;
4961
- A.current = W;
4964
+ const q = `${U}::${i}`;
4965
+ if (A.current === q) return;
4966
+ A.current = q;
4962
4967
  const J = () => {
4963
- A.current === W && (A.current = null);
4968
+ A.current === q && (A.current = null);
4964
4969
  };
4965
4970
  (async () => {
4966
4971
  var De, ze;
@@ -5016,11 +5021,11 @@ const pl = ({
5016
5021
  }
5017
5022
  })();
5018
5023
  }, [i, R, F, I, k]);
5019
- const q = G(r);
5020
- q.current = r;
5024
+ const W = G(r);
5025
+ W.current = r;
5021
5026
  const H = Q(() => {
5022
5027
  var U;
5023
- M(null), Z(!0), (U = q.current) == null || U.call(q);
5028
+ M(null), Z(!0), (U = W.current) == null || U.call(W);
5024
5029
  }, []);
5025
5030
  return D ? /* @__PURE__ */ s(Ge, {}) : L ? /* @__PURE__ */ s(Ce, { message: L, onBack: y }) : !F || !R ? /* @__PURE__ */ s(
5026
5031
  Ce,
@@ -5057,7 +5062,7 @@ const pl = ({
5057
5062
  T.id
5058
5063
  ) }) }) : /* @__PURE__ */ s(Ge, {});
5059
5064
  };
5060
- function Yi(e) {
5065
+ function qi(e) {
5061
5066
  const t = e.state.pending_messages;
5062
5067
  if (t != null && t.length)
5063
5068
  for (const n of t)
@@ -5071,18 +5076,18 @@ const Bs = V.createContext({
5071
5076
  renderMessagePreview: void 0,
5072
5077
  channelPreview: void 0,
5073
5078
  viewerLanguage: void 0
5074
- }), Hi = Bs.Provider, qi = () => V.useContext(Bs), Wi = (e, t) => {
5079
+ }), Xi = Bs.Provider, Ki = () => V.useContext(Bs), Zi = (e, t) => {
5075
5080
  const n = new Date(
5076
5081
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
5077
5082
  ), r = new Date(
5078
5083
  Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())
5079
5084
  ).getTime() - n.getTime();
5080
5085
  return Math.floor(r / (1e3 * 60 * 60 * 24));
5081
- }, Xi = (e) => {
5086
+ }, Ji = (e) => {
5082
5087
  const t = /* @__PURE__ */ new Date();
5083
5088
  if (Math.floor((t.getTime() - e.getTime()) / 1e3) < 60)
5084
5089
  return "Just now";
5085
- const a = Wi(e, t);
5090
+ const a = Zi(e, t);
5086
5091
  return a === 0 ? e.toLocaleTimeString([], {
5087
5092
  hour: "numeric",
5088
5093
  minute: "2-digit",
@@ -5102,7 +5107,7 @@ const Bs = V.createContext({
5102
5107
  channelPreview: o,
5103
5108
  renderMessagePreview: l,
5104
5109
  viewerLanguage: d
5105
- } = qi(), { client: m } = fe(), g = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), h = mt(t);
5110
+ } = Ki(), { client: m } = fe(), g = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), h = mt(t);
5106
5111
  if (o)
5107
5112
  return /* @__PURE__ */ s(
5108
5113
  o,
@@ -5149,7 +5154,7 @@ const Bs = V.createContext({
5149
5154
  if (y) return y;
5150
5155
  const T = (M = p == null ? void 0 : p.attachments) == null ? void 0 : M[0];
5151
5156
  return T ? T.og_scrape_url ? T.og_scrape_url : T.type === "image" ? "📷 Sent an image" : T.type === "video" ? "🎥 Sent a video" : T.type === "audio" ? "🎵 Sent audio" : T.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
5152
- })(), S = p != null && p.created_at ? Xi(new Date(p.created_at)) : "", z = p ? Ue(p) : !1, E = l ? l(p, w) : `${z ? "✨ " : ""}${w}`, R = n ?? 0;
5157
+ })(), S = p != null && p.created_at ? Ji(new Date(p.created_at)) : "", z = p ? Ue(p) : !1, E = l ? l(p, w) : `${z ? "✨ " : ""}${w}`, R = n ?? 0;
5153
5158
  return i && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
5154
5159
  channelId: t == null ? void 0 : t.id,
5155
5160
  isSelected: g,
@@ -5209,14 +5214,14 @@ const Bs = V.createContext({
5209
5214
  }
5210
5215
  );
5211
5216
  js.displayName = "CustomChannelPreview";
5212
- const Ki = { last_message_at: -1 }, Zi = V.memo(
5217
+ const Qi = { last_message_at: -1 }, el = V.memo(
5213
5218
  ({
5214
5219
  onChannelSelect: e,
5215
5220
  selectedChannel: t,
5216
5221
  filters: n,
5217
5222
  allowNewMessagesFromUnfilteredChannels: a = !1,
5218
5223
  channelRenderFilterFn: r,
5219
- sort: i = Ki,
5224
+ sort: i = Qi,
5220
5225
  className: o,
5221
5226
  customEmptyStateIndicator: l,
5222
5227
  channelListPaginator: d = Rn,
@@ -5235,7 +5240,7 @@ const Ki = { last_message_at: -1 }, Zi = V.memo(
5235
5240
  const { debug: w = !1 } = ut(), S = V.useCallback(
5236
5241
  (E) => {
5237
5242
  for (const R of E)
5238
- Yi(R);
5243
+ qi(R);
5239
5244
  return r ? r(E) : E;
5240
5245
  },
5241
5246
  [r]
@@ -5270,7 +5275,7 @@ const Ki = { last_message_at: -1 }, Zi = V.memo(
5270
5275
  "messaging-channel-list h-full flex flex-col min-w-0 overflow-hidden",
5271
5276
  o
5272
5277
  ),
5273
- children: /* @__PURE__ */ s("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ s(Hi, { value: z, children: /* @__PURE__ */ s(
5278
+ children: /* @__PURE__ */ s("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ s(Xi, { value: z, children: /* @__PURE__ */ s(
5274
5279
  An,
5275
5280
  {
5276
5281
  filters: n,
@@ -5294,11 +5299,11 @@ const Ki = { last_message_at: -1 }, Zi = V.memo(
5294
5299
  );
5295
5300
  }
5296
5301
  );
5297
- Zi.displayName = "ChannelList";
5298
- const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%`, Ji = {
5302
+ el.displayName = "ChannelList";
5303
+ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='23' fill='none'%3E%3Cpath fill='black' d='M0 0H15C15 10.1934 15.859 15.2345 19.168 21.4893C19.527 22.168 19.039 22.9917 18.274 22.9178C5.176 21.6506 0.32 6.0737 0 0Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%`, tl = {
5299
5304
  sent: "var(--str-chat__own-message-bubble-background-color, #1e2330)",
5300
5305
  received: "var(--str-chat__message-bubble-background-color, #f1f0ee)"
5301
- }, Qi = ({ variant: e }) => /* @__PURE__ */ s(
5306
+ }, sl = ({ variant: e }) => /* @__PURE__ */ s(
5302
5307
  "span",
5303
5308
  {
5304
5309
  "aria-hidden": "true",
@@ -5308,12 +5313,12 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5308
5313
  insetInlineStart: e === "received" ? "calc(-1 * 0.25rem)" : void 0,
5309
5314
  transform: e === "received" ? "scaleX(-1)" : void 0,
5310
5315
  transformOrigin: "center",
5311
- backgroundColor: Ji[e],
5316
+ backgroundColor: tl[e],
5312
5317
  WebkitMask: os,
5313
5318
  mask: os
5314
5319
  }
5315
5320
  }
5316
- ), el = {
5321
+ ), nl = {
5317
5322
  sent: {
5318
5323
  backgroundColor: "var(--str-chat__own-message-bubble-background-color, #1e2330)",
5319
5324
  color: "var(--str-chat__own-message-bubble-color, #fff)"
@@ -5338,17 +5343,17 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5338
5343
  r
5339
5344
  ),
5340
5345
  style: {
5341
- ...el[e],
5346
+ ...nl[e],
5342
5347
  borderRadius: "var(--str-chat__message-bubble-border-radius, 1.5rem)",
5343
5348
  isolation: "isolate"
5344
5349
  },
5345
5350
  children: [
5346
5351
  a != null && /* @__PURE__ */ s("div", { className: "mb-1 font-medium", "data-testid": "message-bubble-header", children: a }),
5347
5352
  /* @__PURE__ */ s("p", { className: "m-0 whitespace-pre-wrap break-words", children: t }),
5348
- n && /* @__PURE__ */ s(Qi, { variant: e })
5353
+ n && /* @__PURE__ */ s(sl, { variant: e })
5349
5354
  ]
5350
5355
  }
5351
- ), tl = ({
5356
+ ), al = ({
5352
5357
  text: e,
5353
5358
  tail: t,
5354
5359
  header: n,
@@ -5362,10 +5367,10 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5362
5367
  header: n,
5363
5368
  className: a
5364
5369
  }
5365
- ), sl = ({ text: e, tail: t, className: n }) => /* @__PURE__ */ s(Vs, { variant: "sent", text: e, tail: t, className: n }), bl = {
5366
- Sent: sl,
5367
- Received: tl
5368
- }, nl = ({
5370
+ ), rl = ({ text: e, tail: t, className: n }) => /* @__PURE__ */ s(Vs, { variant: "sent", text: e, tail: t, className: n }), wl = {
5371
+ Sent: rl,
5372
+ Received: al
5373
+ }, il = ({
5369
5374
  question: e,
5370
5375
  onClick: t,
5371
5376
  loading: n = !1,
@@ -5387,7 +5392,7 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5387
5392
  ),
5388
5393
  children: e
5389
5394
  }
5390
- ), vl = ({
5395
+ ), _l = ({
5391
5396
  faqs: e,
5392
5397
  onFaqClick: t,
5393
5398
  loadingFaqId: n,
@@ -5416,7 +5421,7 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5416
5421
  children: [
5417
5422
  a && /* @__PURE__ */ s("p", { className: "text-md text-charcoal mb-4", children: a }),
5418
5423
  l.map((d) => /* @__PURE__ */ s(
5419
- nl,
5424
+ il,
5420
5425
  {
5421
5426
  question: d.question,
5422
5427
  onClick: () => t(d.id),
@@ -5432,40 +5437,40 @@ const os = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
5432
5437
  export {
5433
5438
  vs as A,
5434
5439
  bt as B,
5435
- Bi as C,
5440
+ Gi as C,
5436
5441
  ht as D,
5437
- gl as E,
5438
- vl as F,
5442
+ vl as E,
5443
+ _l as F,
5439
5444
  $r as G,
5440
5445
  wa as H,
5441
5446
  aa as I,
5442
5447
  es as L,
5443
- hl as M,
5448
+ pl as M,
5444
5449
  ye as a,
5445
5450
  ne as b,
5446
- Zi as c,
5451
+ el as c,
5447
5452
  Us as d,
5448
- fl as e,
5449
- nl as f,
5453
+ bl as e,
5454
+ il as f,
5450
5455
  ce as g,
5451
5456
  Oe as h,
5452
5457
  ke as i,
5453
- bl as j,
5458
+ wl as j,
5454
5459
  Xr as k,
5455
- ml as l,
5456
- pl as m,
5460
+ gl as l,
5461
+ xl as m,
5457
5462
  nr as n,
5458
5463
  he as o,
5459
5464
  er as p,
5460
- Xi as q,
5465
+ Ji as q,
5461
5466
  _e as r,
5462
5467
  sr as s,
5463
5468
  ps as t,
5464
5469
  _s as u,
5465
5470
  oa as v,
5466
- qa as w,
5471
+ Wa as w,
5467
5472
  _a as x,
5468
5473
  He as y,
5469
5474
  pt as z
5470
5475
  };
5471
- //# sourceMappingURL=index-DlkI5kym.js.map
5476
+ //# sourceMappingURL=index-Cw1ij-Py.js.map