@versini/sassysaint 8.79.0 → 8.79.1
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.pTdBpzz1.js → AboutChangelog.RQ2dLRs9.js} +3 -3
- package/dist/chunks/{AboutEntry.CACoMTsm.js → AboutEntry.CpFMkr79.js} +5 -5
- package/dist/chunks/{App.C8tSD8FW.js → App.DAaATEKV.js} +1136 -1099
- package/dist/chunks/{Chart.8NIsGioQ.js → Chart.BKmafZak.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CjBF2Ksl.js → ChatBubbleAssistant.B4IGyY5V.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.DTBZStED.js → ChatBubbleUser.DsOMP5go.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.DZ2gKrYL.js → ChatHistoryTable.D4gYhSA9.js} +3 -3
- package/dist/chunks/{HistoryEntry.CKgJVGbQ.js → HistoryEntry.CUbsjW_l.js} +3 -3
- package/dist/chunks/{ProfileEntry.D0Xm05KG.js → ProfileEntry.Dz9CVci_.js} +2 -2
- package/dist/chunks/{SettingsEntry.kC-cp_ND.js → SettingsEntry.DuAYMX4m.js} +224 -221
- package/dist/chunks/{Table.YyEKxT0f.js → Table.CjzaBOxn.js} +2 -2
- package/dist/chunks/{UsageEntry.CZn0rwIl.js → UsageEntry.DpVRUiH5.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.DZQPobyQ.js → UserMemoriesPanel.DvYce5sW.js} +4 -4
- package/dist/chunks/{index.Bzo-4jgY.js → index.0cE1U8yJ.js} +1 -1
- package/dist/chunks/{index.DqUdd9Yb.js → index.B1uZUNzr.js} +3 -3
- package/dist/chunks/{index.DoS8Ajmg.js → index.B9QORjw0.js} +1 -1
- package/dist/chunks/{index.D4yabS-I.js → index.BCU0BgSz.js} +1 -1
- package/dist/chunks/{index.DTJKaQEV.js → index.IxOxnKDE.js} +2 -2
- package/dist/chunks/{index.BeqCEf_0.js → index.JBnaIFI9.js} +10 -10
- package/dist/chunks/{index.DjO2lloh.js → index.TirpXeDY.js} +1 -1
- package/dist/chunks/{index.CQHTKxYG.js → index.YawG6Xex.js} +1 -1
- package/dist/chunks/{useMarkdown.pxMF8M9l.js → useMarkdown.BtHcsdXH.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 +5 -5
|
@@ -1,188 +1,188 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { n as
|
|
3
|
-
import { AppContext as
|
|
4
|
-
import { TextArea as
|
|
5
|
-
import { useContext as
|
|
1
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { n as je, useEntitlements as Ve, useUserPreferences as Fe, V as ie, useLocalStorage as de, LOCAL_STORAGE_OLED_MODE as We, LOCAL_STORAGE_FULL_SCREEN as $e, k as ue, canEvaluateModels as ze, Y as He, getCacheInfo as Ye, isServiceWorkerEnabled as qe, SETTINGS_TITLE as Ke, Card as E, CARDS as r, b as Qe, Button as v, PROMPTS_DESCRIPTION as Je, e_ as me, L as Xe, j as he, applyOledMode as Ee, getCurrentGeoLocation as Ze, graphQLRequest as fe, handleServiceWorkerToggle as et, SERVICE_TYPES as Se } from "./index.JBnaIFI9.js";
|
|
3
|
+
import { AppContext as tt, useCapability as pe, Panel as ot, Toggle as l, APP_SET_OLED_MODE as ge, APP_SET_FULL_SCREEN as be } from "./App.DAaATEKV.js";
|
|
4
|
+
import { TextArea as Te } from "./index.0cE1U8yJ.js";
|
|
5
|
+
import { useContext as at, useState as a, useMemo as st, useCallback as nt, useEffect as Ne } from "react";
|
|
6
6
|
const ut = ({
|
|
7
|
-
open:
|
|
8
|
-
onOpenChange:
|
|
7
|
+
open: Ce,
|
|
8
|
+
onOpenChange: A
|
|
9
9
|
}) => {
|
|
10
|
-
const { getAccessToken:
|
|
10
|
+
const { getAccessToken: I, user: R } = je(), { allowedModels: w, status: B } = Ve(), { dispatch: g } = at(tt), {
|
|
11
11
|
data: o,
|
|
12
|
-
isSuccess:
|
|
13
|
-
refetch:
|
|
14
|
-
} =
|
|
15
|
-
user:
|
|
16
|
-
getAccessToken:
|
|
17
|
-
}), [
|
|
12
|
+
isSuccess: ye,
|
|
13
|
+
refetch: x
|
|
14
|
+
} = Fe({
|
|
15
|
+
user: R?.username,
|
|
16
|
+
getAccessToken: I
|
|
17
|
+
}), [G, b] = a({
|
|
18
18
|
loadingLocation: !1
|
|
19
|
-
}), [
|
|
19
|
+
}), [L, U] = a({
|
|
20
20
|
prompts: []
|
|
21
|
-
}), [
|
|
22
|
-
key:
|
|
21
|
+
}), [j, V] = a(""), [F, T] = a(""), [W, $] = a(!1), [z, H] = a(!1), [N, Y] = a(!1), [C, q] = a(!1), [K, Q] = a(!1), [k, J] = a(!1), [f, X] = a(null), [Z, ee] = a(!1), [te, oe] = a(!1), ae = pe(ie.TOOL.MEMORIES), se = pe(ie.ADDON.REASONING), [i, Ie] = de({
|
|
22
|
+
key: We,
|
|
23
23
|
initialValue: !1
|
|
24
|
-
}), [
|
|
25
|
-
key:
|
|
24
|
+
}), [u, we] = de({
|
|
25
|
+
key: $e,
|
|
26
26
|
initialValue: !1
|
|
27
|
-
}), [
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
27
|
+
}), [m, M] = a(!1), [S, D] = a(!1), [ne, re] = a(ue), Le = st(() => ze(w, B) ? He(w) : !1, [w, B]), ke = (e) => {
|
|
28
|
+
oe(e);
|
|
29
|
+
}, Me = (e) => {
|
|
30
|
+
$(e);
|
|
31
|
+
}, De = (e) => {
|
|
32
|
+
ae && H(e);
|
|
33
|
+
}, _e = (e) => {
|
|
34
|
+
q(e);
|
|
33
35
|
}, Oe = (e) => {
|
|
34
|
-
|
|
36
|
+
se && Q(e);
|
|
37
|
+
}, Pe = (e) => {
|
|
38
|
+
J(e);
|
|
35
39
|
}, ve = (e) => {
|
|
36
|
-
|
|
40
|
+
M(e);
|
|
37
41
|
}, Ae = (e) => {
|
|
38
|
-
|
|
39
|
-
}, xe = (e) => {
|
|
40
|
-
_(e);
|
|
42
|
+
D(e);
|
|
41
43
|
}, Re = (e) => {
|
|
42
|
-
|
|
43
|
-
}, Pe = (e) => {
|
|
44
|
-
le(e ? he : ue);
|
|
44
|
+
re(e ? me : ue);
|
|
45
45
|
}, Be = async (e) => {
|
|
46
46
|
e.preventDefault();
|
|
47
47
|
try {
|
|
48
|
-
await
|
|
49
|
-
accessToken: await
|
|
50
|
-
type:
|
|
48
|
+
await fe({
|
|
49
|
+
accessToken: await I(),
|
|
50
|
+
type: Se.SET_USER_PREFERENCES,
|
|
51
51
|
params: {
|
|
52
|
-
user:
|
|
53
|
-
instructions:
|
|
54
|
-
location:
|
|
52
|
+
user: R?.username,
|
|
53
|
+
instructions: j,
|
|
54
|
+
location: F,
|
|
55
55
|
provider: o?.provider,
|
|
56
56
|
/**
|
|
57
57
|
* When nested model selection is disabled, explicitly clear any stored
|
|
58
58
|
* model preference so the user relies solely on provider defaults.
|
|
59
59
|
* Empty string signals to backend to use provider's default model.
|
|
60
60
|
*/
|
|
61
|
-
model:
|
|
62
|
-
tags:
|
|
63
|
-
sendOnEnter:
|
|
64
|
-
useMemory:
|
|
65
|
-
showDetails:
|
|
66
|
-
showReasoningButton:
|
|
67
|
-
useNestedModelSelection:
|
|
68
|
-
themeMode:
|
|
61
|
+
model: k && o?.model || "",
|
|
62
|
+
tags: L.prompts,
|
|
63
|
+
sendOnEnter: W,
|
|
64
|
+
useMemory: z,
|
|
65
|
+
showDetails: te,
|
|
66
|
+
showReasoningButton: K,
|
|
67
|
+
useNestedModelSelection: k,
|
|
68
|
+
themeMode: ne
|
|
69
69
|
}
|
|
70
|
-
}),
|
|
71
|
-
type:
|
|
72
|
-
payload: { oledMode:
|
|
73
|
-
})), S !==
|
|
74
|
-
type:
|
|
70
|
+
}), C !== N && (await et(C), Y(C)), m !== i && (Ie(m), Ee(m), g({
|
|
71
|
+
type: ge,
|
|
72
|
+
payload: { oledMode: m }
|
|
73
|
+
})), S !== u && (we(S), g({
|
|
74
|
+
type: be,
|
|
75
75
|
payload: { fullScreen: S }
|
|
76
|
-
})),
|
|
76
|
+
})), x(), b({
|
|
77
77
|
loadingLocation: !1
|
|
78
78
|
});
|
|
79
79
|
} catch {
|
|
80
80
|
}
|
|
81
|
-
},
|
|
82
|
-
|
|
81
|
+
}, xe = async () => {
|
|
82
|
+
b({
|
|
83
83
|
loadingLocation: !0
|
|
84
|
-
}),
|
|
84
|
+
}), T("...");
|
|
85
85
|
try {
|
|
86
|
-
const e = Date.now(),
|
|
87
|
-
accessToken: await
|
|
88
|
-
type:
|
|
86
|
+
const e = Date.now(), s = await Ze(), y = await fe({
|
|
87
|
+
accessToken: await I(),
|
|
88
|
+
type: Se.GET_LOCATION,
|
|
89
89
|
params: {
|
|
90
|
-
latitude:
|
|
91
|
-
longitude:
|
|
90
|
+
latitude: s.latitude,
|
|
91
|
+
longitude: s.longitude
|
|
92
92
|
}
|
|
93
93
|
}), h = Date.now() - e;
|
|
94
|
-
h < 2e3 && await new Promise((
|
|
95
|
-
const { city: d, state: c, country:
|
|
96
|
-
|
|
94
|
+
h < 2e3 && await new Promise((Ue) => setTimeout(Ue, 2e3 - h));
|
|
95
|
+
const { city: d, state: c, country: p, displayName: P } = y.data, Ge = d && c && p ? `${d}, ${c}, ${p}` : P;
|
|
96
|
+
b({
|
|
97
97
|
loadingLocation: !1
|
|
98
|
-
}),
|
|
98
|
+
}), T(Ge);
|
|
99
99
|
} catch {
|
|
100
|
-
|
|
100
|
+
b({
|
|
101
101
|
loadingLocation: !1
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
},
|
|
105
|
-
|
|
106
|
-
type:
|
|
104
|
+
}, le = () => {
|
|
105
|
+
m !== i && (M(i), Ee(i), g({
|
|
106
|
+
type: ge,
|
|
107
107
|
payload: { oledMode: i }
|
|
108
|
-
})), S !==
|
|
109
|
-
type:
|
|
110
|
-
payload: { fullScreen:
|
|
111
|
-
})),
|
|
112
|
-
},
|
|
108
|
+
})), S !== u && (D(u), g({
|
|
109
|
+
type: be,
|
|
110
|
+
payload: { fullScreen: u }
|
|
111
|
+
})), x(), A(!1);
|
|
112
|
+
}, _ = ({
|
|
113
113
|
enabled: e = !1,
|
|
114
|
-
privateChat:
|
|
115
|
-
clipboardAccess:
|
|
114
|
+
privateChat: s = !1,
|
|
115
|
+
clipboardAccess: y = !1,
|
|
116
116
|
...O
|
|
117
117
|
}) => {
|
|
118
|
-
|
|
118
|
+
U((h) => {
|
|
119
119
|
const d = h.prompts, c = {
|
|
120
120
|
...O,
|
|
121
121
|
enabled: e,
|
|
122
|
-
privateChat:
|
|
123
|
-
clipboardAccess:
|
|
122
|
+
privateChat: s,
|
|
123
|
+
clipboardAccess: y
|
|
124
124
|
};
|
|
125
|
-
|
|
126
|
-
const
|
|
127
|
-
return
|
|
125
|
+
y ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
|
|
126
|
+
const p = d.findIndex((P) => P.slot === O.slot);
|
|
127
|
+
return p === -1 ? {
|
|
128
128
|
...h,
|
|
129
129
|
prompts: [...d, { ...c }]
|
|
130
|
-
} : (d[
|
|
130
|
+
} : (d[p] = c, {
|
|
131
131
|
...h,
|
|
132
132
|
prompts: [...d]
|
|
133
133
|
});
|
|
134
134
|
});
|
|
135
|
-
},
|
|
135
|
+
}, ce = nt(async () => {
|
|
136
136
|
try {
|
|
137
|
-
|
|
138
|
-
const e = await
|
|
139
|
-
|
|
137
|
+
ee(!0);
|
|
138
|
+
const e = await Ye();
|
|
139
|
+
X(e);
|
|
140
140
|
} catch {
|
|
141
141
|
} finally {
|
|
142
|
-
|
|
142
|
+
ee(!1);
|
|
143
143
|
}
|
|
144
144
|
}, []);
|
|
145
|
-
return
|
|
145
|
+
return Ne(() => {
|
|
146
146
|
if (!o)
|
|
147
147
|
return;
|
|
148
|
-
o.instructions &&
|
|
149
|
-
const e =
|
|
150
|
-
|
|
151
|
-
}, [o, i,
|
|
152
|
-
|
|
153
|
-
}, [
|
|
154
|
-
|
|
148
|
+
o.instructions && V(o.instructions), o.location && T(o.location), o.tags && U({ prompts: o.tags }), o.sendOnEnter !== void 0 && $(o.sendOnEnter), o.useMemory !== void 0 && H(o.useMemory), o.showDetails !== void 0 && oe(o.showDetails), o.showReasoningButton !== void 0 && Q(o.showReasoningButton), o.useNestedModelSelection !== void 0 && J(o.useNestedModelSelection), o.themeMode !== void 0 && re(o.themeMode);
|
|
149
|
+
const e = qe();
|
|
150
|
+
Y(e), q(e), M(i), D(u);
|
|
151
|
+
}, [o, i, u]), Ne(() => {
|
|
152
|
+
N ? ce() : X(null);
|
|
153
|
+
}, [N, ce]), ye ? /* @__PURE__ */ n(
|
|
154
|
+
ot,
|
|
155
155
|
{
|
|
156
|
-
open:
|
|
157
|
-
onOpenChange:
|
|
158
|
-
title:
|
|
156
|
+
open: Ce,
|
|
157
|
+
onOpenChange: le,
|
|
158
|
+
title: Ke,
|
|
159
159
|
animation: !0,
|
|
160
160
|
animationType: "fade",
|
|
161
|
-
footer: /* @__PURE__ */
|
|
162
|
-
|
|
161
|
+
footer: /* @__PURE__ */ n(
|
|
162
|
+
Xe,
|
|
163
163
|
{
|
|
164
164
|
columnGap: 2,
|
|
165
165
|
alignHorizontal: "flex-end",
|
|
166
166
|
className: "pb-8 sm:pb-0",
|
|
167
167
|
children: [
|
|
168
|
-
/* @__PURE__ */ t(
|
|
169
|
-
|
|
168
|
+
/* @__PURE__ */ t(he, { children: /* @__PURE__ */ t(
|
|
169
|
+
v,
|
|
170
170
|
{
|
|
171
171
|
mode: "dark",
|
|
172
172
|
variant: "secondary",
|
|
173
173
|
focusMode: "light",
|
|
174
174
|
noBorder: !0,
|
|
175
|
-
onClick:
|
|
175
|
+
onClick: le,
|
|
176
176
|
children: "Cancel"
|
|
177
177
|
}
|
|
178
178
|
) }),
|
|
179
|
-
/* @__PURE__ */ t(
|
|
180
|
-
|
|
179
|
+
/* @__PURE__ */ t(he, { children: /* @__PURE__ */ t(
|
|
180
|
+
v,
|
|
181
181
|
{
|
|
182
182
|
mode: "dark",
|
|
183
183
|
focusMode: "light",
|
|
184
184
|
onClick: async (e) => {
|
|
185
|
-
|
|
185
|
+
A(!1), await Be(e);
|
|
186
186
|
},
|
|
187
187
|
children: "Save"
|
|
188
188
|
}
|
|
@@ -191,71 +191,72 @@ const ut = ({
|
|
|
191
191
|
}
|
|
192
192
|
),
|
|
193
193
|
children: [
|
|
194
|
-
/* @__PURE__ */
|
|
195
|
-
|
|
194
|
+
/* @__PURE__ */ n(
|
|
195
|
+
E,
|
|
196
196
|
{
|
|
197
197
|
header: r.SETTINGS_DETAILS.TITLE,
|
|
198
198
|
className: "prose-dark dark:prose-lighter",
|
|
199
199
|
noBorder: !0,
|
|
200
200
|
children: [
|
|
201
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_DETAILS.DETAILS }),
|
|
202
201
|
/* @__PURE__ */ t(
|
|
203
202
|
l,
|
|
204
203
|
{
|
|
205
204
|
noBorder: !0,
|
|
206
205
|
narrow: !0,
|
|
207
|
-
className: "mt-2",
|
|
206
|
+
className: "mt-2 justify-between",
|
|
207
|
+
labelPosition: "left",
|
|
208
208
|
label: "Show Message Statistics",
|
|
209
|
+
subLabel: r.SETTINGS_DETAILS.DETAILS,
|
|
209
210
|
name: "show-message-statistics",
|
|
210
|
-
onChange:
|
|
211
|
-
checked:
|
|
211
|
+
onChange: ke,
|
|
212
|
+
checked: te
|
|
212
213
|
}
|
|
213
214
|
),
|
|
214
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.SEND_ON_ENTER }),
|
|
215
215
|
/* @__PURE__ */ t(
|
|
216
216
|
l,
|
|
217
217
|
{
|
|
218
218
|
noBorder: !0,
|
|
219
219
|
narrow: !0,
|
|
220
|
-
className: "mt-2",
|
|
220
|
+
className: "mt-2 justify-between",
|
|
221
|
+
labelPosition: "left",
|
|
221
222
|
label: "Send Message on Enter",
|
|
223
|
+
subLabel: r.SETTINGS_DETAILS.SEND_ON_ENTER,
|
|
222
224
|
name: "send-message-on-enter",
|
|
223
|
-
onChange:
|
|
224
|
-
checked:
|
|
225
|
+
onChange: Me,
|
|
226
|
+
checked: W
|
|
225
227
|
}
|
|
226
228
|
),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
] })
|
|
229
|
+
ae && /* @__PURE__ */ t(
|
|
230
|
+
l,
|
|
231
|
+
{
|
|
232
|
+
noBorder: !0,
|
|
233
|
+
narrow: !0,
|
|
234
|
+
className: "mt-2 justify-between",
|
|
235
|
+
labelPosition: "left",
|
|
236
|
+
label: "Use Memory",
|
|
237
|
+
subLabel: r.SETTINGS_DETAILS.USE_MEMORY,
|
|
238
|
+
name: "use-memory",
|
|
239
|
+
onChange: De,
|
|
240
|
+
checked: z
|
|
241
|
+
}
|
|
242
|
+
)
|
|
242
243
|
]
|
|
243
244
|
}
|
|
244
245
|
),
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
|
|
246
|
+
/* @__PURE__ */ n(
|
|
247
|
+
E,
|
|
247
248
|
{
|
|
248
249
|
header: "Custom Instructions",
|
|
249
250
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
250
251
|
noBorder: !0,
|
|
251
252
|
children: [
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
+
/* @__PURE__ */ n("p", { className: "text-sm", children: [
|
|
253
254
|
"What would you like ",
|
|
254
|
-
/* @__PURE__ */ t("em", { children:
|
|
255
|
+
/* @__PURE__ */ t("em", { children: Qe }),
|
|
255
256
|
" to know about you to provide better responses?"
|
|
256
257
|
] }),
|
|
257
258
|
/* @__PURE__ */ t(
|
|
258
|
-
|
|
259
|
+
Te,
|
|
259
260
|
{
|
|
260
261
|
mode: "alt-system",
|
|
261
262
|
autoCapitalize: "off",
|
|
@@ -263,9 +264,9 @@ const ut = ({
|
|
|
263
264
|
autoCorrect: "off",
|
|
264
265
|
name: "customInstructions",
|
|
265
266
|
label: "Custom Instructions",
|
|
266
|
-
value:
|
|
267
|
+
value: j,
|
|
267
268
|
onChange: (e) => {
|
|
268
|
-
|
|
269
|
+
V(e.target.value);
|
|
269
270
|
},
|
|
270
271
|
helperText: "Press ENTER to add a new line."
|
|
271
272
|
}
|
|
@@ -273,8 +274,8 @@ const ut = ({
|
|
|
273
274
|
]
|
|
274
275
|
}
|
|
275
276
|
),
|
|
276
|
-
/* @__PURE__ */
|
|
277
|
-
|
|
277
|
+
/* @__PURE__ */ n(
|
|
278
|
+
E,
|
|
278
279
|
{
|
|
279
280
|
header: "Location",
|
|
280
281
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -282,43 +283,43 @@ const ut = ({
|
|
|
282
283
|
children: [
|
|
283
284
|
/* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
|
|
284
285
|
/* @__PURE__ */ t(
|
|
285
|
-
|
|
286
|
+
Te,
|
|
286
287
|
{
|
|
287
288
|
mode: "alt-system",
|
|
288
289
|
name: "location",
|
|
289
290
|
label: "Location",
|
|
290
|
-
value:
|
|
291
|
+
value: F,
|
|
291
292
|
onChange: (e) => {
|
|
292
|
-
|
|
293
|
+
T(e.target.value);
|
|
293
294
|
},
|
|
294
295
|
helperText: "Enter your location or press auto-detect."
|
|
295
296
|
}
|
|
296
297
|
),
|
|
297
298
|
/* @__PURE__ */ t(
|
|
298
|
-
|
|
299
|
+
v,
|
|
299
300
|
{
|
|
300
301
|
className: "mt-2",
|
|
301
302
|
size: "small",
|
|
302
303
|
noBorder: !0,
|
|
303
304
|
variant: "secondary",
|
|
304
|
-
disabled:
|
|
305
|
-
onClick:
|
|
306
|
-
children:
|
|
305
|
+
disabled: G.loadingLocation,
|
|
306
|
+
onClick: xe,
|
|
307
|
+
children: G.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
307
308
|
}
|
|
308
309
|
)
|
|
309
310
|
]
|
|
310
311
|
}
|
|
311
312
|
),
|
|
312
|
-
/* @__PURE__ */
|
|
313
|
-
|
|
313
|
+
/* @__PURE__ */ n(
|
|
314
|
+
E,
|
|
314
315
|
{
|
|
315
316
|
header: r.SETTINGS_PROMPTS.TITLE,
|
|
316
317
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
317
318
|
noBorder: !0,
|
|
318
319
|
children: [
|
|
319
|
-
/* @__PURE__ */ t("p", { className: "text-sm", children:
|
|
320
|
-
|
|
321
|
-
|
|
320
|
+
/* @__PURE__ */ t("p", { className: "text-sm", children: Je }),
|
|
321
|
+
L.prompts && L.prompts.slice(0, 3).map((e) => /* @__PURE__ */ n(
|
|
322
|
+
E,
|
|
322
323
|
{
|
|
323
324
|
mode: "dark",
|
|
324
325
|
noBorder: !0,
|
|
@@ -336,10 +337,10 @@ const ut = ({
|
|
|
336
337
|
className: "mt-2",
|
|
337
338
|
label: "Enabled",
|
|
338
339
|
name: e.slot.toString(),
|
|
339
|
-
onChange: (
|
|
340
|
-
|
|
340
|
+
onChange: (s) => {
|
|
341
|
+
_({
|
|
341
342
|
...e,
|
|
342
|
-
enabled:
|
|
343
|
+
enabled: s
|
|
343
344
|
});
|
|
344
345
|
},
|
|
345
346
|
checked: e.enabled
|
|
@@ -355,10 +356,10 @@ const ut = ({
|
|
|
355
356
|
className: "mt-2",
|
|
356
357
|
label: "Private Chat",
|
|
357
358
|
name: `private-${e.slot.toString()}`,
|
|
358
|
-
onChange: (
|
|
359
|
-
|
|
359
|
+
onChange: (s) => {
|
|
360
|
+
_({
|
|
360
361
|
...e,
|
|
361
|
-
privateChat:
|
|
362
|
+
privateChat: s
|
|
362
363
|
});
|
|
363
364
|
},
|
|
364
365
|
checked: e.privateChat
|
|
@@ -374,10 +375,10 @@ const ut = ({
|
|
|
374
375
|
className: "mt-2",
|
|
375
376
|
label: "Use Clipboard",
|
|
376
377
|
name: `clipboard-${e.slot.toString()}`,
|
|
377
|
-
onChange: (
|
|
378
|
-
|
|
378
|
+
onChange: (s) => {
|
|
379
|
+
_({
|
|
379
380
|
...e,
|
|
380
|
-
clipboardAccess:
|
|
381
|
+
clipboardAccess: s
|
|
381
382
|
});
|
|
382
383
|
},
|
|
383
384
|
checked: e.clipboardAccess
|
|
@@ -390,117 +391,119 @@ const ut = ({
|
|
|
390
391
|
]
|
|
391
392
|
}
|
|
392
393
|
),
|
|
393
|
-
/* @__PURE__ */
|
|
394
|
-
|
|
394
|
+
/* @__PURE__ */ n(
|
|
395
|
+
E,
|
|
395
396
|
{
|
|
396
397
|
header: r.SETTINGS_ADVANCED.TITLE,
|
|
397
398
|
className: "prose-dark dark:prose-lighter mt-4 ",
|
|
398
399
|
noBorder: !0,
|
|
399
400
|
children: [
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
)
|
|
429
|
-
] }),
|
|
430
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION }),
|
|
401
|
+
se && /* @__PURE__ */ t(
|
|
402
|
+
l,
|
|
403
|
+
{
|
|
404
|
+
noBorder: !0,
|
|
405
|
+
narrow: !0,
|
|
406
|
+
className: "mt-2 justify-between",
|
|
407
|
+
labelPosition: "left",
|
|
408
|
+
label: "Show Reasoning Button",
|
|
409
|
+
subLabel: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION,
|
|
410
|
+
name: "show-reasoning-button",
|
|
411
|
+
onChange: Oe,
|
|
412
|
+
checked: K
|
|
413
|
+
}
|
|
414
|
+
),
|
|
415
|
+
Le && /* @__PURE__ */ t(
|
|
416
|
+
l,
|
|
417
|
+
{
|
|
418
|
+
noBorder: !0,
|
|
419
|
+
narrow: !0,
|
|
420
|
+
className: "mt-2 justify-between",
|
|
421
|
+
labelPosition: "left",
|
|
422
|
+
label: "Enable Model Selection",
|
|
423
|
+
subLabel: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION,
|
|
424
|
+
name: "use-nested-model-selection",
|
|
425
|
+
onChange: Pe,
|
|
426
|
+
checked: k
|
|
427
|
+
}
|
|
428
|
+
),
|
|
431
429
|
/* @__PURE__ */ t(
|
|
432
430
|
l,
|
|
433
431
|
{
|
|
434
432
|
noBorder: !0,
|
|
435
433
|
narrow: !0,
|
|
436
|
-
className: "mt-2",
|
|
434
|
+
className: "mt-2 justify-between",
|
|
435
|
+
labelPosition: "left",
|
|
437
436
|
label: "Enable OLED Mode",
|
|
437
|
+
subLabel: r.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION,
|
|
438
438
|
name: "enable-oled-mode",
|
|
439
|
-
onChange:
|
|
440
|
-
checked:
|
|
439
|
+
onChange: ve,
|
|
440
|
+
checked: m
|
|
441
441
|
}
|
|
442
442
|
),
|
|
443
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.THEME_MODE_DESCRIPTION }),
|
|
444
443
|
/* @__PURE__ */ t(
|
|
445
444
|
l,
|
|
446
445
|
{
|
|
447
446
|
noBorder: !0,
|
|
448
447
|
narrow: !0,
|
|
449
|
-
className: "mt-2",
|
|
448
|
+
className: "mt-2 justify-between",
|
|
449
|
+
labelPosition: "left",
|
|
450
450
|
label: "Enable Alternative Theme",
|
|
451
|
+
subLabel: r.SETTINGS_ADVANCED.THEME_MODE_DESCRIPTION,
|
|
451
452
|
name: "enable-alternative-theme",
|
|
452
|
-
onChange:
|
|
453
|
-
checked:
|
|
453
|
+
onChange: Re,
|
|
454
|
+
checked: ne === me
|
|
454
455
|
}
|
|
455
456
|
),
|
|
456
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION }),
|
|
457
457
|
/* @__PURE__ */ t(
|
|
458
458
|
l,
|
|
459
459
|
{
|
|
460
460
|
noBorder: !0,
|
|
461
461
|
narrow: !0,
|
|
462
|
-
className: "mt-2",
|
|
462
|
+
className: "mt-2 justify-between",
|
|
463
|
+
labelPosition: "left",
|
|
463
464
|
label: "Enable Full Screen",
|
|
465
|
+
subLabel: r.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION,
|
|
464
466
|
name: "enable-full-screen",
|
|
465
|
-
onChange:
|
|
467
|
+
onChange: Ae,
|
|
466
468
|
checked: S
|
|
467
469
|
}
|
|
468
470
|
),
|
|
469
|
-
/* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION }),
|
|
470
471
|
/* @__PURE__ */ t(
|
|
471
472
|
l,
|
|
472
473
|
{
|
|
473
474
|
noBorder: !0,
|
|
474
475
|
narrow: !0,
|
|
475
|
-
className: "mt-2",
|
|
476
|
+
className: "mt-2 justify-between",
|
|
477
|
+
labelPosition: "left",
|
|
476
478
|
label: "Enable Assets Caching",
|
|
479
|
+
subLabel: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION,
|
|
477
480
|
name: "enable-service-worker",
|
|
478
|
-
onChange:
|
|
479
|
-
checked:
|
|
481
|
+
onChange: _e,
|
|
482
|
+
checked: C
|
|
480
483
|
}
|
|
481
484
|
),
|
|
482
|
-
|
|
485
|
+
N && /* @__PURE__ */ n("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
|
483
486
|
/* @__PURE__ */ t("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
|
|
484
|
-
|
|
485
|
-
/* @__PURE__ */
|
|
487
|
+
f ? /* @__PURE__ */ n("div", { className: "text-xs space-y-2", children: [
|
|
488
|
+
/* @__PURE__ */ n("p", { className: "m-0", children: [
|
|
486
489
|
"Version: ",
|
|
487
|
-
/* @__PURE__ */ t("strong", { children:
|
|
490
|
+
/* @__PURE__ */ t("strong", { children: f.version })
|
|
488
491
|
] }),
|
|
489
|
-
/* @__PURE__ */
|
|
492
|
+
/* @__PURE__ */ n("p", { className: "m-0", children: [
|
|
490
493
|
"Total Items: ",
|
|
491
|
-
/* @__PURE__ */ t("strong", { children:
|
|
494
|
+
/* @__PURE__ */ t("strong", { children: f.totalItems })
|
|
492
495
|
] }),
|
|
493
|
-
|
|
496
|
+
f.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(
|
|
494
497
|
"li",
|
|
495
498
|
{
|
|
496
499
|
className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
|
|
497
|
-
title:
|
|
498
|
-
children: new URL(
|
|
500
|
+
title: s,
|
|
501
|
+
children: new URL(s).pathname
|
|
499
502
|
},
|
|
500
|
-
|
|
503
|
+
s
|
|
501
504
|
)) }) }, e.name)),
|
|
502
|
-
|
|
503
|
-
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children:
|
|
505
|
+
f.totalItems === 0 && !Z && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
|
|
506
|
+
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Z ? "Loading cache info..." : "No cache info available." })
|
|
504
507
|
] })
|
|
505
508
|
]
|
|
506
509
|
}
|