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