@versini/sassysaint 8.111.4 → 8.113.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/chunks/{AboutChangelog.C99ZrqKf.js → AboutChangelog.Ca_-0R2Z.js} +2 -2
  2. package/dist/chunks/{AboutEntry.YWAyYLjf.js → AboutEntry.d0wBsNrA.js} +7 -7
  3. package/dist/chunks/{App.D7kYRe3a.js → App.Cq8qzFk_.js} +1654 -1662
  4. package/dist/chunks/{Bubble.MXxGhdx0.js → Bubble.Cv3jM5GI.js} +1 -1
  5. package/dist/chunks/{ButtonIconDelete.Ca_-Z3g5.js → ButtonIconDelete.DLEr4aRh.js} +2 -2
  6. package/dist/chunks/{Chart.BmxHbT7B.js → Chart.DtaEPJXs.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.BjZa9CVT.js → ChatBubbleAssistant.CJ8KkIfU.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.BvDGQWGU.js → ChatBubbleUser.BqD9i861.js} +3 -3
  9. package/dist/chunks/{ChatHistoryTable.gOA0wCai.js → ChatHistoryTable.BsiGSi8P.js} +4 -4
  10. package/dist/chunks/{HistoryEntry.m8eQcBA5.js → HistoryEntry.DwDFj_Ul.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BZ0MKlEZ.js → LoginEntry.BobCLcqT.js} +4 -4
  12. package/dist/chunks/{LogoEntry.VAaujt4V.js → LogoEntry.Bmkirjfi.js} +839 -801
  13. package/dist/chunks/{MemoriesEntry.Dp9urYHa.js → MemoriesEntry.DJqg-T1a.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.8-BhqMWc.js → ProfileEntry.CmxgoGnW.js} +4 -4
  15. package/dist/chunks/SettingsEntry.DHDvN-1t.js +456 -0
  16. package/dist/chunks/{UsageEntry.CzN_8YVL.js → UsageEntry.BDfnFUrH.js} +5 -5
  17. package/dist/chunks/{_baseUniq.rh3h2tHg.js → _baseUniq.Dqe5_Toi.js} +1 -1
  18. package/dist/chunks/{arc.BKxb_yu5.js → arc.CGZV-MjU.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.B36n-DM7.js → architecture-U656AL7Q.C90Ax7My.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.D3-Qxo-7.js → architectureDiagram-VXUJARFQ.C0rS0fWw.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.Mp-Xb22B.js → blockDiagram-VD42YOAC.DznxMf4F.js} +5 -5
  22. package/dist/chunks/{browser.DjQN4eNb.js → browser.BnaQHHqz.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.C9ltkFOr.js → c4Diagram-YG6GDRKO.CWhiqagE.js} +2 -2
  24. package/dist/chunks/{channel.Bo0ytD01.js → channel.BB9TnGcL.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.aYwLZcak.js → chunk-4BX2VUAB.7Zy44KUT.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.5GYTuunv.js → chunk-55IACEB6.Lg0HIhiW.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.0yBrgVYm.js → chunk-B4BG7PRW._kvdklxD.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.CTqvgAEF.js → chunk-DI55MBZ5.ClpeQBli.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.DaPPU-p7.js → chunk-FMBD7UC4.CqySj1TF.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.By3k-QDP.js → chunk-QN33PNHL.AHj100hS.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.DObI7QtE.js → chunk-QZHKN3VN.OZ_ibyKi.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.DFJLOpRz.js → chunk-TZMSLE5B.BA1BUwQ7.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.CiC1TMro.js → classDiagram-2ON5EDUG.CuY8-09E.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.CiC1TMro.js → classDiagram-v2-WZHVMYZB.CuY8-09E.js} +2 -2
  35. package/dist/chunks/{clone.snnq5L3s.js → clone.WhR2JIG7.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.CDA47A7Q.js → cose-bilkent-S5V4N54A.BcOQBmqz.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.BQluIDmg.js → dagre-6UL2VRFP.Cxd9fG-F.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.Zu7EeNCT.js → diagram-PSM6KHXK.CLlexIci.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.C35h0Q1S.js → diagram-QEK2KX5R.BTEc1ujY.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.DeIusNHA.js → diagram-S2PKOQOG.CbTML28c.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.uQxkucxo.js → erDiagram-Q2GNP2WA.Df1MoHo8.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.BqkLb-Cs.js → flowDiagram-NV44I4VS.jpS_I-dM.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.DxEo8Kjd.js → ganttDiagram-JELNMOA3.Oku1ntVE.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.Dco6xaH4.js → gitGraph-F6HP7TQM.D89wWij9.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.Wnzx_yR3.js → gitGraphDiagram-NY62KEGX.BptpVeuk.js} +4 -4
  46. package/dist/chunks/{graph.BWteyPdy.js → graph.Cj535hCW.js} +2 -2
  47. package/dist/chunks/{index.BRLCj5yF.js → index.1ELMiZ8D.js} +3 -3
  48. package/dist/chunks/{index.CZrGRJVJ.js → index.BWr_28b7.js} +1 -1
  49. package/dist/chunks/{index.Byuy4Q49.js → index.BaCt_uGv.js} +1 -1
  50. package/dist/chunks/{index.DlSb-eu-.js → index.BdwPaWcz.js} +1758 -1895
  51. package/dist/chunks/{index.fanc5b7k.js → index.CM45pRF7.js} +1 -1
  52. package/dist/chunks/{index.uWhcsflb.js → index.DWX-wHHb.js} +1 -1
  53. package/dist/chunks/{index.D8xiBI-7.js → index.Q9yZjdlK.js} +1 -1
  54. package/dist/chunks/{index.790ujKXR.js → index.ri2Dr1rJ.js} +1 -1
  55. package/dist/chunks/{index.2IQnxrOb.js → index.ycTAFvKg.js} +1 -1
  56. package/dist/chunks/{index.CNqIVM7Q.js → index.z-5IhSKr.js} +3 -3
  57. package/dist/chunks/{info-NVLQJR56.BEKQeHwA.js → info-NVLQJR56.oTyx52uE.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.Dxbn3Ozt.js → infoDiagram-WHAUD3N6.g6JDcDNU.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BD7YwSgA.js → journeyDiagram-XKPGCS4Q.f_92qAl0.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.CK8JRptb.js → kanban-definition-3W4ZIXB7.B3gL60Q9.js} +2 -2
  61. package/dist/chunks/{layout.CJKebkKn.js → layout.BLvY5Ig2.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.CSYrCldG.js → mermaid-parser.core.DST2gLCf.js} +10 -10
  63. package/dist/chunks/{min.CQHAdIy9.js → min.DOBvLEmc.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.DM5DeM0F.js → mindmap-definition-VGOIOE7T.CK488S2A.js} +4 -4
  65. package/dist/chunks/{packet-BFZMPI3H.DEd3gHu2.js → packet-BFZMPI3H.CF4QtBQx.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.B6CjUa98.js → pie-7BOR55EZ.B93_9bCD.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.Ch8Q0rB9.js → pieDiagram-ADFJNKIX.C_yA28Ld.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.C0GD2d0M.js → quadrantDiagram-AYHSOK5B.ufnw7lik.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.D4DSygig.js → radar-NHE76QYJ.D7PBakm5.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.cahUaoTc.js → rehype-mermaid.8n0pbfjI.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.VgYSoiVA.js → requirementDiagram-UZGBJVZJ.Uc5GMBA0.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.BxpPU8Mb.js → sankeyDiagram-TZEHDZUN.BLq90Q-Y.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.DaNv2DsB.js → sequenceDiagram-WL72ISMW.CUq7bUmz.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.CA2_FEiS.js → stateDiagram-FKZM4ZOC.DaWP7cRp.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.D7NqmU3X.js → stateDiagram-v2-4FDKWEC3.CLTyxBua.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.Cg8zMgPR.js → timeline-definition-IT6M3QCI.BZbALyFR.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.BVFWHatk.js → treemap-KMMF4GRG.B4HMZPBF.js} +1 -1
  78. package/dist/chunks/{useMarkdown.Dupv6NhF.js → useMarkdown.BXgiegIf.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.D_CVF5rq.js → xychartDiagram-PRI3JC2R.CZybyhJi.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +3 -3
  84. package/dist/chunks/SettingsEntry.BfQY7V1X.js +0 -510
@@ -1,510 +0,0 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { n as je, useEntitlements as Ve, useUserPreferences as Fe, B as ie, LOCAL_STORAGE_OLED_MODE as We, LOCAL_STORAGE_FULL_SCREEN as $e, e as de, canEvaluateModels as ze, W as He, getCacheInfo as Ye, isServiceWorkerEnabled as qe, V as Ke, K as ue, applyOledMode as me, getCurrentGeoLocation as Qe, graphQLRequest as he, handleServiceWorkerToggle as Je, SERVICE_TYPES as fe } from "./index.DlSb-eu-.js";
3
- import { AppContext as Xe, SETTINGS_TITLE as Ze, CARDS as r, Button as pe, PROMPTS_DESCRIPTION as et, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as Se } from "./LogoEntry.VAaujt4V.js";
4
- import { Card as f } from "./index.uWhcsflb.js";
5
- import { useCapability as be, useLocalStorage as ge, Panel as tt, Toggle as l, ButtonCancel as ot } from "./App.D7kYRe3a.js";
6
- import { TextArea as Ne } from "./index.Byuy4Q49.js";
7
- import { useRef as st, useContext as at, useState as s, useMemo as nt, useCallback as rt, useEffect as Te } from "react";
8
- const ft = ({
9
- open: Ce,
10
- onOpenChange: P
11
- }) => {
12
- const A = st(null), { getAccessToken: w, user: R } = je(), { allowedModels: I, status: x } = Ve(), { dispatch: b } = at(Xe), {
13
- data: o,
14
- isSuccess: ye,
15
- refetch: B
16
- } = Fe({
17
- user: R?.username,
18
- getAccessToken: w
19
- }), [U, g] = s({
20
- loadingLocation: !1
21
- }), [L, G] = s({
22
- prompts: []
23
- }), [j, V] = s(""), [F, N] = s(""), [W, $] = s(!1), [z, H] = s(!1), [T, Y] = s(!1), [C, q] = s(!1), [K, Q] = s(!1), [D, J] = s(!1), [p, X] = s(null), [Z, ee] = s(!1), [te, oe] = s(!1), se = be(ie.TOOL.MEMORIES), ae = be(ie.ADDON.REASONING), [i, we] = ge({
24
- key: We,
25
- initialValue: !1
26
- }), [u, Ie] = ge({
27
- key: $e,
28
- initialValue: !1
29
- }), [m, M] = s(!1), [E, _] = s(!1), [ne, re] = s(de), Le = nt(() => ze(I, x) ? He(I) : !1, [I, x]), De = (e) => {
30
- oe(e);
31
- }, Me = (e) => {
32
- $(e);
33
- }, _e = (e) => {
34
- se && H(e);
35
- }, ke = (e) => {
36
- q(e);
37
- }, Oe = (e) => {
38
- ae && Q(e);
39
- }, ve = (e) => {
40
- J(e);
41
- }, Pe = (e) => {
42
- M(e);
43
- }, Ae = (e) => {
44
- _(e);
45
- }, Re = (e) => {
46
- re(e ? ue : de);
47
- }, xe = async (e) => {
48
- e.preventDefault();
49
- try {
50
- await he({
51
- accessToken: await w(),
52
- type: fe.SET_USER_PREFERENCES,
53
- params: {
54
- user: R?.username,
55
- instructions: j,
56
- location: F,
57
- provider: o?.provider,
58
- /**
59
- * When nested model selection is disabled, explicitly clear any stored
60
- * model preference so the user relies solely on provider defaults. Empty
61
- * string signals to backend to use provider's default model.
62
- */
63
- model: D && o?.model || "",
64
- tags: L.prompts,
65
- sendOnEnter: W,
66
- useMemory: z,
67
- showDetails: te,
68
- showReasoningButton: K,
69
- useNestedModelSelection: D,
70
- themeMode: ne
71
- }
72
- }), C !== T && (await Je(C), Y(C)), m !== i && (we(m), me(m), b({
73
- type: Ee,
74
- payload: { oledMode: m }
75
- })), E !== u && (Ie(E), b({
76
- type: Se,
77
- payload: { fullScreen: E }
78
- })), B(), g({
79
- loadingLocation: !1
80
- });
81
- } catch {
82
- }
83
- }, Be = async () => {
84
- g({
85
- loadingLocation: !0
86
- }), N("...");
87
- try {
88
- const e = Date.now(), a = await Qe(), y = await he({
89
- accessToken: await w(),
90
- type: fe.GET_LOCATION,
91
- params: {
92
- latitude: a.latitude,
93
- longitude: a.longitude
94
- }
95
- }), h = Date.now() - e;
96
- h < 2e3 && await new Promise((Ge) => setTimeout(Ge, 2e3 - h));
97
- const { city: d, state: c, country: S, displayName: v } = y.data, Ue = d && c && S ? `${d}, ${c}, ${S}` : v;
98
- g({
99
- loadingLocation: !1
100
- }), N(Ue);
101
- } catch {
102
- g({
103
- loadingLocation: !1
104
- });
105
- }
106
- }, le = () => {
107
- m !== i && (M(i), me(i), b({
108
- type: Ee,
109
- payload: { oledMode: i }
110
- })), E !== u && (_(u), b({
111
- type: Se,
112
- payload: { fullScreen: u }
113
- })), B(), P(!1);
114
- }, k = ({
115
- enabled: e = !1,
116
- privateChat: a = !1,
117
- clipboardAccess: y = !1,
118
- ...O
119
- }) => {
120
- G((h) => {
121
- const d = h.prompts, c = {
122
- ...O,
123
- enabled: e,
124
- privateChat: a,
125
- clipboardAccess: y
126
- };
127
- y ? c.content = c.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : c.content = c.content.replace(/{{clipboard}}/g, "");
128
- const S = d.findIndex((v) => v.slot === O.slot);
129
- return S === -1 ? {
130
- ...h,
131
- prompts: [...d, { ...c }]
132
- } : (d[S] = c, {
133
- ...h,
134
- prompts: [...d]
135
- });
136
- });
137
- }, ce = rt(async () => {
138
- try {
139
- ee(!0);
140
- const e = await Ye();
141
- X(e);
142
- } catch {
143
- } finally {
144
- ee(!1);
145
- }
146
- }, []);
147
- return Te(() => {
148
- if (!o)
149
- return;
150
- o.instructions && V(o.instructions), o.location && N(o.location), o.tags && G({ 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);
151
- const e = qe();
152
- Y(e), q(e), M(i), _(u);
153
- }, [o, i, u]), Te(() => {
154
- T ? ce() : X(null);
155
- }, [T, ce]), ye ? /* @__PURE__ */ n(
156
- tt,
157
- {
158
- open: Ce,
159
- onOpenChange: le,
160
- title: Ze,
161
- animation: !0,
162
- animationType: "fade",
163
- blurEffect: "large",
164
- initialFocus: A,
165
- footer: /* @__PURE__ */ n("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: [
166
- /* @__PURE__ */ t("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ t(
167
- ot,
168
- {
169
- onOpenChange: le,
170
- label: "Cancel",
171
- ref: A
172
- }
173
- ) }),
174
- /* @__PURE__ */ t("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ t(
175
- pe,
176
- {
177
- mode: "light",
178
- focusMode: "light",
179
- onClick: async (e) => {
180
- P(!1), await xe(e);
181
- },
182
- children: "Save"
183
- }
184
- ) })
185
- ] }),
186
- children: [
187
- /* @__PURE__ */ n(
188
- f,
189
- {
190
- header: r.SETTINGS_DETAILS.TITLE,
191
- className: "prose-dark dark:prose-lighter",
192
- noBorder: !0,
193
- children: [
194
- /* @__PURE__ */ t(
195
- l,
196
- {
197
- noBorder: !0,
198
- narrow: !0,
199
- className: "mt-2 justify-between",
200
- labelPosition: "left",
201
- label: "Message Statistics",
202
- subLabel: r.SETTINGS_DETAILS.DETAILS,
203
- name: "show-message-statistics",
204
- onChange: De,
205
- checked: te
206
- }
207
- ),
208
- /* @__PURE__ */ t(
209
- l,
210
- {
211
- noBorder: !0,
212
- narrow: !0,
213
- className: "mt-2 justify-between",
214
- labelPosition: "left",
215
- label: "Send Message on Enter",
216
- subLabel: r.SETTINGS_DETAILS.SEND_ON_ENTER,
217
- name: "send-message-on-enter",
218
- onChange: Me,
219
- checked: W
220
- }
221
- ),
222
- se && /* @__PURE__ */ t(
223
- l,
224
- {
225
- noBorder: !0,
226
- narrow: !0,
227
- className: "mt-2 justify-between",
228
- labelPosition: "left",
229
- label: "Use Memory",
230
- subLabel: r.SETTINGS_DETAILS.USE_MEMORY,
231
- name: "use-memory",
232
- onChange: _e,
233
- checked: z
234
- }
235
- )
236
- ]
237
- }
238
- ),
239
- /* @__PURE__ */ n(
240
- f,
241
- {
242
- header: "Custom Instructions",
243
- className: "prose-dark dark:prose-lighter mt-4",
244
- noBorder: !0,
245
- children: [
246
- /* @__PURE__ */ n("p", { className: "text-sm", children: [
247
- "What would you like ",
248
- /* @__PURE__ */ t("em", { children: Ke }),
249
- " to know about you to provide better responses?"
250
- ] }),
251
- /* @__PURE__ */ t(
252
- Ne,
253
- {
254
- mode: "alt-system",
255
- autoCapitalize: "off",
256
- autoComplete: "off",
257
- autoCorrect: "off",
258
- name: "customInstructions",
259
- label: "Custom Instructions",
260
- value: j,
261
- onChange: (e) => {
262
- V(e.target.value);
263
- },
264
- helperText: "Press ENTER to add a new line."
265
- }
266
- )
267
- ]
268
- }
269
- ),
270
- /* @__PURE__ */ n(
271
- f,
272
- {
273
- header: "Location",
274
- className: "prose-dark dark:prose-lighter mt-4",
275
- noBorder: !0,
276
- children: [
277
- /* @__PURE__ */ t("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
278
- /* @__PURE__ */ t(
279
- Ne,
280
- {
281
- mode: "alt-system",
282
- name: "location",
283
- label: "Location",
284
- value: F,
285
- onChange: (e) => {
286
- N(e.target.value);
287
- },
288
- helperText: "Enter your location or press auto-detect."
289
- }
290
- ),
291
- /* @__PURE__ */ t(
292
- pe,
293
- {
294
- className: "mt-2",
295
- size: "small",
296
- noBorder: !0,
297
- variant: "secondary",
298
- disabled: U.loadingLocation,
299
- onClick: Be,
300
- children: U.loadingLocation ? "Detecting..." : "Auto-detect"
301
- }
302
- )
303
- ]
304
- }
305
- ),
306
- /* @__PURE__ */ n(
307
- f,
308
- {
309
- header: r.SETTINGS_PROMPTS.TITLE,
310
- className: "prose-dark dark:prose-lighter mt-4",
311
- noBorder: !0,
312
- children: [
313
- /* @__PURE__ */ t("p", { className: "text-sm", children: et }),
314
- L.prompts && L.prompts.slice(0, 3).map((e) => /* @__PURE__ */ n(
315
- f,
316
- {
317
- mode: "dark",
318
- noBorder: !0,
319
- header: e.label.replace("...", ""),
320
- className: "prose-light mb-2",
321
- children: [
322
- /* @__PURE__ */ t("p", { className: "text-sm", children: e.description }),
323
- /* @__PURE__ */ t(
324
- l,
325
- {
326
- noBorder: !0,
327
- narrow: !0,
328
- mode: "dark",
329
- focusMode: "light",
330
- className: "mt-2",
331
- label: "Enabled",
332
- name: e.slot.toString(),
333
- onChange: (a) => {
334
- k({
335
- ...e,
336
- enabled: a
337
- });
338
- },
339
- checked: e.enabled
340
- }
341
- ),
342
- /* @__PURE__ */ t(
343
- l,
344
- {
345
- noBorder: !0,
346
- narrow: !0,
347
- mode: "dark",
348
- focusMode: "light",
349
- className: "mt-2",
350
- label: "Private Chat",
351
- name: `private-${e.slot.toString()}`,
352
- onChange: (a) => {
353
- k({
354
- ...e,
355
- privateChat: a
356
- });
357
- },
358
- checked: e.privateChat
359
- }
360
- ),
361
- /* @__PURE__ */ t(
362
- l,
363
- {
364
- noBorder: !0,
365
- narrow: !0,
366
- mode: "dark",
367
- focusMode: "light",
368
- className: "mt-2",
369
- label: "Use Clipboard",
370
- name: `clipboard-${e.slot.toString()}`,
371
- onChange: (a) => {
372
- k({
373
- ...e,
374
- clipboardAccess: a
375
- });
376
- },
377
- checked: e.clipboardAccess
378
- }
379
- )
380
- ]
381
- },
382
- `prompt-slot-${e.slot}`
383
- ))
384
- ]
385
- }
386
- ),
387
- /* @__PURE__ */ n(
388
- f,
389
- {
390
- header: r.SETTINGS_ADVANCED.TITLE,
391
- className: "prose-dark dark:prose-lighter mt-4 ",
392
- noBorder: !0,
393
- children: [
394
- ae && /* @__PURE__ */ t(
395
- l,
396
- {
397
- noBorder: !0,
398
- narrow: !0,
399
- className: "mt-2 justify-between",
400
- labelPosition: "left",
401
- label: "Reasoning Button",
402
- subLabel: r.SETTINGS_ADVANCED.REASONING_BUTTON_DESCRIPTION,
403
- name: "show-reasoning-button",
404
- onChange: Oe,
405
- checked: K
406
- }
407
- ),
408
- Le && /* @__PURE__ */ t(
409
- l,
410
- {
411
- noBorder: !0,
412
- narrow: !0,
413
- className: "mt-2 justify-between",
414
- labelPosition: "left",
415
- label: "Model Selection",
416
- subLabel: r.SETTINGS_ADVANCED.NESTED_MODEL_SELECTION_DESCRIPTION,
417
- name: "use-nested-model-selection",
418
- onChange: ve,
419
- checked: D
420
- }
421
- ),
422
- /* @__PURE__ */ t(
423
- l,
424
- {
425
- noBorder: !0,
426
- narrow: !0,
427
- className: "mt-2 justify-between",
428
- labelPosition: "left",
429
- label: "OLED Mode",
430
- subLabel: r.SETTINGS_ADVANCED.BACKGROUND_THEME_DESCRIPTION,
431
- name: "enable-oled-mode",
432
- onChange: Pe,
433
- checked: m
434
- }
435
- ),
436
- /* @__PURE__ */ t(
437
- l,
438
- {
439
- noBorder: !0,
440
- narrow: !0,
441
- className: "mt-2 justify-between",
442
- labelPosition: "left",
443
- label: "Alternative Theme",
444
- subLabel: r.SETTINGS_ADVANCED.THEME_MODE_DESCRIPTION,
445
- name: "enable-alternative-theme",
446
- onChange: Re,
447
- checked: ne === ue
448
- }
449
- ),
450
- /* @__PURE__ */ t(
451
- l,
452
- {
453
- noBorder: !0,
454
- narrow: !0,
455
- className: "mt-2 justify-between",
456
- labelPosition: "left",
457
- label: "Full Screen",
458
- subLabel: r.SETTINGS_ADVANCED.FULL_SCREEN_DESCRIPTION,
459
- name: "enable-full-screen",
460
- onChange: Ae,
461
- checked: E
462
- }
463
- ),
464
- /* @__PURE__ */ t(
465
- l,
466
- {
467
- noBorder: !0,
468
- narrow: !0,
469
- className: "mt-2 justify-between",
470
- labelPosition: "left",
471
- label: "Assets Caching",
472
- subLabel: r.SETTINGS_ADVANCED.CACHE_DESCRIPTION,
473
- name: "enable-service-worker",
474
- onChange: ke,
475
- checked: C
476
- }
477
- ),
478
- T && /* @__PURE__ */ n("div", { className: "mt-4 p-3 border border-dashed border-border-medium dark:border-border-medium rounded @container/optimizations", children: [
479
- /* @__PURE__ */ t("h3", { className: "m-0 mb-2 text-xs uppercase", children: "Cache Info" }),
480
- p ? /* @__PURE__ */ n("div", { className: "text-xs space-y-2", children: [
481
- /* @__PURE__ */ n("p", { className: "m-0", children: [
482
- "Version: ",
483
- /* @__PURE__ */ t("strong", { children: p.version })
484
- ] }),
485
- /* @__PURE__ */ n("p", { className: "m-0", children: [
486
- "Total Items: ",
487
- /* @__PURE__ */ t("strong", { children: p.totalItems })
488
- ] }),
489
- p.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(
490
- "li",
491
- {
492
- className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
493
- title: a,
494
- children: new URL(a).pathname
495
- },
496
- a
497
- )) }) }, e.name)),
498
- p.totalItems === 0 && !Z && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
499
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Z ? "Loading cache info..." : "No cache info available." })
500
- ] })
501
- ]
502
- }
503
- )
504
- ]
505
- }
506
- ) : null;
507
- };
508
- export {
509
- ft as SettingsPanel
510
- };