@linktr.ee/messaging-react 1.16.0-rc-1769569754 โ†’ 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -24,8 +24,8 @@ const Fe = Ge({
24
24
  debug: c = !1
25
25
  }) => {
26
26
  const a = D(
27
- (d, ...v) => {
28
- c && console.log(`๐Ÿ”ฅ [MessagingProvider] ${d}`, ...v);
27
+ (d, ...N) => {
28
+ c && console.log(`๐Ÿ”ฅ [MessagingProvider] ${d}`, ...N);
29
29
  },
30
30
  [c]
31
31
  );
@@ -35,7 +35,7 @@ const Fe = Ge({
35
35
  serviceConfig: !!n,
36
36
  capabilities: Object.keys(l)
37
37
  });
38
- const [u, h] = I(null), [x, p] = I(null), [f, o] = I(!1), [M, S] = I(!1), [g, m] = I(null), b = W(!1), N = W({
38
+ const [u, h] = I(null), [x, p] = I(null), [f, o] = I(!1), [M, S] = I(!1), [g, m] = I(null), b = W(!1), v = W({
39
39
  userId: s == null ? void 0 : s.id,
40
40
  apiKey: r,
41
41
  serviceConfig: n,
@@ -45,12 +45,12 @@ const Fe = Ge({
45
45
  renderCount: y.current,
46
46
  currentProps: { userId: s == null ? void 0 : s.id, apiKey: (r == null ? void 0 : r.substring(0, 8)) + "..." },
47
47
  propChanges: {
48
- userChanged: N.current.userId !== (s == null ? void 0 : s.id),
49
- apiKeyChanged: N.current.apiKey !== r,
50
- serviceConfigChanged: N.current.serviceConfig !== n,
51
- capabilitiesChanged: N.current.capabilities !== l
48
+ userChanged: v.current.userId !== (s == null ? void 0 : s.id),
49
+ apiKeyChanged: v.current.apiKey !== r,
50
+ serviceConfigChanged: v.current.serviceConfig !== n,
51
+ capabilitiesChanged: v.current.capabilities !== l
52
52
  }
53
- }), N.current = {
53
+ }), v.current = {
54
54
  userId: s == null ? void 0 : s.id,
55
55
  apiKey: r,
56
56
  serviceConfig: n,
@@ -64,8 +64,8 @@ const Fe = Ge({
64
64
  dependencies: {
65
65
  apiKey: (r == null ? void 0 : r.substring(0, 8)) + "...",
66
66
  serviceConfigRef: n,
67
- serviceConfigStable: N.current.serviceConfig === n,
68
- apiKeyStable: N.current.apiKey === r
67
+ serviceConfigStable: v.current.serviceConfig === n,
68
+ apiKeyStable: v.current.apiKey === r
69
69
  }
70
70
  }), !r || !n) {
71
71
  a("โš ๏ธ SERVICE INIT SKIPPED", {
@@ -77,26 +77,26 @@ const Fe = Ge({
77
77
  a("๐Ÿš€ CREATING NEW SERVICE", {
78
78
  renderCount: d,
79
79
  apiKey: (r == null ? void 0 : r.substring(0, 8)) + "...",
80
- serviceConfigChanged: N.current.serviceConfig !== n
80
+ serviceConfigChanged: v.current.serviceConfig !== n
81
81
  });
82
- const v = new Ve({
82
+ const N = new Ve({
83
83
  ...n,
84
84
  apiKey: r,
85
85
  debug: c
86
86
  });
87
- return h(v), a("โœ… SERVICE SET", {
87
+ return h(N), a("โœ… SERVICE SET", {
88
88
  renderCount: d,
89
- serviceInstance: !!v
89
+ serviceInstance: !!N
90
90
  }), () => {
91
91
  a("๐Ÿงน SERVICE CLEANUP", {
92
92
  renderCount: d,
93
93
  reason: "Effect cleanup"
94
- }), v.disconnectUser().catch(console.error);
94
+ }), N.disconnectUser().catch(console.error);
95
95
  };
96
96
  }, [r, n, c, a]);
97
97
  const _ = W(null);
98
98
  q(() => {
99
- var v, P;
99
+ var N, P;
100
100
  if (a("๐Ÿ”— USER CONNECTION EFFECT TRIGGERED", {
101
101
  hasService: !!u,
102
102
  hasUser: !!s,
@@ -112,7 +112,7 @@ const Fe = Ge({
112
112
  a("โš ๏ธ USER CONNECTION SKIPPED", "Already connecting");
113
113
  return;
114
114
  }
115
- if (((v = _.current) == null ? void 0 : v.serviceId) === u && ((P = _.current) == null ? void 0 : P.userId) === s.id) {
115
+ if (((N = _.current) == null ? void 0 : N.serviceId) === u && ((P = _.current) == null ? void 0 : P.userId) === s.id) {
116
116
  a(
117
117
  "โš ๏ธ USER CONNECTION SKIPPED",
118
118
  "Already connected this user with this service"
@@ -167,10 +167,10 @@ const Fe = Ge({
167
167
  const d = await u.connectUser(s);
168
168
  p(d), o(!0), m(null), a("โœ… CONNECTION REFRESH SUCCESS", { userId: s.id });
169
169
  } catch (d) {
170
- const v = d instanceof Error ? d.message : "Refresh failed";
171
- m(v), a("โŒ CONNECTION REFRESH ERROR", {
170
+ const N = d instanceof Error ? d.message : "Refresh failed";
171
+ m(N), a("โŒ CONNECTION REFRESH ERROR", {
172
172
  userId: s.id,
173
- error: v
173
+ error: N
174
174
  });
175
175
  } finally {
176
176
  S(!1), a("๐Ÿ”„ CONNECTION REFRESH FINISHED", { userId: s.id });
@@ -358,18 +358,18 @@ const ne = ({
358
358
  ] });
359
359
  }, Oe = L.memo(
360
360
  ({ channel: t, selectedChannel: s, onChannelSelect: n, debug: r = !1, unread: l }) => {
361
- var b, N, y, _, E, C;
361
+ var b, v, y, _, E, C;
362
362
  const c = (s == null ? void 0 : s.id) === (t == null ? void 0 : t.id), a = () => {
363
363
  t && n(t);
364
364
  }, h = Object.values(((b = t == null ? void 0 : t.state) == null ? void 0 : b.members) || {}).find(
365
365
  (d) => {
366
- var v, P;
367
- return ((v = d.user) == null ? void 0 : v.id) && d.user.id !== ((P = t == null ? void 0 : t._client) == null ? void 0 : P.userID);
366
+ var N, P;
367
+ return ((N = d.user) == null ? void 0 : N.id) && d.user.id !== ((P = t == null ? void 0 : t._client) == null ? void 0 : P.userID);
368
368
  }
369
- ), x = ((N = h == null ? void 0 : h.user) == null ? void 0 : N.name) || "Conversation", p = (y = h == null ? void 0 : h.user) == null ? void 0 : y.image, f = (E = (_ = t == null ? void 0 : t.state) == null ? void 0 : _.messages) == null ? void 0 : E[t.state.messages.length - 1], M = (() => {
370
- var v;
369
+ ), x = ((v = h == null ? void 0 : h.user) == null ? void 0 : v.name) || "Conversation", p = (y = h == null ? void 0 : h.user) == null ? void 0 : y.image, f = (E = (_ = t == null ? void 0 : t.state) == null ? void 0 : _.messages) == null ? void 0 : E[t.state.messages.length - 1], M = (() => {
370
+ var N;
371
371
  if (f != null && f.text) return f.text;
372
- const d = (v = f == null ? void 0 : f.attachments) == null ? void 0 : v[0];
372
+ const d = (N = f == null ? void 0 : f.attachments) == null ? void 0 : N[0];
373
373
  return d ? d.og_scrape_url ? d.og_scrape_url : d.type === "image" ? "๐Ÿ“ท Sent an image" : d.type === "video" ? "๐ŸŽฅ Sent a video" : d.type === "audio" ? "๐ŸŽต Sent audio" : d.type === "file" ? "๐Ÿ“Ž Sent a file" : "๐Ÿ“Ž Sent an attachment" : "No messages yet";
374
374
  })(), S = f != null && f.created_at ? Gs(new Date(f.created_at)) : "", g = f ? Le(f) : !1, m = l ?? 0;
375
375
  return r && console.log("๐Ÿ“บ [ChannelList] ๐Ÿ“‹ CHANNEL PREVIEW RENDER", {
@@ -538,8 +538,8 @@ const Js = (t) => /* @__PURE__ */ e(Ze, { ...t, position: "center" }), Qs = (t)
538
538
  onUserHover: S,
539
539
  renderText: g,
540
540
  threadList: m
541
- } = t, { client: b } = Je("CustomMessage"), { t: N } = Qe("CustomMessage"), [y, _] = I(!1), [E, C] = I(!1), d = Xe(o.id), {
542
- Attachment: v = es,
541
+ } = t, { client: b } = Je("CustomMessage"), { t: v } = Qe("CustomMessage"), [y, _] = I(!1), [E, C] = I(!1), d = Xe(o.id), {
542
+ Attachment: N = es,
543
543
  Avatar: P = ss,
544
544
  EditMessageModal: j = ts,
545
545
  MessageBlocked: z = ns,
@@ -638,7 +638,7 @@ const Js = (t) => /* @__PURE__ */ e(Ze, { ...t, position: "center" }), Qs = (t)
638
638
  /* @__PURE__ */ i("div", { className: "str-chat__message-bubble", children: [
639
639
  ce && /* @__PURE__ */ e(bs, { poll: ce }),
640
640
  B != null && B.length && !o.quoted_message ? /* @__PURE__ */ e(
641
- v,
641
+ N,
642
642
  {
643
643
  actionHandler: a,
644
644
  attachments: B
@@ -669,7 +669,7 @@ const Js = (t) => /* @__PURE__ */ e(Ze, { ...t, position: "center" }), Qs = (t)
669
669
  /* @__PURE__ */ e(ee, {}),
670
670
  !f() && !!o.user && /* @__PURE__ */ e("span", { className: "str-chat__message-simple-name", children: o.user.name || o.user.id }),
671
671
  /* @__PURE__ */ e(ae, { customClass: "str-chat__message-simple-timestamp" }),
672
- le && /* @__PURE__ */ e("span", { className: "str-chat__mesage-simple-edited", children: N("Edited") }),
672
+ le && /* @__PURE__ */ e("span", { className: "str-chat__mesage-simple-edited", children: v("Edited") }),
673
673
  le && /* @__PURE__ */ e(ws, { calendar: !0, open: E })
674
674
  ] })
675
675
  ] }, o.id)
@@ -837,18 +837,18 @@ fe.displayName = "LoadingState";
837
837
  const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) => {
838
838
  var f, o, M, S, g, m;
839
839
  const { channel: l } = De(), c = L.useMemo(() => Object.values(l.state.members || {}).find(
840
- (N) => {
840
+ (v) => {
841
841
  var y;
842
- return ((y = N.user) == null ? void 0 : y.id) && N.user.id !== l._client.userID;
842
+ return ((y = v.user) == null ? void 0 : y.id) && v.user.id !== l._client.userID;
843
843
  }
844
844
  ), [l._client.userID, l.state.members]), a = ((f = c == null ? void 0 : c.user) == null ? void 0 : f.name) || ((o = c == null ? void 0 : c.user) == null ? void 0 : o.id) || "Unknown member", u = (M = c == null ? void 0 : c.user) == null ? void 0 : M.image, [h, x] = I(
845
845
  !!((S = l.state.membership) != null && S.pinned_at)
846
846
  );
847
847
  q(() => {
848
- const b = (N) => {
848
+ const b = (v) => {
849
849
  var y;
850
850
  x(
851
- N != null && N.member ? !!N.member.pinned_at : !!((y = l.state.membership) != null && y.pinned_at)
851
+ v != null && v.member ? !!v.member.pinned_at : !!((y = l.state.membership) != null && y.pinned_at)
852
852
  );
853
853
  };
854
854
  return l.on("member.updated", b), () => {
@@ -992,7 +992,7 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
992
992
  onReportParticipantClick: p
993
993
  }) => {
994
994
  var X, K, ee, ae, O, G, Z;
995
- const { service: f, debug: o } = ge(), [M, S] = I(!1), [g, m] = I(!1), [b, N] = I(!1), y = D(async () => {
995
+ const { service: f, debug: o } = ge(), [M, S] = I(!1), [g, m] = I(!1), [b, v] = I(!1), y = D(async () => {
996
996
  var k;
997
997
  if (!(!f || !((k = n == null ? void 0 : n.user) != null && k.id)))
998
998
  try {
@@ -1029,25 +1029,25 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
1029
1029
  }, E = async () => {
1030
1030
  var k, T, U;
1031
1031
  if (!(b || !f)) {
1032
- x == null || x(), o && console.log("[ChannelInfoDialog] Block member", (k = n == null ? void 0 : n.user) == null ? void 0 : k.id), N(!0);
1032
+ x == null || x(), o && console.log("[ChannelInfoDialog] Block member", (k = n == null ? void 0 : n.user) == null ? void 0 : k.id), v(!0);
1033
1033
  try {
1034
1034
  await f.blockUser((T = n == null ? void 0 : n.user) == null ? void 0 : T.id), a && await a((U = n == null ? void 0 : n.user) == null ? void 0 : U.id), s();
1035
1035
  } catch (B) {
1036
1036
  console.error("[ChannelInfoDialog] Failed to block member", B);
1037
1037
  } finally {
1038
- N(!1);
1038
+ v(!1);
1039
1039
  }
1040
1040
  }
1041
1041
  }, C = async () => {
1042
1042
  var k, T, U;
1043
1043
  if (!(b || !f)) {
1044
- x == null || x(), o && console.log("[ChannelInfoDialog] Unblock member", (k = n == null ? void 0 : n.user) == null ? void 0 : k.id), N(!0);
1044
+ x == null || x(), o && console.log("[ChannelInfoDialog] Unblock member", (k = n == null ? void 0 : n.user) == null ? void 0 : k.id), v(!0);
1045
1045
  try {
1046
1046
  await f.unBlockUser((T = n == null ? void 0 : n.user) == null ? void 0 : T.id), a && await a((U = n == null ? void 0 : n.user) == null ? void 0 : U.id), s();
1047
1047
  } catch (B) {
1048
1048
  console.error("[ChannelInfoDialog] Failed to unblock member", B);
1049
1049
  } finally {
1050
- N(!1);
1050
+ v(!1);
1051
1051
  }
1052
1052
  }
1053
1053
  }, d = () => {
@@ -1058,7 +1058,7 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
1058
1058
  );
1059
1059
  };
1060
1060
  if (!n) return null;
1061
- const v = ((K = n.user) == null ? void 0 : K.name) || ((ee = n.user) == null ? void 0 : ee.id) || "Unknown member", P = (ae = n.user) == null ? void 0 : ae.image, j = (O = n.user) == null ? void 0 : O.email, z = (G = n.user) == null ? void 0 : G.username, re = j || (z ? `linktr.ee/${z}` : void 0), Q = ((Z = n.user) == null ? void 0 : Z.id) || "unknown";
1061
+ const N = ((K = n.user) == null ? void 0 : K.name) || ((ee = n.user) == null ? void 0 : ee.id) || "Unknown member", P = (ae = n.user) == null ? void 0 : ae.image, j = (O = n.user) == null ? void 0 : O.email, z = (G = n.user) == null ? void 0 : G.username, re = j || (z ? `linktr.ee/${z}` : void 0), Q = ((Z = n.user) == null ? void 0 : Z.id) || "unknown";
1062
1062
  return (
1063
1063
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
1064
1064
  /* @__PURE__ */ e(
@@ -1086,14 +1086,14 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
1086
1086
  ne,
1087
1087
  {
1088
1088
  id: Q,
1089
- name: v,
1089
+ name: N,
1090
1090
  image: P,
1091
1091
  size: 88,
1092
1092
  shape: "circle"
1093
1093
  }
1094
1094
  ),
1095
1095
  /* @__PURE__ */ i("div", { className: "flex flex-col min-w-0 flex-1", children: [
1096
- /* @__PURE__ */ e("p", { className: "truncate text-base font-semibold text-charcoal", children: v }),
1096
+ /* @__PURE__ */ e("p", { className: "truncate text-base font-semibold text-charcoal", children: N }),
1097
1097
  re && /* @__PURE__ */ e("p", { className: "truncate text-sm text-[#00000055]", children: re }),
1098
1098
  l && /* @__PURE__ */ e(
1099
1099
  "span",
@@ -1255,13 +1255,16 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
1255
1255
  onReportParticipantClick: f,
1256
1256
  dmAgentEnabled: o
1257
1257
  }) => {
1258
- var m;
1259
- const M = ((m = t.data) == null ? void 0 : m.chatbot_paused) === !0, S = o && !M, g = D(
1260
- async (b, N, y) => S ? t.sendMessage(
1261
- { ...N, silent: !0 },
1262
- { ...y, skip_push: !0 }
1263
- ) : t.sendMessage(N, y),
1264
- [t, S]
1258
+ const M = D(
1259
+ async (S, g, m) => {
1260
+ var y;
1261
+ const b = ((y = t.data) == null ? void 0 : y.chatbot_paused) === !0;
1262
+ return o && !b ? t.sendMessage(
1263
+ { ...g, silent: !0 },
1264
+ { ...m, skip_push: !0 }
1265
+ ) : t.sendMessage(g, m);
1266
+ },
1267
+ [t, o]
1265
1268
  );
1266
1269
  return /* @__PURE__ */ e(
1267
1270
  "div",
@@ -1278,7 +1281,7 @@ const it = ({ onBack: t, showBackButton: s, onShowInfo: n, canShowInfo: r }) =>
1278
1281
  EmptyStateIndicator: u,
1279
1282
  LoadingIndicator: fe,
1280
1283
  DateSeparator: Js,
1281
- doSendMessageRequest: g,
1284
+ doSendMessageRequest: M,
1282
1285
  children: /* @__PURE__ */ e(
1283
1286
  dt,
1284
1287
  {
@@ -1351,7 +1354,7 @@ const ut = ({
1351
1354
  }) => {
1352
1355
  const { debug: u } = ge(), [h, x] = I(""), [p, f] = I([]), [o, M] = I(!1), [S, g] = I(null), [m, b] = I(
1353
1356
  null
1354
- ), N = W(!1);
1357
+ ), v = W(!1);
1355
1358
  q(() => {
1356
1359
  if (t.loading) {
1357
1360
  u && console.log(
@@ -1359,7 +1362,7 @@ const ut = ({
1359
1362
  );
1360
1363
  return;
1361
1364
  }
1362
- if (N.current) return;
1365
+ if (v.current) return;
1363
1366
  (async () => {
1364
1367
  u && console.log("[ParticipantPicker] Loading initial participants..."), M(!0), g(null);
1365
1368
  try {
@@ -1368,23 +1371,23 @@ const ut = ({
1368
1371
  // Load all participants initially
1369
1372
  limit: 100
1370
1373
  });
1371
- f(d.participants), N.current = !0, u && console.log(
1374
+ f(d.participants), v.current = !0, u && console.log(
1372
1375
  "[ParticipantPicker] Participants loaded successfully:",
1373
1376
  d.participants.length
1374
1377
  );
1375
1378
  } catch (d) {
1376
- const v = d instanceof Error ? d.message : "Failed to load participants";
1377
- g(v), console.error("[ParticipantPicker] Failed to load participants:", d);
1379
+ const N = d instanceof Error ? d.message : "Failed to load participants";
1380
+ g(N), console.error("[ParticipantPicker] Failed to load participants:", d);
1378
1381
  } finally {
1379
1382
  M(!1);
1380
1383
  }
1381
1384
  })();
1382
1385
  }, [t.loading, u]);
1383
1386
  const y = p.filter((C) => !r.has(C.id)).filter((C) => {
1384
- var v;
1387
+ var N;
1385
1388
  if (!h) return !0;
1386
1389
  const d = h.toLowerCase();
1387
- return C.name.toLowerCase().includes(d) || ((v = C.email) == null ? void 0 : v.toLowerCase().includes(d)) || !1;
1390
+ return C.name.toLowerCase().includes(d) || ((N = C.email) == null ? void 0 : N.toLowerCase().includes(d)) || !1;
1388
1391
  }), _ = D(
1389
1392
  async (C) => {
1390
1393
  if (!m) {
@@ -1442,7 +1445,7 @@ const ut = ({
1442
1445
  /* @__PURE__ */ e("p", { className: "text-xs text-stone", children: h ? "Try a different search term" : p.length > 0 ? `You have existing conversations with all your ${l}` : `${l.charAt(0).toUpperCase() + l.slice(1)} will appear here` })
1443
1446
  ] }) : /* @__PURE__ */ i("ul", { className: "space-y-0", children: [
1444
1447
  y.map((C) => {
1445
- const d = C.name || C.email || C.id, v = C.email && C.name ? C.email : C.phone;
1448
+ const d = C.name || C.email || C.id, N = C.email && C.name ? C.email : C.phone;
1446
1449
  return /* @__PURE__ */ e("li", { children: /* @__PURE__ */ e(
1447
1450
  "button",
1448
1451
  {
@@ -1463,7 +1466,7 @@ const ut = ({
1463
1466
  ),
1464
1467
  /* @__PURE__ */ i("div", { className: "flex-1 min-w-0", children: [
1465
1468
  /* @__PURE__ */ e("h4", { className: "text-sm font-medium text-charcoal truncate", children: d }),
1466
- v && /* @__PURE__ */ e("p", { className: "text-xs text-stone truncate", children: v })
1469
+ N && /* @__PURE__ */ e("p", { className: "text-xs text-stone truncate", children: N })
1467
1470
  ] })
1468
1471
  ] }),
1469
1472
  /* @__PURE__ */ e("div", { className: "flex-shrink-0", children: m === C.id ? /* @__PURE__ */ e(ue, { className: "h-5 w-5 text-primary animate-spin" }) : /* @__PURE__ */ e(_e, { className: "h-5 w-5 text-stone" }) })
@@ -1657,11 +1660,11 @@ const yt = ({
1657
1660
  service: g,
1658
1661
  client: m,
1659
1662
  isConnected: b,
1660
- isLoading: N,
1663
+ isLoading: v,
1661
1664
  error: y,
1662
1665
  refreshConnection: _,
1663
1666
  debug: E
1664
- } = $s(), [C, d] = I(null), [v, P] = I(!1), [j, z] = I(!1), [re, Q] = I(!1), [X, K] = I(/* @__PURE__ */ new Set()), [ee, ae] = I(0), [O, G] = I(!1), [Z, k] = I(null), T = W(null), {
1667
+ } = $s(), [C, d] = I(null), [N, P] = I(!1), [j, z] = I(!1), [re, Q] = I(!1), [X, K] = I(/* @__PURE__ */ new Set()), [ee, ae] = I(0), [O, G] = I(!1), [Z, k] = I(null), T = W(null), {
1665
1668
  participantSource: U,
1666
1669
  participantLabel: B = "participants",
1667
1670
  showDeleteConversation: se = !0
@@ -1831,7 +1834,7 @@ const yt = ({
1831
1834
  },
1832
1835
  [H, E]
1833
1836
  ), J = !!C;
1834
- return N ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(fe, {}) }) : y ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(he, { message: y, onBack: _ }) }) : !b || !m ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(
1837
+ return v ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(fe, {}) }) : y ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(he, { message: y, onBack: _ }) }) : !b || !m ? /* @__PURE__ */ e("div", { className: R("h-full", s), children: /* @__PURE__ */ e(
1835
1838
  he,
1836
1839
  {
1837
1840
  message: "Not connected to messaging service",
@@ -1905,7 +1908,7 @@ const yt = ({
1905
1908
  ) : /* @__PURE__ */ e(
1906
1909
  $e,
1907
1910
  {
1908
- hasChannels: v,
1911
+ hasChannels: N,
1909
1912
  channelsLoaded: j
1910
1913
  }
1911
1914
  )
@@ -2012,17 +2015,17 @@ const yt = ({
2012
2015
  cursor: _ ? void 0 : S
2013
2016
  });
2014
2017
  c(
2015
- (v) => _ ? d.participants : [...v, ...d.participants]
2018
+ (N) => _ ? d.participants : [...N, ...d.participants]
2016
2019
  ), M(d.hasMore), g(d.nextCursor);
2017
2020
  } catch (d) {
2018
- const v = d instanceof Error ? d.message : "Failed to load participants";
2019
- x(v), console.error("[useParticipants] Load error:", d);
2021
+ const N = d instanceof Error ? d.message : "Failed to load participants";
2022
+ x(N), console.error("[useParticipants] Load error:", d);
2020
2023
  } finally {
2021
2024
  u(!1);
2022
2025
  }
2023
2026
  }, [t, p, S, r, a]), b = D(() => {
2024
2027
  o && !a && m(!1);
2025
- }, [o, a, m]), N = D((_) => {
2028
+ }, [o, a, m]), v = D((_) => {
2026
2029
  f(_), g(void 0), m(!0, _);
2027
2030
  }, [m]), y = D(() => {
2028
2031
  g(void 0), m(!0);
@@ -2037,7 +2040,7 @@ const yt = ({
2037
2040
  hasMore: o,
2038
2041
  totalCount: t.totalCount,
2039
2042
  loadMore: b,
2040
- search: N,
2043
+ search: v,
2041
2044
  refresh: y
2042
2045
  };
2043
2046
  };