@versini/sassysaint 8.73.1 → 8.73.2
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.2b2DI_SN.js → AboutChangelog.BGbXeM1V.js} +2 -2
- package/dist/chunks/{AboutEntry.BHq7KBa1.js → AboutEntry.B6zksAh7.js} +5 -5
- package/dist/chunks/{App.DcQF9Hq9.js → App.tbzd8U0K.js} +16 -16
- package/dist/chunks/{Chart.DAdepX81.js → Chart.D2MV2w_Q.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BF3Bj7JJ.js → ChatBubbleAssistant.RzH26aLB.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.B5uyfOKG.js → ChatBubbleUser.CBnoxqes.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BwjPu3FF.js → ChatHistoryTable.C6I638cE.js} +63 -62
- package/dist/chunks/HistoryEntry.CwveusV0.js +333 -0
- package/dist/chunks/{ProfileEntry.Ce801i2m.js → ProfileEntry.BSOMcinm.js} +2 -2
- package/dist/chunks/{SettingsEntry.fNHoX42W.js → SettingsEntry.SHZazp-B.js} +3 -3
- package/dist/chunks/{Table.J1RcsDNn.js → Table.DwbGRt2o.js} +2 -2
- package/dist/chunks/{UsageEntry.k-Ljpdg9.js → UsageEntry.BOtq-YTl.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.C0BI-Pbv.js → UserMemoriesPanel.BdWYKyp5.js} +4 -4
- package/dist/chunks/{index.CauWbyr8.js → index.BO_yfOl7.js} +3 -3
- package/dist/chunks/{index.C_OZL-ky.js → index.CREsouo5.js} +1 -1
- package/dist/chunks/{index.uzB9FupG.js → index.CqtcPR4A.js} +2 -2
- package/dist/chunks/{index.CmXD-yP7.js → index.Cxd_WImT.js} +1 -1
- package/dist/chunks/{index.RnO-M1tm.js → index.DX8g0zp_.js} +2 -2
- package/dist/chunks/{index.FbsVqChk.js → index.Dxke1YD_.js} +1 -1
- package/dist/chunks/{index.BqnKf1sr.js → index.Tr3TVoxP.js} +1 -1
- package/dist/chunks/{index.nSgn5ZFo.js → index.zCqfAEjf.js} +1 -1
- package/dist/chunks/{useMarkdown.rLeRHXfb.js → useMarkdown.DBF4PL2-.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/HistoryEntry.Cj5Hwpkx.js +0 -327
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { p as m, ButtonScroll as n } from "./App.
|
|
2
|
+
import { p as m, ButtonScroll as n } from "./App.tbzd8U0K.js";
|
|
3
3
|
import { useRef as f, useCallback as u, useLayoutEffect as p } from "react";
|
|
4
|
-
import { useMarkdown as d } from "./useMarkdown.
|
|
4
|
+
import { useMarkdown as d } from "./useMarkdown.DBF4PL2-.js";
|
|
5
5
|
const b = ({ content: o }) => {
|
|
6
6
|
const [l, t] = d(), { ref: a, inViewport: c } = m(), e = f(null), i = u(() => {
|
|
7
7
|
e.current && e.current.scrollIntoView({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as b, Fragment as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { oe as g } from "./App.
|
|
3
|
-
import { i as d, useServerCapabilities as A, useChangelogs as B, S as t, renderDataAsList as c, CARDS as r, pluralize as E, isProbablyMobile as I, ABOUT_TITLE as S } from "./index.
|
|
2
|
+
import { oe as g } from "./App.tbzd8U0K.js";
|
|
3
|
+
import { i as d, useServerCapabilities as A, useChangelogs as B, S as t, renderDataAsList as c, CARDS as r, pluralize as E, isProbablyMobile as I, ABOUT_TITLE as S } from "./index.CqtcPR4A.js";
|
|
4
4
|
import O from "clsx";
|
|
5
5
|
import { Suspense as C, lazy as U } from "react";
|
|
6
6
|
const L = U(
|
|
7
7
|
() => import(
|
|
8
8
|
/* webpackChunkName: "LazyAboutChangelog" */
|
|
9
|
-
"./AboutChangelog.
|
|
9
|
+
"./AboutChangelog.BGbXeM1V.js"
|
|
10
10
|
)
|
|
11
11
|
), N = () => {
|
|
12
12
|
const s = d(), i = d(), { data: o, isSuccess: m } = A(), { data: T, isSuccess: h } = B(), p = o?.version || "", a = o?.models || [], u = o?.buildTime || "";
|
|
@@ -18,8 +18,8 @@ const L = U(
|
|
|
18
18
|
className: "prose-dark dark:prose-lighter mb-4",
|
|
19
19
|
noBorder: !0,
|
|
20
20
|
children: c(s, {
|
|
21
|
-
[r.ABOUT.VERSION]: "8.73.
|
|
22
|
-
[r.ABOUT.BUILD_TIMESTAMP]: "10/25/2025
|
|
21
|
+
[r.ABOUT.VERSION]: "8.73.2",
|
|
22
|
+
[r.ABOUT.BUILD_TIMESTAMP]: "10/25/2025 05:34 PM EDT"
|
|
23
23
|
})
|
|
24
24
|
}
|
|
25
25
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as l, jsxs as T, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
-
import { I as J, ACTION_SORT as bs, ACTION_SEARCH as ws, ACTION_RESET_PROMPT as Eo, ACTION_TOGGLE_PROMPT as To, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as So, n as ve, isDev as Is, isPWAMode as xo, useChat as Es, F as Ts, te as Se, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as Qt, useUserPreferences as We, isProbablyiPhone as Ve, serverUrl as ko, useEntitlements as Gr, L as Ar, j as ct, C as mn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ss, ot as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as xs, useSaveChat as ks, TOAST_CHAT_SAVED as Cs, PROMPT_CLASSNAME as Ns, PROMPT_EDITABLE_AREA_CLASSNAME as zs, useChatsHistory as As, i as Os, rt as Co, ERROR_MESSAGE as Ms, E as It, CLIPBOARD_PROMPT as hn, INPUT_PLACEHOLDER_TEXT_MOBILE as fn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as vn, isProbablyMobile as Or, Z as $s, FOOTER_DISCLAIMERS as yn, h as No, isProbablyiPad as Rs, INPUT_BOTTOM_OFFSET_EXTRA as _n, INPUT_BOTTOM_OFFSET_IPHONE as Ps, INPUT_BOTTOM_OFFSET_IPAD as Zs, INPUT_BOTTOM_OFFSET as zo, getLayoutPaddingClass as Mr, canEvaluateModels as bn, et as Ds, r as Ls, O as Bs, c as Us, V as js, j$1 as yr, setNewProvider as wn, TOAST_PROVIDER_CHANGED as In, useQueryClient as Vs, LOG_OUT as En, e as Ao, b as Tn, useServerCapabilities as Fs, getMessageContaintWrapperClass as Hs, UI_FOOTER_BUFFER as Oo, UI_BUTTON_SCROLL_BUFFER as Js, Logo as Gs, UI_DEFAULT_MAIN_HEIGHT as Sn, applyOledMode as Ws, UI_DEFAULT_MAIN_HEIGHT_IPHONE as qs, APP_CLASSNAME as Ys, J as xn, Q as Xs, LOCAL_STORAGE_SORT as Qs, LOCAL_STORAGE_SEARCH as Ks, LOCAL_STORAGE_OLED_MODE as ei, LOCAL_STORAGE_SORT_TIMESTAMP as ti, LOCAL_STORAGE_SORT_TOKEN_USAGE as ri, TOAST_CACHE_ENABLED as ni, TOAST_CACHE_DISABLED as oi } from "./index.
|
|
2
|
+
import { I as J, ACTION_SORT as bs, ACTION_SEARCH as ws, ACTION_RESET_PROMPT as Eo, ACTION_TOGGLE_PROMPT as To, LOCAL_STORAGE_PREFIX as je, LOCAL_STORAGE_CHAT_ID as So, n as ve, isDev as Is, isPWAMode as xo, useChat as Es, F as Ts, te as Se, DEFAULT_ICON_ACTION_SIZE as ze, isTauri as Qt, useUserPreferences as We, isProbablyiPhone as Ve, serverUrl as ko, useEntitlements as Gr, L as Ar, j as ct, C as mn, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ss, ot as Kt, LOCAL_STORAGE_REASONING_DISCLOSURE as xs, useSaveChat as ks, TOAST_CHAT_SAVED as Cs, PROMPT_CLASSNAME as Ns, PROMPT_EDITABLE_AREA_CLASSNAME as zs, useChatsHistory as As, i as Os, rt as Co, ERROR_MESSAGE as Ms, E as It, CLIPBOARD_PROMPT as hn, INPUT_PLACEHOLDER_TEXT_MOBILE as fn, INPUT_PLACEHOLDER_TEXT_ENTER as gn, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as vn, isProbablyMobile as Or, Z as $s, FOOTER_DISCLAIMERS as yn, h as No, isProbablyiPad as Rs, INPUT_BOTTOM_OFFSET_EXTRA as _n, INPUT_BOTTOM_OFFSET_IPHONE as Ps, INPUT_BOTTOM_OFFSET_IPAD as Zs, INPUT_BOTTOM_OFFSET as zo, getLayoutPaddingClass as Mr, canEvaluateModels as bn, et as Ds, r as Ls, O as Bs, c as Us, V as js, j$1 as yr, setNewProvider as wn, TOAST_PROVIDER_CHANGED as In, useQueryClient as Vs, LOG_OUT as En, e as Ao, b as Tn, useServerCapabilities as Fs, getMessageContaintWrapperClass as Hs, UI_FOOTER_BUFFER as Oo, UI_BUTTON_SCROLL_BUFFER as Js, Logo as Gs, UI_DEFAULT_MAIN_HEIGHT as Sn, applyOledMode as Ws, UI_DEFAULT_MAIN_HEIGHT_IPHONE as qs, APP_CLASSNAME as Ys, J as xn, Q as Xs, LOCAL_STORAGE_SORT as Qs, LOCAL_STORAGE_SEARCH as Ks, LOCAL_STORAGE_OLED_MODE as ei, LOCAL_STORAGE_SORT_TIMESTAMP as ti, LOCAL_STORAGE_SORT_TOKEN_USAGE as ri, TOAST_CACHE_ENABLED as ni, TOAST_CACHE_DISABLED as oi } from "./index.CqtcPR4A.js";
|
|
3
3
|
import * as ie from "react";
|
|
4
4
|
import pt, { useRef as j, useEffect as $, useCallback as D, useState as R, useSyncExternalStore as Ht, createContext as ai, useContext as ne, useId as Mo, forwardRef as $o, useMemo as Ne, Suspense as er, lazy as Re, useReducer as Pt, useLayoutEffect as si } from "react";
|
|
5
5
|
import z from "clsx";
|
|
@@ -6614,7 +6614,7 @@ const Ka = async () => (xr || (xr = import(
|
|
|
6614
6614
|
"./index.790ujKXR.js"
|
|
6615
6615
|
)), xr), es = async () => (kr || (kr = import(
|
|
6616
6616
|
/* webpackChunkName: "toast-utilities" */
|
|
6617
|
-
"./index.
|
|
6617
|
+
"./index.CqtcPR4A.js"
|
|
6618
6618
|
).then((e) => e.utilities)), kr), ah = async () => {
|
|
6619
6619
|
try {
|
|
6620
6620
|
await Promise.all([Ka(), es()]);
|
|
@@ -9381,38 +9381,38 @@ const af = (e) => {
|
|
|
9381
9381
|
}, Af = Re(
|
|
9382
9382
|
() => import(
|
|
9383
9383
|
/* webpackChunkName: "modal-chunk" */
|
|
9384
|
-
"./ProfileEntry.
|
|
9384
|
+
"./ProfileEntry.BSOMcinm.js"
|
|
9385
9385
|
).then((e) => ({
|
|
9386
9386
|
default: e.Profile
|
|
9387
9387
|
}))
|
|
9388
9388
|
), Of = Re(
|
|
9389
9389
|
() => import(
|
|
9390
9390
|
/* webpackChunkName: "modal-chunk" */
|
|
9391
|
-
"./SettingsEntry.
|
|
9391
|
+
"./SettingsEntry.SHZazp-B.js"
|
|
9392
9392
|
).then((e) => ({
|
|
9393
9393
|
default: e.SettingsPanel
|
|
9394
9394
|
}))
|
|
9395
9395
|
), Mf = Re(
|
|
9396
9396
|
() => import(
|
|
9397
9397
|
/* webpackChunkName: "modal-chunk" */
|
|
9398
|
-
"./HistoryEntry.
|
|
9398
|
+
"./HistoryEntry.CwveusV0.js"
|
|
9399
9399
|
).then((e) => ({
|
|
9400
9400
|
default: e.HistoryPanel
|
|
9401
9401
|
}))
|
|
9402
9402
|
), $f = Re(
|
|
9403
9403
|
() => import(
|
|
9404
9404
|
/* webpackChunkName: "modal-chunk" */
|
|
9405
|
-
"./AboutEntry.
|
|
9405
|
+
"./AboutEntry.B6zksAh7.js"
|
|
9406
9406
|
).then((e) => ({ default: e.About }))
|
|
9407
9407
|
), Rf = Re(
|
|
9408
9408
|
() => import(
|
|
9409
9409
|
/* webpackChunkName: "modal-chunk" */
|
|
9410
|
-
"./UsageEntry.
|
|
9410
|
+
"./UsageEntry.BOtq-YTl.js"
|
|
9411
9411
|
).then((e) => ({ default: e.Usage }))
|
|
9412
9412
|
), Pf = Re(
|
|
9413
9413
|
() => import(
|
|
9414
9414
|
/* webpackChunkName: "modal-chunk" */
|
|
9415
|
-
"./UserMemoriesPanel.
|
|
9415
|
+
"./UserMemoriesPanel.BdWYKyp5.js"
|
|
9416
9416
|
).then(
|
|
9417
9417
|
(e) => ({ default: e.default })
|
|
9418
9418
|
)
|
|
@@ -9460,23 +9460,23 @@ const af = (e) => {
|
|
|
9460
9460
|
d || Promise.all([
|
|
9461
9461
|
import(
|
|
9462
9462
|
/* webpackChunkName: "modal-chunk" */
|
|
9463
|
-
"./ProfileEntry.
|
|
9463
|
+
"./ProfileEntry.BSOMcinm.js"
|
|
9464
9464
|
),
|
|
9465
9465
|
import(
|
|
9466
9466
|
/* webpackChunkName: "modal-chunk" */
|
|
9467
|
-
"./SettingsEntry.
|
|
9467
|
+
"./SettingsEntry.SHZazp-B.js"
|
|
9468
9468
|
),
|
|
9469
9469
|
import(
|
|
9470
9470
|
/* webpackChunkName: "modal-chunk" */
|
|
9471
|
-
"./HistoryEntry.
|
|
9471
|
+
"./HistoryEntry.CwveusV0.js"
|
|
9472
9472
|
),
|
|
9473
9473
|
import(
|
|
9474
9474
|
/* webpackChunkName: "modal-chunk" */
|
|
9475
|
-
"./AboutEntry.
|
|
9475
|
+
"./AboutEntry.B6zksAh7.js"
|
|
9476
9476
|
),
|
|
9477
9477
|
import(
|
|
9478
9478
|
/* webpackChunkName: "modal-chunk" */
|
|
9479
|
-
"./UsageEntry.
|
|
9479
|
+
"./UsageEntry.BOtq-YTl.js"
|
|
9480
9480
|
)
|
|
9481
9481
|
]).finally(() => f(!0));
|
|
9482
9482
|
}, [d]), w = D((A) => {
|
|
@@ -9724,18 +9724,18 @@ try {
|
|
|
9724
9724
|
} catch {
|
|
9725
9725
|
}
|
|
9726
9726
|
const Uf = Re(
|
|
9727
|
-
() => import("./index.
|
|
9727
|
+
() => import("./index.Tr3TVoxP.js").then((e) => ({ default: e.Bubble }))
|
|
9728
9728
|
), dn = (e) => /* @__PURE__ */ l(er, { fallback: /* @__PURE__ */ l("span", { className: "inline-block" }), children: /* @__PURE__ */ l(Uf, { ...e }) });
|
|
9729
9729
|
dn.displayName = "AsyncBubble";
|
|
9730
9730
|
const Io = 1, jf = 150, Vf = Re(
|
|
9731
9731
|
() => import(
|
|
9732
9732
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
9733
|
-
"./ChatBubbleAssistant.
|
|
9733
|
+
"./ChatBubbleAssistant.RzH26aLB.js"
|
|
9734
9734
|
)
|
|
9735
9735
|
), Ff = Re(
|
|
9736
9736
|
() => import(
|
|
9737
9737
|
/* webpackChunkName: "LazyMessageUser" */
|
|
9738
|
-
"./ChatBubbleUser.
|
|
9738
|
+
"./ChatBubbleUser.CBnoxqes.js"
|
|
9739
9739
|
)
|
|
9740
9740
|
), Hf = pt.memo(
|
|
9741
9741
|
({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Ap } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.tbzd8U0K.js";
|
|
3
3
|
import Cp, { useState as Pp, useEffect as Op } from "react";
|
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.
|
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.CqtcPR4A.js";
|
|
5
5
|
var ls = { exports: {} }, Ip = ls.exports, on;
|
|
6
6
|
function Dp() {
|
|
7
7
|
return on || (on = 1, (function(we, he) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, b as L } from "./index.
|
|
3
|
-
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.
|
|
2
|
+
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, b as L } from "./index.CqtcPR4A.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.Tr3TVoxP.js";
|
|
4
4
|
import w from "clsx";
|
|
5
5
|
import v, { useState as x, useRef as A, useEffect as U, useContext as B } from "react";
|
|
6
|
-
import { ChatContext as G, AsyncBubble as E } from "./App.
|
|
7
|
-
import { useMarkdown as D } from "./useMarkdown.
|
|
6
|
+
import { ChatContext as G, AsyncBubble as E } from "./App.tbzd8U0K.js";
|
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.DBF4PL2-.js";
|
|
8
8
|
const j = 2, q = j * 1e3, M = "", I = (e) => e * (2 - e);
|
|
9
9
|
function W(e, n = !0) {
|
|
10
10
|
const [a, p] = x(0), [i, C] = x(0), [t, T] = x(e), r = A(0), s = A(0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
|
|
3
|
-
import { AsyncBubble as w } from "./App.
|
|
4
|
-
import { useMarkdown as _ } from "./useMarkdown.
|
|
5
|
-
import { C as M } from "./index.
|
|
3
|
+
import { AsyncBubble as w } from "./App.tbzd8U0K.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.DBF4PL2-.js";
|
|
5
|
+
import { C as M } from "./index.CqtcPR4A.js";
|
|
6
6
|
const R = 200, N = ({
|
|
7
7
|
string: e,
|
|
8
8
|
idealLength: r = R
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as
|
|
3
|
-
import { st as
|
|
2
|
+
import { I as C, J as N, Q as g, INFINITE_SCROLL_THRESHOLD as E, CARDS as k, pluralize as y, te as u, numberFormatter as b, st as D, isProbablyMobile as U, c as B, r as I, O as P } from "./index.CqtcPR4A.js";
|
|
3
|
+
import { st as M, p$1 as L, z as V, p$2 as $ } from "./App.tbzd8U0K.js";
|
|
4
4
|
import h from "clsx";
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { j as
|
|
7
|
-
const
|
|
5
|
+
import { Fragment as _ } from "react";
|
|
6
|
+
import { j as H, D as Y, G as x, H as F, M as a, U as G, F as S, l as K } from "./Table.DwbGRt2o.js";
|
|
7
|
+
const W = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
10
|
-
title:
|
|
10
|
+
title: n,
|
|
11
11
|
monotone: i,
|
|
12
|
-
...
|
|
12
|
+
...o
|
|
13
13
|
}) => /* @__PURE__ */ m(
|
|
14
|
-
|
|
14
|
+
C,
|
|
15
15
|
{
|
|
16
16
|
defaultViewBox: "0 0 512 512",
|
|
17
17
|
size: "size-5",
|
|
18
18
|
viewBox: c,
|
|
19
19
|
className: l,
|
|
20
|
-
title:
|
|
21
|
-
...
|
|
20
|
+
title: n || "Restore",
|
|
21
|
+
...o,
|
|
22
22
|
children: [
|
|
23
23
|
/* @__PURE__ */ e(
|
|
24
24
|
"path",
|
|
@@ -30,21 +30,21 @@ const K = ({
|
|
|
30
30
|
/* @__PURE__ */ e("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
|
-
),
|
|
33
|
+
), j = ({
|
|
34
34
|
className: l,
|
|
35
35
|
viewBox: c,
|
|
36
|
-
title:
|
|
36
|
+
title: n,
|
|
37
37
|
monotone: i,
|
|
38
|
-
...
|
|
38
|
+
...o
|
|
39
39
|
}) => /* @__PURE__ */ m(
|
|
40
|
-
|
|
40
|
+
C,
|
|
41
41
|
{
|
|
42
42
|
defaultViewBox: "0 0 512 512",
|
|
43
43
|
size: "size-5",
|
|
44
44
|
viewBox: c,
|
|
45
45
|
className: l,
|
|
46
|
-
title:
|
|
47
|
-
...
|
|
46
|
+
title: n || "Star in Circle",
|
|
47
|
+
...o,
|
|
48
48
|
children: [
|
|
49
49
|
/* @__PURE__ */ e(
|
|
50
50
|
"path",
|
|
@@ -56,21 +56,21 @@ const K = ({
|
|
|
56
56
|
/* @__PURE__ */ e("path", { d: "M270.3 112.9c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81.1 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.9 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81-11.8-36.2-73.4z" })
|
|
57
57
|
]
|
|
58
58
|
}
|
|
59
|
-
),
|
|
59
|
+
), J = ({
|
|
60
60
|
className: l,
|
|
61
61
|
viewBox: c,
|
|
62
|
-
title:
|
|
62
|
+
title: n,
|
|
63
63
|
monotone: i,
|
|
64
|
-
...
|
|
64
|
+
...o
|
|
65
65
|
}) => /* @__PURE__ */ m(
|
|
66
|
-
|
|
66
|
+
C,
|
|
67
67
|
{
|
|
68
68
|
defaultViewBox: "0 0 512 512",
|
|
69
69
|
size: "size-5",
|
|
70
70
|
viewBox: c,
|
|
71
71
|
className: l,
|
|
72
|
-
title:
|
|
73
|
-
...
|
|
72
|
+
title: n || "Star in Circle",
|
|
73
|
+
...o,
|
|
74
74
|
children: [
|
|
75
75
|
/* @__PURE__ */ e(
|
|
76
76
|
"path",
|
|
@@ -82,23 +82,23 @@ const K = ({
|
|
|
82
82
|
/* @__PURE__ */ e("path", { d: "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448m0 480a256 256 0 1 0 0-512 256 256 0 1 0 0 512m14.3-399.1c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.8 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81.1-11.8-36.2-73.4zm-40 95.1 25.7-51.8 25.6 51.9c2.3 4.7 6.8 8 12 8.8l57.3 8.3-41.5 40.4c-3.8 3.7-5.5 9-4.6 14.2l9.8 57.1-51.2-26.9c-4.7-2.5-10.2-2.5-14.9 0l-51.2 26.9 9.8-57.1c.9-5.2-.8-10.5-4.6-14.2L161 225.1l57.3-8.3c5.2-.8 9.7-4 12-8.8" })
|
|
83
83
|
]
|
|
84
84
|
}
|
|
85
|
-
),
|
|
85
|
+
), Q = {
|
|
86
|
+
[P]: $,
|
|
86
87
|
[I]: V,
|
|
87
|
-
[B]: L
|
|
88
|
-
[U]: P
|
|
88
|
+
[B]: L
|
|
89
89
|
}, t = {
|
|
90
90
|
ROW: "row",
|
|
91
91
|
TIMESTAMP: N,
|
|
92
92
|
SUMMARY: "summary",
|
|
93
93
|
PROVIDER: "provider",
|
|
94
|
-
TOKEN_USAGE:
|
|
94
|
+
TOKEN_USAGE: g,
|
|
95
95
|
ACTIONS: "actions"
|
|
96
|
-
},
|
|
96
|
+
}, q = [
|
|
97
97
|
t.ROW,
|
|
98
98
|
t.TIMESTAMP,
|
|
99
99
|
t.SUMMARY,
|
|
100
100
|
t.ACTIONS
|
|
101
|
-
],
|
|
101
|
+
], X = [
|
|
102
102
|
t.ROW,
|
|
103
103
|
t.SUMMARY,
|
|
104
104
|
t.TIMESTAMP,
|
|
@@ -108,20 +108,21 @@ const K = ({
|
|
|
108
108
|
], ce = ({
|
|
109
109
|
filteredHistory: l,
|
|
110
110
|
historyState: c,
|
|
111
|
-
lastEntryToLoad:
|
|
111
|
+
lastEntryToLoad: n,
|
|
112
112
|
onClickSort: i,
|
|
113
|
-
onClickRestore:
|
|
114
|
-
onClickDelete:
|
|
115
|
-
onClickFavorite:
|
|
116
|
-
infinityScrollMarkerRef:
|
|
113
|
+
onClickRestore: o,
|
|
114
|
+
onClickDelete: f,
|
|
115
|
+
onClickFavorite: w,
|
|
116
|
+
infinityScrollMarkerRef: O,
|
|
117
|
+
isLoading: T = !1
|
|
117
118
|
}) => {
|
|
118
|
-
const v =
|
|
119
|
+
const v = U() ? q : X, z = (s) => {
|
|
119
120
|
switch (s) {
|
|
120
121
|
case t.ROW:
|
|
121
122
|
return /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }, s);
|
|
122
123
|
case t.TIMESTAMP:
|
|
123
124
|
return /* @__PURE__ */ e(
|
|
124
|
-
|
|
125
|
+
S,
|
|
125
126
|
{
|
|
126
127
|
focusMode: "system",
|
|
127
128
|
buttonClassName: "text-xs sm:text-sm",
|
|
@@ -142,16 +143,16 @@ const K = ({
|
|
|
142
143
|
return /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm", children: "Provider" }, s);
|
|
143
144
|
case t.TOKEN_USAGE:
|
|
144
145
|
return /* @__PURE__ */ e(
|
|
145
|
-
|
|
146
|
+
S,
|
|
146
147
|
{
|
|
147
148
|
focusMode: "system",
|
|
148
149
|
buttonClassName: "text-xs sm:text-sm",
|
|
149
|
-
cellId:
|
|
150
|
+
cellId: g,
|
|
150
151
|
align: "right",
|
|
151
152
|
sortDirection: c.sortDirection,
|
|
152
153
|
sortedCell: c.sortedCell,
|
|
153
154
|
onClick: () => {
|
|
154
|
-
i(
|
|
155
|
+
i(g);
|
|
155
156
|
},
|
|
156
157
|
children: "Tokens"
|
|
157
158
|
},
|
|
@@ -162,10 +163,10 @@ const K = ({
|
|
|
162
163
|
default:
|
|
163
164
|
return null;
|
|
164
165
|
}
|
|
165
|
-
},
|
|
166
|
+
}, A = (s, r, p) => {
|
|
166
167
|
switch (s) {
|
|
167
168
|
case t.ROW:
|
|
168
|
-
return /* @__PURE__ */ e(a, { children:
|
|
169
|
+
return /* @__PURE__ */ e(a, { children: p + 1 }, s);
|
|
169
170
|
case t.TIMESTAMP:
|
|
170
171
|
return /* @__PURE__ */ e(
|
|
171
172
|
a,
|
|
@@ -198,7 +199,7 @@ const K = ({
|
|
|
198
199
|
);
|
|
199
200
|
}
|
|
200
201
|
case t.PROVIDER: {
|
|
201
|
-
const d = r.model ?
|
|
202
|
+
const d = r.model ? D(r.model) : null, R = d ? Q[d] : null;
|
|
202
203
|
return /* @__PURE__ */ e(
|
|
203
204
|
a,
|
|
204
205
|
{
|
|
@@ -224,67 +225,67 @@ const K = ({
|
|
|
224
225
|
{
|
|
225
226
|
className: h("dark:text-gray-400", "text-xs sm:text-sm"),
|
|
226
227
|
align: "right",
|
|
227
|
-
children: r.tokenUsage ?
|
|
228
|
+
children: r.tokenUsage ? b.format(r.tokenUsage) : "0"
|
|
228
229
|
},
|
|
229
230
|
s
|
|
230
231
|
);
|
|
231
232
|
case t.ACTIONS:
|
|
232
233
|
return /* @__PURE__ */ e(a, { children: /* @__PURE__ */ m("div", { className: "flex flex-col items-end sm:flex-row gap-2", children: [
|
|
233
234
|
/* @__PURE__ */ e(
|
|
234
|
-
|
|
235
|
+
M,
|
|
235
236
|
{
|
|
236
237
|
label: "Restore chat",
|
|
237
238
|
placement: "top",
|
|
238
239
|
trigger: /* @__PURE__ */ e(
|
|
239
|
-
|
|
240
|
+
u,
|
|
240
241
|
{
|
|
241
242
|
noBorder: !0,
|
|
242
243
|
label: "Restore chat",
|
|
243
244
|
variant: "primary",
|
|
244
245
|
iconClassName: "text-green-800 dark:text-green-500",
|
|
245
246
|
onClick: async () => {
|
|
246
|
-
await
|
|
247
|
+
await o(r);
|
|
247
248
|
},
|
|
248
|
-
children: /* @__PURE__ */ e(
|
|
249
|
+
children: /* @__PURE__ */ e(W, { size: "size-3", monotone: !0 })
|
|
249
250
|
}
|
|
250
251
|
)
|
|
251
252
|
}
|
|
252
253
|
),
|
|
253
254
|
/* @__PURE__ */ e(
|
|
254
|
-
|
|
255
|
+
M,
|
|
255
256
|
{
|
|
256
257
|
label: r.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
257
258
|
placement: "top",
|
|
258
259
|
trigger: /* @__PURE__ */ e(
|
|
259
|
-
|
|
260
|
+
u,
|
|
260
261
|
{
|
|
261
262
|
noBorder: !0,
|
|
262
263
|
label: r.favoriteChat ? "Remove from favorites" : "Add to favorites",
|
|
263
264
|
variant: "primary",
|
|
264
265
|
onClick: async () => {
|
|
265
|
-
await
|
|
266
|
+
await w(r);
|
|
266
267
|
},
|
|
267
|
-
children: r.favoriteChat ? /* @__PURE__ */ e(
|
|
268
|
+
children: r.favoriteChat ? /* @__PURE__ */ e(j, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(J, { size: "size-4", monotone: !0 })
|
|
268
269
|
}
|
|
269
270
|
)
|
|
270
271
|
}
|
|
271
272
|
),
|
|
272
273
|
/* @__PURE__ */ e(
|
|
273
|
-
|
|
274
|
+
M,
|
|
274
275
|
{
|
|
275
276
|
label: "Delete chat",
|
|
276
277
|
placement: "top",
|
|
277
278
|
trigger: /* @__PURE__ */ e(
|
|
278
|
-
|
|
279
|
+
u,
|
|
279
280
|
{
|
|
280
281
|
noBorder: !0,
|
|
281
282
|
label: "Delete chat",
|
|
282
283
|
variant: "primary",
|
|
283
284
|
iconClassName: "text-red-700 dark:text-red-500",
|
|
284
285
|
onClick: () => {
|
|
285
|
-
|
|
286
|
+
f(r);
|
|
286
287
|
},
|
|
287
|
-
children: /* @__PURE__ */ e(
|
|
288
|
+
children: /* @__PURE__ */ e(K, { size: "size-3", monotone: !0 })
|
|
288
289
|
}
|
|
289
290
|
)
|
|
290
291
|
}
|
|
@@ -294,15 +295,15 @@ const K = ({
|
|
|
294
295
|
return null;
|
|
295
296
|
}
|
|
296
297
|
};
|
|
297
|
-
return /* @__PURE__ */ m(
|
|
298
|
-
/* @__PURE__ */ e(
|
|
299
|
-
/* @__PURE__ */ e(
|
|
300
|
-
r ===
|
|
301
|
-
/* @__PURE__ */ e(
|
|
302
|
-
(
|
|
298
|
+
return /* @__PURE__ */ m(H, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
|
|
299
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(x, { children: v.map((s) => z(s)) }) }),
|
|
300
|
+
/* @__PURE__ */ e(F, { children: T && l.length === 0 ? /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : l.slice(0, n).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m(_, { children: [
|
|
301
|
+
r === n - E && /* @__PURE__ */ e("tr", { ref: O }),
|
|
302
|
+
/* @__PURE__ */ e(x, { children: v.map(
|
|
303
|
+
(p) => A(p, s, r)
|
|
303
304
|
) })
|
|
304
|
-
] }, `${
|
|
305
|
-
/* @__PURE__ */ e(
|
|
305
|
+
] }, `${k.HISTORY.TITLE}-${s.id}-${r}`) : null) }),
|
|
306
|
+
/* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: y(
|
|
306
307
|
`${l.length} chat`,
|
|
307
308
|
l.length
|
|
308
309
|
) }) }) }) })
|