@versini/sassysaint 8.34.2 → 8.35.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,7 +1,7 @@
1
1
  import { jsx as Tp } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as ln } from "./App.Dx9-zTHB.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.DCSCEeDu.js";
3
3
  import Ap, { useState as Cp, useEffect as Pp } from "react";
4
- import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.DOg0VpsL.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.JQwwuZH2.js";
5
5
  var ls = { exports: {} }, Ep = ls.exports, on;
6
6
  function Ip() {
7
7
  return on || (on = 1, function(ve, ne) {
@@ -1,9 +1,9 @@
1
1
  import { jsx as T } from "react/jsx-runtime";
2
- import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.Dx9-zTHB.js";
2
+ import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.DCSCEeDu.js";
3
3
  import L from "clsx";
4
4
  import k, { useState as E, useRef as g, useEffect as O, useContext as w } from "react";
5
- import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.DOg0VpsL.js";
6
- import { useMarkdown as y } from "./useMarkdown.DhPC7902.js";
5
+ import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.JQwwuZH2.js";
6
+ import { useMarkdown as y } from "./useMarkdown.BLLzDS29.js";
7
7
  const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
8
8
  function V(e, a = !0) {
9
9
  const [i, C] = E(0), [c, p] = E(0), [t, A] = E(e), r = g(0), s = g(0);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as e, Fragment as te } from "react/jsx-runtime";
2
- import { I as H, n as j, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as V, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT as se, APP_CLASSNAME as ae, numberFormatter as re, ue as z, CARDS as oe, pluralize as ne, ACTION_SORT as $, isProbablyMobile as ce, TOAST_CHAT_DELETED as ie, TOAST_PROVIDER_CHANGED as le, LOCAL_STORAGE_SEARCH as de, HISTORY_TITLE as me, pe as he, debounce as ue, ACTION_SEARCH as pe } from "./index.DOg0VpsL.js";
3
- import { HistoryContext as W, ChatContext as X, useAiChat as Ce, E as J, useUserPreferences as ge, ConfirmationPanel as ye, LazyToastContainerWrapper as Se, De as xe, He as fe, qe as R, Pe as n, Ye as F, Ge as Te, k as ve, a as we, p as De, p$1 as Ee, st as U, Fe as Ne, mutateCall as G, SERVICE_TYPES as Y, showErrorToast as Ae, E$1 as f, O as Ie, n as be, o as ke, setNewProvider as Re, CHAT_SET_PROVIDER as ze, showSuccessToast as _e, CHAT_SET_STATUS as Le, useChatsHistory as He, tt as Oe, a$1 as Me } from "./App.Dx9-zTHB.js";
2
+ import { I as H, n as j, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as V, LOCAL_STORAGE_PREFIX as q, LOCAL_STORAGE_SORT as se, APP_CLASSNAME as ae, numberFormatter as re, ue as z, CARDS as oe, pluralize as ne, ACTION_SORT as $, isProbablyMobile as ce, TOAST_CHAT_DELETED as ie, TOAST_PROVIDER_CHANGED as le, LOCAL_STORAGE_SEARCH as de, HISTORY_TITLE as me, pe as he, debounce as ue, ACTION_SEARCH as pe } from "./index.JQwwuZH2.js";
3
+ import { HistoryContext as W, ChatContext as X, useAiChat as Ce, E as J, useUserPreferences as ge, ConfirmationPanel as ye, LazyToastContainerWrapper as Se, De as xe, He as fe, qe as R, Pe as n, Ye as F, Ge as Te, k as ve, a as we, p as De, p$1 as Ee, st as U, Fe as Ne, mutateCall as G, SERVICE_TYPES as Y, showErrorToast as Ae, E$1 as f, O as Ie, n as be, o as ke, setNewProvider as Re, CHAT_SET_PROVIDER as ze, showSuccessToast as _e, CHAT_SET_STATUS as Le, useChatsHistory as He, tt as Oe, a$1 as Me } from "./App.DCSCEeDu.js";
4
4
  import { useRef as _, useState as A, useContext as I, useCallback as Be, useEffect as L, Fragment as Pe } from "react";
5
5
  const Ve = ({
6
6
  className: r,
@@ -1,4 +1,4 @@
1
- import { createContext as xe, createSignal as z, onMount as Dt, createEffect as B, createMemo as q, createComponent as m, Portal as qo, memo as me, Show as R, template as _, insert as k, createRenderEffect as N, className as A, clearDelegatedEvents as bs, delegateEvents as ir, useContext as we, onCleanup as U, sortFns as Hn, mutationSortFns as Vn, on as ct, setAttribute as D, getSidedProp as xs, use as Dn, batch as ws, getQueryStatusLabel as Ot, getMutationStatusColor as Rt, getQueryStatusColor as $s, getQueryStatusColorByLabel as Cs, displayValue as xn, For as Ss, convertRemToPixels as Kr, untrack as Kt, useTransition as ks, spread as Es, mergeProps as j, createRoot as Br, serialize as Ms, Index as Ds, updateNestedDataByPath as sr, addEventListener as As, stringify as Ts, Match as zn, Switch as Fs, deleteNestedDataByPath as Is, createUniqueId as Be, splitProps as X, Dynamic as Ps, createComputed as Ls, getPreferredColorScheme as Os } from "./index.DOg0VpsL.js";
1
+ import { createContext as xe, createSignal as z, onMount as Dt, createEffect as B, createMemo as q, createComponent as m, Portal as qo, memo as me, Show as R, template as _, insert as k, createRenderEffect as N, className as A, clearDelegatedEvents as bs, delegateEvents as ir, useContext as we, onCleanup as U, sortFns as Hn, mutationSortFns as Vn, on as ct, setAttribute as D, getSidedProp as xs, use as Dn, batch as ws, getQueryStatusLabel as Ot, getMutationStatusColor as Rt, getQueryStatusColor as $s, getQueryStatusColorByLabel as Cs, displayValue as xn, For as Ss, convertRemToPixels as Kr, untrack as Kt, useTransition as ks, spread as Es, mergeProps as j, createRoot as Br, serialize as Ms, Index as Ds, updateNestedDataByPath as sr, addEventListener as As, stringify as Ts, Match as zn, Switch as Fs, deleteNestedDataByPath as Is, createUniqueId as Be, splitProps as X, Dynamic as Ps, createComputed as Ls, getPreferredColorScheme as Os } from "./index.JQwwuZH2.js";
2
2
  var qs = (e) => e != null, _s = (e) => e.filter(qs);
3
3
  function Rs(e) {
4
4
  return (...t) => {
@@ -1,36 +1,38 @@
1
1
  import { jsxs as n, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { i as h, nt as S, tt as R } from "./App.Dx9-zTHB.js";
3
- import { n as N, S as E, renderDataAsList as P, CARDS as r, isTauri as T, ue as p, l, L as u, j as a, PROFILE_TITLE as C } from "./index.DOg0VpsL.js";
2
+ import { i as h, nt as S, tt as R } from "./App.DCSCEeDu.js";
3
+ import { n as N, S as E, renderDataAsList as P, CARDS as r, isTauri as u, ue as T, l, L as p, j as o, PROFILE_TITLE as C } from "./index.JQwwuZH2.js";
4
4
  const A = () => {
5
- const { isAuthenticated: t, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), s = i?.username || "";
5
+ const { isAuthenticated: t, user: i, registeringForPasskey: a, authenticationType: c } = N(), d = h(), s = i?.username || "";
6
6
  return t && s ? /* @__PURE__ */ n(m, { children: [
7
7
  /* @__PURE__ */ e(
8
8
  E,
9
9
  {
10
10
  header: r.PREFERENCES.TITLE,
11
11
  className: "prose-dark dark:prose-lighter",
12
+ noBorder: !0,
12
13
  children: P(d, {
13
14
  [r.PREFERENCES.NAME]: s,
14
15
  [r.PREFERENCES.EMAIL]: i?.email || ""
15
16
  })
16
17
  }
17
18
  ),
18
- o !== S.PASSKEY && !T() && /* @__PURE__ */ n(
19
+ c !== S.PASSKEY && !u() && /* @__PURE__ */ n(
19
20
  E,
20
21
  {
21
22
  className: "prose-dark dark:prose-lighter mt-4",
22
- header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ n(u, { columnGap: 3, alignVertical: "center", children: [
23
- /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(l, { size: "size-8" }) }),
24
- /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("div", { children: r.PREFERENCES.PASSKEY_TITLE }) })
23
+ noBorder: !0,
24
+ header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ n(p, { columnGap: 3, alignVertical: "center", children: [
25
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e(l, { size: "size-8" }) }),
26
+ /* @__PURE__ */ e(o, { children: /* @__PURE__ */ e("div", { children: r.PREFERENCES.PASSKEY_TITLE }) })
25
27
  ] }) }),
26
28
  children: [
27
29
  /* @__PURE__ */ e("p", { children: r.PREFERENCES.PASSKEY_INSTRUCTIONS }),
28
30
  /* @__PURE__ */ e(
29
- p,
31
+ T,
30
32
  {
31
33
  size: "small",
32
34
  className: "mt-2",
33
- onClick: c,
35
+ onClick: a,
34
36
  labelLeft: r.PREFERENCES.PASSKEY_BUTTON,
35
37
  children: /* @__PURE__ */ e(l, { size: "size-5", monotone: !0 })
36
38
  }
@@ -1,9 +1,9 @@
1
1
  import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
- import { n as Ee, LOCAL_STORAGE_PREFIX as ne, LOCAL_STORAGE_CHAT_DETAILS as Te, LOCAL_STORAGE_SERVICE_WORKER as Ne, isServiceWorkerEnabled as ve, SETTINGS_TITLE as _e, S as V, CARDS as P, APP_NAME as we, C as re, PROMPTS_DESCRIPTION as Ce, L as Se, j as se, getCurrentGeoLocation as Ie, handleServiceWorkerToggle as Ae } from "./index.DOg0VpsL.js";
3
- import { useUserPreferences as Le, E as le, tt as Re, mutateCall as ce, SERVICE_TYPES as ie } from "./App.Dx9-zTHB.js";
2
+ import { n as Ee, LOCAL_STORAGE_PREFIX as ne, LOCAL_STORAGE_CHAT_DETAILS as Te, LOCAL_STORAGE_SERVICE_WORKER as Ne, isServiceWorkerEnabled as ve, SETTINGS_TITLE as _e, S as V, CARDS as P, APP_NAME as we, C as re, PROMPTS_DESCRIPTION as Ce, L as Se, j as se, getCurrentGeoLocation as Ie, handleServiceWorkerToggle as Ae } from "./index.JQwwuZH2.js";
3
+ import { useUserPreferences as Le, E as le, tt as Re, mutateCall as ce, SERVICE_TYPES as ie } from "./App.DCSCEeDu.js";
4
4
  import Oe, { useRef as _, useState as g, useLayoutEffect as j, useMemo as me, useEffect as X, useId as Me, useReducer as De, useCallback as Pe } from "react";
5
5
  import i from "clsx";
6
- const fe = "av-text-area", Ge = "av-text-area-wrapper", ae = "av-text-area-helper-text", He = "av-text-area__control--right", Be = "av-text-area__control--left";
6
+ const fe = "av-text-area", Be = "av-text-area-wrapper", ae = "av-text-area-helper-text", Ge = "av-text-area__control--right", He = "av-text-area__control--left";
7
7
  function Ue() {
8
8
  const e = _(!1);
9
9
  return X(() => (e.current = !0, () => {
@@ -297,7 +297,7 @@ const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
297
297
  }) => {
298
298
  const p = r ? e : i(
299
299
  "relative flex w-full flex-col justify-center",
300
- Ge,
300
+ Be,
301
301
  e
302
302
  ), b = r ? i(a) : i(
303
303
  fe,
@@ -324,7 +324,7 @@ const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
324
324
  raw: r,
325
325
  mode: d,
326
326
  disabled: t
327
- }), I = r ? void 0 : i(He, "absolute"), k = r ? void 0 : i(Be, "absolute");
327
+ }), I = r ? void 0 : i(Ge, "absolute"), k = r ? void 0 : i(He, "absolute");
328
328
  return {
329
329
  wrapper: p,
330
330
  textArea: b,
@@ -375,7 +375,7 @@ const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
375
375
  onBlur: F,
376
376
  ...q
377
377
  }, K) => {
378
- const x = _(null), J = Ve([K, x]), [Z, H] = de(), [Q, A] = de(), W = _(80), z = _(-25), L = _(null), n = _(30), h = _(null), E = We({ id: e, prefix: `${fe}-` }), [B, R] = g(0), [y, T] = g(0), [M, U] = g(
378
+ const x = _(null), J = Ve([K, x]), [Z, G] = de(), [Q, A] = de(), W = _(80), z = _(-25), L = _(null), n = _(30), h = _(null), E = We({ id: e, prefix: `${fe}-` }), [H, R] = g(0), [y, T] = g(0), [M, U] = g(
379
379
  !!(!I && f)
380
380
  ), ee = `${a} error, ${f}`, D = rt({
381
381
  className: l,
@@ -407,8 +407,8 @@ const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
407
407
  I && f && !O && U(!1), F && F(N);
408
408
  };
409
409
  return j(() => {
410
- H && H.width && R(H.width + 18 + 10);
411
- }, [H]), j(() => {
410
+ G && G.width && R(G.width + 18 + 10);
411
+ }, [G]), j(() => {
412
412
  A && A.width && T(A.width + 18 + 10);
413
413
  }, [A]), j(() => {
414
414
  t || x && x.current && O !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
@@ -468,11 +468,11 @@ const Ke = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
468
468
  rows: 1,
469
469
  ...f && { "aria-describedby": `${E}-helper` },
470
470
  ...o && { "aria-invalid": "true" },
471
- ...k && !C && !t && { style: { paddingRight: B } },
471
+ ...k && !C && !t && { style: { paddingRight: H } },
472
472
  ...C && !k && !t && { style: { paddingLeft: y } },
473
473
  ...k && C && !t && {
474
474
  style: {
475
- paddingRight: B,
475
+ paddingRight: H,
476
476
  paddingLeft: y
477
477
  }
478
478
  },
@@ -597,7 +597,7 @@ const ot = "av-toggle", nt = () => i("peer", "h-6", "w-11", "rounded-full"), st
597
597
  label: dt({ mode: e, labelHidden: r }),
598
598
  input: "peer sr-only",
599
599
  wrapper: ut({ className: o })
600
- }), G = ({
600
+ }), B = ({
601
601
  checked: e = !1,
602
602
  onChange: a,
603
603
  label: r,
@@ -670,7 +670,7 @@ const bt = ({
670
670
  K(n);
671
671
  }, Z = (n) => {
672
672
  k(n);
673
- }, H = (n) => {
673
+ }, G = (n) => {
674
674
  $(n);
675
675
  }, Q = async (n) => {
676
676
  x(n), F(n), await Ae(n);
@@ -724,17 +724,17 @@ const bt = ({
724
724
  enabled: n = !1,
725
725
  privateChat: h = !1,
726
726
  clipboardAccess: E = !1,
727
- ...B
727
+ ...H
728
728
  }) => {
729
729
  p((R) => {
730
730
  const y = R.prompts, T = {
731
- ...B,
731
+ ...H,
732
732
  enabled: n,
733
733
  privateChat: h,
734
734
  clipboardAccess: E
735
735
  };
736
736
  E ? T.content = T.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : T.content = T.content.replace(/{{clipboard}}/g, "");
737
- const M = y.findIndex((U) => U.slot === B.slot);
737
+ const M = y.findIndex((U) => U.slot === H.slot);
738
738
  return M === -1 ? {
739
739
  ...R,
740
740
  prompts: [...y, { ...T }]
@@ -790,10 +790,11 @@ const bt = ({
790
790
  {
791
791
  header: P.SETTINGS_DETAILS.TITLE,
792
792
  className: "prose-dark dark:prose-lighter",
793
+ noBorder: !0,
793
794
  children: [
794
795
  /* @__PURE__ */ s("p", { className: "text-sm", children: P.SETTINGS_DETAILS.DETAILS }),
795
796
  /* @__PURE__ */ s(
796
- G,
797
+ B,
797
798
  {
798
799
  className: "mt-2",
799
800
  label: "Show Message Statistics",
@@ -804,7 +805,7 @@ const bt = ({
804
805
  ),
805
806
  /* @__PURE__ */ s("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.SEND_ON_ENTER }),
806
807
  /* @__PURE__ */ s(
807
- G,
808
+ B,
808
809
  {
809
810
  className: "mt-2",
810
811
  label: "Send Message on Enter",
@@ -815,12 +816,12 @@ const bt = ({
815
816
  ),
816
817
  /* @__PURE__ */ s("p", { className: "text-sm mt-5", children: P.SETTINGS_DETAILS.USE_MEMORY }),
817
818
  /* @__PURE__ */ s(
818
- G,
819
+ B,
819
820
  {
820
821
  className: "mt-2",
821
822
  label: "Use Memory",
822
823
  name: "use-memory",
823
- onChange: H,
824
+ onChange: G,
824
825
  checked: C
825
826
  }
826
827
  )
@@ -832,6 +833,7 @@ const bt = ({
832
833
  {
833
834
  header: "Custom Instructions",
834
835
  className: "prose-dark dark:prose-lighter mt-4",
836
+ noBorder: !0,
835
837
  children: [
836
838
  /* @__PURE__ */ v("p", { className: "text-sm", children: [
837
839
  "What would you like ",
@@ -857,43 +859,52 @@ const bt = ({
857
859
  ]
858
860
  }
859
861
  ),
860
- /* @__PURE__ */ v(V, { header: "Location", className: "prose-dark dark:prose-lighter mt-4", children: [
861
- /* @__PURE__ */ s("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
862
- /* @__PURE__ */ s(
863
- oe,
864
- {
865
- mode: "alt-system",
866
- name: "location",
867
- label: "Location",
868
- value: w,
869
- onChange: (n) => {
870
- f(n.target.value);
871
- },
872
- helperText: "Enter your location or press auto-detect."
873
- }
874
- ),
875
- /* @__PURE__ */ s(
876
- re,
877
- {
878
- className: "mt-2",
879
- size: "small",
880
- noBorder: !0,
881
- variant: "secondary",
882
- disabled: d.loadingLocation,
883
- onClick: W,
884
- children: d.loadingLocation ? "Detecting..." : "Auto-detect"
885
- }
886
- )
887
- ] }),
862
+ /* @__PURE__ */ v(
863
+ V,
864
+ {
865
+ header: "Location",
866
+ className: "prose-dark dark:prose-lighter mt-4",
867
+ noBorder: !0,
868
+ children: [
869
+ /* @__PURE__ */ s("p", { className: "text-sm", children: "You can share your location to receive customized responses based on your area." }),
870
+ /* @__PURE__ */ s(
871
+ oe,
872
+ {
873
+ mode: "alt-system",
874
+ name: "location",
875
+ label: "Location",
876
+ value: w,
877
+ onChange: (n) => {
878
+ f(n.target.value);
879
+ },
880
+ helperText: "Enter your location or press auto-detect."
881
+ }
882
+ ),
883
+ /* @__PURE__ */ s(
884
+ re,
885
+ {
886
+ className: "mt-2",
887
+ size: "small",
888
+ noBorder: !0,
889
+ variant: "secondary",
890
+ disabled: d.loadingLocation,
891
+ onClick: W,
892
+ children: d.loadingLocation ? "Detecting..." : "Auto-detect"
893
+ }
894
+ )
895
+ ]
896
+ }
897
+ ),
888
898
  /* @__PURE__ */ v(
889
899
  V,
890
900
  {
891
901
  header: P.SETTINGS_CACHING.TITLE,
892
902
  className: "prose-dark dark:prose-lighter mt-4",
903
+ noBorder: !0,
893
904
  children: [
894
905
  /* @__PURE__ */ s("p", { className: "text-sm", children: P.SETTINGS_CACHING.DESCRIPTION }),
895
906
  /* @__PURE__ */ s(
896
- G,
907
+ B,
897
908
  {
898
909
  className: "mt-2",
899
910
  label: "Enable Assets Caching",
@@ -910,6 +921,7 @@ const bt = ({
910
921
  {
911
922
  header: P.SETTINGS_PROMPTS.TITLE,
912
923
  className: "prose-dark dark:prose-lighter mt-4",
924
+ noBorder: !0,
913
925
  children: [
914
926
  /* @__PURE__ */ s("p", { className: "text-sm", children: Ce }),
915
927
  m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */ v(
@@ -922,7 +934,7 @@ const bt = ({
922
934
  children: [
923
935
  /* @__PURE__ */ s("p", { className: "text-sm", children: n.description }),
924
936
  /* @__PURE__ */ s(
925
- G,
937
+ B,
926
938
  {
927
939
  mode: "dark",
928
940
  className: "mt-2",
@@ -939,7 +951,7 @@ const bt = ({
939
951
  }
940
952
  ),
941
953
  /* @__PURE__ */ s(
942
- G,
954
+ B,
943
955
  {
944
956
  mode: "dark",
945
957
  className: "mt-2",
@@ -956,7 +968,7 @@ const bt = ({
956
968
  }
957
969
  ),
958
970
  /* @__PURE__ */ s(
959
- G,
971
+ B,
960
972
  {
961
973
  mode: "dark",
962
974
  className: "mt-2",
@@ -1,15 +1,15 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.DOg0VpsL.js";
3
- import { i as M, useUserChatStats as _, useChatsUsage as D, tt as z } from "./App.Dx9-zTHB.js";
4
- import { useState as O, Suspense as P, lazy as j } from "react";
5
- const s = [0, 3, 6, 9], G = j(() => import(
2
+ import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.JQwwuZH2.js";
3
+ import { i as M, useUserChatStats as _, useChatsUsage as D, tt as z } from "./App.DCSCEeDu.js";
4
+ import { useState as O, Suspense as P, lazy as B } from "react";
5
+ const t = [0, 3, 6, 9], j = B(() => import(
6
6
  /* webpackChunkName: "LazyChart" */
7
- "./Chart.BZQyCveT.js"
7
+ "./Chart.jZDpolhQ.js"
8
8
  )), w = ({
9
9
  open: m,
10
10
  onOpenChange: I
11
11
  }) => {
12
- const { getAccessToken: d, user: u } = f(), p = M(), { data: t, isSuccess: A } = _({
12
+ const { getAccessToken: d, user: u } = f(), p = M(), { data: s, isSuccess: A } = _({
13
13
  user: u?.username,
14
14
  getAccessToken: d
15
15
  }), { data: r, isSuccess: g } = D({
@@ -17,12 +17,12 @@ const s = [0, 3, 6, 9], G = j(() => import(
17
17
  getAccessToken: d
18
18
  }), C = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [a, h] = O(C), x = (o) => {
19
19
  o.preventDefault();
20
- const c = (s.indexOf(a) + 1) % s.length;
21
- h(s[c]);
20
+ const c = (t.indexOf(a) + 1) % t.length;
21
+ h(t[c]);
22
22
  }, k = (o) => {
23
23
  o.preventDefault();
24
- const c = (s.indexOf(a) - 1 + s.length) % s.length;
25
- h(s[c]);
24
+ const c = (t.indexOf(a) - 1 + t.length) % t.length;
25
+ h(t[c]);
26
26
  };
27
27
  return /* @__PURE__ */ l(z, { open: m, onOpenChange: I, title: U, children: [
28
28
  /* @__PURE__ */ e(
@@ -30,18 +30,19 @@ const s = [0, 3, 6, 9], G = j(() => import(
30
30
  {
31
31
  header: n.MAIN_STATISTICS.TITLE,
32
32
  className: "prose-dark dark:prose-lighter min-h-[170px]",
33
+ noBorder: !0,
33
34
  children: A ? v(
34
35
  p,
35
36
  {
36
- [i(n.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
37
+ [i(n.MAIN_STATISTICS.TOTAL, s.totalChats)]: s.totalChats,
37
38
  [i(
38
39
  n.MAIN_STATISTICS.TOTAL_PRIVATE,
39
- t.privateChats
40
- )]: t.privateChats,
40
+ s.privateChats
41
+ )]: s.privateChats,
41
42
  [i(
42
43
  n.MAIN_STATISTICS.TOTAL_DELETED,
43
- t.deletedChats
44
- )]: t.deletedChats
44
+ s.deletedChats
45
+ )]: s.deletedChats
45
46
  },
46
47
  !0
47
48
  ) : null
@@ -52,9 +53,10 @@ const s = [0, 3, 6, 9], G = j(() => import(
52
53
  {
53
54
  header: n.MAIN_STATISTICS.USAGE,
54
55
  className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
56
+ noBorder: !0,
55
57
  children: g && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ l(P, { fallback: /* @__PURE__ */ e("div", {}), children: [
56
58
  /* @__PURE__ */ e("div", { className: "pt-4" }),
57
- /* @__PURE__ */ e(G, { tokenUsage: r.tokenUsage.series, page: a }),
59
+ /* @__PURE__ */ e(j, { tokenUsage: r.tokenUsage.series, page: a }),
58
60
  /* @__PURE__ */ e(E, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ l(L, { children: [
59
61
  /* @__PURE__ */ e(
60
62
  S,
@@ -1,5 +1,5 @@
1
- import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.DhPC7902.js";
2
- import { toText as Ca } from "./index.DmHrrtXp.js";
1
+ import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.BLLzDS29.js";
2
+ import { toText as Ca } from "./index.D9gw5Emx.js";
3
3
  const Gt = /[#.]/g;
4
4
  function qa(r, e) {
5
5
  const t = r || "", a = {};
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.Dx9-zTHB.js";
2
- import { visit as In } from "./useMarkdown.DhPC7902.js";
3
- import { toText as Cn } from "./index.DmHrrtXp.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.DCSCEeDu.js";
2
+ import { visit as In } from "./useMarkdown.BLLzDS29.js";
3
+ import { toText as Cn } from "./index.D9gw5Emx.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",
@@ -1,4 +1,4 @@
1
- import { convert as E, convertElement as u } from "./useMarkdown.DhPC7902.js";
1
+ import { convert as E, convertElement as u } from "./useMarkdown.BLLzDS29.js";
2
2
  const f = (
3
3
  // Note: overloads like this are needed to support optional generics.
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.DhPC7902.js";
1
+ import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.BLLzDS29.js";
2
2
  import { longestStreak as qe } from "./index.Cyw5OC0t.js";
3
3
  function ne(e, n) {
4
4
  const t = String(e);
@@ -1,4 +1,4 @@
1
- import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.DhPC7902.js";
1
+ import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.BLLzDS29.js";
2
2
  import { longestStreak as q } from "./index.Cyw5OC0t.js";
3
3
  function b() {
4
4
  return {
@@ -3078,7 +3078,7 @@ var gu = (e, t = !1) => {
3078
3078
  const t = Li(() => {
3079
3079
  const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [o] = this.#u, [a] = this.#f, [c] = this.#e;
3080
3080
  let d;
3081
- return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.2ywI9eYE.js")), this.#d = d), Ca(this.#o, this.#a), Ei(d, Ti({
3081
+ return this.#d ? d = this.#d : (d = Ii(() => import("./LNWAZHJI.DucKAHzu.js")), this.#d = d), Ca(this.#o, this.#a), Ei(d, Ti({
3082
3082
  get queryFlavor() {
3083
3083
  return r.#r;
3084
3084
  },
@@ -7338,7 +7338,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ud = "{{clipboard}}", M = "
7338
7338
  );
7339
7339
  }, Fl = new URL(document.location.href).searchParams, on = !!Fl.get("debug") || !1, Kl = Ds(() => import(
7340
7340
  /* webpackChunkName: "LazyApp" */
7341
- "./App.Dx9-zTHB.js"
7341
+ "./App.DCSCEeDu.js"
7342
7342
  ).then((e) => e.App)), Hl = new si(), cn = ({
7343
7343
  isComponent: e,
7344
7344
  headerHeight: t
@@ -1,8 +1,8 @@
1
1
  import * as rn from "react/jsx-runtime";
2
2
  import { jsx as ae, jsxs as Pn, Fragment as Ir } from "react/jsx-runtime";
3
- import { ue as Tr, isTauri as Pr, unObfuscate as Ar, obfuscate as zr } from "./index.DOg0VpsL.js";
3
+ import { ue as Tr, isTauri as Pr, unObfuscate as Ar, obfuscate as zr } from "./index.JQwwuZH2.js";
4
4
  import Lr, { useState as Lt, useEffect as _t, useCallback as vt, useRef as Re } from "react";
5
- import { getDefaultExportFromCjs as Nt } from "./App.Dx9-zTHB.js";
5
+ import { getDefaultExportFromCjs as Nt } from "./App.DCSCEeDu.js";
6
6
  import _r from "clsx";
7
7
  const Rt = ({
8
8
  children: e,
@@ -6897,7 +6897,7 @@ class su {
6897
6897
  if (!this.remarkGfm) {
6898
6898
  const { default: n } = await import(
6899
6899
  /* webpackChunkName: "LazyRemarkGfm" */
6900
- "./index.CC1vk8gw.js"
6900
+ "./index.DOBzYZBm.js"
6901
6901
  );
6902
6902
  this.remarkGfm = n;
6903
6903
  }
@@ -6908,7 +6908,7 @@ class su {
6908
6908
  mu("https://cdn.jsdelivr.net/npm/katex@latest/dist/katex.min.css");
6909
6909
  const { default: n } = await import(
6910
6910
  /* webpackChunkName: "LazyRehypeKatex" */
6911
- "./index.BWMHqOIQ.js"
6911
+ "./index.Bcs1SNB7.js"
6912
6912
  );
6913
6913
  this.rehypeKatex = n;
6914
6914
  }
@@ -6918,7 +6918,7 @@ class su {
6918
6918
  if (!this.remarkMath) {
6919
6919
  const { default: n } = await import(
6920
6920
  /* webpackChunkName: "LazyRemarkMath" */
6921
- "./index.CwVOslhQ.js"
6921
+ "./index.DgZtT_J4.js"
6922
6922
  );
6923
6923
  this.remarkMath = n;
6924
6924
  }
@@ -6928,7 +6928,7 @@ class su {
6928
6928
  if (!this.rehypeHighlight) {
6929
6929
  const { default: n } = await import(
6930
6930
  /* webpackChunkName: "LazyRehypeHighlight" */
6931
- "./index.B6rltQz_.js"
6931
+ "./index.C6zTF9ZF.js"
6932
6932
  );
6933
6933
  this.rehypeHighlight = n;
6934
6934
  }
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.DOg0VpsL.js";
2
+ import { SassySaint as a } from "../../chunks/index.JQwwuZH2.js";
3
3
  export {
4
4
  a as SassySaint
5
5
  };
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { SassySaint as r } from "./chunks/index.DOg0VpsL.js";
1
+ import { SassySaint as r } from "./chunks/index.JQwwuZH2.js";
2
2
  /*!
3
- @sassysaint/client v8.34.2
3
+ @sassysaint/client v8.35.0
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "8.34.2",
9
- buildTime: "08/07/2025 09:55 PM EDT",
8
+ version: "8.35.0",
9
+ buildTime: "08/08/2025 10:36 AM EDT",
10
10
  license: "MIT"
11
11
  });
12
12
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/sassysaint",
3
- "version": "8.34.2",
3
+ "version": "8.35.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -31,7 +31,7 @@
31
31
  "react-dom": "^18.3.1 || ^19.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@sassysaint/client": "8.34.2",
34
+ "@sassysaint/client": "8.35.0",
35
35
  "@tailwindcss/vite": "4.1.11",
36
36
  "@versini/ui-styles": "6.0.0"
37
37
  },
@@ -43,5 +43,5 @@
43
43
  "sideEffects": [
44
44
  "**/*.css"
45
45
  ],
46
- "gitHead": "e09f225b5a6d7a524af57bacbde411525e7b458c"
46
+ "gitHead": "fbe76f83ede67df93201685e5b0e851fb4e4b20f"
47
47
  }