@versini/sassysaint 8.62.2 → 8.63.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 (27) hide show
  1. package/dist/chunks/{AboutChangelog.CBM8DU-l.js → AboutChangelog.CcpXjtz2.js} +2 -2
  2. package/dist/chunks/{AboutEntry.C9RkO1UB.js → AboutEntry.D-K-8suU.js} +9 -9
  3. package/dist/chunks/{App.D3GdUdDt.js → App.BUHkBnAs.js} +1551 -1540
  4. package/dist/chunks/{Chart.Yybbexr3.js → Chart.f_78Yn-S.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.Bkoh8-GW.js → ChatBubbleAssistant.BMzfA5pX.js} +13 -13
  6. package/dist/chunks/{ChatBubbleUser.DaJoiXXH.js → ChatBubbleUser.BkwIMaLA.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.C6Ksf3TE.js → ChatHistoryTable.z1gXvLbS.js} +21 -21
  8. package/dist/chunks/{HistoryEntry.D8TfS6NX.js → HistoryEntry.6LhEmpQ3.js} +30 -30
  9. package/dist/chunks/ProfileEntry.BVd9oy8m.js +158 -0
  10. package/dist/chunks/{SettingsEntry.CYRs-kZR.js → SettingsEntry.BITLpN9E.js} +104 -105
  11. package/dist/chunks/{Table.BO7U8k6z.js → Table.BuN5VZQJ.js} +8 -8
  12. package/dist/chunks/{UsageEntry.DTJ6Ewrp.js → UsageEntry.B5xt2ba5.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.DUD0vi57.js → UserMemoriesPanel.DU82nD6K.js} +3 -3
  14. package/dist/chunks/{index.BwP0kG4H.js → index.790ujKXR.js} +15 -15
  15. package/dist/chunks/{index.H6hFK3Q7.js → index.BCvnlzn1.js} +1022 -960
  16. package/dist/chunks/{index.CBvWjpu9.js → index.Bmi4qytW.js} +2 -2
  17. package/dist/chunks/{index.DpFQswsr.js → index.Cq79kge7.js} +1 -1
  18. package/dist/chunks/{index.PmUBv-Nk.js → index.DEwRELHl.js} +3 -3
  19. package/dist/chunks/{index.BM7cljgA.js → index.TsLNeuu8.js} +1 -1
  20. package/dist/chunks/{index.DqVd7od-.js → index.W_JEPkEx.js} +1 -1
  21. package/dist/chunks/{index.tBXfskeI.js → index.hfGQXbdH.js} +1 -1
  22. package/dist/chunks/{useMarkdown.DT9Y5TNa.js → useMarkdown.D7Tx0mAO.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 +3 -3
  27. package/dist/chunks/ProfileEntry.CdKbNy5F.js +0 -60
@@ -1,9 +1,9 @@
1
1
  import { jsxs as u, jsx as r, Fragment as ue } from "react/jsx-runtime";
2
- import { o as ke, h as me, i as Ee, x as Ne, n as Te, useUserPreferences as we, Pe as he, getCacheInfo as ve, isServiceWorkerEnabled as Se, SETTINGS_TITLE as Ce, S as V, CARDS as C, _e as Ie, C as le, PROMPTS_DESCRIPTION as _e, L as Le, j as pe, getCurrentGeoLocation as Re, mutateCall as fe, handleServiceWorkerToggle as Ae, SERVICE_TYPES as ge } from "./index.H6hFK3Q7.js";
3
- import { useCapability as ye, oe as De, O as I } from "./App.D3GdUdDt.js";
4
- import Oe, { useState as d, useEffect as ie, useRef as $, useLayoutEffect as J, useCallback as Me } from "react";
2
+ import { o as Ee, h as me, i as Ne, x as Te, n as we, useUserPreferences as ve, Se as he, getCacheInfo as Se, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Ie, S as H, CARDS as C, _e, C as le, PROMPTS_DESCRIPTION as Le, L as Re, j as pe, getCurrentGeoLocation as Ae, mutateCall as fe, handleServiceWorkerToggle as De, SERVICE_TYPES as ge } from "./index.BCvnlzn1.js";
3
+ import { useCapability as ye, oe as Oe, O as I } from "./App.BUHkBnAs.js";
4
+ import Me, { useState as d, useEffect as ie, useRef as V, useLayoutEffect as J, useCallback as Be } from "react";
5
5
  import p from "clsx";
6
- function Be({
6
+ function Pe({
7
7
  value: a,
8
8
  defaultValue: n,
9
9
  finalValue: o,
@@ -11,30 +11,30 @@ function Be({
11
11
  },
12
12
  initialControlledDelay: t = 0
13
13
  }) {
14
- const [c, m] = d(!1), [f, k] = d(
14
+ const [l, m] = d(!1), [f, k] = d(
15
15
  n !== void 0 ? n : o
16
16
  ), N = (x) => {
17
17
  k(x), s?.(x);
18
18
  };
19
19
  return ie(() => {
20
- (async () => a !== void 0 && !c && t > 0 && (await new Promise(
20
+ (async () => a !== void 0 && !l && t > 0 && (await new Promise(
21
21
  (x) => setTimeout(x, t)
22
22
  ), m(!0)))();
23
- }, [a, t, c]), a !== void 0 ? !c && t > 0 ? ["", s, !0] : [a, s, !0] : [f, N, !1];
23
+ }, [a, t, l]), a !== void 0 ? !l && t > 0 ? ["", s, !0] : [a, s, !0] : [f, N, !1];
24
24
  }
25
- const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helper-text", Ge = "av-text-area__control--right", Ue = "av-text-area__control--left", He = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Ve = ({ mode: a }) => p({
25
+ const xe = "av-text-area", $e = "av-text-area-wrapper", ce = "av-text-area-helper-text", Ge = "av-text-area__control--right", Ue = "av-text-area__control--left", He = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Ve = ({ mode: a }) => p({
26
26
  "bg-surface-darker text-copy-lighter caret-copy-light": a === "dark",
27
27
  "bg-surface-lighter text-copy-dark caret-copy-dark": a === "light",
28
28
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": a === "system",
29
29
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": a === "alt-system"
30
- }), $e = ({
30
+ }), We = ({
31
31
  focusMode: a
32
32
  }) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
33
33
  "focus:outline-focus-dark": a === "dark",
34
34
  "focus:outline-focus-light": a === "light",
35
35
  "focus:outline-focus-light dark:focus:outline-focus-dark": a === "alt-system",
36
36
  "focus:outline-focus-dark dark:focus:outline-focus-light": a === "system"
37
- }), We = ({
37
+ }), ze = ({
38
38
  noBorder: a,
39
39
  error: n
40
40
  }) => p("border-2", {
@@ -42,13 +42,13 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
42
42
  "focus:border-border-dark": !a && n,
43
43
  "border-border-error-dark": !a && n,
44
44
  "border-transparent": a
45
- }), ze = ({
45
+ }), Fe = ({
46
46
  disabled: a,
47
47
  raw: n,
48
48
  error: o,
49
49
  mode: s,
50
50
  leftElement: t,
51
- rightElement: c
51
+ rightElement: l
52
52
  }) => {
53
53
  if (n)
54
54
  return "";
@@ -56,14 +56,14 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
56
56
  return p(
57
57
  "transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
58
58
  {
59
- "translate-x-[10px]": c === !0 && !t || !c && !t
59
+ "translate-x-[10px]": l === !0 && !t || !l && !t
60
60
  }
61
61
  );
62
62
  if (!o)
63
63
  return p(
64
64
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
65
65
  {
66
- "translate-x-[10px]": c === !0 && !t || !c && !t,
66
+ "translate-x-[10px]": l === !0 && !t || !l && !t,
67
67
  "text-copy-medium": s === "dark",
68
68
  "text-copy-dark": s === "light",
69
69
  "text-copy-dark dark:text-copy-medium": s === "system",
@@ -74,14 +74,14 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
74
74
  return p(
75
75
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
76
76
  {
77
- "translate-x-[10px]": c === !0 && !t || !c && !t,
77
+ "translate-x-[10px]": l === !0 && !t || !l && !t,
78
78
  "text-copy-medium": s === "dark",
79
79
  "text-copy-error-dark": s === "light",
80
80
  "text-copy-error-dark dark:text-copy-error-light": s === "system",
81
81
  "text-copy-medium dark:text-copy-error-dark": s === "alt-system"
82
82
  }
83
83
  );
84
- }, Fe = ({
84
+ }, je = ({
85
85
  error: a,
86
86
  raw: n,
87
87
  mode: o,
@@ -108,13 +108,13 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
108
108
  "text-copy-error-dark dark:text-copy-error-light": o === "system",
109
109
  "dark:text-copy-error-dark text-copy-error-light": o === "alt-system"
110
110
  });
111
- }, je = ({
111
+ }, Xe = ({
112
112
  className: a,
113
113
  textAreaClassName: n,
114
114
  raw: o,
115
115
  focusMode: s,
116
116
  disabled: t,
117
- noBorder: c,
117
+ noBorder: l,
118
118
  error: m,
119
119
  mode: f,
120
120
  leftElement: k,
@@ -122,29 +122,29 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
122
122
  }) => {
123
123
  const x = o ? a : p(
124
124
  "relative flex w-full flex-col justify-center",
125
- Pe,
125
+ $e,
126
126
  a
127
127
  ), _ = o ? p(n) : p(
128
128
  xe,
129
129
  n,
130
130
  He(),
131
131
  Ve({ mode: f }),
132
- $e({ focusMode: s }),
133
- We({
134
- noBorder: c,
132
+ We({ focusMode: s }),
133
+ ze({
134
+ noBorder: l,
135
135
  error: m
136
136
  }),
137
137
  {
138
138
  "disabled:cursor-not-allowed disabled:opacity-50": t
139
139
  }
140
- ), P = o ? void 0 : "sr-only", G = ze({
140
+ ), B = o ? void 0 : "sr-only", P = Fe({
141
141
  disabled: t,
142
142
  raw: o,
143
143
  error: m,
144
144
  mode: f,
145
145
  rightElement: N,
146
146
  leftElement: k
147
- }), h = Fe({
147
+ }), h = je({
148
148
  error: m,
149
149
  raw: o,
150
150
  mode: f,
@@ -153,44 +153,44 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
153
153
  return {
154
154
  wrapper: x,
155
155
  textArea: _,
156
- accessibleLabel: P,
157
- visibleLabel: G,
156
+ accessibleLabel: B,
157
+ visibleLabel: P,
158
158
  helperText: h,
159
159
  rightElement: v,
160
160
  leftElement: b
161
161
  };
162
- }, Xe = ({
162
+ }, Ye = ({
163
163
  scrollHeight: a,
164
164
  currentHeight: n,
165
165
  currentLabelOffset: o = 0,
166
166
  currentHelperTextOffset: s = 0
167
167
  }) => {
168
- let t, c;
168
+ let t, l;
169
169
  if (a > 0 && a !== n) {
170
170
  const m = a - n, f = Math.abs(m / 24);
171
- t = o + -1 * Math.sign(m) * (12 * f), c = s + Math.sign(m) * (12 * f);
171
+ t = o + -1 * Math.sign(m) * (12 * f), l = s + Math.sign(m) * (12 * f);
172
172
  }
173
173
  return {
174
174
  labelOffset: t,
175
- helperTextOffset: c,
175
+ helperTextOffset: l,
176
176
  scrollHeight: a
177
177
  };
178
- }, de = Oe.forwardRef(
178
+ }, de = Me.forwardRef(
179
179
  ({
180
180
  id: a,
181
181
  name: n,
182
182
  label: o,
183
183
  error: s = !1,
184
184
  raw: t = !1,
185
- className: c,
185
+ className: l,
186
186
  textAreaClassName: m,
187
187
  mode: f = "system",
188
188
  focusMode: k = "system",
189
189
  value: N,
190
190
  defaultValue: x,
191
191
  disabled: _ = !1,
192
- noBorder: P = !1,
193
- labelId: G,
192
+ noBorder: B = !1,
193
+ labelId: P,
194
194
  helperText: h = "",
195
195
  helperTextOnFocus: v = !1,
196
196
  rightElement: b,
@@ -198,38 +198,38 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
198
198
  onChange: W,
199
199
  onFocus: L,
200
200
  onBlur: z,
201
- ...U
201
+ ...$
202
202
  }, K) => {
203
- const y = $(null), Q = ke([K, y]), [R, A] = me(), [Z, w] = me(), H = $(80), F = $(-25), D = $(null), j = $(30), ee = $(null), O = Ee({ id: a, prefix: `${xe}-` }), [te, ae] = d(0), [re, oe] = d(0), [se, X] = d(
203
+ const y = V(null), Q = Ee([K, y]), [R, A] = me(), [Z, w] = me(), G = V(80), F = V(-25), D = V(null), j = V(30), ee = V(null), O = Ne({ id: a, prefix: `${xe}-` }), [te, ae] = d(0), [re, oe] = d(0), [se, X] = d(
204
204
  !!(!v && h)
205
- ), Y = `${n} error, ${h}`, E = je({
206
- className: c,
205
+ ), Y = `${n} error, ${h}`, E = Xe({
206
+ className: l,
207
207
  textAreaClassName: m,
208
208
  error: s,
209
209
  raw: t,
210
210
  focusMode: k,
211
211
  disabled: _,
212
- noBorder: P,
212
+ noBorder: B,
213
213
  mode: f,
214
214
  rightElement: !!b,
215
215
  leftElement: !!T
216
- }), [e, i] = Be({
216
+ }), [e, i] = Pe({
217
217
  value: N,
218
218
  initialControlledDelay: 20,
219
219
  defaultValue: x,
220
- onChange: (l) => {
220
+ onChange: (c) => {
221
221
  W && W({
222
222
  target: {
223
- value: l
223
+ value: c
224
224
  }
225
225
  });
226
226
  }
227
- }), M = (l) => {
228
- i(l.target.value);
229
- }, q = (l) => {
230
- v && h && X(!0), L && L(l);
231
- }, S = (l) => {
232
- v && h && !e && X(!1), z && z(l);
227
+ }), U = (c) => {
228
+ i(c.target.value);
229
+ }, q = (c) => {
230
+ v && h && X(!0), L && L(c);
231
+ }, S = (c) => {
232
+ v && h && !e && X(!1), z && z(c);
233
233
  };
234
234
  return J(() => {
235
235
  A && A.width && ae(A.width + 18 + 10);
@@ -246,19 +246,19 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
246
246
  }, 0);
247
247
  }, [e, t]), J(() => {
248
248
  if (!t && y && y.current && e !== void 0) {
249
- const { labelOffset: l, helperTextOffset: g, scrollHeight: B } = Xe({
249
+ const { labelOffset: c, helperTextOffset: g, scrollHeight: M } = Ye({
250
250
  scrollHeight: y.current.scrollHeight,
251
- currentHeight: H.current,
251
+ currentHeight: G.current,
252
252
  currentLabelOffset: F.current,
253
253
  currentHelperTextOffset: j.current
254
254
  });
255
- l && (F.current = l, D?.current?.style.setProperty(
255
+ c && (F.current = c, D?.current?.style.setProperty(
256
256
  "--av-text-area-label",
257
- `${l}px`
257
+ `${c}px`
258
258
  )), g && (j.current = g, ee?.current?.style.setProperty(
259
259
  "--av-text-area-helper-text",
260
260
  `${g}px`
261
- )), H.current = B || H.current;
261
+ )), G.current = M || G.current;
262
262
  }
263
263
  }, [e, t]), w.width > 0 && D?.current?.style.setProperty(
264
264
  "--tw-translate-x",
@@ -268,7 +268,7 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
268
268
  "label",
269
269
  {
270
270
  htmlFor: O,
271
- id: G,
271
+ id: P,
272
272
  className: E.accessibleLabel,
273
273
  children: o
274
274
  }
@@ -302,10 +302,10 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
302
302
  }
303
303
  },
304
304
  value: e,
305
- onChange: M,
305
+ onChange: U,
306
306
  onFocus: q,
307
307
  onBlur: S,
308
- ...U
308
+ ...$
309
309
  }
310
310
  ),
311
311
  !t && /* @__PURE__ */ r(
@@ -335,7 +335,7 @@ const xe = "av-text-area", Pe = "av-text-area-wrapper", ce = "av-text-area-helpe
335
335
  children: b
336
336
  }
337
337
  ),
338
- s && h && /* @__PURE__ */ r(Ne, { politeness: "polite", clearAnnouncementDelay: 500, children: Y })
338
+ s && h && /* @__PURE__ */ r(Te, { politeness: "polite", clearAnnouncementDelay: 500, children: Y })
339
339
  ] });
340
340
  }
341
341
  );
@@ -353,22 +353,22 @@ try {
353
353
  });
354
354
  } catch {
355
355
  }
356
- const Ze = ({
356
+ const et = ({
357
357
  open: a,
358
358
  onOpenChange: n
359
359
  }) => {
360
- const { getAccessToken: o, user: s } = Te(), {
360
+ const { getAccessToken: o, user: s } = we(), {
361
361
  data: t,
362
- isSuccess: c,
362
+ isSuccess: l,
363
363
  refetch: m
364
- } = we({
364
+ } = ve({
365
365
  user: s?.username,
366
366
  getAccessToken: o
367
367
  }), [f, k] = d({
368
368
  loadingLocation: !1
369
369
  }), [N, x] = d({
370
370
  prompts: []
371
- }), [_, P] = d(""), [G, h] = d(""), [v, b] = d(!1), [T, W] = d(!1), [L, z] = d(!1), [U, K] = d(!1), [y, Q] = d(!1), [R, A] = d(null), [Z, w] = d(!1), [H, F] = d(!1), D = ye(he.TOOL.MEMORIES), j = ye(he.ADDON.REASONING), ee = (e) => {
371
+ }), [_, B] = d(""), [P, h] = d(""), [v, b] = d(!1), [T, W] = d(!1), [L, z] = d(!1), [$, K] = d(!1), [y, Q] = d(!1), [R, A] = d(null), [Z, w] = d(!1), [G, F] = d(!1), D = ye(he.TOOL.MEMORIES), j = ye(he.ADDON.REASONING), ee = (e) => {
372
372
  F(e);
373
373
  }, O = (e) => {
374
374
  b(e);
@@ -387,15 +387,15 @@ const Ze = ({
387
387
  params: {
388
388
  user: s?.username,
389
389
  instructions: _,
390
- location: G,
390
+ location: P,
391
391
  provider: t?.provider,
392
392
  tags: N.prompts,
393
393
  sendOnEnter: v,
394
394
  useMemory: T,
395
- showDetails: H,
395
+ showDetails: G,
396
396
  showReasoningButton: y
397
397
  }
398
- }), U !== L && (await Ae(U), z(U)), m(), k({
398
+ }), $ !== L && (await De($), z($)), m(), k({
399
399
  loadingLocation: !1
400
400
  });
401
401
  } catch {
@@ -405,7 +405,7 @@ const Ze = ({
405
405
  loadingLocation: !0
406
406
  }), h("...");
407
407
  try {
408
- const e = Date.now(), i = await Re(), M = await fe({
408
+ const e = Date.now(), i = await Ae(), U = await fe({
409
409
  accessToken: await o(),
410
410
  type: ge.GET_LOCATION,
411
411
  params: {
@@ -413,46 +413,45 @@ const Ze = ({
413
413
  longitude: i.longitude
414
414
  }
415
415
  }), S = Date.now() - e;
416
- if (S < 2e3 && await new Promise((l) => setTimeout(l, 2e3 - S)), M.status === 200) {
417
- const { city: l, state: g, country: B, displayName: ne } = M.data, be = l && g && B ? `${l}, ${g}, ${B}` : ne;
418
- k({
419
- loadingLocation: !1
420
- }), h(be);
421
- } else
422
- k({
423
- loadingLocation: !1
424
- });
416
+ S < 2e3 && await new Promise((ke) => setTimeout(ke, 2e3 - S));
417
+ const { city: c, state: g, country: M, displayName: ne } = U.data, be = c && g && M ? `${c}, ${g}, ${M}` : ne;
418
+ k({
419
+ loadingLocation: !1
420
+ }), h(be);
425
421
  } catch {
422
+ k({
423
+ loadingLocation: !1
424
+ });
426
425
  }
427
426
  }, X = () => {
428
427
  m(), n(!1);
429
428
  }, Y = ({
430
429
  enabled: e = !1,
431
430
  privateChat: i = !1,
432
- clipboardAccess: M = !1,
431
+ clipboardAccess: U = !1,
433
432
  ...q
434
433
  }) => {
435
434
  x((S) => {
436
- const l = S.prompts, g = {
435
+ const c = S.prompts, g = {
437
436
  ...q,
438
437
  enabled: e,
439
438
  privateChat: i,
440
- clipboardAccess: M
439
+ clipboardAccess: U
441
440
  };
442
- M ? g.content = g.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : g.content = g.content.replace(/{{clipboard}}/g, "");
443
- const B = l.findIndex((ne) => ne.slot === q.slot);
444
- return B === -1 ? {
441
+ U ? g.content = g.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : g.content = g.content.replace(/{{clipboard}}/g, "");
442
+ const M = c.findIndex((ne) => ne.slot === q.slot);
443
+ return M === -1 ? {
445
444
  ...S,
446
- prompts: [...l, { ...g }]
447
- } : (l[B] = g, {
445
+ prompts: [...c, { ...g }]
446
+ } : (c[M] = g, {
448
447
  ...S,
449
- prompts: [...l]
448
+ prompts: [...c]
450
449
  });
451
450
  });
452
- }, E = Me(async () => {
451
+ }, E = Be(async () => {
453
452
  try {
454
453
  w(!0);
455
- const e = await ve();
454
+ const e = await Se();
456
455
  A(e);
457
456
  } catch {
458
457
  } finally {
@@ -462,21 +461,21 @@ const Ze = ({
462
461
  return ie(() => {
463
462
  if (!t)
464
463
  return;
465
- t.instructions && P(t.instructions), t.location && h(t.location), t.tags && x({ prompts: t.tags }), t.sendOnEnter !== void 0 && b(t.sendOnEnter), t.useMemory !== void 0 && W(t.useMemory), t.showDetails !== void 0 && F(t.showDetails), t.showReasoningButton !== void 0 && Q(t.showReasoningButton);
466
- const e = Se();
464
+ t.instructions && B(t.instructions), t.location && h(t.location), t.tags && x({ prompts: t.tags }), t.sendOnEnter !== void 0 && b(t.sendOnEnter), t.useMemory !== void 0 && W(t.useMemory), t.showDetails !== void 0 && F(t.showDetails), t.showReasoningButton !== void 0 && Q(t.showReasoningButton);
465
+ const e = Ce();
467
466
  z(e), K(e);
468
467
  }, [t]), ie(() => {
469
468
  L ? E() : A(null);
470
- }, [L, E]), c ? /* @__PURE__ */ u(
471
- De,
469
+ }, [L, E]), l ? /* @__PURE__ */ u(
470
+ Oe,
472
471
  {
473
472
  open: a,
474
473
  onOpenChange: X,
475
- title: Ce,
474
+ title: Ie,
476
475
  animation: !0,
477
476
  animationType: "fade",
478
477
  footer: /* @__PURE__ */ u(
479
- Le,
478
+ Re,
480
479
  {
481
480
  columnGap: 2,
482
481
  alignHorizontal: "flex-end",
@@ -509,7 +508,7 @@ const Ze = ({
509
508
  ),
510
509
  children: [
511
510
  /* @__PURE__ */ u(
512
- V,
511
+ H,
513
512
  {
514
513
  header: C.SETTINGS_DETAILS.TITLE,
515
514
  className: "prose-dark dark:prose-lighter",
@@ -525,7 +524,7 @@ const Ze = ({
525
524
  label: "Show Message Statistics",
526
525
  name: "show-message-statistics",
527
526
  onChange: ee,
528
- checked: H
527
+ checked: G
529
528
  }
530
529
  ),
531
530
  /* @__PURE__ */ r("p", { className: "text-sm mt-5", children: C.SETTINGS_DETAILS.SEND_ON_ENTER }),
@@ -560,7 +559,7 @@ const Ze = ({
560
559
  }
561
560
  ),
562
561
  /* @__PURE__ */ u(
563
- V,
562
+ H,
564
563
  {
565
564
  header: "Custom Instructions",
566
565
  className: "prose-dark dark:prose-lighter mt-4",
@@ -568,7 +567,7 @@ const Ze = ({
568
567
  children: [
569
568
  /* @__PURE__ */ u("p", { className: "text-sm", children: [
570
569
  "What would you like ",
571
- /* @__PURE__ */ r("em", { children: Ie }),
570
+ /* @__PURE__ */ r("em", { children: _e }),
572
571
  " to know about you to provide better responses?"
573
572
  ] }),
574
573
  /* @__PURE__ */ r(
@@ -582,7 +581,7 @@ const Ze = ({
582
581
  label: "Custom Instructions",
583
582
  value: _,
584
583
  onChange: (e) => {
585
- P(e.target.value);
584
+ B(e.target.value);
586
585
  },
587
586
  helperText: "Press ENTER to add a new line."
588
587
  }
@@ -591,7 +590,7 @@ const Ze = ({
591
590
  }
592
591
  ),
593
592
  /* @__PURE__ */ u(
594
- V,
593
+ H,
595
594
  {
596
595
  header: "Location",
597
596
  className: "prose-dark dark:prose-lighter mt-4",
@@ -604,7 +603,7 @@ const Ze = ({
604
603
  mode: "alt-system",
605
604
  name: "location",
606
605
  label: "Location",
607
- value: G,
606
+ value: P,
608
607
  onChange: (e) => {
609
608
  h(e.target.value);
610
609
  },
@@ -627,15 +626,15 @@ const Ze = ({
627
626
  }
628
627
  ),
629
628
  /* @__PURE__ */ u(
630
- V,
629
+ H,
631
630
  {
632
631
  header: C.SETTINGS_PROMPTS.TITLE,
633
632
  className: "prose-dark dark:prose-lighter mt-4",
634
633
  noBorder: !0,
635
634
  children: [
636
- /* @__PURE__ */ r("p", { className: "text-sm", children: _e }),
635
+ /* @__PURE__ */ r("p", { className: "text-sm", children: Le }),
637
636
  N.prompts && N.prompts.slice(0, 3).map((e) => /* @__PURE__ */ u(
638
- V,
637
+ H,
639
638
  {
640
639
  mode: "dark",
641
640
  noBorder: !0,
@@ -708,7 +707,7 @@ const Ze = ({
708
707
  }
709
708
  ),
710
709
  /* @__PURE__ */ u(
711
- V,
710
+ H,
712
711
  {
713
712
  header: C.SETTINGS_ADVANCED.TITLE,
714
713
  className: "prose-dark dark:prose-lighter mt-4 ",
@@ -739,7 +738,7 @@ const Ze = ({
739
738
  label: "Enable Assets Caching",
740
739
  name: "enable-service-worker",
741
740
  onChange: ae,
742
- checked: U
741
+ checked: $
743
742
  }
744
743
  ),
745
744
  L && /* @__PURE__ */ u("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
@@ -773,5 +772,5 @@ const Ze = ({
773
772
  ) : null;
774
773
  };
775
774
  export {
776
- Ze as SettingsPanel
775
+ et as SettingsPanel
777
776
  };
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as r } from "react/jsx-runtime";
2
- import { I as f, b as v } from "./index.H6hFK3Q7.js";
2
+ import { I as f, b as v } from "./index.BCvnlzn1.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.D3GdUdDt.js";
5
+ import { e as k } from "./App.BUHkBnAs.js";
6
6
  const A = ({
7
7
  className: e,
8
8
  viewBox: a,
@@ -347,10 +347,10 @@ const g = C.createContext({
347
347
  stickyFooter: s.stickyFooter
348
348
  });
349
349
  return /* @__PURE__ */ r("tfoot", { className: l, ...t, children: e });
350
- }, P = ({ children: e, ...a }) => {
350
+ }, $ = ({ children: e, ...a }) => {
351
351
  const t = b(g);
352
352
  return t.cellWrapper = p, /* @__PURE__ */ r("tbody", { ...a, children: e });
353
- }, q = ({
353
+ }, P = ({
354
354
  children: e,
355
355
  className: a,
356
356
  ...t
@@ -376,7 +376,7 @@ const g = C.createContext({
376
376
  align: s
377
377
  });
378
378
  return s ? /* @__PURE__ */ r(n, { className: i, ...l, children: /* @__PURE__ */ r("div", { className: c, children: e }) }) : /* @__PURE__ */ r(n, { className: i, ...l, children: e });
379
- }, J = ({
379
+ }, q = ({
380
380
  align: e,
381
381
  children: a,
382
382
  buttonClassName: t,
@@ -419,9 +419,9 @@ const g = C.createContext({
419
419
  };
420
420
  export {
421
421
  O as D,
422
- J as F,
423
- q as G,
424
- P as H,
422
+ q as F,
423
+ P as G,
424
+ $ as H,
425
425
  F as M,
426
426
  G as U,
427
427
  L as j,
@@ -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.H6hFK3Q7.js";
3
- import { oe as z } from "./App.D3GdUdDt.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.BCvnlzn1.js";
3
+ import { oe as z } from "./App.BUHkBnAs.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.Yybbexr3.js"
7
+ "./Chart.f_78Yn-S.js"
8
8
  )), b = ({
9
9
  open: S,
10
10
  onOpenChange: I
@@ -1,9 +1,9 @@
1
1
  import { jsxs as r, Fragment as B, jsx as e } from "react/jsx-runtime";
2
- import { n as V, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Y, LOCAL_STORAGE_SORT_MEMORY_COLUMN as X, useUserMemories as $, useDeleteMemory as J, useDeleteAllMemories as K, L as O, j as u, te as Q, C as M } from "./index.H6hFK3Q7.js";
3
- import { E as T, e as c, ConfirmationPanel as R, oe as W, st as Z } from "./App.D3GdUdDt.js";
2
+ import { n as V, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Y, LOCAL_STORAGE_SORT_MEMORY_COLUMN as X, useUserMemories as $, useDeleteMemory as J, useDeleteAllMemories as K, L as O, j as u, te as Q, C as M } from "./index.BCvnlzn1.js";
3
+ import { E as T, e as c, ConfirmationPanel as R, oe as W, st as Z } from "./App.BUHkBnAs.js";
4
4
  import f from "clsx";
5
5
  import { useState as a, useRef as ee } from "react";
6
- import { j as te, D as re, G as x, M as n, F as oe, H as ne, l as ie, U as le } from "./Table.BO7U8k6z.js";
6
+ import { j as te, D as re, G as x, M as n, F as oe, H as ne, l as ie, U as le } from "./Table.BuN5VZQJ.js";
7
7
  const ue = ({
8
8
  open: A,
9
9
  onOpenChange: C,