@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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.pTdBpzz1.js → AboutChangelog.RQ2dLRs9.js} +3 -3
  2. package/dist/chunks/{AboutEntry.CACoMTsm.js → AboutEntry.CpFMkr79.js} +5 -5
  3. package/dist/chunks/{App.C8tSD8FW.js → App.DAaATEKV.js} +1136 -1099
  4. package/dist/chunks/{Chart.8NIsGioQ.js → Chart.BKmafZak.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.CjBF2Ksl.js → ChatBubbleAssistant.B4IGyY5V.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.DTBZStED.js → ChatBubbleUser.DsOMP5go.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DZ2gKrYL.js → ChatHistoryTable.D4gYhSA9.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.CKgJVGbQ.js → HistoryEntry.CUbsjW_l.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.D0Xm05KG.js → ProfileEntry.Dz9CVci_.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.kC-cp_ND.js → SettingsEntry.DuAYMX4m.js} +224 -221
  11. package/dist/chunks/{Table.YyEKxT0f.js → Table.CjzaBOxn.js} +2 -2
  12. package/dist/chunks/{UsageEntry.CZn0rwIl.js → UsageEntry.DpVRUiH5.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.DZQPobyQ.js → UserMemoriesPanel.DvYce5sW.js} +4 -4
  14. package/dist/chunks/{index.Bzo-4jgY.js → index.0cE1U8yJ.js} +1 -1
  15. package/dist/chunks/{index.DqUdd9Yb.js → index.B1uZUNzr.js} +3 -3
  16. package/dist/chunks/{index.DoS8Ajmg.js → index.B9QORjw0.js} +1 -1
  17. package/dist/chunks/{index.D4yabS-I.js → index.BCU0BgSz.js} +1 -1
  18. package/dist/chunks/{index.DTJKaQEV.js → index.IxOxnKDE.js} +2 -2
  19. package/dist/chunks/{index.BeqCEf_0.js → index.JBnaIFI9.js} +10 -10
  20. package/dist/chunks/{index.DjO2lloh.js → index.TirpXeDY.js} +1 -1
  21. package/dist/chunks/{index.CQHTKxYG.js → index.YawG6Xex.js} +1 -1
  22. package/dist/chunks/{useMarkdown.pxMF8M9l.js → useMarkdown.BtHcsdXH.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +5 -5
@@ -1,188 +1,188 @@
1
- import { jsxs as a, jsx as t, Fragment as A } from "react/jsx-runtime";
2
- import { n as Fe, useEntitlements as We, useUserPreferences as $e, V as de, useLocalStorage as me, LOCAL_STORAGE_OLED_MODE as ze, LOCAL_STORAGE_FULL_SCREEN as He, k as ue, canEvaluateModels as Ye, Y as je, getCacheInfo as qe, isServiceWorkerEnabled as Ke, SETTINGS_TITLE as Qe, Card as p, CARDS as r, b as Je, Button as x, PROMPTS_DESCRIPTION as Xe, e_ as he, L as Ze, j as pe, applyOledMode as Ee, getCurrentGeoLocation as et, graphQLRequest as Se, handleServiceWorkerToggle as tt, SERVICE_TYPES as Ne } from "./index.BeqCEf_0.js";
3
- import { AppContext as ot, useCapability as ge, Panel as at, Toggle as l, APP_SET_OLED_MODE as Te, APP_SET_FULL_SCREEN as fe } from "./App.C8tSD8FW.js";
4
- import { TextArea as Ce } from "./index.Bzo-4jgY.js";
5
- import { useContext as st, useState as s, useMemo as nt, useCallback as rt, useEffect as Ie } from "react";
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: be,
8
- onOpenChange: R
7
+ open: Ce,
8
+ onOpenChange: A
9
9
  }) => {
10
- const { getAccessToken: k, user: P } = Fe(), { allowedModels: y, status: B } = We(), { dispatch: g } = st(ot), {
10
+ const { getAccessToken: I, user: R } = je(), { allowedModels: w, status: B } = Ve(), { dispatch: g } = at(tt), {
11
11
  data: o,
12
- isSuccess: ke,
13
- refetch: G
14
- } = $e({
15
- user: P?.username,
16
- getAccessToken: k
17
- }), [U, T] = s({
12
+ isSuccess: ye,
13
+ refetch: x
14
+ } = Fe({
15
+ user: R?.username,
16
+ getAccessToken: I
17
+ }), [G, b] = a({
18
18
  loadingLocation: !1
19
- }), [M, V] = s({
19
+ }), [L, U] = a({
20
20
  prompts: []
21
- }), [F, W] = s(""), [$, f] = s(""), [z, H] = s(!1), [Y, j] = s(!1), [C, q] = s(!1), [I, K] = s(!1), [Q, J] = s(!1), [D, X] = s(!1), [E, Z] = s(null), [ee, te] = s(!1), [oe, ae] = s(!1), se = ge(de.TOOL.MEMORIES), ne = ge(de.ADDON.REASONING), [i, ye] = me({
22
- key: ze,
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
- }), [m, Me] = me({
25
- key: He,
24
+ }), [u, we] = de({
25
+ key: $e,
26
26
  initialValue: !1
27
- }), [u, _] = s(!1), [S, w] = s(!1), [re, le] = s(ue), De = nt(() => Ye(y, B) ? je(y) : !1, [y, B]), _e = (e) => {
28
- ae(e);
29
- }, we = (e) => {
30
- H(e);
31
- }, Le = (e) => {
32
- se && j(e);
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
- K(e);
36
+ se && Q(e);
37
+ }, Pe = (e) => {
38
+ J(e);
35
39
  }, ve = (e) => {
36
- ne && J(e);
40
+ M(e);
37
41
  }, Ae = (e) => {
38
- X(e);
39
- }, xe = (e) => {
40
- _(e);
42
+ D(e);
41
43
  }, Re = (e) => {
42
- w(e);
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 Se({
49
- accessToken: await k(),
50
- type: Ne.SET_USER_PREFERENCES,
48
+ await fe({
49
+ accessToken: await I(),
50
+ type: Se.SET_USER_PREFERENCES,
51
51
  params: {
52
- user: P?.username,
53
- instructions: F,
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: D && o?.model || "",
62
- tags: M.prompts,
63
- sendOnEnter: z,
64
- useMemory: Y,
65
- showDetails: oe,
66
- showReasoningButton: Q,
67
- useNestedModelSelection: D,
68
- themeMode: re
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
- }), I !== C && (await tt(I), q(I)), u !== i && (ye(u), Ee(u), g({
71
- type: Te,
72
- payload: { oledMode: u }
73
- })), S !== m && (Me(S), g({
74
- type: fe,
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
- })), G(), T({
76
+ })), x(), b({
77
77
  loadingLocation: !1
78
78
  });
79
79
  } catch {
80
80
  }
81
- }, Ge = async () => {
82
- T({
81
+ }, xe = async () => {
82
+ b({
83
83
  loadingLocation: !0
84
- }), f("...");
84
+ }), T("...");
85
85
  try {
86
- const e = Date.now(), n = await et(), b = await Se({
87
- accessToken: await k(),
88
- type: Ne.GET_LOCATION,
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: n.latitude,
91
- longitude: n.longitude
90
+ latitude: s.latitude,
91
+ longitude: s.longitude
92
92
  }
93
93
  }), h = Date.now() - e;
94
- h < 2e3 && await new Promise((Ve) => setTimeout(Ve, 2e3 - h));
95
- const { city: d, state: c, country: N, displayName: v } = b.data, Ue = d && c && N ? `${d}, ${c}, ${N}` : v;
96
- T({
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
- }), f(Ue);
98
+ }), T(Ge);
99
99
  } catch {
100
- T({
100
+ b({
101
101
  loadingLocation: !1
102
102
  });
103
103
  }
104
- }, ce = () => {
105
- u !== i && (_(i), Ee(i), g({
106
- type: Te,
104
+ }, le = () => {
105
+ m !== i && (M(i), Ee(i), g({
106
+ type: ge,
107
107
  payload: { oledMode: i }
108
- })), S !== m && (w(m), g({
109
- type: fe,
110
- payload: { fullScreen: m }
111
- })), G(), R(!1);
112
- }, L = ({
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: n = !1,
115
- clipboardAccess: b = !1,
114
+ privateChat: s = !1,
115
+ clipboardAccess: y = !1,
116
116
  ...O
117
117
  }) => {
118
- V((h) => {
118
+ U((h) => {
119
119
  const d = h.prompts, c = {
120
120
  ...O,
121
121
  enabled: e,
122
- privateChat: n,
123
- clipboardAccess: b
122
+ privateChat: s,
123
+ clipboardAccess: y
124
124
  };
125
- b ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
126
- const N = d.findIndex((v) => v.slot === O.slot);
127
- return N === -1 ? {
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[N] = c, {
130
+ } : (d[p] = c, {
131
131
  ...h,
132
132
  prompts: [...d]
133
133
  });
134
134
  });
135
- }, ie = rt(async () => {
135
+ }, ce = nt(async () => {
136
136
  try {
137
- te(!0);
138
- const e = await qe();
139
- Z(e);
137
+ ee(!0);
138
+ const e = await Ye();
139
+ X(e);
140
140
  } catch {
141
141
  } finally {
142
- te(!1);
142
+ ee(!1);
143
143
  }
144
144
  }, []);
145
- return Ie(() => {
145
+ return Ne(() => {
146
146
  if (!o)
147
147
  return;
148
- o.instructions && W(o.instructions), o.location && f(o.location), o.tags && V({ prompts: o.tags }), o.sendOnEnter !== void 0 && H(o.sendOnEnter), o.useMemory !== void 0 && j(o.useMemory), o.showDetails !== void 0 && ae(o.showDetails), o.showReasoningButton !== void 0 && J(o.showReasoningButton), o.useNestedModelSelection !== void 0 && X(o.useNestedModelSelection), o.themeMode !== void 0 && le(o.themeMode);
149
- const e = Ke();
150
- q(e), K(e), _(i), w(m);
151
- }, [o, i, m]), Ie(() => {
152
- C ? ie() : Z(null);
153
- }, [C, ie]), ke ? /* @__PURE__ */ a(
154
- at,
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: be,
157
- onOpenChange: ce,
158
- title: Qe,
156
+ open: Ce,
157
+ onOpenChange: le,
158
+ title: Ke,
159
159
  animation: !0,
160
160
  animationType: "fade",
161
- footer: /* @__PURE__ */ a(
162
- Ze,
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(pe, { children: /* @__PURE__ */ t(
169
- x,
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: ce,
175
+ onClick: le,
176
176
  children: "Cancel"
177
177
  }
178
178
  ) }),
179
- /* @__PURE__ */ t(pe, { children: /* @__PURE__ */ t(
180
- x,
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
- R(!1), await Be(e);
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__ */ a(
195
- p,
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: _e,
211
- checked: oe
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: we,
224
- checked: z
225
+ onChange: Me,
226
+ checked: W
225
227
  }
226
228
  ),
227
- se && /* @__PURE__ */ a(A, { children: [
228
- /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_DETAILS.USE_MEMORY }),
229
- /* @__PURE__ */ t(
230
- l,
231
- {
232
- noBorder: !0,
233
- narrow: !0,
234
- className: "mt-2",
235
- label: "Use Memory",
236
- name: "use-memory",
237
- onChange: Le,
238
- checked: Y
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__ */ a(
246
- p,
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__ */ a("p", { className: "text-sm", children: [
253
+ /* @__PURE__ */ n("p", { className: "text-sm", children: [
253
254
  "What would you like ",
254
- /* @__PURE__ */ t("em", { children: Je }),
255
+ /* @__PURE__ */ t("em", { children: Qe }),
255
256
  " to know about you to provide better responses?"
256
257
  ] }),
257
258
  /* @__PURE__ */ t(
258
- Ce,
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: F,
267
+ value: j,
267
268
  onChange: (e) => {
268
- W(e.target.value);
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__ */ a(
277
- p,
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
- Ce,
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
- f(e.target.value);
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
- x,
299
+ v,
299
300
  {
300
301
  className: "mt-2",
301
302
  size: "small",
302
303
  noBorder: !0,
303
304
  variant: "secondary",
304
- disabled: U.loadingLocation,
305
- onClick: Ge,
306
- children: U.loadingLocation ? "Detecting..." : "Auto-detect"
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__ */ a(
313
- p,
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: Xe }),
320
- M.prompts && M.prompts.slice(0, 3).map((e) => /* @__PURE__ */ a(
321
- p,
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: (n) => {
340
- L({
340
+ onChange: (s) => {
341
+ _({
341
342
  ...e,
342
- enabled: n
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: (n) => {
359
- L({
359
+ onChange: (s) => {
360
+ _({
360
361
  ...e,
361
- privateChat: n
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: (n) => {
378
- L({
378
+ onChange: (s) => {
379
+ _({
379
380
  ...e,
380
- clipboardAccess: n
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__ */ a(
394
- p,
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
- ne && /* @__PURE__ */ a(A, { children: [
401
- /* @__PURE__ */ t("p", { className: "text-sm", children: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION }),
402
- /* @__PURE__ */ t(
403
- l,
404
- {
405
- noBorder: !0,
406
- narrow: !0,
407
- className: "mt-2",
408
- label: "Show Reasoning Button",
409
- name: "show-reasoning-button",
410
- onChange: ve,
411
- checked: Q
412
- }
413
- )
414
- ] }),
415
- De && /* @__PURE__ */ a(A, { children: [
416
- /* @__PURE__ */ t("p", { className: "text-sm mt-5", children: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION }),
417
- /* @__PURE__ */ t(
418
- l,
419
- {
420
- noBorder: !0,
421
- narrow: !0,
422
- className: "mt-2",
423
- label: "Enable Model Selection",
424
- name: "use-nested-model-selection",
425
- onChange: Ae,
426
- checked: D
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: xe,
440
- checked: u
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: Pe,
453
- checked: re === he
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: Re,
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: Oe,
479
- checked: I
481
+ onChange: _e,
482
+ checked: C
480
483
  }
481
484
  ),
482
- C && /* @__PURE__ */ a("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
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
- E ? /* @__PURE__ */ a("div", { className: "text-xs space-y-2", children: [
485
- /* @__PURE__ */ a("p", { className: "m-0", children: [
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: E.version })
490
+ /* @__PURE__ */ t("strong", { children: f.version })
488
491
  ] }),
489
- /* @__PURE__ */ a("p", { className: "m-0", children: [
492
+ /* @__PURE__ */ n("p", { className: "m-0", children: [
490
493
  "Total Items: ",
491
- /* @__PURE__ */ t("strong", { children: E.totalItems })
494
+ /* @__PURE__ */ t("strong", { children: f.totalItems })
492
495
  ] }),
493
- 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((n) => /* @__PURE__ */ t(
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: n,
498
- children: new URL(n).pathname
500
+ title: s,
501
+ children: new URL(s).pathname
499
502
  },
500
- n
503
+ s
501
504
  )) }) }, e.name)),
502
- E.totalItems === 0 && !ee && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
503
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: ee ? "Loading cache info..." : "No cache info available." })
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
  }