@linktr.ee/messaging-react 4.2.1 → 4.2.2-rc-1787413492

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,4 +1,4 @@
1
- import { jsx as n, jsxs as f, Fragment as Q } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as h, Fragment as Q } from "react/jsx-runtime";
2
2
  import F, { createContext as Re, useMemo as re, useContext as ge, useCallback as J, useState as B, useRef as V, useEffect as X, useId as us, Suspense as ms } from "react";
3
3
  import { StreamChatService as hs } from "@linktr.ee/messaging-core";
4
4
  import { StreamChat as fs, LinkPreviewsManager as at } from "stream-chat";
@@ -53,7 +53,7 @@ const Se = {
53
53
  serviceConfig: !!s,
54
54
  capabilities: Object.keys(r)
55
55
  });
56
- const [u, h] = B(null), [m, g] = B(null), [l, v] = B(!1), [w, b] = B(!1), [x, p] = B(null), y = V(!1), _ = V(null), I = V(s);
56
+ const [u, f] = B(null), [m, g] = B(null), [l, v] = B(!1), [w, b] = B(!1), [x, p] = B(null), y = V(!1), _ = V(null), I = V(s);
57
57
  I.current = s;
58
58
  const M = V(i);
59
59
  M.current = i;
@@ -86,7 +86,7 @@ const Se = {
86
86
  X(() => {
87
87
  const z = $.current, P = I.current;
88
88
  if (o) {
89
- _.current = null, h(null), g(null), v(!1), p(null), b(!1);
89
+ _.current = null, f(null), g(null), v(!1), p(null), b(!1);
90
90
  return;
91
91
  }
92
92
  if (!a || !C || !P) {
@@ -109,7 +109,7 @@ const Se = {
109
109
  // Resolved, because the service swaps its console defaults out wholesale.
110
110
  ...P.logger || !T.current ? {} : { logger: Nn(T.current) }
111
111
  });
112
- _.current = q, h(q), d("✅ SERVICE SET", {
112
+ _.current = q, f(q), d("✅ SERVICE SET", {
113
113
  renderCount: z,
114
114
  serviceInstance: !!q
115
115
  });
@@ -361,7 +361,7 @@ const ye = ({
361
361
  children: c
362
362
  }
363
363
  ) });
364
- return /* @__PURE__ */ f(
364
+ return /* @__PURE__ */ h(
365
365
  "div",
366
366
  {
367
367
  className: k("relative flex-shrink-0", a),
@@ -412,7 +412,7 @@ const ye = ({
412
412
  onBlockParticipantClick: c,
413
413
  onReportParticipantClick: d,
414
414
  onActionComplete: u,
415
- logLabel: h = "useChannelModerationActions"
415
+ logLabel: f = "useChannelModerationActions"
416
416
  }) => {
417
417
  var R;
418
418
  const { service: m, debug: g } = dt(), l = (R = t == null ? void 0 : t.user) == null ? void 0 : R.id, v = !!(a && s && m && l), [w, b] = B(!1), [x, p] = B(null), [y, _] = B(!1), [I, M] = B(!1), T = v && ((x == null ? void 0 : x.participantId) !== l || (x == null ? void 0 : x.service) !== m);
@@ -432,14 +432,14 @@ const ye = ({
432
432
  )
433
433
  );
434
434
  } catch (S) {
435
- E || console.error(`[${h}] Failed to check blocked status:`, S);
435
+ E || console.error(`[${f}] Failed to check blocked status:`, S);
436
436
  } finally {
437
437
  E || p({ participantId: l, service: m });
438
438
  }
439
439
  })(), () => {
440
440
  E = !0;
441
441
  };
442
- }, [v, m, l, h]), {
442
+ }, [v, m, l, f]), {
443
443
  isParticipantBlocked: w,
444
444
  isCheckingBlockedStatus: T,
445
445
  isLeaving: y,
@@ -447,12 +447,12 @@ const ye = ({
447
447
  handleLeaveConversation: async () => {
448
448
  var E;
449
449
  if (!y) {
450
- o == null || o(), g && console.log(`[${h}] Leave conversation`, e.cid), _(!0);
450
+ o == null || o(), g && console.log(`[${f}] Leave conversation`, e.cid), _(!0);
451
451
  try {
452
452
  const S = ((E = e._client) == null ? void 0 : E.userID) ?? null;
453
453
  await e.hide(S, !1), r && await r(e), u == null || u();
454
454
  } catch (S) {
455
- console.error(`[${h}] Failed to leave conversation`, S);
455
+ console.error(`[${f}] Failed to leave conversation`, S);
456
456
  } finally {
457
457
  _(!1);
458
458
  }
@@ -461,11 +461,11 @@ const ye = ({
461
461
  handleBlockUser: async () => {
462
462
  var E, S, O;
463
463
  if (!(I || !m)) {
464
- c == null || c(), g && console.log(`[${h}] Block member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
464
+ c == null || c(), g && console.log(`[${f}] Block member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
465
465
  try {
466
466
  await m.blockUser((S = t == null ? void 0 : t.user) == null ? void 0 : S.id), i && await i((O = t == null ? void 0 : t.user) == null ? void 0 : O.id), u == null || u();
467
467
  } catch (j) {
468
- console.error(`[${h}] Failed to block member`, j);
468
+ console.error(`[${f}] Failed to block member`, j);
469
469
  } finally {
470
470
  M(!1);
471
471
  }
@@ -474,11 +474,11 @@ const ye = ({
474
474
  handleUnblockUser: async () => {
475
475
  var E, S, O;
476
476
  if (!(I || !m)) {
477
- c == null || c(), g && console.log(`[${h}] Unblock member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
477
+ c == null || c(), g && console.log(`[${f}] Unblock member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), M(!0);
478
478
  try {
479
479
  await m.unBlockUser((S = t == null ? void 0 : t.user) == null ? void 0 : S.id), i && await i((O = t == null ? void 0 : t.user) == null ? void 0 : O.id), u == null || u();
480
480
  } catch (j) {
481
- console.error(`[${h}] Failed to unblock member`, j);
481
+ console.error(`[${f}] Failed to unblock member`, j);
482
482
  } finally {
483
483
  M(!1);
484
484
  }
@@ -516,7 +516,7 @@ const ye = ({
516
516
  onDeleteConversationClick: c,
517
517
  onBlockParticipantClick: d,
518
518
  onReportParticipantClick: u,
519
- customChannelActions: h,
519
+ customChannelActions: f,
520
520
  triggerClassName: m
521
521
  }) => {
522
522
  const [g, l] = B(!1), v = V(null), w = us(), b = J(() => l(!1), []), {
@@ -551,8 +551,8 @@ const ye = ({
551
551
  return document.addEventListener("mousedown", A), document.addEventListener("keydown", C), () => {
552
552
  document.removeEventListener("mousedown", A), document.removeEventListener("keydown", C);
553
553
  };
554
- }, [g]), !t || !(s || a || r || !!h) ? null : /* @__PURE__ */ f("div", { ref: v, className: "relative", children: [
555
- /* @__PURE__ */ f(
554
+ }, [g]), !t || !(s || a || r || !!f) ? null : /* @__PURE__ */ h("div", { ref: v, className: "relative", children: [
555
+ /* @__PURE__ */ h(
556
556
  "button",
557
557
  {
558
558
  className: m,
@@ -576,8 +576,8 @@ const ye = ({
576
576
  "absolute right-0 top-full z-50 mt-2 w-56 overflow-hidden",
577
577
  "rounded-lg border border-sand bg-white p-1 shadow-max-elevation-light"
578
578
  ),
579
- children: /* @__PURE__ */ f("ul", { className: "flex flex-col gap-1", children: [
580
- s && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ f(
579
+ children: /* @__PURE__ */ h("ul", { className: "flex flex-col gap-1", children: [
580
+ s && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ h(
581
581
  ke,
582
582
  {
583
583
  onClick: I,
@@ -592,11 +592,11 @@ const ye = ({
592
592
  a && /* @__PURE__ */ n("li", { children: p ? (
593
593
  // Block status not yet resolved — show a disabled placeholder
594
594
  // so a premature click can't act on a stale block state.
595
- /* @__PURE__ */ f(ke, { disabled: !0, "aria-busy": !0, children: [
595
+ /* @__PURE__ */ h(ke, { disabled: !0, "aria-busy": !0, children: [
596
596
  /* @__PURE__ */ n(ze, { className: "h-5 w-5 animate-spin" }),
597
597
  /* @__PURE__ */ n("span", { children: "Block" })
598
598
  ] })
599
- ) : x ? /* @__PURE__ */ f(
599
+ ) : x ? /* @__PURE__ */ h(
600
600
  ke,
601
601
  {
602
602
  onClick: T,
@@ -607,7 +607,7 @@ const ye = ({
607
607
  /* @__PURE__ */ n("span", { children: "Unblock" })
608
608
  ]
609
609
  }
610
- ) : /* @__PURE__ */ f(
610
+ ) : /* @__PURE__ */ h(
611
611
  ke,
612
612
  {
613
613
  onClick: M,
@@ -619,11 +619,11 @@ const ye = ({
619
619
  ]
620
620
  }
621
621
  ) }),
622
- r && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ f(ke, { variant: "danger", onClick: D, children: [
622
+ r && /* @__PURE__ */ n("li", { children: /* @__PURE__ */ h(ke, { variant: "danger", onClick: D, children: [
623
623
  /* @__PURE__ */ n(vn, { className: "h-5 w-5" }),
624
624
  /* @__PURE__ */ n("span", { children: "Report" })
625
625
  ] }) }),
626
- h
626
+ f
627
627
  ] })
628
628
  }
629
629
  )
@@ -639,7 +639,7 @@ const ye = ({
639
639
  showBlockParticipant: c = !0,
640
640
  showReportParticipant: d = !0,
641
641
  onDeleteConversationClick: u,
642
- onBlockParticipantClick: h,
642
+ onBlockParticipantClick: f,
643
643
  onReportParticipantClick: m,
644
644
  customChannelActions: g,
645
645
  renderChannelActions: l,
@@ -666,7 +666,7 @@ const ye = ({
666
666
  O
667
667
  );
668
668
  }
669
- }, A = /* @__PURE__ */ f(Q, { children: [
669
+ }, A = /* @__PURE__ */ h(Q, { children: [
670
670
  /* @__PURE__ */ n(
671
671
  ye,
672
672
  {
@@ -685,9 +685,9 @@ const ye = ({
685
685
  "relative z-10 flex max-w-full flex-col items-center justify-center rounded-full border border-white/10 bg-white/65 py-1.5 shadow-[0px_0px_0px_0px_rgba(0,0,0,0.04),0px_1px_2px_0px_rgba(0,0,0,0.04),0px_8px_32px_0px_rgba(0,0,0,0.1)] backdrop-blur-[2px] transition-filter duration-150 group-hover:brightness-95",
686
686
  D ? "pl-3 pr-2" : "px-3"
687
687
  ),
688
- children: /* @__PURE__ */ f("span", { className: "flex max-w-full items-center justify-center", children: [
688
+ children: /* @__PURE__ */ h("span", { className: "flex max-w-full items-center justify-center", children: [
689
689
  /* @__PURE__ */ n("span", { className: "min-w-0 truncate text-sm font-bold leading-[1.43] tracking-[0.28px] text-black/90", children: y }),
690
- D && /* @__PURE__ */ f("span", { className: "ml-2 flex gap-1", children: [
690
+ D && /* @__PURE__ */ h("span", { className: "ml-2 flex gap-1", children: [
691
691
  M && /* @__PURE__ */ n(
692
692
  "span",
693
693
  {
@@ -724,7 +724,7 @@ const ye = ({
724
724
  "@container bg-[linear-gradient(180deg,#FBFAF9_0%,rgba(251,250,249,0.92)_58%,rgba(251,250,249,0)_100%)]",
725
725
  e
726
726
  ),
727
- children: /* @__PURE__ */ f("div", { className: "grid min-h-[100px] grid-cols-[minmax(40px,1fr)_auto_minmax(40px,1fr)] items-start pb-2 pt-5 @lg:min-h-[104px] @lg:pt-6", children: [
727
+ children: /* @__PURE__ */ h("div", { className: "grid min-h-[100px] grid-cols-[minmax(40px,1fr)_auto_minmax(40px,1fr)] items-start pb-2 pt-5 @lg:min-h-[104px] @lg:pt-6", children: [
728
728
  /* @__PURE__ */ n("div", { className: "flex items-start", children: s && /* @__PURE__ */ n(
729
729
  "button",
730
730
  {
@@ -749,7 +749,7 @@ const ye = ({
749
749
  children: A
750
750
  }
751
751
  ) : /* @__PURE__ */ n("div", { className: "flex min-w-0 max-w-full flex-col items-center px-2", children: A }) }),
752
- /* @__PURE__ */ f("div", { className: "flex items-start justify-end gap-2", children: [
752
+ /* @__PURE__ */ h("div", { className: "flex items-start justify-end gap-2", children: [
753
753
  a && /* @__PURE__ */ n(
754
754
  "button",
755
755
  {
@@ -781,7 +781,7 @@ const ye = ({
781
781
  onLeaveConversation: r,
782
782
  onBlockParticipant: i,
783
783
  onDeleteConversationClick: u,
784
- onBlockParticipantClick: h,
784
+ onBlockParticipantClick: f,
785
785
  onReportParticipantClick: m,
786
786
  customChannelActions: g,
787
787
  triggerClassName: Qe
@@ -881,7 +881,7 @@ const Xa = (e) => {
881
881
  muted: d = !1,
882
882
  onContainerClick: u
883
883
  }) => {
884
- const h = ue(t), m = V(null), g = V(null), l = V(null), v = V(r), [w, b] = B(a), [x, p] = B(0), [y, _] = B(!1), [I, M] = B(!1), [T, D] = B(!1), [$, A] = B(!1), [C, R] = B(!0), [E, S] = B(null), O = J(() => {
884
+ const f = ue(t), m = V(null), g = V(null), l = V(null), v = V(r), [w, b] = B(a), [x, p] = B(0), [y, _] = B(!1), [I, M] = B(!1), [T, D] = B(!1), [$, A] = B(!1), [C, R] = B(!0), [E, S] = B(null), O = J(() => {
885
885
  D(!1), b(!0);
886
886
  }, []), j = J((N) => {
887
887
  const L = g.current;
@@ -933,7 +933,7 @@ const Xa = (e) => {
933
933
  };
934
934
  }, [y, j, z]);
935
935
  const G = E ? { aspectRatio: String(E) } : void 0, Z = E ? "" : " aspect-video", Y = Math.round(x * 100);
936
- return /* @__PURE__ */ f(
936
+ return /* @__PURE__ */ h(
937
937
  "div",
938
938
  {
939
939
  role: "button",
@@ -957,7 +957,7 @@ const Xa = (e) => {
957
957
  }
958
958
  },
959
959
  children: [
960
- s && (h === "audio" || C) && /* @__PURE__ */ n(
960
+ s && (f === "audio" || C) && /* @__PURE__ */ n(
961
961
  "img",
962
962
  {
963
963
  src: s,
@@ -965,11 +965,11 @@ const Xa = (e) => {
965
965
  className: "absolute inset-0 h-full w-full object-cover"
966
966
  }
967
967
  ),
968
- !s && (h === "audio" || C) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: we(t, {
968
+ !s && (f === "audio" || C) && /* @__PURE__ */ n("div", { className: "absolute inset-0 flex items-center justify-center", children: we(t, {
969
969
  className: "size-12 text-black/20",
970
970
  weight: "regular"
971
971
  }) }),
972
- /* @__PURE__ */ n("div", { className: "absolute inset-0", children: h === "audio" ? /* @__PURE__ */ n(
972
+ /* @__PURE__ */ n("div", { className: "absolute inset-0", children: f === "audio" ? /* @__PURE__ */ n(
973
973
  "audio",
974
974
  {
975
975
  ref: m,
@@ -1060,7 +1060,7 @@ const Xa = (e) => {
1060
1060
  ) })
1061
1061
  }
1062
1062
  ) }),
1063
- o && /* @__PURE__ */ f("div", { className: "absolute inset-x-0 bottom-0 flex items-center gap-2 bg-gradient-to-t from-black/60 to-transparent px-3 pb-2.5 pt-6 transition-all duration-200", children: [
1063
+ o && /* @__PURE__ */ h("div", { className: "absolute inset-x-0 bottom-0 flex items-center gap-2 bg-gradient-to-t from-black/60 to-transparent px-3 pb-2.5 pt-6 transition-all duration-200", children: [
1064
1064
  /* @__PURE__ */ n(
1065
1065
  "button",
1066
1066
  {
@@ -1073,7 +1073,7 @@ const Xa = (e) => {
1073
1073
  children: w ? /* @__PURE__ */ n(fa, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ n(ot, { className: "size-5 translate-x-px", weight: "fill" })
1074
1074
  }
1075
1075
  ),
1076
- /* @__PURE__ */ f(
1076
+ /* @__PURE__ */ h(
1077
1077
  "div",
1078
1078
  {
1079
1079
  role: "slider",
@@ -1127,7 +1127,7 @@ const Xa = (e) => {
1127
1127
  mediaPlayerProps: i,
1128
1128
  containedImage: o = !1
1129
1129
  }) => {
1130
- const c = ue(e), [d, u] = B(!1), h = de(t), m = de(s);
1130
+ const c = ue(e), [d, u] = B(!1), f = de(t), m = de(s);
1131
1131
  return t && (c === "video" || c === "audio") ? /* @__PURE__ */ n(
1132
1132
  qa,
1133
1133
  {
@@ -1140,7 +1140,7 @@ const Xa = (e) => {
1140
1140
  ) : t && c === "image" ? o ? /* @__PURE__ */ n("div", { className: `relative ${et(r)}`, children: /* @__PURE__ */ n(
1141
1141
  "img",
1142
1142
  {
1143
- src: h ?? t,
1143
+ src: f ?? t,
1144
1144
  alt: a ?? "",
1145
1145
  className: `absolute inset-0 h-full w-full object-contain transition-opacity duration-300 ${d ? "opacity-100" : "opacity-0"}`,
1146
1146
  draggable: !1,
@@ -1149,7 +1149,7 @@ const Xa = (e) => {
1149
1149
  ) }) : /* @__PURE__ */ n(
1150
1150
  "img",
1151
1151
  {
1152
- src: h ?? t,
1152
+ src: f ?? t,
1153
1153
  alt: a ?? "",
1154
1154
  className: "block w-full",
1155
1155
  draggable: !1
@@ -1209,14 +1209,14 @@ const Xa = (e) => {
1209
1209
  action: c,
1210
1210
  topLeft: d,
1211
1211
  topRight: u,
1212
- rootRef: h,
1212
+ rootRef: f,
1213
1213
  "data-testid": m
1214
1214
  }) => {
1215
1215
  const g = e === "dark", l = g ? s ?? a : s ?? "", v = g && !s;
1216
- return /* @__PURE__ */ f(
1216
+ return /* @__PURE__ */ h(
1217
1217
  "div",
1218
1218
  {
1219
- ref: h,
1219
+ ref: f,
1220
1220
  "data-testid": m,
1221
1221
  className: k(
1222
1222
  "relative w-[280px] select-none overflow-hidden rounded-[24px] shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]",
@@ -1226,7 +1226,7 @@ const Xa = (e) => {
1226
1226
  d ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute left-3 top-3 z-50", children: d }) : null,
1227
1227
  u ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute right-3 top-3 z-50", children: u }) : null,
1228
1228
  t,
1229
- /* @__PURE__ */ f("div", { className: "px-4 pb-3 pt-3", children: [
1229
+ /* @__PURE__ */ h("div", { className: "px-4 pb-3 pt-3", children: [
1230
1230
  l.trim() !== "" && /* @__PURE__ */ n(
1231
1231
  "p",
1232
1232
  {
@@ -1238,7 +1238,7 @@ const Xa = (e) => {
1238
1238
  children: l
1239
1239
  }
1240
1240
  ),
1241
- /* @__PURE__ */ f("div", { className: "flex flex-wrap items-center gap-1", children: [
1241
+ /* @__PURE__ */ h("div", { className: "flex flex-wrap items-center gap-1", children: [
1242
1242
  we(r, {
1243
1243
  className: k(
1244
1244
  "size-5 shrink-0",
@@ -1286,7 +1286,7 @@ function tr(e) {
1286
1286
  return e ? "text-white/20" : "text-black/20";
1287
1287
  }
1288
1288
  const mt = ({ attachment: e, isMyMessage: t }) => {
1289
- const { title: s, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, c = i ?? o, d = typeof c == "string" && c.trim() !== "" ? c : void 0, u = /* @__PURE__ */ f(F.Fragment, { children: [
1289
+ const { title: s, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, c = i ?? o, d = typeof c == "string" && c.trim() !== "" ? c : void 0, u = /* @__PURE__ */ h(F.Fragment, { children: [
1290
1290
  /* @__PURE__ */ n("div", { className: "p-2", children: r ? /* @__PURE__ */ n(
1291
1291
  "img",
1292
1292
  {
@@ -1301,7 +1301,7 @@ const mt = ({ attachment: e, isMyMessage: t }) => {
1301
1301
  children: /* @__PURE__ */ n(ga, { className: `size-12 ${tr(t)}` })
1302
1302
  }
1303
1303
  ) }),
1304
- /* @__PURE__ */ f("div", { className: "px-3 pb-3", children: [
1304
+ /* @__PURE__ */ h("div", { className: "px-3 pb-3", children: [
1305
1305
  s && /* @__PURE__ */ n(
1306
1306
  "p",
1307
1307
  {
@@ -1382,7 +1382,7 @@ const sr = ({
1382
1382
  className: "size-4 animate-spin text-white",
1383
1383
  weight: "bold"
1384
1384
  }
1385
- ) : /* @__PURE__ */ f(F.Fragment, { children: [
1385
+ ) : /* @__PURE__ */ h(F.Fragment, { children: [
1386
1386
  /* @__PURE__ */ n(Ie, { className: "size-4 text-white", weight: "bold" }),
1387
1387
  "Download"
1388
1388
  ] })
@@ -1401,13 +1401,13 @@ function ft(e) {
1401
1401
  (w) => w.type === "file" && w.asset_url
1402
1402
  ), i = t ?? s ?? a ?? r, o = (t == null ? void 0 : t.asset_url) ?? (s == null ? void 0 : s.image_url) ?? (a == null ? void 0 : a.asset_url) ?? (r == null ? void 0 : r.asset_url);
1403
1403
  if (!o) return null;
1404
- const c = (i == null ? void 0 : i.mime_type) ?? ((i == null ? void 0 : i.type) === "image" ? "image/jpeg" : (i == null ? void 0 : i.type) === "video" ? "video/mp4" : (i == null ? void 0 : i.type) === "audio" ? "audio/mpeg" : "application/octet-stream"), d = i == null ? void 0 : i.title, u = i == null ? void 0 : i.file_size, h = t == null ? void 0 : t.thumb_url;
1404
+ const c = (i == null ? void 0 : i.mime_type) ?? ((i == null ? void 0 : i.type) === "image" ? "image/jpeg" : (i == null ? void 0 : i.type) === "video" ? "video/mp4" : (i == null ? void 0 : i.type) === "audio" ? "audio/mpeg" : "application/octet-stream"), d = i == null ? void 0 : i.title, u = i == null ? void 0 : i.file_size, f = t == null ? void 0 : t.thumb_url;
1405
1405
  return {
1406
1406
  resolvedUrl: o,
1407
1407
  resolvedType: c,
1408
1408
  title: d,
1409
1409
  fileSize: u,
1410
- thumbnailUrl: h
1410
+ thumbnailUrl: f
1411
1411
  };
1412
1412
  }
1413
1413
  const On = ({
@@ -1472,7 +1472,7 @@ const On = ({
1472
1472
  isMyMessage: t = !1
1473
1473
  }) => {
1474
1474
  const s = ht(e), a = ft(e);
1475
- return !s && !a ? null : /* @__PURE__ */ f("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: [
1475
+ return !s && !a ? null : /* @__PURE__ */ h("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: [
1476
1476
  !t && e.user && /* @__PURE__ */ n(
1477
1477
  ye,
1478
1478
  {
@@ -1537,7 +1537,7 @@ const On = ({
1537
1537
  function cr(e) {
1538
1538
  return ge(Fn)[e] ?? lr[e];
1539
1539
  }
1540
- const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import("./Card-3VtiPkQH.js")), mr = () => /* @__PURE__ */ n(
1540
+ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import("./Card-Bg6qe3Um.js")), mr = () => /* @__PURE__ */ n(
1541
1541
  "div",
1542
1542
  {
1543
1543
  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)]",
@@ -1589,26 +1589,26 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1589
1589
  return null;
1590
1590
  if (a) {
1591
1591
  const g = (m = e.metadata) == null ? void 0 : m.amount_text;
1592
- return g ? /* @__PURE__ */ f("div", { className: "message-tag--paid inline-flex items-center gap-1 text-[12px] font-medium leading-[2] text-[#016630]", children: [
1592
+ return g ? /* @__PURE__ */ h("div", { className: "message-tag--paid inline-flex items-center gap-1 text-[12px] font-medium leading-[2] text-[#016630]", children: [
1593
1593
  /* @__PURE__ */ n(pa, { size: 12 }),
1594
- /* @__PURE__ */ f("span", { children: [
1594
+ /* @__PURE__ */ h("span", { children: [
1595
1595
  "Delivered with ",
1596
1596
  g,
1597
1597
  " message"
1598
1598
  ] })
1599
1599
  ] }) : null;
1600
1600
  }
1601
- const i = t && s, o = i ? "Sent with AI" : "Sent by AI Assistant", c = "inline-flex items-center text-[10px] font-normal leading-4 tracking-[0.2px]", d = i ? "justify-end gap-2 text-black/30" : t ? "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", u = /* @__PURE__ */ n("span", { className: "text-left", children: o }), h = /* @__PURE__ */ n("span", { className: "inline-flex items-center leading-none", children: /* @__PURE__ */ n(hr, { size: i ? 12 : 15 }) });
1601
+ const i = t && s, o = i ? "Sent with AI" : "Sent by AI Assistant", c = "inline-flex items-center text-[10px] font-normal leading-4 tracking-[0.2px]", d = i ? "justify-end gap-2 text-black/30" : t ? "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", u = /* @__PURE__ */ n("span", { className: "text-left", children: o }), f = /* @__PURE__ */ n("span", { className: "inline-flex items-center leading-none", children: /* @__PURE__ */ n(hr, { size: i ? 12 : 15 }) });
1602
1602
  return /* @__PURE__ */ n(
1603
1603
  "div",
1604
1604
  {
1605
1605
  className: `${c} ${d}`,
1606
1606
  "data-testid": "message-chatbot-indicator",
1607
- children: t && !i ? /* @__PURE__ */ f(Q, { children: [
1607
+ children: t && !i ? /* @__PURE__ */ h(Q, { children: [
1608
1608
  u,
1609
- h
1610
- ] }) : /* @__PURE__ */ f(Q, { children: [
1611
- h,
1609
+ f
1610
+ ] }) : /* @__PURE__ */ h(Q, { children: [
1611
+ f,
1612
1612
  u
1613
1613
  ] })
1614
1614
  }
@@ -1675,7 +1675,7 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1675
1675
  }, yr = ({ message: e }) => {
1676
1676
  var s;
1677
1677
  const t = (s = e.metadata) == null ? void 0 : s.amount_text;
1678
- return t ? /* @__PURE__ */ f("div", { className: "message-tip-pill inline-flex items-end gap-0.5 max-w-[520px] rounded-[1.5rem] bg-[#43e660] px-4 py-3 text-white", children: [
1678
+ return t ? /* @__PURE__ */ h("div", { className: "message-tip-pill inline-flex items-end gap-0.5 max-w-[520px] rounded-[1.5rem] bg-[#43e660] px-4 py-3 text-white", children: [
1679
1679
  /* @__PURE__ */ n(
1680
1680
  "span",
1681
1681
  {
@@ -1684,7 +1684,7 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1684
1684
  children: "🎁"
1685
1685
  }
1686
1686
  ),
1687
- /* @__PURE__ */ f("span", { className: "text-[14px] font-bold leading-[1.43] tracking-[0.28px] text-[rgba(4,4,3,0.9)]", children: [
1687
+ /* @__PURE__ */ h("span", { className: "text-[14px] font-bold leading-[1.43] tracking-[0.28px] text-[rgba(4,4,3,0.9)]", children: [
1688
1688
  t,
1689
1689
  " tip!"
1690
1690
  ] })
@@ -1699,10 +1699,10 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1699
1699
  }
1700
1700
  })();
1701
1701
  return e.id === s;
1702
- }, $e = () => pt() ? /* @__PURE__ */ f(Q, { children: [
1702
+ }, $e = () => pt() ? /* @__PURE__ */ h(Q, { children: [
1703
1703
  /* @__PURE__ */ n(xa, { weight: "bold", "aria-hidden": "true" }),
1704
1704
  /* @__PURE__ */ n("span", { "data-testid": "sent-message-delivery-status", children: "Delivered" })
1705
- ] }) : null, Nr = () => pt() ? /* @__PURE__ */ f(Q, { children: [
1705
+ ] }) : null, Nr = () => pt() ? /* @__PURE__ */ h(Q, { children: [
1706
1706
  /* @__PURE__ */ n(
1707
1707
  xe,
1708
1708
  {
@@ -1716,7 +1716,7 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1716
1716
  outbound: e,
1717
1717
  onOutboundClick: t
1718
1718
  }) => {
1719
- const s = e.name || "Broadcast", r = /* @__PURE__ */ f(Q, { children: [
1719
+ const s = e.name || "Broadcast", r = /* @__PURE__ */ h(Q, { children: [
1720
1720
  /* @__PURE__ */ n("span", { className: "sent-message-outbound-badge", "aria-hidden": "true", children: /* @__PURE__ */ n(va, { weight: "fill" }) }),
1721
1721
  /* @__PURE__ */ n(
1722
1722
  "span",
@@ -1739,14 +1739,14 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1739
1739
  children: r
1740
1740
  }
1741
1741
  ) : r;
1742
- }, Cr = () => /* @__PURE__ */ f("span", { className: "str-chat__message-status sent-message-status--failed", children: [
1742
+ }, Cr = () => /* @__PURE__ */ h("span", { className: "str-chat__message-status sent-message-status--failed", children: [
1743
1743
  /* @__PURE__ */ n(ba, { weight: "bold", "aria-hidden": "true" }),
1744
1744
  /* @__PURE__ */ n("span", { "data-testid": "sent-message-failed-status", children: "Failed to send" })
1745
1745
  ] }), Sr = ({
1746
1746
  onOutboundClick: e,
1747
1747
  resolvedOutbound: t
1748
1748
  }) => {
1749
- var h;
1749
+ var f;
1750
1750
  const { isMyMessage: s, message: a, threadList: r } = pe(
1751
1751
  "SentMessageDeliveryStatus"
1752
1752
  ), i = s(), o = pt();
@@ -1756,7 +1756,7 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1756
1756
  return /* @__PURE__ */ n(Cr, {});
1757
1757
  if (!i)
1758
1758
  return null;
1759
- const c = (h = a.metadata) == null ? void 0 : h.outbound_id, d = a.status !== "sending" && a.status !== "failed" && c && t ? /* @__PURE__ */ n(
1759
+ const c = (f = a.metadata) == null ? void 0 : f.outbound_id, d = a.status !== "sending" && a.status !== "failed" && c && t ? /* @__PURE__ */ n(
1760
1760
  kr,
1761
1761
  {
1762
1762
  outbound: t,
@@ -1771,7 +1771,7 @@ const dr = F.lazy(() => import("./Card-BzvDr-pU.js")), ur = F.lazy(() => import(
1771
1771
  MessageSendingStatus: $n(a) ? $e : Nr
1772
1772
  }
1773
1773
  );
1774
- return d ? /* @__PURE__ */ f("span", { className: "sent-message-status-row", children: [
1774
+ return d ? /* @__PURE__ */ h("span", { className: "sent-message-status-row", children: [
1775
1775
  u,
1776
1776
  u && o && /* @__PURE__ */ n("span", { className: "sent-message-outbound-separator", "aria-hidden": "true", children: "•" }),
1777
1777
  d
@@ -1854,7 +1854,7 @@ const Tr = {
1854
1854
  url: c,
1855
1855
  appIcon: d,
1856
1856
  cta: u,
1857
- trailingAction: h,
1857
+ trailingAction: f,
1858
1858
  isLoading: m = !1
1859
1859
  }) => {
1860
1860
  const g = e === "dark", l = a ?? (g ? r : void 0) ?? "", v = l.trim() !== "", w = i != null && i.trim() !== "", b = typeof c == "string" ? c.trim() : "", x = b !== "", p = u != null;
@@ -1876,7 +1876,7 @@ const Tr = {
1876
1876
  "animate-pulse rounded",
1877
1877
  Lr[e]
1878
1878
  );
1879
- 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: [
1879
+ return /* @__PURE__ */ n("div", { className: "shrink-0 px-4 py-3", children: /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-col gap-[2px]", children: [
1880
1880
  /* @__PURE__ */ n("div", { className: k("h-5 w-3/4", $), "aria-hidden": !0 }),
1881
1881
  /* @__PURE__ */ n("div", { className: k("h-4 w-1/2", $), "aria-hidden": !0 })
1882
1882
  ] }) });
@@ -1888,10 +1888,10 @@ const Tr = {
1888
1888
  WebkitLineClamp: o,
1889
1889
  overflow: "hidden"
1890
1890
  } : T;
1891
- return /* @__PURE__ */ f("div", { className: "shrink-0 px-4 py-3", children: [
1892
- /* @__PURE__ */ f("div", { className: "flex items-end gap-3", children: [
1893
- /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-1 flex-col gap-[2px]", children: [
1894
- v && /* @__PURE__ */ f("div", { className: "flex min-w-0 items-center gap-2", children: [
1891
+ return /* @__PURE__ */ h("div", { className: "shrink-0 px-4 py-3", children: [
1892
+ /* @__PURE__ */ h("div", { className: "flex items-end gap-3", children: [
1893
+ /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-1 flex-col gap-[2px]", children: [
1894
+ v && /* @__PURE__ */ h("div", { className: "flex min-w-0 items-center gap-2", children: [
1895
1895
  d ? /* @__PURE__ */ n("span", { className: "shrink-0", children: d }) : null,
1896
1896
  /* @__PURE__ */ n(
1897
1897
  "p",
@@ -1913,7 +1913,7 @@ const Tr = {
1913
1913
  }
1914
1914
  )
1915
1915
  ] }),
1916
- h && /* @__PURE__ */ n("div", { className: "shrink-0", children: h })
1916
+ f && /* @__PURE__ */ n("div", { className: "shrink-0", children: f })
1917
1917
  ] }),
1918
1918
  u && /* @__PURE__ */ n(Un, { variant: t ?? e, cta: u })
1919
1919
  ] });
@@ -1938,7 +1938,7 @@ const Tr = {
1938
1938
  bgClassName: c,
1939
1939
  accentHex: d,
1940
1940
  fixedHeight: u = !1,
1941
- busy: h = !1,
1941
+ busy: f = !1,
1942
1942
  "data-testid": m
1943
1943
  }) => {
1944
1944
  const g = s != null || a != null, l = k(
@@ -1966,8 +1966,8 @@ const Tr = {
1966
1966
  // tailwind preset — outline-none + a black 2px focus-visible ring
1967
1967
  // with offset, so keyboard users can see the focused card.
1968
1968
  g ? "cursor-pointer no-underline focus-ring" : null
1969
- ), v = h ? { role: "status", "aria-busy": !0, "aria-label": Mr } : void 0, w = d ? { "--accent": d } : void 0, b = o ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute right-3 top-3 z-10", children: o }) : null;
1970
- return s ? /* @__PURE__ */ f(
1969
+ ), v = f ? { role: "status", "aria-busy": !0, "aria-label": Mr } : void 0, w = d ? { "--accent": d } : void 0, b = o ? /* @__PURE__ */ n("div", { className: "pointer-events-auto absolute right-3 top-3 z-10", children: o }) : null;
1970
+ return s ? /* @__PURE__ */ h(
1971
1971
  "a",
1972
1972
  {
1973
1973
  ref: i,
@@ -1985,7 +1985,7 @@ const Tr = {
1985
1985
  b
1986
1986
  ]
1987
1987
  }
1988
- ) : a ? /* @__PURE__ */ f(
1988
+ ) : a ? /* @__PURE__ */ h(
1989
1989
  "button",
1990
1990
  {
1991
1991
  ref: i,
@@ -2002,7 +2002,7 @@ const Tr = {
2002
2002
  b
2003
2003
  ]
2004
2004
  }
2005
- ) : /* @__PURE__ */ f(
2005
+ ) : /* @__PURE__ */ h(
2006
2006
  "div",
2007
2007
  {
2008
2008
  ref: i,
@@ -2038,7 +2038,7 @@ const Tr = {
2038
2038
  isLoading: c = !1,
2039
2039
  onImageError: d
2040
2040
  }) => {
2041
- const u = ue(r), h = !!s && u === "video", m = de(t);
2041
+ const u = ue(r), f = !!s && u === "video", m = de(t);
2042
2042
  return !c && Le(r, s) ? /* @__PURE__ */ n("div", { className: "p-3", children: /* @__PURE__ */ n(
2043
2043
  "audio",
2044
2044
  {
@@ -2048,7 +2048,7 @@ const Tr = {
2048
2048
  className: "block w-full",
2049
2049
  children: /* @__PURE__ */ n("track", { kind: "captions" })
2050
2050
  }
2051
- ) }) : /* @__PURE__ */ f(
2051
+ ) }) : /* @__PURE__ */ h(
2052
2052
  "div",
2053
2053
  {
2054
2054
  className: k(
@@ -2056,7 +2056,7 @@ const Tr = {
2056
2056
  // every pixel the chin doesn't, which is 168px at a two-line title
2057
2057
  // and 188px at one.
2058
2058
  "relative min-h-0 w-full flex-1 overflow-hidden",
2059
- h && "bg-black"
2059
+ f && "bg-black"
2060
2060
  ),
2061
2061
  children: [
2062
2062
  c ? (
@@ -2075,7 +2075,7 @@ const Tr = {
2075
2075
  "aria-hidden": !0
2076
2076
  }
2077
2077
  )
2078
- ) : h ? /* @__PURE__ */ f(Q, { children: [
2078
+ ) : f ? /* @__PURE__ */ h(Q, { children: [
2079
2079
  /* @__PURE__ */ n(
2080
2080
  "video",
2081
2081
  {
@@ -2151,12 +2151,12 @@ function Ke({
2151
2151
  }, [r]);
2152
2152
  const u = F.useCallback(() => {
2153
2153
  d(!0);
2154
- }, []), h = Le(i, o), l = a === "featured" && !!r && !h && !c && s === "ready" && t != null && Fr.test(t.trim()) ? zr(t) : void 0, v = h ? jn : $r[e];
2154
+ }, []), f = Le(i, o), l = a === "featured" && !!r && !f && !c && s === "ready" && t != null && Fr.test(t.trim()) ? zr(t) : void 0, v = f ? jn : $r[e];
2155
2155
  return {
2156
2156
  thumbnailUrl: c ? void 0 : r,
2157
2157
  accentHex: l,
2158
2158
  chinTextColor: v,
2159
- surface: h ? "light" : e,
2159
+ surface: f ? "light" : e,
2160
2160
  isLoading: s === "loading",
2161
2161
  onImageError: u
2162
2162
  };
@@ -2172,7 +2172,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2172
2172
  sourceUrl: c,
2173
2173
  layout: d = "featured",
2174
2174
  appIcon: u,
2175
- cta: h,
2175
+ cta: f,
2176
2176
  accentColor: m,
2177
2177
  status: g = "ready",
2178
2178
  onDismiss: l,
@@ -2209,7 +2209,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2209
2209
  children: /* @__PURE__ */ n(wa, { className: "size-5", weight: "regular" })
2210
2210
  }
2211
2211
  ) : void 0;
2212
- return x && !p.isLoading ? /* @__PURE__ */ n(Te, { variant: "dark", bgClassName: wt, children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2 pr-3", children: [
2212
+ return x && !p.isLoading ? /* @__PURE__ */ n(Te, { variant: "dark", bgClassName: wt, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2 pr-3", children: [
2213
2213
  /* @__PURE__ */ n("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ n(
2214
2214
  Ae,
2215
2215
  {
@@ -2220,7 +2220,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2220
2220
  }
2221
2221
  ) }),
2222
2222
  y && /* @__PURE__ */ n("div", { className: "shrink-0", children: y })
2223
- ] }) }) : /* @__PURE__ */ f(
2223
+ ] }) }) : /* @__PURE__ */ h(
2224
2224
  Te,
2225
2225
  {
2226
2226
  variant: "dark",
@@ -2254,7 +2254,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2254
2254
  descriptionLines: a,
2255
2255
  url: r,
2256
2256
  appIcon: u,
2257
- cta: h,
2257
+ cta: f,
2258
2258
  trailingAction: _,
2259
2259
  isLoading: p.isLoading
2260
2260
  }
@@ -2271,7 +2271,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2271
2271
  // `isolate` keeps the tail's negative z-index from escaping behind the
2272
2272
  // thread background; `w-fit` stops the wrapper from stretching in the
2273
2273
  // composer's flex list.
2274
- /* @__PURE__ */ f("div", { className: "relative isolate w-fit", children: [
2274
+ /* @__PURE__ */ h("div", { className: "relative isolate w-fit", children: [
2275
2275
  a,
2276
2276
  /* @__PURE__ */ n(
2277
2277
  "span",
@@ -2298,7 +2298,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2298
2298
  layout: c = "featured",
2299
2299
  appIcon: d,
2300
2300
  cta: u,
2301
- accentColor: h,
2301
+ accentColor: f,
2302
2302
  status: m = "ready",
2303
2303
  onClick: g,
2304
2304
  groupPosition: l = "single"
@@ -2311,7 +2311,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2311
2311
  }
2312
2312
  } : u, _ = Ke({
2313
2313
  variant: "light",
2314
- accentColor: h,
2314
+ accentColor: f,
2315
2315
  status: m,
2316
2316
  layout: c,
2317
2317
  thumbnailUrl: i,
@@ -2324,7 +2324,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2324
2324
  accentHex: _.accentHex,
2325
2325
  side: "receiver",
2326
2326
  visible: p == null && (l === "single" || l === "end"),
2327
- children: /* @__PURE__ */ f(
2327
+ children: /* @__PURE__ */ h(
2328
2328
  Te,
2329
2329
  {
2330
2330
  variant: "light",
@@ -2380,13 +2380,13 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2380
2380
  sourceUrl: c,
2381
2381
  layout: d = "featured",
2382
2382
  appIcon: u,
2383
- cta: h,
2383
+ cta: f,
2384
2384
  accentColor: m,
2385
2385
  status: g = "ready",
2386
2386
  onClick: l,
2387
2387
  groupPosition: v = "single"
2388
2388
  }) => {
2389
- const w = xt(i, c), b = bt(r), x = h == null && b != null && !w ? b : void 0, p = h == null && !w && x != null ? l : void 0, y = g !== "loading" && Le(i, c), _ = Ke({
2389
+ const w = xt(i, c), b = bt(r), x = f == null && b != null && !w ? b : void 0, p = f == null && !w && x != null ? l : void 0, y = g !== "loading" && Le(i, c), _ = Ke({
2390
2390
  variant: "dark",
2391
2391
  accentColor: m,
2392
2392
  status: g,
@@ -2401,7 +2401,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2401
2401
  accentHex: _.accentHex,
2402
2402
  side: "sender",
2403
2403
  visible: !y && (v === "single" || v === "end"),
2404
- children: /* @__PURE__ */ f(
2404
+ children: /* @__PURE__ */ h(
2405
2405
  Te,
2406
2406
  {
2407
2407
  variant: "dark",
@@ -2436,7 +2436,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2436
2436
  descriptionLines: a,
2437
2437
  url: r,
2438
2438
  appIcon: u,
2439
- cta: h,
2439
+ cta: f,
2440
2440
  isLoading: _.isLoading
2441
2441
  }
2442
2442
  )
@@ -2483,8 +2483,8 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2483
2483
  children: d,
2484
2484
  "data-testid": u
2485
2485
  }) => {
2486
- const h = t != null && t !== "", m = o ?? qr[Xr(e)][a];
2487
- return /* @__PURE__ */ f(
2486
+ const f = t != null && t !== "", m = o ?? qr[Xr(e)][a];
2487
+ return /* @__PURE__ */ h(
2488
2488
  "div",
2489
2489
  {
2490
2490
  "data-testid": u,
@@ -2510,7 +2510,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2510
2510
  // Tailwind always emits in that order inside its `padding`
2511
2511
  // plugin — unlike the same-utility `rounded-*` clash above,
2512
2512
  // there is no ambiguity to resolve.
2513
- h && "pb-0",
2513
+ f && "pb-0",
2514
2514
  m,
2515
2515
  Yr[e],
2516
2516
  Wr[e],
@@ -2520,7 +2520,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2520
2520
  ),
2521
2521
  children: [
2522
2522
  d,
2523
- h ? /* @__PURE__ */ n(
2523
+ f ? /* @__PURE__ */ n(
2524
2524
  "p",
2525
2525
  {
2526
2526
  className: k(
@@ -2570,7 +2570,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2570
2570
  mimeType: t,
2571
2571
  filename: s,
2572
2572
  items: a
2573
- }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Jr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
2573
+ }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: s }] : [], Jr = ({ item: e, preload: t, trailingAction: s }) => /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
2574
2574
  /* @__PURE__ */ n(
2575
2575
  "audio",
2576
2576
  {
@@ -2593,7 +2593,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2593
2593
  preload: c,
2594
2594
  onDismiss: d
2595
2595
  }) => {
2596
- const u = Oe(e), h = e === "composer" && !!d, m = Zr({ src: t, mimeType: s, filename: a, items: r });
2596
+ const u = Oe(e), f = e === "composer" && !!d, m = Zr({ src: t, mimeType: s, filename: a, items: r });
2597
2597
  if (m.length === 0)
2598
2598
  return null;
2599
2599
  const g = c ?? (m.length > 1 ? "none" : "metadata");
@@ -2612,7 +2612,7 @@ const Ur = "flex size-6 items-center justify-center rounded-full bg-[#121110] te
2612
2612
  trailingAction: (
2613
2613
  // Composer only supports a single attachment, so the
2614
2614
  // dismiss control sits on the only player.
2615
- h && v === 0 ? /* @__PURE__ */ n(De, { onClick: d, variant: "inline" }) : void 0
2615
+ f && v === 0 ? /* @__PURE__ */ n(De, { onClick: d, variant: "inline" }) : void 0
2616
2616
  )
2617
2617
  },
2618
2618
  `${l.src}-${v}`
@@ -2686,7 +2686,7 @@ const oi = {
2686
2686
  activateLabel: o,
2687
2687
  trailingAction: c
2688
2688
  }) => {
2689
- const d = s ?? t ?? "File", u = ii(a, t, r), h = /* @__PURE__ */ n(
2689
+ const d = s ?? t ?? "File", u = ii(a, t, r), f = /* @__PURE__ */ n(
2690
2690
  "div",
2691
2691
  {
2692
2692
  className: k(
@@ -2699,7 +2699,7 @@ const oi = {
2699
2699
  weight: "regular"
2700
2700
  })
2701
2701
  }
2702
- ), m = /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-1 flex-col text-left", children: [
2702
+ ), m = /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-1 flex-col text-left", children: [
2703
2703
  /* @__PURE__ */ n("p", { className: "truncate font-medium leading-snug", children: d }),
2704
2704
  u ? /* @__PURE__ */ n(
2705
2705
  "p",
@@ -2711,7 +2711,7 @@ const oi = {
2711
2711
  children: u
2712
2712
  }
2713
2713
  ) : null
2714
- ] }), g = i ? /* @__PURE__ */ f(
2714
+ ] }), g = i ? /* @__PURE__ */ h(
2715
2715
  "button",
2716
2716
  {
2717
2717
  type: "button",
@@ -2722,15 +2722,15 @@ const oi = {
2722
2722
  e === "dark" ? "hover:bg-white/[0.04]" : "hover:bg-black/[0.04]"
2723
2723
  ),
2724
2724
  children: [
2725
- h,
2725
+ f,
2726
2726
  m
2727
2727
  ]
2728
2728
  }
2729
- ) : /* @__PURE__ */ f(Q, { children: [
2730
- h,
2729
+ ) : /* @__PURE__ */ h(Q, { children: [
2730
+ f,
2731
2731
  m
2732
2732
  ] });
2733
- return /* @__PURE__ */ f("div", { className: "flex items-center gap-3 px-3 py-2", children: [
2733
+ return /* @__PURE__ */ h("div", { className: "flex items-center gap-3 px-3 py-2", children: [
2734
2734
  g,
2735
2735
  c ? /* @__PURE__ */ n("div", { className: "shrink-0", children: c }) : null
2736
2736
  ] });
@@ -2788,9 +2788,9 @@ const di = ({
2788
2788
  text: c,
2789
2789
  groupPosition: d,
2790
2790
  onClick: u,
2791
- onDismiss: h
2791
+ onDismiss: f
2792
2792
  }) => {
2793
- const m = Oe(e), g = e === "composer" && !!h, l = di({
2793
+ const m = Oe(e), g = e === "composer" && !!f, l = di({
2794
2794
  src: t,
2795
2795
  filename: s,
2796
2796
  fileSize: a,
@@ -2831,7 +2831,7 @@ const di = ({
2831
2831
  item: b,
2832
2832
  index: x,
2833
2833
  onActivate: v,
2834
- trailingAction: g && x === 0 ? /* @__PURE__ */ n(De, { onClick: h, variant: "inline" }) : w
2834
+ trailingAction: g && x === 0 ? /* @__PURE__ */ n(De, { onClick: f, variant: "inline" }) : w
2835
2835
  },
2836
2836
  `${b.src}-${x}`
2837
2837
  )) })
@@ -2846,7 +2846,7 @@ const di = ({
2846
2846
  onNext: t,
2847
2847
  prevLabel: s = "Previous",
2848
2848
  nextLabel: a = "Next"
2849
- }) => /* @__PURE__ */ f(Q, { children: [
2849
+ }) => /* @__PURE__ */ h(Q, { children: [
2850
2850
  /* @__PURE__ */ n(
2851
2851
  "button",
2852
2852
  {
@@ -2884,7 +2884,7 @@ const di = ({
2884
2884
  }));
2885
2885
  },
2886
2886
  [c, e, t, o]
2887
- ), h = r ?? s !== "pill", g = { className: k(
2887
+ ), f = r ?? s !== "pill", g = { className: k(
2888
2888
  s === "pill" ? "size-4" : "size-5",
2889
2889
  "shrink-0"
2890
2890
  ), weight: "bold" };
@@ -2928,13 +2928,13 @@ const di = ({
2928
2928
  className: Gn,
2929
2929
  children: c ? /* @__PURE__ */ n(xe, { size: 20, weight: "bold", "aria-hidden": !0 }) : /* @__PURE__ */ n(Ie, { size: 20, weight: "bold", "aria-hidden": !0 })
2930
2930
  }
2931
- ) : /* @__PURE__ */ f(
2931
+ ) : /* @__PURE__ */ h(
2932
2932
  "button",
2933
2933
  {
2934
2934
  type: "button",
2935
2935
  onClick: u,
2936
2936
  disabled: c,
2937
- "aria-label": h ? a : void 0,
2937
+ "aria-label": f ? a : void 0,
2938
2938
  className: k(
2939
2939
  "mt-3 inline-flex h-10 w-full items-center justify-center gap-2 rounded-full px-4 text-sm font-medium leading-none transition-colors disabled:opacity-70",
2940
2940
  i === "dark" ? "bg-[#121110] text-white hover:bg-[#2a2928]" : "bg-white text-[#121110] hover:bg-white/90"
@@ -2948,7 +2948,7 @@ const di = ({
2948
2948
  "aria-hidden": !0
2949
2949
  }
2950
2950
  ) : /* @__PURE__ */ n(Ie, { ...g, "aria-hidden": !0 }),
2951
- h ? null : a
2951
+ f ? null : a
2952
2952
  ]
2953
2953
  }
2954
2954
  );
@@ -2972,8 +2972,8 @@ const di = ({
2972
2972
  if (!s || e <= 1) return;
2973
2973
  const d = (u) => {
2974
2974
  if (u.key !== "ArrowLeft" && u.key !== "ArrowRight") return;
2975
- const h = document.activeElement;
2976
- h && (h.tagName === "VIDEO" || h.tagName === "AUDIO") || (u.preventDefault(), u.key === "ArrowLeft" ? o() : c());
2975
+ const f = document.activeElement;
2976
+ f && (f.tagName === "VIDEO" || f.tagName === "AUDIO") || (u.preventDefault(), u.key === "ArrowLeft" ? o() : c());
2977
2977
  };
2978
2978
  return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
2979
2979
  }, [s, e, o, c]), { index: r, prev: o, next: c };
@@ -3032,7 +3032,7 @@ const di = ({
3032
3032
  // `jsx-a11y` rules below don't model `<dialog>` as interactive, so
3033
3033
  // we silence them locally with the rationale captured here.
3034
3034
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
3035
- /* @__PURE__ */ f(
3035
+ /* @__PURE__ */ h(
3036
3036
  "dialog",
3037
3037
  {
3038
3038
  ref: c,
@@ -3046,9 +3046,9 @@ const di = ({
3046
3046
  m.target === c.current && t();
3047
3047
  },
3048
3048
  children: [
3049
- /* @__PURE__ */ f("div", { className: "pointer-events-none absolute inset-x-3 top-3 z-[1] flex items-center justify-between gap-3", children: [
3049
+ /* @__PURE__ */ h("div", { className: "pointer-events-none absolute inset-x-3 top-3 z-[1] flex items-center justify-between gap-3", children: [
3050
3050
  a ? /* @__PURE__ */ n("span", { className: "pointer-events-auto inline-flex items-center rounded-full bg-white/[0.12] px-3 py-1.5 text-[13px] font-medium leading-none tabular-nums text-white", children: a }) : null,
3051
- /* @__PURE__ */ f("div", { className: "pointer-events-auto ml-auto inline-flex items-center gap-2", children: [
3051
+ /* @__PURE__ */ h("div", { className: "pointer-events-auto ml-auto inline-flex items-center gap-2", children: [
3052
3052
  r,
3053
3053
  /* @__PURE__ */ n(
3054
3054
  "button",
@@ -3081,7 +3081,7 @@ const di = ({
3081
3081
  () => (c == null ? void 0 : c.filename) ?? (c ? ie(c.src) : "image"),
3082
3082
  [c]
3083
3083
  );
3084
- return c ? /* @__PURE__ */ f(
3084
+ return c ? /* @__PURE__ */ h(
3085
3085
  St,
3086
3086
  {
3087
3087
  open: e,
@@ -3141,33 +3141,36 @@ const di = ({
3141
3141
  }) => {
3142
3142
  const i = e.length;
3143
3143
  if (i === 0) return null;
3144
- const o = e.slice(0, Math.min(i, s)), c = i - o.length, d = (h, m, g) => {
3145
- var v;
3146
- const l = k(
3144
+ const o = e.slice(0, Math.min(i, s)), c = i - o.length, d = c > 0 ? /* @__PURE__ */ h("div", { className: "absolute inset-0 flex items-center justify-center bg-black/55 text-2xl font-semibold text-white", children: [
3145
+ "+",
3146
+ c
3147
+ ] }) : null, u = (m, g, l) => {
3148
+ var w;
3149
+ const v = k(
3147
3150
  pi,
3148
3151
  "h-full w-full",
3149
- (v = bi[o.length]) == null ? void 0 : v[m]
3152
+ (w = bi[o.length]) == null ? void 0 : w[g]
3150
3153
  );
3151
- return t ? /* @__PURE__ */ f(
3154
+ return t ? /* @__PURE__ */ h(
3152
3155
  "button",
3153
3156
  {
3154
3157
  type: "button",
3155
- onClick: () => t(m),
3156
- "aria-label": h.ariaLabel ?? `Open media ${m + 1}`,
3157
- className: k(l, "cursor-zoom-in"),
3158
+ onClick: () => t(g),
3159
+ "aria-label": m.ariaLabel ?? `Open media ${g + 1}`,
3160
+ className: k(v, "cursor-zoom-in"),
3158
3161
  children: [
3159
- h.content,
3160
- g
3162
+ m.content,
3163
+ l
3161
3164
  ]
3162
3165
  },
3163
- m
3164
- ) : /* @__PURE__ */ f("div", { className: l, children: [
3165
- h.content,
3166
3166
  g
3167
- ] }, m);
3167
+ ) : /* @__PURE__ */ h("div", { className: v, children: [
3168
+ m.content,
3169
+ l
3170
+ ] }, g);
3168
3171
  };
3169
- let u;
3170
- return a && (u = {
3172
+ let f;
3173
+ return a && (f = {
3171
3174
  aspectRatio: a,
3172
3175
  // Hundredths keep the emitted declaration readable in devtools;
3173
3176
  // the rounding error is well under a device pixel.
@@ -3181,8 +3184,8 @@ const di = ({
3181
3184
  a ? xi : "aspect-square w-full",
3182
3185
  r
3183
3186
  ),
3184
- style: u,
3185
- children: d(o[0], 0)
3187
+ style: f,
3188
+ children: u(o[0], 0, d)
3186
3189
  }
3187
3190
  ) : o.length === 2 ? /* @__PURE__ */ n(
3188
3191
  "div",
@@ -3191,9 +3194,15 @@ const di = ({
3191
3194
  "grid aspect-[16/9] w-full grid-cols-2 gap-0.5",
3192
3195
  r
3193
3196
  ),
3194
- children: o.map((h, m) => d(h, m))
3197
+ children: o.map(
3198
+ (m, g) => u(
3199
+ m,
3200
+ g,
3201
+ g === o.length - 1 ? d : null
3202
+ )
3203
+ )
3195
3204
  }
3196
- ) : o.length === 3 ? /* @__PURE__ */ f(
3205
+ ) : o.length === 3 ? /* @__PURE__ */ h(
3197
3206
  "div",
3198
3207
  {
3199
3208
  className: k(
@@ -3201,9 +3210,9 @@ const di = ({
3201
3210
  r
3202
3211
  ),
3203
3212
  children: [
3204
- /* @__PURE__ */ n("div", { className: "row-span-2", children: d(o[0], 0) }),
3205
- d(o[1], 1),
3206
- d(o[2], 2)
3213
+ /* @__PURE__ */ n("div", { className: "row-span-2", children: u(o[0], 0) }),
3214
+ u(o[1], 1),
3215
+ u(o[2], 2, d)
3207
3216
  ]
3208
3217
  }
3209
3218
  ) : /* @__PURE__ */ n(
@@ -3220,15 +3229,12 @@ const di = ({
3220
3229
  "grid aspect-[379/286] w-full grid-cols-2 grid-rows-2 gap-0.5",
3221
3230
  r
3222
3231
  ),
3223
- children: o.map((h, m) => {
3224
- const g = c > 0 && m === o.length - 1;
3225
- return d(
3226
- h,
3232
+ children: o.map((m, g) => {
3233
+ const l = c > 0 && g === o.length - 1;
3234
+ return u(
3227
3235
  m,
3228
- g ? /* @__PURE__ */ f("div", { className: "absolute inset-0 flex items-center justify-center bg-black/55 text-2xl font-semibold text-white", children: [
3229
- "+",
3230
- c
3231
- ] }) : null
3236
+ g,
3237
+ l ? d : null
3232
3238
  );
3233
3239
  })
3234
3240
  }
@@ -3279,7 +3285,7 @@ const di = ({
3279
3285
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
3280
3286
  })), Ni = ({ src: e, alt: t, filename: s, loading: a = "lazy", onClick: r, onDismiss: i }) => {
3281
3287
  const { viewerOpen: o, viewerIndex: c, handleActivate: d, closeViewer: u } = Pe(r);
3282
- return /* @__PURE__ */ f("div", { className: "relative w-fit", children: [
3288
+ return /* @__PURE__ */ h("div", { className: "relative w-fit", children: [
3283
3289
  /* @__PURE__ */ n(
3284
3290
  "button",
3285
3291
  {
@@ -3317,7 +3323,7 @@ const di = ({
3317
3323
  if (!d || d.naturalWidth <= 0 || d.naturalHeight <= 0 || t === void 0) return;
3318
3324
  const u = d.naturalWidth / d.naturalHeight;
3319
3325
  a(
3320
- (h) => h && h.src === t && h.ratio === u ? h : { src: t, ratio: u }
3326
+ (f) => f && f.src === t && f.ratio === u ? f : { src: t, ratio: u }
3321
3327
  );
3322
3328
  },
3323
3329
  [t]
@@ -3341,7 +3347,7 @@ const di = ({
3341
3347
  loading: c = "lazy",
3342
3348
  onClick: d
3343
3349
  }) => {
3344
- const u = yi({ src: t, alt: s, items: r }), h = Oe(e), { viewerOpen: m, viewerIndex: g, handleActivate: l, closeViewer: v } = Pe(d), w = u.length === 1, b = Ci(w ? u[0] : void 0);
3350
+ const u = yi({ src: t, alt: s, items: r }), f = Oe(e), { viewerOpen: m, viewerIndex: g, handleActivate: l, closeViewer: v } = Pe(d), w = u.length === 1, b = Ci(w ? u[0] : void 0);
3345
3351
  if (u.length === 0)
3346
3352
  return null;
3347
3353
  const x = u.map(
@@ -3354,10 +3360,10 @@ const di = ({
3354
3360
  onLoad: w ? b.onLoad : void 0
3355
3361
  })
3356
3362
  );
3357
- return /* @__PURE__ */ f(
3363
+ return /* @__PURE__ */ h(
3358
3364
  Me,
3359
3365
  {
3360
- variant: h,
3366
+ variant: f,
3361
3367
  text: i,
3362
3368
  groupPosition: o,
3363
3369
  bordered: !1,
@@ -3407,7 +3413,7 @@ const di = ({
3407
3413
  () => c ? Ri(c.src) : void 0,
3408
3414
  [c]
3409
3415
  );
3410
- return !c || !u ? null : /* @__PURE__ */ f(
3416
+ return !c || !u ? null : /* @__PURE__ */ h(
3411
3417
  St,
3412
3418
  {
3413
3419
  open: e,
@@ -3480,17 +3486,17 @@ const di = ({
3480
3486
  onClick: d,
3481
3487
  onDismiss: u
3482
3488
  }) => {
3483
- const h = Oe(e), m = Li({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: g, viewerIndex: l, handleActivate: v, closeViewer: w } = Pe(d), b = e === "composer" && !!u;
3489
+ const f = Oe(e), m = Li({ src: t, filename: s, fileSize: a, title: r, items: i }), { viewerOpen: g, viewerIndex: l, handleActivate: v, closeViewer: w } = Pe(d), b = e === "composer" && !!u;
3484
3490
  if (m.length === 0)
3485
3491
  return null;
3486
3492
  const x = m.map((p) => ({
3487
3493
  src: p.src,
3488
3494
  filename: p.filename ?? ie(p.src)
3489
3495
  }));
3490
- return /* @__PURE__ */ f(
3496
+ return /* @__PURE__ */ h(
3491
3497
  Me,
3492
3498
  {
3493
- variant: h,
3499
+ variant: f,
3494
3500
  text: o,
3495
3501
  groupPosition: c,
3496
3502
  "data-testid": "pdf-attachment",
@@ -3503,13 +3509,13 @@ const di = ({
3503
3509
  filename: _,
3504
3510
  variant: "inline",
3505
3511
  label: `Download ${_}`,
3506
- tone: h
3512
+ tone: f
3507
3513
  }
3508
3514
  );
3509
3515
  return /* @__PURE__ */ n(
3510
3516
  Mi,
3511
3517
  {
3512
- variant: h,
3518
+ variant: f,
3513
3519
  item: p,
3514
3520
  index: y,
3515
3521
  onActivate: v,
@@ -3548,7 +3554,7 @@ const di = ({
3548
3554
  () => (c == null ? void 0 : c.filename) ?? (c ? ie(c.src) : "video"),
3549
3555
  [c]
3550
3556
  );
3551
- return c ? /* @__PURE__ */ f(
3557
+ return c ? /* @__PURE__ */ h(
3552
3558
  St,
3553
3559
  {
3554
3560
  open: e,
@@ -3587,7 +3593,7 @@ const di = ({
3587
3593
  }, zi = () => /* @__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(ot, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), Jn = ({
3588
3594
  item: e,
3589
3595
  index: t
3590
- }) => /* @__PURE__ */ f("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
3596
+ }) => /* @__PURE__ */ h("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
3591
3597
  e.poster ? /* @__PURE__ */ n(
3592
3598
  "img",
3593
3599
  {
@@ -3623,8 +3629,8 @@ const di = ({
3623
3629
  preload: s.preload,
3624
3630
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
3625
3631
  })), Ui = ({ src: e, poster: t, mimeType: s, filename: a, preload: r, onClick: i, onDismiss: o }) => {
3626
- const { viewerOpen: c, viewerIndex: d, handleActivate: u, closeViewer: h } = Pe(i);
3627
- return /* @__PURE__ */ f("div", { className: "relative w-fit", children: [
3632
+ const { viewerOpen: c, viewerIndex: d, handleActivate: u, closeViewer: f } = Pe(i);
3633
+ return /* @__PURE__ */ h("div", { className: "relative w-fit", children: [
3628
3634
  /* @__PURE__ */ n(
3629
3635
  "button",
3630
3636
  {
@@ -3642,7 +3648,7 @@ const di = ({
3642
3648
  open: c,
3643
3649
  items: Qn([{ src: e, poster: t, mimeType: s, preload: r }], a),
3644
3650
  initialIndex: d,
3645
- onClose: h
3651
+ onClose: f
3646
3652
  }
3647
3653
  )
3648
3654
  ] });
@@ -3658,13 +3664,13 @@ const di = ({
3658
3664
  preload: d,
3659
3665
  onClick: u
3660
3666
  }) => {
3661
- const h = $i({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Oe(e), { viewerOpen: g, viewerIndex: l, handleActivate: v, closeViewer: w } = Pe(u);
3662
- if (h.length === 0)
3667
+ const f = $i({ src: t, poster: s, mimeType: a, preload: d, items: i }), m = Oe(e), { viewerOpen: g, viewerIndex: l, handleActivate: v, closeViewer: w } = Pe(u);
3668
+ if (f.length === 0)
3663
3669
  return null;
3664
- const b = h.map(
3665
- (x, p) => Bi(x, p, h.length)
3670
+ const b = f.map(
3671
+ (x, p) => Bi(x, p, f.length)
3666
3672
  );
3667
- return /* @__PURE__ */ f(
3673
+ return /* @__PURE__ */ h(
3668
3674
  Me,
3669
3675
  {
3670
3676
  variant: m,
@@ -3677,7 +3683,7 @@ const di = ({
3677
3683
  Zn,
3678
3684
  {
3679
3685
  open: g,
3680
- items: Qn(h, r),
3686
+ items: Qn(f, r),
3681
3687
  initialIndex: l,
3682
3688
  onClose: w
3683
3689
  }
@@ -3857,7 +3863,7 @@ const eo = ({
3857
3863
  const r = ts(s.attachments);
3858
3864
  if (r.length === 0) return null;
3859
3865
  const i = Ki(r), o = (b = s.text) == null ? void 0 : b.trim(), c = r.find((x) => x.type === "link"), d = (c == null ? void 0 : c.type) === "link" ? ln(c.attachments[0] ?? {}).url : void 0, u = o && Yi(o, d) ? void 0 : o;
3860
- let h = 0;
3866
+ let f = 0;
3861
3867
  const m = [], g = u ? "middle" : e, l = e === "single" || e === "end", v = (x, p, y) => {
3862
3868
  const _ = t ? lt.Sent : lt.Received;
3863
3869
  m.push(
@@ -3872,11 +3878,11 @@ const eo = ({
3872
3878
  );
3873
3879
  }, w = (x, p) => {
3874
3880
  const y = Xi(
3875
- h,
3881
+ f,
3876
3882
  i,
3877
3883
  e
3878
3884
  );
3879
- h += 1, m.push(
3885
+ f += 1, m.push(
3880
3886
  /* @__PURE__ */ n(
3881
3887
  Qi,
3882
3888
  {
@@ -3901,8 +3907,8 @@ const eo = ({
3901
3907
  return;
3902
3908
  }
3903
3909
  w(x, `media-${p}`);
3904
- }), /* @__PURE__ */ f("div", { className: "str-chat__message-bubble-wrapper", children: [
3905
- /* @__PURE__ */ f(
3910
+ }), /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper", children: [
3911
+ /* @__PURE__ */ h(
3906
3912
  "div",
3907
3913
  {
3908
3914
  className: "str-chat__message-bubble",
@@ -3919,7 +3925,7 @@ const eo = ({
3919
3925
  ]
3920
3926
  }
3921
3927
  ),
3922
- u ? /* @__PURE__ */ f(
3928
+ u ? /* @__PURE__ */ h(
3923
3929
  "div",
3924
3930
  {
3925
3931
  className: k("str-chat__message-bubble", {
@@ -3945,7 +3951,7 @@ const eo = ({
3945
3951
  handleAction: c,
3946
3952
  handleOpenThread: d,
3947
3953
  handleRetry: u,
3948
- highlighted: h,
3954
+ highlighted: f,
3949
3955
  isMessageAIGenerated: m,
3950
3956
  isMyMessage: g,
3951
3957
  message: l,
@@ -4001,7 +4007,7 @@ const eo = ({
4001
4007
  l.text ? "str-chat__message--has-text" : "has-no-text",
4002
4008
  {
4003
4009
  "str-chat__message--has-attachment": N,
4004
- "str-chat__message--highlighted": h,
4010
+ "str-chat__message--highlighted": f,
4005
4011
  "str-chat__message--pinned pinned-message": l.pinned,
4006
4012
  "str-chat__message--with-reactions": L,
4007
4013
  "str-chat__message-send-can-be-retried": (l == null ? void 0 : l.status) === "failed" && ((Ot = l == null ? void 0 : l.error) == null ? void 0 : Ot.status) !== 403,
@@ -4024,7 +4030,7 @@ const eo = ({
4024
4030
  detail: (jt = l.metadata) == null ? void 0 : jt.attachment_detail,
4025
4031
  paymentStatus: (Ht = l.metadata) == null ? void 0 : Ht.payment_status,
4026
4032
  onFetchSource: T ? () => T(l, _) : void 0
4027
- }, Mt = /* @__PURE__ */ f(
4033
+ }, Mt = /* @__PURE__ */ h(
4028
4034
  "div",
4029
4035
  {
4030
4036
  className: k("str-chat__message-bubble", {
@@ -4036,7 +4042,7 @@ const eo = ({
4036
4042
  ]
4037
4043
  }
4038
4044
  );
4039
- return /* @__PURE__ */ f(Q, { children: [
4045
+ return /* @__PURE__ */ h(Q, { children: [
4040
4046
  s && /* @__PURE__ */ n(
4041
4047
  E,
4042
4048
  {
@@ -4051,7 +4057,7 @@ const eo = ({
4051
4057
  open: $
4052
4058
  }
4053
4059
  ),
4054
- /* @__PURE__ */ f(
4060
+ /* @__PURE__ */ h(
4055
4061
  "div",
4056
4062
  {
4057
4063
  className: ls,
@@ -4089,10 +4095,10 @@ const eo = ({
4089
4095
  marginInlineEnd: 0,
4090
4096
  marginInlineStart: 0
4091
4097
  },
4092
- children: Tt ? /* @__PURE__ */ f("div", { className: "str-chat__message-bubble-wrapper message-tip-wrapper", children: [
4098
+ children: Tt ? /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper message-tip-wrapper", children: [
4093
4099
  /* @__PURE__ */ n(yr, { message: l }),
4094
4100
  ((Vt = l.text) == null ? void 0 : Vt.trim()) && Mt
4095
- ] }) : fr(l) ? /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
4101
+ ] }) : fr(l) ? /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
4096
4102
  ee && S && /* @__PURE__ */ n(S, {}),
4097
4103
  ee ? /* @__PURE__ */ n(Be, { ...Rt, isMine: !0 }) : /* @__PURE__ */ n(
4098
4104
  Be,
@@ -4104,8 +4110,8 @@ const eo = ({
4104
4110
  }
4105
4111
  ),
4106
4112
  !ee && S && /* @__PURE__ */ n(S, {})
4107
- ] }) }) : gr(l) ? /* @__PURE__ */ f("div", { className: "str-chat__message-bubble-wrapper message-locked-attachment-wrapper", children: [
4108
- /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
4113
+ ] }) }) : gr(l) ? /* @__PURE__ */ h("div", { className: "str-chat__message-bubble-wrapper message-locked-attachment-wrapper", children: [
4114
+ /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
4109
4115
  ee && S && /* @__PURE__ */ n(S, {}),
4110
4116
  ee ? /* @__PURE__ */ n(
4111
4117
  Be,
@@ -4142,7 +4148,7 @@ const eo = ({
4142
4148
  },
4143
4149
  renderText: v
4144
4150
  }
4145
- ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ f(
4151
+ ) : /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ h(
4146
4152
  "div",
4147
4153
  {
4148
4154
  className: k("str-chat__message-bubble", {
@@ -4408,19 +4414,19 @@ const eo = ({
4408
4414
  // than through this React tree, bypassing the two wrappers below. The
4409
4415
  // `[&>:not(...)]:p-2` variant restores the container's old inset for any
4410
4416
  // such foreign direct child, without re-adding it to our own wrappers.
4411
- /* @__PURE__ */ f(
4417
+ /* @__PURE__ */ h(
4412
4418
  "div",
4413
4419
  {
4414
4420
  ref: o,
4415
4421
  className: "central-container flex flex-col min-w-0 w-full max-h-[calc(var(--messaging-surface-height,100dvh)*0.5)] overflow-y-auto overscroll-contain bg-white rounded-[1.5rem] shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_1px_2px_0_rgba(0,0,0,0.04),0_0_0_1px_rgba(0,0,0,0.04)] [&>:not(.messaging-composer-previews):not(.messaging-composer-row)]:p-2",
4416
4422
  "data-dd-privacy": "mask",
4417
4423
  children: [
4418
- /* @__PURE__ */ f("div", { className: "messaging-composer-previews empty:hidden flex flex-col gap-2 px-2 pt-2", children: [
4424
+ /* @__PURE__ */ h("div", { className: "messaging-composer-previews empty:hidden flex flex-col gap-2 px-2 pt-2", children: [
4419
4425
  /* @__PURE__ */ n(Us, {}),
4420
4426
  /* @__PURE__ */ n(lo, {}),
4421
4427
  /* @__PURE__ */ n(i, {})
4422
4428
  ] }),
4423
- /* @__PURE__ */ f("div", { className: "messaging-composer-row flex items-start", children: [
4429
+ /* @__PURE__ */ h("div", { className: "messaging-composer-row flex items-start", children: [
4424
4430
  /* @__PURE__ */ n(
4425
4431
  js,
4426
4432
  {
@@ -4449,7 +4455,7 @@ const eo = ({
4449
4455
  ]
4450
4456
  }
4451
4457
  );
4452
- }, un = () => /* @__PURE__ */ f("div", { className: "messaging-composer-backdrop", "aria-hidden": "true", children: [
4458
+ }, un = () => /* @__PURE__ */ h("div", { className: "messaging-composer-backdrop", "aria-hidden": "true", children: [
4453
4459
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4454
4460
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
4455
4461
  /* @__PURE__ */ n("div", { className: "messaging-composer-backdrop-blur" }),
@@ -4464,8 +4470,8 @@ const eo = ({
4464
4470
  disabledReason: r,
4465
4471
  composerInput: i
4466
4472
  }) => {
4467
- var h;
4468
- const { channel: o } = _e(), c = ((h = o == null ? void 0 : o.data) == null ? void 0 : h.frozen) === !0, d = !!i, u = F.useRef(null);
4473
+ var f;
4474
+ const { channel: o } = _e(), c = ((f = o == null ? void 0 : o.data) == null ? void 0 : f.frozen) === !0, d = !!i, u = F.useRef(null);
4469
4475
  return F.useEffect(() => {
4470
4476
  if (!d)
4471
4477
  return;
@@ -4490,35 +4496,35 @@ const eo = ({
4490
4496
  return w.observe(m), () => {
4491
4497
  w.disconnect(), g.style.removeProperty("--messaging-composer-height");
4492
4498
  };
4493
- }, [d]), a ? d ? /* @__PURE__ */ f(
4499
+ }, [d]), a ? d ? /* @__PURE__ */ h(
4494
4500
  "div",
4495
4501
  {
4496
4502
  ref: u,
4497
4503
  className: "messaging-composer-chrome messaging-composer-chrome--floating",
4498
4504
  children: [
4499
4505
  /* @__PURE__ */ n(un, {}),
4500
- /* @__PURE__ */ f("div", { className: "relative z-10 flex flex-col", children: [
4506
+ /* @__PURE__ */ h("div", { className: "relative z-10 flex flex-col", children: [
4501
4507
  t == null ? void 0 : t(),
4502
4508
  /* @__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 }),
4503
4509
  s == null ? void 0 : s()
4504
4510
  ] })
4505
4511
  ]
4506
4512
  }
4507
- ) : /* @__PURE__ */ f(Q, { children: [
4513
+ ) : /* @__PURE__ */ h(Q, { children: [
4508
4514
  t == null ? void 0 : t(),
4509
4515
  /* @__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 }),
4510
4516
  s == null ? void 0 : s()
4511
- ] }) : d ? /* @__PURE__ */ f(
4517
+ ] }) : d ? /* @__PURE__ */ h(
4512
4518
  "div",
4513
4519
  {
4514
4520
  ref: u,
4515
4521
  className: "messaging-composer-chrome messaging-composer-chrome--floating",
4516
4522
  children: [
4517
4523
  /* @__PURE__ */ n(un, {}),
4518
- /* @__PURE__ */ f("div", { className: "relative z-10 flex min-h-0 flex-col", children: [
4524
+ /* @__PURE__ */ h("div", { className: "relative z-10 flex min-h-0 flex-col", children: [
4519
4525
  t == null ? void 0 : t(),
4520
- /* @__PURE__ */ f("div", { className: "flex min-h-0 flex-col gap-4 p-3 pb-5 md:p-5", children: [
4521
- /* @__PURE__ */ f(
4526
+ /* @__PURE__ */ h("div", { className: "flex min-h-0 flex-col gap-4 p-3 pb-5 md:p-5", children: [
4527
+ /* @__PURE__ */ h(
4522
4528
  "div",
4523
4529
  {
4524
4530
  inert: c ? "" : void 0,
@@ -4535,9 +4541,9 @@ const eo = ({
4535
4541
  ] })
4536
4542
  ]
4537
4543
  }
4538
- ) : /* @__PURE__ */ f("div", { className: "flex min-h-0 flex-col gap-4 p-4", children: [
4544
+ ) : /* @__PURE__ */ h("div", { className: "flex min-h-0 flex-col gap-4 p-4", children: [
4539
4545
  t == null ? void 0 : t(),
4540
- /* @__PURE__ */ f(
4546
+ /* @__PURE__ */ h(
4541
4547
  "div",
4542
4548
  {
4543
4549
  inert: c ? "" : void 0,
@@ -4587,7 +4593,7 @@ const eo = ({
4587
4593
  if (t === -1)
4588
4594
  return e;
4589
4595
  const s = t + nt.length;
4590
- return /* @__PURE__ */ f(Q, { children: [
4596
+ return /* @__PURE__ */ h(Q, { children: [
4591
4597
  e.slice(0, t),
4592
4598
  /* @__PURE__ */ n(
4593
4599
  "a",
@@ -4608,8 +4614,8 @@ const eo = ({
4608
4614
  );
4609
4615
  if ((s == null ? void 0 : s.kind) === "dm-agent") {
4610
4616
  const i = ((a = e.message.text) == null ? void 0 : a.trim()) || mo[s.type];
4611
- return /* @__PURE__ */ f("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4612
- /* @__PURE__ */ f(
4617
+ return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4618
+ /* @__PURE__ */ h(
4613
4619
  "div",
4614
4620
  {
4615
4621
  className: "mes-dm-agent-system-message mx-auto mb-2 inline-flex w-fit max-w-[min(100%,480px)] items-center justify-center gap-[10px] rounded-[12px] border border-[rgba(0,0,0,0.08)] p-3 text-[rgba(0,0,0,0.55)]",
@@ -4634,8 +4640,8 @@ const eo = ({
4634
4640
  }
4635
4641
  if ((s == null ? void 0 : s.kind) === "age-safety") {
4636
4642
  const i = ((r = e.message.text) == null ? void 0 : r.trim()) || fo[s.type];
4637
- return /* @__PURE__ */ f("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4638
- /* @__PURE__ */ f(
4643
+ return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4644
+ /* @__PURE__ */ h(
4639
4645
  "div",
4640
4646
  {
4641
4647
  className: "mes-age-safety-system-message box-border mx-auto mb-2 flex w-full max-w-[329px] items-start justify-center gap-3 rounded-[12px] border border-[var(--border-secondary,rgba(0,0,0,0.08))] bg-[var(--bg-warning-subtle,#fef3c6)] px-2 py-4 pl-5 text-[color:var(--text-warning-on-warning,#894b00)]",
@@ -4659,8 +4665,8 @@ const eo = ({
4659
4665
  !t && /* @__PURE__ */ n(Ze, { message: e.message })
4660
4666
  ] });
4661
4667
  }
4662
- return /* @__PURE__ */ f("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4663
- /* @__PURE__ */ f("div", { className: "str-chat__message--system__text", children: [
4668
+ return /* @__PURE__ */ h("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
4669
+ /* @__PURE__ */ h("div", { className: "str-chat__message--system__text", children: [
4664
4670
  /* @__PURE__ */ n("div", { className: "str-chat__message--system__line" }),
4665
4671
  /* @__PURE__ */ n("p", { children: e.message.text }),
4666
4672
  /* @__PURE__ */ n("div", { className: "str-chat__message--system__line" })
@@ -4703,12 +4709,12 @@ const eo = ({
4703
4709
  var p;
4704
4710
  return (x == null ? void 0 : x.id) !== ((p = r.user) == null ? void 0 : p.id) && !b;
4705
4711
  }
4706
- ), h = e ? Object.values(i).filter(
4712
+ ), f = e ? Object.values(i).filter(
4707
4713
  ({ parent_id: b, user: x }) => {
4708
4714
  var p;
4709
4715
  return (x == null ? void 0 : x.id) !== ((p = r.user) == null ? void 0 : p.id) && b === (a == null ? void 0 : a.id);
4710
4716
  }
4711
- ) : [], m = e ? h : u;
4717
+ ) : [], m = e ? f : u;
4712
4718
  if (!m.length)
4713
4719
  return null;
4714
4720
  const g = (w = m[0]) == null ? void 0 : w.user, l = g != null && g.id && t.state.members[g.id] ? t.state.members[g.id].user : void 0;
@@ -4734,7 +4740,7 @@ const eo = ({
4734
4740
  style: {
4735
4741
  marginBottom: "var(--messaging-channel-input-spacer-height, 80px)"
4736
4742
  },
4737
- children: /* @__PURE__ */ f("div", { className: "str-chat__message str-chat__message-simple str-chat__message--regular str-chat__message--received str-chat__message--other str-chat__message--has-text", children: [
4743
+ children: /* @__PURE__ */ h("div", { className: "str-chat__message str-chat__message-simple str-chat__message--regular str-chat__message--received str-chat__message--other str-chat__message--has-text", children: [
4738
4744
  /* @__PURE__ */ n(
4739
4745
  ye,
4740
4746
  {
@@ -4746,8 +4752,8 @@ const eo = ({
4746
4752
  shape: "circle"
4747
4753
  }
4748
4754
  ),
4749
- /* @__PURE__ */ n("div", { className: "str-chat__message-inner mx-0", children: /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ f("div", { className: "str-chat__message-bubble relative isolate", children: [
4750
- /* @__PURE__ */ n("div", { className: "str-chat__message-text min-h-11 flex items-center", children: /* @__PURE__ */ n("div", { className: "str-chat__message-text-inner str-chat__message-simple-text-inner", children: /* @__PURE__ */ f(
4755
+ /* @__PURE__ */ n("div", { className: "str-chat__message-inner mx-0", children: /* @__PURE__ */ n("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ h("div", { className: "str-chat__message-bubble relative isolate", children: [
4756
+ /* @__PURE__ */ n("div", { className: "str-chat__message-text min-h-11 flex items-center", children: /* @__PURE__ */ n("div", { className: "str-chat__message-text-inner str-chat__message-simple-text-inner", children: /* @__PURE__ */ h(
4751
4757
  "svg",
4752
4758
  {
4753
4759
  "aria-hidden": "true",
@@ -4777,12 +4783,12 @@ function No(e, t) {
4777
4783
  return i;
4778
4784
  }
4779
4785
  }
4780
- const ko = () => null, Co = ({ className: e, message: t }) => /* @__PURE__ */ f(
4786
+ const ko = () => null, Co = ({ className: e, message: t }) => /* @__PURE__ */ h(
4781
4787
  "div",
4782
4788
  {
4783
4789
  className: k("flex items-center justify-center h-full", e),
4784
4790
  children: [
4785
- /* @__PURE__ */ f("svg", { viewBox: "0 0 100 100", className: "size-8 fill-pebble", stroke: "none", children: [
4791
+ /* @__PURE__ */ h("svg", { viewBox: "0 0 100 100", className: "size-8 fill-pebble", stroke: "none", children: [
4786
4792
  /* @__PURE__ */ n("circle", { cx: "6", cy: "50", r: "6", children: /* @__PURE__ */ n(
4787
4793
  "animateTransform",
4788
4794
  {
@@ -4820,7 +4826,7 @@ const ko = () => null, Co = ({ className: e, message: t }) => /* @__PURE__ */ f(
4820
4826
  t && /* @__PURE__ */ n("span", { className: "text-stone", children: t })
4821
4827
  ]
4822
4828
  }
4823
- ), Ge = F.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ f("div", { className: "flex items-center", children: [
4829
+ ), Ge = F.memo(() => /* @__PURE__ */ n("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ h("div", { className: "flex items-center", children: [
4824
4830
  /* @__PURE__ */ n(Co, { className: "w-6 h-6" }),
4825
4831
  /* @__PURE__ */ n("span", { className: "text-sm text-stone", children: "Loading messages" })
4826
4832
  ] }) }));
@@ -4836,7 +4842,7 @@ const So = ({
4836
4842
  showDeleteConversation: c = !0,
4837
4843
  onDeleteConversationClick: d,
4838
4844
  onBlockParticipantClick: u,
4839
- onReportParticipantClick: h,
4845
+ onReportParticipantClick: f,
4840
4846
  showBlockParticipant: m = !0,
4841
4847
  showReportParticipant: g = !0,
4842
4848
  composerDisabled: l = !1,
@@ -4877,7 +4883,7 @@ const So = ({
4877
4883
  showReportParticipant: g,
4878
4884
  onDeleteConversationClick: d,
4879
4885
  onBlockParticipantClick: u,
4880
- onReportParticipantClick: h,
4886
+ onReportParticipantClick: f,
4881
4887
  customChannelActions: x,
4882
4888
  renderChannelActions: p,
4883
4889
  onParticipantNameClick: M
@@ -4905,20 +4911,20 @@ const So = ({
4905
4911
  UnreadMessagesNotification: () => null,
4906
4912
  UnreadMessagesSeparator: () => null
4907
4913
  },
4908
- children: /* @__PURE__ */ n(Ws, { children: $ ? /* @__PURE__ */ f("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
4909
- /* @__PURE__ */ f(
4914
+ children: /* @__PURE__ */ n(Ws, { children: $ ? /* @__PURE__ */ h("div", { className: "messaging-channel-layout relative flex min-h-0 flex-1 flex-col", children: [
4915
+ /* @__PURE__ */ h(
4910
4916
  "div",
4911
4917
  {
4912
4918
  className: "messaging-channel-message-list messaging-channel-message-list--floating relative min-h-0 flex-1 overflow-hidden",
4913
4919
  children: [
4914
- !j && /* @__PURE__ */ n("div", { className: "str-chat__list", children: /* @__PURE__ */ f("div", { className: "str-chat__message-list-scroll", children: [
4920
+ !j && /* @__PURE__ */ n("div", { className: "str-chat__list", children: /* @__PURE__ */ h("div", { className: "str-chat__message-list-scroll", children: [
4915
4921
  P,
4916
4922
  z
4917
4923
  ] }) }),
4918
4924
  /* @__PURE__ */ n(
4919
4925
  Kt,
4920
4926
  {
4921
- head: j ? /* @__PURE__ */ f("div", { className: "sticky top-0 z-10", children: [
4927
+ head: j ? /* @__PURE__ */ h("div", { className: "sticky top-0 z-10", children: [
4922
4928
  P,
4923
4929
  z
4924
4930
  ] }) : void 0,
@@ -4946,20 +4952,20 @@ const So = ({
4946
4952
  },
4947
4953
  "lt-channel-message-input"
4948
4954
  )
4949
- ] }) : /* @__PURE__ */ f(Q, { children: [
4950
- /* @__PURE__ */ f(
4955
+ ] }) : /* @__PURE__ */ h(Q, { children: [
4956
+ /* @__PURE__ */ h(
4951
4957
  "div",
4952
4958
  {
4953
4959
  className: "flex-1 overflow-hidden relative",
4954
4960
  children: [
4955
- !j && /* @__PURE__ */ n("div", { className: "str-chat__list", children: /* @__PURE__ */ f("div", { className: "str-chat__message-list-scroll", children: [
4961
+ !j && /* @__PURE__ */ n("div", { className: "str-chat__list", children: /* @__PURE__ */ h("div", { className: "str-chat__message-list-scroll", children: [
4956
4962
  P,
4957
4963
  z
4958
4964
  ] }) }),
4959
4965
  /* @__PURE__ */ n(
4960
4966
  Kt,
4961
4967
  {
4962
- head: j ? /* @__PURE__ */ f("div", { className: "sticky top-0 z-10", children: [
4968
+ head: j ? /* @__PURE__ */ h("div", { className: "sticky top-0 z-10", children: [
4963
4969
  P,
4964
4970
  z
4965
4971
  ] }) : void 0,
@@ -5000,7 +5006,7 @@ const So = ({
5000
5006
  onBlockParticipant: c,
5001
5007
  className: d,
5002
5008
  CustomChannelEmptyState: u = ko,
5003
- showDeleteConversation: h = !0,
5009
+ showDeleteConversation: f = !0,
5004
5010
  onDeleteConversationClick: m,
5005
5011
  onBlockParticipantClick: g,
5006
5012
  onReportParticipantClick: l,
@@ -5091,7 +5097,7 @@ const So = ({
5091
5097
  onLeaveConversation: o,
5092
5098
  onBlockParticipant: c,
5093
5099
  CustomChannelEmptyState: u,
5094
- showDeleteConversation: h,
5100
+ showDeleteConversation: f,
5095
5101
  onDeleteConversationClick: m,
5096
5102
  onBlockParticipantClick: g,
5097
5103
  onReportParticipantClick: l,
@@ -5119,7 +5125,7 @@ const So = ({
5119
5125
  }
5120
5126
  );
5121
5127
  ss.displayName = "ChannelView";
5122
- const Ee = F.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: [
5128
+ const Ee = F.memo(({ message: e, onBack: t }) => /* @__PURE__ */ n("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ h("div", { className: "text-center max-w-sm", children: [
5123
5129
  /* @__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: "⚠️" }) }),
5124
5130
  /* @__PURE__ */ n("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
5125
5131
  /* @__PURE__ */ n("p", { className: "text-stone text-sm mb-6", children: e }),
@@ -5145,7 +5151,7 @@ const fl = ({
5145
5151
  CustomChannelEmptyState: c,
5146
5152
  onBlockParticipantClick: d,
5147
5153
  onReportParticipantClick: u,
5148
- dmAgentEnabled: h,
5154
+ dmAgentEnabled: f,
5149
5155
  onMessageSent: m,
5150
5156
  viewerLanguage: g,
5151
5157
  renderChannelBanner: l,
@@ -5264,7 +5270,7 @@ const fl = ({
5264
5270
  showDeleteConversation: Z,
5265
5271
  onBlockParticipantClick: d,
5266
5272
  onReportParticipantClick: u,
5267
- dmAgentEnabled: h,
5273
+ dmAgentEnabled: f,
5268
5274
  onMessageSent: m,
5269
5275
  viewerLanguage: g,
5270
5276
  customChannelActions: v,
@@ -5325,13 +5331,13 @@ const as = F.createContext({
5325
5331
  channelPreview: o,
5326
5332
  renderMessagePreview: c,
5327
5333
  viewerLanguage: d
5328
- } = To(), { client: u } = Ye(), h = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = Sn(t);
5334
+ } = To(), { client: u } = Ye(), f = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), m = Sn(t);
5329
5335
  if (o)
5330
5336
  return /* @__PURE__ */ n(
5331
5337
  o,
5332
5338
  {
5333
5339
  ...e,
5334
- active: h,
5340
+ active: f,
5335
5341
  selectedChannel: a,
5336
5342
  onChannelSelect: r,
5337
5343
  viewerLanguage: d
@@ -5375,7 +5381,7 @@ const as = F.createContext({
5375
5381
  })(), _ = x != null && x.created_at ? Ro(new Date(x.created_at)) : "", I = x ? je(x) : !1, M = c ? c(x, y) : `${I ? "✨ " : ""}${y}`, T = s ?? 0;
5376
5382
  return i && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
5377
5383
  channelId: t == null ? void 0 : t.id,
5378
- isSelected: h,
5384
+ isSelected: f,
5379
5385
  participantName: w,
5380
5386
  unreadCount: T,
5381
5387
  hasTimestamp: !!_
@@ -5389,12 +5395,12 @@ const as = F.createContext({
5389
5395
  className: k(
5390
5396
  "group w-full px-4 py-3 transition-colors text-left max-w-full overflow-hidden focus-ring rounded-[12px] [&+&]:mt-2",
5391
5397
  {
5392
- "bg-black/[0.04]": h,
5393
- "hover:bg-black/[0.02]": !h
5398
+ "bg-black/[0.04]": f,
5399
+ "hover:bg-black/[0.02]": !f
5394
5400
  }
5395
5401
  ),
5396
5402
  "data-dd-privacy": "mask",
5397
- children: /* @__PURE__ */ f("div", { className: "flex items-start gap-4", children: [
5403
+ children: /* @__PURE__ */ h("div", { className: "flex items-start gap-4", children: [
5398
5404
  /* @__PURE__ */ n(
5399
5405
  ye,
5400
5406
  {
@@ -5405,9 +5411,9 @@ const as = F.createContext({
5405
5411
  starred: m
5406
5412
  }
5407
5413
  ),
5408
- /* @__PURE__ */ f("div", { className: "flex-1 min-w-0 flex flex-col gap-1", children: [
5409
- /* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-2", children: [
5410
- /* @__PURE__ */ f(
5414
+ /* @__PURE__ */ h("div", { className: "flex-1 min-w-0 flex flex-col gap-1", children: [
5415
+ /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2", children: [
5416
+ /* @__PURE__ */ h(
5411
5417
  "h3",
5412
5418
  {
5413
5419
  className: k(
@@ -5421,7 +5427,7 @@ const as = F.createContext({
5421
5427
  ),
5422
5428
  _ && /* @__PURE__ */ n("span", { className: "text-xs text-[#717070] flex-shrink-0", children: _ })
5423
5429
  ] }),
5424
- /* @__PURE__ */ f("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
5430
+ /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
5425
5431
  /* @__PURE__ */ n("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: M }),
5426
5432
  T > 0 && /* @__PURE__ */ n("span", { className: "bg-[#7f22fe] text-white text-[10px] rounded-full h-4 flex items-center justify-center p-1 min-w-4 text-center flex-shrink-0", children: T > 99 ? "99+" : T })
5427
5433
  ] })
@@ -5444,7 +5450,7 @@ const Lo = { last_message_at: -1 }, Mo = F.memo(
5444
5450
  customEmptyStateIndicator: c,
5445
5451
  channelListPaginator: d = Xs,
5446
5452
  channelPreview: u,
5447
- renderMessagePreview: h,
5453
+ renderMessagePreview: f,
5448
5454
  viewerLanguage: m,
5449
5455
  lockChannelOrder: g,
5450
5456
  onMessageNewHandler: l,
@@ -5474,7 +5480,7 @@ const Lo = { last_message_at: -1 }, Mo = F.memo(
5474
5480
  onChannelSelect: e,
5475
5481
  debug: y,
5476
5482
  channelPreview: u,
5477
- renderMessagePreview: h,
5483
+ renderMessagePreview: f,
5478
5484
  viewerLanguage: m
5479
5485
  }),
5480
5486
  [
@@ -5482,7 +5488,7 @@ const Lo = { last_message_at: -1 }, Mo = F.memo(
5482
5488
  e,
5483
5489
  y,
5484
5490
  u,
5485
- h,
5491
+ f,
5486
5492
  m
5487
5493
  ]
5488
5494
  );
@@ -5556,20 +5562,20 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5556
5562
  var v;
5557
5563
  const c = s != null && s.trim() !== "", d = a != null && a.trim() !== "", u = o != null && o.length > 0;
5558
5564
  if (!c && !d && !u) return null;
5559
- const h = { color: t }, m = r > 1 ? {
5560
- ...h,
5565
+ const f = { color: t }, m = r > 1 ? {
5566
+ ...f,
5561
5567
  display: "-webkit-box",
5562
5568
  WebkitBoxOrient: "vertical",
5563
5569
  WebkitLineClamp: r,
5564
5570
  overflow: "hidden"
5565
- } : h, g = u && (((v = o == null ? void 0 : o[0]) == null ? void 0 : v.variant) ?? "primary") === "secondary", l = /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-1 flex-col gap-[2px]", children: [
5566
- c && /* @__PURE__ */ f("div", { className: "flex min-w-0 items-center gap-2", children: [
5571
+ } : f, g = u && (((v = o == null ? void 0 : o[0]) == null ? void 0 : v.variant) ?? "primary") === "secondary", l = /* @__PURE__ */ h("div", { className: "flex min-w-0 flex-1 flex-col gap-[2px]", children: [
5572
+ c && /* @__PURE__ */ h("div", { className: "flex min-w-0 items-center gap-2", children: [
5567
5573
  i ? /* @__PURE__ */ n("span", { className: "shrink-0", children: i }) : null,
5568
5574
  /* @__PURE__ */ n(
5569
5575
  "p",
5570
5576
  {
5571
5577
  className: k("min-w-0", Do),
5572
- style: h,
5578
+ style: f,
5573
5579
  children: s
5574
5580
  }
5575
5581
  )
@@ -5587,10 +5593,10 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5587
5593
  }
5588
5594
  )
5589
5595
  ] });
5590
- 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: [
5596
+ return /* @__PURE__ */ n("div", { className: "shrink-0 px-4 py-3", children: g ? /* @__PURE__ */ h("div", { className: "flex items-center justify-between gap-3", children: [
5591
5597
  l,
5592
5598
  /* @__PURE__ */ n(fn, { surface: e, actions: o, layout: "row" })
5593
- ] }) : /* @__PURE__ */ f(Q, { children: [
5599
+ ] }) : /* @__PURE__ */ h(Q, { children: [
5594
5600
  l,
5595
5601
  /* @__PURE__ */ n(
5596
5602
  fn,
@@ -5624,7 +5630,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5624
5630
  const [s, a] = F.useState({}), r = t.join(`
5625
5631
  `), [i, o] = F.useState(r);
5626
5632
  r !== i && (o(r), a({}));
5627
- const c = t.slice(0, 3).map((l, v) => ({ src: l, index: v })).filter(({ index: l }) => !s[l]), d = c.length >= 3 ? 3 : c.length === 2 ? 2 : 1, u = zo[d], h = Bo[d], m = $o[d], g = Uo[d];
5633
+ const c = t.slice(0, 3).map((l, v) => ({ src: l, index: v })).filter(({ index: l }) => !s[l]), d = c.length >= 3 ? 3 : c.length === 2 ? 2 : 1, u = zo[d], f = Bo[d], m = $o[d], g = Uo[d];
5628
5634
  return /* @__PURE__ */ n(
5629
5635
  "div",
5630
5636
  {
@@ -5643,7 +5649,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5643
5649
  onError: () => a((b) => ({ ...b, [v]: !0 })),
5644
5650
  className: "absolute left-1/2 top-1/2 w-[62%] aspect-[3/2] rounded-[12px] bg-[#ffffff] object-cover shadow-md",
5645
5651
  style: {
5646
- transform: `translate(-50%, -50%) translateX(${h[w]}px) rotate(${u[w]}deg) scale(${g[w]})`,
5652
+ transform: `translate(-50%, -50%) translateX(${f[w]}px) rotate(${u[w]}deg) scale(${g[w]})`,
5647
5653
  zIndex: m[w]
5648
5654
  }
5649
5655
  },
@@ -5684,10 +5690,10 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5684
5690
  accentColor: d,
5685
5691
  groupPosition: u = "single"
5686
5692
  }) => {
5687
- const h = Js({
5693
+ const f = Js({
5688
5694
  imagePresentation: i,
5689
5695
  images: r
5690
- }), m = r.length > 0, g = m && h === "hero", l = Ke({
5696
+ }), m = r.length > 0, g = m && f === "hero", l = Ke({
5691
5697
  variant: e,
5692
5698
  accentColor: d,
5693
5699
  layout: "featured",
@@ -5699,7 +5705,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5699
5705
  accentHex: l.accentHex,
5700
5706
  side: e === "dark" ? "sender" : "receiver",
5701
5707
  visible: v,
5702
- children: /* @__PURE__ */ f(
5708
+ children: /* @__PURE__ */ h(
5703
5709
  Te,
5704
5710
  {
5705
5711
  variant: e,
@@ -5710,7 +5716,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5710
5716
  Vo,
5711
5717
  {
5712
5718
  variant: e,
5713
- presentation: h,
5719
+ presentation: f,
5714
5720
  images: r,
5715
5721
  title: t,
5716
5722
  heroUrl: g ? l.thumbnailUrl : void 0,
@@ -5770,7 +5776,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5770
5776
  tail: s = !0,
5771
5777
  header: a,
5772
5778
  className: r
5773
- }) => /* @__PURE__ */ f(
5779
+ }) => /* @__PURE__ */ h(
5774
5780
  "div",
5775
5781
  {
5776
5782
  "data-dd-privacy": "mask",
@@ -5839,7 +5845,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5839
5845
  avatarName: o
5840
5846
  }) => {
5841
5847
  const c = Qs(e);
5842
- return c.length === 0 ? null : /* @__PURE__ */ n("div", { className: r, children: /* @__PURE__ */ f("div", { className: "flex gap-3 items-end", children: [
5848
+ return c.length === 0 ? null : /* @__PURE__ */ n("div", { className: r, children: /* @__PURE__ */ h("div", { className: "flex gap-3 items-end", children: [
5843
5849
  (i || o) && /* @__PURE__ */ n("div", { className: "flex-none", children: /* @__PURE__ */ n(
5844
5850
  ye,
5845
5851
  {
@@ -5850,7 +5856,7 @@ const Do = "line-clamp-2 text-[14px] font-medium leading-5 tracking-[0.28px] [te
5850
5856
  shape: "circle"
5851
5857
  }
5852
5858
  ) }),
5853
- /* @__PURE__ */ f(
5859
+ /* @__PURE__ */ h(
5854
5860
  "div",
5855
5861
  {
5856
5862
  className: "flex-1 flex flex-col gap-3 rounded-lg p-4",
@@ -5913,4 +5919,4 @@ export {
5913
5919
  Ua as y,
5914
5920
  En as z
5915
5921
  };
5916
- //# sourceMappingURL=index-wG3iH9e6.js.map
5922
+ //# sourceMappingURL=index-BIT5ol4i.js.map