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