@versini/sassysaint 8.107.2 → 8.107.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.-F_kMw74.js → AboutChangelog.DeRcKN5H.js} +2 -2
- package/dist/chunks/{AboutEntry.DR75PxCw.js → AboutEntry.6mTHwkfb.js} +7 -7
- package/dist/chunks/{App.3M79T1qj.js → App.DTjbiLAP.js} +1753 -2012
- package/dist/chunks/{Bubble.CA6Nm1l0.js → Bubble.ltolxxta.js} +47 -86
- package/dist/chunks/{Chart.DwZeH0GA.js → Chart.BzOmOhOW.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Bm-gE-ev.js → ChatBubbleAssistant.lGE_8ao1.js} +200 -213
- package/dist/chunks/{ChatBubbleUser.lLvteBf3.js → ChatBubbleUser.DC661ePq.js} +28 -41
- package/dist/chunks/{ChatHistoryTable.yS0g-92Q.js → ChatHistoryTable.BkRFWpsA.js} +108 -125
- package/dist/chunks/{Table.AnN2X7VF.js → DeleteButtonIcon.P0LgJDjE.js} +125 -116
- package/dist/chunks/{HistoryEntry.DfNmYlfN.js → HistoryEntry.uUjsDuT0.js} +6 -6
- package/dist/chunks/{LoginEntry.BccxHPtX.js → LoginEntry.BGZdTDwf.js} +4 -4
- package/dist/chunks/{LogoEntry.CFw0uv25.js → LogoEntry.Bpddd0yA.js} +301 -430
- package/dist/chunks/{MemoriesEntry.Cdao1cmo.js → MemoriesEntry.BYQm9cuU.js} +164 -169
- package/dist/chunks/{ProfileEntry.b8NaUHNW.js → ProfileEntry.BqcZXSeT.js} +4 -4
- package/dist/chunks/{SettingsEntry.CjuYtYSp.js → SettingsEntry.BdC5Vyof.js} +5 -5
- package/dist/chunks/{UsageEntry.cp-aSBF9.js → UsageEntry._O8Q6TwS.js} +5 -5
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.CgpXJ39e.js → index.BlviGqw0.js} +4 -4
- package/dist/chunks/{index.BSdZTOf6.js → index.BxbWxVtd.js} +1 -1
- package/dist/chunks/index.C70LcKzU.js +279 -0
- package/dist/chunks/{index.CLVeqfU3.js → index.CYcieK1H.js} +34 -47
- package/dist/chunks/{index.Dbw9MfpE.js → index.CaofbEIP.js} +3 -19
- package/dist/chunks/{index.B6FhZIr6.js → index.D2nN0rC6.js} +1 -1
- package/dist/chunks/{index.DhQEm5fx.js → index.DG-VhqKw.js} +1 -1
- package/dist/chunks/{index.DYkMD3_1.js → index.DuxTgnco.js} +56 -69
- package/dist/chunks/{index.DHLA2Fes.js → index.s8Izh8-Q.js} +2 -2
- package/dist/chunks/{useMarkdown.CoVPoXwW.js → useMarkdown.DjEZz9lH.js} +316 -329
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -7
- package/dist/style.css +1 -14
- package/package.json +5 -5
- package/dist/chunks/index.BAdB50GZ.js +0 -103
- package/dist/chunks/index.CyKPGk1D.js +0 -305
|
@@ -1,22 +1,9 @@
|
|
|
1
|
-
import { jsx as i, Fragment as
|
|
2
|
-
import { Button as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { useMarkdown as
|
|
5
|
-
import { AsyncBubble as
|
|
6
|
-
|
|
7
|
-
@versini/ui-truncate v6.1.8
|
|
8
|
-
© 2025 gizmette.com
|
|
9
|
-
*/
|
|
10
|
-
try {
|
|
11
|
-
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
12
|
-
version: "6.1.8",
|
|
13
|
-
buildTime: "12/16/2025 06:23 PM EST",
|
|
14
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-truncate",
|
|
15
|
-
license: "MIT"
|
|
16
|
-
});
|
|
17
|
-
} catch {
|
|
18
|
-
}
|
|
19
|
-
const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
1
|
+
import { jsx as i, Fragment as C, jsxs as S } from "react/jsx-runtime";
|
|
2
|
+
import { Button as b } from "./LogoEntry.Bpddd0yA.js";
|
|
3
|
+
import { useState as k, useMemo as m, isValidElement as T, useEffect as H } from "react";
|
|
4
|
+
import { useMarkdown as h } from "./useMarkdown.DjEZz9lH.js";
|
|
5
|
+
import { AsyncBubble as M } from "./App.DTjbiLAP.js";
|
|
6
|
+
const O = 200, w = ({ string: e, idealLength: r = O }) => {
|
|
20
7
|
if (e.length <= r)
|
|
21
8
|
return {
|
|
22
9
|
string: e,
|
|
@@ -32,7 +19,7 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
32
19
|
string: e.slice(0, r + s),
|
|
33
20
|
isTruncated: !0
|
|
34
21
|
};
|
|
35
|
-
}, l = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(l).join("") : /* @__PURE__ */ T(e) ? l(e.props.children) : "",
|
|
22
|
+
}, l = (e) => e == null || typeof e == "boolean" ? "" : typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(l).join("") : /* @__PURE__ */ T(e) ? l(e.props.children) : "", I = /* @__PURE__ */ new Set([
|
|
36
23
|
"P",
|
|
37
24
|
"DIV",
|
|
38
25
|
"UL",
|
|
@@ -66,29 +53,29 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
66
53
|
return e.some(u);
|
|
67
54
|
if (/* @__PURE__ */ T(e)) {
|
|
68
55
|
const r = e;
|
|
69
|
-
return typeof r.type == "string" &&
|
|
56
|
+
return typeof r.type == "string" && I.has(r.type.toUpperCase()) ? !0 : u(r.props.children);
|
|
70
57
|
}
|
|
71
58
|
return !1;
|
|
72
|
-
},
|
|
73
|
-
const [t, y] =
|
|
59
|
+
}, L = ({ children: e, length: r = 200, mode: n = "system", focusMode: c = "system", enableRichTruncation: s = !1, noBorder: d = !1 }) => {
|
|
60
|
+
const [t, y] = k(!1), g = typeof e != "string" && !s, f = m(() => typeof e == "string" ? e : l(e), [
|
|
74
61
|
e
|
|
75
|
-
]), { string:
|
|
76
|
-
string:
|
|
62
|
+
]), { string: p, isTruncated: a } = m(() => w({
|
|
63
|
+
string: f,
|
|
77
64
|
idealLength: r
|
|
78
65
|
}), [
|
|
79
|
-
|
|
66
|
+
f,
|
|
80
67
|
r
|
|
81
|
-
]), E = s && a && !t,
|
|
82
|
-
|
|
68
|
+
]), E = s && a && !t, A = (x) => {
|
|
69
|
+
x.preventDefault(), y(!t);
|
|
83
70
|
};
|
|
84
71
|
if (g)
|
|
85
|
-
return /* @__PURE__ */ i(
|
|
72
|
+
return /* @__PURE__ */ i(C, {
|
|
86
73
|
children: e
|
|
87
74
|
});
|
|
88
75
|
let o;
|
|
89
|
-
a ? t ? o = e : o =
|
|
90
|
-
const
|
|
91
|
-
return /* @__PURE__ */
|
|
76
|
+
a ? t ? o = e : o = p : o = e;
|
|
77
|
+
const B = s ? u(e) : !1;
|
|
78
|
+
return /* @__PURE__ */ S("span", {
|
|
92
79
|
style: {
|
|
93
80
|
wordBreak: "break-word"
|
|
94
81
|
},
|
|
@@ -96,24 +83,24 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
96
83
|
"aria-expanded": a ? t : void 0,
|
|
97
84
|
children: [
|
|
98
85
|
o,
|
|
99
|
-
a && /* @__PURE__ */ i(
|
|
86
|
+
a && /* @__PURE__ */ i(b, {
|
|
100
87
|
mode: n,
|
|
101
88
|
focusMode: c,
|
|
102
89
|
noBorder: d,
|
|
103
|
-
className: !(s && t &&
|
|
90
|
+
className: !(s && t && B) ? "ml-2" : void 0,
|
|
104
91
|
size: "small",
|
|
105
|
-
onClick:
|
|
92
|
+
onClick: A,
|
|
106
93
|
"aria-label": t ? "Show less" : "Show more",
|
|
107
94
|
children: t ? "less..." : "more..."
|
|
108
95
|
})
|
|
109
96
|
]
|
|
110
97
|
});
|
|
111
|
-
},
|
|
112
|
-
const [r, n] =
|
|
113
|
-
return
|
|
98
|
+
}, R = ({ content: e }) => {
|
|
99
|
+
const [r, n] = h();
|
|
100
|
+
return H(() => {
|
|
114
101
|
e && n(e);
|
|
115
102
|
}, [e, n]), /* @__PURE__ */ i(
|
|
116
|
-
|
|
103
|
+
M,
|
|
117
104
|
{
|
|
118
105
|
gradient: "medium",
|
|
119
106
|
tail: !0,
|
|
@@ -123,10 +110,10 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
123
110
|
kind: "right",
|
|
124
111
|
className: "mt-3",
|
|
125
112
|
contentClassName: "prose prose-lighter prose-p:only:my-0",
|
|
126
|
-
children: /* @__PURE__ */ i(
|
|
113
|
+
children: /* @__PURE__ */ i(L, { mode: "dark", focusMode: "light", noBorder: !0, enableRichTruncation: !0, children: r })
|
|
127
114
|
}
|
|
128
115
|
);
|
|
129
116
|
};
|
|
130
117
|
export {
|
|
131
|
-
|
|
118
|
+
R as default
|
|
132
119
|
};
|
|
@@ -1,29 +1,16 @@
|
|
|
1
1
|
import { jsxs as c, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { y as
|
|
3
|
-
import { IconCloseLight as
|
|
4
|
-
import { useState as
|
|
2
|
+
import { y as N, v as S, INFINITE_SCROLL_THRESHOLD as L } from "./index.CaofbEIP.js";
|
|
3
|
+
import { IconCloseLight as D, CARDS as z, ButtonIcon as T, IconRestore as B, IconStarInCircle as _, IconStarInCircleLight as $ } from "./LogoEntry.Bpddd0yA.js";
|
|
4
|
+
import { useState as Y, Fragment as K } from "react";
|
|
5
5
|
import i from "clsx";
|
|
6
|
-
import { H as W, F
|
|
7
|
-
import { pluralize as
|
|
8
|
-
/*!
|
|
9
|
-
@versini/ui-pill v5.2.4
|
|
10
|
-
© 2025 gizmette.com
|
|
11
|
-
*/
|
|
12
|
-
try {
|
|
13
|
-
window.__VERSINI_UI_PILL__ || (window.__VERSINI_UI_PILL__ = {
|
|
14
|
-
version: "5.2.4",
|
|
15
|
-
buildTime: "12/15/2025 01:22 PM EST",
|
|
16
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-pill",
|
|
17
|
-
license: "MIT"
|
|
18
|
-
});
|
|
19
|
-
} catch {
|
|
20
|
-
}
|
|
6
|
+
import { H as W, F, q as C, Y as G, O as o, J as w, DeleteButtonIcon as H } from "./DeleteButtonIcon.P0LgJDjE.js";
|
|
7
|
+
import { pluralize as A, ResponsiveTooltip as k, numberFormatter as j, isProbablyMobile as V } from "./App.DTjbiLAP.js";
|
|
21
8
|
const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
22
9
|
"border-border-information": t === "information",
|
|
23
10
|
"border-border-warning": t === "warning",
|
|
24
11
|
"border-border-success": t === "success",
|
|
25
12
|
"border-border-error": t === "error"
|
|
26
|
-
}),
|
|
13
|
+
}), O = ({ variant: t }) => i("not-prose", {
|
|
27
14
|
"text-copy-information": t === "information",
|
|
28
15
|
"text-copy-warning": t === "warning",
|
|
29
16
|
"text-copy-success": t === "success",
|
|
@@ -34,30 +21,30 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
34
21
|
"bg-surface-success": t === "success",
|
|
35
22
|
"bg-surface-error": t === "error"
|
|
36
23
|
}), X = (t) => {
|
|
37
|
-
const { className:
|
|
24
|
+
const { className: l, variant: a } = t;
|
|
38
25
|
return {
|
|
39
26
|
main: i(q, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", J({
|
|
40
|
-
variant:
|
|
41
|
-
}),
|
|
42
|
-
variant:
|
|
43
|
-
}), Q(t),
|
|
44
|
-
button: i("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",
|
|
45
|
-
variant:
|
|
27
|
+
variant: a
|
|
28
|
+
}), O({
|
|
29
|
+
variant: a
|
|
30
|
+
}), Q(t), l),
|
|
31
|
+
button: i("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", O({
|
|
32
|
+
variant: a
|
|
46
33
|
}))
|
|
47
34
|
};
|
|
48
|
-
},
|
|
49
|
-
const [
|
|
50
|
-
|
|
35
|
+
}, R = ({ label: t, className: l, variant: a = "information", description: m, onClose: u }) => {
|
|
36
|
+
const [h, p] = Y(!0), g = (f) => {
|
|
37
|
+
u && (u(f), f.defaultPrevented || p(!1));
|
|
51
38
|
};
|
|
52
|
-
if (!
|
|
39
|
+
if (!h)
|
|
53
40
|
return null;
|
|
54
|
-
const
|
|
55
|
-
className:
|
|
56
|
-
variant:
|
|
41
|
+
const d = X({
|
|
42
|
+
className: l,
|
|
43
|
+
variant: a
|
|
57
44
|
});
|
|
58
45
|
return /* @__PURE__ */ c("div", {
|
|
59
46
|
role: "text",
|
|
60
|
-
className:
|
|
47
|
+
className: d.main,
|
|
61
48
|
children: [
|
|
62
49
|
m && /* @__PURE__ */ e("span", {
|
|
63
50
|
className: "sr-only",
|
|
@@ -66,100 +53,100 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
66
53
|
/* @__PURE__ */ e("span", {
|
|
67
54
|
children: t
|
|
68
55
|
}),
|
|
69
|
-
|
|
56
|
+
u && /* @__PURE__ */ e("button", {
|
|
70
57
|
type: "button",
|
|
71
58
|
onClick: g,
|
|
72
|
-
className:
|
|
59
|
+
className: d.button,
|
|
73
60
|
"aria-label": "Close",
|
|
74
|
-
children: /* @__PURE__ */ e(
|
|
61
|
+
children: /* @__PURE__ */ e(D, {
|
|
75
62
|
size: "size-3"
|
|
76
63
|
})
|
|
77
64
|
})
|
|
78
65
|
]
|
|
79
66
|
});
|
|
80
|
-
},
|
|
67
|
+
}, n = {
|
|
81
68
|
ROW: "row",
|
|
82
|
-
TIMESTAMP:
|
|
69
|
+
TIMESTAMP: N,
|
|
83
70
|
SUMMARY: "summary",
|
|
84
|
-
TOKEN_USAGE:
|
|
71
|
+
TOKEN_USAGE: S,
|
|
85
72
|
ACTIONS: "actions"
|
|
86
73
|
}, Z = [
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
74
|
+
n.ROW,
|
|
75
|
+
n.TIMESTAMP,
|
|
76
|
+
n.SUMMARY,
|
|
77
|
+
n.ACTIONS
|
|
91
78
|
], ee = [
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
79
|
+
n.ROW,
|
|
80
|
+
n.SUMMARY,
|
|
81
|
+
n.TIMESTAMP,
|
|
82
|
+
n.TOKEN_USAGE,
|
|
83
|
+
n.ACTIONS
|
|
97
84
|
], me = ({
|
|
98
85
|
filteredHistory: t,
|
|
99
|
-
historyState:
|
|
100
|
-
lastEntryToLoad:
|
|
86
|
+
historyState: l,
|
|
87
|
+
lastEntryToLoad: a,
|
|
101
88
|
onClickSort: m,
|
|
102
|
-
onClickRestore:
|
|
103
|
-
onClickDelete:
|
|
89
|
+
onClickRestore: u,
|
|
90
|
+
onClickDelete: h,
|
|
104
91
|
onClickFavorite: p,
|
|
105
92
|
infinityScrollMarkerRef: g,
|
|
106
|
-
isLoading:
|
|
93
|
+
isLoading: d = !1,
|
|
107
94
|
totalHistoryCount: f,
|
|
108
|
-
isFiltered:
|
|
95
|
+
isFiltered: E = !1,
|
|
109
96
|
isSearchActive: M = !1
|
|
110
97
|
}) => {
|
|
111
|
-
const
|
|
98
|
+
const y = V() ? Z : ee, I = (r) => {
|
|
112
99
|
switch (r) {
|
|
113
|
-
case
|
|
114
|
-
return /* @__PURE__ */ e(
|
|
115
|
-
case
|
|
116
|
-
return M ? /* @__PURE__ */ e(
|
|
117
|
-
|
|
100
|
+
case n.ROW:
|
|
101
|
+
return /* @__PURE__ */ e(o, { className: "sr-only", children: "Row" }, r);
|
|
102
|
+
case n.TIMESTAMP:
|
|
103
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Date" }, r) : /* @__PURE__ */ e(
|
|
104
|
+
w,
|
|
118
105
|
{
|
|
119
106
|
focusMode: "system",
|
|
120
107
|
buttonClassName: "text-xs sm:text-sm",
|
|
121
|
-
cellId:
|
|
108
|
+
cellId: N,
|
|
122
109
|
align: "left",
|
|
123
|
-
sortDirection:
|
|
124
|
-
sortedCell:
|
|
110
|
+
sortDirection: l.sortDirection,
|
|
111
|
+
sortedCell: l.sortedCell,
|
|
125
112
|
onClick: () => {
|
|
126
|
-
m(
|
|
113
|
+
m(N);
|
|
127
114
|
},
|
|
128
115
|
children: "Date"
|
|
129
116
|
},
|
|
130
117
|
r
|
|
131
118
|
);
|
|
132
|
-
case
|
|
133
|
-
return /* @__PURE__ */ e(
|
|
134
|
-
case
|
|
135
|
-
return M ? /* @__PURE__ */ e(
|
|
136
|
-
|
|
119
|
+
case n.SUMMARY:
|
|
120
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm", children: "Summary" }, r);
|
|
121
|
+
case n.TOKEN_USAGE:
|
|
122
|
+
return M ? /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Tokens" }, r) : /* @__PURE__ */ e(
|
|
123
|
+
w,
|
|
137
124
|
{
|
|
138
125
|
focusMode: "system",
|
|
139
126
|
buttonClassName: "text-xs sm:text-sm",
|
|
140
|
-
cellId:
|
|
127
|
+
cellId: S,
|
|
141
128
|
align: "right",
|
|
142
|
-
sortDirection:
|
|
143
|
-
sortedCell:
|
|
129
|
+
sortDirection: l.sortDirection,
|
|
130
|
+
sortedCell: l.sortedCell,
|
|
144
131
|
onClick: () => {
|
|
145
|
-
m(
|
|
132
|
+
m(S);
|
|
146
133
|
},
|
|
147
134
|
children: "Tokens"
|
|
148
135
|
},
|
|
149
136
|
r
|
|
150
137
|
);
|
|
151
|
-
case
|
|
152
|
-
return /* @__PURE__ */ e(
|
|
138
|
+
case n.ACTIONS:
|
|
139
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
153
140
|
default:
|
|
154
141
|
return null;
|
|
155
142
|
}
|
|
156
|
-
},
|
|
143
|
+
}, v = (r, s, b) => {
|
|
157
144
|
switch (r) {
|
|
158
|
-
case
|
|
159
|
-
return /* @__PURE__ */ e(
|
|
160
|
-
case
|
|
145
|
+
case n.ROW:
|
|
146
|
+
return /* @__PURE__ */ e(o, { children: b + 1 }, r);
|
|
147
|
+
case n.TIMESTAMP:
|
|
161
148
|
return /* @__PURE__ */ e(
|
|
162
|
-
|
|
149
|
+
o,
|
|
163
150
|
{
|
|
164
151
|
className: i(
|
|
165
152
|
"dark:text-copy-medium",
|
|
@@ -169,10 +156,10 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
169
156
|
},
|
|
170
157
|
r
|
|
171
158
|
);
|
|
172
|
-
case
|
|
173
|
-
const
|
|
159
|
+
case n.SUMMARY: {
|
|
160
|
+
const x = s.similarityScore !== void 0 && s.similarityScore !== null ? Math.round(s.similarityScore * 100) : null, P = x !== null && x < 40 ? "warning" : "success", U = s.keywordMatch === !0;
|
|
174
161
|
return /* @__PURE__ */ e(
|
|
175
|
-
|
|
162
|
+
o,
|
|
176
163
|
{
|
|
177
164
|
className: i(
|
|
178
165
|
"dark:text-white",
|
|
@@ -183,14 +170,14 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
183
170
|
},
|
|
184
171
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
|
|
185
172
|
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-1", children: [
|
|
186
|
-
|
|
187
|
-
|
|
173
|
+
x !== null && /* @__PURE__ */ e(
|
|
174
|
+
R,
|
|
188
175
|
{
|
|
189
|
-
variant:
|
|
190
|
-
label: `${
|
|
176
|
+
variant: P,
|
|
177
|
+
label: `${x}% semantic`
|
|
191
178
|
}
|
|
192
179
|
),
|
|
193
|
-
|
|
180
|
+
U && /* @__PURE__ */ e(R, { variant: "information", label: "keyword" })
|
|
194
181
|
] }),
|
|
195
182
|
/* @__PURE__ */ e("span", { children: s.summary })
|
|
196
183
|
] })
|
|
@@ -198,49 +185,55 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
198
185
|
r
|
|
199
186
|
);
|
|
200
187
|
}
|
|
201
|
-
case
|
|
188
|
+
case n.TOKEN_USAGE:
|
|
202
189
|
return /* @__PURE__ */ e(
|
|
203
|
-
|
|
190
|
+
o,
|
|
204
191
|
{
|
|
205
192
|
className: i("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
206
193
|
align: "right",
|
|
207
|
-
children: s.tokenUsage ?
|
|
194
|
+
children: s.tokenUsage ? j.format(s.tokenUsage) : "0"
|
|
208
195
|
},
|
|
209
196
|
r
|
|
210
197
|
);
|
|
211
|
-
case
|
|
198
|
+
case n.ACTIONS:
|
|
212
199
|
return /* @__PURE__ */ e(
|
|
213
|
-
|
|
200
|
+
o,
|
|
214
201
|
{
|
|
215
202
|
className: "border-l border-table-light dark:border-table-dark",
|
|
216
203
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
217
204
|
/* @__PURE__ */ e(
|
|
218
|
-
|
|
205
|
+
k,
|
|
219
206
|
{
|
|
220
207
|
label: "Restore chat",
|
|
221
208
|
placement: "top",
|
|
222
209
|
trigger: /* @__PURE__ */ e(
|
|
223
|
-
|
|
210
|
+
T,
|
|
224
211
|
{
|
|
225
212
|
noBorder: !0,
|
|
226
213
|
label: "Restore chat",
|
|
227
214
|
variant: "primary",
|
|
228
|
-
iconClassName: "text-copy-success dark:text-copy-success-light",
|
|
229
215
|
onClick: async () => {
|
|
230
|
-
await
|
|
216
|
+
await u(s);
|
|
231
217
|
},
|
|
232
|
-
children: /* @__PURE__ */ e(
|
|
218
|
+
children: /* @__PURE__ */ e(
|
|
219
|
+
B,
|
|
220
|
+
{
|
|
221
|
+
size: "size-3",
|
|
222
|
+
monotone: !0,
|
|
223
|
+
className: "text-copy-success dark:text-copy-success-light"
|
|
224
|
+
}
|
|
225
|
+
)
|
|
233
226
|
}
|
|
234
227
|
)
|
|
235
228
|
}
|
|
236
229
|
),
|
|
237
230
|
/* @__PURE__ */ e(
|
|
238
|
-
|
|
231
|
+
k,
|
|
239
232
|
{
|
|
240
233
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
241
234
|
placement: "top",
|
|
242
235
|
trigger: /* @__PURE__ */ e(
|
|
243
|
-
|
|
236
|
+
T,
|
|
244
237
|
{
|
|
245
238
|
noBorder: !0,
|
|
246
239
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
@@ -248,29 +241,19 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
248
241
|
onClick: async () => {
|
|
249
242
|
await p(s);
|
|
250
243
|
},
|
|
251
|
-
children: s.favoriteChat ? /* @__PURE__ */ e(
|
|
244
|
+
children: s.favoriteChat ? /* @__PURE__ */ e(_, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e($, { size: "size-4", monotone: !0 })
|
|
252
245
|
}
|
|
253
246
|
)
|
|
254
247
|
}
|
|
255
248
|
),
|
|
256
249
|
/* @__PURE__ */ e(
|
|
257
|
-
|
|
250
|
+
H,
|
|
258
251
|
{
|
|
259
252
|
label: "Delete chat",
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
noBorder: !0,
|
|
265
|
-
label: "Delete chat",
|
|
266
|
-
variant: "primary",
|
|
267
|
-
iconClassName: "text-copy-error-dark dark:!text-copy-error-light",
|
|
268
|
-
onClick: () => {
|
|
269
|
-
x(s);
|
|
270
|
-
},
|
|
271
|
-
children: /* @__PURE__ */ e(Y, { size: "size-3", monotone: !0 })
|
|
272
|
-
}
|
|
273
|
-
)
|
|
253
|
+
disabled: !1,
|
|
254
|
+
onClick: () => {
|
|
255
|
+
h(s);
|
|
256
|
+
}
|
|
274
257
|
}
|
|
275
258
|
)
|
|
276
259
|
] })
|
|
@@ -289,17 +272,17 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
289
272
|
mode: "alt-system",
|
|
290
273
|
caption: (() => {
|
|
291
274
|
const r = t.length, s = f ?? r;
|
|
292
|
-
return
|
|
275
|
+
return E && s > r ? `Showing ${A(`${r} chat`, r)} out of ${s}` : A(`${r} chat`, r);
|
|
293
276
|
})(),
|
|
294
|
-
disabled:
|
|
277
|
+
disabled: d && t.length > 0,
|
|
295
278
|
children: [
|
|
296
|
-
/* @__PURE__ */ e(
|
|
297
|
-
/* @__PURE__ */ e(
|
|
298
|
-
s ===
|
|
299
|
-
/* @__PURE__ */ e(
|
|
300
|
-
(b) =>
|
|
279
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(C, { children: y.map((r) => I(r)) }) }),
|
|
280
|
+
/* @__PURE__ */ e(G, { children: d && t.length === 0 ? /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(o, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : t.slice(0, a).map((r, s) => r?.summary ? /* @__PURE__ */ c(K, { children: [
|
|
281
|
+
s === a - L && /* @__PURE__ */ e("tr", { ref: g }),
|
|
282
|
+
/* @__PURE__ */ e(C, { children: y.map(
|
|
283
|
+
(b) => v(b, r, s)
|
|
301
284
|
) })
|
|
302
|
-
] }, `${
|
|
285
|
+
] }, `${z.HISTORY.TITLE}-${r.id}-${s}`) : null) })
|
|
303
286
|
]
|
|
304
287
|
}
|
|
305
288
|
);
|