@linktr.ee/messaging-react 4.1.4 → 4.1.5-rc-1786935540

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,13 +1,13 @@
1
1
  import { jsx as n, jsxs as f, Fragment as q } from "react/jsx-runtime";
2
- import P, { createContext as je, useContext as xe, useCallback as K, useState as $, useRef as V, useEffect as W, useId as rs, Suspense as is, useMemo as le } from "react";
3
- import { StreamChatService as ls } from "@linktr.ee/messaging-core";
4
- import { StreamChat as os, LinkPreviewsManager as nt } from "stream-chat";
5
- import { Chat as cs, useChannelStateContext as we, useChatContext as He, DateSeparator as ds, useMessageContext as fe, MessageStatus as us, MessageErrorIcon as st, MessageText as Fe, areMessageUIPropsEqual as ms, useMessageReminder as hs, useComponentContext as mn, Attachment as fs, EditMessageModal as gs, MessageBlocked as ps, MessageBouncePrompt as bs, MessageDeleted as vs, MessageIsThreadReplyInChannelButtonIndicator as xs, MessageRepliesCountButton as ws, ReminderNotification as _s, StreamedMessageText as ys, messageHasAttachments as Ns, messageHasReactions as ks, isDateSeparatorMessage as Cs, isMessageBlocked as Ss, isMessageBounced as Es, MessageBounceModal as Is, Poll as Ts, useMessageComposer as As, useStateStore as Rs, MessageInput as Vt, useMessageInputContext as Ls, useMessageComposerHasSendableData as Ms, AttachmentPreviewList as Ds, QuotedMessagePreview as Os, TextareaComposer as Ps, MessageTimestamp as Ke, AIStates as Xe, useTypingContext as Fs, useAIState as zs, Channel as $s, WithComponents as Bs, Window as Us, MessageList as Gt, ChannelList as js, InfiniteScroll as Hs } from "stream-chat-react";
6
- import { isOfficialChannel as hn, OFFICIAL_SENDER_USER_ID as Vs, MESSAGE_CUSTOM_TYPE as oe, isDmAgentSystemType as Yt, isAgeSafetySystemType as Gs, resolveRichCardImagePresentation as Ys, selectEnabledFaqs as Ws } from "@linktr.ee/messaging-taxonomy";
2
+ import P, { createContext as je, useContext as xe, useCallback as K, useState as $, useRef as V, useEffect as W, useId as is, Suspense as ls, useMemo as le } from "react";
3
+ import { StreamChatService as os } from "@linktr.ee/messaging-core";
4
+ import { StreamChat as cs, LinkPreviewsManager as nt } from "stream-chat";
5
+ import { Chat as ds, useChannelStateContext as we, useChatContext as He, DateSeparator as us, useMessageContext as fe, MessageStatus as ms, MessageErrorIcon as st, MessageText as Fe, areMessageUIPropsEqual as hs, useMessageReminder as fs, useComponentContext as hn, Attachment as gs, EditMessageModal as ps, MessageBlocked as bs, MessageBouncePrompt as vs, MessageDeleted as xs, MessageIsThreadReplyInChannelButtonIndicator as ws, MessageRepliesCountButton as _s, ReminderNotification as ys, StreamedMessageText as Ns, messageHasAttachments as ks, messageHasReactions as Cs, isDateSeparatorMessage as Ss, isMessageBlocked as Es, isMessageBounced as Is, MessageBounceModal as Ts, Poll as As, useMessageComposer as Rs, useStateStore as Ls, MessageInput as Gt, useMessageInputContext as Ms, useMessageComposerHasSendableData as Ds, AttachmentPreviewList as Os, QuotedMessagePreview as Ps, TextareaComposer as Fs, MessageTimestamp as Ke, AIStates as Xe, useTypingContext as zs, useAIState as $s, Channel as Bs, WithComponents as Us, Window as js, MessageList as Yt, ChannelList as Hs, InfiniteScroll as Vs } from "stream-chat-react";
6
+ import { isOfficialChannel as fn, OFFICIAL_SENDER_USER_ID as Gs, MESSAGE_CUSTOM_TYPE as oe, isDmAgentSystemType as Wt, isAgeSafetySystemType as Ys, resolveRichCardImagePresentation as Ws, selectEnabledFaqs as Ks } from "@linktr.ee/messaging-taxonomy";
7
7
  import N from "classnames";
8
- import { StarIcon as at, DotsThreeIcon as Ks, SpinnerGapIcon as Oe, SignOutIcon as Xs, ProhibitInsetIcon as Wt, FlagIcon as fn, CurrencyDollarIcon as qs, CaretRightIcon as gn, ArrowLeftIcon as Zs, FileIcon as pn, ImageIcon as Js, SpeakerHighIcon as Qs, VideoCameraIcon as bn, FileMdIcon as ea, FileTextIcon as ta, FileZipIcon as na, FilePptIcon as sa, FileCsvIcon as aa, FileXlsIcon as ra, FileDocIcon as ia, FilePdfIcon as la, CircleNotchIcon as be, PlayIcon as rt, PauseIcon as oa, LinkIcon as ca, DownloadSimpleIcon as Se, GiftIcon as da, WarningCircleIcon as ua, MegaphoneIcon as ma, ChecksIcon as ha, XIcon as lt, PencilSimpleIcon as fa, CaretLeftIcon as ga, TrashSimpleIcon as pa, ArrowUpIcon as ba, SparkleIcon as va, ProhibitIcon as xa } from "@phosphor-icons/react";
9
- import { MessageActions as wa, DefaultDropdownActionButton as vn } from "stream-chat-react/experimental";
10
- const xn = je({
8
+ import { StarIcon as at, DotsThreeIcon as Xs, SpinnerGapIcon as Oe, SignOutIcon as qs, ProhibitInsetIcon as Kt, FlagIcon as gn, CurrencyDollarIcon as Zs, CaretRightIcon as pn, ArrowLeftIcon as Js, FileIcon as bn, ImageIcon as Qs, SpeakerHighIcon as ea, VideoCameraIcon as vn, FileMdIcon as ta, FileTextIcon as na, FileZipIcon as sa, FilePptIcon as aa, FileCsvIcon as ra, FileXlsIcon as ia, FileDocIcon as la, FilePdfIcon as oa, CircleNotchIcon as be, PlayIcon as rt, PauseIcon as ca, LinkIcon as da, DownloadSimpleIcon as Se, GiftIcon as ua, WarningCircleIcon as ma, MegaphoneIcon as ha, ChecksIcon as fa, XIcon as lt, PencilSimpleIcon as ga, CaretLeftIcon as pa, TrashSimpleIcon as ba, ArrowUpIcon as va, SparkleIcon as xa, ProhibitIcon as wa } from "@phosphor-icons/react";
9
+ import { MessageActions as _a, DefaultDropdownActionButton as xn } from "stream-chat-react/experimental";
10
+ const wn = je({
11
11
  service: null,
12
12
  client: null,
13
13
  isConnected: !1,
@@ -17,7 +17,7 @@ const xn = je({
17
17
  refreshConnection: async () => {
18
18
  },
19
19
  debug: !1
20
- }), ot = () => xe(xn), to = ({
20
+ }), ot = () => xe(wn), no = ({
21
21
  children: e,
22
22
  user: t,
23
23
  serviceConfig: s,
@@ -65,7 +65,7 @@ const xn = je({
65
65
  capabilities: r
66
66
  };
67
67
  const z = V(null);
68
- !o && a && ((S = z.current) == null ? void 0 : S.apiKey) !== a && (z.current = { apiKey: a, client: new os(a) });
68
+ !o && a && ((S = z.current) == null ? void 0 : S.apiKey) !== a && (z.current = { apiKey: a, client: new cs(a) });
69
69
  const F = o || (a ? ((C = z.current) == null ? void 0 : C.client) ?? null : null);
70
70
  W(() => {
71
71
  const A = E.current, O = _.current;
@@ -84,7 +84,7 @@ const xn = je({
84
84
  renderCount: A,
85
85
  apiKey: (a == null ? void 0 : a.substring(0, 8)) + "..."
86
86
  });
87
- const B = new ls({
87
+ const B = new os({
88
88
  ...O,
89
89
  apiKey: a,
90
90
  debug: T.current,
@@ -215,8 +215,8 @@ const xn = je({
215
215
  renderCount: E.current,
216
216
  willRenderChat: !!F,
217
217
  contextValueReady: !!M
218
- }), /* @__PURE__ */ n(xn.Provider, { value: M, children: F ? /* @__PURE__ */ n(
219
- cs,
218
+ }), /* @__PURE__ */ n(wn.Provider, { value: M, children: F ? /* @__PURE__ */ n(
219
+ ds,
220
220
  {
221
221
  client: F,
222
222
  customClasses: {
@@ -225,7 +225,7 @@ const xn = je({
225
225
  children: e
226
226
  }
227
227
  ) : e });
228
- }, _a = () => ot(), wn = (e) => {
228
+ }, ya = () => ot(), _n = (e) => {
229
229
  var a, r;
230
230
  const [t, s] = $(
231
231
  !!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
@@ -248,13 +248,13 @@ const xn = je({
248
248
  };
249
249
  }, [e]), t;
250
250
  };
251
- function _n(e, t, s) {
251
+ function yn(e, t, s) {
252
252
  const a = Object.values(e || {});
253
- if (hn(s)) {
253
+ if (fn(s)) {
254
254
  const r = a.find(
255
255
  (i) => {
256
256
  var o;
257
- return ((o = i.user) == null ? void 0 : o.id) === Vs;
257
+ return ((o = i.user) == null ? void 0 : o.id) === Gs;
258
258
  }
259
259
  );
260
260
  if (r) return r;
@@ -266,18 +266,18 @@ function _n(e, t, s) {
266
266
  }
267
267
  );
268
268
  }
269
- const ya = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
270
- function Na(e) {
271
- return ya.test(e.trim());
269
+ const Na = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
270
+ function ka(e) {
271
+ return Na.test(e.trim());
272
272
  }
273
- function Kt(e, t) {
273
+ function Xt(e, t) {
274
274
  const s = e == null ? void 0 : e.trim();
275
- return !s || t && s === t || t && s === `Follower ${t}` ? !1 : !Na(s);
275
+ return !s || t && s === t || t && s === `Follower ${t}` ? !1 : !ka(s);
276
276
  }
277
- function yn(e) {
278
- return Kt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Kt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
277
+ function Nn(e) {
278
+ return Xt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Xt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
279
279
  }
280
- const Xt = [
280
+ const qt = [
281
281
  { emoji: "🍎", bgColor: "#FFD1DD" },
282
282
  // Apple
283
283
  { emoji: "🍌", bgColor: "#FFF1C9" },
@@ -305,7 +305,7 @@ const Xt = [
305
305
  { emoji: "🍈", bgColor: "#D9F7E1" }
306
306
  // Melon
307
307
  ];
308
- function ka(e) {
308
+ function Ca(e) {
309
309
  let t = 0;
310
310
  for (let s = 0; s < e.length; s++) {
311
311
  const a = e.charCodeAt(s);
@@ -313,14 +313,14 @@ function ka(e) {
313
313
  }
314
314
  return Math.abs(t);
315
315
  }
316
- function Nn(e) {
317
- return Xt[ka(e) % Xt.length];
318
- }
319
- function Ca(e) {
320
- return Nn(e).emoji;
316
+ function kn(e) {
317
+ return qt[Ca(e) % qt.length];
321
318
  }
322
319
  function Sa(e) {
323
- return Nn(e).bgColor;
320
+ return kn(e).emoji;
321
+ }
322
+ function Ea(e) {
323
+ return kn(e).bgColor;
324
324
  }
325
325
  const _e = ({
326
326
  id: e,
@@ -331,7 +331,7 @@ const _e = ({
331
331
  shape: i = "squircle",
332
332
  dmAgentEnabled: o = !1
333
333
  }) => {
334
- const l = Ca(e), d = Sa(e), u = 0.45, m = s < 32 ? Math.round(s * u) : s < 56 ? 14 : s < 120 ? 18 : 36, g = s >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, p = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ n("img", { src: t, alt: "", className: "h-full w-full object-cover" }) : /* @__PURE__ */ n(
334
+ const l = Sa(e), d = Ea(e), u = 0.45, m = s < 32 ? Math.round(s * u) : s < 56 ? 14 : s < 120 ? 18 : 36, g = s >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, p = /* @__PURE__ */ n("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ n("img", { src: t, alt: "", className: "h-full w-full object-cover" }) : /* @__PURE__ */ n(
335
335
  "div",
336
336
  {
337
337
  "aria-hidden": "true",
@@ -382,7 +382,7 @@ const _e = ({
382
382
  ]
383
383
  }
384
384
  );
385
- }, Ea = "https://linktr.ee/s/about/trust-center/report", Ia = ({
385
+ }, Ia = "https://linktr.ee/s/about/trust-center/report", Ta = ({
386
386
  channel: e,
387
387
  participant: t,
388
388
  showBlockParticipant: s = !0,
@@ -466,7 +466,7 @@ const _e = ({
466
466
  }
467
467
  },
468
468
  handleReportUser: () => {
469
- d == null || d(), u == null || u(), window.open(Ea, "_blank", "noopener,noreferrer");
469
+ d == null || d(), u == null || u(), window.open(Ia, "_blank", "noopener,noreferrer");
470
470
  }
471
471
  };
472
472
  }, Ne = ({
@@ -486,7 +486,7 @@ const _e = ({
486
486
  ...a,
487
487
  children: s
488
488
  }
489
- ), Ta = ({
489
+ ), Aa = ({
490
490
  channel: e,
491
491
  participant: t,
492
492
  showDeleteConversation: s = !0,
@@ -500,7 +500,7 @@ const _e = ({
500
500
  customChannelActions: h,
501
501
  triggerClassName: m
502
502
  }) => {
503
- const [g, c] = $(!1), p = V(null), w = rs(), v = K(() => c(!1), []), {
503
+ const [g, c] = $(!1), p = V(null), w = is(), v = K(() => c(!1), []), {
504
504
  isParticipantBlocked: x,
505
505
  isCheckingBlockedStatus: b,
506
506
  isLeaving: y,
@@ -509,7 +509,7 @@ const _e = ({
509
509
  handleBlockUser: L,
510
510
  handleUnblockUser: E,
511
511
  handleReportUser: z
512
- } = Ia({
512
+ } = Ta({
513
513
  channel: e,
514
514
  participant: t,
515
515
  showBlockParticipant: a,
@@ -543,7 +543,7 @@ const _e = ({
543
543
  "aria-controls": g ? w : void 0,
544
544
  onClick: () => c((R) => !R),
545
545
  children: [
546
- /* @__PURE__ */ n(Ks, { className: "size-5 text-black/90" }),
546
+ /* @__PURE__ */ n(Xs, { className: "size-5 text-black/90" }),
547
547
  /* @__PURE__ */ n("span", { className: "sr-only", children: "More options" })
548
548
  ]
549
549
  }
@@ -565,7 +565,7 @@ const _e = ({
565
565
  disabled: y,
566
566
  "aria-busy": y,
567
567
  children: [
568
- y ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Xs, { className: "h-5 w-5" }),
568
+ y ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(qs, { className: "h-5 w-5" }),
569
569
  /* @__PURE__ */ n("span", { children: "Delete Conversation" })
570
570
  ]
571
571
  }
@@ -584,7 +584,7 @@ const _e = ({
584
584
  disabled: _,
585
585
  "aria-busy": _,
586
586
  children: [
587
- _ ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Wt, { className: "h-5 w-5" }),
587
+ _ ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Kt, { className: "h-5 w-5" }),
588
588
  /* @__PURE__ */ n("span", { children: "Unblock" })
589
589
  ]
590
590
  }
@@ -595,13 +595,13 @@ const _e = ({
595
595
  disabled: _,
596
596
  "aria-busy": _,
597
597
  children: [
598
- _ ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Wt, { className: "h-5 w-5" }),
598
+ _ ? /* @__PURE__ */ n(Oe, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ n(Kt, { className: "h-5 w-5" }),
599
599
  /* @__PURE__ */ n("span", { children: "Block" })
600
600
  ]
601
601
  }
602
602
  ) }),
603
603
  r && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ f(Ne, { variant: "danger", onClick: z, children: [
604
- /* @__PURE__ */ n(fn, { className: "h-5 w-5" }),
604
+ /* @__PURE__ */ n(gn, { className: "h-5 w-5" }),
605
605
  /* @__PURE__ */ n("span", { children: "Report" })
606
606
  ] }) }),
607
607
  h
@@ -609,7 +609,7 @@ const _e = ({
609
609
  }
610
610
  )
611
611
  ] });
612
- }, qe = "flex size-10 flex-shrink-0 items-center justify-center rounded-full bg-white/65 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.06),0px_0px_0px_1px_rgba(0,0,0,0.04)] backdrop-blur-[40px] transition-filter duration-150 hover:brightness-95 aria-expanded:brightness-95 focus-ring", Aa = "CUSTOMER_PAID", Ra = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === Aa, La = ({
612
+ }, qe = "flex size-10 flex-shrink-0 items-center justify-center rounded-full bg-white/65 shadow-[0px_4px_8px_0px_rgba(0,0,0,0.06),0px_0px_0px_1px_rgba(0,0,0,0.04)] backdrop-blur-[40px] transition-filter duration-150 hover:brightness-95 aria-expanded:brightness-95 focus-ring", Ra = "CUSTOMER_PAID", La = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === Ra, Ma = ({
613
613
  className: e,
614
614
  onBack: t,
615
615
  showBackButton: s,
@@ -631,14 +631,14 @@ const _e = ({
631
631
  const { channel: v } = we(), { client: x } = He(), b = P.useMemo(
632
632
  () => {
633
633
  var A;
634
- return _n(
634
+ return yn(
635
635
  (A = v.state) == null ? void 0 : A.members,
636
636
  x == null ? void 0 : x.userID,
637
637
  v.type
638
638
  );
639
639
  },
640
640
  [(I = v.state) == null ? void 0 : I.members, x == null ? void 0 : x.userID, v.type]
641
- ), y = yn(b == null ? void 0 : b.user), _ = (M = b == null ? void 0 : b.user) == null ? void 0 : M.image, T = wn(v), L = Ra((S = v.data) == null ? void 0 : S.customer_tag) && (b == null ? void 0 : b.is_follower) === !0, E = a && T, z = L || E || !!w, F = async () => {
641
+ ), y = Nn(b == null ? void 0 : b.user), _ = (M = b == null ? void 0 : b.user) == null ? void 0 : M.image, T = _n(v), L = La((S = v.data) == null ? void 0 : S.customer_tag) && (b == null ? void 0 : b.is_follower) === !0, E = a && T, z = L || E || !!w, F = async () => {
642
642
  try {
643
643
  T ? await v.unpin() : await v.pin();
644
644
  } catch (A) {
@@ -674,7 +674,7 @@ const _e = ({
674
674
  {
675
675
  "aria-label": "Paid customer",
676
676
  className: "flex size-4 shrink-0 items-center justify-center rounded-full bg-[#34C759] text-white",
677
- children: /* @__PURE__ */ n(qs, { className: "size-2.5", weight: "bold" })
677
+ children: /* @__PURE__ */ n(Zs, { className: "size-2.5", weight: "bold" })
678
678
  }
679
679
  ),
680
680
  E && /* @__PURE__ */ n("span", { className: "messaging-header-star-badge flex overflow-hidden", children: /* @__PURE__ */ n(
@@ -686,7 +686,7 @@ const _e = ({
686
686
  }
687
687
  ) }),
688
688
  w && /* @__PURE__ */ n(
689
- gn,
689
+ pn,
690
690
  {
691
691
  "aria-hidden": "true",
692
692
  className: "size-4 shrink-0 text-black/65",
@@ -717,7 +717,7 @@ const _e = ({
717
717
  }),
718
718
  type: "button",
719
719
  "aria-label": "Back to conversations",
720
- children: /* @__PURE__ */ n(Zs, { className: "size-5 text-black/90" })
720
+ children: /* @__PURE__ */ n(Js, { className: "size-5 text-black/90" })
721
721
  }
722
722
  ) }),
723
723
  /* @__PURE__ */ n("div", { className: "flex min-w-0 justify-center", "data-dd-privacy": "mask", children: w ? /* @__PURE__ */ n(
@@ -752,7 +752,7 @@ const _e = ({
752
752
  }
753
753
  ),
754
754
  p && (c !== void 0 ? c : /* @__PURE__ */ n(
755
- Ta,
755
+ Aa,
756
756
  {
757
757
  channel: v,
758
758
  participant: b,
@@ -772,40 +772,40 @@ const _e = ({
772
772
  ] })
773
773
  }
774
774
  );
775
- }, Ma = (e) => /* @__PURE__ */ n(ds, { ...e, position: "center" });
776
- function Da(e) {
775
+ }, Da = (e) => /* @__PURE__ */ n(us, { ...e, position: "center" });
776
+ function Oa(e) {
777
777
  return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
778
778
  }
779
- function kn({
779
+ function Cn({
780
780
  message: e,
781
781
  viewerLanguage: t
782
782
  }) {
783
783
  var r;
784
- const s = e == null ? void 0 : e.text, a = Da(t);
784
+ const s = e == null ? void 0 : e.text, a = Oa(t);
785
785
  return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? s : s;
786
786
  }
787
- const Oa = ["linktr.ee"], qt = "messaging-attachment-v1_0";
788
- function Pa(e) {
787
+ const Pa = ["linktr.ee"], Zt = "messaging-attachment-v1_0";
788
+ function Fa(e) {
789
789
  try {
790
790
  return new URL(e).hostname.toLowerCase();
791
791
  } catch {
792
792
  return null;
793
793
  }
794
794
  }
795
- function Fa(e) {
796
- return Oa.some(
795
+ function za(e) {
796
+ return Pa.some(
797
797
  (t) => e === t || e.endsWith(`.${t}`)
798
798
  );
799
799
  }
800
800
  function ce(e) {
801
801
  const t = e == null ? void 0 : e.trim();
802
802
  if (!t) return;
803
- const s = Pa(t);
804
- if (!s || !Fa(s)) return t;
803
+ const s = Fa(t);
804
+ if (!s || !za(s)) return t;
805
805
  const a = new URL(t);
806
- return a.searchParams.get("io") === "true" && a.searchParams.get("size") === qt ? t : (a.searchParams.set("io", "true"), a.searchParams.set("size", qt), a.toString());
806
+ return a.searchParams.get("io") === "true" && a.searchParams.get("size") === Zt ? t : (a.searchParams.set("io", "true"), a.searchParams.set("size", Zt), a.toString());
807
807
  }
808
- const za = [
808
+ const $a = [
809
809
  [/pdf/, "pdf"],
810
810
  [/wordprocessingml|msword|\.doc/, "doc"],
811
811
  [/spreadsheetml|ms-excel|\.xls/, "xls"],
@@ -818,39 +818,39 @@ const za = [
818
818
  function de(e) {
819
819
  return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
820
820
  }
821
- function Cn(e) {
822
- const t = za.find(
821
+ function Sn(e) {
822
+ const t = $a.find(
823
823
  ([s]) => s.test(e)
824
824
  );
825
825
  return t ? t[1] : "generic";
826
826
  }
827
- const $a = {
828
- video: bn,
829
- audio: Qs,
830
- image: Js,
831
- document: pn
832
- }, Ba = {
833
- pdf: la,
834
- doc: ia,
835
- xls: ra,
836
- csv: aa,
837
- ppt: sa,
838
- zip: na,
839
- text: ta,
840
- markdown: ea,
841
- generic: pn
827
+ const Ba = {
828
+ video: vn,
829
+ audio: ea,
830
+ image: Qs,
831
+ document: bn
832
+ }, Ua = {
833
+ pdf: oa,
834
+ doc: la,
835
+ xls: ia,
836
+ csv: ra,
837
+ ppt: aa,
838
+ zip: sa,
839
+ text: na,
840
+ markdown: ta,
841
+ generic: bn
842
842
  };
843
- function Ua(e) {
843
+ function ja(e) {
844
844
  const t = de(e);
845
- return t !== "document" ? $a[t] : Ba[Cn(e)];
845
+ return t !== "document" ? Ba[t] : Ua[Sn(e)];
846
846
  }
847
847
  function ve(e, t) {
848
- return P.createElement(Ua(e), t);
848
+ return P.createElement(ja(e), t);
849
849
  }
850
- const ja = (e) => {
850
+ const Ha = (e) => {
851
851
  var t, s;
852
852
  return "touches" in e ? ((t = e.touches[0]) == null ? void 0 : t.clientX) ?? ((s = e.changedTouches[0]) == null ? void 0 : s.clientX) ?? 0 : e.clientX;
853
- }, Ha = ({
853
+ }, Va = ({
854
854
  source: e,
855
855
  mimeType: t,
856
856
  poster: s,
@@ -870,7 +870,7 @@ const ja = (e) => {
870
870
  const Y = D.getBoundingClientRect();
871
871
  return Math.max(
872
872
  0,
873
- Math.min(1, (ja(k) - Y.left) / Y.width)
873
+ Math.min(1, (Ha(k) - Y.left) / Y.width)
874
874
  );
875
875
  }, []), B = K((k) => {
876
876
  const D = m.current;
@@ -1051,7 +1051,7 @@ const ja = (e) => {
1051
1051
  },
1052
1052
  className: "shrink-0 text-white",
1053
1053
  "aria-label": w ? "Pause" : "Play",
1054
- children: w ? /* @__PURE__ */ n(oa, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(rt, { className: "size-5 translate-x-px", weight: "fill" })
1054
+ children: w ? /* @__PURE__ */ n(ca, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(rt, { className: "size-5 translate-x-px", weight: "fill" })
1055
1055
  }
1056
1056
  ),
1057
1057
  /* @__PURE__ */ f(
@@ -1099,7 +1099,7 @@ const ja = (e) => {
1099
1099
  ]
1100
1100
  }
1101
1101
  );
1102
- }, Zt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", Va = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", Sn = ({
1102
+ }, Jt = (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", En = ({
1103
1103
  mimeType: e,
1104
1104
  sourceUrl: t,
1105
1105
  thumbnailUrl: s,
@@ -1110,7 +1110,7 @@ const ja = (e) => {
1110
1110
  }) => {
1111
1111
  const l = de(e), [d, u] = $(!1), h = ce(t), m = ce(s);
1112
1112
  return t && (l === "video" || l === "audio") ? /* @__PURE__ */ n(
1113
- Ha,
1113
+ Va,
1114
1114
  {
1115
1115
  source: t,
1116
1116
  mimeType: e,
@@ -1157,11 +1157,11 @@ const ja = (e) => {
1157
1157
  {
1158
1158
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1159
1159
  children: ve(e, {
1160
- className: Zt(r),
1160
+ className: Jt(r),
1161
1161
  weight: "regular"
1162
1162
  })
1163
1163
  }
1164
- ) : s ? /* @__PURE__ */ n("div", { className: `relative ${Va(r)}`, children: /* @__PURE__ */ n(
1164
+ ) : s ? /* @__PURE__ */ n("div", { className: `relative ${Ga(r)}`, children: /* @__PURE__ */ n(
1165
1165
  "img",
1166
1166
  {
1167
1167
  src: m ?? s,
@@ -1174,12 +1174,12 @@ const ja = (e) => {
1174
1174
  {
1175
1175
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1176
1176
  children: ve(e, {
1177
- className: Zt(r),
1177
+ className: Jt(r),
1178
1178
  weight: "regular"
1179
1179
  })
1180
1180
  }
1181
1181
  );
1182
- }, En = ({
1182
+ }, In = ({
1183
1183
  variant: e,
1184
1184
  thumbnail: t,
1185
1185
  title: s,
@@ -1245,25 +1245,25 @@ const ja = (e) => {
1245
1245
  }
1246
1246
  );
1247
1247
  };
1248
- function In(e) {
1248
+ function Tn(e) {
1249
1249
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1250
1250
  }
1251
1251
  function ct(e) {
1252
1252
  return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#1e2330]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
1253
1253
  }
1254
- function Ga(e) {
1254
+ function Ya(e) {
1255
1255
  return e ? "bg-white/10" : "bg-black/5";
1256
1256
  }
1257
- function Ya(e) {
1257
+ function Wa(e) {
1258
1258
  return e ? "text-white" : "text-black";
1259
1259
  }
1260
- function Wa(e) {
1260
+ function Ka(e) {
1261
1261
  return e ? "text-white/55" : "text-black/55";
1262
1262
  }
1263
- function Ka(e) {
1263
+ function Xa(e) {
1264
1264
  return e ? "text-white/40" : "text-black/40";
1265
1265
  }
1266
- function Xa(e) {
1266
+ function qa(e) {
1267
1267
  return e ? "text-white/20" : "text-black/20";
1268
1268
  }
1269
1269
  const dt = ({ attachment: e, isMyMessage: t }) => {
@@ -1278,29 +1278,29 @@ const dt = ({ attachment: e, isMyMessage: t }) => {
1278
1278
  ) : /* @__PURE__ */ n(
1279
1279
  "div",
1280
1280
  {
1281
- className: `aspect-video w-full rounded-[20px] ${Ga(t)} flex items-center justify-center`,
1282
- children: /* @__PURE__ */ n(ca, { className: `size-12 ${Xa(t)}` })
1281
+ className: `aspect-video w-full rounded-[20px] ${Ya(t)} flex items-center justify-center`,
1282
+ children: /* @__PURE__ */ n(da, { className: `size-12 ${qa(t)}` })
1283
1283
  }
1284
1284
  ) }),
1285
1285
  /* @__PURE__ */ f("div", { className: "px-3 pb-3", children: [
1286
1286
  s && /* @__PURE__ */ n(
1287
1287
  "p",
1288
1288
  {
1289
- className: `truncate text-[14px] font-medium leading-5 ${Ya(t)}`,
1289
+ className: `truncate text-[14px] font-medium leading-5 ${Wa(t)}`,
1290
1290
  children: s
1291
1291
  }
1292
1292
  ),
1293
1293
  a && /* @__PURE__ */ n(
1294
1294
  "p",
1295
1295
  {
1296
- className: `truncate text-[12px] leading-4 ${Wa(t)}`,
1296
+ className: `truncate text-[12px] leading-4 ${Ka(t)}`,
1297
1297
  children: a
1298
1298
  }
1299
1299
  ),
1300
1300
  d && /* @__PURE__ */ n(
1301
1301
  "p",
1302
1302
  {
1303
- className: `mt-1 truncate text-[12px] leading-4 ${Ka(t)}`,
1303
+ className: `mt-1 truncate text-[12px] leading-4 ${Xa(t)}`,
1304
1304
  children: d
1305
1305
  }
1306
1306
  )
@@ -1325,7 +1325,7 @@ function ut(e) {
1325
1325
  var t;
1326
1326
  return (t = e.attachments) == null ? void 0 : t.find(Ve);
1327
1327
  }
1328
- async function qa(e, t) {
1328
+ async function Za(e, t) {
1329
1329
  let s;
1330
1330
  try {
1331
1331
  s = t ?? new URL(e).pathname.split("/").pop() ?? "download";
@@ -1337,7 +1337,7 @@ async function qa(e, t) {
1337
1337
  const r = await a.blob(), i = URL.createObjectURL(r), o = document.createElement("a");
1338
1338
  o.href = i, o.download = s, o.style.display = "none", document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(i);
1339
1339
  }
1340
- const Za = ({
1340
+ const Ja = ({
1341
1341
  url: e,
1342
1342
  filename: t
1343
1343
  }) => {
@@ -1349,7 +1349,7 @@ const Za = ({
1349
1349
  onClick: (i) => {
1350
1350
  i.stopPropagation();
1351
1351
  const o = window.open("", "_blank", "noopener,noreferrer");
1352
- a(!0), qa(e, t).then(() => {
1352
+ a(!0), Za(e, t).then(() => {
1353
1353
  o == null || o.close();
1354
1354
  }).catch(() => {
1355
1355
  o && (o.location.href = e);
@@ -1391,16 +1391,16 @@ function mt(e) {
1391
1391
  thumbnailUrl: h
1392
1392
  };
1393
1393
  }
1394
- const Tn = ({
1394
+ const An = ({
1395
1395
  resolvedUrl: e,
1396
1396
  resolvedType: t,
1397
1397
  title: s,
1398
1398
  fileSize: a,
1399
1399
  thumbnailUrl: r
1400
1400
  }) => {
1401
- const i = a !== void 0 ? In(a) : void 0;
1401
+ const i = a !== void 0 ? Tn(a) : void 0;
1402
1402
  return /* @__PURE__ */ n(
1403
- En,
1403
+ In,
1404
1404
  {
1405
1405
  variant: "dark",
1406
1406
  title: s,
@@ -1408,7 +1408,7 @@ const Tn = ({
1408
1408
  mimeType: t,
1409
1409
  detail: i,
1410
1410
  thumbnail: /* @__PURE__ */ n(
1411
- Sn,
1411
+ En,
1412
1412
  {
1413
1413
  mimeType: t,
1414
1414
  sourceUrl: e,
@@ -1419,23 +1419,23 @@ const Tn = ({
1419
1419
  )
1420
1420
  }
1421
1421
  );
1422
- }, An = ({
1422
+ }, Rn = ({
1423
1423
  resolvedUrl: e,
1424
1424
  resolvedType: t,
1425
1425
  title: s,
1426
1426
  fileSize: a,
1427
1427
  thumbnailUrl: r
1428
1428
  }) => {
1429
- const i = de(t), o = a !== void 0 ? In(a) : void 0;
1429
+ const i = de(t), o = a !== void 0 ? Tn(a) : void 0;
1430
1430
  return /* @__PURE__ */ n(
1431
- En,
1431
+ In,
1432
1432
  {
1433
1433
  variant: "light",
1434
1434
  title: s,
1435
1435
  mimeType: t,
1436
1436
  detail: o,
1437
1437
  thumbnail: /* @__PURE__ */ n(
1438
- Sn,
1438
+ En,
1439
1439
  {
1440
1440
  mimeType: t,
1441
1441
  sourceUrl: e,
@@ -1445,10 +1445,10 @@ const Tn = ({
1445
1445
  containedImage: i === "image" || i === "document"
1446
1446
  }
1447
1447
  ),
1448
- action: /* @__PURE__ */ n(Za, { url: e, filename: s })
1448
+ action: /* @__PURE__ */ n(Ja, { url: e, filename: s })
1449
1449
  }
1450
1450
  );
1451
- }, Ja = ({
1451
+ }, Qa = ({
1452
1452
  message: e,
1453
1453
  isMyMessage: t = !1
1454
1454
  }) => {
@@ -1485,46 +1485,46 @@ const Tn = ({
1485
1485
  attachment: s,
1486
1486
  isMyMessage: t
1487
1487
  }
1488
- ) }) : t ? /* @__PURE__ */ n(Tn, { ...a }) : /* @__PURE__ */ n(An, { ...a })
1488
+ ) }) : t ? /* @__PURE__ */ n(An, { ...a }) : /* @__PURE__ */ n(Rn, { ...a })
1489
1489
  }
1490
1490
  ) })
1491
1491
  }
1492
1492
  )
1493
1493
  ] });
1494
- }, Qa = ({
1494
+ }, er = ({
1495
1495
  message: e
1496
1496
  }) => {
1497
1497
  const t = ut(e);
1498
1498
  if (t)
1499
1499
  return /* @__PURE__ */ n("div", { className: ct(!0), "data-dd-privacy": "mask", children: /* @__PURE__ */ n(dt, { attachment: t, isMyMessage: !0 }) });
1500
1500
  const s = mt(e);
1501
- return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(Tn, { ...s }) }) : null;
1502
- }, er = ({
1501
+ return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(An, { ...s }) }) : null;
1502
+ }, tr = ({
1503
1503
  message: e
1504
1504
  }) => {
1505
1505
  const t = ut(e);
1506
1506
  if (t)
1507
1507
  return /* @__PURE__ */ n("div", { className: ct(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ n(dt, { attachment: t, isMyMessage: !1 }) });
1508
1508
  const s = mt(e);
1509
- return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(An, { ...s }) }) : null;
1510
- }, no = Object.assign(Ja, {
1511
- Creator: Qa,
1512
- Visitor: er
1513
- }), tr = {
1509
+ return s ? /* @__PURE__ */ n("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ n(Rn, { ...s }) }) : null;
1510
+ }, so = Object.assign(Qa, {
1511
+ Creator: er,
1512
+ Visitor: tr
1513
+ }), nr = {
1514
1514
  isUnlocking: () => !1
1515
- }, nr = {
1516
- LockedAttachment: tr
1517
- }, Rn = je({}), so = Rn.Provider;
1518
- function sr(e) {
1519
- return xe(Rn)[e] ?? nr[e];
1515
+ }, sr = {
1516
+ LockedAttachment: nr
1517
+ }, Ln = je({}), ao = Ln.Provider;
1518
+ function ar(e) {
1519
+ return xe(Ln)[e] ?? sr[e];
1520
1520
  }
1521
- const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import("./Card-Cy-pEAbc.js")), ir = () => /* @__PURE__ */ n(
1521
+ const rr = P.lazy(() => import("./Card-BzvDr-pU.js")), ir = P.lazy(() => import("./Card-DZYRFXBB.js")), lr = () => /* @__PURE__ */ n(
1522
1522
  "div",
1523
1523
  {
1524
1524
  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)]",
1525
1525
  "aria-hidden": !0
1526
1526
  }
1527
- ), Pe = (e) => /* @__PURE__ */ n(is, { fallback: /* @__PURE__ */ n(ir, {}), children: e.contentType === "text" ? /* @__PURE__ */ n(ar, { ...e }) : /* @__PURE__ */ n(rr, { ...e }) }), lr = ({ size: e = 15 }) => /* @__PURE__ */ n(
1527
+ ), Pe = (e) => /* @__PURE__ */ n(ls, { fallback: /* @__PURE__ */ n(lr, {}), children: e.contentType === "text" ? /* @__PURE__ */ n(rr, { ...e }) : /* @__PURE__ */ n(ir, { ...e }) }), or = ({ size: e = 15 }) => /* @__PURE__ */ n(
1528
1528
  "svg",
1529
1529
  {
1530
1530
  width: e,
@@ -1541,10 +1541,10 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1541
1541
  }
1542
1542
  )
1543
1543
  }
1544
- ), or = (e) => {
1544
+ ), cr = (e) => {
1545
1545
  var t;
1546
1546
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === oe.TIP;
1547
- }, Ln = (e) => {
1547
+ }, Mn = (e) => {
1548
1548
  var t;
1549
1549
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === oe.PAID;
1550
1550
  }, ze = (e) => {
@@ -1553,15 +1553,18 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1553
1553
  }, ht = (e) => {
1554
1554
  var t;
1555
1555
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === oe.ATTACHMENT;
1556
- }, cr = (e) => {
1556
+ }, dr = (e) => {
1557
1557
  var t;
1558
1558
  return ht(e) && ((t = e.metadata) == null ? void 0 : t.attachment_content_type) === "text";
1559
- }, dr = (e) => {
1559
+ }, ur = (e) => {
1560
1560
  var t;
1561
1561
  return ht(e) && ((t = e.metadata) == null ? void 0 : t.attachment_content_type) !== "text";
1562
- }, Mn = (e) => or(e) || Ln(e), ur = (e) => {
1562
+ }, ft = (e) => cr(e) || Mn(e), mr = (e) => {
1563
1563
  var t;
1564
- return Mn(e) && !((t = e.text) != null && t.trim());
1564
+ return ft(e) && !Dn(e) && !!((t = e.metadata) != null && t.amount_text);
1565
+ }, Dn = (e) => {
1566
+ var t;
1567
+ return ft(e) && !((t = e.text) != null && t.trim());
1565
1568
  }, Ze = ({
1566
1569
  message: e,
1567
1570
  standalone: t = !1,
@@ -1569,19 +1572,19 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1569
1572
  hasAttachment: a = !1
1570
1573
  }) => {
1571
1574
  var g;
1572
- const r = Mn(e), i = ze(e);
1575
+ const r = ft(e), i = ze(e);
1573
1576
  if (!r && !i)
1574
1577
  return null;
1575
1578
  if (r) {
1576
1579
  const c = (g = e.metadata) == null ? void 0 : g.amount_text;
1577
1580
  if (!c) return null;
1578
- const p = t ? "message-tip-standalone inline-flex items-center gap-1.5 px-3.5 py-2.5 rounded-[18px] text-[14px] font-medium text-[#016e1a] bg-[#dbf0e0]" : "message-tag--tip inline-flex items-center gap-1 text-[12px] leading-[2] font-medium text-[#016630]", w = Ln(e) ? "message" : "tip", v = t ? `${c} ${w}` : `Delivered with ${c} ${w}`;
1581
+ const p = t ? "message-tip-standalone inline-flex items-center gap-1.5 px-3.5 py-2.5 rounded-[18px] text-[14px] font-medium text-[#016e1a] bg-[#dbf0e0]" : "message-tag--tip inline-flex items-center gap-1 text-[12px] leading-[2] font-medium text-[#016630]", w = Mn(e) ? "message" : "tip", v = t ? `${c} ${w}` : `Delivered with ${c} ${w}`;
1579
1582
  return /* @__PURE__ */ f("div", { className: p, children: [
1580
- /* @__PURE__ */ n(da, { size: t ? 14 : 12 }),
1583
+ /* @__PURE__ */ n(ua, { size: t ? 14 : 12 }),
1581
1584
  /* @__PURE__ */ n("span", { children: v })
1582
1585
  ] });
1583
1586
  }
1584
- const o = s && a, l = o ? "Sent with AI" : "Sent by AI Assistant", d = "inline-flex items-center text-[10px] font-normal leading-4 tracking-[0.2px]", u = o ? "justify-end gap-2 text-black/30" : s ? "w-full justify-start gap-1.5 mt-3 px-4 text-white/55" : "w-full justify-start gap-1.5 mt-3 px-4 text-black/30", h = /* @__PURE__ */ n("span", { className: "text-left", children: l }), m = /* @__PURE__ */ n("span", { className: "inline-flex items-center leading-none", children: /* @__PURE__ */ n(lr, { size: o ? 12 : 15 }) });
1587
+ const o = s && a, l = o ? "Sent with AI" : "Sent by AI Assistant", d = "inline-flex items-center text-[10px] font-normal leading-4 tracking-[0.2px]", u = o ? "justify-end gap-2 text-black/30" : s ? "w-full justify-start gap-1.5 mt-3 px-4 text-white/55" : "w-full justify-start gap-1.5 mt-3 px-4 text-black/30", h = /* @__PURE__ */ n("span", { className: "text-left", children: l }), m = /* @__PURE__ */ n("span", { className: "inline-flex items-center leading-none", children: /* @__PURE__ */ n(or, { size: o ? 12 : 15 }) });
1585
1588
  return /* @__PURE__ */ n(
1586
1589
  "div",
1587
1590
  {
@@ -1596,7 +1599,7 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1596
1599
  ] })
1597
1600
  }
1598
1601
  );
1599
- }, Jt = `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%`, mr = {
1602
+ }, Qt = `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%`, hr = {
1600
1603
  me: "var(--str-chat__own-message-bubble-background-color, #1e2330)",
1601
1604
  other: "var(--str-chat__message-bubble-background-color, #f1f0ee)"
1602
1605
  }, $e = ({ side: e }) => /* @__PURE__ */ n(
@@ -1609,24 +1612,24 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1609
1612
  insetInlineStart: e === "other" ? "calc(-1 * 0.3125rem)" : void 0,
1610
1613
  transform: e === "other" ? "scaleX(-1)" : void 0,
1611
1614
  transformOrigin: "center",
1612
- backgroundColor: mr[e],
1613
- WebkitMask: Jt,
1614
- mask: Jt
1615
+ backgroundColor: hr[e],
1616
+ WebkitMask: Qt,
1617
+ mask: Qt
1615
1618
  }
1616
1619
  }
1617
- ), Dn = je(
1620
+ ), On = je(
1618
1621
  void 0
1619
- ), hr = (e) => {
1622
+ ), fr = (e) => {
1620
1623
  var s;
1621
1624
  const t = (s = e.metadata) == null ? void 0 : s.outbound_id;
1622
1625
  return typeof t == "string" ? t : void 0;
1623
- }, fr = (e, t) => {
1626
+ }, gr = (e, t) => {
1624
1627
  if (!t || !(e != null && e.length))
1625
1628
  return;
1626
1629
  const s = /* @__PURE__ */ new Set();
1627
1630
  let a;
1628
1631
  for (const r of e) {
1629
- const i = hr(r);
1632
+ const i = fr(r);
1630
1633
  if (!i || s.has(i))
1631
1634
  continue;
1632
1635
  s.add(i);
@@ -1637,7 +1640,7 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1637
1640
  });
1638
1641
  }
1639
1642
  return a;
1640
- }, gr = (e, t) => {
1643
+ }, pr = (e, t) => {
1641
1644
  if (e === t)
1642
1645
  return !0;
1643
1646
  if (!e || !t)
@@ -1649,10 +1652,10 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1649
1652
  return e[r].id === ((i = t[r]) == null ? void 0 : i.id) && e[r].name === ((o = t[r]) == null ? void 0 : o.name);
1650
1653
  }
1651
1654
  );
1652
- }, pr = (e, t) => {
1653
- const s = fr(e, t), [a, r] = $(s);
1654
- return gr(a, s) ? a : (r(s), s);
1655
- }, ft = () => {
1655
+ }, br = (e, t) => {
1656
+ const s = gr(e, t), [a, r] = $(s);
1657
+ return pr(a, s) ? a : (r(s), s);
1658
+ }, gt = () => {
1656
1659
  const { message: e } = fe("SentMessageDeliveryStatus"), { messages: t } = we("SentMessageDeliveryStatus"), s = (() => {
1657
1660
  if (t)
1658
1661
  for (let a = t.length - 1; a >= 0; a -= 1) {
@@ -1662,10 +1665,10 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1662
1665
  }
1663
1666
  })();
1664
1667
  return e.id === s;
1665
- }, Je = () => ft() ? /* @__PURE__ */ f(q, { children: [
1666
- /* @__PURE__ */ n(ha, { weight: "bold", "aria-hidden": "true" }),
1668
+ }, Je = () => gt() ? /* @__PURE__ */ f(q, { children: [
1669
+ /* @__PURE__ */ n(fa, { weight: "bold", "aria-hidden": "true" }),
1667
1670
  /* @__PURE__ */ n("span", { "data-testid": "sent-message-delivery-status", children: "Delivered" })
1668
- ] }) : null, br = () => ft() ? /* @__PURE__ */ f(q, { children: [
1671
+ ] }) : null, vr = () => gt() ? /* @__PURE__ */ f(q, { children: [
1669
1672
  /* @__PURE__ */ n(
1670
1673
  be,
1671
1674
  {
@@ -1675,12 +1678,12 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1675
1678
  }
1676
1679
  ),
1677
1680
  /* @__PURE__ */ n("span", { "data-testid": "sent-message-sending-status", children: "Sending" })
1678
- ] }) : null, vr = ({
1681
+ ] }) : null, xr = ({
1679
1682
  outbound: e,
1680
1683
  onOutboundClick: t
1681
1684
  }) => {
1682
1685
  const s = e.name || "Broadcast", r = /* @__PURE__ */ f(q, { children: [
1683
- /* @__PURE__ */ n("span", { className: "sent-message-outbound-badge", "aria-hidden": "true", children: /* @__PURE__ */ n(ma, { weight: "fill" }) }),
1686
+ /* @__PURE__ */ n("span", { className: "sent-message-outbound-badge", "aria-hidden": "true", children: /* @__PURE__ */ n(ha, { weight: "fill" }) }),
1684
1687
  /* @__PURE__ */ n(
1685
1688
  "span",
1686
1689
  {
@@ -1702,56 +1705,56 @@ const ar = P.lazy(() => import("./Card-BzvDr-pU.js")), rr = P.lazy(() => import(
1702
1705
  children: r
1703
1706
  }
1704
1707
  ) : r;
1705
- }, xr = () => /* @__PURE__ */ f("span", { className: "str-chat__message-status sent-message-status--failed", children: [
1706
- /* @__PURE__ */ n(ua, { weight: "bold", "aria-hidden": "true" }),
1708
+ }, wr = () => /* @__PURE__ */ f("span", { className: "str-chat__message-status sent-message-status--failed", children: [
1709
+ /* @__PURE__ */ n(ma, { weight: "bold", "aria-hidden": "true" }),
1707
1710
  /* @__PURE__ */ n("span", { "data-testid": "sent-message-failed-status", children: "Failed to send" })
1708
- ] }), wr = ({
1711
+ ] }), _r = ({
1709
1712
  onOutboundClick: e,
1710
1713
  resolvedOutbound: t
1711
1714
  }) => {
1712
1715
  var h;
1713
1716
  const { isMyMessage: s, message: a, threadList: r } = fe(
1714
1717
  "SentMessageDeliveryStatus"
1715
- ), i = s(), o = ft();
1718
+ ), i = s(), o = gt();
1716
1719
  if (r)
1717
1720
  return null;
1718
1721
  if (a.status === "failed" && i && a.type !== "error")
1719
- return /* @__PURE__ */ n(xr, {});
1722
+ return /* @__PURE__ */ n(wr, {});
1720
1723
  if (!i)
1721
1724
  return null;
1722
1725
  const l = (h = a.metadata) == null ? void 0 : h.outbound_id, d = a.status !== "sending" && a.status !== "failed" && l && t ? /* @__PURE__ */ n(
1723
- vr,
1726
+ xr,
1724
1727
  {
1725
1728
  outbound: t,
1726
1729
  onOutboundClick: e
1727
1730
  }
1728
- ) : null, u = /* @__PURE__ */ n(
1729
- us,
1731
+ ) : null, u = mr(a) ? null : /* @__PURE__ */ n(
1732
+ ms,
1730
1733
  {
1731
1734
  MessageSentStatus: Je,
1732
1735
  MessageDeliveredStatus: Je,
1733
1736
  MessageReadStatus: Je,
1734
- MessageSendingStatus: br
1737
+ MessageSendingStatus: vr
1735
1738
  }
1736
1739
  );
1737
1740
  return d ? /* @__PURE__ */ f("span", { className: "sent-message-status-row", children: [
1738
1741
  u,
1739
- o && /* @__PURE__ */ n("span", { className: "sent-message-outbound-separator", "aria-hidden": "true", children: "•" }),
1742
+ u && o && /* @__PURE__ */ n("span", { className: "sent-message-outbound-separator", "aria-hidden": "true", children: "•" }),
1740
1743
  d
1741
1744
  ] }) : u;
1742
- }, _r = /^([a-z][a-z0-9+.-]*):/i, yr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
1743
- function gt(e) {
1745
+ }, yr = /^([a-z][a-z0-9+.-]*):/i, Nr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
1746
+ function pt(e) {
1744
1747
  if (typeof e != "string") return;
1745
1748
  const t = e.trim();
1746
1749
  if (t === "") return;
1747
- const s = _r.exec(t);
1750
+ const s = yr.exec(t);
1748
1751
  if (s) {
1749
1752
  const a = s[1].toLowerCase();
1750
- return yr.has(a) ? t : void 0;
1753
+ return Nr.has(a) ? t : void 0;
1751
1754
  }
1752
1755
  return t.startsWith("//") || t.startsWith("/") ? t : `https://${t}`;
1753
1756
  }
1754
- const Nr = {
1757
+ const kr = {
1755
1758
  dark: {
1756
1759
  primary: "bg-white text-[#121110] hover:bg-white/90",
1757
1760
  secondary: "bg-white/15 text-white hover:bg-white/25"
@@ -1760,7 +1763,7 @@ const Nr = {
1760
1763
  primary: "bg-[#121110] text-white hover:bg-[#2a2928]",
1761
1764
  secondary: "bg-black/[0.06] text-[#121110] hover:bg-black/10"
1762
1765
  }
1763
- }, On = ({
1766
+ }, Pn = ({
1764
1767
  variant: e,
1765
1768
  cta: t,
1766
1769
  fullWidth: s = !0,
@@ -1770,8 +1773,8 @@ const Nr = {
1770
1773
  "inline-flex h-10 items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
1771
1774
  s ? "w-full" : "min-w-0",
1772
1775
  !a && "mt-2",
1773
- Nr[e][r]
1774
- ), o = s ? t.label : /* @__PURE__ */ n("span", { className: "min-w-0 truncate", children: t.label }), l = gt(t.href);
1776
+ kr[e][r]
1777
+ ), o = s ? t.label : /* @__PURE__ */ n("span", { className: "min-w-0 truncate", children: t.label }), l = pt(t.href);
1775
1778
  return l ? /* @__PURE__ */ n(
1776
1779
  "a",
1777
1780
  {
@@ -1797,16 +1800,16 @@ const Nr = {
1797
1800
  children: o
1798
1801
  }
1799
1802
  );
1800
- }, kr = {
1803
+ }, Cr = {
1801
1804
  dark: "text-white",
1802
1805
  light: "text-black/90"
1803
- }, Cr = "text-white/30", Qt = {
1806
+ }, Sr = "text-white/30", en = {
1804
1807
  dark: "text-white/55",
1805
1808
  light: "text-black/55"
1806
- }, Sr = {
1809
+ }, Er = {
1807
1810
  dark: "bg-white/25",
1808
1811
  light: "bg-black/15"
1809
- }, pt = ({
1812
+ }, bt = ({
1810
1813
  variant: e,
1811
1814
  ctaSurface: t,
1812
1815
  chinTextColor: s,
@@ -1825,19 +1828,19 @@ const Nr = {
1825
1828
  return null;
1826
1829
  const y = g && !a, _ = N(
1827
1830
  "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px]",
1828
- s == null && (y ? Cr : kr[e])
1831
+ s == null && (y ? Sr : Cr[e])
1829
1832
  ), T = N(
1830
1833
  "truncate text-[12px] leading-4 tracking-[0.24px]",
1831
- s == null && Qt[e]
1834
+ s == null && en[e]
1832
1835
  ), L = N(
1833
1836
  "text-[12px] leading-4 tracking-[0.24px]",
1834
1837
  o <= 1 && "truncate",
1835
- s == null && Qt[e]
1838
+ s == null && en[e]
1836
1839
  );
1837
1840
  if (m) {
1838
1841
  const F = N(
1839
1842
  "animate-pulse rounded",
1840
- Sr[e]
1843
+ Er[e]
1841
1844
  );
1842
1845
  return /* @__PURE__ */ n("div", { className: "shrink-0 px-4 py-3", children: /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-col gap-[2px]", children: [
1843
1846
  /* @__PURE__ */ n("div", { className: N("h-5 w-3/4", F), "aria-hidden": !0 }),
@@ -1878,9 +1881,9 @@ const Nr = {
1878
1881
  ] }),
1879
1882
  h && /* @__PURE__ */ n("div", { className: "shrink-0", children: h })
1880
1883
  ] }),
1881
- u && /* @__PURE__ */ n(On, { variant: t ?? e, cta: u })
1884
+ u && /* @__PURE__ */ n(Pn, { variant: t ?? e, cta: u })
1882
1885
  ] });
1883
- }, Er = "Loading link preview", Ir = N(
1886
+ }, Ir = "Loading link preview", Tr = N(
1884
1887
  // Width is a channel-scoped token: default 290px, but a read-only surface with no
1885
1888
  // composer (the official channel) sets `--lt-msg-card-width` on its root to widen the
1886
1889
  // content column (see ChannelView). Consumers that don't set the var keep 290px.
@@ -1890,7 +1893,7 @@ const Nr = {
1890
1893
  // 20px corners — no token exists for it in the component-library preset,
1891
1894
  // whose radius scale is sm .5rem / md 1rem / lg 1.5rem / xl 4rem.
1892
1895
  "rounded-[20px]"
1893
- ), Tr = "flex h-[250px] flex-col", Ee = ({
1896
+ ), Ar = "flex h-[250px] flex-col", Ee = ({
1894
1897
  variant: e,
1895
1898
  children: t,
1896
1899
  href: s,
@@ -1906,8 +1909,8 @@ const Nr = {
1906
1909
  }) => {
1907
1910
  const g = s != null || a != null, c = N(
1908
1911
  "messaging-link-card",
1909
- Ir,
1910
- u ? Tr : "block",
1912
+ Tr,
1913
+ u ? Ar : "block",
1911
1914
  // The plain fallback fill, kept underneath the `--accent` derivation: the
1912
1915
  // `.messaging-link-card[style*='--accent']` rule in `styles.css` outranks
1913
1916
  // this single class, so a published accent paints over it and an unset one
@@ -1929,7 +1932,7 @@ const Nr = {
1929
1932
  // tailwind preset — outline-none + a black 2px focus-visible ring
1930
1933
  // with offset, so keyboard users can see the focused card.
1931
1934
  g ? "cursor-pointer no-underline focus-ring" : null
1932
- ), p = h ? { role: "status", "aria-busy": !0, "aria-label": Er } : void 0, w = d ? { "--accent": d } : void 0, v = o ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute right-3 top-3 z-10", children: o }) : null;
1935
+ ), p = h ? { role: "status", "aria-busy": !0, "aria-label": Ir } : void 0, w = d ? { "--accent": d } : void 0, v = o ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute right-3 top-3 z-10", children: o }) : null;
1933
1936
  return s ? /* @__PURE__ */ f(
1934
1937
  "a",
1935
1938
  {
@@ -1980,17 +1983,17 @@ const Nr = {
1980
1983
  ]
1981
1984
  }
1982
1985
  );
1983
- }, en = {
1986
+ }, tn = {
1984
1987
  dark: "bg-white/10",
1985
1988
  light: "bg-black/5"
1986
- }, Ar = {
1989
+ }, Rr = {
1987
1990
  dark: "size-16 text-white/25",
1988
1991
  light: "size-16 text-black/25"
1989
- }, Te = (e, t) => !!t && !!e && de(e) === "audio", bt = (e, t) => {
1992
+ }, Te = (e, t) => !!t && !!e && de(e) === "audio", vt = (e, t) => {
1990
1993
  if (!t || !e) return !1;
1991
1994
  const s = de(e);
1992
1995
  return s === "video" || s === "audio";
1993
- }, vt = "bg-[#F2F3F4]", Ie = ({
1996
+ }, xt = "bg-[#F2F3F4]", Ie = ({
1994
1997
  variant: e,
1995
1998
  thumbnailUrl: t,
1996
1999
  sourceUrl: s,
@@ -2033,7 +2036,7 @@ const Nr = {
2033
2036
  {
2034
2037
  className: N(
2035
2038
  "h-full w-full animate-pulse",
2036
- en[e]
2039
+ tn[e]
2037
2040
  ),
2038
2041
  "aria-hidden": !0
2039
2042
  }
@@ -2077,10 +2080,10 @@ const Nr = {
2077
2080
  {
2078
2081
  className: N(
2079
2082
  "flex h-full w-full items-center justify-center",
2080
- en[e]
2083
+ tn[e]
2081
2084
  ),
2082
2085
  children: ve(r, {
2083
- className: Ar[e],
2086
+ className: Rr[e],
2084
2087
  weight: "regular"
2085
2088
  })
2086
2089
  }
@@ -2090,14 +2093,14 @@ const Nr = {
2090
2093
  ]
2091
2094
  }
2092
2095
  );
2093
- }, Rr = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
2094
- function Lr(e) {
2096
+ }, Lr = /^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/i;
2097
+ function Mr(e) {
2095
2098
  const t = e.trim();
2096
2099
  return t.startsWith("#") ? t : `#${t}`;
2097
2100
  }
2098
- const Mr = "#FFFFFF", Pn = "#040403", Dr = {
2099
- dark: Mr,
2100
- light: Pn
2101
+ const Dr = "#FFFFFF", Fn = "#040403", Or = {
2102
+ dark: Dr,
2103
+ light: Fn
2101
2104
  };
2102
2105
  function Ge({
2103
2106
  variant: e,
@@ -2114,7 +2117,7 @@ function Ge({
2114
2117
  }, [r]);
2115
2118
  const u = P.useCallback(() => {
2116
2119
  d(!0);
2117
- }, []), h = Te(i, o), c = a === "featured" && !!r && !h && !l && s === "ready" && t != null && Rr.test(t.trim()) ? Lr(t) : void 0, p = h ? Pn : Dr[e];
2120
+ }, []), h = Te(i, o), c = a === "featured" && !!r && !h && !l && s === "ready" && t != null && Lr.test(t.trim()) ? Mr(t) : void 0, p = h ? Fn : Or[e];
2118
2121
  return {
2119
2122
  thumbnailUrl: l ? void 0 : r,
2120
2123
  accentHex: c,
@@ -2124,7 +2127,7 @@ function Ge({
2124
2127
  onImageError: u
2125
2128
  };
2126
2129
  }
2127
- const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] text-white focus-ring", Pr = "relative before:absolute before:-inset-[10px] before:content-['']", Fr = ({
2130
+ const Pr = "flex size-6 items-center justify-center rounded-full bg-[#121110] text-white focus-ring", Fr = "relative before:absolute before:-inset-[10px] before:content-['']", zr = ({
2128
2131
  title: e,
2129
2132
  placeholderTitle: t,
2130
2133
  description: s,
@@ -2157,8 +2160,8 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2157
2160
  onClick: c,
2158
2161
  "aria-label": w,
2159
2162
  className: N(
2160
- Or,
2161
- !x && Pr
2163
+ Pr,
2164
+ !x && Fr
2162
2165
  ),
2163
2166
  children: /* @__PURE__ */ n(lt, { className: "size-3", weight: "bold" })
2164
2167
  }
@@ -2169,10 +2172,10 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2169
2172
  onClick: p,
2170
2173
  "aria-label": "Edit attachment",
2171
2174
  className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
2172
- children: /* @__PURE__ */ n(fa, { className: "size-5", weight: "regular" })
2175
+ children: /* @__PURE__ */ n(ga, { className: "size-5", weight: "regular" })
2173
2176
  }
2174
2177
  ) : void 0;
2175
- return x && !b.isLoading ? /* @__PURE__ */ n(Ee, { variant: "dark", bgClassName: vt, children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2 pr-3", children: [
2178
+ return x && !b.isLoading ? /* @__PURE__ */ n(Ee, { variant: "dark", bgClassName: xt, children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2 pr-3", children: [
2176
2179
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
2177
2180
  Ie,
2178
2181
  {
@@ -2206,7 +2209,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2206
2209
  }
2207
2210
  ),
2208
2211
  /* @__PURE__ */ n(
2209
- pt,
2212
+ bt,
2210
2213
  {
2211
2214
  chinTextColor: b.chinTextColor,
2212
2215
  variant: "dark",
@@ -2225,7 +2228,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2225
2228
  ]
2226
2229
  }
2227
2230
  );
2228
- }, xt = ({
2231
+ }, wt = ({
2229
2232
  accentHex: e,
2230
2233
  side: t,
2231
2234
  visible: s,
@@ -2250,7 +2253,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2250
2253
  }
2251
2254
  )
2252
2255
  ] })
2253
- ) : /* @__PURE__ */ n(q, { children: a }), zr = ({
2256
+ ) : /* @__PURE__ */ n(q, { children: a }), $r = ({
2254
2257
  title: e,
2255
2258
  description: t,
2256
2259
  descriptionLines: s,
@@ -2266,7 +2269,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2266
2269
  onClick: g,
2267
2270
  groupPosition: c = "single"
2268
2271
  }) => {
2269
- const p = bt(r, o), w = gt(a), v = u == null && w != null && !p ? w : void 0, x = u == null && !p ? g : void 0, b = m !== "loading" && Te(r, o) ? vt : void 0, y = u && g ? {
2272
+ const p = vt(r, o), w = pt(a), v = u == null && w != null && !p ? w : void 0, x = u == null && !p ? g : void 0, b = m !== "loading" && Te(r, o) ? xt : void 0, y = u && g ? {
2270
2273
  ...u,
2271
2274
  onClick: () => {
2272
2275
  var T;
@@ -2282,7 +2285,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2282
2285
  sourceUrl: o
2283
2286
  });
2284
2287
  return /* @__PURE__ */ n(
2285
- xt,
2288
+ wt,
2286
2289
  {
2287
2290
  accentHex: _.accentHex,
2288
2291
  side: "receiver",
@@ -2313,7 +2316,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2313
2316
  }
2314
2317
  ),
2315
2318
  /* @__PURE__ */ n(
2316
- pt,
2319
+ bt,
2317
2320
  {
2318
2321
  chinTextColor: _.chinTextColor,
2319
2322
  variant: "light",
@@ -2332,7 +2335,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2332
2335
  )
2333
2336
  }
2334
2337
  );
2335
- }, $r = ({
2338
+ }, Br = ({
2336
2339
  title: e,
2337
2340
  placeholderTitle: t,
2338
2341
  description: s,
@@ -2349,7 +2352,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2349
2352
  onClick: c,
2350
2353
  groupPosition: p = "single"
2351
2354
  }) => {
2352
- const w = bt(i, l), v = gt(r), x = h == null && v != null && !w ? v : void 0, b = h == null && !w && x != null ? c : void 0, y = g !== "loading" && Te(i, l), _ = Ge({
2355
+ const w = vt(i, l), v = pt(r), x = h == null && v != null && !w ? v : void 0, b = h == null && !w && x != null ? c : void 0, y = g !== "loading" && Te(i, l), _ = Ge({
2353
2356
  variant: "dark",
2354
2357
  accentColor: m,
2355
2358
  status: g,
@@ -2359,7 +2362,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2359
2362
  sourceUrl: l
2360
2363
  });
2361
2364
  return /* @__PURE__ */ n(
2362
- xt,
2365
+ wt,
2363
2366
  {
2364
2367
  accentHex: _.accentHex,
2365
2368
  side: "sender",
@@ -2373,7 +2376,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2373
2376
  fixedHeight: d === "featured" && !y,
2374
2377
  accentHex: _.accentHex,
2375
2378
  busy: _.isLoading,
2376
- bgClassName: y ? vt : void 0,
2379
+ bgClassName: y ? xt : void 0,
2377
2380
  children: [
2378
2381
  d === "featured" && /* @__PURE__ */ n(
2379
2382
  Ie,
@@ -2388,7 +2391,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2388
2391
  }
2389
2392
  ),
2390
2393
  /* @__PURE__ */ n(
2391
- pt,
2394
+ bt,
2392
2395
  {
2393
2396
  chinTextColor: _.chinTextColor,
2394
2397
  variant: "dark",
@@ -2409,19 +2412,19 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2409
2412
  }
2410
2413
  );
2411
2414
  }, it = {
2412
- Composer: Fr,
2413
- Sent: $r,
2414
- Received: zr
2415
- }, Br = {
2415
+ Composer: zr,
2416
+ Sent: Br,
2417
+ Received: $r
2418
+ }, Ur = {
2416
2419
  dark: "bg-[#1e2330]",
2417
2420
  light: "bg-[#f2f1ef]"
2418
- }, Ur = {
2421
+ }, jr = {
2419
2422
  dark: "text-white",
2420
2423
  light: "text-[#000000]"
2421
- }, jr = {
2424
+ }, Hr = {
2422
2425
  dark: "border-white/[0.08]",
2423
2426
  light: "border-black/[0.08]"
2424
- }, Hr = (e) => e === "dark" ? "sender" : "receiver", Vr = {
2427
+ }, Vr = (e) => e === "dark" ? "sender" : "receiver", Gr = {
2425
2428
  sender: {
2426
2429
  single: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]",
2427
2430
  first: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[4px]",
@@ -2446,7 +2449,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2446
2449
  children: d,
2447
2450
  "data-testid": u
2448
2451
  }) => {
2449
- const h = t != null && t !== "", m = o ?? Vr[Hr(e)][a];
2452
+ const h = t != null && t !== "", m = o ?? Gr[Vr(e)][a];
2450
2453
  return /* @__PURE__ */ f(
2451
2454
  "div",
2452
2455
  {
@@ -2475,10 +2478,10 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2475
2478
  // there is no ambiguity to resolve.
2476
2479
  h && "pb-0",
2477
2480
  m,
2478
- Br[e],
2479
2481
  Ur[e],
2482
+ jr[e],
2480
2483
  s && "border",
2481
- s && jr[e],
2484
+ s && Hr[e],
2482
2485
  l
2483
2486
  ),
2484
2487
  children: [
@@ -2524,16 +2527,16 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2524
2527
  ),
2525
2528
  children: /* @__PURE__ */ n(lt, { className: "size-3", weight: "bold" })
2526
2529
  }
2527
- ), Le = (e) => e === "received" ? "light" : "dark", ao = ({
2530
+ ), Le = (e) => e === "received" ? "light" : "dark", ro = ({
2528
2531
  firstOfGroup: e,
2529
2532
  endOfGroup: t,
2530
2533
  groupedByUser: s
2531
- }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", Gr = ({
2534
+ }) => !s || e && t ? "single" : e ? "first" : t ? "end" : "middle", Yr = ({
2532
2535
  src: e,
2533
2536
  mimeType: t,
2534
2537
  filename: s,
2535
2538
  items: a
2536
- }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Yr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
2539
+ }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Wr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
2537
2540
  /* @__PURE__ */ n(
2538
2541
  "audio",
2539
2542
  {
@@ -2545,7 +2548,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2545
2548
  }
2546
2549
  ),
2547
2550
  s ?? null
2548
- ] }), wt = ({
2551
+ ] }), _t = ({
2549
2552
  state: e,
2550
2553
  src: t,
2551
2554
  mimeType: s,
@@ -2556,7 +2559,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2556
2559
  preload: l,
2557
2560
  onDismiss: d
2558
2561
  }) => {
2559
- const u = Le(e), h = e === "composer" && !!d, m = Gr({ src: t, mimeType: s, filename: a, items: r });
2562
+ const u = Le(e), h = e === "composer" && !!d, m = Yr({ src: t, mimeType: s, filename: a, items: r });
2560
2563
  if (m.length === 0)
2561
2564
  return null;
2562
2565
  const g = l ?? (m.length > 1 ? "none" : "metadata");
@@ -2568,7 +2571,7 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2568
2571
  groupPosition: o,
2569
2572
  "data-testid": "audio-attachment",
2570
2573
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: m.map((c, p) => /* @__PURE__ */ n(
2571
- Yr,
2574
+ Wr,
2572
2575
  {
2573
2576
  item: c,
2574
2577
  preload: g,
@@ -2582,15 +2585,15 @@ const Or = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2582
2585
  )) })
2583
2586
  }
2584
2587
  );
2585
- }, Wr = (e) => /* @__PURE__ */ n(wt, { ...e, state: "composer" }), Kr = (e) => /* @__PURE__ */ n(wt, { ...e, state: "sent" }), Xr = (e) => /* @__PURE__ */ n(wt, { ...e, state: "received" }), qr = {
2586
- Composer: Wr,
2587
- Sent: Kr,
2588
- Received: Xr
2588
+ }, Kr = (e) => /* @__PURE__ */ n(_t, { ...e, state: "composer" }), Xr = (e) => /* @__PURE__ */ n(_t, { ...e, state: "sent" }), qr = (e) => /* @__PURE__ */ n(_t, { ...e, state: "received" }), Zr = {
2589
+ Composer: Kr,
2590
+ Sent: Xr,
2591
+ Received: qr
2589
2592
  };
2590
- function Zr(e) {
2593
+ function Jr(e) {
2591
2594
  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`;
2592
2595
  }
2593
- const Jr = {
2596
+ const Qr = {
2594
2597
  pdf: "PDF",
2595
2598
  doc: "DOC",
2596
2599
  xls: "XLS",
@@ -2600,7 +2603,7 @@ const Jr = {
2600
2603
  text: "TXT",
2601
2604
  markdown: "MD"
2602
2605
  };
2603
- function Qr(e, t) {
2606
+ function ei(e, t) {
2604
2607
  if (t) {
2605
2608
  const r = t.lastIndexOf(".");
2606
2609
  if (r > 0 && r < t.length - 1) {
@@ -2610,7 +2613,7 @@ function Qr(e, t) {
2610
2613
  }
2611
2614
  if (!e) return;
2612
2615
  if (de(e) === "document") {
2613
- const r = Cn(e), i = Jr[r];
2616
+ const r = Sn(e), i = Qr[r];
2614
2617
  if (i) return i;
2615
2618
  if (e === "application/octet-stream") return;
2616
2619
  }
@@ -2618,8 +2621,8 @@ function Qr(e, t) {
2618
2621
  if (!(!a || a === "*"))
2619
2622
  return a.toUpperCase();
2620
2623
  }
2621
- function ei(e, t, s) {
2622
- const a = Qr(e, t), r = typeof s == "number" && s > 0 ? Zr(s) : void 0;
2624
+ function ti(e, t, s) {
2625
+ const a = ei(e, t), r = typeof s == "number" && s > 0 ? Jr(s) : void 0;
2623
2626
  return [a, r].filter(Boolean).join(" · ") || void 0;
2624
2627
  }
2625
2628
  function re(e) {
@@ -2630,16 +2633,16 @@ function re(e) {
2630
2633
  return "download";
2631
2634
  }
2632
2635
  }
2633
- const ti = {
2636
+ const ni = {
2634
2637
  dark: "text-white/55",
2635
2638
  light: "text-black/65"
2636
- }, ni = {
2639
+ }, si = {
2637
2640
  dark: "bg-white/10",
2638
2641
  light: "bg-black/5"
2639
- }, si = {
2642
+ }, ai = {
2640
2643
  dark: "text-white/85",
2641
2644
  light: "text-black/85"
2642
- }, Fn = ({
2645
+ }, zn = ({
2643
2646
  variant: e,
2644
2647
  filename: t,
2645
2648
  title: s,
@@ -2649,16 +2652,16 @@ const ti = {
2649
2652
  activateLabel: o,
2650
2653
  trailingAction: l
2651
2654
  }) => {
2652
- const d = s ?? t ?? "File", u = ei(a, t, r), h = /* @__PURE__ */ n(
2655
+ const d = s ?? t ?? "File", u = ti(a, t, r), h = /* @__PURE__ */ n(
2653
2656
  "div",
2654
2657
  {
2655
2658
  className: N(
2656
2659
  "flex size-10 shrink-0 items-center justify-center rounded-sm",
2657
- ni[e]
2660
+ si[e]
2658
2661
  ),
2659
2662
  "aria-hidden": !0,
2660
2663
  children: ve(a, {
2661
- className: N("size-6", si[e]),
2664
+ className: N("size-6", ai[e]),
2662
2665
  weight: "regular"
2663
2666
  })
2664
2667
  }
@@ -2669,7 +2672,7 @@ const ti = {
2669
2672
  {
2670
2673
  className: N(
2671
2674
  "truncate text-xs leading-4",
2672
- ti[e]
2675
+ ni[e]
2673
2676
  ),
2674
2677
  children: u
2675
2678
  }
@@ -2698,7 +2701,7 @@ const ti = {
2698
2701
  l ? /* @__PURE__ */ n("div", { className: "shrink-0", children: l }) : null
2699
2702
  ] });
2700
2703
  };
2701
- async function zn(e, t) {
2704
+ async function $n(e, t) {
2702
2705
  const s = t ?? re(e);
2703
2706
  try {
2704
2707
  const a = await fetch(e, { mode: "cors" });
@@ -2712,14 +2715,14 @@ async function zn(e, t) {
2712
2715
  }
2713
2716
  }
2714
2717
  }
2715
- const ai = ({
2718
+ const ri = ({
2716
2719
  src: e,
2717
2720
  filename: t,
2718
2721
  fileSize: s,
2719
2722
  mimeType: a,
2720
2723
  title: r,
2721
2724
  items: i
2722
- }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], ri = ({
2725
+ }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: s, mimeType: a, title: r }] : [], ii = ({
2723
2726
  variant: e,
2724
2727
  item: t,
2725
2728
  index: s,
@@ -2728,7 +2731,7 @@ const ai = ({
2728
2731
  }) => {
2729
2732
  const i = t.filename ?? re(t.src);
2730
2733
  return /* @__PURE__ */ n(
2731
- Fn,
2734
+ zn,
2732
2735
  {
2733
2736
  variant: e,
2734
2737
  filename: i,
@@ -2740,7 +2743,7 @@ const ai = ({
2740
2743
  trailingAction: r
2741
2744
  }
2742
2745
  );
2743
- }, _t = ({
2746
+ }, yt = ({
2744
2747
  state: e,
2745
2748
  src: t,
2746
2749
  filename: s,
@@ -2753,7 +2756,7 @@ const ai = ({
2753
2756
  onClick: u,
2754
2757
  onDismiss: h
2755
2758
  }) => {
2756
- const m = Le(e), g = e === "composer" && !!h, c = ai({
2759
+ const m = Le(e), g = e === "composer" && !!h, c = ri({
2757
2760
  src: t,
2758
2761
  filename: s,
2759
2762
  fileSize: a,
@@ -2765,7 +2768,7 @@ const ai = ({
2765
2768
  const x = c[v];
2766
2769
  if (!x) return;
2767
2770
  const b = x.filename ?? re(x.src);
2768
- zn(x.src, b);
2771
+ $n(x.src, b);
2769
2772
  };
2770
2773
  if (c.length === 0)
2771
2774
  return null;
@@ -2788,7 +2791,7 @@ const ai = ({
2788
2791
  groupPosition: d,
2789
2792
  "data-testid": "file-attachment",
2790
2793
  children: /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: c.map((v, x) => /* @__PURE__ */ n(
2791
- ri,
2794
+ ii,
2792
2795
  {
2793
2796
  variant: m,
2794
2797
  item: v,
@@ -2800,11 +2803,11 @@ const ai = ({
2800
2803
  )) })
2801
2804
  }
2802
2805
  );
2803
- }, ii = (e) => /* @__PURE__ */ n(_t, { ...e, state: "composer" }), li = (e) => /* @__PURE__ */ n(_t, { ...e, state: "sent" }), oi = (e) => /* @__PURE__ */ n(_t, { ...e, state: "received" }), ci = {
2804
- Composer: ii,
2805
- Sent: li,
2806
- Received: oi
2807
- }, $n = "inline-flex size-10 items-center justify-center rounded-full border-0 bg-white/[0.12] p-0 text-white transition-colors duration-150 ease-[ease] hover:bg-white/[0.22] focus-visible:bg-white/[0.22] focus-visible:outline-none disabled:cursor-default disabled:opacity-40", tn = "absolute top-1/2 z-[1] inline-flex size-12 -translate-y-1/2 items-center justify-center rounded-full border-0 bg-white/[0.12] p-0 text-white transition-colors duration-150 ease-[ease] hover:bg-white/[0.22] focus-visible:bg-white/[0.22] focus-visible:outline-none", yt = ({
2806
+ }, li = (e) => /* @__PURE__ */ n(yt, { ...e, state: "composer" }), oi = (e) => /* @__PURE__ */ n(yt, { ...e, state: "sent" }), ci = (e) => /* @__PURE__ */ n(yt, { ...e, state: "received" }), di = {
2807
+ Composer: li,
2808
+ Sent: oi,
2809
+ Received: ci
2810
+ }, Bn = "inline-flex size-10 items-center justify-center rounded-full border-0 bg-white/[0.12] p-0 text-white transition-colors duration-150 ease-[ease] hover:bg-white/[0.22] focus-visible:bg-white/[0.22] focus-visible:outline-none disabled:cursor-default disabled:opacity-40", nn = "absolute top-1/2 z-[1] inline-flex size-12 -translate-y-1/2 items-center justify-center rounded-full border-0 bg-white/[0.12] p-0 text-white transition-colors duration-150 ease-[ease] hover:bg-white/[0.22] focus-visible:bg-white/[0.22] focus-visible:outline-none", Nt = ({
2808
2811
  onPrev: e,
2809
2812
  onNext: t,
2810
2813
  prevLabel: s = "Previous",
@@ -2816,8 +2819,8 @@ const ai = ({
2816
2819
  type: "button",
2817
2820
  onClick: e,
2818
2821
  "aria-label": s,
2819
- className: `${tn} left-4`,
2820
- children: /* @__PURE__ */ n(ga, { size: 20, weight: "bold", "aria-hidden": !0 })
2822
+ className: `${nn} left-4`,
2823
+ children: /* @__PURE__ */ n(pa, { size: 20, weight: "bold", "aria-hidden": !0 })
2821
2824
  }
2822
2825
  ),
2823
2826
  /* @__PURE__ */ n(
@@ -2826,11 +2829,11 @@ const ai = ({
2826
2829
  type: "button",
2827
2830
  onClick: t,
2828
2831
  "aria-label": a,
2829
- className: `${tn} right-4`,
2830
- children: /* @__PURE__ */ n(gn, { size: 20, weight: "bold", "aria-hidden": !0 })
2832
+ className: `${nn} right-4`,
2833
+ children: /* @__PURE__ */ n(pn, { size: 20, weight: "bold", "aria-hidden": !0 })
2831
2834
  }
2832
2835
  )
2833
- ] }), Bn = ({
2836
+ ] }), Un = ({
2834
2837
  url: e,
2835
2838
  filename: t,
2836
2839
  variant: s = "pill",
@@ -2841,7 +2844,7 @@ const ai = ({
2841
2844
  }) => {
2842
2845
  const [l, d] = $(!1), u = K(
2843
2846
  (c) => {
2844
- c.stopPropagation(), !l && (d(!0), zn(e, t).catch(() => {
2847
+ c.stopPropagation(), !l && (d(!0), $n(e, t).catch(() => {
2845
2848
  }).finally(() => {
2846
2849
  d(!1), o == null || o();
2847
2850
  }));
@@ -2888,7 +2891,7 @@ const ai = ({
2888
2891
  onClick: u,
2889
2892
  disabled: l,
2890
2893
  "aria-label": a,
2891
- className: $n,
2894
+ className: Bn,
2892
2895
  children: l ? /* @__PURE__ */ n(be, { size: 20, weight: "bold", "aria-hidden": !0 }) : /* @__PURE__ */ n(Se, { size: 20, weight: "bold", "aria-hidden": !0 })
2893
2896
  }
2894
2897
  ) : /* @__PURE__ */ f(
@@ -2915,7 +2918,7 @@ const ai = ({
2915
2918
  ]
2916
2919
  }
2917
2920
  );
2918
- }, Qe = (e, t, s) => Math.min(Math.max(e, t), s), Nt = ({
2921
+ }, Qe = (e, t, s) => Math.min(Math.max(e, t), s), kt = ({
2919
2922
  length: e,
2920
2923
  initialIndex: t,
2921
2924
  open: s
@@ -2940,7 +2943,7 @@ const ai = ({
2940
2943
  };
2941
2944
  return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
2942
2945
  }, [s, e, o, l]), { index: r, prev: o, next: l };
2943
- }, kt = ({
2946
+ }, Ct = ({
2944
2947
  open: e,
2945
2948
  onClose: t,
2946
2949
  ariaLabel: s,
@@ -3020,7 +3023,7 @@ const ai = ({
3020
3023
  type: "button",
3021
3024
  onClick: t,
3022
3025
  "aria-label": "Close viewer",
3023
- className: $n,
3026
+ className: Bn,
3024
3027
  children: /* @__PURE__ */ n(lt, { size: 20, weight: "bold", "aria-hidden": !0 })
3025
3028
  }
3026
3029
  )
@@ -3030,13 +3033,13 @@ const ai = ({
3030
3033
  ]
3031
3034
  }
3032
3035
  );
3033
- }, Un = ({
3036
+ }, jn = ({
3034
3037
  open: e,
3035
3038
  items: t,
3036
3039
  initialIndex: s = 0,
3037
3040
  onClose: a
3038
3041
  }) => {
3039
- const { index: r, prev: i, next: o } = Nt({
3042
+ const { index: r, prev: i, next: o } = kt({
3040
3043
  length: t.length,
3041
3044
  initialIndex: s,
3042
3045
  open: e
@@ -3045,14 +3048,14 @@ const ai = ({
3045
3048
  [l]
3046
3049
  );
3047
3050
  return l ? /* @__PURE__ */ f(
3048
- kt,
3051
+ Ct,
3049
3052
  {
3050
3053
  open: e,
3051
3054
  onClose: a,
3052
3055
  ariaLabel: d,
3053
3056
  counter: t.length > 1 ? `${r + 1} / ${t.length}` : void 0,
3054
3057
  actions: /* @__PURE__ */ n(
3055
- Bn,
3058
+ Un,
3056
3059
  {
3057
3060
  url: l.src,
3058
3061
  filename: d,
@@ -3074,7 +3077,7 @@ const ai = ({
3074
3077
  `${r}:${l.src}`
3075
3078
  ) : null,
3076
3079
  t.length > 1 ? /* @__PURE__ */ n(
3077
- yt,
3080
+ Nt,
3078
3081
  {
3079
3082
  onPrev: i,
3080
3083
  onNext: o,
@@ -3085,7 +3088,7 @@ const ai = ({
3085
3088
  ]
3086
3089
  }
3087
3090
  ) : null;
3088
- }, di = "relative block size-full overflow-hidden bg-black/5 outline-none after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] focus-visible:after:ring-2 focus-visible:after:ring-inset focus-visible:after:ring-white/80 focus-visible:after:ring-offset-2 focus-visible:after:ring-offset-black", ui = {
3091
+ }, ui = "relative block size-full overflow-hidden bg-black/5 outline-none after:pointer-events-none after:absolute after:inset-0 after:rounded-[inherit] focus-visible:after:ring-2 focus-visible:after:ring-inset focus-visible:after:ring-white/80 focus-visible:after:ring-offset-2 focus-visible:after:ring-offset-black", mi = {
3089
3092
  1: ["rounded-[18px]"],
3090
3093
  2: ["rounded-l-[18px]", "rounded-r-[18px]"],
3091
3094
  3: ["rounded-l-[18px]", "rounded-tr-[18px]", "rounded-br-[18px]"],
@@ -3095,7 +3098,7 @@ const ai = ({
3095
3098
  "rounded-bl-[18px]",
3096
3099
  "rounded-br-[18px]"
3097
3100
  ]
3098
- }, mi = "--mes-single-width-cap", hi = "[--mes-single-width-cap:309px] sm:[--mes-single-width-cap:326px]", fi = 436, jn = ({
3101
+ }, hi = "--mes-single-width-cap", fi = "[--mes-single-width-cap:309px] sm:[--mes-single-width-cap:326px]", gi = 436, Hn = ({
3099
3102
  tiles: e,
3100
3103
  onTileActivate: t,
3101
3104
  maxVisible: s = 4,
@@ -3107,9 +3110,9 @@ const ai = ({
3107
3110
  const o = e.slice(0, Math.min(i, s)), l = i - o.length, d = (h, m, g) => {
3108
3111
  var p;
3109
3112
  const c = N(
3110
- di,
3113
+ ui,
3111
3114
  "h-full w-full",
3112
- (p = ui[o.length]) == null ? void 0 : p[m]
3115
+ (p = mi[o.length]) == null ? void 0 : p[m]
3113
3116
  );
3114
3117
  return t ? /* @__PURE__ */ f(
3115
3118
  "button",
@@ -3134,14 +3137,14 @@ const ai = ({
3134
3137
  aspectRatio: a,
3135
3138
  // Hundredths keep the emitted declaration readable in devtools;
3136
3139
  // the rounding error is well under a device pixel.
3137
- width: `min(var(${mi}), ${Math.round(fi * a * 100) / 100}px)`,
3140
+ width: `min(var(${hi}), ${Math.round(gi * a * 100) / 100}px)`,
3138
3141
  // Only bites in a container narrower than the width cap.
3139
3142
  maxWidth: "100%"
3140
3143
  }), o.length === 1 ? /* @__PURE__ */ n(
3141
3144
  "div",
3142
3145
  {
3143
3146
  className: N(
3144
- a ? hi : "aspect-square w-full",
3147
+ a ? fi : "aspect-square w-full",
3145
3148
  r
3146
3149
  ),
3147
3150
  style: u,
@@ -3204,7 +3207,7 @@ const ai = ({
3204
3207
  [e]
3205
3208
  ), o = K(() => s(!1), []);
3206
3209
  return { viewerOpen: t, viewerIndex: a, handleActivate: i, closeViewer: o };
3207
- }, gi = ({
3210
+ }, pi = ({
3208
3211
  item: e,
3209
3212
  index: t,
3210
3213
  totalCount: s,
@@ -3232,15 +3235,15 @@ const ai = ({
3232
3235
  }
3233
3236
  )
3234
3237
  )
3235
- }), pi = ({
3238
+ }), bi = ({
3236
3239
  src: e,
3237
3240
  alt: t,
3238
3241
  items: s
3239
- }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], Hn = (e, t) => e.map((s, a) => ({
3242
+ }) => s && s.length > 0 ? s : e ? [{ src: e, alt: t }] : [], Vn = (e, t) => e.map((s, a) => ({
3240
3243
  src: s.src,
3241
3244
  alt: s.alt,
3242
3245
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
3243
- })), bi = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
3246
+ })), vi = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
3244
3247
  const { viewerOpen: o, viewerIndex: l, handleActivate: d, closeViewer: u } = Me(r);
3245
3248
  return /* @__PURE__ */ f("div", { className: "relative w-fit", children: [
3246
3249
  /* @__PURE__ */ n(
@@ -3265,16 +3268,16 @@ const ai = ({
3265
3268
  ),
3266
3269
  i ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(Re, { onClick: i }) }) : null,
3267
3270
  /* @__PURE__ */ n(
3268
- Un,
3271
+ jn,
3269
3272
  {
3270
3273
  open: o,
3271
- items: Hn([{ src: e, alt: t }], s),
3274
+ items: Vn([{ src: e, alt: t }], s),
3272
3275
  initialIndex: l,
3273
3276
  onClose: u
3274
3277
  }
3275
3278
  )
3276
3279
  ] });
3277
- }, vi = 326 / 246, xi = (e) => {
3280
+ }, xi = 326 / 246, wi = (e) => {
3278
3281
  const t = e == null ? void 0 : e.src, [s, a] = P.useState(), r = P.useCallback(
3279
3282
  (d) => {
3280
3283
  if (!d || d.naturalWidth <= 0 || d.naturalHeight <= 0 || t === void 0) return;
@@ -3289,11 +3292,11 @@ const ai = ({
3289
3292
  [r]
3290
3293
  ), o = e != null && e.width && (e != null && e.height) ? e.width / e.height : void 0, l = s && s.src === t ? s.ratio : void 0;
3291
3294
  return {
3292
- ratio: o ?? l ?? vi,
3295
+ ratio: o ?? l ?? xi,
3293
3296
  imgRef: r,
3294
3297
  onLoad: i
3295
3298
  };
3296
- }, Vn = ({
3299
+ }, Gn = ({
3297
3300
  state: e,
3298
3301
  src: t,
3299
3302
  alt: s,
@@ -3304,11 +3307,11 @@ const ai = ({
3304
3307
  loading: l = "lazy",
3305
3308
  onClick: d
3306
3309
  }) => {
3307
- const u = pi({ src: t, alt: s, items: r }), h = Le(e), { viewerOpen: m, viewerIndex: g, handleActivate: c, closeViewer: p } = Me(d), w = u.length === 1, v = xi(w ? u[0] : void 0);
3310
+ const u = bi({ src: t, alt: s, items: r }), h = Le(e), { viewerOpen: m, viewerIndex: g, handleActivate: c, closeViewer: p } = Me(d), w = u.length === 1, v = wi(w ? u[0] : void 0);
3308
3311
  if (u.length === 0)
3309
3312
  return null;
3310
3313
  const x = u.map(
3311
- (b, y) => gi({
3314
+ (b, y) => pi({
3312
3315
  item: b,
3313
3316
  index: y,
3314
3317
  totalCount: u.length,
@@ -3330,7 +3333,7 @@ const ai = ({
3330
3333
  "data-testid": "image-attachment",
3331
3334
  children: [
3332
3335
  /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(
3333
- jn,
3336
+ Hn,
3334
3337
  {
3335
3338
  tiles: x,
3336
3339
  onTileActivate: c,
@@ -3338,10 +3341,10 @@ const ai = ({
3338
3341
  }
3339
3342
  ) }),
3340
3343
  /* @__PURE__ */ n(
3341
- Un,
3344
+ jn,
3342
3345
  {
3343
3346
  open: m,
3344
- items: Hn(u, a),
3347
+ items: Vn(u, a),
3345
3348
  initialIndex: g,
3346
3349
  onClose: p
3347
3350
  }
@@ -3349,17 +3352,17 @@ const ai = ({
3349
3352
  ]
3350
3353
  }
3351
3354
  );
3352
- }, wi = (e) => /* @__PURE__ */ n(bi, { ...e }), _i = (e) => /* @__PURE__ */ n(Vn, { ...e, state: "sent" }), yi = (e) => /* @__PURE__ */ n(Vn, { ...e, state: "received" }), Ni = {
3353
- Composer: wi,
3354
- Sent: _i,
3355
- Received: yi
3356
- }, ki = ({
3355
+ }, _i = (e) => /* @__PURE__ */ n(vi, { ...e }), yi = (e) => /* @__PURE__ */ n(Gn, { ...e, state: "sent" }), Ni = (e) => /* @__PURE__ */ n(Gn, { ...e, state: "received" }), ki = {
3356
+ Composer: _i,
3357
+ Sent: yi,
3358
+ Received: Ni
3359
+ }, Ci = ({
3357
3360
  open: e,
3358
3361
  items: t,
3359
3362
  initialIndex: s = 0,
3360
3363
  onClose: a
3361
3364
  }) => {
3362
- const { index: r, prev: i, next: o } = Nt({
3365
+ const { index: r, prev: i, next: o } = kt({
3363
3366
  length: t.length,
3364
3367
  initialIndex: s,
3365
3368
  open: e
@@ -3367,11 +3370,11 @@ const ai = ({
3367
3370
  () => (l == null ? void 0 : l.filename) ?? (l ? re(l.src) : "document"),
3368
3371
  [l]
3369
3372
  ), u = le(
3370
- () => l ? Ci(l.src) : void 0,
3373
+ () => l ? Si(l.src) : void 0,
3371
3374
  [l]
3372
3375
  );
3373
3376
  return !l || !u ? null : /* @__PURE__ */ f(
3374
- kt,
3377
+ Ct,
3375
3378
  {
3376
3379
  open: e,
3377
3380
  onClose: a,
@@ -3390,7 +3393,7 @@ const ai = ({
3390
3393
  `${r}:${l.src}`
3391
3394
  ),
3392
3395
  t.length > 1 ? /* @__PURE__ */ n(
3393
- yt,
3396
+ Nt,
3394
3397
  {
3395
3398
  onPrev: i,
3396
3399
  onNext: o,
@@ -3401,16 +3404,16 @@ const ai = ({
3401
3404
  ]
3402
3405
  }
3403
3406
  );
3404
- }, Ci = (e) => {
3407
+ }, Si = (e) => {
3405
3408
  const t = e.indexOf("#"), s = t === -1 ? e : e.slice(0, t), a = t === -1 ? "" : e.slice(t + 1), r = new URLSearchParams(a);
3406
3409
  return r.has("toolbar") || r.set("toolbar", "0"), r.has("navpanes") || r.set("navpanes", "0"), `${s}#${r.toString()}`;
3407
- }, Si = ({
3410
+ }, Ei = ({
3408
3411
  src: e,
3409
3412
  filename: t,
3410
3413
  fileSize: s,
3411
3414
  title: a,
3412
3415
  items: r
3413
- }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], Ei = ({
3416
+ }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: s, title: a }] : [], Ii = ({
3414
3417
  variant: e,
3415
3418
  item: t,
3416
3419
  index: s,
@@ -3419,7 +3422,7 @@ const ai = ({
3419
3422
  }) => {
3420
3423
  const i = t.filename ?? re(t.src);
3421
3424
  return /* @__PURE__ */ n(
3422
- Fn,
3425
+ zn,
3423
3426
  {
3424
3427
  variant: e,
3425
3428
  filename: i,
@@ -3431,7 +3434,7 @@ const ai = ({
3431
3434
  trailingAction: r
3432
3435
  }
3433
3436
  );
3434
- }, Ct = ({
3437
+ }, St = ({
3435
3438
  state: e,
3436
3439
  src: t,
3437
3440
  filename: s,
@@ -3443,7 +3446,7 @@ const ai = ({
3443
3446
  onClick: d,
3444
3447
  onDismiss: u
3445
3448
  }) => {
3446
- const h = Le(e), m = Si({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: g, viewerIndex: c, handleActivate: p, closeViewer: w } = Me(d), v = e === "composer" && !!u;
3449
+ const h = Le(e), m = Ei({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: g, viewerIndex: c, handleActivate: p, closeViewer: w } = Me(d), v = e === "composer" && !!u;
3447
3450
  if (m.length === 0)
3448
3451
  return null;
3449
3452
  const x = m.map((b) => ({
@@ -3460,7 +3463,7 @@ const ai = ({
3460
3463
  children: [
3461
3464
  /* @__PURE__ */ n("div", { className: "flex flex-col gap-2", children: m.map((b, y) => {
3462
3465
  const _ = b.filename ?? re(b.src), T = v && y === 0 ? /* @__PURE__ */ n(Re, { onClick: u, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ n(
3463
- Bn,
3466
+ Un,
3464
3467
  {
3465
3468
  url: b.src,
3466
3469
  filename: _,
@@ -3470,7 +3473,7 @@ const ai = ({
3470
3473
  }
3471
3474
  );
3472
3475
  return /* @__PURE__ */ n(
3473
- Ei,
3476
+ Ii,
3474
3477
  {
3475
3478
  variant: h,
3476
3479
  item: b,
@@ -3482,7 +3485,7 @@ const ai = ({
3482
3485
  );
3483
3486
  }) }),
3484
3487
  /* @__PURE__ */ n(
3485
- ki,
3488
+ Ci,
3486
3489
  {
3487
3490
  open: g,
3488
3491
  items: x,
@@ -3493,17 +3496,17 @@ const ai = ({
3493
3496
  ]
3494
3497
  }
3495
3498
  );
3496
- }, Ii = (e) => /* @__PURE__ */ n(Ct, { ...e, state: "composer" }), Ti = (e) => /* @__PURE__ */ n(Ct, { ...e, state: "sent" }), Ai = (e) => /* @__PURE__ */ n(Ct, { ...e, state: "received" }), Ri = {
3497
- Composer: Ii,
3498
- Sent: Ti,
3499
- Received: Ai
3500
- }, Gn = ({
3499
+ }, Ti = (e) => /* @__PURE__ */ n(St, { ...e, state: "composer" }), Ai = (e) => /* @__PURE__ */ n(St, { ...e, state: "sent" }), Ri = (e) => /* @__PURE__ */ n(St, { ...e, state: "received" }), Li = {
3500
+ Composer: Ti,
3501
+ Sent: Ai,
3502
+ Received: Ri
3503
+ }, Yn = ({
3501
3504
  open: e,
3502
3505
  items: t,
3503
3506
  initialIndex: s = 0,
3504
3507
  onClose: a
3505
3508
  }) => {
3506
- const { index: r, prev: i, next: o } = Nt({
3509
+ const { index: r, prev: i, next: o } = kt({
3507
3510
  length: t.length,
3508
3511
  initialIndex: s,
3509
3512
  open: e
@@ -3512,7 +3515,7 @@ const ai = ({
3512
3515
  [l]
3513
3516
  );
3514
3517
  return l ? /* @__PURE__ */ f(
3515
- kt,
3518
+ Ct,
3516
3519
  {
3517
3520
  open: e,
3518
3521
  onClose: a,
@@ -3536,7 +3539,7 @@ const ai = ({
3536
3539
  `${r}:${l.src}`
3537
3540
  ),
3538
3541
  t.length > 1 ? /* @__PURE__ */ n(
3539
- yt,
3542
+ Nt,
3540
3543
  {
3541
3544
  onPrev: i,
3542
3545
  onNext: o,
@@ -3547,7 +3550,7 @@ const ai = ({
3547
3550
  ]
3548
3551
  }
3549
3552
  ) : null;
3550
- }, Li = () => /* @__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(rt, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), Yn = ({
3553
+ }, Mi = () => /* @__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(rt, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), Wn = ({
3551
3554
  item: e,
3552
3555
  index: t
3553
3556
  }) => /* @__PURE__ */ f("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -3562,30 +3565,30 @@ const ai = ({
3562
3565
  className: "absolute inset-0 size-full object-cover"
3563
3566
  }
3564
3567
  ) : /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ n(
3565
- bn,
3568
+ vn,
3566
3569
  {
3567
3570
  className: "size-16 text-white/30",
3568
3571
  weight: "regular",
3569
3572
  "aria-hidden": !0
3570
3573
  }
3571
3574
  ) }),
3572
- /* @__PURE__ */ n(Li, {})
3573
- ] }), Mi = (e, t, s) => ({
3575
+ /* @__PURE__ */ n(Mi, {})
3576
+ ] }), Di = (e, t, s) => ({
3574
3577
  ariaLabel: `Play video ${t + 1} of ${s}`,
3575
- content: /* @__PURE__ */ n(Yn, { item: e, index: t })
3576
- }), Di = ({
3578
+ content: /* @__PURE__ */ n(Wn, { item: e, index: t })
3579
+ }), Oi = ({
3577
3580
  src: e,
3578
3581
  poster: t,
3579
3582
  mimeType: s,
3580
3583
  preload: a,
3581
3584
  items: r
3582
- }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: s, preload: a }] : [], Wn = (e, t) => e.map((s, a) => ({
3585
+ }) => 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) => ({
3583
3586
  src: s.src,
3584
3587
  poster: s.poster,
3585
3588
  mimeType: s.mimeType,
3586
3589
  preload: s.preload,
3587
3590
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
3588
- })), Oi = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
3591
+ })), Pi = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
3589
3592
  const { viewerOpen: l, viewerIndex: d, handleActivate: u, closeViewer: h } = Me(i);
3590
3593
  return /* @__PURE__ */ f("div", { className: "relative w-fit", children: [
3591
3594
  /* @__PURE__ */ n(
@@ -3595,21 +3598,21 @@ const ai = ({
3595
3598
  onClick: () => u(0),
3596
3599
  "aria-label": "Play video",
3597
3600
  className: "relative block size-[280px] cursor-pointer overflow-hidden rounded-md outline-none focus-visible:ring-2 focus-visible:ring-black/40",
3598
- children: /* @__PURE__ */ n(Yn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
3601
+ children: /* @__PURE__ */ n(Wn, { item: { src: e, poster: t, mimeType: s }, index: 0 })
3599
3602
  }
3600
3603
  ),
3601
3604
  o ? /* @__PURE__ */ n("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ n(Re, { onClick: o }) }) : null,
3602
3605
  /* @__PURE__ */ n(
3603
- Gn,
3606
+ Yn,
3604
3607
  {
3605
3608
  open: l,
3606
- items: Wn([{ src: e, poster: t, mimeType: s, preload: r }], a),
3609
+ items: Kn([{ src: e, poster: t, mimeType: s, preload: r }], a),
3607
3610
  initialIndex: d,
3608
3611
  onClose: h
3609
3612
  }
3610
3613
  )
3611
3614
  ] });
3612
- }, Kn = ({
3615
+ }, Xn = ({
3613
3616
  state: e,
3614
3617
  src: t,
3615
3618
  poster: s,
@@ -3621,11 +3624,11 @@ const ai = ({
3621
3624
  preload: d,
3622
3625
  onClick: u
3623
3626
  }) => {
3624
- const h = Di({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Le(e), { viewerOpen: g, viewerIndex: c, handleActivate: p, closeViewer: w } = Me(u);
3627
+ const h = Oi({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Le(e), { viewerOpen: g, viewerIndex: c, handleActivate: p, closeViewer: w } = Me(u);
3625
3628
  if (h.length === 0)
3626
3629
  return null;
3627
3630
  const v = h.map(
3628
- (x, b) => Mi(x, b, h.length)
3631
+ (x, b) => Di(x, b, h.length)
3629
3632
  );
3630
3633
  return /* @__PURE__ */ f(
3631
3634
  Ae,
@@ -3635,12 +3638,12 @@ const ai = ({
3635
3638
  groupPosition: l,
3636
3639
  "data-testid": "video-attachment",
3637
3640
  children: [
3638
- /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(jn, { tiles: v, onTileActivate: p }) }),
3641
+ /* @__PURE__ */ n("div", { className: "relative", children: /* @__PURE__ */ n(Hn, { tiles: v, onTileActivate: p }) }),
3639
3642
  /* @__PURE__ */ n(
3640
- Gn,
3643
+ Yn,
3641
3644
  {
3642
3645
  open: g,
3643
- items: Wn(h, r),
3646
+ items: Kn(h, r),
3644
3647
  initialIndex: c,
3645
3648
  onClose: w
3646
3649
  }
@@ -3648,28 +3651,28 @@ const ai = ({
3648
3651
  ]
3649
3652
  }
3650
3653
  );
3651
- }, Pi = (e) => /* @__PURE__ */ n(Oi, { ...e }), Fi = (e) => /* @__PURE__ */ n(Kn, { ...e, state: "sent" }), zi = (e) => /* @__PURE__ */ n(Kn, { ...e, state: "received" }), $i = {
3652
- Composer: Pi,
3653
- Sent: Fi,
3654
- Received: zi
3654
+ }, Fi = (e) => /* @__PURE__ */ n(Pi, { ...e }), zi = (e) => /* @__PURE__ */ n(Xn, { ...e, state: "sent" }), $i = (e) => /* @__PURE__ */ n(Xn, { ...e, state: "received" }), Bi = {
3655
+ Composer: Fi,
3656
+ Sent: zi,
3657
+ Received: $i
3655
3658
  }, ke = {
3656
- Image: Ni,
3657
- Video: $i,
3658
- Audio: qr,
3659
- Pdf: Ri,
3660
- File: ci
3659
+ Image: ki,
3660
+ Video: Bi,
3661
+ Audio: Zr,
3662
+ Pdf: Li,
3663
+ File: di
3661
3664
  };
3662
3665
  function H(e) {
3663
3666
  const t = e == null ? void 0 : e.trim();
3664
3667
  return t || void 0;
3665
3668
  }
3666
- function nn(e) {
3669
+ function sn(e) {
3667
3670
  return e.trim().replace(/^https?:\/\//i, "").replace(/\/+$/, "").toLowerCase();
3668
3671
  }
3669
- function Bi(e, t) {
3672
+ function Ui(e, t) {
3670
3673
  if (!(e != null && e.trim()) || !(t != null && t.trim()))
3671
3674
  return !1;
3672
- const s = nn(e), a = nn(t);
3675
+ const s = sn(e), a = sn(t);
3673
3676
  if (s === a)
3674
3677
  return !0;
3675
3678
  if (!s.includes(a))
@@ -3677,7 +3680,7 @@ function Bi(e, t) {
3677
3680
  const r = s.split(a).join("");
3678
3681
  return !/[^\p{P}\p{Z}\p{C}]/u.test(r);
3679
3682
  }
3680
- function sn(e) {
3683
+ function an(e) {
3681
3684
  const t = H(e.og_scrape_url) ?? H(e.title_link), s = H(e.image_url) ?? H(e.thumb_url), a = H(e.asset_url), r = H(e.mime_type);
3682
3685
  return {
3683
3686
  title: H(e.title),
@@ -3687,7 +3690,7 @@ function sn(e) {
3687
3690
  // Playable clip embedded in a link preview — lets LinkAttachment render its
3688
3691
  // native video/audio player in the hero instead of a static thumbnail.
3689
3692
  sourceUrl: a,
3690
- layout: s || bt(r, a) ? "featured" : "classic",
3693
+ layout: s || vt(r, a) ? "featured" : "classic",
3691
3694
  mimeType: r,
3692
3695
  // Dominant colour of the image, resolved by the sender at stage time and
3693
3696
  // persisted on the attachment (`stream-custom-data.ts`), so every viewer
@@ -3699,11 +3702,11 @@ function sn(e) {
3699
3702
  status: "ready"
3700
3703
  };
3701
3704
  }
3702
- function Ui(e) {
3705
+ function ji(e) {
3703
3706
  var t;
3704
3707
  return Ve(e) ? null : e.type === "image" ? e.image_url || e.asset_url ? "image" : null : e.type === "video" && e.asset_url ? "video" : e.type === "audio" && e.asset_url ? "audio" : e.type === "file" && e.asset_url ? e.mime_type === "application/pdf" ? "pdf" : (t = e.mime_type) != null && t.startsWith("audio/") ? "audio" : "file" : null;
3705
3708
  }
3706
- function Xn(e) {
3709
+ function qn(e) {
3707
3710
  if (!(e != null && e.length)) return [];
3708
3711
  const t = [], s = (r, i) => {
3709
3712
  const o = t[t.length - 1];
@@ -3725,21 +3728,21 @@ function Xn(e) {
3725
3728
  a(r);
3726
3729
  continue;
3727
3730
  }
3728
- const i = Ui(r);
3731
+ const i = ji(r);
3729
3732
  i && s(i, r);
3730
3733
  }
3731
3734
  return t;
3732
3735
  }
3733
- function ji(e) {
3736
+ function Hi(e) {
3734
3737
  return e.filter((t) => t.type === "media").length;
3735
3738
  }
3736
- function Hi(e, t, s) {
3739
+ function Vi(e, t, s) {
3737
3740
  return t <= 1 ? s : e === 0 ? "first" : e === t - 1 ? "end" : "middle";
3738
3741
  }
3739
- function Vi(e) {
3742
+ function Gi(e) {
3740
3743
  return H(e.image_url) ?? H(e.asset_url) ?? "";
3741
3744
  }
3742
- function Gi(e) {
3745
+ function Yi(e) {
3743
3746
  switch (e) {
3744
3747
  case "image":
3745
3748
  return ke.Image;
@@ -3753,11 +3756,11 @@ function Gi(e) {
3753
3756
  return ke.File;
3754
3757
  }
3755
3758
  }
3756
- function an(e, t) {
3759
+ function rn(e, t) {
3757
3760
  switch (e) {
3758
3761
  case "image":
3759
3762
  return {
3760
- src: Vi(t),
3763
+ src: Gi(t),
3761
3764
  alt: H(t.title)
3762
3765
  };
3763
3766
  case "video":
@@ -3789,35 +3792,35 @@ function an(e, t) {
3789
3792
  };
3790
3793
  }
3791
3794
  }
3792
- function Yi(e, t) {
3795
+ function Wi(e, t) {
3793
3796
  if (t.length > 1)
3794
3797
  return {
3795
- items: t.map((a) => an(e, a))
3798
+ items: t.map((a) => rn(e, a))
3796
3799
  };
3797
3800
  const s = t[0];
3798
- return s ? an(e, s) : {};
3801
+ return s ? rn(e, s) : {};
3799
3802
  }
3800
- function Wi({
3803
+ function Ki({
3801
3804
  groupPosition: e,
3802
3805
  isMyMessage: t,
3803
3806
  segment: s
3804
3807
  }) {
3805
- const a = Gi(s.kind), r = {
3806
- ...Yi(s.kind, s.attachments),
3808
+ const a = Yi(s.kind), r = {
3809
+ ...Wi(s.kind, s.attachments),
3807
3810
  groupPosition: e
3808
3811
  };
3809
3812
  return t ? /* @__PURE__ */ n(a.Sent, { ...r }) : /* @__PURE__ */ n(a.Received, { ...r });
3810
3813
  }
3811
- const Ki = ({
3814
+ const Xi = ({
3812
3815
  groupPosition: e,
3813
3816
  isMyMessage: t,
3814
3817
  message: s,
3815
3818
  renderText: a
3816
3819
  }) => {
3817
3820
  var v;
3818
- const r = Xn(s.attachments);
3821
+ const r = qn(s.attachments);
3819
3822
  if (r.length === 0) return null;
3820
- const i = ji(r), o = (v = s.text) == null ? void 0 : v.trim(), l = r.find((x) => x.type === "link"), d = (l == null ? void 0 : l.type) === "link" ? sn(l.attachments[0] ?? {}).url : void 0, u = o && Bi(o, d) ? void 0 : o;
3823
+ const i = Hi(r), o = (v = s.text) == null ? void 0 : v.trim(), l = r.find((x) => x.type === "link"), d = (l == null ? void 0 : l.type) === "link" ? an(l.attachments[0] ?? {}).url : void 0, u = o && Ui(o, d) ? void 0 : o;
3821
3824
  let h = 0;
3822
3825
  const m = [], g = u ? "middle" : e, c = e === "single" || e === "end", p = (x, b, y) => {
3823
3826
  const _ = t ? it.Sent : it.Received;
@@ -3825,21 +3828,21 @@ const Ki = ({
3825
3828
  /* @__PURE__ */ n(
3826
3829
  _,
3827
3830
  {
3828
- ...sn(x),
3831
+ ...an(x),
3829
3832
  groupPosition: y ? g : "middle"
3830
3833
  },
3831
3834
  b
3832
3835
  )
3833
3836
  );
3834
3837
  }, w = (x, b) => {
3835
- const y = Hi(
3838
+ const y = Vi(
3836
3839
  h,
3837
3840
  i,
3838
3841
  e
3839
3842
  );
3840
3843
  h += 1, m.push(
3841
3844
  /* @__PURE__ */ n(
3842
- Wi,
3845
+ Ki,
3843
3846
  {
3844
3847
  groupPosition: y,
3845
3848
  isMyMessage: t,
@@ -3894,8 +3897,8 @@ const Ki = ({
3894
3897
  }
3895
3898
  ) : null
3896
3899
  ] });
3897
- }, Xi = (e) => {
3898
- var Lt, Mt, Dt, Ot, Pt, Ft, zt, $t, Bt, Ut;
3900
+ }, qi = (e) => {
3901
+ var Mt, Dt, Ot, Pt, Ft, zt, $t, Bt, Ut, jt;
3899
3902
  const {
3900
3903
  additionalMessageInputProps: t,
3901
3904
  editing: s,
@@ -3915,46 +3918,46 @@ const Ki = ({
3915
3918
  viewerLanguage: v,
3916
3919
  onOutboundClick: x,
3917
3920
  resolvedOutbound: b
3918
- } = e, { client: y } = He("CustomMessage"), { channel: _ } = we("CustomMessage"), { isUnlocking: T, onUnlockClick: L, onFetchSource: E, onDownloadClick: z } = sr("LockedAttachment"), [F, R] = $(!1), I = hs(c.id), {
3919
- Attachment: M = fs,
3920
- EditMessageModal: S = gs,
3921
+ } = e, { client: y } = He("CustomMessage"), { channel: _ } = we("CustomMessage"), { isUnlocking: T, onUnlockClick: L, onFetchSource: E, onDownloadClick: z } = ar("LockedAttachment"), [F, R] = $(!1), I = fs(c.id), {
3922
+ Attachment: M = gs,
3923
+ EditMessageModal: S = ps,
3921
3924
  MessageActions: C,
3922
- MessageBlocked: A = ps,
3923
- MessageBouncePrompt: O = bs,
3924
- MessageDeleted: B = vs,
3925
- MessageIsThreadReplyInChannelButtonIndicator: G = xs,
3926
- MessageRepliesCountButton: ee = ws,
3927
- ReminderNotification: Z = _s,
3928
- StreamedMessageText: J = ys,
3925
+ MessageBlocked: A = bs,
3926
+ MessageBouncePrompt: O = vs,
3927
+ MessageDeleted: B = xs,
3928
+ MessageIsThreadReplyInChannelButtonIndicator: G = ws,
3929
+ MessageRepliesCountButton: ee = _s,
3930
+ ReminderNotification: Z = ys,
3931
+ StreamedMessageText: J = Ns,
3929
3932
  PinIndicator: j
3930
- } = mn("CustomMessage"), k = Ns(c), D = ks(c), Y = le(
3933
+ } = hn("CustomMessage"), k = ks(c), D = Cs(c), Y = le(
3931
3934
  () => m == null ? void 0 : m(c),
3932
3935
  [m, c]
3933
3936
  ), U = le(() => {
3934
3937
  const he = c.attachments ?? [], pe = c.shared_location ? [c.shared_location, ...he] : he;
3935
3938
  if (!ze(c)) return pe;
3936
- const jt = pe.filter((Ht) => !("type" in Ht) || !Ve(Ht));
3937
- return jt.length === pe.length ? pe : jt;
3939
+ const Ht = pe.filter((Vt) => !("type" in Vt) || !Ve(Vt));
3940
+ return Ht.length === pe.length ? pe : Ht;
3938
3941
  }, [c]), Q = le(
3939
- () => Xn(U),
3942
+ () => qn(U),
3940
3943
  [U]
3941
3944
  ), X = le(() => {
3942
- const he = kn({ message: c, viewerLanguage: v });
3945
+ const he = Cn({ message: c, viewerLanguage: v });
3943
3946
  return he === c.text ? c : { ...c, text: he };
3944
3947
  }, [c, v]), ne = Q.length > 0, ue = Q.reduce(
3945
3948
  (he, pe) => he + pe.attachments.length,
3946
3949
  0
3947
3950
  ) === ((U == null ? void 0 : U.length) ?? 0), ae = (i == null ? void 0 : i[0]) ?? "", De = ae === "top" ? "first" : ae === "middle" ? "middle" : ae === "bottom" ? "end" : "single", se = ae === "single" || ae === "bottom";
3948
- if (Cs(c))
3951
+ if (Ss(c))
3949
3952
  return null;
3950
3953
  if (c.deleted_at || c.type === "deleted")
3951
3954
  return /* @__PURE__ */ n(B, { message: c });
3952
- if (Ss(c))
3955
+ if (Es(c))
3953
3956
  return /* @__PURE__ */ n(A, {});
3954
- const me = !w && !!c.reply_count, ie = !w && c.show_in_channel && c.parent_id, St = c.status === "failed" && ((Lt = c.error) == null ? void 0 : Lt.status) !== 403, Et = Es(c);
3957
+ const me = !w && !!c.reply_count, ie = !w && c.show_in_channel && c.parent_id, Et = c.status === "failed" && ((Mt = c.error) == null ? void 0 : Mt.status) !== 403, It = Is(c);
3955
3958
  let ge;
3956
- St ? ge = () => u(c) : Et && (ge = () => R(!0));
3957
- const te = g(), ns = N(
3959
+ Et ? ge = () => u(c) : It && (ge = () => R(!0));
3960
+ const te = g(), ss = N(
3958
3961
  "str-chat__message str-chat__message-simple",
3959
3962
  `str-chat__message--${c.type}`,
3960
3963
  `str-chat__message--${c.status}`,
@@ -3965,25 +3968,25 @@ const Ki = ({
3965
3968
  "str-chat__message--highlighted": h,
3966
3969
  "str-chat__message--pinned pinned-message": c.pinned,
3967
3970
  "str-chat__message--with-reactions": D,
3968
- "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((Mt = c == null ? void 0 : c.error) == null ? void 0 : Mt.status) !== 403,
3971
+ "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((Dt = c == null ? void 0 : c.error) == null ? void 0 : Dt.status) !== 403,
3969
3972
  "str-chat__message-with-thread-link": me || ie,
3970
3973
  "str-chat__virtual-message__wrapper--end": a,
3971
3974
  "str-chat__virtual-message__wrapper--first": r,
3972
3975
  "str-chat__virtual-message__wrapper--group": o
3973
3976
  }
3974
- ), Ye = c.poll_id && y.polls.fromState(c.poll_id), It = ur(c), ye = ze(c), ss = ht(c), We = !!(U != null && U.length && !c.quoted_message), Tt = ye && te && We, as = ne && ue && !c.quoted_message && !Ye && !Y && !ye, At = {
3977
+ ), Ye = c.poll_id && y.polls.fromState(c.poll_id), Tt = Dn(c), ye = ze(c), as = ht(c), We = !!(U != null && U.length && !c.quoted_message), At = ye && te && We, rs = ne && ue && !c.quoted_message && !Ye && !Y && !ye, Rt = {
3975
3978
  contentType: "text",
3976
- amountText: (Dt = c.metadata) == null ? void 0 : Dt.amount_text,
3977
- paymentStatus: (Ot = c.metadata) == null ? void 0 : Ot.payment_status,
3979
+ amountText: (Ot = c.metadata) == null ? void 0 : Ot.amount_text,
3980
+ paymentStatus: (Pt = c.metadata) == null ? void 0 : Pt.payment_status,
3978
3981
  renderedText: c.text && /* @__PURE__ */ n(Fe, { message: X, renderText: p })
3979
- }, Rt = {
3982
+ }, Lt = {
3980
3983
  contentType: "media",
3981
- title: (Pt = c.metadata) == null ? void 0 : Pt.attachment_title,
3982
- mimeType: (Ft = c.metadata) == null ? void 0 : Ft.attachment_mime_type,
3983
- thumbnailUrl: (zt = c.metadata) == null ? void 0 : zt.attachment_thumbnail,
3984
- amountText: ($t = c.metadata) == null ? void 0 : $t.amount_text,
3985
- detail: (Bt = c.metadata) == null ? void 0 : Bt.attachment_detail,
3986
- paymentStatus: (Ut = c.metadata) == null ? void 0 : Ut.payment_status,
3984
+ title: (Ft = c.metadata) == null ? void 0 : Ft.attachment_title,
3985
+ mimeType: (zt = c.metadata) == null ? void 0 : zt.attachment_mime_type,
3986
+ thumbnailUrl: ($t = c.metadata) == null ? void 0 : $t.attachment_thumbnail,
3987
+ amountText: (Bt = c.metadata) == null ? void 0 : Bt.amount_text,
3988
+ detail: (Ut = c.metadata) == null ? void 0 : Ut.attachment_detail,
3989
+ paymentStatus: (jt = c.metadata) == null ? void 0 : jt.payment_status,
3987
3990
  onFetchSource: E ? () => E(c, _) : void 0
3988
3991
  };
3989
3992
  return /* @__PURE__ */ f(q, { children: [
@@ -3994,7 +3997,7 @@ const Ki = ({
3994
3997
  }
3995
3998
  ),
3996
3999
  F && /* @__PURE__ */ n(
3997
- Is,
4000
+ Ts,
3998
4001
  {
3999
4002
  MessageBouncePrompt: O,
4000
4003
  onClose: () => R(!1),
@@ -4004,7 +4007,7 @@ const Ki = ({
4004
4007
  /* @__PURE__ */ f(
4005
4008
  "div",
4006
4009
  {
4007
- className: ns,
4010
+ className: ss,
4008
4011
  "data-message-id": c.id,
4009
4012
  "data-dd-privacy": "mask",
4010
4013
  children: [
@@ -4026,7 +4029,7 @@ const Ki = ({
4026
4029
  "div",
4027
4030
  {
4028
4031
  className: N("str-chat__message-inner", {
4029
- "str-chat__simple-message--error-failed": St || Et
4032
+ "str-chat__simple-message--error-failed": Et || It
4030
4033
  }),
4031
4034
  "data-testid": "message-inner",
4032
4035
  onClick: ge,
@@ -4039,32 +4042,32 @@ const Ki = ({
4039
4042
  marginInlineEnd: 0,
4040
4043
  marginInlineStart: 0
4041
4044
  },
4042
- children: It ? /* @__PURE__ */ n(Ze, { message: c, standalone: !0 }) : cr(c) ? /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
4045
+ children: Tt ? /* @__PURE__ */ n(Ze, { message: c, standalone: !0 }) : dr(c) ? /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
4043
4046
  te && C && /* @__PURE__ */ n(C, {}),
4044
- te ? /* @__PURE__ */ n(Pe, { ...At, isMine: !0 }) : /* @__PURE__ */ n(
4047
+ te ? /* @__PURE__ */ n(Pe, { ...Rt, isMine: !0 }) : /* @__PURE__ */ n(
4045
4048
  Pe,
4046
4049
  {
4047
- ...At,
4050
+ ...Rt,
4048
4051
  isMine: !1,
4049
4052
  isUnlocking: T(c.id),
4050
4053
  onUnlockClick: () => L == null ? void 0 : L(c, _)
4051
4054
  }
4052
4055
  ),
4053
4056
  !te && C && /* @__PURE__ */ n(C, {})
4054
- ] }) }) : dr(c) ? /* @__PURE__ */ f("div", { className: "str-chat__message-bubble-wrapper", children: [
4057
+ ] }) }) : ur(c) ? /* @__PURE__ */ f("div", { className: "str-chat__message-bubble-wrapper", children: [
4055
4058
  /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
4056
4059
  te && C && /* @__PURE__ */ n(C, {}),
4057
4060
  te ? /* @__PURE__ */ n(
4058
4061
  Pe,
4059
4062
  {
4060
- ...Rt,
4063
+ ...Lt,
4061
4064
  isMine: !0,
4062
4065
  onPreviewClick: () => L ? L(c, _) : void 0
4063
4066
  }
4064
4067
  ) : /* @__PURE__ */ n(
4065
4068
  Pe,
4066
4069
  {
4067
- ...Rt,
4070
+ ...Lt,
4068
4071
  isMine: !1,
4069
4072
  isUnlocking: T(c.id),
4070
4073
  onUnlockClick: () => L ? L(c, _) : void 0,
@@ -4091,8 +4094,8 @@ const Ki = ({
4091
4094
  ]
4092
4095
  }
4093
4096
  )
4094
- ] }) : as ? /* @__PURE__ */ n(
4095
- Ki,
4097
+ ] }) : rs ? /* @__PURE__ */ n(
4098
+ Xi,
4096
4099
  {
4097
4100
  groupPosition: De,
4098
4101
  isMyMessage: te,
@@ -4113,7 +4116,7 @@ const Ki = ({
4113
4116
  "relative isolate": se
4114
4117
  }),
4115
4118
  children: [
4116
- ye && !Tt && /* @__PURE__ */ n(
4119
+ ye && !At && /* @__PURE__ */ n(
4117
4120
  Ze,
4118
4121
  {
4119
4122
  message: c,
@@ -4121,7 +4124,7 @@ const Ki = ({
4121
4124
  isMyMessage: te
4122
4125
  }
4123
4126
  ),
4124
- Ye && /* @__PURE__ */ n(Ts, { poll: Ye }),
4127
+ Ye && /* @__PURE__ */ n(As, { poll: Ye }),
4125
4128
  U != null && U.length && !c.quoted_message ? /* @__PURE__ */ n(
4126
4129
  M,
4127
4130
  {
@@ -4149,7 +4152,7 @@ const Ki = ({
4149
4152
  ) })
4150
4153
  }
4151
4154
  ),
4152
- !ss && !It && /* @__PURE__ */ n("div", { className: "str-chat__message-footer", children: (!ye || Tt) && /* @__PURE__ */ n(
4155
+ !as && !Tt && /* @__PURE__ */ n("div", { className: "str-chat__message-footer", children: (!ye || At) && /* @__PURE__ */ n(
4153
4156
  Ze,
4154
4157
  {
4155
4158
  message: c,
@@ -4158,7 +4161,7 @@ const Ki = ({
4158
4161
  }
4159
4162
  ) }),
4160
4163
  /* @__PURE__ */ n(
4161
- wr,
4164
+ _r,
4162
4165
  {
4163
4166
  onOutboundClick: x,
4164
4167
  resolvedOutbound: b
@@ -4177,68 +4180,68 @@ const Ki = ({
4177
4180
  c.id
4178
4181
  )
4179
4182
  ] });
4180
- }, qi = P.memo(
4181
- Xi,
4183
+ }, Zi = P.memo(
4184
+ qi,
4182
4185
  (e, t) => {
4183
4186
  var s, a, r, i;
4184
- return e.viewerLanguage !== t.viewerLanguage || e.onOutboundClick !== t.onOutboundClick || ((s = e.resolvedOutbound) == null ? void 0 : s.id) !== ((a = t.resolvedOutbound) == null ? void 0 : a.id) || ((r = e.resolvedOutbound) == null ? void 0 : r.name) !== ((i = t.resolvedOutbound) == null ? void 0 : i.name) ? !1 : ms(e, t);
4187
+ return e.viewerLanguage !== t.viewerLanguage || e.onOutboundClick !== t.onOutboundClick || ((s = e.resolvedOutbound) == null ? void 0 : s.id) !== ((a = t.resolvedOutbound) == null ? void 0 : a.id) || ((r = e.resolvedOutbound) == null ? void 0 : r.name) !== ((i = t.resolvedOutbound) == null ? void 0 : i.name) ? !1 : hs(e, t);
4185
4188
  }
4186
- ), Zi = (e) => {
4189
+ ), Ji = (e) => {
4187
4190
  var i;
4188
- const t = fe("CustomMessage"), s = xe(Dn), a = (i = t.message.metadata) == null ? void 0 : i.outbound_id, r = typeof a == "string" ? s == null ? void 0 : s[a] : void 0;
4191
+ const t = fe("CustomMessage"), s = xe(On), a = (i = t.message.metadata) == null ? void 0 : i.outbound_id, r = typeof a == "string" ? s == null ? void 0 : s[a] : void 0;
4189
4192
  return /* @__PURE__ */ n(
4190
- qi,
4193
+ Zi,
4191
4194
  {
4192
4195
  ...t,
4193
4196
  ...e,
4194
4197
  resolvedOutbound: r
4195
4198
  }
4196
4199
  );
4197
- }, Ji = () => {
4200
+ }, Qi = () => {
4198
4201
  var s;
4199
4202
  const { handleDelete: e, message: t } = fe("CustomMessageActions");
4200
4203
  return ((s = t.metadata) == null ? void 0 : s.payment_status) === "paid" ? null : /* @__PURE__ */ n(
4201
- vn,
4204
+ xn,
4202
4205
  {
4203
4206
  onClick: e,
4204
4207
  "aria-label": "Delete",
4205
4208
  title: "Delete",
4206
4209
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
4207
- children: /* @__PURE__ */ n(pa, { size: 16, weight: "light", "aria-hidden": !0 })
4210
+ children: /* @__PURE__ */ n(ba, { size: 16, weight: "light", "aria-hidden": !0 })
4208
4211
  }
4209
4212
  );
4210
- }, Qi = () => {
4213
+ }, el = () => {
4211
4214
  const { handleFlag: e } = fe("CustomMessageActions");
4212
4215
  return /* @__PURE__ */ n(
4213
- vn,
4216
+ xn,
4214
4217
  {
4215
4218
  onClick: e,
4216
4219
  "aria-label": "Report",
4217
4220
  title: "Report",
4218
4221
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
4219
- children: /* @__PURE__ */ n(fn, { size: 16, weight: "light", "aria-hidden": !0 })
4222
+ children: /* @__PURE__ */ n(gn, { size: 16, weight: "light", "aria-hidden": !0 })
4220
4223
  }
4221
4224
  );
4222
- }, el = () => {
4225
+ }, tl = () => {
4223
4226
  var t;
4224
4227
  const { message: e } = fe("CustomMessageActions");
4225
4228
  return ((t = e.metadata) == null ? void 0 : t.custom_type) !== oe.ATTACHMENT ? null : /* @__PURE__ */ n(
4226
- wa,
4229
+ _a,
4227
4230
  {
4228
4231
  messageActionSet: [
4229
- { Component: Ji, placement: "quick", type: "delete" },
4230
- { Component: Qi, placement: "quick", type: "flag" }
4232
+ { Component: Qi, placement: "quick", type: "delete" },
4233
+ { Component: el, placement: "quick", type: "flag" }
4231
4234
  ]
4232
4235
  }
4233
4236
  );
4234
- }, tl = (e) => ({
4237
+ }, nl = (e) => ({
4235
4238
  linkPreviews: Array.from(e.previews.values()).filter(
4236
4239
  (t) => nt.previewIsLoaded(t) || nt.previewIsLoading(t)
4237
4240
  )
4238
- }), nl = () => {
4239
- const { linkPreviewsManager: e } = As(), { linkPreviews: t } = Rs(
4241
+ }), sl = () => {
4242
+ const { linkPreviewsManager: e } = Rs(), { linkPreviews: t } = Ls(
4240
4243
  e.state,
4241
- tl
4244
+ nl
4242
4245
  ), s = (r) => {
4243
4246
  e.dismissPreview(r);
4244
4247
  };
@@ -4302,7 +4305,7 @@ const Ki = ({
4302
4305
  );
4303
4306
  }) })
4304
4307
  ) : null;
4305
- }, Be = P.createContext(!1), sl = 200, ro = () => xe(Be), al = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
4308
+ }, Be = P.createContext(!1), al = 200, io = () => xe(Be), rl = ({ sendMessage: e, disabled: t, ...s }) => /* @__PURE__ */ n(
4306
4309
  "button",
4307
4310
  {
4308
4311
  ...s,
@@ -4311,13 +4314,13 @@ const Ki = ({
4311
4314
  disabled: t,
4312
4315
  onPointerDown: (a) => a.preventDefault(),
4313
4316
  onClick: e,
4314
- children: /* @__PURE__ */ n(ba, { weight: "bold", className: "size-4" })
4317
+ children: /* @__PURE__ */ n(va, { weight: "bold", className: "size-4" })
4315
4318
  }
4316
- ), rn = () => {
4317
- const e = xe(Be), { handleSubmit: t } = Ls(), s = Ms(), a = e || !s, {
4318
- SendButton: r = al,
4319
- AttachmentPreviewList: i = Ds
4320
- } = mn("CustomMessageInput"), o = P.useRef(null);
4319
+ ), ln = () => {
4320
+ const e = xe(Be), { handleSubmit: t } = Ms(), s = Ds(), a = e || !s, {
4321
+ SendButton: r = rl,
4322
+ AttachmentPreviewList: i = Os
4323
+ } = hn("CustomMessageInput"), o = P.useRef(null);
4321
4324
  return P.useEffect(() => {
4322
4325
  const l = o.current;
4323
4326
  if (!l || typeof ResizeObserver > "u")
@@ -4380,13 +4383,13 @@ const Ki = ({
4380
4383
  "data-dd-privacy": "mask",
4381
4384
  children: [
4382
4385
  /* @__PURE__ */ f("div", { className: "messaging-composer-previews empty:hidden flex flex-col gap-2 px-2 pt-2", children: [
4383
- /* @__PURE__ */ n(Os, {}),
4384
- /* @__PURE__ */ n(nl, {}),
4386
+ /* @__PURE__ */ n(Ps, {}),
4387
+ /* @__PURE__ */ n(sl, {}),
4385
4388
  /* @__PURE__ */ n(i, {})
4386
4389
  ] }),
4387
4390
  /* @__PURE__ */ f("div", { className: "messaging-composer-row flex items-start", children: [
4388
4391
  /* @__PURE__ */ n(
4389
- Ps,
4392
+ Fs,
4390
4393
  {
4391
4394
  "aria-disabled": e || void 0,
4392
4395
  containerClassName: "min-w-0 flex-1 leading-[0]",
@@ -4413,14 +4416,14 @@ const Ki = ({
4413
4416
  ]
4414
4417
  }
4415
4418
  );
4416
- }, ln = () => /* @__PURE__ */ f("div", { className: "messaging-composer-backdrop", "aria-hidden": "true", children: [
4419
+ }, on = () => /* @__PURE__ */ f("div", { className: "messaging-composer-backdrop", "aria-hidden": "true", children: [
4417
4420
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4418
4421
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4419
4422
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4420
4423
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4421
4424
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4422
4425
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-gradient" })
4423
- ] }), on = ({
4426
+ ] }), cn = ({
4424
4427
  renderActions: e,
4425
4428
  renderHeader: t,
4426
4429
  renderFooter: s,
@@ -4442,7 +4445,7 @@ const Ki = ({
4442
4445
  c = v;
4443
4446
  const b = Array.from(
4444
4447
  g.querySelectorAll(".str-chat__list")
4445
- ).find((_) => _.scrollHeight > _.clientHeight) ?? null, y = b ? b.scrollHeight - b.scrollTop - b.clientHeight < sl : !1;
4448
+ ).find((_) => _.scrollHeight > _.clientHeight) ?? null, y = b ? b.scrollHeight - b.scrollTop - b.clientHeight < al : !1;
4446
4449
  g.style.setProperty(
4447
4450
  "--messaging-composer-height",
4448
4451
  `${v}px`
@@ -4460,7 +4463,7 @@ const Ki = ({
4460
4463
  ref: u,
4461
4464
  className: "messaging-composer-chrome messaging-composer-chrome--floating",
4462
4465
  children: [
4463
- /* @__PURE__ */ n(ln, {}),
4466
+ /* @__PURE__ */ n(on, {}),
4464
4467
  /* @__PURE__ */ f("div", { className: "relative z-10 flex flex-col", children: [
4465
4468
  t == null ? void 0 : t(),
4466
4469
  /* @__PURE__ */ n("div", { className: "messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3 px-6 py-4", children: r ? /* @__PURE__ */ n("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: r }) : null }),
@@ -4478,7 +4481,7 @@ const Ki = ({
4478
4481
  ref: u,
4479
4482
  className: "messaging-composer-chrome messaging-composer-chrome--floating",
4480
4483
  children: [
4481
- /* @__PURE__ */ n(ln, {}),
4484
+ /* @__PURE__ */ n(on, {}),
4482
4485
  /* @__PURE__ */ f("div", { className: "relative z-10 flex min-h-0 flex-col", children: [
4483
4486
  t == null ? void 0 : t(),
4484
4487
  /* @__PURE__ */ f("div", { className: "flex min-h-0 flex-col gap-4 p-4", children: [
@@ -4490,7 +4493,7 @@ const Ki = ({
4490
4493
  className: "message-input flex min-h-0 items-end gap-4 aria-disabled:opacity-40",
4491
4494
  children: [
4492
4495
  e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
4493
- /* @__PURE__ */ n(Be.Provider, { value: l, children: /* @__PURE__ */ n(Vt, { Input: i ?? rn }) })
4496
+ /* @__PURE__ */ n(Be.Provider, { value: l, children: /* @__PURE__ */ n(Gt, { Input: i ?? ln }) })
4494
4497
  ]
4495
4498
  }
4496
4499
  ),
@@ -4509,42 +4512,42 @@ const Ki = ({
4509
4512
  className: "message-input flex min-h-0 items-end gap-4 aria-disabled:opacity-40",
4510
4513
  children: [
4511
4514
  e && /* @__PURE__ */ n("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
4512
- /* @__PURE__ */ n(Be.Provider, { value: l, children: /* @__PURE__ */ n(Vt, { Input: rn }) })
4515
+ /* @__PURE__ */ n(Be.Provider, { value: l, children: /* @__PURE__ */ n(Gt, { Input: ln }) })
4513
4516
  ]
4514
4517
  }
4515
4518
  ),
4516
4519
  s == null ? void 0 : s()
4517
4520
  ] });
4518
- }, rl = {
4521
+ }, il = {
4519
4522
  SYSTEM_DM_AGENT_PAUSED: "DM Agent has left the conversation",
4520
4523
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
4521
- }, il = ["SYSTEM_AGE_SAFETY_BLOCKED"], ll = {
4524
+ }, ll = ["SYSTEM_AGE_SAFETY_BLOCKED"], ol = {
4522
4525
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
4523
- }, et = "age safety guidelines.", ol = "https://linktr.ee/s/about/contact", cl = (e) => il.includes(
4526
+ }, et = "age safety guidelines.", cl = "https://linktr.ee/s/about/contact", dl = (e) => ll.includes(
4524
4527
  e
4525
- ), dl = (e) => {
4528
+ ), ul = (e) => {
4526
4529
  var t;
4527
- return cl((t = e.metadata) == null ? void 0 : t.custom_type);
4528
- }, ul = (e) => {
4530
+ return dl((t = e.metadata) == null ? void 0 : t.custom_type);
4531
+ }, ml = (e) => {
4529
4532
  var a;
4530
4533
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
4531
- if (Yt(t))
4534
+ if (Wt(t))
4532
4535
  return {
4533
4536
  kind: "dm-agent",
4534
4537
  type: t
4535
4538
  };
4536
- if (Gs(t))
4539
+ if (Ys(t))
4537
4540
  return {
4538
4541
  kind: "age-safety",
4539
4542
  type: t
4540
4543
  };
4541
4544
  const s = e.dm_agent_system_type;
4542
- if (Yt(s))
4545
+ if (Wt(s))
4543
4546
  return {
4544
4547
  kind: "dm-agent",
4545
4548
  type: s
4546
4549
  };
4547
- }, ml = (e) => {
4550
+ }, hl = (e) => {
4548
4551
  const t = e.indexOf(et);
4549
4552
  if (t === -1)
4550
4553
  return e;
@@ -4554,7 +4557,7 @@ const Ki = ({
4554
4557
  /* @__PURE__ */ n(
4555
4558
  "a",
4556
4559
  {
4557
- href: ol,
4560
+ href: cl,
4558
4561
  target: "_blank",
4559
4562
  rel: "noopener noreferrer",
4560
4563
  className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
@@ -4563,13 +4566,13 @@ const Ki = ({
4563
4566
  ),
4564
4567
  e.slice(s)
4565
4568
  ] });
4566
- }, hl = (e) => {
4569
+ }, fl = (e) => {
4567
4570
  var a, r;
4568
- const t = !dl(e.message), s = ul(
4571
+ const t = !ul(e.message), s = ml(
4569
4572
  e.message
4570
4573
  );
4571
4574
  if ((s == null ? void 0 : s.kind) === "dm-agent") {
4572
- const i = ((a = e.message.text) == null ? void 0 : a.trim()) || rl[s.type];
4575
+ const i = ((a = e.message.text) == null ? void 0 : a.trim()) || il[s.type];
4573
4576
  return /* @__PURE__ */ f("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4574
4577
  /* @__PURE__ */ f(
4575
4578
  "div",
@@ -4579,7 +4582,7 @@ const Ki = ({
4579
4582
  "data-dm-agent-system-type": s.type,
4580
4583
  children: [
4581
4584
  /* @__PURE__ */ n(
4582
- va,
4585
+ xa,
4583
4586
  {
4584
4587
  size: 16,
4585
4588
  weight: "regular",
@@ -4595,7 +4598,7 @@ const Ki = ({
4595
4598
  ] });
4596
4599
  }
4597
4600
  if ((s == null ? void 0 : s.kind) === "age-safety") {
4598
- const i = ((r = e.message.text) == null ? void 0 : r.trim()) || ll[s.type];
4601
+ const i = ((r = e.message.text) == null ? void 0 : r.trim()) || ol[s.type];
4599
4602
  return /* @__PURE__ */ f("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4600
4603
  /* @__PURE__ */ f(
4601
4604
  "div",
@@ -4605,7 +4608,7 @@ const Ki = ({
4605
4608
  "data-age-safety-system-type": s.type,
4606
4609
  children: [
4607
4610
  /* @__PURE__ */ n(
4608
- xa,
4611
+ wa,
4609
4612
  {
4610
4613
  size: 24,
4611
4614
  weight: "duotone",
@@ -4614,7 +4617,7 @@ const Ki = ({
4614
4617
  "data-testid": "age-safety-system-message-icon"
4615
4618
  }
4616
4619
  ),
4617
- /* @__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: ml(i) }) })
4620
+ /* @__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: hl(i) }) })
4618
4621
  ]
4619
4622
  }
4620
4623
  ),
@@ -4629,7 +4632,7 @@ const Ki = ({
4629
4632
  ] }),
4630
4633
  !t && /* @__PURE__ */ n(Ke, { message: e.message })
4631
4634
  ] });
4632
- }, qn = je(!1), tt = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "6.15", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
4635
+ }, Zn = je(!1), tt = ({ cx: e, index: t }) => /* @__PURE__ */ n("circle", { cx: e, cy: "6.15", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ n(
4633
4636
  "animateTransform",
4634
4637
  {
4635
4638
  attributeName: "transform",
@@ -4639,17 +4642,17 @@ const Ki = ({
4639
4642
  begin: `${120 * t}ms`,
4640
4643
  repeatCount: "indefinite"
4641
4644
  }
4642
- ) }), fl = /* @__PURE__ */ new Set([
4645
+ ) }), gl = /* @__PURE__ */ new Set([
4643
4646
  Xe.Thinking,
4644
4647
  Xe.Generating,
4645
4648
  Xe.ExternalSources
4646
- ]), gl = ({ threadList: e }) => {
4649
+ ]), pl = ({ threadList: e }) => {
4647
4650
  var p, w;
4648
- const { channel: t, channelConfig: s, thread: a } = we(), { client: r } = He(), { typing: i = {} } = Fs(), { aiState: o } = zs(t), l = xe(qn);
4649
- if (!e && l && fl.has(o)) {
4650
- const v = pl(t, (p = r.user) == null ? void 0 : p.id);
4651
+ const { channel: t, channelConfig: s, thread: a } = we(), { client: r } = He(), { typing: i = {} } = zs(), { aiState: o } = $s(t), l = xe(Zn);
4652
+ if (!e && l && gl.has(o)) {
4653
+ const v = bl(t, (p = r.user) == null ? void 0 : p.id);
4651
4654
  return /* @__PURE__ */ n(
4652
- cn,
4655
+ dn,
4653
4656
  {
4654
4657
  avatarId: (v == null ? void 0 : v.id) ?? "ai-agent",
4655
4658
  avatarName: (v == null ? void 0 : v.name) ?? (v == null ? void 0 : v.id) ?? "Agent",
@@ -4675,7 +4678,7 @@ const Ki = ({
4675
4678
  return null;
4676
4679
  const g = (w = m[0]) == null ? void 0 : w.user, c = g != null && g.id && t.state.members[g.id] ? t.state.members[g.id].user : void 0;
4677
4680
  return /* @__PURE__ */ n(
4678
- cn,
4681
+ dn,
4679
4682
  {
4680
4683
  avatarId: (g == null ? void 0 : g.id) ?? (c == null ? void 0 : c.id) ?? "typing-user",
4681
4684
  avatarName: (g == null ? void 0 : g.name) ?? (c == null ? void 0 : c.name) ?? (g == null ? void 0 : g.id) ?? "Typing user",
@@ -4683,7 +4686,7 @@ const Ki = ({
4683
4686
  testId: "typing-indicator"
4684
4687
  }
4685
4688
  );
4686
- }, cn = ({
4689
+ }, dn = ({
4687
4690
  avatarId: e,
4688
4691
  avatarName: t,
4689
4692
  avatarImage: s,
@@ -4730,7 +4733,7 @@ const Ki = ({
4730
4733
  ] })
4731
4734
  }
4732
4735
  );
4733
- function pl(e, t) {
4736
+ function bl(e, t) {
4734
4737
  var a;
4735
4738
  const s = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
4736
4739
  for (const r of Object.values(s)) {
@@ -4739,7 +4742,7 @@ function pl(e, t) {
4739
4742
  return i;
4740
4743
  }
4741
4744
  }
4742
- const bl = () => null, vl = ({ className: e, message: t }) => /* @__PURE__ */ f(
4745
+ const vl = () => null, xl = ({ className: e, message: t }) => /* @__PURE__ */ f(
4743
4746
  "div",
4744
4747
  {
4745
4748
  className: N("flex items-center justify-center h-full", e),
@@ -4783,11 +4786,11 @@ const bl = () => null, vl = ({ className: e, message: t }) => /* @__PURE__ */ f(
4783
4786
  ]
4784
4787
  }
4785
4788
  ), Ue = P.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ f("div", { className: "flex items-center", children: [
4786
- /* @__PURE__ */ n(vl, { className: "w-6 h-6" }),
4789
+ /* @__PURE__ */ n(xl, { className: "w-6 h-6" }),
4787
4790
  /* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
4788
4791
  ] }) }));
4789
4792
  Ue.displayName = "LoadingState";
4790
- const xl = ({
4793
+ const wl = ({
4791
4794
  onBack: e,
4792
4795
  showBackButton: t,
4793
4796
  renderMessageInputActions: s,
@@ -4822,10 +4825,10 @@ const xl = ({
4822
4825
  const S = K((Z) => {
4823
4826
  var J;
4824
4827
  (J = M.current) == null || J.call(M, Z);
4825
- }, []), C = E ? S : void 0, A = pr(I, z), O = R.state.messages.some(
4828
+ }, []), C = E ? S : void 0, A = br(I, z), O = R.state.messages.some(
4826
4829
  (Z) => Z.type !== "deleted"
4827
4830
  ), B = v ? /* @__PURE__ */ n(P.Fragment, { children: v() }, "lt-channel-banner") : null, G = /* @__PURE__ */ n(
4828
- La,
4831
+ Ma,
4829
4832
  {
4830
4833
  className: "-mx-[var(--str-chat\\_\\_spacing-2)] px-[var(--str-chat\\_\\_spacing-2)] md:-mx-[min(var(--str-chat\\_\\_spacing-10),4%)] md:px-[min(var(--str-chat\\_\\_spacing-10),4%)]",
4831
4834
  onBack: e,
@@ -4847,7 +4850,7 @@ const xl = ({
4847
4850
  ), ee = K(
4848
4851
  (Z) => {
4849
4852
  const { message: J } = fe("ChannelView"), j = /* @__PURE__ */ n(
4850
- Zi,
4853
+ Ji,
4851
4854
  {
4852
4855
  ...Z,
4853
4856
  viewerLanguage: _,
@@ -4858,16 +4861,16 @@ const xl = ({
4858
4861
  },
4859
4862
  [C, y, _]
4860
4863
  );
4861
- return /* @__PURE__ */ n(Dn.Provider, { value: A, children: /* @__PURE__ */ n(
4862
- Bs,
4864
+ return /* @__PURE__ */ n(On.Provider, { value: A, children: /* @__PURE__ */ n(
4865
+ Us,
4863
4866
  {
4864
4867
  overrides: {
4865
4868
  Message: ee,
4866
- MessageActions: el,
4869
+ MessageActions: tl,
4867
4870
  UnreadMessagesNotification: () => null,
4868
4871
  UnreadMessagesSeparator: () => null
4869
4872
  },
4870
- children: /* @__PURE__ */ n(Us, { children: F ? /* @__PURE__ */ f("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
4873
+ children: /* @__PURE__ */ n(js, { children: F ? /* @__PURE__ */ f("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
4871
4874
  /* @__PURE__ */ f(
4872
4875
  "div",
4873
4876
  {
@@ -4878,7 +4881,7 @@ const xl = ({
4878
4881
  B
4879
4882
  ] }) }),
4880
4883
  /* @__PURE__ */ n(
4881
- Gt,
4884
+ Yt,
4882
4885
  {
4883
4886
  head: O ? /* @__PURE__ */ f("div", { className: "sticky top-0 z-10", children: [
4884
4887
  G,
@@ -4893,7 +4896,7 @@ const xl = ({
4893
4896
  "lt-channel-message-list"
4894
4897
  ),
4895
4898
  /* @__PURE__ */ n(
4896
- on,
4899
+ cn,
4897
4900
  {
4898
4901
  ...s && {
4899
4902
  renderActions: () => s == null ? void 0 : s(R)
@@ -4919,7 +4922,7 @@ const xl = ({
4919
4922
  B
4920
4923
  ] }) }),
4921
4924
  /* @__PURE__ */ n(
4922
- Gt,
4925
+ Yt,
4923
4926
  {
4924
4927
  head: O ? /* @__PURE__ */ f("div", { className: "sticky top-0 z-10", children: [
4925
4928
  G,
@@ -4935,7 +4938,7 @@ const xl = ({
4935
4938
  ),
4936
4939
  r ? /* @__PURE__ */ n(P.Fragment, { children: r(R) }, "lt-channel-conversation-footer") : null,
4937
4940
  /* @__PURE__ */ n(
4938
- on,
4941
+ cn,
4939
4942
  {
4940
4943
  ...s && {
4941
4944
  renderActions: () => s == null ? void 0 : s(R)
@@ -4950,7 +4953,7 @@ const xl = ({
4950
4953
  ] }) })
4951
4954
  }
4952
4955
  ) });
4953
- }, Zn = P.memo(
4956
+ }, Jn = P.memo(
4954
4957
  ({
4955
4958
  channel: e,
4956
4959
  onBack: t,
@@ -4961,7 +4964,7 @@ const xl = ({
4961
4964
  onLeaveConversation: o,
4962
4965
  onBlockParticipant: l,
4963
4966
  className: d,
4964
- CustomChannelEmptyState: u = bl,
4967
+ CustomChannelEmptyState: u = vl,
4965
4968
  showDeleteConversation: h = !0,
4966
4969
  onDeleteConversationClick: m,
4967
4970
  onBlockParticipantClick: g,
@@ -5020,7 +5023,7 @@ const xl = ({
5020
5023
  };
5021
5024
  return j.addEventListener("click", k), () => j.removeEventListener("click", k);
5022
5025
  }, [R, e]);
5023
- const J = hn(e.type) ? { "--lt-msg-card-width": "368px" } : void 0;
5026
+ const J = fn(e.type) ? { "--lt-msg-card-width": "368px" } : void 0;
5024
5027
  return /* @__PURE__ */ n(
5025
5028
  "div",
5026
5029
  {
@@ -5030,20 +5033,20 @@ const xl = ({
5030
5033
  d
5031
5034
  ),
5032
5035
  style: J,
5033
- children: /* @__PURE__ */ n(qn.Provider, { value: b ?? !1, children: /* @__PURE__ */ n(
5034
- $s,
5036
+ children: /* @__PURE__ */ n(Zn.Provider, { value: b ?? !1, children: /* @__PURE__ */ n(
5037
+ Bs,
5035
5038
  {
5036
5039
  channel: e,
5037
- MessageSystem: hl,
5040
+ MessageSystem: fl,
5038
5041
  EmptyStateIndicator: u,
5039
5042
  LoadingIndicator: Ue,
5040
- DateSeparator: Ma,
5041
- TypingIndicator: gl,
5043
+ DateSeparator: Da,
5044
+ TypingIndicator: pl,
5042
5045
  doSendMessageRequest: ee,
5043
5046
  ...I ? { SendButton: I } : {},
5044
5047
  ...M ? { AttachmentPreviewList: M } : {},
5045
5048
  children: /* @__PURE__ */ n(
5046
- xl,
5049
+ wl,
5047
5050
  {
5048
5051
  onBack: t,
5049
5052
  showBackButton: s,
@@ -5080,7 +5083,7 @@ const xl = ({
5080
5083
  );
5081
5084
  }
5082
5085
  );
5083
- Zn.displayName = "ChannelView";
5086
+ Jn.displayName = "ChannelView";
5084
5087
  const Ce = P.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ f("div", { className: "text-center max-w-sm", children: [
5085
5088
  /* @__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: "⚠️" }) }),
5086
5089
  /* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
@@ -5096,7 +5099,7 @@ const Ce = P.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { clas
5096
5099
  )
5097
5100
  ] }) }));
5098
5101
  Ce.displayName = "ErrorState";
5099
- const io = ({
5102
+ const lo = ({
5100
5103
  capabilities: e = {},
5101
5104
  renderMessageInputActions: t,
5102
5105
  renderConversationFooter: s,
@@ -5129,7 +5132,7 @@ const io = ({
5129
5132
  refreshConnection: I,
5130
5133
  service: M,
5131
5134
  debug: S
5132
- } = _a(), [C, A] = $(null), [O, B] = $(null), [G, ee] = $(!1), { showDeleteConversation: Z = !0 } = e, J = V(o);
5135
+ } = ya(), [C, A] = $(null), [O, B] = $(null), [G, ee] = $(!1), { showDeleteConversation: Z = !0 } = e, J = V(o);
5133
5136
  J.current = o;
5134
5137
  const j = V(a);
5135
5138
  j.current = a;
@@ -5213,7 +5216,7 @@ const io = ({
5213
5216
  onBack: I
5214
5217
  }
5215
5218
  ) : O ? /* @__PURE__ */ n(Ce, { message: O }) : G && !C ? /* @__PURE__ */ n(Ce, { message: "Conversation ended" }) : C ? /* @__PURE__ */ n("div", { className: "messaging-shell h-full bg-background-primary overflow-hidden", children: /* @__PURE__ */ n("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ n(
5216
- Zn,
5219
+ Jn,
5217
5220
  {
5218
5221
  channel: C,
5219
5222
  renderMessageInputActions: t,
@@ -5241,13 +5244,13 @@ const io = ({
5241
5244
  C.id
5242
5245
  ) }) }) : /* @__PURE__ */ n(Ue, {});
5243
5246
  };
5244
- function wl(e) {
5247
+ function _l(e) {
5245
5248
  const t = e.state.pending_messages;
5246
5249
  if (t != null && t.length)
5247
5250
  for (const s of t)
5248
5251
  e.state.addMessageSorted(s.message);
5249
5252
  }
5250
- const Jn = P.createContext({
5253
+ const Qn = P.createContext({
5251
5254
  selectedChannel: void 0,
5252
5255
  onChannelSelect: () => {
5253
5256
  },
@@ -5255,14 +5258,14 @@ const Jn = P.createContext({
5255
5258
  renderMessagePreview: void 0,
5256
5259
  channelPreview: void 0,
5257
5260
  viewerLanguage: void 0
5258
- }), _l = Jn.Provider, yl = () => P.useContext(Jn), Nl = (e, t) => {
5261
+ }), yl = Qn.Provider, Nl = () => P.useContext(Qn), kl = (e, t) => {
5259
5262
  const s = Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()), a = Date.UTC(t.getFullYear(), t.getMonth(), t.getDate());
5260
5263
  return Math.floor((a - s) / (1e3 * 60 * 60 * 24));
5261
- }, kl = (e) => {
5264
+ }, Cl = (e) => {
5262
5265
  const t = /* @__PURE__ */ new Date();
5263
5266
  if (Math.floor((t.getTime() - e.getTime()) / 1e3) < 60)
5264
5267
  return "Just now";
5265
- const a = Nl(e, t);
5268
+ const a = kl(e, t);
5266
5269
  return a === 0 ? e.toLocaleTimeString([], {
5267
5270
  hour: "numeric",
5268
5271
  minute: "2-digit",
@@ -5275,7 +5278,7 @@ const Jn = P.createContext({
5275
5278
  day: "numeric",
5276
5279
  year: "numeric"
5277
5280
  });
5278
- }, Qn = P.memo(
5281
+ }, es = P.memo(
5279
5282
  (e) => {
5280
5283
  var z, F, R;
5281
5284
  const { channel: t, unread: s } = e, {
@@ -5285,7 +5288,7 @@ const Jn = P.createContext({
5285
5288
  channelPreview: o,
5286
5289
  renderMessagePreview: l,
5287
5290
  viewerLanguage: d
5288
- } = yl(), { client: u } = He(), h = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = wn(t);
5291
+ } = Nl(), { client: u } = He(), h = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = _n(t);
5289
5292
  if (o)
5290
5293
  return /* @__PURE__ */ n(
5291
5294
  o,
@@ -5302,11 +5305,11 @@ const Jn = P.createContext({
5302
5305
  }, c = (I) => {
5303
5306
  const M = I.key === "Enter" || I.key === " ", S = I.repeat;
5304
5307
  !M || S || (I.preventDefault(), g());
5305
- }, p = _n(
5308
+ }, p = yn(
5306
5309
  (z = t == null ? void 0 : t.state) == null ? void 0 : z.members,
5307
5310
  u == null ? void 0 : u.userID,
5308
5311
  t == null ? void 0 : t.type
5309
- ), w = yn(p == null ? void 0 : p.user), v = (F = p == null ? void 0 : p.user) == null ? void 0 : F.image, x = (() => {
5312
+ ), w = Nn(p == null ? void 0 : p.user), v = (F = p == null ? void 0 : p.user) == null ? void 0 : F.image, x = (() => {
5310
5313
  var M;
5311
5314
  const I = (M = t == null ? void 0 : t.state) == null ? void 0 : M.messages;
5312
5315
  if (I != null && I.length) {
@@ -5315,7 +5318,7 @@ const Jn = P.createContext({
5315
5318
  }
5316
5319
  })(), y = (() => {
5317
5320
  var A;
5318
- const I = kn({
5321
+ const I = Cn({
5319
5322
  message: x,
5320
5323
  viewerLanguage: d
5321
5324
  }), { custom_type: M, attachment_content_type: S } = (x == null ? void 0 : x.metadata) || {};
@@ -5332,7 +5335,7 @@ const Jn = P.createContext({
5332
5335
  if (I) return I;
5333
5336
  const C = (A = x == null ? void 0 : x.attachments) == null ? void 0 : A[0];
5334
5337
  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";
5335
- })(), _ = x != null && x.created_at ? kl(new Date(x.created_at)) : "", T = x ? ze(x) : !1, L = l ? l(x, y) : `${T ? "✨ " : ""}${y}`, E = s ?? 0;
5338
+ })(), _ = x != null && x.created_at ? Cl(new Date(x.created_at)) : "", T = x ? ze(x) : !1, L = l ? l(x, y) : `${T ? "✨ " : ""}${y}`, E = s ?? 0;
5336
5339
  return i && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
5337
5340
  channelId: t == null ? void 0 : t.id,
5338
5341
  isSelected: h,
@@ -5391,18 +5394,18 @@ const Jn = P.createContext({
5391
5394
  );
5392
5395
  }
5393
5396
  );
5394
- Qn.displayName = "CustomChannelPreview";
5395
- const Cl = { last_message_at: -1 }, Sl = P.memo(
5397
+ es.displayName = "CustomChannelPreview";
5398
+ const Sl = { last_message_at: -1 }, El = P.memo(
5396
5399
  ({
5397
5400
  onChannelSelect: e,
5398
5401
  selectedChannel: t,
5399
5402
  filters: s,
5400
5403
  allowNewMessagesFromUnfilteredChannels: a = !1,
5401
5404
  channelRenderFilterFn: r,
5402
- sort: i = Cl,
5405
+ sort: i = Sl,
5403
5406
  className: o,
5404
5407
  customEmptyStateIndicator: l,
5405
- channelListPaginator: d = Hs,
5408
+ channelListPaginator: d = Vs,
5406
5409
  channelPreview: u,
5407
5410
  renderMessagePreview: h,
5408
5411
  viewerLanguage: m,
@@ -5418,7 +5421,7 @@ const Cl = { last_message_at: -1 }, Sl = P.memo(
5418
5421
  const { debug: y = !1 } = ot(), _ = P.useCallback(
5419
5422
  (L) => {
5420
5423
  for (const E of L)
5421
- wl(E);
5424
+ _l(E);
5422
5425
  return r ? r(L) : L;
5423
5426
  },
5424
5427
  [r]
@@ -5453,8 +5456,8 @@ const Cl = { last_message_at: -1 }, Sl = P.memo(
5453
5456
  "messaging-channel-list h-full flex flex-col min-w-0 overflow-hidden",
5454
5457
  o
5455
5458
  ),
5456
- children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(_l, { value: T, children: /* @__PURE__ */ n(
5457
- js,
5459
+ children: /* @__PURE__ */ n("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ n(yl, { value: T, children: /* @__PURE__ */ n(
5460
+ Hs,
5458
5461
  {
5459
5462
  filters: s,
5460
5463
  sort: i,
@@ -5468,7 +5471,7 @@ const Cl = { last_message_at: -1 }, Sl = P.memo(
5468
5471
  onAddedToChannel: v,
5469
5472
  onChannelUpdated: x,
5470
5473
  Paginator: d,
5471
- Preview: Qn,
5474
+ Preview: es,
5472
5475
  EmptyStateIndicator: l
5473
5476
  },
5474
5477
  `${JSON.stringify(s)}:${JSON.stringify(i)}`
@@ -5477,8 +5480,8 @@ const Cl = { last_message_at: -1 }, Sl = P.memo(
5477
5480
  );
5478
5481
  }
5479
5482
  );
5480
- Sl.displayName = "ChannelList";
5481
- const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [text-wrap:balance]", Il = "text-[12px] leading-4 tracking-[0.24px] [text-wrap:pretty]", dn = ({ surface: e, actions: t, layout: s }) => {
5483
+ El.displayName = "ChannelList";
5484
+ const Il = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [text-wrap:balance]", Tl = "text-[12px] leading-4 tracking-[0.24px] [text-wrap:pretty]", un = ({ surface: e, actions: t, layout: s }) => {
5482
5485
  if (t == null || t.length === 0) return null;
5483
5486
  const a = s === "stacked";
5484
5487
  return /* @__PURE__ */ n(
@@ -5493,7 +5496,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5493
5496
  a ? "mt-3 flex-col" : "min-w-0 max-w-[60%] flex-row flex-wrap justify-end"
5494
5497
  ),
5495
5498
  children: t.map((r, i) => /* @__PURE__ */ n(
5496
- On,
5499
+ Pn,
5497
5500
  {
5498
5501
  variant: e,
5499
5502
  cta: r,
@@ -5504,7 +5507,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5504
5507
  ))
5505
5508
  }
5506
5509
  );
5507
- }, Tl = ({
5510
+ }, Al = ({
5508
5511
  ctaSurface: e,
5509
5512
  chinTextColor: t,
5510
5513
  title: s,
@@ -5528,7 +5531,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5528
5531
  /* @__PURE__ */ n(
5529
5532
  "p",
5530
5533
  {
5531
- className: N("min-w-0", El),
5534
+ className: N("min-w-0", Il),
5532
5535
  style: h,
5533
5536
  children: s
5534
5537
  }
@@ -5538,7 +5541,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5538
5541
  "p",
5539
5542
  {
5540
5543
  className: N(
5541
- Il,
5544
+ Tl,
5542
5545
  r > 1 && "whitespace-pre-line",
5543
5546
  r <= 1 && "truncate"
5544
5547
  ),
@@ -5549,11 +5552,11 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5549
5552
  ] });
5550
5553
  return /* @__PURE__ */ n("div", { className: "shrink-0 px-4 py-3", children: g ? /* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-3", children: [
5551
5554
  c,
5552
- /* @__PURE__ */ n(dn, { surface: e, actions: o, layout: "row" })
5555
+ /* @__PURE__ */ n(un, { surface: e, actions: o, layout: "row" })
5553
5556
  ] }) : /* @__PURE__ */ f(q, { children: [
5554
5557
  c,
5555
5558
  /* @__PURE__ */ n(
5556
- dn,
5559
+ un,
5557
5560
  {
5558
5561
  surface: e,
5559
5562
  actions: o,
@@ -5561,36 +5564,36 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5561
5564
  }
5562
5565
  )
5563
5566
  ] }) });
5564
- }, Al = {
5567
+ }, Rl = {
5565
5568
  dark: "bg-white/[0.06]",
5566
5569
  light: "bg-black/[0.04]"
5567
- }, Rl = {
5570
+ }, Ll = {
5568
5571
  1: [0],
5569
5572
  2: [-10, 10],
5570
5573
  3: [-13, 0, 13]
5571
- }, Ll = {
5574
+ }, Ml = {
5572
5575
  1: [0],
5573
5576
  2: [-26, 26],
5574
5577
  3: [-40, 0, 40]
5575
- }, Ml = {
5578
+ }, Dl = {
5576
5579
  1: [0],
5577
5580
  2: [0, 1],
5578
5581
  3: [1, 3, 2]
5579
- }, Dl = {
5582
+ }, Ol = {
5580
5583
  1: [1],
5581
5584
  2: [1, 1],
5582
5585
  3: [1, 1.08, 1]
5583
- }, Ol = ({ variant: e, images: t }) => {
5586
+ }, Pl = ({ variant: e, images: t }) => {
5584
5587
  const [s, a] = P.useState({}), r = t.join(`
5585
5588
  `), [i, o] = P.useState(r);
5586
5589
  r !== i && (o(r), a({}));
5587
- const l = t.slice(0, 3).map((c, p) => ({ src: c, index: p })).filter(({ index: c }) => !s[c]), d = l.length >= 3 ? 3 : l.length === 2 ? 2 : 1, u = Rl[d], h = Ll[d], m = Ml[d], g = Dl[d];
5590
+ const l = t.slice(0, 3).map((c, p) => ({ src: c, index: p })).filter(({ index: c }) => !s[c]), d = l.length >= 3 ? 3 : l.length === 2 ? 2 : 1, u = Ll[d], h = Ml[d], m = Dl[d], g = Ol[d];
5588
5591
  return /* @__PURE__ */ n(
5589
5592
  "div",
5590
5593
  {
5591
5594
  className: N(
5592
5595
  "relative flex min-h-0 w-full flex-1 items-center justify-center overflow-hidden",
5593
- Al[e]
5596
+ Rl[e]
5594
5597
  ),
5595
5598
  children: l.map(({ src: c, index: p }, w) => /* @__PURE__ */ n(
5596
5599
  "img",
@@ -5611,14 +5614,14 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5611
5614
  ))
5612
5615
  }
5613
5616
  );
5614
- }, Pl = "flex h-[180px] w-full shrink-0 flex-col overflow-hidden", Fl = ({
5617
+ }, Fl = "flex h-[180px] w-full shrink-0 flex-col overflow-hidden", zl = ({
5615
5618
  variant: e,
5616
5619
  presentation: t,
5617
5620
  images: s,
5618
5621
  title: a,
5619
5622
  heroUrl: r,
5620
5623
  onHeroError: i
5621
- }) => /* @__PURE__ */ n("div", { className: Pl, children: t === "fan" ? /* @__PURE__ */ n(Ol, { variant: e, images: s }) : (
5624
+ }) => /* @__PURE__ */ n("div", { className: Fl, children: t === "fan" ? /* @__PURE__ */ n(Pl, { variant: e, images: s }) : (
5622
5625
  // `heroUrl` is the palette-tracked source: it becomes `undefined` when the
5623
5626
  // hero image errors, so `CardThumbnail` falls through to its placeholder.
5624
5627
  // Do NOT `?? images[0]` here — that would re-instate the failed URL.
@@ -5632,7 +5635,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5632
5635
  onImageError: i
5633
5636
  }
5634
5637
  )
5635
- ) }), es = ({
5638
+ ) }), ts = ({
5636
5639
  variant: e,
5637
5640
  title: t,
5638
5641
  subtitle: s,
@@ -5644,7 +5647,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5644
5647
  accentColor: d,
5645
5648
  groupPosition: u = "single"
5646
5649
  }) => {
5647
- const h = Ys({
5650
+ const h = Ws({
5648
5651
  imagePresentation: i,
5649
5652
  images: r
5650
5653
  }), m = r.length > 0, g = m && h === "hero", c = Ge({
@@ -5654,7 +5657,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5654
5657
  thumbnailUrl: g ? r[0] : void 0
5655
5658
  }), p = u === "single" || u === "end";
5656
5659
  return /* @__PURE__ */ n(
5657
- xt,
5660
+ wt,
5658
5661
  {
5659
5662
  accentHex: c.accentHex,
5660
5663
  side: e === "dark" ? "sender" : "receiver",
@@ -5667,7 +5670,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5667
5670
  "data-testid": "rich-card",
5668
5671
  children: [
5669
5672
  m && /* @__PURE__ */ n(
5670
- Fl,
5673
+ zl,
5671
5674
  {
5672
5675
  variant: e,
5673
5676
  presentation: h,
@@ -5678,7 +5681,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5678
5681
  }
5679
5682
  ),
5680
5683
  /* @__PURE__ */ n(
5681
- Tl,
5684
+ Al,
5682
5685
  {
5683
5686
  ctaSurface: c.surface,
5684
5687
  chinTextColor: c.chinTextColor,
@@ -5694,13 +5697,13 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5694
5697
  )
5695
5698
  }
5696
5699
  );
5697
- }, zl = (e) => /* @__PURE__ */ n(es, { ...e, variant: "dark" }), $l = (e) => /* @__PURE__ */ n(es, { ...e, variant: "light" }), lo = {
5698
- Sent: zl,
5699
- Received: $l
5700
- }, un = `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%`, Bl = {
5700
+ }, $l = (e) => /* @__PURE__ */ n(ts, { ...e, variant: "dark" }), Bl = (e) => /* @__PURE__ */ n(ts, { ...e, variant: "light" }), oo = {
5701
+ Sent: $l,
5702
+ Received: Bl
5703
+ }, mn = `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%`, Ul = {
5701
5704
  sent: "var(--str-chat__own-message-bubble-background-color, #1e2330)",
5702
5705
  received: "var(--str-chat__message-bubble-background-color, #f1f0ee)"
5703
- }, Ul = ({ variant: e }) => /* @__PURE__ */ n(
5706
+ }, jl = ({ variant: e }) => /* @__PURE__ */ n(
5704
5707
  "span",
5705
5708
  {
5706
5709
  "aria-hidden": "true",
@@ -5710,12 +5713,12 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5710
5713
  insetInlineStart: e === "received" ? "calc(-1 * 0.25rem)" : void 0,
5711
5714
  transform: e === "received" ? "scaleX(-1)" : void 0,
5712
5715
  transformOrigin: "center",
5713
- backgroundColor: Bl[e],
5714
- WebkitMask: un,
5715
- mask: un
5716
+ backgroundColor: Ul[e],
5717
+ WebkitMask: mn,
5718
+ mask: mn
5716
5719
  }
5717
5720
  }
5718
- ), jl = {
5721
+ ), Hl = {
5719
5722
  sent: {
5720
5723
  backgroundColor: "var(--str-chat__own-message-bubble-background-color, #1e2330)",
5721
5724
  color: "var(--str-chat__own-message-bubble-color, #fff)"
@@ -5724,7 +5727,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5724
5727
  backgroundColor: "var(--str-chat__message-bubble-background-color, #f1f0ee)",
5725
5728
  color: "var(--str-chat__message-bubble-color, #000000)"
5726
5729
  }
5727
- }, ts = ({
5730
+ }, ns = ({
5728
5731
  variant: e,
5729
5732
  text: t,
5730
5733
  tail: s = !0,
@@ -5740,23 +5743,23 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5740
5743
  r
5741
5744
  ),
5742
5745
  style: {
5743
- ...jl[e],
5746
+ ...Hl[e],
5744
5747
  borderRadius: "var(--str-chat__message-bubble-border-radius, 1.5rem)",
5745
5748
  isolation: "isolate"
5746
5749
  },
5747
5750
  children: [
5748
5751
  a != null && /* @__PURE__ */ n("div", { className: "mb-1 font-medium", "data-testid": "message-bubble-header", children: a }),
5749
5752
  /* @__PURE__ */ n("p", { className: "m-0 whitespace-pre-wrap break-words hyphens-manual", children: t }),
5750
- s && /* @__PURE__ */ n(Ul, { variant: e })
5753
+ s && /* @__PURE__ */ n(jl, { variant: e })
5751
5754
  ]
5752
5755
  }
5753
- ), Hl = ({
5756
+ ), Vl = ({
5754
5757
  text: e,
5755
5758
  tail: t,
5756
5759
  header: s,
5757
5760
  className: a
5758
5761
  }) => /* @__PURE__ */ n(
5759
- ts,
5762
+ ns,
5760
5763
  {
5761
5764
  variant: "received",
5762
5765
  text: e,
@@ -5764,10 +5767,10 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5764
5767
  header: s,
5765
5768
  className: a
5766
5769
  }
5767
- ), Vl = ({ text: e, tail: t, className: s }) => /* @__PURE__ */ n(ts, { variant: "sent", text: e, tail: t, className: s }), oo = {
5768
- Sent: Vl,
5769
- Received: Hl
5770
- }, Gl = ({
5770
+ ), Gl = ({ text: e, tail: t, className: s }) => /* @__PURE__ */ n(ns, { variant: "sent", text: e, tail: t, className: s }), co = {
5771
+ Sent: Gl,
5772
+ Received: Vl
5773
+ }, Yl = ({
5771
5774
  question: e,
5772
5775
  onClick: t,
5773
5776
  loading: s = !1,
@@ -5789,7 +5792,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5789
5792
  ),
5790
5793
  children: e
5791
5794
  }
5792
- ), co = ({
5795
+ ), uo = ({
5793
5796
  faqs: e,
5794
5797
  onFaqClick: t,
5795
5798
  loadingFaqId: s,
@@ -5798,7 +5801,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5798
5801
  avatarImage: i,
5799
5802
  avatarName: o
5800
5803
  }) => {
5801
- const l = Ws(e);
5804
+ const l = Ks(e);
5802
5805
  return l.length === 0 ? null : /* @__PURE__ */ n("div", { className: r, children: /* @__PURE__ */ f("div", { className: "flex gap-3 items-end", children: [
5803
5806
  (i || o) && /* @__PURE__ */ n("div", { className: "flex-none", children: /* @__PURE__ */ n(
5804
5807
  _e,
@@ -5818,7 +5821,7 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5818
5821
  children: [
5819
5822
  a && /* @__PURE__ */ n("p", { className: "text-md text-charcoal mb-4", children: a }),
5820
5823
  l.map((d) => /* @__PURE__ */ n(
5821
- Gl,
5824
+ Yl,
5822
5825
  {
5823
5826
  question: d.question,
5824
5827
  onClick: () => t(d.id),
@@ -5832,41 +5835,41 @@ const El = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5832
5835
  ] }) });
5833
5836
  };
5834
5837
  export {
5835
- Sn as A,
5836
- yn as B,
5837
- bl as C,
5838
- ro as D,
5839
- sr as E,
5840
- co as F,
5841
- _a as G,
5838
+ En as A,
5839
+ Nn as B,
5840
+ vl as C,
5841
+ io as D,
5842
+ ar as E,
5843
+ uo as F,
5844
+ ya as G,
5842
5845
  it as L,
5843
- no as M,
5844
- lo as R,
5846
+ so as M,
5847
+ oo as R,
5845
5848
  Ne as a,
5846
5849
  _e as b,
5847
- Sl as c,
5848
- Zn as d,
5849
- so as e,
5850
- Gl as f,
5850
+ El as c,
5851
+ Jn as d,
5852
+ ao as e,
5853
+ Yl as f,
5851
5854
  de as g,
5852
5855
  Pe as h,
5853
5856
  ke as i,
5854
- oo as j,
5855
- to as k,
5856
- io as l,
5857
- ei as m,
5858
- Zr as n,
5857
+ co as j,
5858
+ no as k,
5859
+ lo as l,
5860
+ ti as m,
5861
+ Jr as n,
5859
5862
  ce as o,
5860
- kl as p,
5861
- Qr as q,
5863
+ Cl as p,
5864
+ ei as q,
5862
5865
  ve as r,
5863
- kn as s,
5866
+ Cn as s,
5864
5867
  Ve as t,
5865
- Na as u,
5866
- ao as v,
5867
- Da as w,
5868
- _n as x,
5868
+ ka as u,
5869
+ ro as v,
5870
+ Oa as w,
5871
+ yn as x,
5869
5872
  ut as y,
5870
5873
  mt as z
5871
5874
  };
5872
- //# sourceMappingURL=index-Dr_5Q52K.js.map
5875
+ //# sourceMappingURL=index-Bia73RlU.js.map