@versini/sassysaint 8.47.0 → 8.47.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.
Files changed (23) hide show
  1. package/dist/chunks/{AboutChangelog.BEFkfDbw.js → AboutChangelog.DF-VOodQ.js} +2 -2
  2. package/dist/chunks/{AboutEntry.COf0szTU.js → AboutEntry.DalvRJPu.js} +5 -5
  3. package/dist/chunks/{App.D5cZDwje.js → App.DEd7989C.js} +2241 -2318
  4. package/dist/chunks/{Chart.B1R22nbJ.js → Chart.CwLSpgTZ.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.B9tlf_JH.js → ChatBubbleAssistant.BwKFUhwE.js} +4 -4
  6. package/dist/chunks/{ChatHistoryTable.CJfAtX8B.js → ChatHistoryTable.4Y-wEval.js} +2 -2
  7. package/dist/chunks/{HistoryEntry.BbDPEPVY.js → HistoryEntry.02EkbV2r.js} +14 -14
  8. package/dist/chunks/{LNWAZHJI.C8sP3-rc.js → LNWAZHJI.BgaLMWwH.js} +1 -1
  9. package/dist/chunks/{ProfileEntry.BUTgNPlp.js → ProfileEntry.I9Ny-iUl.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.DGB3xOzh.js → SettingsEntry.BUz1K73x.js} +117 -120
  11. package/dist/chunks/{UsageEntry.Bu5CcqG2.js → UsageEntry.Co_C4_Ly.js} +3 -3
  12. package/dist/chunks/{index.DHJP8zY7.js → index.3SzBYAWU.js} +1 -1
  13. package/dist/chunks/{index.BqV1_7Z2.js → index.Br3926F8.js} +3 -3
  14. package/dist/chunks/{index.Cfb0MIIn.js → index.CGGECapX.js} +1 -1
  15. package/dist/chunks/{index.BIMh7ysv.js → index.Cq0SkuUt.js} +1 -1
  16. package/dist/chunks/{index.yZ_0qNLI.js → index.DMM94EvH.js} +771 -824
  17. package/dist/chunks/{index.D9C8rL2L.js → index.Dd6KinX5.js} +1 -1
  18. package/dist/chunks/{index.DzixovoY.js → index.fBJffIIV.js} +2 -2
  19. package/dist/chunks/{useMarkdown.BNxkjyeo.js → useMarkdown.WuFAc7Zw.js} +6 -6
  20. package/dist/components/SassySaint/SassySaint.js +1 -1
  21. package/dist/index.js +4 -4
  22. package/dist/style.css +1 -1
  23. package/package.json +3 -3
@@ -1,6 +1,6 @@
1
1
  import { jsxs as m, jsx as a, Fragment as pe } from "react/jsx-runtime";
2
- import { o as ge, h as ie, i as ye, x as be, useEntitlements as xe, n as ke, useUserPreferences as we, getCacheInfo as Ee, isServiceWorkerEnabled as Ne, SETTINGS_TITLE as Te, S as V, CARDS as R, de as ve, C as se, PROMPTS_DESCRIPTION as Se, L as Ce, j as de, fe as Ie, getCurrentGeoLocation as _e, mutateCall as ue, handleServiceWorkerToggle as Le, SERVICE_TYPES as me } from "./index.yZ_0qNLI.js";
3
- import { se as Me } from "./App.D5cZDwje.js";
2
+ import { o as ge, h as ie, i as ye, x as be, n as xe, useUserPreferences as ke, getCacheInfo as we, isServiceWorkerEnabled as Ne, SETTINGS_TITLE as Ee, S as V, CARDS as R, de as Te, C as se, PROMPTS_DESCRIPTION as ve, L as Se, j as de, pe as Ce, getCurrentGeoLocation as Ie, mutateCall as ue, handleServiceWorkerToggle as _e, SERVICE_TYPES as me } from "./index.DMM94EvH.js";
3
+ import { useCapability as Le, se as Me } from "./App.DEd7989C.js";
4
4
  import Oe, { useState as f, useEffect as ne, useRef as W, useLayoutEffect as Y, useCallback as Pe } from "react";
5
5
  import c from "clsx";
6
6
  function Ae({
@@ -9,7 +9,7 @@ function Ae({
9
9
  finalValue: o,
10
10
  onChange: l = () => {
11
11
  },
12
- initialControlledDelay: t = 0
12
+ initialControlledDelay: r = 0
13
13
  }) {
14
14
  const [n, d] = f(!1), [h, x] = f(
15
15
  s !== void 0 ? s : o
@@ -17,10 +17,10 @@ function Ae({
17
17
  x(u), l?.(u);
18
18
  };
19
19
  return ne(() => {
20
- (async () => e !== void 0 && !n && t > 0 && (await new Promise(
21
- (u) => setTimeout(u, t)
20
+ (async () => e !== void 0 && !n && r > 0 && (await new Promise(
21
+ (u) => setTimeout(u, r)
22
22
  ), d(!0)))();
23
- }, [e, t, n]), e !== void 0 ? !n && t > 0 ? ["", l, !0] : [e, l, !0] : [h, k, !1];
23
+ }, [e, r, n]), e !== void 0 ? !n && r > 0 ? ["", l, !0] : [e, l, !0] : [h, k, !1];
24
24
  }
25
25
  const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helper-text", Be = "av-text-area__control--right", De = "av-text-area__control--left", Ge = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", He = ({ mode: e }) => c({
26
26
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
@@ -47,7 +47,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
47
47
  raw: s,
48
48
  error: o,
49
49
  mode: l,
50
- leftElement: t,
50
+ leftElement: r,
51
51
  rightElement: n
52
52
  }) => {
53
53
  if (s)
@@ -56,14 +56,14 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
56
56
  return c(
57
57
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
58
58
  {
59
- "translate-x-[12px]": n === !0 && !t || !n && !t
59
+ "translate-x-[12px]": n === !0 && !r || !n && !r
60
60
  }
61
61
  );
62
62
  if (!o)
63
63
  return c(
64
64
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
65
65
  {
66
- "translate-x-[12px]": n === !0 && !t || !n && !t,
66
+ "translate-x-[12px]": n === !0 && !r || !n && !r,
67
67
  "text-copy-medium": l === "dark",
68
68
  "text-copy-dark": l === "light",
69
69
  "text-copy-dark dark:text-copy-medium": l === "system",
@@ -74,7 +74,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
74
74
  return c(
75
75
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
76
76
  {
77
- "translate-x-[12px]": n === !0 && !t || !n && !t,
77
+ "translate-x-[12px]": n === !0 && !r || !n && !r,
78
78
  "text-copy-medium": l === "dark",
79
79
  "text-copy-error-dark": l === "light",
80
80
  "text-copy-error-dark dark:text-copy-error-light": l === "system",
@@ -113,7 +113,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
113
113
  textAreaClassName: s,
114
114
  raw: o,
115
115
  focusMode: l,
116
- disabled: t,
116
+ disabled: r,
117
117
  noBorder: n,
118
118
  error: d,
119
119
  mode: h,
@@ -135,10 +135,10 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
135
135
  error: d
136
136
  }),
137
137
  {
138
- "disabled:cursor-not-allowed disabled:opacity-50": t
138
+ "disabled:cursor-not-allowed disabled:opacity-50": r
139
139
  }
140
140
  ), I = o ? void 0 : "sr-only", D = Ve({
141
- disabled: t,
141
+ disabled: r,
142
142
  raw: o,
143
143
  error: d,
144
144
  mode: h,
@@ -148,7 +148,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
148
148
  error: d,
149
149
  raw: o,
150
150
  mode: h,
151
- disabled: t
151
+ disabled: r
152
152
  }), _ = o ? void 0 : c(Be, "absolute"), w = o ? void 0 : c(De, "absolute");
153
153
  return {
154
154
  wrapper: u,
@@ -165,13 +165,13 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
165
165
  currentLabelOffset: o = 0,
166
166
  currentHelperTextOffset: l = 0
167
167
  }) => {
168
- let t, n;
168
+ let r, n;
169
169
  if (e > 0 && e !== s) {
170
170
  const d = e - s, h = Math.abs(d / 24);
171
- t = o + -1 * Math.sign(d) * (12 * h), n = l + Math.sign(d) * (12 * h);
171
+ r = o + -1 * Math.sign(d) * (12 * h), n = l + Math.sign(d) * (12 * h);
172
172
  }
173
173
  return {
174
- labelOffset: t,
174
+ labelOffset: r,
175
175
  helperTextOffset: n,
176
176
  scrollHeight: e
177
177
  };
@@ -181,7 +181,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
181
181
  name: s,
182
182
  label: o,
183
183
  error: l = !1,
184
- raw: t = !1,
184
+ raw: r = !1,
185
185
  className: n,
186
186
  textAreaClassName: d,
187
187
  mode: h = "system",
@@ -200,20 +200,20 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
200
200
  onBlur: F,
201
201
  ...G
202
202
  }, X) => {
203
- const p = W(null), q = ge([X, p]), [J, M] = ie(), [K, C] = ie(), H = W(80), Q = W(-25), U = W(null), Z = W(30), ee = W(null), O = ye({ id: e, prefix: `${fe}-` }), [te, re] = f(0), [$, ae] = f(0), [r, i] = f(
203
+ const p = W(null), q = ge([X, p]), [J, M] = ie(), [K, C] = ie(), H = W(80), Q = W(-25), U = W(null), Z = W(30), ee = W(null), O = ye({ id: e, prefix: `${fe}-` }), [re, te] = f(0), [$, ae] = f(0), [t, i] = f(
204
204
  !!(!_ && y)
205
- ), P = `${s} error, ${y}`, E = ze({
205
+ ), P = `${s} error, ${y}`, N = ze({
206
206
  className: n,
207
207
  textAreaClassName: d,
208
208
  error: l,
209
- raw: t,
209
+ raw: r,
210
210
  focusMode: x,
211
211
  disabled: v,
212
212
  noBorder: I,
213
213
  mode: h,
214
214
  rightElement: !!w,
215
215
  leftElement: !!S
216
- }), [g, N] = Ae({
216
+ }), [g, E] = Ae({
217
217
  value: k,
218
218
  initialControlledDelay: 20,
219
219
  defaultValue: u,
@@ -225,27 +225,27 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
225
225
  });
226
226
  }
227
227
  }), T = (b) => {
228
- N(b.target.value);
228
+ E(b.target.value);
229
229
  }, A = (b) => {
230
230
  _ && y && i(!0), L && L(b);
231
231
  }, j = (b) => {
232
232
  _ && y && !g && i(!1), F && F(b);
233
233
  };
234
234
  return Y(() => {
235
- M && M.width && re(M.width + 18 + 10);
235
+ M && M.width && te(M.width + 18 + 10);
236
236
  }, [M]), Y(() => {
237
237
  C && C.width && ae(C.width + 18 + 10);
238
238
  }, [C]), Y(() => {
239
- t || p && p.current && g !== void 0 && (p.current.style.height = "inherit", p.current.style.height = p.current.scrollHeight + "px");
240
- }, [g, t]), Y(() => {
241
- t || setTimeout(() => {
239
+ r || p && p.current && g !== void 0 && (p.current.style.height = "inherit", p.current.style.height = p.current.scrollHeight + "px");
240
+ }, [g, r]), Y(() => {
241
+ r || setTimeout(() => {
242
242
  U?.current?.style.setProperty(
243
243
  "--av-text-area-wrapper-transition",
244
244
  g ? "none" : "all 0.2s ease-out"
245
245
  );
246
246
  }, 0);
247
- }, [g, t]), Y(() => {
248
- if (!t && p && p.current && g !== void 0) {
247
+ }, [g, r]), Y(() => {
248
+ if (!r && p && p.current && g !== void 0) {
249
249
  const { labelOffset: b, helperTextOffset: oe, scrollHeight: he } = Fe({
250
250
  scrollHeight: p.current.scrollHeight,
251
251
  currentHeight: H.current,
@@ -260,16 +260,16 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
260
260
  `${oe}px`
261
261
  )), H.current = he || H.current;
262
262
  }
263
- }, [g, t]), C.width > 0 && U?.current?.style.setProperty(
263
+ }, [g, r]), C.width > 0 && U?.current?.style.setProperty(
264
264
  "--tw-translate-x",
265
265
  `${12 + C.width + 5}px`
266
- ), /* @__PURE__ */ m("div", { className: E.wrapper, children: [
266
+ ), /* @__PURE__ */ m("div", { className: N.wrapper, children: [
267
267
  /* @__PURE__ */ a(
268
268
  "label",
269
269
  {
270
270
  htmlFor: O,
271
271
  id: D,
272
- className: E.accessibleLabel,
272
+ className: N.accessibleLabel,
273
273
  children: o
274
274
  }
275
275
  ),
@@ -277,7 +277,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
277
277
  "div",
278
278
  {
279
279
  ref: K,
280
- className: E.leftElement,
280
+ className: N.leftElement,
281
281
  children: S
282
282
  }
283
283
  ),
@@ -288,16 +288,16 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
288
288
  id: O,
289
289
  name: s,
290
290
  disabled: v,
291
- placeholder: t ? void 0 : " ",
292
- className: E.textArea,
291
+ placeholder: r ? void 0 : " ",
292
+ className: N.textArea,
293
293
  rows: 1,
294
294
  ...y && { "aria-describedby": `${O}-helper` },
295
295
  ...l && { "aria-invalid": "true" },
296
- ...w && !S && !t && { style: { paddingRight: te } },
297
- ...S && !w && !t && { style: { paddingLeft: $ } },
298
- ...w && S && !t && {
296
+ ...w && !S && !r && { style: { paddingRight: re } },
297
+ ...S && !w && !r && { style: { paddingLeft: $ } },
298
+ ...w && S && !r && {
299
299
  style: {
300
- paddingRight: te,
300
+ paddingRight: re,
301
301
  paddingLeft: $
302
302
  }
303
303
  },
@@ -308,22 +308,22 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
308
308
  ...G
309
309
  }
310
310
  ),
311
- !t && /* @__PURE__ */ a(
311
+ !r && /* @__PURE__ */ a(
312
312
  "label",
313
313
  {
314
314
  ref: U,
315
315
  "aria-hidden": !0,
316
316
  htmlFor: O,
317
- className: `${E.visibleLabel}`,
317
+ className: `${N.visibleLabel}`,
318
318
  children: o
319
319
  }
320
320
  ),
321
- r && /* @__PURE__ */ a(
321
+ t && /* @__PURE__ */ a(
322
322
  "div",
323
323
  {
324
324
  ref: ee,
325
325
  id: `${O}-helper`,
326
- className: E.helperText,
326
+ className: N.helperText,
327
327
  children: y
328
328
  }
329
329
  ),
@@ -331,7 +331,7 @@ const fe = "av-text-area", Re = "av-text-area-wrapper", le = "av-text-area-helpe
331
331
  "div",
332
332
  {
333
333
  ref: J,
334
- className: E.rightElement,
334
+ className: N.rightElement,
335
335
  children: w
336
336
  }
337
337
  ),
@@ -421,17 +421,17 @@ const je = "av-toggle", Ye = ({ narrow: e }) => c(
421
421
  je,
422
422
  "relative flex cursor-pointer items-center",
423
423
  e
424
- ), et = ({
424
+ ), er = ({
425
425
  mode: e,
426
426
  focusMode: s,
427
427
  labelHidden: o,
428
428
  className: l,
429
- noBorder: t,
429
+ noBorder: r,
430
430
  narrow: n
431
431
  }) => ({
432
432
  toggle: c(
433
433
  Ye({ narrow: n }),
434
- Ke({ mode: e, noBorder: t }),
434
+ Ke({ mode: e, noBorder: r }),
435
435
  Xe({ focusMode: s }),
436
436
  Je({ narrow: n }),
437
437
  qe({ narrow: n })
@@ -444,14 +444,14 @@ const je = "av-toggle", Ye = ({ narrow: e }) => c(
444
444
  onChange: s,
445
445
  label: o,
446
446
  labelHidden: l = !1,
447
- name: t,
447
+ name: r,
448
448
  mode: n = "system",
449
449
  focusMode: d = "system",
450
450
  className: h,
451
451
  noBorder: x = !1,
452
452
  narrow: k = !1
453
453
  }) => {
454
- const u = et({
454
+ const u = er({
455
455
  mode: n,
456
456
  focusMode: d,
457
457
  labelHidden: l,
@@ -465,7 +465,7 @@ const je = "av-toggle", Ye = ({ narrow: e }) => c(
465
465
  /* @__PURE__ */ a(
466
466
  "input",
467
467
  {
468
- name: t,
468
+ name: r,
469
469
  checked: e,
470
470
  type: "checkbox",
471
471
  className: u.input,
@@ -489,34 +489,31 @@ try {
489
489
  });
490
490
  } catch {
491
491
  }
492
- const tt = (e) => {
493
- const { check: s } = xe();
494
- return s(e);
495
- }, nt = ({
492
+ const lr = ({
496
493
  open: e,
497
494
  onOpenChange: s
498
495
  }) => {
499
- const { getAccessToken: o, user: l } = ke(), {
500
- data: t,
496
+ const { getAccessToken: o, user: l } = xe(), {
497
+ data: r,
501
498
  isSuccess: n,
502
499
  refetch: d
503
- } = we({
500
+ } = ke({
504
501
  user: l?.username,
505
502
  getAccessToken: o
506
503
  }), [h, x] = f({
507
504
  loadingLocation: !1
508
505
  }), [k, u] = f({
509
506
  prompts: []
510
- }), [v, I] = f(""), [D, y] = f(""), [_, w] = f(!1), [S, z] = f(!1), [L, F] = f(!1), [G, X] = f(!1), [p, q] = f(null), [J, M] = f(!1), [K, C] = f(!1), H = tt(Ie.TOOL.MEMORIES), Q = (r) => {
511
- C(r);
512
- }, U = (r) => {
513
- w(r);
514
- }, Z = (r) => {
515
- H && z(r);
516
- }, ee = (r) => {
517
- X(r);
518
- }, O = async (r) => {
519
- r.preventDefault();
507
+ }), [v, I] = f(""), [D, y] = f(""), [_, w] = f(!1), [S, z] = f(!1), [L, F] = f(!1), [G, X] = f(!1), [p, q] = f(null), [J, M] = f(!1), [K, C] = f(!1), H = Le(Ce.TOOL.MEMORIES), Q = (t) => {
508
+ C(t);
509
+ }, U = (t) => {
510
+ w(t);
511
+ }, Z = (t) => {
512
+ H && z(t);
513
+ }, ee = (t) => {
514
+ X(t);
515
+ }, O = async (t) => {
516
+ t.preventDefault();
520
517
  try {
521
518
  await ue({
522
519
  accessToken: await o(),
@@ -525,32 +522,32 @@ const tt = (e) => {
525
522
  user: l?.username,
526
523
  instructions: v,
527
524
  location: D,
528
- provider: t?.provider,
525
+ provider: r?.provider,
529
526
  tags: k.prompts,
530
527
  sendOnEnter: _,
531
528
  useMemory: S,
532
529
  showDetails: K
533
530
  }
534
- }), G !== L && (await Le(G), F(G)), d(), x({
531
+ }), G !== L && (await _e(G), F(G)), d(), x({
535
532
  loadingLocation: !1
536
533
  });
537
534
  } catch {
538
535
  }
539
- }, te = async () => {
536
+ }, re = async () => {
540
537
  x({
541
538
  loadingLocation: !0
542
539
  }), y("...");
543
540
  try {
544
- const r = Date.now(), i = await _e(), P = await ue({
541
+ const t = Date.now(), i = await Ie(), P = await ue({
545
542
  accessToken: await o(),
546
543
  type: me.GET_LOCATION,
547
544
  params: {
548
545
  latitude: i.latitude,
549
546
  longitude: i.longitude
550
547
  }
551
- }), g = Date.now() - r;
552
- if (g < 2e3 && await new Promise((N) => setTimeout(N, 2e3 - g)), P.status === 200) {
553
- const { city: N, state: T, country: A, displayName: j } = P.data, b = N && T && A ? `${N}, ${T}, ${A}` : j;
548
+ }), g = Date.now() - t;
549
+ if (g < 2e3 && await new Promise((E) => setTimeout(E, 2e3 - g)), P.status === 200) {
550
+ const { city: E, state: T, country: A, displayName: j } = P.data, b = E && T && A ? `${E}, ${T}, ${A}` : j;
554
551
  x({
555
552
  loadingLocation: !1
556
553
  }), y(b);
@@ -560,59 +557,59 @@ const tt = (e) => {
560
557
  });
561
558
  } catch {
562
559
  }
563
- }, re = () => {
560
+ }, te = () => {
564
561
  d(), s(!1);
565
562
  }, $ = ({
566
- enabled: r = !1,
563
+ enabled: t = !1,
567
564
  privateChat: i = !1,
568
565
  clipboardAccess: P = !1,
569
- ...E
566
+ ...N
570
567
  }) => {
571
568
  u((g) => {
572
- const N = g.prompts, T = {
573
- ...E,
574
- enabled: r,
569
+ const E = g.prompts, T = {
570
+ ...N,
571
+ enabled: t,
575
572
  privateChat: i,
576
573
  clipboardAccess: P
577
574
  };
578
575
  P ? T.content = T.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : T.content = T.content.replace(/{{clipboard}}/g, "");
579
- const A = N.findIndex((j) => j.slot === E.slot);
576
+ const A = E.findIndex((j) => j.slot === N.slot);
580
577
  return A === -1 ? {
581
578
  ...g,
582
- prompts: [...N, { ...T }]
583
- } : (N[A] = T, {
579
+ prompts: [...E, { ...T }]
580
+ } : (E[A] = T, {
584
581
  ...g,
585
- prompts: [...N]
582
+ prompts: [...E]
586
583
  });
587
584
  });
588
585
  }, ae = Pe(async () => {
589
586
  try {
590
587
  M(!0);
591
- const r = await Ee();
592
- q(r);
588
+ const t = await we();
589
+ q(t);
593
590
  } catch {
594
591
  } finally {
595
592
  M(!1);
596
593
  }
597
594
  }, []);
598
595
  return ne(() => {
599
- if (!t)
596
+ if (!r)
600
597
  return;
601
- t.instructions && I(t.instructions), t.location && y(t.location), t.tags && u({ prompts: t.tags }), t.sendOnEnter !== void 0 && w(t.sendOnEnter), t.useMemory !== void 0 && z(t.useMemory), t.showDetails !== void 0 && C(t.showDetails);
602
- const r = Ne();
603
- F(r), X(r);
604
- }, [t]), ne(() => {
598
+ r.instructions && I(r.instructions), r.location && y(r.location), r.tags && u({ prompts: r.tags }), r.sendOnEnter !== void 0 && w(r.sendOnEnter), r.useMemory !== void 0 && z(r.useMemory), r.showDetails !== void 0 && C(r.showDetails);
599
+ const t = Ne();
600
+ F(t), X(t);
601
+ }, [r]), ne(() => {
605
602
  L ? ae() : q(null);
606
603
  }, [L, ae]), n ? /* @__PURE__ */ m(
607
604
  Me,
608
605
  {
609
606
  open: e,
610
- onOpenChange: re,
611
- title: Te,
607
+ onOpenChange: te,
608
+ title: Ee,
612
609
  animation: !0,
613
610
  animationType: "fade",
614
611
  footer: /* @__PURE__ */ m(
615
- Ce,
612
+ Se,
616
613
  {
617
614
  columnGap: 2,
618
615
  alignHorizontal: "flex-end",
@@ -625,7 +622,7 @@ const tt = (e) => {
625
622
  variant: "secondary",
626
623
  focusMode: "light",
627
624
  noBorder: !0,
628
- onClick: re,
625
+ onClick: te,
629
626
  children: "Cancel"
630
627
  }
631
628
  ) }),
@@ -634,8 +631,8 @@ const tt = (e) => {
634
631
  {
635
632
  mode: "dark",
636
633
  focusMode: "light",
637
- onClick: async (r) => {
638
- s(!1), await O(r);
634
+ onClick: async (t) => {
635
+ s(!1), await O(t);
639
636
  },
640
637
  children: "Save"
641
638
  }
@@ -701,7 +698,7 @@ const tt = (e) => {
701
698
  children: [
702
699
  /* @__PURE__ */ m("p", { className: "text-sm", children: [
703
700
  "What would you like ",
704
- /* @__PURE__ */ a("em", { children: ve }),
701
+ /* @__PURE__ */ a("em", { children: Te }),
705
702
  " to know about you to provide better responses?"
706
703
  ] }),
707
704
  /* @__PURE__ */ a(
@@ -714,8 +711,8 @@ const tt = (e) => {
714
711
  name: "customInstructions",
715
712
  label: "Custom Instructions",
716
713
  value: v,
717
- onChange: (r) => {
718
- I(r.target.value);
714
+ onChange: (t) => {
715
+ I(t.target.value);
719
716
  },
720
717
  helperText: "Press ENTER to add a new line."
721
718
  }
@@ -738,8 +735,8 @@ const tt = (e) => {
738
735
  name: "location",
739
736
  label: "Location",
740
737
  value: D,
741
- onChange: (r) => {
742
- y(r.target.value);
738
+ onChange: (t) => {
739
+ y(t.target.value);
743
740
  },
744
741
  helperText: "Enter your location or press auto-detect."
745
742
  }
@@ -752,7 +749,7 @@ const tt = (e) => {
752
749
  noBorder: !0,
753
750
  variant: "secondary",
754
751
  disabled: h.loadingLocation,
755
- onClick: te,
752
+ onClick: re,
756
753
  children: h.loadingLocation ? "Detecting..." : "Auto-detect"
757
754
  }
758
755
  )
@@ -766,16 +763,16 @@ const tt = (e) => {
766
763
  className: "prose-dark dark:prose-lighter mt-4",
767
764
  noBorder: !0,
768
765
  children: [
769
- /* @__PURE__ */ a("p", { className: "text-sm", children: Se }),
770
- k.prompts && k.prompts.slice(0, 3).map((r) => /* @__PURE__ */ m(
766
+ /* @__PURE__ */ a("p", { className: "text-sm", children: ve }),
767
+ k.prompts && k.prompts.slice(0, 3).map((t) => /* @__PURE__ */ m(
771
768
  V,
772
769
  {
773
770
  mode: "dark",
774
771
  noBorder: !0,
775
- header: r.label.replace("...", ""),
772
+ header: t.label.replace("...", ""),
776
773
  className: "prose-light mb-2",
777
774
  children: [
778
- /* @__PURE__ */ a("p", { className: "text-sm", children: r.description }),
775
+ /* @__PURE__ */ a("p", { className: "text-sm", children: t.description }),
779
776
  /* @__PURE__ */ a(
780
777
  B,
781
778
  {
@@ -785,14 +782,14 @@ const tt = (e) => {
785
782
  className: "mt-2",
786
783
  noBorder: !0,
787
784
  label: "Enabled",
788
- name: r.slot.toString(),
785
+ name: t.slot.toString(),
789
786
  onChange: (i) => {
790
787
  $({
791
- ...r,
788
+ ...t,
792
789
  enabled: i
793
790
  });
794
791
  },
795
- checked: r.enabled
792
+ checked: t.enabled
796
793
  }
797
794
  ),
798
795
  /* @__PURE__ */ a(
@@ -804,14 +801,14 @@ const tt = (e) => {
804
801
  className: "mt-2",
805
802
  noBorder: !0,
806
803
  label: "Private Chat",
807
- name: `private-${r.slot.toString()}`,
804
+ name: `private-${t.slot.toString()}`,
808
805
  onChange: (i) => {
809
806
  $({
810
- ...r,
807
+ ...t,
811
808
  privateChat: i
812
809
  });
813
810
  },
814
- checked: r.privateChat
811
+ checked: t.privateChat
815
812
  }
816
813
  ),
817
814
  /* @__PURE__ */ a(
@@ -823,19 +820,19 @@ const tt = (e) => {
823
820
  className: "mt-2",
824
821
  noBorder: !0,
825
822
  label: "Use Clipboard",
826
- name: `clipboard-${r.slot.toString()}`,
823
+ name: `clipboard-${t.slot.toString()}`,
827
824
  onChange: (i) => {
828
825
  $({
829
- ...r,
826
+ ...t,
830
827
  clipboardAccess: i
831
828
  });
832
829
  },
833
- checked: r.clipboardAccess
830
+ checked: t.clipboardAccess
834
831
  }
835
832
  )
836
833
  ]
837
834
  },
838
- `prompt-slot-${r.slot}`
835
+ `prompt-slot-${t.slot}`
839
836
  ))
840
837
  ]
841
838
  }
@@ -870,7 +867,7 @@ const tt = (e) => {
870
867
  "Total Items: ",
871
868
  /* @__PURE__ */ a("strong", { children: p.totalItems })
872
869
  ] }),
873
- p.caches.map((r) => /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: r.urls.map((i) => /* @__PURE__ */ a(
870
+ p.caches.map((t) => /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: t.urls.map((i) => /* @__PURE__ */ a(
874
871
  "li",
875
872
  {
876
873
  className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
@@ -878,7 +875,7 @@ const tt = (e) => {
878
875
  children: new URL(i).pathname
879
876
  },
880
877
  i
881
- )) }) }, r.name)),
878
+ )) }) }, t.name)),
882
879
  p.totalItems === 0 && !J && /* @__PURE__ */ a("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
883
880
  ] }) : /* @__PURE__ */ a("p", { className: "text-xs opacity-70 m-0", children: J ? "Loading cache info..." : "No cache info available." })
884
881
  ] })
@@ -890,5 +887,5 @@ const tt = (e) => {
890
887
  ) : null;
891
888
  };
892
889
  export {
893
- nt as SettingsPanel
890
+ lr as SettingsPanel
894
891
  };
@@ -1,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.yZ_0qNLI.js";
3
- import { se as z } from "./App.D5cZDwje.js";
2
+ import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.DMM94EvH.js";
3
+ import { se as z } from "./App.DEd7989C.js";
4
4
  import { useState as O, Suspense as P, lazy as B } from "react";
5
5
  const t = [0, 3, 6, 9], j = B(() => import(
6
6
  /* webpackChunkName: "LazyChart" */
7
- "./Chart.B1R22nbJ.js"
7
+ "./Chart.CwLSpgTZ.js"
8
8
  )), b = ({
9
9
  open: S,
10
10
  onOpenChange: I
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { te as B } from "./index.yZ_0qNLI.js";
2
+ import { te as B } from "./index.DMM94EvH.js";
3
3
  import { useState as I, useEffect as k } from "react";
4
4
  import s from "clsx";
5
5
  const h = "av-bubble", w = ({
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.D5cZDwje.js";
2
- import { visit as In } from "./useMarkdown.BNxkjyeo.js";
3
- import { toText as Cn } from "./index.BIMh7ysv.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.DEd7989C.js";
2
+ import { visit as In } from "./useMarkdown.WuFAc7Zw.js";
3
+ import { toText as Cn } from "./index.Cq0SkuUt.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",