@versini/sassysaint 4.3.2 → 4.3.4

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.
@@ -1,10 +1,10 @@
1
1
  import { jsxs as d, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { O as z, i$1 as le, N as de, p as De, o as Oe, g as v, N$1 as B, CARDS as f, renderDataAsList as j, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Pe, durationFormatter as Ce, NA as Ve, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, qr as V, STATS as Te, b as re, j$1 as P, x as O, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as oe, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as qe, HISTORY_TITLE as Je, getCurrentGeoLocation as Qe, LOCAL_STORAGE_CHAT_DETAILS as Ze, W as et, v as ue, PROFILE_TITLE as tt, LOG_OUT as me } from "./index.CRgG-bmB.js";
2
+ import { O as B, i$1 as le, N as de, p as De, o as Oe, g as I, N$1 as R, CARDS as f, renderDataAsList as j, pluralize as Q, ABOUT_TITLE as ze, MODEL_GPT4 as Be, numberFormatter as Pe, durationFormatter as Ce, NA as Ve, ROLE_ASSISTANT as Fe, extractAverage as $e, GPT4_MAX_TOKENS as Ge, qr as V, STATS as Te, b as re, j$1 as P, x as z, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ue, ACTION_RESET as je, ACTION_RESTORE as Ye, truncate as Ke, ACTION_SORT as oe, LOCAL_STORAGE_SEARCH as We, G as Xe, ACTION_SEARCH as qe, HISTORY_TITLE as Je, getCurrentGeoLocation as Qe, LOCAL_STORAGE_CHAT_DETAILS as Ze, W as et, v as ue, PROFILE_TITLE as tt, LOG_OUT as me } from "./index.DW-8fMRN.js";
3
3
  import * as ne from "react";
4
- import ot, { forwardRef as Ne, useState as T, useRef as Y, useContext as L, useEffect as _, Suspense as at, lazy as nt, useId as st, useMemo as rt } from "react";
5
- import { g as ct, AppContext as Z, serviceCall as R, SERVICE_TYPES as H, HistoryContext as Se, E as ie, k as I, et as it, at as lt, lt as ae, J as M, ct as dt, st as ut, rt as mt, At as he } from "./useLocalStorage.RmxGoFAM.js";
4
+ import ot, { forwardRef as Ne, useState as T, useRef as Y, useContext as _, useEffect as D, Suspense as at, lazy as nt, useId as st, useMemo as rt } from "react";
5
+ import { g as ct, AppContext as Z, serviceCall as H, SERVICE_TYPES as L, HistoryContext as Se, E as ie, k as x, et as it, at as lt, lt as ae, J as M, ct as dt, st as ut, rt as mt, Tt as he } from "./useLocalStorage.CHGtMHE-.js";
6
6
  import b from "clsx";
7
- import { useFloatingTree as Ee, useFloatingNodeId as ht, useListItem as ye, useFloating as pt, offset as ft, flip as gt, shift as Ct, autoUpdate as Tt, useClick as Nt, useRole as St, useDismiss as Et, useListNavigation as yt, useTypeahead as wt, useInteractions as bt, useMergeRefs as we, FloatingNode as kt, FloatingList as It, FloatingPortal as vt, FloatingFocusManager as xt, FloatingTree as At } from "@floating-ui/react";
7
+ import { useFloatingTree as Ee, useFloatingNodeId as ht, useListItem as ye, useFloating as pt, offset as ft, flip as gt, shift as Ct, autoUpdate as Tt, useClick as Nt, useRole as St, useDismiss as Et, useListNavigation as yt, useTypeahead as wt, useInteractions as bt, useMergeRefs as we, FloatingNode as kt, FloatingList as xt, FloatingPortal as It, FloatingFocusManager as vt, FloatingTree as At } from "@floating-ui/react";
8
8
  const se = ne.createContext({
9
9
  getItemProps: () => ({}),
10
10
  activeIndex: null,
@@ -30,20 +30,20 @@ const se = ne.createContext({
30
30
  trigger: e,
31
31
  children: o,
32
32
  label: a = "Open menu",
33
- defaultPlacement: s = "bottom-start",
34
- onOpenChange: n,
33
+ defaultPlacement: n = "bottom-start",
34
+ onOpenChange: s,
35
35
  spacing: r,
36
36
  mode: l = "system",
37
37
  focusMode: m = "system",
38
38
  ...c
39
39
  }, i) => {
40
- const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = L(se), E = Ee(), x = ht(), ee = ye(), { floatingStyles: te, refs: X, context: A } = pt({
41
- nodeId: x,
40
+ const [u, g] = T(!1), [N, C] = T(!1), [p, y] = T(null), k = Y([]), h = Y([]), S = _(se), E = Ee(), v = ht(), ee = ye(), { floatingStyles: te, refs: X, context: A } = pt({
41
+ nodeId: v,
42
42
  open: u,
43
43
  onOpenChange: (G) => {
44
- g(G), n == null || n(G);
44
+ g(G), s == null || s(G);
45
45
  },
46
- placement: s,
46
+ placement: n,
47
47
  strategy: "fixed",
48
48
  middleware: [ft({ mainAxis: 10 }), gt(), Ct()],
49
49
  whileElementsMounted: Tt
@@ -51,7 +51,7 @@ const se = ne.createContext({
51
51
  event: "mousedown",
52
52
  toggle: !0,
53
53
  ignoreMouse: !1
54
- }), $ = St(A, { role: "menu" }), ve = Et(A, { bubbles: !0 }), xe = yt(A, {
54
+ }), $ = St(A, { role: "menu" }), Ie = Et(A, { bubbles: !0 }), ve = yt(A, {
55
55
  listRef: k,
56
56
  activeIndex: p,
57
57
  nested: !1,
@@ -61,7 +61,7 @@ const se = ne.createContext({
61
61
  listRef: h,
62
62
  onMatch: u ? y : void 0,
63
63
  activeIndex: p
64
- }), { getReferenceProps: Me, getFloatingProps: Re, getItemProps: He } = bt([q, $, ve, xe, Ae]), Le = pe(e) === "Button" || pe(e) === "ButtonIcon", _e = ot.cloneElement(e, {
64
+ }), { getReferenceProps: Me, getFloatingProps: Re, getItemProps: He } = bt([q, $, Ie, ve, Ae]), Le = pe(e) === "Button" || pe(e) === "ButtonIcon", _e = ot.cloneElement(e, {
65
65
  mode: l,
66
66
  focusMode: m,
67
67
  spacing: r,
@@ -76,18 +76,18 @@ const se = ne.createContext({
76
76
  })
77
77
  )
78
78
  });
79
- return _(() => {
79
+ return D(() => {
80
80
  if (!E)
81
81
  return;
82
82
  function G() {
83
- g(!1), n == null || n(!1);
83
+ g(!1), s == null || s(!1);
84
84
  }
85
85
  return E.events.on("click", G), () => {
86
86
  E.events.off("click", G);
87
87
  };
88
- }, [E, n]), _(() => {
89
- u && E && E.events.emit("menuopen", { nodeId: x });
90
- }, [E, u, x]), /* @__PURE__ */ d(kt, { id: x, children: [
88
+ }, [E, s]), D(() => {
89
+ u && E && E.events.emit("menuopen", { nodeId: v });
90
+ }, [E, u, v]), /* @__PURE__ */ d(kt, { id: v, children: [
91
91
  _e,
92
92
  /* @__PURE__ */ t(
93
93
  se.Provider,
@@ -99,8 +99,8 @@ const se = ne.createContext({
99
99
  setHasFocusInside: C,
100
100
  isOpen: u
101
101
  },
102
- children: /* @__PURE__ */ t(It, { elementsRef: k, labelsRef: h, children: u && /* @__PURE__ */ t(vt, { children: /* @__PURE__ */ t(
103
- xt,
102
+ children: /* @__PURE__ */ t(xt, { elementsRef: k, labelsRef: h, children: u && /* @__PURE__ */ t(It, { children: /* @__PURE__ */ t(
103
+ vt,
104
104
  {
105
105
  context: A,
106
106
  modal: !1,
@@ -125,13 +125,13 @@ const se = ne.createContext({
125
125
  ), ke = Ne((e, o) => /* @__PURE__ */ t(At, { children: /* @__PURE__ */ t(be, { ...e, ref: o }) }));
126
126
  ke.displayName = "Menu";
127
127
  be.displayName = "MenuComponent";
128
- const D = ne.forwardRef(({ label: e, disabled: o, icon: a, ...s }, n) => {
128
+ const O = ne.forwardRef(({ label: e, disabled: o, icon: a, ...n }, s) => {
129
129
  const r = ne.useContext(se), l = ye({ label: o ? null : e }), m = Ee();
130
130
  return /* @__PURE__ */ d(
131
131
  "button",
132
132
  {
133
- ...s,
134
- ref: we([l.ref, n]),
133
+ ...n,
134
+ ref: we([l.ref, s]),
135
135
  role: "menuitem",
136
136
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-3 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
137
137
  tabIndex: 0,
@@ -139,11 +139,11 @@ const D = ne.forwardRef(({ label: e, disabled: o, icon: a, ...s }, n) => {
139
139
  ...r.getItemProps({
140
140
  onClick(c) {
141
141
  var i;
142
- (i = s.onClick) == null || i.call(s, c), m == null || m.events.emit("click");
142
+ (i = n.onClick) == null || i.call(n, c), m == null || m.events.emit("click");
143
143
  },
144
144
  onFocus(c) {
145
145
  var i;
146
- (i = s.onFocus) == null || i.call(s, c), r.setHasFocusInside(!0);
146
+ (i = n.onFocus) == null || i.call(n, c), r.setHasFocusInside(!0);
147
147
  }
148
148
  }),
149
149
  children: [
@@ -153,7 +153,7 @@ const D = ne.forwardRef(({ label: e, disabled: o, icon: a, ...s }, n) => {
153
153
  }
154
154
  );
155
155
  });
156
- D.displayName = "MenuItem";
156
+ O.displayName = "MenuItem";
157
157
  const Mt = ({ className: e, ...o }) => {
158
158
  const a = b(e, "my-1 border-t border-border-medium");
159
159
  return /* @__PURE__ */ t("div", { className: a, ...o });
@@ -161,8 +161,8 @@ const Mt = ({ className: e, ...o }) => {
161
161
  className: e,
162
162
  viewBox: o,
163
163
  spacing: a,
164
- title: s,
165
- monotone: n,
164
+ title: n,
165
+ monotone: s,
166
166
  ...r
167
167
  }) => /* @__PURE__ */ t(
168
168
  ct,
@@ -172,7 +172,7 @@ const Mt = ({ className: e, ...o }) => {
172
172
  viewBox: o,
173
173
  className: e,
174
174
  spacing: a,
175
- title: s || "Close",
175
+ title: n || "Close",
176
176
  ...r,
177
177
  children: /* @__PURE__ */ t("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z" })
178
178
  }
@@ -192,26 +192,26 @@ const Mt = ({ className: e, ...o }) => {
192
192
  "border-border-dark": a === "dark" && o === J,
193
193
  "border-border-accent": a === "light" && o === J
194
194
  }),
195
- content: "flex flex-grow flex-col py-2 sm:py-4 px-4",
196
- footer: "flex flex-grow flex-col p-4",
197
- header: "p-4 mb-0",
198
- close: "p-4"
195
+ content: "flex flex-grow flex-col py-2 sm:py-4 sm:px-4 px-2",
196
+ footer: "flex flex-grow flex-col sm:p-4 p-2",
197
+ header: "sm:p-4 mb-0 p-2",
198
+ close: "sm:p-4 p-2"
199
199
  }), W = (e) => nt(
200
- () => import("./index.Bzt9pToY.Dod1oVcG.js").then((o) => ({
200
+ () => import("./index.BA5202H5.EyL55e8c.js").then((o) => ({
201
201
  default: o[e]
202
202
  }))
203
203
  ), Lt = W("Modal"), _t = W("ModalClose"), Dt = W("ModalContent"), Ot = W("ModalDescription"), zt = W("ModalHeading"), F = ({
204
204
  open: e,
205
205
  onOpenChange: o,
206
206
  title: a,
207
- children: s,
208
- footer: n,
207
+ children: n,
208
+ footer: s,
209
209
  borderMode: r = "light",
210
210
  kind: l = U,
211
211
  className: m
212
212
  }) => {
213
213
  const c = Y(""), i = Ht({ className: m, kind: l, borderMode: r });
214
- return _(() => (e && (c.current = document.title, document.title = `${a} | ${c.current}`), () => {
214
+ return D(() => (e && (c.current = document.title, document.title = `${a} | ${c.current}`), () => {
215
215
  e && (document.title = c.current);
216
216
  }), [a, e]), /* @__PURE__ */ t(at, { fallback: /* @__PURE__ */ t("div", {}), children: e && /* @__PURE__ */ t(Lt, { open: e, onOpenChange: o, children: /* @__PURE__ */ d(Dt, { className: i.main, children: [
217
217
  /* @__PURE__ */ d("div", { className: "flex flex-row-reverse items-center justify-between", children: [
@@ -220,7 +220,7 @@ const Mt = ({ className: e, ...o }) => {
220
220
  {
221
221
  className: i.close,
222
222
  trigger: /* @__PURE__ */ t(
223
- z,
223
+ B,
224
224
  {
225
225
  mode: "dark",
226
226
  focusMode: "light",
@@ -233,8 +233,8 @@ const Mt = ({ className: e, ...o }) => {
233
233
  ),
234
234
  /* @__PURE__ */ t(zt, { className: i.header, children: a })
235
235
  ] }),
236
- /* @__PURE__ */ t(Ot, { className: i.content, children: s }),
237
- n && /* @__PURE__ */ t("div", { className: i.footer, children: n })
236
+ /* @__PURE__ */ t(Ot, { className: i.content, children: n }),
237
+ s && /* @__PURE__ */ t("div", { className: i.footer, children: s })
238
238
  ] }) }) });
239
239
  }, Bt = () => b("peer", "h-6", "w-11", "rounded-full"), Pt = ({
240
240
  focusMode: e
@@ -292,25 +292,25 @@ const Mt = ({ className: e, ...o }) => {
292
292
  mode: e,
293
293
  focusMode: o,
294
294
  labelHidden: a,
295
- spacing: s,
296
- noBorder: n
295
+ spacing: n,
296
+ noBorder: s
297
297
  }) => ({
298
298
  toggle: b(
299
299
  Bt(),
300
- $t({ mode: e, noBorder: n }),
300
+ $t({ mode: e, noBorder: s }),
301
301
  Pt({ focusMode: o }),
302
302
  Ft(),
303
303
  Vt()
304
304
  ),
305
305
  label: Gt({ mode: e, labelHidden: a }),
306
306
  input: "peer sr-only",
307
- wrapper: Ut({ spacing: s })
307
+ wrapper: Ut({ spacing: n })
308
308
  }), Yt = ({
309
309
  checked: e = !1,
310
310
  onChange: o,
311
311
  label: a,
312
- labelHidden: s = !1,
313
- name: n,
312
+ labelHidden: n = !1,
313
+ name: s,
314
314
  mode: r = "system",
315
315
  focusMode: l = "system",
316
316
  spacing: m,
@@ -319,7 +319,7 @@ const Mt = ({ className: e, ...o }) => {
319
319
  const i = jt({
320
320
  mode: r,
321
321
  focusMode: l,
322
- labelHidden: s,
322
+ labelHidden: n,
323
323
  spacing: m,
324
324
  noBorder: c
325
325
  }), u = (g) => {
@@ -329,7 +329,7 @@ const Mt = ({ className: e, ...o }) => {
329
329
  /* @__PURE__ */ t(
330
330
  "input",
331
331
  {
332
- name: n,
332
+ name: s,
333
333
  checked: e,
334
334
  type: "checkbox",
335
335
  className: i.input,
@@ -343,24 +343,24 @@ const Mt = ({ className: e, ...o }) => {
343
343
  className: e,
344
344
  viewBox: o,
345
345
  spacing: a,
346
- title: s,
347
- monotone: n,
346
+ title: n,
347
+ monotone: s,
348
348
  ...r
349
349
  }) => /* @__PURE__ */ d(
350
- v,
350
+ I,
351
351
  {
352
352
  defaultViewBox: "0 0 512 512",
353
353
  defaultClassName: "size-5",
354
354
  viewBox: o,
355
355
  className: e,
356
356
  spacing: a,
357
- title: s || "Back",
357
+ title: n || "Back",
358
358
  ...r,
359
359
  children: [
360
360
  /* @__PURE__ */ t(
361
361
  "path",
362
362
  {
363
- opacity: n ? "1" : "0.4",
363
+ opacity: s ? "1" : "0.4",
364
364
  d: "M288.4 93.4c2.9-17.4 19.4-29.2 36.9-26.3C431.3 84.9 512 177 512 288c0 123.7-100.3 224-224 224C177 512 84.9 431.3 67.1 325.3c-2.9-17.4 8.8-33.9 26.3-36.9s33.9 8.8 36.9 26.3C142.9 390.4 208.8 448 288 448c88.4 0 160-71.6 160-160c0-79.2-57.6-145.1-133.3-157.8c-17.4-2.9-29.2-19.4-26.3-36.9z"
365
365
  }
366
366
  ),
@@ -371,24 +371,24 @@ const Mt = ({ className: e, ...o }) => {
371
371
  className: e,
372
372
  viewBox: o,
373
373
  spacing: a,
374
- title: s,
375
- monotone: n,
374
+ title: n,
375
+ monotone: s,
376
376
  ...r
377
377
  }) => /* @__PURE__ */ d(
378
- v,
378
+ I,
379
379
  {
380
380
  defaultViewBox: "0 0 448 512",
381
381
  defaultClassName: "size-5",
382
382
  viewBox: o,
383
383
  className: e,
384
384
  spacing: a,
385
- title: s || "Chart",
385
+ title: n || "Chart",
386
386
  ...r,
387
387
  children: [
388
388
  /* @__PURE__ */ t(
389
389
  "path",
390
390
  {
391
- opacity: n ? "1" : "0.4",
391
+ opacity: s ? "1" : "0.4",
392
392
  d: "M160 80c0-26.5 21.5-48 48-48h32c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V80z"
393
393
  }
394
394
  ),
@@ -399,24 +399,24 @@ const Mt = ({ className: e, ...o }) => {
399
399
  className: e,
400
400
  viewBox: o,
401
401
  spacing: a,
402
- title: s,
403
- monotone: n,
402
+ title: n,
403
+ monotone: s,
404
404
  ...r
405
405
  }) => /* @__PURE__ */ d(
406
- v,
406
+ I,
407
407
  {
408
408
  defaultViewBox: "0 0 448 512",
409
409
  defaultClassName: "size-5",
410
410
  viewBox: o,
411
411
  className: e,
412
412
  spacing: a,
413
- title: s || "Delete",
413
+ title: n || "Delete",
414
414
  ...r,
415
415
  children: [
416
416
  /* @__PURE__ */ t(
417
417
  "path",
418
418
  {
419
- opacity: n ? "1" : "0.4",
419
+ opacity: s ? "1" : "0.4",
420
420
  d: "M416 96H32V448c0 35.3 28.7 64 64 64H352c35.3 0 64-28.7 64-64V96zM144 176V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16z"
421
421
  }
422
422
  ),
@@ -427,24 +427,24 @@ const Mt = ({ className: e, ...o }) => {
427
427
  className: e,
428
428
  viewBox: o,
429
429
  spacing: a,
430
- title: s,
431
- monotone: n,
430
+ title: n,
431
+ monotone: s,
432
432
  ...r
433
433
  }) => /* @__PURE__ */ d(
434
- v,
434
+ I,
435
435
  {
436
436
  defaultViewBox: "0 0 512 512",
437
437
  defaultClassName: "size-5",
438
438
  viewBox: o,
439
439
  className: e,
440
440
  spacing: a,
441
- title: s || "Edit",
441
+ title: n || "Edit",
442
442
  ...r,
443
443
  children: [
444
444
  /* @__PURE__ */ t(
445
445
  "path",
446
446
  {
447
- opacity: n ? "1" : "0.4",
447
+ opacity: s ? "1" : "0.4",
448
448
  d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
449
449
  }
450
450
  ),
@@ -455,24 +455,24 @@ const Mt = ({ className: e, ...o }) => {
455
455
  className: e,
456
456
  viewBox: o,
457
457
  spacing: a,
458
- title: s,
459
- monotone: n,
458
+ title: n,
459
+ monotone: s,
460
460
  ...r
461
461
  }) => /* @__PURE__ */ d(
462
- v,
462
+ I,
463
463
  {
464
464
  defaultViewBox: "0 0 512 512",
465
465
  defaultClassName: "size-5",
466
466
  viewBox: o,
467
467
  className: e,
468
468
  spacing: a,
469
- title: s || "History",
469
+ title: n || "History",
470
470
  ...r,
471
471
  children: [
472
472
  /* @__PURE__ */ t(
473
473
  "path",
474
474
  {
475
- opacity: n ? "1" : "0.4",
475
+ opacity: s ? "1" : "0.4",
476
476
  d: "M120.2 120.2C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8z"
477
477
  }
478
478
  ),
@@ -483,18 +483,18 @@ const Mt = ({ className: e, ...o }) => {
483
483
  className: e,
484
484
  viewBox: o,
485
485
  spacing: a,
486
- title: s,
487
- monotone: n,
486
+ title: n,
487
+ monotone: s,
488
488
  ...r
489
489
  }) => /* @__PURE__ */ d(
490
- v,
490
+ I,
491
491
  {
492
492
  defaultViewBox: "0 0 512 512",
493
493
  defaultClassName: "size-5",
494
494
  viewBox: o,
495
495
  className: e,
496
496
  spacing: a,
497
- title: s || "Info",
497
+ title: n || "Info",
498
498
  ...r,
499
499
  children: [
500
500
  /* @__PURE__ */ t(
@@ -511,18 +511,18 @@ const Mt = ({ className: e, ...o }) => {
511
511
  className: e,
512
512
  viewBox: o,
513
513
  spacing: a,
514
- title: s,
515
- monotone: n,
514
+ title: n,
515
+ monotone: s,
516
516
  ...r
517
517
  }) => /* @__PURE__ */ d(
518
- v,
518
+ I,
519
519
  {
520
520
  defaultViewBox: "0 0 576 512",
521
521
  defaultClassName: "size-5",
522
522
  viewBox: o,
523
523
  className: e,
524
524
  spacing: a,
525
- title: s || "Profile",
525
+ title: n || "Profile",
526
526
  ...r,
527
527
  children: [
528
528
  /* @__PURE__ */ t(
@@ -539,24 +539,24 @@ const Mt = ({ className: e, ...o }) => {
539
539
  className: e,
540
540
  viewBox: o,
541
541
  spacing: a,
542
- title: s,
543
- monotone: n,
542
+ title: n,
543
+ monotone: s,
544
544
  ...r
545
545
  }) => /* @__PURE__ */ d(
546
- v,
546
+ I,
547
547
  {
548
548
  defaultViewBox: "0 0 512 512",
549
549
  defaultClassName: "size-5",
550
550
  viewBox: o,
551
551
  className: e,
552
552
  spacing: a,
553
- title: s || "Restore",
553
+ title: n || "Restore",
554
554
  ...r,
555
555
  children: [
556
556
  /* @__PURE__ */ t(
557
557
  "path",
558
558
  {
559
- opacity: n ? "1" : "0.4",
559
+ opacity: s ? "1" : "0.4",
560
560
  d: "M208 64H432c8.8 0 16 7.2 16 16V304c0 8.8-7.2 16-16 16H416v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80V96h64V80c0-8.8 7.2-16 16-16z"
561
561
  }
562
562
  ),
@@ -567,18 +567,18 @@ const Mt = ({ className: e, ...o }) => {
567
567
  className: e,
568
568
  viewBox: o,
569
569
  spacing: a,
570
- title: s,
571
- monotone: n,
570
+ title: n,
571
+ monotone: s,
572
572
  ...r
573
573
  }) => /* @__PURE__ */ t(
574
- v,
574
+ I,
575
575
  {
576
576
  defaultViewBox: "0 0 448 512",
577
577
  defaultClassName: "size-5",
578
578
  viewBox: o,
579
579
  className: e,
580
580
  spacing: a,
581
- title: s || "Settings",
581
+ title: n || "Settings",
582
582
  ...r,
583
583
  children: /* @__PURE__ */ t("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
584
584
  }
@@ -587,27 +587,27 @@ function K(e) {
587
587
  return st();
588
588
  }
589
589
  const oo = ({ stats: e }) => {
590
- const o = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", s = (e == null ? void 0 : e.models) || [], n = K(), r = K();
590
+ const o = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], s = K(), r = K();
591
591
  return /* @__PURE__ */ d(w, { children: [
592
592
  /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
593
- B,
593
+ R,
594
594
  {
595
595
  header: f.ABOUT.TITLE_CLIENT,
596
596
  className: "prose-dark dark:prose-lighter",
597
- children: j(n, {
598
- [f.ABOUT.VERSION]: "4.3.2",
599
- [f.ABOUT.BUILD_TIMESTAMP]: "09/07/2024 08:44 AM EDT"
597
+ children: j(s, {
598
+ [f.ABOUT.VERSION]: "4.3.4",
599
+ [f.ABOUT.BUILD_TIMESTAMP]: "09/09/2024 07:22 PM EDT"
600
600
  })
601
601
  }
602
602
  ) }),
603
603
  /* @__PURE__ */ t(
604
- B,
604
+ R,
605
605
  {
606
606
  header: f.ABOUT.TITLE_SERVER,
607
607
  className: "prose-dark dark:prose-lighter",
608
608
  children: j(r, {
609
609
  [f.ABOUT.VERSION]: a,
610
- [Q(f.ABOUT.ENGINE, s.length)]: /* @__PURE__ */ t(w, { children: s.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) }),
610
+ [Q(f.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ t(w, { children: n.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) }),
611
611
  [Q(f.ABOUT.PLUGIN, o.length)]: /* @__PURE__ */ t(w, { children: o.map((l) => /* @__PURE__ */ t("div", { className: "text-right", children: l }, l)) })
612
612
  })
613
613
  }
@@ -617,15 +617,15 @@ const oo = ({ stats: e }) => {
617
617
  open: e,
618
618
  onOpenChange: o
619
619
  }) => {
620
- const { serverStats: a } = L(Z);
620
+ const { serverStats: a } = _(Z);
621
621
  return /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: ze, children: /* @__PURE__ */ t(oo, { stats: a }) });
622
622
  }, no = (e) => Ce(e), so = (e) => {
623
623
  if (!e || e.length === 0)
624
624
  return Ve;
625
625
  const o = e.filter(
626
626
  (a) => {
627
- var s, n;
628
- return ((s = a == null ? void 0 : a.message) == null ? void 0 : s.role) === Fe && typeof ((n = a == null ? void 0 : a.message) == null ? void 0 : n.processingTime) == "number";
627
+ var n, s;
628
+ return ((n = a == null ? void 0 : a.message) == null ? void 0 : n.role) === Fe && typeof ((s = a == null ? void 0 : a.message) == null ? void 0 : s.processingTime) == "number";
629
629
  }
630
630
  ).map((a) => a.message.processingTime);
631
631
  return $e({
@@ -636,23 +636,23 @@ const oo = ({ stats: e }) => {
636
636
  isAuthenticated: e,
637
637
  stats: o
638
638
  }) => {
639
- const { state: a } = L(Z), s = Ge - Number(a == null ? void 0 : a.usage), n = K(), r = K();
639
+ const { state: a } = _(Z), n = Ge - Number(a == null ? void 0 : a.usage), s = K(), r = K();
640
640
  return e ? /* @__PURE__ */ d(w, { children: [
641
641
  a && a.messages.length > 0 && /* @__PURE__ */ t("div", { className: "mb-4", children: /* @__PURE__ */ t(
642
- B,
642
+ R,
643
643
  {
644
644
  header: f.CURRENT_STATISTICS.TITLE,
645
645
  className: "prose-dark dark:prose-lighter",
646
- children: j(n, {
646
+ children: j(s, {
647
647
  [f.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) || Be,
648
648
  [f.CURRENT_STATISTICS.TOKENS_USED]: a == null ? void 0 : a.usage,
649
- [f.CURRENT_STATISTICS.REMAINING_TOKENS]: Pe.format(s),
649
+ [f.CURRENT_STATISTICS.REMAINING_TOKENS]: Pe.format(n),
650
650
  [f.CURRENT_STATISTICS.PROCESSING_TIME]: so(a == null ? void 0 : a.messages)
651
651
  })
652
652
  }
653
653
  ) }),
654
654
  /* @__PURE__ */ t(
655
- B,
655
+ R,
656
656
  {
657
657
  header: f.MAIN_STATISTICS.TITLE,
658
658
  className: "prose-dark dark:prose-lighter",
@@ -669,41 +669,41 @@ const oo = ({ stats: e }) => {
669
669
  open: e,
670
670
  onOpenChange: o
671
671
  }) => {
672
- const [a, s] = T({
672
+ const [a, n] = T({
673
673
  averageProcessingTimes: 0,
674
674
  totalChats: 0
675
- }), { isAuthenticated: n, getAccessToken: r, user: l } = V();
676
- return _(() => {
675
+ }), { isAuthenticated: s, getAccessToken: r, user: l } = V();
676
+ return D(() => {
677
677
  !e || !l || (async () => {
678
678
  try {
679
- const m = await R({
679
+ const m = await H({
680
680
  accessToken: await r(),
681
- type: H.GET_CHATS_STATS,
681
+ type: L.GET_CHATS_STATS,
682
682
  params: {
683
683
  userId: l.username
684
684
  }
685
685
  });
686
- m.status === 200 && s(m.data);
686
+ m.status === 200 && n(m.data);
687
687
  } catch {
688
688
  }
689
689
  })();
690
- }, [e, r, l]), /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: Te, children: /* @__PURE__ */ t(ro, { isAuthenticated: n, stats: a }) });
691
- }, Ie = ({
690
+ }, [e, r, l]), /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: Te, children: /* @__PURE__ */ t(ro, { isAuthenticated: s, stats: a }) });
691
+ }, xe = ({
692
692
  showConfirmation: e,
693
693
  setShowConfirmation: o,
694
694
  action: a,
695
- children: s,
696
- customStrings: n
695
+ children: n,
696
+ customStrings: s
697
697
  }) => /* @__PURE__ */ t(
698
698
  F,
699
699
  {
700
700
  kind: "messagebox",
701
701
  open: e,
702
702
  onOpenChange: o,
703
- title: n.title,
703
+ title: s.title,
704
704
  footer: /* @__PURE__ */ d(re, { columnGap: 2, alignHorizontal: "flex-end", children: [
705
705
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
706
- O,
706
+ z,
707
707
  {
708
708
  mode: "dark",
709
709
  variant: "secondary",
@@ -711,11 +711,11 @@ const oo = ({ stats: e }) => {
711
711
  onClick: () => {
712
712
  o(!1);
713
713
  },
714
- children: n.cancelAction
714
+ children: s.cancelAction
715
715
  }
716
716
  ) }),
717
717
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
718
- O,
718
+ z,
719
719
  {
720
720
  mode: "dark",
721
721
  variant: "danger",
@@ -723,44 +723,44 @@ const oo = ({ stats: e }) => {
723
723
  onClick: () => {
724
724
  o(!1), a();
725
725
  },
726
- children: n.confirmAction
726
+ children: s.confirmAction
727
727
  }
728
728
  ) })
729
729
  ] }),
730
- children: s
730
+ children: n
731
731
  }
732
732
  );
733
733
  var io = typeof window < "u", lo = function(e, o) {
734
734
  return io ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
735
735
  }, uo = function(e, o) {
736
- var a = T(lo(e)), s = a[0], n = a[1];
737
- return _(function() {
736
+ var a = T(lo(e)), n = a[0], s = a[1];
737
+ return D(function() {
738
738
  var r = !0, l = window.matchMedia(e), m = function() {
739
- r && n(!!l.matches);
739
+ r && s(!!l.matches);
740
740
  };
741
- return l.addEventListener("change", m), n(l.matches), function() {
741
+ return l.addEventListener("change", m), s(l.matches), function() {
742
742
  r = !1, l.removeEventListener("change", m);
743
743
  };
744
- }, [e]), s;
744
+ }, [e]), n;
745
745
  };
746
- const mo = async (e, o, a, s) => {
746
+ const mo = async (e, o, a, n) => {
747
747
  try {
748
- const n = await R({
749
- accessToken: s,
750
- type: H.GET_CHAT,
748
+ const s = await H({
749
+ accessToken: n,
750
+ type: L.GET_CHAT,
751
751
  params: {
752
752
  id: e.id
753
753
  }
754
754
  });
755
- n.status === 200 && (o({
755
+ s.status === 200 && (o({
756
756
  type: je
757
757
  }), o({
758
758
  type: Ye,
759
759
  payload: {
760
760
  id: e.id,
761
- model: n.data.model,
762
- usage: n.data.usage,
763
- messages: n.data.messages
761
+ model: s.data.model,
762
+ usage: s.data.usage,
763
+ messages: s.data.messages
764
764
  }
765
765
  }), a(!1));
766
766
  } catch {
@@ -772,23 +772,23 @@ const mo = async (e, o, a, s) => {
772
772
  filteredHistory: e,
773
773
  setFilteredHistory: o,
774
774
  dispatch: a,
775
- onOpenChange: s
775
+ onOpenChange: n
776
776
  }) => {
777
777
  var k;
778
- const { user: n, getAccessToken: r } = V(), l = Y({
778
+ const { user: s, getAccessToken: r } = V(), l = Y({
779
779
  id: 0,
780
780
  timestamp: "",
781
781
  message: ""
782
- }), [m, c] = T(!1), i = uo("(min-width: 480px)"), { state: u, dispatch: g } = L(Se), [, N] = ie({
782
+ }), [m, c] = T(!1), i = uo("(min-width: 480px)"), { state: u, dispatch: g } = _(Se), [, N] = ie({
783
783
  key: ce + Ue,
784
784
  initialValue: u.sortDirection
785
785
  }), C = e.data.sort(
786
786
  (h, S) => {
787
787
  switch (u.sortedCell) {
788
788
  case "timestamp":
789
- if (u.sortDirection === I.ASC)
789
+ if (u.sortDirection === x.ASC)
790
790
  return new Date(h[u.sortedCell]).getTime() - new Date(S[u.sortedCell]).getTime();
791
- if (u.sortDirection === I.DESC)
791
+ if (u.sortDirection === x.DESC)
792
792
  return new Date(S[u.sortedCell]).getTime() - new Date(h[u.sortedCell]).getTime();
793
793
  break;
794
794
  default:
@@ -799,29 +799,29 @@ const mo = async (e, o, a, s) => {
799
799
  ), p = (h) => {
800
800
  switch (u.sortDirection) {
801
801
  case !1:
802
- N(I.ASC), g({
802
+ N(x.ASC), g({
803
803
  type: oe,
804
804
  payload: {
805
805
  sortedCell: h,
806
- sortDirection: I.ASC
806
+ sortDirection: x.ASC
807
807
  }
808
808
  });
809
809
  break;
810
- case I.ASC:
811
- N(I.DESC), g({
810
+ case x.ASC:
811
+ N(x.DESC), g({
812
812
  type: oe,
813
813
  payload: {
814
814
  sortedCell: h,
815
- sortDirection: I.DESC
815
+ sortDirection: x.DESC
816
816
  }
817
817
  });
818
818
  break;
819
819
  default:
820
- N(I.ASC), g({
820
+ N(x.ASC), g({
821
821
  type: oe,
822
822
  payload: {
823
823
  sortedCell: h,
824
- sortDirection: I.ASC
824
+ sortDirection: x.ASC
825
825
  }
826
826
  });
827
827
  break;
@@ -829,18 +829,18 @@ const mo = async (e, o, a, s) => {
829
829
  };
830
830
  return /* @__PURE__ */ d(w, { children: [
831
831
  /* @__PURE__ */ d(
832
- Ie,
832
+ xe,
833
833
  {
834
834
  showConfirmation: m,
835
835
  setShowConfirmation: c,
836
836
  action: async () => {
837
837
  const h = l.current;
838
838
  try {
839
- const S = await R({
839
+ const S = await H({
840
840
  accessToken: await r(),
841
- type: H.DELETE_CHAT,
841
+ type: L.DELETE_CHAT,
842
842
  params: {
843
- userId: (n == null ? void 0 : n.username) || "",
843
+ userId: (s == null ? void 0 : s.username) || "",
844
844
  id: h.id
845
845
  }
846
846
  });
@@ -905,25 +905,25 @@ const mo = async (e, o, a, s) => {
905
905
  /* @__PURE__ */ t(M, { className: "max-w-[100px] text-white sm:max-w-full", children: fe(h.messages) }),
906
906
  /* @__PURE__ */ t(M, { children: /* @__PURE__ */ d("div", { className: "flex justify-end gap-2", children: [
907
907
  /* @__PURE__ */ t(
908
- z,
908
+ B,
909
909
  {
910
910
  focusMode: "alt-system",
911
911
  noBorder: !0,
912
912
  label: "Restore chat",
913
913
  onClick: async () => {
914
- const x = await r();
914
+ const v = await r();
915
915
  mo(
916
916
  h,
917
917
  a,
918
- s,
919
- x
918
+ n,
919
+ v
920
920
  );
921
921
  },
922
922
  children: /* @__PURE__ */ t(eo, { className: "h-3 w-3", monotone: !0 })
923
923
  }
924
924
  ),
925
925
  /* @__PURE__ */ t(
926
- z,
926
+ B,
927
927
  {
928
928
  focusMode: "alt-system",
929
929
  noBorder: !0,
@@ -951,7 +951,7 @@ const mo = async (e, o, a, s) => {
951
951
  function ge(e, o) {
952
952
  return o ? e.filter(
953
953
  (a) => a.messages.some(
954
- (s) => s.content !== null && s.content.toLowerCase().includes(o.toLowerCase())
954
+ (n) => n.content !== null && n.content.toLowerCase().includes(o.toLowerCase())
955
955
  )
956
956
  ) : e;
957
957
  }
@@ -959,7 +959,7 @@ const po = ({
959
959
  onOpenChange: e,
960
960
  historyData: o
961
961
  }) => {
962
- const { isAuthenticated: a } = V(), s = Y(null), { dispatch: n } = L(Z), { state: r, dispatch: l } = L(Se), [, m] = ie({
962
+ const { isAuthenticated: a } = V(), n = Y(null), { dispatch: s } = _(Z), { state: r, dispatch: l } = _(Se), [, m] = ie({
963
963
  key: ce + We,
964
964
  initialValue: r.searchString
965
965
  }), c = rt(() => o, [o]), [i, u] = T({
@@ -977,7 +977,7 @@ const po = ({
977
977
  }, C = async (p) => {
978
978
  p.preventDefault();
979
979
  };
980
- return _(() => {
980
+ return D(() => {
981
981
  const p = ge(
982
982
  o,
983
983
  r.searchString
@@ -989,7 +989,7 @@ const po = ({
989
989
  /* @__PURE__ */ t("form", { autoComplete: "off", onSubmit: C, children: /* @__PURE__ */ t(
990
990
  Xe,
991
991
  {
992
- ref: s,
992
+ ref: n,
993
993
  defaultValue: r.searchString,
994
994
  focusMode: "light",
995
995
  name: "Search",
@@ -998,7 +998,7 @@ const po = ({
998
998
  spacing: { t: 2, b: 2 },
999
999
  ...r.searchString && {
1000
1000
  rightElement: /* @__PURE__ */ t(
1001
- O,
1001
+ z,
1002
1002
  {
1003
1003
  disabled: !r.searchString,
1004
1004
  mode: "dark",
@@ -1006,7 +1006,7 @@ const po = ({
1006
1006
  size: "small",
1007
1007
  onClick: () => {
1008
1008
  var p;
1009
- g(""), (p = s.current) != null && p.value && (s.current.value = "", s.current.focus());
1009
+ g(""), (p = n.current) != null && p.value && (n.current.value = "", n.current.focus());
1010
1010
  },
1011
1011
  children: "Reset"
1012
1012
  }
@@ -1019,7 +1019,7 @@ const po = ({
1019
1019
  {
1020
1020
  filteredHistory: i,
1021
1021
  setFilteredHistory: u,
1022
- dispatch: n,
1022
+ dispatch: s,
1023
1023
  onOpenChange: e
1024
1024
  }
1025
1025
  ) })
@@ -1032,7 +1032,7 @@ const po = ({
1032
1032
  open: e,
1033
1033
  onOpenChange: o
1034
1034
  }) => {
1035
- const { getAccessToken: a, user: s } = V(), [n, r] = T({
1035
+ const { getAccessToken: a, user: n } = V(), [s, r] = T({
1036
1036
  loaded: !1,
1037
1037
  content: "",
1038
1038
  loadingLocation: !1,
@@ -1040,13 +1040,13 @@ const po = ({
1040
1040
  }), l = async (c) => {
1041
1041
  c.preventDefault();
1042
1042
  try {
1043
- await R({
1043
+ await H({
1044
1044
  accessToken: await a(),
1045
- type: H.SET_CUSTOM_INSTRUCTIONS,
1045
+ type: L.SET_CUSTOM_INSTRUCTIONS,
1046
1046
  params: {
1047
- user: s == null ? void 0 : s.username,
1048
- instructions: n.content,
1049
- location: n.location
1047
+ user: n == null ? void 0 : n.username,
1048
+ instructions: s.content,
1049
+ location: s.location
1050
1050
  }
1051
1051
  });
1052
1052
  } catch {
@@ -1054,13 +1054,13 @@ const po = ({
1054
1054
  }, m = async () => {
1055
1055
  r((c) => ({
1056
1056
  ...c,
1057
- location: "",
1057
+ location: "...",
1058
1058
  loadingLocation: !0
1059
1059
  }));
1060
1060
  try {
1061
- const c = Date.now(), i = await Qe(), u = await R({
1061
+ const c = Date.now(), i = await Qe(), u = await H({
1062
1062
  accessToken: await a(),
1063
- type: H.GET_LOCATION,
1063
+ type: L.GET_LOCATION,
1064
1064
  params: {
1065
1065
  latitude: i.latitude,
1066
1066
  longitude: i.longitude
@@ -1084,8 +1084,8 @@ const po = ({
1084
1084
  } catch {
1085
1085
  }
1086
1086
  };
1087
- return _(() => {
1088
- if (!e || !s) {
1087
+ return D(() => {
1088
+ if (!e || !n) {
1089
1089
  r({
1090
1090
  loaded: !1,
1091
1091
  loadingLocation: !1,
@@ -1096,11 +1096,11 @@ const po = ({
1096
1096
  }
1097
1097
  (async () => {
1098
1098
  try {
1099
- const c = await R({
1099
+ const c = await H({
1100
1100
  accessToken: await a(),
1101
- type: H.GET_CUSTOM_INSTRUCTIONS,
1101
+ type: L.GET_CUSTOM_INSTRUCTIONS,
1102
1102
  params: {
1103
- user: s.username
1103
+ user: n.username
1104
1104
  }
1105
1105
  });
1106
1106
  c.status === 200 && r((i) => ({
@@ -1112,7 +1112,7 @@ const po = ({
1112
1112
  } catch {
1113
1113
  }
1114
1114
  })();
1115
- }, [s, e]), /* @__PURE__ */ t(w, { children: n.loaded && /* @__PURE__ */ d(
1115
+ }, [n, e]), /* @__PURE__ */ t(w, { children: s.loaded && /* @__PURE__ */ d(
1116
1116
  F,
1117
1117
  {
1118
1118
  open: e,
@@ -1120,7 +1120,7 @@ const po = ({
1120
1120
  title: "Engine Fine Tuning",
1121
1121
  footer: /* @__PURE__ */ d(re, { columnGap: 2, alignHorizontal: "flex-end", children: [
1122
1122
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
1123
- O,
1123
+ z,
1124
1124
  {
1125
1125
  mode: "dark",
1126
1126
  variant: "secondary",
@@ -1132,7 +1132,7 @@ const po = ({
1132
1132
  }
1133
1133
  ) }),
1134
1134
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
1135
- O,
1135
+ z,
1136
1136
  {
1137
1137
  mode: "dark",
1138
1138
  variant: "danger",
@@ -1145,66 +1145,81 @@ const po = ({
1145
1145
  ) })
1146
1146
  ] }),
1147
1147
  children: [
1148
- /* @__PURE__ */ t("h2", { className: "mt-0", children: "Custom Instructions" }),
1149
- /* @__PURE__ */ t("p", { children: "What would you like Sassy Saint to know about you to provide better responses?" }),
1150
- /* @__PURE__ */ t(
1151
- he,
1148
+ /* @__PURE__ */ d(
1149
+ R,
1152
1150
  {
1153
- mode: "dark",
1154
- focusMode: "light",
1155
- autoCapitalize: "off",
1156
- autoComplete: "off",
1157
- autoCorrect: "off",
1158
- name: "customInstructions",
1159
- label: "Custom Instructions",
1160
- value: n.content,
1161
- onChange: (c) => {
1162
- r((i) => ({
1163
- ...i,
1164
- loaded: !0,
1165
- content: c.target.value
1166
- }));
1167
- },
1168
- helperText: "Press ENTER to add a new line."
1169
- }
1170
- ),
1171
- /* @__PURE__ */ t("h2", { children: "Location" }),
1172
- /* @__PURE__ */ t("p", { children: "You can share your location to receive customized responses based on your area." }),
1173
- /* @__PURE__ */ t(
1174
- he,
1175
- {
1176
- mode: "dark",
1177
- focusMode: "light",
1178
- name: "location",
1179
- label: n.loadingLocation ? "..." : "Location",
1180
- value: n.location,
1181
- onChange: (c) => {
1182
- r((i) => ({
1183
- ...i,
1184
- loaded: !0,
1185
- location: c.target.value
1186
- }));
1187
- },
1188
- helperText: "Enter your location or press auto-detect."
1151
+ header: "Custom Instructions",
1152
+ className: "prose-dark dark:prose-lighter",
1153
+ children: [
1154
+ /* @__PURE__ */ t("p", { children: "What would you like Sassy Saint to know about you to provide better responses?" }),
1155
+ /* @__PURE__ */ t(
1156
+ he,
1157
+ {
1158
+ mode: "alt-system",
1159
+ autoCapitalize: "off",
1160
+ autoComplete: "off",
1161
+ autoCorrect: "off",
1162
+ name: "customInstructions",
1163
+ label: "Custom Instructions",
1164
+ value: s.content,
1165
+ onChange: (c) => {
1166
+ r((i) => ({
1167
+ ...i,
1168
+ loaded: !0,
1169
+ content: c.target.value
1170
+ }));
1171
+ },
1172
+ helperText: "Press ENTER to add a new line."
1173
+ }
1174
+ )
1175
+ ]
1189
1176
  }
1190
1177
  ),
1191
- /* @__PURE__ */ t(
1192
- O,
1178
+ /* @__PURE__ */ d(
1179
+ R,
1193
1180
  {
1194
- spacing: { t: 2 },
1195
- noBorder: !0,
1196
- mode: "dark",
1197
- focusMode: "light",
1198
- disabled: n.loadingLocation,
1199
- onClick: m,
1200
- children: n.loadingLocation ? "Detecting..." : "Auto-detect"
1181
+ header: "Location",
1182
+ className: "prose-dark dark:prose-lighter",
1183
+ spacing: { t: 4 },
1184
+ children: [
1185
+ /* @__PURE__ */ t("p", { children: "You can share your location to receive customized responses based on your area." }),
1186
+ /* @__PURE__ */ t(
1187
+ he,
1188
+ {
1189
+ mode: "alt-system",
1190
+ name: "location",
1191
+ label: "Location",
1192
+ value: s.location,
1193
+ onChange: (c) => {
1194
+ r((i) => ({
1195
+ ...i,
1196
+ loaded: !0,
1197
+ location: c.target.value
1198
+ }));
1199
+ },
1200
+ helperText: "Enter your location or press auto-detect.",
1201
+ rightElement: /* @__PURE__ */ t(
1202
+ z,
1203
+ {
1204
+ size: "small",
1205
+ noBorder: !0,
1206
+ mode: "alt-system",
1207
+ focusMode: "alt-system",
1208
+ disabled: s.loadingLocation,
1209
+ onClick: m,
1210
+ children: s.loadingLocation ? "Detecting..." : "Auto-detect"
1211
+ }
1212
+ )
1213
+ }
1214
+ )
1215
+ ]
1201
1216
  }
1202
1217
  )
1203
1218
  ]
1204
1219
  }
1205
1220
  ) });
1206
1221
  }, Co = () => {
1207
- const { isAuthenticated: e, user: o, registeringForPasskey: a, authenticationType: s } = V(), [n, r] = ie({
1222
+ const { isAuthenticated: e, user: o, registeringForPasskey: a, authenticationType: n } = V(), [s, r] = ie({
1208
1223
  key: ce + Ze,
1209
1224
  initialValue: !1
1210
1225
  }), [l, m] = T(!1), c = K(), i = (o == null ? void 0 : o.username) || "", u = (N) => {
@@ -1221,7 +1236,7 @@ const po = ({
1221
1236
  }
1222
1237
  ),
1223
1238
  /* @__PURE__ */ d(
1224
- B,
1239
+ R,
1225
1240
  {
1226
1241
  header: f.PREFERENCES.TITLE,
1227
1242
  className: "prose-dark dark:prose-lighter",
@@ -1237,12 +1252,12 @@ const po = ({
1237
1252
  label: f.PREFERENCES.ENGINE_DETAILS,
1238
1253
  name: f.PREFERENCES.ENGINE_DETAILS,
1239
1254
  onChange: u,
1240
- checked: n
1255
+ checked: s
1241
1256
  }
1242
1257
  )
1243
1258
  }),
1244
1259
  /* @__PURE__ */ t(
1245
- z,
1260
+ B,
1246
1261
  {
1247
1262
  spacing: { t: 2 },
1248
1263
  size: "small",
@@ -1254,8 +1269,8 @@ const po = ({
1254
1269
  ]
1255
1270
  }
1256
1271
  ),
1257
- s !== et.PASSKEY && /* @__PURE__ */ d(
1258
- B,
1272
+ n !== et.PASSKEY && /* @__PURE__ */ d(
1273
+ R,
1259
1274
  {
1260
1275
  spacing: { t: 4 },
1261
1276
  className: "prose-dark dark:prose-lighter",
@@ -1266,7 +1281,7 @@ const po = ({
1266
1281
  children: [
1267
1282
  /* @__PURE__ */ t("p", { children: f.PREFERENCES.PASSKEY_INSTRUCTIONS }),
1268
1283
  /* @__PURE__ */ t(
1269
- z,
1284
+ B,
1270
1285
  {
1271
1286
  size: "small",
1272
1287
  spacing: { t: 2 },
@@ -1283,15 +1298,15 @@ const po = ({
1283
1298
  open: e,
1284
1299
  onOpenChange: o
1285
1300
  }) => /* @__PURE__ */ t(F, { open: e, onOpenChange: o, title: tt, children: /* @__PURE__ */ t(Co, {}) }), ko = () => {
1286
- const { state: e } = L(Z), [o, a] = T(!1), [s, n] = T(!1), [r, l] = T(!1), [m, c] = T(!1), [i, u] = T([]), [g, N] = T(!1), [C, p] = T({
1301
+ const { state: e } = _(Z), [o, a] = T(!1), [n, s] = T(!1), [r, l] = T(!1), [m, c] = T(!1), [i, u] = T([]), [g, N] = T(!1), [C, p] = T({
1287
1302
  done: !1,
1288
1303
  progress: !1,
1289
1304
  timestamp: Date.now()
1290
1305
  }), { logout: y, getAccessToken: k, user: h } = V(), S = () => {
1291
1306
  a(!o);
1292
1307
  }, E = () => {
1293
- n(!s);
1294
- }, x = () => {
1308
+ s(!n);
1309
+ }, v = () => {
1295
1310
  l(!r);
1296
1311
  }, ee = () => {
1297
1312
  c(!m);
@@ -1304,9 +1319,9 @@ const po = ({
1304
1319
  timestamp: q
1305
1320
  });
1306
1321
  try {
1307
- const $ = await R({
1322
+ const $ = await H({
1308
1323
  accessToken: await k(),
1309
- type: H.GET_CHATS,
1324
+ type: L.GET_CHATS,
1310
1325
  params: {
1311
1326
  userId: h.username
1312
1327
  }
@@ -1329,7 +1344,7 @@ const po = ({
1329
1344
  };
1330
1345
  return /* @__PURE__ */ d(w, { children: [
1331
1346
  /* @__PURE__ */ t(
1332
- Ie,
1347
+ xe,
1333
1348
  {
1334
1349
  showConfirmation: g,
1335
1350
  setShowConfirmation: N,
@@ -1343,7 +1358,7 @@ const po = ({
1343
1358
  }
1344
1359
  ),
1345
1360
  /* @__PURE__ */ t(To, { open: o, onOpenChange: a }),
1346
- /* @__PURE__ */ t(co, { open: s, onOpenChange: n }),
1361
+ /* @__PURE__ */ t(co, { open: n, onOpenChange: s }),
1347
1362
  /* @__PURE__ */ t(
1348
1363
  fo,
1349
1364
  {
@@ -1358,12 +1373,12 @@ const po = ({
1358
1373
  {
1359
1374
  mode: "dark",
1360
1375
  focusMode: "light",
1361
- trigger: /* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(to, {}) }),
1376
+ trigger: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(to, {}) }),
1362
1377
  defaultPlacement: "bottom-end",
1363
1378
  onOpenChange: te,
1364
1379
  children: [
1365
1380
  /* @__PURE__ */ t(
1366
- D,
1381
+ O,
1367
1382
  {
1368
1383
  label: "Profile",
1369
1384
  onClick: S,
@@ -1371,7 +1386,7 @@ const po = ({
1371
1386
  }
1372
1387
  ),
1373
1388
  /* @__PURE__ */ t(
1374
- D,
1389
+ O,
1375
1390
  {
1376
1391
  label: Te,
1377
1392
  onClick: E,
@@ -1379,15 +1394,15 @@ const po = ({
1379
1394
  }
1380
1395
  ),
1381
1396
  /* @__PURE__ */ t(
1382
- D,
1397
+ O,
1383
1398
  {
1384
1399
  label: "History",
1385
- onClick: x,
1400
+ onClick: v,
1386
1401
  icon: /* @__PURE__ */ t(Jt, {})
1387
1402
  }
1388
1403
  ),
1389
1404
  /* @__PURE__ */ t(
1390
- D,
1405
+ O,
1391
1406
  {
1392
1407
  label: "About",
1393
1408
  onClick: ee,
@@ -1397,7 +1412,7 @@ const po = ({
1397
1412
  e && e.id && !e.isComponent && /* @__PURE__ */ d(w, { children: [
1398
1413
  /* @__PURE__ */ t(Mt, {}),
1399
1414
  /* @__PURE__ */ t(
1400
- D,
1415
+ O,
1401
1416
  {
1402
1417
  label: "Log out",
1403
1418
  onClick: X,