@epam/ai-dial-conversation-panel 1.3.0-dev.326 → 1.3.0-dev.331

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"ConversationList.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationList/ConversationList.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAqC5E,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CA8mBtD,CAAC"}
1
+ {"version":3,"file":"ConversationList.d.ts","sourceRoot":"","sources":["../../../src/components/ConversationList/ConversationList.tsx"],"names":[],"mappings":"AAOA,OAAO,EACL,KAAK,EAAE,EAQR,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAqC5E,wFAAwF;AACxF,eAAO,MAAM,gBAAgB,EAAE,EAAE,CAAC,qBAAqB,CAinBtD,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { RowComponentProps } from 'react-window';
2
2
  import { RowRendererData } from '../../models/virtual-row';
3
3
  /** Renders a single virtual row — a collapsible group header, a conversation item, or a pinned project's row. */
4
- export declare const RowRenderer: ({ index, style, rows, expandedGroups, onToggleGroup, listId, activeConversationId, searchQuery, onSelectConversation, getActions, onActionMenuOpen, actionsLabel, unreadIndicatorLabel, activeProjectId, onSelectProject, onSelectProjectConversation, onSeeAll, getProjectActions, onProjectActionMenuOpen, seeAllLabel, seeAllAriaLabel, styles, rowVariant, draggingId, dragOverId, allowedDropGroups, onDragStart, onDragEnd, onDragOver, onDragLeave, onDrop, }: RowComponentProps<RowRendererData>) => import('react').JSX.Element;
4
+ export declare const RowRenderer: ({ index, style, rows, expandedGroups, onToggleGroup, listId, activeConversationId, searchQuery, onSelectConversation, getActions, onActionMenuOpen, actionsLabel, unreadIndicatorLabel, activeProjectId, onSelectProject, onSelectProjectConversation, onSeeAll, getProjectActions, onProjectActionMenuOpen, seeAllLabel, seeAllAriaLabel, styles, rowVariant, projectConversationVariant, draggingId, dragOverId, allowedDropGroups, onDragStart, onDragEnd, onDragOver, onDragLeave, onDrop, }: RowComponentProps<RowRendererData>) => import('react').JSX.Element;
5
5
  //# sourceMappingURL=RowRenderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAiBhE,iHAAiH;AACjH,eAAO,MAAM,WAAW,GAAI,scAgCzB,iBAAiB,CAAC,eAAe,CAAC,gCAkHpC,CAAC"}
1
+ {"version":3,"file":"RowRenderer.d.ts","sourceRoot":"","sources":["../../../src/components/RowRenderer/RowRenderer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAiBhE,iHAAiH;AACjH,eAAO,MAAM,WAAW,GAAI,keAiCzB,iBAAiB,CAAC,eAAe,CAAC,gCAmHpC,CAAC"}
package/index.js CHANGED
@@ -726,7 +726,7 @@ function Xe({ callback: e, element: t, enabled: n = !0 }) {
726
726
  r
727
727
  ]);
728
728
  }
729
- function Y({ elements: e, isFlowLayout: t, rowCount: n, startIndex: r, stopIndex: i }) {
729
+ function Ze({ elements: e, isFlowLayout: t, rowCount: n, startIndex: r, stopIndex: i }) {
730
730
  if (r < 0 || i < r) return [];
731
731
  let a = [], o = /* @__PURE__ */ new Set(), s = !0;
732
732
  for (let t of e) {
@@ -749,12 +749,12 @@ function Y({ elements: e, isFlowLayout: t, rowCount: n, startIndex: r, stopIndex
749
749
  index: r + t
750
750
  }));
751
751
  }
752
- function Ze(e) {
752
+ function Y(e) {
753
753
  return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
754
754
  }
755
755
  var Qe = "data-react-window-sizer";
756
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 = Ze(u), S = B(() => x ? (e) => u.getRowHeight(e) ?? u.getAverageRowHeight() : u, [x, u]), C = ge(), [w, T] = H(() => C && x), E = V(u);
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);
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 = Y({
796
+ let e = Array.from(y.children).filter((e) => !e.hasAttribute(Qe)), t = Ze({
797
797
  elements: e,
798
798
  isFlowLayout: U,
799
799
  rowCount: l,
@@ -932,7 +932,7 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
932
932
  className: a("ps-7", at.guideLine, e.isFirstNested && at.guideLineFirst, e.isLastNested && at.guideLineLast)
933
933
  }), lt = (e, t) => {
934
934
  let n = t.rows[e];
935
- return 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;
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
936
  }, ut = 5, dt = (e) => Math.max(ut, Math.ceil(Math.ceil(e / 36) / 2)), ft = (e, { startIndex: t, stopIndex: n }) => {
937
937
  let r = /* @__PURE__ */ new Set();
938
938
  for (let i = Math.max(0, t); i <= Math.min(n, e.length - 1); i++) {
@@ -1229,36 +1229,36 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1229
1229
  className: a("h-8 w-full justify-start py-2 ps-2 pe-2 after:pointer-events-none", $.item, $.itemIndicator)
1230
1230
  })
1231
1231
  });
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, draggingId: w, dragOverId: T, allowedDropGroups: E, onDragStart: D, onDragEnd: O, onDragOver: k, onDragLeave: A, onDrop: j }) => {
1233
- let M = r[e], N = C === Z.Indicator;
1234
- if (M.kind === Q.Header) {
1235
- let r = M.groupKey === n.Pinned;
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;
1236
1236
  return /* @__PURE__ */ W("div", {
1237
1237
  role: "listitem",
1238
1238
  style: t,
1239
- className: Dt(e, N),
1239
+ className: Dt(e, P),
1240
1240
  children: /* @__PURE__ */ W(yt, {
1241
1241
  variant: C,
1242
- label: M.label,
1243
- isExpanded: i.has(M.groupKey),
1244
- onToggle: () => a(M.groupKey),
1242
+ label: N.label,
1243
+ isExpanded: i.has(N.groupKey),
1244
+ onToggle: () => a(N.groupKey),
1245
1245
  listId: o,
1246
1246
  className: S?.groupHeaderClassName,
1247
1247
  dropZoneGroupKey: r ? n.Pinned : void 0,
1248
- isDragOver: r && T === n.Pinned,
1249
- onDragOver: r ? k : void 0,
1250
- onDragLeave: r ? A : void 0,
1251
- onDrop: r ? j : 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
1252
1252
  })
1253
1253
  });
1254
1254
  }
1255
- return M.kind === Q.Project ? /* @__PURE__ */ W("div", {
1255
+ return N.kind === Q.Project ? /* @__PURE__ */ W("div", {
1256
1256
  role: "presentation",
1257
1257
  style: t,
1258
1258
  className: "pt-0.5",
1259
1259
  children: /* @__PURE__ */ W(wt, {
1260
- project: M.project,
1261
- isActive: M.project.id === m,
1260
+ project: N.project,
1261
+ isActive: N.project.id === m,
1262
1262
  onSelectProject: h,
1263
1263
  searchQuery: c,
1264
1264
  getActions: v,
@@ -1266,41 +1266,42 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1266
1266
  actionsLabel: f,
1267
1267
  titleClassName: S?.itemTitleClassName
1268
1268
  })
1269
- }) : M.kind === Q.ProjectSeeAll ? /* @__PURE__ */ W("div", {
1269
+ }) : N.kind === Q.ProjectSeeAll ? /* @__PURE__ */ W("div", {
1270
1270
  role: "presentation",
1271
1271
  style: t,
1272
1272
  className: "pt-0.5",
1273
1273
  children: /* @__PURE__ */ W(Et, {
1274
- project: M.project,
1275
- position: M,
1274
+ project: N.project,
1275
+ position: N,
1276
1276
  onSeeAll: _,
1277
1277
  label: b,
1278
1278
  ariaLabel: x,
1279
1279
  titleClassName: S?.itemTitleClassName
1280
1280
  })
1281
- }) : M.kind === Q.ProjectConversation ? /* @__PURE__ */ W("div", {
1281
+ }) : N.kind === Q.ProjectConversation ? /* @__PURE__ */ W("div", {
1282
1282
  role: "presentation",
1283
1283
  style: t,
1284
1284
  className: "pt-0.5",
1285
1285
  children: /* @__PURE__ */ W(Ct, {
1286
- variant: Z.Indicator,
1287
- nesting: M,
1288
- item: M.item,
1289
- isActive: M.item.id === s,
1286
+ variant: w,
1287
+ nesting: N,
1288
+ item: N.item,
1289
+ isActive: N.item.id === s,
1290
1290
  searchQuery: c,
1291
1291
  onSelectConversation: g,
1292
1292
  unreadIndicatorLabel: p,
1293
1293
  itemTitleClassName: S?.itemTitleClassName,
1294
- unreadItemTitleClassName: S?.unreadItemTitleClassName
1294
+ unreadItemTitleClassName: S?.unreadItemTitleClassName,
1295
+ itemIconBadgeClassName: S?.itemIconBadgeClassName
1295
1296
  })
1296
1297
  }) : /* @__PURE__ */ W("div", {
1297
1298
  role: "presentation",
1298
1299
  style: t,
1299
- className: N ? "pt-0.5" : "pt-1",
1300
+ className: P ? "pt-0.5" : "pt-1",
1300
1301
  children: /* @__PURE__ */ W(Ct, {
1301
1302
  variant: C,
1302
- item: M.item,
1303
- isActive: M.item.id === s,
1303
+ item: N.item,
1304
+ isActive: N.item.id === s,
1304
1305
  searchQuery: c,
1305
1306
  onSelectConversation: l,
1306
1307
  getActions: u,
@@ -1310,16 +1311,16 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1310
1311
  itemTitleClassName: S?.itemTitleClassName,
1311
1312
  unreadItemTitleClassName: S?.unreadItemTitleClassName,
1312
1313
  itemIconBadgeClassName: S?.itemIconBadgeClassName,
1313
- rowGroupKey: M.groupKey,
1314
+ rowGroupKey: N.groupKey,
1314
1315
  rows: r,
1315
- draggingId: w,
1316
- dragOverId: T,
1317
- allowedDropGroups: E,
1318
- onDragStart: D,
1319
- onDragEnd: O,
1320
- onDragOver: k,
1321
- onDragLeave: A,
1322
- onDrop: j
1316
+ draggingId: T,
1317
+ dragOverId: E,
1318
+ allowedDropGroups: D,
1319
+ onDragStart: O,
1320
+ onDragEnd: k,
1321
+ onDragOver: A,
1322
+ onDragLeave: j,
1323
+ onDrop: M
1323
1324
  })
1324
1325
  });
1325
1326
  }, kt = /* @__PURE__ */ new Set([
@@ -1328,32 +1329,32 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1328
1329
  n.Shared,
1329
1330
  n.Organization
1330
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 }) => {
1331
- 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 } = x ?? {}, fe = B(() => h?.length ? e.filter((e) => e.source == null || !h.includes(e.source)) : e, [e, h]), [q, me] = H(() => kt), [he, ge] = H(5), J = ee(), _e = V(null), ve = V(null), [ye, be] = H(null), [xe, Se] = H(null), [Ce, we] = H(null), Te = V(null), Ee = V(null), De = L(({ height: e }) => {
1332
- ge(dt(e));
1333
- }, []), Oe = L((e) => {
1334
- me((t) => {
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) => {
1335
1336
  let n = new Set(t);
1336
1337
  return n.has(e) ? n.delete(e) : n.add(e), n;
1337
1338
  });
1338
- }, []), ke = L(() => {
1339
- Te.current = null, Ee.current = null, be(null), Se(null), we(null);
1340
- }, []), Ae = L((e, t) => {
1341
- let n = _t(e, gt(t, e), fe);
1342
- Te.current = e, Ee.current = n, be(e), we(n);
1343
- }, [fe]), je = L(() => {
1344
- ke();
1345
- }, [ke]), Me = L((e) => {
1346
- Se(e);
1347
- }, []), Ne = L(() => {
1348
- Se(null);
1349
- }, []), Pe = L((e, t, n) => {
1350
- let r = Te.current, i = Ee.current;
1351
- ke(), r != null && r !== e && i?.has(t) && y?.({
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?.({
1352
1353
  draggedId: r,
1353
1354
  targetGroupKey: t,
1354
1355
  afterId: n
1355
1356
  });
1356
- }, [ke, y]), Fe = r({
1357
+ }, [Ae, y]), Ie = r({
1357
1358
  "--cp-item-hover": D?.itemHover,
1358
1359
  "--cp-item-active": D?.itemActive,
1359
1360
  "--cp-text": D?.text,
@@ -1367,14 +1368,14 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1367
1368
  "--cp-indicator-dot": D?.indicatorDot,
1368
1369
  "--cp-project-guide-line": D?.projectGuideLine,
1369
1370
  "--cp-list-font-family": O?.fontFamily
1370
- }), [Ie, Le] = H(null);
1371
+ }), [Le, Re] = H(null);
1371
1372
  R(() => {
1372
1373
  if (!o || !f || !u) {
1373
- Le(null);
1374
+ Re(null);
1374
1375
  return;
1375
1376
  }
1376
- let e = fe.find((e) => e.id === u);
1377
- Le((t) => e && rt(e, f) ? t?.id === e.id && t.query === f ? t : {
1377
+ let e = q.find((e) => e.id === u);
1378
+ Re((t) => e && rt(e, f) ? t?.id === e.id && t.query === f ? t : {
1378
1379
  id: e.id,
1379
1380
  query: f
1380
1381
  } : t?.id === u && t.query === f ? t : null);
@@ -1382,10 +1383,10 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1382
1383
  o,
1383
1384
  f,
1384
1385
  u,
1385
- fe
1386
+ q
1386
1387
  ]);
1387
- let Re = L((e) => {
1388
- o && f && Le({
1388
+ let ze = L((e) => {
1389
+ o && f && Re({
1389
1390
  id: e,
1390
1391
  query: f
1391
1392
  }), s(e);
@@ -1393,13 +1394,13 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1393
1394
  o,
1394
1395
  f,
1395
1396
  s
1396
- ]), ze = o && f !== "" && Ie?.query === f && Ie.id === u ? Ie.id : void 0, Be = B(() => fe.filter((e) => tt(e, p) && nt(e, m) && (rt(e, f) || e.id === ze)), [
1397
- fe,
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,
1398
1399
  p,
1399
1400
  m,
1400
1401
  f,
1401
- ze
1402
- ]), Ve = B(() => ae ? it(ae, {
1402
+ Be
1403
+ ]), He = B(() => ae ? it(ae, {
1403
1404
  searchQuery: f,
1404
1405
  activeFilter: p,
1405
1406
  activeTypeFilter: m,
@@ -1410,49 +1411,49 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1410
1411
  p,
1411
1412
  m,
1412
1413
  h
1413
- ]), He = B(() => {
1414
+ ]), Ue = B(() => {
1414
1415
  let e = /* @__PURE__ */ new Map();
1415
- for (let t of Ve) for (let n of t.conversations) e.set(n.id, t.id);
1416
+ for (let t of He) for (let n of t.conversations) e.set(n.id, t.id);
1416
1417
  return e;
1417
- }, [Ve]), Ue = L((e) => oe?.(e), [oe]), We = L((e) => {
1418
- let t = He.get(e);
1418
+ }, [He]), We = L((e) => oe?.(e), [oe]), Ge = L((e) => {
1419
+ let t = Ue.get(e);
1419
1420
  t != null && se?.(e, t);
1420
- }, [He, se]), Ge = L((e) => ce?.(e), [ce]), Ke = B(() => Be.filter((e) => e.isPinned), [Be]), qe = B(() => Be.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Be]), Je = B(() => Be.filter((e) => !e.isPinned && e.source === n.Shared), [Be]), Ye = B(() => Be.filter((e) => !e.isPinned && e.source === n.Organization), [Be]), Xe = B(() => [
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(() => [
1421
1422
  {
1422
1423
  key: n.Pinned,
1423
1424
  label: U?.pinned ?? "Pinned",
1424
- items: Ke
1425
+ items: qe
1425
1426
  },
1426
1427
  {
1427
1428
  key: n.MyChats,
1428
1429
  label: U?.myChats ?? "My chats",
1429
- items: qe
1430
+ items: Je
1430
1431
  },
1431
1432
  {
1432
1433
  key: n.Shared,
1433
1434
  label: U?.shared ?? "Shared",
1434
- items: Je
1435
+ items: Ye
1435
1436
  },
1436
1437
  {
1437
1438
  key: n.Organization,
1438
1439
  label: U?.organization ?? "Organization",
1439
- items: Ye
1440
+ items: Xe
1440
1441
  }
1441
1442
  ], [
1442
1443
  U,
1443
- Ke,
1444
1444
  qe,
1445
1445
  Je,
1446
- Ye
1446
+ Ye,
1447
+ Xe
1447
1448
  ]), Y = B(() => {
1448
1449
  let e = [];
1449
- for (let t of Xe) {
1450
- let r = t.key === n.Pinned ? Ve : At;
1450
+ for (let t of Ze) {
1451
+ let r = t.key === n.Pinned ? He : At;
1451
1452
  if ((t.items.length !== 0 || r.length !== 0) && (e.push({
1452
1453
  kind: Q.Header,
1453
1454
  groupKey: t.key,
1454
1455
  label: t.label
1455
- }), q.has(t.key))) {
1456
+ }), me.has(t.key))) {
1456
1457
  for (let t of r) e.push(...mt(t));
1457
1458
  for (let n of t.items) e.push({
1458
1459
  kind: Q.Item,
@@ -1463,119 +1464,121 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1463
1464
  }
1464
1465
  return e;
1465
1466
  }, [
1466
- Xe,
1467
- Ve,
1468
- q
1467
+ Ze,
1468
+ He,
1469
+ me
1469
1470
  ]);
1470
1471
  R(() => {
1471
- if (!u || ve.current === u) return;
1472
+ if (!u || ye.current === u) return;
1472
1473
  let e = Y.findIndex((e) => (e.kind === Q.Item || e.kind === Q.ProjectConversation) && e.item.id === u);
1473
- e >= 0 && (_e.current?.scrollToRow({
1474
+ e >= 0 && (ve.current?.scrollToRow({
1474
1475
  index: e,
1475
1476
  align: "smart",
1476
1477
  behavior: "smooth"
1477
- }), ve.current = u);
1478
+ }), ye.current = u);
1478
1479
  }, [
1479
1480
  u,
1480
- Xe,
1481
- q,
1481
+ Ze,
1482
+ me,
1482
1483
  Y
1483
1484
  ]);
1484
- let Ze = V(Y);
1485
+ let Qe = V(Y);
1485
1486
  R(() => {
1486
- Ze.current = Y;
1487
+ Qe.current = Y;
1487
1488
  }, [Y]);
1488
- let Qe = L((e) => Ae(e, Ze.current), [Ae]), $e = B(() => ({
1489
+ let $e = L((e) => je(e, Qe.current), [je]), at = B(() => ({
1489
1490
  rows: Y,
1490
- expandedGroups: q,
1491
- onToggleGroup: Oe,
1492
- listId: J,
1491
+ expandedGroups: me,
1492
+ onToggleGroup: ke,
1493
+ listId: _e,
1493
1494
  activeConversationId: u,
1494
1495
  searchQuery: f,
1495
- onSelectConversation: Re,
1496
+ onSelectConversation: ze,
1496
1497
  getActions: _,
1497
1498
  onActionMenuOpen: v,
1498
1499
  actionsLabel: ne,
1499
1500
  unreadIndicatorLabel: re,
1500
1501
  activeProjectId: de,
1501
- onSelectProject: Ue,
1502
- onSelectProjectConversation: We,
1503
- onSeeAll: Ge,
1502
+ onSelectProject: We,
1503
+ onSelectProjectConversation: Ge,
1504
+ onSeeAll: Ke,
1504
1505
  getProjectActions: le,
1505
1506
  onProjectActionMenuOpen: ue,
1506
1507
  seeAllLabel: K,
1507
1508
  seeAllAriaLabel: ie,
1508
1509
  rowVariant: g,
1510
+ projectConversationVariant: fe,
1509
1511
  styles: {
1510
1512
  groupHeaderClassName: O?.groupHeaderClassName,
1511
1513
  itemTitleClassName: O?.itemTitleClassName,
1512
1514
  unreadItemTitleClassName: O?.unreadItemTitleClassName,
1513
1515
  itemIconBadgeClassName: k
1514
1516
  },
1515
- draggingId: ye,
1516
- dragOverId: xe,
1517
- allowedDropGroups: Ce,
1518
- onDragStart: Qe,
1519
- onDragEnd: je,
1520
- onDragOver: Me,
1521
- onDragLeave: Ne,
1522
- onDrop: Pe
1517
+ draggingId: be,
1518
+ dragOverId: Se,
1519
+ allowedDropGroups: we,
1520
+ onDragStart: $e,
1521
+ onDragEnd: Me,
1522
+ onDragOver: Ne,
1523
+ onDragLeave: Pe,
1524
+ onDrop: Fe
1523
1525
  }), [
1524
1526
  Y,
1525
- q,
1526
- Oe,
1527
- J,
1527
+ me,
1528
+ ke,
1529
+ _e,
1528
1530
  u,
1529
1531
  f,
1530
- Re,
1532
+ ze,
1531
1533
  _,
1532
1534
  v,
1533
1535
  ne,
1534
1536
  re,
1535
1537
  de,
1536
- Ue,
1537
1538
  We,
1538
1539
  Ge,
1540
+ Ke,
1539
1541
  le,
1540
1542
  ue,
1541
1543
  K,
1542
1544
  ie,
1543
1545
  g,
1546
+ fe,
1544
1547
  O?.groupHeaderClassName,
1545
1548
  O?.itemTitleClassName,
1546
1549
  O?.unreadItemTitleClassName,
1547
1550
  k,
1548
- ye,
1549
- xe,
1550
- Ce,
1551
- Qe,
1552
- je,
1551
+ be,
1552
+ Se,
1553
+ we,
1554
+ $e,
1553
1555
  Me,
1554
1556
  Ne,
1555
- Pe
1556
- ]), at = f !== "" || p !== n.All || m !== X.All, st = Be.length === 0 && Ve.length === 0, ct = st && at, ut = st && !at, ht = ct && f === "" && m === X.All ? I?.[p] : void 0, vt = ht?.label ?? N, yt = p === n.Shared && f === "" ? F : P, bt = ht?.description ?? yt, xt = !t && !st, St = V(null), Ct = V(null), wt = V(b);
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);
1557
1560
  R(() => {
1558
- wt.current = b;
1561
+ Tt.current = b;
1559
1562
  }, [b]);
1560
- let Tt = L((e) => {
1561
- Ct.current && pt(Ct.current, e) || (Ct.current = e, wt.current?.(e));
1562
- }, []), Et = L((e) => {
1563
- St.current = e, Tt(ft(Y, e));
1564
- }, [Y, Tt]);
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]);
1565
1568
  return R(() => {
1566
- xt ? St.current && Tt(ft(Y, St.current)) : (St.current = null, Tt([]));
1569
+ St ? Ct.current && Et(ft(Y, Ct.current)) : (Ct.current = null, Et([]));
1567
1570
  }, [
1568
- xt,
1571
+ St,
1569
1572
  Y,
1570
- Tt
1573
+ Et
1571
1574
  ]), /* @__PURE__ */ G("div", {
1572
1575
  id: T,
1573
- style: Fe,
1576
+ style: Ie,
1574
1577
  className: a("flex-1 overflow-hidden px-3", $.list, O?.fontClassName, g !== Z.Indicator && "py-1", E, pe.list),
1575
1578
  children: [/* @__PURE__ */ W(C, {
1576
1579
  visuallyHidden: !0,
1577
1580
  as: w.Span,
1578
- children: t ? te : i ? z : ut ? j : ct ? vt : ""
1581
+ children: t ? te : i ? z : ht ? j : ut ? yt : ""
1579
1582
  }), t ? /* @__PURE__ */ W("div", {
1580
1583
  className: "flex flex-col gap-3 px-2 py-3",
1581
1584
  children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ W(A, {
@@ -1585,24 +1588,24 @@ var et = /* @__PURE__ */ Object.assign($e, { displayName: "List" }), X = /* @__P
1585
1588
  active: !0,
1586
1589
  color: $.skeletonColor
1587
1590
  }, t))
1588
- }) : ut ? /* @__PURE__ */ W(c, {
1591
+ }) : ht ? /* @__PURE__ */ W(c, {
1589
1592
  label: j,
1590
1593
  description: M
1591
- }) : ct && f !== "" && i ? /* @__PURE__ */ W(c, { label: z }) : ct ? /* @__PURE__ */ W(l, {
1592
- label: vt,
1593
- description: bt
1594
+ }) : ut && f !== "" && i ? /* @__PURE__ */ W(c, { label: z }) : ut ? /* @__PURE__ */ W(l, {
1595
+ label: yt,
1596
+ description: xt
1594
1597
  }) : /* @__PURE__ */ W(et, {
1595
- listRef: _e,
1596
- id: J,
1598
+ listRef: ve,
1599
+ id: _e,
1597
1600
  role: "list",
1598
1601
  style: { height: "100%" },
1599
1602
  rowComponent: Ot,
1600
1603
  rowCount: Y.length,
1601
1604
  rowHeight: lt,
1602
- overscanCount: he,
1603
- onResize: De,
1604
- onRowsRendered: Et,
1605
- rowProps: $e
1605
+ overscanCount: ge,
1606
+ onResize: Oe,
1607
+ onRowsRendered: Dt,
1608
+ rowProps: at
1606
1609
  })]
1607
1610
  });
1608
1611
  }), Mt = {
@@ -1,5 +1,6 @@
1
1
  import { FilterTab } from '@epam/ai-dial-chat-shared';
2
2
  import { DropdownItem } from '@epam/ai-dial-ui-kit';
3
+ import { ConversationRowVariant } from '../types/conversation-row-variant';
3
4
  import { ConversationItem } from './panel-props';
4
5
  /** A pinned project and the chats the host chose to list under it. */
5
6
  export interface PinnedProjectGroup {
@@ -32,6 +33,8 @@ export interface PinnedProjects {
32
33
  onActionMenuOpen?: (project: PinnedProjectGroup, trigger: HTMLButtonElement) => void;
33
34
  /** Id of the project the host currently shows; its row gets `aria-current="page"`. */
34
35
  activeProjectId?: string;
36
+ /** Presentation of the chats nested under a project: `Avatar` gives them the deployment avatar (or `leadingIcon`) and a trailing unread dot like the panel's own rows. Defaults to `ConversationRowVariant.Indicator`. */
37
+ conversationRowVariant?: ConversationRowVariant;
35
38
  }
36
39
  /** Position of a row nested under a project row, for its ARIA attributes and guide-line segment. */
37
40
  export interface NestedRowPosition {
@@ -1 +1 @@
1
- {"version":3,"file":"pinned-projects.d.ts","sourceRoot":"","sources":["../../src/models/pinned-projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iGAAiG;IACjG,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,4DAA4D;IAC5D,aAAa,EAAE,gBAAgB,EAAE,CAAC;IAClC,mDAAmD;IACnD,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,mEAAmE;AACnE,MAAM,WAAW,cAAc;IAC7B,2EAA2E;IAC3E,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,8CAA8C;IAC9C,eAAe,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,kDAAkD;IAClD,oBAAoB,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,8CAA8C;IAC9C,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,sFAAsF;IACtF,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,kBAAkB,KAAK,YAAY,EAAE,CAAC;IAC7D,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,CACjB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,iBAAiB,KACvB,IAAI,CAAC;IACV,sFAAsF;IACtF,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,oGAAoG;AACpG,MAAM,WAAW,iBAAiB;IAChC,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,aAAa,EAAE,OAAO,CAAC;IACvB,qDAAqD;IACrD,YAAY,EAAE,OAAO,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,cAAc;IAC7B,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,eAAe,EAAE,MAAM,CAAC;IACxB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,6CAA6C;IAC7C,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"pinned-projects.d.ts","sourceRoot":"","sources":["../../src/models/pinned-projects.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,sEAAsE;AACtE,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iGAAi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AS,EAAE,MAAM,CAAC;CACnB"}
@@ -104,6 +104,8 @@ export interface RowRendererData {
104
104
  styles?: RowStyles;
105
105
  /** Presentation of conversation rows and group headers. Defaults to `ConversationRowVariant.Avatar`. */
106
106
  rowVariant?: ConversationRowVariant;
107
+ /** Presentation of the chats nested under a pinned project. Defaults to `ConversationRowVariant.Indicator`. */
108
+ projectConversationVariant?: ConversationRowVariant;
107
109
  /** Id of the conversation currently being dragged. `null` when no drag is in progress. */
108
110
  draggingId: string | null;
109
111
  /** Id of the row (item or group header sentinel) currently under the drag cursor. */
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-row.d.ts","sourceRoot":"","sources":["../../src/models/virtual-row.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE/E,0DAA0D;AAC1D,UAAU,cAAc;IACtB,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC;IAC5B,qDAAqD;IACrD,QAAQ,EAAE,SAAS,CAAC;IACpB,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,0DAA0D;AAC1D,UAAU,mBAAmB;IAC3B,wBAAwB;IACxB,IAAI,EAAE,cAAc,CAAC,IAAI,CAAC;IAC1B,kCAAkC;IAClC,IAAI,EAAE,gBAAgB,CAAC;IACvB,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,6DAA6D;AAC7D,UAAU,UAAU;IAClB,wBAAwB;IACxB,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AC/G,0BAA0B,CAAC,EAAE,sBAAsB,CAAC;IACpD,0FAA0F;IAC1F,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qFAAqF;IACrF,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,mGAAmG;IACnG,iBAAiB,EAAE,GAAG,CAAC,SAAS,CAAC,GAAG,IAAI,CAAC;IACzC,+DAA+D;IAC/D,WAAW,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,kDAAkD;IAClD,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,gDAAgD;IAChD,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,gDAAgD;IAChD,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,4EAA4E;IAC5E,MAAM,EAAE,CACN,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,SAAS,EACzB,OAAO,EAAE,MAAM,GAAG,IAAI,KACnB,IAAI,CAAC;CACX"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@epam/ai-dial-conversation-panel",
3
3
  "description": "Virtualized sidebar panel for browsing conversation history with grouping, tabs, and search",
4
- "version": "1.3.0-dev.326",
4
+ "version": "1.3.0-dev.331",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "main": "./index.js",
@@ -19,11 +19,11 @@
19
19
  "dependencies": {
20
20
  "react-window": "^2.5.3",
21
21
  "@tabler/icons-react": "^3.50.0",
22
- "@epam/ai-dial-sidebar": "1.3.0-dev.326"
22
+ "@epam/ai-dial-sidebar": "1.3.0-dev.331"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": "^19.2.8",
26
- "@epam/ai-dial-chat-shared": "1.3.0-dev.326",
26
+ "@epam/ai-dial-chat-shared": "1.3.0-dev.331",
27
27
  "@epam/ai-dial-ui-kit": "^0.16.0-dev.72"
28
28
  },
29
29
  "repository": {
@@ -16,7 +16,7 @@ export declare const getSkeletonWidth: (i: number) => string;
16
16
  export declare const getButtonPaddingEnd: (hasActions: boolean, isMenuOpen: boolean, variant?: ConversationRowVariant) => string;
17
17
  /** Returns the level-2 ARIA position and the indent and guide-line classes of a row nested under a project row. */
18
18
  export declare const getNestedRowProps: (position: NestedRowPosition) => NestedRowProps;
19
- /** Returns the pixel height for a virtual list row (item, first group header, or subsequent group header) in the active row variant; pinned project rows always take the `Indicator` item height. */
19
+ /** Returns the pixel height for a virtual list row (item, first group header, or subsequent group header) in the active row variant; pinned project rows take the `Indicator` item height, except chats nested under a project in the `Avatar` variant. */
20
20
  export declare const getRowHeight: (index: number, rowProps: RowRendererData) => number;
21
21
  /** Returns how many rows to render beyond each edge of a viewport `height` pixels tall: half a viewport, at least 5. */
22
22
  export declare const getOverscanCount: (height: number) => number;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-row.d.ts","sourceRoot":"","sources":["../../src/utils/conversation-row.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EACnB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAG3E,iFAAiF;AACjF,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,4FAA4F;AAC5F,eAAO,MAAM,gBAAgB,GAAI,GAAG,MAAM,WAA+B,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAC9B,YAAY,OAAO,EACnB,YAAY,OAAO,EACnB,UAAS,sBAAsD,KAC9D,MAMF,CAAC;AAEF,mHAAmH;AACnH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,iBAAiB,KAC1B,cAUD,CAAC;AAEH,qMAAqM;AACrM,eAAO,MAAM,YAAY,GACvB,OAAO,MAAM,EACb,UAAU,eAAe,KACxB,MAiBF,CAAC;AAK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