@epam/ai-dial-conversation-panel 1.3.0-rc.0 → 1.4.0-dev.5

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/index.js CHANGED
@@ -749,12 +749,12 @@ function Ze({ elements: e, isFlowLayout: t, rowCount: n, startIndex: r, stopInde
749
749
  index: r + t
750
750
  }));
751
751
  }
752
- function Y(e) {
752
+ function Qe(e) {
753
753
  return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
754
754
  }
755
- var Qe = "data-react-window-sizer";
756
- function $e({ children: e, className: t, defaultHeight: n = 0, defaultScrollOffset: r = 0, listRef: i, onResize: a, onRowsRendered: o, overscanCount: s = 3, rowComponent: c, rowCount: l, rowHeight: u, rowKey: d, rowProps: f, scrollElement: p, tagName: m = "div", style: h, ...g }) {
757
- let _ = Ve(f), v = B(() => I(c, He), [c]), [y, b] = H(null), x = Y(u), S = B(() => x ? (e) => u.getRowHeight(e) ?? u.getAverageRowHeight() : u, [x, u]), C = ge(), [w, T] = H(() => C && x), E = V(u);
755
+ var $e = "data-react-window-sizer";
756
+ function et({ children: e, className: t, defaultHeight: n = 0, defaultScrollOffset: r = 0, listRef: i, onResize: a, onRowsRendered: o, overscanCount: s = 3, rowComponent: c, rowCount: l, rowHeight: u, rowKey: d, rowProps: f, scrollElement: p, tagName: m = "div", style: h, ...g }) {
757
+ let _ = Ve(f), v = B(() => I(c, He), [c]), [y, b] = H(null), x = Qe(u), S = B(() => x ? (e) => u.getRowHeight(e) ?? u.getAverageRowHeight() : u, [x, u]), C = ge(), [w, T] = H(() => C && x), E = V(u);
758
758
  q(() => {
759
759
  w && E.current !== u && T(!1);
760
760
  }, [w, u]), Xe({
@@ -793,7 +793,7 @@ function $e({ children: e, className: t, defaultHeight: n = 0, defaultScrollOffs
793
793
  let U = w && x && j === 0;
794
794
  q(() => {
795
795
  if (!y) return;
796
- let e = Array.from(y.children).filter((e) => !e.hasAttribute(Qe)), t = Ze({
796
+ let e = Array.from(y.children).filter((e) => !e.hasAttribute($e)), t = Ze({
797
797
  elements: e,
798
798
  isFlowLayout: U,
799
799
  rowCount: l,
@@ -866,7 +866,7 @@ function $e({ children: e, className: t, defaultHeight: n = 0, defaultScrollOffs
866
866
  N
867
867
  ]), G = /* @__PURE__ */ W("div", {
868
868
  "aria-hidden": !0,
869
- [Qe]: "",
869
+ [$e]: "",
870
870
  style: {
871
871
  position: U ? "absolute" : void 0,
872
872
  top: U ? 0 : void 0,
@@ -891,18 +891,18 @@ function $e({ children: e, className: t, defaultHeight: n = 0, defaultScrollOffs
891
891
  }
892
892
  }, ...U ? [re, K] : [K, re], G);
893
893
  }
894
- var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__PURE__ */ function(e) {
894
+ var tt = /* @__PURE__ */ Object.assign(et, { displayName: "List" }), Y = /* @__PURE__ */ function(e) {
895
895
  return e.All = "all", e.Chat = "chat", e.Task = "task", e;
896
- }({}), Z = /* @__PURE__ */ function(e) {
896
+ }({}), X = /* @__PURE__ */ function(e) {
897
897
  return e.Avatar = "avatar", e.Indicator = "indicator", e;
898
- }({}), Q = /* @__PURE__ */ function(e) {
898
+ }({}), Z = /* @__PURE__ */ function(e) {
899
899
  return e.Header = "header", e.Item = "item", e.Project = "project", e.ProjectConversation = "project-conversation", e.ProjectSeeAll = "project-see-all", e;
900
- }({}), tt = (e, t) => t === n.All || e.source === t, nt = (t, n) => {
901
- if (n === X.All) return !0;
900
+ }({}), nt = (e, t) => t === n.All || e.source === t, rt = (t, n) => {
901
+ if (n === Y.All) return !0;
902
902
  let r = t.kind ?? e.Chat;
903
- return n === X.Task ? r === e.Task : r === e.Chat;
904
- }, rt = (e, t) => !t || e.title.toLowerCase().includes(t.toLowerCase()), it = (e, { searchQuery: t, activeFilter: r, activeTypeFilter: i, hiddenSources: a }) => {
905
- if (i === X.Task) return [];
903
+ return n === Y.Task ? r === e.Task : r === e.Chat;
904
+ }, it = (e, t) => !t || e.title.toLowerCase().includes(t.toLowerCase()), at = (e, { searchQuery: t, activeFilter: r, activeTypeFilter: i, hiddenSources: a }) => {
905
+ if (i === Y.Task) return [];
906
906
  let o = t.toLowerCase(), s = [];
907
907
  for (let i of e) {
908
908
  let e = i.source ?? n.MyChats;
@@ -911,7 +911,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
911
911
  s.push(i);
912
912
  continue;
913
913
  }
914
- let c = i.conversations.filter((e) => rt(e, t));
914
+ let c = i.conversations.filter((e) => it(e, t));
915
915
  c.length > 0 && s.push({
916
916
  ...i,
917
917
  conversations: c,
@@ -919,95 +919,101 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
919
919
  });
920
920
  }
921
921
  return s;
922
- }, at = {
923
- guideLine: "_guideLine_1hyjn_7",
924
- guideLineFirst: "_guideLineFirst_1hyjn_18",
925
- guideLineLast: "_guideLineLast_1hyjn_22",
926
- seeAllText: "_seeAllText_1hyjn_26",
927
- projectIcon: "_projectIcon_1hyjn_27"
928
- }, ot = (e) => `${60 + e * 23 % 35}%`, st = (e, t, n = Z.Avatar) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : n === Z.Indicator ? "pe-2" : "pe-3", ct = (e) => ({
922
+ }, Q = {
923
+ guideLine: "_guideLine_1fnby_7",
924
+ guideLineFirst: "_guideLineFirst_1fnby_18",
925
+ guideLineLast: "_guideLineLast_1fnby_22",
926
+ chevron: "_chevron_1fnby_27",
927
+ projectIcon: "_projectIcon_1fnby_27",
928
+ seeAllText: "_seeAllText_1fnby_31"
929
+ }, ot = (e) => `${60 + e * 23 % 35}%`, st = (e, t, n = X.Avatar) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : n === X.Indicator ? "pe-2" : "pe-3", ct = (e) => ({
929
930
  "aria-level": 2,
930
931
  "aria-posinset": e.posInSet,
931
932
  "aria-setsize": e.setSize,
932
- className: a("ps-7", at.guideLine, e.isFirstNested && at.guideLineFirst, e.isLastNested && at.guideLineLast)
933
+ className: a("ps-7", Q.guideLine, e.isFirstNested && Q.guideLineFirst, e.isLastNested && Q.guideLineLast)
933
934
  }), lt = (e, t) => {
934
935
  let n = t.rows[e];
935
- return n.kind === Q.ProjectConversation && t.projectConversationVariant === Z.Avatar ? 36 : n.kind === Q.Project || n.kind === Q.ProjectConversation || n.kind === Q.ProjectSeeAll ? 34 : t.rowVariant === Z.Indicator ? n.kind === Q.Item ? 34 : e === 0 ? 32 : 40 : n.kind === Q.Item ? 36 : e === 0 ? 24 : 56;
936
+ return n.kind === Z.ProjectConversation && t.projectConversationVariant === X.Avatar ? 36 : n.kind === Z.Project || n.kind === Z.ProjectConversation || n.kind === Z.ProjectSeeAll ? 34 : t.rowVariant === X.Indicator ? n.kind === Z.Item ? 34 : e === 0 ? 32 : 40 : n.kind === Z.Item ? 36 : e === 0 ? 24 : 56;
936
937
  }, ut = 5, dt = (e) => Math.max(ut, Math.ceil(Math.ceil(e / 36) / 2)), ft = (e, { startIndex: t, stopIndex: n }) => {
937
938
  let r = /* @__PURE__ */ new Set();
938
939
  for (let i = Math.max(0, t); i <= Math.min(n, e.length - 1); i++) {
939
940
  let t = e[i];
940
- t.kind === Q.Item && r.add(t.item.id);
941
+ t.kind === Z.Item && r.add(t.item.id);
941
942
  }
942
943
  return [...r];
943
- }, pt = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), mt = (e) => {
944
- let t = e.conversations.length + +!!e.hasMore, n = [{
945
- kind: Q.Project,
946
- project: e
944
+ }, pt = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), mt = (e, t) => e.isExpanded !== !1 || t !== "" && e.conversations.some((e) => it(e, t)), ht = (e, t = !0) => {
945
+ let n = [{
946
+ kind: Z.Project,
947
+ project: e,
948
+ isExpanded: t
947
949
  }];
948
- return e.conversations.forEach((r, i) => {
950
+ if (!t) return n;
951
+ let r = e.conversations.length + +!!e.hasMore;
952
+ return e.conversations.forEach((t, i) => {
949
953
  n.push({
950
- kind: Q.ProjectConversation,
951
- item: r,
954
+ kind: Z.ProjectConversation,
955
+ item: t,
952
956
  projectId: e.id,
953
957
  posInSet: i + 1,
954
- setSize: t,
958
+ setSize: r,
955
959
  isFirstNested: i === 0,
956
- isLastNested: i + 1 === t
960
+ isLastNested: i + 1 === r
957
961
  });
958
962
  }), e.hasMore && n.push({
959
- kind: Q.ProjectSeeAll,
963
+ kind: Z.ProjectSeeAll,
960
964
  project: e,
961
965
  projectId: e.id,
962
- posInSet: t,
963
- setSize: t,
964
- isFirstNested: t === 1,
966
+ posInSet: r,
967
+ setSize: r,
968
+ isFirstNested: r === 1,
965
969
  isLastNested: !0
966
970
  }), n;
967
- }, ht = (e) => {
971
+ }, gt = (e) => {
968
972
  switch (e) {
969
973
  case n.Shared: return n.Shared;
970
974
  case n.Organization: return n.Organization;
971
975
  default: return n.MyChats;
972
976
  }
973
- }, gt = (e, t) => {
977
+ }, _t = (e, t) => {
974
978
  let n = null;
975
- for (let r of e) if (r.kind === Q.Header) n = r.groupKey;
976
- else if (r.kind === Q.Item && r.item.id === t) return n;
979
+ for (let r of e) if (r.kind === Z.Header) n = r.groupKey;
980
+ else if (r.kind === Z.Item && r.item.id === t) return n;
977
981
  return null;
978
- }, _t = (e, t, r) => {
982
+ }, vt = (e, t, r) => {
979
983
  let i = /* @__PURE__ */ new Set();
980
984
  if (t != null && i.add(t), t === n.Pinned) {
981
985
  let t = r.find((t) => t.id === e);
982
- t && i.add(ht(t.source));
986
+ t && i.add(gt(t.source));
983
987
  } else i.add(n.Pinned);
984
988
  return i;
985
- }, vt = (e, t, n, r) => {
989
+ }, yt = (e, t, n, r) => {
986
990
  let i = e.currentTarget.getBoundingClientRect();
987
991
  if (e.clientY >= i.top + i.height / 2) return t;
988
992
  let a = null, o = !1;
989
- for (let e of n) if (e.kind === Q.Header) o = e.groupKey === r;
990
- else if (e.kind === Q.Item && o) {
993
+ for (let e of n) if (e.kind === Z.Header) o = e.groupKey === r;
994
+ else if (e.kind === Z.Item && o) {
991
995
  if (e.item.id === t) return a;
992
996
  a = e.item.id;
993
997
  }
994
998
  return null;
995
999
  }, $ = {
996
1000
  skeletonColor: "var(--cp-skeleton-color, var(--bg-control-disable-primary, #dce0e8))",
997
- item: "_item_6sbjj_2",
998
- itemActive: "_itemActive_6sbjj_17",
999
- itemIndicator: "_itemIndicator_6sbjj_26",
1000
- indicatorDot: "_indicatorDot_6sbjj_30",
1001
- groupHeader: "_groupHeader_6sbjj_34",
1002
- groupHeaderIndicator: "_groupHeaderIndicator_6sbjj_39",
1003
- dropZoneActive: "_dropZoneActive_6sbjj_43",
1004
- triggerActive: "_triggerActive_6sbjj_47",
1005
- triggerIcon: "_triggerIcon_6sbjj_50",
1006
- unreadDot: "_unreadDot_6sbjj_58",
1007
- search: "_search_6sbjj_66",
1008
- list: "_list_6sbjj_77"
1009
- }, yt = ({ label: e, isExpanded: t, onToggle: n, listId: r, className: i = "dial-tiny-lead-text", variant: o = Z.Avatar, dropZoneGroupKey: s, isDragOver: c, onDragOver: l, onDragLeave: u, onDrop: d }) => {
1010
- let f = s != null, p = o === Z.Indicator;
1001
+ item: "_item_slsie_2",
1002
+ itemActive: "_itemActive_slsie_17",
1003
+ row: "_row_slsie_27",
1004
+ itemIndicator: "_itemIndicator_slsie_35",
1005
+ indicatorDot: "_indicatorDot_slsie_39",
1006
+ groupHeader: "_groupHeader_slsie_43",
1007
+ groupHeaderIndicator: "_groupHeaderIndicator_slsie_48",
1008
+ dropZoneActive: "_dropZoneActive_slsie_52",
1009
+ trigger: "_trigger_slsie_57",
1010
+ triggerActive: "_triggerActive_slsie_58",
1011
+ triggerIcon: "_triggerIcon_slsie_61",
1012
+ unreadDot: "_unreadDot_slsie_70",
1013
+ search: "_search_slsie_78",
1014
+ list: "_list_slsie_89"
1015
+ }, bt = ({ label: e, isExpanded: t, onToggle: n, listId: r, className: i = "dial-tiny-lead-text", variant: o = X.Avatar, dropZoneGroupKey: s, isDragOver: c, onDragOver: l, onDragLeave: u, onDrop: d }) => {
1016
+ let f = s != null, p = o === X.Indicator;
1011
1017
  return /* @__PURE__ */ G("button", {
1012
1018
  type: "button",
1013
1019
  "aria-expanded": t,
@@ -1050,7 +1056,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1050
1056
  }))
1051
1057
  ]
1052
1058
  });
1053
- }, bt = (e, t, n) => {
1059
+ }, xt = (e, t, n) => {
1054
1060
  let [r, i] = H(!1), a = B(() => t?.(e) ?? [], [t, e]), o = L((t) => n?.(e, t), [n, e]);
1055
1061
  return {
1056
1062
  menuItems: a,
@@ -1059,8 +1065,8 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1059
1065
  handleOpenChange: i,
1060
1066
  handleOpen: o
1061
1067
  };
1062
- }, xt = I(({ items: e, isOpen: t, onOpenChange: n, onOpen: r, actionsLabel: i, variant: o = Z.Indicator }) => {
1063
- let s = o === Z.Indicator, c = V(null), l = L((e) => {
1068
+ }, St = I(({ items: e, isOpen: t, onOpenChange: n, onOpen: r, actionsLabel: i, variant: o = X.Indicator }) => {
1069
+ let s = o === X.Indicator, c = V(null), l = L((e) => {
1064
1070
  n(e), e && c.current && r?.(c.current);
1065
1071
  }, [n, r]);
1066
1072
  return /* @__PURE__ */ W("div", {
@@ -1080,11 +1086,11 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1080
1086
  }),
1081
1087
  size: _.Small,
1082
1088
  "aria-label": i,
1083
- className: a(s && "size-6! min-h-0! min-w-0! p-1!", t && $.triggerActive)
1089
+ className: a(s && "size-6! min-h-0! min-w-0! p-1!", $.trigger, t && $.triggerActive)
1084
1090
  })
1085
1091
  })
1086
1092
  });
1087
- }), St = ({ href: e, onSelect: t, "aria-label": n, ...r }) => /* @__PURE__ */ W("a", {
1093
+ }), Ct = ({ href: e, onSelect: t, "aria-label": n, ...r }) => /* @__PURE__ */ W("a", {
1088
1094
  href: e,
1089
1095
  "aria-label": e ? n : void 0,
1090
1096
  className: "contents",
@@ -1097,8 +1103,8 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1097
1103
  onClick: e ? void 0 : t,
1098
1104
  tabIndex: e ? -1 : void 0
1099
1105
  })
1100
- }), Ct = I(({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", unreadItemTitleClassName: u = "dial-small-semi-text", itemIconBadgeClassName: d, unreadIndicatorLabel: f = "Unread", variant: p = Z.Avatar, nesting: h, rowGroupKey: g, rows: _, draggingId: v, dragOverId: y, allowedDropGroups: b, onDragStart: S, onDragEnd: C, onDragOver: w, onDragLeave: T, onDrop: E }) => {
1101
- let { menuItems: D, hasActions: O, isMenuOpen: k, handleOpenChange: M, handleOpen: N } = bt(e, o, s), P = B(() => ({ tooltip: e.iconTooltip }), [e.iconTooltip]), F = B(() => ({ badgeClassName: d }), [d]), I = p === Z.Indicator, R = e.leadingIcon ? /* @__PURE__ */ W("span", {
1106
+ }), wt = I(({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", unreadItemTitleClassName: u = "dial-small-semi-text", itemIconBadgeClassName: d, unreadIndicatorLabel: f = "Unread", variant: p = X.Avatar, nesting: h, rowGroupKey: g, rows: _, draggingId: v, dragOverId: y, allowedDropGroups: b, onDragStart: S, onDragEnd: C, onDragOver: w, onDragLeave: T, onDrop: E }) => {
1107
+ let { menuItems: D, hasActions: O, isMenuOpen: k, handleOpenChange: M, handleOpen: N } = xt(e, o, s), P = B(() => ({ tooltip: e.iconTooltip }), [e.iconTooltip]), F = B(() => ({ badgeClassName: d }), [d]), I = p === X.Indicator, R = e.leadingIcon ? /* @__PURE__ */ W("span", {
1102
1108
  className: "flex size-6 shrink-0 items-center justify-center",
1103
1109
  children: e.leadingIcon
1104
1110
  }) : e.isIconLoading ? /* @__PURE__ */ W(A, {
@@ -1136,7 +1142,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1136
1142
  }, [T]), U = L((t) => {
1137
1143
  if (!g || !_ || !E) return;
1138
1144
  t.preventDefault();
1139
- let n = vt(t, e.id, _, g);
1145
+ let n = yt(t, e.id, _, g);
1140
1146
  E(e.id, g, n);
1141
1147
  }, [
1142
1148
  e.id,
@@ -1146,7 +1152,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1146
1152
  ]), ne = e.id === v, re = e.id === y, K = g != null && (b?.has(g) ?? !1), ie = v != null, ae = h ? ct(h) : void 0;
1147
1153
  return /* @__PURE__ */ G("li", {
1148
1154
  ...ae,
1149
- className: a("group/conversation relative", ae?.className, ne && "cursor-grabbing opacity-50", re && K && "rounded", re && K && $.dropZoneActive, ie && !ne && !K && "cursor-not-allowed"),
1155
+ className: a("group/conversation relative", $.row, ae?.className, ne && "cursor-grabbing opacity-50", re && K && "rounded", re && K && $.dropZoneActive, ie && !ne && !K && "cursor-not-allowed"),
1150
1156
  draggable: V || void 0,
1151
1157
  onDragStart: V ? () => S?.(e.id) : void 0,
1152
1158
  onDragEnd: V ? C : void 0,
@@ -1155,7 +1161,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1155
1161
  } : void 0,
1156
1162
  onDragLeave: V ? H : void 0,
1157
1163
  onDrop: V ? U : void 0,
1158
- children: [/* @__PURE__ */ W(St, {
1164
+ children: [/* @__PURE__ */ W(Ct, {
1159
1165
  href: e.href,
1160
1166
  onSelect: () => r(e.id),
1161
1167
  iconBefore: I ? te : R,
@@ -1169,7 +1175,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1169
1175
  textClassName: "min-w-0 flex-1",
1170
1176
  "aria-current": n ? "page" : void 0,
1171
1177
  className: a("h-8 w-full justify-start py-2 after:pointer-events-none", I ? "gap-0.5 ps-2" : "gap-2 ps-3", ee, $.item, I && $.itemIndicator, n && $.itemActive, k && $.itemActive)
1172
- }), O && /* @__PURE__ */ W(xt, {
1178
+ }), O && /* @__PURE__ */ W(St, {
1173
1179
  items: D,
1174
1180
  isOpen: k,
1175
1181
  onOpenChange: M,
@@ -1178,183 +1184,235 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1178
1184
  variant: p
1179
1185
  })]
1180
1186
  });
1181
- }), wt = I(({ project: e, isActive: t, onSelectProject: n, searchQuery: r = "", getActions: i, onActionMenuOpen: o, actionsLabel: s = "More actions", titleClassName: c = "dial-small-text" }) => {
1182
- let { menuItems: l, hasActions: u, isMenuOpen: d, handleOpenChange: f, handleOpen: p } = bt(e, i, o);
1187
+ }), Tt = I(({ project: e, isActive: t, isExpanded: n = !0, listId: r, onSelectProject: i, onToggleProject: o, searchQuery: s = "", getActions: c, onActionMenuOpen: l, actionsLabel: u = "More actions", expandLabel: d = "Expand project", collapseLabel: f = "Collapse project", unreadIndicatorLabel: p = "Unread", titleClassName: g = "dial-small-text" }) => {
1188
+ let { menuItems: v, hasActions: y, isMenuOpen: S, handleOpenChange: C, handleOpen: w } = xt(e, c, l), T = o != null, E = (e) => e.preventDefault(), D = !n && e.conversations.some((e) => e.isUnread) ? /* @__PURE__ */ G("span", {
1189
+ className: "flex size-6 shrink-0 items-center justify-center",
1190
+ children: [/* @__PURE__ */ W("span", {
1191
+ className: a("size-[7.11px] rounded-full", $.unreadDot, y && (S ? "opacity-0" : "group-focus-within/conversation:opacity-0 group-hover/conversation:opacity-0")),
1192
+ "aria-hidden": !0
1193
+ }), /* @__PURE__ */ W("span", {
1194
+ className: "sr-only",
1195
+ children: p
1196
+ })]
1197
+ }) : void 0;
1183
1198
  return /* @__PURE__ */ G("li", {
1184
1199
  "aria-level": 1,
1185
- className: "group/conversation relative",
1186
- children: [/* @__PURE__ */ W(St, {
1187
- href: e.href,
1188
- onSelect: () => n(e.id),
1189
- iconBefore: /* @__PURE__ */ W("span", {
1190
- className: "flex size-6 shrink-0 items-center justify-center",
1191
- children: /* @__PURE__ */ W(re, {
1192
- size: m.SM,
1193
- stroke: h,
1194
- className: at.projectIcon,
1195
- "aria-hidden": !0
1196
- })
1200
+ className: a("group/conversation relative", $.row),
1201
+ children: [
1202
+ /* @__PURE__ */ W(Ct, {
1203
+ href: e.href,
1204
+ onSelect: () => i(e.id),
1205
+ iconBefore: /* @__PURE__ */ W("span", {
1206
+ className: a("flex size-6 shrink-0 items-center justify-center", T && (S ? "opacity-0" : "group-focus-within/conversation:opacity-0 group-hover/conversation:opacity-0 mobile:opacity-0")),
1207
+ children: /* @__PURE__ */ W(re, {
1208
+ size: m.SM,
1209
+ stroke: h,
1210
+ className: Q.projectIcon,
1211
+ "aria-hidden": !0
1212
+ })
1213
+ }),
1214
+ label: /* @__PURE__ */ W(x, {
1215
+ text: e.name,
1216
+ query: s,
1217
+ className: g,
1218
+ maxLines: 1
1219
+ }),
1220
+ iconAfter: D,
1221
+ textClassName: "min-w-0 flex-1",
1222
+ "aria-current": t ? "page" : void 0,
1223
+ className: a("h-8 w-full justify-start gap-0.5 py-2 ps-2 after:pointer-events-none", st(y, S, X.Indicator), $.item, $.itemIndicator, (t || S) && $.itemActive)
1197
1224
  }),
1198
- label: /* @__PURE__ */ W(x, {
1199
- text: e.name,
1200
- query: r,
1201
- className: c,
1202
- maxLines: 1
1225
+ T && /* @__PURE__ */ W("div", {
1226
+ className: a("absolute inset-y-0 inset-s-2 flex items-center", S ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100 mobile:opacity-100"),
1227
+ children: /* @__PURE__ */ W(b, {
1228
+ type: "button",
1229
+ icon: n ? /* @__PURE__ */ W(ae, {
1230
+ size: m.SM,
1231
+ stroke: h,
1232
+ className: Q.projectIcon,
1233
+ "aria-hidden": !0
1234
+ }) : /* @__PURE__ */ W(oe, {
1235
+ size: m.SM,
1236
+ stroke: h,
1237
+ className: a(Q.projectIcon, "rtl:scale-x-[-1]"),
1238
+ "aria-hidden": !0
1239
+ }),
1240
+ size: _.Small,
1241
+ "aria-label": n ? f : d,
1242
+ "aria-expanded": n,
1243
+ "aria-controls": r,
1244
+ className: a("size-6! min-h-0! min-w-0! rounded-full! p-1!", $.trigger, Q.chevron),
1245
+ onMouseDown: E,
1246
+ onClick: () => o(e.id, !n)
1247
+ })
1203
1248
  }),
1204
- textClassName: "min-w-0 flex-1",
1205
- "aria-current": t ? "page" : void 0,
1206
- className: a("h-8 w-full justify-start gap-0.5 py-2 ps-2 after:pointer-events-none", st(u, d, Z.Indicator), $.item, $.itemIndicator, (t || d) && $.itemActive)
1207
- }), u && /* @__PURE__ */ W(xt, {
1208
- items: l,
1209
- isOpen: d,
1210
- onOpenChange: f,
1211
- onOpen: p,
1212
- actionsLabel: s
1213
- })]
1249
+ y && /* @__PURE__ */ W(St, {
1250
+ items: v,
1251
+ isOpen: S,
1252
+ onOpenChange: C,
1253
+ onOpen: w,
1254
+ actionsLabel: u
1255
+ })
1256
+ ]
1214
1257
  });
1215
- }), Tt = (e) => `See all chats in ${e}`, Et = I(({ project: e, position: t, onSeeAll: n, label: r = "See all", ariaLabel: i = Tt, titleClassName: o = "dial-small-text" }) => {
1216
- let s = ct(t);
1217
- return /* @__PURE__ */ W("li", {
1218
- ...s,
1219
- className: a("relative", s.className),
1220
- children: /* @__PURE__ */ W(St, {
1258
+ }), Et = (e) => `See all chats in ${e}`, Dt = I(({ project: e, position: t, onSeeAll: n, label: r = "See all", ariaLabel: i = Et, getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", titleClassName: l = "dial-small-text" }) => {
1259
+ let { menuItems: u, hasActions: d, isMenuOpen: f, handleOpenChange: p, handleOpen: m } = xt(e, o, s), h = ct(t);
1260
+ return /* @__PURE__ */ G("li", {
1261
+ ...h,
1262
+ className: a("group/conversation relative", $.row, h.className),
1263
+ children: [/* @__PURE__ */ W(Ct, {
1221
1264
  href: e.href,
1222
1265
  onSelect: () => n(e.id),
1223
1266
  label: /* @__PURE__ */ W("span", {
1224
- className: a("block truncate text-start", o, at.seeAllText),
1267
+ className: a("block truncate text-start", l, Q.seeAllText),
1225
1268
  children: r
1226
1269
  }),
1227
1270
  "aria-label": i(e.name),
1228
1271
  textClassName: "min-w-0 flex-1",
1229
- className: a("h-8 w-full justify-start py-2 ps-2 pe-2 after:pointer-events-none", $.item, $.itemIndicator)
1230
- })
1272
+ className: a("h-8 w-full justify-start py-2 ps-2 after:pointer-events-none", st(d, f, X.Indicator), $.item, $.itemIndicator, f && $.itemActive)
1273
+ }), d && /* @__PURE__ */ W(St, {
1274
+ items: u,
1275
+ isOpen: f,
1276
+ onOpenChange: p,
1277
+ onOpen: m,
1278
+ actionsLabel: c
1279
+ })]
1231
1280
  });
1232
- }), Dt = (e, t) => t ? e === 0 ? "pt-2" : "pt-4" : e === 0 ? "pt-0" : "pt-8", Ot = ({ index: e, style: t, rows: r, expandedGroups: i, onToggleGroup: a, listId: o, activeConversationId: s, searchQuery: c, onSelectConversation: l, getActions: u, onActionMenuOpen: d, actionsLabel: f, unreadIndicatorLabel: p, activeProjectId: m, onSelectProject: h, onSelectProjectConversation: g, onSeeAll: _, getProjectActions: v, onProjectActionMenuOpen: y, seeAllLabel: b, seeAllAriaLabel: x, styles: S, rowVariant: C = Z.Avatar, projectConversationVariant: w = Z.Indicator, draggingId: T, dragOverId: E, allowedDropGroups: D, onDragStart: O, onDragEnd: k, onDragOver: A, onDragLeave: j, onDrop: M }) => {
1233
- let N = r[e], P = C === Z.Indicator;
1234
- if (N.kind === Q.Header) {
1235
- let r = N.groupKey === n.Pinned;
1281
+ }), Ot = (e, t) => t ? e === 0 ? "pt-2" : "pt-4" : e === 0 ? "pt-0" : "pt-8", kt = ({ index: e, style: t, rows: r, expandedGroups: i, onToggleGroup: a, listId: o, activeConversationId: s, searchQuery: c, onSelectConversation: l, getActions: u, onActionMenuOpen: d, actionsLabel: f, unreadIndicatorLabel: p, activeProjectId: m, onSelectProject: h, onSelectProjectConversation: g, onSeeAll: _, getProjectActions: v, onProjectActionMenuOpen: y, seeAllLabel: b, seeAllAriaLabel: x, onToggleProject: S, expandProjectLabel: C, collapseProjectLabel: w, styles: T, rowVariant: E = X.Avatar, projectConversationVariant: D = X.Indicator, draggingId: O, dragOverId: k, allowedDropGroups: A, onDragStart: j, onDragEnd: M, onDragOver: N, onDragLeave: P, onDrop: F }) => {
1282
+ let I = r[e], L = E === X.Indicator;
1283
+ if (I.kind === Z.Header) {
1284
+ let r = I.groupKey === n.Pinned;
1236
1285
  return /* @__PURE__ */ W("div", {
1237
1286
  role: "listitem",
1238
1287
  style: t,
1239
- className: Dt(e, P),
1240
- children: /* @__PURE__ */ W(yt, {
1241
- variant: C,
1242
- label: N.label,
1243
- isExpanded: i.has(N.groupKey),
1244
- onToggle: () => a(N.groupKey),
1288
+ className: Ot(e, L),
1289
+ children: /* @__PURE__ */ W(bt, {
1290
+ variant: E,
1291
+ label: I.label,
1292
+ isExpanded: i.has(I.groupKey),
1293
+ onToggle: () => a(I.groupKey),
1245
1294
  listId: o,
1246
- className: S?.groupHeaderClassName,
1295
+ className: T?.groupHeaderClassName,
1247
1296
  dropZoneGroupKey: r ? n.Pinned : void 0,
1248
- isDragOver: r && E === n.Pinned,
1249
- onDragOver: r ? A : void 0,
1250
- onDragLeave: r ? j : void 0,
1251
- onDrop: r ? M : void 0
1297
+ isDragOver: r && k === n.Pinned,
1298
+ onDragOver: r ? N : void 0,
1299
+ onDragLeave: r ? P : void 0,
1300
+ onDrop: r ? F : void 0
1252
1301
  })
1253
1302
  });
1254
1303
  }
1255
- return N.kind === Q.Project ? /* @__PURE__ */ W("div", {
1304
+ return I.kind === Z.Project ? /* @__PURE__ */ W("div", {
1256
1305
  role: "presentation",
1257
1306
  style: t,
1258
1307
  className: "pt-0.5",
1259
- children: /* @__PURE__ */ W(wt, {
1260
- project: N.project,
1261
- isActive: N.project.id === m,
1308
+ children: /* @__PURE__ */ W(Tt, {
1309
+ project: I.project,
1310
+ isActive: I.project.id === m,
1311
+ isExpanded: I.isExpanded,
1312
+ listId: o,
1262
1313
  onSelectProject: h,
1314
+ onToggleProject: S,
1263
1315
  searchQuery: c,
1264
1316
  getActions: v,
1265
1317
  onActionMenuOpen: y,
1266
1318
  actionsLabel: f,
1267
- titleClassName: S?.itemTitleClassName
1319
+ expandLabel: C,
1320
+ collapseLabel: w,
1321
+ unreadIndicatorLabel: p,
1322
+ titleClassName: T?.itemTitleClassName
1268
1323
  })
1269
- }) : N.kind === Q.ProjectSeeAll ? /* @__PURE__ */ W("div", {
1324
+ }) : I.kind === Z.ProjectSeeAll ? /* @__PURE__ */ W("div", {
1270
1325
  role: "presentation",
1271
1326
  style: t,
1272
1327
  className: "pt-0.5",
1273
- children: /* @__PURE__ */ W(Et, {
1274
- project: N.project,
1275
- position: N,
1328
+ children: /* @__PURE__ */ W(Dt, {
1329
+ project: I.project,
1330
+ position: I,
1276
1331
  onSeeAll: _,
1277
1332
  label: b,
1278
1333
  ariaLabel: x,
1279
- titleClassName: S?.itemTitleClassName
1334
+ getActions: v,
1335
+ onActionMenuOpen: y,
1336
+ actionsLabel: f,
1337
+ titleClassName: T?.itemTitleClassName
1280
1338
  })
1281
- }) : N.kind === Q.ProjectConversation ? /* @__PURE__ */ W("div", {
1339
+ }) : I.kind === Z.ProjectConversation ? /* @__PURE__ */ W("div", {
1282
1340
  role: "presentation",
1283
1341
  style: t,
1284
1342
  className: "pt-0.5",
1285
- children: /* @__PURE__ */ W(Ct, {
1286
- variant: w,
1287
- nesting: N,
1288
- item: N.item,
1289
- isActive: N.item.id === s,
1343
+ children: /* @__PURE__ */ W(wt, {
1344
+ variant: D,
1345
+ nesting: I,
1346
+ item: I.item,
1347
+ isActive: I.item.id === s,
1290
1348
  searchQuery: c,
1291
1349
  onSelectConversation: g,
1292
1350
  unreadIndicatorLabel: p,
1293
- itemTitleClassName: S?.itemTitleClassName,
1294
- unreadItemTitleClassName: S?.unreadItemTitleClassName,
1295
- itemIconBadgeClassName: S?.itemIconBadgeClassName
1351
+ itemTitleClassName: T?.itemTitleClassName,
1352
+ unreadItemTitleClassName: T?.unreadItemTitleClassName,
1353
+ itemIconBadgeClassName: T?.itemIconBadgeClassName
1296
1354
  })
1297
1355
  }) : /* @__PURE__ */ W("div", {
1298
1356
  role: "presentation",
1299
1357
  style: t,
1300
- className: P ? "pt-0.5" : "pt-1",
1301
- children: /* @__PURE__ */ W(Ct, {
1302
- variant: C,
1303
- item: N.item,
1304
- isActive: N.item.id === s,
1358
+ className: L ? "pt-0.5" : "pt-1",
1359
+ children: /* @__PURE__ */ W(wt, {
1360
+ variant: E,
1361
+ item: I.item,
1362
+ isActive: I.item.id === s,
1305
1363
  searchQuery: c,
1306
1364
  onSelectConversation: l,
1307
1365
  getActions: u,
1308
1366
  onActionMenuOpen: d,
1309
1367
  actionsLabel: f,
1310
1368
  unreadIndicatorLabel: p,
1311
- itemTitleClassName: S?.itemTitleClassName,
1312
- unreadItemTitleClassName: S?.unreadItemTitleClassName,
1313
- itemIconBadgeClassName: S?.itemIconBadgeClassName,
1314
- rowGroupKey: N.groupKey,
1369
+ itemTitleClassName: T?.itemTitleClassName,
1370
+ unreadItemTitleClassName: T?.unreadItemTitleClassName,
1371
+ itemIconBadgeClassName: T?.itemIconBadgeClassName,
1372
+ rowGroupKey: I.groupKey,
1315
1373
  rows: r,
1316
- draggingId: T,
1317
- dragOverId: E,
1318
- allowedDropGroups: D,
1319
- onDragStart: O,
1320
- onDragEnd: k,
1321
- onDragOver: A,
1322
- onDragLeave: j,
1323
- onDrop: M
1374
+ draggingId: O,
1375
+ dragOverId: k,
1376
+ allowedDropGroups: A,
1377
+ onDragStart: j,
1378
+ onDragEnd: M,
1379
+ onDragOver: N,
1380
+ onDragLeave: P,
1381
+ onDrop: F
1324
1382
  })
1325
1383
  });
1326
- }, kt = /* @__PURE__ */ new Set([
1384
+ }, At = /* @__PURE__ */ new Set([
1327
1385
  n.Pinned,
1328
1386
  n.MyChats,
1329
1387
  n.Shared,
1330
1388
  n.Organization
1331
- ]), At = [], jt = I(({ conversations: e, isLoading: t, isUpdatingTitles: i = !1, preserveActiveSearchResult: o = !1, onSelectConversation: s, activeConversationId: u, labels: d, searchQuery: f = "", activeFilter: p = n.All, activeTypeFilter: m = X.All, hiddenSources: h, rowVariant: g, getActions: _, onActionMenuOpen: v, onMoveConversation: y, onVisibleConversationIdsChange: b, pinnedProjects: x, styles: S, id: T, className: E }) => {
1332
- let { colors: D, typography: O, itemIconBadgeClassName: k } = S ?? {}, { emptyLabel: j, emptyDescription: M, noResultsLabel: N, noResultsDescription: P, sharedEmptyDescription: F = P, tabEmptyLabels: I, loadingLabel: te = "Loading conversations", updatingTitlesLabel: z = "Updating conversation names", groupLabels: U, actionsLabel: ne, unreadIndicatorLabel: re, seeAllLabel: K, seeAllAriaLabel: ie } = d, { projects: ae, onSelectProject: oe, onSelectConversation: se, onSeeAll: ce, getActions: le, onActionMenuOpen: ue, activeProjectId: de, conversationRowVariant: fe } = x ?? {}, q = B(() => h?.length ? e.filter((e) => e.source == null || !h.includes(e.source)) : e, [e, h]), [me, he] = H(() => kt), [ge, J] = H(5), _e = ee(), ve = V(null), ye = V(null), [be, xe] = H(null), [Se, Ce] = H(null), [we, Te] = H(null), Ee = V(null), De = V(null), Oe = L(({ height: e }) => {
1333
- J(dt(e));
1334
- }, []), ke = L((e) => {
1335
- he((t) => {
1389
+ ]), jt = [], Mt = I(({ conversations: e, isLoading: t, isUpdatingTitles: i = !1, preserveActiveSearchResult: o = !1, onSelectConversation: s, activeConversationId: u, labels: d, searchQuery: f = "", activeFilter: p = n.All, activeTypeFilter: m = Y.All, hiddenSources: h, rowVariant: g, getActions: _, onActionMenuOpen: v, onMoveConversation: y, onVisibleConversationIdsChange: b, pinnedProjects: x, styles: S, id: T, className: E }) => {
1390
+ let { colors: D, typography: O, itemIconBadgeClassName: k } = S ?? {}, { emptyLabel: j, emptyDescription: M, noResultsLabel: N, noResultsDescription: P, sharedEmptyDescription: F = P, tabEmptyLabels: I, loadingLabel: te = "Loading conversations", updatingTitlesLabel: z = "Updating conversation names", groupLabels: U, actionsLabel: ne, unreadIndicatorLabel: re, seeAllLabel: K, seeAllAriaLabel: ie, expandProjectLabel: ae, collapseProjectLabel: oe } = d, { projects: se, onSelectProject: ce, onSelectConversation: le, onSeeAll: ue, onToggleProject: de, getActions: fe, onActionMenuOpen: q, activeProjectId: me, conversationRowVariant: he } = x ?? {}, ge = B(() => h?.length ? e.filter((e) => e.source == null || !h.includes(e.source)) : e, [e, h]), [J, _e] = H(() => At), [ve, ye] = H(5), be = ee(), xe = V(null), Se = V(null), [Ce, we] = H(null), [Te, Ee] = H(null), [De, Oe] = H(null), ke = V(null), Ae = V(null), je = L(({ height: e }) => {
1391
+ ye(dt(e));
1392
+ }, []), Me = L((e) => {
1393
+ _e((t) => {
1336
1394
  let n = new Set(t);
1337
1395
  return n.has(e) ? n.delete(e) : n.add(e), n;
1338
1396
  });
1339
- }, []), Ae = L(() => {
1340
- Ee.current = null, De.current = null, xe(null), Ce(null), Te(null);
1341
- }, []), je = L((e, t) => {
1342
- let n = _t(e, gt(t, e), q);
1343
- Ee.current = e, De.current = n, xe(e), Te(n);
1344
- }, [q]), Me = L(() => {
1345
- Ae();
1346
- }, [Ae]), Ne = L((e) => {
1347
- Ce(e);
1348
- }, []), Pe = L(() => {
1349
- Ce(null);
1350
- }, []), Fe = L((e, t, n) => {
1351
- let r = Ee.current, i = De.current;
1352
- Ae(), r != null && r !== e && i?.has(t) && y?.({
1397
+ }, []), Ne = L(() => {
1398
+ ke.current = null, Ae.current = null, we(null), Ee(null), Oe(null);
1399
+ }, []), Pe = L((e, t) => {
1400
+ let n = vt(e, _t(t, e), ge);
1401
+ ke.current = e, Ae.current = n, we(e), Oe(n);
1402
+ }, [ge]), Fe = L(() => {
1403
+ Ne();
1404
+ }, [Ne]), Ie = L((e) => {
1405
+ Ee(e);
1406
+ }, []), Le = L(() => {
1407
+ Ee(null);
1408
+ }, []), Re = L((e, t, n) => {
1409
+ let r = ke.current, i = Ae.current;
1410
+ Ne(), r != null && r !== e && i?.has(t) && y?.({
1353
1411
  draggedId: r,
1354
1412
  targetGroupKey: t,
1355
1413
  afterId: n
1356
1414
  });
1357
- }, [Ae, y]), Ie = r({
1415
+ }, [Ne, y]), ze = r({
1358
1416
  "--cp-item-hover": D?.itemHover,
1359
1417
  "--cp-item-active": D?.itemActive,
1360
1418
  "--cp-text": D?.text,
@@ -1368,14 +1426,14 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1368
1426
  "--cp-indicator-dot": D?.indicatorDot,
1369
1427
  "--cp-project-guide-line": D?.projectGuideLine,
1370
1428
  "--cp-list-font-family": O?.fontFamily
1371
- }), [Le, Re] = H(null);
1429
+ }), [Be, Ve] = H(null);
1372
1430
  R(() => {
1373
1431
  if (!o || !f || !u) {
1374
- Re(null);
1432
+ Ve(null);
1375
1433
  return;
1376
1434
  }
1377
- let e = q.find((e) => e.id === u);
1378
- Re((t) => e && rt(e, f) ? t?.id === e.id && t.query === f ? t : {
1435
+ let e = ge.find((e) => e.id === u);
1436
+ Ve((t) => e && it(e, f) ? t?.id === e.id && t.query === f ? t : {
1379
1437
  id: e.id,
1380
1438
  query: f
1381
1439
  } : t?.id === u && t.query === f ? t : null);
@@ -1383,10 +1441,10 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1383
1441
  o,
1384
1442
  f,
1385
1443
  u,
1386
- q
1444
+ ge
1387
1445
  ]);
1388
- let ze = L((e) => {
1389
- o && f && Re({
1446
+ let He = L((e) => {
1447
+ o && f && Ve({
1390
1448
  id: e,
1391
1449
  query: f
1392
1450
  }), s(e);
@@ -1394,69 +1452,69 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1394
1452
  o,
1395
1453
  f,
1396
1454
  s
1397
- ]), Be = o && f !== "" && Le?.query === f && Le.id === u ? Le.id : void 0, Ve = B(() => q.filter((e) => tt(e, p) && nt(e, m) && (rt(e, f) || e.id === Be)), [
1398
- q,
1455
+ ]), Ue = o && f !== "" && Be?.query === f && Be.id === u ? Be.id : void 0, We = B(() => ge.filter((e) => nt(e, p) && rt(e, m) && (it(e, f) || e.id === Ue)), [
1456
+ ge,
1399
1457
  p,
1400
1458
  m,
1401
1459
  f,
1402
- Be
1403
- ]), He = B(() => ae ? it(ae, {
1460
+ Ue
1461
+ ]), Ge = B(() => se ? at(se, {
1404
1462
  searchQuery: f,
1405
1463
  activeFilter: p,
1406
1464
  activeTypeFilter: m,
1407
1465
  hiddenSources: h
1408
- }) : At, [
1409
- ae,
1466
+ }) : jt, [
1467
+ se,
1410
1468
  f,
1411
1469
  p,
1412
1470
  m,
1413
1471
  h
1414
- ]), Ue = B(() => {
1472
+ ]), Ke = B(() => {
1415
1473
  let e = /* @__PURE__ */ new Map();
1416
- for (let t of He) for (let n of t.conversations) e.set(n.id, t.id);
1474
+ for (let t of Ge) for (let n of t.conversations) e.set(n.id, t.id);
1417
1475
  return e;
1418
- }, [He]), We = L((e) => oe?.(e), [oe]), Ge = L((e) => {
1419
- let t = Ue.get(e);
1420
- t != null && se?.(e, t);
1421
- }, [Ue, se]), Ke = L((e) => ce?.(e), [ce]), qe = B(() => Ve.filter((e) => e.isPinned), [Ve]), Je = B(() => Ve.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Ve]), Ye = B(() => Ve.filter((e) => !e.isPinned && e.source === n.Shared), [Ve]), Xe = B(() => Ve.filter((e) => !e.isPinned && e.source === n.Organization), [Ve]), Ze = B(() => [
1476
+ }, [Ge]), qe = L((e) => ce?.(e), [ce]), Je = L((e) => {
1477
+ let t = Ke.get(e);
1478
+ t != null && le?.(e, t);
1479
+ }, [Ke, le]), Ye = L((e) => ue?.(e), [ue]), Xe = B(() => We.filter((e) => e.isPinned), [We]), Ze = B(() => We.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [We]), Qe = B(() => We.filter((e) => !e.isPinned && e.source === n.Shared), [We]), $e = B(() => We.filter((e) => !e.isPinned && e.source === n.Organization), [We]), et = B(() => [
1422
1480
  {
1423
1481
  key: n.Pinned,
1424
1482
  label: U?.pinned ?? "Pinned",
1425
- items: qe
1483
+ items: Xe
1426
1484
  },
1427
1485
  {
1428
1486
  key: n.MyChats,
1429
1487
  label: U?.myChats ?? "My chats",
1430
- items: Je
1488
+ items: Ze
1431
1489
  },
1432
1490
  {
1433
1491
  key: n.Shared,
1434
1492
  label: U?.shared ?? "Shared",
1435
- items: Ye
1493
+ items: Qe
1436
1494
  },
1437
1495
  {
1438
1496
  key: n.Organization,
1439
1497
  label: U?.organization ?? "Organization",
1440
- items: Xe
1498
+ items: $e
1441
1499
  }
1442
1500
  ], [
1443
1501
  U,
1444
- qe,
1445
- Je,
1446
- Ye,
1447
- Xe
1448
- ]), Y = B(() => {
1502
+ Xe,
1503
+ Ze,
1504
+ Qe,
1505
+ $e
1506
+ ]), Q = B(() => {
1449
1507
  let e = [];
1450
- for (let t of Ze) {
1451
- let r = t.key === n.Pinned ? He : At;
1508
+ for (let t of et) {
1509
+ let r = t.key === n.Pinned ? Ge : jt;
1452
1510
  if ((t.items.length !== 0 || r.length !== 0) && (e.push({
1453
- kind: Q.Header,
1511
+ kind: Z.Header,
1454
1512
  groupKey: t.key,
1455
1513
  label: t.label
1456
- }), me.has(t.key))) {
1457
- for (let t of r) e.push(...mt(t));
1514
+ }), J.has(t.key))) {
1515
+ for (let t of r) e.push(...ht(t, mt(t, f)));
1458
1516
  for (let n of t.items) e.push({
1459
- kind: Q.Item,
1517
+ kind: Z.Item,
1460
1518
  item: n,
1461
1519
  groupKey: t.key
1462
1520
  });
@@ -1464,121 +1522,128 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1464
1522
  }
1465
1523
  return e;
1466
1524
  }, [
1467
- Ze,
1468
- He,
1469
- me
1525
+ et,
1526
+ Ge,
1527
+ J,
1528
+ f
1470
1529
  ]);
1471
1530
  R(() => {
1472
- if (!u || ye.current === u) return;
1473
- let e = Y.findIndex((e) => (e.kind === Q.Item || e.kind === Q.ProjectConversation) && e.item.id === u);
1474
- e >= 0 && (ve.current?.scrollToRow({
1531
+ if (!u || Se.current === u) return;
1532
+ let e = Q.findIndex((e) => (e.kind === Z.Item || e.kind === Z.ProjectConversation) && e.item.id === u);
1533
+ e >= 0 && (xe.current?.scrollToRow({
1475
1534
  index: e,
1476
1535
  align: "smart",
1477
1536
  behavior: "smooth"
1478
- }), ye.current = u);
1537
+ }), Se.current = u);
1479
1538
  }, [
1480
1539
  u,
1481
- Ze,
1482
- me,
1483
- Y
1540
+ et,
1541
+ J,
1542
+ Q
1484
1543
  ]);
1485
- let Qe = V(Y);
1544
+ let st = V(Q);
1486
1545
  R(() => {
1487
- Qe.current = Y;
1488
- }, [Y]);
1489
- let $e = L((e) => je(e, Qe.current), [je]), at = B(() => ({
1490
- rows: Y,
1491
- expandedGroups: me,
1492
- onToggleGroup: ke,
1493
- listId: _e,
1546
+ st.current = Q;
1547
+ }, [Q]);
1548
+ let ct = L((e) => Pe(e, st.current), [Pe]), ut = B(() => ({
1549
+ rows: Q,
1550
+ expandedGroups: J,
1551
+ onToggleGroup: Me,
1552
+ listId: be,
1494
1553
  activeConversationId: u,
1495
1554
  searchQuery: f,
1496
- onSelectConversation: ze,
1555
+ onSelectConversation: He,
1497
1556
  getActions: _,
1498
1557
  onActionMenuOpen: v,
1499
1558
  actionsLabel: ne,
1500
1559
  unreadIndicatorLabel: re,
1501
- activeProjectId: de,
1502
- onSelectProject: We,
1503
- onSelectProjectConversation: Ge,
1504
- onSeeAll: Ke,
1505
- getProjectActions: le,
1506
- onProjectActionMenuOpen: ue,
1560
+ activeProjectId: me,
1561
+ onSelectProject: qe,
1562
+ onSelectProjectConversation: Je,
1563
+ onSeeAll: Ye,
1564
+ onToggleProject: de,
1565
+ getProjectActions: fe,
1566
+ onProjectActionMenuOpen: q,
1507
1567
  seeAllLabel: K,
1508
1568
  seeAllAriaLabel: ie,
1569
+ expandProjectLabel: ae,
1570
+ collapseProjectLabel: oe,
1509
1571
  rowVariant: g,
1510
- projectConversationVariant: fe,
1572
+ projectConversationVariant: he,
1511
1573
  styles: {
1512
1574
  groupHeaderClassName: O?.groupHeaderClassName,
1513
1575
  itemTitleClassName: O?.itemTitleClassName,
1514
1576
  unreadItemTitleClassName: O?.unreadItemTitleClassName,
1515
1577
  itemIconBadgeClassName: k
1516
1578
  },
1517
- draggingId: be,
1518
- dragOverId: Se,
1519
- allowedDropGroups: we,
1520
- onDragStart: $e,
1521
- onDragEnd: Me,
1522
- onDragOver: Ne,
1523
- onDragLeave: Pe,
1524
- onDrop: Fe
1579
+ draggingId: Ce,
1580
+ dragOverId: Te,
1581
+ allowedDropGroups: De,
1582
+ onDragStart: ct,
1583
+ onDragEnd: Fe,
1584
+ onDragOver: Ie,
1585
+ onDragLeave: Le,
1586
+ onDrop: Re
1525
1587
  }), [
1526
- Y,
1527
- me,
1528
- ke,
1529
- _e,
1588
+ Q,
1589
+ J,
1590
+ Me,
1591
+ be,
1530
1592
  u,
1531
1593
  f,
1532
- ze,
1594
+ He,
1533
1595
  _,
1534
1596
  v,
1535
1597
  ne,
1536
1598
  re,
1599
+ me,
1600
+ qe,
1601
+ Je,
1602
+ Ye,
1537
1603
  de,
1538
- We,
1539
- Ge,
1540
- Ke,
1541
- le,
1542
- ue,
1604
+ fe,
1605
+ q,
1543
1606
  K,
1544
1607
  ie,
1608
+ ae,
1609
+ oe,
1545
1610
  g,
1546
- fe,
1611
+ he,
1547
1612
  O?.groupHeaderClassName,
1548
1613
  O?.itemTitleClassName,
1549
1614
  O?.unreadItemTitleClassName,
1550
1615
  k,
1551
- be,
1552
- Se,
1553
- we,
1554
- $e,
1555
- Me,
1556
- Ne,
1557
- Pe,
1558
- Fe
1559
- ]), st = f !== "" || p !== n.All || m !== X.All, ct = Ve.length === 0 && He.length === 0, ut = ct && st, ht = ct && !st, vt = ut && f === "" && m === X.All ? I?.[p] : void 0, yt = vt?.label ?? N, bt = p === n.Shared && f === "" ? F : P, xt = vt?.description ?? bt, St = !t && !ct, Ct = V(null), wt = V(null), Tt = V(b);
1616
+ Ce,
1617
+ Te,
1618
+ De,
1619
+ ct,
1620
+ Fe,
1621
+ Ie,
1622
+ Le,
1623
+ Re
1624
+ ]), gt = f !== "" || p !== n.All || m !== Y.All, yt = We.length === 0 && Ge.length === 0, bt = yt && gt, xt = yt && !gt, St = bt && f === "" && m === Y.All ? I?.[p] : void 0, Ct = St?.label ?? N, wt = p === n.Shared && f === "" ? F : P, Tt = St?.description ?? wt, Et = !t && !yt, Dt = V(null), Ot = V(null), Mt = V(b);
1560
1625
  R(() => {
1561
- Tt.current = b;
1626
+ Mt.current = b;
1562
1627
  }, [b]);
1563
- let Et = L((e) => {
1564
- wt.current && pt(wt.current, e) || (wt.current = e, Tt.current?.(e));
1565
- }, []), Dt = L((e) => {
1566
- Ct.current = e, Et(ft(Y, e));
1567
- }, [Y, Et]);
1628
+ let Nt = L((e) => {
1629
+ Ot.current && pt(Ot.current, e) || (Ot.current = e, Mt.current?.(e));
1630
+ }, []), Pt = L((e) => {
1631
+ Dt.current = e, Nt(ft(Q, e));
1632
+ }, [Q, Nt]);
1568
1633
  return R(() => {
1569
- St ? Ct.current && Et(ft(Y, Ct.current)) : (Ct.current = null, Et([]));
1634
+ Et ? Dt.current && Nt(ft(Q, Dt.current)) : (Dt.current = null, Nt([]));
1570
1635
  }, [
1571
- St,
1572
- Y,
1573
- Et
1636
+ Et,
1637
+ Q,
1638
+ Nt
1574
1639
  ]), /* @__PURE__ */ G("div", {
1575
1640
  id: T,
1576
- style: Ie,
1577
- className: a("flex-1 overflow-hidden px-3", $.list, O?.fontClassName, g !== Z.Indicator && "py-1", E, pe.list),
1641
+ style: ze,
1642
+ className: a("flex-1 overflow-hidden px-3", $.list, O?.fontClassName, g !== X.Indicator && "py-1", E, pe.list),
1578
1643
  children: [/* @__PURE__ */ W(C, {
1579
1644
  visuallyHidden: !0,
1580
1645
  as: w.Span,
1581
- children: t ? te : i ? z : ht ? j : ut ? yt : ""
1646
+ children: t ? te : i ? z : xt ? j : bt ? Ct : ""
1582
1647
  }), t ? /* @__PURE__ */ W("div", {
1583
1648
  className: "flex flex-col gap-3 px-2 py-3",
1584
1649
  children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ W(A, {
@@ -1588,31 +1653,31 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1588
1653
  active: !0,
1589
1654
  color: $.skeletonColor
1590
1655
  }, t))
1591
- }) : ht ? /* @__PURE__ */ W(c, {
1656
+ }) : xt ? /* @__PURE__ */ W(c, {
1592
1657
  label: j,
1593
1658
  description: M
1594
- }) : ut && f !== "" && i ? /* @__PURE__ */ W(c, { label: z }) : ut ? /* @__PURE__ */ W(l, {
1595
- label: yt,
1596
- description: xt
1597
- }) : /* @__PURE__ */ W(et, {
1598
- listRef: ve,
1599
- id: _e,
1659
+ }) : bt && f !== "" && i ? /* @__PURE__ */ W(c, { label: z }) : bt ? /* @__PURE__ */ W(l, {
1660
+ label: Ct,
1661
+ description: Tt
1662
+ }) : /* @__PURE__ */ W(tt, {
1663
+ listRef: xe,
1664
+ id: be,
1600
1665
  role: "list",
1601
1666
  style: { height: "100%" },
1602
- rowComponent: Ot,
1603
- rowCount: Y.length,
1667
+ rowComponent: kt,
1668
+ rowCount: Q.length,
1604
1669
  rowHeight: lt,
1605
- overscanCount: ge,
1606
- onResize: Oe,
1607
- onRowsRendered: Dt,
1608
- rowProps: at
1670
+ overscanCount: ve,
1671
+ onResize: je,
1672
+ onRowsRendered: Pt,
1673
+ rowProps: ut
1609
1674
  })]
1610
1675
  });
1611
- }), Mt = {
1676
+ }), Nt = {
1612
1677
  title: "_title_mvx21_2",
1613
1678
  filterValue: "_filterValue_mvx21_12",
1614
1679
  filterIndicator: "_filterIndicator_mvx21_17"
1615
- }, Nt = "!size-6 !min-h-0 !min-w-0 !p-1", Pt = [
1680
+ }, Pt = "!size-6 !min-h-0 !min-w-0 !p-1", Ft = [
1616
1681
  {
1617
1682
  value: n.All,
1618
1683
  getLabel: (e) => e.all
@@ -1629,21 +1694,21 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1629
1694
  value: n.Organization,
1630
1695
  getLabel: (e) => e.organization
1631
1696
  }
1632
- ], Ft = [
1697
+ ], It = [
1633
1698
  {
1634
- value: X.All,
1699
+ value: Y.All,
1635
1700
  getLabel: (e) => e.all
1636
1701
  },
1637
1702
  {
1638
- value: X.Chat,
1703
+ value: Y.Chat,
1639
1704
  getLabel: (e) => e.chat ?? "Chat"
1640
1705
  },
1641
1706
  {
1642
- value: X.Task,
1707
+ value: Y.Task,
1643
1708
  getLabel: (e) => e.task ?? "Task"
1644
1709
  }
1645
- ], It = I(({ labels: e, isExpanded: t = !0, onToggleExpanded: i, controlsId: o, searchQuery: s = "", isSearchOpen: c = !1, onSearchChange: l, onSearchOpenChange: u, activeFilter: d = n.All, onFilterChange: f, activeTypeFilter: p = X.All, onTypeFilterChange: v, hiddenSources: y, actions: x, styles: S, className: C }) => {
1646
- let w = S?.typography?.titleClassName ?? "dial-tiny-lead-semi-text", T = S?.typography?.searchTextClassName ?? "dial-tiny-text", D = S?.colors?.filterValue, O = V(null), A = V(null), j = V(c), M = e.filterLabels.groupAriaLabel ?? "Filter chats", N = e.filterActiveLabel ?? "Filters applied", P = ee(), F = d !== n.All || p !== X.All, I = l != null && u != null;
1710
+ ], Lt = I(({ labels: e, isExpanded: t = !0, onToggleExpanded: i, controlsId: o, searchQuery: s = "", isSearchOpen: c = !1, onSearchChange: l, onSearchOpenChange: u, activeFilter: d = n.All, onFilterChange: f, activeTypeFilter: p = Y.All, onTypeFilterChange: v, hiddenSources: y, actions: x, styles: S, className: C }) => {
1711
+ let w = S?.typography?.titleClassName ?? "dial-tiny-lead-semi-text", T = S?.typography?.searchTextClassName ?? "dial-tiny-text", D = S?.colors?.filterValue, O = V(null), A = V(null), j = V(c), M = e.filterLabels.groupAriaLabel ?? "Filter chats", N = e.filterActiveLabel ?? "Filters applied", P = ee(), F = d !== n.All || p !== Y.All, I = l != null && u != null;
1647
1712
  R(() => {
1648
1713
  c ? A.current?.focus() : j.current && O.current?.focus(), j.current = c;
1649
1714
  }, [c]);
@@ -1660,18 +1725,18 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1660
1725
  className: "min-w-0 flex-1 truncate text-start",
1661
1726
  children: e
1662
1727
  }), /* @__PURE__ */ W("span", {
1663
- className: a("shrink-0", Mt.filterValue),
1728
+ className: a("shrink-0", Nt.filterValue),
1664
1729
  style: n,
1665
1730
  children: t
1666
1731
  })] }), o = [];
1667
1732
  if (v) {
1668
- let e = Ft.map(({ value: e, getLabel: n }) => ({
1733
+ let e = It.map(({ value: e, getLabel: n }) => ({
1669
1734
  key: e,
1670
1735
  label: n(t),
1671
1736
  mark: E.Check,
1672
1737
  checked: e === p,
1673
1738
  onClick: () => v(e)
1674
- })), n = Ft.find(({ value: e }) => e === p);
1739
+ })), n = It.find(({ value: e }) => e === p);
1675
1740
  o.push({
1676
1741
  key: "filter-type",
1677
1742
  label: t.type ?? "Type",
@@ -1680,7 +1745,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1680
1745
  });
1681
1746
  }
1682
1747
  if (f) {
1683
- let e = Pt.filter(({ value: e }) => !y?.includes(e)), n = e.find(({ value: e }) => e === d);
1748
+ let e = Ft.filter(({ value: e }) => !y?.includes(e)), n = e.find(({ value: e }) => e === d);
1684
1749
  o.push({
1685
1750
  key: "filter-origin",
1686
1751
  label: t.origin ?? "Origin",
@@ -1733,7 +1798,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1733
1798
  "aria-hidden": !0
1734
1799
  }),
1735
1800
  size: _.Small,
1736
- className: Nt,
1801
+ className: Pt,
1737
1802
  "aria-label": e.searchCloseLabel,
1738
1803
  onClick: z
1739
1804
  })]
@@ -1750,7 +1815,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1750
1815
  "aria-expanded": t,
1751
1816
  "aria-controls": o,
1752
1817
  onClick: i,
1753
- className: a("group flex items-center gap-1 rounded", Mt.title),
1818
+ className: a("group flex items-center gap-1 rounded", Nt.title),
1754
1819
  children: [se, t ? /* @__PURE__ */ W(ae, {
1755
1820
  size: m.SM,
1756
1821
  stroke: h,
@@ -1763,7 +1828,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1763
1828
  "aria-hidden": !0
1764
1829
  })]
1765
1830
  }) : /* @__PURE__ */ W("span", {
1766
- className: Mt.title,
1831
+ className: Nt.title,
1767
1832
  children: se
1768
1833
  }), /* @__PURE__ */ G("div", {
1769
1834
  className: "flex items-center gap-2",
@@ -1776,7 +1841,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1776
1841
  "aria-hidden": !0
1777
1842
  }),
1778
1843
  size: _.Small,
1779
- className: Nt,
1844
+ className: Pt,
1780
1845
  "aria-label": e.searchOpenLabel,
1781
1846
  onClick: te
1782
1847
  }),
@@ -1793,11 +1858,11 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1793
1858
  "aria-hidden": !0
1794
1859
  }), F && /* @__PURE__ */ W("span", {
1795
1860
  "aria-hidden": !0,
1796
- className: a(Mt.filterIndicator, "absolute -inset-e-0.5 -top-0.5 size-1.5 rounded-full")
1861
+ className: a(Nt.filterIndicator, "absolute -inset-e-0.5 -top-0.5 size-1.5 rounded-full")
1797
1862
  })]
1798
1863
  }),
1799
1864
  size: _.Small,
1800
- className: Nt,
1865
+ className: Pt,
1801
1866
  "aria-label": M,
1802
1867
  "aria-describedby": F ? P : void 0
1803
1868
  })
@@ -1811,8 +1876,8 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1811
1876
  ]
1812
1877
  })]
1813
1878
  });
1814
- }), Lt = I(({ conversations: e, isLoading: t, isUpdatingTitles: r, preserveActiveSearchResult: i, onSelectConversation: o, activeConversationId: s, labels: c, requestedFilter: l, isFilterHidden: u = !1, onFilterChange: d, isTypeFilterHidden: f = !1, onTypeFilterChange: p, hiddenSources: m, headerActions: h, getActions: g, onActionMenuOpen: _, onMoveConversation: v, onVisibleConversationIdsChange: y, pinnedProjects: b, styles: x, listClassName: S, className: C }) => {
1815
- let w = ee(), [T, E] = H(""), [D, O] = H(!1), [k, A] = H(!0), [j, M] = H(n.All), [N, P] = H(X.All);
1879
+ }), Rt = I(({ conversations: e, isLoading: t, isUpdatingTitles: r, preserveActiveSearchResult: i, onSelectConversation: o, activeConversationId: s, labels: c, requestedFilter: l, isFilterHidden: u = !1, onFilterChange: d, isTypeFilterHidden: f = !1, onTypeFilterChange: p, hiddenSources: m, headerActions: h, getActions: g, onActionMenuOpen: _, onMoveConversation: v, onVisibleConversationIdsChange: y, pinnedProjects: b, styles: x, listClassName: S, className: C }) => {
1880
+ let w = ee(), [T, E] = H(""), [D, O] = H(!1), [k, A] = H(!0), [j, M] = H(n.All), [N, P] = H(Y.All);
1816
1881
  R(() => {
1817
1882
  l != null && M(l);
1818
1883
  }, [l]);
@@ -1830,7 +1895,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1830
1895
  className: a("flex min-h-0 flex-1 flex-col px-1 pt-4", C, pe.listSection),
1831
1896
  children: [/* @__PURE__ */ W("div", {
1832
1897
  className: "px-3 pb-2",
1833
- children: /* @__PURE__ */ W(It, {
1898
+ children: /* @__PURE__ */ W(Lt, {
1834
1899
  labels: c,
1835
1900
  isExpanded: k,
1836
1901
  onToggleExpanded: B,
@@ -1851,7 +1916,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1851
1916
  hidden: !k,
1852
1917
  inert: !k,
1853
1918
  className: k ? "flex min-h-0 flex-1 flex-col" : "hidden",
1854
- children: /* @__PURE__ */ W(jt, {
1919
+ children: /* @__PURE__ */ W(Mt, {
1855
1920
  id: w,
1856
1921
  conversations: e,
1857
1922
  isLoading: t,
@@ -1864,7 +1929,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1864
1929
  activeFilter: j,
1865
1930
  activeTypeFilter: N,
1866
1931
  hiddenSources: m,
1867
- rowVariant: Z.Indicator,
1932
+ rowVariant: X.Indicator,
1868
1933
  getActions: g,
1869
1934
  onActionMenuOpen: _,
1870
1935
  onMoveConversation: v,
@@ -1875,7 +1940,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1875
1940
  })
1876
1941
  })]
1877
1942
  });
1878
- }), Rt = [
1943
+ }), zt = [
1879
1944
  {
1880
1945
  value: n.All,
1881
1946
  labelKey: "all"
@@ -1892,8 +1957,8 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1892
1957
  value: n.Organization,
1893
1958
  labelKey: "organization"
1894
1959
  }
1895
- ], zt = I(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
1896
- let a = B(() => Rt.filter(({ value: e }) => !i?.includes(e)).map(({ value: e, labelKey: n }) => ({
1960
+ ], Bt = I(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
1961
+ let a = B(() => zt.filter(({ value: e }) => !i?.includes(e)).map(({ value: e, labelKey: n }) => ({
1897
1962
  value: e,
1898
1963
  label: t[n]
1899
1964
  })), [t, i]);
@@ -1906,7 +1971,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1906
1971
  className: "px-3 py-2",
1907
1972
  chipClassName: N("px-2!", r)
1908
1973
  });
1909
- }), Bt = { button: "_button_vjird_1" }, Vt = I(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i, className: o }) => {
1974
+ }), Vt = { button: "_button_vjird_1" }, Ht = I(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i, className: o }) => {
1910
1975
  let s = r({
1911
1976
  "--cp-new-chat-bg": i?.background,
1912
1977
  "--cp-new-chat-text": i?.text,
@@ -1925,22 +1990,22 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1925
1990
  "aria-hidden": !0
1926
1991
  }),
1927
1992
  onClick: t,
1928
- className: a("h-[36px] w-full gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Bt.button, o, pe.newChatButton)
1993
+ className: a("h-[36px] w-full gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Vt.button, o, pe.newChatButton)
1929
1994
  })
1930
1995
  });
1931
- }), Ht = I(({ conversations: e, isLoading: t, isUpdatingTitles: i, preserveActiveSearchResult: o, isOpen: s, onSelectConversation: c, activeConversationId: l, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, onVisibleConversationIdsChange: S, activeFilter: C, onActiveFilterChange: w, isFilterTabsHidden: T = !1, hiddenSources: E, pinnedProjects: D }) => {
1932
- let { colors: O, typography: A, newChatButton: j, searchWrapperClassName: M, headerClassName: N, headerActionsClassName: P, newChatButtonClassName: F } = m ?? {}, { title: I, emptyLabel: ee, emptyDescription: te, noResultsLabel: z, noResultsDescription: V, sharedEmptyDescription: U, tabEmptyLabels: ne, loadingLabel: re, updatingTitlesLabel: K, newChatLabel: ie, searchPlaceholder: ae, searchClearLabel: oe, filterLabels: se, groupLabels: ce, actionsLabel: le, unreadIndicatorLabel: ue, seeAllLabel: de, seeAllAriaLabel: fe, closeAriaLabel: q } = f, [me, he] = H(""), [ge, J] = H(n.All);
1996
+ }), Ut = I(({ conversations: e, isLoading: t, isUpdatingTitles: i, preserveActiveSearchResult: o, isOpen: s, onSelectConversation: c, activeConversationId: l, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, onVisibleConversationIdsChange: S, activeFilter: C, onActiveFilterChange: w, isFilterTabsHidden: T = !1, hiddenSources: E, pinnedProjects: D }) => {
1997
+ let { colors: O, typography: A, newChatButton: j, searchWrapperClassName: M, headerClassName: N, headerActionsClassName: P, newChatButtonClassName: F } = m ?? {}, { title: I, emptyLabel: ee, emptyDescription: te, noResultsLabel: z, noResultsDescription: V, sharedEmptyDescription: U, tabEmptyLabels: ne, loadingLabel: re, updatingTitlesLabel: K, newChatLabel: ie, searchPlaceholder: ae, searchClearLabel: oe, filterLabels: se, groupLabels: ce, actionsLabel: le, unreadIndicatorLabel: ue, seeAllLabel: de, seeAllAriaLabel: fe, expandProjectLabel: q, collapseProjectLabel: me, closeAriaLabel: he } = f, [ge, J] = H(""), [_e, ve] = H(n.All);
1933
1998
  R(() => {
1934
- C != null && J(C);
1999
+ C != null && ve(C);
1935
2000
  }, [C]);
1936
- let _e = L((e) => {
1937
- he(e ?? "");
1938
- }, []), ve = r({
2001
+ let ye = L((e) => {
2002
+ J(e ?? "");
2003
+ }, []), be = r({
1939
2004
  "--cp-text": O?.text,
1940
2005
  "--cp-new-chat-bg": j?.background,
1941
2006
  "--cp-new-chat-text": j?.text,
1942
2007
  "--cp-new-chat-focus-outline": j?.focusOutline
1943
- }), ye = B(() => ({
2008
+ }), xe = B(() => ({
1944
2009
  emptyLabel: ee,
1945
2010
  emptyDescription: te,
1946
2011
  noResultsLabel: z,
@@ -1953,7 +2018,9 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1953
2018
  actionsLabel: le,
1954
2019
  unreadIndicatorLabel: ue,
1955
2020
  seeAllLabel: de,
1956
- seeAllAriaLabel: fe
2021
+ seeAllAriaLabel: fe,
2022
+ expandProjectLabel: q,
2023
+ collapseProjectLabel: me
1957
2024
  }), [
1958
2025
  ee,
1959
2026
  te,
@@ -1967,8 +2034,10 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1967
2034
  le,
1968
2035
  ue,
1969
2036
  de,
1970
- fe
1971
- ]), be = B(() => ({
2037
+ fe,
2038
+ q,
2039
+ me
2040
+ ]), Se = B(() => ({
1972
2041
  colors: O,
1973
2042
  typography: {
1974
2043
  fontFamily: A?.fontFamily,
@@ -1992,7 +2061,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1992
2061
  title: I,
1993
2062
  labels: {
1994
2063
  ariaLabel: I,
1995
- closeLabel: q
2064
+ closeLabel: he
1996
2065
  },
1997
2066
  onClose: y,
1998
2067
  styles: {
@@ -2002,7 +2071,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
2002
2071
  },
2003
2072
  typography: { fontClassName: A?.fontClassName },
2004
2073
  bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
2005
- cssVars: ve,
2074
+ cssVars: be,
2006
2075
  titleClassName: A?.fontClassName,
2007
2076
  headerClassName: a("h-[64px]", N),
2008
2077
  headerActionsClassName: P,
@@ -2010,7 +2079,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
2010
2079
  },
2011
2080
  rightActions: b,
2012
2081
  children: [
2013
- /* @__PURE__ */ W(Vt, {
2082
+ /* @__PURE__ */ W(Ht, {
2014
2083
  label: ie,
2015
2084
  onClick: p,
2016
2085
  labelClassName: A?.newChatLabelClassName,
@@ -2022,43 +2091,43 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
2022
2091
  className: a("px-3 py-2", pe.search),
2023
2092
  children: /* @__PURE__ */ W(k, {
2024
2093
  wrapperClassName: a($.search, M),
2025
- value: me,
2026
- onChange: _e,
2094
+ value: ge,
2095
+ onChange: ye,
2027
2096
  placeholder: ae,
2028
2097
  clearLabel: oe,
2029
2098
  "aria-label": ae
2030
2099
  })
2031
2100
  }),
2032
- !T && /* @__PURE__ */ W(zt, {
2033
- activeTab: ge,
2101
+ !T && /* @__PURE__ */ W(Bt, {
2102
+ activeTab: _e,
2034
2103
  labels: se,
2035
2104
  onChange: (e) => {
2036
- J(e), w?.(e);
2105
+ ve(e), w?.(e);
2037
2106
  },
2038
2107
  tabClassName: A?.tabClassName,
2039
2108
  hiddenSources: E
2040
2109
  }),
2041
- /* @__PURE__ */ W(jt, {
2110
+ /* @__PURE__ */ W(Mt, {
2042
2111
  conversations: e,
2043
2112
  isLoading: t,
2044
2113
  isUpdatingTitles: i,
2045
2114
  preserveActiveSearchResult: o,
2046
2115
  onSelectConversation: c,
2047
2116
  activeConversationId: l,
2048
- labels: ye,
2049
- searchQuery: me,
2050
- activeFilter: ge,
2117
+ labels: xe,
2118
+ searchQuery: ge,
2119
+ activeFilter: _e,
2051
2120
  hiddenSources: E,
2052
2121
  getActions: _,
2053
2122
  onActionMenuOpen: v,
2054
2123
  onMoveConversation: x,
2055
2124
  onVisibleConversationIdsChange: S,
2056
2125
  pinnedProjects: D,
2057
- styles: be
2126
+ styles: Se
2058
2127
  })
2059
2128
  ]
2060
2129
  });
2061
- }), Ut = I(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
2130
+ }), Wt = I(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
2062
2131
  let [f, g] = H(t), [_, v] = H(!1), [y, x] = H(null), E = V(null), k = V(!1), A = V(0);
2063
2132
  R(() => {
2064
2133
  let n = e && !k.current;
@@ -2160,6 +2229,6 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
2160
2229
  })
2161
2230
  });
2162
2231
  });
2163
- Ut.displayName = "RenameConversationPopup";
2232
+ Wt.displayName = "RenameConversationPopup";
2164
2233
  //#endregion
2165
- export { pe as CONVERSATION_PANEL_CLASS, jt as ConversationList, It as ConversationListHeader, Lt as ConversationListSection, Ht as ConversationPanel, Z as ConversationRowVariant, X as ConversationTypeFilter, Ut as RenameConversationPopup };
2234
+ export { pe as CONVERSATION_PANEL_CLASS, Mt as ConversationList, Lt as ConversationListHeader, Rt as ConversationListSection, Ut as ConversationPanel, X as ConversationRowVariant, Y as ConversationTypeFilter, Wt as RenameConversationPopup };