@versini/sassysaint 8.107.3 → 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.BmMVyf-Q.js → AboutChangelog.DeRcKN5H.js} +2 -2
- package/dist/chunks/{AboutEntry.wD5hG0ON.js → AboutEntry.6mTHwkfb.js} +7 -7
- package/dist/chunks/{App.FyINLNSp.js → App.DTjbiLAP.js} +1746 -1908
- package/dist/chunks/{Bubble.Ci-pu6NI.js → Bubble.ltolxxta.js} +47 -74
- package/dist/chunks/{Chart.DYVf2gst.js → Chart.BzOmOhOW.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CD6bVvcQ.js → ChatBubbleAssistant.lGE_8ao1.js} +199 -208
- package/dist/chunks/{ChatBubbleUser.Cre3cX04.js → ChatBubbleUser.DC661ePq.js} +27 -36
- package/dist/chunks/{ChatHistoryTable.D_kOkWN9.js → ChatHistoryTable.BkRFWpsA.js} +108 -121
- package/dist/chunks/{Table.Dzy9ts3i.js → DeleteButtonIcon.P0LgJDjE.js} +125 -104
- package/dist/chunks/{HistoryEntry.BFNME4Z8.js → HistoryEntry.uUjsDuT0.js} +6 -6
- package/dist/chunks/{LoginEntry.SW7wyEpU.js → LoginEntry.BGZdTDwf.js} +4 -4
- package/dist/chunks/{LogoEntry.BAKpdJEy.js → LogoEntry.Bpddd0yA.js} +304 -385
- package/dist/chunks/{MemoriesEntry.Ztyx_8Wm.js → MemoriesEntry.BYQm9cuU.js} +164 -169
- package/dist/chunks/{ProfileEntry.CjzAusYw.js → ProfileEntry.BqcZXSeT.js} +4 -4
- package/dist/chunks/{SettingsEntry.D4IKmfYP.js → SettingsEntry.BdC5Vyof.js} +5 -5
- package/dist/chunks/{UsageEntry.D7sTPflE.js → UsageEntry._O8Q6TwS.js} +5 -5
- package/dist/chunks/index.Bi0z4EE1.js +90 -0
- package/dist/chunks/{index.BI1_ccPN.js → index.BlviGqw0.js} +3 -3
- package/dist/chunks/{index.BfTDtoYy.js → index.BxbWxVtd.js} +1 -1
- package/dist/chunks/index.C70LcKzU.js +279 -0
- package/dist/chunks/{index.BT3Do9Po.js → index.CYcieK1H.js} +34 -43
- package/dist/chunks/{index.QiLu2wkI.js → index.CaofbEIP.js} +2 -2
- package/dist/chunks/{index.DBovegdE.js → index.D2nN0rC6.js} +1 -1
- package/dist/chunks/{index.uILjvEfo.js → index.DG-VhqKw.js} +1 -1
- package/dist/chunks/{index.16gcBvke.js → index.DuxTgnco.js} +60 -69
- package/dist/chunks/{index.DJlv39cv.js → index.s8Izh8-Q.js} +2 -2
- package/dist/chunks/{useMarkdown.BberHabr.js → useMarkdown.DjEZz9lH.js} +315 -324
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/chunks/index.BjnVQ4X3.js +0 -99
- package/dist/chunks/index.uVDYkuxz.js +0 -297
|
@@ -1,18 +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
|
-
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
8
|
-
version: "6.1.9",
|
|
9
|
-
buildTime: "12/24/2025 09:21 AM EST",
|
|
10
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-truncate",
|
|
11
|
-
license: "MIT"
|
|
12
|
-
});
|
|
13
|
-
} catch {
|
|
14
|
-
}
|
|
15
|
-
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 }) => {
|
|
16
7
|
if (e.length <= r)
|
|
17
8
|
return {
|
|
18
9
|
string: e,
|
|
@@ -28,7 +19,7 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
28
19
|
string: e.slice(0, r + s),
|
|
29
20
|
isTruncated: !0
|
|
30
21
|
};
|
|
31
|
-
}, 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([
|
|
32
23
|
"P",
|
|
33
24
|
"DIV",
|
|
34
25
|
"UL",
|
|
@@ -62,29 +53,29 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
62
53
|
return e.some(u);
|
|
63
54
|
if (/* @__PURE__ */ T(e)) {
|
|
64
55
|
const r = e;
|
|
65
|
-
return typeof r.type == "string" &&
|
|
56
|
+
return typeof r.type == "string" && I.has(r.type.toUpperCase()) ? !0 : u(r.props.children);
|
|
66
57
|
}
|
|
67
58
|
return !1;
|
|
68
|
-
},
|
|
69
|
-
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), [
|
|
70
61
|
e
|
|
71
|
-
]), { string:
|
|
72
|
-
string:
|
|
62
|
+
]), { string: p, isTruncated: a } = m(() => w({
|
|
63
|
+
string: f,
|
|
73
64
|
idealLength: r
|
|
74
65
|
}), [
|
|
75
|
-
|
|
66
|
+
f,
|
|
76
67
|
r
|
|
77
|
-
]), E = s && a && !t, A = (
|
|
78
|
-
|
|
68
|
+
]), E = s && a && !t, A = (x) => {
|
|
69
|
+
x.preventDefault(), y(!t);
|
|
79
70
|
};
|
|
80
71
|
if (g)
|
|
81
|
-
return /* @__PURE__ */ i(
|
|
72
|
+
return /* @__PURE__ */ i(C, {
|
|
82
73
|
children: e
|
|
83
74
|
});
|
|
84
75
|
let o;
|
|
85
|
-
a ? t ? o = e : o =
|
|
86
|
-
const
|
|
87
|
-
return /* @__PURE__ */
|
|
76
|
+
a ? t ? o = e : o = p : o = e;
|
|
77
|
+
const B = s ? u(e) : !1;
|
|
78
|
+
return /* @__PURE__ */ S("span", {
|
|
88
79
|
style: {
|
|
89
80
|
wordBreak: "break-word"
|
|
90
81
|
},
|
|
@@ -92,11 +83,11 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
92
83
|
"aria-expanded": a ? t : void 0,
|
|
93
84
|
children: [
|
|
94
85
|
o,
|
|
95
|
-
a && /* @__PURE__ */ i(
|
|
86
|
+
a && /* @__PURE__ */ i(b, {
|
|
96
87
|
mode: n,
|
|
97
88
|
focusMode: c,
|
|
98
89
|
noBorder: d,
|
|
99
|
-
className: !(s && t &&
|
|
90
|
+
className: !(s && t && B) ? "ml-2" : void 0,
|
|
100
91
|
size: "small",
|
|
101
92
|
onClick: A,
|
|
102
93
|
"aria-label": t ? "Show less" : "Show more",
|
|
@@ -104,12 +95,12 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
104
95
|
})
|
|
105
96
|
]
|
|
106
97
|
});
|
|
107
|
-
},
|
|
108
|
-
const [r, n] =
|
|
109
|
-
return
|
|
98
|
+
}, R = ({ content: e }) => {
|
|
99
|
+
const [r, n] = h();
|
|
100
|
+
return H(() => {
|
|
110
101
|
e && n(e);
|
|
111
102
|
}, [e, n]), /* @__PURE__ */ i(
|
|
112
|
-
|
|
103
|
+
M,
|
|
113
104
|
{
|
|
114
105
|
gradient: "medium",
|
|
115
106
|
tail: !0,
|
|
@@ -119,10 +110,10 @@ const x = 200, M = ({ string: e, idealLength: r = x }) => {
|
|
|
119
110
|
kind: "right",
|
|
120
111
|
className: "mt-3",
|
|
121
112
|
contentClassName: "prose prose-lighter prose-p:only:my-0",
|
|
122
|
-
children: /* @__PURE__ */ i(
|
|
113
|
+
children: /* @__PURE__ */ i(L, { mode: "dark", focusMode: "light", noBorder: !0, enableRichTruncation: !0, children: r })
|
|
123
114
|
}
|
|
124
115
|
);
|
|
125
116
|
};
|
|
126
117
|
export {
|
|
127
|
-
|
|
118
|
+
R as default
|
|
128
119
|
};
|
|
@@ -1,25 +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 A, ResponsiveTooltip as
|
|
8
|
-
try {
|
|
9
|
-
window.__VERSINI_UI_PILL__ || (window.__VERSINI_UI_PILL__ = {
|
|
10
|
-
version: "5.2.5",
|
|
11
|
-
buildTime: "12/24/2025 09:21 AM EST",
|
|
12
|
-
homepage: "https://www.npmjs.com/package/@versini/ui-pill",
|
|
13
|
-
license: "MIT"
|
|
14
|
-
});
|
|
15
|
-
} catch {
|
|
16
|
-
}
|
|
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";
|
|
17
8
|
const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
18
9
|
"border-border-information": t === "information",
|
|
19
10
|
"border-border-warning": t === "warning",
|
|
20
11
|
"border-border-success": t === "success",
|
|
21
12
|
"border-border-error": t === "error"
|
|
22
|
-
}),
|
|
13
|
+
}), O = ({ variant: t }) => i("not-prose", {
|
|
23
14
|
"text-copy-information": t === "information",
|
|
24
15
|
"text-copy-warning": t === "warning",
|
|
25
16
|
"text-copy-success": t === "success",
|
|
@@ -30,30 +21,30 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
30
21
|
"bg-surface-success": t === "success",
|
|
31
22
|
"bg-surface-error": t === "error"
|
|
32
23
|
}), X = (t) => {
|
|
33
|
-
const { className:
|
|
24
|
+
const { className: l, variant: a } = t;
|
|
34
25
|
return {
|
|
35
26
|
main: i(q, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", J({
|
|
36
|
-
variant:
|
|
37
|
-
}),
|
|
38
|
-
variant:
|
|
39
|
-
}), Q(t),
|
|
40
|
-
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",
|
|
41
|
-
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
|
|
42
33
|
}))
|
|
43
34
|
};
|
|
44
|
-
},
|
|
45
|
-
const [
|
|
46
|
-
|
|
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));
|
|
47
38
|
};
|
|
48
|
-
if (!
|
|
39
|
+
if (!h)
|
|
49
40
|
return null;
|
|
50
|
-
const
|
|
51
|
-
className:
|
|
52
|
-
variant:
|
|
41
|
+
const d = X({
|
|
42
|
+
className: l,
|
|
43
|
+
variant: a
|
|
53
44
|
});
|
|
54
45
|
return /* @__PURE__ */ c("div", {
|
|
55
46
|
role: "text",
|
|
56
|
-
className:
|
|
47
|
+
className: d.main,
|
|
57
48
|
children: [
|
|
58
49
|
m && /* @__PURE__ */ e("span", {
|
|
59
50
|
className: "sr-only",
|
|
@@ -62,100 +53,100 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
62
53
|
/* @__PURE__ */ e("span", {
|
|
63
54
|
children: t
|
|
64
55
|
}),
|
|
65
|
-
|
|
56
|
+
u && /* @__PURE__ */ e("button", {
|
|
66
57
|
type: "button",
|
|
67
58
|
onClick: g,
|
|
68
|
-
className:
|
|
59
|
+
className: d.button,
|
|
69
60
|
"aria-label": "Close",
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
61
|
+
children: /* @__PURE__ */ e(D, {
|
|
71
62
|
size: "size-3"
|
|
72
63
|
})
|
|
73
64
|
})
|
|
74
65
|
]
|
|
75
66
|
});
|
|
76
|
-
},
|
|
67
|
+
}, n = {
|
|
77
68
|
ROW: "row",
|
|
78
|
-
TIMESTAMP:
|
|
69
|
+
TIMESTAMP: N,
|
|
79
70
|
SUMMARY: "summary",
|
|
80
|
-
TOKEN_USAGE:
|
|
71
|
+
TOKEN_USAGE: S,
|
|
81
72
|
ACTIONS: "actions"
|
|
82
73
|
}, Z = [
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
n.ROW,
|
|
75
|
+
n.TIMESTAMP,
|
|
76
|
+
n.SUMMARY,
|
|
77
|
+
n.ACTIONS
|
|
87
78
|
], ee = [
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
n.ROW,
|
|
80
|
+
n.SUMMARY,
|
|
81
|
+
n.TIMESTAMP,
|
|
82
|
+
n.TOKEN_USAGE,
|
|
83
|
+
n.ACTIONS
|
|
93
84
|
], me = ({
|
|
94
85
|
filteredHistory: t,
|
|
95
|
-
historyState:
|
|
96
|
-
lastEntryToLoad:
|
|
86
|
+
historyState: l,
|
|
87
|
+
lastEntryToLoad: a,
|
|
97
88
|
onClickSort: m,
|
|
98
|
-
onClickRestore:
|
|
99
|
-
onClickDelete:
|
|
89
|
+
onClickRestore: u,
|
|
90
|
+
onClickDelete: h,
|
|
100
91
|
onClickFavorite: p,
|
|
101
92
|
infinityScrollMarkerRef: g,
|
|
102
|
-
isLoading:
|
|
93
|
+
isLoading: d = !1,
|
|
103
94
|
totalHistoryCount: f,
|
|
104
|
-
isFiltered:
|
|
95
|
+
isFiltered: E = !1,
|
|
105
96
|
isSearchActive: M = !1
|
|
106
97
|
}) => {
|
|
107
|
-
const
|
|
98
|
+
const y = V() ? Z : ee, I = (r) => {
|
|
108
99
|
switch (r) {
|
|
109
|
-
case
|
|
110
|
-
return /* @__PURE__ */ e(
|
|
111
|
-
case
|
|
112
|
-
return M ? /* @__PURE__ */ e(
|
|
113
|
-
|
|
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,
|
|
114
105
|
{
|
|
115
106
|
focusMode: "system",
|
|
116
107
|
buttonClassName: "text-xs sm:text-sm",
|
|
117
|
-
cellId:
|
|
108
|
+
cellId: N,
|
|
118
109
|
align: "left",
|
|
119
|
-
sortDirection:
|
|
120
|
-
sortedCell:
|
|
110
|
+
sortDirection: l.sortDirection,
|
|
111
|
+
sortedCell: l.sortedCell,
|
|
121
112
|
onClick: () => {
|
|
122
|
-
m(
|
|
113
|
+
m(N);
|
|
123
114
|
},
|
|
124
115
|
children: "Date"
|
|
125
116
|
},
|
|
126
117
|
r
|
|
127
118
|
);
|
|
128
|
-
case
|
|
129
|
-
return /* @__PURE__ */ e(
|
|
130
|
-
case
|
|
131
|
-
return M ? /* @__PURE__ */ e(
|
|
132
|
-
|
|
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,
|
|
133
124
|
{
|
|
134
125
|
focusMode: "system",
|
|
135
126
|
buttonClassName: "text-xs sm:text-sm",
|
|
136
|
-
cellId:
|
|
127
|
+
cellId: S,
|
|
137
128
|
align: "right",
|
|
138
|
-
sortDirection:
|
|
139
|
-
sortedCell:
|
|
129
|
+
sortDirection: l.sortDirection,
|
|
130
|
+
sortedCell: l.sortedCell,
|
|
140
131
|
onClick: () => {
|
|
141
|
-
m(
|
|
132
|
+
m(S);
|
|
142
133
|
},
|
|
143
134
|
children: "Tokens"
|
|
144
135
|
},
|
|
145
136
|
r
|
|
146
137
|
);
|
|
147
|
-
case
|
|
148
|
-
return /* @__PURE__ */ e(
|
|
138
|
+
case n.ACTIONS:
|
|
139
|
+
return /* @__PURE__ */ e(o, { className: "text-xs sm:text-sm text-right", children: "Actions" }, r);
|
|
149
140
|
default:
|
|
150
141
|
return null;
|
|
151
142
|
}
|
|
152
|
-
},
|
|
143
|
+
}, v = (r, s, b) => {
|
|
153
144
|
switch (r) {
|
|
154
|
-
case
|
|
155
|
-
return /* @__PURE__ */ e(
|
|
156
|
-
case
|
|
145
|
+
case n.ROW:
|
|
146
|
+
return /* @__PURE__ */ e(o, { children: b + 1 }, r);
|
|
147
|
+
case n.TIMESTAMP:
|
|
157
148
|
return /* @__PURE__ */ e(
|
|
158
|
-
|
|
149
|
+
o,
|
|
159
150
|
{
|
|
160
151
|
className: i(
|
|
161
152
|
"dark:text-copy-medium",
|
|
@@ -165,10 +156,10 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
165
156
|
},
|
|
166
157
|
r
|
|
167
158
|
);
|
|
168
|
-
case
|
|
169
|
-
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;
|
|
170
161
|
return /* @__PURE__ */ e(
|
|
171
|
-
|
|
162
|
+
o,
|
|
172
163
|
{
|
|
173
164
|
className: i(
|
|
174
165
|
"dark:text-white",
|
|
@@ -179,14 +170,14 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
179
170
|
},
|
|
180
171
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col gap-1", children: [
|
|
181
172
|
/* @__PURE__ */ c("div", { className: "flex flex-wrap gap-1", children: [
|
|
182
|
-
|
|
183
|
-
|
|
173
|
+
x !== null && /* @__PURE__ */ e(
|
|
174
|
+
R,
|
|
184
175
|
{
|
|
185
|
-
variant:
|
|
186
|
-
label: `${
|
|
176
|
+
variant: P,
|
|
177
|
+
label: `${x}% semantic`
|
|
187
178
|
}
|
|
188
179
|
),
|
|
189
|
-
|
|
180
|
+
U && /* @__PURE__ */ e(R, { variant: "information", label: "keyword" })
|
|
190
181
|
] }),
|
|
191
182
|
/* @__PURE__ */ e("span", { children: s.summary })
|
|
192
183
|
] })
|
|
@@ -194,49 +185,55 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
194
185
|
r
|
|
195
186
|
);
|
|
196
187
|
}
|
|
197
|
-
case
|
|
188
|
+
case n.TOKEN_USAGE:
|
|
198
189
|
return /* @__PURE__ */ e(
|
|
199
|
-
|
|
190
|
+
o,
|
|
200
191
|
{
|
|
201
192
|
className: i("dark:text-copy-medium", "text-xs sm:text-sm"),
|
|
202
193
|
align: "right",
|
|
203
|
-
children: s.tokenUsage ?
|
|
194
|
+
children: s.tokenUsage ? j.format(s.tokenUsage) : "0"
|
|
204
195
|
},
|
|
205
196
|
r
|
|
206
197
|
);
|
|
207
|
-
case
|
|
198
|
+
case n.ACTIONS:
|
|
208
199
|
return /* @__PURE__ */ e(
|
|
209
|
-
|
|
200
|
+
o,
|
|
210
201
|
{
|
|
211
202
|
className: "border-l border-table-light dark:border-table-dark",
|
|
212
203
|
children: /* @__PURE__ */ c("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
213
204
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
205
|
+
k,
|
|
215
206
|
{
|
|
216
207
|
label: "Restore chat",
|
|
217
208
|
placement: "top",
|
|
218
209
|
trigger: /* @__PURE__ */ e(
|
|
219
|
-
|
|
210
|
+
T,
|
|
220
211
|
{
|
|
221
212
|
noBorder: !0,
|
|
222
213
|
label: "Restore chat",
|
|
223
214
|
variant: "primary",
|
|
224
|
-
iconClassName: "text-copy-success dark:text-copy-success-light",
|
|
225
215
|
onClick: async () => {
|
|
226
|
-
await
|
|
216
|
+
await u(s);
|
|
227
217
|
},
|
|
228
|
-
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
|
+
)
|
|
229
226
|
}
|
|
230
227
|
)
|
|
231
228
|
}
|
|
232
229
|
),
|
|
233
230
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
231
|
+
k,
|
|
235
232
|
{
|
|
236
233
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
237
234
|
placement: "top",
|
|
238
235
|
trigger: /* @__PURE__ */ e(
|
|
239
|
-
|
|
236
|
+
T,
|
|
240
237
|
{
|
|
241
238
|
noBorder: !0,
|
|
242
239
|
label: s.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
@@ -244,29 +241,19 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
244
241
|
onClick: async () => {
|
|
245
242
|
await p(s);
|
|
246
243
|
},
|
|
247
|
-
children: s.favoriteChat ? /* @__PURE__ */ e(
|
|
244
|
+
children: s.favoriteChat ? /* @__PURE__ */ e(_, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e($, { size: "size-4", monotone: !0 })
|
|
248
245
|
}
|
|
249
246
|
)
|
|
250
247
|
}
|
|
251
248
|
),
|
|
252
249
|
/* @__PURE__ */ e(
|
|
253
|
-
|
|
250
|
+
H,
|
|
254
251
|
{
|
|
255
252
|
label: "Delete chat",
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
noBorder: !0,
|
|
261
|
-
label: "Delete chat",
|
|
262
|
-
variant: "primary",
|
|
263
|
-
iconClassName: "text-copy-error-dark dark:!text-copy-error-light",
|
|
264
|
-
onClick: () => {
|
|
265
|
-
x(s);
|
|
266
|
-
},
|
|
267
|
-
children: /* @__PURE__ */ e(Y, { size: "size-3", monotone: !0 })
|
|
268
|
-
}
|
|
269
|
-
)
|
|
253
|
+
disabled: !1,
|
|
254
|
+
onClick: () => {
|
|
255
|
+
h(s);
|
|
256
|
+
}
|
|
270
257
|
}
|
|
271
258
|
)
|
|
272
259
|
] })
|
|
@@ -285,17 +272,17 @@ const q = "av-pill", J = ({ variant: t }) => i("rounded-xs border", {
|
|
|
285
272
|
mode: "alt-system",
|
|
286
273
|
caption: (() => {
|
|
287
274
|
const r = t.length, s = f ?? r;
|
|
288
|
-
return
|
|
275
|
+
return E && s > r ? `Showing ${A(`${r} chat`, r)} out of ${s}` : A(`${r} chat`, r);
|
|
289
276
|
})(),
|
|
290
|
-
disabled:
|
|
277
|
+
disabled: d && t.length > 0,
|
|
291
278
|
children: [
|
|
292
|
-
/* @__PURE__ */ e(
|
|
293
|
-
/* @__PURE__ */ e(
|
|
294
|
-
s ===
|
|
295
|
-
/* @__PURE__ */ e(
|
|
296
|
-
(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)
|
|
297
284
|
) })
|
|
298
|
-
] }, `${
|
|
285
|
+
] }, `${z.HISTORY.TITLE}-${r.id}-${s}`) : null) })
|
|
299
286
|
]
|
|
300
287
|
}
|
|
301
288
|
);
|