@versini/sassysaint 8.42.2 → 8.43.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.LB-VjAKc.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.lIa74yNL.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.BelZuQjs.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.C5JI91s5.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 { n as F, convertCamelCaseToReadable as O, numberFormatter as P, pluralize as R, re as v } from "./index.BelZuQjs.js";
3
- import { ChatContext as y, useUserPreferences as G, Me as L, Oe as A } from "./App.LB-VjAKc.js";
2
+ import { n as F, convertCamelCaseToReadable as O, numberFormatter as P, pluralize as R, ne as v } from "./index.C5JI91s5.js";
3
+ import { ChatContext as y, useUserPreferences as G, Me as L, Oe as A } from "./App.lIa74yNL.js";
4
4
  import E from "clsx";
5
5
  import D, { useState as x, useRef as S, useEffect as U, useContext as _ } from "react";
6
- import { useMarkdown as j } from "./useMarkdown.FF5vDuZM.js";
6
+ import { useMarkdown as j } from "./useMarkdown.FhgT7Fw1.js";
7
7
  const q = 2, I = q * 1e3, b = "", W = (e) => e * (2 - e);
8
8
  function $(e, n = !0) {
9
9
  const [a, p] = x(0), [i, C] = x(0), [t, h] = x(e), r = S(0), s = S(0);
@@ -1,6 +1,6 @@
1
1
  import { jsxs as h, jsx as e, Fragment as ne } from "react/jsx-runtime";
2
- import { I as z, ue$1 as A, Ae as M, INFINITE_SCROLL_THRESHOLD as F, CARDS as ce, pluralize as ie, ue as I, numberFormatter as le, de, isProbablyMobile as me, E as he, a as ue, i as pe, n as Y, INFINITE_SCROLL_LIMIT as U, LOCAL_STORAGE_PREFIX as v, LOCAL_STORAGE_SORT_TIMESTAMP as Ce, LOCAL_STORAGE_SORT_TOKEN_USAGE as Se, LOCAL_STORAGE_SORT as Te, APP_CLASSNAME as ge, ACTION_SORT as Ee, TOAST_CHAT_DELETED as xe, TOAST_PROVIDER_CHANGED as fe, LOCAL_STORAGE_SEARCH as ye, HISTORY_TITLE as Ae, pe$1 as De, debounce as Oe, ACTION_SEARCH as Re } from "./index.BelZuQjs.js";
3
- import { De as Ne, He as ve, qe as k, Ge as we, Fe as Me, Pe as C, Ye as V, st as $, p$1 as _e, z as ke, p$2 as Ie, HistoryContext as K, ChatContext as W, useAiChat as be, E as w, E$1 as y, useUserPreferences as Le, ConfirmationPanel as ze, LazyToastContainerWrapper as He, mutateCall as B, SERVICE_TYPES as G, showErrorToast as Pe, setNewProvider as Ue, CHAT_SET_PROVIDER as Ve, showSuccessToast as $e, CHAT_SET_STATUS as Be, useChatsHistory as Ge, tt as Fe, a as Ye } from "./App.LB-VjAKc.js";
2
+ import { I as z, ue$1 as A, pe as M, INFINITE_SCROLL_THRESHOLD as F, CARDS as ce, pluralize as ie, ue as I, numberFormatter as le, Ae as de, isProbablyMobile as me, E as he, a as ue, i as pe, n as Y, INFINITE_SCROLL_LIMIT as U, LOCAL_STORAGE_PREFIX as v, LOCAL_STORAGE_SORT_TIMESTAMP as Ce, LOCAL_STORAGE_SORT_TOKEN_USAGE as Se, LOCAL_STORAGE_SORT as Te, APP_CLASSNAME as ge, ACTION_SORT as Ee, TOAST_CHAT_DELETED as xe, TOAST_PROVIDER_CHANGED as fe, LOCAL_STORAGE_SEARCH as ye, HISTORY_TITLE as Ae, pe$1 as De, debounce as Oe, ACTION_SEARCH as Re } from "./index.C5JI91s5.js";
3
+ import { De as Ne, He as ve, qe as k, Ge as we, Fe as Me, Pe as C, Ye as V, st as $, p$1 as _e, z as ke, p$2 as Ie, HistoryContext as K, ChatContext as W, useAiChat as be, E as w, E$1 as y, useUserPreferences as Le, ConfirmationPanel as ze, LazyToastContainerWrapper as He, mutateCall as B, SERVICE_TYPES as G, showErrorToast as Pe, setNewProvider as Ue, CHAT_SET_PROVIDER as Ve, showSuccessToast as $e, CHAT_SET_STATUS as Be, useChatsHistory as Ge, tt as Fe, a as Ye } from "./App.lIa74yNL.js";
4
4
  import { Fragment as Ke, useRef as b, useState as L, useContext as _, useCallback as We, useEffect as j } from "react";
5
5
  const je = ({
6
6
  className: c,
@@ -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.BelZuQjs.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.C5JI91s5.js";
2
2
  var qs = (e) => e != null, _s = (e) => e.filter(qs);
3
3
  function Rs(e) {
4
4
  return (...t) => {
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { i as h, nt as S, tt as R } from "./App.LB-VjAKc.js";
3
- import { n as u, S as a, renderDataAsList as N, CARDS as r, isTauri as P, ue as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.BelZuQjs.js";
2
+ import { i as h, nt as S, tt as R } from "./App.lIa74yNL.js";
3
+ import { n as u, S as a, renderDataAsList as N, CARDS as r, isTauri as P, ue as T, l as E, L as p, j as l, PROFILE_TITLE as C } from "./index.C5JI91s5.js";
4
4
  const A = () => {
5
5
  const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = u(), d = h(), s = i?.username || "";
6
6
  return n && s ? /* @__PURE__ */ t(m, { children: [
@@ -1,7 +1,7 @@
1
1
  import { jsxs as v, jsx as s } from "react/jsx-runtime";
2
- import { n as ke, LOCAL_STORAGE_PREFIX as xe, LOCAL_STORAGE_SERVICE_WORKER as Ee, isServiceWorkerEnabled as Te, SETTINGS_TITLE as Ne, S as V, CARDS as P, pe as ve, C as re, PROMPTS_DESCRIPTION as we, L as _e, j as ne, getCurrentGeoLocation as Ce, handleServiceWorkerToggle as Se } from "./index.BelZuQjs.js";
3
- import { useUserPreferences as Ie, E as Ae, tt as Le, mutateCall as se, SERVICE_TYPES as le } from "./App.LB-VjAKc.js";
4
- import Re, { useRef as w, useState as g, useLayoutEffect as j, useMemo as de, useEffect as X, useId as Me, useReducer as Oe, useCallback as De } from "react";
2
+ import { n as ke, LOCAL_STORAGE_PREFIX as xe, LOCAL_STORAGE_SERVICE_WORKER as Ee, isServiceWorkerEnabled as Te, SETTINGS_TITLE as Ne, S as $, CARDS as P, Oe as ve, C as re, PROMPTS_DESCRIPTION as we, L as _e, j as ne, getCurrentGeoLocation as Ce, handleServiceWorkerToggle as Se } from "./index.C5JI91s5.js";
3
+ import { useUserPreferences as Ie, E as Ae, tt as Le, mutateCall as se, SERVICE_TYPES as le } from "./App.lIa74yNL.js";
4
+ import Re, { useRef as w, useState as g, useLayoutEffect as j, useMemo as de, useEffect as X, useId as Oe, useReducer as Me, useCallback as De } from "react";
5
5
  import i from "clsx";
6
6
  const ue = "av-text-area", Pe = "av-text-area-wrapper", ae = "av-text-area-helper-text", Be = "av-text-area__control--right", Ge = "av-text-area__control--left";
7
7
  function He() {
@@ -18,7 +18,7 @@ function Ue(e) {
18
18
  });
19
19
  }, [...e]);
20
20
  }
21
- const Ve = {
21
+ const $e = {
22
22
  x: 0,
23
23
  y: 0,
24
24
  width: 0,
@@ -29,7 +29,7 @@ const Ve = {
29
29
  right: 0
30
30
  };
31
31
  function ce(e) {
32
- const a = He(), r = w(0), o = w(null), [t, l] = g(Ve), c = de(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
32
+ const a = He(), r = w(0), o = w(null), [t, l] = g($e), c = de(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
33
33
  const u = d[0];
34
34
  u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
35
35
  o.current && a() && l(u.contentRect);
@@ -39,7 +39,7 @@ function ce(e) {
39
39
  c?.disconnect(), r.current && cancelAnimationFrame(r.current);
40
40
  }), [c, e]), [o, t];
41
41
  }
42
- function $e({
42
+ function Ve({
43
43
  value: e,
44
44
  defaultValue: a,
45
45
  finalValue: r,
@@ -59,7 +59,7 @@ function $e({
59
59
  }, [e, t, l]), e !== void 0 ? !l && t > 0 ? ["", o, !0] : [e, o, !0] : [d, m, !1];
60
60
  }
61
61
  function Fe(e) {
62
- const a = Me();
62
+ const a = Oe();
63
63
  if (!e)
64
64
  return a;
65
65
  if (typeof e == "number" || typeof e == "string")
@@ -150,7 +150,7 @@ function Ye({
150
150
  visible: d,
151
151
  ...u
152
152
  }) {
153
- const m = w(null), p = w(null), [b, S] = Oe(ze, {
153
+ const m = w(null), p = w(null), [b, S] = Me(ze, {
154
154
  announcement: null
155
155
  });
156
156
  let _ = r;
@@ -370,12 +370,12 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
370
370
  helperTextOnFocus: I = !1,
371
371
  rightElement: k,
372
372
  leftElement: C,
373
- onChange: $,
373
+ onChange: V,
374
374
  onFocus: Y,
375
375
  onBlur: F,
376
376
  ...q
377
377
  }, K) => {
378
- const x = w(null), J = Ue([K, x]), [Z, G] = ce(), [Q, A] = ce(), W = w(80), z = w(-25), L = w(null), n = w(30), h = w(null), E = Fe({ id: e, prefix: `${ue}-` }), [H, R] = g(0), [y, T] = g(0), [O, U] = g(
378
+ const x = w(null), J = Ue([K, x]), [Z, G] = ce(), [Q, A] = ce(), W = w(80), z = w(-25), L = w(null), n = w(30), h = w(null), E = Fe({ id: e, prefix: `${ue}-` }), [H, R] = g(0), [y, T] = g(0), [M, U] = g(
379
379
  !!(!I && f)
380
380
  ), ee = `${a} error, ${f}`, D = tt({
381
381
  className: l,
@@ -388,12 +388,12 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
388
388
  mode: d,
389
389
  rightElement: !!k,
390
390
  leftElement: !!C
391
- }), [M, pe] = $e({
391
+ }), [O, pe] = Ve({
392
392
  value: m,
393
393
  initialControlledDelay: 20,
394
394
  defaultValue: p,
395
395
  onChange: (N) => {
396
- $ && $({
396
+ V && V({
397
397
  target: {
398
398
  value: N
399
399
  }
@@ -404,23 +404,23 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
404
404
  }, ge = (N) => {
405
405
  I && f && U(!0), Y && Y(N);
406
406
  }, ye = (N) => {
407
- I && f && !M && U(!1), F && F(N);
407
+ I && f && !O && U(!1), F && F(N);
408
408
  };
409
409
  return j(() => {
410
410
  G && G.width && R(G.width + 18 + 10);
411
411
  }, [G]), j(() => {
412
412
  A && A.width && T(A.width + 18 + 10);
413
413
  }, [A]), j(() => {
414
- t || x && x.current && M !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
415
- }, [M, t]), j(() => {
414
+ t || x && x.current && O !== void 0 && (x.current.style.height = "inherit", x.current.style.height = x.current.scrollHeight + "px");
415
+ }, [O, t]), j(() => {
416
416
  t || setTimeout(() => {
417
417
  L?.current?.style.setProperty(
418
418
  "--av-text-area-wrapper-transition",
419
- M ? "none" : "all 0.2s ease-out"
419
+ O ? "none" : "all 0.2s ease-out"
420
420
  );
421
421
  }, 0);
422
- }, [M, t]), j(() => {
423
- if (!t && x && x.current && M !== void 0) {
422
+ }, [O, t]), j(() => {
423
+ if (!t && x && x.current && O !== void 0) {
424
424
  const { labelOffset: N, helperTextOffset: te, scrollHeight: be } = rt({
425
425
  scrollHeight: x.current.scrollHeight,
426
426
  currentHeight: W.current,
@@ -435,7 +435,7 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
435
435
  `${te}px`
436
436
  )), W.current = be || W.current;
437
437
  }
438
- }, [M, t]), A.width > 0 && L?.current?.style.setProperty(
438
+ }, [O, t]), A.width > 0 && L?.current?.style.setProperty(
439
439
  "--tw-translate-x",
440
440
  `${12 + A.width + 5}px`
441
441
  ), /* @__PURE__ */ v("div", { className: D.wrapper, children: [
@@ -476,7 +476,7 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
476
476
  paddingLeft: y
477
477
  }
478
478
  },
479
- value: M,
479
+ value: O,
480
480
  onChange: he,
481
481
  onFocus: ge,
482
482
  onBlur: ye,
@@ -493,7 +493,7 @@ const qe = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
493
493
  children: r
494
494
  }
495
495
  ),
496
- O && /* @__PURE__ */ s(
496
+ M && /* @__PURE__ */ s(
497
497
  "div",
498
498
  {
499
499
  ref: h,
@@ -660,7 +660,7 @@ const yt = ({
660
660
  loadingLocation: !1
661
661
  }), [m, p] = g({
662
662
  prompts: []
663
- }), [b, S] = g(""), [_, f] = g(""), [I, k] = g(!1), [C, $] = g(!1), [Y, F] = g(!1), [q, K] = g(!1), [, x] = Ae({
663
+ }), [b, S] = g(""), [_, f] = g(""), [I, k] = g(!1), [C, V] = g(!1), [Y, F] = g(!1), [q, K] = g(!1), [, x] = Ae({
664
664
  key: xe + Ee,
665
665
  initialValue: !1
666
666
  }), J = (n) => {
@@ -668,7 +668,7 @@ const yt = ({
668
668
  }, Z = (n) => {
669
669
  k(n);
670
670
  }, G = (n) => {
671
- $(n);
671
+ V(n);
672
672
  }, Q = async (n) => {
673
673
  x(n), F(n), await Se(n);
674
674
  }, A = async (n) => {
@@ -706,7 +706,7 @@ const yt = ({
706
706
  }
707
707
  }), R = Date.now() - n;
708
708
  if (R < 2e3 && await new Promise((y) => setTimeout(y, 2e3 - R)), E.status === 200) {
709
- const { city: y, state: T, country: O, displayName: U } = E.data, ee = y && T && O ? `${y}, ${T}, ${O}` : U;
709
+ const { city: y, state: T, country: M, displayName: U } = E.data, ee = y && T && M ? `${y}, ${T}, ${M}` : U;
710
710
  u({
711
711
  loadingLocation: !1
712
712
  }), f(ee);
@@ -732,18 +732,18 @@ const yt = ({
732
732
  clipboardAccess: E
733
733
  };
734
734
  E ? T.content = T.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : T.content = T.content.replace(/{{clipboard}}/g, "");
735
- const O = y.findIndex((U) => U.slot === H.slot);
736
- return O === -1 ? {
735
+ const M = y.findIndex((U) => U.slot === H.slot);
736
+ return M === -1 ? {
737
737
  ...R,
738
738
  prompts: [...y, { ...T }]
739
- } : (y[O] = T, {
739
+ } : (y[M] = T, {
740
740
  ...R,
741
741
  prompts: [...y]
742
742
  });
743
743
  });
744
744
  };
745
745
  return X(() => {
746
- t?.instructions && S(t.instructions), t?.location && f(t.location), t?.tags && p({ prompts: t.tags }), t?.sendOnEnter !== void 0 && k(t.sendOnEnter), t?.useMemory !== void 0 && $(t.useMemory), t?.showDetails !== void 0 && K(t.showDetails), F(Te());
746
+ t?.instructions && S(t.instructions), t?.location && f(t.location), t?.tags && p({ prompts: t.tags }), t?.sendOnEnter !== void 0 && k(t.sendOnEnter), t?.useMemory !== void 0 && V(t.useMemory), t?.showDetails !== void 0 && K(t.showDetails), F(Te());
747
747
  }, [t]), l ? /* @__PURE__ */ v(
748
748
  Le,
749
749
  {
@@ -786,7 +786,7 @@ const yt = ({
786
786
  ),
787
787
  children: [
788
788
  /* @__PURE__ */ v(
789
- V,
789
+ $,
790
790
  {
791
791
  header: P.SETTINGS_DETAILS.TITLE,
792
792
  className: "prose-dark dark:prose-lighter",
@@ -829,7 +829,7 @@ const yt = ({
829
829
  }
830
830
  ),
831
831
  /* @__PURE__ */ v(
832
- V,
832
+ $,
833
833
  {
834
834
  header: "Custom Instructions",
835
835
  className: "prose-dark dark:prose-lighter mt-4",
@@ -860,7 +860,7 @@ const yt = ({
860
860
  }
861
861
  ),
862
862
  /* @__PURE__ */ v(
863
- V,
863
+ $,
864
864
  {
865
865
  header: "Location",
866
866
  className: "prose-dark dark:prose-lighter mt-4",
@@ -896,7 +896,7 @@ const yt = ({
896
896
  }
897
897
  ),
898
898
  /* @__PURE__ */ v(
899
- V,
899
+ $,
900
900
  {
901
901
  header: P.SETTINGS_CACHING.TITLE,
902
902
  className: "prose-dark dark:prose-lighter mt-4",
@@ -917,7 +917,7 @@ const yt = ({
917
917
  }
918
918
  ),
919
919
  /* @__PURE__ */ v(
920
- V,
920
+ $,
921
921
  {
922
922
  header: P.SETTINGS_PROMPTS.TITLE,
923
923
  className: "prose-dark dark:prose-lighter mt-4",
@@ -925,7 +925,7 @@ const yt = ({
925
925
  children: [
926
926
  /* @__PURE__ */ s("p", { className: "text-sm", children: we }),
927
927
  m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */ v(
928
- V,
928
+ $,
929
929
  {
930
930
  mode: "dark",
931
931
  noBorder: !0,
@@ -1,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, USAGE_TITLE as U, S as h, renderDataAsList as v, CARDS as n, L as E, j as L, C as m, pluralize as i } from "./index.BelZuQjs.js";
3
- import { i as M, useUserChatStats as _, useChatsUsage as D, tt as z } from "./App.LB-VjAKc.js";
2
+ import { n as f, USAGE_TITLE as U, S as h, renderDataAsList as v, CARDS as n, L as E, j as L, C as m, pluralize as i } from "./index.C5JI91s5.js";
3
+ import { i as M, useUserChatStats as _, useChatsUsage as D, tt as z } from "./App.lIa74yNL.js";
4
4
  import { useState as O, Suspense as P, lazy as B } from "react";
5
5
  const t = [0, 3, 6, 9], j = B(() => import(
6
6
  /* webpackChunkName: "LazyChart" */
7
- "./Chart.C5bHgMnj.js"
7
+ "./Chart.C79YrYuT.js"
8
8
  )), b = ({
9
9
  open: S,
10
10
  onOpenChange: I
@@ -1,4 +1,4 @@
1
- import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.FF5vDuZM.js";
1
+ import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.FhgT7Fw1.js";
2
2
  import { longestStreak as q } from "./index.Cyw5OC0t.js";
3
3
  function b() {
4
4
  return {