@versini/sassysaint 8.112.0 → 8.113.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 (87) hide show
  1. package/dist/chunks/{AboutChangelog.Dayt987X.js → AboutChangelog.DARG59db.js} +2 -2
  2. package/dist/chunks/AboutEntry.b7SX6WL6.js +77 -0
  3. package/dist/chunks/{App.1qxTcHhE.js → App.xmJgJehw.js} +1734 -1742
  4. package/dist/chunks/{Bubble.Bw-2eGqM.js → Bubble.Cz0qyoPO.js} +1 -1
  5. package/dist/chunks/{ButtonIconDelete.DZW_2G6c.js → ButtonIconDelete.B3ULIUO-.js} +2 -2
  6. package/dist/chunks/{Chart.Cx6km9TU.js → Chart.C0iTXNld.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.BNu2Y1zq.js → ChatBubbleAssistant.Oxeqz6_p.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.pPCI3WL0.js → ChatBubbleUser.XmPerorZ.js} +3 -3
  9. package/dist/chunks/ChatHistoryTable.CPSt_wL_.js +292 -0
  10. package/dist/chunks/{HistoryEntry.C3bboYln.js → HistoryEntry.CkyoLRa6.js} +6 -6
  11. package/dist/chunks/{LoginEntry.Bn-GsVAB.js → LoginEntry.OXFkZEz4.js} +4 -4
  12. package/dist/chunks/{LogoEntry.DReNqiYv.js → LogoEntry.CwNXwlBx.js} +335 -338
  13. package/dist/chunks/{MemoriesEntry.CAg5AW5F.js → MemoriesEntry.RiZXtAAL.js} +5 -5
  14. package/dist/chunks/{ProfileEntry.COWhUBbO.js → ProfileEntry.CrZ2q4i9.js} +4 -4
  15. package/dist/chunks/SettingsEntry.M3K9Udw1.js +456 -0
  16. package/dist/chunks/{UsageEntry.CnnazYSh.js → UsageEntry.CN_Db9Wa.js} +5 -5
  17. package/dist/chunks/{_baseUniq.CNUFz9Ie.js → _baseUniq.f4f4GDt9.js} +1 -1
  18. package/dist/chunks/{arc.Bxl15E2D.js → arc.i1gTqq5f.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.DzlHQE5F.js → architecture-U656AL7Q.BlAWNnCU.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.DQBLcSlJ.js → architectureDiagram-VXUJARFQ.CNiv_XUQ.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.BSHnyqv8.js → blockDiagram-VD42YOAC.DHyMgxSX.js} +5 -5
  22. package/dist/chunks/{browser.ykQdyxYi.js → browser.DwvEsO0M.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.Zzum1FZK.js → c4Diagram-YG6GDRKO.5rV4UgiI.js} +2 -2
  24. package/dist/chunks/{channel._2RWo0R_.js → channel.Cbuusniv.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.C-pLiL50.js → chunk-4BX2VUAB.Cr4aulve.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.fMp9ubf_.js → chunk-55IACEB6.BSNVvGBN.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.BNmIeVTV.js → chunk-B4BG7PRW.f8-M_ha3.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.uDz3flQ8.js → chunk-DI55MBZ5.DHI14tPg.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.Diy7mBue.js → chunk-FMBD7UC4.iTWjW72u.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL.ryixtm2U.js → chunk-QN33PNHL.D4-2NXjF.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.C7w_fpJx.js → chunk-QZHKN3VN.CYmGB8Sb.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.BofTElRx.js → chunk-TZMSLE5B.DzMaXodZ.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.Bcl4iHVO.js → classDiagram-2ON5EDUG.BKKdpvXL.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.Bcl4iHVO.js → classDiagram-v2-WZHVMYZB.BKKdpvXL.js} +2 -2
  35. package/dist/chunks/{clone.CXzi7x3n.js → clone.CvyZhqBo.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.DAjW96yL.js → cose-bilkent-S5V4N54A.DkcPIpNo.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.CRpUm0Nd.js → dagre-6UL2VRFP.CYWrglcj.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.D8PLOyb_.js → diagram-PSM6KHXK.ammyY8fs.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.DwNvsJ_b.js → diagram-QEK2KX5R.nxakvoUi.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.DyCzcwzE.js → diagram-S2PKOQOG.oTHGFvqq.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.BlUI5_4z.js → erDiagram-Q2GNP2WA.CLXRUHsa.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.Bfreb6t8.js → flowDiagram-NV44I4VS.Cy7wO5FH.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.ib1rXCQk.js → ganttDiagram-JELNMOA3.Cl8zcb3j.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.CxufJdwn.js → gitGraph-F6HP7TQM.hNW58gvI.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.BZt4MXEW.js → gitGraphDiagram-NY62KEGX.CZSlTMsq.js} +4 -4
  46. package/dist/chunks/{graph.hvB27c9D.js → graph.Caz35JH7.js} +2 -2
  47. package/dist/chunks/{index.TLbAcxWR.js → index.1cAC-xa5.js} +1 -1
  48. package/dist/chunks/{index.92htXG5J.js → index.BviDehsy.js} +1 -1
  49. package/dist/chunks/{index.BB4J2Qi1.js → index.CQi6BBgd.js} +1 -1
  50. package/dist/chunks/{index.BXReSy4c.js → index.CqmFtr8m.js} +1762 -1918
  51. package/dist/chunks/{index.BVCLFEiI.js → index.CvxA-kV5.js} +1 -1
  52. package/dist/chunks/{index.DS1kY_8b.js → index.DN476kOD.js} +1 -1
  53. package/dist/chunks/{index.IpQNrFt6.js → index.Db2hh2RQ.js} +1 -1
  54. package/dist/chunks/{index.CmdM8OhV.js → index.DjSNYDyW.js} +3 -3
  55. package/dist/chunks/{index.Hd2XXux1.js → index.HA4LNOyl.js} +3 -3
  56. package/dist/chunks/{index.790ujKXR.js → index.ri2Dr1rJ.js} +1 -1
  57. package/dist/chunks/{info-NVLQJR56.B1fpEaU0.js → info-NVLQJR56.Dc95hvAr.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.Bq2JnNoD.js → infoDiagram-WHAUD3N6.DkzXHXgE.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.iqGtFhp_.js → journeyDiagram-XKPGCS4Q.Dm4nCIWT.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.JMlNoVIk.js → kanban-definition-3W4ZIXB7.Bw_g7kdo.js} +2 -2
  61. package/dist/chunks/{layout.CP2AqVdG.js → layout.B2-214jN.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.Bi2yoxZq.js → mermaid-parser.core.CXlYMeXK.js} +10 -10
  63. package/dist/chunks/{min.C11Gc2EF.js → min.BgoLZ81l.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.Cd1AilWi.js → mindmap-definition-VGOIOE7T.CsFsq1Li.js} +4 -4
  65. package/dist/chunks/{packet-BFZMPI3H.fS8hEXjX.js → packet-BFZMPI3H.CDcu8fNx.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.Ds7KQGmJ.js → pie-7BOR55EZ.ByUouGiC.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.C1aHiwho.js → pieDiagram-ADFJNKIX.D8CkHMPE.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.1yLMviWL.js → quadrantDiagram-AYHSOK5B.yAWIyAoJ.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.B9AoWAwO.js → radar-NHE76QYJ.Bd9UodJQ.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.CTTnjcVn.js → rehype-mermaid.CkjpiQg3.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.2S8yiwhm.js → requirementDiagram-UZGBJVZJ.D_fevfp7.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DpCJXyYB.js → sankeyDiagram-TZEHDZUN.BhEOFLc-.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.GhgH6avH.js → sequenceDiagram-WL72ISMW.BHLZnLLI.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.CcbwpENI.js → stateDiagram-FKZM4ZOC.CCaljhqc.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BhJWHBo_.js → stateDiagram-v2-4FDKWEC3.BIe9xvkt.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.eg5mNjCi.js → timeline-definition-IT6M3QCI.DaPI8uIU.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.Bn78avOP.js → treemap-KMMF4GRG.Dp5s54-J.js} +1 -1
  78. package/dist/chunks/{useMarkdown.js2o9U64.js → useMarkdown.DZ7gk7QY.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.DuYEc52x.js → xychartDiagram-PRI3JC2R.CuFnq5R8.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/AboutEntry.C7nQnTaR.js +0 -81
  85. package/dist/chunks/ChatHistoryTable.DaVUivHo.js +0 -234
  86. package/dist/chunks/SettingsEntry.e4vl4zRK.js +0 -510
  87. package/dist/chunks/index.DR0-P5h3.js +0 -67
@@ -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.BXReSy4c.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.DReNqiYv.js";
4
- import { Card as f } from "./index.IpQNrFt6.js";
5
- import { useCapability as be, useLocalStorage as ge, Panel as tt, Toggle as l, ButtonCancel as ot } from "./App.1qxTcHhE.js";
6
- import { TextArea as Ne } from "./index.DS1kY_8b.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
- };
@@ -1,67 +0,0 @@
1
- import { jsxs as d, jsx as o } from "react/jsx-runtime";
2
- import { IconCloseLight as b } from "./LogoEntry.DReNqiYv.js";
3
- import { useState as g } from "react";
4
- import s from "clsx";
5
- const p = "av-pill", x = ({ variant: e }) => s("rounded-xs border", {
6
- "border-border-information": e === "information",
7
- "border-border-warning": e === "warning",
8
- "border-border-success": e === "success",
9
- "border-border-error": e === "error"
10
- }), u = ({ variant: e }) => s("not-prose", {
11
- "text-copy-information": e === "information",
12
- "text-copy-warning": e === "warning",
13
- "text-copy-success": e === "success",
14
- "text-copy-error": e === "error"
15
- }), y = ({ variant: e }) => s({
16
- "bg-surface-information": e === "information",
17
- "bg-surface-warning": e === "warning",
18
- "bg-surface-success": e === "success",
19
- "bg-surface-error": e === "error"
20
- }), C = (e) => {
21
- const { className: n, variant: r } = e;
22
- return {
23
- main: s(p, "inline-flex items-center gap-1 px-2 py-0.5 text-xs", x({
24
- variant: r
25
- }), u({
26
- variant: r
27
- }), y(e), n),
28
- button: s("inline-flex items-center justify-center", "ml-1", "focus:outline", "focus:outline-1", "focus:outline-offset-1", "focus:outline-focus-dark", "hover:bg-surface-medium/50", "rounded-full", u({
29
- variant: r
30
- }))
31
- };
32
- }, L = ({ label: e, className: n, variant: r = "information", description: i, onClose: t }) => {
33
- const [f, a] = g(!0), m = (c) => {
34
- t && (t(c), c.defaultPrevented || a(!1));
35
- };
36
- if (!f)
37
- return null;
38
- const l = C({
39
- className: n,
40
- variant: r
41
- });
42
- return /* @__PURE__ */ d("div", {
43
- role: "text",
44
- className: l.main,
45
- children: [
46
- i && /* @__PURE__ */ o("span", {
47
- className: "sr-only",
48
- children: i
49
- }),
50
- /* @__PURE__ */ o("span", {
51
- children: e
52
- }),
53
- t && /* @__PURE__ */ o("button", {
54
- type: "button",
55
- onClick: m,
56
- className: l.button,
57
- "aria-label": "Close",
58
- children: /* @__PURE__ */ o(b, {
59
- size: "size-3"
60
- })
61
- })
62
- ]
63
- });
64
- };
65
- export {
66
- L as Pill
67
- };