@versini/sassysaint 8.51.0 → 8.51.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.WNM37aeI.js → AboutChangelog.B0ABVcR3.js} +2 -2
- package/dist/chunks/{AboutEntry.DsEQiX_E.js → AboutEntry.RAdDgbZn.js} +7 -7
- package/dist/chunks/{App.Bu-CJnKe.js → App.DgDmQxHq.js} +345 -341
- package/dist/chunks/{Chart.BdBKxHIA.js → Chart.B_BX_1VH.js} +662 -660
- package/dist/chunks/{ChatBubbleAssistant.B-vRFZBE.js → ChatBubbleAssistant.BSmvB9Qm.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.B5gHBtWt.js → ChatBubbleUser.BGMI6epr.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.Dlabwern.js → ChatHistoryTable.DTbD4e2c.js} +3 -3
- package/dist/chunks/{HistoryEntry.DRtSTHsn.js → HistoryEntry.MelXI6_h.js} +3 -3
- package/dist/chunks/{ProfileEntry.BSSHn4EU.js → ProfileEntry.DuR7Jqvj.js} +2 -2
- package/dist/chunks/{SettingsEntry.DwwFKKy7.js → SettingsEntry.Dk7dcHde.js} +69 -69
- package/dist/chunks/{Table.D-giOzeS.js → Table.C8e7XxYK.js} +2 -2
- package/dist/chunks/{UsageEntry.CShAiRZX.js → UsageEntry.DbwrcQHb.js} +3 -3
- package/dist/chunks/{index.CHVF-o0F.js → index.0jy1bv0L.js} +1778 -1714
- package/dist/chunks/{index.aQpIhFBj.js → index.621rkxQM.js} +1 -1
- package/dist/chunks/{index.DMEz-UrM.js → index.CgMjuThc.js} +1 -1
- package/dist/chunks/{index.wxtgxm6M.js → index.D9PVJgPe.js} +3 -3
- package/dist/chunks/{index.CrGSvvJa.js → index.D9eM50ip.js} +1 -1
- package/dist/chunks/{index.Bp_XB-o3.js → index.OS0YPTsb.js} +2 -2
- package/dist/chunks/{index.BHp59-sT.js → index.bieGnvCG.js} +1 -1
- package/dist/chunks/{useMarkdown.CW97u9fP.js → useMarkdown.CK8DF1Jt.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +3 -3
- package/package.json +5 -5
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsx as M } from "react/jsx-runtime";
|
2
|
-
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, ne 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, ne as L } from "./index.0jy1bv0L.js";
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.D9eM50ip.js";
|
4
4
|
import w from "clsx";
|
5
5
|
import v, { useState as b, 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.DgDmQxHq.js";
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.CK8DF1Jt.js";
|
8
8
|
const j = 2, q = j * 1e3, x = "", I = (e) => e * (2 - e);
|
9
9
|
function W(e, n = !0) {
|
10
10
|
const [a, p] = b(0), [i, C] = b(0), [t, T] = b(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.DgDmQxHq.js";
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.CK8DF1Jt.js";
|
5
|
+
import { C as M } from "./index.0jy1bv0L.js";
|
6
6
|
const R = 200, N = ({
|
7
7
|
string: e,
|
8
8
|
idealLength: r = R
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { I as E, Ae as p, ue as u, INFINITE_SCROLL_THRESHOLD as w, CARDS as y, pluralize as f, te as g, numberFormatter as v, ye as D, isProbablyMobile as U, y as b, i$1 as I, E as k } from "./index.
|
3
|
-
import { st as O, p$1 as z, z as P, p$2 as V } from "./App.
|
2
|
+
import { I as E, Ae as p, ue as u, INFINITE_SCROLL_THRESHOLD as w, CARDS as y, pluralize as f, te as g, numberFormatter as v, ye as D, isProbablyMobile as U, y as b, i$1 as I, E as k } from "./index.0jy1bv0L.js";
|
3
|
+
import { st as O, p$1 as z, z as P, p$2 as V } from "./App.DgDmQxHq.js";
|
4
4
|
import { Fragment as _ } from "react";
|
5
|
-
import { j as $, D as B, G as x, H, U as L, M as a, F as R, l as Y } from "./Table.
|
5
|
+
import { j as $, D as B, G as x, H, U as L, M as a, F as R, l as Y } from "./Table.C8e7XxYK.js";
|
6
6
|
const F = ({
|
7
7
|
className: l,
|
8
8
|
viewBox: n,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as m, jsx as t, Fragment as J } from "react/jsx-runtime";
|
2
|
-
import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, Ae as A, useUserPreferences as re, APP_CLASSNAME as se, mutateCall as N, SERVICE_TYPES as x, setNewProvider as oe, ACTION_SORT as ne, ue as ie, TOAST_CHAT_DELETED as ce, TOAST_PROVIDER_CHANGED as le, useChatsHistory as de, LOCAL_STORAGE_SEARCH as he, HISTORY_TITLE as me, Y as ue, debounce as Se, te as Ce, ACTION_SEARCH as pe } from "./index.
|
3
|
-
import { HistoryContext as M, ChatContext as P, useAiChat as Te, E as D, e as h, ConfirmationPanel as fe, LazyToastContainerWrapper as ye, showErrorToast as Ee, CHAT_SET_PROVIDER as ge, showSuccessToast as Ae, CHAT_SET_STATUS as De, se as _e, a as Ie } from "./App.
|
2
|
+
import { I as Q, n as z, INFINITE_SCROLL_LIMIT as H, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as g, LOCAL_STORAGE_SORT_TIMESTAMP as ee, LOCAL_STORAGE_SORT_TOKEN_USAGE as te, LOCAL_STORAGE_SORT as ae, Ae as A, useUserPreferences as re, APP_CLASSNAME as se, mutateCall as N, SERVICE_TYPES as x, setNewProvider as oe, ACTION_SORT as ne, ue as ie, TOAST_CHAT_DELETED as ce, TOAST_PROVIDER_CHANGED as le, useChatsHistory as de, LOCAL_STORAGE_SEARCH as he, HISTORY_TITLE as me, Y as ue, debounce as Se, te as Ce, ACTION_SEARCH as pe } from "./index.0jy1bv0L.js";
|
3
|
+
import { HistoryContext as M, ChatContext as P, useAiChat as Te, E as D, e as h, ConfirmationPanel as fe, LazyToastContainerWrapper as ye, showErrorToast as Ee, CHAT_SET_PROVIDER as ge, showSuccessToast as Ae, CHAT_SET_STATUS as De, se as _e, a as Ie } from "./App.DgDmQxHq.js";
|
4
4
|
import { useRef as R, useState as L, useContext as _, useCallback as Oe, useEffect as V, Suspense as Re, lazy as Le } from "react";
|
5
5
|
const ve = ({
|
6
6
|
className: i,
|
@@ -31,7 +31,7 @@ const ve = ({
|
|
31
31
|
), ke = Le(
|
32
32
|
() => import(
|
33
33
|
/* webpackChunkName: "history-table" */
|
34
|
-
"./ChatHistoryTable.
|
34
|
+
"./ChatHistoryTable.DTbD4e2c.js"
|
35
35
|
).then((i) => ({ default: i.ChatHistoryTable }))
|
36
36
|
), be = ({
|
37
37
|
filteredHistory: i,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { se as h } from "./App.
|
3
|
-
import { n as S, i as R, S as a, renderDataAsList as N, CARDS as r, it as P, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.
|
2
|
+
import { se as h } from "./App.DgDmQxHq.js";
|
3
|
+
import { n as S, i as R, S as a, renderDataAsList as N, CARDS as r, it as P, isTauri as u, te as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.0jy1bv0L.js";
|
4
4
|
const A = () => {
|
5
5
|
const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = S(), d = R(), s = i?.username || "";
|
6
6
|
return n && s ? /* @__PURE__ */ t(m, { children: [
|
@@ -1,19 +1,19 @@
|
|
1
|
-
import { jsxs as
|
2
|
-
import { o as Te, h as fe, i as Se, x as ve, n as we, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Ae, LOCAL_STORAGE_SORT_MEMORY_COLUMN as De, useUserMemories as Ie, useDeleteMemory as Le, useDeleteAllMemories as Me, te as _e, L as Ce, j as
|
3
|
-
import { E as be, e as J, ConfirmationPanel as ke, se as Ee, st as ze, useCapability as Fe, L as W } from "./App.
|
1
|
+
import { jsxs as l, jsx as e, Fragment as ue } from "react/jsx-runtime";
|
2
|
+
import { o as Te, h as fe, i as Se, x as ve, n as we, LOCAL_STORAGE_PREFIX as ge, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Ae, LOCAL_STORAGE_SORT_MEMORY_COLUMN as De, useUserMemories as Ie, useDeleteMemory as Le, useDeleteAllMemories as Me, te as _e, L as Ce, j as ne, C as K, useUserPreferences as Oe, getCacheInfo as Re, isServiceWorkerEnabled as Pe, SETTINGS_TITLE as Be, S as X, CARDS as F, de as Ge, PROMPTS_DESCRIPTION as Ue, pe as He, getCurrentGeoLocation as $e, mutateCall as ye, handleServiceWorkerToggle as Ve, SERVICE_TYPES as xe } from "./index.0jy1bv0L.js";
|
3
|
+
import { E as be, e as J, ConfirmationPanel as ke, se as Ee, st as ze, useCapability as Fe, L as W } from "./App.DgDmQxHq.js";
|
4
4
|
import We, { useState as c, useEffect as he, useRef as j, useLayoutEffect as te, useCallback as je } from "react";
|
5
|
-
import { j as Ye, D as qe, G as de, M as G, F as Xe, H as Je, l as Ke, U as Qe } from "./Table.
|
5
|
+
import { j as Ye, D as qe, G as de, M as G, F as Xe, H as Je, l as Ke, U as Qe } from "./Table.C8e7XxYK.js";
|
6
6
|
import k from "clsx";
|
7
7
|
function Ze({
|
8
8
|
value: a,
|
9
|
-
defaultValue:
|
9
|
+
defaultValue: n,
|
10
10
|
finalValue: o,
|
11
11
|
onChange: s = () => {
|
12
12
|
},
|
13
13
|
initialControlledDelay: t = 0
|
14
14
|
}) {
|
15
15
|
const [d, g] = c(!1), [y, N] = c(
|
16
|
-
|
16
|
+
n !== void 0 ? n : o
|
17
17
|
), T = (w) => {
|
18
18
|
N(w), s?.(w);
|
19
19
|
};
|
@@ -35,23 +35,23 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
35
35
|
"focus:outline-focus-light": a === "light",
|
36
36
|
"focus:outline-focus-light dark:focus:outline-focus-dark": a === "alt-system",
|
37
37
|
"focus:outline-focus-dark dark:focus:outline-focus-light": a === "system"
|
38
|
-
}),
|
38
|
+
}), lt = ({
|
39
39
|
noBorder: a,
|
40
|
-
error:
|
40
|
+
error: n
|
41
41
|
}) => k("border-2", {
|
42
|
-
"border-border-dark": !a && !
|
43
|
-
"focus:border-border-dark": !a &&
|
44
|
-
"border-border-error-dark": !a &&
|
42
|
+
"border-border-dark": !a && !n,
|
43
|
+
"focus:border-border-dark": !a && n,
|
44
|
+
"border-border-error-dark": !a && n,
|
45
45
|
"border-transparent": a
|
46
|
-
}),
|
46
|
+
}), nt = ({
|
47
47
|
disabled: a,
|
48
|
-
raw:
|
48
|
+
raw: n,
|
49
49
|
error: o,
|
50
50
|
mode: s,
|
51
51
|
leftElement: t,
|
52
52
|
rightElement: d
|
53
53
|
}) => {
|
54
|
-
if (
|
54
|
+
if (n)
|
55
55
|
return "";
|
56
56
|
if (a)
|
57
57
|
return k(
|
@@ -84,11 +84,11 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
84
84
|
);
|
85
85
|
}, it = ({
|
86
86
|
error: a,
|
87
|
-
raw:
|
87
|
+
raw: n,
|
88
88
|
mode: o,
|
89
89
|
disabled: s
|
90
90
|
}) => {
|
91
|
-
if (
|
91
|
+
if (n)
|
92
92
|
return "";
|
93
93
|
if (s)
|
94
94
|
return k(
|
@@ -111,7 +111,7 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
111
111
|
});
|
112
112
|
}, ct = ({
|
113
113
|
className: a,
|
114
|
-
textAreaClassName:
|
114
|
+
textAreaClassName: n,
|
115
115
|
raw: o,
|
116
116
|
focusMode: s,
|
117
117
|
disabled: t,
|
@@ -125,20 +125,20 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
125
125
|
"relative flex w-full flex-col justify-center",
|
126
126
|
et,
|
127
127
|
a
|
128
|
-
), M = o ? k(
|
128
|
+
), M = o ? k(n) : k(
|
129
129
|
Ne,
|
130
|
-
|
130
|
+
n,
|
131
131
|
at(),
|
132
132
|
ot({ mode: y }),
|
133
133
|
st({ focusMode: s }),
|
134
|
-
|
134
|
+
lt({
|
135
135
|
noBorder: d,
|
136
136
|
error: g
|
137
137
|
}),
|
138
138
|
{
|
139
139
|
"disabled:cursor-not-allowed disabled:opacity-50": t
|
140
140
|
}
|
141
|
-
), O = o ? void 0 : "sr-only", C =
|
141
|
+
), O = o ? void 0 : "sr-only", C = nt({
|
142
142
|
disabled: t,
|
143
143
|
raw: o,
|
144
144
|
error: g,
|
@@ -162,13 +162,13 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
162
162
|
};
|
163
163
|
}, dt = ({
|
164
164
|
scrollHeight: a,
|
165
|
-
currentHeight:
|
165
|
+
currentHeight: n,
|
166
166
|
currentLabelOffset: o = 0,
|
167
167
|
currentHelperTextOffset: s = 0
|
168
168
|
}) => {
|
169
169
|
let t, d;
|
170
|
-
if (a > 0 && a !==
|
171
|
-
const g = a -
|
170
|
+
if (a > 0 && a !== n) {
|
171
|
+
const g = a - n, y = Math.abs(g / 24);
|
172
172
|
t = o + -1 * Math.sign(g) * (12 * y), d = s + Math.sign(g) * (12 * y);
|
173
173
|
}
|
174
174
|
return {
|
@@ -179,7 +179,7 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
179
179
|
}, pe = We.forwardRef(
|
180
180
|
({
|
181
181
|
id: a,
|
182
|
-
name:
|
182
|
+
name: n,
|
183
183
|
label: o,
|
184
184
|
error: s = !1,
|
185
185
|
raw: t = !1,
|
@@ -201,9 +201,9 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
201
201
|
onBlur: S,
|
202
202
|
...R
|
203
203
|
}, H) => {
|
204
|
-
const p = j(null), Y = Te([H, p]), [q, _] = fe(), [m, u] = fe(), L = j(80), P = j(-25), $ = j(null), re = j(30), ae = j(null), V = Se({ id: a, prefix: `${Ne}-` }), [oe, ie] = c(0), [se,
|
204
|
+
const p = j(null), Y = Te([H, p]), [q, _] = fe(), [m, u] = fe(), L = j(80), P = j(-25), $ = j(null), re = j(30), ae = j(null), V = Se({ id: a, prefix: `${Ne}-` }), [oe, ie] = c(0), [se, le] = c(0), [Q, Z] = c(
|
205
205
|
!!(!v && h)
|
206
|
-
), r = `${
|
206
|
+
), r = `${n} error, ${h}`, i = ct({
|
207
207
|
className: d,
|
208
208
|
textAreaClassName: g,
|
209
209
|
error: s,
|
@@ -235,7 +235,7 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
235
235
|
return te(() => {
|
236
236
|
_ && _.width && ie(_.width + 18 + 10);
|
237
237
|
}, [_]), te(() => {
|
238
|
-
u && u.width &&
|
238
|
+
u && u.width && le(u.width + 18 + 10);
|
239
239
|
}, [u]), te(() => {
|
240
240
|
t || p && p.current && b !== void 0 && (p.current.style.height = "inherit", p.current.style.height = p.current.scrollHeight + "px");
|
241
241
|
}, [b, t]), te(() => {
|
@@ -264,7 +264,7 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
264
264
|
}, [b, t]), u.width > 0 && $?.current?.style.setProperty(
|
265
265
|
"--tw-translate-x",
|
266
266
|
`${12 + u.width + 5}px`
|
267
|
-
), /* @__PURE__ */
|
267
|
+
), /* @__PURE__ */ l("div", { className: i.wrapper, children: [
|
268
268
|
/* @__PURE__ */ e(
|
269
269
|
"label",
|
270
270
|
{
|
@@ -287,7 +287,7 @@ const Ne = "av-text-area", et = "av-text-area-wrapper", me = "av-text-area-helpe
|
|
287
287
|
{
|
288
288
|
ref: Y,
|
289
289
|
id: V,
|
290
|
-
name:
|
290
|
+
name: n,
|
291
291
|
disabled: M,
|
292
292
|
placeholder: t ? void 0 : " ",
|
293
293
|
className: i.textArea,
|
@@ -356,7 +356,7 @@ try {
|
|
356
356
|
}
|
357
357
|
const mt = ({
|
358
358
|
open: a,
|
359
|
-
onOpenChange:
|
359
|
+
onOpenChange: n,
|
360
360
|
user: o
|
361
361
|
}) => {
|
362
362
|
const { getAccessToken: s } = we(), [t] = c(void 0), [d, g] = be({
|
@@ -381,8 +381,8 @@ const mt = ({
|
|
381
381
|
}, _ = () => {
|
382
382
|
o && E.mutate({ user: o });
|
383
383
|
};
|
384
|
-
return /* @__PURE__ */
|
385
|
-
/* @__PURE__ */
|
384
|
+
return /* @__PURE__ */ l(ue, { children: [
|
385
|
+
/* @__PURE__ */ l(
|
386
386
|
ke,
|
387
387
|
{
|
388
388
|
showConfirmation: U,
|
@@ -395,12 +395,12 @@ const mt = ({
|
|
395
395
|
},
|
396
396
|
children: [
|
397
397
|
/* @__PURE__ */ e("p", { className: "m-0", children: "Are you sure you want to delete this memory?" }),
|
398
|
-
/* @__PURE__ */
|
399
|
-
/* @__PURE__ */
|
398
|
+
/* @__PURE__ */ l("ul", { className: "m-0 mt-2 list-disc list-inside text-xs opacity-80", children: [
|
399
|
+
/* @__PURE__ */ l("li", { children: [
|
400
400
|
"Excerpt: ",
|
401
401
|
S.current?.text?.slice(0, 80) || ""
|
402
402
|
] }),
|
403
|
-
/* @__PURE__ */
|
403
|
+
/* @__PURE__ */ l("li", { children: [
|
404
404
|
"Created:",
|
405
405
|
" ",
|
406
406
|
S.current?.createdAt ? new Date(S.current.createdAt).toLocaleString() : "-"
|
@@ -427,23 +427,23 @@ const mt = ({
|
|
427
427
|
Ee,
|
428
428
|
{
|
429
429
|
open: a,
|
430
|
-
onOpenChange: (m) =>
|
430
|
+
onOpenChange: (m) => n(m),
|
431
431
|
title: "User Memories",
|
432
432
|
animation: !0,
|
433
433
|
animationType: "fade",
|
434
|
-
footer: /* @__PURE__ */
|
435
|
-
/* @__PURE__ */ e(
|
434
|
+
footer: /* @__PURE__ */ l(Ce, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
435
|
+
/* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
436
436
|
K,
|
437
437
|
{
|
438
438
|
mode: "dark",
|
439
439
|
variant: "secondary",
|
440
440
|
noBorder: !0,
|
441
441
|
focusMode: "light",
|
442
|
-
onClick: () =>
|
442
|
+
onClick: () => n(!1),
|
443
443
|
children: "Close"
|
444
444
|
}
|
445
445
|
) }),
|
446
|
-
/* @__PURE__ */ e(
|
446
|
+
/* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
447
447
|
K,
|
448
448
|
{
|
449
449
|
mode: "dark",
|
@@ -455,11 +455,11 @@ const mt = ({
|
|
455
455
|
}
|
456
456
|
) })
|
457
457
|
] }),
|
458
|
-
children: /* @__PURE__ */
|
458
|
+
children: /* @__PURE__ */ l("div", { className: "flex flex-col sm:flex-row max-h-[75vh] min-h-[60vh] pt-2", children: [
|
459
459
|
h && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading memories..." }),
|
460
460
|
v && /* @__PURE__ */ e("p", { className: "m-0 text-red-500", children: "Failed to load memories." }),
|
461
|
-
!h && !v && (C && C.items.length > 0 ? /* @__PURE__ */
|
462
|
-
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */
|
461
|
+
!h && !v && (C && C.items.length > 0 ? /* @__PURE__ */ l(Ye, { compact: !0, stickyHeader: !0, children: [
|
462
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ l(de, { children: [
|
463
463
|
/* @__PURE__ */ e(G, { className: "sr-only", children: "Row" }),
|
464
464
|
/* @__PURE__ */ e(G, { children: "Memory" }),
|
465
465
|
/* @__PURE__ */ e(
|
@@ -484,7 +484,7 @@ const mt = ({
|
|
484
484
|
/* @__PURE__ */ e(Je, { children: [...C.items].sort((m, u) => {
|
485
485
|
const L = m.createdAt ? new Date(m.createdAt).getTime() : 0, P = u.createdAt ? new Date(u.createdAt).getTime() : 0;
|
486
486
|
return T === J.ASC ? L - P : P - L;
|
487
|
-
}).map((m, u) => /* @__PURE__ */
|
487
|
+
}).map((m, u) => /* @__PURE__ */ l(de, { children: [
|
488
488
|
/* @__PURE__ */ e(G, { className: "text-gray-400", children: u + 1 }),
|
489
489
|
/* @__PURE__ */ e(
|
490
490
|
G,
|
@@ -531,7 +531,7 @@ const mt = ({
|
|
531
531
|
}
|
532
532
|
) })
|
533
533
|
] }, m.memoryId)) }),
|
534
|
-
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(de, { children: /* @__PURE__ */
|
534
|
+
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ e(de, { children: /* @__PURE__ */ l(G, { colSpan: 4, children: [
|
535
535
|
C.total,
|
536
536
|
" memor",
|
537
537
|
C.total === 1 ? "y" : "ies"
|
@@ -543,7 +543,7 @@ const mt = ({
|
|
543
543
|
] });
|
544
544
|
}, xt = ({
|
545
545
|
open: a,
|
546
|
-
onOpenChange:
|
546
|
+
onOpenChange: n
|
547
547
|
}) => {
|
548
548
|
const { getAccessToken: o, user: s } = we(), {
|
549
549
|
data: t,
|
@@ -609,8 +609,8 @@ const mt = ({
|
|
609
609
|
});
|
610
610
|
} catch {
|
611
611
|
}
|
612
|
-
},
|
613
|
-
g(),
|
612
|
+
}, le = () => {
|
613
|
+
g(), n(!1);
|
614
614
|
}, Q = ({
|
615
615
|
enabled: r = !1,
|
616
616
|
privateChat: i = !1,
|
@@ -652,40 +652,40 @@ const mt = ({
|
|
652
652
|
S(r), H(r);
|
653
653
|
}, [t]), he(() => {
|
654
654
|
I ? Z() : Y(null);
|
655
|
-
}, [I, Z]), d ? /* @__PURE__ */
|
656
|
-
/* @__PURE__ */
|
655
|
+
}, [I, Z]), d ? /* @__PURE__ */ l(ue, { children: [
|
656
|
+
/* @__PURE__ */ l(
|
657
657
|
Ee,
|
658
658
|
{
|
659
659
|
open: a,
|
660
|
-
onOpenChange:
|
660
|
+
onOpenChange: le,
|
661
661
|
title: Be,
|
662
662
|
animation: !0,
|
663
663
|
animationType: "fade",
|
664
|
-
footer: /* @__PURE__ */
|
664
|
+
footer: /* @__PURE__ */ l(
|
665
665
|
Ce,
|
666
666
|
{
|
667
667
|
columnGap: 2,
|
668
668
|
alignHorizontal: "flex-end",
|
669
669
|
className: "pb-8 sm:pb-0",
|
670
670
|
children: [
|
671
|
-
/* @__PURE__ */ e(
|
671
|
+
/* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
672
672
|
K,
|
673
673
|
{
|
674
674
|
mode: "dark",
|
675
675
|
variant: "secondary",
|
676
676
|
focusMode: "light",
|
677
677
|
noBorder: !0,
|
678
|
-
onClick:
|
678
|
+
onClick: le,
|
679
679
|
children: "Cancel"
|
680
680
|
}
|
681
681
|
) }),
|
682
|
-
/* @__PURE__ */ e(
|
682
|
+
/* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
683
683
|
K,
|
684
684
|
{
|
685
685
|
mode: "dark",
|
686
686
|
focusMode: "light",
|
687
687
|
onClick: async (r) => {
|
688
|
-
|
688
|
+
n(!1), await ie(r);
|
689
689
|
},
|
690
690
|
children: "Save"
|
691
691
|
}
|
@@ -694,7 +694,7 @@ const mt = ({
|
|
694
694
|
}
|
695
695
|
),
|
696
696
|
children: [
|
697
|
-
/* @__PURE__ */
|
697
|
+
/* @__PURE__ */ l(
|
698
698
|
X,
|
699
699
|
{
|
700
700
|
header: F.SETTINGS_DETAILS.TITLE,
|
@@ -725,7 +725,7 @@ const mt = ({
|
|
725
725
|
checked: v
|
726
726
|
}
|
727
727
|
),
|
728
|
-
$ && /* @__PURE__ */
|
728
|
+
$ && /* @__PURE__ */ l(ue, { children: [
|
729
729
|
/* @__PURE__ */ e("p", { className: "text-sm mt-5", children: F.SETTINGS_DETAILS.USE_MEMORY }),
|
730
730
|
/* @__PURE__ */ e(
|
731
731
|
W,
|
@@ -753,14 +753,14 @@ const mt = ({
|
|
753
753
|
]
|
754
754
|
}
|
755
755
|
),
|
756
|
-
/* @__PURE__ */
|
756
|
+
/* @__PURE__ */ l(
|
757
757
|
X,
|
758
758
|
{
|
759
759
|
header: "Custom Instructions",
|
760
760
|
className: "prose-dark dark:prose-lighter mt-4",
|
761
761
|
noBorder: !0,
|
762
762
|
children: [
|
763
|
-
/* @__PURE__ */
|
763
|
+
/* @__PURE__ */ l("p", { className: "text-sm", children: [
|
764
764
|
"What would you like ",
|
765
765
|
/* @__PURE__ */ e("em", { children: Ge }),
|
766
766
|
" to know about you to provide better responses?"
|
@@ -784,7 +784,7 @@ const mt = ({
|
|
784
784
|
]
|
785
785
|
}
|
786
786
|
),
|
787
|
-
/* @__PURE__ */
|
787
|
+
/* @__PURE__ */ l(
|
788
788
|
X,
|
789
789
|
{
|
790
790
|
header: "Location",
|
@@ -820,7 +820,7 @@ const mt = ({
|
|
820
820
|
]
|
821
821
|
}
|
822
822
|
),
|
823
|
-
/* @__PURE__ */
|
823
|
+
/* @__PURE__ */ l(
|
824
824
|
X,
|
825
825
|
{
|
826
826
|
header: F.SETTINGS_PROMPTS.TITLE,
|
@@ -828,7 +828,7 @@ const mt = ({
|
|
828
828
|
noBorder: !0,
|
829
829
|
children: [
|
830
830
|
/* @__PURE__ */ e("p", { className: "text-sm", children: Ue }),
|
831
|
-
T.prompts && T.prompts.slice(0, 3).map((r) => /* @__PURE__ */
|
831
|
+
T.prompts && T.prompts.slice(0, 3).map((r) => /* @__PURE__ */ l(
|
832
832
|
X,
|
833
833
|
{
|
834
834
|
mode: "dark",
|
@@ -901,7 +901,7 @@ const mt = ({
|
|
901
901
|
]
|
902
902
|
}
|
903
903
|
),
|
904
|
-
/* @__PURE__ */
|
904
|
+
/* @__PURE__ */ l(
|
905
905
|
X,
|
906
906
|
{
|
907
907
|
header: F.SETTINGS_CACHING.TITLE,
|
@@ -920,14 +920,14 @@ const mt = ({
|
|
920
920
|
checked: R
|
921
921
|
}
|
922
922
|
),
|
923
|
-
I && /* @__PURE__ */
|
923
|
+
I && /* @__PURE__ */ l("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
924
924
|
/* @__PURE__ */ e("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
|
925
|
-
p ? /* @__PURE__ */
|
926
|
-
/* @__PURE__ */
|
925
|
+
p ? /* @__PURE__ */ l("div", { className: "text-xs space-y-2", children: [
|
926
|
+
/* @__PURE__ */ l("p", { className: "m-0", children: [
|
927
927
|
"Version: ",
|
928
928
|
/* @__PURE__ */ e("strong", { children: p.version })
|
929
929
|
] }),
|
930
|
-
/* @__PURE__ */
|
930
|
+
/* @__PURE__ */ l("p", { className: "m-0", children: [
|
931
931
|
"Total Items: ",
|
932
932
|
/* @__PURE__ */ e("strong", { children: p.totalItems })
|
933
933
|
] }),
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
2
|
-
import { I as f, b as v } from "./index.
|
2
|
+
import { I as f, b as v } from "./index.0jy1bv0L.js";
|
3
3
|
import C, { useContext as b } from "react";
|
4
4
|
import o from "clsx";
|
5
|
-
import { e as k } from "./App.
|
5
|
+
import { e as k } from "./App.DgDmQxHq.js";
|
6
6
|
const A = ({
|
7
7
|
className: e,
|
8
8
|
viewBox: a,
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.
|
3
|
-
import { se as z } from "./App.
|
2
|
+
import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.0jy1bv0L.js";
|
3
|
+
import { se as z } from "./App.DgDmQxHq.js";
|
4
4
|
import { useState as O, Suspense as P, lazy as B } from "react";
|
5
5
|
const t = [0, 3, 6, 9], j = B(() => import(
|
6
6
|
/* webpackChunkName: "LazyChart" */
|
7
|
-
"./Chart.
|
7
|
+
"./Chart.B_BX_1VH.js"
|
8
8
|
)), b = ({
|
9
9
|
open: S,
|
10
10
|
onOpenChange: I
|