@versini/sassysaint 8.73.2 → 8.74.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.BGbXeM1V.js → AboutChangelog.BdU-Up44.js} +2 -2
- package/dist/chunks/{AboutEntry.B6zksAh7.js → AboutEntry.DKxA0zBe.js} +7 -7
- package/dist/chunks/{App.tbzd8U0K.js → App.BafsamRg.js} +1988 -1953
- package/dist/chunks/{Chart.D2MV2w_Q.js → Chart.BMNKv69z.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.RzH26aLB.js → ChatBubbleAssistant.C3XH9kHH.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.CBnoxqes.js → ChatBubbleUser.BV4VXkHI.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.C6I638cE.js → ChatHistoryTable.ChLyu6e8.js} +3 -3
- package/dist/chunks/{HistoryEntry.CwveusV0.js → HistoryEntry.n12BNStM.js} +3 -3
- package/dist/chunks/{ProfileEntry.BSOMcinm.js → ProfileEntry.Bm9hoWDv.js} +2 -2
- package/dist/chunks/{SettingsEntry.SHZazp-B.js → SettingsEntry.DW6n7f_c.js} +151 -130
- package/dist/chunks/{Table.DwbGRt2o.js → Table.dMXWQqLO.js} +2 -2
- package/dist/chunks/{UsageEntry.BOtq-YTl.js → UsageEntry.BJPBuwG4.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.BdWYKyp5.js → UserMemoriesPanel.-_GZ-ON7.js} +4 -4
- package/dist/chunks/{index.BO_yfOl7.js → index.B4yXsZXv.js} +3 -3
- package/dist/chunks/{index.CqtcPR4A.js → index.BhQUsmmc.js} +121 -108
- package/dist/chunks/{index.CREsouo5.js → index.CDPbaKth.js} +1 -1
- package/dist/chunks/{index.DX8g0zp_.js → index.D3Wzgh8c.js} +2 -2
- package/dist/chunks/{index.Tr3TVoxP.js → index.DK0EDN8A.js} +1 -1
- package/dist/chunks/{index.Dxke1YD_.js → index.EoaMCXbo.js} +1 -1
- package/dist/chunks/{index.zCqfAEjf.js → index.I5OKXaoQ.js} +1 -1
- package/dist/chunks/{index.Cxd_WImT.js → index.IqTXmY7u.js} +1 -1
- package/dist/chunks/{useMarkdown.DBF4PL2-.js → useMarkdown.BAbvNFGg.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.BafsamRg.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.BhQUsmmc.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.BhQUsmmc.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.DK0EDN8A.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.BafsamRg.js";
|
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.BAbvNFGg.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.BafsamRg.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.BAbvNFGg.js";
|
|
5
|
+
import { C as M } from "./index.BhQUsmmc.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 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.
|
|
3
|
-
import { st as M, p$1 as L, z as V, p$2 as $ } from "./App.
|
|
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.BhQUsmmc.js";
|
|
3
|
+
import { st as M, p$1 as L, z as V, p$2 as $ } from "./App.BafsamRg.js";
|
|
4
4
|
import h from "clsx";
|
|
5
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.
|
|
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.dMXWQqLO.js";
|
|
7
7
|
const W = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
-
import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.
|
|
3
|
-
import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.
|
|
2
|
+
import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.BhQUsmmc.js";
|
|
3
|
+
import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.BafsamRg.js";
|
|
4
4
|
import { useRef as N, useState as x, useContext as O, useCallback as V, Suspense as He, lazy as Fe, useEffect as Pe } from "react";
|
|
5
5
|
const Ve = ({
|
|
6
6
|
className: c,
|
|
@@ -31,7 +31,7 @@ const Ve = ({
|
|
|
31
31
|
), ze = Fe(
|
|
32
32
|
() => import(
|
|
33
33
|
/* webpackChunkName: "history-table" */
|
|
34
|
-
"./ChatHistoryTable.
|
|
34
|
+
"./ChatHistoryTable.ChLyu6e8.js"
|
|
35
35
|
).then((c) => ({ default: c.ChatHistoryTable }))
|
|
36
36
|
), Ge = ({
|
|
37
37
|
filteredHistory: c,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { preloadToast as D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.
|
|
3
|
-
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 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 D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.BafsamRg.js";
|
|
3
|
+
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 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.BhQUsmmc.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,53 +1,61 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n as
|
|
3
|
-
import { AppContext as
|
|
4
|
-
import { Re as
|
|
5
|
-
import { useContext as
|
|
6
|
-
const
|
|
7
|
-
open:
|
|
8
|
-
onOpenChange:
|
|
1
|
+
import { jsxs as a, jsx as t, Fragment as D } from "react/jsx-runtime";
|
|
2
|
+
import { n as Me, useEntitlements as Oe, useUserPreferences as ve, ot as se, LOCAL_STORAGE_OLED_MODE as Ae, LOCAL_STORAGE_FULL_SCREEN as Re, canEvaluateModels as xe, Et as Be, getCacheInfo as Pe, isServiceWorkerEnabled as Ge, applyOledMode as ne, SETTINGS_TITLE as Ue, S as m, CARDS as r, $ as Ve, C as L, PROMPTS_DESCRIPTION as Fe, L as We, j as re, getCurrentGeoLocation as $e, graphQLRequest as le, handleServiceWorkerToggle as ze, SERVICE_TYPES as ce } from "./index.BhQUsmmc.js";
|
|
3
|
+
import { AppContext as je, useCapability as ie, E as de, oe as He, G as l, APP_SET_OLED_MODE as Ye, APP_SET_FULL_SCREEN as qe } from "./App.BafsamRg.js";
|
|
4
|
+
import { Re as me } from "./index.IqTXmY7u.js";
|
|
5
|
+
import { useContext as Ke, useState as n, useMemo as Qe, useCallback as Je, useEffect as _ } from "react";
|
|
6
|
+
const at = ({
|
|
7
|
+
open: ue,
|
|
8
|
+
onOpenChange: M
|
|
9
9
|
}) => {
|
|
10
|
-
const { getAccessToken:
|
|
10
|
+
const { getAccessToken: T, user: O } = Me(), { allowedModels: f, status: v } = Oe(), { dispatch: A } = Ke(je), {
|
|
11
11
|
data: o,
|
|
12
|
-
isSuccess:
|
|
13
|
-
refetch:
|
|
14
|
-
} =
|
|
15
|
-
user:
|
|
16
|
-
getAccessToken:
|
|
17
|
-
}), [
|
|
12
|
+
isSuccess: he,
|
|
13
|
+
refetch: R
|
|
14
|
+
} = ve({
|
|
15
|
+
user: O?.username,
|
|
16
|
+
getAccessToken: T
|
|
17
|
+
}), [x, p] = n({
|
|
18
18
|
loadingLocation: !1
|
|
19
|
-
}), [C,
|
|
19
|
+
}), [C, B] = n({
|
|
20
20
|
prompts: []
|
|
21
|
-
}), [
|
|
22
|
-
key:
|
|
21
|
+
}), [P, G] = n(""), [U, E] = n(""), [V, F] = n(!1), [W, $] = n(!1), [S, z] = n(!1), [N, j] = n(!1), [H, Y] = n(!1), [I, q] = n(!1), [u, K] = n(null), [Q, J] = n(!1), [X, Z] = n(!1), ee = ie(se.TOOL.MEMORIES), te = ie(se.ADDON.REASONING), [b, pe] = de({
|
|
22
|
+
key: Ae,
|
|
23
23
|
initialValue: !1
|
|
24
|
-
}),
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Z && $(e);
|
|
30
|
-
}, Se = (e) => {
|
|
31
|
-
j(e);
|
|
32
|
-
}, fe = (e) => {
|
|
33
|
-
ee && Y(e);
|
|
24
|
+
}), [Ee, Se] = de({
|
|
25
|
+
key: Re,
|
|
26
|
+
initialValue: !1
|
|
27
|
+
}), Ne = Qe(() => xe(f, v) ? Be(f) : !1, [f, v]), ge = (e) => {
|
|
28
|
+
Z(e);
|
|
34
29
|
}, Te = (e) => {
|
|
35
|
-
|
|
30
|
+
F(e);
|
|
31
|
+
}, fe = (e) => {
|
|
32
|
+
ee && $(e);
|
|
36
33
|
}, Ce = (e) => {
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
j(e);
|
|
35
|
+
}, Ie = (e) => {
|
|
36
|
+
te && Y(e);
|
|
37
|
+
}, be = (e) => {
|
|
38
|
+
q(e);
|
|
39
|
+
}, ke = (e) => {
|
|
40
|
+
pe(e), ne(e), A({
|
|
41
|
+
type: Ye,
|
|
39
42
|
payload: { oledMode: e }
|
|
40
43
|
});
|
|
41
|
-
},
|
|
44
|
+
}, we = (e) => {
|
|
45
|
+
Se(e), A({
|
|
46
|
+
type: qe,
|
|
47
|
+
payload: { fullScreen: e }
|
|
48
|
+
});
|
|
49
|
+
}, ye = async (e) => {
|
|
42
50
|
e.preventDefault();
|
|
43
51
|
try {
|
|
44
|
-
await
|
|
45
|
-
accessToken: await
|
|
46
|
-
type:
|
|
52
|
+
await le({
|
|
53
|
+
accessToken: await T(),
|
|
54
|
+
type: ce.SET_USER_PREFERENCES,
|
|
47
55
|
params: {
|
|
48
|
-
user:
|
|
49
|
-
instructions:
|
|
50
|
-
location:
|
|
56
|
+
user: O?.username,
|
|
57
|
+
instructions: P,
|
|
58
|
+
location: U,
|
|
51
59
|
provider: o?.provider,
|
|
52
60
|
/**
|
|
53
61
|
* When nested model selection is disabled, explicitly clear any stored
|
|
@@ -56,56 +64,56 @@ const Xe = ({
|
|
|
56
64
|
*/
|
|
57
65
|
model: I && o?.model || "",
|
|
58
66
|
tags: C.prompts,
|
|
59
|
-
sendOnEnter:
|
|
67
|
+
sendOnEnter: V,
|
|
60
68
|
useMemory: W,
|
|
61
|
-
showDetails:
|
|
69
|
+
showDetails: X,
|
|
62
70
|
showReasoningButton: H,
|
|
63
71
|
useNestedModelSelection: I
|
|
64
72
|
}
|
|
65
|
-
}), N !==
|
|
73
|
+
}), N !== S && (await ze(N), z(N)), R(), p({
|
|
66
74
|
loadingLocation: !1
|
|
67
75
|
});
|
|
68
76
|
} catch {
|
|
69
77
|
}
|
|
70
|
-
},
|
|
78
|
+
}, De = async () => {
|
|
71
79
|
p({
|
|
72
80
|
loadingLocation: !0
|
|
73
81
|
}), E("...");
|
|
74
82
|
try {
|
|
75
|
-
const e = Date.now(),
|
|
76
|
-
accessToken: await
|
|
77
|
-
type:
|
|
83
|
+
const e = Date.now(), s = await $e(), g = await le({
|
|
84
|
+
accessToken: await T(),
|
|
85
|
+
type: ce.GET_LOCATION,
|
|
78
86
|
params: {
|
|
79
|
-
latitude:
|
|
80
|
-
longitude:
|
|
87
|
+
latitude: s.latitude,
|
|
88
|
+
longitude: s.longitude
|
|
81
89
|
}
|
|
82
90
|
}), d = Date.now() - e;
|
|
83
|
-
d < 2e3 && await new Promise((
|
|
84
|
-
const { city: i, state: c, country: h, displayName: y } =
|
|
91
|
+
d < 2e3 && await new Promise((_e) => setTimeout(_e, 2e3 - d));
|
|
92
|
+
const { city: i, state: c, country: h, displayName: y } = g.data, Le = i && c && h ? `${i}, ${c}, ${h}` : y;
|
|
85
93
|
p({
|
|
86
94
|
loadingLocation: !1
|
|
87
|
-
}), E(
|
|
95
|
+
}), E(Le);
|
|
88
96
|
} catch {
|
|
89
97
|
p({
|
|
90
98
|
loadingLocation: !1
|
|
91
99
|
});
|
|
92
100
|
}
|
|
93
|
-
},
|
|
94
|
-
|
|
101
|
+
}, oe = () => {
|
|
102
|
+
R(), M(!1);
|
|
95
103
|
}, k = ({
|
|
96
104
|
enabled: e = !1,
|
|
97
|
-
privateChat:
|
|
98
|
-
clipboardAccess:
|
|
105
|
+
privateChat: s = !1,
|
|
106
|
+
clipboardAccess: g = !1,
|
|
99
107
|
...w
|
|
100
108
|
}) => {
|
|
101
|
-
|
|
109
|
+
B((d) => {
|
|
102
110
|
const i = d.prompts, c = {
|
|
103
111
|
...w,
|
|
104
112
|
enabled: e,
|
|
105
|
-
privateChat:
|
|
106
|
-
clipboardAccess:
|
|
113
|
+
privateChat: s,
|
|
114
|
+
clipboardAccess: g
|
|
107
115
|
};
|
|
108
|
-
|
|
116
|
+
g ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
|
|
109
117
|
const h = i.findIndex((y) => y.slot === w.slot);
|
|
110
118
|
return h === -1 ? {
|
|
111
119
|
...d,
|
|
@@ -115,59 +123,59 @@ const Xe = ({
|
|
|
115
123
|
prompts: [...i]
|
|
116
124
|
});
|
|
117
125
|
});
|
|
118
|
-
},
|
|
126
|
+
}, ae = Je(async () => {
|
|
119
127
|
try {
|
|
120
|
-
|
|
121
|
-
const e = await
|
|
122
|
-
|
|
128
|
+
J(!0);
|
|
129
|
+
const e = await Pe();
|
|
130
|
+
K(e);
|
|
123
131
|
} catch {
|
|
124
132
|
} finally {
|
|
125
|
-
|
|
133
|
+
J(!1);
|
|
126
134
|
}
|
|
127
135
|
}, []);
|
|
128
|
-
return
|
|
136
|
+
return _(() => {
|
|
129
137
|
if (!o)
|
|
130
138
|
return;
|
|
131
|
-
o.instructions &&
|
|
132
|
-
const e =
|
|
139
|
+
o.instructions && G(o.instructions), o.location && E(o.location), o.tags && B({ prompts: o.tags }), o.sendOnEnter !== void 0 && F(o.sendOnEnter), o.useMemory !== void 0 && $(o.useMemory), o.showDetails !== void 0 && Z(o.showDetails), o.showReasoningButton !== void 0 && Y(o.showReasoningButton), o.useNestedModelSelection !== void 0 && q(o.useNestedModelSelection);
|
|
140
|
+
const e = Ge();
|
|
133
141
|
z(e), j(e);
|
|
134
|
-
}, [o]),
|
|
135
|
-
|
|
136
|
-
}, [
|
|
137
|
-
|
|
138
|
-
}, [b]),
|
|
139
|
-
|
|
142
|
+
}, [o]), _(() => {
|
|
143
|
+
S ? ae() : K(null);
|
|
144
|
+
}, [S, ae]), _(() => {
|
|
145
|
+
ne(b);
|
|
146
|
+
}, [b]), he ? /* @__PURE__ */ a(
|
|
147
|
+
He,
|
|
140
148
|
{
|
|
141
|
-
open:
|
|
142
|
-
onOpenChange:
|
|
143
|
-
title:
|
|
149
|
+
open: ue,
|
|
150
|
+
onOpenChange: oe,
|
|
151
|
+
title: Ue,
|
|
144
152
|
animation: !0,
|
|
145
153
|
animationType: "fade",
|
|
146
|
-
footer: /* @__PURE__ */
|
|
147
|
-
|
|
154
|
+
footer: /* @__PURE__ */ a(
|
|
155
|
+
We,
|
|
148
156
|
{
|
|
149
157
|
columnGap: 2,
|
|
150
158
|
alignHorizontal: "flex-end",
|
|
151
159
|
className: "pb-8 sm:pb-0",
|
|
152
160
|
children: [
|
|
153
|
-
/* @__PURE__ */ t(
|
|
154
|
-
|
|
161
|
+
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
|
|
162
|
+
L,
|
|
155
163
|
{
|
|
156
164
|
mode: "dark",
|
|
157
165
|
variant: "secondary",
|
|
158
166
|
focusMode: "light",
|
|
159
167
|
noBorder: !0,
|
|
160
|
-
onClick:
|
|
168
|
+
onClick: oe,
|
|
161
169
|
children: "Cancel"
|
|
162
170
|
}
|
|
163
171
|
) }),
|
|
164
|
-
/* @__PURE__ */ t(
|
|
165
|
-
|
|
172
|
+
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ t(
|
|
173
|
+
L,
|
|
166
174
|
{
|
|
167
175
|
mode: "dark",
|
|
168
176
|
focusMode: "light",
|
|
169
177
|
onClick: async (e) => {
|
|
170
|
-
|
|
178
|
+
M(!1), await ye(e);
|
|
171
179
|
},
|
|
172
180
|
children: "Save"
|
|
173
181
|
}
|
|
@@ -176,7 +184,7 @@ const Xe = ({
|
|
|
176
184
|
}
|
|
177
185
|
),
|
|
178
186
|
children: [
|
|
179
|
-
/* @__PURE__ */
|
|
187
|
+
/* @__PURE__ */ a(
|
|
180
188
|
m,
|
|
181
189
|
{
|
|
182
190
|
header: r.SETTINGS_DETAILS.TITLE,
|
|
@@ -192,8 +200,8 @@ const Xe = ({
|
|
|
192
200
|
className: "mt-2",
|
|
193
201
|
label: "Show Message Statistics",
|
|
194
202
|
name: "show-message-statistics",
|
|
195
|
-
onChange:
|
|
196
|
-
checked:
|
|
203
|
+
onChange: ge,
|
|
204
|
+
checked: X
|
|
197
205
|
}
|
|
198
206
|
),
|
|
199
207
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.SEND_ON_ENTER }),
|
|
@@ -205,11 +213,11 @@ const Xe = ({
|
|
|
205
213
|
className: "mt-2",
|
|
206
214
|
label: "Send Message on Enter",
|
|
207
215
|
name: "send-message-on-enter",
|
|
208
|
-
onChange:
|
|
209
|
-
checked:
|
|
216
|
+
onChange: Te,
|
|
217
|
+
checked: V
|
|
210
218
|
}
|
|
211
219
|
),
|
|
212
|
-
|
|
220
|
+
ee && /* @__PURE__ */ a(D, { children: [
|
|
213
221
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.USE_MEMORY }),
|
|
214
222
|
/* @__PURE__ */ t(
|
|
215
223
|
l,
|
|
@@ -219,7 +227,7 @@ const Xe = ({
|
|
|
219
227
|
className: "mt-2",
|
|
220
228
|
label: "Use Memory",
|
|
221
229
|
name: "use-memory",
|
|
222
|
-
onChange:
|
|
230
|
+
onChange: fe,
|
|
223
231
|
checked: W
|
|
224
232
|
}
|
|
225
233
|
)
|
|
@@ -227,20 +235,20 @@ const Xe = ({
|
|
|
227
235
|
]
|
|
228
236
|
}
|
|
229
237
|
),
|
|
230
|
-
/* @__PURE__ */
|
|
238
|
+
/* @__PURE__ */ a(
|
|
231
239
|
m,
|
|
232
240
|
{
|
|
233
241
|
header: "Custom Instructions",
|
|
234
242
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
235
243
|
noBorder: !0,
|
|
236
244
|
children: [
|
|
237
|
-
/* @__PURE__ */
|
|
245
|
+
/* @__PURE__ */ a("p", { className: "text-sm", children: [
|
|
238
246
|
"What would you like ",
|
|
239
|
-
/* @__PURE__ */ t("em", { children:
|
|
247
|
+
/* @__PURE__ */ t("em", { children: Ve }),
|
|
240
248
|
" to know about you to provide better responses?"
|
|
241
249
|
] }),
|
|
242
250
|
/* @__PURE__ */ t(
|
|
243
|
-
|
|
251
|
+
me,
|
|
244
252
|
{
|
|
245
253
|
mode: "alt-system",
|
|
246
254
|
autoCapitalize: "off",
|
|
@@ -248,9 +256,9 @@ const Xe = ({
|
|
|
248
256
|
autoCorrect: "off",
|
|
249
257
|
name: "customInstructions",
|
|
250
258
|
label: "Custom Instructions",
|
|
251
|
-
value:
|
|
259
|
+
value: P,
|
|
252
260
|
onChange: (e) => {
|
|
253
|
-
|
|
261
|
+
G(e.target.value);
|
|
254
262
|
},
|
|
255
263
|
helperText: "Press ENTER to add a new line."
|
|
256
264
|
}
|
|
@@ -258,7 +266,7 @@ const Xe = ({
|
|
|
258
266
|
]
|
|
259
267
|
}
|
|
260
268
|
),
|
|
261
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ a(
|
|
262
270
|
m,
|
|
263
271
|
{
|
|
264
272
|
header: "Location",
|
|
@@ -267,12 +275,12 @@ const Xe = ({
|
|
|
267
275
|
children: [
|
|
268
276
|
/* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
269
277
|
/* @__PURE__ */ t(
|
|
270
|
-
|
|
278
|
+
me,
|
|
271
279
|
{
|
|
272
280
|
mode: "alt-system",
|
|
273
281
|
name: "location",
|
|
274
282
|
label: "Location",
|
|
275
|
-
value:
|
|
283
|
+
value: U,
|
|
276
284
|
onChange: (e) => {
|
|
277
285
|
E(e.target.value);
|
|
278
286
|
},
|
|
@@ -280,29 +288,29 @@ const Xe = ({
|
|
|
280
288
|
}
|
|
281
289
|
),
|
|
282
290
|
/* @__PURE__ */ t(
|
|
283
|
-
|
|
291
|
+
L,
|
|
284
292
|
{
|
|
285
293
|
className: "mt-2",
|
|
286
294
|
size: "small",
|
|
287
295
|
noBorder: !0,
|
|
288
296
|
variant: "secondary",
|
|
289
|
-
disabled:
|
|
290
|
-
onClick:
|
|
291
|
-
children:
|
|
297
|
+
disabled: x.loadingLocation,
|
|
298
|
+
onClick: De,
|
|
299
|
+
children: x.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
292
300
|
}
|
|
293
301
|
)
|
|
294
302
|
]
|
|
295
303
|
}
|
|
296
304
|
),
|
|
297
|
-
/* @__PURE__ */
|
|
305
|
+
/* @__PURE__ */ a(
|
|
298
306
|
m,
|
|
299
307
|
{
|
|
300
308
|
header: r.SETTINGS_PROMPTS.TITLE,
|
|
301
309
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
302
310
|
noBorder: !0,
|
|
303
311
|
children: [
|
|
304
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children:
|
|
305
|
-
C.prompts && C.prompts.slice(0, 3).map((e) => /* @__PURE__ */
|
|
312
|
+
/* @__PURE__ */ t("p", { className: "text-sm", children: Fe }),
|
|
313
|
+
C.prompts && C.prompts.slice(0, 3).map((e) => /* @__PURE__ */ a(
|
|
306
314
|
m,
|
|
307
315
|
{
|
|
308
316
|
mode: "dark",
|
|
@@ -321,10 +329,10 @@ const Xe = ({
|
|
|
321
329
|
className: "mt-2",
|
|
322
330
|
label: "Enabled",
|
|
323
331
|
name: e.slot.toString(),
|
|
324
|
-
onChange: (
|
|
332
|
+
onChange: (s) => {
|
|
325
333
|
k({
|
|
326
334
|
...e,
|
|
327
|
-
enabled:
|
|
335
|
+
enabled: s
|
|
328
336
|
});
|
|
329
337
|
},
|
|
330
338
|
checked: e.enabled
|
|
@@ -340,10 +348,10 @@ const Xe = ({
|
|
|
340
348
|
className: "mt-2",
|
|
341
349
|
label: "Private Chat",
|
|
342
350
|
name: `private-${e.slot.toString()}`,
|
|
343
|
-
onChange: (
|
|
351
|
+
onChange: (s) => {
|
|
344
352
|
k({
|
|
345
353
|
...e,
|
|
346
|
-
privateChat:
|
|
354
|
+
privateChat: s
|
|
347
355
|
});
|
|
348
356
|
},
|
|
349
357
|
checked: e.privateChat
|
|
@@ -359,10 +367,10 @@ const Xe = ({
|
|
|
359
367
|
className: "mt-2",
|
|
360
368
|
label: "Use Clipboard",
|
|
361
369
|
name: `clipboard-${e.slot.toString()}`,
|
|
362
|
-
onChange: (
|
|
370
|
+
onChange: (s) => {
|
|
363
371
|
k({
|
|
364
372
|
...e,
|
|
365
|
-
clipboardAccess:
|
|
373
|
+
clipboardAccess: s
|
|
366
374
|
});
|
|
367
375
|
},
|
|
368
376
|
checked: e.clipboardAccess
|
|
@@ -375,14 +383,14 @@ const Xe = ({
|
|
|
375
383
|
]
|
|
376
384
|
}
|
|
377
385
|
),
|
|
378
|
-
/* @__PURE__ */
|
|
386
|
+
/* @__PURE__ */ a(
|
|
379
387
|
m,
|
|
380
388
|
{
|
|
381
389
|
header: r.SETTINGS_ADVANCED.TITLE,
|
|
382
390
|
className: "prose-dark dark:prose-lighter mt-4 ",
|
|
383
391
|
noBorder: !0,
|
|
384
392
|
children: [
|
|
385
|
-
|
|
393
|
+
te && /* @__PURE__ */ a(D, { children: [
|
|
386
394
|
/* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION }),
|
|
387
395
|
/* @__PURE__ */ t(
|
|
388
396
|
l,
|
|
@@ -392,12 +400,12 @@ const Xe = ({
|
|
|
392
400
|
className: "mt-2",
|
|
393
401
|
label: "Show Reasoning Button",
|
|
394
402
|
name: "show-reasoning-button",
|
|
395
|
-
onChange:
|
|
403
|
+
onChange: Ie,
|
|
396
404
|
checked: H
|
|
397
405
|
}
|
|
398
406
|
)
|
|
399
407
|
] }),
|
|
400
|
-
|
|
408
|
+
Ne && /* @__PURE__ */ a(D, { children: [
|
|
401
409
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION }),
|
|
402
410
|
/* @__PURE__ */ t(
|
|
403
411
|
l,
|
|
@@ -407,7 +415,7 @@ const Xe = ({
|
|
|
407
415
|
className: "mt-2",
|
|
408
416
|
label: "Enable Model Selection",
|
|
409
417
|
name: "use-nested-model-selection",
|
|
410
|
-
onChange:
|
|
418
|
+
onChange: be,
|
|
411
419
|
checked: I
|
|
412
420
|
}
|
|
413
421
|
)
|
|
@@ -421,10 +429,23 @@ const Xe = ({
|
|
|
421
429
|
className: "mt-2",
|
|
422
430
|
label: "Enable OLED Mode",
|
|
423
431
|
name: "enable-oled-mode",
|
|
424
|
-
onChange:
|
|
432
|
+
onChange: ke,
|
|
425
433
|
checked: b
|
|
426
434
|
}
|
|
427
435
|
),
|
|
436
|
+
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION }),
|
|
437
|
+
/* @__PURE__ */ t(
|
|
438
|
+
l,
|
|
439
|
+
{
|
|
440
|
+
noBorder: !0,
|
|
441
|
+
narrow: !0,
|
|
442
|
+
className: "mt-2",
|
|
443
|
+
label: "Enable Full Screen",
|
|
444
|
+
name: "enable-full-screen",
|
|
445
|
+
onChange: we,
|
|
446
|
+
checked: Ee
|
|
447
|
+
}
|
|
448
|
+
),
|
|
428
449
|
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION }),
|
|
429
450
|
/* @__PURE__ */ t(
|
|
430
451
|
l,
|
|
@@ -434,32 +455,32 @@ const Xe = ({
|
|
|
434
455
|
className: "mt-2",
|
|
435
456
|
label: "Enable Assets Caching",
|
|
436
457
|
name: "enable-service-worker",
|
|
437
|
-
onChange:
|
|
458
|
+
onChange: Ce,
|
|
438
459
|
checked: N
|
|
439
460
|
}
|
|
440
461
|
),
|
|
441
|
-
|
|
462
|
+
S && /* @__PURE__ */ a("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
|
442
463
|
/* @__PURE__ */ t("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
|
|
443
|
-
u ? /* @__PURE__ */
|
|
444
|
-
/* @__PURE__ */
|
|
464
|
+
u ? /* @__PURE__ */ a("div", { className: "text-xs space-y-2", children: [
|
|
465
|
+
/* @__PURE__ */ a("p", { className: "m-0", children: [
|
|
445
466
|
"Version: ",
|
|
446
467
|
/* @__PURE__ */ t("strong", { children: u.version })
|
|
447
468
|
] }),
|
|
448
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ a("p", { className: "m-0", children: [
|
|
449
470
|
"Total Items: ",
|
|
450
471
|
/* @__PURE__ */ t("strong", { children: u.totalItems })
|
|
451
472
|
] }),
|
|
452
|
-
u.caches.map((e) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: e.urls.map((
|
|
473
|
+
u.caches.map((e) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: e.urls.map((s) => /* @__PURE__ */ t(
|
|
453
474
|
"li",
|
|
454
475
|
{
|
|
455
476
|
className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
|
|
456
|
-
title:
|
|
457
|
-
children: new URL(
|
|
477
|
+
title: s,
|
|
478
|
+
children: new URL(s).pathname
|
|
458
479
|
},
|
|
459
|
-
|
|
480
|
+
s
|
|
460
481
|
)) }) }, e.name)),
|
|
461
|
-
u.totalItems === 0 && !
|
|
462
|
-
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children:
|
|
482
|
+
u.totalItems === 0 && !Q && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
|
|
483
|
+
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Q ? "Loading cache info..." : "No cache info available." })
|
|
463
484
|
] })
|
|
464
485
|
]
|
|
465
486
|
}
|
|
@@ -469,5 +490,5 @@ const Xe = ({
|
|
|
469
490
|
) : null;
|
|
470
491
|
};
|
|
471
492
|
export {
|
|
472
|
-
|
|
493
|
+
at as SettingsPanel
|
|
473
494
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { I as f, b$1 as v } from "./index.
|
|
2
|
+
import { I as f, b$1 as v } from "./index.BhQUsmmc.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.BafsamRg.js";
|
|
6
6
|
const L = ({
|
|
7
7
|
className: e,
|
|
8
8
|
viewBox: a,
|