@linktr.ee/messaging-react 3.7.0 → 3.7.1-rc-1783343188

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/{Card-DOMWuevV.cjs → Card-B34_3dxf.cjs} +2 -2
  2. package/dist/{Card-DOMWuevV.cjs.map → Card-B34_3dxf.cjs.map} +1 -1
  3. package/dist/{Card-BbYTw4R8.cjs → Card-BDzTCHou.cjs} +2 -2
  4. package/dist/{Card-BbYTw4R8.cjs.map → Card-BDzTCHou.cjs.map} +1 -1
  5. package/dist/{Card-b_mGrfMp.js → Card-BJ1ttS3d.js} +2 -2
  6. package/dist/{Card-b_mGrfMp.js.map → Card-BJ1ttS3d.js.map} +1 -1
  7. package/dist/{Card-BB_Vd9Gj.js → Card-Dm-jfetA.js} +3 -3
  8. package/dist/{Card-BB_Vd9Gj.js.map → Card-Dm-jfetA.js.map} +1 -1
  9. package/dist/{Card-CeWvHxmQ.cjs → Card-DvZ0INEN.cjs} +2 -2
  10. package/dist/{Card-CeWvHxmQ.cjs.map → Card-DvZ0INEN.cjs.map} +1 -1
  11. package/dist/{Card-DJm5sWmC.js → Card-VcM0VofY.js} +2 -2
  12. package/dist/{Card-DJm5sWmC.js.map → Card-VcM0VofY.js.map} +1 -1
  13. package/dist/{LockedThumbnail-C0LOfIvF.js → LockedThumbnail-BDf9eBov.js} +2 -2
  14. package/dist/{LockedThumbnail-C0LOfIvF.js.map → LockedThumbnail-BDf9eBov.js.map} +1 -1
  15. package/dist/{LockedThumbnail-AH9EZwQ1.cjs → LockedThumbnail-DYz11nhd.cjs} +2 -2
  16. package/dist/{LockedThumbnail-AH9EZwQ1.cjs.map → LockedThumbnail-DYz11nhd.cjs.map} +1 -1
  17. package/dist/assets/index.css +1 -1
  18. package/dist/{index-C-2O97qw.js → index-27SEkKTJ.js} +783 -761
  19. package/dist/index-27SEkKTJ.js.map +1 -0
  20. package/dist/index-DupFGSXr.cjs +2 -0
  21. package/dist/index-DupFGSXr.cjs.map +1 -0
  22. package/dist/index.cjs +1 -1
  23. package/dist/index.js +1 -1
  24. package/package.json +2 -2
  25. package/src/components/CustomMessage/CustomMessage.stories.tsx +35 -0
  26. package/src/components/CustomMessage/SentMessageDeliveryStatus.test.tsx +107 -0
  27. package/src/components/CustomMessage/SentMessageDeliveryStatus.tsx +86 -0
  28. package/src/components/CustomMessage/index.tsx +2 -0
  29. package/src/styles.css +34 -1
  30. package/dist/index-C-2O97qw.js.map +0 -1
  31. package/dist/index-DdN7z-9Y.cjs +0 -2
  32. package/dist/index-DdN7z-9Y.cjs.map +0 -1
@@ -1,12 +1,12 @@
1
- import { jsx as s, jsxs as m, Fragment as te } from "react/jsx-runtime";
2
- import V, { createContext as at, useContext as Se, useCallback as Z, useState as U, useRef as G, useEffect as J, useId as Vs, useMemo as ae, Suspense as rt } from "react";
3
- import { StreamChatService as Gs } from "@linktr.ee/messaging-core";
4
- import { StreamChat as Hs, LinkPreviewsManager as Ht } from "stream-chat";
5
- import { Chat as Ys, useChannelStateContext as ue, useChatContext as me, DateSeparator as qs, areMessageUIPropsEqual as Ws, useMessageReminder as Xs, useComponentContext as rs, Attachment as Ks, EditMessageModal as Js, MessageBlocked as Zs, MessageBouncePrompt as Qs, MessageDeleted as en, MessageIsThreadReplyInChannelButtonIndicator as tn, MessageRepliesCountButton as sn, ReminderNotification as nn, StreamedMessageText as an, messageHasAttachments as rn, messageHasReactions as ln, isDateSeparatorMessage as on, isMessageBlocked as cn, isMessageBounced as dn, MessageBounceModal as un, MessageText as Yt, MessageErrorIcon as qt, Poll as mn, useMessageContext as Ie, useMessageComposer as hn, useStateStore as fn, MessageInput as gn, useMessageInputContext as pn, useMessageComposerHasSendableData as bn, AttachmentPreviewList as vn, QuotedMessagePreview as xn, TextareaComposer as wn, MessageTimestamp as Ye, AIStates as qe, useTypingContext as _n, useAIState as Nn, Channel as yn, WithComponents as kn, Window as Cn, MessageList as En, ChannelList as Sn, InfiniteScroll as In } from "stream-chat-react";
6
- import { StarIcon as Ee, DotsThreeIcon as Tn, SpinnerGapIcon as ze, SignOutIcon as An, ProhibitInsetIcon as Wt, FlagIcon as is, ArrowLeftIcon as Qe, CurrencyDollarIcon as Mn, CaretRightIcon as ve, SparkleIcon as xe, FileIcon as ls, ImageIcon as Rn, SpeakerHighIcon as Ln, VideoCameraIcon as os, FileMdIcon as Dn, FileTextIcon as zn, FileZipIcon as Pn, FilePptIcon as Fn, FileCsvIcon as On, FileXlsIcon as $n, FileDocIcon as Bn, FilePdfIcon as Un, CircleNotchIcon as ke, PlayIcon as et, PauseIcon as jn, LinkIcon as Vn, DownloadSimpleIcon as Ce, XIcon as Ue, CaretLeftIcon as Gn, GiftIcon as Hn, ThumbsUpIcon as Yn, ThumbsDownIcon as qn, PencilSimpleIcon as Wn, TrashSimpleIcon as Xn, ArrowUpIcon as Kn, ProhibitIcon as Jn } from "@phosphor-icons/react";
1
+ import { jsx as s, jsxs as m, Fragment as ee } from "react/jsx-runtime";
2
+ import V, { createContext as rt, useContext as Ie, useCallback as Z, useState as U, useRef as G, useEffect as J, useId as Gs, useMemo as se, Suspense as it } from "react";
3
+ import { StreamChatService as Hs } from "@linktr.ee/messaging-core";
4
+ import { StreamChat as Ys, LinkPreviewsManager as Yt } from "stream-chat";
5
+ import { Chat as qs, useChannelStateContext as le, useChatContext as oe, DateSeparator as Ws, MessageStatus as Xs, useMessageContext as _e, areMessageUIPropsEqual as Ks, useMessageReminder as Js, useComponentContext as is, Attachment as Zs, EditMessageModal as Qs, MessageBlocked as en, MessageBouncePrompt as tn, MessageDeleted as sn, MessageIsThreadReplyInChannelButtonIndicator as nn, MessageRepliesCountButton as an, ReminderNotification as rn, StreamedMessageText as ln, messageHasAttachments as on, messageHasReactions as cn, isDateSeparatorMessage as dn, isMessageBlocked as un, isMessageBounced as mn, MessageBounceModal as hn, MessageText as qt, MessageErrorIcon as Wt, Poll as fn, useMessageComposer as gn, useStateStore as pn, MessageInput as bn, useMessageInputContext as vn, useMessageComposerHasSendableData as xn, AttachmentPreviewList as wn, QuotedMessagePreview as _n, TextareaComposer as Nn, MessageTimestamp as Ye, AIStates as qe, useTypingContext as yn, useAIState as kn, Channel as Cn, WithComponents as Sn, Window as En, MessageList as In, ChannelList as Tn, InfiniteScroll as An } from "stream-chat-react";
6
+ import { StarIcon as Ee, DotsThreeIcon as Mn, SpinnerGapIcon as ze, SignOutIcon as Rn, ProhibitInsetIcon as Xt, FlagIcon as ls, ArrowLeftIcon as et, CurrencyDollarIcon as Dn, CaretRightIcon as ve, SparkleIcon as xe, FileIcon as os, ImageIcon as Ln, SpeakerHighIcon as zn, VideoCameraIcon as cs, FileMdIcon as Pn, FileTextIcon as Fn, FileZipIcon as On, FilePptIcon as $n, FileCsvIcon as Bn, FileXlsIcon as Un, FileDocIcon as jn, FilePdfIcon as Vn, CircleNotchIcon as Ce, PlayIcon as tt, PauseIcon as Gn, LinkIcon as Hn, DownloadSimpleIcon as Se, XIcon as Ue, CaretLeftIcon as Yn, GiftIcon as qn, ThumbsUpIcon as Wn, ThumbsDownIcon as Xn, ChecksIcon as Kn, PencilSimpleIcon as Jn, TrashSimpleIcon as Zn, ArrowUpIcon as Qn, ProhibitIcon as ea } from "@phosphor-icons/react";
7
7
  import k from "classnames";
8
- import { MessageActions as Zn, DefaultDropdownActionButton as cs } from "stream-chat-react/experimental";
9
- const ds = at({
8
+ import { MessageActions as ta, DefaultDropdownActionButton as ds } from "stream-chat-react/experimental";
9
+ const us = rt({
10
10
  service: null,
11
11
  client: null,
12
12
  isConnected: !1,
@@ -16,7 +16,7 @@ const ds = at({
16
16
  refreshConnection: async () => {
17
17
  },
18
18
  debug: !1
19
- }), it = () => Se(ds), rl = ({
19
+ }), lt = () => Ie(us), dl = ({
20
20
  children: e,
21
21
  user: t,
22
22
  serviceConfig: n,
@@ -25,10 +25,10 @@ const ds = at({
25
25
  debug: i = !1,
26
26
  client: o
27
27
  }) => {
28
- var E, R;
28
+ var S, R;
29
29
  const l = Z(
30
- (S, ...z) => {
31
- i && console.log(`🔥 [MessagingProvider] ${S}`, ...z);
30
+ (E, ...z) => {
31
+ i && console.log(`🔥 [MessagingProvider] ${E}`, ...z);
32
32
  },
33
33
  [i]
34
34
  );
@@ -47,9 +47,9 @@ const ds = at({
47
47
  apiKey: a,
48
48
  serviceConfig: n,
49
49
  capabilities: r
50
- }), L = G(0);
51
- L.current++, l("📊 RENDER INFO", {
52
- renderCount: L.current,
50
+ }), D = G(0);
51
+ D.current++, l("📊 RENDER INFO", {
52
+ renderCount: D.current,
53
53
  currentProps: { userId: t == null ? void 0 : t.id, apiKey: (a == null ? void 0 : a.substring(0, 8)) + "..." },
54
54
  propChanges: {
55
55
  userChanged: A.current.userId !== (t == null ? void 0 : t.id),
@@ -64,37 +64,37 @@ const ds = at({
64
64
  capabilities: r
65
65
  };
66
66
  const $ = G(null);
67
- !o && a && ((E = $.current) == null ? void 0 : E.apiKey) !== a && ($.current = { apiKey: a, client: new Hs(a) });
67
+ !o && a && ((S = $.current) == null ? void 0 : S.apiKey) !== a && ($.current = { apiKey: a, client: new Ys(a) });
68
68
  const F = o || (a ? ((R = $.current) == null ? void 0 : R.client) ?? null : null);
69
69
  J(() => {
70
- const S = L.current, z = C.current;
70
+ const E = D.current, z = C.current;
71
71
  if (o) {
72
72
  N.current = null, u(null), h(null), c(!1), g(null), w(!1);
73
73
  return;
74
74
  }
75
75
  if (!a || !F || !z) {
76
76
  l("⚠️ SERVICE INIT SKIPPED", {
77
- renderCount: S,
77
+ renderCount: E,
78
78
  reason: "Missing apiKey, client, or serviceConfig"
79
79
  });
80
80
  return;
81
81
  }
82
82
  l("🚀 CREATING SERVICE", {
83
- renderCount: S,
83
+ renderCount: E,
84
84
  apiKey: (a == null ? void 0 : a.substring(0, 8)) + "..."
85
85
  });
86
- const O = new Gs({
86
+ const O = new Hs({
87
87
  ...z,
88
88
  apiKey: a,
89
89
  debug: T.current,
90
90
  client: F
91
91
  });
92
92
  N.current = O, u(O), l("✅ SERVICE SET", {
93
- renderCount: S,
93
+ renderCount: E,
94
94
  serviceInstance: !!O
95
95
  });
96
96
  }, [a, F, o]);
97
- const D = G(null);
97
+ const L = G(null);
98
98
  J(() => {
99
99
  var z, O;
100
100
  if (l("🔗 USER CONNECTION EFFECT TRIGGERED", {
@@ -114,7 +114,7 @@ const ds = at({
114
114
  l("⚠️ USER CONNECTION SKIPPED", "Already connecting");
115
115
  return;
116
116
  }
117
- if (((z = D.current) == null ? void 0 : z.serviceId) === d && ((O = D.current) == null ? void 0 : O.userId) === t.id) {
117
+ if (((z = L.current) == null ? void 0 : z.serviceId) === d && ((O = L.current) == null ? void 0 : O.userId) === t.id) {
118
118
  l(
119
119
  "⚠️ USER CONNECTION SKIPPED",
120
120
  "Already connected this user with this service"
@@ -126,7 +126,7 @@ const ds = at({
126
126
  try {
127
127
  l("📞 CALLING SERVICE.CONNECTUSER", { userId: t.id });
128
128
  const j = await d.connectUser(t);
129
- h(j), c(!0), D.current = { serviceId: d, userId: t.id }, l("✅ USER CONNECTION SUCCESS", {
129
+ h(j), c(!0), L.current = { serviceId: d, userId: t.id }, l("✅ USER CONNECTION SUCCESS", {
130
130
  userId: t.id,
131
131
  clientId: j.userID
132
132
  });
@@ -144,10 +144,10 @@ const ds = at({
144
144
  }
145
145
  })();
146
146
  }, [d, t, l, f, o]), J(() => {
147
- const S = F;
147
+ const E = F;
148
148
  return () => {
149
149
  var z;
150
- S && (D.current = null, (z = N.current) == null || z.disconnectUser().catch(console.error));
150
+ E && (L.current = null, (z = N.current) == null || z.disconnectUser().catch(console.error));
151
151
  };
152
152
  }, [F]);
153
153
  const y = Z(async () => {
@@ -162,10 +162,10 @@ const ds = at({
162
162
  l("🚀 STARTING CONNECTION REFRESH", { userId: t.id }), w(!0);
163
163
  try {
164
164
  l("🔌 DISCONNECTING FOR REFRESH"), await d.disconnectUser(), l("📞 RECONNECTING FOR REFRESH");
165
- const S = await d.connectUser(t);
166
- h(S), c(!0), g(null), l("✅ CONNECTION REFRESH SUCCESS", { userId: t.id });
167
- } catch (S) {
168
- const z = S instanceof Error ? S.message : "Refresh failed";
165
+ const E = await d.connectUser(t);
166
+ h(E), c(!0), g(null), l("✅ CONNECTION REFRESH SUCCESS", { userId: t.id });
167
+ } catch (E) {
168
+ const z = E instanceof Error ? E.message : "Refresh failed";
169
169
  g(z), l("❌ CONNECTION REFRESH ERROR", {
170
170
  userId: t.id,
171
171
  error: z
@@ -211,11 +211,11 @@ const ds = at({
211
211
  l
212
212
  ]);
213
213
  return l("🔄 RENDER END", {
214
- renderCount: L.current,
214
+ renderCount: D.current,
215
215
  willRenderChat: !!F,
216
216
  contextValueReady: !!I
217
- }), /* @__PURE__ */ s(ds.Provider, { value: I, children: F ? /* @__PURE__ */ s(
218
- Ys,
217
+ }), /* @__PURE__ */ s(us.Provider, { value: I, children: F ? /* @__PURE__ */ s(
218
+ qs,
219
219
  {
220
220
  client: F,
221
221
  customClasses: {
@@ -224,7 +224,7 @@ const ds = at({
224
224
  children: e
225
225
  }
226
226
  ) : e });
227
- }, Qn = () => it(), lt = (e) => {
227
+ }, sa = () => lt(), ot = (e) => {
228
228
  var a, r;
229
229
  const [t, n] = U(
230
230
  !!((r = (a = e == null ? void 0 : e.state) == null ? void 0 : a.membership) != null && r.pinned_at)
@@ -246,14 +246,14 @@ const ds = at({
246
246
  e.off("member.updated", i);
247
247
  };
248
248
  }, [e]), t;
249
- }, ea = "linktree-official", ta = "linktree-official-sender";
249
+ }, na = "linktree-official", aa = "linktree-official-sender";
250
250
  function je(e, t, n) {
251
251
  const a = Object.values(e || {});
252
- if (n === ea) {
252
+ if (n === na) {
253
253
  const r = a.find(
254
254
  (i) => {
255
255
  var o;
256
- return ((o = i.user) == null ? void 0 : o.id) === ta;
256
+ return ((o = i.user) == null ? void 0 : o.id) === aa;
257
257
  }
258
258
  );
259
259
  if (r) return r;
@@ -265,18 +265,18 @@ function je(e, t, n) {
265
265
  }
266
266
  );
267
267
  }
268
- const sa = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
269
- function na(e) {
270
- return sa.test(e.trim());
268
+ const ra = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
269
+ function ia(e) {
270
+ return ra.test(e.trim());
271
271
  }
272
- function Xt(e, t) {
272
+ function Kt(e, t) {
273
273
  const n = e == null ? void 0 : e.trim();
274
- return !n || t && n === t ? !1 : !na(n);
274
+ return !n || t && n === t ? !1 : !ia(n);
275
275
  }
276
- function ot(e) {
277
- return Xt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Xt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
276
+ function ct(e) {
277
+ return Kt(e == null ? void 0 : e.name, e == null ? void 0 : e.id) ? e.name.trim() : Kt(e == null ? void 0 : e.username, e == null ? void 0 : e.id) ? e.username.trim() : "Unknown member";
278
278
  }
279
- const Kt = [
279
+ const Jt = [
280
280
  { emoji: "🍎", bgColor: "#FFD1DD" },
281
281
  // Apple
282
282
  { emoji: "🍌", bgColor: "#FFF1C9" },
@@ -304,7 +304,7 @@ const Kt = [
304
304
  { emoji: "🍈", bgColor: "#D9F7E1" }
305
305
  // Melon
306
306
  ];
307
- function aa(e) {
307
+ function la(e) {
308
308
  let t = 0;
309
309
  for (let n = 0; n < e.length; n++) {
310
310
  const a = e.charCodeAt(n);
@@ -312,16 +312,16 @@ function aa(e) {
312
312
  }
313
313
  return Math.abs(t);
314
314
  }
315
- function us(e) {
316
- return Kt[aa(e) % Kt.length];
315
+ function ms(e) {
316
+ return Jt[la(e) % Jt.length];
317
317
  }
318
- function ra(e) {
319
- return us(e).emoji;
318
+ function oa(e) {
319
+ return ms(e).emoji;
320
320
  }
321
- function ia(e) {
322
- return us(e).bgColor;
321
+ function ca(e) {
322
+ return ms(e).bgColor;
323
323
  }
324
- const se = ({
324
+ const ne = ({
325
325
  id: e,
326
326
  image: t,
327
327
  size: n = 40,
@@ -330,7 +330,7 @@ const se = ({
330
330
  shape: i = "squircle",
331
331
  dmAgentEnabled: o = !1
332
332
  }) => {
333
- const l = ra(e), d = ia(e), u = 0.45, h = n < 32 ? Math.round(n * u) : n < 56 ? 14 : n < 120 ? 18 : 36, f = n >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, v = /* @__PURE__ */ s("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ s(
333
+ const l = oa(e), d = ca(e), u = 0.45, h = n < 32 ? Math.round(n * u) : n < 56 ? 14 : n < 120 ? 18 : 36, f = n >= 40 ? 2 : 1, c = i === "circle" ? { borderRadius: "50%" } : { borderRadius: "1rem" }, v = /* @__PURE__ */ s("div", { className: "h-full w-full overflow-hidden", style: c, children: t ? /* @__PURE__ */ s(
334
334
  "img",
335
335
  {
336
336
  src: t,
@@ -394,7 +394,7 @@ const se = ({
394
394
  ]
395
395
  }
396
396
  );
397
- }, la = "https://linktr.ee/s/about/trust-center/report", oa = ({
397
+ }, da = "https://linktr.ee/s/about/trust-center/report", ua = ({
398
398
  channel: e,
399
399
  participant: t,
400
400
  showBlockParticipant: n = !0,
@@ -408,41 +408,41 @@ const se = ({
408
408
  logLabel: p = "useChannelModerationActions"
409
409
  }) => {
410
410
  var I;
411
- const { service: h, debug: f } = it(), c = (I = t == null ? void 0 : t.user) == null ? void 0 : I.id, v = !!(a && n && h && c), [w, b] = U(!1), [g, x] = U(null), [N, C] = U(!1), [T, A] = U(!1), L = v && ((g == null ? void 0 : g.participantId) !== c || (g == null ? void 0 : g.service) !== h);
411
+ const { service: h, debug: f } = lt(), c = (I = t == null ? void 0 : t.user) == null ? void 0 : I.id, v = !!(a && n && h && c), [w, b] = U(!1), [g, x] = U(null), [N, C] = U(!1), [T, A] = U(!1), D = v && ((g == null ? void 0 : g.participantId) !== c || (g == null ? void 0 : g.service) !== h);
412
412
  return J(() => {
413
413
  if (!v || !h || !c) {
414
414
  b(!1), x(null);
415
415
  return;
416
416
  }
417
- let E = !1;
417
+ let S = !1;
418
418
  return (async () => {
419
419
  try {
420
420
  const R = await h.getBlockedUsers();
421
- if (E) return;
421
+ if (S) return;
422
422
  b(
423
423
  R.some(
424
- (S) => S.blocked_user_id === c
424
+ (E) => E.blocked_user_id === c
425
425
  )
426
426
  );
427
427
  } catch (R) {
428
- E || console.error(`[${p}] Failed to check blocked status:`, R);
428
+ S || console.error(`[${p}] Failed to check blocked status:`, R);
429
429
  } finally {
430
- E || x({ participantId: c, service: h });
430
+ S || x({ participantId: c, service: h });
431
431
  }
432
432
  })(), () => {
433
- E = !0;
433
+ S = !0;
434
434
  };
435
435
  }, [v, h, c, p]), {
436
436
  isParticipantBlocked: w,
437
- isCheckingBlockedStatus: L,
437
+ isCheckingBlockedStatus: D,
438
438
  isLeaving: N,
439
439
  isUpdatingBlockStatus: T,
440
440
  handleLeaveConversation: async () => {
441
- var E;
441
+ var S;
442
442
  if (!N) {
443
443
  o == null || o(), f && console.log(`[${p}] Leave conversation`, e.cid), C(!0);
444
444
  try {
445
- const R = ((E = e._client) == null ? void 0 : E.userID) ?? null;
445
+ const R = ((S = e._client) == null ? void 0 : S.userID) ?? null;
446
446
  await e.hide(R, !1), r && await r(e), u == null || u();
447
447
  } catch (R) {
448
448
  console.error(`[${p}] Failed to leave conversation`, R);
@@ -452,11 +452,11 @@ const se = ({
452
452
  }
453
453
  },
454
454
  handleBlockUser: async () => {
455
- var E, R, S;
455
+ var S, R, E;
456
456
  if (!(T || !h)) {
457
- l == null || l(), f && console.log(`[${p}] Block member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), A(!0);
457
+ l == null || l(), f && console.log(`[${p}] Block member`, (S = t == null ? void 0 : t.user) == null ? void 0 : S.id), A(!0);
458
458
  try {
459
- await h.blockUser((R = t == null ? void 0 : t.user) == null ? void 0 : R.id), i && await i((S = t == null ? void 0 : t.user) == null ? void 0 : S.id), u == null || u();
459
+ await h.blockUser((R = t == null ? void 0 : t.user) == null ? void 0 : R.id), i && await i((E = t == null ? void 0 : t.user) == null ? void 0 : E.id), u == null || u();
460
460
  } catch (z) {
461
461
  console.error(`[${p}] Failed to block member`, z);
462
462
  } finally {
@@ -465,11 +465,11 @@ const se = ({
465
465
  }
466
466
  },
467
467
  handleUnblockUser: async () => {
468
- var E, R, S;
468
+ var S, R, E;
469
469
  if (!(T || !h)) {
470
- l == null || l(), f && console.log(`[${p}] Unblock member`, (E = t == null ? void 0 : t.user) == null ? void 0 : E.id), A(!0);
470
+ l == null || l(), f && console.log(`[${p}] Unblock member`, (S = t == null ? void 0 : t.user) == null ? void 0 : S.id), A(!0);
471
471
  try {
472
- await h.unBlockUser((R = t == null ? void 0 : t.user) == null ? void 0 : R.id), i && await i((S = t == null ? void 0 : t.user) == null ? void 0 : S.id), u == null || u();
472
+ await h.unBlockUser((R = t == null ? void 0 : t.user) == null ? void 0 : R.id), i && await i((E = t == null ? void 0 : t.user) == null ? void 0 : E.id), u == null || u();
473
473
  } catch (z) {
474
474
  console.error(`[${p}] Failed to unblock member`, z);
475
475
  } finally {
@@ -478,10 +478,10 @@ const se = ({
478
478
  }
479
479
  },
480
480
  handleReportUser: () => {
481
- d == null || d(), u == null || u(), window.open(la, "_blank", "noopener,noreferrer");
481
+ d == null || d(), u == null || u(), window.open(da, "_blank", "noopener,noreferrer");
482
482
  }
483
483
  };
484
- }, _e = ({
484
+ }, Ne = ({
485
485
  variant: e = "default",
486
486
  className: t,
487
487
  children: n,
@@ -498,7 +498,7 @@ const se = ({
498
498
  ...a,
499
499
  children: n
500
500
  }
501
- ), tt = ({
501
+ ), st = ({
502
502
  channel: e,
503
503
  participant: t,
504
504
  showDeleteConversation: n = !0,
@@ -512,16 +512,16 @@ const se = ({
512
512
  customChannelActions: p,
513
513
  triggerClassName: h
514
514
  }) => {
515
- const [f, c] = U(!1), v = G(null), w = Vs(), b = Z(() => c(!1), []), {
515
+ const [f, c] = U(!1), v = G(null), w = Gs(), b = Z(() => c(!1), []), {
516
516
  isParticipantBlocked: g,
517
517
  isCheckingBlockedStatus: x,
518
518
  isLeaving: N,
519
519
  isUpdatingBlockStatus: C,
520
520
  handleLeaveConversation: T,
521
521
  handleBlockUser: A,
522
- handleUnblockUser: L,
522
+ handleUnblockUser: D,
523
523
  handleReportUser: $
524
- } = oa({
524
+ } = ua({
525
525
  channel: e,
526
526
  participant: t,
527
527
  showBlockParticipant: a,
@@ -536,13 +536,13 @@ const se = ({
536
536
  });
537
537
  return J(() => {
538
538
  if (!f) return;
539
- const D = (I) => {
539
+ const L = (I) => {
540
540
  v.current && !v.current.contains(I.target) && c(!1);
541
541
  }, y = (I) => {
542
542
  I.key === "Escape" && c(!1);
543
543
  };
544
- return document.addEventListener("mousedown", D), document.addEventListener("keydown", y), () => {
545
- document.removeEventListener("mousedown", D), document.removeEventListener("keydown", y);
544
+ return document.addEventListener("mousedown", L), document.addEventListener("keydown", y), () => {
545
+ document.removeEventListener("mousedown", L), document.removeEventListener("keydown", y);
546
546
  };
547
547
  }, [f]), !t || !(n || a || r || !!p) ? null : /* @__PURE__ */ m("div", { ref: v, className: "relative", children: [
548
548
  /* @__PURE__ */ m(
@@ -553,9 +553,9 @@ const se = ({
553
553
  "aria-haspopup": "true",
554
554
  "aria-expanded": f,
555
555
  "aria-controls": f ? w : void 0,
556
- onClick: () => c((D) => !D),
556
+ onClick: () => c((L) => !L),
557
557
  children: [
558
- /* @__PURE__ */ s(Tn, { className: "size-5 text-black/90" }),
558
+ /* @__PURE__ */ s(Mn, { className: "size-5 text-black/90" }),
559
559
  /* @__PURE__ */ s("span", { className: "sr-only", children: "More options" })
560
560
  ]
561
561
  }
@@ -571,13 +571,13 @@ const se = ({
571
571
  ),
572
572
  children: /* @__PURE__ */ m("ul", { className: "flex flex-col gap-1", children: [
573
573
  n && /* @__PURE__ */ s("li", { children: /* @__PURE__ */ m(
574
- _e,
574
+ Ne,
575
575
  {
576
576
  onClick: T,
577
577
  disabled: N,
578
578
  "aria-busy": N,
579
579
  children: [
580
- N ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(An, { className: "h-5 w-5" }),
580
+ N ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(Rn, { className: "h-5 w-5" }),
581
581
  /* @__PURE__ */ s("span", { children: "Delete Conversation" })
582
582
  ]
583
583
  }
@@ -585,35 +585,35 @@ const se = ({
585
585
  a && /* @__PURE__ */ s("li", { children: x ? (
586
586
  // Block status not yet resolved — show a disabled placeholder
587
587
  // so a premature click can't act on a stale block state.
588
- /* @__PURE__ */ m(_e, { disabled: !0, "aria-busy": !0, children: [
588
+ /* @__PURE__ */ m(Ne, { disabled: !0, "aria-busy": !0, children: [
589
589
  /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }),
590
590
  /* @__PURE__ */ s("span", { children: "Block" })
591
591
  ] })
592
592
  ) : g ? /* @__PURE__ */ m(
593
- _e,
593
+ Ne,
594
594
  {
595
- onClick: L,
595
+ onClick: D,
596
596
  disabled: C,
597
597
  "aria-busy": C,
598
598
  children: [
599
- C ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(Wt, { className: "h-5 w-5" }),
599
+ C ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(Xt, { className: "h-5 w-5" }),
600
600
  /* @__PURE__ */ s("span", { children: "Unblock" })
601
601
  ]
602
602
  }
603
603
  ) : /* @__PURE__ */ m(
604
- _e,
604
+ Ne,
605
605
  {
606
606
  onClick: A,
607
607
  disabled: C,
608
608
  "aria-busy": C,
609
609
  children: [
610
- C ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(Wt, { className: "h-5 w-5" }),
610
+ C ? /* @__PURE__ */ s(ze, { className: "h-5 w-5 animate-spin" }) : /* @__PURE__ */ s(Xt, { className: "h-5 w-5" }),
611
611
  /* @__PURE__ */ s("span", { children: "Block" })
612
612
  ]
613
613
  }
614
614
  ) }),
615
- r && /* @__PURE__ */ s("li", { children: /* @__PURE__ */ m(_e, { variant: "danger", onClick: $, children: [
616
- /* @__PURE__ */ s(is, { className: "h-5 w-5" }),
615
+ r && /* @__PURE__ */ s("li", { children: /* @__PURE__ */ m(Ne, { variant: "danger", onClick: $, children: [
616
+ /* @__PURE__ */ s(ls, { className: "h-5 w-5" }),
617
617
  /* @__PURE__ */ s("span", { children: "Report" })
618
618
  ] }) }),
619
619
  p
@@ -621,10 +621,10 @@ const se = ({
621
621
  }
622
622
  )
623
623
  ] });
624
- }, We = "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", ca = "CUSTOMER_PAID", da = "Replies instantly with AI assistant", ua = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === ca, ma = (e) => {
624
+ }, We = "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", ma = "CUSTOMER_PAID", ha = "Replies instantly with AI assistant", fa = (e) => typeof e == "string" && e.trim().replace(/[\s-]+/g, "_").toUpperCase() === ma, ga = (e) => {
625
625
  const t = e;
626
- return [t == null ? void 0 : t.customerTag, t == null ? void 0 : t.customer_tag].some(ua);
627
- }, ha = ({
626
+ return [t == null ? void 0 : t.customerTag, t == null ? void 0 : t.customer_tag].some(fa);
627
+ }, pa = ({
628
628
  onBack: e,
629
629
  showBackButton: t,
630
630
  showStarButton: n = !1,
@@ -642,8 +642,8 @@ const se = ({
642
642
  showChannelInfo: v = !0,
643
643
  onParticipantNameClick: w
644
644
  }) => {
645
- var $, F, D;
646
- const { channel: b } = ue(), { client: g } = me(), x = V.useMemo(
645
+ var $, F, L;
646
+ const { channel: b } = le(), { client: g } = oe(), x = V.useMemo(
647
647
  () => {
648
648
  var y;
649
649
  return je(
@@ -653,7 +653,7 @@ const se = ({
653
653
  );
654
654
  },
655
655
  [($ = b.state) == null ? void 0 : $.members, g == null ? void 0 : g.userID, b.type]
656
- ), N = ot(x == null ? void 0 : x.user), C = (F = x == null ? void 0 : x.user) == null ? void 0 : F.image, T = lt(b), A = ma(x), L = async () => {
656
+ ), N = ct(x == null ? void 0 : x.user), C = (F = x == null ? void 0 : x.user) == null ? void 0 : F.image, T = ot(b), A = ga(x), D = async () => {
657
657
  try {
658
658
  T ? await b.unpin() : await b.pin();
659
659
  } catch (y) {
@@ -675,7 +675,7 @@ const se = ({
675
675
  }),
676
676
  type: "button",
677
677
  "aria-label": "Back to conversations",
678
- children: /* @__PURE__ */ s(Qe, { className: "size-5 text-black/90" })
678
+ children: /* @__PURE__ */ s(et, { className: "size-5 text-black/90" })
679
679
  }
680
680
  ) }),
681
681
  /* @__PURE__ */ s("div", { className: "flex min-w-0 justify-center", "data-dd-privacy": "mask", children: /* @__PURE__ */ m(
@@ -687,9 +687,9 @@ const se = ({
687
687
  className: "group flex min-w-0 max-w-full appearance-none flex-col items-center border-0 bg-transparent px-2 focus-ring focus-visible:outline-none",
688
688
  children: [
689
689
  /* @__PURE__ */ s(
690
- se,
690
+ ne,
691
691
  {
692
- id: ((D = x == null ? void 0 : x.user) == null ? void 0 : D.id) || b.id || "unknown",
692
+ id: ((L = x == null ? void 0 : x.user) == null ? void 0 : L.id) || b.id || "unknown",
693
693
  name: N,
694
694
  image: C,
695
695
  dmAgentEnabled: a,
@@ -707,7 +707,7 @@ const se = ({
707
707
  {
708
708
  "aria-label": "Paid customer",
709
709
  className: "flex size-4 shrink-0 items-center justify-center rounded-full bg-[#34C759] text-white",
710
- children: /* @__PURE__ */ s(Mn, { className: "size-2.5", weight: "bold" })
710
+ children: /* @__PURE__ */ s(Dn, { className: "size-2.5", weight: "bold" })
711
711
  }
712
712
  ),
713
713
  n && T && /* @__PURE__ */ s(
@@ -730,7 +730,7 @@ const se = ({
730
730
  ] }),
731
731
  a && /* @__PURE__ */ m("span", { className: "mt-1 flex items-center gap-1 px-1 pb-0.5 text-[10px] leading-3 text-black/55", children: [
732
732
  /* @__PURE__ */ s(xe, { className: "size-3 shrink-0 text-black/55" }),
733
- /* @__PURE__ */ s("span", { children: da })
733
+ /* @__PURE__ */ s("span", { children: ha })
734
734
  ] })
735
735
  ] })
736
736
  ]
@@ -741,7 +741,7 @@ const se = ({
741
741
  "button",
742
742
  {
743
743
  className: We,
744
- onClick: L,
744
+ onClick: D,
745
745
  type: "button",
746
746
  "aria-pressed": T,
747
747
  "aria-label": T ? "Unstar conversation" : "Star conversation",
@@ -758,7 +758,7 @@ const se = ({
758
758
  }
759
759
  ),
760
760
  v && (c !== void 0 ? c : /* @__PURE__ */ s(
761
- tt,
761
+ st,
762
762
  {
763
763
  channel: b,
764
764
  participant: x,
@@ -776,20 +776,20 @@ const se = ({
776
776
  ))
777
777
  ] })
778
778
  ] }) });
779
- }, fa = (e) => /* @__PURE__ */ s(qs, { ...e, position: "center" }), st = "vote_up", nt = "vote_down";
780
- function ga(e) {
781
- return e != null && e.length ? e.some((t) => t.type === nt) ? "down" : e.some((t) => t.type === st) ? "up" : null : null;
779
+ }, ba = (e) => /* @__PURE__ */ s(Ws, { ...e, position: "center" }), nt = "vote_up", at = "vote_down";
780
+ function va(e) {
781
+ return e != null && e.length ? e.some((t) => t.type === at) ? "down" : e.some((t) => t.type === nt) ? "up" : null : null;
782
782
  }
783
- function pa(e) {
784
- const { channel: t } = ue(), { client: n } = me("useMessageVote"), a = ae(
785
- () => ga(e.own_reactions),
783
+ function xa(e) {
784
+ const { channel: t } = le(), { client: n } = oe("useMessageVote"), a = se(
785
+ () => va(e.own_reactions),
786
786
  [e.own_reactions]
787
787
  ), r = Z(async () => {
788
788
  if (n != null && n.userID)
789
789
  try {
790
- a === "up" ? await t.deleteReaction(e.id, st) : await t.sendReaction(
790
+ a === "up" ? await t.deleteReaction(e.id, nt) : await t.sendReaction(
791
791
  e.id,
792
- { type: st },
792
+ { type: nt },
793
793
  { enforce_unique: !0, skip_push: !0 }
794
794
  );
795
795
  } catch {
@@ -797,9 +797,9 @@ function pa(e) {
797
797
  }, [t, n == null ? void 0 : n.userID, e.id, a]), i = Z(async () => {
798
798
  if (n != null && n.userID)
799
799
  try {
800
- a === "down" ? await t.deleteReaction(e.id, nt) : await t.sendReaction(
800
+ a === "down" ? await t.deleteReaction(e.id, at) : await t.sendReaction(
801
801
  e.id,
802
- { type: nt },
802
+ { type: at },
803
803
  { enforce_unique: !0, skip_push: !0 }
804
804
  );
805
805
  } catch {
@@ -807,24 +807,24 @@ function pa(e) {
807
807
  }, [t, n == null ? void 0 : n.userID, e.id, a]);
808
808
  return { selected: a, voteUp: r, voteDown: i };
809
809
  }
810
- function ba(e) {
810
+ function wa(e) {
811
811
  return (e == null ? void 0 : e.trim().toLowerCase().split(/[-_]/)[0]) || void 0;
812
812
  }
813
- function ms({
813
+ function hs({
814
814
  message: e,
815
815
  viewerLanguage: t
816
816
  }) {
817
817
  var r;
818
- const n = e == null ? void 0 : e.text, a = ba(t);
818
+ const n = e == null ? void 0 : e.text, a = wa(t);
819
819
  return a ? ((r = e == null ? void 0 : e.i18n) == null ? void 0 : r[`${a}_text`]) ?? n : n;
820
820
  }
821
- const va = V.lazy(() => import("./Card-b_mGrfMp.js")), xa = V.lazy(() => import("./Card-DJm5sWmC.js")), wa = V.lazy(() => import("./Card-BB_Vd9Gj.js")), ct = () => /* @__PURE__ */ s(
821
+ const _a = V.lazy(() => import("./Card-BJ1ttS3d.js")), Na = V.lazy(() => import("./Card-VcM0VofY.js")), ya = V.lazy(() => import("./Card-Dm-jfetA.js")), dt = () => /* @__PURE__ */ s(
822
822
  "div",
823
823
  {
824
824
  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)]",
825
825
  "aria-hidden": !0
826
826
  }
827
- ), _a = (e) => /* @__PURE__ */ s(rt, { fallback: /* @__PURE__ */ s(ct, {}), children: /* @__PURE__ */ s(va, { ...e }) }), hs = (e) => /* @__PURE__ */ s(rt, { fallback: /* @__PURE__ */ s(ct, {}), children: /* @__PURE__ */ s(xa, { ...e }) }), fs = (e) => /* @__PURE__ */ s(rt, { fallback: /* @__PURE__ */ s(ct, {}), children: /* @__PURE__ */ s(wa, { ...e }) }), Na = hs, ya = fs, Jt = { Composer: _a, Sent: hs, Received: fs, Creator: Na, Visitor: ya }, ka = [
827
+ ), ka = (e) => /* @__PURE__ */ s(it, { fallback: /* @__PURE__ */ s(dt, {}), children: /* @__PURE__ */ s(_a, { ...e }) }), fs = (e) => /* @__PURE__ */ s(it, { fallback: /* @__PURE__ */ s(dt, {}), children: /* @__PURE__ */ s(Na, { ...e }) }), gs = (e) => /* @__PURE__ */ s(it, { fallback: /* @__PURE__ */ s(dt, {}), children: /* @__PURE__ */ s(ya, { ...e }) }), Ca = fs, Sa = gs, Zt = { Composer: ka, Sent: fs, Received: gs, Creator: Ca, Visitor: Sa }, Ea = [
828
828
  [/pdf/, "pdf"],
829
829
  [/wordprocessingml|msword|\.doc/, "doc"],
830
830
  [/spreadsheetml|ms-excel|\.xls/, "xls"],
@@ -834,42 +834,42 @@ const va = V.lazy(() => import("./Card-b_mGrfMp.js")), xa = V.lazy(() => import(
834
834
  [/plain|rtf/, "text"],
835
835
  [/markdown/, "markdown"]
836
836
  ];
837
- function le(e) {
837
+ function ce(e) {
838
838
  return e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : e.startsWith("image/") ? "image" : "document";
839
839
  }
840
- function gs(e) {
841
- const t = ka.find(
840
+ function ps(e) {
841
+ const t = Ea.find(
842
842
  ([n]) => n.test(e)
843
843
  );
844
844
  return t ? t[1] : "generic";
845
845
  }
846
- const Ca = {
847
- video: os,
848
- audio: Ln,
849
- image: Rn,
850
- document: ls
851
- }, Ea = {
852
- pdf: Un,
853
- doc: Bn,
854
- xls: $n,
855
- csv: On,
856
- ppt: Fn,
857
- zip: Pn,
858
- text: zn,
859
- markdown: Dn,
860
- generic: ls
846
+ const Ia = {
847
+ video: cs,
848
+ audio: zn,
849
+ image: Ln,
850
+ document: os
851
+ }, Ta = {
852
+ pdf: Vn,
853
+ doc: jn,
854
+ xls: Un,
855
+ csv: Bn,
856
+ ppt: $n,
857
+ zip: On,
858
+ text: Fn,
859
+ markdown: Pn,
860
+ generic: os
861
861
  };
862
- function Sa(e) {
863
- const t = le(e);
864
- return t !== "document" ? Ca[t] : Ea[gs(e)];
862
+ function Aa(e) {
863
+ const t = ce(e);
864
+ return t !== "document" ? Ia[t] : Ta[ps(e)];
865
865
  }
866
866
  function we(e, t) {
867
- return V.createElement(Sa(e), t);
867
+ return V.createElement(Aa(e), t);
868
868
  }
869
- const Ia = (e) => {
869
+ const Ma = (e) => {
870
870
  var t, n;
871
871
  return "touches" in e ? ((t = e.touches[0]) == null ? void 0 : t.clientX) ?? ((n = e.changedTouches[0]) == null ? void 0 : n.clientX) ?? 0 : e.clientX;
872
- }, Ta = ({
872
+ }, Ra = ({
873
873
  source: e,
874
874
  mimeType: t,
875
875
  poster: n,
@@ -881,7 +881,7 @@ const Ia = (e) => {
881
881
  muted: d = !1,
882
882
  onContainerClick: u
883
883
  }) => {
884
- const p = le(t), h = G(null), f = G(null), c = G(null), v = G(r), [w, b] = U(a), [g, x] = U(0), [N, C] = U(!1), [T, A] = U(!1), [L, $] = U(!1), [F, D] = U(!1), [y, I] = U(!0), [E, R] = U(null), S = Z(() => {
884
+ const p = ce(t), h = G(null), f = G(null), c = G(null), v = G(r), [w, b] = U(a), [g, x] = U(0), [N, C] = U(!1), [T, A] = U(!1), [D, $] = U(!1), [F, L] = U(!1), [y, I] = U(!0), [S, R] = U(null), E = Z(() => {
885
885
  $(!1), b(!0);
886
886
  }, []), z = Z((_) => {
887
887
  const M = f.current;
@@ -889,7 +889,7 @@ const Ia = (e) => {
889
889
  const H = M.getBoundingClientRect();
890
890
  return Math.max(
891
891
  0,
892
- Math.min(1, (Ia(_) - H.left) / H.width)
892
+ Math.min(1, (Ma(_) - H.left) / H.width)
893
893
  );
894
894
  }, []), O = Z((_) => {
895
895
  const M = h.current;
@@ -927,20 +927,20 @@ const Ia = (e) => {
927
927
  window.removeEventListener("mousemove", _), window.removeEventListener("mouseup", M), window.removeEventListener("touchmove", _), window.removeEventListener("touchend", M);
928
928
  };
929
929
  }, [N, z, O]);
930
- const X = E ? { aspectRatio: String(E) } : void 0, ee = E ? "" : " aspect-video", K = Math.round(g * 100);
930
+ const X = S ? { aspectRatio: String(S) } : void 0, te = S ? "" : " aspect-video", K = Math.round(g * 100);
931
931
  return /* @__PURE__ */ m(
932
932
  "div",
933
933
  {
934
934
  role: "button",
935
935
  tabIndex: 0,
936
- className: `relative cursor-pointer overflow-hidden bg-black ${ee}`,
936
+ className: `relative cursor-pointer overflow-hidden bg-black ${te}`,
937
937
  style: X,
938
938
  onClick: (_) => {
939
939
  if (u) {
940
940
  u(_);
941
941
  return;
942
942
  }
943
- L || o && b((M) => !M);
943
+ D || o && b((M) => !M);
944
944
  },
945
945
  onKeyDown: (_) => {
946
946
  if (!(_.key !== "Enter" && _.key !== " ")) {
@@ -948,7 +948,7 @@ const Ia = (e) => {
948
948
  u(_);
949
949
  return;
950
950
  }
951
- L || o && b((M) => !M);
951
+ D || o && b((M) => !M);
952
952
  }
953
953
  },
954
954
  children: [
@@ -972,11 +972,11 @@ const Ia = (e) => {
972
972
  loop: i,
973
973
  muted: d,
974
974
  style: { width: "100%", height: "100%" },
975
- onLoadStart: () => D(!0),
975
+ onLoadStart: () => L(!0),
976
976
  onCanPlay: () => {
977
- D(!1), I(!1);
977
+ L(!1), I(!1);
978
978
  },
979
- onWaiting: () => D(!0),
979
+ onWaiting: () => L(!0),
980
980
  onPlay: () => $(!1),
981
981
  onEnded: () => {
982
982
  i || (b(!1), x(0));
@@ -992,11 +992,11 @@ const Ia = (e) => {
992
992
  muted: d,
993
993
  playsInline: !0,
994
994
  style: { width: "100%", height: "100%" },
995
- onLoadStart: () => D(!0),
995
+ onLoadStart: () => L(!0),
996
996
  onCanPlay: () => {
997
- D(!1), I(!1);
997
+ L(!1), I(!1);
998
998
  },
999
- onWaiting: () => D(!0),
999
+ onWaiting: () => L(!0),
1000
1000
  onPlay: () => $(!1),
1001
1001
  onLoadedMetadata: () => {
1002
1002
  const _ = h.current;
@@ -1008,14 +1008,14 @@ const Ia = (e) => {
1008
1008
  children: /* @__PURE__ */ s("track", { kind: "captions" })
1009
1009
  }
1010
1010
  ) }),
1011
- F && !L && /* @__PURE__ */ s("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ s(
1012
- ke,
1011
+ F && !D && /* @__PURE__ */ s("div", { className: "absolute inset-0 z-10 flex items-center justify-center", children: /* @__PURE__ */ s(
1012
+ Ce,
1013
1013
  {
1014
1014
  className: "size-8 animate-spin text-white/80",
1015
1015
  weight: "bold"
1016
1016
  }
1017
1017
  ) }),
1018
- L && !o && /* @__PURE__ */ s(
1018
+ D && !o && /* @__PURE__ */ s(
1019
1019
  "div",
1020
1020
  {
1021
1021
  className: "absolute inset-0 z-30 flex cursor-pointer items-center justify-center bg-black/35",
@@ -1023,12 +1023,12 @@ const Ia = (e) => {
1023
1023
  tabIndex: 0,
1024
1024
  "aria-label": "Play preview",
1025
1025
  onClick: (_) => {
1026
- _.stopPropagation(), S();
1026
+ _.stopPropagation(), E();
1027
1027
  },
1028
1028
  onKeyDown: (_) => {
1029
- _.key !== "Enter" && _.key !== " " || (_.preventDefault(), _.stopPropagation(), S());
1029
+ _.key !== "Enter" && _.key !== " " || (_.preventDefault(), _.stopPropagation(), E());
1030
1030
  },
1031
- children: /* @__PURE__ */ s("span", { className: "flex size-16 items-center justify-center rounded-full bg-white/20 text-white backdrop-blur-sm", children: /* @__PURE__ */ s(et, { className: "size-9 translate-x-0.5", weight: "fill" }) })
1031
+ children: /* @__PURE__ */ s("span", { className: "flex size-16 items-center justify-center rounded-full bg-white/20 text-white backdrop-blur-sm", children: /* @__PURE__ */ s(tt, { className: "size-9 translate-x-0.5", weight: "fill" }) })
1032
1032
  }
1033
1033
  ),
1034
1034
  l && !o && /* @__PURE__ */ s("div", { className: "absolute inset-x-0 bottom-0 px-3 pb-2.5 pt-6 bg-gradient-to-t from-black/40 to-transparent", children: /* @__PURE__ */ s(
@@ -1067,7 +1067,7 @@ const Ia = (e) => {
1067
1067
  },
1068
1068
  className: "shrink-0 text-white",
1069
1069
  "aria-label": w ? "Pause" : "Play",
1070
- children: w ? /* @__PURE__ */ s(jn, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ s(et, { className: "size-5 translate-x-px", weight: "fill" })
1070
+ children: w ? /* @__PURE__ */ s(Gn, { className: "size-5", weight: "fill" }) : /* @__PURE__ */ s(tt, { className: "size-5 translate-x-px", weight: "fill" })
1071
1071
  }
1072
1072
  ),
1073
1073
  /* @__PURE__ */ m(
@@ -1117,7 +1117,7 @@ const Ia = (e) => {
1117
1117
  ]
1118
1118
  }
1119
1119
  );
1120
- }, Zt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", Aa = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", ps = ({
1120
+ }, Qt = (e) => e === "dark" ? "size-12 text-white/20" : "size-12 text-black/20", Da = (e) => e === "dark" ? "aspect-video overflow-hidden bg-white/10" : "aspect-video overflow-hidden bg-black/5", bs = ({
1121
1121
  mimeType: e,
1122
1122
  sourceUrl: t,
1123
1123
  thumbnailUrl: n,
@@ -1126,9 +1126,9 @@ const Ia = (e) => {
1126
1126
  mediaPlayerProps: i,
1127
1127
  containedImage: o = !1
1128
1128
  }) => {
1129
- const l = le(e), [d, u] = U(!1);
1129
+ const l = ce(e), [d, u] = U(!1);
1130
1130
  return t && (l === "video" || l === "audio") ? /* @__PURE__ */ s(
1131
- Ta,
1131
+ Ra,
1132
1132
  {
1133
1133
  source: t,
1134
1134
  mimeType: e,
@@ -1175,11 +1175,11 @@ const Ia = (e) => {
1175
1175
  {
1176
1176
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1177
1177
  children: we(e, {
1178
- className: Zt(r),
1178
+ className: Qt(r),
1179
1179
  weight: "regular"
1180
1180
  })
1181
1181
  }
1182
- ) : n ? /* @__PURE__ */ s("div", { className: `relative ${Aa(r)}`, children: /* @__PURE__ */ s(
1182
+ ) : n ? /* @__PURE__ */ s("div", { className: `relative ${Da(r)}`, children: /* @__PURE__ */ s(
1183
1183
  "img",
1184
1184
  {
1185
1185
  src: n,
@@ -1192,12 +1192,12 @@ const Ia = (e) => {
1192
1192
  {
1193
1193
  className: `flex aspect-video w-full items-center justify-center ${r === "dark" ? "bg-white/10" : "bg-black/5"}`,
1194
1194
  children: we(e, {
1195
- className: Zt(r),
1195
+ className: Qt(r),
1196
1196
  weight: "regular"
1197
1197
  })
1198
1198
  }
1199
1199
  );
1200
- }, bs = ({
1200
+ }, vs = ({
1201
1201
  variant: e,
1202
1202
  thumbnail: t,
1203
1203
  title: n,
@@ -1263,28 +1263,28 @@ const Ia = (e) => {
1263
1263
  }
1264
1264
  );
1265
1265
  };
1266
- function vs(e) {
1266
+ function xs(e) {
1267
1267
  return e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : `${(e / (1024 * 1024)).toFixed(1)} MB`;
1268
1268
  }
1269
- function dt(e) {
1269
+ function ut(e) {
1270
1270
  return `w-[280px] select-none overflow-hidden rounded-[24px] ${e ? "bg-[#121110]" : "bg-[#F3F3F1]"} shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_4px_8px_rgba(0,0,0,0.06)]`;
1271
1271
  }
1272
- function Ma(e) {
1272
+ function La(e) {
1273
1273
  return e ? "bg-white/10" : "bg-black/5";
1274
1274
  }
1275
- function Ra(e) {
1275
+ function za(e) {
1276
1276
  return e ? "text-white" : "text-black";
1277
1277
  }
1278
- function La(e) {
1278
+ function Pa(e) {
1279
1279
  return e ? "text-white/55" : "text-black/55";
1280
1280
  }
1281
- function Da(e) {
1281
+ function Fa(e) {
1282
1282
  return e ? "text-white/40" : "text-black/40";
1283
1283
  }
1284
- function za(e) {
1284
+ function Oa(e) {
1285
1285
  return e ? "text-white/20" : "text-black/20";
1286
1286
  }
1287
- const ut = ({ attachment: e, isMyMessage: t }) => {
1287
+ const mt = ({ attachment: e, isMyMessage: t }) => {
1288
1288
  const { title: n, text: a, image_url: r, og_scrape_url: i, title_link: o } = e, l = i ?? o, d = typeof l == "string" && l.trim() !== "" ? l : void 0, u = /* @__PURE__ */ m(V.Fragment, { children: [
1289
1289
  /* @__PURE__ */ s("div", { className: "p-2", children: r ? /* @__PURE__ */ s(
1290
1290
  "img",
@@ -1296,26 +1296,26 @@ const ut = ({ attachment: e, isMyMessage: t }) => {
1296
1296
  ) : /* @__PURE__ */ s(
1297
1297
  "div",
1298
1298
  {
1299
- className: `aspect-video w-full rounded-[20px] ${Ma(t)} flex items-center justify-center`,
1300
- children: /* @__PURE__ */ s(Vn, { className: `size-12 ${za(t)}` })
1299
+ className: `aspect-video w-full rounded-[20px] ${La(t)} flex items-center justify-center`,
1300
+ children: /* @__PURE__ */ s(Hn, { className: `size-12 ${Oa(t)}` })
1301
1301
  }
1302
1302
  ) }),
1303
1303
  /* @__PURE__ */ m("div", { className: "px-3 pb-3", children: [
1304
- n && /* @__PURE__ */ s("p", { className: `truncate text-[14px] font-medium leading-5 ${Ra(t)}`, children: n }),
1305
- a && /* @__PURE__ */ s("p", { className: `truncate text-[12px] leading-4 ${La(t)}`, children: a }),
1306
- d && /* @__PURE__ */ s("p", { className: `mt-1 truncate text-[12px] leading-4 ${Da(t)}`, children: d })
1304
+ n && /* @__PURE__ */ s("p", { className: `truncate text-[14px] font-medium leading-5 ${za(t)}`, children: n }),
1305
+ a && /* @__PURE__ */ s("p", { className: `truncate text-[12px] leading-4 ${Pa(t)}`, children: a }),
1306
+ d && /* @__PURE__ */ s("p", { className: `mt-1 truncate text-[12px] leading-4 ${Fa(t)}`, children: d })
1307
1307
  ] })
1308
1308
  ] });
1309
1309
  return d ? /* @__PURE__ */ s("a", { href: d, target: "_blank", rel: "noopener noreferrer", className: "block no-underline", children: u }) : /* @__PURE__ */ s("div", { className: "block", children: u });
1310
1310
  };
1311
- function xs(e) {
1311
+ function ws(e) {
1312
1312
  return e.type === "link" || !!e.og_scrape_url && !e.asset_url;
1313
1313
  }
1314
- function mt(e) {
1314
+ function ht(e) {
1315
1315
  var t;
1316
- return (t = e.attachments) == null ? void 0 : t.find(xs);
1316
+ return (t = e.attachments) == null ? void 0 : t.find(ws);
1317
1317
  }
1318
- async function Pa(e, t) {
1318
+ async function $a(e, t) {
1319
1319
  let n;
1320
1320
  try {
1321
1321
  n = t ?? new URL(e).pathname.split("/").pop() ?? "download";
@@ -1327,7 +1327,7 @@ async function Pa(e, t) {
1327
1327
  const r = await a.blob(), i = URL.createObjectURL(r), o = document.createElement("a");
1328
1328
  o.href = i, o.download = n, o.style.display = "none", document.body.appendChild(o), o.click(), document.body.removeChild(o), URL.revokeObjectURL(i);
1329
1329
  }
1330
- const Fa = ({
1330
+ const Ba = ({
1331
1331
  url: e,
1332
1332
  filename: t
1333
1333
  }) => {
@@ -1339,7 +1339,7 @@ const Fa = ({
1339
1339
  onClick: (i) => {
1340
1340
  i.stopPropagation();
1341
1341
  const o = window.open("", "_blank", "noopener,noreferrer");
1342
- a(!0), Pa(e, t).then(() => {
1342
+ a(!0), $a(e, t).then(() => {
1343
1343
  o == null || o.close();
1344
1344
  }).catch(() => {
1345
1345
  o && (o.location.href = e);
@@ -1347,14 +1347,14 @@ const Fa = ({
1347
1347
  },
1348
1348
  disabled: n,
1349
1349
  className: "mt-3 inline-flex h-10 w-full items-center justify-center gap-2 rounded-full bg-[#121110] px-4 text-sm font-medium leading-none text-white hover:bg-[#2a2928] disabled:opacity-70",
1350
- children: n ? /* @__PURE__ */ s(ke, { className: "size-4 animate-spin text-white", weight: "bold" }) : /* @__PURE__ */ m(V.Fragment, { children: [
1351
- /* @__PURE__ */ s(Ce, { className: "size-4 text-white", weight: "bold" }),
1350
+ children: n ? /* @__PURE__ */ s(Ce, { className: "size-4 animate-spin text-white", weight: "bold" }) : /* @__PURE__ */ m(V.Fragment, { children: [
1351
+ /* @__PURE__ */ s(Se, { className: "size-4 text-white", weight: "bold" }),
1352
1352
  "Download"
1353
1353
  ] })
1354
1354
  }
1355
1355
  );
1356
1356
  };
1357
- function ht(e) {
1357
+ function ft(e) {
1358
1358
  var h, f, c, v;
1359
1359
  const t = (h = e.attachments) == null ? void 0 : h.find(
1360
1360
  (w) => w.type === "video" && w.asset_url
@@ -1375,16 +1375,16 @@ function ht(e) {
1375
1375
  thumbnailUrl: p
1376
1376
  };
1377
1377
  }
1378
- const ws = ({
1378
+ const _s = ({
1379
1379
  resolvedUrl: e,
1380
1380
  resolvedType: t,
1381
1381
  title: n,
1382
1382
  fileSize: a,
1383
1383
  thumbnailUrl: r
1384
1384
  }) => {
1385
- const i = a !== void 0 ? vs(a) : void 0;
1385
+ const i = a !== void 0 ? xs(a) : void 0;
1386
1386
  return /* @__PURE__ */ s(
1387
- bs,
1387
+ vs,
1388
1388
  {
1389
1389
  variant: "dark",
1390
1390
  title: n,
@@ -1392,7 +1392,7 @@ const ws = ({
1392
1392
  mimeType: t,
1393
1393
  detail: i,
1394
1394
  thumbnail: /* @__PURE__ */ s(
1395
- ps,
1395
+ bs,
1396
1396
  {
1397
1397
  mimeType: t,
1398
1398
  sourceUrl: e,
@@ -1403,23 +1403,23 @@ const ws = ({
1403
1403
  )
1404
1404
  }
1405
1405
  );
1406
- }, _s = ({
1406
+ }, Ns = ({
1407
1407
  resolvedUrl: e,
1408
1408
  resolvedType: t,
1409
1409
  title: n,
1410
1410
  fileSize: a,
1411
1411
  thumbnailUrl: r
1412
1412
  }) => {
1413
- const i = le(t), o = a !== void 0 ? vs(a) : void 0;
1413
+ const i = ce(t), o = a !== void 0 ? xs(a) : void 0;
1414
1414
  return /* @__PURE__ */ s(
1415
- bs,
1415
+ vs,
1416
1416
  {
1417
1417
  variant: "light",
1418
1418
  title: n,
1419
1419
  mimeType: t,
1420
1420
  detail: o,
1421
1421
  thumbnail: /* @__PURE__ */ s(
1422
- ps,
1422
+ bs,
1423
1423
  {
1424
1424
  mimeType: t,
1425
1425
  sourceUrl: e,
@@ -1429,17 +1429,17 @@ const ws = ({
1429
1429
  containedImage: i === "image" || i === "document"
1430
1430
  }
1431
1431
  ),
1432
- action: /* @__PURE__ */ s(Fa, { url: e, filename: n })
1432
+ action: /* @__PURE__ */ s(Ba, { url: e, filename: n })
1433
1433
  }
1434
1434
  );
1435
- }, Oa = ({
1435
+ }, Ua = ({
1436
1436
  message: e,
1437
1437
  isMyMessage: t = !1
1438
1438
  }) => {
1439
- const n = mt(e), a = ht(e);
1439
+ const n = ht(e), a = ft(e);
1440
1440
  return !n && !a ? null : /* @__PURE__ */ m("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: [
1441
1441
  !t && e.user && /* @__PURE__ */ s(
1442
- se,
1442
+ ne,
1443
1443
  {
1444
1444
  className: "str-chat__avatar str-chat__message-sender-avatar",
1445
1445
  id: e.user.id,
@@ -1457,41 +1457,41 @@ const ws = ({
1457
1457
  {
1458
1458
  className: "str-chat__message-bubble",
1459
1459
  style: { padding: 0, borderRadius: 0, overflow: "visible", background: "transparent" },
1460
- children: n ? /* @__PURE__ */ s("div", { className: dt(t), children: /* @__PURE__ */ s(ut, { attachment: n, isMyMessage: t }) }) : t ? /* @__PURE__ */ s(ws, { ...a }) : /* @__PURE__ */ s(_s, { ...a })
1460
+ children: n ? /* @__PURE__ */ s("div", { className: ut(t), children: /* @__PURE__ */ s(mt, { attachment: n, isMyMessage: t }) }) : t ? /* @__PURE__ */ s(_s, { ...a }) : /* @__PURE__ */ s(Ns, { ...a })
1461
1461
  }
1462
1462
  ) })
1463
1463
  }
1464
1464
  )
1465
1465
  ] });
1466
- }, $a = ({
1466
+ }, ja = ({
1467
1467
  message: e
1468
1468
  }) => {
1469
- const t = mt(e);
1469
+ const t = ht(e);
1470
1470
  if (t)
1471
- return /* @__PURE__ */ s("div", { className: dt(!0), "data-dd-privacy": "mask", children: /* @__PURE__ */ s(ut, { attachment: t, isMyMessage: !0 }) });
1472
- const n = ht(e);
1473
- return n ? /* @__PURE__ */ s("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ s(ws, { ...n }) }) : null;
1474
- }, Ba = ({
1471
+ return /* @__PURE__ */ s("div", { className: ut(!0), "data-dd-privacy": "mask", children: /* @__PURE__ */ s(mt, { attachment: t, isMyMessage: !0 }) });
1472
+ const n = ft(e);
1473
+ return n ? /* @__PURE__ */ s("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ s(_s, { ...n }) }) : null;
1474
+ }, Va = ({
1475
1475
  message: e
1476
1476
  }) => {
1477
- const t = mt(e);
1477
+ const t = ht(e);
1478
1478
  if (t)
1479
- return /* @__PURE__ */ s("div", { className: dt(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ s(ut, { attachment: t, isMyMessage: !1 }) });
1480
- const n = ht(e);
1481
- return n ? /* @__PURE__ */ s("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ s(_s, { ...n }) }) : null;
1482
- }, il = Object.assign(Oa, {
1483
- Creator: $a,
1484
- Visitor: Ba
1485
- }), Ua = {
1479
+ return /* @__PURE__ */ s("div", { className: ut(!1), "data-dd-privacy": "mask", children: /* @__PURE__ */ s(mt, { attachment: t, isMyMessage: !1 }) });
1480
+ const n = ft(e);
1481
+ return n ? /* @__PURE__ */ s("div", { style: { display: "contents" }, "data-dd-privacy": "mask", children: /* @__PURE__ */ s(Ns, { ...n }) }) : null;
1482
+ }, ul = Object.assign(Ua, {
1483
+ Creator: ja,
1484
+ Visitor: Va
1485
+ }), Ga = {
1486
1486
  dark: "bg-[#121110]",
1487
1487
  light: "bg-[#e9eaed]"
1488
- }, ja = {
1488
+ }, Ha = {
1489
1489
  dark: "text-white",
1490
1490
  light: "text-[#080707]"
1491
- }, Va = {
1491
+ }, Ya = {
1492
1492
  dark: "border-white/[0.08]",
1493
1493
  light: "border-black/[0.08]"
1494
- }, Ga = (e) => e === "dark" ? "sender" : "receiver", Ha = {
1494
+ }, qa = (e) => e === "dark" ? "sender" : "receiver", Wa = {
1495
1495
  sender: {
1496
1496
  single: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[18px]",
1497
1497
  first: "rounded-tl-[18px] rounded-tr-[18px] rounded-bl-[18px] rounded-br-[4px]",
@@ -1513,7 +1513,7 @@ const ws = ({
1513
1513
  children: i,
1514
1514
  "data-testid": o
1515
1515
  }) => {
1516
- const l = t != null && t !== "", d = Ha[Ga(e)][a];
1516
+ const l = t != null && t !== "", d = Wa[qa(e)][a];
1517
1517
  return /* @__PURE__ */ m(
1518
1518
  "div",
1519
1519
  {
@@ -1528,10 +1528,10 @@ const ws = ({
1528
1528
  // as the surrounding `CustomMessage` text bubbles.
1529
1529
  "relative w-[280px] overflow-hidden px-2 py-2",
1530
1530
  d,
1531
- Ua[e],
1532
- ja[e],
1531
+ Ga[e],
1532
+ Ha[e],
1533
1533
  n && "border",
1534
- n && Va[e],
1534
+ n && Ya[e],
1535
1535
  r
1536
1536
  ),
1537
1537
  children: [
@@ -1574,16 +1574,16 @@ const ws = ({
1574
1574
  ),
1575
1575
  children: /* @__PURE__ */ s(Ue, { className: "size-3", weight: "bold" })
1576
1576
  }
1577
- ), Me = (e) => e === "received" ? "light" : "dark", Ya = ({
1577
+ ), Me = (e) => e === "received" ? "light" : "dark", Xa = ({
1578
1578
  firstOfGroup: e,
1579
1579
  endOfGroup: t,
1580
1580
  groupedByUser: n
1581
- }) => !n || e && t ? "single" : e ? "first" : t ? "end" : "middle", qa = ({
1581
+ }) => !n || e && t ? "single" : e ? "first" : t ? "end" : "middle", Ka = ({
1582
1582
  src: e,
1583
1583
  mimeType: t,
1584
1584
  filename: n,
1585
1585
  items: a
1586
- }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: n }] : [], Wa = ({ item: e, preload: t, trailingAction: n }) => /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
1586
+ }) => a && a.length > 0 ? a : e ? [{ src: e, mimeType: t, filename: n }] : [], Ja = ({ item: e, preload: t, trailingAction: n }) => /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
1587
1587
  /* @__PURE__ */ s(
1588
1588
  "audio",
1589
1589
  {
@@ -1595,7 +1595,7 @@ const ws = ({
1595
1595
  }
1596
1596
  ),
1597
1597
  n ?? null
1598
- ] }), ft = ({
1598
+ ] }), gt = ({
1599
1599
  state: e,
1600
1600
  src: t,
1601
1601
  mimeType: n,
@@ -1606,7 +1606,7 @@ const ws = ({
1606
1606
  preload: l,
1607
1607
  onDismiss: d
1608
1608
  }) => {
1609
- const u = Me(e), p = e === "composer" && !!d, h = qa({ src: t, mimeType: n, filename: a, items: r });
1609
+ const u = Me(e), p = e === "composer" && !!d, h = Ka({ src: t, mimeType: n, filename: a, items: r });
1610
1610
  if (h.length === 0)
1611
1611
  return null;
1612
1612
  const f = l ?? (h.length > 1 ? "none" : "metadata");
@@ -1618,7 +1618,7 @@ const ws = ({
1618
1618
  groupPosition: o,
1619
1619
  "data-testid": "audio-attachment",
1620
1620
  children: /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: h.map((c, v) => /* @__PURE__ */ s(
1621
- Wa,
1621
+ Ja,
1622
1622
  {
1623
1623
  item: c,
1624
1624
  preload: f,
@@ -1632,15 +1632,15 @@ const ws = ({
1632
1632
  )) })
1633
1633
  }
1634
1634
  );
1635
- }, Xa = (e) => /* @__PURE__ */ s(ft, { ...e, state: "composer" }), Ka = (e) => /* @__PURE__ */ s(ft, { ...e, state: "sent" }), Ja = (e) => /* @__PURE__ */ s(ft, { ...e, state: "received" }), Za = {
1636
- Composer: Xa,
1637
- Sent: Ka,
1638
- Received: Ja
1635
+ }, Za = (e) => /* @__PURE__ */ s(gt, { ...e, state: "composer" }), Qa = (e) => /* @__PURE__ */ s(gt, { ...e, state: "sent" }), er = (e) => /* @__PURE__ */ s(gt, { ...e, state: "received" }), tr = {
1636
+ Composer: Za,
1637
+ Sent: Qa,
1638
+ Received: er
1639
1639
  };
1640
- function Qa(e) {
1640
+ function sr(e) {
1641
1641
  return !Number.isFinite(e) || e < 0 ? "" : e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFixed(1)} KB` : e < 1024 * 1024 * 1024 ? `${(e / (1024 * 1024)).toFixed(2)} MB` : `${(e / (1024 * 1024 * 1024)).toFixed(2)} GB`;
1642
1642
  }
1643
- const er = {
1643
+ const nr = {
1644
1644
  pdf: "PDF",
1645
1645
  doc: "DOC",
1646
1646
  xls: "XLS",
@@ -1650,7 +1650,7 @@ const er = {
1650
1650
  text: "TXT",
1651
1651
  markdown: "MD"
1652
1652
  };
1653
- function tr(e, t) {
1653
+ function ar(e, t) {
1654
1654
  if (t) {
1655
1655
  const r = t.lastIndexOf(".");
1656
1656
  if (r > 0 && r < t.length - 1) {
@@ -1659,8 +1659,8 @@ function tr(e, t) {
1659
1659
  }
1660
1660
  }
1661
1661
  if (!e) return;
1662
- if (le(e) === "document") {
1663
- const r = gs(e), i = er[r];
1662
+ if (ce(e) === "document") {
1663
+ const r = ps(e), i = nr[r];
1664
1664
  if (i) return i;
1665
1665
  if (e === "application/octet-stream") return;
1666
1666
  }
@@ -1668,8 +1668,8 @@ function tr(e, t) {
1668
1668
  if (!(!a || a === "*"))
1669
1669
  return a.toUpperCase();
1670
1670
  }
1671
- function sr(e, t, n) {
1672
- const a = tr(e, t), r = typeof n == "number" && n > 0 ? Qa(n) : void 0;
1671
+ function rr(e, t, n) {
1672
+ const a = ar(e, t), r = typeof n == "number" && n > 0 ? sr(n) : void 0;
1673
1673
  return [a, r].filter(Boolean).join(" · ") || void 0;
1674
1674
  }
1675
1675
  function re(e) {
@@ -1680,16 +1680,16 @@ function re(e) {
1680
1680
  return "download";
1681
1681
  }
1682
1682
  }
1683
- const nr = {
1683
+ const ir = {
1684
1684
  dark: "text-white/55",
1685
1685
  light: "text-black/65"
1686
- }, ar = {
1686
+ }, lr = {
1687
1687
  dark: "bg-white/10",
1688
1688
  light: "bg-black/5"
1689
- }, rr = {
1689
+ }, or = {
1690
1690
  dark: "text-white/85",
1691
1691
  light: "text-black/85"
1692
- }, Ns = ({
1692
+ }, ys = ({
1693
1693
  variant: e,
1694
1694
  filename: t,
1695
1695
  title: n,
@@ -1699,16 +1699,16 @@ const nr = {
1699
1699
  activateLabel: o,
1700
1700
  trailingAction: l
1701
1701
  }) => {
1702
- const d = n ?? t ?? "File", u = sr(a, t, r), p = /* @__PURE__ */ s(
1702
+ const d = n ?? t ?? "File", u = rr(a, t, r), p = /* @__PURE__ */ s(
1703
1703
  "div",
1704
1704
  {
1705
1705
  className: k(
1706
1706
  "flex size-10 shrink-0 items-center justify-center rounded-sm",
1707
- ar[e]
1707
+ lr[e]
1708
1708
  ),
1709
1709
  "aria-hidden": !0,
1710
1710
  children: we(a, {
1711
- className: k("size-6", rr[e]),
1711
+ className: k("size-6", or[e]),
1712
1712
  weight: "regular"
1713
1713
  })
1714
1714
  }
@@ -1719,7 +1719,7 @@ const nr = {
1719
1719
  {
1720
1720
  className: k(
1721
1721
  "truncate text-xs leading-4",
1722
- nr[e]
1722
+ ir[e]
1723
1723
  ),
1724
1724
  children: u
1725
1725
  }
@@ -1739,7 +1739,7 @@ const nr = {
1739
1739
  h
1740
1740
  ]
1741
1741
  }
1742
- ) : /* @__PURE__ */ m(te, { children: [
1742
+ ) : /* @__PURE__ */ m(ee, { children: [
1743
1743
  p,
1744
1744
  h
1745
1745
  ] });
@@ -1748,7 +1748,7 @@ const nr = {
1748
1748
  l ? /* @__PURE__ */ s("div", { className: "shrink-0", children: l }) : null
1749
1749
  ] });
1750
1750
  };
1751
- async function ys(e, t) {
1751
+ async function ks(e, t) {
1752
1752
  const n = t ?? re(e);
1753
1753
  try {
1754
1754
  const a = await fetch(e, { mode: "cors" });
@@ -1762,14 +1762,14 @@ async function ys(e, t) {
1762
1762
  }
1763
1763
  }
1764
1764
  }
1765
- const ir = ({
1765
+ const cr = ({
1766
1766
  src: e,
1767
1767
  filename: t,
1768
1768
  fileSize: n,
1769
1769
  mimeType: a,
1770
1770
  title: r,
1771
1771
  items: i
1772
- }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: n, mimeType: a, title: r }] : [], lr = ({
1772
+ }) => i && i.length > 0 ? i : e ? [{ src: e, filename: t, fileSize: n, mimeType: a, title: r }] : [], dr = ({
1773
1773
  variant: e,
1774
1774
  item: t,
1775
1775
  index: n,
@@ -1778,7 +1778,7 @@ const ir = ({
1778
1778
  }) => {
1779
1779
  const i = t.filename ?? re(t.src);
1780
1780
  return /* @__PURE__ */ s(
1781
- Ns,
1781
+ ys,
1782
1782
  {
1783
1783
  variant: e,
1784
1784
  filename: i,
@@ -1790,7 +1790,7 @@ const ir = ({
1790
1790
  trailingAction: r
1791
1791
  }
1792
1792
  );
1793
- }, gt = ({
1793
+ }, pt = ({
1794
1794
  state: e,
1795
1795
  src: t,
1796
1796
  filename: n,
@@ -1803,7 +1803,7 @@ const ir = ({
1803
1803
  onClick: u,
1804
1804
  onDismiss: p
1805
1805
  }) => {
1806
- const h = Me(e), f = e === "composer" && !!p, c = ir({
1806
+ const h = Me(e), f = e === "composer" && !!p, c = cr({
1807
1807
  src: t,
1808
1808
  filename: n,
1809
1809
  fileSize: a,
@@ -1815,7 +1815,7 @@ const ir = ({
1815
1815
  const g = c[b];
1816
1816
  if (!g) return;
1817
1817
  const x = g.filename ?? re(g.src);
1818
- ys(g.src, x);
1818
+ ks(g.src, x);
1819
1819
  };
1820
1820
  if (c.length === 0)
1821
1821
  return null;
@@ -1827,7 +1827,7 @@ const ir = ({
1827
1827
  h === "dark" ? "text-white/70" : "text-black/70"
1828
1828
  ),
1829
1829
  "aria-hidden": !0,
1830
- children: /* @__PURE__ */ s(Ce, { className: "size-5", weight: "bold" })
1830
+ children: /* @__PURE__ */ s(Se, { className: "size-5", weight: "bold" })
1831
1831
  }
1832
1832
  );
1833
1833
  return /* @__PURE__ */ s(
@@ -1838,7 +1838,7 @@ const ir = ({
1838
1838
  groupPosition: d,
1839
1839
  "data-testid": "file-attachment",
1840
1840
  children: /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: c.map((b, g) => /* @__PURE__ */ s(
1841
- lr,
1841
+ dr,
1842
1842
  {
1843
1843
  variant: h,
1844
1844
  item: b,
@@ -1850,16 +1850,16 @@ const ir = ({
1850
1850
  )) })
1851
1851
  }
1852
1852
  );
1853
- }, or = (e) => /* @__PURE__ */ s(gt, { ...e, state: "composer" }), cr = (e) => /* @__PURE__ */ s(gt, { ...e, state: "sent" }), dr = (e) => /* @__PURE__ */ s(gt, { ...e, state: "received" }), ur = {
1854
- Composer: or,
1855
- Sent: cr,
1856
- Received: dr
1857
- }, pt = ({
1853
+ }, ur = (e) => /* @__PURE__ */ s(pt, { ...e, state: "composer" }), mr = (e) => /* @__PURE__ */ s(pt, { ...e, state: "sent" }), hr = (e) => /* @__PURE__ */ s(pt, { ...e, state: "received" }), fr = {
1854
+ Composer: ur,
1855
+ Sent: mr,
1856
+ Received: hr
1857
+ }, bt = ({
1858
1858
  onPrev: e,
1859
1859
  onNext: t,
1860
1860
  prevLabel: n = "Previous",
1861
1861
  nextLabel: a = "Next"
1862
- }) => /* @__PURE__ */ m(te, { children: [
1862
+ }) => /* @__PURE__ */ m(ee, { children: [
1863
1863
  /* @__PURE__ */ s(
1864
1864
  "button",
1865
1865
  {
@@ -1867,7 +1867,7 @@ const ir = ({
1867
1867
  onClick: e,
1868
1868
  "aria-label": n,
1869
1869
  className: "mes-media-viewer__nav mes-media-viewer__nav--prev",
1870
- children: /* @__PURE__ */ s(Gn, { size: 20, weight: "bold", "aria-hidden": !0 })
1870
+ children: /* @__PURE__ */ s(Yn, { size: 20, weight: "bold", "aria-hidden": !0 })
1871
1871
  }
1872
1872
  ),
1873
1873
  /* @__PURE__ */ s(
@@ -1880,7 +1880,7 @@ const ir = ({
1880
1880
  children: /* @__PURE__ */ s(ve, { size: 20, weight: "bold", "aria-hidden": !0 })
1881
1881
  }
1882
1882
  )
1883
- ] }), ks = ({
1883
+ ] }), Cs = ({
1884
1884
  url: e,
1885
1885
  filename: t,
1886
1886
  variant: n = "pill",
@@ -1891,7 +1891,7 @@ const ir = ({
1891
1891
  }) => {
1892
1892
  const [l, d] = U(!1), u = Z(
1893
1893
  (c) => {
1894
- c.stopPropagation(), !l && (d(!0), ys(e, t).catch(() => {
1894
+ c.stopPropagation(), !l && (d(!0), ks(e, t).catch(() => {
1895
1895
  }).finally(() => {
1896
1896
  d(!1), o == null || o();
1897
1897
  }));
@@ -1916,14 +1916,14 @@ const ir = ({
1916
1916
  }[i]
1917
1917
  ),
1918
1918
  children: l ? /* @__PURE__ */ s(
1919
- ke,
1919
+ Ce,
1920
1920
  {
1921
1921
  className: "size-4 animate-spin",
1922
1922
  weight: "bold",
1923
1923
  "aria-hidden": !0
1924
1924
  }
1925
1925
  ) : /* @__PURE__ */ s(
1926
- Ce,
1926
+ Se,
1927
1927
  {
1928
1928
  className: "size-5 shrink-0",
1929
1929
  weight: "bold",
@@ -1939,7 +1939,7 @@ const ir = ({
1939
1939
  disabled: l,
1940
1940
  "aria-label": a,
1941
1941
  className: "mes-media-viewer__action",
1942
- children: l ? /* @__PURE__ */ s(ke, { size: 20, weight: "bold", "aria-hidden": !0 }) : /* @__PURE__ */ s(Ce, { size: 20, weight: "bold", "aria-hidden": !0 })
1942
+ children: l ? /* @__PURE__ */ s(Ce, { size: 20, weight: "bold", "aria-hidden": !0 }) : /* @__PURE__ */ s(Se, { size: 20, weight: "bold", "aria-hidden": !0 })
1943
1943
  }
1944
1944
  ) : /* @__PURE__ */ m(
1945
1945
  "button",
@@ -1954,18 +1954,18 @@ const ir = ({
1954
1954
  ),
1955
1955
  children: [
1956
1956
  l ? /* @__PURE__ */ s(
1957
- ke,
1957
+ Ce,
1958
1958
  {
1959
1959
  className: "size-4 animate-spin",
1960
1960
  weight: "bold",
1961
1961
  "aria-hidden": !0
1962
1962
  }
1963
- ) : /* @__PURE__ */ s(Ce, { ...f, "aria-hidden": !0 }),
1963
+ ) : /* @__PURE__ */ s(Se, { ...f, "aria-hidden": !0 }),
1964
1964
  p ? null : a
1965
1965
  ]
1966
1966
  }
1967
1967
  );
1968
- }, Xe = (e, t, n) => Math.min(Math.max(e, t), n), bt = ({
1968
+ }, Xe = (e, t, n) => Math.min(Math.max(e, t), n), vt = ({
1969
1969
  length: e,
1970
1970
  initialIndex: t,
1971
1971
  open: n
@@ -1990,7 +1990,7 @@ const ir = ({
1990
1990
  };
1991
1991
  return window.addEventListener("keydown", d), () => window.removeEventListener("keydown", d);
1992
1992
  }, [n, e, o, l]), { index: r, prev: o, next: l };
1993
- }, vt = ({
1993
+ }, xt = ({
1994
1994
  open: e,
1995
1995
  onClose: t,
1996
1996
  ariaLabel: n,
@@ -2080,29 +2080,29 @@ const ir = ({
2080
2080
  ]
2081
2081
  }
2082
2082
  );
2083
- }, Cs = ({
2083
+ }, Ss = ({
2084
2084
  open: e,
2085
2085
  items: t,
2086
2086
  initialIndex: n = 0,
2087
2087
  onClose: a
2088
2088
  }) => {
2089
- const { index: r, prev: i, next: o } = bt({
2089
+ const { index: r, prev: i, next: o } = vt({
2090
2090
  length: t.length,
2091
2091
  initialIndex: n,
2092
2092
  open: e
2093
- }), l = t[r], d = ae(
2093
+ }), l = t[r], d = se(
2094
2094
  () => (l == null ? void 0 : l.filename) ?? (l ? re(l.src) : "image"),
2095
2095
  [l]
2096
2096
  );
2097
2097
  return l ? /* @__PURE__ */ m(
2098
- vt,
2098
+ xt,
2099
2099
  {
2100
2100
  open: e,
2101
2101
  onClose: a,
2102
2102
  ariaLabel: d,
2103
2103
  counter: t.length > 1 ? `${r + 1} / ${t.length}` : void 0,
2104
2104
  actions: /* @__PURE__ */ s(
2105
- ks,
2105
+ Cs,
2106
2106
  {
2107
2107
  url: l.src,
2108
2108
  filename: d,
@@ -2125,7 +2125,7 @@ const ir = ({
2125
2125
  `${r}:${l.src}`
2126
2126
  ),
2127
2127
  t.length > 1 ? /* @__PURE__ */ s(
2128
- pt,
2128
+ bt,
2129
2129
  {
2130
2130
  onPrev: i,
2131
2131
  onNext: o,
@@ -2136,7 +2136,7 @@ const ir = ({
2136
2136
  ]
2137
2137
  }
2138
2138
  ) : null;
2139
- }, mr = "relative block size-full overflow-hidden bg-black/5 outline-none focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-black", Es = ({
2139
+ }, gr = "relative block size-full overflow-hidden bg-black/5 outline-none focus-visible:ring-2 focus-visible:ring-white/80 focus-visible:ring-offset-2 focus-visible:ring-offset-black", Es = ({
2140
2140
  tiles: e,
2141
2141
  onTileActivate: t,
2142
2142
  maxVisible: n = 4,
@@ -2145,7 +2145,7 @@ const ir = ({
2145
2145
  const r = e.length;
2146
2146
  if (r === 0) return null;
2147
2147
  const i = e.slice(0, Math.min(r, n)), o = r - i.length, l = (d, u, p) => {
2148
- const h = k(mr, "h-full w-full");
2148
+ const h = k(gr, "h-full w-full");
2149
2149
  return t ? /* @__PURE__ */ m(
2150
2150
  "button",
2151
2151
  {
@@ -2214,7 +2214,7 @@ const ir = ({
2214
2214
  [e]
2215
2215
  ), o = Z(() => n(!1), []);
2216
2216
  return { viewerOpen: t, viewerIndex: a, handleActivate: i, closeViewer: o };
2217
- }, hr = (e, t, n, a) => ({
2217
+ }, pr = (e, t, n, a) => ({
2218
2218
  ariaLabel: `Open image ${t + 1} of ${n}`,
2219
2219
  content: /* @__PURE__ */ s(
2220
2220
  "img",
@@ -2229,15 +2229,15 @@ const ir = ({
2229
2229
  className: "absolute inset-0 size-full rounded-md object-cover"
2230
2230
  }
2231
2231
  )
2232
- }), fr = ({
2232
+ }), br = ({
2233
2233
  src: e,
2234
2234
  alt: t,
2235
2235
  items: n
2236
- }) => n && n.length > 0 ? n : e ? [{ src: e, alt: t }] : [], Ss = (e, t) => e.map((n, a) => ({
2236
+ }) => n && n.length > 0 ? n : e ? [{ src: e, alt: t }] : [], Is = (e, t) => e.map((n, a) => ({
2237
2237
  src: n.src,
2238
2238
  alt: n.alt,
2239
2239
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
2240
- })), gr = ({ src: e, alt: t, filename: n, loading: a = "lazy", onClick: r, onDismiss: i }) => {
2240
+ })), vr = ({ src: e, alt: t, filename: n, loading: a = "lazy", onClick: r, onDismiss: i }) => {
2241
2241
  const { viewerOpen: o, viewerIndex: l, handleActivate: d, closeViewer: u } = Re(
2242
2242
  r
2243
2243
  );
@@ -2264,16 +2264,16 @@ const ir = ({
2264
2264
  ),
2265
2265
  i ? /* @__PURE__ */ s("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ s(Ae, { onClick: i }) }) : null,
2266
2266
  /* @__PURE__ */ s(
2267
- Cs,
2267
+ Ss,
2268
2268
  {
2269
2269
  open: o,
2270
- items: Ss([{ src: e, alt: t }], n),
2270
+ items: Is([{ src: e, alt: t }], n),
2271
2271
  initialIndex: l,
2272
2272
  onClose: u
2273
2273
  }
2274
2274
  )
2275
2275
  ] });
2276
- }, Is = ({
2276
+ }, Ts = ({
2277
2277
  state: e,
2278
2278
  src: t,
2279
2279
  alt: n,
@@ -2284,13 +2284,13 @@ const ir = ({
2284
2284
  loading: l = "lazy",
2285
2285
  onClick: d
2286
2286
  }) => {
2287
- const u = fr({ src: t, alt: n, items: r }), p = Me(e), { viewerOpen: h, viewerIndex: f, handleActivate: c, closeViewer: v } = Re(
2287
+ const u = br({ src: t, alt: n, items: r }), p = Me(e), { viewerOpen: h, viewerIndex: f, handleActivate: c, closeViewer: v } = Re(
2288
2288
  d
2289
2289
  );
2290
2290
  if (u.length === 0)
2291
2291
  return null;
2292
2292
  const w = u.map(
2293
- (b, g) => hr(b, g, u.length, l)
2293
+ (b, g) => pr(b, g, u.length, l)
2294
2294
  );
2295
2295
  return /* @__PURE__ */ m(
2296
2296
  Te,
@@ -2302,10 +2302,10 @@ const ir = ({
2302
2302
  children: [
2303
2303
  /* @__PURE__ */ s("div", { className: "relative", children: /* @__PURE__ */ s(Es, { tiles: w, onTileActivate: c }) }),
2304
2304
  /* @__PURE__ */ s(
2305
- Cs,
2305
+ Ss,
2306
2306
  {
2307
2307
  open: h,
2308
- items: Ss(u, a),
2308
+ items: Is(u, a),
2309
2309
  initialIndex: f,
2310
2310
  onClose: v
2311
2311
  }
@@ -2313,29 +2313,29 @@ const ir = ({
2313
2313
  ]
2314
2314
  }
2315
2315
  );
2316
- }, pr = (e) => /* @__PURE__ */ s(gr, { ...e }), br = (e) => /* @__PURE__ */ s(Is, { ...e, state: "sent" }), vr = (e) => /* @__PURE__ */ s(Is, { ...e, state: "received" }), xr = {
2317
- Composer: pr,
2318
- Sent: br,
2319
- Received: vr
2320
- }, wr = ({
2316
+ }, xr = (e) => /* @__PURE__ */ s(vr, { ...e }), wr = (e) => /* @__PURE__ */ s(Ts, { ...e, state: "sent" }), _r = (e) => /* @__PURE__ */ s(Ts, { ...e, state: "received" }), Nr = {
2317
+ Composer: xr,
2318
+ Sent: wr,
2319
+ Received: _r
2320
+ }, yr = ({
2321
2321
  open: e,
2322
2322
  items: t,
2323
2323
  initialIndex: n = 0,
2324
2324
  onClose: a
2325
2325
  }) => {
2326
- const { index: r, prev: i, next: o } = bt({
2326
+ const { index: r, prev: i, next: o } = vt({
2327
2327
  length: t.length,
2328
2328
  initialIndex: n,
2329
2329
  open: e
2330
- }), l = t[r], d = ae(
2330
+ }), l = t[r], d = se(
2331
2331
  () => (l == null ? void 0 : l.filename) ?? (l ? re(l.src) : "document"),
2332
2332
  [l]
2333
- ), u = ae(
2334
- () => l ? _r(l.src) : void 0,
2333
+ ), u = se(
2334
+ () => l ? kr(l.src) : void 0,
2335
2335
  [l]
2336
2336
  );
2337
2337
  return !l || !u ? null : /* @__PURE__ */ m(
2338
- vt,
2338
+ xt,
2339
2339
  {
2340
2340
  open: e,
2341
2341
  onClose: a,
@@ -2354,7 +2354,7 @@ const ir = ({
2354
2354
  `${r}:${l.src}`
2355
2355
  ),
2356
2356
  t.length > 1 ? /* @__PURE__ */ s(
2357
- pt,
2357
+ bt,
2358
2358
  {
2359
2359
  onPrev: i,
2360
2360
  onNext: o,
@@ -2365,16 +2365,16 @@ const ir = ({
2365
2365
  ]
2366
2366
  }
2367
2367
  );
2368
- }, _r = (e) => {
2368
+ }, kr = (e) => {
2369
2369
  const t = e.indexOf("#"), n = t === -1 ? e : e.slice(0, t), a = t === -1 ? "" : e.slice(t + 1), r = new URLSearchParams(a);
2370
2370
  return r.has("toolbar") || r.set("toolbar", "0"), r.has("navpanes") || r.set("navpanes", "0"), `${n}#${r.toString()}`;
2371
- }, Nr = ({
2371
+ }, Cr = ({
2372
2372
  src: e,
2373
2373
  filename: t,
2374
2374
  fileSize: n,
2375
2375
  title: a,
2376
2376
  items: r
2377
- }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: n, title: a }] : [], yr = ({
2377
+ }) => r && r.length > 0 ? r : e ? [{ src: e, filename: t, fileSize: n, title: a }] : [], Sr = ({
2378
2378
  variant: e,
2379
2379
  item: t,
2380
2380
  index: n,
@@ -2383,7 +2383,7 @@ const ir = ({
2383
2383
  }) => {
2384
2384
  const i = t.filename ?? re(t.src);
2385
2385
  return /* @__PURE__ */ s(
2386
- Ns,
2386
+ ys,
2387
2387
  {
2388
2388
  variant: e,
2389
2389
  filename: i,
@@ -2395,7 +2395,7 @@ const ir = ({
2395
2395
  trailingAction: r
2396
2396
  }
2397
2397
  );
2398
- }, xt = ({
2398
+ }, wt = ({
2399
2399
  state: e,
2400
2400
  src: t,
2401
2401
  filename: n,
@@ -2407,7 +2407,7 @@ const ir = ({
2407
2407
  onClick: d,
2408
2408
  onDismiss: u
2409
2409
  }) => {
2410
- const p = Me(e), h = Nr({ src: t, filename: n, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: v, closeViewer: w } = Re(
2410
+ const p = Me(e), h = Cr({ src: t, filename: n, fileSize: a, title: r, items: i }), { viewerOpen: f, viewerIndex: c, handleActivate: v, closeViewer: w } = Re(
2411
2411
  d
2412
2412
  ), b = e === "composer" && !!u;
2413
2413
  if (h.length === 0)
@@ -2426,7 +2426,7 @@ const ir = ({
2426
2426
  children: [
2427
2427
  /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: h.map((x, N) => {
2428
2428
  const C = x.filename ?? re(x.src), T = b && N === 0 ? /* @__PURE__ */ s(Ae, { onClick: u, variant: "inline" }) : e === "composer" ? void 0 : /* @__PURE__ */ s(
2429
- ks,
2429
+ Cs,
2430
2430
  {
2431
2431
  url: x.src,
2432
2432
  filename: C,
@@ -2436,7 +2436,7 @@ const ir = ({
2436
2436
  }
2437
2437
  );
2438
2438
  return /* @__PURE__ */ s(
2439
- yr,
2439
+ Sr,
2440
2440
  {
2441
2441
  variant: p,
2442
2442
  item: x,
@@ -2448,7 +2448,7 @@ const ir = ({
2448
2448
  );
2449
2449
  }) }),
2450
2450
  /* @__PURE__ */ s(
2451
- wr,
2451
+ yr,
2452
2452
  {
2453
2453
  open: f,
2454
2454
  items: g,
@@ -2459,26 +2459,26 @@ const ir = ({
2459
2459
  ]
2460
2460
  }
2461
2461
  );
2462
- }, kr = (e) => /* @__PURE__ */ s(xt, { ...e, state: "composer" }), Cr = (e) => /* @__PURE__ */ s(xt, { ...e, state: "sent" }), Er = (e) => /* @__PURE__ */ s(xt, { ...e, state: "received" }), Sr = {
2463
- Composer: kr,
2464
- Sent: Cr,
2465
- Received: Er
2466
- }, Ts = ({
2462
+ }, Er = (e) => /* @__PURE__ */ s(wt, { ...e, state: "composer" }), Ir = (e) => /* @__PURE__ */ s(wt, { ...e, state: "sent" }), Tr = (e) => /* @__PURE__ */ s(wt, { ...e, state: "received" }), Ar = {
2463
+ Composer: Er,
2464
+ Sent: Ir,
2465
+ Received: Tr
2466
+ }, As = ({
2467
2467
  open: e,
2468
2468
  items: t,
2469
2469
  initialIndex: n = 0,
2470
2470
  onClose: a
2471
2471
  }) => {
2472
- const { index: r, prev: i, next: o } = bt({
2472
+ const { index: r, prev: i, next: o } = vt({
2473
2473
  length: t.length,
2474
2474
  initialIndex: n,
2475
2475
  open: e
2476
- }), l = t[r], d = ae(
2476
+ }), l = t[r], d = se(
2477
2477
  () => (l == null ? void 0 : l.filename) ?? (l ? re(l.src) : "video"),
2478
2478
  [l]
2479
2479
  );
2480
2480
  return l ? /* @__PURE__ */ m(
2481
- vt,
2481
+ xt,
2482
2482
  {
2483
2483
  open: e,
2484
2484
  onClose: a,
@@ -2502,7 +2502,7 @@ const ir = ({
2502
2502
  `${r}:${l.src}`
2503
2503
  ),
2504
2504
  t.length > 1 ? /* @__PURE__ */ s(
2505
- pt,
2505
+ bt,
2506
2506
  {
2507
2507
  onPrev: i,
2508
2508
  onNext: o,
@@ -2513,7 +2513,7 @@ const ir = ({
2513
2513
  ]
2514
2514
  }
2515
2515
  ) : null;
2516
- }, Ir = () => /* @__PURE__ */ s("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ s("span", { className: "flex size-12 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur", children: /* @__PURE__ */ s(et, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), As = ({
2516
+ }, Mr = () => /* @__PURE__ */ s("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ s("span", { className: "flex size-12 items-center justify-center rounded-full bg-black/55 text-white backdrop-blur", children: /* @__PURE__ */ s(tt, { className: "size-6", weight: "fill", "aria-hidden": !0 }) }) }), Ms = ({
2517
2517
  item: e,
2518
2518
  index: t
2519
2519
  }) => /* @__PURE__ */ m("div", { className: "absolute inset-0 size-full bg-[#0d0d0d]", children: [
@@ -2528,30 +2528,30 @@ const ir = ({
2528
2528
  className: "absolute inset-0 size-full rounded-md object-cover"
2529
2529
  }
2530
2530
  ) : /* @__PURE__ */ s("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ s(
2531
- os,
2531
+ cs,
2532
2532
  {
2533
2533
  className: "size-16 rounded-md text-white/30",
2534
2534
  weight: "regular",
2535
2535
  "aria-hidden": !0
2536
2536
  }
2537
2537
  ) }),
2538
- /* @__PURE__ */ s(Ir, {})
2539
- ] }), Tr = (e, t, n) => ({
2538
+ /* @__PURE__ */ s(Mr, {})
2539
+ ] }), Rr = (e, t, n) => ({
2540
2540
  ariaLabel: `Play video ${t + 1} of ${n}`,
2541
- content: /* @__PURE__ */ s(As, { item: e, index: t })
2542
- }), Ar = ({
2541
+ content: /* @__PURE__ */ s(Ms, { item: e, index: t })
2542
+ }), Dr = ({
2543
2543
  src: e,
2544
2544
  poster: t,
2545
2545
  mimeType: n,
2546
2546
  preload: a,
2547
2547
  items: r
2548
- }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: n, preload: a }] : [], Ms = (e, t) => e.map((n, a) => ({
2548
+ }) => r && r.length > 0 ? a ? r.map((i) => ({ ...i, preload: i.preload ?? a })) : r : e ? [{ src: e, poster: t, mimeType: n, preload: a }] : [], Rs = (e, t) => e.map((n, a) => ({
2549
2549
  src: n.src,
2550
2550
  poster: n.poster,
2551
2551
  mimeType: n.mimeType,
2552
2552
  preload: n.preload,
2553
2553
  filename: t && e.length === 1 ? t : t ? `${t} (${a + 1})` : void 0
2554
- })), Mr = ({ src: e, poster: t, mimeType: n, filename: a, preload: r, onClick: i, onDismiss: o }) => {
2554
+ })), Lr = ({ src: e, poster: t, mimeType: n, filename: a, preload: r, onClick: i, onDismiss: o }) => {
2555
2555
  const { viewerOpen: l, viewerIndex: d, handleActivate: u, closeViewer: p } = Re(
2556
2556
  i
2557
2557
  );
@@ -2563,15 +2563,15 @@ const ir = ({
2563
2563
  onClick: () => u(0),
2564
2564
  "aria-label": "Play video",
2565
2565
  className: "relative block size-[280px] cursor-pointer overflow-hidden rounded-md outline-none focus-visible:ring-2 focus-visible:ring-black/40",
2566
- children: /* @__PURE__ */ s(As, { item: { src: e, poster: t, mimeType: n }, index: 0 })
2566
+ children: /* @__PURE__ */ s(Ms, { item: { src: e, poster: t, mimeType: n }, index: 0 })
2567
2567
  }
2568
2568
  ),
2569
2569
  o ? /* @__PURE__ */ s("div", { className: "absolute right-2 top-2 z-10", children: /* @__PURE__ */ s(Ae, { onClick: o }) }) : null,
2570
2570
  /* @__PURE__ */ s(
2571
- Ts,
2571
+ As,
2572
2572
  {
2573
2573
  open: l,
2574
- items: Ms(
2574
+ items: Rs(
2575
2575
  [{ src: e, poster: t, mimeType: n, preload: r }],
2576
2576
  a
2577
2577
  ),
@@ -2580,7 +2580,7 @@ const ir = ({
2580
2580
  }
2581
2581
  )
2582
2582
  ] });
2583
- }, Rs = ({
2583
+ }, Ds = ({
2584
2584
  state: e,
2585
2585
  src: t,
2586
2586
  poster: n,
@@ -2592,13 +2592,13 @@ const ir = ({
2592
2592
  preload: d,
2593
2593
  onClick: u
2594
2594
  }) => {
2595
- const p = Ar({ src: t, poster: n, mimeType: a, preload: d, items: i }), h = Me(e), { viewerOpen: f, viewerIndex: c, handleActivate: v, closeViewer: w } = Re(
2595
+ const p = Dr({ src: t, poster: n, mimeType: a, preload: d, items: i }), h = Me(e), { viewerOpen: f, viewerIndex: c, handleActivate: v, closeViewer: w } = Re(
2596
2596
  u
2597
2597
  );
2598
2598
  if (p.length === 0)
2599
2599
  return null;
2600
2600
  const b = p.map(
2601
- (g, x) => Tr(g, x, p.length)
2601
+ (g, x) => Rr(g, x, p.length)
2602
2602
  );
2603
2603
  return /* @__PURE__ */ m(
2604
2604
  Te,
@@ -2617,10 +2617,10 @@ const ir = ({
2617
2617
  }
2618
2618
  ) }),
2619
2619
  /* @__PURE__ */ s(
2620
- Ts,
2620
+ As,
2621
2621
  {
2622
2622
  open: f,
2623
- items: Ms(p, r),
2623
+ items: Rs(p, r),
2624
2624
  initialIndex: c,
2625
2625
  onClose: w
2626
2626
  }
@@ -2628,25 +2628,25 @@ const ir = ({
2628
2628
  ]
2629
2629
  }
2630
2630
  );
2631
- }, Rr = (e) => /* @__PURE__ */ s(Mr, { ...e }), Lr = (e) => /* @__PURE__ */ s(Rs, { ...e, state: "sent" }), Dr = (e) => /* @__PURE__ */ s(Rs, { ...e, state: "received" }), zr = {
2632
- Composer: Rr,
2633
- Sent: Lr,
2634
- Received: Dr
2635
- }, Ne = {
2636
- Image: xr,
2637
- Video: zr,
2638
- Audio: Za,
2639
- Pdf: Sr,
2640
- File: ur
2641
- }, Pr = {
2631
+ }, zr = (e) => /* @__PURE__ */ s(Lr, { ...e }), Pr = (e) => /* @__PURE__ */ s(Ds, { ...e, state: "sent" }), Fr = (e) => /* @__PURE__ */ s(Ds, { ...e, state: "received" }), Or = {
2632
+ Composer: zr,
2633
+ Sent: Pr,
2634
+ Received: Fr
2635
+ }, ye = {
2636
+ Image: Nr,
2637
+ Video: Or,
2638
+ Audio: tr,
2639
+ Pdf: Ar,
2640
+ File: fr
2641
+ }, $r = {
2642
2642
  isUnlocking: () => !1
2643
- }, Fr = {
2644
- LockedAttachment: Pr
2645
- }, Ls = at({}), ll = Ls.Provider;
2646
- function Or(e) {
2647
- return Se(Ls)[e] ?? Fr[e];
2643
+ }, Br = {
2644
+ LockedAttachment: $r
2645
+ }, Ls = rt({}), ml = Ls.Provider;
2646
+ function Ur(e) {
2647
+ return Ie(Ls)[e] ?? Br[e];
2648
2648
  }
2649
- const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2649
+ const jr = ({ size: e = 15 }) => /* @__PURE__ */ s(
2650
2650
  "svg",
2651
2651
  {
2652
2652
  width: e,
@@ -2663,21 +2663,21 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2663
2663
  }
2664
2664
  )
2665
2665
  }
2666
- ), Br = (e) => {
2666
+ ), Vr = (e) => {
2667
2667
  var t;
2668
2668
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_TIP";
2669
- }, Ur = (e) => {
2669
+ }, Gr = (e) => {
2670
2670
  var t;
2671
2671
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_PAID";
2672
2672
  }, Fe = (e) => {
2673
2673
  var t;
2674
2674
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_CHATBOT";
2675
- }, jr = (e) => {
2675
+ }, Hr = (e) => {
2676
2676
  var t;
2677
2677
  return ((t = e.metadata) == null ? void 0 : t.custom_type) === "MESSAGE_ATTACHMENT";
2678
- }, Ds = (e) => Br(e) || Ur(e), Vr = (e) => {
2678
+ }, zs = (e) => Vr(e) || Gr(e), Yr = (e) => {
2679
2679
  var t;
2680
- return Ds(e) && !((t = e.text) != null && t.trim());
2680
+ return zs(e) && !((t = e.text) != null && t.trim());
2681
2681
  }, Ke = ({
2682
2682
  message: e,
2683
2683
  standalone: t = !1,
@@ -2685,7 +2685,7 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2685
2685
  hasAttachment: a = !1
2686
2686
  }) => {
2687
2687
  var h;
2688
- const r = Ds(e), i = Fe(e);
2688
+ const r = zs(e), i = Fe(e);
2689
2689
  if (!r && !i)
2690
2690
  return null;
2691
2691
  if (r) {
@@ -2693,7 +2693,7 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2693
2693
  if (!f) return null;
2694
2694
  const c = t ? "message-tip-standalone" : "message-tag message-tag--tip", v = t ? `${f} tip` : `Delivered with ${f} tip`;
2695
2695
  return /* @__PURE__ */ m("div", { className: c, children: [
2696
- /* @__PURE__ */ s(Hn, { size: t ? 14 : 12 }),
2696
+ /* @__PURE__ */ s(qn, { size: t ? 14 : 12 }),
2697
2697
  /* @__PURE__ */ s("span", { children: v })
2698
2698
  ] });
2699
2699
  }
@@ -2701,15 +2701,15 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2701
2701
  "message-chatbot-indicator",
2702
2702
  n ? "message-chatbot-indicator--sender" : "message-chatbot-indicator--receiver",
2703
2703
  o ? "message-chatbot-indicator--attachment" : "message-chatbot-indicator--text"
2704
- ].join(" "), u = /* @__PURE__ */ s("span", { className: "message-chatbot-indicator__label", children: l }), p = /* @__PURE__ */ s("span", { className: "message-chatbot-indicator__icon", children: /* @__PURE__ */ s($r, { size: o ? 12 : 15 }) });
2705
- return /* @__PURE__ */ s("div", { className: d, "data-testid": "message-chatbot-indicator", children: n && !o ? /* @__PURE__ */ m(te, { children: [
2704
+ ].join(" "), u = /* @__PURE__ */ s("span", { className: "message-chatbot-indicator__label", children: l }), p = /* @__PURE__ */ s("span", { className: "message-chatbot-indicator__icon", children: /* @__PURE__ */ s(jr, { size: o ? 12 : 15 }) });
2705
+ return /* @__PURE__ */ s("div", { className: d, "data-testid": "message-chatbot-indicator", children: n && !o ? /* @__PURE__ */ m(ee, { children: [
2706
2706
  u,
2707
2707
  p
2708
- ] }) : /* @__PURE__ */ m(te, { children: [
2708
+ ] }) : /* @__PURE__ */ m(ee, { children: [
2709
2709
  p,
2710
2710
  u
2711
2711
  ] }) });
2712
- }, Gr = ({
2712
+ }, qr = ({
2713
2713
  selected: e,
2714
2714
  onVoteUp: t,
2715
2715
  onVoteDown: n
@@ -2725,7 +2725,7 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2725
2725
  "aria-label": "Good response",
2726
2726
  "aria-pressed": e === "up",
2727
2727
  "data-tooltip": "Good response",
2728
- children: /* @__PURE__ */ s(Yn, { size: 16, weight: e === "up" ? "fill" : "regular" })
2728
+ children: /* @__PURE__ */ s(Wn, { size: 16, weight: e === "up" ? "fill" : "regular" })
2729
2729
  }
2730
2730
  ),
2731
2731
  /* @__PURE__ */ s(
@@ -2739,29 +2739,50 @@ const $r = ({ size: e = 15 }) => /* @__PURE__ */ s(
2739
2739
  "aria-label": "Bad response",
2740
2740
  "aria-pressed": e === "down",
2741
2741
  "data-tooltip": "Bad response",
2742
- children: /* @__PURE__ */ s(qn, { size: 16, weight: e === "down" ? "fill" : "regular" })
2742
+ children: /* @__PURE__ */ s(Xn, { size: 16, weight: e === "down" ? "fill" : "regular" })
2743
2743
  }
2744
2744
  )
2745
- ] }), Hr = /^([a-z][a-z0-9+.-]*):/i, Yr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
2746
- function wt(e) {
2745
+ ] }), Je = () => {
2746
+ var i;
2747
+ const { message: e } = _e("SentMessageDeliveryStatus"), { messages: t } = le("SentMessageDeliveryStatus"), { client: n } = oe("SentMessageDeliveryStatus"), a = (i = n.user) == null ? void 0 : i.id, r = se(() => {
2748
+ var o;
2749
+ if (!(!a || !t)) {
2750
+ for (let l = t.length - 1; l >= 0; l -= 1)
2751
+ if (((o = t[l].user) == null ? void 0 : o.id) === a) return t[l].id;
2752
+ }
2753
+ }, [t, a]);
2754
+ return e.id !== r ? null : /* @__PURE__ */ m(ee, { children: [
2755
+ /* @__PURE__ */ s(Kn, { weight: "bold", "aria-hidden": "true" }),
2756
+ /* @__PURE__ */ s("span", { "data-testid": "sent-message-delivery-status", children: "Delivered" })
2757
+ ] });
2758
+ }, Wr = () => null, Xr = () => /* @__PURE__ */ s(
2759
+ Xs,
2760
+ {
2761
+ MessageSentStatus: Je,
2762
+ MessageDeliveredStatus: Je,
2763
+ MessageReadStatus: Je,
2764
+ MessageSendingStatus: Wr
2765
+ }
2766
+ ), Kr = /^([a-z][a-z0-9+.-]*):/i, Jr = /* @__PURE__ */ new Set(["http", "https", "mailto", "tel", "sms"]);
2767
+ function _t(e) {
2747
2768
  if (typeof e != "string") return;
2748
2769
  const t = e.trim();
2749
2770
  if (t === "") return;
2750
- const n = Hr.exec(t);
2771
+ const n = Kr.exec(t);
2751
2772
  if (n) {
2752
2773
  const a = n[1].toLowerCase();
2753
- return Yr.has(a) ? t : void 0;
2774
+ return Jr.has(a) ? t : void 0;
2754
2775
  }
2755
2776
  return t.startsWith("//") || t.startsWith("/") ? t : `https://${t}`;
2756
2777
  }
2757
- const qr = {
2778
+ const Zr = {
2758
2779
  dark: "bg-white text-[#121110] hover:bg-white/90",
2759
2780
  light: "bg-[#121110] text-white hover:bg-[#2a2928]"
2760
- }, Wr = ({ variant: e, cta: t }) => {
2781
+ }, Qr = ({ variant: e, cta: t }) => {
2761
2782
  const n = k(
2762
2783
  "mt-2 inline-flex h-10 w-full items-center justify-center rounded-full px-4 text-sm font-medium leading-none transition-colors",
2763
- qr[e]
2764
- ), a = wt(t.href);
2784
+ Zr[e]
2785
+ ), a = _t(t.href);
2765
2786
  return a ? /* @__PURE__ */ s(
2766
2787
  "a",
2767
2788
  {
@@ -2787,13 +2808,13 @@ const qr = {
2787
2808
  children: t.label
2788
2809
  }
2789
2810
  );
2790
- }, Xr = {
2811
+ }, ei = {
2791
2812
  dark: "text-white",
2792
2813
  light: "text-black/90"
2793
- }, Kr = "text-white/30", Jr = {
2814
+ }, ti = "text-white/30", si = {
2794
2815
  dark: "text-white/55",
2795
2816
  light: "text-black/55"
2796
- }, _t = ({
2817
+ }, Nt = ({
2797
2818
  variant: e,
2798
2819
  title: t,
2799
2820
  placeholderTitle: n,
@@ -2807,10 +2828,10 @@ const qr = {
2807
2828
  if (!p && !h && !c && !v) return null;
2808
2829
  const b = k(
2809
2830
  "truncate text-base font-medium leading-6",
2810
- d && !t ? Kr : Xr[e]
2831
+ d && !t ? ti : ei[e]
2811
2832
  ), g = k(
2812
2833
  "truncate text-xs leading-4",
2813
- Jr[e]
2834
+ si[e]
2814
2835
  );
2815
2836
  return /* @__PURE__ */ m("div", { className: "px-4 py-3", children: [
2816
2837
  /* @__PURE__ */ m("div", { className: "flex items-end gap-3", children: [
@@ -2826,9 +2847,9 @@ const qr = {
2826
2847
  ] }),
2827
2848
  l && /* @__PURE__ */ s("div", { className: "shrink-0", children: l })
2828
2849
  ] }),
2829
- o && /* @__PURE__ */ s(Wr, { variant: e, cta: o })
2850
+ o && /* @__PURE__ */ s(Qr, { variant: e, cta: o })
2830
2851
  ] });
2831
- }, Zr = k(
2852
+ }, ni = k(
2832
2853
  "relative block w-[280px] select-none overflow-hidden rounded-md",
2833
2854
  // 1px hairline border that sits flush with the card chrome — matches
2834
2855
  // the messaging design system's "small border around link attachments"
@@ -2847,7 +2868,7 @@ const qr = {
2847
2868
  "data-testid": d
2848
2869
  }) => {
2849
2870
  const u = n != null || a != null, p = k(
2850
- Zr,
2871
+ ni,
2851
2872
  l ?? (e === "dark" ? "bg-[#121110]" : "bg-white"),
2852
2873
  // `focus-ring` is a design-system utility from the component-library
2853
2874
  // tailwind preset — outline-none + a black 2px focus-visible ring
@@ -2895,17 +2916,17 @@ const qr = {
2895
2916
  ]
2896
2917
  }
2897
2918
  );
2898
- }, Qr = {
2919
+ }, ai = {
2899
2920
  dark: "bg-white/10",
2900
2921
  light: "bg-black/5"
2901
- }, ei = {
2922
+ }, ri = {
2902
2923
  dark: "size-16 text-white/25",
2903
2924
  light: "size-16 text-black/25"
2904
- }, Ve = (e, t) => !!t && !!e && le(e) === "audio", Nt = (e, t) => {
2925
+ }, Ve = (e, t) => !!t && !!e && ce(e) === "audio", yt = (e, t) => {
2905
2926
  if (!t || !e) return !1;
2906
- const n = le(e);
2927
+ const n = ce(e);
2907
2928
  return n === "video" || n === "audio";
2908
- }, yt = "bg-[#F2F3F4]", $e = ({
2929
+ }, kt = "bg-[#F2F3F4]", $e = ({
2909
2930
  variant: e,
2910
2931
  thumbnailUrl: t,
2911
2932
  sourceUrl: n,
@@ -2914,7 +2935,7 @@ const qr = {
2914
2935
  topLeft: i,
2915
2936
  topRight: o
2916
2937
  }) => {
2917
- const l = le(r), d = !!n && l === "video";
2938
+ const l = ce(r), d = !!n && l === "video";
2918
2939
  return Ve(r, n) ? /* @__PURE__ */ s("div", { className: "p-3", children: /* @__PURE__ */ s(
2919
2940
  "audio",
2920
2941
  {
@@ -2956,10 +2977,10 @@ const qr = {
2956
2977
  {
2957
2978
  className: k(
2958
2979
  "flex h-full w-full items-center justify-center",
2959
- Qr[e]
2980
+ ai[e]
2960
2981
  ),
2961
2982
  children: we(r, {
2962
- className: ei[e],
2983
+ className: ri[e],
2963
2984
  weight: "regular"
2964
2985
  })
2965
2986
  }
@@ -2969,7 +2990,7 @@ const qr = {
2969
2990
  ]
2970
2991
  }
2971
2992
  );
2972
- }, ti = ({
2993
+ }, ii = ({
2973
2994
  title: e,
2974
2995
  placeholderTitle: t,
2975
2996
  description: n,
@@ -2999,10 +3020,10 @@ const qr = {
2999
3020
  onClick: h,
3000
3021
  "aria-label": "Edit attachment",
3001
3022
  className: "flex size-10 items-center justify-center rounded-full bg-white/10 text-white hover:bg-white/15",
3002
- children: /* @__PURE__ */ s(Wn, { className: "size-5", weight: "regular" })
3023
+ children: /* @__PURE__ */ s(Jn, { className: "size-5", weight: "regular" })
3003
3024
  }
3004
3025
  ) : void 0;
3005
- return c ? /* @__PURE__ */ s(Oe, { variant: "dark", bgClassName: yt, children: /* @__PURE__ */ m("div", { className: "flex items-center gap-2 pr-3", children: [
3026
+ return c ? /* @__PURE__ */ s(Oe, { variant: "dark", bgClassName: kt, children: /* @__PURE__ */ m("div", { className: "flex items-center gap-2 pr-3", children: [
3006
3027
  /* @__PURE__ */ s("div", { className: "min-w-0 flex-1", children: /* @__PURE__ */ s(
3007
3028
  $e,
3008
3029
  {
@@ -3031,7 +3052,7 @@ const qr = {
3031
3052
  }
3032
3053
  ),
3033
3054
  /* @__PURE__ */ s(
3034
- _t,
3055
+ Nt,
3035
3056
  {
3036
3057
  variant: "dark",
3037
3058
  title: e,
@@ -3046,7 +3067,7 @@ const qr = {
3046
3067
  ]
3047
3068
  }
3048
3069
  );
3049
- }, si = ({
3070
+ }, li = ({
3050
3071
  title: e,
3051
3072
  description: t,
3052
3073
  url: n,
@@ -3058,7 +3079,7 @@ const qr = {
3058
3079
  cta: d,
3059
3080
  onClick: u
3060
3081
  }) => {
3061
- const p = Nt(a, i), h = wt(n), f = d == null && h != null && !p ? h : void 0, c = d == null && !p ? u : void 0, v = Ve(a, i) ? yt : void 0, w = d && u ? {
3082
+ const p = yt(a, i), h = _t(n), f = d == null && h != null && !p ? h : void 0, c = d == null && !p ? u : void 0, v = Ve(a, i) ? kt : void 0, w = d && u ? {
3062
3083
  ...d,
3063
3084
  onClick: () => {
3064
3085
  var b;
@@ -3086,7 +3107,7 @@ const qr = {
3086
3107
  }
3087
3108
  ),
3088
3109
  /* @__PURE__ */ s(
3089
- _t,
3110
+ Nt,
3090
3111
  {
3091
3112
  variant: "light",
3092
3113
  title: e,
@@ -3099,7 +3120,7 @@ const qr = {
3099
3120
  ]
3100
3121
  }
3101
3122
  );
3102
- }, ni = ({
3123
+ }, oi = ({
3103
3124
  title: e,
3104
3125
  placeholderTitle: t,
3105
3126
  description: n,
@@ -3112,14 +3133,14 @@ const qr = {
3112
3133
  cta: u,
3113
3134
  onClick: p
3114
3135
  }) => {
3115
- const h = Nt(r, o), f = wt(a), c = u == null && f != null && !h ? f : void 0, v = u == null && !h && c != null ? p : void 0;
3136
+ const h = yt(r, o), f = _t(a), c = u == null && f != null && !h ? f : void 0, v = u == null && !h && c != null ? p : void 0;
3116
3137
  return /* @__PURE__ */ m(
3117
3138
  Oe,
3118
3139
  {
3119
3140
  variant: "dark",
3120
3141
  href: c,
3121
3142
  onClick: v,
3122
- bgClassName: Ve(r, o) ? yt : void 0,
3143
+ bgClassName: Ve(r, o) ? kt : void 0,
3123
3144
  children: [
3124
3145
  l === "featured" && /* @__PURE__ */ s(
3125
3146
  $e,
@@ -3132,7 +3153,7 @@ const qr = {
3132
3153
  }
3133
3154
  ),
3134
3155
  /* @__PURE__ */ s(
3135
- _t,
3156
+ Nt,
3136
3157
  {
3137
3158
  variant: "dark",
3138
3159
  title: e,
@@ -3146,22 +3167,22 @@ const qr = {
3146
3167
  ]
3147
3168
  }
3148
3169
  );
3149
- }, Qt = {
3150
- Composer: ti,
3151
- Sent: ni,
3152
- Received: si
3153
- }, ai = "mt-[2px] max-w-[280px] whitespace-pre-wrap break-words rounded-[18px] bg-[#121110] px-4 py-2 text-white", ri = "mt-[2px] max-w-[280px] whitespace-pre-wrap break-words rounded-[18px] bg-[#e9eaed] px-4 py-2 text-[#080707]";
3170
+ }, es = {
3171
+ Composer: ii,
3172
+ Sent: oi,
3173
+ Received: li
3174
+ }, ci = "mt-[2px] max-w-[280px] whitespace-pre-wrap break-words rounded-[18px] bg-[#121110] px-4 py-2 text-white", di = "mt-[2px] max-w-[280px] whitespace-pre-wrap break-words rounded-[18px] bg-[#e9eaed] px-4 py-2 text-[#080707]";
3154
3175
  function P(e) {
3155
3176
  const t = e == null ? void 0 : e.trim();
3156
3177
  return t || void 0;
3157
3178
  }
3158
- function es(e) {
3179
+ function ts(e) {
3159
3180
  return e.trim().replace(/^https?:\/\//i, "").replace(/\/+$/, "").toLowerCase();
3160
3181
  }
3161
- function ii(e, t) {
3182
+ function ui(e, t) {
3162
3183
  if (!(e != null && e.trim()) || !(t != null && t.trim()))
3163
3184
  return !1;
3164
- const n = es(e), a = es(t);
3185
+ const n = ts(e), a = ts(t);
3165
3186
  if (n === a)
3166
3187
  return !0;
3167
3188
  if (!n.includes(a))
@@ -3169,7 +3190,7 @@ function ii(e, t) {
3169
3190
  const r = n.split(a).join("");
3170
3191
  return !/[^\p{P}\p{Z}\p{C}]/u.test(r);
3171
3192
  }
3172
- function ts(e) {
3193
+ function ss(e) {
3173
3194
  const t = P(e.og_scrape_url) ?? P(e.title_link), n = P(e.image_url) ?? P(e.thumb_url), a = P(e.asset_url), r = P(e.mime_type);
3174
3195
  return {
3175
3196
  title: P(e.title),
@@ -3179,19 +3200,19 @@ function ts(e) {
3179
3200
  // Playable clip embedded in a link preview — lets LinkAttachment render its
3180
3201
  // native video/audio player in the hero instead of a static thumbnail.
3181
3202
  sourceUrl: a,
3182
- layout: n || Nt(r, a) ? "featured" : "classic",
3203
+ layout: n || yt(r, a) ? "featured" : "classic",
3183
3204
  mimeType: r
3184
3205
  };
3185
3206
  }
3186
- function li(e) {
3207
+ function mi(e) {
3187
3208
  var t;
3188
- return zs(e) ? null : e.type === "image" ? e.image_url || e.asset_url ? "image" : null : e.type === "video" && e.asset_url ? "video" : e.type === "audio" && e.asset_url ? "audio" : e.type === "file" && e.asset_url ? e.mime_type === "application/pdf" ? "pdf" : (t = e.mime_type) != null && t.startsWith("audio/") ? "audio" : "file" : null;
3209
+ return Ps(e) ? null : e.type === "image" ? e.image_url || e.asset_url ? "image" : null : e.type === "video" && e.asset_url ? "video" : e.type === "audio" && e.asset_url ? "audio" : e.type === "file" && e.asset_url ? e.mime_type === "application/pdf" ? "pdf" : (t = e.mime_type) != null && t.startsWith("audio/") ? "audio" : "file" : null;
3189
3210
  }
3190
- function zs(e) {
3211
+ function Ps(e) {
3191
3212
  const t = P(e.og_scrape_url);
3192
3213
  return e.type === "link" || !!t && !e.asset_url;
3193
3214
  }
3194
- function Ps(e) {
3215
+ function Fs(e) {
3195
3216
  if (!(e != null && e.length)) return [];
3196
3217
  const t = [], n = (r, i) => {
3197
3218
  const o = t[t.length - 1];
@@ -3209,51 +3230,51 @@ function Ps(e) {
3209
3230
  t.push({ type: "link", attachments: [r] });
3210
3231
  };
3211
3232
  for (const r of e) {
3212
- if (zs(r)) {
3233
+ if (Ps(r)) {
3213
3234
  a(r);
3214
3235
  continue;
3215
3236
  }
3216
- const i = li(r);
3237
+ const i = mi(r);
3217
3238
  i && n(i, r);
3218
3239
  }
3219
3240
  return t;
3220
3241
  }
3221
- function oi(e) {
3242
+ function hi(e) {
3222
3243
  let t = 0;
3223
3244
  for (const n of e)
3224
3245
  t += n.type === "link" ? n.attachments.length : 1;
3225
3246
  return t;
3226
3247
  }
3227
- function ci(e) {
3248
+ function fi(e) {
3228
3249
  return e.filter((t) => t.type === "media").length;
3229
3250
  }
3230
- function di(e, t, n) {
3251
+ function gi(e, t, n) {
3231
3252
  return t <= 1 ? n : e === 0 ? "first" : e === t - 1 ? "end" : "middle";
3232
3253
  }
3233
- function ss(e) {
3254
+ function ns(e) {
3234
3255
  return P(e.image_url) ?? P(e.asset_url) ?? "";
3235
3256
  }
3236
- function ui(e) {
3257
+ function pi(e) {
3237
3258
  switch (e) {
3238
3259
  case "image":
3239
- return Ne.Image;
3260
+ return ye.Image;
3240
3261
  case "video":
3241
- return Ne.Video;
3262
+ return ye.Video;
3242
3263
  case "audio":
3243
- return Ne.Audio;
3264
+ return ye.Audio;
3244
3265
  case "pdf":
3245
- return Ne.Pdf;
3266
+ return ye.Pdf;
3246
3267
  default:
3247
- return Ne.File;
3268
+ return ye.File;
3248
3269
  }
3249
3270
  }
3250
- function mi(e, t) {
3271
+ function bi(e, t) {
3251
3272
  if (t.length > 1)
3252
3273
  switch (e) {
3253
3274
  case "image":
3254
3275
  return {
3255
3276
  items: t.map((a) => ({
3256
- src: ss(a),
3277
+ src: ns(a),
3257
3278
  alt: P(a.title)
3258
3279
  }))
3259
3280
  };
@@ -3304,7 +3325,7 @@ function mi(e, t) {
3304
3325
  switch (e) {
3305
3326
  case "image":
3306
3327
  return {
3307
- src: ss(n),
3328
+ src: ns(n),
3308
3329
  alt: P(n.title)
3309
3330
  };
3310
3331
  case "video":
@@ -3334,48 +3355,48 @@ function mi(e, t) {
3334
3355
  };
3335
3356
  }
3336
3357
  }
3337
- function hi({
3358
+ function vi({
3338
3359
  groupPosition: e,
3339
3360
  isMyMessage: t,
3340
3361
  segment: n,
3341
3362
  text: a
3342
3363
  }) {
3343
- const r = ui(n.kind), i = {
3344
- ...mi(n.kind, n.attachments),
3364
+ const r = pi(n.kind), i = {
3365
+ ...bi(n.kind, n.attachments),
3345
3366
  groupPosition: e,
3346
3367
  ...a ? { text: a } : {}
3347
3368
  };
3348
3369
  return t ? /* @__PURE__ */ s(r.Sent, { ...i }) : /* @__PURE__ */ s(r.Received, { ...i });
3349
3370
  }
3350
- const fi = ({
3371
+ const xi = ({
3351
3372
  groupPosition: e,
3352
3373
  isMyMessage: t,
3353
3374
  message: n
3354
3375
  }) => {
3355
3376
  var w;
3356
- const a = Ps(n.attachments);
3377
+ const a = Fs(n.attachments);
3357
3378
  if (a.length === 0) return null;
3358
- const r = oi(a), i = ci(a), o = (w = n.text) == null ? void 0 : w.trim(), l = a.find((b) => b.type === "link"), d = (l == null ? void 0 : l.type) === "link" ? ts(l.attachments[0] ?? {}).url : void 0, u = o && ii(o, d) ? void 0 : o;
3379
+ const r = hi(a), i = fi(a), o = (w = n.text) == null ? void 0 : w.trim(), l = a.find((b) => b.type === "link"), d = (l == null ? void 0 : l.type) === "link" ? ss(l.attachments[0] ?? {}).url : void 0, u = o && ui(o, d) ? void 0 : o;
3359
3380
  let p = 0, h = 0;
3360
3381
  const f = [], c = (b, g) => {
3361
3382
  const x = p === r - 1;
3362
3383
  p += 1;
3363
- const N = t ? Qt.Sent : Qt.Received;
3384
+ const N = t ? es.Sent : es.Received;
3364
3385
  f.push(
3365
3386
  /* @__PURE__ */ m(V.Fragment, { children: [
3366
- /* @__PURE__ */ s(N, { ...ts(b) }),
3367
- x && u ? /* @__PURE__ */ s("div", { className: t ? ai : ri, children: u }) : null
3387
+ /* @__PURE__ */ s(N, { ...ss(b) }),
3388
+ x && u ? /* @__PURE__ */ s("div", { className: t ? ci : di, children: u }) : null
3368
3389
  ] }, g)
3369
3390
  );
3370
3391
  }, v = (b, g) => {
3371
- const x = p === r - 1, N = di(
3392
+ const x = p === r - 1, N = gi(
3372
3393
  h,
3373
3394
  i,
3374
3395
  e
3375
3396
  );
3376
3397
  p += 1, h += 1, f.push(
3377
3398
  /* @__PURE__ */ s(
3378
- hi,
3399
+ vi,
3379
3400
  {
3380
3401
  groupPosition: N,
3381
3402
  isMyMessage: t,
@@ -3394,9 +3415,9 @@ const fi = ({
3394
3415
  return;
3395
3416
  }
3396
3417
  v(b, `media-${g}`);
3397
- }), /* @__PURE__ */ s(te, { children: f });
3398
- }, gi = (e) => {
3399
- var Tt, At, Mt, Rt, Lt, Dt, zt, Pt, Ft, Ot, $t, Bt, Ut, jt;
3418
+ }), /* @__PURE__ */ s(ee, { children: f });
3419
+ }, wi = (e) => {
3420
+ var At, Mt, Rt, Dt, Lt, zt, Pt, Ft, Ot, $t, Bt, Ut, jt, Vt;
3400
3421
  const {
3401
3422
  additionalMessageInputProps: t,
3402
3423
  chatbotVotingEnabled: n,
@@ -3414,52 +3435,52 @@ const fi = ({
3414
3435
  renderText: v,
3415
3436
  threadList: w,
3416
3437
  viewerLanguage: b
3417
- } = e, { client: g } = me("CustomMessage"), { channel: x } = ue("CustomMessage"), { isUnlocking: N, onUnlockClick: C, onFetchSource: T, onDownloadClick: A } = Or("LockedAttachment"), [L, $] = U(!1), F = Xs(c.id), { selected: D, voteUp: y, voteDown: I } = pa(c), {
3418
- Attachment: E = Ks,
3419
- EditMessageModal: R = Js,
3420
- MessageActions: S,
3421
- MessageBlocked: z = Zs,
3422
- MessageBouncePrompt: O = Qs,
3423
- MessageDeleted: j = en,
3424
- MessageIsThreadReplyInChannelButtonIndicator: X = tn,
3425
- MessageRepliesCountButton: ee = sn,
3426
- ReminderNotification: K = nn,
3427
- StreamedMessageText: _ = an,
3438
+ } = e, { client: g } = oe("CustomMessage"), { channel: x } = le("CustomMessage"), { isUnlocking: N, onUnlockClick: C, onFetchSource: T, onDownloadClick: A } = Ur("LockedAttachment"), [D, $] = U(!1), F = Js(c.id), { selected: L, voteUp: y, voteDown: I } = xa(c), {
3439
+ Attachment: S = Zs,
3440
+ EditMessageModal: R = Qs,
3441
+ MessageActions: E,
3442
+ MessageBlocked: z = en,
3443
+ MessageBouncePrompt: O = tn,
3444
+ MessageDeleted: j = sn,
3445
+ MessageIsThreadReplyInChannelButtonIndicator: X = nn,
3446
+ MessageRepliesCountButton: te = an,
3447
+ ReminderNotification: K = rn,
3448
+ StreamedMessageText: _ = ln,
3428
3449
  PinIndicator: M
3429
- } = rs("CustomMessage"), H = rn(c), q = ln(c), Y = ae(
3450
+ } = is("CustomMessage"), H = on(c), q = cn(c), Y = se(
3430
3451
  () => h == null ? void 0 : h(c),
3431
3452
  [h, c]
3432
- ), B = ae(() => {
3433
- const de = c.attachments ?? [], pe = c.shared_location ? [c.shared_location, ...de] : de;
3453
+ ), B = se(() => {
3454
+ const me = c.attachments ?? [], pe = c.shared_location ? [c.shared_location, ...me] : me;
3434
3455
  if (!Fe(c)) return pe;
3435
- const Vt = pe.filter((Gt) => !("type" in Gt) || !xs(Gt));
3436
- return Vt.length === pe.length ? pe : Vt;
3437
- }, [c]), W = ae(
3438
- () => Ps(B),
3456
+ const Gt = pe.filter((Ht) => !("type" in Ht) || !ws(Ht));
3457
+ return Gt.length === pe.length ? pe : Gt;
3458
+ }, [c]), W = se(
3459
+ () => Fs(B),
3439
3460
  [B]
3440
- ), Q = ae(() => {
3441
- const de = ms({ message: c, viewerLanguage: b });
3442
- return de === c.text ? c : { ...c, text: de };
3443
- }, [c, b]), oe = W.length > 0, Le = W.reduce(
3444
- (de, pe) => de + pe.attachments.length,
3461
+ ), Q = se(() => {
3462
+ const me = hs({ message: c, viewerLanguage: b });
3463
+ return me === c.text ? c : { ...c, text: me };
3464
+ }, [c, b]), de = W.length > 0, De = W.reduce(
3465
+ (me, pe) => me + pe.attachments.length,
3445
3466
  0
3446
- ) === ((B == null ? void 0 : B.length) ?? 0), De = Ya(
3467
+ ) === ((B == null ? void 0 : B.length) ?? 0), Le = Xa(
3447
3468
  {
3448
3469
  endOfGroup: r,
3449
3470
  firstOfGroup: i,
3450
3471
  groupedByUser: o
3451
3472
  }
3452
3473
  );
3453
- if (on(c))
3474
+ if (dn(c))
3454
3475
  return null;
3455
3476
  if (c.deleted_at || c.type === "deleted")
3456
3477
  return /* @__PURE__ */ s(j, { message: c });
3457
- if (cn(c))
3478
+ if (un(c))
3458
3479
  return /* @__PURE__ */ s(z, {});
3459
- const ne = !w && !!c.reply_count, ce = !w && c.show_in_channel && c.parent_id, ie = c.status === "failed" && ((Tt = c.error) == null ? void 0 : Tt.status) !== 403, Ct = dn(c);
3480
+ const ae = !w && !!c.reply_count, ue = !w && c.show_in_channel && c.parent_id, ie = c.status === "failed" && ((At = c.error) == null ? void 0 : At.status) !== 403, St = mn(c);
3460
3481
  let he;
3461
- ie ? he = () => u(c) : Ct && (he = () => $(!0));
3462
- const fe = f(), Us = k(
3482
+ ie ? he = () => u(c) : St && (he = () => $(!0));
3483
+ const fe = f(), js = k(
3463
3484
  "str-chat__message str-chat__message-simple",
3464
3485
  `str-chat__message--${c.type}`,
3465
3486
  `str-chat__message--${c.status}`,
@@ -3470,39 +3491,39 @@ const fi = ({
3470
3491
  "str-chat__message--highlighted": p,
3471
3492
  "str-chat__message--pinned pinned-message": c.pinned,
3472
3493
  "str-chat__message--with-reactions": q,
3473
- "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((At = c == null ? void 0 : c.error) == null ? void 0 : At.status) !== 403,
3474
- "str-chat__message-with-thread-link": ne || ce,
3494
+ "str-chat__message-send-can-be-retried": (c == null ? void 0 : c.status) === "failed" && ((Mt = c == null ? void 0 : c.error) == null ? void 0 : Mt.status) !== 403,
3495
+ "str-chat__message-with-thread-link": ae || ue,
3475
3496
  "str-chat__virtual-message__wrapper--end": r,
3476
3497
  "str-chat__virtual-message__wrapper--first": i,
3477
3498
  "str-chat__virtual-message__wrapper--group": o
3478
3499
  }
3479
- ), Ge = c.poll_id && g.polls.fromState(c.poll_id), Et = Vr(c), ge = Fe(c), St = jr(c), He = !!(B != null && B.length && !c.quoted_message), It = ge && fe && He, js = oe && Le && !c.quoted_message && !Ge && !Y && !ge;
3480
- return /* @__PURE__ */ m(te, { children: [
3500
+ ), Ge = c.poll_id && g.polls.fromState(c.poll_id), Et = Yr(c), ge = Fe(c), It = Hr(c), He = !!(B != null && B.length && !c.quoted_message), Tt = ge && fe && He, Vs = de && De && !c.quoted_message && !Ge && !Y && !ge;
3501
+ return /* @__PURE__ */ m(ee, { children: [
3481
3502
  a && /* @__PURE__ */ s(
3482
3503
  R,
3483
3504
  {
3484
3505
  additionalMessageInputProps: t
3485
3506
  }
3486
3507
  ),
3487
- L && /* @__PURE__ */ s(
3488
- un,
3508
+ D && /* @__PURE__ */ s(
3509
+ hn,
3489
3510
  {
3490
3511
  MessageBouncePrompt: O,
3491
3512
  onClose: () => $(!1),
3492
- open: L
3513
+ open: D
3493
3514
  }
3494
3515
  ),
3495
3516
  /* @__PURE__ */ m(
3496
3517
  "div",
3497
3518
  {
3498
- className: Us,
3519
+ className: js,
3499
3520
  "data-message-id": c.id,
3500
3521
  "data-dd-privacy": "mask",
3501
3522
  children: [
3502
3523
  M && /* @__PURE__ */ s(M, {}),
3503
3524
  !!F && /* @__PURE__ */ s(K, { reminder: F }),
3504
3525
  c.user && /* @__PURE__ */ s(
3505
- se,
3526
+ ne,
3506
3527
  {
3507
3528
  className: "str-chat__avatar str-chat__message-sender-avatar",
3508
3529
  id: c.user.id,
@@ -3517,7 +3538,7 @@ const fi = ({
3517
3538
  "div",
3518
3539
  {
3519
3540
  className: k("str-chat__message-inner", {
3520
- "str-chat__simple-message--error-failed": ie || Ct
3541
+ "str-chat__simple-message--error-failed": ie || St
3521
3542
  }),
3522
3543
  "data-testid": "message-inner",
3523
3544
  onClick: he,
@@ -3530,42 +3551,42 @@ const fi = ({
3530
3551
  marginInlineEnd: 0,
3531
3552
  marginInlineStart: 0
3532
3553
  },
3533
- children: St ? /* @__PURE__ */ m("div", { className: "str-chat__message-bubble-wrapper", children: [
3554
+ children: It ? /* @__PURE__ */ m("div", { className: "str-chat__message-bubble-wrapper", children: [
3534
3555
  fe ? /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
3535
- S && /* @__PURE__ */ s(S, {}),
3556
+ E && /* @__PURE__ */ s(E, {}),
3536
3557
  /* @__PURE__ */ s(
3537
- Jt.Sent,
3558
+ Zt.Sent,
3538
3559
  {
3539
- title: (Mt = c.metadata) == null ? void 0 : Mt.attachment_title,
3540
- mimeType: (Rt = c.metadata) == null ? void 0 : Rt.attachment_mime_type,
3560
+ title: (Rt = c.metadata) == null ? void 0 : Rt.attachment_title,
3561
+ mimeType: (Dt = c.metadata) == null ? void 0 : Dt.attachment_mime_type,
3541
3562
  thumbnailUrl: (Lt = c.metadata) == null ? void 0 : Lt.attachment_thumbnail,
3542
- amountText: (Dt = c.metadata) == null ? void 0 : Dt.amount_text,
3543
- detail: (zt = c.metadata) == null ? void 0 : zt.attachment_detail,
3544
- paymentStatus: (Pt = c.metadata) == null ? void 0 : Pt.payment_status,
3563
+ amountText: (zt = c.metadata) == null ? void 0 : zt.amount_text,
3564
+ detail: (Pt = c.metadata) == null ? void 0 : Pt.attachment_detail,
3565
+ paymentStatus: (Ft = c.metadata) == null ? void 0 : Ft.payment_status,
3545
3566
  onPreviewClick: () => C == null ? void 0 : C(c, x),
3546
3567
  onFetchSource: async () => await (T == null ? void 0 : T(c, x))
3547
3568
  }
3548
3569
  )
3549
3570
  ] }) : /* @__PURE__ */ m("div", { className: "flex items-center gap-2", children: [
3550
3571
  /* @__PURE__ */ s(
3551
- Jt.Received,
3572
+ Zt.Received,
3552
3573
  {
3553
- title: (Ft = c.metadata) == null ? void 0 : Ft.attachment_title,
3554
- mimeType: (Ot = c.metadata) == null ? void 0 : Ot.attachment_mime_type,
3555
- thumbnailUrl: ($t = c.metadata) == null ? void 0 : $t.attachment_thumbnail,
3556
- amountText: (Bt = c.metadata) == null ? void 0 : Bt.amount_text,
3557
- detail: (Ut = c.metadata) == null ? void 0 : Ut.attachment_detail,
3558
- paymentStatus: (jt = c.metadata) == null ? void 0 : jt.payment_status,
3574
+ title: (Ot = c.metadata) == null ? void 0 : Ot.attachment_title,
3575
+ mimeType: ($t = c.metadata) == null ? void 0 : $t.attachment_mime_type,
3576
+ thumbnailUrl: (Bt = c.metadata) == null ? void 0 : Bt.attachment_thumbnail,
3577
+ amountText: (Ut = c.metadata) == null ? void 0 : Ut.amount_text,
3578
+ detail: (jt = c.metadata) == null ? void 0 : jt.attachment_detail,
3579
+ paymentStatus: (Vt = c.metadata) == null ? void 0 : Vt.payment_status,
3559
3580
  isUnlocking: N(c.id),
3560
3581
  onUnlockClick: () => C == null ? void 0 : C(c, x),
3561
3582
  onFetchSource: async () => await (T == null ? void 0 : T(c, x)),
3562
3583
  onDownloadClick: () => A == null ? void 0 : A(c, x)
3563
3584
  }
3564
3585
  ),
3565
- S && /* @__PURE__ */ s(S, {})
3586
+ E && /* @__PURE__ */ s(E, {})
3566
3587
  ] }),
3567
3588
  c.text && /* @__PURE__ */ s("div", { className: "str-chat__message-bubble", children: /* @__PURE__ */ s(
3568
- Yt,
3589
+ qt,
3569
3590
  {
3570
3591
  message: Q,
3571
3592
  renderText: v
@@ -3574,7 +3595,7 @@ const fi = ({
3574
3595
  ] }) : Et ? (
3575
3596
  /* Tip-only messages render as a standalone bubble */
3576
3597
  /* @__PURE__ */ s(Ke, { message: c, standalone: !0 })
3577
- ) : js ? /* @__PURE__ */ s("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ m(
3598
+ ) : Vs ? /* @__PURE__ */ s("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ m(
3578
3599
  "div",
3579
3600
  {
3580
3601
  className: "str-chat__message-bubble",
@@ -3586,9 +3607,9 @@ const fi = ({
3586
3607
  },
3587
3608
  children: [
3588
3609
  /* @__PURE__ */ s(
3589
- fi,
3610
+ xi,
3590
3611
  {
3591
- groupPosition: De,
3612
+ groupPosition: Le,
3592
3613
  isMyMessage: fe,
3593
3614
  message: {
3594
3615
  attachments: B,
@@ -3596,11 +3617,11 @@ const fi = ({
3596
3617
  }
3597
3618
  }
3598
3619
  ),
3599
- /* @__PURE__ */ s(qt, {})
3620
+ /* @__PURE__ */ s(Wt, {})
3600
3621
  ]
3601
3622
  }
3602
3623
  ) }) : /* @__PURE__ */ s("div", { className: "str-chat__message-bubble-wrapper", children: /* @__PURE__ */ m("div", { className: "str-chat__message-bubble", children: [
3603
- ge && !It && /* @__PURE__ */ s(
3624
+ ge && !Tt && /* @__PURE__ */ s(
3604
3625
  Ke,
3605
3626
  {
3606
3627
  message: c,
@@ -3608,9 +3629,9 @@ const fi = ({
3608
3629
  isMyMessage: fe
3609
3630
  }
3610
3631
  ),
3611
- Ge && /* @__PURE__ */ s(mn, { poll: Ge }),
3632
+ Ge && /* @__PURE__ */ s(fn, { poll: Ge }),
3612
3633
  B != null && B.length && !c.quoted_message ? /* @__PURE__ */ s(
3613
- E,
3634
+ S,
3614
3635
  {
3615
3636
  actionHandler: l,
3616
3637
  attachments: B
@@ -3623,18 +3644,18 @@ const fi = ({
3623
3644
  renderText: v
3624
3645
  }
3625
3646
  ) : /* @__PURE__ */ s(
3626
- Yt,
3647
+ qt,
3627
3648
  {
3628
3649
  message: Q,
3629
3650
  renderText: v
3630
3651
  }
3631
3652
  ),
3632
- /* @__PURE__ */ s(qt, {})
3653
+ /* @__PURE__ */ s(Wt, {})
3633
3654
  ] }) })
3634
3655
  }
3635
3656
  ),
3636
- !St && !Et && /* @__PURE__ */ m("div", { className: "str-chat__message-footer", children: [
3637
- (!ge || It) && /* @__PURE__ */ s(
3657
+ !It && !Et && /* @__PURE__ */ m("div", { className: "str-chat__message-footer", children: [
3658
+ (!ge || Tt) && /* @__PURE__ */ s(
3638
3659
  Ke,
3639
3660
  {
3640
3661
  message: c,
@@ -3643,71 +3664,72 @@ const fi = ({
3643
3664
  }
3644
3665
  ),
3645
3666
  n && ge && /* @__PURE__ */ s(
3646
- Gr,
3667
+ qr,
3647
3668
  {
3648
- selected: D,
3669
+ selected: L,
3649
3670
  onVoteUp: y,
3650
3671
  onVoteDown: I
3651
3672
  }
3652
3673
  )
3653
3674
  ] }),
3654
- ne && /* @__PURE__ */ s(
3655
- ee,
3675
+ /* @__PURE__ */ s(Xr, {}),
3676
+ ae && /* @__PURE__ */ s(
3677
+ te,
3656
3678
  {
3657
3679
  onClick: d,
3658
3680
  reply_count: c.reply_count
3659
3681
  }
3660
3682
  ),
3661
- ce && /* @__PURE__ */ s(X, {})
3683
+ ue && /* @__PURE__ */ s(X, {})
3662
3684
  ]
3663
3685
  },
3664
3686
  c.id
3665
3687
  )
3666
3688
  ] });
3667
- }, pi = V.memo(
3668
- gi,
3669
- (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Ws(e, t)
3670
- ), bi = (e) => {
3671
- const t = Ie("CustomMessage");
3672
- return /* @__PURE__ */ s(pi, { ...t, ...e });
3673
- }, vi = () => {
3689
+ }, _i = V.memo(
3690
+ wi,
3691
+ (e, t) => e.chatbotVotingEnabled !== t.chatbotVotingEnabled || e.viewerLanguage !== t.viewerLanguage ? !1 : Ks(e, t)
3692
+ ), Ni = (e) => {
3693
+ const t = _e("CustomMessage");
3694
+ return /* @__PURE__ */ s(_i, { ...t, ...e });
3695
+ }, yi = () => {
3674
3696
  var n;
3675
- const { handleDelete: e, message: t } = Ie("CustomMessageActions");
3697
+ const { handleDelete: e, message: t } = _e("CustomMessageActions");
3676
3698
  return ((n = t.metadata) == null ? void 0 : n.payment_status) === "paid" ? null : /* @__PURE__ */ s(
3677
- cs,
3699
+ ds,
3678
3700
  {
3679
3701
  onClick: e,
3680
3702
  "aria-label": "Delete",
3681
3703
  title: "Delete",
3682
3704
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
3683
- children: /* @__PURE__ */ s(Xn, { size: 16, weight: "light", "aria-hidden": !0 })
3705
+ children: /* @__PURE__ */ s(Zn, { size: 16, weight: "light", "aria-hidden": !0 })
3684
3706
  }
3685
3707
  );
3686
- }, xi = () => {
3687
- const { handleFlag: e } = Ie("CustomMessageActions");
3708
+ }, ki = () => {
3709
+ const { handleFlag: e } = _e("CustomMessageActions");
3688
3710
  return /* @__PURE__ */ s(
3689
- cs,
3711
+ ds,
3690
3712
  {
3691
3713
  onClick: e,
3692
3714
  "aria-label": "Report",
3693
3715
  title: "Report",
3694
3716
  className: "bg-marble rounded-full p-2 hover:bg-sand transition-all",
3695
- children: /* @__PURE__ */ s(is, { size: 16, weight: "light", "aria-hidden": !0 })
3717
+ children: /* @__PURE__ */ s(ls, { size: 16, weight: "light", "aria-hidden": !0 })
3696
3718
  }
3697
3719
  );
3698
- }, wi = () => {
3720
+ }, Ci = () => {
3699
3721
  var t;
3700
- const { message: e } = Ie("CustomMessageActions");
3722
+ const { message: e } = _e("CustomMessageActions");
3701
3723
  return ((t = e.metadata) == null ? void 0 : t.custom_type) !== "MESSAGE_ATTACHMENT" ? null : /* @__PURE__ */ s(
3702
- Zn,
3724
+ ta,
3703
3725
  {
3704
3726
  messageActionSet: [
3705
- { Component: vi, placement: "quick", type: "delete" },
3706
- { Component: xi, placement: "quick", type: "flag" }
3727
+ { Component: yi, placement: "quick", type: "delete" },
3728
+ { Component: ki, placement: "quick", type: "flag" }
3707
3729
  ]
3708
3730
  }
3709
3731
  );
3710
- }, _i = ({
3732
+ }, Si = ({
3711
3733
  link: e,
3712
3734
  onDismiss: t
3713
3735
  }) => {
@@ -3747,14 +3769,14 @@ const fi = ({
3747
3769
  ]
3748
3770
  }
3749
3771
  );
3750
- }, Ni = (e) => ({
3772
+ }, Ei = (e) => ({
3751
3773
  linkPreviews: Array.from(e.previews.values()).filter(
3752
- (t) => Ht.previewIsLoaded(t) || Ht.previewIsLoading(t)
3774
+ (t) => Yt.previewIsLoaded(t) || Yt.previewIsLoading(t)
3753
3775
  )
3754
- }), yi = () => {
3755
- const { linkPreviewsManager: e } = hn(), { linkPreviews: t } = fn(
3776
+ }), Ii = () => {
3777
+ const { linkPreviewsManager: e } = gn(), { linkPreviews: t } = pn(
3756
3778
  e.state,
3757
- Ni
3779
+ Ei
3758
3780
  ), n = (r) => {
3759
3781
  e.dismissPreview(r);
3760
3782
  };
@@ -3767,9 +3789,9 @@ const fi = ({
3767
3789
  // block so it keeps its intrinsic height and the container scrolls — a
3768
3790
  // bare flex-column child would be shrunk on the column axis and its
3769
3791
  // fixed-height hero would spill out of the collapsed card box.
3770
- /* @__PURE__ */ s("div", { className: "messaging-link-preview-list flex min-h-0 flex-col items-stretch w-full gap-2 mb-4 overflow-y-auto overscroll-contain", children: t.map((r) => /* @__PURE__ */ s("div", { className: "w-full shrink-0", children: /* @__PURE__ */ s(_i, { link: r, onDismiss: n }) }, r.og_scrape_url)) })
3792
+ /* @__PURE__ */ s("div", { className: "messaging-link-preview-list flex min-h-0 flex-col items-stretch w-full gap-2 mb-4 overflow-y-auto overscroll-contain", children: t.map((r) => /* @__PURE__ */ s("div", { className: "w-full shrink-0", children: /* @__PURE__ */ s(Si, { link: r, onDismiss: n }) }, r.og_scrape_url)) })
3771
3793
  ) : null;
3772
- }, kt = V.createContext(!1), ol = () => Se(kt), ki = ({ sendMessage: e, disabled: t, ...n }) => /* @__PURE__ */ s(
3794
+ }, Ct = V.createContext(!1), hl = () => Ie(Ct), Ti = ({ sendMessage: e, disabled: t, ...n }) => /* @__PURE__ */ s(
3773
3795
  "button",
3774
3796
  {
3775
3797
  ...n,
@@ -3777,13 +3799,13 @@ const fi = ({
3777
3799
  "aria-label": "Send",
3778
3800
  disabled: t,
3779
3801
  onClick: e,
3780
- children: /* @__PURE__ */ s(Kn, { weight: "bold", className: "size-4" })
3802
+ children: /* @__PURE__ */ s(Qn, { weight: "bold", className: "size-4" })
3781
3803
  }
3782
- ), Ci = () => {
3783
- const e = Se(kt), { handleSubmit: t } = pn(), n = bn(), a = e || !n, {
3784
- SendButton: r = ki,
3785
- AttachmentPreviewList: i = vn
3786
- } = rs("CustomMessageInput");
3804
+ ), Ai = () => {
3805
+ const e = Ie(Ct), { handleSubmit: t } = vn(), n = xn(), a = e || !n, {
3806
+ SendButton: r = Ti,
3807
+ AttachmentPreviewList: i = wn
3808
+ } = is("CustomMessageInput");
3787
3809
  return (
3788
3810
  // min-h-0 lets the composer shrink under keyboard squeeze (the link
3789
3811
  // preview list inside is the scrollable region); the textarea + send row
@@ -3799,12 +3821,12 @@ const fi = ({
3799
3821
  className: "central-container flex min-h-0 flex-col gap-2 min-w-0 w-full self-stretch p-2 bg-white rounded-[1.5rem] shadow-[0_4px_16px_0_rgba(0,0,0,0.08),0_1px_2px_0_rgba(0,0,0,0.04),0_0_0_1px_rgba(0,0,0,0.04)]",
3800
3822
  "data-dd-privacy": "mask",
3801
3823
  children: [
3802
- /* @__PURE__ */ s(xn, {}),
3803
- /* @__PURE__ */ s(yi, {}),
3824
+ /* @__PURE__ */ s(_n, {}),
3825
+ /* @__PURE__ */ s(Ii, {}),
3804
3826
  /* @__PURE__ */ s(i, {}),
3805
3827
  /* @__PURE__ */ m("div", { className: "flex shrink-0", children: [
3806
3828
  /* @__PURE__ */ s("div", { className: "w-full ml-2 mr-4 self-center leading-[0]", children: /* @__PURE__ */ s(
3807
- wn,
3829
+ Nn,
3808
3830
  {
3809
3831
  "aria-disabled": e || void 0,
3810
3832
  className: "w-full resize-none outline-none leading-5 placeholder:text-black/30 text-sm",
@@ -3830,7 +3852,7 @@ const fi = ({
3830
3852
  }
3831
3853
  )
3832
3854
  );
3833
- }, Ei = ({
3855
+ }, Mi = ({
3834
3856
  renderActions: e,
3835
3857
  renderFooter: t,
3836
3858
  disabled: n = !1,
@@ -3838,8 +3860,8 @@ const fi = ({
3838
3860
  composerInput: r
3839
3861
  }) => {
3840
3862
  var l;
3841
- const { channel: i } = ue(), o = ((l = i == null ? void 0 : i.data) == null ? void 0 : l.frozen) === !0;
3842
- return n ? /* @__PURE__ */ m(te, { children: [
3863
+ const { channel: i } = le(), o = ((l = i == null ? void 0 : i.data) == null ? void 0 : l.frozen) === !0;
3864
+ return n ? /* @__PURE__ */ m(ee, { children: [
3843
3865
  /* @__PURE__ */ s("div", { className: "messaging-composer-locked-panel flex w-full flex-col items-center justify-center gap-3 px-6 py-4", children: a ? /* @__PURE__ */ s("p", { className: "max-w-[345px] text-center text-xs font-normal leading-[1.3] tracking-[0.12px] text-black/40", children: a }) : null }),
3844
3866
  t == null ? void 0 : t()
3845
3867
  ] }) : /* @__PURE__ */ m("div", { className: "flex min-h-0 flex-col gap-4 p-4", children: [
@@ -3851,67 +3873,67 @@ const fi = ({
3851
3873
  className: "message-input flex min-h-0 items-end gap-4 aria-disabled:opacity-40",
3852
3874
  children: [
3853
3875
  e && /* @__PURE__ */ s("div", { className: "flex h-12 shrink-0 items-center justify-center", children: e() }),
3854
- /* @__PURE__ */ s(kt.Provider, { value: o, children: /* @__PURE__ */ s(gn, { Input: r ?? Ci }) })
3876
+ /* @__PURE__ */ s(Ct.Provider, { value: o, children: /* @__PURE__ */ s(bn, { Input: r ?? Ai }) })
3855
3877
  ]
3856
3878
  }
3857
3879
  ),
3858
3880
  t == null ? void 0 : t()
3859
3881
  ] });
3860
- }, Si = [
3882
+ }, Ri = [
3861
3883
  "SYSTEM_DM_AGENT_PAUSED",
3862
3884
  "SYSTEM_DM_AGENT_RESUMED"
3863
- ], Ii = {
3885
+ ], Di = {
3864
3886
  SYSTEM_DM_AGENT_PAUSED: "DM Agent has left the conversation",
3865
3887
  SYSTEM_DM_AGENT_RESUMED: "DM Agent has rejoined the conversation"
3866
- }, Ti = [
3888
+ }, Li = [
3867
3889
  "SYSTEM_AGE_SAFETY_BLOCKED"
3868
- ], Ai = {
3890
+ ], zi = {
3869
3891
  SYSTEM_AGE_SAFETY_BLOCKED: "This user isn’t able to reply because they don’t meet our age safety guidelines."
3870
- }, Je = "age safety guidelines.", Mi = "https://linktr.ee/s/about/contact", ns = (e) => Si.includes(e), Ri = (e) => Ti.includes(e), Li = (e) => {
3892
+ }, Ze = "age safety guidelines.", Pi = "https://linktr.ee/s/about/contact", as = (e) => Ri.includes(e), Fi = (e) => Li.includes(e), Oi = (e) => {
3871
3893
  var a;
3872
3894
  const t = (a = e.metadata) == null ? void 0 : a.custom_type;
3873
- if (ns(t))
3895
+ if (as(t))
3874
3896
  return {
3875
3897
  kind: "dm-agent",
3876
3898
  type: t
3877
3899
  };
3878
- if (Ri(t))
3900
+ if (Fi(t))
3879
3901
  return {
3880
3902
  kind: "age-safety",
3881
3903
  type: t
3882
3904
  };
3883
3905
  const n = e.dm_agent_system_type;
3884
- if (ns(n))
3906
+ if (as(n))
3885
3907
  return {
3886
3908
  kind: "dm-agent",
3887
3909
  type: n
3888
3910
  };
3889
- }, Di = (e) => {
3890
- const t = e.indexOf(Je);
3911
+ }, $i = (e) => {
3912
+ const t = e.indexOf(Ze);
3891
3913
  if (t === -1)
3892
3914
  return e;
3893
- const n = t + Je.length;
3894
- return /* @__PURE__ */ m(te, { children: [
3915
+ const n = t + Ze.length;
3916
+ return /* @__PURE__ */ m(ee, { children: [
3895
3917
  e.slice(0, t),
3896
3918
  /* @__PURE__ */ s(
3897
3919
  "a",
3898
3920
  {
3899
- href: Mi,
3921
+ href: Pi,
3900
3922
  target: "_blank",
3901
3923
  rel: "noopener noreferrer",
3902
3924
  className: "mes-age-safety-system-message__emphasis font-medium text-inherit underline",
3903
- children: Je
3925
+ children: Ze
3904
3926
  }
3905
3927
  ),
3906
3928
  e.slice(n)
3907
3929
  ] });
3908
- }, zi = (e) => {
3930
+ }, Bi = (e) => {
3909
3931
  var a, r;
3910
- const t = e.message.hide_date === !0, n = Li(
3932
+ const t = e.message.hide_date === !0, n = Oi(
3911
3933
  e.message
3912
3934
  );
3913
3935
  if ((n == null ? void 0 : n.kind) === "dm-agent") {
3914
- const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Ii[n.type];
3936
+ const i = ((a = e.message.text) == null ? void 0 : a.trim()) || Di[n.type];
3915
3937
  return /* @__PURE__ */ m("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
3916
3938
  /* @__PURE__ */ m(
3917
3939
  "div",
@@ -3937,7 +3959,7 @@ const fi = ({
3937
3959
  ] });
3938
3960
  }
3939
3961
  if ((n == null ? void 0 : n.kind) === "age-safety") {
3940
- const i = ((r = e.message.text) == null ? void 0 : r.trim()) || Ai[n.type];
3962
+ const i = ((r = e.message.text) == null ? void 0 : r.trim()) || zi[n.type];
3941
3963
  return /* @__PURE__ */ m("div", { className: "str-chat__message--system", "data-testid": "message-system", children: [
3942
3964
  /* @__PURE__ */ m(
3943
3965
  "div",
@@ -3947,7 +3969,7 @@ const fi = ({
3947
3969
  "data-age-safety-system-type": n.type,
3948
3970
  children: [
3949
3971
  /* @__PURE__ */ s(
3950
- Jn,
3972
+ ea,
3951
3973
  {
3952
3974
  size: 24,
3953
3975
  weight: "duotone",
@@ -3956,7 +3978,7 @@ const fi = ({
3956
3978
  "data-testid": "age-safety-system-message-icon"
3957
3979
  }
3958
3980
  ),
3959
- /* @__PURE__ */ s("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ s("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children: Di(i) }) })
3981
+ /* @__PURE__ */ s("div", { className: "mes-age-safety-system-message__content min-w-0 flex-[1_0_0]", children: /* @__PURE__ */ s("p", { className: "m-0 text-balance text-left text-[12px] font-normal leading-4 tracking-[0.21px] text-[color:var(--text-warning-on-warning,#894b00)]", children: $i(i) }) })
3960
3982
  ]
3961
3983
  }
3962
3984
  ),
@@ -3971,7 +3993,7 @@ const fi = ({
3971
3993
  ] }),
3972
3994
  !t && /* @__PURE__ */ s(Ye, { message: e.message })
3973
3995
  ] });
3974
- }, Fs = at(!1), Ze = ({ cx: e, index: t }) => /* @__PURE__ */ s("circle", { cx: e, cy: "6.15", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ s(
3996
+ }, Os = rt(!1), Qe = ({ cx: e, index: t }) => /* @__PURE__ */ s("circle", { cx: e, cy: "6.15", r: "3.9", fill: "#A0A0A0", children: /* @__PURE__ */ s(
3975
3997
  "animateTransform",
3976
3998
  {
3977
3999
  attributeName: "transform",
@@ -3981,17 +4003,17 @@ const fi = ({
3981
4003
  begin: `${120 * t}ms`,
3982
4004
  repeatCount: "indefinite"
3983
4005
  }
3984
- ) }), Pi = /* @__PURE__ */ new Set([
4006
+ ) }), Ui = /* @__PURE__ */ new Set([
3985
4007
  qe.Thinking,
3986
4008
  qe.Generating,
3987
4009
  qe.ExternalSources
3988
- ]), Fi = ({ threadList: e }) => {
4010
+ ]), ji = ({ threadList: e }) => {
3989
4011
  var v, w;
3990
- const { channel: t, channelConfig: n, thread: a } = ue(), { client: r } = me(), { typing: i = {} } = _n(), { aiState: o } = Nn(t), l = Se(Fs);
3991
- if (!e && l && Pi.has(o)) {
3992
- const b = Oi(t, (v = r.user) == null ? void 0 : v.id);
4012
+ const { channel: t, channelConfig: n, thread: a } = le(), { client: r } = oe(), { typing: i = {} } = yn(), { aiState: o } = kn(t), l = Ie(Os);
4013
+ if (!e && l && Ui.has(o)) {
4014
+ const b = Vi(t, (v = r.user) == null ? void 0 : v.id);
3993
4015
  return /* @__PURE__ */ s(
3994
- as,
4016
+ rs,
3995
4017
  {
3996
4018
  avatarId: (b == null ? void 0 : b.id) ?? "ai-agent",
3997
4019
  avatarName: (b == null ? void 0 : b.name) ?? (b == null ? void 0 : b.id) ?? "Agent",
@@ -4017,7 +4039,7 @@ const fi = ({
4017
4039
  return null;
4018
4040
  const f = (w = h[0]) == null ? void 0 : w.user, c = f != null && f.id && t.state.members[f.id] ? t.state.members[f.id].user : void 0;
4019
4041
  return /* @__PURE__ */ s(
4020
- as,
4042
+ rs,
4021
4043
  {
4022
4044
  avatarId: (f == null ? void 0 : f.id) ?? (c == null ? void 0 : c.id) ?? "typing-user",
4023
4045
  avatarName: (f == null ? void 0 : f.name) ?? (c == null ? void 0 : c.name) ?? (f == null ? void 0 : f.id) ?? "Typing user",
@@ -4025,7 +4047,7 @@ const fi = ({
4025
4047
  testId: "typing-indicator"
4026
4048
  }
4027
4049
  );
4028
- }, as = ({
4050
+ }, rs = ({
4029
4051
  avatarId: e,
4030
4052
  avatarName: t,
4031
4053
  avatarImage: n,
@@ -4040,7 +4062,7 @@ const fi = ({
4040
4062
  },
4041
4063
  children: /* @__PURE__ */ m("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: [
4042
4064
  /* @__PURE__ */ s(
4043
- se,
4065
+ ne,
4044
4066
  {
4045
4067
  className: "str-chat__avatar str-chat__message-sender-avatar",
4046
4068
  id: e,
@@ -4060,16 +4082,16 @@ const fi = ({
4060
4082
  height: "13",
4061
4083
  overflow: "visible",
4062
4084
  children: [
4063
- /* @__PURE__ */ s(Ze, { cx: "4", index: 0 }),
4064
- /* @__PURE__ */ s(Ze, { cx: "16", index: 1 }),
4065
- /* @__PURE__ */ s(Ze, { cx: "28", index: 2 })
4085
+ /* @__PURE__ */ s(Qe, { cx: "4", index: 0 }),
4086
+ /* @__PURE__ */ s(Qe, { cx: "16", index: 1 }),
4087
+ /* @__PURE__ */ s(Qe, { cx: "28", index: 2 })
4066
4088
  ]
4067
4089
  }
4068
4090
  ) }) }) }) }) })
4069
4091
  ] })
4070
4092
  }
4071
4093
  );
4072
- function Oi(e, t) {
4094
+ function Vi(e, t) {
4073
4095
  var a;
4074
4096
  const n = ((a = e == null ? void 0 : e.state) == null ? void 0 : a.members) ?? {};
4075
4097
  for (const r of Object.values(n)) {
@@ -4078,7 +4100,7 @@ function Oi(e, t) {
4078
4100
  return i;
4079
4101
  }
4080
4102
  }
4081
- const $i = () => null, Bi = ({ className: e, message: t }) => /* @__PURE__ */ m(
4103
+ const Gi = () => null, Hi = ({ className: e, message: t }) => /* @__PURE__ */ m(
4082
4104
  "div",
4083
4105
  {
4084
4106
  className: k("flex items-center justify-center h-full", e),
@@ -4122,11 +4144,11 @@ const $i = () => null, Bi = ({ className: e, message: t }) => /* @__PURE__ */ m(
4122
4144
  ]
4123
4145
  }
4124
4146
  ), Be = V.memo(() => /* @__PURE__ */ s("div", { className: "messaging-loading-state flex items-center justify-center h-full", children: /* @__PURE__ */ m("div", { className: "flex items-center", children: [
4125
- /* @__PURE__ */ s(Bi, { className: "w-6 h-6" }),
4147
+ /* @__PURE__ */ s(Hi, { className: "w-6 h-6" }),
4126
4148
  /* @__PURE__ */ s("span", { className: "text-sm text-stone", children: "Loading messages" })
4127
4149
  ] }) }));
4128
4150
  Be.displayName = "LoadingState";
4129
- const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Pe = "Replies instantly with AI assistant", Ui = ({
4151
+ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-center transition-colors duration-150 focus-ring", Pe = "Replies instantly with AI assistant", Yi = ({
4130
4152
  onBack: e,
4131
4153
  showBackButton: t,
4132
4154
  showStarButton: n = !1,
@@ -4145,8 +4167,8 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4145
4167
  onParticipantNameClick: w,
4146
4168
  renderHeaderTitleBadges: b
4147
4169
  }) => {
4148
- var I, E, R, S, z, O;
4149
- const { channel: g } = ue(), { client: x } = me(), N = V.useMemo(
4170
+ var I, S, R, E, z, O;
4171
+ const { channel: g } = le(), { client: x } = oe(), N = V.useMemo(
4150
4172
  () => {
4151
4173
  var j;
4152
4174
  return je(
@@ -4156,12 +4178,12 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4156
4178
  );
4157
4179
  },
4158
4180
  [(I = g.state) == null ? void 0 : I.members, x == null ? void 0 : x.userID, g.type]
4159
- ), C = ot(N == null ? void 0 : N.user), T = (E = N == null ? void 0 : N.user) == null ? void 0 : E.image, A = lt(g), L = b == null ? void 0 : b({
4181
+ ), C = ct(N == null ? void 0 : N.user), T = (S = N == null ? void 0 : N.user) == null ? void 0 : S.image, A = ot(g), D = b == null ? void 0 : b({
4160
4182
  channel: g,
4161
4183
  participant: N
4162
- }), $ = "flex max-w-full flex-col items-center gap-1 rounded-[12px] px-1 py-0.5 text-center text-xs font-medium text-black/90", F = "flex min-w-0 max-w-full items-center gap-4 rounded-[12px] px-1 py-0.5 text-left text-black/90", D = /* @__PURE__ */ m(te, { children: [
4184
+ }), $ = "flex max-w-full flex-col items-center gap-1 rounded-[12px] px-1 py-0.5 text-center text-xs font-medium text-black/90", F = "flex min-w-0 max-w-full items-center gap-4 rounded-[12px] px-1 py-0.5 text-left text-black/90", L = /* @__PURE__ */ m(ee, { children: [
4163
4185
  /* @__PURE__ */ s("span", { className: "min-w-0 truncate", children: C }),
4164
- L && /* @__PURE__ */ s("span", { className: "shrink-0", children: L })
4186
+ D && /* @__PURE__ */ s("span", { className: "shrink-0", children: D })
4165
4187
  ] }), y = async () => {
4166
4188
  try {
4167
4189
  A ? await g.unpin() : await g.pin();
@@ -4185,7 +4207,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4185
4207
  }),
4186
4208
  type: "button",
4187
4209
  "aria-label": "Back to conversations",
4188
- children: /* @__PURE__ */ s(Qe, { className: "size-5 text-black/90" })
4210
+ children: /* @__PURE__ */ s(et, { className: "size-5 text-black/90" })
4189
4211
  }
4190
4212
  ) }),
4191
4213
  /* @__PURE__ */ s(
@@ -4205,7 +4227,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4205
4227
  ),
4206
4228
  children: [
4207
4229
  /* @__PURE__ */ s(
4208
- se,
4230
+ ne,
4209
4231
  {
4210
4232
  id: ((R = N == null ? void 0 : N.user) == null ? void 0 : R.id) || g.id || "unknown",
4211
4233
  name: C,
@@ -4216,7 +4238,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4216
4238
  }
4217
4239
  ),
4218
4240
  /* @__PURE__ */ m("span", { className: "flex max-w-full items-center gap-0.5", children: [
4219
- D,
4241
+ L,
4220
4242
  /* @__PURE__ */ s(ve, { className: "size-3 shrink-0", weight: "bold" })
4221
4243
  ] }),
4222
4244
  a && /* @__PURE__ */ m("div", { className: "flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
@@ -4227,9 +4249,9 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4227
4249
  }
4228
4250
  ) : /* @__PURE__ */ m("div", { className: $, children: [
4229
4251
  /* @__PURE__ */ s(
4230
- se,
4252
+ ne,
4231
4253
  {
4232
- id: ((S = N == null ? void 0 : N.user) == null ? void 0 : S.id) || g.id || "unknown",
4254
+ id: ((E = N == null ? void 0 : N.user) == null ? void 0 : E.id) || g.id || "unknown",
4233
4255
  name: C,
4234
4256
  image: T,
4235
4257
  starred: n && A,
@@ -4238,7 +4260,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4238
4260
  }
4239
4261
  ),
4240
4262
  /* @__PURE__ */ m("p", { className: "flex max-w-full items-center justify-center gap-0.5", children: [
4241
- D,
4263
+ L,
4242
4264
  /* @__PURE__ */ s(
4243
4265
  ve,
4244
4266
  {
@@ -4275,7 +4297,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4275
4297
  }
4276
4298
  ),
4277
4299
  v && (c !== void 0 ? c : /* @__PURE__ */ s(
4278
- tt,
4300
+ st,
4279
4301
  {
4280
4302
  channel: g,
4281
4303
  participant: N,
@@ -4305,7 +4327,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4305
4327
  type: "button",
4306
4328
  onClick: e,
4307
4329
  "aria-label": "Back to conversations",
4308
- children: /* @__PURE__ */ s(Qe, { className: "size-5 text-black/90" })
4330
+ children: /* @__PURE__ */ s(et, { className: "size-5 text-black/90" })
4309
4331
  }
4310
4332
  ),
4311
4333
  w ? /* @__PURE__ */ m(
@@ -4320,7 +4342,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4320
4342
  ),
4321
4343
  children: [
4322
4344
  /* @__PURE__ */ s(
4323
- se,
4345
+ ne,
4324
4346
  {
4325
4347
  id: ((z = N == null ? void 0 : N.user) == null ? void 0 : z.id) || g.id || "unknown",
4326
4348
  name: C,
@@ -4332,7 +4354,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4332
4354
  ),
4333
4355
  /* @__PURE__ */ m("div", { className: "min-w-0", children: [
4334
4356
  /* @__PURE__ */ m("h1", { className: "flex min-w-0 items-center gap-1 font-medium text-black/90", children: [
4335
- D,
4357
+ L,
4336
4358
  /* @__PURE__ */ s(ve, { className: "size-4 shrink-0", weight: "bold" })
4337
4359
  ] }),
4338
4360
  a && /* @__PURE__ */ m("div", { className: "mt-0.5 flex items-center gap-1 text-[10px] leading-3 text-black/55", children: [
@@ -4344,7 +4366,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4344
4366
  }
4345
4367
  ) : /* @__PURE__ */ m("div", { className: F, children: [
4346
4368
  /* @__PURE__ */ s(
4347
- se,
4369
+ ne,
4348
4370
  {
4349
4371
  id: ((O = N == null ? void 0 : N.user) == null ? void 0 : O.id) || g.id || "unknown",
4350
4372
  name: C,
@@ -4356,7 +4378,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4356
4378
  ),
4357
4379
  /* @__PURE__ */ m("div", { className: "min-w-0", children: [
4358
4380
  /* @__PURE__ */ m("h1", { className: "flex min-w-0 items-center gap-1 font-medium text-black/90", children: [
4359
- D,
4381
+ L,
4360
4382
  /* @__PURE__ */ s(
4361
4383
  ve,
4362
4384
  {
@@ -4393,7 +4415,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4393
4415
  }
4394
4416
  ),
4395
4417
  v && (c !== void 0 ? c : /* @__PURE__ */ s(
4396
- tt,
4418
+ st,
4397
4419
  {
4398
4420
  channel: g,
4399
4421
  participant: N,
@@ -4412,7 +4434,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4412
4434
  ] })
4413
4435
  ] })
4414
4436
  ] });
4415
- }, ji = ({
4437
+ }, qi = ({
4416
4438
  onBack: e,
4417
4439
  showBackButton: t,
4418
4440
  renderMessageInputActions: n,
@@ -4436,13 +4458,13 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4436
4458
  renderChannelActions: C,
4437
4459
  renderMessage: T,
4438
4460
  dmAgentEnabled: A = !1,
4439
- viewerLanguage: L,
4461
+ viewerLanguage: D,
4440
4462
  showChannelInfo: $ = !0,
4441
4463
  onParticipantNameClick: F,
4442
- composerInput: D
4464
+ composerInput: L
4443
4465
  }) => {
4444
4466
  var _, M, H, q;
4445
- const { channel: y } = ue(), { client: I } = me(), E = V.useMemo(
4467
+ const { channel: y } = le(), { client: I } = oe(), S = V.useMemo(
4446
4468
  () => {
4447
4469
  var Y;
4448
4470
  return je(
@@ -4456,13 +4478,13 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4456
4478
  var W;
4457
4479
  const Y = I == null ? void 0 : I.userID;
4458
4480
  return Y ? Object.values(((W = y.state) == null ? void 0 : W.members) || {}).find((Q) => {
4459
- var oe;
4460
- return ((oe = Q.user) == null ? void 0 : oe.id) === Y;
4481
+ var de;
4482
+ return ((de = Q.user) == null ? void 0 : de.id) === Y;
4461
4483
  }) : void 0;
4462
- }, [I == null ? void 0 : I.userID, (M = y.state) == null ? void 0 : M.members]), S = ((H = R == null ? void 0 : R.user) == null ? void 0 : H.is_account) ?? (R == null ? void 0 : R.is_account), z = ((q = E == null ? void 0 : E.user) == null ? void 0 : q.is_account) ?? (E == null ? void 0 : E.is_account), O = A && S === !1 && z === !0, j = y.state.messages.some(
4484
+ }, [I == null ? void 0 : I.userID, (M = y.state) == null ? void 0 : M.members]), E = ((H = R == null ? void 0 : R.user) == null ? void 0 : H.is_account) ?? (R == null ? void 0 : R.is_account), z = ((q = S == null ? void 0 : S.user) == null ? void 0 : q.is_account) ?? (S == null ? void 0 : S.is_account), O = A && E === !1 && z === !0, j = y.state.messages.some(
4463
4485
  (Y) => Y.type !== "deleted"
4464
- ), X = g ? /* @__PURE__ */ s(V.Fragment, { children: g() }, "lt-channel-banner") : null, ee = F ? /* @__PURE__ */ s(
4465
- ha,
4486
+ ), X = g ? /* @__PURE__ */ s(V.Fragment, { children: g() }, "lt-channel-banner") : null, te = F ? /* @__PURE__ */ s(
4487
+ pa,
4466
4488
  {
4467
4489
  onBack: e,
4468
4490
  showBackButton: t,
@@ -4483,29 +4505,29 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4483
4505
  }
4484
4506
  ) : null, K = Z(
4485
4507
  (Y) => {
4486
- const { message: B } = Ie("ChannelView"), W = /* @__PURE__ */ s(
4487
- bi,
4508
+ const { message: B } = _e("ChannelView"), W = /* @__PURE__ */ s(
4509
+ Ni,
4488
4510
  {
4489
4511
  ...Y,
4490
4512
  chatbotVotingEnabled: b,
4491
- viewerLanguage: L
4513
+ viewerLanguage: D
4492
4514
  }
4493
4515
  );
4494
4516
  return !T || !B ? W : T(W, B);
4495
4517
  },
4496
- [b, T, L]
4518
+ [b, T, D]
4497
4519
  );
4498
- return /* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
4499
- kn,
4520
+ return /* @__PURE__ */ s(ee, { children: /* @__PURE__ */ s(
4521
+ Sn,
4500
4522
  {
4501
4523
  overrides: {
4502
4524
  Message: K,
4503
- MessageActions: wi
4525
+ MessageActions: Ci
4504
4526
  },
4505
- children: /* @__PURE__ */ m(Cn, { children: [
4506
- !F && /* @__PURE__ */ m(te, { children: [
4527
+ children: /* @__PURE__ */ m(En, { children: [
4528
+ !F && /* @__PURE__ */ m(ee, { children: [
4507
4529
  /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
4508
- Ui,
4530
+ Yi,
4509
4531
  {
4510
4532
  onBack: e,
4511
4533
  showBackButton: t,
@@ -4528,7 +4550,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4528
4550
  X
4529
4551
  ] }),
4530
4552
  F && !j && /* @__PURE__ */ m("div", { className: "px-4 @lg:px-6", children: [
4531
- ee,
4553
+ te,
4532
4554
  X
4533
4555
  ] }),
4534
4556
  /* @__PURE__ */ s(
@@ -4536,10 +4558,10 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4536
4558
  {
4537
4559
  className: "flex-1 overflow-hidden relative",
4538
4560
  children: /* @__PURE__ */ s(
4539
- En,
4561
+ In,
4540
4562
  {
4541
4563
  head: F && j ? /* @__PURE__ */ m("div", { className: "sticky top-0 z-10", children: [
4542
- ee,
4564
+ te,
4543
4565
  X
4544
4566
  ] }) : void 0,
4545
4567
  hideDeletedMessages: !0,
@@ -4551,7 +4573,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4551
4573
  ),
4552
4574
  r ? /* @__PURE__ */ s(V.Fragment, { children: r(y) }, "lt-channel-conversation-footer") : null,
4553
4575
  /* @__PURE__ */ s(
4554
- Ei,
4576
+ Mi,
4555
4577
  {
4556
4578
  ...n && {
4557
4579
  renderActions: () => n == null ? void 0 : n(y)
@@ -4559,14 +4581,14 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4559
4581
  renderFooter: () => a == null ? void 0 : a(y),
4560
4582
  disabled: c,
4561
4583
  disabledReason: v,
4562
- composerInput: D
4584
+ composerInput: L
4563
4585
  },
4564
4586
  "lt-channel-message-input"
4565
4587
  )
4566
4588
  ] })
4567
4589
  }
4568
4590
  ) });
4569
- }, Os = V.memo(
4591
+ }, $s = V.memo(
4570
4592
  ({
4571
4593
  channel: e,
4572
4594
  onBack: t,
@@ -4577,7 +4599,7 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4577
4599
  onLeaveConversation: o,
4578
4600
  onBlockParticipant: l,
4579
4601
  className: d,
4580
- CustomChannelEmptyState: u = $i,
4602
+ CustomChannelEmptyState: u = Gi,
4581
4603
  showDeleteConversation: p = !0,
4582
4604
  onDeleteConversationClick: h,
4583
4605
  onBlockParticipantClick: f,
@@ -4591,15 +4613,15 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4591
4613
  onMessageSent: C,
4592
4614
  showStarButton: T = !1,
4593
4615
  chatbotVotingEnabled: A = !1,
4594
- renderChannelBanner: L,
4616
+ renderChannelBanner: D,
4595
4617
  renderHeaderTitleBadges: $,
4596
4618
  customChannelActions: F,
4597
- renderChannelActions: D,
4619
+ renderChannelActions: L,
4598
4620
  renderMessage: y,
4599
4621
  onMessageLinkClick: I,
4600
- sendButton: E,
4622
+ sendButton: S,
4601
4623
  attachmentPreviewList: R,
4602
- viewerLanguage: S,
4624
+ viewerLanguage: E,
4603
4625
  showChannelInfo: z = !0,
4604
4626
  onParticipantNameClick: O,
4605
4627
  composerInput: j
@@ -4623,40 +4645,40 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4623
4645
  return C == null || C(W), W;
4624
4646
  },
4625
4647
  [e, x, N, C]
4626
- ), ee = G(null);
4648
+ ), te = G(null);
4627
4649
  return J(() => {
4628
4650
  if (!I) return;
4629
- const K = ee.current;
4651
+ const K = te.current;
4630
4652
  if (!K) return;
4631
4653
  const _ = (M) => {
4632
4654
  const H = M.target, q = H == null ? void 0 : H.closest("a[href]"), Y = q == null ? void 0 : q.getAttribute("href");
4633
4655
  if (!Y) return;
4634
- const B = q == null ? void 0 : q.closest("[data-message-id]"), W = B == null ? void 0 : B.getAttribute("data-message-id"), Q = W ? e.state.messages.find((oe) => oe.id === W) : void 0;
4656
+ const B = q == null ? void 0 : q.closest("[data-message-id]"), W = B == null ? void 0 : B.getAttribute("data-message-id"), Q = W ? e.state.messages.find((de) => de.id === W) : void 0;
4635
4657
  I(Y, Q);
4636
4658
  };
4637
4659
  return K.addEventListener("click", _), () => K.removeEventListener("click", _);
4638
4660
  }, [I, e]), /* @__PURE__ */ s(
4639
4661
  "div",
4640
4662
  {
4641
- ref: ee,
4663
+ ref: te,
4642
4664
  className: k(
4643
4665
  "messaging-channel-view h-full flex flex-col",
4644
4666
  d
4645
4667
  ),
4646
- children: /* @__PURE__ */ s(Fs.Provider, { value: x ?? !1, children: /* @__PURE__ */ s(
4647
- yn,
4668
+ children: /* @__PURE__ */ s(Os.Provider, { value: x ?? !1, children: /* @__PURE__ */ s(
4669
+ Cn,
4648
4670
  {
4649
4671
  channel: e,
4650
- MessageSystem: zi,
4672
+ MessageSystem: Bi,
4651
4673
  EmptyStateIndicator: u,
4652
4674
  LoadingIndicator: Be,
4653
- DateSeparator: fa,
4654
- TypingIndicator: Fi,
4675
+ DateSeparator: ba,
4676
+ TypingIndicator: ji,
4655
4677
  doSendMessageRequest: X,
4656
- ...E ? { SendButton: E } : {},
4678
+ ...S ? { SendButton: S } : {},
4657
4679
  ...R ? { AttachmentPreviewList: R } : {},
4658
4680
  children: /* @__PURE__ */ s(
4659
- ji,
4681
+ qi,
4660
4682
  {
4661
4683
  onBack: t,
4662
4684
  showBackButton: n,
@@ -4677,12 +4699,12 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4677
4699
  showStarButton: T,
4678
4700
  dmAgentEnabled: x,
4679
4701
  chatbotVotingEnabled: A,
4680
- renderChannelBanner: L,
4702
+ renderChannelBanner: D,
4681
4703
  renderHeaderTitleBadges: $,
4682
4704
  customChannelActions: F,
4683
- renderChannelActions: D,
4705
+ renderChannelActions: L,
4684
4706
  renderMessage: y,
4685
- viewerLanguage: S,
4707
+ viewerLanguage: E,
4686
4708
  showChannelInfo: z,
4687
4709
  onParticipantNameClick: O,
4688
4710
  composerInput: j
@@ -4694,8 +4716,8 @@ const be = "size-10 rounded-full hover:bg-[#E5E4E1] flex items-center justify-ce
4694
4716
  );
4695
4717
  }
4696
4718
  );
4697
- Os.displayName = "ChannelView";
4698
- const ye = V.memo(({ message: e, onBack: t }) => /* @__PURE__ */ s("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ m("div", { className: "text-center max-w-sm", children: [
4719
+ $s.displayName = "ChannelView";
4720
+ const ke = V.memo(({ message: e, onBack: t }) => /* @__PURE__ */ s("div", { className: "messaging-error-state flex items-center justify-center h-full p-8", children: /* @__PURE__ */ m("div", { className: "text-center max-w-sm", children: [
4699
4721
  /* @__PURE__ */ s("div", { className: "w-24 h-24 bg-danger-alt/20 rounded-full flex items-center justify-center mx-auto mb-6", children: /* @__PURE__ */ s("span", { className: "text-4xl", children: "⚠️" }) }),
4700
4722
  /* @__PURE__ */ s("h2", { className: "font-semibold text-charcoal mb-2", children: "Oops!" }),
4701
4723
  /* @__PURE__ */ s("p", { className: "text-stone text-sm mb-6", children: e }),
@@ -4709,8 +4731,8 @@ const ye = V.memo(({ message: e, onBack: t }) => /* @__PURE__ */ s("div", { clas
4709
4731
  }
4710
4732
  )
4711
4733
  ] }) }));
4712
- ye.displayName = "ErrorState";
4713
- const cl = ({
4734
+ ke.displayName = "ErrorState";
4735
+ const fl = ({
4714
4736
  capabilities: e = {},
4715
4737
  renderMessageInputActions: t,
4716
4738
  renderConversationFooter: n,
@@ -4736,14 +4758,14 @@ const cl = ({
4736
4758
  composerInput: A
4737
4759
  }) => {
4738
4760
  const {
4739
- client: L,
4761
+ client: D,
4740
4762
  isConnected: $,
4741
4763
  isLoading: F,
4742
- error: D,
4764
+ error: L,
4743
4765
  refreshConnection: y,
4744
4766
  service: I,
4745
- debug: E
4746
- } = Qn(), [R, S] = U(null), [z, O] = U(null), [j, X] = U(!1), { showDeleteConversation: ee = !0 } = e, K = G(o);
4767
+ debug: S
4768
+ } = sa(), [R, E] = U(null), [z, O] = U(null), [j, X] = U(!1), { showDeleteConversation: te = !0 } = e, K = G(o);
4747
4769
  K.current = o;
4748
4770
  const _ = G(a);
4749
4771
  _.current = a;
@@ -4751,8 +4773,8 @@ const cl = ({
4751
4773
  J(() => {
4752
4774
  H.current = R;
4753
4775
  }, [R]), J(() => {
4754
- if (!L || !$) return;
4755
- const B = L.userID;
4776
+ if (!D || !$) return;
4777
+ const B = D.userID;
4756
4778
  if (!B) return;
4757
4779
  const W = `${B}::${i}`;
4758
4780
  if (M.current === W) return;
@@ -4761,13 +4783,13 @@ const cl = ({
4761
4783
  M.current === W && (M.current = null);
4762
4784
  };
4763
4785
  (async () => {
4764
- var Le, De;
4786
+ var De, Le;
4765
4787
  try {
4766
- E && console.log(
4788
+ S && console.log(
4767
4789
  "[MessagingShell] Loading initial conversation with:",
4768
4790
  i
4769
4791
  );
4770
- const ne = await L.queryChannels(
4792
+ const ae = await D.queryChannels(
4771
4793
  {
4772
4794
  type: "messaging",
4773
4795
  members: { $eq: [B, i] }
@@ -4775,16 +4797,16 @@ const cl = ({
4775
4797
  {},
4776
4798
  { limit: 1 }
4777
4799
  );
4778
- if (ne.length > 0) {
4779
- S(ne[0]), O(null), (Le = _.current) == null || Le.call(_, ne[0]), E && console.log(
4800
+ if (ae.length > 0) {
4801
+ E(ae[0]), O(null), (De = _.current) == null || De.call(_, ae[0]), S && console.log(
4780
4802
  "[MessagingShell] Initial conversation loaded:",
4781
- ne[0].id
4803
+ ae[0].id
4782
4804
  );
4783
4805
  return;
4784
4806
  }
4785
- const ce = K.current;
4786
- if (!ce || !I) {
4787
- Q(), O("No conversation found with this account"), E && console.log(
4807
+ const ue = K.current;
4808
+ if (!ue || !I) {
4809
+ Q(), O("No conversation found with this account"), S && console.log(
4788
4810
  "[MessagingShell] No conversation found for:",
4789
4811
  i
4790
4812
  );
@@ -4792,11 +4814,11 @@ const cl = ({
4792
4814
  }
4793
4815
  try {
4794
4816
  const ie = await I.startChannelWithParticipant({
4795
- id: ce.id,
4796
- name: ce.name,
4797
- phone: ce.phone
4817
+ id: ue.id,
4818
+ name: ue.name,
4819
+ phone: ue.phone
4798
4820
  });
4799
- S(ie), O(null), (De = _.current) == null || De.call(_, ie), E && console.log(
4821
+ E(ie), O(null), (Le = _.current) == null || Le.call(_, ie), S && console.log(
4800
4822
  "[MessagingShell] Channel created and loaded:",
4801
4823
  ie.id
4802
4824
  );
@@ -4806,28 +4828,28 @@ const cl = ({
4806
4828
  ie
4807
4829
  ), Q(), O("Failed to create conversation");
4808
4830
  }
4809
- } catch (ne) {
4831
+ } catch (ae) {
4810
4832
  console.error(
4811
4833
  "[MessagingShell] Failed to load initial conversation:",
4812
- ne
4834
+ ae
4813
4835
  ), Q(), H.current || O("Failed to load conversation");
4814
4836
  }
4815
4837
  })();
4816
- }, [i, L, $, I, E]);
4838
+ }, [i, D, $, I, S]);
4817
4839
  const q = G(r);
4818
4840
  q.current = r;
4819
4841
  const Y = Z(() => {
4820
4842
  var B;
4821
- S(null), X(!0), (B = q.current) == null || B.call(q);
4843
+ E(null), X(!0), (B = q.current) == null || B.call(q);
4822
4844
  }, []);
4823
- return F ? /* @__PURE__ */ s(Be, {}) : D ? /* @__PURE__ */ s(ye, { message: D, onBack: y }) : !$ || !L ? /* @__PURE__ */ s(
4824
- ye,
4845
+ return F ? /* @__PURE__ */ s(Be, {}) : L ? /* @__PURE__ */ s(ke, { message: L, onBack: y }) : !$ || !D ? /* @__PURE__ */ s(
4846
+ ke,
4825
4847
  {
4826
4848
  message: "Not connected to messaging service",
4827
4849
  onBack: y
4828
4850
  }
4829
- ) : z ? /* @__PURE__ */ s(ye, { message: z }) : j && !R ? /* @__PURE__ */ s(ye, { message: "Conversation ended" }) : R ? /* @__PURE__ */ s("div", { className: "messaging-shell h-full bg-background-primary overflow-hidden", children: /* @__PURE__ */ s("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ s(
4830
- Os,
4851
+ ) : z ? /* @__PURE__ */ s(ke, { message: z }) : j && !R ? /* @__PURE__ */ s(ke, { message: "Conversation ended" }) : R ? /* @__PURE__ */ s("div", { className: "messaging-shell h-full bg-background-primary overflow-hidden", children: /* @__PURE__ */ s("div", { className: "flex h-full min-h-0 flex-col", children: /* @__PURE__ */ s(
4852
+ $s,
4831
4853
  {
4832
4854
  channel: R,
4833
4855
  renderMessageInputActions: t,
@@ -4836,7 +4858,7 @@ const cl = ({
4836
4858
  onLeaveConversation: Y,
4837
4859
  onBlockParticipant: Y,
4838
4860
  CustomChannelEmptyState: l,
4839
- showDeleteConversation: ee,
4861
+ showDeleteConversation: te,
4840
4862
  onBlockParticipantClick: d,
4841
4863
  onReportParticipantClick: u,
4842
4864
  dmAgentEnabled: p,
@@ -4855,13 +4877,13 @@ const cl = ({
4855
4877
  R.id
4856
4878
  ) }) }) : /* @__PURE__ */ s(Be, {});
4857
4879
  };
4858
- function Vi(e) {
4880
+ function Wi(e) {
4859
4881
  const t = e.state.pending_messages;
4860
4882
  if (t != null && t.length)
4861
4883
  for (const n of t)
4862
4884
  e.state.addMessageSorted(n.message);
4863
4885
  }
4864
- const $s = V.createContext({
4886
+ const Bs = V.createContext({
4865
4887
  selectedChannel: void 0,
4866
4888
  onChannelSelect: () => {
4867
4889
  },
@@ -4869,18 +4891,18 @@ const $s = V.createContext({
4869
4891
  renderMessagePreview: void 0,
4870
4892
  channelPreview: void 0,
4871
4893
  viewerLanguage: void 0
4872
- }), Gi = $s.Provider, Hi = () => V.useContext($s), Yi = (e, t) => {
4894
+ }), Xi = Bs.Provider, Ki = () => V.useContext(Bs), Ji = (e, t) => {
4873
4895
  const n = new Date(
4874
4896
  Date.UTC(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate())
4875
4897
  ), r = new Date(
4876
4898
  Date.UTC(t.getUTCFullYear(), t.getUTCMonth(), t.getUTCDate())
4877
4899
  ).getTime() - n.getTime();
4878
4900
  return Math.floor(r / (1e3 * 60 * 60 * 24));
4879
- }, qi = (e) => {
4901
+ }, Zi = (e) => {
4880
4902
  const t = /* @__PURE__ */ new Date();
4881
4903
  if (Math.floor((t.getTime() - e.getTime()) / 1e3) < 60)
4882
4904
  return "Just now";
4883
- const a = Yi(e, t);
4905
+ const a = Ji(e, t);
4884
4906
  return a === 0 ? e.toLocaleTimeString([], {
4885
4907
  hour: "numeric",
4886
4908
  minute: "2-digit",
@@ -4890,9 +4912,9 @@ const $s = V.createContext({
4890
4912
  day: "numeric",
4891
4913
  year: "2-digit"
4892
4914
  });
4893
- }, Bs = V.memo(
4915
+ }, Us = V.memo(
4894
4916
  (e) => {
4895
- var $, F, D;
4917
+ var $, F, L;
4896
4918
  const { channel: t, unread: n } = e, {
4897
4919
  selectedChannel: a,
4898
4920
  onChannelSelect: r,
@@ -4900,7 +4922,7 @@ const $s = V.createContext({
4900
4922
  channelPreview: o,
4901
4923
  renderMessagePreview: l,
4902
4924
  viewerLanguage: d
4903
- } = Hi(), { client: u } = me(), p = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), h = lt(t);
4925
+ } = Ki(), { client: u } = oe(), p = (a == null ? void 0 : a.id) === (t == null ? void 0 : t.id), h = ot(t);
4904
4926
  if (o)
4905
4927
  return /* @__PURE__ */ s(
4906
4928
  o,
@@ -4915,22 +4937,22 @@ const $s = V.createContext({
4915
4937
  const f = () => {
4916
4938
  t && r(t);
4917
4939
  }, c = (y) => {
4918
- const I = y.key === "Enter" || y.key === " ", E = y.repeat;
4919
- !I || E || (y.preventDefault(), f());
4940
+ const I = y.key === "Enter" || y.key === " ", S = y.repeat;
4941
+ !I || S || (y.preventDefault(), f());
4920
4942
  }, v = je(
4921
4943
  ($ = t == null ? void 0 : t.state) == null ? void 0 : $.members,
4922
4944
  u == null ? void 0 : u.userID,
4923
4945
  t == null ? void 0 : t.type
4924
- ), w = ot(v == null ? void 0 : v.user), b = (F = v == null ? void 0 : v.user) == null ? void 0 : F.image, g = (() => {
4946
+ ), w = ct(v == null ? void 0 : v.user), b = (F = v == null ? void 0 : v.user) == null ? void 0 : F.image, g = (() => {
4925
4947
  var I;
4926
4948
  const y = (I = t == null ? void 0 : t.state) == null ? void 0 : I.messages;
4927
4949
  if (y != null && y.length) {
4928
- for (let E = y.length - 1; E >= 0; E--)
4929
- if (y[E].type !== "system") return y[E];
4950
+ for (let S = y.length - 1; S >= 0; S--)
4951
+ if (y[S].type !== "system") return y[S];
4930
4952
  }
4931
4953
  })(), N = (() => {
4932
4954
  var z, O, j, X;
4933
- const y = ms({
4955
+ const y = hs({
4934
4956
  message: g,
4935
4957
  viewerLanguage: d
4936
4958
  });
@@ -4939,14 +4961,14 @@ const $s = V.createContext({
4939
4961
  if (((j = g == null ? void 0 : g.metadata) == null ? void 0 : j.custom_type) === "MESSAGE_ATTACHMENT")
4940
4962
  return y ? `📎 ${y}` : "📎 Sent an attachment";
4941
4963
  if (y) return y;
4942
- const S = (X = g == null ? void 0 : g.attachments) == null ? void 0 : X[0];
4943
- return S ? S.og_scrape_url ? S.og_scrape_url : S.type === "image" ? "📷 Sent an image" : S.type === "video" ? "🎥 Sent a video" : S.type === "audio" ? "🎵 Sent audio" : S.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
4944
- })(), C = g != null && g.created_at ? qi(new Date(g.created_at)) : "", T = g ? Fe(g) : !1, A = l ? l(g, N) : `${T ? "✨ " : ""}${N}`, L = n ?? 0;
4964
+ const E = (X = g == null ? void 0 : g.attachments) == null ? void 0 : X[0];
4965
+ return E ? E.og_scrape_url ? E.og_scrape_url : E.type === "image" ? "📷 Sent an image" : E.type === "video" ? "🎥 Sent a video" : E.type === "audio" ? "🎵 Sent audio" : E.type === "file" ? "📎 Sent a file" : "📎 Sent an attachment" : "No messages yet";
4966
+ })(), C = g != null && g.created_at ? Zi(new Date(g.created_at)) : "", T = g ? Fe(g) : !1, A = l ? l(g, N) : `${T ? "✨ " : ""}${N}`, D = n ?? 0;
4945
4967
  return i && console.log("📺 [ChannelList] 📋 CHANNEL PREVIEW RENDER", {
4946
4968
  channelId: t == null ? void 0 : t.id,
4947
4969
  isSelected: p,
4948
4970
  participantName: w,
4949
- unreadCount: L,
4971
+ unreadCount: D,
4950
4972
  hasTimestamp: !!C
4951
4973
  }), /* @__PURE__ */ s(
4952
4974
  "div",
@@ -4965,9 +4987,9 @@ const $s = V.createContext({
4965
4987
  "data-dd-privacy": "mask",
4966
4988
  children: /* @__PURE__ */ m("div", { className: "flex items-start gap-4", children: [
4967
4989
  /* @__PURE__ */ s(
4968
- se,
4990
+ ne,
4969
4991
  {
4970
- id: ((D = v == null ? void 0 : v.user) == null ? void 0 : D.id) || t.id || "unknown",
4992
+ id: ((L = v == null ? void 0 : v.user) == null ? void 0 : L.id) || t.id || "unknown",
4971
4993
  name: w,
4972
4994
  image: b,
4973
4995
  size: 48,
@@ -4992,7 +5014,7 @@ const $s = V.createContext({
4992
5014
  ] }),
4993
5015
  /* @__PURE__ */ m("div", { className: "flex items-center justify-between gap-2 min-w-0", children: [
4994
5016
  /* @__PURE__ */ s("p", { className: "text-sm text-[#717070] flex-1 line-clamp-1", children: A }),
4995
- L > 0 && /* @__PURE__ */ s("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: L > 99 ? "99+" : L })
5017
+ D > 0 && /* @__PURE__ */ s("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: D > 99 ? "99+" : D })
4996
5018
  ] })
4997
5019
  ] })
4998
5020
  ] })
@@ -5000,28 +5022,28 @@ const $s = V.createContext({
5000
5022
  );
5001
5023
  }
5002
5024
  );
5003
- Bs.displayName = "CustomChannelPreview";
5004
- const Wi = { last_message_at: -1 }, Xi = V.memo(
5025
+ Us.displayName = "CustomChannelPreview";
5026
+ const Qi = { last_message_at: -1 }, el = V.memo(
5005
5027
  ({
5006
5028
  onChannelSelect: e,
5007
5029
  selectedChannel: t,
5008
5030
  filters: n,
5009
5031
  allowNewMessagesFromUnfilteredChannels: a = !1,
5010
5032
  channelRenderFilterFn: r,
5011
- sort: i = Wi,
5033
+ sort: i = Qi,
5012
5034
  className: o,
5013
5035
  customEmptyStateIndicator: l,
5014
- channelListPaginator: d = In,
5036
+ channelListPaginator: d = An,
5015
5037
  channelPreview: u,
5016
5038
  renderMessagePreview: p,
5017
5039
  viewerLanguage: h
5018
5040
  }) => {
5019
5041
  const f = V.useRef(0);
5020
5042
  f.current++;
5021
- const { debug: c = !1 } = it(), v = V.useCallback(
5043
+ const { debug: c = !1 } = lt(), v = V.useCallback(
5022
5044
  (b) => {
5023
5045
  for (const g of b)
5024
- Vi(g);
5046
+ Wi(g);
5025
5047
  return r ? r(b) : b;
5026
5048
  },
5027
5049
  [r]
@@ -5056,8 +5078,8 @@ const Wi = { last_message_at: -1 }, Xi = V.memo(
5056
5078
  "messaging-channel-list h-full flex flex-col min-w-0 overflow-hidden",
5057
5079
  o
5058
5080
  ),
5059
- children: /* @__PURE__ */ s("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ s(Gi, { value: w, children: /* @__PURE__ */ s(
5060
- Sn,
5081
+ children: /* @__PURE__ */ s("div", { className: "flex-1 overflow-hidden min-w-0", children: /* @__PURE__ */ s(Xi, { value: w, children: /* @__PURE__ */ s(
5082
+ Tn,
5061
5083
  {
5062
5084
  filters: n,
5063
5085
  sort: i,
@@ -5065,7 +5087,7 @@ const Wi = { last_message_at: -1 }, Xi = V.memo(
5065
5087
  allowNewMessagesFromUnfilteredChannels: a,
5066
5088
  channelRenderFilterFn: v,
5067
5089
  Paginator: d,
5068
- Preview: Bs,
5090
+ Preview: Us,
5069
5091
  EmptyStateIndicator: l
5070
5092
  },
5071
5093
  `${JSON.stringify(n)}:${JSON.stringify(i)}`
@@ -5074,8 +5096,8 @@ const Wi = { last_message_at: -1 }, Xi = V.memo(
5074
5096
  );
5075
5097
  }
5076
5098
  );
5077
- Xi.displayName = "ChannelList";
5078
- const Ki = ({
5099
+ el.displayName = "ChannelList";
5100
+ const tl = ({
5079
5101
  question: e,
5080
5102
  onClick: t,
5081
5103
  loading: n = !1,
@@ -5097,7 +5119,7 @@ const Ki = ({
5097
5119
  ),
5098
5120
  children: e
5099
5121
  }
5100
- ), dl = ({
5122
+ ), gl = ({
5101
5123
  faqs: e,
5102
5124
  onFaqClick: t,
5103
5125
  loadingFaqId: n,
@@ -5109,7 +5131,7 @@ const Ki = ({
5109
5131
  const l = e.filter((d) => d.enabled).sort((d, u) => (d.order ?? 0) - (u.order ?? 0));
5110
5132
  return l.length === 0 ? null : /* @__PURE__ */ s("div", { className: r, children: /* @__PURE__ */ m("div", { className: "flex gap-3 items-end", children: [
5111
5133
  (i || o) && /* @__PURE__ */ s("div", { className: "flex-none", children: /* @__PURE__ */ s(
5112
- se,
5134
+ ne,
5113
5135
  {
5114
5136
  id: o || "account",
5115
5137
  name: o || "Account",
@@ -5126,7 +5148,7 @@ const Ki = ({
5126
5148
  children: [
5127
5149
  a && /* @__PURE__ */ s("p", { className: "text-md text-charcoal mb-4", children: a }),
5128
5150
  l.map((d) => /* @__PURE__ */ s(
5129
- Ki,
5151
+ tl,
5130
5152
  {
5131
5153
  question: d.question,
5132
5154
  onClick: () => t(d.id),
@@ -5140,40 +5162,40 @@ const Ki = ({
5140
5162
  ] }) });
5141
5163
  };
5142
5164
  export {
5143
- ps as A,
5144
- ol as B,
5145
- $i as C,
5146
- Or as D,
5147
- pa as E,
5148
- dl as F,
5149
- Qn as G,
5150
- Qt as L,
5151
- il as M,
5152
- _e as a,
5153
- se as b,
5154
- Xi as c,
5155
- Os as d,
5156
- ll as e,
5157
- Ki as f,
5158
- le as g,
5159
- Jt as h,
5160
- Ne as i,
5161
- Gr as j,
5162
- rl as k,
5163
- cl as l,
5164
- sr as m,
5165
- Qa as n,
5166
- qi as o,
5167
- tr as p,
5168
- ms as q,
5165
+ bs as A,
5166
+ hl as B,
5167
+ Gi as C,
5168
+ Ur as D,
5169
+ xa as E,
5170
+ gl as F,
5171
+ sa as G,
5172
+ es as L,
5173
+ ul as M,
5174
+ Ne as a,
5175
+ ne as b,
5176
+ el as c,
5177
+ $s as d,
5178
+ ml as e,
5179
+ tl as f,
5180
+ ce as g,
5181
+ Zt as h,
5182
+ ye as i,
5183
+ qr as j,
5184
+ dl as k,
5185
+ fl as l,
5186
+ rr as m,
5187
+ sr as n,
5188
+ Zi as o,
5189
+ ar as p,
5190
+ hs as q,
5169
5191
  we as r,
5170
- xs as s,
5171
- na as t,
5172
- Ya as u,
5173
- ba as v,
5192
+ ws as s,
5193
+ ia as t,
5194
+ Xa as u,
5195
+ wa as v,
5174
5196
  je as w,
5175
- mt as x,
5176
- ht as y,
5177
- ot as z
5197
+ ht as x,
5198
+ ft as y,
5199
+ ct as z
5178
5200
  };
5179
- //# sourceMappingURL=index-C-2O97qw.js.map
5201
+ //# sourceMappingURL=index-27SEkKTJ.js.map