@versini/sassysaint 6.3.1 → 6.4.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.
@@ -1,20 +1,20 @@
1
1
  import { jsxs as i, jsx as e, Fragment as z } from "react/jsx-runtime";
2
- import { f as V, un as F, R as B, CARDS as N, renderDataAsList as de, pluralize as ue, ABOUT_TITLE as Qe, INFINITE_SCROLL_LIMIT as Se, INFINITE_SCROLL_THRESHOLD as ve, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_SORT as Je, Y as oe, ACTION_RESET as Ze, ACTION_RESTORE as et, ACTION_SORT as Ae, LOCAL_STORAGE_SEARCH as tt, HISTORY_TITLE as rt, ye as be, C as X, ACTION_SEARCH as at, debounce as nt, M as ot, L as q, j as O, l as Ie, durationFormatter as st, PROFILE_TITLE as lt, PROMPTS_DESCRIPTION as ct, DEFAULT_AI_ENGINE as it, LOCAL_STORAGE_CHAT_DETAILS as dt, SETTINGS_TITLE as ut, ENGINE_OPENAI as W, ENGINE_ANTHROPIC as ee, APP_NAME as mt, getCurrentGeoLocation as ht, LOG_OUT as _e } from "./index.BB_tYz2G.js";
3
- import { i as me, useServerCapabilities as ft, Ie as ce, HistoryContext as Me, E as Ce, ConfirmationPanel as Pe, ge as pt, he as gt, ue as ge, le as P, ye as yt, me as bt, p as xt, z as kt, be as Ct, serviceCall as se, SERVICE_TYPES as le, p$1 as te, AppContext as Oe, useChatsHistory as Et, useUserChatStats as Tt, useUserPreferences as ze, m as Nt, _e as wt, me$1 as St, R as re, P as vt } from "./App.DzCna0NY.js";
4
- import At, { useRef as S, useState as C, useContext as he, useCallback as Be, useEffect as H, Fragment as It, useLayoutEffect as ae, useMemo as He, useId as _t, useReducer as Rt } from "react";
2
+ import { f as V, un as F, R as B, CARDS as N, renderDataAsList as de, pluralize as ue, ABOUT_TITLE as Qe, INFINITE_SCROLL_LIMIT as Se, INFINITE_SCROLL_THRESHOLD as ve, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_SORT as Je, te as oe, ACTION_RESET as Ze, ACTION_RESTORE as et, ACTION_SORT as Ae, LOCAL_STORAGE_SEARCH as tt, HISTORY_TITLE as rt, fe as be, C as X, ACTION_SEARCH as nt, debounce as at, M as ot, L as q, j as O, l as Ie, durationFormatter as st, PROFILE_TITLE as lt, PROMPTS_DESCRIPTION as ct, DEFAULT_AI_ENGINE as it, LOCAL_STORAGE_CHAT_DETAILS as dt, SETTINGS_TITLE as ut, ENGINE_OPENAI as W, ENGINE_ANTHROPIC as ee, APP_NAME as mt, getCurrentGeoLocation as ht, LOG_OUT as _e } from "./index.Qmbvv1pV.js";
3
+ import { i as me, useServerCapabilities as ft, Ye as ce, HistoryContext as Me, E as Ce, ConfirmationPanel as Pe, Ue as pt, Pe as gt, Fe as ge, Me as P, De as yt, We as bt, p as xt, z as kt, je as Ct, serviceCall as se, SERVICE_TYPES as le, C as te, AppContext as Oe, useChatsHistory as Et, useUserChatStats as Tt, useUserPreferences as ze, m as Nt, _e as wt, me as St, R as re, P as vt } from "./App.BP43Jj_A.js";
4
+ import At, { useRef as S, useState as C, useContext as he, useCallback as Be, useEffect as H, Fragment as It, useLayoutEffect as ne, useMemo as He, useId as _t, useReducer as Rt } from "react";
5
5
  import y from "clsx";
6
6
  const Lt = ({
7
7
  className: t,
8
- viewBox: n,
8
+ viewBox: a,
9
9
  title: o,
10
- monotone: a,
10
+ monotone: n,
11
11
  ...r
12
12
  }) => /* @__PURE__ */ i(
13
13
  V,
14
14
  {
15
15
  defaultViewBox: "0 0 512 512",
16
16
  size: "size-5",
17
- viewBox: n,
17
+ viewBox: a,
18
18
  className: t,
19
19
  title: o || "Back",
20
20
  ...r,
@@ -23,7 +23,7 @@ const Lt = ({
23
23
  "path",
24
24
  {
25
25
  d: "M66.6 320c0 1.8.1 3.5.4 5.3C84.9 431.3 177 512 288 512c123.7 0 224-100.3 224-224 0-111-80.7-203.1-186.7-220.9-1.8-.3-3.6-.4-5.3-.4-15.3 0-28.9 11.1-31.5 26.7-2.9 17.4 8.8 33.9 26.3 36.9C390.4 142.9 448 208.8 448 288c0 88.4-71.6 160-160 160-79.2 0-145.1-57.6-157.8-133.3-2.9-17.4-19.4-29.2-36.9-26.3-15.6 2.6-26.7 16.2-26.7 31.5z",
26
- opacity: a ? "1" : "0.4"
26
+ opacity: n ? "1" : "0.4"
27
27
  }
28
28
  ),
29
29
  /* @__PURE__ */ e("path", { d: "M32 0h160c17.7 0 32 14.3 32 32s-14.3 32-32 32h-82.7l233.3 233.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32S0 209.7 0 192V32C0 14.3 14.3 0 32 0" })
@@ -31,16 +31,16 @@ const Lt = ({
31
31
  }
32
32
  ), Mt = ({
33
33
  className: t,
34
- viewBox: n,
34
+ viewBox: a,
35
35
  title: o,
36
- monotone: a,
36
+ monotone: n,
37
37
  ...r
38
38
  }) => /* @__PURE__ */ i(
39
39
  V,
40
40
  {
41
41
  defaultViewBox: "0 0 448 512",
42
42
  size: "size-5",
43
- viewBox: n,
43
+ viewBox: a,
44
44
  className: t,
45
45
  title: o || "Delete",
46
46
  ...r,
@@ -49,7 +49,7 @@ const Lt = ({
49
49
  "path",
50
50
  {
51
51
  d: "M32 96v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16z",
52
- opacity: a ? "1" : "0.4"
52
+ opacity: n ? "1" : "0.4"
53
53
  }
54
54
  ),
55
55
  /* @__PURE__ */ e("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
@@ -57,16 +57,16 @@ const Lt = ({
57
57
  }
58
58
  ), Pt = ({
59
59
  className: t,
60
- viewBox: n,
60
+ viewBox: a,
61
61
  title: o,
62
- monotone: a,
62
+ monotone: n,
63
63
  ...r
64
64
  }) => /* @__PURE__ */ i(
65
65
  V,
66
66
  {
67
67
  defaultViewBox: "0 0 512 512",
68
68
  size: "size-5",
69
- viewBox: n,
69
+ viewBox: a,
70
70
  className: t,
71
71
  title: o || "History",
72
72
  ...r,
@@ -75,7 +75,7 @@ const Lt = ({
75
75
  "path",
76
76
  {
77
77
  d: "M0 57.9V168c0 13.3 10.7 24 24 24h110.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 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.4-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.9",
78
- opacity: a ? "1" : "0.4"
78
+ opacity: n ? "1" : "0.4"
79
79
  }
80
80
  ),
81
81
  /* @__PURE__ */ e("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
@@ -83,16 +83,16 @@ const Lt = ({
83
83
  }
84
84
  ), Ot = ({
85
85
  className: t,
86
- viewBox: n,
86
+ viewBox: a,
87
87
  title: o,
88
- monotone: a,
88
+ monotone: n,
89
89
  ...r
90
90
  }) => /* @__PURE__ */ i(
91
91
  V,
92
92
  {
93
93
  defaultViewBox: "0 0 512 512",
94
94
  size: "size-5",
95
- viewBox: n,
95
+ viewBox: a,
96
96
  className: t,
97
97
  title: o || "Info",
98
98
  ...r,
@@ -109,16 +109,16 @@ const Lt = ({
109
109
  }
110
110
  ), zt = ({
111
111
  className: t,
112
- viewBox: n,
112
+ viewBox: a,
113
113
  title: o,
114
- monotone: a,
114
+ monotone: n,
115
115
  ...r
116
116
  }) => /* @__PURE__ */ i(
117
117
  V,
118
118
  {
119
119
  defaultViewBox: "0 0 576 512",
120
120
  size: "size-5",
121
- viewBox: n,
121
+ viewBox: a,
122
122
  className: t,
123
123
  title: o || "Profile",
124
124
  ...r,
@@ -135,16 +135,16 @@ const Lt = ({
135
135
  }
136
136
  ), Bt = ({
137
137
  className: t,
138
- viewBox: n,
138
+ viewBox: a,
139
139
  title: o,
140
- monotone: a,
140
+ monotone: n,
141
141
  ...r
142
142
  }) => /* @__PURE__ */ i(
143
143
  V,
144
144
  {
145
145
  defaultViewBox: "0 0 512 512",
146
146
  size: "size-5",
147
- viewBox: n,
147
+ viewBox: a,
148
148
  className: t,
149
149
  title: o || "Restore",
150
150
  ...r,
@@ -153,7 +153,7 @@ const Lt = ({
153
153
  "path",
154
154
  {
155
155
  d: "M128 80v16h64V80c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v224c0 8.8-7.2 16-16 16h-16v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80",
156
- opacity: a ? "1" : "0.4"
156
+ opacity: n ? "1" : "0.4"
157
157
  }
158
158
  ),
159
159
  /* @__PURE__ */ e("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
@@ -161,16 +161,16 @@ const Lt = ({
161
161
  }
162
162
  ), Ht = ({
163
163
  className: t,
164
- viewBox: n,
164
+ viewBox: a,
165
165
  title: o,
166
- monotone: a,
166
+ monotone: n,
167
167
  ...r
168
168
  }) => /* @__PURE__ */ e(
169
169
  V,
170
170
  {
171
171
  defaultViewBox: "0 0 448 512",
172
172
  size: "size-5",
173
- viewBox: n,
173
+ viewBox: a,
174
174
  className: t,
175
175
  title: o || "Settings",
176
176
  ...r,
@@ -178,16 +178,16 @@ const Lt = ({
178
178
  }
179
179
  ), Dt = ({
180
180
  className: t,
181
- viewBox: n,
181
+ viewBox: a,
182
182
  title: o,
183
- monotone: a,
183
+ monotone: n,
184
184
  ...r
185
185
  }) => /* @__PURE__ */ i(
186
186
  V,
187
187
  {
188
188
  defaultViewBox: "0 0 512 512",
189
189
  size: "size-5",
190
- viewBox: n,
190
+ viewBox: a,
191
191
  className: t,
192
192
  title: o || "Sliders",
193
193
  ...r,
@@ -196,29 +196,29 @@ const Lt = ({
196
196
  "path",
197
197
  {
198
198
  d: "M0 96c0-17.7 14.3-32 32-32h86.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h246.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m0 160c0-17.7 14.3-32 32-32h54.7c-2.1 4.9-3.8 10.1-4.9 15.4-.6 2.7-1 5.4-1.3 8.2-.1 1.4-.3 2.8-.3 4.2s-.1 2.8-.1 4.2c0 11.4 2.4 22.2 6.7 32H32c-17.7 0-32-14.3-32-32m233.3-32H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H233.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm32-320H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H265.3c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32zm160 160H480c17.7 0 32 14.3 32 32s-14.3 32-32 32h-54.7c2.1-4.9 3.8-10.1 4.9-15.4.6-2.7 1-5.4 1.3-8.2.1-1.4.3-2.8.3-4.2s.1-2.8.1-4.2c0-11.4-2.4-22.2-6.7-32z",
199
- opacity: a ? "1" : "0.4"
199
+ opacity: n ? "1" : "0.4"
200
200
  }
201
201
  ),
202
202
  /* @__PURE__ */ e("path", { d: "M128 416a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0m80-160a32 32 0 1 1 64 0 32 32 0 1 1-64 0m112 0a80 80 0 1 0-160 0 80 80 0 1 0 160 0M192 128a32 32 0 1 1 0-64 32 32 0 1 1 0 64m0-112a80 80 0 1 0 0 160 80 80 0 1 0 0-160" })
203
203
  ]
204
204
  }
205
205
  ), $t = () => {
206
- const { getAccessToken: t } = F(), n = me(), o = me(), {
207
- data: a,
206
+ const { getAccessToken: t } = F(), a = me(), o = me(), {
207
+ data: n,
208
208
  error: r,
209
209
  isLoading: c
210
210
  } = ft({
211
211
  getAccessToken: t
212
- }), s = (a == null ? void 0 : a.plugins) || [], d = (a == null ? void 0 : a.version) || "", u = (a == null ? void 0 : a.models) || [];
212
+ }), s = (n == null ? void 0 : n.plugins) || [], d = (n == null ? void 0 : n.version) || "", u = (n == null ? void 0 : n.models) || [];
213
213
  return /* @__PURE__ */ i(z, { children: [
214
214
  /* @__PURE__ */ e("div", { className: "mb-4", children: /* @__PURE__ */ e(
215
215
  B,
216
216
  {
217
217
  header: N.ABOUT.TITLE_CLIENT,
218
218
  className: "prose-dark dark:prose-lighter",
219
- children: de(n, {
220
- [N.ABOUT.VERSION]: "6.3.1",
221
- [N.ABOUT.BUILD_TIMESTAMP]: "01/24/2025 09:52 AM EST"
219
+ children: de(a, {
220
+ [N.ABOUT.VERSION]: "6.4.0",
221
+ [N.ABOUT.BUILD_TIMESTAMP]: "01/26/2025 12:48 PM EST"
222
222
  })
223
223
  }
224
224
  ) }),
@@ -237,19 +237,19 @@ const Lt = ({
237
237
  ] });
238
238
  }, Vt = ({
239
239
  open: t,
240
- onOpenChange: n
241
- }) => /* @__PURE__ */ e(ce, { open: t, onOpenChange: n, title: Qe, children: /* @__PURE__ */ e($t, {}) }), Ft = async (t, n, o, a) => {
240
+ onOpenChange: a
241
+ }) => /* @__PURE__ */ e(ce, { open: t, onOpenChange: a, title: Qe, children: /* @__PURE__ */ e($t, {}) }), Ft = async (t, a, o, n) => {
242
242
  try {
243
243
  const r = await se({
244
- accessToken: a,
244
+ accessToken: n,
245
245
  type: le.GET_CHAT,
246
246
  params: {
247
247
  id: t.id
248
248
  }
249
249
  });
250
- r.status === 200 && (n({
250
+ r.status === 200 && (a({
251
251
  type: Ze
252
- }), n({
252
+ }), a({
253
253
  type: et,
254
254
  payload: {
255
255
  id: t.id,
@@ -262,9 +262,9 @@ const Lt = ({
262
262
  }
263
263
  }, Gt = ({
264
264
  filteredHistory: t,
265
- dispatch: n,
265
+ dispatch: a,
266
266
  onOpenChange: o,
267
- mutate: a
267
+ mutate: n
268
268
  }) => {
269
269
  var A;
270
270
  const { user: r, getAccessToken: c } = F(), s = S(null), d = S({
@@ -307,7 +307,7 @@ const Lt = ({
307
307
  userId: (r == null ? void 0 : r.username) || "",
308
308
  id: m.id
309
309
  }
310
- }), a();
310
+ }), n();
311
311
  } catch {
312
312
  }
313
313
  }, g = Be((m) => {
@@ -419,7 +419,7 @@ const Lt = ({
419
419
  const L = await c();
420
420
  Ft(
421
421
  m,
422
- n,
422
+ a,
423
423
  o,
424
424
  L
425
425
  );
@@ -456,11 +456,11 @@ const Lt = ({
456
456
  ] });
457
457
  }, Ut = ({
458
458
  open: t,
459
- onOpenChange: n
459
+ onOpenChange: a
460
460
  }) => {
461
- const { getAccessToken: o, user: a } = F(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: u, mutate: f } = Et({
461
+ const { getAccessToken: o, user: n } = F(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: u, mutate: f } = Et({
462
462
  keys: [
463
- a == null ? void 0 : a.username,
463
+ n == null ? void 0 : n.username,
464
464
  s.searchString,
465
465
  s.sortDirection,
466
466
  (r == null ? void 0 : r.lastTriggeredTimestamp) || 0
@@ -475,13 +475,13 @@ const Lt = ({
475
475
  }, [u]);
476
476
  const h = async (g) => {
477
477
  b(g), d({
478
- type: at,
478
+ type: nt,
479
479
  payload: { searchString: g }
480
480
  });
481
- }, T = nt((g) => {
481
+ }, T = at((g) => {
482
482
  h(g.target.value.trim());
483
483
  }, 500);
484
- return /* @__PURE__ */ e(ce, { open: t, onOpenChange: n, title: rt, children: /* @__PURE__ */ i(z, { children: [
484
+ return /* @__PURE__ */ e(ce, { open: t, onOpenChange: a, title: rt, children: /* @__PURE__ */ i(z, { children: [
485
485
  /* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: async (g) => {
486
486
  g.preventDefault();
487
487
  }, children: /* @__PURE__ */ e(
@@ -524,13 +524,13 @@ const Lt = ({
524
524
  mutate: f,
525
525
  filteredHistory: x,
526
526
  dispatch: c,
527
- onOpenChange: n
527
+ onOpenChange: a
528
528
  }
529
529
  ) })
530
530
  ] }) });
531
531
  }, Yt = ({ stats: t }) => {
532
- const { isAuthenticated: n, user: o, registeringForPasskey: a, authenticationType: r } = F(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
533
- return n && d ? /* @__PURE__ */ i(z, { children: [
532
+ const { isAuthenticated: a, user: o, registeringForPasskey: n, authenticationType: r } = F(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
533
+ return a && d ? /* @__PURE__ */ i(z, { children: [
534
534
  /* @__PURE__ */ e(
535
535
  B,
536
536
  {
@@ -557,7 +557,7 @@ const Lt = ({
557
557
  {
558
558
  size: "small",
559
559
  className: "mt-2",
560
- onClick: a,
560
+ onClick: n,
561
561
  labelLeft: N.PREFERENCES.PASSKEY_BUTTON,
562
562
  children: /* @__PURE__ */ e(Ie, { size: "size-5", monotone: !0 })
563
563
  }
@@ -581,26 +581,26 @@ const Lt = ({
581
581
  ] }) : null;
582
582
  }, jt = ({
583
583
  open: t,
584
- onOpenChange: n
584
+ onOpenChange: a
585
585
  }) => {
586
- const { getAccessToken: o, user: a } = F(), {
586
+ const { getAccessToken: o, user: n } = F(), {
587
587
  data: r,
588
588
  error: c,
589
589
  isLoading: s
590
590
  } = Tt({
591
- keys: [a == null ? void 0 : a.username],
591
+ keys: [n == null ? void 0 : n.username],
592
592
  getAccessToken: o
593
593
  });
594
- return c || s ? null : /* @__PURE__ */ e(ce, { open: t, onOpenChange: n, title: lt, children: /* @__PURE__ */ e(Yt, { stats: r }) });
594
+ return c || s ? null : /* @__PURE__ */ e(ce, { open: t, onOpenChange: a, title: lt, children: /* @__PURE__ */ e(Yt, { stats: r }) });
595
595
  };
596
596
  /*!
597
- @versini/ui-textarea v3.0.10
597
+ @versini/ui-textarea v3.0.13
598
598
  © 2025 gizmette.com
599
599
  */
600
600
  try {
601
601
  window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
602
- version: "3.0.10",
603
- buildTime: "01/20/2025 10:07 PM EST",
602
+ version: "3.0.13",
603
+ buildTime: "01/25/2025 10:54 PM EST",
604
604
  homepage: "https://github.com/aversini/ui-components",
605
605
  license: "MIT"
606
606
  });
@@ -614,10 +614,10 @@ function qt() {
614
614
  }), []), Be(() => t.current, []);
615
615
  }
616
616
  function Qt(t) {
617
- return He(() => t.every((n) => n == null) ? () => {
618
- } : (n) => {
617
+ return He(() => t.every((a) => a == null) ? () => {
618
+ } : (a) => {
619
619
  t.forEach((o) => {
620
- typeof o == "function" ? o(n) : o != null && (o.current = n);
620
+ typeof o == "function" ? o(a) : o != null && (o.current = a);
621
621
  });
622
622
  }, t);
623
623
  }
@@ -632,44 +632,44 @@ const Jt = {
632
632
  right: 0
633
633
  };
634
634
  function Re(t) {
635
- const n = qt(), o = S(0), a = S(null), [r, c] = C(Jt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
635
+ const a = qt(), o = S(0), n = S(null), [r, c] = C(Jt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
636
636
  const u = d[0];
637
637
  u && (cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
638
- a.current && n() && c(u.contentRect);
638
+ n.current && a() && c(u.contentRect);
639
639
  }));
640
- }), [n]);
641
- return H(() => (a.current && (s == null || s.observe(a.current, t)), () => {
640
+ }), [a]);
641
+ return H(() => (n.current && (s == null || s.observe(n.current, t)), () => {
642
642
  s == null || s.disconnect(), o.current && cancelAnimationFrame(o.current);
643
- }), [s, t]), [a, r];
643
+ }), [s, t]), [n, r];
644
644
  }
645
645
  function Zt({
646
646
  value: t,
647
- defaultValue: n,
647
+ defaultValue: a,
648
648
  finalValue: o,
649
- onChange: a = () => {
649
+ onChange: n = () => {
650
650
  },
651
651
  initialControlledDelay: r = 0
652
652
  }) {
653
653
  const [c, s] = C(!1), [d, u] = C(
654
- n !== void 0 ? n : o
654
+ a !== void 0 ? a : o
655
655
  ), f = (p) => {
656
- u(p), a == null || a(p);
656
+ u(p), n == null || n(p);
657
657
  };
658
658
  return H(() => {
659
659
  (async () => t !== void 0 && !c && r > 0 && (await new Promise(
660
660
  (p) => setTimeout(p, r)
661
661
  ), s(!0)))();
662
- }, [t, r, c]), t !== void 0 ? !c && r > 0 ? ["", a, !0] : [t, a, !0] : [d, f, !1];
662
+ }, [t, r, c]), t !== void 0 ? !c && r > 0 ? ["", n, !0] : [t, n, !0] : [d, f, !1];
663
663
  }
664
664
  function er(t) {
665
- const n = _t();
665
+ const a = _t();
666
666
  if (!t)
667
- return n;
667
+ return a;
668
668
  if (typeof t == "number" || typeof t == "string")
669
- return `${t}${n}`;
669
+ return `${t}${a}`;
670
670
  if (typeof t == "object") {
671
- const { id: o, prefix: a = "" } = t;
672
- return typeof o == "number" || typeof o == "string" ? `${a}${o}` : `${a}${n}`;
671
+ const { id: o, prefix: n = "" } = t;
672
+ return typeof o == "number" || typeof o == "string" ? `${n}${o}` : `${n}${a}`;
673
673
  }
674
674
  }
675
675
  const $e = "SET_ANNOUNCEMENT", Ve = "CLEAR_ANNOUNCEMENT", tr = {
@@ -680,12 +680,12 @@ const $e = "SET_ANNOUNCEMENT", Ve = "CLEAR_ANNOUNCEMENT", tr = {
680
680
  progressbar: null,
681
681
  status: "polite",
682
682
  timer: "assertive"
683
- }, rr = (t, n) => {
684
- switch (n == null ? void 0 : n.type) {
683
+ }, rr = (t, a) => {
684
+ switch (a == null ? void 0 : a.type) {
685
685
  case $e:
686
686
  return {
687
687
  ...t,
688
- announcement: n.payload
688
+ announcement: a.payload
689
689
  };
690
690
  case Ve:
691
691
  return {
@@ -695,48 +695,48 @@ const $e = "SET_ANNOUNCEMENT", Ve = "CLEAR_ANNOUNCEMENT", tr = {
695
695
  default:
696
696
  return t;
697
697
  }
698
- }, ar = ({
698
+ }, nr = ({
699
699
  onAnnouncementClear: t,
700
- dispatch: n
700
+ dispatch: a
701
701
  }) => {
702
- n({
702
+ a({
703
703
  type: Ve
704
704
  }), typeof t == "function" && t();
705
705
  }, Le = ({
706
706
  children: t,
707
- clearAnnouncementDelay: n,
707
+ clearAnnouncementDelay: a,
708
708
  clearAnnouncementTimeoutRef: o,
709
- onAnnouncementClear: a,
709
+ onAnnouncementClear: n,
710
710
  dispatch: r
711
711
  }) => {
712
712
  clearTimeout(o.current), t !== null && r({
713
713
  type: $e,
714
714
  payload: t
715
- }), n && (o.current = setTimeout(
716
- () => ar({
717
- onAnnouncementClear: a,
715
+ }), a && (o.current = setTimeout(
716
+ () => nr({
717
+ onAnnouncementClear: n,
718
718
  dispatch: r
719
719
  }),
720
- n
720
+ a
721
721
  ));
722
- }, nr = ({
722
+ }, ar = ({
723
723
  children: t,
724
- announcementTimeoutRef: n,
724
+ announcementTimeoutRef: a,
725
725
  announcementDelay: o,
726
- clearAnnouncementDelay: a,
726
+ clearAnnouncementDelay: n,
727
727
  clearAnnouncementTimeoutRef: r,
728
728
  onAnnouncementClear: c,
729
729
  dispatch: s
730
730
  }) => {
731
- clearTimeout(n.current), o ? n.current = setTimeout(Le, o, {
731
+ clearTimeout(a.current), o ? a.current = setTimeout(Le, o, {
732
732
  children: t,
733
- clearAnnouncementDelay: a,
733
+ clearAnnouncementDelay: n,
734
734
  clearAnnouncementTimeoutRef: r,
735
735
  onAnnouncementClear: c,
736
736
  dispatch: s
737
737
  }) : Le({
738
738
  children: t,
739
- clearAnnouncementDelay: a,
739
+ clearAnnouncementDelay: n,
740
740
  clearAnnouncementTimeoutRef: r,
741
741
  onAnnouncementClear: c,
742
742
  dispatch: s
@@ -744,9 +744,9 @@ const $e = "SET_ANNOUNCEMENT", Ve = "CLEAR_ANNOUNCEMENT", tr = {
744
744
  };
745
745
  function or({
746
746
  children: t,
747
- className: n,
747
+ className: a,
748
748
  politeness: o,
749
- role: a = null,
749
+ role: n = null,
750
750
  announcementDelay: r,
751
751
  clearAnnouncementDelay: c,
752
752
  onAnnouncementClear: s,
@@ -757,8 +757,8 @@ function or({
757
757
  announcement: null
758
758
  });
759
759
  let l = o;
760
- typeof l > "u" && (l = a ? tr[a] : "assertive"), H(() => {
761
- nr({
760
+ typeof l > "u" && (l = n ? tr[n] : "assertive"), H(() => {
761
+ ar({
762
762
  announcementTimeoutRef: f,
763
763
  announcementDelay: r,
764
764
  children: t,
@@ -773,14 +773,14 @@ function or({
773
773
  c,
774
774
  s
775
775
  ]);
776
- const h = y(n, {
776
+ const h = y(a, {
777
777
  "sr-only": !d
778
778
  });
779
779
  return /* @__PURE__ */ e(
780
780
  "div",
781
781
  {
782
782
  "aria-live": l,
783
- ...a && { role: a },
783
+ ...n && { role: n },
784
784
  className: h,
785
785
  ...u,
786
786
  children: b.announcement
@@ -788,13 +788,13 @@ function or({
788
788
  );
789
789
  }
790
790
  /*!
791
- @versini/ui-liveregion v1.3.7
791
+ @versini/ui-liveregion v1.3.8
792
792
  © 2025 gizmette.com
793
793
  */
794
794
  try {
795
795
  window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
796
- version: "1.3.7",
797
- buildTime: "01/20/2025 10:07 PM EST",
796
+ version: "1.3.8",
797
+ buildTime: "01/25/2025 10:54 PM EST",
798
798
  homepage: "https://github.com/aversini/ui-components",
799
799
  license: "MIT"
800
800
  });
@@ -814,21 +814,21 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
814
814
  "focus:outline-focus-dark dark:focus:outline-focus-light": t === "system"
815
815
  }), ir = ({
816
816
  noBorder: t,
817
- error: n
817
+ error: a
818
818
  }) => y("border-2", {
819
- "border-border-dark": !t && !n,
820
- "focus:border-border-dark": !t && n,
821
- "border-border-error-dark": !t && n,
819
+ "border-border-dark": !t && !a,
820
+ "focus:border-border-dark": !t && a,
821
+ "border-border-error-dark": !t && a,
822
822
  "border-transparent": t
823
823
  }), dr = ({
824
824
  disabled: t,
825
- raw: n,
825
+ raw: a,
826
826
  error: o,
827
- mode: a,
827
+ mode: n,
828
828
  leftElement: r,
829
829
  rightElement: c
830
830
  }) => {
831
- if (n)
831
+ if (a)
832
832
  return "";
833
833
  if (t)
834
834
  return y(
@@ -842,10 +842,10 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
842
842
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
843
843
  {
844
844
  "translate-x-[12px]": c === !0 && !r || !c && !r,
845
- "text-copy-medium": a === "dark",
846
- "text-copy-dark": a === "light",
847
- "text-copy-dark dark:text-copy-medium": a === "system",
848
- "text-copy-medium dark:text-copy-dark": a === "alt-system"
845
+ "text-copy-medium": n === "dark",
846
+ "text-copy-dark": n === "light",
847
+ "text-copy-dark dark:text-copy-medium": n === "system",
848
+ "text-copy-medium dark:text-copy-dark": n === "alt-system"
849
849
  }
850
850
  );
851
851
  if (o)
@@ -853,21 +853,21 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
853
853
  "absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
854
854
  {
855
855
  "translate-x-[12px]": c === !0 && !r || !c && !r,
856
- "text-copy-medium": a === "dark",
857
- "text-copy-error-dark": a === "light",
858
- "text-copy-error-dark dark:text-copy-error-light": a === "system",
859
- "text-copy-medium dark:text-copy-error-dark": a === "alt-system"
856
+ "text-copy-medium": n === "dark",
857
+ "text-copy-error-dark": n === "light",
858
+ "text-copy-error-dark dark:text-copy-error-light": n === "system",
859
+ "text-copy-medium dark:text-copy-error-dark": n === "alt-system"
860
860
  }
861
861
  );
862
862
  }, ur = ({
863
863
  error: t,
864
- raw: n,
864
+ raw: a,
865
865
  mode: o,
866
- disabled: a
866
+ disabled: n
867
867
  }) => {
868
- if (n)
869
- return "";
870
868
  if (a)
869
+ return "";
870
+ if (n)
871
871
  return y(
872
872
  ye,
873
873
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
@@ -888,9 +888,9 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
888
888
  });
889
889
  }, mr = ({
890
890
  className: t,
891
- textAreaClassName: n,
891
+ textAreaClassName: a,
892
892
  raw: o,
893
- focusMode: a,
893
+ focusMode: n,
894
894
  disabled: r,
895
895
  noBorder: c,
896
896
  error: s,
@@ -902,12 +902,12 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
902
902
  "relative flex w-full flex-col justify-center",
903
903
  Kt,
904
904
  t
905
- ), b = o ? y(n) : y(
905
+ ), b = o ? y(a) : y(
906
906
  De,
907
- n,
907
+ a,
908
908
  sr(),
909
909
  lr({ mode: d }),
910
- cr({ focusMode: a }),
910
+ cr({ focusMode: n }),
911
911
  ir({
912
912
  noBorder: c,
913
913
  error: s
@@ -939,14 +939,14 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
939
939
  };
940
940
  }, hr = ({
941
941
  scrollHeight: t,
942
- currentHeight: n,
942
+ currentHeight: a,
943
943
  currentLabelOffset: o = 0,
944
- currentHelperTextOffset: a = 0
944
+ currentHelperTextOffset: n = 0
945
945
  }) => {
946
946
  let r, c;
947
- if (t > 0 && t !== n) {
948
- const s = t - n, d = Math.abs(s / 24);
949
- r = o + -1 * Math.sign(s) * (12 * d), c = a + Math.sign(s) * (12 * d);
947
+ if (t > 0 && t !== a) {
948
+ const s = t - a, d = Math.abs(s / 24);
949
+ r = o + -1 * Math.sign(s) * (12 * d), c = n + Math.sign(s) * (12 * d);
950
950
  }
951
951
  return {
952
952
  labelOffset: r,
@@ -956,9 +956,9 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
956
956
  }, xe = At.forwardRef(
957
957
  ({
958
958
  id: t,
959
- name: n,
959
+ name: a,
960
960
  label: o,
961
- error: a = !1,
961
+ error: n = !1,
962
962
  raw: r = !1,
963
963
  className: c,
964
964
  textAreaClassName: s,
@@ -981,10 +981,10 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
981
981
  var L;
982
982
  const _ = S(null), ie = Qt([D, _]), [k, R] = Re(), [Q, G] = Re(), K = S(80), U = S(-25), M = S(null), J = S(30), Z = S(null), Y = er({ id: t, prefix: `${De}-` }), [Ee, Fe] = C(0), [Te, Ge] = C(0), [Ue, Ne] = C(
983
983
  !!(!T && h)
984
- ), Ye = `${n} error, ${h}`, j = mr({
984
+ ), Ye = `${a} error, ${h}`, j = mr({
985
985
  className: c,
986
986
  textAreaClassName: s,
987
- error: a,
987
+ error: n,
988
988
  raw: r,
989
989
  focusMode: u,
990
990
  disabled: b,
@@ -1010,13 +1010,13 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1010
1010
  }, Xe = (v) => {
1011
1011
  T && h && !$ && Ne(!1), w && w(v);
1012
1012
  };
1013
- return ae(() => {
1013
+ return ne(() => {
1014
1014
  R && R.width && Fe(R.width + 18 + 10);
1015
- }, [R]), ae(() => {
1015
+ }, [R]), ne(() => {
1016
1016
  G && G.width && Ge(G.width + 18 + 10);
1017
- }, [G]), ae(() => {
1017
+ }, [G]), ne(() => {
1018
1018
  r || _ && _.current && $ !== void 0 && (_.current.style.height = "inherit", _.current.style.height = _.current.scrollHeight + "px");
1019
- }, [$, r]), ae(() => {
1019
+ }, [$, r]), ne(() => {
1020
1020
  r || setTimeout(() => {
1021
1021
  var v;
1022
1022
  (v = M == null ? void 0 : M.current) == null || v.style.setProperty(
@@ -1024,7 +1024,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1024
1024
  $ ? "none" : "all 0.2s ease-out"
1025
1025
  );
1026
1026
  }, 0);
1027
- }, [$, r]), ae(() => {
1027
+ }, [$, r]), ne(() => {
1028
1028
  var v, we;
1029
1029
  if (!r && _ && _.current && $ !== void 0) {
1030
1030
  const { labelOffset: fe, helperTextOffset: pe, scrollHeight: qe } = hr({
@@ -1067,13 +1067,13 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1067
1067
  {
1068
1068
  ref: ie,
1069
1069
  id: Y,
1070
- name: n,
1070
+ name: a,
1071
1071
  disabled: b,
1072
1072
  placeholder: r ? void 0 : " ",
1073
1073
  className: j.textArea,
1074
1074
  rows: 1,
1075
1075
  ...h && { "aria-describedby": `${Y}-helper` },
1076
- ...a && { "aria-invalid": "true" },
1076
+ ...n && { "aria-invalid": "true" },
1077
1077
  ...E && !g && !r && { style: { paddingRight: Ee } },
1078
1078
  ...g && !E && !r && { style: { paddingLeft: Te } },
1079
1079
  ...E && g && !r && {
@@ -1116,19 +1116,19 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1116
1116
  children: E
1117
1117
  }
1118
1118
  ),
1119
- a && h && /* @__PURE__ */ e(or, { politeness: "polite", clearAnnouncementDelay: 500, children: Ye })
1119
+ n && h && /* @__PURE__ */ e(or, { politeness: "polite", clearAnnouncementDelay: 500, children: Ye })
1120
1120
  ] });
1121
1121
  }
1122
1122
  );
1123
1123
  xe.displayName = "TextArea";
1124
1124
  /*!
1125
- @versini/ui-toggle v3.0.8
1125
+ @versini/ui-toggle v3.0.9
1126
1126
  © 2025 gizmette.com
1127
1127
  */
1128
1128
  try {
1129
1129
  window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
1130
- version: "3.0.8",
1131
- buildTime: "01/20/2025 01:49 PM EST",
1130
+ version: "3.0.9",
1131
+ buildTime: "01/25/2025 10:54 PM EST",
1132
1132
  homepage: "https://github.com/aversini/ui-components",
1133
1133
  license: "MIT"
1134
1134
  });
@@ -1167,17 +1167,17 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1167
1167
  "after:content-['']"
1168
1168
  ), xr = ({
1169
1169
  mode: t,
1170
- noBorder: n
1170
+ noBorder: a
1171
1171
  }) => y({
1172
- border: !n,
1172
+ border: !a,
1173
1173
  "border-border-dark bg-surface-medium": t === "light",
1174
1174
  "border-border-light bg-surface-darker": t === "dark",
1175
1175
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": t === "alt-system",
1176
1176
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": t === "system"
1177
1177
  }), kr = ({
1178
1178
  mode: t,
1179
- labelHidden: n
1180
- }) => n ? "sr-only" : y("ml-2 text-sm", {
1179
+ labelHidden: a
1180
+ }) => a ? "sr-only" : y("ml-2 text-sm", {
1181
1181
  "text-copy-dark": t === "light",
1182
1182
  "text-copy-lighter": t === "dark",
1183
1183
  "text-copy-lighter dark:text-copy-dark": t === "alt-system",
@@ -1188,26 +1188,26 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1188
1188
  t
1189
1189
  ), Er = ({
1190
1190
  mode: t,
1191
- focusMode: n,
1191
+ focusMode: a,
1192
1192
  labelHidden: o,
1193
- className: a,
1193
+ className: n,
1194
1194
  noBorder: r
1195
1195
  }) => ({
1196
1196
  toggle: y(
1197
1197
  pr(),
1198
1198
  xr({ mode: t, noBorder: r }),
1199
- gr({ focusMode: n }),
1199
+ gr({ focusMode: a }),
1200
1200
  br(),
1201
1201
  yr()
1202
1202
  ),
1203
1203
  label: kr({ mode: t, labelHidden: o }),
1204
1204
  input: "peer sr-only",
1205
- wrapper: Cr({ className: a })
1206
- }), ne = ({
1205
+ wrapper: Cr({ className: n })
1206
+ }), ae = ({
1207
1207
  checked: t = !1,
1208
- onChange: n,
1208
+ onChange: a,
1209
1209
  label: o,
1210
- labelHidden: a = !1,
1210
+ labelHidden: n = !1,
1211
1211
  name: r,
1212
1212
  mode: c = "system",
1213
1213
  focusMode: s = "system",
@@ -1217,11 +1217,11 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1217
1217
  const f = Er({
1218
1218
  mode: c,
1219
1219
  focusMode: s,
1220
- labelHidden: a,
1220
+ labelHidden: n,
1221
1221
  className: d,
1222
1222
  noBorder: u
1223
1223
  }), p = (b) => {
1224
- n == null || n(b.target.checked);
1224
+ a == null || a(b.target.checked);
1225
1225
  };
1226
1226
  return /* @__PURE__ */ i("label", { className: f.wrapper, children: [
1227
1227
  /* @__PURE__ */ e(
@@ -1239,15 +1239,15 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1239
1239
  ] });
1240
1240
  }, Tr = ({
1241
1241
  open: t,
1242
- onOpenChange: n
1242
+ onOpenChange: a
1243
1243
  }) => {
1244
- const { getAccessToken: o, user: a } = F(), {
1244
+ const { getAccessToken: o, user: n } = F(), {
1245
1245
  data: r,
1246
1246
  error: c,
1247
1247
  isLoading: s,
1248
1248
  mutate: d
1249
1249
  } = ze({
1250
- keys: [a == null ? void 0 : a.username],
1250
+ keys: [n == null ? void 0 : n.username],
1251
1251
  getAccessToken: o,
1252
1252
  isPaused: !0
1253
1253
  }), [u, f] = C({
@@ -1284,14 +1284,14 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1284
1284
  accessToken: await o(),
1285
1285
  type: le.SET_USER_PREFERENCES,
1286
1286
  params: {
1287
- user: a == null ? void 0 : a.username,
1287
+ user: n == null ? void 0 : n.username,
1288
1288
  tags: u.prompts
1289
1289
  }
1290
1290
  });
1291
1291
  } catch {
1292
1292
  }
1293
1293
  }, x = () => {
1294
- d({ ...r }), n(!1);
1294
+ d({ ...r }), a(!1);
1295
1295
  };
1296
1296
  return H(() => {
1297
1297
  r != null && r.tags && f({ prompts: r.tags });
@@ -1327,7 +1327,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1327
1327
  variant: "danger",
1328
1328
  focusMode: "light",
1329
1329
  onClick: async (l) => {
1330
- n(!1), await b(l);
1330
+ a(!1), await b(l);
1331
1331
  },
1332
1332
  children: "Save"
1333
1333
  }
@@ -1378,7 +1378,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1378
1378
  ) })
1379
1379
  ] }),
1380
1380
  /* @__PURE__ */ e(
1381
- ne,
1381
+ ae,
1382
1382
  {
1383
1383
  className: "mt-2",
1384
1384
  noBorder: !0,
@@ -1396,7 +1396,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1396
1396
  }
1397
1397
  ),
1398
1398
  /* @__PURE__ */ e(
1399
- ne,
1399
+ ae,
1400
1400
  {
1401
1401
  className: "mt-2",
1402
1402
  noBorder: !0,
@@ -1423,15 +1423,15 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1423
1423
  );
1424
1424
  }, Nr = ({
1425
1425
  open: t,
1426
- onOpenChange: n
1426
+ onOpenChange: a
1427
1427
  }) => {
1428
- const { getAccessToken: o, user: a } = F(), {
1428
+ const { getAccessToken: o, user: n } = F(), {
1429
1429
  data: r,
1430
1430
  error: c,
1431
1431
  isLoading: s,
1432
1432
  mutate: d
1433
1433
  } = ze({
1434
- keys: [a == null ? void 0 : a.username],
1434
+ keys: [n == null ? void 0 : n.username],
1435
1435
  getAccessToken: o
1436
1436
  }), [u, f] = C(!1), [p, b] = C({
1437
1437
  loadingLocation: !1
@@ -1447,7 +1447,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1447
1447
  accessToken: await o(),
1448
1448
  type: le.SET_USER_PREFERENCES,
1449
1449
  params: {
1450
- user: a == null ? void 0 : a.username,
1450
+ user: n == null ? void 0 : n.username,
1451
1451
  instructions: x,
1452
1452
  location: h,
1453
1453
  engine: E
@@ -1486,7 +1486,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1486
1486
  }, _ = () => {
1487
1487
  f(!u);
1488
1488
  }, ie = () => {
1489
- d({ ...r }), n(!1);
1489
+ d({ ...r }), a(!1);
1490
1490
  };
1491
1491
  return H(() => {
1492
1492
  r != null && r.instructions && l(r.instructions), r != null && r.location && T(r.location), r != null && r.engine && g(r.engine);
@@ -1520,7 +1520,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1520
1520
  variant: "danger",
1521
1521
  focusMode: "light",
1522
1522
  onClick: async (k) => {
1523
- n(!1), await I(k);
1523
+ a(!1), await I(k);
1524
1524
  },
1525
1525
  children: "Save"
1526
1526
  }
@@ -1538,7 +1538,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1538
1538
  children: [
1539
1539
  /* @__PURE__ */ e("p", { className: "text-sm", children: "Select the AI engine that will be used to generate responses." }),
1540
1540
  /* @__PURE__ */ e(
1541
- ne,
1541
+ ae,
1542
1542
  {
1543
1543
  noBorder: !0,
1544
1544
  label: W,
@@ -1548,7 +1548,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1548
1548
  }
1549
1549
  ),
1550
1550
  /* @__PURE__ */ e(
1551
- ne,
1551
+ ae,
1552
1552
  {
1553
1553
  className: "mt-2",
1554
1554
  noBorder: !0,
@@ -1560,7 +1560,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1560
1560
  ),
1561
1561
  /* @__PURE__ */ e("p", { className: "text-sm", children: 'This "Show Message Statistics" option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more.' }),
1562
1562
  /* @__PURE__ */ e(
1563
- ne,
1563
+ ae,
1564
1564
  {
1565
1565
  className: "mt-2",
1566
1566
  noBorder: !0,
@@ -1652,8 +1652,8 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1652
1652
  }
1653
1653
  );
1654
1654
  }, _r = () => {
1655
- const { logout: t } = F(), { state: n } = he(Oe), [o, a] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [u, f] = C(!1), [p, b] = C(!1), x = () => {
1656
- a(!o);
1655
+ const { logout: t } = F(), { state: a } = he(Oe), [o, n] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [u, f] = C(!1), [p, b] = C(!1), x = () => {
1656
+ n(!o);
1657
1657
  }, l = () => {
1658
1658
  c(!r);
1659
1659
  }, h = () => {
@@ -1678,7 +1678,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1678
1678
  children: /* @__PURE__ */ e("p", { children: "Are you sure you want to log out?" })
1679
1679
  }
1680
1680
  ),
1681
- /* @__PURE__ */ e(jt, { open: o, onOpenChange: a }),
1681
+ /* @__PURE__ */ e(jt, { open: o, onOpenChange: n }),
1682
1682
  /* @__PURE__ */ e(Nr, { open: r, onOpenChange: c }),
1683
1683
  s && /* @__PURE__ */ e(Ut, { open: s, onOpenChange: d }),
1684
1684
  /* @__PURE__ */ e(Vt, { open: u, onOpenChange: f }),
@@ -1728,7 +1728,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1728
1728
  icon: /* @__PURE__ */ e(Ot, {})
1729
1729
  }
1730
1730
  ),
1731
- n && n.id && !n.isComponent && /* @__PURE__ */ i(z, { children: [
1731
+ a && a.id && !a.isComponent && /* @__PURE__ */ i(z, { children: [
1732
1732
  /* @__PURE__ */ e(vt, {}),
1733
1733
  /* @__PURE__ */ e(
1734
1734
  re,