@linktr.ee/messaging-react 3.25.0-rc-1785443162 → 3.25.0

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,10 +1,10 @@
1
1
  import { jsx as i, jsxs as g, Fragment as ie } from "react/jsx-runtime";
2
- import G, { createContext as Pn, useContext as Ke, useCallback as ae, useState as V, useRef as W, useEffect as se, useId as Br, useMemo as me, Suspense as Ur } from "react";
3
- import { StreamChatService as Hr } from "@linktr.ee/messaging-core";
2
+ import G, { createContext as Pn, useContext as Ke, useCallback as ae, useState as V, useRef as W, useEffect as se, useId as Br, useMemo as me, Suspense as Hr } from "react";
3
+ import { StreamChatService as Ur } from "@linktr.ee/messaging-core";
4
4
  import { StreamChat as jr, LinkPreviewsManager as vn } from "stream-chat";
5
- import { Chat as Vr, useChannelStateContext as Ie, useChatContext as Je, DateSeparator as Gr, useMessageContext as Ee, MessageStatus as Xr, MessageErrorIcon as xn, MessageText as mt, areMessageUIPropsEqual as qr, useMessageReminder as Yr, useComponentContext as pa, Attachment as Wr, EditMessageModal as Zr, MessageBlocked as Kr, MessageBouncePrompt as Jr, MessageDeleted as Qr, MessageIsThreadReplyInChannelButtonIndicator as ei, MessageRepliesCountButton as ti, ReminderNotification as ni, StreamedMessageText as si, messageHasAttachments as ai, messageHasReactions as ri, isDateSeparatorMessage as ii, isMessageBlocked as oi, isMessageBounced as li, MessageBounceModal as ci, Poll as di, useMessageComposer as ui, useStateStore as fi, MessageInput as Ts, useMessageInputContext as mi, useMessageComposerHasSendableData as hi, AttachmentPreviewList as gi, QuotedMessagePreview as pi, TextareaComposer as bi, MessageTimestamp as Bt, AIStates as Ut, useTypingContext as vi, useAIState as xi, Channel as yi, WithComponents as _i, Window as wi, MessageList as Is, ChannelList as Ni, InfiniteScroll as ki } from "stream-chat-react";
5
+ import { Chat as Vr, useChannelStateContext as Ie, useChatContext as Je, DateSeparator as Gr, useMessageContext as Ee, MessageStatus as Xr, MessageErrorIcon as xn, MessageText as mt, areMessageUIPropsEqual as qr, useMessageReminder as Yr, useComponentContext as pa, Attachment as Wr, EditMessageModal as Zr, MessageBlocked as Kr, MessageBouncePrompt as Jr, MessageDeleted as Qr, MessageIsThreadReplyInChannelButtonIndicator as ei, MessageRepliesCountButton as ti, ReminderNotification as ni, StreamedMessageText as si, messageHasAttachments as ai, messageHasReactions as ri, isDateSeparatorMessage as ii, isMessageBlocked as oi, isMessageBounced as li, MessageBounceModal as ci, Poll as di, useMessageComposer as ui, useStateStore as fi, MessageInput as Ts, useMessageInputContext as mi, useMessageComposerHasSendableData as hi, AttachmentPreviewList as gi, QuotedMessagePreview as pi, TextareaComposer as bi, MessageTimestamp as Bt, AIStates as Ht, useTypingContext as vi, useAIState as xi, Channel as yi, WithComponents as _i, Window as wi, MessageList as Is, ChannelList as Ni, InfiniteScroll as ki } from "stream-chat-react";
6
6
  import C from "classnames";
7
- import { StarIcon as yn, DotsThreeIcon as Mi, SpinnerGapIcon as ct, SignOutIcon as Ci, ProhibitInsetIcon as Es, FlagIcon as ba, CurrencyDollarIcon as Si, CaretRightIcon as va, ArrowLeftIcon as Ti, FileIcon as xa, ImageIcon as Ii, SpeakerHighIcon as Ei, VideoCameraIcon as ya, FileMdIcon as Ri, FileTextIcon as Li, FileZipIcon as Ai, FilePptIcon as zi, FileCsvIcon as $i, FileXlsIcon as Pi, FileDocIcon as Di, FilePdfIcon as Oi, CircleNotchIcon as Pe, PlayIcon as _n, PauseIcon as Fi, LinkIcon as Bi, DownloadSimpleIcon as Ye, XIcon as Dn, CaretLeftIcon as Ui, GiftIcon as Hi, ThumbsUpIcon as ji, ThumbsDownIcon as Vi, WarningCircleIcon as Gi, MegaphoneIcon as Xi, ChecksIcon as qi, PencilSimpleIcon as Yi, TrashSimpleIcon as Wi, ArrowUpIcon as Zi, SparkleIcon as Ki, ProhibitIcon as Ji } from "@phosphor-icons/react";
7
+ import { StarIcon as yn, DotsThreeIcon as Mi, SpinnerGapIcon as ct, SignOutIcon as Ci, ProhibitInsetIcon as Es, FlagIcon as ba, CurrencyDollarIcon as Si, CaretRightIcon as va, ArrowLeftIcon as Ti, FileIcon as xa, ImageIcon as Ii, SpeakerHighIcon as Ei, VideoCameraIcon as ya, FileMdIcon as Ri, FileTextIcon as Li, FileZipIcon as Ai, FilePptIcon as zi, FileCsvIcon as $i, FileXlsIcon as Pi, FileDocIcon as Di, FilePdfIcon as Oi, CircleNotchIcon as Pe, PlayIcon as _n, PauseIcon as Fi, LinkIcon as Bi, DownloadSimpleIcon as Ye, XIcon as Dn, CaretLeftIcon as Hi, GiftIcon as Ui, ThumbsUpIcon as ji, ThumbsDownIcon as Vi, WarningCircleIcon as Gi, MegaphoneIcon as Xi, ChecksIcon as qi, PencilSimpleIcon as Yi, TrashSimpleIcon as Wi, ArrowUpIcon as Zi, SparkleIcon as Ki, ProhibitIcon as Ji } from "@phosphor-icons/react";
8
8
  import { isOfficialChannel as Qi, OFFICIAL_SENDER_USER_ID as eo, MESSAGE_CUSTOM_TYPE as ye, isDmAgentSystemType as Rs, isAgeSafetySystemType as to, selectEnabledFaqs as no } from "@linktr.ee/messaging-taxonomy";
9
9
  import { MessageActions as so, DefaultDropdownActionButton as _a } from "stream-chat-react/experimental";
10
10
  const wa = Pn({
@@ -66,14 +66,14 @@ const wa = Pn({
66
66
  };
67
67
  const F = W(null);
68
68
  !o && s && ((T = F.current) == null ? void 0 : T.apiKey) !== s && (F.current = { apiKey: s, client: new jr(s) });
69
- const U = o || (s ? ((E = F.current) == null ? void 0 : E.client) ?? null : null);
69
+ const H = o || (s ? ((E = F.current) == null ? void 0 : E.client) ?? null : null);
70
70
  se(() => {
71
71
  const L = $.current, z = M.current;
72
72
  if (o) {
73
73
  w.current = null, f(null), u(null), d(!1), b(null), y(!1);
74
74
  return;
75
75
  }
76
- if (!s || !U || !z) {
76
+ if (!s || !H || !z) {
77
77
  l("⚠️ SERVICE INIT SKIPPED", {
78
78
  renderCount: L,
79
79
  reason: "Missing apiKey, client, or serviceConfig"
@@ -84,20 +84,20 @@ const wa = Pn({
84
84
  renderCount: L,
85
85
  apiKey: (s == null ? void 0 : s.substring(0, 8)) + "..."
86
86
  });
87
- const H = new Hr({
87
+ const U = new Ur({
88
88
  ...z,
89
89
  apiKey: s,
90
90
  debug: I.current,
91
- client: U
91
+ client: H
92
92
  });
93
- w.current = H, f(H), l("✅ SERVICE SET", {
93
+ w.current = U, f(U), l("✅ SERVICE SET", {
94
94
  renderCount: L,
95
- serviceInstance: !!H
95
+ serviceInstance: !!U
96
96
  });
97
- }, [s, U, o]);
97
+ }, [s, H, o]);
98
98
  const A = W(null);
99
99
  se(() => {
100
- var z, H;
100
+ var z, U;
101
101
  if (l("🔗 USER CONNECTION EFFECT TRIGGERED", {
102
102
  hasService: !!c,
103
103
  hasUser: !!t,
@@ -115,7 +115,7 @@ const wa = Pn({
115
115
  l("⚠️ USER CONNECTION SKIPPED", "Already connecting");
116
116
  return;
117
117
  }
118
- if (((z = A.current) == null ? void 0 : z.serviceId) === c && ((H = A.current) == null ? void 0 : H.userId) === t.id) {
118
+ if (((z = A.current) == null ? void 0 : z.serviceId) === c && ((U = A.current) == null ? void 0 : U.userId) === t.id) {
119
119
  l(
120
120
  "⚠️ USER CONNECTION SKIPPED",
121
121
  "Already connected this user with this service"
@@ -145,12 +145,12 @@ const wa = Pn({
145
145
  }
146
146
  })();
147
147
  }, [c, t, l, h, o]), se(() => {
148
- const L = U;
148
+ const L = H;
149
149
  return () => {
150
150
  var z;
151
151
  L && (A.current = null, (z = w.current) == null || z.disconnectUser().catch(console.error));
152
152
  };
153
- }, [U]);
153
+ }, [H]);
154
154
  const S = ae(async () => {
155
155
  if (l("🔄 REFRESH CONNECTION CALLED", {
156
156
  hasService: !!c,
@@ -213,12 +213,12 @@ const wa = Pn({
213
213
  ]);
214
214
  return l("🔄 RENDER END", {
215
215
  renderCount: $.current,
216
- willRenderChat: !!U,
216
+ willRenderChat: !!H,
217
217
  contextValueReady: !!P
218
- }), /* @__PURE__ */ i(wa.Provider, { value: P, children: U ? /* @__PURE__ */ i(
218
+ }), /* @__PURE__ */ i(wa.Provider, { value: P, children: H ? /* @__PURE__ */ i(
219
219
  Vr,
220
220
  {
221
- client: U,
221
+ client: H,
222
222
  customClasses: {
223
223
  channelList: "str-chat__channel-list str-chat__channel-list-react bg-transparent lg:border-r-2 border-r-0 border-[#0000000A]"
224
224
  },
@@ -622,7 +622,7 @@ const Be = ({
622
622
  }
623
623
  )
624
624
  ] });
625
- }, Ht = "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", ho = "CUSTOMER_PAID", go = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === ho, po = ({
625
+ }, Ut = "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", ho = "CUSTOMER_PAID", go = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === ho, po = ({
626
626
  className: e,
627
627
  onBack: t,
628
628
  showBackButton: n,
@@ -651,7 +651,7 @@ const Be = ({
651
651
  );
652
652
  },
653
653
  [(S = p.state) == null ? void 0 : S.members, b == null ? void 0 : b.userID, p.type]
654
- ), w = Ma(v == null ? void 0 : v.user), M = (P = v == null ? void 0 : v.user) == null ? void 0 : P.image, I = Na(p), O = go((T = p.data) == null ? void 0 : T.customer_tag) && (v == null ? void 0 : v.is_follower) === !0, $ = s && I, F = O || $ || !!y, U = async () => {
654
+ ), w = Ma(v == null ? void 0 : v.user), M = (P = v == null ? void 0 : v.user) == null ? void 0 : P.image, I = Na(p), O = go((T = p.data) == null ? void 0 : T.customer_tag) && (v == null ? void 0 : v.is_follower) === !0, $ = s && I, F = O || $ || !!y, H = async () => {
655
655
  try {
656
656
  I ? await p.unpin() : await p.pin();
657
657
  } catch (L) {
@@ -723,7 +723,7 @@ const Be = ({
723
723
  "button",
724
724
  {
725
725
  className: C(
726
- Ht,
726
+ Ut,
727
727
  "messaging-channel-view-back-button-mobile messaging-channel-view-back-button-desktop"
728
728
  ),
729
729
  onClick: t || (() => {
@@ -747,8 +747,8 @@ const Be = ({
747
747
  s && /* @__PURE__ */ i(
748
748
  "button",
749
749
  {
750
- className: Ht,
751
- onClick: U,
750
+ className: Ut,
751
+ onClick: H,
752
752
  type: "button",
753
753
  "aria-pressed": I,
754
754
  "aria-label": I ? "Unstar conversation" : "Star conversation",
@@ -778,7 +778,7 @@ const Be = ({
778
778
  onBlockParticipantClick: m,
779
779
  onReportParticipantClick: u,
780
780
  customChannelActions: h,
781
- triggerClassName: Ht
781
+ triggerClassName: Ut
782
782
  }
783
783
  ))
784
784
  ] })
@@ -905,7 +905,7 @@ const To = (e) => {
905
905
  muted: c = !1,
906
906
  onContainerClick: f
907
907
  }) => {
908
- const m = ke(t), u = W(null), h = W(null), d = W(null), x = W(a), [y, p] = V(s), [b, v] = V(0), [w, M] = V(!1), [I, O] = V(!1), [$, F] = V(!1), [U, A] = V(!1), [S, P] = V(!0), [T, E] = V(null), L = ae(() => {
908
+ const m = ke(t), u = W(null), h = W(null), d = W(null), x = W(a), [y, p] = V(s), [b, v] = V(0), [w, M] = V(!1), [I, O] = V(!1), [$, F] = V(!1), [H, A] = V(!1), [S, P] = V(!0), [T, E] = V(null), L = ae(() => {
909
909
  F(!1), p(!0);
910
910
  }, []), z = ae((k) => {
911
911
  const D = h.current;
@@ -915,13 +915,13 @@ const To = (e) => {
915
915
  0,
916
916
  Math.min(1, (To(k) - Y.left) / Y.width)
917
917
  );
918
- }, []), H = ae((k) => {
918
+ }, []), U = ae((k) => {
919
919
  const D = u.current;
920
920
  D && D.duration && (D.currentTime = k * D.duration);
921
921
  }, []), X = (k) => {
922
922
  k.stopPropagation(), M(!0);
923
923
  const D = z(k);
924
- v(D), H(D);
924
+ v(D), U(D);
925
925
  };
926
926
  se(() => {
927
927
  a !== void 0 && a !== x.current && (x.current = a, p(a));
@@ -945,12 +945,12 @@ const To = (e) => {
945
945
  }, [y]), se(() => {
946
946
  if (!w) return;
947
947
  const k = (Y) => v(z(Y)), D = (Y) => {
948
- M(!1), H(z(Y));
948
+ M(!1), U(z(Y));
949
949
  };
950
950
  return window.addEventListener("mousemove", k), window.addEventListener("mouseup", D), window.addEventListener("touchmove", k, { passive: !0 }), window.addEventListener("touchend", D), () => {
951
951
  window.removeEventListener("mousemove", k), window.removeEventListener("mouseup", D), window.removeEventListener("touchmove", k), window.removeEventListener("touchend", D);
952
952
  };
953
- }, [w, z, H]);
953
+ }, [w, z, U]);
954
954
  const Z = T ? { aspectRatio: String(T) } : void 0, oe = T ? "" : " aspect-video", ee = Math.round(b * 100);
955
955
  return /* @__PURE__ */ g(
956
956
  "div",
@@ -1032,7 +1032,7 @@ const To = (e) => {
1032
1032
  children: /* @__PURE__ */ i("track", { kind: "captions" })
1033
1033
  }
1034
1034
  ) }),
1035
- U && !$ && /* @__PURE__ */ i("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ i(
1035
+ H && !$ && /* @__PURE__ */ i("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ i(
1036
1036
  Pe,
1037
1037
  {
1038
1038
  className: "size-8 animate-spin text-white/80",
@@ -1070,7 +1070,7 @@ const To = (e) => {
1070
1070
  onTouchStart: X,
1071
1071
  onClick: (k) => k.stopPropagation(),
1072
1072
  onKeyDown: (k) => {
1073
- k.key === "ArrowRight" && H(Math.min(1, b + 0.05)), k.key === "ArrowLeft" && H(Math.max(0, b - 0.05));
1073
+ k.key === "ArrowRight" && U(Math.min(1, b + 0.05)), k.key === "ArrowLeft" && U(Math.max(0, b - 0.05));
1074
1074
  },
1075
1075
  children: /* @__PURE__ */ i("div", { className: "w-full overflow-hidden rounded-full bg-white/30 h-1", children: /* @__PURE__ */ i(
1076
1076
  "div",
@@ -1111,7 +1111,7 @@ const To = (e) => {
1111
1111
  onMouseEnter: () => O(!0),
1112
1112
  onMouseLeave: () => O(!1),
1113
1113
  onKeyDown: (k) => {
1114
- k.key === "ArrowRight" && H(Math.min(1, b + 0.05)), k.key === "ArrowLeft" && H(Math.max(0, b - 0.05));
1114
+ k.key === "ArrowRight" && U(Math.min(1, b + 0.05)), k.key === "ArrowLeft" && U(Math.max(0, b - 0.05));
1115
1115
  },
1116
1116
  children: [
1117
1117
  /* @__PURE__ */ i(
@@ -1335,7 +1335,7 @@ const Bn = ({ attachment: e, isMyMessage: t }) => {
1335
1335
  function La(e) {
1336
1336
  return e.type === "link" || !!e.og_scrape_url && !e.asset_url;
1337
1337
  }
1338
- function Un(e) {
1338
+ function Hn(e) {
1339
1339
  var t;
1340
1340
  return (t = e.attachments) == null ? void 0 : t.find(La);
1341
1341
  }
@@ -1378,7 +1378,7 @@ const Do = ({
1378
1378
  }
1379
1379
  );
1380
1380
  };
1381
- function Hn(e) {
1381
+ function Un(e) {
1382
1382
  var u, h, d, x;
1383
1383
  const t = (u = e.attachments) == null ? void 0 : u.find(
1384
1384
  (y) => y.type === "video" && y.asset_url
@@ -1460,7 +1460,7 @@ const Aa = ({
1460
1460
  message: e,
1461
1461
  isMyMessage: t = !1
1462
1462
  }) => {
1463
- const n = Un(e), s = Hn(e);
1463
+ const n = Hn(e), s = Un(e);
1464
1464
  return !n && !s ? null : /* @__PURE__ */ g("div", { className: t ? "str-chat__message str-chat__message-simple str-chat__message--me str-chat__message-simple--me" : "str-chat__message str-chat__message-simple str-chat__message--other", "data-dd-privacy": "mask", children: [
1465
1465
  !t && e.user && /* @__PURE__ */ i(
1466
1466
  Be,
@@ -1491,26 +1491,26 @@ const Aa = ({
1491
1491
  }, Fo = ({
1492
1492
  message: e
1493
1493
  }) => {
1494
- const t = Un(e);
1494
+ const t = Hn(e);
1495
1495
  if (t)
1496
1496
  return /* @__PURE__ */ i("div", { className: Fn(!0), "data-dd-privacy": "mask", children: /* @__PURE__ */ i(Bn, { attachment: t, isMyMessage: !0 }) });
1497
- const n = Hn(e);
1497
+ const n = Un(e);
1498
1498
  return n ? /* @__PURE__ */ i("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ i(Aa, { ...n }) }) : null;
1499
1499
  }, Bo = ({
1500
1500
  message: e
1501
1501
  }) => {
1502
- const t = Un(e);
1502
+ const t = Hn(e);
1503
1503
  if (t)
1504
1504
  return /* @__PURE__ */ i("div", { className: Fn(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ i(Bn, { attachment: t, isMyMessage: !1 }) });
1505
- const n = Hn(e);
1505
+ const n = Un(e);
1506
1506
  return n ? /* @__PURE__ */ i("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ i(za, { ...n }) }) : null;
1507
1507
  }, _0 = Object.assign(Oo, {
1508
1508
  Creator: Fo,
1509
1509
  Visitor: Bo
1510
- }), Uo = {
1510
+ }), Ho = {
1511
1511
  dark: "bg-[#1e2330]",
1512
1512
  light: "bg-[#f2f1ef]"
1513
- }, Ho = {
1513
+ }, Uo = {
1514
1514
  dark: "text-white",
1515
1515
  light: "text-[#000000]"
1516
1516
  }, jo = {
@@ -1570,8 +1570,8 @@ const Aa = ({
1570
1570
  // there is no ambiguity to resolve.
1571
1571
  m && "pb-0",
1572
1572
  u,
1573
- Uo[e],
1574
1573
  Ho[e],
1574
+ Uo[e],
1575
1575
  n && "border",
1576
1576
  n && jo[e],
1577
1577
  l
@@ -1912,7 +1912,7 @@ const il = ({
1912
1912
  onClick: e,
1913
1913
  "aria-label": n,
1914
1914
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
1915
- children: /* @__PURE__ */ i(Ui, { size: 20, weight: "bold", "aria-hidden": !0 })
1915
+ children: /* @__PURE__ */ i(Hi, { size: 20, weight: "bold", "aria-hidden": !0 })
1916
1916
  }
1917
1917
  ),
1918
1918
  /* @__PURE__ */ i(
@@ -2391,7 +2391,7 @@ const il = ({
2391
2391
  imgRef: a,
2392
2392
  onLoad: r
2393
2393
  };
2394
- }, Ua = ({
2394
+ }, Ha = ({
2395
2395
  state: e,
2396
2396
  src: t,
2397
2397
  alt: n,
@@ -2449,7 +2449,7 @@ const il = ({
2449
2449
  ]
2450
2450
  }
2451
2451
  );
2452
- }, wl = (e) => /* @__PURE__ */ i(xl, { ...e }), Nl = (e) => /* @__PURE__ */ i(Ua, { ...e, state: "sent" }), kl = (e) => /* @__PURE__ */ i(Ua, { ...e, state: "received" }), Ml = {
2452
+ }, wl = (e) => /* @__PURE__ */ i(xl, { ...e }), Nl = (e) => /* @__PURE__ */ i(Ha, { ...e, state: "sent" }), kl = (e) => /* @__PURE__ */ i(Ha, { ...e, state: "received" }), Ml = {
2453
2453
  Composer: wl,
2454
2454
  Sent: Nl,
2455
2455
  Received: kl
@@ -2599,7 +2599,7 @@ const il = ({
2599
2599
  Composer: El,
2600
2600
  Sent: Rl,
2601
2601
  Received: Ll
2602
- }, Ha = ({
2602
+ }, Ua = ({
2603
2603
  open: e,
2604
2604
  items: t,
2605
2605
  initialIndex: n = 0,
@@ -2704,7 +2704,7 @@ const il = ({
2704
2704
  ),
2705
2705
  o ? /* @__PURE__ */ i("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ i(et, { onClick: o }) }) : null,
2706
2706
  /* @__PURE__ */ i(
2707
- Ha,
2707
+ Ua,
2708
2708
  {
2709
2709
  open: l,
2710
2710
  items: Va(
@@ -2746,7 +2746,7 @@ const il = ({
2746
2746
  children: [
2747
2747
  /* @__PURE__ */ i("div", { className: "relative", children: /* @__PURE__ */ i(Fa, { tiles: p, onTileActivate: x }) }),
2748
2748
  /* @__PURE__ */ i(
2749
- Ha,
2749
+ Ua,
2750
2750
  {
2751
2751
  open: h,
2752
2752
  items: Va(m, a),
@@ -2757,31 +2757,31 @@ const il = ({
2757
2757
  ]
2758
2758
  }
2759
2759
  );
2760
- }, Ol = (e) => /* @__PURE__ */ i(Dl, { ...e }), Fl = (e) => /* @__PURE__ */ i(Ga, { ...e, state: "sent" }), Bl = (e) => /* @__PURE__ */ i(Ga, { ...e, state: "received" }), Ul = {
2760
+ }, Ol = (e) => /* @__PURE__ */ i(Dl, { ...e }), Fl = (e) => /* @__PURE__ */ i(Ga, { ...e, state: "sent" }), Bl = (e) => /* @__PURE__ */ i(Ga, { ...e, state: "received" }), Hl = {
2761
2761
  Composer: Ol,
2762
2762
  Sent: Fl,
2763
2763
  Received: Bl
2764
2764
  }, Ge = {
2765
2765
  Image: Ml,
2766
- Video: Ul,
2766
+ Video: Hl,
2767
2767
  Audio: Jo,
2768
2768
  Pdf: Al,
2769
2769
  File: ul
2770
- }, Hl = {
2770
+ }, Ul = {
2771
2771
  isUnlocking: () => !1
2772
2772
  }, jl = {
2773
- LockedAttachment: Hl
2773
+ LockedAttachment: Ul
2774
2774
  }, Xa = Pn({}), w0 = Xa.Provider;
2775
2775
  function Vl(e) {
2776
2776
  return Ke(Xa)[e] ?? jl[e];
2777
2777
  }
2778
- const Gl = G.lazy(() => import("./Card-qS17qnN0.js")), Xl = G.lazy(() => import("./Card-Cd0uC7M9.js")), ql = () => /* @__PURE__ */ i(
2778
+ const Gl = G.lazy(() => import("./Card-qS17qnN0.js")), Xl = G.lazy(() => import("./Card-DdmdgPiC.js")), ql = () => /* @__PURE__ */ i(
2779
2779
  "div",
2780
2780
  {
2781
2781
  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)]",
2782
2782
  "aria-hidden": !0
2783
2783
  }
2784
- ), dt = (e) => /* @__PURE__ */ i(Ur, { fallback: /* @__PURE__ */ i(ql, {}), children: e.contentType === "text" ? /* @__PURE__ */ i(Gl, { ...e }) : /* @__PURE__ */ i(Xl, { ...e }) }), Yl = ({ size: e = 15 }) => /* @__PURE__ */ i(
2784
+ ), dt = (e) => /* @__PURE__ */ i(Hr, { fallback: /* @__PURE__ */ i(ql, {}), children: e.contentType === "text" ? /* @__PURE__ */ i(Gl, { ...e }) : /* @__PURE__ */ i(Xl, { ...e }) }), Yl = ({ size: e = 15 }) => /* @__PURE__ */ i(
2785
2785
  "svg",
2786
2786
  {
2787
2787
  width: e,
@@ -2834,7 +2834,7 @@ const Gl = G.lazy(() => import("./Card-qS17qnN0.js")), Xl = G.lazy(() => import(
2834
2834
  if (!h) return null;
2835
2835
  const d = t ? "message-tip-standalone" : "message-tag message-tag--tip", x = qa(e) ? "message" : "tip", y = t ? `${h} ${x}` : `Delivered with ${h} ${x}`;
2836
2836
  return /* @__PURE__ */ g("div", { className: d, children: [
2837
- /* @__PURE__ */ i(Hi, { size: t ? 14 : 12 }),
2837
+ /* @__PURE__ */ i(Ui, { size: t ? 14 : 12 }),
2838
2838
  /* @__PURE__ */ i("span", { children: y })
2839
2839
  ] });
2840
2840
  }
@@ -3751,7 +3751,7 @@ const $c = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
3751
3751
  }, N = Oc(Pc), Q = (e) => {
3752
3752
  let t = !1, n = e.map((s) => s !== void 0 ? (t = !0, s) : 1);
3753
3753
  return t ? n : e;
3754
- }, Ue = {
3754
+ }, He = {
3755
3755
  mode: "rgb",
3756
3756
  channels: ["r", "g", "b", "alpha"],
3757
3757
  parse: [
@@ -3798,7 +3798,7 @@ const $c = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
3798
3798
  }, Yt = (e = 0) => {
3799
3799
  const t = Math.abs(e);
3800
3800
  return t <= 0.04045 ? e / 12.92 : (Math.sign(e) || 1) * Math.pow((t + 0.055) / 1.055, 2.4);
3801
- }, He = ({ r: e, g: t, b: n, alpha: s }) => {
3801
+ }, Ue = ({ r: e, g: t, b: n, alpha: s }) => {
3802
3802
  let a = {
3803
3803
  mode: "lrgb",
3804
3804
  r: Yt(e),
@@ -3807,7 +3807,7 @@ const $c = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
3807
3807
  };
3808
3808
  return s !== void 0 && (a.alpha = s), a;
3809
3809
  }, Re = (e) => {
3810
- let { r: t, g: n, b: s, alpha: a } = He(e), r = {
3810
+ let { r: t, g: n, b: s, alpha: a } = Ue(e), r = {
3811
3811
  mode: "xyz65",
3812
3812
  x: 0.4123907992659593 * t + 0.357584339383878 * n + 0.1804807884018343 * s,
3813
3813
  y: 0.2126390058715102 * t + 0.715168678767756 * n + 0.0721923153607337 * s,
@@ -3834,7 +3834,7 @@ const $c = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
3834
3834
  });
3835
3835
  return s !== void 0 && (a.alpha = s), a;
3836
3836
  }, Fc = {
3837
- ...Ue,
3837
+ ...He,
3838
3838
  mode: "a98",
3839
3839
  parse: ["a98-rgb"],
3840
3840
  serialize: "a98-rgb",
@@ -3851,19 +3851,19 @@ const $c = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
3851
3851
  return n;
3852
3852
  let r = re(n);
3853
3853
  return s === 0 || e[s - 1] === void 0 ? r : t(r - re(a[s - 1]));
3854
- }).reduce((n, s) => !n.length || s === void 0 || n[n.length - 1] === void 0 ? (n.push(s), n) : (n.push(s + n[n.length - 1]), n), []), ge = (e) => Bc(e, (t) => Math.abs(t) <= 180 ? t : t - 360 * Math.sign(t)), ne = [-0.14861, 1.78277, -0.29227, -0.90649, 1.97294, 0], Uc = Math.PI / 180, Hc = 180 / Math.PI;
3855
- let Fs = ne[3] * ne[4], Bs = ne[1] * ne[4], Us = ne[1] * ne[2] - ne[0] * ne[3];
3854
+ }).reduce((n, s) => !n.length || s === void 0 || n[n.length - 1] === void 0 ? (n.push(s), n) : (n.push(s + n[n.length - 1]), n), []), ge = (e) => Bc(e, (t) => Math.abs(t) <= 180 ? t : t - 360 * Math.sign(t)), ne = [-0.14861, 1.78277, -0.29227, -0.90649, 1.97294, 0], Hc = Math.PI / 180, Uc = 180 / Math.PI;
3855
+ let Fs = ne[3] * ne[4], Bs = ne[1] * ne[4], Hs = ne[1] * ne[2] - ne[0] * ne[3];
3856
3856
  const jc = ({ r: e, g: t, b: n, alpha: s }) => {
3857
3857
  e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
3858
- let a = (Us * n + e * Fs - t * Bs) / (Us + Fs - Bs), r = n - a, o = (ne[4] * (t - a) - ne[2] * r) / ne[3], l = {
3858
+ let a = (Hs * n + e * Fs - t * Bs) / (Hs + Fs - Bs), r = n - a, o = (ne[4] * (t - a) - ne[2] * r) / ne[3], l = {
3859
3859
  mode: "cubehelix",
3860
3860
  l: a,
3861
3861
  s: a === 0 || a === 1 ? void 0 : Math.sqrt(r * r + o * o) / (ne[4] * a * (1 - a))
3862
3862
  };
3863
- return l.s && (l.h = Math.atan2(o, r) * Hc - 120), s !== void 0 && (l.alpha = s), l;
3863
+ return l.s && (l.h = Math.atan2(o, r) * Uc - 120), s !== void 0 && (l.alpha = s), l;
3864
3864
  }, Vc = ({ h: e, s: t, l: n, alpha: s }) => {
3865
3865
  let a = { mode: "rgb" };
3866
- e = (e === void 0 ? 0 : e + 120) * Uc, n === void 0 && (n = 0);
3866
+ e = (e === void 0 ? 0 : e + 120) * Hc, n === void 0 && (n = 0);
3867
3867
  let r = t === void 0 ? 0 : t * n * (1 - n), o = Math.cos(e), l = Math.sin(e);
3868
3868
  return a.r = n + r * (ne[0] * o + ne[1] * l), a.g = n + r * (ne[2] * o + ne[3] * l), a.b = n + r * (ne[4] * o + ne[5] * l), s !== void 0 && (a.alpha = s), a;
3869
3869
  }, St = (e, t) => {
@@ -3986,13 +3986,13 @@ const tr = ({ l: e, a: t, b: n, alpha: s }) => {
3986
3986
  c: Math.log(1 + 0.075 * o) / (0.0435 * sr * yt)
3987
3987
  };
3988
3988
  return l.c && (l.h = re((Math.atan2(r, a) + Ze) / Math.PI * 180)), s !== void 0 && (l.alpha = s), l;
3989
- }, Hs = (e) => Cn(we(e, "dlch")), js = (e) => Ne(Sn(e), "dlab"), qc = {
3989
+ }, Us = (e) => Cn(we(e, "dlch")), js = (e) => Ne(Sn(e), "dlab"), qc = {
3990
3990
  mode: "dlab",
3991
3991
  parse: ["--din99o-lab"],
3992
3992
  serialize: "--din99o-lab",
3993
3993
  toMode: {
3994
- lab65: Hs,
3995
- rgb: (e) => It(Hs(e))
3994
+ lab65: Us,
3995
+ rgb: (e) => It(Us(e))
3996
3996
  },
3997
3997
  fromMode: {
3998
3998
  lab65: js,
@@ -4579,7 +4579,7 @@ const ss = ({ l: e, a: t, b: n, alpha: s }) => {
4579
4579
  });
4580
4580
  return s !== void 0 && (a.alpha = s), a;
4581
4581
  }, gr = (e) => at(ss(e)), rt = (e) => {
4582
- let { r: t, g: n, b: s, alpha: a } = He(e), r = {
4582
+ let { r: t, g: n, b: s, alpha: a } = Ue(e), r = {
4583
4583
  mode: "xyz50",
4584
4584
  x: 0.436065742824811 * t + 0.3851514688337912 * n + 0.14307845442264197 * s,
4585
4585
  y: 0.22249319175623702 * t + 0.7168870538238823 * n + 0.06061979053616537 * s,
@@ -4793,13 +4793,13 @@ const is = {
4793
4793
  h: pe
4794
4794
  }
4795
4795
  }, Td = {
4796
- ...Ue,
4796
+ ...He,
4797
4797
  mode: "lrgb",
4798
4798
  toMode: {
4799
4799
  rgb: je
4800
4800
  },
4801
4801
  fromMode: {
4802
- rgb: He
4802
+ rgb: Ue
4803
4803
  },
4804
4804
  parse: ["srgb-linear"],
4805
4805
  serialize: "srgb-linear"
@@ -4843,7 +4843,7 @@ const is = {
4843
4843
  };
4844
4844
  return s !== void 0 && (l.alpha = s), l;
4845
4845
  }, Pt = (e) => {
4846
- let t = _r(He(e));
4846
+ let t = _r(Ue(e));
4847
4847
  return e.r === e.b && e.b === e.g && (t.a = t.b = 0), t;
4848
4848
  }, it = ({ l: e, a: t, b: n, alpha: s }) => {
4849
4849
  e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = 0);
@@ -4867,7 +4867,7 @@ function Ed(e, t) {
4867
4867
  -1.88170328 * e - 0.80936493 * t > 1 ? (n = 1.19086277, s = 1.76576728, a = 0.59662641, r = 0.75515197, o = 0.56771245, l = 4.0767416621, c = -3.3077115913, f = 0.2309699292) : 1.81444104 * e - 1.19445276 * t > 1 ? (n = 0.73956515, s = -0.45954404, a = 0.08285427, r = 0.1254107, o = 0.14503204, l = -1.2684380046, c = 2.6097574011, f = -0.3413193965) : (n = 1.35733652, s = -915799e-8, a = -1.1513021, r = -0.50559606, o = 692167e-8, l = -0.0041960863, c = -0.7034186147, f = 1.707614701);
4868
4868
  let m = n + s * e + a * t + r * e * e + o * e * t, u = 0.3963377774 * e + 0.2158037573 * t, h = -0.1055613458 * e - 0.0638541728 * t, d = -0.0894841775 * e - 1.291485548 * t;
4869
4869
  {
4870
- let x = 1 + m * u, y = 1 + m * h, p = 1 + m * d, b = x * x * x, v = y * y * y, w = p * p * p, M = 3 * u * x * x, I = 3 * h * y * y, O = 3 * d * p * p, $ = 6 * u * u * x, F = 6 * h * h * y, U = 6 * d * d * p, A = l * b + c * v + f * w, S = l * M + c * I + f * O, P = l * $ + c * F + f * U;
4870
+ let x = 1 + m * u, y = 1 + m * h, p = 1 + m * d, b = x * x * x, v = y * y * y, w = p * p * p, M = 3 * u * x * x, I = 3 * h * y * y, O = 3 * d * p * p, $ = 6 * u * u * x, F = 6 * h * h * y, H = 6 * d * d * p, A = l * b + c * v + f * w, S = l * M + c * I + f * O, P = l * $ + c * F + f * H;
4871
4871
  m = m - A * S / (S * S - 0.5 * A * P);
4872
4872
  }
4873
4873
  return m;
@@ -4886,8 +4886,8 @@ function Rd(e, t, n, s, a, r = null) {
4886
4886
  {
4887
4887
  let l = n - a, c = s, f = 0.3963377774 * e + 0.2158037573 * t, m = -0.1055613458 * e - 0.0638541728 * t, u = -0.0894841775 * e - 1.291485548 * t, h = l + c * f, d = l + c * m, x = l + c * u;
4888
4888
  {
4889
- let y = a * (1 - o) + o * n, p = o * s, b = y + p * f, v = y + p * m, w = y + p * u, M = b * b * b, I = v * v * v, O = w * w * w, $ = 3 * h * b * b, F = 3 * d * v * v, U = 3 * x * w * w, A = 6 * h * h * b, S = 6 * d * d * v, P = 6 * x * x * w, T = 4.0767416621 * M - 3.3077115913 * I + 0.2309699292 * O - 1, E = 4.0767416621 * $ - 3.3077115913 * F + 0.2309699292 * U, L = 4.0767416621 * A - 3.3077115913 * S + 0.2309699292 * P, z = E / (E * E - 0.5 * T * L), H = -T * z, X = -1.2684380046 * M + 2.6097574011 * I - 0.3413193965 * O - 1, Z = -1.2684380046 * $ + 2.6097574011 * F - 0.3413193965 * U, oe = -1.2684380046 * A + 2.6097574011 * S - 0.3413193965 * P, ee = Z / (Z * Z - 0.5 * X * oe), k = -X * ee, D = -0.0041960863 * M - 0.7034186147 * I + 1.707614701 * O - 1, Y = -0.0041960863 * $ - 0.7034186147 * F + 1.707614701 * U, te = -0.0041960863 * A - 0.7034186147 * S + 1.707614701 * P, le = Y / (Y * Y - 0.5 * D * te), J = -D * le;
4890
- H = z >= 0 ? H : 1e6, k = ee >= 0 ? k : 1e6, J = le >= 0 ? J : 1e6, o += Math.min(H, Math.min(k, J));
4889
+ let y = a * (1 - o) + o * n, p = o * s, b = y + p * f, v = y + p * m, w = y + p * u, M = b * b * b, I = v * v * v, O = w * w * w, $ = 3 * h * b * b, F = 3 * d * v * v, H = 3 * x * w * w, A = 6 * h * h * b, S = 6 * d * d * v, P = 6 * x * x * w, T = 4.0767416621 * M - 3.3077115913 * I + 0.2309699292 * O - 1, E = 4.0767416621 * $ - 3.3077115913 * F + 0.2309699292 * H, L = 4.0767416621 * A - 3.3077115913 * S + 0.2309699292 * P, z = E / (E * E - 0.5 * T * L), U = -T * z, X = -1.2684380046 * M + 2.6097574011 * I - 0.3413193965 * O - 1, Z = -1.2684380046 * $ + 2.6097574011 * F - 0.3413193965 * H, oe = -1.2684380046 * A + 2.6097574011 * S - 0.3413193965 * P, ee = Z / (Z * Z - 0.5 * X * oe), k = -X * ee, D = -0.0041960863 * M - 0.7034186147 * I + 1.707614701 * O - 1, Y = -0.0041960863 * $ - 0.7034186147 * F + 1.707614701 * H, te = -0.0041960863 * A - 0.7034186147 * S + 1.707614701 * P, le = Y / (Y * Y - 0.5 * D * te), J = -D * le;
4890
+ U = z >= 0 ? U : 1e6, k = ee >= 0 ? k : 1e6, J = le >= 0 ? J : 1e6, o += Math.min(U, Math.min(k, J));
4891
4891
  }
4892
4892
  }
4893
4893
  }
@@ -5068,7 +5068,7 @@ const Dd = {
5068
5068
  h: [0, 360]
5069
5069
  }
5070
5070
  }, Qs = (e) => {
5071
- let { r: t, g: n, b: s, alpha: a } = He(e), r = {
5071
+ let { r: t, g: n, b: s, alpha: a } = Ue(e), r = {
5072
5072
  mode: "xyz65",
5073
5073
  x: 0.486570948648216 * t + 0.265667693169093 * n + 0.1982172852343625 * s,
5074
5074
  y: 0.2289745640697487 * t + 0.6917385218365062 * n + 0.079286914093745 * s,
@@ -5087,7 +5087,7 @@ const Dd = {
5087
5087
  );
5088
5088
  return s !== void 0 && (a.alpha = s), a;
5089
5089
  }, Od = {
5090
- ...Ue,
5090
+ ...He,
5091
5091
  mode: "p3",
5092
5092
  parse: ["display-p3"],
5093
5093
  serialize: "display-p3",
@@ -5127,7 +5127,7 @@ const Dd = {
5127
5127
  };
5128
5128
  return e.alpha !== void 0 && (a.alpha = e.alpha), a;
5129
5129
  }, Fd = {
5130
- ...Ue,
5130
+ ...He,
5131
5131
  mode: "prophoto",
5132
5132
  parse: ["prophoto-rgb"],
5133
5133
  serialize: "prophoto-rgb",
@@ -5157,9 +5157,9 @@ const Dd = {
5157
5157
  )
5158
5158
  };
5159
5159
  return s !== void 0 && (a.alpha = s), a;
5160
- }, ra = 1.09929682680944, Ud = 0.018053968510807, fn = (e = 0) => {
5160
+ }, ra = 1.09929682680944, Hd = 0.018053968510807, fn = (e = 0) => {
5161
5161
  let t = Math.abs(e);
5162
- return t < Ud * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((t + ra - 1) / ra, 1 / 0.45);
5162
+ return t < Hd * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((t + ra - 1) / ra, 1 / 0.45);
5163
5163
  }, ia = (e) => {
5164
5164
  let t = fn(e.r), n = fn(e.g), s = fn(e.b), a = {
5165
5165
  mode: "xyz65",
@@ -5168,8 +5168,8 @@ const Dd = {
5168
5168
  z: 0 * t + 0.0280726930490874 * n + 1.0609850577107909 * s
5169
5169
  };
5170
5170
  return e.alpha !== void 0 && (a.alpha = e.alpha), a;
5171
- }, Hd = {
5172
- ...Ue,
5171
+ }, Ud = {
5172
+ ...He,
5173
5173
  mode: "rec2020",
5174
5174
  fromMode: {
5175
5175
  xyz65: aa,
@@ -5182,7 +5182,7 @@ const Dd = {
5182
5182
  parse: ["rec2020"],
5183
5183
  serialize: "rec2020"
5184
5184
  }, Se = 0.0037930732552754493, Nr = Math.cbrt(Se), mn = (e) => Math.cbrt(e) - Nr, jd = (e) => {
5185
- const { r: t, g: n, b: s, alpha: a } = He(e), r = mn(0.3 * t + 0.622 * n + 0.078 * s + Se), o = mn(0.23 * t + 0.692 * n + 0.078 * s + Se), l = mn(
5185
+ const { r: t, g: n, b: s, alpha: a } = Ue(e), r = mn(0.3 * t + 0.622 * n + 0.078 * s + Se), o = mn(0.23 * t + 0.692 * n + 0.078 * s + Se), l = mn(
5186
5186
  0.2434226892454782 * t + 0.2047674442449682 * n + 0.5518098665095535 * s + Se
5187
5187
  ), c = {
5188
5188
  mode: "xyb",
@@ -5417,8 +5417,8 @@ j($d);
5417
5417
  j(Dd);
5418
5418
  j(Od);
5419
5419
  j(Fd);
5420
- j(Hd);
5421
- j(Ue);
5420
+ j(Ud);
5421
+ j(He);
5422
5422
  j(Gd);
5423
5423
  j(Xd);
5424
5424
  j(Wd);
@@ -5472,7 +5472,7 @@ function cs({
5472
5472
  }, [a]);
5473
5473
  const f = G.useCallback(() => {
5474
5474
  c(!0);
5475
- }, []), m = s === "featured" && !!a && !l, u = st(r, o), h = m && n === "ready" ? mu(t, e) : void 0, d = h ?? (u ? pc : lu[e]);
5475
+ }, []), m = st(r, o), h = s === "featured" && !!a && !m && !l && n === "ready" ? mu(t, e) : void 0, d = h ?? (m ? pc : lu[e]);
5476
5476
  return {
5477
5477
  thumbnailUrl: l ? void 0 : a,
5478
5478
  accentStyle: h ? { backgroundColor: h } : void 0,
@@ -6050,11 +6050,11 @@ const Cu = ({
6050
6050
  threadList: y,
6051
6051
  viewerLanguage: p,
6052
6052
  onBroadcastClick: b
6053
- } = e, { client: v } = Je("CustomMessage"), { channel: w } = Ie("CustomMessage"), { isUnlocking: M, onUnlockClick: I, onFetchSource: O, onDownloadClick: $ } = Vl("LockedAttachment"), [F, U] = V(!1), A = Yr(d.id), { selected: S, voteUp: P, voteDown: T } = xo(d), {
6053
+ } = e, { client: v } = Je("CustomMessage"), { channel: w } = Ie("CustomMessage"), { isUnlocking: M, onUnlockClick: I, onFetchSource: O, onDownloadClick: $ } = Vl("LockedAttachment"), [F, H] = V(!1), A = Yr(d.id), { selected: S, voteUp: P, voteDown: T } = xo(d), {
6054
6054
  Attachment: E = Wr,
6055
6055
  EditMessageModal: L = Zr,
6056
6056
  MessageActions: z,
6057
- MessageBlocked: H = Kr,
6057
+ MessageBlocked: U = Kr,
6058
6058
  MessageBouncePrompt: X = Jr,
6059
6059
  MessageDeleted: Z = Qr,
6060
6060
  MessageIsThreadReplyInChannelButtonIndicator: oe = ei,
@@ -6089,10 +6089,10 @@ const Cu = ({
6089
6089
  if (d.deleted_at || d.type === "deleted")
6090
6090
  return /* @__PURE__ */ i(Z, { message: d });
6091
6091
  if (oi(d))
6092
- return /* @__PURE__ */ i(H, {});
6092
+ return /* @__PURE__ */ i(U, {});
6093
6093
  const Me = !y && !!d.reply_count, xe = !y && d.show_in_channel && d.parent_id, ds = d.status === "failed" && ((ps = d.error) == null ? void 0 : ps.status) !== 403, us = li(d);
6094
6094
  let Ae;
6095
- ds ? Ae = () => f(d) : us && (Ae = () => U(!0));
6095
+ ds ? Ae = () => f(d) : us && (Ae = () => H(!0));
6096
6096
  const de = h(), Dr = C(
6097
6097
  "str-chat__message str-chat__message-simple",
6098
6098
  `str-chat__message--${d.type}`,
@@ -6136,7 +6136,7 @@ const Cu = ({
6136
6136
  ci,
6137
6137
  {
6138
6138
  MessageBouncePrompt: X,
6139
- onClose: () => U(!1),
6139
+ onClose: () => H(!1),
6140
6140
  open: F
6141
6141
  }
6142
6142
  ),
@@ -6611,11 +6611,11 @@ const Cu = ({
6611
6611
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
6612
6612
  }, Ou = ["SYSTEM_AGE_SAFETY_BLOCKED"], Fu = {
6613
6613
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
6614
- }, pn = "age safety guidelines.", Bu = "https://linktr.ee/s/about/contact", Uu = (e) => Ou.includes(
6614
+ }, pn = "age safety guidelines.", Bu = "https://linktr.ee/s/about/contact", Hu = (e) => Ou.includes(
6615
6615
  e
6616
- ), Hu = (e) => {
6616
+ ), Uu = (e) => {
6617
6617
  var t;
6618
- return Uu((t = e.metadata) == null ? void 0 : t.custom_type);
6618
+ return Hu((t = e.metadata) == null ? void 0 : t.custom_type);
6619
6619
  }, ju = (e) => {
6620
6620
  var s;
6621
6621
  const t = (s = e.metadata) == null ? void 0 : s.custom_type;
@@ -6656,7 +6656,7 @@ const Cu = ({
6656
6656
  ] });
6657
6657
  }, Gu = (e) => {
6658
6658
  var s, a;
6659
- const t = !Hu(e.message), n = ju(
6659
+ const t = !Uu(e.message), n = ju(
6660
6660
  e.message
6661
6661
  );
6662
6662
  if ((n == null ? void 0 : n.kind) === "dm-agent") {
@@ -6731,9 +6731,9 @@ const Cu = ({
6731
6731
  repeatCount: "indefinite"
6732
6732
  }
6733
6733
  ) }), Xu = /* @__PURE__ */ new Set([
6734
- Ut.Thinking,
6735
- Ut.Generating,
6736
- Ut.ExternalSources
6734
+ Ht.Thinking,
6735
+ Ht.Generating,
6736
+ Ht.ExternalSources
6737
6737
  ]), qu = ({ threadList: e }) => {
6738
6738
  var x, y;
6739
6739
  const { channel: t, channelConfig: n, thread: s } = Ie(), { client: a } = Je(), { typing: r = {} } = vi(), { aiState: o } = xi(t), l = Ke(Lr);
@@ -6901,7 +6901,7 @@ const Ku = ({
6901
6901
  showChannelInfo: O = !0,
6902
6902
  onParticipantNameClick: $,
6903
6903
  onBroadcastClick: F,
6904
- composerInput: U
6904
+ composerInput: H
6905
6905
  }) => {
6906
6906
  const { channel: A } = Ie(), S = W(F);
6907
6907
  se(() => {
@@ -6932,7 +6932,7 @@ const Ku = ({
6932
6932
  renderChannelActions: w,
6933
6933
  onParticipantNameClick: $
6934
6934
  }
6935
- ), H = ae(
6935
+ ), U = ae(
6936
6936
  (X) => {
6937
6937
  const { message: Z } = Ee("ChannelView"), oe = /* @__PURE__ */ i(
6938
6938
  Iu,
@@ -6951,12 +6951,12 @@ const Ku = ({
6951
6951
  _i,
6952
6952
  {
6953
6953
  overrides: {
6954
- Message: H,
6954
+ Message: U,
6955
6955
  MessageActions: Lu,
6956
6956
  UnreadMessagesNotification: () => null,
6957
6957
  UnreadMessagesSeparator: () => null
6958
6958
  },
6959
- children: /* @__PURE__ */ i(wi, { children: U ? /* @__PURE__ */ g("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
6959
+ children: /* @__PURE__ */ i(wi, { children: H ? /* @__PURE__ */ g("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
6960
6960
  /* @__PURE__ */ g(
6961
6961
  "div",
6962
6962
  {
@@ -6993,7 +6993,7 @@ const Ku = ({
6993
6993
  renderFooter: () => s == null ? void 0 : s(A),
6994
6994
  disabled: d,
6995
6995
  disabledReason: x,
6996
- composerInput: U
6996
+ composerInput: H
6997
6997
  },
6998
6998
  "lt-channel-message-input"
6999
6999
  )
@@ -7032,7 +7032,7 @@ const Ku = ({
7032
7032
  renderFooter: () => s == null ? void 0 : s(A),
7033
7033
  disabled: d,
7034
7034
  disabledReason: x,
7035
- composerInput: U
7035
+ composerInput: H
7036
7036
  },
7037
7037
  "lt-channel-message-input"
7038
7038
  )
@@ -7066,7 +7066,7 @@ const Ku = ({
7066
7066
  chatbotVotingEnabled: O = !1,
7067
7067
  renderChannelBanner: $,
7068
7068
  customChannelActions: F,
7069
- renderChannelActions: U,
7069
+ renderChannelActions: H,
7070
7070
  renderMessage: A,
7071
7071
  onMessageLinkClick: S,
7072
7072
  sendButton: P,
@@ -7074,7 +7074,7 @@ const Ku = ({
7074
7074
  viewerLanguage: E,
7075
7075
  showChannelInfo: L = !0,
7076
7076
  onParticipantNameClick: z,
7077
- onBroadcastClick: H,
7077
+ onBroadcastClick: U,
7078
7078
  composerInput: X
7079
7079
  }) => {
7080
7080
  const Z = ae(
@@ -7151,12 +7151,12 @@ const Ku = ({
7151
7151
  chatbotVotingEnabled: O,
7152
7152
  renderChannelBanner: $,
7153
7153
  customChannelActions: F,
7154
- renderChannelActions: U,
7154
+ renderChannelActions: H,
7155
7155
  renderMessage: A,
7156
7156
  viewerLanguage: E,
7157
7157
  showChannelInfo: L,
7158
7158
  onParticipantNameClick: z,
7159
- onBroadcastClick: H,
7159
+ onBroadcastClick: U,
7160
7160
  composerInput: X
7161
7161
  }
7162
7162
  )
@@ -7210,12 +7210,12 @@ const k0 = ({
7210
7210
  const {
7211
7211
  client: $,
7212
7212
  isConnected: F,
7213
- isLoading: U,
7213
+ isLoading: H,
7214
7214
  error: A,
7215
7215
  refreshConnection: S,
7216
7216
  service: P,
7217
7217
  debug: T
7218
- } = ao(), [E, L] = V(null), [z, H] = V(null), [X, Z] = V(!1), { showDeleteConversation: oe = !0 } = e, ee = W(o);
7218
+ } = ao(), [E, L] = V(null), [z, U] = V(null), [X, Z] = V(!1), { showDeleteConversation: oe = !0 } = e, ee = W(o);
7219
7219
  ee.current = o;
7220
7220
  const k = W(s);
7221
7221
  k.current = s;
@@ -7248,7 +7248,7 @@ const k0 = ({
7248
7248
  { limit: 1 }
7249
7249
  );
7250
7250
  if (ve.length > 0) {
7251
- L(ve[0]), H(null), (ot = k.current) == null || ot.call(k, ve[0]), T && console.log(
7251
+ L(ve[0]), U(null), (ot = k.current) == null || ot.call(k, ve[0]), T && console.log(
7252
7252
  "[MessagingShell] Initial conversation loaded:",
7253
7253
  ve[0].id
7254
7254
  );
@@ -7256,7 +7256,7 @@ const k0 = ({
7256
7256
  }
7257
7257
  const Me = ee.current;
7258
7258
  if (!Me || !P) {
7259
- ce(), H("No conversation found with this account"), T && console.log(
7259
+ ce(), U("No conversation found with this account"), T && console.log(
7260
7260
  "[MessagingShell] No conversation found for:",
7261
7261
  r
7262
7262
  );
@@ -7268,7 +7268,7 @@ const k0 = ({
7268
7268
  name: Me.name,
7269
7269
  phone: Me.phone
7270
7270
  });
7271
- L(xe), H(null), (lt = k.current) == null || lt.call(k, xe), T && console.log(
7271
+ L(xe), U(null), (lt = k.current) == null || lt.call(k, xe), T && console.log(
7272
7272
  "[MessagingShell] Channel created and loaded:",
7273
7273
  xe.id
7274
7274
  );
@@ -7276,13 +7276,13 @@ const k0 = ({
7276
7276
  console.error(
7277
7277
  "[MessagingShell] Failed to create conversation:",
7278
7278
  xe
7279
- ), ce(), H("Failed to create conversation");
7279
+ ), ce(), U("Failed to create conversation");
7280
7280
  }
7281
7281
  } catch (ve) {
7282
7282
  console.error(
7283
7283
  "[MessagingShell] Failed to load initial conversation:",
7284
7284
  ve
7285
- ), ce(), Y.current || H("Failed to load conversation");
7285
+ ), ce(), Y.current || U("Failed to load conversation");
7286
7286
  }
7287
7287
  })();
7288
7288
  }, [r, $, F, P, T]);
@@ -7292,7 +7292,7 @@ const k0 = ({
7292
7292
  var J;
7293
7293
  L(null), Z(!0), (J = te.current) == null || J.call(te);
7294
7294
  }, []);
7295
- return U ? /* @__PURE__ */ i(Mt, {}) : A ? /* @__PURE__ */ i(qe, { message: A, onBack: S }) : !F || !$ ? /* @__PURE__ */ i(
7295
+ return H ? /* @__PURE__ */ i(Mt, {}) : A ? /* @__PURE__ */ i(qe, { message: A, onBack: S }) : !F || !$ ? /* @__PURE__ */ i(
7296
7296
  qe,
7297
7297
  {
7298
7298
  message: "Not connected to messaging service",
@@ -7364,7 +7364,7 @@ const zr = G.createContext({
7364
7364
  });
7365
7365
  }, $r = G.memo(
7366
7366
  (e) => {
7367
- var F, U, A;
7367
+ var F, H, A;
7368
7368
  const { channel: t, unread: n } = e, {
7369
7369
  selectedChannel: s,
7370
7370
  onChannelSelect: a,
@@ -7393,7 +7393,7 @@ const zr = G.createContext({
7393
7393
  (F = t == null ? void 0 : t.state) == null ? void 0 : F.members,
7394
7394
  f == null ? void 0 : f.userID,
7395
7395
  t == null ? void 0 : t.type
7396
- ), y = Ma(x == null ? void 0 : x.user), p = (U = x == null ? void 0 : x.user) == null ? void 0 : U.image, b = (() => {
7396
+ ), y = Ma(x == null ? void 0 : x.user), p = (H = x == null ? void 0 : x.user) == null ? void 0 : H.image, b = (() => {
7397
7397
  var P;
7398
7398
  const S = (P = t == null ? void 0 : t.state) == null ? void 0 : P.messages;
7399
7399
  if (S != null && S.length) {
@@ -7701,7 +7701,7 @@ const ga = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' wi
7701
7701
  };
7702
7702
  export {
7703
7703
  Ia as A,
7704
- Hn as B,
7704
+ Un as B,
7705
7705
  Wu as C,
7706
7706
  Ma as D,
7707
7707
  N0 as E,
@@ -7736,6 +7736,6 @@ export {
7736
7736
  Xo as w,
7737
7737
  yo as x,
7738
7738
  ka as y,
7739
- Un as z
7739
+ Hn as z
7740
7740
  };
7741
- //# sourceMappingURL=index-Hlj3mc6w.js.map
7741
+ //# sourceMappingURL=index-CitR7B66.js.map