@versini/sassysaint 6.4.2 → 6.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsx as Ve, jsxs as P0, Fragment as ka } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.CQg-4XR4.js";
3
- import { te as Is, L as Ds, j as Ls } from "./index.HM1QCCV9.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as ks, parse as kn, parse$1 as Nn, normalize as Tn, svg as Ns, html as Ts, visitParents as As, SKIP as Ms, longestStreak as Os, factorySpace as _r, markdownLineEnding as Vt, Markdown as Rs, remarkGfm as Cs } from "./MessageAssistant.75LORi2z.js";
3
+ import { re as Is, L as Ds, j as Ls } from "./index.B59kJMY8.js";
4
4
  import zs, { useState as Bs, useEffect as Fs } from "react";
5
5
  import Ps from "clsx";
6
6
  const Ta = ({
@@ -91,13 +91,13 @@ const Us = ({
91
91
  }
92
92
  );
93
93
  /*!
94
- @versini/ui-icons v4.6.0
94
+ @versini/ui-icons v4.6.1
95
95
  © 2025 gizmette.com
96
96
  */
97
97
  try {
98
98
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
99
- version: "4.6.0",
100
- buildTime: "01/20/2025 04:20 PM EST",
99
+ version: "4.6.1",
100
+ buildTime: "01/21/2025 01:33 PM EST",
101
101
  homepage: "https://github.com/aversini/ui-components",
102
102
  license: "MIT"
103
103
  });
@@ -1,8 +1,8 @@
1
1
  import { jsxs as en, jsx as re, Fragment as nr } from "react/jsx-runtime";
2
- import { AppContext as di, E as yi, Ee as ct } from "./App.BNj5_p2P.js";
2
+ import { AppContext as di, E as yi, Re as ct } from "./App.DxiuLsPO.js";
3
3
  import hn from "clsx";
4
4
  import { lazy as ki, useContext as xi, Suspense as bi } from "react";
5
- import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.HM1QCCV9.js";
5
+ import { LOCAL_STORAGE_PREFIX as wi, LOCAL_STORAGE_CHAT_DETAILS as Si, durationFormatter as Ci } from "./index.B59kJMY8.js";
6
6
  function tr(e) {
7
7
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
8
8
  }
@@ -8653,7 +8653,7 @@ function Qc(e) {
8653
8653
  const Yc = ki(
8654
8654
  () => import(
8655
8655
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8656
- "./MarkdownWithExtra.BUqQb6yQ.js"
8656
+ "./MarkdownWithExtra.CKTsvc8P.js"
8657
8657
  )
8658
8658
  ), Ln = {
8659
8659
  MODEL: "Model",
@@ -1,7 +1,7 @@
1
1
  import { jsxs as i, jsx as e, Fragment as O } from "react/jsx-runtime";
2
- import { f as V, un as F, R as z, 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 P, 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.HM1QCCV9.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 M, De as yt, We as bt, p as xt, z as kt, je as Ct, serviceCall as se, SERVICE_TYPES as le, B 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.BNj5_p2P.js";
4
- import At, { useRef as v, useState as C, useContext as he, useCallback as Be, useEffect as B, Fragment as It, useLayoutEffect as ne, useMemo as He, useId as _t, useReducer as Rt } from "react";
2
+ import { f as $, un as V, R as z, CARDS as N, renderDataAsList as de, pluralize as ue, ABOUT_TITLE as Qe, INFINITE_SCROLL_LIMIT as we, INFINITE_SCROLL_THRESHOLD as ve, LOCAL_STORAGE_PREFIX as ke, LOCAL_STORAGE_SORT as Ze, re as oe, ACTION_RESET as Je, 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 P, 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.B59kJMY8.js";
3
+ import { i as me, useServerCapabilities as ft, Ze as ce, HistoryContext as Me, E as Ce, ConfirmationPanel as Pe, Ue as pt, je as gt, Fe as ge, Le as M, De as yt, $e as bt, p as xt, z as kt, We as Ct, serviceCall as se, SERVICE_TYPES as le, B as te, AppContext as Oe, useChatsHistory as Et, useUserChatStats as Tt, useUserPreferences as ze, m as Nt, _e as St, me as wt, R as re, P as vt } from "./App.DxiuLsPO.js";
4
+ import At, { useRef as v, useState as C, useContext as he, useCallback as Be, useEffect as F, 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,
@@ -10,7 +10,7 @@ const Lt = ({
10
10
  monotone: n,
11
11
  ...r
12
12
  }) => /* @__PURE__ */ i(
13
- V,
13
+ $,
14
14
  {
15
15
  defaultViewBox: "0 0 512 512",
16
16
  size: "size-5",
@@ -36,7 +36,7 @@ const Lt = ({
36
36
  monotone: n,
37
37
  ...r
38
38
  }) => /* @__PURE__ */ i(
39
- V,
39
+ $,
40
40
  {
41
41
  defaultViewBox: "0 0 448 512",
42
42
  size: "size-5",
@@ -62,7 +62,7 @@ const Lt = ({
62
62
  monotone: n,
63
63
  ...r
64
64
  }) => /* @__PURE__ */ i(
65
- V,
65
+ $,
66
66
  {
67
67
  defaultViewBox: "0 0 512 512",
68
68
  size: "size-5",
@@ -88,7 +88,7 @@ const Lt = ({
88
88
  monotone: n,
89
89
  ...r
90
90
  }) => /* @__PURE__ */ i(
91
- V,
91
+ $,
92
92
  {
93
93
  defaultViewBox: "0 0 512 512",
94
94
  size: "size-5",
@@ -114,7 +114,7 @@ const Lt = ({
114
114
  monotone: n,
115
115
  ...r
116
116
  }) => /* @__PURE__ */ i(
117
- V,
117
+ $,
118
118
  {
119
119
  defaultViewBox: "0 0 576 512",
120
120
  size: "size-5",
@@ -140,7 +140,7 @@ const Lt = ({
140
140
  monotone: n,
141
141
  ...r
142
142
  }) => /* @__PURE__ */ i(
143
- V,
143
+ $,
144
144
  {
145
145
  defaultViewBox: "0 0 512 512",
146
146
  size: "size-5",
@@ -166,7 +166,7 @@ const Lt = ({
166
166
  monotone: n,
167
167
  ...r
168
168
  }) => /* @__PURE__ */ e(
169
- V,
169
+ $,
170
170
  {
171
171
  defaultViewBox: "0 0 448 512",
172
172
  size: "size-5",
@@ -183,7 +183,7 @@ const Lt = ({
183
183
  monotone: n,
184
184
  ...r
185
185
  }) => /* @__PURE__ */ i(
186
- V,
186
+ $,
187
187
  {
188
188
  defaultViewBox: "0 0 512 512",
189
189
  size: "size-5",
@@ -203,7 +203,7 @@ const Lt = ({
203
203
  ]
204
204
  }
205
205
  ), $t = () => {
206
- const { getAccessToken: t } = F(), a = me(), o = me(), {
206
+ const { getAccessToken: t } = V(), a = me(), o = me(), {
207
207
  data: n,
208
208
  error: r,
209
209
  isLoading: c
@@ -217,8 +217,8 @@ const Lt = ({
217
217
  header: N.ABOUT.TITLE_CLIENT,
218
218
  className: "prose-dark dark:prose-lighter",
219
219
  children: de(a, {
220
- [N.ABOUT.VERSION]: "6.4.2",
221
- [N.ABOUT.BUILD_TIMESTAMP]: "01/27/2025 11:19 AM EST"
220
+ [N.ABOUT.VERSION]: "6.5.1",
221
+ [N.ABOUT.BUILD_TIMESTAMP]: "01/29/2025 05:23 PM EST"
222
222
  })
223
223
  }
224
224
  ) }),
@@ -248,7 +248,7 @@ const Lt = ({
248
248
  }
249
249
  });
250
250
  r.status === 200 && (a({
251
- type: Ze
251
+ type: Je
252
252
  }), a({
253
253
  type: et,
254
254
  payload: {
@@ -267,14 +267,14 @@ const Lt = ({
267
267
  mutate: n
268
268
  }) => {
269
269
  var I;
270
- const { user: r, getAccessToken: c } = F(), s = v(null), d = v({
270
+ const { user: r, getAccessToken: c } = V(), s = v(null), d = v({
271
271
  id: 0,
272
272
  timestamp: "",
273
273
  message: ""
274
274
  }), [m, f] = C(!1), [p, b] = C(
275
- Se + ve
275
+ we + ve
276
276
  ), { state: x, dispatch: l } = he(Me), [, h] = Ce({
277
- key: ke + Je,
277
+ key: ke + Ze,
278
278
  initialValue: x.sortDirection
279
279
  }), T = (u) => {
280
280
  switch (x.sortDirection) {
@@ -311,9 +311,9 @@ const Lt = ({
311
311
  } catch {
312
312
  }
313
313
  }, g = Be((u) => {
314
- u[0].isIntersecting && b((R) => R + Se);
314
+ u[0].isIntersecting && b((R) => R + we);
315
315
  }, []);
316
- return B(() => {
316
+ return F(() => {
317
317
  const u = {
318
318
  // root: null,
319
319
  rootMargin: "20px"
@@ -370,9 +370,9 @@ const Lt = ({
370
370
  /* @__PURE__ */ e(M, { className: "text-xs sm:text-sm text-right", children: "Actions" })
371
371
  ] }) }),
372
372
  /* @__PURE__ */ e(bt, { children: t.slice(0, p).map((u, w) => {
373
- var H, D;
374
- const R = u.summary || (u.messages.length > 0 ? (H = u.messages[0]) == null ? void 0 : H.content : "");
375
- return ((D = u == null ? void 0 : u.messages) == null ? void 0 : D.length) > 0 ? /* @__PURE__ */ i(It, { children: [
373
+ var B, H;
374
+ const R = u.summary || (u.messages.length > 0 ? (B = u.messages[0]) == null ? void 0 : B.content : "");
375
+ return ((H = u == null ? void 0 : u.messages) == null ? void 0 : H.length) > 0 ? /* @__PURE__ */ i(It, { children: [
376
376
  w === p - ve && /* @__PURE__ */ e("tr", { ref: s }),
377
377
  /* @__PURE__ */ i(ge, { children: [
378
378
  /* @__PURE__ */ e(M, { children: w + 1 }),
@@ -459,7 +459,7 @@ const Lt = ({
459
459
  open: t,
460
460
  onOpenChange: a
461
461
  }) => {
462
- const { getAccessToken: o, user: n } = F(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: m, mutate: f } = Et({
462
+ const { getAccessToken: o, user: n } = V(), { state: r, dispatch: c } = he(Oe), { state: s, dispatch: d } = he(Me), { data: m, mutate: f } = Et({
463
463
  keys: [
464
464
  n == null ? void 0 : n.username,
465
465
  s.searchString,
@@ -471,7 +471,7 @@ const Lt = ({
471
471
  key: ke + tt,
472
472
  initialValue: s.searchString
473
473
  }), [x, l] = C([]);
474
- B(() => {
474
+ F(() => {
475
475
  m && l(m);
476
476
  }, [m]);
477
477
  const h = async (g) => {
@@ -530,7 +530,7 @@ const Lt = ({
530
530
  ) })
531
531
  ] }) });
532
532
  }, Yt = ({ stats: t }) => {
533
- const { isAuthenticated: a, user: o, registeringForPasskey: n, authenticationType: r } = F(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
533
+ const { isAuthenticated: a, user: o, registeringForPasskey: n, authenticationType: r } = V(), c = me(), s = me(), d = (o == null ? void 0 : o.username) || "";
534
534
  return a && d ? /* @__PURE__ */ i(O, { children: [
535
535
  /* @__PURE__ */ e(
536
536
  z,
@@ -584,7 +584,7 @@ const Lt = ({
584
584
  open: t,
585
585
  onOpenChange: a
586
586
  }) => {
587
- const { getAccessToken: o, user: n } = F(), {
587
+ const { getAccessToken: o, user: n } = V(), {
588
588
  data: r,
589
589
  error: c,
590
590
  isLoading: s
@@ -610,7 +610,7 @@ try {
610
610
  const De = "av-text-area", Kt = "av-text-area-wrapper", ye = "av-text-area-helper-text", Wt = "av-text-area__control--right", Xt = "av-text-area__control--left";
611
611
  function qt() {
612
612
  const t = v(!1);
613
- return B(() => (t.current = !0, () => {
613
+ return F(() => (t.current = !0, () => {
614
614
  t.current = !1;
615
615
  }), []), Be(() => t.current, []);
616
616
  }
@@ -622,7 +622,7 @@ function Qt(t) {
622
622
  });
623
623
  }, t);
624
624
  }
625
- const Jt = {
625
+ const Zt = {
626
626
  x: 0,
627
627
  y: 0,
628
628
  width: 0,
@@ -633,17 +633,17 @@ const Jt = {
633
633
  right: 0
634
634
  };
635
635
  function Re(t) {
636
- const a = qt(), o = v(0), n = v(null), [r, c] = C(Jt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
636
+ const a = qt(), o = v(0), n = v(null), [r, c] = C(Zt), s = He(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
637
637
  const m = d[0];
638
638
  m && (cancelAnimationFrame(o.current), o.current = requestAnimationFrame(() => {
639
639
  n.current && a() && c(m.contentRect);
640
640
  }));
641
641
  }), [a]);
642
- return B(() => (n.current && (s == null || s.observe(n.current, t)), () => {
642
+ return F(() => (n.current && (s == null || s.observe(n.current, t)), () => {
643
643
  s == null || s.disconnect(), o.current && cancelAnimationFrame(o.current);
644
644
  }), [s, t]), [n, r];
645
645
  }
646
- function Zt({
646
+ function Jt({
647
647
  value: t,
648
648
  defaultValue: a,
649
649
  finalValue: o,
@@ -656,7 +656,7 @@ function Zt({
656
656
  ), f = (p) => {
657
657
  m(p), n == null || n(p);
658
658
  };
659
- return B(() => {
659
+ return F(() => {
660
660
  (async () => t !== void 0 && !c && r > 0 && (await new Promise(
661
661
  (p) => setTimeout(p, r)
662
662
  ), s(!0)))();
@@ -758,7 +758,7 @@ function or({
758
758
  announcement: null
759
759
  });
760
760
  let l = o;
761
- typeof l > "u" && (l = n ? tr[n] : "assertive"), B(() => {
761
+ typeof l > "u" && (l = n ? tr[n] : "assertive"), F(() => {
762
762
  ar({
763
763
  announcementTimeoutRef: f,
764
764
  announcementDelay: r,
@@ -978,9 +978,9 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
978
978
  onFocus: u,
979
979
  onBlur: w,
980
980
  ...R
981
- }, H) => {
982
- var D;
983
- const S = v(null), ie = Qt([H, S]), [k, _] = Re(), [Q, G] = Re(), K = v(80), U = v(-25), L = v(null), J = v(30), Z = v(null), Y = er({ id: t, prefix: `${De}-` }), [Ee, Fe] = C(0), [Te, Ge] = C(0), [Ue, Ne] = C(
981
+ }, B) => {
982
+ var H;
983
+ const S = v(null), ie = Qt([B, S]), [k, _] = Re(), [Q, G] = Re(), K = v(80), U = v(-25), L = v(null), Z = v(30), J = v(null), Y = er({ id: t, prefix: `${De}-` }), [Ee, Fe] = C(0), [Te, Ge] = C(0), [Ue, Ne] = C(
984
984
  !!(!T && h)
985
985
  ), Ye = `${a} error, ${h}`, j = mr({
986
986
  className: c,
@@ -993,7 +993,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
993
993
  mode: d,
994
994
  rightElement: !!E,
995
995
  leftElement: !!g
996
- }), [$, je] = Zt({
996
+ }), [D, je] = Jt({
997
997
  value: f,
998
998
  initialControlledDelay: 20,
999
999
  defaultValue: p,
@@ -1009,40 +1009,40 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1009
1009
  }, We = (A) => {
1010
1010
  T && h && Ne(!0), u && u(A);
1011
1011
  }, Xe = (A) => {
1012
- T && h && !$ && Ne(!1), w && w(A);
1012
+ T && h && !D && Ne(!1), w && w(A);
1013
1013
  };
1014
1014
  return ne(() => {
1015
1015
  _ && _.width && Fe(_.width + 18 + 10);
1016
1016
  }, [_]), ne(() => {
1017
1017
  G && G.width && Ge(G.width + 18 + 10);
1018
1018
  }, [G]), ne(() => {
1019
- r || S && S.current && $ !== void 0 && (S.current.style.height = "inherit", S.current.style.height = S.current.scrollHeight + "px");
1020
- }, [$, r]), ne(() => {
1019
+ r || S && S.current && D !== void 0 && (S.current.style.height = "inherit", S.current.style.height = S.current.scrollHeight + "px");
1020
+ }, [D, r]), ne(() => {
1021
1021
  r || setTimeout(() => {
1022
1022
  var A;
1023
1023
  (A = L == null ? void 0 : L.current) == null || A.style.setProperty(
1024
1024
  "--av-text-area-wrapper-transition",
1025
- $ ? "none" : "all 0.2s ease-out"
1025
+ D ? "none" : "all 0.2s ease-out"
1026
1026
  );
1027
1027
  }, 0);
1028
- }, [$, r]), ne(() => {
1029
- var A, we;
1030
- if (!r && S && S.current && $ !== void 0) {
1028
+ }, [D, r]), ne(() => {
1029
+ var A, Se;
1030
+ if (!r && S && S.current && D !== void 0) {
1031
1031
  const { labelOffset: fe, helperTextOffset: pe, scrollHeight: qe } = hr({
1032
1032
  scrollHeight: S.current.scrollHeight,
1033
1033
  currentHeight: K.current,
1034
1034
  currentLabelOffset: U.current,
1035
- currentHelperTextOffset: J.current
1035
+ currentHelperTextOffset: Z.current
1036
1036
  });
1037
1037
  fe && (U.current = fe, (A = L == null ? void 0 : L.current) == null || A.style.setProperty(
1038
1038
  "--av-text-area-label",
1039
1039
  `${fe}px`
1040
- )), pe && (J.current = pe, (we = Z == null ? void 0 : Z.current) == null || we.style.setProperty(
1040
+ )), pe && (Z.current = pe, (Se = J == null ? void 0 : J.current) == null || Se.style.setProperty(
1041
1041
  "--av-text-area-helper-text",
1042
1042
  `${pe}px`
1043
1043
  )), K.current = qe || K.current;
1044
1044
  }
1045
- }, [$, r]), G.width > 0 && ((D = L == null ? void 0 : L.current) == null || D.style.setProperty(
1045
+ }, [D, r]), G.width > 0 && ((H = L == null ? void 0 : L.current) == null || H.style.setProperty(
1046
1046
  "--tw-translate-x",
1047
1047
  `${12 + G.width + 5}px`
1048
1048
  )), /* @__PURE__ */ i("div", { className: j.wrapper, children: [
@@ -1083,7 +1083,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1083
1083
  paddingLeft: Te
1084
1084
  }
1085
1085
  },
1086
- value: $,
1086
+ value: D,
1087
1087
  onChange: Ke,
1088
1088
  onFocus: We,
1089
1089
  onBlur: Xe,
@@ -1103,7 +1103,7 @@ const sr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
1103
1103
  Ue && /* @__PURE__ */ e(
1104
1104
  "div",
1105
1105
  {
1106
- ref: Z,
1106
+ ref: J,
1107
1107
  id: `${Y}-helper`,
1108
1108
  className: j.helperText,
1109
1109
  children: h
@@ -1242,7 +1242,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1242
1242
  open: t,
1243
1243
  onOpenChange: a
1244
1244
  }) => {
1245
- const { getAccessToken: o, user: n } = F(), {
1245
+ const { getAccessToken: o, user: n } = V(), {
1246
1246
  data: r,
1247
1247
  error: c,
1248
1248
  isLoading: s,
@@ -1267,9 +1267,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1267
1267
  content: E,
1268
1268
  enabled: h,
1269
1269
  privateChat: g
1270
- };
1271
- console.info(`==> [${Date.now()}] : `, w);
1272
- const R = u.findIndex((H) => H.slot === l);
1270
+ }, R = u.findIndex((B) => B.slot === l);
1273
1271
  return R === -1 ? {
1274
1272
  ...I,
1275
1273
  prompts: [...u, { ...w, slot: l }]
@@ -1294,11 +1292,9 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1294
1292
  }, x = () => {
1295
1293
  d({ ...r }), a(!1);
1296
1294
  };
1297
- return B(() => {
1295
+ return F(() => {
1298
1296
  r != null && r.tags && f({ prompts: r.tags });
1299
- }, [r]), B(() => {
1300
- console.info(`==> [${Date.now()}] localPrompts: `, m);
1301
- }, [m]), c || s ? null : /* @__PURE__ */ i(
1297
+ }, [r]), c || s ? null : /* @__PURE__ */ i(
1302
1298
  ce,
1303
1299
  {
1304
1300
  open: t,
@@ -1426,7 +1422,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1426
1422
  open: t,
1427
1423
  onOpenChange: a
1428
1424
  }) => {
1429
- const { getAccessToken: o, user: n } = F(), {
1425
+ const { getAccessToken: o, user: n } = V(), {
1430
1426
  data: r,
1431
1427
  error: c,
1432
1428
  isLoading: s,
@@ -1458,7 +1454,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1458
1454
  });
1459
1455
  } catch {
1460
1456
  }
1461
- }, H = async () => {
1457
+ }, B = async () => {
1462
1458
  b({
1463
1459
  loadingLocation: !0
1464
1460
  }), T("...");
@@ -1472,7 +1468,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1472
1468
  }
1473
1469
  }), K = Date.now() - k;
1474
1470
  if (K < 2e3 && await new Promise((U) => setTimeout(U, 2e3 - K)), Q.status === 200) {
1475
- const { city: U, state: L, country: J, displayName: Z } = Q.data, Y = U && L && J ? `${U}, ${L}, ${J}` : Z;
1471
+ const { city: U, state: L, country: Z, displayName: J } = Q.data, Y = U && L && Z ? `${U}, ${L}, ${Z}` : J;
1476
1472
  b({
1477
1473
  loadingLocation: !1
1478
1474
  }), T(Y);
@@ -1482,14 +1478,14 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1482
1478
  });
1483
1479
  } catch {
1484
1480
  }
1485
- }, D = (k, _) => {
1481
+ }, H = (k, _) => {
1486
1482
  g(k ? _ : _ === W ? ee : W);
1487
1483
  }, S = () => {
1488
1484
  f(!m);
1489
1485
  }, ie = () => {
1490
1486
  d({ ...r }), a(!1);
1491
1487
  };
1492
- return B(() => {
1488
+ return F(() => {
1493
1489
  r != null && r.instructions && l(r.instructions), r != null && r.location && T(r.location), r != null && r.engine && g(r.engine);
1494
1490
  }, [r]), c || s ? null : /* @__PURE__ */ e(
1495
1491
  ce,
@@ -1544,7 +1540,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1544
1540
  noBorder: !0,
1545
1541
  label: W,
1546
1542
  name: W,
1547
- onChange: (k) => D(k, W),
1543
+ onChange: (k) => H(k, W),
1548
1544
  checked: E === W
1549
1545
  }
1550
1546
  ),
@@ -1555,7 +1551,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1555
1551
  noBorder: !0,
1556
1552
  label: ee,
1557
1553
  name: ee,
1558
- onChange: (k) => D(k, ee),
1554
+ onChange: (k) => H(k, ee),
1559
1555
  checked: E === ee
1560
1556
  }
1561
1557
  ),
@@ -1642,7 +1638,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1642
1638
  size: "small",
1643
1639
  noBorder: !0,
1644
1640
  disabled: p.loadingLocation,
1645
- onClick: H,
1641
+ onClick: B,
1646
1642
  children: p.loadingLocation ? "Detecting..." : "Auto-detect"
1647
1643
  }
1648
1644
  )
@@ -1653,7 +1649,7 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1653
1649
  }
1654
1650
  );
1655
1651
  }, _r = () => {
1656
- const { logout: t } = F(), { state: a } = he(Oe), [o, n] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [m, f] = C(!1), [p, b] = C(!1), x = () => {
1652
+ const { logout: t } = V(), { state: a } = he(Oe), [o, n] = C(!1), [r, c] = C(!1), [s, d] = C(!1), [m, f] = C(!1), [p, b] = C(!1), x = () => {
1657
1653
  n(!o);
1658
1654
  }, l = () => {
1659
1655
  c(!r);
@@ -1684,13 +1680,13 @@ const fr = "av-toggle", pr = () => y("peer", "h-6", "w-11", "rounded-full"), gr
1684
1680
  s && /* @__PURE__ */ e(Ut, { open: s, onOpenChange: d }),
1685
1681
  /* @__PURE__ */ e(Vt, { open: m, onOpenChange: f }),
1686
1682
  /* @__PURE__ */ e("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ e(q, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e(
1687
- wt,
1683
+ St,
1688
1684
  {
1689
1685
  label: "Profile, Settings, etc.",
1690
1686
  mode: "light",
1691
1687
  placement: "left",
1692
1688
  trigger: /* @__PURE__ */ i(
1693
- St,
1689
+ wt,
1694
1690
  {
1695
1691
  mode: "dark",
1696
1692
  focusMode: "light",