@versini/sassysaint 5.3.7 → 5.3.8

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,5 +1,5 @@
1
1
  import { jsxs as v, Fragment as H, jsx as n } from "react/jsx-runtime";
2
- import { AppContext as j, TagsContext as Y, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as q, ROLE_USER as K, rn as Z, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.Htlj5BwD.js";
2
+ import { AppContext as j, TagsContext as Y, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as q, ROLE_USER as K, rn as Z, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.BsmLg4en.js";
3
3
  import { E as $, restCall as He, we as je, serviceCall as Pe, SERVICE_TYPES as Ge, f as Fe } from "./index.C8-dCwmB.js";
4
4
  import S, { useContext as U, useRef as R, useEffect as E, useState as P, lazy as We, Suspense as re, useReducer as F } from "react";
5
5
  import d from "clsx";
@@ -1130,7 +1130,7 @@ try {
1130
1130
  const ne = We(
1131
1131
  () => import(
1132
1132
  /* webpackChunkName: "LazyMessageAssistant" */
1133
- "./LazyMessageAssistant.De9R5w_u.js"
1133
+ "./LazyMessageAssistant.CI97mVOI.js"
1134
1134
  ).then((e) => e.LazyMessageAssistant)
1135
1135
  ), Ut = () => {
1136
1136
  const { state: e } = U(j);
@@ -1,11 +1,11 @@
1
1
  import { jsx as r, jsxs as v, Fragment as R } from "react/jsx-runtime";
2
- import { g as O, E as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Lt, DEFAULT_AI_ENGINE as ie, numberFormatter as Ot, durationFormatter as Qe, NA as Bt, ROLE_ASSISTANT as Pt, extractAverage as zt, GPT4_MAX_TOKENS as Vt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as D, LOCAL_STORAGE_SORT as $t, O as Y, ACTION_RESET as Dt, ACTION_RESTORE as Ht, truncate as Ft, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Gt, me as Ut, ACTION_SEARCH as jt, HISTORY_TITLE as Kt, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as Wt, LOCAL_STORAGE_TAG_SUMMARIZE as $e, LOCAL_STORAGE_TAG_PROOFREAD as De, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Yt, G as Zt, v as Fe, PROFILE_TITLE as qt, LOG_OUT as Ge } from "./index.Htlj5BwD.js";
2
+ import { g as O, E as P, CARDS as w, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Ot, DEFAULT_AI_ENGINE as ie, numberFormatter as Bt, durationFormatter as Qe, NA as Pt, ROLE_ASSISTANT as zt, extractAverage as Vt, GPT4_MAX_TOKENS as $t, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as D, LOCAL_STORAGE_SORT as Dt, O as Y, ACTION_RESET as ot, ACTION_RESTORE as Ht, truncate as Ft, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Gt, me as Ut, ACTION_SEARCH as jt, HISTORY_TITLE as Kt, LOCAL_STORAGE_ENGINE_TOGGLE as rt, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as at, getCurrentGeoLocation as Wt, LOCAL_STORAGE_TAG_SUMMARIZE as $e, LOCAL_STORAGE_TAG_PROOFREAD as De, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as we, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Yt, G as Zt, v as Fe, PROFILE_TITLE as qt, LOG_OUT as Ge } from "./index.BsmLg4en.js";
3
3
  import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ge as Xt, he as Jt, ue as Ee, de as B, pe as Qt, me as eo, be as to, we as Ue } from "./index.C8-dCwmB.js";
4
4
  import * as f from "react";
5
- import x, { useId as oo, forwardRef as at, useState as S, useRef as ce, useContext as $, useEffect as U, Suspense as ro, lazy as ao, useMemo as no } from "react";
5
+ import x, { useId as oo, forwardRef as nt, useState as S, useRef as ce, useContext as $, useEffect as U, Suspense as ro, lazy as ao, useMemo as no } from "react";
6
6
  import C from "clsx";
7
- import { useFloatingTree as nt, useFloatingNodeId as so, useListItem as st, useFloating as io, offset as lo, flip as co, shift as uo, autoUpdate as mo, useClick as ho, useRole as go, useDismiss as po, useListNavigation as fo, useTypeahead as bo, useInteractions as vo, useMergeRefs as it, FloatingNode as yo, FloatingList as ko, FloatingPortal as Co, FloatingFocusManager as To, FloatingTree as wo } from "@floating-ui/react";
8
- const lt = ({
7
+ import { useFloatingTree as st, useFloatingNodeId as so, useListItem as it, useFloating as io, offset as lo, flip as co, shift as uo, autoUpdate as mo, useClick as ho, useRole as go, useDismiss as po, useListNavigation as fo, useTypeahead as bo, useInteractions as vo, useMergeRefs as lt, FloatingNode as yo, FloatingList as ko, FloatingPortal as Co, FloatingFocusManager as To, FloatingTree as wo } from "@floating-ui/react";
8
+ const ct = ({
9
9
  className: e,
10
10
  viewBox: t,
11
11
  spacing: o,
@@ -192,7 +192,7 @@ const lt = ({
192
192
  /* @__PURE__ */ r("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h24V272H216c-13.3 0-24-10.7-24-24z" })
193
193
  ]
194
194
  }
195
- ), ct = ({
195
+ ), dt = ({
196
196
  className: e,
197
197
  viewBox: t,
198
198
  spacing: o,
@@ -316,7 +316,7 @@ const Ie = f.createContext({
316
316
  return t.displayName || t.name || "Component";
317
317
  }
318
318
  return "Element";
319
- }, dt = at(
319
+ }, ut = nt(
320
320
  ({
321
321
  trigger: e,
322
322
  children: t,
@@ -328,7 +328,7 @@ const Ie = f.createContext({
328
328
  focusMode: l = "system",
329
329
  ...h
330
330
  }, u) => {
331
- const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), T = ce([]), p = ce([]), k = $(Ie), N = nt(), I = so(), M = st(), { floatingStyles: _, refs: z, context: E } = io({
331
+ const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), T = ce([]), p = ce([]), k = $(Ie), N = st(), I = so(), M = it(), { floatingStyles: _, refs: z, context: E } = io({
332
332
  nodeId: I,
333
333
  open: m,
334
334
  onOpenChange: (ne) => {
@@ -352,17 +352,17 @@ const Ie = f.createContext({
352
352
  listRef: p,
353
353
  onMatch: m ? y : void 0,
354
354
  activeIndex: c
355
- }), { getReferenceProps: K, getFloatingProps: A, getItemProps: At } = vo([re, J, j, ae, L]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", Rt = Ve ? {
355
+ }), { getReferenceProps: K, getFloatingProps: A, getItemProps: Rt } = vo([re, J, j, ae, L]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", Mt = Ve ? {
356
356
  noInternalClick: Ve,
357
357
  focusMode: l,
358
358
  mode: i,
359
359
  spacing: s
360
- } : {}, Mt = x.cloneElement(e, {
361
- ...Rt,
360
+ } : {}, Lt = x.cloneElement(e, {
361
+ ...Mt,
362
362
  "aria-label": o,
363
363
  "data-open": m ? "" : void 0,
364
364
  "data-focus-inside": b ? "" : void 0,
365
- ref: it([z.setReference, M.ref, u]),
365
+ ref: lt([z.setReference, M.ref, u]),
366
366
  ...K(
367
367
  k.getItemProps({
368
368
  ...h
@@ -381,14 +381,14 @@ const Ie = f.createContext({
381
381
  }, [N, n]), U(() => {
382
382
  m && N && N.events.emit("menuopen", { nodeId: I });
383
383
  }, [N, m, I]), /* @__PURE__ */ v(yo, { id: I, children: [
384
- Mt,
384
+ Lt,
385
385
  /* @__PURE__ */ r(
386
386
  Ie.Provider,
387
387
  {
388
388
  value: {
389
389
  activeIndex: c,
390
390
  setActiveIndex: y,
391
- getItemProps: At,
391
+ getItemProps: Rt,
392
392
  setHasFocusInside: d,
393
393
  isOpen: m
394
394
  },
@@ -415,9 +415,9 @@ const Ie = f.createContext({
415
415
  )
416
416
  ] });
417
417
  }
418
- ), Se = at((e, t) => /* @__PURE__ */ r(wo, { children: /* @__PURE__ */ r(dt, { ...e, ref: t }) }));
418
+ ), Se = nt((e, t) => /* @__PURE__ */ r(wo, { children: /* @__PURE__ */ r(ut, { ...e, ref: t }) }));
419
419
  Se.displayName = "Menu";
420
- dt.displayName = "MenuComponent";
420
+ ut.displayName = "MenuComponent";
421
421
  const W = f.forwardRef(
422
422
  ({
423
423
  label: e,
@@ -428,7 +428,7 @@ const W = f.forwardRef(
428
428
  ignoreClick: s = !1,
429
429
  ...i
430
430
  }, l) => {
431
- const h = f.useContext(Ie), u = st({ label: t ? null : e }), m = nt(), g = it([u.ref, l]);
431
+ const h = f.useContext(Ie), u = it({ label: t ? null : e }), m = st(), g = lt([u.ref, l]);
432
432
  return a && n ? /* @__PURE__ */ r(
433
433
  "div",
434
434
  {
@@ -550,11 +550,11 @@ function Po(...e) {
550
550
  function zo(e, t) {
551
551
  typeof e == "function" ? e(t) : e != null && (e.current = t);
552
552
  }
553
- function ut(...e) {
553
+ function mt(...e) {
554
554
  return (t) => e.forEach((o) => zo(o, t));
555
555
  }
556
556
  function _e(...e) {
557
- return f.useCallback(ut(...e), e);
557
+ return f.useCallback(mt(...e), e);
558
558
  }
559
559
  var be = f.forwardRef((e, t) => {
560
560
  const { children: o, ...a } = e, n = f.Children.toArray(o), s = n.find($o);
@@ -572,7 +572,7 @@ var Ae = f.forwardRef((e, t) => {
572
572
  return f.cloneElement(o, {
573
573
  ...Do(a, o.props),
574
574
  // @ts-ignore
575
- ref: t ? ut(t, n) : n
575
+ ref: t ? mt(t, n) : n
576
576
  });
577
577
  }
578
578
  return f.Children.count(o) > 1 ? f.Children.only(null) : null;
@@ -713,17 +713,17 @@ function Yo({
713
713
  }, [a, n, s]), o;
714
714
  }
715
715
  var Zo = f.createContext(void 0);
716
- function mt(e) {
716
+ function ht(e) {
717
717
  const t = f.useContext(Zo);
718
718
  return e || t || "ltr";
719
719
  }
720
- var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, ht, Xo] = Go(ke), [Jo, gt] = Le(
720
+ var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, gt, Xo] = Go(ke), [Jo, pt] = Le(
721
721
  ke,
722
722
  [Xo]
723
- ), [Qo, er] = Jo(ke), pt = f.forwardRef(
723
+ ), [Qo, er] = Jo(ke), ft = f.forwardRef(
724
724
  (e, t) => /* @__PURE__ */ r(Re.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(Re.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(tr, { ...e, ref: t }) }) })
725
725
  );
726
- pt.displayName = ke;
726
+ ft.displayName = ke;
727
727
  var tr = f.forwardRef((e, t) => {
728
728
  const {
729
729
  __scopeRovingFocusGroup: o,
@@ -736,11 +736,11 @@ var tr = f.forwardRef((e, t) => {
736
736
  onEntryFocus: u,
737
737
  preventScrollOnEntryFocus: m = !1,
738
738
  ...g
739
- } = e, b = f.useRef(null), d = _e(t, b), c = mt(s), [y = null, T] = ye({
739
+ } = e, b = f.useRef(null), d = _e(t, b), c = ht(s), [y = null, T] = ye({
740
740
  prop: i,
741
741
  defaultProp: l,
742
742
  onChange: h
743
- }), [p, k] = f.useState(!1), N = Oe(u), I = ht(o), M = f.useRef(!1), [_, z] = f.useState(0);
743
+ }), [p, k] = f.useState(!1), N = Oe(u), I = gt(o), M = f.useRef(!1), [_, z] = f.useState(0);
744
744
  return f.useEffect(() => {
745
745
  const E = b.current;
746
746
  if (E)
@@ -785,7 +785,7 @@ var tr = f.forwardRef((e, t) => {
785
785
  const j = I().filter((A) => A.focusable), ae = j.find((A) => A.active), L = j.find((A) => A.id === y), K = [ae, L, ...j].filter(
786
786
  Boolean
787
787
  ).map((A) => A.ref.current);
788
- vt(K, m);
788
+ yt(K, m);
789
789
  }
790
790
  }
791
791
  M.current = !1;
@@ -795,7 +795,7 @@ var tr = f.forwardRef((e, t) => {
795
795
  )
796
796
  }
797
797
  );
798
- }), ft = "RovingFocusGroupItem", bt = f.forwardRef(
798
+ }), bt = "RovingFocusGroupItem", vt = f.forwardRef(
799
799
  (e, t) => {
800
800
  const {
801
801
  __scopeRovingFocusGroup: o,
@@ -803,7 +803,7 @@ var tr = f.forwardRef((e, t) => {
803
803
  active: n = !1,
804
804
  tabStopId: s,
805
805
  ...i
806
- } = e, l = Wo(), h = s || l, u = er(ft, o), m = u.currentTabStopId === h, g = ht(o), { onFocusableItemAdd: b, onFocusableItemRemove: d } = u;
806
+ } = e, l = Wo(), h = s || l, u = er(bt, o), m = u.currentTabStopId === h, g = gt(o), { onFocusableItemAdd: b, onFocusableItemRemove: d } = u;
807
807
  return f.useEffect(() => {
808
808
  if (a)
809
809
  return b(), () => d();
@@ -842,7 +842,7 @@ var tr = f.forwardRef((e, t) => {
842
842
  const p = T.indexOf(c.currentTarget);
843
843
  T = u.loop ? nr(T, p + 1) : T.slice(p + 1);
844
844
  }
845
- setTimeout(() => vt(T));
845
+ setTimeout(() => yt(T));
846
846
  }
847
847
  })
848
848
  }
@@ -851,7 +851,7 @@ var tr = f.forwardRef((e, t) => {
851
851
  );
852
852
  }
853
853
  );
854
- bt.displayName = ft;
854
+ vt.displayName = bt;
855
855
  var or = {
856
856
  ArrowLeft: "prev",
857
857
  ArrowUp: "prev",
@@ -870,7 +870,7 @@ function ar(e, t, o) {
870
870
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
871
871
  return or[a];
872
872
  }
873
- function vt(e, t = !1) {
873
+ function yt(e, t = !1) {
874
874
  const o = document.activeElement;
875
875
  for (const a of e)
876
876
  if (a === o || (a.focus({ preventScroll: t }), document.activeElement !== o)) return;
@@ -878,7 +878,7 @@ function vt(e, t = !1) {
878
878
  function nr(e, t) {
879
879
  return e.map((o, a) => e[(t + a) % e.length]);
880
880
  }
881
- var sr = pt, ir = bt, lr = "Toggle", yt = f.forwardRef((e, t) => {
881
+ var sr = ft, ir = vt, lr = "Toggle", kt = f.forwardRef((e, t) => {
882
882
  const { pressed: o, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [i = !1, l] = ye({
883
883
  prop: o,
884
884
  onChange: n,
@@ -899,10 +899,10 @@ var sr = pt, ir = bt, lr = "Toggle", yt = f.forwardRef((e, t) => {
899
899
  }
900
900
  );
901
901
  });
902
- yt.displayName = lr;
903
- var oe = "ToggleGroup", [kt, wa] = Le(oe, [
904
- gt
905
- ]), Ct = gt(), Be = x.forwardRef((e, t) => {
902
+ kt.displayName = lr;
903
+ var oe = "ToggleGroup", [Ct, wa] = Le(oe, [
904
+ pt
905
+ ]), Tt = pt(), Be = x.forwardRef((e, t) => {
906
906
  const { type: o, ...a } = e;
907
907
  if (o === "single")
908
908
  return /* @__PURE__ */ r(cr, { ...a, ref: t });
@@ -911,7 +911,7 @@ var oe = "ToggleGroup", [kt, wa] = Le(oe, [
911
911
  throw new Error(`Missing prop \`type\` expected on \`${oe}\``);
912
912
  });
913
913
  Be.displayName = oe;
914
- var [Tt, wt] = kt(oe), cr = x.forwardRef((e, t) => {
914
+ var [wt, Nt] = Ct(oe), cr = x.forwardRef((e, t) => {
915
915
  const {
916
916
  value: o,
917
917
  defaultValue: a,
@@ -924,14 +924,14 @@ var [Tt, wt] = kt(oe), cr = x.forwardRef((e, t) => {
924
924
  onChange: n
925
925
  });
926
926
  return /* @__PURE__ */ r(
927
- Tt,
927
+ wt,
928
928
  {
929
929
  scope: e.__scopeToggleGroup,
930
930
  type: "single",
931
931
  value: i ? [i] : [],
932
932
  onItemActivate: l,
933
933
  onItemDeactivate: x.useCallback(() => l(""), [l]),
934
- children: /* @__PURE__ */ r(Nt, { ...s, ref: t })
934
+ children: /* @__PURE__ */ r(Et, { ...s, ref: t })
935
935
  }
936
936
  );
937
937
  }), dr = x.forwardRef((e, t) => {
@@ -953,19 +953,19 @@ var [Tt, wt] = kt(oe), cr = x.forwardRef((e, t) => {
953
953
  [l]
954
954
  );
955
955
  return /* @__PURE__ */ r(
956
- Tt,
956
+ wt,
957
957
  {
958
958
  scope: e.__scopeToggleGroup,
959
959
  type: "multiple",
960
960
  value: i,
961
961
  onItemActivate: h,
962
962
  onItemDeactivate: u,
963
- children: /* @__PURE__ */ r(Nt, { ...s, ref: t })
963
+ children: /* @__PURE__ */ r(Et, { ...s, ref: t })
964
964
  }
965
965
  );
966
966
  });
967
967
  Be.displayName = oe;
968
- var [ur, mr] = kt(oe), Nt = x.forwardRef(
968
+ var [ur, mr] = Ct(oe), Et = x.forwardRef(
969
969
  (e, t) => {
970
970
  const {
971
971
  __scopeToggleGroup: o,
@@ -975,7 +975,7 @@ var [ur, mr] = kt(oe), Nt = x.forwardRef(
975
975
  dir: i,
976
976
  loop: l = !0,
977
977
  ...h
978
- } = e, u = Ct(o), m = mt(i), g = { role: "group", dir: m, ...h };
978
+ } = e, u = Tt(o), m = ht(i), g = { role: "group", dir: m, ...h };
979
979
  return /* @__PURE__ */ r(ur, { scope: o, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ r(
980
980
  sr,
981
981
  {
@@ -988,9 +988,9 @@ var [ur, mr] = kt(oe), Nt = x.forwardRef(
988
988
  }
989
989
  ) : /* @__PURE__ */ r(ue.div, { ...g, ref: t }) });
990
990
  }
991
- ), ve = "ToggleGroupItem", Et = x.forwardRef(
991
+ ), ve = "ToggleGroupItem", xt = x.forwardRef(
992
992
  (e, t) => {
993
- const o = wt(ve, e.__scopeToggleGroup), a = mr(ve, e.__scopeToggleGroup), n = Ct(e.__scopeToggleGroup), s = o.value.includes(e.value), i = a.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = x.useRef(null);
993
+ const o = Nt(ve, e.__scopeToggleGroup), a = mr(ve, e.__scopeToggleGroup), n = Tt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = a.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = x.useRef(null);
994
994
  return a.rovingFocus ? /* @__PURE__ */ r(
995
995
  ir,
996
996
  {
@@ -1004,12 +1004,12 @@ var [ur, mr] = kt(oe), Nt = x.forwardRef(
1004
1004
  ) : /* @__PURE__ */ r(We, { ...l, ref: t });
1005
1005
  }
1006
1006
  );
1007
- Et.displayName = ve;
1007
+ xt.displayName = ve;
1008
1008
  var We = x.forwardRef(
1009
1009
  (e, t) => {
1010
- const { __scopeToggleGroup: o, value: a, ...n } = e, s = wt(ve, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = s.type === "single" ? i : void 0;
1010
+ const { __scopeToggleGroup: o, value: a, ...n } = e, s = Nt(ve, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = s.type === "single" ? i : void 0;
1011
1011
  return /* @__PURE__ */ r(
1012
- yt,
1012
+ kt,
1013
1013
  {
1014
1014
  ...l,
1015
1015
  ...n,
@@ -1020,8 +1020,8 @@ var We = x.forwardRef(
1020
1020
  }
1021
1021
  );
1022
1022
  }
1023
- ), hr = Be, gr = Et;
1024
- const xt = x.createContext({
1023
+ ), hr = Be, gr = xt;
1024
+ const It = x.createContext({
1025
1025
  size: "medium",
1026
1026
  focusMode: "system",
1027
1027
  mode: "system"
@@ -1104,7 +1104,7 @@ const xt = x.createContext({
1104
1104
  ...u
1105
1105
  }) => {
1106
1106
  const m = Cr({ mode: n, spacing: h }), g = { size: i, focusMode: s, mode: n };
1107
- return /* @__PURE__ */ r(xt.Provider, { value: g, children: /* @__PURE__ */ r(
1107
+ return /* @__PURE__ */ r(It.Provider, { value: g, children: /* @__PURE__ */ r(
1108
1108
  hr,
1109
1109
  {
1110
1110
  disabled: a,
@@ -1118,7 +1118,7 @@ const xt = x.createContext({
1118
1118
  }
1119
1119
  ) });
1120
1120
  }, wr = ({ value: e, disabled: t }) => {
1121
- const { size: o, focusMode: a, mode: n } = $(xt), { itemClass: s, wrapperClass: i } = kr({
1121
+ const { size: o, focusMode: a, mode: n } = $(It), { itemClass: s, wrapperClass: i } = kr({
1122
1122
  focusMode: a,
1123
1123
  mode: n,
1124
1124
  size: o
@@ -1310,7 +1310,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
1310
1310
  "focus:outline-focus-light": e === "light",
1311
1311
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1312
1312
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1313
- }), It = ({
1313
+ }), St = ({
1314
1314
  type: e,
1315
1315
  className: t,
1316
1316
  raw: o,
@@ -1358,7 +1358,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
1358
1358
  );
1359
1359
  });
1360
1360
  ze.displayName = "BaseButton";
1361
- const St = x.forwardRef(
1361
+ const _t = x.forwardRef(
1362
1362
  ({
1363
1363
  children: e,
1364
1364
  disabled: t = !1,
@@ -1379,7 +1379,7 @@ const St = x.forwardRef(
1379
1379
  align: T = "center",
1380
1380
  ...p
1381
1381
  }, k) => {
1382
- const N = It({
1382
+ const N = St({
1383
1383
  type: Pe,
1384
1384
  mode: o,
1385
1385
  focusMode: a,
@@ -1418,7 +1418,7 @@ const St = x.forwardRef(
1418
1418
  );
1419
1419
  }
1420
1420
  );
1421
- St.displayName = "ButtonIcon";
1421
+ _t.displayName = "ButtonIcon";
1422
1422
  /*!
1423
1423
  @versini/ui-button v1.1.11
1424
1424
  © 2024 gizmette.com
@@ -1454,7 +1454,7 @@ const Or = x.forwardRef(
1454
1454
  active: p = !1,
1455
1455
  ...k
1456
1456
  }, N) => {
1457
- const I = It({
1457
+ const I = St({
1458
1458
  type: Pe,
1459
1459
  mode: o,
1460
1460
  focusMode: a,
@@ -1643,7 +1643,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1643
1643
  {
1644
1644
  className: u.close,
1645
1645
  trigger: /* @__PURE__ */ r(
1646
- St,
1646
+ _t,
1647
1647
  {
1648
1648
  mode: "dark",
1649
1649
  focusMode: "light",
@@ -1668,8 +1668,8 @@ const se = "panel", ge = "messagebox", Vr = ({
1668
1668
  header: w.ABOUT.TITLE_CLIENT,
1669
1669
  className: "prose-dark dark:prose-lighter",
1670
1670
  children: le(n, {
1671
- [w.ABOUT.VERSION]: "5.4.3",
1672
- [w.ABOUT.BUILD_TIMESTAMP]: "11/19/2024 04:03 PM EST"
1671
+ [w.ABOUT.VERSION]: "5.5.0",
1672
+ [w.ABOUT.BUILD_TIMESTAMP]: "11/24/2024 02:23 PM EST"
1673
1673
  })
1674
1674
  }
1675
1675
  ) }),
@@ -1691,17 +1691,17 @@ const se = "panel", ge = "messagebox", Vr = ({
1691
1691
  onOpenChange: t
1692
1692
  }) => {
1693
1693
  const { serverStats: o } = $(me);
1694
- return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Lt, children: /* @__PURE__ */ r(Ur, { stats: o }) });
1694
+ return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Ot, children: /* @__PURE__ */ r(Ur, { stats: o }) });
1695
1695
  }, Kr = (e) => Qe(e), Wr = (e) => {
1696
1696
  if (!e || e.length === 0)
1697
- return Bt;
1697
+ return Pt;
1698
1698
  const t = e.filter(
1699
1699
  (o) => {
1700
1700
  var a, n;
1701
- return ((a = o == null ? void 0 : o.message) == null ? void 0 : a.role) === Pt && typeof ((n = o == null ? void 0 : o.message) == null ? void 0 : n.processingTime) == "number";
1701
+ return ((a = o == null ? void 0 : o.message) == null ? void 0 : a.role) === zt && typeof ((n = o == null ? void 0 : o.message) == null ? void 0 : n.processingTime) == "number";
1702
1702
  }
1703
1703
  ).map((o) => o.message.processingTime);
1704
- return zt({
1704
+ return Vt({
1705
1705
  data: t,
1706
1706
  formatter: Kr
1707
1707
  });
@@ -1709,7 +1709,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1709
1709
  isAuthenticated: e,
1710
1710
  stats: t
1711
1711
  }) => {
1712
- const { state: o } = $(me), a = Vt - Number(o == null ? void 0 : o.usage), n = de(), s = de();
1712
+ const { state: o } = $(me), a = $t - Number(o == null ? void 0 : o.usage), n = de(), s = de();
1713
1713
  return e ? /* @__PURE__ */ v(R, { children: [
1714
1714
  o && o.messages.length > 0 && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
1715
1715
  P,
@@ -1719,7 +1719,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1719
1719
  children: le(n, {
1720
1720
  [w.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ie,
1721
1721
  [w.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
1722
- [w.CURRENT_STATISTICS.REMAINING_TOKENS]: Ot.format(a),
1722
+ [w.CURRENT_STATISTICS.REMAINING_TOKENS]: Bt.format(a),
1723
1723
  [w.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
1724
1724
  })
1725
1725
  }
@@ -1761,7 +1761,7 @@ const se = "panel", ge = "messagebox", Vr = ({
1761
1761
  }
1762
1762
  })();
1763
1763
  }, [e, s, i]), /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: et, children: /* @__PURE__ */ r(Yr, { isAuthenticated: n, stats: o }) });
1764
- }, _t = ({
1764
+ }, At = ({
1765
1765
  showConfirmation: e,
1766
1766
  setShowConfirmation: t,
1767
1767
  action: o,
@@ -1826,7 +1826,7 @@ const Qr = async (e, t, o, a) => {
1826
1826
  }
1827
1827
  });
1828
1828
  n.status === 200 && (t({
1829
- type: Dt
1829
+ type: ot
1830
1830
  }), t({
1831
1831
  type: Ht,
1832
1832
  payload: {
@@ -1853,7 +1853,7 @@ const Qr = async (e, t, o, a) => {
1853
1853
  timestamp: "",
1854
1854
  message: ""
1855
1855
  }), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } = $(tt), [, b] = G({
1856
- key: D + $t,
1856
+ key: D + Dt,
1857
1857
  initialValue: m.sortDirection
1858
1858
  }), d = e.data.sort(
1859
1859
  (p, k) => {
@@ -1902,7 +1902,7 @@ const Qr = async (e, t, o, a) => {
1902
1902
  };
1903
1903
  return /* @__PURE__ */ v(R, { children: [
1904
1904
  /* @__PURE__ */ v(
1905
- _t,
1905
+ At,
1906
1906
  {
1907
1907
  showConfirmation: l,
1908
1908
  setShowConfirmation: h,
@@ -1979,8 +1979,8 @@ const Qr = async (e, t, o, a) => {
1979
1979
  ),
1980
1980
  /* @__PURE__ */ r(B, { className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm", children: Xe(p.messages) }),
1981
1981
  /* @__PURE__ */ v(B, { component: "th", scope: "row", className: "text-gray-400", children: [
1982
- p.model && p.model.startsWith("claude") && /* @__PURE__ */ r(lt, { className: "size-4 sm:size-5" }),
1983
- p.model && p.model.startsWith("gpt") && /* @__PURE__ */ r(ct, { className: "size-4 sm:size-5" })
1982
+ p.model && p.model.startsWith("claude") && /* @__PURE__ */ r(ct, { className: "size-4 sm:size-5" }),
1983
+ p.model && p.model.startsWith("gpt") && /* @__PURE__ */ r(dt, { className: "size-4 sm:size-5" })
1984
1984
  ] }),
1985
1985
  /* @__PURE__ */ r(B, { className: "px-2", children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
1986
1986
  /* @__PURE__ */ r(
@@ -2246,7 +2246,7 @@ const ra = "av-toggle", aa = (e) => {
2246
2246
  location: "",
2247
2247
  engine: ie
2248
2248
  }), [l, h] = G({
2249
- key: D + ot,
2249
+ key: D + rt,
2250
2250
  initialValue: !1
2251
2251
  }), u = async (d) => {
2252
2252
  d.preventDefault();
@@ -2261,7 +2261,7 @@ const ra = "av-toggle", aa = (e) => {
2261
2261
  engine: s.engine
2262
2262
  }
2263
2263
  }), o({
2264
- type: rt,
2264
+ type: at,
2265
2265
  payload: {
2266
2266
  engine: s.engine
2267
2267
  }
@@ -2652,7 +2652,7 @@ const ra = "av-toggle", aa = (e) => {
2652
2652
  progress: !1,
2653
2653
  timestamp: Date.now()
2654
2654
  }), [N] = G({
2655
- key: D + ot,
2655
+ key: D + rt,
2656
2656
  initialValue: !1
2657
2657
  }), { logout: I, getAccessToken: M, user: _ } = te(), z = () => {
2658
2658
  i(!s);
@@ -2698,7 +2698,7 @@ const ra = "av-toggle", aa = (e) => {
2698
2698
  e && e.engine && e.engine !== a && n(e.engine);
2699
2699
  }, [e, a]), /* @__PURE__ */ v(R, { children: [
2700
2700
  /* @__PURE__ */ r(
2701
- _t,
2701
+ At,
2702
2702
  {
2703
2703
  showConfirmation: y,
2704
2704
  setShowConfirmation: T,
@@ -2728,7 +2728,7 @@ const ra = "av-toggle", aa = (e) => {
2728
2728
  {
2729
2729
  mode: "dark",
2730
2730
  focusMode: "light",
2731
- trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(lt, {}) : /* @__PURE__ */ r(ct, {}) }),
2731
+ trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(ct, {}) : /* @__PURE__ */ r(dt, {}) }),
2732
2732
  defaultPlacement: "bottom-start",
2733
2733
  children: /* @__PURE__ */ r(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
2734
2734
  Tr,
@@ -2748,10 +2748,12 @@ const ra = "av-toggle", aa = (e) => {
2748
2748
  engine: L
2749
2749
  }
2750
2750
  }), t({
2751
- type: rt,
2751
+ type: at,
2752
2752
  payload: {
2753
2753
  engine: L
2754
2754
  }
2755
+ }), t({
2756
+ type: ot
2755
2757
  });
2756
2758
  } catch {
2757
2759
  }
@@ -1,5 +1,5 @@
1
1
  import { jsx as _i } from "react/jsx-runtime";
2
- import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.De9R5w_u.js";
2
+ import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.CI97mVOI.js";
3
3
  const U0 = (
4
4
  // Note: overloads like this are needed to support optional generics.
5
5
  /**
@@ -1,9 +1,9 @@
1
1
  import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
2
- import { le as ot } from "./App.C-au1CV7.js";
2
+ import { le as ot } from "./App.DlhiXCoz.js";
3
3
  import { E as wi } from "./index.C8-dCwmB.js";
4
4
  import cn from "clsx";
5
5
  import { lazy as Si, useContext as Ci, Suspense as Ei } from "react";
6
- import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.Htlj5BwD.js";
6
+ import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.BsmLg4en.js";
7
7
  var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
8
8
  function Li(e) {
9
9
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
@@ -8642,7 +8642,7 @@ function sf(e) {
8642
8642
  const cf = Si(
8643
8643
  () => import(
8644
8644
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8645
- "./LazyMarkdownWithExtra.BAEZPXtS.js"
8645
+ "./LazyMarkdownWithExtra.DdI965fc.js"
8646
8646
  )
8647
8647
  ), In = {
8648
8648
  MODEL: "Model",
@@ -3630,7 +3630,7 @@ const Yn = "av-footer", Fn = (e) => {
3630
3630
  row1: /* @__PURE__ */ I("div", { children: [
3631
3631
  ir,
3632
3632
  " v",
3633
- "5.4.3",
3633
+ "5.5.0",
3634
3634
  " - ",
3635
3635
  Jn,
3636
3636
  t && t.engine,
@@ -3647,7 +3647,7 @@ const Yn = "av-footer", Fn = (e) => {
3647
3647
  }, Xn = Nt(
3648
3648
  () => import(
3649
3649
  /* webpackChunkName: "LazyHeader" */
3650
- "./LazyHeader.CpSRHduY.js"
3650
+ "./LazyHeader.DqDJRIjX.js"
3651
3651
  )
3652
3652
  ), Qn = () => {
3653
3653
  const { isAuthenticated: e } = rt();
@@ -3758,7 +3758,7 @@ const Yn = "av-footer", Fn = (e) => {
3758
3758
  ] });
3759
3759
  }, eo = new URL(document.location.href).searchParams, to = !!eo.get("debug") || !1, ro = Nt(() => import(
3760
3760
  /* webpackChunkName: "LazyApp" */
3761
- "./App.C-au1CV7.js"
3761
+ "./App.DlhiXCoz.js"
3762
3762
  ).then((e) => e.App)), ao = ({ isComponent: e }) => {
3763
3763
  const { isAuthenticated: t } = rt();
3764
3764
  return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ro, { isComponent: e }) }) : /* @__PURE__ */ l(Zn, {});
@@ -1,5 +1,5 @@
1
1
  import "react/jsx-runtime";
2
- import { SassySaint as a } from "../../chunks/index.Htlj5BwD.js";
2
+ import { SassySaint as a } from "../../chunks/index.BsmLg4en.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.Htlj5BwD.js";
1
+ import { SassySaint as r } from "./chunks/index.BsmLg4en.js";
2
2
  /*!
3
- @sassysaint/client v5.4.3
3
+ @sassysaint/client v5.5.0
4
4
  © 2024 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
8
- version: "5.4.3",
9
- buildTime: "11/19/2024 04:03 PM EST",
8
+ version: "5.5.0",
9
+ buildTime: "11/24/2024 02:23 PM EST",
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": "5.3.7",
3
+ "version": "5.3.8",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -30,7 +30,7 @@
30
30
  "react-dom": "18.3.1"
31
31
  },
32
32
  "devDependencies": {
33
- "@sassysaint/client": "5.4.3",
33
+ "@sassysaint/client": "5.5.0",
34
34
  "@versini/ui-styles": "1.11.1"
35
35
  },
36
36
  "dependencies": {
@@ -41,5 +41,5 @@
41
41
  "sideEffects": [
42
42
  "**/*.css"
43
43
  ],
44
- "gitHead": "eb62ae13be84c687a09f0d76a63e7b90d9a19855"
44
+ "gitHead": "75382eca6a001ffcdf4b1c945dc07504e166dd3e"
45
45
  }