@versini/sassysaint 8.118.0 → 8.118.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/chunks/{AboutChangelog.NMMfTbp4.js → AboutChangelog.Dd-lJxFP.js} +2 -2
  2. package/dist/chunks/{AboutEntry.8kXGiBKr.js → AboutEntry.B76hyRlF.js} +7 -7
  3. package/dist/chunks/{App.MBikKP52.js → App.CDmH0G0j.js} +24 -25
  4. package/dist/chunks/{BubbleActions.u9muFBXv.js → BubbleActions.B4DdmpLt.js} +3 -3
  5. package/dist/chunks/{ButtonIconDelete.UIDZwKOu.js → ButtonIconDelete.BIQ0mdyX.js} +92 -112
  6. package/dist/chunks/{Chart.IEDLbK1M.js → Chart.CjoR0Wd0.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.Cn1keoow.js → ChatBubbleAssistant.DyYIdEm4.js} +5 -5
  8. package/dist/chunks/{ChatBubbleUser.DUizsIIv.js → ChatBubbleUser.Ba27Y6M8.js} +4 -4
  9. package/dist/chunks/{ChatHistoryTable.DIT1MlOO.js → ChatHistoryTable.BQowENY6.js} +93 -89
  10. package/dist/chunks/{HistoryEntry.sZ_AMeUu.js → HistoryEntry.Cn3jxdK8.js} +123 -136
  11. package/dist/chunks/{InlineFilter.1dVMRTxM.js → InlineFilter.C6W5hEeI.js} +3 -3
  12. package/dist/chunks/{LoginEntry.BnHprT7f.js → LoginEntry.CxIKfVlN.js} +4 -4
  13. package/dist/chunks/{LogoEntry.uN5foS5i.js → LogoEntry.CxkQlFwX.js} +1 -1
  14. package/dist/chunks/{MemoriesEntry.CpxdE30v.js → MemoriesEntry.D0KEXfwY.js} +112 -119
  15. package/dist/chunks/{ProfileEntry.BMpJic5U.js → ProfileEntry.C1IhZsXL.js} +4 -4
  16. package/dist/chunks/{SettingsEntry.B8xGufV0.js → SettingsEntry.B0fEZDDy.js} +5 -5
  17. package/dist/chunks/{UsageEntry.B1zVYUBb.js → UsageEntry.Di2hXsKE.js} +5 -5
  18. package/dist/chunks/{_baseUniq.BeocMcb-.js → _baseUniq.RtcyTVD3.js} +1 -1
  19. package/dist/chunks/{arc.C-CDR6Sz.js → arc.B2UgXHCR.js} +1 -1
  20. package/dist/chunks/{architecture-U656AL7Q.DQ7Jtm55.js → architecture-U656AL7Q.C7CI7QkV.js} +1 -1
  21. package/dist/chunks/{architectureDiagram-VXUJARFQ.Ceo3pgxm.js → architectureDiagram-VXUJARFQ.B9CZxGrg.js} +4 -4
  22. package/dist/chunks/{blockDiagram-VD42YOAC.BvjaUl_a.js → blockDiagram-VD42YOAC.DPHK0nPj.js} +5 -5
  23. package/dist/chunks/{browser.DvUqvHKQ.js → browser.DNveIME9.js} +1 -1
  24. package/dist/chunks/{c4Diagram-YG6GDRKO.D8dful9J.js → c4Diagram-YG6GDRKO.CzhFF3ka.js} +2 -2
  25. package/dist/chunks/{channel.B6Qvl469.js → channel.DiQSGDER.js} +1 -1
  26. package/dist/chunks/{chunk-4BX2VUAB.CtVNPH4N.js → chunk-4BX2VUAB.DYJkaNUO.js} +1 -1
  27. package/dist/chunks/{chunk-55IACEB6.C0X4Jue2.js → chunk-55IACEB6.5Fa2WO_6.js} +1 -1
  28. package/dist/chunks/{chunk-B4BG7PRW.Conu6DQr.js → chunk-B4BG7PRW.BwVppCji.js} +4 -4
  29. package/dist/chunks/{chunk-DI55MBZ5.Dg38hF9_.js → chunk-DI55MBZ5.DsOsqUyd.js} +3 -3
  30. package/dist/chunks/{chunk-FMBD7UC4.BsUH0rhB.js → chunk-FMBD7UC4.B2zbt4RX.js} +1 -1
  31. package/dist/chunks/{chunk-QN33PNHL.0RjA_wXX.js → chunk-QN33PNHL.C4uUbvHm.js} +1 -1
  32. package/dist/chunks/{chunk-QZHKN3VN.Dz6HmVZY.js → chunk-QZHKN3VN.zom9Gu7S.js} +1 -1
  33. package/dist/chunks/{chunk-TZMSLE5B.Dxuv9zIm.js → chunk-TZMSLE5B.D37BJ9DQ.js} +1 -1
  34. package/dist/chunks/{classDiagram-2ON5EDUG.CRdX6xMs.js → classDiagram-2ON5EDUG.B38y8yzM.js} +2 -2
  35. package/dist/chunks/{classDiagram-v2-WZHVMYZB.CRdX6xMs.js → classDiagram-v2-WZHVMYZB.B38y8yzM.js} +2 -2
  36. package/dist/chunks/{clone.ByaUA-r2.js → clone.C_dmGnmF.js} +1 -1
  37. package/dist/chunks/{cose-bilkent-S5V4N54A.B5YgIJoQ.js → cose-bilkent-S5V4N54A.B-IUzWpy.js} +2 -2
  38. package/dist/chunks/{dagre-6UL2VRFP.uIiQ6FUj.js → dagre-6UL2VRFP.BVThCwwl.js} +5 -5
  39. package/dist/chunks/{diagram-PSM6KHXK.Bv8fX1RC.js → diagram-PSM6KHXK.BXF6T9pt.js} +4 -4
  40. package/dist/chunks/{diagram-QEK2KX5R.CY_Rq5A7.js → diagram-QEK2KX5R.CjKjCcWB.js} +3 -3
  41. package/dist/chunks/{diagram-S2PKOQOG.BfXCT4NH.js → diagram-S2PKOQOG.BNknxY1p.js} +3 -3
  42. package/dist/chunks/{erDiagram-Q2GNP2WA.BQrPmQkr.js → erDiagram-Q2GNP2WA.CFtxVaj1.js} +4 -4
  43. package/dist/chunks/{flowDiagram-NV44I4VS.DZwCRz8X.js → flowDiagram-NV44I4VS.QJyYNjO0.js} +5 -5
  44. package/dist/chunks/{ganttDiagram-JELNMOA3.CpqB-Lco.js → ganttDiagram-JELNMOA3.Bw3qGwGv.js} +2 -2
  45. package/dist/chunks/{gitGraph-F6HP7TQM.HmdqWT9j.js → gitGraph-F6HP7TQM.wJT1XvUI.js} +1 -1
  46. package/dist/chunks/{gitGraphDiagram-NY62KEGX.i87uZR96.js → gitGraphDiagram-NY62KEGX.Df8Hj879.js} +4 -4
  47. package/dist/chunks/{graph.C_jA5HK0.js → graph.FrpT6ZL7.js} +2 -2
  48. package/dist/chunks/{index.C5piY5Ss.js → index.BCG13ez4.js} +1 -1
  49. package/dist/chunks/{index.g3S1xCER.js → index.BbWF4ahv.js} +1 -1
  50. package/dist/chunks/{index.Y9mwgfBs.js → index.BcxzV___.js} +1 -1
  51. package/dist/chunks/{index.BggKJCTP.js → index.BnhrWTfG.js} +1 -1
  52. package/dist/chunks/{index.cXGGRddQ.js → index.Ckw06Qre.js} +3 -3
  53. package/dist/chunks/{index.BHwQBUwd.js → index.D__OOf7L.js} +1 -1
  54. package/dist/chunks/{index.BrfxZy3k.js → index.DniyWjdG.js} +2 -2
  55. package/dist/chunks/{index.Bm1g0K7E.js → index.QUMWKPPg.js} +3 -3
  56. package/dist/chunks/{index.BaE2Lbfd.js → index.cFkBRRtk.js} +1 -1
  57. package/dist/chunks/{info-NVLQJR56.ITJfPEdI.js → info-NVLQJR56.DY6KbgQZ.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.fkRhLS2k.js → infoDiagram-WHAUD3N6.CxU07Uaz.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BtGrOEeN.js → journeyDiagram-XKPGCS4Q.BfIAVQwZ.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.B5uNw32c.js → kanban-definition-3W4ZIXB7.CHNGSFPQ.js} +2 -2
  61. package/dist/chunks/{layout.CqkuHUdu.js → layout.MEArWR4j.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.Ci-ITaRl.js → mermaid-parser.core.Bm2PPbtx.js} +10 -10
  63. package/dist/chunks/{min.ZkscJwva.js → min.D_Z3VpiR.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.B6kzhC94.js → mindmap-definition-VGOIOE7T.CFgPuXql.js} +4 -4
  65. package/dist/chunks/{packet-BFZMPI3H.BMbAoa6x.js → packet-BFZMPI3H.5xnkqXMg.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.BMdBvM8R.js → pie-7BOR55EZ.TJXn9PA3.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.-lbBXtjO.js → pieDiagram-ADFJNKIX.Cl0OmnJC.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.Davn6069.js → quadrantDiagram-AYHSOK5B.BsCn9ZBZ.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.DYto8RZU.js → radar-NHE76QYJ.DPl1x_mG.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.CSGNYSn9.js → rehype-mermaid.CK2xcX8n.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.FMUxUq0R.js → requirementDiagram-UZGBJVZJ.D24MdwEw.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DTIl9DDr.js → sankeyDiagram-TZEHDZUN.DN8E1Yma.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.Bc9ucdVx.js → sequenceDiagram-WL72ISMW.CdAf_myJ.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.DiBSTbjk.js → stateDiagram-FKZM4ZOC.Dxcn59aw.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C3xcoMwn.js → stateDiagram-v2-4FDKWEC3.CYEBXfGv.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.BC01Xx8r.js → timeline-definition-IT6M3QCI.Z4vaoiTd.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.oysg6M_i.js → treemap-KMMF4GRG.CnpNvY26.js} +1 -1
  78. package/dist/chunks/{useMarkdown.D8WEecQ3.js → useMarkdown.DPT1eeX6.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.C3TO2yCs.js → xychartDiagram-PRI3JC2R.7mSrywd2.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +3 -3
@@ -1,11 +1,11 @@
1
1
  import { jsx as vt } from "react/jsx-runtime";
2
- import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.BrfxZy3k.js";
3
- import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.MBikKP52.js";
2
+ import { n as as, useUserPreferences as os, formatTimestamp as Vt } from "./index.DniyWjdG.js";
3
+ import { numberFormatter as ls, pluralize as us, Bubble as cs } from "./App.CDmH0G0j.js";
4
4
  import Zt from "clsx";
5
5
  import fs, { useState as Ae, useEffect as Jt, useContext as St } from "react";
6
- import { useMarkdown as hs } from "./useMarkdown.D8WEecQ3.js";
7
- import { ChatContext as ds, AppContext as ps } from "./LogoEntry.uN5foS5i.js";
8
- import { BubbleActions as ms } from "./BubbleActions.u9muFBXv.js";
6
+ import { useMarkdown as hs } from "./useMarkdown.DPT1eeX6.js";
7
+ import { ChatContext as ds, AppContext as ps } from "./LogoEntry.CxkQlFwX.js";
8
+ import { BubbleActions as ms } from "./BubbleActions.B4DdmpLt.js";
9
9
  const Me = {
10
10
  isEmpty: !0
11
11
  };
@@ -1,9 +1,9 @@
1
1
  import { jsx as a, Fragment as S, jsxs as b } from "react/jsx-runtime";
2
- import { Bubble as k } from "./App.MBikKP52.js";
3
- import { Button as C } from "./LogoEntry.uN5foS5i.js";
2
+ import { Bubble as k } from "./App.CDmH0G0j.js";
3
+ import { Button as C } from "./LogoEntry.CxkQlFwX.js";
4
4
  import { useState as H, useMemo as m, isValidElement as T, useEffect as O } from "react";
5
- import { useMarkdown as w } from "./useMarkdown.D8WEecQ3.js";
6
- import { BubbleCopyToClipboard as I } from "./BubbleActions.u9muFBXv.js";
5
+ import { useMarkdown as w } from "./useMarkdown.DPT1eeX6.js";
6
+ import { BubbleCopyToClipboard as I } from "./BubbleActions.B4DdmpLt.js";
7
7
  const L = 200, h = ({ string: e, idealLength: r = L }) => {
8
8
  if (e.length <= r)
9
9
  return {
@@ -1,54 +1,54 @@
1
- import { jsxs as u, jsx as e } from "react/jsx-runtime";
2
- import { y as w, V as y, INFINITE_SCROLL_THRESHOLD as Y } from "./index.BrfxZy3k.js";
3
- import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.uN5foS5i.js";
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
+ import { y as w, V as y, INFINITE_SCROLL_THRESHOLD as Y } from "./index.DniyWjdG.js";
3
+ import { IconCloseLight as K, CARDS as V, ButtonIcon as R, IconRestore as W, IconStarInCircle as G, IconStarInCircleLight as H } from "./LogoEntry.CxkQlFwX.js";
4
4
  import { useState as j, useRef as k, useEffect as O, Fragment as F } from "react";
5
- import c from "clsx";
6
- import { Table as q, TableHead as J, TableRow as S, TableBody as Q, TableCell as l, TableCellSort as E, ButtonIconDelete as X } from "./ButtonIconDelete.UIDZwKOu.js";
7
- import { pluralize as v, ResponsiveTooltip as I, numberFormatter as Z, isProbablyMobile as ee } from "./App.MBikKP52.js";
8
- const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
5
+ import a from "clsx";
6
+ import { Table as q, TableHead as J, TableRow as S, TableBody as Q, TableCell as o, TableCellSort as v, ButtonIconDelete as X } from "./ButtonIconDelete.BIQ0mdyX.js";
7
+ import { pluralize as E, ResponsiveTooltip as I, numberFormatter as Z, isProbablyMobile as ee } from "./App.CDmH0G0j.js";
8
+ const re = "av-pill", te = ({ variant: t }) => a("rounded-xs border", {
9
9
  "border-border-information": t === "information",
10
10
  "border-border-warning": t === "warning",
11
11
  "border-border-success": t === "success",
12
12
  "border-border-error": t === "error"
13
- }), P = ({ variant: t }) => c("not-prose", {
13
+ }), P = ({ variant: t }) => a("not-prose", {
14
14
  "text-copy-information": t === "information",
15
15
  "text-copy-warning": t === "warning",
16
16
  "text-copy-success": t === "success",
17
17
  "text-copy-error": t === "error"
18
- }), se = ({ variant: t }) => c({
18
+ }), se = ({ variant: t }) => a({
19
19
  "bg-surface-information": t === "information",
20
20
  "bg-surface-warning": t === "warning",
21
21
  "bg-surface-success": t === "success",
22
22
  "bg-surface-error": t === "error"
23
- }), oe = (t) => {
24
- const { className: a, variant: n } = t;
23
+ }), le = (t) => {
24
+ const { className: c, variant: n } = t;
25
25
  return {
26
- main: c(re, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", te({
26
+ main: a(re, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", te({
27
27
  variant: n
28
28
  }), P({
29
29
  variant: n
30
- }), se(t), a),
31
- button: c("inline-flex items-center justify-center", "ml-1", "focus:outline", "focus:outline-1", "focus:outline-offset-1", "focus:outline-focus-dark", "hover:bg-surface-medium/50", "rounded-full", P({
30
+ }), se(t), c),
31
+ button: a("inline-flex items-center justify-center", "ml-1", "focus:outline", "focus:outline-1", "focus:outline-offset-1", "focus:outline-focus-dark", "hover:bg-surface-medium/50", "rounded-full", P({
32
32
  variant: n
33
33
  }))
34
34
  };
35
- }, U = ({ label: t, className: a, variant: n = "information", description: m, onClose: d }) => {
36
- const [p, g] = j(!0), C = (x) => {
37
- d && (d(x), x.defaultPrevented || g(!1));
35
+ }, U = ({ label: t, className: c, variant: n = "information", description: u, onClose: d }) => {
36
+ const [b, g] = j(!0), C = (h) => {
37
+ d && (d(h), h.defaultPrevented || g(!1));
38
38
  };
39
- if (!p)
39
+ if (!b)
40
40
  return null;
41
- const f = oe({
42
- className: a,
41
+ const f = le({
42
+ className: c,
43
43
  variant: n
44
44
  });
45
- return /* @__PURE__ */ u("div", {
45
+ return /* @__PURE__ */ m("div", {
46
46
  role: "text",
47
47
  className: f.main,
48
48
  children: [
49
- m && /* @__PURE__ */ e("span", {
49
+ u && /* @__PURE__ */ e("span", {
50
50
  className: "sr-only",
51
- children: m
51
+ children: u
52
52
  }),
53
53
  /* @__PURE__ */ e("span", {
54
54
  children: t
@@ -64,43 +64,43 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
64
64
  })
65
65
  ]
66
66
  });
67
- }, o = {
67
+ }, l = {
68
68
  ROW: "row",
69
69
  TIMESTAMP: w,
70
70
  SUMMARY: "summary",
71
71
  TOKEN_USAGE: y,
72
72
  ACTIONS: "actions"
73
- }, le = [
74
- o.ROW,
75
- o.TIMESTAMP,
76
- o.SUMMARY,
77
- o.ACTIONS
73
+ }, oe = [
74
+ l.ROW,
75
+ l.TIMESTAMP,
76
+ l.SUMMARY,
77
+ l.ACTIONS
78
78
  ], ne = [
79
- o.ROW,
80
- o.SUMMARY,
81
- o.TIMESTAMP,
82
- o.TOKEN_USAGE,
83
- o.ACTIONS
84
- ], he = ({
79
+ l.ROW,
80
+ l.SUMMARY,
81
+ l.TIMESTAMP,
82
+ l.TOKEN_USAGE,
83
+ l.ACTIONS
84
+ ], xe = ({
85
85
  filteredHistory: t,
86
- historyState: a,
86
+ historyState: c,
87
87
  lastEntryToLoad: n,
88
- onClickSort: m,
88
+ onClickSort: u,
89
89
  onClickRestore: d,
90
- onClickDelete: p,
90
+ onClickDelete: b,
91
91
  onClickFavorite: g,
92
92
  infinityScrollMarkerRef: C,
93
93
  isLoading: f = !1,
94
- totalHistoryCount: x,
94
+ totalHistoryCount: h,
95
95
  isFiltered: D = !1,
96
96
  isSearchActive: M = !1,
97
- activeChatId: h
97
+ activeChatId: x
98
98
  }) => {
99
99
  const L = ee(), T = k(null), N = k(!1);
100
100
  O(() => {
101
101
  N.current = !1;
102
- }, [h]), O(() => {
103
- if (h && T.current && !N.current) {
102
+ }, [x]), O(() => {
103
+ if (x && T.current && !N.current) {
104
104
  N.current = !0;
105
105
  const r = setTimeout(() => {
106
106
  T.current?.scrollIntoView({
@@ -110,61 +110,61 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
110
110
  }, 100);
111
111
  return () => clearTimeout(r);
112
112
  }
113
- }, [h, n]);
114
- const A = L ? le : ne, B = (r) => {
113
+ }, [x, n]);
114
+ const A = L ? oe : ne, B = (r) => {
115
115
  switch (r) {
116
- case o.ROW:
117
- return /* @__PURE__ */ e(l, { className: "sr-only", children: "Row" }, r);
118
- case o.TIMESTAMP:
119
- return M ? /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
120
- E,
116
+ case l.ROW:
117
+ return /* @__PURE__ */ e(o, { className: "sr-only", children: "Row" }, r);
118
+ case l.TIMESTAMP:
119
+ return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
120
+ v,
121
121
  {
122
122
  focusMode: "system",
123
123
  buttonClassName: "text-xs sm:text-sm",
124
124
  cellId: w,
125
125
  align: "left",
126
- sortDirection: a.sortDirection,
127
- sortedCell: a.sortedCell,
126
+ sortDirection: c.sortDirection,
127
+ sortedCell: c.sortedCell,
128
128
  onClick: () => {
129
- m(w);
129
+ u(w);
130
130
  },
131
131
  children: "Date"
132
132
  },
133
133
  r
134
134
  );
135
- case o.SUMMARY:
136
- return /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Summary" }, r);
137
- case o.TOKEN_USAGE:
138
- return M ? /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
139
- E,
135
+ case l.SUMMARY:
136
+ return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Summary" }, r);
137
+ case l.TOKEN_USAGE:
138
+ return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
139
+ v,
140
140
  {
141
141
  focusMode: "system",
142
142
  buttonClassName: "text-xs sm:text-sm",
143
143
  cellId: y,
144
144
  align: "right",
145
- sortDirection: a.sortDirection,
146
- sortedCell: a.sortedCell,
145
+ sortDirection: c.sortDirection,
146
+ sortedCell: c.sortedCell,
147
147
  onClick: () => {
148
- m(y);
148
+ u(y);
149
149
  },
150
150
  children: "Tokens"
151
151
  },
152
152
  r
153
153
  );
154
- case o.ACTIONS:
155
- return /* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
154
+ case l.ACTIONS:
155
+ return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
156
156
  default:
157
157
  return null;
158
158
  }
159
- }, z = (r, s, b) => {
159
+ }, z = (r, s, p) => {
160
160
  switch (r) {
161
- case o.ROW:
162
- return /* @__PURE__ */ e(l, { children: b + 1 }, r);
163
- case o.TIMESTAMP:
161
+ case l.ROW:
162
+ return /* @__PURE__ */ e(o, { children: p + 1 }, r);
163
+ case l.TIMESTAMP:
164
164
  return /* @__PURE__ */ e(
165
- l,
165
+ o,
166
166
  {
167
- className: c(
167
+ className: a(
168
168
  "dark:text-copy-medium",
169
169
  "sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
170
170
  ),
@@ -172,20 +172,20 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
172
172
  },
173
173
  r
174
174
  );
175
- case o.SUMMARY: {
175
+ case l.SUMMARY: {
176
176
  const i = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null, _ = i !== null && i < 40 ? "warning" : "success", $ = s.keywordMatch === !0;
177
177
  return /* @__PURE__ */ e(
178
- l,
178
+ o,
179
179
  {
180
- className: c(
180
+ className: a(
181
181
  "dark:text-white",
182
182
  "max-w-25 sm:max-w-full text-xs sm:text-sm"
183
183
  ),
184
184
  style: {
185
185
  wordBreak: "break-word"
186
186
  },
187
- children: /* @__PURE__ */ u("div", { className: "flex flex-col gap-1", children: [
188
- /* @__PURE__ */ u("div", { className: "flex flex-wrap gap-1", children: [
187
+ children: /* @__PURE__ */ m("div", { className: "flex flex-col gap-1", children: [
188
+ /* @__PURE__ */ m("div", { className: "flex flex-wrap gap-1", children: [
189
189
  i !== null && /* @__PURE__ */ e(
190
190
  U,
191
191
  {
@@ -201,22 +201,22 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
201
201
  r
202
202
  );
203
203
  }
204
- case o.TOKEN_USAGE:
204
+ case l.TOKEN_USAGE:
205
205
  return /* @__PURE__ */ e(
206
- l,
206
+ o,
207
207
  {
208
- className: c("dark:text-copy-medium", "text-xs sm:text-sm"),
208
+ className: a("dark:text-copy-medium", "text-xs sm:text-sm"),
209
209
  align: "right",
210
210
  children: s.tokenUsage ? Z.format(s.tokenUsage) : "0"
211
211
  },
212
212
  r
213
213
  );
214
- case o.ACTIONS:
214
+ case l.ACTIONS:
215
215
  return /* @__PURE__ */ e(
216
- l,
216
+ o,
217
217
  {
218
218
  className: "border-l border-table-light dark:border-table-dark",
219
- children: /* @__PURE__ */ u("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
219
+ children: /* @__PURE__ */ m("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
220
220
  /* @__PURE__ */ e(
221
221
  I,
222
222
  {
@@ -268,7 +268,7 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
268
268
  label: "Delete chat",
269
269
  disabled: !1,
270
270
  onClick: () => {
271
- p(s);
271
+ b(s);
272
272
  }
273
273
  }
274
274
  )
@@ -280,28 +280,32 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
280
280
  return null;
281
281
  }
282
282
  };
283
- return /* @__PURE__ */ u(
283
+ return /* @__PURE__ */ m(
284
284
  q,
285
285
  {
286
286
  stickyHeader: !0,
287
287
  compact: !0,
288
288
  mode: "alt-system",
289
289
  caption: (() => {
290
- const r = t.length, s = x ?? r;
291
- return D && s > r ? `Showing ${v(`${r} chat`, r)} out of ${s}` : v(`${r} chat`, r);
290
+ const r = t.length, s = h ?? r;
291
+ return D && s > r ? `Showing ${E(`${r} chat`, r)} out of ${s}` : E(`${r} chat`, r);
292
292
  })(),
293
+ wrapperClassName: a(
294
+ "max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]",
295
+ "sm:max-h-[clamp(12rem,calc(100dvh-24rem),60dvh)]"
296
+ ),
293
297
  disabled: f && t.length > 0,
294
298
  children: [
295
299
  /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(S, { children: A.map((r) => B(r)) }) }),
296
- /* @__PURE__ */ e(Q, { children: f && t.length === 0 ? /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(l, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, n).map((r, s) => {
297
- const b = h === r.id;
298
- return r?.summary ? /* @__PURE__ */ u(F, { children: [
300
+ /* @__PURE__ */ e(Q, { children: f && t.length === 0 ? /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(o, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, n).map((r, s) => {
301
+ const p = x === r.id;
302
+ return r?.summary ? /* @__PURE__ */ m(F, { children: [
299
303
  s === n - Y && /* @__PURE__ */ e("tr", { ref: C }),
300
304
  /* @__PURE__ */ e(
301
305
  S,
302
306
  {
303
- ref: b ? T : void 0,
304
- active: b,
307
+ ref: p ? T : void 0,
308
+ active: p,
305
309
  children: A.map(
306
310
  (i) => z(i, r, s)
307
311
  )
@@ -314,5 +318,5 @@ const re = "av-pill", te = ({ variant: t }) => c("rounded-xs border", {
314
318
  );
315
319
  };
316
320
  export {
317
- he as ChatHistoryTable
321
+ xe as ChatHistoryTable
318
322
  };