@versini/sassysaint 8.72.2 → 8.73.0
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.CXOnXOxv.js → AboutChangelog.Cp9PopiO.js} +2 -2
- package/dist/chunks/{AboutEntry.BqghyPht.js → AboutEntry.BOb5_aZI.js} +7 -7
- package/dist/chunks/{App.DiTqgtxP.js → App.Ck78giBC.js} +2310 -2275
- package/dist/chunks/{Chart.zHnmf0lE.js → Chart.C1dgaS-F.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BCUcCov2.js → ChatBubbleAssistant.CT2jmjen.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.DeTLiCnK.js → ChatBubbleUser.CM1FzHNQ.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BLuVDrmn.js → ChatHistoryTable._Rzl_5Sk.js} +3 -3
- package/dist/chunks/{HistoryEntry.DfYIUhAQ.js → HistoryEntry.DM6RInwR.js} +3 -3
- package/dist/chunks/{ProfileEntry.AoEbtJwx.js → ProfileEntry.Naot3F9p.js} +2 -2
- package/dist/chunks/{SettingsEntry.DxeR3V3h.js → SettingsEntry.Du0GDXgA.js} +109 -108
- package/dist/chunks/{Table.DEwmX1g0.js → Table.JtsJZQLY.js} +2 -2
- package/dist/chunks/{UsageEntry.Dm5VMDaB.js → UsageEntry.C18Kaf6V.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.DfUqGJlK.js → UserMemoriesPanel.C9gXdvcN.js} +4 -4
- package/dist/chunks/{index.C1N6IHak.js → index.BYZBF4_0.js} +1 -1
- package/dist/chunks/{index.DMxEcskX.js → index.Ce0bioPG.js} +1 -1
- package/dist/chunks/{index.Cs_I2oBS.js → index.D0pvrKFC.js} +1 -1
- package/dist/chunks/{index.BWK5jDpV.js → index.DBqrJ-of.js} +2 -2
- package/dist/chunks/{index.D-zPjU38.js → index.DTBMKq5O.js} +651 -649
- package/dist/chunks/{index.TGXUnVDl.js → index.DdEAWm8o.js} +1 -1
- package/dist/chunks/{index.CjmLIeXl.js → index.GppF30Qs.js} +1 -1
- package/dist/chunks/{index.DyFmi5Zp.js → index.ce_hM2eo.js} +3 -3
- package/dist/chunks/{useMarkdown.6gAYVpMt.js → useMarkdown.CfYCs10-.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -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.Ck78giBC.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.DTBMKq5O.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 x } from "react/jsx-runtime";
|
|
2
|
-
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y 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, Y as L } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.BYZBF4_0.js";
|
|
4
4
|
import w from "clsx";
|
|
5
5
|
import v, { useState as M, 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.Ck78giBC.js";
|
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.CfYCs10-.js";
|
|
8
8
|
const j = 2, q = j * 1e3, b = "", I = (e) => e * (2 - e);
|
|
9
9
|
function W(e, n = !0) {
|
|
10
10
|
const [a, p] = M(0), [i, C] = M(0), [t, T] = M(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.Ck78giBC.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.CfYCs10-.js";
|
|
5
|
+
import { C as M } from "./index.DTBMKq5O.js";
|
|
6
6
|
const R = 200, N = ({
|
|
7
7
|
string: e,
|
|
8
8
|
idealLength: r = R
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as g, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.
|
|
3
|
-
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.
|
|
2
|
+
import { I as g, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.Ck78giBC.js";
|
|
4
4
|
import h from "clsx";
|
|
5
5
|
import { Fragment as _ } from "react";
|
|
6
|
-
import { j as $, D as H, G as M, H as Y, U as F, M as a, F as f, l as G } from "./Table.
|
|
6
|
+
import { j as $, D as H, G as M, H as Y, U as F, M as a, F as f, l as G } from "./Table.JtsJZQLY.js";
|
|
7
7
|
const K = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { I as Z, n as P, INFINITE_SCROLL_LIMIT as F, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, Z as L, useUserPreferences as se, useDeleteChat as oe, useToggleFavoriteChat as ie, APP_CLASSNAME as ne, TOAST_CHAT_DELETED as ce, graphQLRequest as le, SERVICE_TYPES as de, setNewProvider as he, ACTION_SORT as me, J as ue, TOAST_PROVIDER_CHANGED as Ce, useChatsHistory as Se, LOCAL_STORAGE_SEARCH as pe, LOCAL_STORAGE_FAVORITES_ONLY as ye, HISTORY_TITLE as fe, S as Te, Y$1 as ge, debounce as Ae, C as Ee, ACTION_SEARCH as ve } from "./index.
|
|
3
|
-
import { HistoryContext as V, ChatContext as z, useAiChat as _e, E as g, e as m, ConfirmationPanel as De, LazyToastContainerWrapper as Oe, showErrorToast as Le, CHAT_SET_PROVIDER as Re, showSuccessToast as Ie, CHAT_SET_STATUS as ke, oe as Ne, G as be } from "./App.
|
|
2
|
+
import { I as Z, n as P, INFINITE_SCROLL_LIMIT as F, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, Z as L, useUserPreferences as se, useDeleteChat as oe, useToggleFavoriteChat as ie, APP_CLASSNAME as ne, TOAST_CHAT_DELETED as ce, graphQLRequest as le, SERVICE_TYPES as de, setNewProvider as he, ACTION_SORT as me, J as ue, TOAST_PROVIDER_CHANGED as Ce, useChatsHistory as Se, LOCAL_STORAGE_SEARCH as pe, LOCAL_STORAGE_FAVORITES_ONLY as ye, HISTORY_TITLE as fe, S as Te, Y$1 as ge, debounce as Ae, C as Ee, ACTION_SEARCH as ve } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { HistoryContext as V, ChatContext as z, useAiChat as _e, E as g, e as m, ConfirmationPanel as De, LazyToastContainerWrapper as Oe, showErrorToast as Le, CHAT_SET_PROVIDER as Re, showSuccessToast as Ie, CHAT_SET_STATUS as ke, oe as Ne, G as be } from "./App.Ck78giBC.js";
|
|
4
4
|
import { useRef as w, useState as x, useContext as R, useCallback as we, useEffect as G, Suspense as xe, lazy as He } from "react";
|
|
5
5
|
const Fe = ({
|
|
6
6
|
className: l,
|
|
@@ -31,7 +31,7 @@ const Fe = ({
|
|
|
31
31
|
), Pe = He(
|
|
32
32
|
() => import(
|
|
33
33
|
/* webpackChunkName: "history-table" */
|
|
34
|
-
"./ChatHistoryTable.
|
|
34
|
+
"./ChatHistoryTable._Rzl_5Sk.js"
|
|
35
35
|
).then((l) => ({ default: l.ChatHistoryTable }))
|
|
36
36
|
), Ve = ({
|
|
37
37
|
filteredHistory: l,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as D, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as H, LazyToastContainerWrapper as $, oe as V } from "./App.
|
|
3
|
-
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.
|
|
2
|
+
import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as H, LazyToastContainerWrapper as $, oe as V } from "./App.Ck78giBC.js";
|
|
3
|
+
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.DTBMKq5O.js";
|
|
4
4
|
import ie from "clsx";
|
|
5
5
|
import { useState as m, useMemo as ce, useCallback as P } from "react";
|
|
6
6
|
const oe = () => {
|
|
@@ -1,105 +1,106 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { n as ye, useEntitlements as
|
|
3
|
-
import { useCapability as
|
|
4
|
-
import { Re as
|
|
5
|
-
import { useState as n, useMemo as
|
|
6
|
-
const
|
|
7
|
-
open:
|
|
2
|
+
import { n as ye, useEntitlements as De, useUserPreferences as Me, nt as se, LOCAL_STORAGE_OLED_MODE as Le, canEvaluateModels as Oe, et as ve, getCacheInfo as _e, isServiceWorkerEnabled as xe, applyOledMode as ae, SETTINGS_TITLE as Ae, S as m, CARDS as r, Q as Re, C as D, PROMPTS_DESCRIPTION as Be, L as Pe, j as ne, getCurrentGeoLocation as Ge, graphQLRequest as re, handleServiceWorkerToggle as Ue, SERVICE_TYPES as le } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { AppContext as Ve, useCapability as ce, E as We, oe as $e, G as l, APP_SET_OLED_MODE as ze } from "./App.Ck78giBC.js";
|
|
4
|
+
import { Re as ie } from "./index.GppF30Qs.js";
|
|
5
|
+
import { useContext as je, useState as n, useMemo as He, useCallback as Ye, useEffect as M } from "react";
|
|
6
|
+
const Xe = ({
|
|
7
|
+
open: de,
|
|
8
8
|
onOpenChange: L
|
|
9
9
|
}) => {
|
|
10
|
-
const { getAccessToken: f, user: O } = ye(), { allowedModels: T, status:
|
|
10
|
+
const { getAccessToken: f, user: O } = ye(), { allowedModels: T, status: v } = De(), { dispatch: me } = je(Ve), {
|
|
11
11
|
data: o,
|
|
12
|
-
isSuccess:
|
|
13
|
-
refetch:
|
|
14
|
-
} =
|
|
12
|
+
isSuccess: ue,
|
|
13
|
+
refetch: _
|
|
14
|
+
} = Me({
|
|
15
15
|
user: O?.username,
|
|
16
16
|
getAccessToken: f
|
|
17
17
|
}), [x, p] = n({
|
|
18
18
|
loadingLocation: !1
|
|
19
|
-
}), [C,
|
|
19
|
+
}), [C, A] = n({
|
|
20
20
|
prompts: []
|
|
21
|
-
}), [
|
|
21
|
+
}), [R, B] = n(""), [P, E] = n(""), [G, U] = n(!1), [V, W] = n(!1), [g, $] = n(!1), [N, z] = n(!1), [j, H] = n(!1), [Y, q] = n(!1), [u, F] = n(null), [Q, K] = n(!1), [J, X] = n(!1), Z = ce(se.TOOL.MEMORIES), ee = ce(se.ADDON.REASONING), [I, he] = We({
|
|
22
22
|
key: Le,
|
|
23
23
|
initialValue: !1
|
|
24
|
-
}),
|
|
25
|
-
|
|
24
|
+
}), pe = He(() => Oe(T, v) ? ve(T) : !1, [T, v]), Ee = (e) => {
|
|
25
|
+
X(e);
|
|
26
|
+
}, ge = (e) => {
|
|
27
|
+
U(e);
|
|
26
28
|
}, Ne = (e) => {
|
|
27
|
-
|
|
29
|
+
Z && W(e);
|
|
28
30
|
}, Se = (e) => {
|
|
29
|
-
|
|
31
|
+
z(e);
|
|
30
32
|
}, fe = (e) => {
|
|
31
|
-
|
|
33
|
+
ee && H(e);
|
|
32
34
|
}, Te = (e) => {
|
|
33
|
-
|
|
35
|
+
q(e);
|
|
34
36
|
}, Ce = (e) => {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}, be = async (e) => {
|
|
37
|
+
he(e), ae(e), me({
|
|
38
|
+
type: ze,
|
|
39
|
+
payload: { oledMode: e }
|
|
40
|
+
});
|
|
41
|
+
}, Ie = async (e) => {
|
|
41
42
|
e.preventDefault();
|
|
42
43
|
try {
|
|
43
|
-
await
|
|
44
|
+
await re({
|
|
44
45
|
accessToken: await f(),
|
|
45
|
-
type:
|
|
46
|
+
type: le.SET_USER_PREFERENCES,
|
|
46
47
|
params: {
|
|
47
48
|
user: O?.username,
|
|
48
|
-
instructions:
|
|
49
|
-
location:
|
|
49
|
+
instructions: R,
|
|
50
|
+
location: P,
|
|
50
51
|
provider: o?.provider,
|
|
51
52
|
tags: C.prompts,
|
|
52
|
-
sendOnEnter:
|
|
53
|
-
useMemory:
|
|
54
|
-
showDetails:
|
|
55
|
-
showReasoningButton:
|
|
56
|
-
useNestedModelSelection:
|
|
53
|
+
sendOnEnter: G,
|
|
54
|
+
useMemory: V,
|
|
55
|
+
showDetails: J,
|
|
56
|
+
showReasoningButton: j,
|
|
57
|
+
useNestedModelSelection: Y
|
|
57
58
|
}
|
|
58
|
-
}), N !== g && (await
|
|
59
|
+
}), N !== g && (await Ue(N), $(N)), _(), p({
|
|
59
60
|
loadingLocation: !1
|
|
60
61
|
});
|
|
61
62
|
} catch {
|
|
62
63
|
}
|
|
63
|
-
},
|
|
64
|
+
}, be = async () => {
|
|
64
65
|
p({
|
|
65
66
|
loadingLocation: !0
|
|
66
67
|
}), E("...");
|
|
67
68
|
try {
|
|
68
|
-
const e = Date.now(), a = await
|
|
69
|
+
const e = Date.now(), a = await Ge(), S = await re({
|
|
69
70
|
accessToken: await f(),
|
|
70
|
-
type:
|
|
71
|
+
type: le.GET_LOCATION,
|
|
71
72
|
params: {
|
|
72
73
|
latitude: a.latitude,
|
|
73
74
|
longitude: a.longitude
|
|
74
75
|
}
|
|
75
76
|
}), d = Date.now() - e;
|
|
76
|
-
d < 2e3 && await new Promise((
|
|
77
|
-
const { city: i, state: c, country: h, displayName:
|
|
77
|
+
d < 2e3 && await new Promise((we) => setTimeout(we, 2e3 - d));
|
|
78
|
+
const { city: i, state: c, country: h, displayName: w } = S.data, ke = i && c && h ? `${i}, ${c}, ${h}` : w;
|
|
78
79
|
p({
|
|
79
80
|
loadingLocation: !1
|
|
80
|
-
}), E(
|
|
81
|
+
}), E(ke);
|
|
81
82
|
} catch {
|
|
82
83
|
p({
|
|
83
84
|
loadingLocation: !1
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
87
|
+
}, te = () => {
|
|
88
|
+
_(), L(!1);
|
|
89
|
+
}, b = ({
|
|
89
90
|
enabled: e = !1,
|
|
90
91
|
privateChat: a = !1,
|
|
91
92
|
clipboardAccess: S = !1,
|
|
92
|
-
...
|
|
93
|
+
...k
|
|
93
94
|
}) => {
|
|
94
|
-
|
|
95
|
+
A((d) => {
|
|
95
96
|
const i = d.prompts, c = {
|
|
96
|
-
...
|
|
97
|
+
...k,
|
|
97
98
|
enabled: e,
|
|
98
99
|
privateChat: a,
|
|
99
100
|
clipboardAccess: S
|
|
100
101
|
};
|
|
101
102
|
S ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
|
|
102
|
-
const h = i.findIndex((
|
|
103
|
+
const h = i.findIndex((w) => w.slot === k.slot);
|
|
103
104
|
return h === -1 ? {
|
|
104
105
|
...d,
|
|
105
106
|
prompts: [...i, { ...c }]
|
|
@@ -108,59 +109,59 @@ const Qe = ({
|
|
|
108
109
|
prompts: [...i]
|
|
109
110
|
});
|
|
110
111
|
});
|
|
111
|
-
},
|
|
112
|
+
}, oe = Ye(async () => {
|
|
112
113
|
try {
|
|
113
|
-
|
|
114
|
-
const e = await
|
|
115
|
-
|
|
114
|
+
K(!0);
|
|
115
|
+
const e = await _e();
|
|
116
|
+
F(e);
|
|
116
117
|
} catch {
|
|
117
118
|
} finally {
|
|
118
|
-
|
|
119
|
+
K(!1);
|
|
119
120
|
}
|
|
120
121
|
}, []);
|
|
121
|
-
return
|
|
122
|
+
return M(() => {
|
|
122
123
|
if (!o)
|
|
123
124
|
return;
|
|
124
|
-
o.instructions &&
|
|
125
|
+
o.instructions && B(o.instructions), o.location && E(o.location), o.tags && A({ prompts: o.tags }), o.sendOnEnter !== void 0 && U(o.sendOnEnter), o.useMemory !== void 0 && W(o.useMemory), o.showDetails !== void 0 && X(o.showDetails), o.showReasoningButton !== void 0 && H(o.showReasoningButton), o.useNestedModelSelection !== void 0 && q(o.useNestedModelSelection);
|
|
125
126
|
const e = xe();
|
|
126
|
-
|
|
127
|
-
}, [o]),
|
|
128
|
-
g ?
|
|
129
|
-
}, [g,
|
|
130
|
-
|
|
131
|
-
}, [I
|
|
127
|
+
$(e), z(e);
|
|
128
|
+
}, [o]), M(() => {
|
|
129
|
+
g ? oe() : F(null);
|
|
130
|
+
}, [g, oe]), M(() => {
|
|
131
|
+
ae(I);
|
|
132
|
+
}, [I]), ue ? /* @__PURE__ */ s(
|
|
132
133
|
$e,
|
|
133
134
|
{
|
|
134
|
-
open:
|
|
135
|
-
onOpenChange:
|
|
136
|
-
title:
|
|
135
|
+
open: de,
|
|
136
|
+
onOpenChange: te,
|
|
137
|
+
title: Ae,
|
|
137
138
|
animation: !0,
|
|
138
139
|
animationType: "fade",
|
|
139
140
|
footer: /* @__PURE__ */ s(
|
|
140
|
-
|
|
141
|
+
Pe,
|
|
141
142
|
{
|
|
142
143
|
columnGap: 2,
|
|
143
144
|
alignHorizontal: "flex-end",
|
|
144
145
|
className: "pb-8 sm:pb-0",
|
|
145
146
|
children: [
|
|
146
|
-
/* @__PURE__ */ t(
|
|
147
|
-
|
|
147
|
+
/* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
|
|
148
|
+
D,
|
|
148
149
|
{
|
|
149
150
|
mode: "dark",
|
|
150
151
|
variant: "secondary",
|
|
151
152
|
focusMode: "light",
|
|
152
153
|
noBorder: !0,
|
|
153
|
-
onClick:
|
|
154
|
+
onClick: te,
|
|
154
155
|
children: "Cancel"
|
|
155
156
|
}
|
|
156
157
|
) }),
|
|
157
|
-
/* @__PURE__ */ t(
|
|
158
|
-
|
|
158
|
+
/* @__PURE__ */ t(ne, { children: /* @__PURE__ */ t(
|
|
159
|
+
D,
|
|
159
160
|
{
|
|
160
161
|
mode: "dark",
|
|
161
162
|
focusMode: "light",
|
|
162
163
|
onClick: async (e) => {
|
|
163
|
-
L(!1), await
|
|
164
|
+
L(!1), await Ie(e);
|
|
164
165
|
},
|
|
165
166
|
children: "Save"
|
|
166
167
|
}
|
|
@@ -185,8 +186,8 @@ const Qe = ({
|
|
|
185
186
|
className: "mt-2",
|
|
186
187
|
label: "Show Message Statistics",
|
|
187
188
|
name: "show-message-statistics",
|
|
188
|
-
onChange:
|
|
189
|
-
checked:
|
|
189
|
+
onChange: Ee,
|
|
190
|
+
checked: J
|
|
190
191
|
}
|
|
191
192
|
),
|
|
192
193
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.SEND_ON_ENTER }),
|
|
@@ -198,11 +199,11 @@ const Qe = ({
|
|
|
198
199
|
className: "mt-2",
|
|
199
200
|
label: "Send Message on Enter",
|
|
200
201
|
name: "send-message-on-enter",
|
|
201
|
-
onChange:
|
|
202
|
-
checked:
|
|
202
|
+
onChange: ge,
|
|
203
|
+
checked: G
|
|
203
204
|
}
|
|
204
205
|
),
|
|
205
|
-
|
|
206
|
+
Z && /* @__PURE__ */ s(y, { children: [
|
|
206
207
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.USE_MEMORY }),
|
|
207
208
|
/* @__PURE__ */ t(
|
|
208
209
|
l,
|
|
@@ -212,8 +213,8 @@ const Qe = ({
|
|
|
212
213
|
className: "mt-2",
|
|
213
214
|
label: "Use Memory",
|
|
214
215
|
name: "use-memory",
|
|
215
|
-
onChange:
|
|
216
|
-
checked:
|
|
216
|
+
onChange: Ne,
|
|
217
|
+
checked: V
|
|
217
218
|
}
|
|
218
219
|
)
|
|
219
220
|
] })
|
|
@@ -229,11 +230,11 @@ const Qe = ({
|
|
|
229
230
|
children: [
|
|
230
231
|
/* @__PURE__ */ s("p", { className: "text-sm", children: [
|
|
231
232
|
"What would you like ",
|
|
232
|
-
/* @__PURE__ */ t("em", { children:
|
|
233
|
+
/* @__PURE__ */ t("em", { children: Re }),
|
|
233
234
|
" to know about you to provide better responses?"
|
|
234
235
|
] }),
|
|
235
236
|
/* @__PURE__ */ t(
|
|
236
|
-
|
|
237
|
+
ie,
|
|
237
238
|
{
|
|
238
239
|
mode: "alt-system",
|
|
239
240
|
autoCapitalize: "off",
|
|
@@ -241,9 +242,9 @@ const Qe = ({
|
|
|
241
242
|
autoCorrect: "off",
|
|
242
243
|
name: "customInstructions",
|
|
243
244
|
label: "Custom Instructions",
|
|
244
|
-
value:
|
|
245
|
+
value: R,
|
|
245
246
|
onChange: (e) => {
|
|
246
|
-
|
|
247
|
+
B(e.target.value);
|
|
247
248
|
},
|
|
248
249
|
helperText: "Press ENTER to add a new line."
|
|
249
250
|
}
|
|
@@ -260,12 +261,12 @@ const Qe = ({
|
|
|
260
261
|
children: [
|
|
261
262
|
/* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
262
263
|
/* @__PURE__ */ t(
|
|
263
|
-
|
|
264
|
+
ie,
|
|
264
265
|
{
|
|
265
266
|
mode: "alt-system",
|
|
266
267
|
name: "location",
|
|
267
268
|
label: "Location",
|
|
268
|
-
value:
|
|
269
|
+
value: P,
|
|
269
270
|
onChange: (e) => {
|
|
270
271
|
E(e.target.value);
|
|
271
272
|
},
|
|
@@ -273,14 +274,14 @@ const Qe = ({
|
|
|
273
274
|
}
|
|
274
275
|
),
|
|
275
276
|
/* @__PURE__ */ t(
|
|
276
|
-
|
|
277
|
+
D,
|
|
277
278
|
{
|
|
278
279
|
className: "mt-2",
|
|
279
280
|
size: "small",
|
|
280
281
|
noBorder: !0,
|
|
281
282
|
variant: "secondary",
|
|
282
283
|
disabled: x.loadingLocation,
|
|
283
|
-
onClick:
|
|
284
|
+
onClick: be,
|
|
284
285
|
children: x.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
285
286
|
}
|
|
286
287
|
)
|
|
@@ -294,7 +295,7 @@ const Qe = ({
|
|
|
294
295
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
295
296
|
noBorder: !0,
|
|
296
297
|
children: [
|
|
297
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children:
|
|
298
|
+
/* @__PURE__ */ t("p", { className: "text-sm", children: Be }),
|
|
298
299
|
C.prompts && C.prompts.slice(0, 3).map((e) => /* @__PURE__ */ s(
|
|
299
300
|
m,
|
|
300
301
|
{
|
|
@@ -315,7 +316,7 @@ const Qe = ({
|
|
|
315
316
|
label: "Enabled",
|
|
316
317
|
name: e.slot.toString(),
|
|
317
318
|
onChange: (a) => {
|
|
318
|
-
|
|
319
|
+
b({
|
|
319
320
|
...e,
|
|
320
321
|
enabled: a
|
|
321
322
|
});
|
|
@@ -334,7 +335,7 @@ const Qe = ({
|
|
|
334
335
|
label: "Private Chat",
|
|
335
336
|
name: `private-${e.slot.toString()}`,
|
|
336
337
|
onChange: (a) => {
|
|
337
|
-
|
|
338
|
+
b({
|
|
338
339
|
...e,
|
|
339
340
|
privateChat: a
|
|
340
341
|
});
|
|
@@ -353,7 +354,7 @@ const Qe = ({
|
|
|
353
354
|
label: "Use Clipboard",
|
|
354
355
|
name: `clipboard-${e.slot.toString()}`,
|
|
355
356
|
onChange: (a) => {
|
|
356
|
-
|
|
357
|
+
b({
|
|
357
358
|
...e,
|
|
358
359
|
clipboardAccess: a
|
|
359
360
|
});
|
|
@@ -375,7 +376,7 @@ const Qe = ({
|
|
|
375
376
|
className: "prose-dark dark:prose-lighter mt-4 ",
|
|
376
377
|
noBorder: !0,
|
|
377
378
|
children: [
|
|
378
|
-
|
|
379
|
+
ee && /* @__PURE__ */ s(y, { children: [
|
|
379
380
|
/* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION }),
|
|
380
381
|
/* @__PURE__ */ t(
|
|
381
382
|
l,
|
|
@@ -385,12 +386,12 @@ const Qe = ({
|
|
|
385
386
|
className: "mt-2",
|
|
386
387
|
label: "Show Reasoning Button",
|
|
387
388
|
name: "show-reasoning-button",
|
|
388
|
-
onChange:
|
|
389
|
-
checked:
|
|
389
|
+
onChange: fe,
|
|
390
|
+
checked: j
|
|
390
391
|
}
|
|
391
392
|
)
|
|
392
393
|
] }),
|
|
393
|
-
|
|
394
|
+
pe && /* @__PURE__ */ s(y, { children: [
|
|
394
395
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION }),
|
|
395
396
|
/* @__PURE__ */ t(
|
|
396
397
|
l,
|
|
@@ -400,35 +401,35 @@ const Qe = ({
|
|
|
400
401
|
className: "mt-2",
|
|
401
402
|
label: "Enable Model Selection",
|
|
402
403
|
name: "use-nested-model-selection",
|
|
403
|
-
onChange:
|
|
404
|
-
checked:
|
|
404
|
+
onChange: Te,
|
|
405
|
+
checked: Y
|
|
405
406
|
}
|
|
406
407
|
)
|
|
407
408
|
] }),
|
|
408
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.
|
|
409
|
+
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION }),
|
|
409
410
|
/* @__PURE__ */ t(
|
|
410
411
|
l,
|
|
411
412
|
{
|
|
412
413
|
noBorder: !0,
|
|
413
414
|
narrow: !0,
|
|
414
415
|
className: "mt-2",
|
|
415
|
-
label: "Enable
|
|
416
|
-
name: "enable-
|
|
417
|
-
onChange:
|
|
418
|
-
checked:
|
|
416
|
+
label: "Enable OLED Mode",
|
|
417
|
+
name: "enable-oled-mode",
|
|
418
|
+
onChange: Ce,
|
|
419
|
+
checked: I
|
|
419
420
|
}
|
|
420
421
|
),
|
|
421
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.
|
|
422
|
+
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION }),
|
|
422
423
|
/* @__PURE__ */ t(
|
|
423
424
|
l,
|
|
424
425
|
{
|
|
425
426
|
noBorder: !0,
|
|
426
427
|
narrow: !0,
|
|
427
428
|
className: "mt-2",
|
|
428
|
-
label: "Enable
|
|
429
|
-
name: "enable-
|
|
430
|
-
onChange:
|
|
431
|
-
checked:
|
|
429
|
+
label: "Enable Assets Caching",
|
|
430
|
+
name: "enable-service-worker",
|
|
431
|
+
onChange: Se,
|
|
432
|
+
checked: N
|
|
432
433
|
}
|
|
433
434
|
),
|
|
434
435
|
g && /* @__PURE__ */ s("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
|
@@ -451,8 +452,8 @@ const Qe = ({
|
|
|
451
452
|
},
|
|
452
453
|
a
|
|
453
454
|
)) }) }, e.name)),
|
|
454
|
-
u.totalItems === 0 && !
|
|
455
|
-
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children:
|
|
455
|
+
u.totalItems === 0 && !Q && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
|
|
456
|
+
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Q ? "Loading cache info..." : "No cache info available." })
|
|
456
457
|
] })
|
|
457
458
|
]
|
|
458
459
|
}
|
|
@@ -462,5 +463,5 @@ const Qe = ({
|
|
|
462
463
|
) : null;
|
|
463
464
|
};
|
|
464
465
|
export {
|
|
465
|
-
|
|
466
|
+
Xe as SettingsPanel
|
|
466
467
|
};
|
|
@@ -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.DTBMKq5O.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.Ck78giBC.js";
|
|
6
6
|
const L = ({
|
|
7
7
|
className: e,
|
|
8
8
|
viewBox: a,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as A, C as i, pluralize as h } from "./index.
|
|
3
|
-
import { oe as H } from "./App.
|
|
2
|
+
import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as A, C as i, pluralize as h } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { oe as H } from "./App.Ck78giBC.js";
|
|
4
4
|
import { useState as C, Suspense as K, lazy as j } from "react";
|
|
5
5
|
const s = [0, 3, 6, 9], n = {
|
|
6
6
|
TOKEN: "token",
|
|
7
7
|
MODEL: "model"
|
|
8
8
|
}, w = j(() => import(
|
|
9
9
|
/* webpackChunkName: "LazyChart" */
|
|
10
|
-
"./Chart.
|
|
10
|
+
"./Chart.C1dgaS-F.js"
|
|
11
11
|
)), R = ({
|
|
12
12
|
open: k,
|
|
13
13
|
onOpenChange: E
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsxs as l, jsx as e, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { I as se, L as O, j as y, C as v, n as ce, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as oe, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ie, useUserMemories as ae, useDeleteMemory as de, useDeleteAllMemories as me, useUpdateMemory as he, te as B } from "./index.
|
|
3
|
-
import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.
|
|
2
|
+
import { I as se, L as O, j as y, C as v, n as ce, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as oe, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ie, useUserMemories as ae, useDeleteMemory as de, useDeleteAllMemories as me, useUpdateMemory as he, te as B } from "./index.DTBMKq5O.js";
|
|
3
|
+
import { oe as V, E as F, e as g, ConfirmationPanel as G, st as H } from "./App.Ck78giBC.js";
|
|
4
4
|
import E from "clsx";
|
|
5
5
|
import { useState as x, useEffect as xe, useRef as j } from "react";
|
|
6
|
-
import { Re as ue } from "./index.
|
|
7
|
-
import { j as pe, D as fe, G as b, M as d, F as ge, H as ye, l as Ce, U as Ne } from "./Table.
|
|
6
|
+
import { Re as ue } from "./index.GppF30Qs.js";
|
|
7
|
+
import { j as pe, D as fe, G as b, M as d, F as ge, H as ye, l as Ce, U as Ne } from "./Table.JtsJZQLY.js";
|
|
8
8
|
const Ae = ({
|
|
9
9
|
className: a,
|
|
10
10
|
viewBox: m,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
|
2
|
-
import { toText as Ca } from "./index.
|
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.CfYCs10-.js";
|
|
2
|
+
import { toText as Ca } from "./index.D0pvrKFC.js";
|
|
3
3
|
const Gt = /[#.]/g;
|
|
4
4
|
function qa(r, e) {
|
|
5
5
|
const t = r || "", a = {};
|