@epam/ai-dial-conversation-panel 1.2.0-dev.50 → 1.2.0-dev.58

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
@@ -1,15 +1,15 @@
1
1
  import { ConversationTransferJobStatus as e, DeploymentIcon as t, FilterTab as n, buildCssVars as r, getUtf8ByteLength as i, mergeClasses as a, sanitizeConversationName as o, stripTrailingDots as s } from "@epam/ai-dial-chat-shared";
2
2
  import { PanelEmpty as c, PanelNoResults as l, SidebarOrientation as u, SidebarPanel as d } from "@epam/ai-dial-sidebar";
3
- import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPopupVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, Dropdown as v, ElementSize as y, EllipsisTooltip as b, GhostIconButton as x, Highlight as S, Input as C, Popup as w, PopupSize as T, ProgressBar as E, Search as D, Skeleton as O, SkeletonVariant as k, Spinner as A, Tag as j, TagAppearance as M, Tooltip as ee, mergeClasses as N } from "@epam/ai-dial-ui-kit";
4
- import { createElement as te, memo as P, useCallback as F, useEffect as I, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as L, useRef as R, useState as z } from "react";
5
- import { Fragment as ae, jsx as B, jsxs as V } from "react/jsx-runtime";
6
- import { IconAlertCircleFilled as H, IconAlertTriangleFilled as oe, IconCaretDownFilled as se, IconCaretRightFilled as ce, IconCheck as U, IconChevronDown as le, IconChevronUp as ue, IconClock as de, IconDotsVertical as W, IconFile as fe, IconFileZip as pe, IconJson as me, IconPlus as he, IconSparkles as ge, IconX as _e } from "@tabler/icons-react";
3
+ import { Button as f, ButtonVariant as p, ConfirmationPopup as m, ConfirmationPopupVariant as h, DIAL_ICON_SIZE as g, DIAL_KIT_ICON_STROKE as _, Dropdown as v, ElementSize as y, EllipsisTooltip as b, FilterChips as x, GhostIconButton as S, Highlight as C, Input as w, Popup as T, PopupSize as E, ProgressBar as D, Search as O, Skeleton as ee, SkeletonVariant as k, Spinner as A, Tooltip as j, mergeClasses as te } from "@epam/ai-dial-ui-kit";
4
+ import { createElement as M, memo as N, useCallback as P, useEffect as F, useId as ne, useImperativeHandle as re, useLayoutEffect as ie, useMemo as I, useRef as L, useState as R } from "react";
5
+ import { Fragment as ae, jsx as z, jsxs as B } from "react/jsx-runtime";
6
+ import { IconAlertCircleFilled as oe, IconAlertTriangleFilled as V, IconCaretDownFilled as se, IconCaretRightFilled as ce, IconCheck as le, IconChevronDown as H, IconChevronUp as ue, IconClock as de, IconDotsVertical as fe, IconFile as U, IconFileZip as W, IconJson as pe, IconPlus as me, IconSparkles as he, IconX as ge } from "@tabler/icons-react";
7
7
  //#region src/constants/public-class-names.ts
8
- var ve = {
8
+ var _e = {
9
9
  newChatButton: "dial-cp-new-chat-button",
10
10
  search: "dial-cp-search"
11
- }, G = typeof window < "u" ? ie : I;
12
- function ye(e) {
11
+ }, G = typeof window < "u" ? ie : F;
12
+ function ve(e) {
13
13
  if (e !== void 0) switch (typeof e) {
14
14
  case "number": return e;
15
15
  case "string":
@@ -17,11 +17,11 @@ function ye(e) {
17
17
  break;
18
18
  }
19
19
  }
20
- function be({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i, mode: a, style: o }) {
21
- let { styleHeight: s, styleWidth: c } = L(() => ({
22
- styleHeight: ye(o?.height),
23
- styleWidth: ye(o?.width)
24
- }), [o?.height, o?.width]), [l, u] = z({
20
+ function ye({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i, mode: a, style: o }) {
21
+ let { styleHeight: s, styleWidth: c } = I(() => ({
22
+ styleHeight: ve(o?.height),
23
+ styleWidth: ve(o?.width)
24
+ }), [o?.height, o?.width]), [l, u] = R({
25
25
  height: t,
26
26
  width: n
27
27
  }), d = r || a === "only-height" && s !== void 0 || a === "only-width" && c !== void 0 || s !== void 0 && c !== void 0;
@@ -45,7 +45,7 @@ function be({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i
45
45
  i,
46
46
  s,
47
47
  c
48
- ]), L(() => ({
48
+ ]), I(() => ({
49
49
  height: s ?? l.height,
50
50
  width: c ?? l.width
51
51
  }), [
@@ -54,16 +54,16 @@ function be({ box: e, defaultHeight: t, defaultWidth: n, disabled: r, element: i
54
54
  c
55
55
  ]);
56
56
  }
57
- function xe(e) {
58
- let t = R(() => {
57
+ function be(e) {
58
+ let t = L(() => {
59
59
  throw Error("Cannot call during render.");
60
60
  });
61
61
  return G(() => {
62
62
  t.current = e;
63
- }, [e]), F((e) => t.current?.(e), [t]);
63
+ }, [e]), P((e) => t.current?.(e), [t]);
64
64
  }
65
65
  var K = null;
66
- function Se(e = !1) {
66
+ function xe(e = !1) {
67
67
  if (K === null || e) {
68
68
  let e = document.createElement("div"), t = e.style;
69
69
  t.width = "50px", t.height = "50px", t.overflow = "scroll", t.direction = "rtl";
@@ -72,8 +72,8 @@ function Se(e = !1) {
72
72
  }
73
73
  return K;
74
74
  }
75
- function Ce({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
76
- if (t === "horizontal" && n) switch (Se()) {
75
+ function Se({ containerElement: e, direction: t, isRtl: n, scrollOffset: r }) {
76
+ if (t === "horizontal" && n) switch (xe()) {
77
77
  case "negative": return -r;
78
78
  case "positive-descending":
79
79
  if (e) {
@@ -93,7 +93,7 @@ function J(e, t) {
93
93
  for (let n in e) if (!Object.is(t[n], e[n])) return !1;
94
94
  return !0;
95
95
  }
96
- function we({ cachedBounds: e, itemCount: t, itemSize: n }) {
96
+ function Ce({ cachedBounds: e, itemCount: t, itemSize: n }) {
97
97
  if (t === 0) return 0;
98
98
  if (typeof n == "number") return t * n;
99
99
  {
@@ -101,9 +101,9 @@ function we({ cachedBounds: e, itemCount: t, itemSize: n }) {
101
101
  return q(n !== void 0, "Unexpected bounds cache miss"), t * ((n.scrollOffset + n.size) / e.size);
102
102
  }
103
103
  }
104
- function Te({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, containerScrollOffset: a, containerSize: o }) {
104
+ function we({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, containerScrollOffset: a, containerSize: o }) {
105
105
  if (n < 0 || n >= r) throw RangeError(`Invalid index specified: ${n}`, { cause: `Index ${n} is not within the range of 0 - ${r - 1}` });
106
- let s = we({
106
+ let s = Ce({
107
107
  cachedBounds: t,
108
108
  itemCount: r,
109
109
  itemSize: i
@@ -115,7 +115,7 @@ function Te({ align: e, cachedBounds: t, index: n, itemCount: r, itemSize: i, co
115
115
  default: return a >= u && a <= l ? a : a < u ? u : l;
116
116
  }
117
117
  }
118
- function Ee({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCount: r, overscanCount: i }) {
118
+ function Te({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemCount: r, overscanCount: i }) {
119
119
  let a = r - 1, o = 0, s = -1, c = 0, l = -1, u = 0;
120
120
  for (; u < a;) {
121
121
  let n = e.get(u);
@@ -134,7 +134,7 @@ function Ee({ cachedBounds: e, containerScrollOffset: t, containerSize: n, itemC
134
134
  stopIndexOverscan: l
135
135
  };
136
136
  }
137
- function De({ itemCount: e, itemProps: t, itemSize: n }) {
137
+ function Ee({ itemCount: e, itemProps: t, itemSize: n }) {
138
138
  let r = /* @__PURE__ */ new Map();
139
139
  return {
140
140
  get(i) {
@@ -171,8 +171,8 @@ function De({ itemCount: e, itemProps: t, itemSize: n }) {
171
171
  }
172
172
  };
173
173
  }
174
- function Oe({ itemCount: e, itemProps: t, itemSize: n }) {
175
- return L(() => De({
174
+ function De({ itemCount: e, itemProps: t, itemSize: n }) {
175
+ return I(() => Ee({
176
176
  itemCount: e,
177
177
  itemProps: t,
178
178
  itemSize: n
@@ -182,7 +182,7 @@ function Oe({ itemCount: e, itemProps: t, itemSize: n }) {
182
182
  n
183
183
  ]);
184
184
  }
185
- function ke({ containerSize: e, itemSize: t }) {
185
+ function Oe({ containerSize: e, itemSize: t }) {
186
186
  let n;
187
187
  switch (typeof t) {
188
188
  case "string":
@@ -194,17 +194,17 @@ function ke({ containerSize: e, itemSize: t }) {
194
194
  }
195
195
  return n;
196
196
  }
197
- function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0, direction: r, isRtl: i = !1, itemCount: a, itemProps: o, itemSize: s, onResize: c, overscanCount: l }) {
198
- let { height: u = n, width: d = n } = be({
197
+ function ke({ containerElement: e, containerStyle: t, defaultContainerSize: n = 0, direction: r, isRtl: i = !1, itemCount: a, itemProps: o, itemSize: s, onResize: c, overscanCount: l }) {
198
+ let { height: u = n, width: d = n } = ye({
199
199
  defaultHeight: r === "vertical" ? n : void 0,
200
200
  defaultWidth: r === "horizontal" ? n : void 0,
201
201
  element: e,
202
202
  mode: r === "vertical" ? "only-height" : "only-width",
203
203
  style: t
204
- }), f = R({
204
+ }), f = L({
205
205
  height: 0,
206
206
  width: 0
207
- }), p = r === "vertical" ? u : d, m = ke({
207
+ }), p = r === "vertical" ? u : d, m = Oe({
208
208
  containerSize: p,
209
209
  itemSize: s
210
210
  });
@@ -221,11 +221,11 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
221
221
  c,
222
222
  d
223
223
  ]);
224
- let h = Oe({
224
+ let h = De({
225
225
  itemCount: a,
226
226
  itemProps: o,
227
227
  itemSize: m
228
- }), g = F((e) => h.get(e), [h]), [_, v] = z(() => Ee({
228
+ }), g = P((e) => h.get(e), [h]), [_, v] = R(() => Te({
229
229
  cachedBounds: h,
230
230
  containerScrollOffset: 0,
231
231
  containerSize: p,
@@ -236,7 +236,7 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
236
236
  startIndexOverscan: Math.min(a - 1, _.startIndexOverscan),
237
237
  stopIndexVisible: Math.min(a - 1, _.stopIndexVisible),
238
238
  stopIndexOverscan: Math.min(a - 1, _.stopIndexOverscan)
239
- }, C = F(() => we({
239
+ }, C = P(() => Ce({
240
240
  cachedBounds: h,
241
241
  itemCount: a,
242
242
  itemSize: m
@@ -244,9 +244,9 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
244
244
  h,
245
245
  a,
246
246
  m
247
- ]), w = F((t) => Ee({
247
+ ]), w = P((t) => Te({
248
248
  cachedBounds: h,
249
- containerScrollOffset: Ce({
249
+ containerScrollOffset: Se({
250
250
  containerElement: e,
251
251
  direction: r,
252
252
  isRtl: i,
@@ -274,9 +274,9 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
274
274
  if (!e) return;
275
275
  let t = () => {
276
276
  v((t) => {
277
- let { scrollLeft: n, scrollTop: o } = e, s = Ee({
277
+ let { scrollLeft: n, scrollTop: o } = e, s = Te({
278
278
  cachedBounds: h,
279
- containerScrollOffset: Ce({
279
+ containerScrollOffset: Se({
280
280
  containerElement: e,
281
281
  direction: r,
282
282
  isRtl: i,
@@ -302,8 +302,8 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
302
302
  ]), {
303
303
  getCellBounds: g,
304
304
  getEstimatedSize: C,
305
- scrollToIndex: xe(({ align: t = "auto", containerScrollOffset: n, index: o }) => {
306
- let s = Te({
305
+ scrollToIndex: be(({ align: t = "auto", containerScrollOffset: n, index: o }) => {
306
+ let s = we({
307
307
  align: t,
308
308
  cachedBounds: h,
309
309
  containerScrollOffset: n,
@@ -313,7 +313,7 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
313
313
  itemSize: m
314
314
  });
315
315
  if (e) {
316
- if (s = Ce({
316
+ if (s = Se({
317
317
  containerElement: e,
318
318
  direction: r,
319
319
  isRtl: i,
@@ -331,26 +331,26 @@ function Ae({ containerElement: e, containerStyle: t, defaultContainerSize: n =
331
331
  stopIndexVisible: x
332
332
  };
333
333
  }
334
- function je(e) {
335
- return L(() => e, Object.values(e));
334
+ function Ae(e) {
335
+ return I(() => e, Object.values(e));
336
336
  }
337
- function Me(e, t) {
337
+ function je(e, t) {
338
338
  let { ariaAttributes: n, style: r, ...i } = e, { ariaAttributes: a, style: o, ...s } = t;
339
339
  return J(n, a) && J(r, o) && J(i, s);
340
340
  }
341
- function Ne(e) {
341
+ function Me(e) {
342
342
  return typeof e == "object" && !!e && "getAverageRowHeight" in e && typeof e.getAverageRowHeight == "function";
343
343
  }
344
- var Y = "data-react-window-index";
344
+ var Ne = "data-react-window-index";
345
345
  function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onResize: i, onRowsRendered: a, overscanCount: o = 3, rowComponent: s, rowCount: c, rowHeight: l, rowProps: u, tagName: d = "div", style: f, ...p }) {
346
- let m = je(u), h = L(() => P(s, Me), [s]), [g, _] = z(null), v = Ne(l), { getCellBounds: y, getEstimatedSize: b, scrollToIndex: x, startIndexOverscan: S, startIndexVisible: C, stopIndexOverscan: w, stopIndexVisible: T } = Ae({
346
+ let m = Ae(u), h = I(() => N(s, je), [s]), [g, _] = R(null), v = Me(l), { getCellBounds: y, getEstimatedSize: b, scrollToIndex: x, startIndexOverscan: S, startIndexVisible: C, stopIndexOverscan: w, stopIndexVisible: T } = ke({
347
347
  containerElement: g,
348
348
  containerStyle: f,
349
349
  defaultContainerSize: n,
350
350
  direction: "vertical",
351
351
  itemCount: c,
352
352
  itemProps: m,
353
- itemSize: L(() => v ? (e) => l.getRowHeight(e) ?? l.getAverageRowHeight() : l, [v, l]),
353
+ itemSize: I(() => v ? (e) => l.getRowHeight(e) ?? l.getAverageRowHeight() : l, [v, l]),
354
354
  onResize: i,
355
355
  overscanCount: o
356
356
  });
@@ -374,7 +374,7 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
374
374
  let e = Array.from(g.children).filter((e, t) => {
375
375
  if (e.hasAttribute("aria-hidden")) return !1;
376
376
  let n = `${S + t}`;
377
- return e.setAttribute(Y, n), !0;
377
+ return e.setAttribute(Ne, n), !0;
378
378
  });
379
379
  if (v) return l.observeRowElements(e);
380
380
  }, [
@@ -383,7 +383,7 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
383
383
  l,
384
384
  S,
385
385
  w
386
- ]), I(() => {
386
+ ]), F(() => {
387
387
  S >= 0 && w >= 0 && a && a({
388
388
  startIndex: C,
389
389
  stopIndex: T
@@ -398,11 +398,11 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
398
398
  w,
399
399
  T
400
400
  ]);
401
- let E = L(() => {
401
+ let E = I(() => {
402
402
  let e = [];
403
403
  if (c > 0) for (let t = S; t <= w; t++) {
404
404
  let n = y(t);
405
- e.push(/* @__PURE__ */ te(h, {
405
+ e.push(/* @__PURE__ */ M(h, {
406
406
  ...m,
407
407
  ariaAttributes: {
408
408
  "aria-posinset": t + 1,
@@ -429,7 +429,7 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
429
429
  m,
430
430
  S,
431
431
  w
432
- ]), D = /* @__PURE__ */ B("div", {
432
+ ]), D = /* @__PURE__ */ z("div", {
433
433
  "aria-hidden": !0,
434
434
  style: {
435
435
  height: b(),
@@ -437,7 +437,7 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
437
437
  zIndex: -1
438
438
  }
439
439
  });
440
- return te(d, {
440
+ return M(d, {
441
441
  role: "list",
442
442
  ...p,
443
443
  className: t,
@@ -453,37 +453,37 @@ function Pe({ children: e, className: t, defaultHeight: n = 0, listRef: r, onRes
453
453
  }
454
454
  //#endregion
455
455
  //#region src/types/virtual-row.ts
456
- var X = /* @__PURE__ */ function(e) {
456
+ var Y = /* @__PURE__ */ function(e) {
457
457
  return e.Header = "header", e.Item = "item", e;
458
- }({}), Fe = (e) => `${60 + e * 23 % 35}%`, Ie = (e, t) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : "pe-3", Le = (e, t) => t.rows[e].kind === X.Item ? 36 : e === 0 ? 24 : 56, Re = (e) => {
458
+ }({}), Fe = (e) => `${60 + e * 23 % 35}%`, X = (e, t) => e ? t ? "pe-9" : "pe-2 group-focus-within/conversation:pe-9 group-hover/conversation:pe-9" : "pe-3", Ie = (e, t) => t.rows[e].kind === Y.Item ? 36 : e === 0 ? 24 : 56, Le = (e) => {
459
459
  switch (e) {
460
460
  case n.Shared: return n.Shared;
461
461
  case n.Organization: return n.Organization;
462
462
  default: return n.MyChats;
463
463
  }
464
- }, ze = (e, t) => {
464
+ }, Re = (e, t) => {
465
465
  let n = null;
466
- for (let r of e) if (r.kind === X.Header) n = r.groupKey;
466
+ for (let r of e) if (r.kind === Y.Header) n = r.groupKey;
467
467
  else if (r.item.id === t) return n;
468
468
  return null;
469
- }, Be = (e, t, r) => {
469
+ }, ze = (e, t, r) => {
470
470
  let i = /* @__PURE__ */ new Set();
471
471
  if (t != null && i.add(t), t === n.Pinned) {
472
472
  let t = r.find((t) => t.id === e);
473
- t && i.add(Re(t.source));
473
+ t && i.add(Le(t.source));
474
474
  } else i.add(n.Pinned);
475
475
  return i;
476
- }, Ve = (e, t, n, r) => {
476
+ }, Be = (e, t, n, r) => {
477
477
  let i = e.currentTarget.getBoundingClientRect();
478
478
  if (e.clientY >= i.top + i.height / 2) return t;
479
479
  let a = null, o = !1;
480
- for (let e of n) if (e.kind === X.Header) o = e.groupKey === r;
480
+ for (let e of n) if (e.kind === Y.Header) o = e.groupKey === r;
481
481
  else if (o) {
482
482
  if (e.item.id === t) return a;
483
483
  a = e.item.id;
484
484
  }
485
485
  return null;
486
- }, He = [
486
+ }, Ve = [
487
487
  {
488
488
  value: n.All,
489
489
  labelKey: "all"
@@ -500,37 +500,34 @@ var X = /* @__PURE__ */ function(e) {
500
500
  value: n.Organization,
501
501
  labelKey: "organization"
502
502
  }
503
- ], Ue = P(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => {
504
- let a = He.filter(({ value: e }) => !i?.includes(e));
505
- return /* @__PURE__ */ B("div", {
506
- role: "group",
507
- "aria-label": t.groupAriaLabel ?? "Filter chats",
508
- className: "flex flex-nowrap gap-1 px-3 py-2",
509
- children: a.map(({ value: i, labelKey: a }) => /* @__PURE__ */ B(j, {
510
- label: t[a],
511
- appearance: M.Selectable,
512
- selected: e === i,
513
- onClick: () => n(i),
514
- className: N("min-w-max flex-1 justify-center rounded-full !px-2", r)
515
- }, i))
516
- });
517
- }), We = { button: "_button_1vksy_1" }, Ge = P(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ B("div", {
503
+ ], He = N(({ activeTab: e, labels: t, onChange: n, tabClassName: r = "dial-tiny-semi-text", hiddenSources: i }) => /* @__PURE__ */ z(x, {
504
+ items: I(() => Ve.filter(({ value: e }) => !i?.includes(e)).map(({ value: e, labelKey: n }) => ({
505
+ value: e,
506
+ label: t[n]
507
+ })), [t, i]),
508
+ value: e,
509
+ onChange: n,
510
+ stretch: !0,
511
+ "aria-label": t.groupAriaLabel ?? "Filter chats",
512
+ className: "px-3 py-2",
513
+ chipClassName: te("!px-2", r)
514
+ })), Ue = { button: "_button_1vksy_1" }, We = N(({ label: e, onClick: t, labelClassName: n = "dial-small-semi-text", colors: i }) => /* @__PURE__ */ z("div", {
518
515
  className: "px-3 py-2",
519
516
  style: r({
520
517
  "--cp-new-chat-bg": i?.background,
521
518
  "--cp-new-chat-text": i?.text,
522
519
  "--cp-new-chat-focus-outline": i?.focusOutline
523
520
  }),
524
- children: /* @__PURE__ */ V("button", {
521
+ children: /* @__PURE__ */ B("button", {
525
522
  onClick: t,
526
523
  type: "button",
527
- className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", We.button, ve.newChatButton),
528
- children: [/* @__PURE__ */ B(he, {
524
+ className: a("flex h-[36px] w-full cursor-pointer items-center justify-center gap-2 px-3 py-1 shadow-chat-button hover:shadow-xs focus-visible:shadow-xs active:shadow-xs", Ue.button, _e.newChatButton),
525
+ children: [/* @__PURE__ */ z(me, {
529
526
  size: 18,
530
527
  stroke: _,
531
528
  className: "shrink-0",
532
529
  "aria-hidden": !0
533
- }), /* @__PURE__ */ B("span", {
530
+ }), /* @__PURE__ */ z("span", {
534
531
  className: n,
535
532
  children: e
536
533
  })]
@@ -546,9 +543,9 @@ var X = /* @__PURE__ */ function(e) {
546
543
  triggerIcon: "_triggerIcon_i3lsf_38",
547
544
  unreadDot: "_unreadDot_i3lsf_46",
548
545
  search: "_search_i3lsf_54"
549
- }, Q = ({ label: e, isExpanded: t, onToggle: n, listId: r, className: i = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: u }) => {
546
+ }, Ge = ({ label: e, isExpanded: t, onToggle: n, listId: r, className: i = "dial-tiny-lead-text", dropZoneGroupKey: o, isDragOver: s, onDragOver: c, onDragLeave: l, onDrop: u }) => {
550
547
  let d = o != null;
551
- return /* @__PURE__ */ V("button", {
548
+ return /* @__PURE__ */ B("button", {
552
549
  type: "button",
553
550
  "aria-expanded": t,
554
551
  "aria-controls": r,
@@ -563,104 +560,104 @@ var X = /* @__PURE__ */ function(e) {
563
560
  d && (e.preventDefault(), u?.(o, o, null));
564
561
  } : void 0,
565
562
  className: a("group flex h-6 w-full items-center gap-1 rounded py-1 pe-3 text-start", i, Z.groupHeader, s && Z.dropZoneActive),
566
- children: [t ? /* @__PURE__ */ B(se, {
563
+ children: [t ? /* @__PURE__ */ z(se, {
567
564
  size: 12,
568
565
  className: "shrink-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-visible:opacity-100",
569
566
  "aria-hidden": !0
570
- }) : /* @__PURE__ */ B(ce, {
567
+ }) : /* @__PURE__ */ z(ce, {
571
568
  size: 12,
572
569
  className: "shrink-0 opacity-0 transition-opacity duration-150 group-hover:opacity-100 group-focus-visible:opacity-100 rtl:scale-x-[-1]",
573
570
  "aria-hidden": !0
574
- }), /* @__PURE__ */ B(b, { text: e })]
571
+ }), /* @__PURE__ */ z(b, { text: e })]
575
572
  });
576
- }, Ke = ({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", itemIconBadgeClassName: u, taskBadgeClassName: d = "dial-caption-lead-semi-text", unreadIndicatorLabel: p = "Unread", rowGroupKey: m, rows: h, draggingId: b, dragOverId: C, allowedDropGroups: w, onDragStart: T, onDragEnd: E, onDragOver: D, onDragLeave: A, onDrop: j }) => {
577
- let [M, ee] = z(!1), N = R(null), te = F((t) => {
578
- ee(t), t && N.current && s?.(e, N.current);
579
- }, [e, s]), P = o?.(e) ?? [], I = P.length > 0, ne = e.isIconLoading ? /* @__PURE__ */ B(O, {
573
+ }, Q = ({ item: e, isActive: n, onSelectConversation: r, searchQuery: i = "", getActions: o, onActionMenuOpen: s, actionsLabel: c = "More actions", itemTitleClassName: l = "dial-small-text", itemIconBadgeClassName: u, taskBadgeClassName: d = "dial-caption-lead-semi-text", unreadIndicatorLabel: p = "Unread", rowGroupKey: m, rows: h, draggingId: b, dragOverId: x, allowedDropGroups: w, onDragStart: T, onDragEnd: E, onDragOver: D, onDragLeave: O, onDrop: A }) => {
574
+ let [j, te] = R(!1), M = L(null), N = P((t) => {
575
+ te(t), t && M.current && s?.(e, M.current);
576
+ }, [e, s]), F = o?.(e) ?? [], ne = F.length > 0, re = e.isIconLoading ? /* @__PURE__ */ z(ee, {
580
577
  variant: k.Circular,
581
578
  width: g.LG,
582
579
  height: g.LG,
583
580
  color: Z.skeletonColor,
584
581
  "aria-hidden": !0
585
- }) : /* @__PURE__ */ B(t, {
582
+ }) : /* @__PURE__ */ z(t, {
586
583
  src: e.iconUrl,
587
584
  size: g.LG,
588
585
  initialsName: e.iconTooltip ?? "",
589
586
  labels: { tooltip: e.iconTooltip },
590
587
  styles: { badgeClassName: u }
591
- }), re = /* @__PURE__ */ V("span", {
588
+ }), ie = /* @__PURE__ */ B("span", {
592
589
  className: "flex shrink-0 items-center gap-0.5",
593
- children: [/* @__PURE__ */ B("span", {
590
+ children: [/* @__PURE__ */ z("span", {
594
591
  className: "relative flex size-3 shrink-0 items-center justify-center",
595
- children: e.isUnread && /* @__PURE__ */ V(ae, { children: [/* @__PURE__ */ B("span", {
592
+ children: e.isUnread && /* @__PURE__ */ B(ae, { children: [/* @__PURE__ */ z("span", {
596
593
  className: a("size-[5.33px] rounded-full", Z.unreadDot),
597
594
  "aria-hidden": !0
598
- }), /* @__PURE__ */ B("span", {
595
+ }), /* @__PURE__ */ z("span", {
599
596
  className: "sr-only",
600
597
  children: p
601
598
  })] })
602
- }), ne]
603
- }), ie = Ie(I, M), L = e.showTaskBadge ? /* @__PURE__ */ V("span", {
599
+ }), re]
600
+ }), I = X(ne, j), oe = e.showTaskBadge ? /* @__PURE__ */ B("span", {
604
601
  className: a("flex h-5 shrink-0 items-center justify-center gap-0.5 rounded-full border pe-2 ps-1", Z.taskBadge, d),
605
- children: [/* @__PURE__ */ B(de, {
602
+ children: [/* @__PURE__ */ z(de, {
606
603
  size: 12,
607
604
  "aria-hidden": !0,
608
605
  stroke: _
609
606
  }), e.taskBadgeLabel]
610
- }) : void 0, H = m != null, oe = F((e) => {
611
- e.currentTarget.contains(e.relatedTarget) || A?.();
612
- }, [A]), se = F((t) => {
613
- if (!m || !h || !j) return;
607
+ }) : void 0, V = m != null, se = P((e) => {
608
+ e.currentTarget.contains(e.relatedTarget) || O?.();
609
+ }, [O]), ce = P((t) => {
610
+ if (!m || !h || !A) return;
614
611
  t.preventDefault();
615
- let n = Ve(t, e.id, h, m);
616
- j(e.id, m, n);
612
+ let n = Be(t, e.id, h, m);
613
+ A(e.id, m, n);
617
614
  }, [
618
615
  e.id,
619
616
  h,
620
617
  m,
621
- j
622
- ]), ce = e.id === b, U = e.id === C, le = m != null && (w?.has(m) ?? !1), ue = b != null;
623
- return /* @__PURE__ */ V("li", {
624
- className: a("group/conversation relative", ce && "cursor-grabbing opacity-50", U && le && "rounded", U && le && Z.dropZoneActive, ue && !ce && !le && "cursor-not-allowed"),
625
- draggable: H || void 0,
626
- onDragStart: H ? () => T?.(e.id) : void 0,
627
- onDragEnd: H ? E : void 0,
628
- onDragOver: H ? (t) => {
618
+ A
619
+ ]), le = e.id === b, H = e.id === x, ue = m != null && (w?.has(m) ?? !1), U = b != null;
620
+ return /* @__PURE__ */ B("li", {
621
+ className: a("group/conversation relative", le && "cursor-grabbing opacity-50", H && ue && "rounded", H && ue && Z.dropZoneActive, U && !le && !ue && "cursor-not-allowed"),
622
+ draggable: V || void 0,
623
+ onDragStart: V ? () => T?.(e.id) : void 0,
624
+ onDragEnd: V ? E : void 0,
625
+ onDragOver: V ? (t) => {
629
626
  t.preventDefault(), D?.(e.id);
630
627
  } : void 0,
631
- onDragLeave: H ? oe : void 0,
632
- onDrop: H ? se : void 0,
633
- children: [/* @__PURE__ */ B("a", {
628
+ onDragLeave: V ? se : void 0,
629
+ onDrop: V ? ce : void 0,
630
+ children: [/* @__PURE__ */ z("a", {
634
631
  href: e.href,
635
632
  className: "contents",
636
633
  onClick: (t) => {
637
634
  e.href && (t.preventDefault(), r(e.id));
638
635
  },
639
- children: /* @__PURE__ */ B(f, {
640
- iconBefore: re,
641
- label: /* @__PURE__ */ B(S, {
636
+ children: /* @__PURE__ */ z(f, {
637
+ iconBefore: ie,
638
+ label: /* @__PURE__ */ z(C, {
642
639
  text: e.title,
643
640
  query: i,
644
641
  className: l,
645
642
  maxLines: 1
646
643
  }),
647
- iconAfter: L,
644
+ iconAfter: oe,
648
645
  textClassName: "min-w-0 flex-1",
649
646
  "aria-current": n ? "page" : void 0,
650
647
  onClick: e.href ? void 0 : () => r(e.id),
651
648
  tabIndex: e.href ? -1 : void 0,
652
- className: a("h-8 w-full justify-start gap-2 py-2 ps-0 after:pointer-events-none", ie, Z.item, n && Z.itemActive, M && Z.itemActive)
649
+ className: a("h-8 w-full justify-start gap-2 py-2 ps-0 after:pointer-events-none", I, Z.item, n && Z.itemActive, j && Z.itemActive)
653
650
  })
654
- }), I && /* @__PURE__ */ B("div", {
655
- className: a("absolute inset-y-0 end-1 flex items-center", M ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100"),
656
- children: /* @__PURE__ */ B(v, {
657
- items: P,
658
- onOpenChange: te,
651
+ }), ne && /* @__PURE__ */ z("div", {
652
+ className: a("absolute inset-y-0 end-1 flex items-center", j ? "opacity-100" : "opacity-0 group-focus-within/conversation:opacity-100 group-hover/conversation:opacity-100"),
653
+ children: /* @__PURE__ */ z(v, {
654
+ items: F,
655
+ onOpenChange: N,
659
656
  matchReferenceWidth: !1,
660
657
  listClassName: "w-[200px]",
661
- children: /* @__PURE__ */ B(x, {
662
- ref: N,
663
- icon: /* @__PURE__ */ B(W, {
658
+ children: /* @__PURE__ */ z(S, {
659
+ ref: M,
660
+ icon: /* @__PURE__ */ z(fe, {
664
661
  size: g.SM,
665
662
  className: Z.triggerIcon,
666
663
  "aria-hidden": !0,
@@ -668,20 +665,20 @@ var X = /* @__PURE__ */ function(e) {
668
665
  }),
669
666
  size: y.Small,
670
667
  "aria-label": c,
671
- className: a(M && Z.triggerActive)
668
+ className: a(j && Z.triggerActive)
672
669
  })
673
670
  })
674
671
  })]
675
672
  });
676
- }, qe = ({ 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, styles: m, draggingId: h, dragOverId: g, allowedDropGroups: _, onDragStart: v, onDragEnd: y, onDragOver: b, onDragLeave: x, onDrop: S }) => {
673
+ }, Ke = ({ 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, styles: m, draggingId: h, dragOverId: g, allowedDropGroups: _, onDragStart: v, onDragEnd: y, onDragOver: b, onDragLeave: x, onDrop: S }) => {
677
674
  let C = r[e];
678
- if (C.kind === X.Header) {
675
+ if (C.kind === Y.Header) {
679
676
  let r = C.groupKey === n.Pinned;
680
- return /* @__PURE__ */ B("div", {
677
+ return /* @__PURE__ */ z("div", {
681
678
  role: "presentation",
682
679
  style: t,
683
680
  className: e === 0 ? "pt-0" : "pt-8",
684
- children: /* @__PURE__ */ B(Q, {
681
+ children: /* @__PURE__ */ z(Ge, {
685
682
  label: C.label,
686
683
  isExpanded: i.has(C.groupKey),
687
684
  onToggle: () => a(C.groupKey),
@@ -695,11 +692,11 @@ var X = /* @__PURE__ */ function(e) {
695
692
  })
696
693
  });
697
694
  }
698
- return /* @__PURE__ */ B("div", {
695
+ return /* @__PURE__ */ z("div", {
699
696
  role: "presentation",
700
697
  style: t,
701
698
  className: "pt-1",
702
- children: /* @__PURE__ */ B(Ke, {
699
+ children: /* @__PURE__ */ z(Q, {
703
700
  item: C.item,
704
701
  isActive: C.item.id === s,
705
702
  searchQuery: c,
@@ -723,38 +720,38 @@ var X = /* @__PURE__ */ function(e) {
723
720
  onDrop: S
724
721
  })
725
722
  });
726
- }, Je = (e, t) => t === n.All ? !0 : e.source === t, Ye = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, Xe = new Set([
723
+ }, qe = (e, t) => t === n.All ? !0 : e.source === t, Je = (e, t) => t ? e.title.toLowerCase().includes(t.toLowerCase()) : !0, Ye = new Set([
727
724
  n.Pinned,
728
725
  n.MyChats,
729
726
  n.Shared,
730
727
  n.Organization
731
- ]), Ze = P(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, activeFilter: S, onActiveFilterChange: C, isFilterTabsHidden: w = !1, hiddenSources: T }) => {
732
- let { colors: E, typography: k, newChatButton: A, searchWrapperClassName: j } = m ?? {}, { title: M, emptyLabel: ee, noResultsLabel: N, loadingLabel: te = "Loading conversations", newChatLabel: P, searchPlaceholder: re, searchClearLabel: ie, filterLabels: ae, groupLabels: H, actionsLabel: oe, unreadIndicatorLabel: se, closeAriaLabel: ce } = f, [U, le] = z(""), [ue, de] = z(n.All);
733
- I(() => {
734
- S != null && de(S);
728
+ ]), Xe = N(({ conversations: e, isLoading: t, isOpen: i, onSelectConversation: o, activeConversationId: s, labels: f, onNewChat: p, styles: m, className: h, isOverlay: g = !1, getActions: _, onActionMenuOpen: v, onToggle: y, headerActions: b, onMoveConversation: x, activeFilter: S, onActiveFilterChange: C, isFilterTabsHidden: w = !1, hiddenSources: T }) => {
729
+ let { colors: E, typography: D, newChatButton: k, searchWrapperClassName: A } = m ?? {}, { title: j, emptyLabel: te, noResultsLabel: M, loadingLabel: N = "Loading conversations", newChatLabel: re, searchPlaceholder: ie, searchClearLabel: ae, filterLabels: oe, groupLabels: V, actionsLabel: se, unreadIndicatorLabel: ce, closeAriaLabel: le } = f, [H, ue] = R(""), [de, fe] = R(n.All);
730
+ F(() => {
731
+ S != null && fe(S);
735
732
  }, [S]);
736
- let W = L(() => T?.length ? e.filter((e) => e.source == null || !T.includes(e.source)) : e, [e, T]), [fe, pe] = z(() => Xe), [me, he] = z(5), ge = ne(), _e = R(null), G = R(null), [ye, be] = z(null), [xe, K] = z(null), [Se, Ce] = z(null), q = R(null), J = R(null), we = F(({ height: e }) => {
733
+ let U = I(() => T?.length ? e.filter((e) => e.source == null || !T.includes(e.source)) : e, [e, T]), [W, pe] = R(() => Ye), [me, he] = R(5), ge = ne(), G = L(null), ve = L(null), [ye, be] = R(null), [K, xe] = R(null), [Se, q] = R(null), J = L(null), Ce = L(null), we = P(({ height: e }) => {
737
734
  he(Math.ceil(e / 36 * 2));
738
- }, []), Te = F((e) => {
739
- le(e ?? "");
740
- }, []), Ee = F((e) => {
735
+ }, []), Te = P((e) => {
736
+ ue(e ?? "");
737
+ }, []), Ee = P((e) => {
741
738
  pe((t) => {
742
739
  let n = new Set(t);
743
740
  return n.has(e) ? n.delete(e) : n.add(e), n;
744
741
  });
745
- }, []), De = F(() => {
746
- q.current = null, J.current = null, be(null), K(null), Ce(null);
747
- }, []), Oe = F((e, t) => {
748
- let n = Be(e, ze(t, e), W);
749
- q.current = e, J.current = n, be(e), Ce(n);
750
- }, [W]), ke = F(() => {
742
+ }, []), De = P(() => {
743
+ J.current = null, Ce.current = null, be(null), xe(null), q(null);
744
+ }, []), Oe = P((e, t) => {
745
+ let n = ze(e, Re(t, e), U);
746
+ J.current = e, Ce.current = n, be(e), q(n);
747
+ }, [U]), ke = P(() => {
751
748
  De();
752
- }, [De]), Ae = F((e) => {
753
- K(e);
754
- }, []), je = F(() => {
755
- K(null);
756
- }, []), Me = F((e, t, n) => {
757
- let r = q.current, i = J.current;
749
+ }, [De]), Ae = P((e) => {
750
+ xe(e);
751
+ }, []), je = P(() => {
752
+ xe(null);
753
+ }, []), Me = P((e, t, n) => {
754
+ let r = J.current, i = Ce.current;
758
755
  De(), r != null && r !== e && i?.has(t) && x?.({
759
756
  draggedId: r,
760
757
  targetGroupKey: t,
@@ -765,9 +762,9 @@ var X = /* @__PURE__ */ function(e) {
765
762
  "--cp-item-active": E?.itemActive,
766
763
  "--cp-text": E?.text,
767
764
  "--cp-text-secondary": E?.textSecondary,
768
- "--cp-new-chat-bg": A?.background,
769
- "--cp-new-chat-text": A?.text,
770
- "--cp-new-chat-focus-outline": A?.focusOutline,
765
+ "--cp-new-chat-bg": k?.background,
766
+ "--cp-new-chat-text": k?.text,
767
+ "--cp-new-chat-focus-outline": k?.focusOutline,
771
768
  "--cp-drop-zone-ring": E?.dropZoneRing,
772
769
  "--cp-trigger-bg": E?.triggerBackground,
773
770
  "--cp-trigger-icon": E?.triggerIcon,
@@ -777,84 +774,84 @@ var X = /* @__PURE__ */ function(e) {
777
774
  "--cp-task-badge-bg": E?.taskBadgeBackground,
778
775
  "--cp-task-badge-text": E?.taskBadgeText,
779
776
  "--cp-unread-dot": E?.unreadDot
780
- }), Y = L(() => W.filter((e) => Je(e, ue) && Ye(e, U)), [
781
- W,
782
- ue,
783
- U
784
- ]), Ie = L(() => Y.filter((e) => e.isPinned), [Y]), Re = L(() => Y.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [Y]), Ve = L(() => Y.filter((e) => !e.isPinned && e.source === n.Shared), [Y]), He = L(() => Y.filter((e) => !e.isPinned && e.source === n.Organization), [Y]), We = L(() => [
777
+ }), X = I(() => U.filter((e) => qe(e, de) && Je(e, H)), [
778
+ U,
779
+ de,
780
+ H
781
+ ]), Le = I(() => X.filter((e) => e.isPinned), [X]), Be = I(() => X.filter((e) => !e.isPinned && e.source !== n.Shared && e.source !== n.Organization), [X]), Ve = I(() => X.filter((e) => !e.isPinned && e.source === n.Shared), [X]), Ue = I(() => X.filter((e) => !e.isPinned && e.source === n.Organization), [X]), Ge = I(() => [
785
782
  {
786
783
  key: n.Pinned,
787
- label: H?.pinned ?? "Pinned",
788
- items: Ie
784
+ label: V?.pinned ?? "Pinned",
785
+ items: Le
789
786
  },
790
787
  {
791
788
  key: n.MyChats,
792
- label: H?.myChats ?? "My chats",
793
- items: Re
789
+ label: V?.myChats ?? "My chats",
790
+ items: Be
794
791
  },
795
792
  {
796
793
  key: n.Shared,
797
- label: H?.shared ?? "Shared",
794
+ label: V?.shared ?? "Shared",
798
795
  items: Ve
799
796
  },
800
797
  {
801
798
  key: n.Organization,
802
- label: H?.organization ?? "Organization",
803
- items: He
799
+ label: V?.organization ?? "Organization",
800
+ items: Ue
804
801
  }
805
802
  ], [
806
- H,
807
- Ie,
808
- Re,
803
+ V,
804
+ Le,
805
+ Be,
809
806
  Ve,
810
- He
811
- ]), Q = L(() => {
807
+ Ue
808
+ ]), Q = I(() => {
812
809
  let e = [];
813
- for (let t of We) if (t.items.length !== 0 && (e.push({
814
- kind: X.Header,
810
+ for (let t of Ge) if (t.items.length !== 0 && (e.push({
811
+ kind: Y.Header,
815
812
  groupKey: t.key,
816
813
  label: t.label
817
- }), fe.has(t.key))) for (let n of t.items) e.push({
818
- kind: X.Item,
814
+ }), W.has(t.key))) for (let n of t.items) e.push({
815
+ kind: Y.Item,
819
816
  item: n,
820
817
  groupKey: t.key
821
818
  });
822
819
  return e;
823
- }, [We, fe]);
824
- I(() => {
825
- if (!s || G.current === s) return;
826
- let e = Q.findIndex((e) => e.kind === X.Item && e.item.id === s);
827
- e >= 0 && (_e.current?.scrollToRow({
820
+ }, [Ge, W]);
821
+ F(() => {
822
+ if (!s || ve.current === s) return;
823
+ let e = Q.findIndex((e) => e.kind === Y.Item && e.item.id === s);
824
+ e >= 0 && (G.current?.scrollToRow({
828
825
  index: e,
829
826
  align: "smart",
830
827
  behavior: "smooth"
831
- }), G.current = s);
828
+ }), ve.current = s);
832
829
  }, [
833
830
  s,
834
- We,
835
- fe,
831
+ Ge,
832
+ W,
836
833
  Q
837
834
  ]);
838
- let Ke = L(() => ({
835
+ let Xe = I(() => ({
839
836
  rows: Q,
840
- expandedGroups: fe,
837
+ expandedGroups: W,
841
838
  onToggleGroup: Ee,
842
839
  listId: ge,
843
840
  activeConversationId: s,
844
- searchQuery: U,
841
+ searchQuery: H,
845
842
  onSelectConversation: o,
846
843
  getActions: _,
847
844
  onActionMenuOpen: v,
848
- actionsLabel: oe,
849
- unreadIndicatorLabel: se,
845
+ actionsLabel: se,
846
+ unreadIndicatorLabel: ce,
850
847
  styles: {
851
- groupHeaderClassName: k?.groupHeaderClassName,
852
- itemTitleClassName: k?.itemTitleClassName,
848
+ groupHeaderClassName: D?.groupHeaderClassName,
849
+ itemTitleClassName: D?.itemTitleClassName,
853
850
  itemIconBadgeClassName: m?.itemIconBadgeClassName,
854
851
  taskBadgeClassName: m?.taskBadgeClassName
855
852
  },
856
853
  draggingId: ye,
857
- dragOverId: xe,
854
+ dragOverId: K,
858
855
  allowedDropGroups: Se,
859
856
  onDragStart: (e) => Oe(e, Q),
860
857
  onDragEnd: ke,
@@ -863,37 +860,37 @@ var X = /* @__PURE__ */ function(e) {
863
860
  onDrop: Me
864
861
  }), [
865
862
  Q,
866
- fe,
863
+ W,
867
864
  Ee,
868
865
  ge,
869
866
  s,
870
- U,
867
+ H,
871
868
  o,
872
869
  _,
873
870
  v,
874
- oe,
875
871
  se,
876
- k?.groupHeaderClassName,
877
- k?.itemTitleClassName,
872
+ ce,
873
+ D?.groupHeaderClassName,
874
+ D?.itemTitleClassName,
878
875
  m?.itemIconBadgeClassName,
879
876
  m?.taskBadgeClassName,
880
877
  ye,
881
- xe,
878
+ K,
882
879
  Se,
883
880
  Oe,
884
881
  ke,
885
882
  Ae,
886
883
  je,
887
884
  Me
888
- ]), Ze = W.length === 0, Qe = W.length > 0 && Y.length === 0;
889
- return /* @__PURE__ */ V(d, {
885
+ ]), Ze = U.length === 0, Qe = U.length > 0 && X.length === 0;
886
+ return /* @__PURE__ */ B(d, {
890
887
  isOpen: i,
891
888
  isOverlay: g,
892
889
  orientation: u.Left,
893
- title: M,
890
+ title: j,
894
891
  labels: {
895
- ariaLabel: M,
896
- closeLabel: ce
892
+ ariaLabel: j,
893
+ closeLabel: le
897
894
  },
898
895
  onClose: y,
899
896
  styles: {
@@ -901,75 +898,75 @@ var X = /* @__PURE__ */ function(e) {
901
898
  background: E?.background,
902
899
  border: E?.border
903
900
  },
904
- typography: { fontClassName: k?.fontClassName },
901
+ typography: { fontClassName: D?.fontClassName },
905
902
  bodyClassName: "flex flex-col overflow-hidden p-0 gap-3",
906
903
  cssVars: Ne,
907
- titleClassName: k?.fontClassName,
904
+ titleClassName: D?.fontClassName,
908
905
  headerClassName: "h-[64px]",
909
906
  className: a(i ? "w-[324px] mobile:w-full" : "w-0", h)
910
907
  },
911
908
  rightActions: b,
912
909
  children: [
913
- /* @__PURE__ */ B(Ge, {
914
- label: P,
910
+ /* @__PURE__ */ z(We, {
911
+ label: re,
915
912
  onClick: p,
916
- labelClassName: k?.newChatLabelClassName,
917
- colors: A
913
+ labelClassName: D?.newChatLabelClassName,
914
+ colors: k
918
915
  }),
919
- /* @__PURE__ */ B("div", {
916
+ /* @__PURE__ */ z("div", {
920
917
  role: "search",
921
- className: a("px-3 py-2", ve.search),
922
- children: /* @__PURE__ */ B(D, {
923
- wrapperClassName: a(Z.search, j),
924
- value: U,
918
+ className: a("px-3 py-2", _e.search),
919
+ children: /* @__PURE__ */ z(O, {
920
+ wrapperClassName: a(Z.search, A),
921
+ value: H,
925
922
  onChange: Te,
926
- placeholder: re,
927
- clearLabel: ie,
928
- "aria-label": re
923
+ placeholder: ie,
924
+ clearLabel: ae,
925
+ "aria-label": ie
929
926
  })
930
927
  }),
931
- !w && /* @__PURE__ */ B(Ue, {
932
- activeTab: ue,
933
- labels: ae,
928
+ !w && /* @__PURE__ */ z(He, {
929
+ activeTab: de,
930
+ labels: oe,
934
931
  onChange: (e) => {
935
- de(e), C?.(e);
932
+ fe(e), C?.(e);
936
933
  },
937
- tabClassName: k?.tabClassName,
934
+ tabClassName: D?.tabClassName,
938
935
  hiddenSources: T
939
936
  }),
940
- /* @__PURE__ */ B("span", {
937
+ /* @__PURE__ */ z("span", {
941
938
  role: "status",
942
939
  "aria-live": "polite",
943
940
  className: "sr-only",
944
- children: t ? te : Ze ? ee : Qe ? N : ""
941
+ children: t ? N : Ze ? te : Qe ? M : ""
945
942
  }),
946
- /* @__PURE__ */ B("div", {
943
+ /* @__PURE__ */ z("div", {
947
944
  className: "flex-1 overflow-hidden py-1 pe-3 ps-2",
948
- children: t ? /* @__PURE__ */ B("div", {
945
+ children: t ? /* @__PURE__ */ z("div", {
949
946
  className: "flex flex-col gap-3 px-2 py-3",
950
- children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ B(O, {
947
+ children: Array.from({ length: 15 }, (e, t) => /* @__PURE__ */ z(ee, {
951
948
  avatar: { size: 24 },
952
949
  showTitle: { width: Fe(t) },
953
950
  paragraph: !1,
954
951
  active: !0,
955
952
  color: Z.skeletonColor
956
953
  }, t))
957
- }) : Ze ? /* @__PURE__ */ B(c, { label: ee }) : Qe ? /* @__PURE__ */ B(l, { label: N }) : /* @__PURE__ */ B(Pe, {
958
- listRef: _e,
954
+ }) : Ze ? /* @__PURE__ */ z(c, { label: te }) : Qe ? /* @__PURE__ */ z(l, { label: M }) : /* @__PURE__ */ z(Pe, {
955
+ listRef: G,
959
956
  id: ge,
960
957
  role: "list",
961
958
  style: { height: "100%" },
962
- rowComponent: qe,
959
+ rowComponent: Ke,
963
960
  rowCount: Q.length,
964
- rowHeight: Le,
961
+ rowHeight: Ie,
965
962
  overscanCount: me,
966
963
  onResize: we,
967
- rowProps: Ke
964
+ rowProps: Xe
968
965
  })
969
966
  })
970
967
  ]
971
968
  });
972
- }), Qe = 8e3, $e = "flex size-7 shrink-0 items-center justify-center", $ = {
969
+ }), Ze = 8e3, Qe = "flex size-7 shrink-0 items-center justify-center", $ = {
973
970
  root: "_root_11lia_1",
974
971
  text: "_text_11lia_5",
975
972
  textSecondary: "_textSecondary_11lia_9",
@@ -978,77 +975,77 @@ var X = /* @__PURE__ */ function(e) {
978
975
  errorIcon: "_errorIcon_11lia_21",
979
976
  failureCount: "_failureCount_11lia_25",
980
977
  warningIcon: "_warningIcon_11lia_35"
981
- }, et = ({ title: e, failedCount: t, isCollapsed: n, jobsId: r, labels: i, styles: o, onToggleCollapse: s, onClose: c }) => {
978
+ }, $e = ({ title: e, failedCount: t, isCollapsed: n, jobsId: r, labels: i, styles: o, onToggleCollapse: s, onClose: c }) => {
982
979
  let l = o?.typography;
983
- return /* @__PURE__ */ V("div", {
980
+ return /* @__PURE__ */ B("div", {
984
981
  className: a($.divider, "mx-4 flex items-center justify-between py-3"),
985
- children: [/* @__PURE__ */ V("div", {
982
+ children: [/* @__PURE__ */ B("div", {
986
983
  className: "flex min-w-0 items-center gap-2",
987
- children: [/* @__PURE__ */ B("span", {
984
+ children: [/* @__PURE__ */ z("span", {
988
985
  className: a($.text, "truncate", l?.titleClassName || "dial-small-paragraph-semi-text"),
989
986
  children: e
990
- }), t > 0 && /* @__PURE__ */ B("span", {
987
+ }), t > 0 && /* @__PURE__ */ z("span", {
991
988
  className: a($.failureCount, "inline-flex h-4 min-w-4 shrink-0 items-center justify-center rounded-full px-1", l?.failureCountClassName || "dial-small-paragraph-semi-text"),
992
989
  children: t
993
990
  })]
994
- }), /* @__PURE__ */ V("div", {
991
+ }), /* @__PURE__ */ B("div", {
995
992
  className: "flex shrink-0 items-center gap-1",
996
- children: [/* @__PURE__ */ B(x, {
993
+ children: [/* @__PURE__ */ z(S, {
997
994
  "aria-label": n ? i.expandQueueAriaLabel : i.collapseQueueAriaLabel,
998
995
  size: y.Small,
999
996
  "aria-expanded": !n,
1000
997
  "aria-controls": r,
1001
- icon: B(n ? ue : le, {
998
+ icon: z(n ? ue : H, {
1002
999
  size: g.SM,
1003
1000
  className: $.textSecondary,
1004
1001
  stroke: _,
1005
1002
  "aria-hidden": !0
1006
1003
  }),
1007
1004
  onClick: s,
1008
- className: $e
1009
- }), /* @__PURE__ */ B(x, {
1005
+ className: Qe
1006
+ }), /* @__PURE__ */ z(S, {
1010
1007
  "aria-label": i.closeQueueAriaLabel,
1011
1008
  size: y.Small,
1012
- icon: /* @__PURE__ */ B(_e, {
1009
+ icon: /* @__PURE__ */ z(ge, {
1013
1010
  size: g.SM,
1014
1011
  className: $.textSecondary,
1015
1012
  stroke: _,
1016
1013
  "aria-hidden": !0
1017
1014
  }),
1018
1015
  onClick: c,
1019
- className: $e
1016
+ className: Qe
1020
1017
  })]
1021
1018
  })]
1022
1019
  });
1023
- }, tt = [".dial", ".zip"], nt = (e) => {
1020
+ }, et = [".dial", ".zip"], tt = (e) => {
1024
1021
  let t = e.toLowerCase();
1025
- return tt.some((e) => t.endsWith(e)) ? pe : t.endsWith(".json") ? me : fe;
1026
- }, rt = ({ job: t, labels: n, onCancel: r, styles: i }) => {
1027
- let o = i?.typography, s = nt(t.fileName), c = t.status === e.Canceled;
1028
- return /* @__PURE__ */ V("div", {
1022
+ return et.some((e) => t.endsWith(e)) ? W : t.endsWith(".json") ? pe : U;
1023
+ }, nt = ({ job: t, labels: n, onCancel: r, styles: i }) => {
1024
+ let o = i?.typography, s = tt(t.fileName), c = t.status === e.Canceled;
1025
+ return /* @__PURE__ */ B("div", {
1029
1026
  className: "group flex items-center gap-2 px-4 py-2",
1030
1027
  children: [
1031
- /* @__PURE__ */ B(s, {
1028
+ /* @__PURE__ */ z(s, {
1032
1029
  size: g.SM,
1033
1030
  stroke: _,
1034
1031
  className: $.textSecondary,
1035
1032
  "aria-hidden": !0
1036
1033
  }),
1037
- /* @__PURE__ */ B(b, {
1034
+ /* @__PURE__ */ z(b, {
1038
1035
  text: t.fileName,
1039
1036
  className: a(c ? $.textSecondary : $.text, o?.jobLabelClassName || "dial-small-text"),
1040
1037
  contentClassName: "!z-[80]"
1041
1038
  }),
1042
- t.status === e.InProgress && /* @__PURE__ */ V("div", {
1039
+ t.status === e.InProgress && /* @__PURE__ */ B("div", {
1043
1040
  className: a("flex size-7 shrink-0 items-center justify-center", "grid"),
1044
- children: [/* @__PURE__ */ B(A, {
1041
+ children: [/* @__PURE__ */ z(A, {
1045
1042
  size: g.SM,
1046
1043
  ariaLabel: n.jobProgressAriaLabel(t.fileName),
1047
1044
  className: "pointer-events-none col-start-1 row-start-1 opacity-100 transition-opacity group-focus-within:opacity-0 group-hover:opacity-0"
1048
- }), /* @__PURE__ */ B(x, {
1045
+ }), /* @__PURE__ */ z(S, {
1049
1046
  "aria-label": n.cancelJobAriaLabel(t.fileName),
1050
1047
  size: y.Small,
1051
- icon: /* @__PURE__ */ B(_e, {
1048
+ icon: /* @__PURE__ */ z(ge, {
1052
1049
  size: g.SM,
1053
1050
  className: $.textSecondary,
1054
1051
  stroke: _,
@@ -1058,55 +1055,55 @@ var X = /* @__PURE__ */ function(e) {
1058
1055
  className: "col-start-1 row-start-1 opacity-0 transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"
1059
1056
  })]
1060
1057
  }),
1061
- t.status === e.Success && /* @__PURE__ */ B("span", {
1058
+ t.status === e.Success && /* @__PURE__ */ z("span", {
1062
1059
  className: "flex size-7 shrink-0 items-center justify-center",
1063
- children: /* @__PURE__ */ B(U, {
1060
+ children: /* @__PURE__ */ z(le, {
1064
1061
  size: g.SM,
1065
1062
  stroke: _,
1066
1063
  className: $.successIcon,
1067
1064
  "aria-hidden": !0
1068
1065
  })
1069
1066
  }),
1070
- t.status === e.Warning && /* @__PURE__ */ B(ee, {
1067
+ t.status === e.Warning && /* @__PURE__ */ z(j, {
1071
1068
  tooltip: n.jobWarningMessage(t.warningCode, t.warningNames),
1072
1069
  contentClassName: "!z-[80]",
1073
1070
  asChild: !0,
1074
- children: /* @__PURE__ */ B("span", {
1071
+ children: /* @__PURE__ */ z("span", {
1075
1072
  className: "flex size-7 shrink-0 items-center justify-center",
1076
1073
  role: "img",
1077
1074
  "aria-label": n.jobWarningMessage(t.warningCode, t.warningNames),
1078
1075
  tabIndex: 0,
1079
- children: /* @__PURE__ */ B(oe, {
1076
+ children: /* @__PURE__ */ z(V, {
1080
1077
  size: g.SM,
1081
1078
  className: $.warningIcon,
1082
1079
  "aria-hidden": !0
1083
1080
  })
1084
1081
  })
1085
1082
  }),
1086
- t.status === e.Failed && /* @__PURE__ */ B(ee, {
1083
+ t.status === e.Failed && /* @__PURE__ */ z(j, {
1087
1084
  tooltip: n.jobErrorMessage(t.errorCode),
1088
1085
  contentClassName: "!z-[80]",
1089
1086
  asChild: !0,
1090
- children: /* @__PURE__ */ B("span", {
1087
+ children: /* @__PURE__ */ z("span", {
1091
1088
  className: "flex size-7 shrink-0 items-center justify-center",
1092
1089
  role: "img",
1093
1090
  "aria-label": n.jobErrorMessage(t.errorCode),
1094
1091
  tabIndex: 0,
1095
- children: /* @__PURE__ */ B(H, {
1092
+ children: /* @__PURE__ */ z(oe, {
1096
1093
  size: g.SM,
1097
1094
  className: $.errorIcon,
1098
1095
  "aria-hidden": !0
1099
1096
  })
1100
1097
  })
1101
1098
  }),
1102
- c && /* @__PURE__ */ B("span", {
1099
+ c && /* @__PURE__ */ z("span", {
1103
1100
  className: a($.textSecondary, "shrink-0", o?.canceledLabelClassName || "dial-small-text"),
1104
1101
  children: n.canceledLabel
1105
1102
  })
1106
1103
  ]
1107
1104
  });
1108
- }, it = (e) => Math.round(e.reduce((e, t) => e + t.progress.percent, 0) / e.length), at = (t) => t.filter((t) => t.status !== e.InProgress).length, ot = (e, t, n) => e && t ? n.closeQueueConfirmDescriptionMixed : t ? n.closeQueueConfirmDescriptionFailed : n.closeQueueConfirmDescriptionInProgress, st = P(({ title: t, jobs: n, onClose: i, onCancel: o, labels: s, styles: c }) => {
1109
- let [l, u] = z(!1), d = ne(), [f, p] = z(!1), g = c?.colors, _ = {
1105
+ }, rt = (e) => Math.round(e.reduce((e, t) => e + t.progress.percent, 0) / e.length), it = (t) => t.filter((t) => t.status !== e.InProgress).length, at = (e, t, n) => e && t ? n.closeQueueConfirmDescriptionMixed : t ? n.closeQueueConfirmDescriptionFailed : n.closeQueueConfirmDescriptionInProgress, ot = N(({ title: t, jobs: n, onClose: i, onCancel: o, labels: s, styles: c }) => {
1106
+ let [l, u] = R(!1), d = ne(), [f, p] = R(!1), g = c?.colors, _ = {
1110
1107
  ...r({
1111
1108
  "--cp-transfer-queue-bg": g?.background,
1112
1109
  "--cp-transfer-queue-text": g?.text,
@@ -1119,30 +1116,30 @@ var X = /* @__PURE__ */ function(e) {
1119
1116
  "--cp-transfer-queue-failure-count-text": g?.failureCountText
1120
1117
  }),
1121
1118
  ...c?.cssVars
1122
- }, v = n.some((t) => t.status === e.InProgress), b = n.some((t) => t.status === e.Failed), x = n.length > 0 && n.every((t) => t.status === e.Success), S = F(() => {
1119
+ }, v = n.some((t) => t.status === e.InProgress), b = n.some((t) => t.status === e.Failed), x = n.length > 0 && n.every((t) => t.status === e.Success), S = P(() => {
1123
1120
  v || b ? p(!0) : i();
1124
1121
  }, [
1125
1122
  v,
1126
1123
  b,
1127
1124
  i
1128
- ]), C = F(() => {
1125
+ ]), C = P(() => {
1129
1126
  p(!1), i();
1130
- }, [i]), w = F(() => {
1127
+ }, [i]), w = P(() => {
1131
1128
  u((e) => !e);
1132
1129
  }, []);
1133
- if (I(() => {
1130
+ if (F(() => {
1134
1131
  if (!x) return;
1135
- let e = setTimeout(i, Qe);
1132
+ let e = setTimeout(i, Ze);
1136
1133
  return () => clearTimeout(e);
1137
1134
  }, [x, i]), n.length === 0) return null;
1138
1135
  let T = n.filter((t) => t.status === e.Failed).length;
1139
- return /* @__PURE__ */ V("div", {
1136
+ return /* @__PURE__ */ B("div", {
1140
1137
  role: "status",
1141
1138
  "aria-live": "polite",
1142
1139
  style: _,
1143
1140
  className: a($.root, "w-[370px] max-w-[calc(100vw-2rem)] rounded-xl shadow-md", c?.rootClassName),
1144
1141
  children: [
1145
- /* @__PURE__ */ B(et, {
1142
+ /* @__PURE__ */ z($e, {
1146
1143
  title: t,
1147
1144
  failedCount: T,
1148
1145
  isCollapsed: l,
@@ -1152,26 +1149,26 @@ var X = /* @__PURE__ */ function(e) {
1152
1149
  onToggleCollapse: w,
1153
1150
  onClose: S
1154
1151
  }),
1155
- l && v && /* @__PURE__ */ B(E, {
1156
- value: it(n),
1152
+ l && v && /* @__PURE__ */ z(D, {
1153
+ value: rt(n),
1157
1154
  size: y.Small,
1158
1155
  "aria-label": s.queueProgressAriaLabel,
1159
- "aria-valuetext": s.queueProgressValueText(at(n), n.length)
1156
+ "aria-valuetext": s.queueProgressValueText(it(n), n.length)
1160
1157
  }),
1161
- !l && /* @__PURE__ */ B("div", {
1158
+ !l && /* @__PURE__ */ z("div", {
1162
1159
  id: d,
1163
1160
  className: a("flex max-h-[40vh] flex-col overflow-y-auto py-1", c?.bodyClassName),
1164
- children: n.map((e) => /* @__PURE__ */ B(rt, {
1161
+ children: n.map((e) => /* @__PURE__ */ z(nt, {
1165
1162
  job: e,
1166
1163
  labels: s,
1167
1164
  onCancel: o,
1168
1165
  styles: c
1169
1166
  }, e.id))
1170
1167
  }),
1171
- /* @__PURE__ */ B(m, {
1168
+ /* @__PURE__ */ z(m, {
1172
1169
  open: f,
1173
1170
  header: s.closeQueueConfirmHeader,
1174
- description: ot(v, b, s),
1171
+ description: at(v, b, s),
1175
1172
  confirmLabel: s.closeLabel,
1176
1173
  cancelLabel: s.cancelLabel,
1177
1174
  variant: h.Danger,
@@ -1181,33 +1178,33 @@ var X = /* @__PURE__ */ function(e) {
1181
1178
  ]
1182
1179
  });
1183
1180
  });
1184
- st.displayName = "ImportExportQueue";
1181
+ ot.displayName = "ImportExportQueue";
1185
1182
  //#endregion
1186
1183
  //#region src/components/RenameConversationPopup/RenameConversationPopup.tsx
1187
- var ct = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
1188
- let [f, m] = z(t), [h, v] = z(!1), [y, b] = z(null), S = R(null), E = R(!1), D = R(0);
1189
- I(() => {
1190
- let n = e && !E.current;
1191
- if (E.current = e, !e) {
1184
+ var st = N(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCancel: c, onGenerateWithAi: l, labels: u, styles: d }) => {
1185
+ let [f, m] = R(t), [h, v] = R(!1), [y, b] = R(null), x = L(null), C = L(!1), D = L(0);
1186
+ F(() => {
1187
+ let n = e && !C.current;
1188
+ if (C.current = e, !e) {
1192
1189
  D.current += 1, v(!1);
1193
1190
  return;
1194
1191
  }
1195
1192
  if (!n) return;
1196
1193
  D.current += 1, m(t), b(null), v(!1);
1197
- let r = setTimeout(() => S.current?.focus(), 0);
1194
+ let r = setTimeout(() => x.current?.focus(), 0);
1198
1195
  return () => clearTimeout(r);
1199
- }, [e, t]), I(() => () => {
1196
+ }, [e, t]), F(() => () => {
1200
1197
  D.current += 1;
1201
1198
  }, []);
1202
- let O = s(f.trim()), k = i(O) > 255, j = n || O === "" || O === t.trim() || k, M = F(() => {
1203
- j || a(O);
1199
+ let O = s(f.trim()), ee = i(O) > 255, k = n || O === "" || O === t.trim() || ee, j = P(() => {
1200
+ k || a(O);
1204
1201
  }, [
1205
- j,
1202
+ k,
1206
1203
  a,
1207
1204
  O
1208
- ]), ee = F((e) => {
1209
- e.key === "Enter" && M();
1210
- }, [M]), N = F(async () => {
1205
+ ]), te = P((e) => {
1206
+ e.key === "Enter" && j();
1207
+ }, [j]), M = P(async () => {
1211
1208
  if (h) return;
1212
1209
  let e = ++D.current;
1213
1210
  v(!0), b(null);
@@ -1225,11 +1222,11 @@ var ct = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
1225
1222
  h,
1226
1223
  l,
1227
1224
  u.renameWithAiError
1228
- ]), te;
1229
- return te = k ? u.nameTooLongError : y ?? r ?? void 0, /* @__PURE__ */ B(w, {
1225
+ ]), N;
1226
+ return N = ee ? u.nameTooLongError : y ?? r ?? void 0, /* @__PURE__ */ z(T, {
1230
1227
  open: e,
1231
1228
  header: u.popupTitle,
1232
- size: T.Sm,
1229
+ size: E.Sm,
1233
1230
  onClose: c,
1234
1231
  mainButtons: n ? void 0 : [{
1235
1232
  label: u.cancelLabel,
@@ -1237,33 +1234,33 @@ var ct = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
1237
1234
  }, {
1238
1235
  label: u.saveLabel,
1239
1236
  variant: p.Primary,
1240
- disabled: j,
1241
- onClick: M
1237
+ disabled: k,
1238
+ onClick: j
1242
1239
  }],
1243
- children: /* @__PURE__ */ B("div", {
1240
+ children: /* @__PURE__ */ z("div", {
1244
1241
  className: d?.bodyClassName,
1245
1242
  style: d?.cssVars,
1246
- children: n ? /* @__PURE__ */ B("div", {
1243
+ children: n ? /* @__PURE__ */ z("div", {
1247
1244
  className: "h-[120px] px-6 py-4",
1248
- children: /* @__PURE__ */ B(A, { size: 50 })
1249
- }) : /* @__PURE__ */ V("div", {
1245
+ children: /* @__PURE__ */ z(A, { size: 50 })
1246
+ }) : /* @__PURE__ */ B("div", {
1250
1247
  className: "flex items-start gap-2 px-6 py-3",
1251
- children: [/* @__PURE__ */ B("div", {
1248
+ children: [/* @__PURE__ */ z("div", {
1252
1249
  className: "min-w-0 flex-1",
1253
- children: /* @__PURE__ */ B(C, {
1254
- inputRef: S,
1250
+ children: /* @__PURE__ */ z(w, {
1251
+ inputRef: x,
1255
1252
  value: f,
1256
1253
  placeholder: u.inputPlaceholder,
1257
- error: te,
1254
+ error: N,
1258
1255
  onChange: (e) => m(o(e ?? "")),
1259
- onKeyDown: ee
1256
+ onKeyDown: te
1260
1257
  })
1261
- }), /* @__PURE__ */ B(x, {
1258
+ }), /* @__PURE__ */ z(S, {
1262
1259
  "aria-label": u.renameWithAiLabel,
1263
1260
  tooltipProps: { tooltip: u.renameWithAiLabel },
1264
1261
  disabled: h || n,
1265
- onClick: N,
1266
- icon: h ? /* @__PURE__ */ B(A, { size: g.MD }) : /* @__PURE__ */ B(ge, {
1262
+ onClick: M,
1263
+ icon: h ? /* @__PURE__ */ z(A, { size: g.MD }) : /* @__PURE__ */ z(he, {
1267
1264
  size: g.MD,
1268
1265
  stroke: _
1269
1266
  })
@@ -1272,6 +1269,6 @@ var ct = P(({ isOpen: e, currentTitle: t, isSaving: n, error: r, onSave: a, onCa
1272
1269
  })
1273
1270
  });
1274
1271
  });
1275
- ct.displayName = "RenameConversationPopup";
1272
+ st.displayName = "RenameConversationPopup";
1276
1273
  //#endregion
1277
- export { ve as CONVERSATION_PANEL_CLASS, Ze as ConversationPanel, st as ImportExportQueue, ct as RenameConversationPopup, nt as getTransferFileIcon };
1274
+ export { _e as CONVERSATION_PANEL_CLASS, Xe as ConversationPanel, ot as ImportExportQueue, st as RenameConversationPopup, tt as getTransferFileIcon };