@versini/sassysaint 5.4.14 → 5.4.15

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 o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
- import { g as O, R as L, CARDS as x, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as z, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, z as $e, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.CYifYdxQ.js";
3
- import { serviceCall as D, SERVICE_TYPES as V, E as ce, ce as ar, se as nr, he as we, be as sr, oe as $, ge as ir, ne as cr, f as U, Le as He, h as Ge } from "./index.8mgE_tU8.js";
2
+ import { g as O, R as L, CARDS as x, renderDataAsList as oe, pluralize as he, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as z, C as F, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.D8QVMbN9.js";
3
+ import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as we, be as nr, oe as $, ge as sr, ne as ir, f as U, Le as He, TagsContext as cr, h as Ge } from "./index.Dn9p043U.js";
4
4
  import * as f from "react";
5
5
  import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as P, useEffect as H } from "react";
6
6
  import k from "clsx";
@@ -1749,8 +1749,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
1749
1749
  header: x.ABOUT.TITLE_CLIENT,
1750
1750
  className: "prose-dark dark:prose-lighter",
1751
1751
  children: oe(n, {
1752
- [x.ABOUT.VERSION]: "5.11.4",
1753
- [x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 10:06 AM EST"
1752
+ [x.ABOUT.VERSION]: "5.12.0",
1753
+ [x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 01:38 PM EST"
1754
1754
  })
1755
1755
  }
1756
1756
  ) }),
@@ -1771,7 +1771,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1771
1771
  open: e,
1772
1772
  onOpenChange: t
1773
1773
  }) => {
1774
- const { serverStats: r } = P(se);
1774
+ const { serverStats: r } = P(ie);
1775
1775
  return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
1776
1776
  }, $o = (e) => Qe(e), Fo = (e) => {
1777
1777
  if (!e || e.length === 0)
@@ -1790,7 +1790,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1790
1790
  isAuthenticated: e,
1791
1791
  stats: t
1792
1792
  }) => {
1793
- const { state: r } = P(se), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1793
+ const { state: r } = P(ie), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1794
1794
  return e ? /* @__PURE__ */ y(_, { children: [
1795
1795
  r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1796
1796
  L,
@@ -1893,7 +1893,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
1893
1893
  }
1894
1894
  });
1895
1895
  n.status === 200 && (t({
1896
- type: et
1896
+ type: Je
1897
1897
  }), t({
1898
1898
  type: jt,
1899
1899
  payload: {
@@ -1916,8 +1916,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
1916
1916
  id: 0,
1917
1917
  timestamp: "",
1918
1918
  message: ""
1919
- }), [c, g] = I(!1), { state: l, dispatch: u } = P(Je), [, p] = ce({
1920
- key: ie + Ut,
1919
+ }), [c, g] = I(!1), { state: l, dispatch: u } = P(rt), [, p] = ce({
1920
+ key: se + Ut,
1921
1921
  initialValue: l.sortDirection
1922
1922
  }), b = (d) => {
1923
1923
  switch (l.sortDirection) {
@@ -1989,16 +1989,16 @@ const ee = "panel", ue = "messagebox", Bo = ({
1989
1989
  }
1990
1990
  ),
1991
1991
  /* @__PURE__ */ y(
1992
- ar,
1992
+ or,
1993
1993
  {
1994
1994
  stickyHeader: !0,
1995
1995
  stickyFooter: !0,
1996
1996
  compact: !0,
1997
1997
  wrapperClassName: "max-h-[60vh] min-h-[60vh]",
1998
1998
  children: [
1999
- /* @__PURE__ */ o(nr, { children: /* @__PURE__ */ y(we, { children: [
1999
+ /* @__PURE__ */ o(ar, { children: /* @__PURE__ */ y(we, { children: [
2000
2000
  /* @__PURE__ */ o(
2001
- sr,
2001
+ nr,
2002
2002
  {
2003
2003
  buttonClassName: "text-xs sm:text-sm",
2004
2004
  cellId: "timestamp",
@@ -2015,7 +2015,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
2015
2015
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "Model" }),
2016
2016
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2017
2017
  ] }) }),
2018
- /* @__PURE__ */ o(ir, { children: e.data.map((d, v) => {
2018
+ /* @__PURE__ */ o(sr, { children: e.data.map((d, v) => {
2019
2019
  var T, C;
2020
2020
  return ((T = d == null ? void 0 : d.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2021
2021
  /* @__PURE__ */ o(
@@ -2080,7 +2080,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
2080
2080
  ] }) })
2081
2081
  ] }, `${x.HISTORY.TITLE}-${d.id}-${v}`) : null;
2082
2082
  }) }),
2083
- /* @__PURE__ */ o(cr, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2083
+ /* @__PURE__ */ o(ir, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2084
2084
  `${e.data.length} chat`,
2085
2085
  e.data.length
2086
2086
  ) }) }) }) })
@@ -2115,8 +2115,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
2115
2115
  }
2116
2116
  return [];
2117
2117
  }, Ko = ({ onOpenChange: e }) => {
2118
- const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(se), { state: c, dispatch: g } = P(Je), [, l] = ce({
2119
- key: ie + Kt,
2118
+ const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(ie), { state: c, dispatch: g } = P(rt), [, l] = ce({
2119
+ key: se + Kt,
2120
2120
  initialValue: c.searchString
2121
2121
  }), [u, p] = I({
2122
2122
  data: [],
@@ -2337,14 +2337,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2337
2337
  open: e,
2338
2338
  onOpenChange: t
2339
2339
  }) => {
2340
- const { dispatch: r } = P(se), { getAccessToken: a, user: n } = W(), [i, s] = I({
2340
+ const { dispatch: r } = P(ie), { getAccessToken: a, user: n } = W(), [i, s] = I({
2341
2341
  loaded: !1,
2342
2342
  instructions: "",
2343
2343
  loadingLocation: !1,
2344
2344
  location: "",
2345
2345
  engine: te
2346
2346
  }), [c, g] = ce({
2347
- key: ie + tt,
2347
+ key: se + et,
2348
2348
  initialValue: !1
2349
2349
  }), l = async (h) => {
2350
2350
  h.preventDefault();
@@ -2359,7 +2359,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2359
2359
  engine: i.engine
2360
2360
  }
2361
2361
  }), r({
2362
- type: rt,
2362
+ type: tt,
2363
2363
  payload: {
2364
2364
  engine: i.engine
2365
2365
  }
@@ -2603,7 +2603,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2603
2603
  open: e,
2604
2604
  onOpenChange: t
2605
2605
  }) => {
2606
- const { state: r, dispatch: a } = P(Xt), { getAccessToken: n, user: i } = W(), [s, c] = I({
2606
+ const { state: r, dispatch: a } = P(cr), { getAccessToken: n, user: i } = W(), [s, c] = I({
2607
2607
  tags: [...r.tags]
2608
2608
  }), g = ({
2609
2609
  slot: u,
@@ -2637,7 +2637,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2637
2637
  tags: s.tags
2638
2638
  }
2639
2639
  }), a({
2640
- type: er,
2640
+ type: Jt,
2641
2641
  payload: {
2642
2642
  tags: s.tags
2643
2643
  }
@@ -2686,7 +2686,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2686
2686
  }
2687
2687
  ),
2688
2688
  children: [
2689
- /* @__PURE__ */ o("p", { children: Jt }),
2689
+ /* @__PURE__ */ o("p", { children: Xt }),
2690
2690
  s.tags && s.tags.map((u) => /* @__PURE__ */ y(
2691
2691
  L,
2692
2692
  {
@@ -2754,7 +2754,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2754
2754
  );
2755
2755
  }, na = () => {
2756
2756
  const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = ce({
2757
- key: ie + tr,
2757
+ key: se + er,
2758
2758
  initialValue: !1
2759
2759
  }), [s, c] = I(!1), [g, l] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
2760
2760
  i(d);
@@ -2816,7 +2816,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2816
2816
  ]
2817
2817
  }
2818
2818
  ),
2819
- a !== rr.PASSKEY && /* @__PURE__ */ y(
2819
+ a !== tr.PASSKEY && /* @__PURE__ */ y(
2820
2820
  L,
2821
2821
  {
2822
2822
  className: "prose-dark dark:prose-lighter mt-4",
@@ -2843,9 +2843,9 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2843
2843
  }, sa = ({
2844
2844
  open: e,
2845
2845
  onOpenChange: t
2846
- }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: or, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2847
- const { state: e, dispatch: t, serverStats: r } = P(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
2848
- key: ie + tt,
2846
+ }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: rr, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2847
+ const { state: e, dispatch: t, serverStats: r } = P(ie), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
2848
+ key: se + et,
2849
2849
  initialValue: !1
2850
2850
  }), { logout: v, getAccessToken: T, user: C } = W(), w = () => {
2851
2851
  s(!i);
@@ -2905,12 +2905,12 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2905
2905
  engine: N
2906
2906
  }
2907
2907
  }), t({
2908
- type: rt,
2908
+ type: tt,
2909
2909
  payload: {
2910
2910
  engine: N
2911
2911
  }
2912
2912
  }), t({
2913
- type: et
2913
+ type: Je
2914
2914
  });
2915
2915
  } catch {
2916
2916
  }
@@ -1,6 +1,6 @@
1
1
  import { jsx as Ve, jsxs as P0, Fragment as Sa } from "react/jsx-runtime";
2
- import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./LazyMessageAssistant.Bpza5zkH.js";
3
- import { O as Is, L as Ds, j as Ls } from "./index.CYifYdxQ.js";
2
+ import { convert as _s, getDefaultExportFromCjs as Ss, visit as Na, find as Ns, parse as Sn, parse$1 as Nn, normalize as kn, svg as ks, html as Ts, visitParents as Ms, SKIP as As, longestStreak as Os, factorySpace as xr, markdownLineEnding as $t, Markdown as Rs, remarkGfm as Cs } from "./LazyMessageAssistant.BkIqe55j.js";
3
+ import { O as Is, L as Ds, j as Ls } from "./index.D8QVMbN9.js";
4
4
  import Bs, { useState as zs, useEffect as Ps } from "react";
5
5
  import Fs from "clsx";
6
6
  const ka = ({
@@ -1,9 +1,9 @@
1
1
  import { jsxs as He, jsx as re, Fragment as Jt } from "react/jsx-runtime";
2
- import { ae as at } from "./LazyApp.nhzP-Nbc.js";
3
- import { E as pi } from "./index.8mgE_tU8.js";
2
+ import { ae as at } from "./LazyApp.CmWxSgb_.js";
3
+ import { AppContext as pi, E as hi } from "./index.Dn9p043U.js";
4
4
  import sn from "clsx";
5
- import { lazy as hi, useContext as mi, Suspense as gi } from "react";
6
- import { AppContext as di, LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.CYifYdxQ.js";
5
+ import { lazy as mi, useContext as gi, Suspense as di } from "react";
6
+ import { LOCAL_STORAGE_PREFIX as yi, LOCAL_STORAGE_CHAT_DETAILS as ki, durationFormatter as xi } from "./index.D8QVMbN9.js";
7
7
  /*!
8
8
  @versini/ui-spinner v2.0.5
9
9
  © 2024 gizmette.com
@@ -8649,10 +8649,10 @@ function Uc(e) {
8649
8649
  ), n = e || Hc, r = t.data(), i = r.micromarkExtensions || (r.micromarkExtensions = []), o = r.fromMarkdownExtensions || (r.fromMarkdownExtensions = []), l = r.toMarkdownExtensions || (r.toMarkdownExtensions = []);
8650
8650
  i.push(jc(n)), o.push(ac()), l.push(uc(n));
8651
8651
  }
8652
- const qc = hi(
8652
+ const qc = mi(
8653
8653
  () => import(
8654
8654
  /* webpackChunkName: "LazyMarkdownWithExtra" */
8655
- "./LazyMarkdownWithExtra.aWPJfbF0.js"
8655
+ "./LazyMarkdownWithExtra.bTU0zWSE.js"
8656
8656
  )
8657
8657
  ), Tn = {
8658
8658
  MODEL: "Model",
@@ -8664,7 +8664,7 @@ const qc = hi(
8664
8664
  loading: n,
8665
8665
  processingTime: r
8666
8666
  }) => {
8667
- const { state: i } = mi(di), [o] = pi({
8667
+ const { state: i } = gi(pi), [o] = hi({
8668
8668
  key: yi + ki,
8669
8669
  initialValue: !1
8670
8670
  });
@@ -8681,7 +8681,7 @@ const qc = hi(
8681
8681
  [Tn.PROCESSING_TIME]: r && o ? xi(r) : null
8682
8682
  },
8683
8683
  children: [
8684
- e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(gi, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(qc, { content: e }) }),
8684
+ e && (e.includes("$$") || e.includes("```")) && /* @__PURE__ */ re(di, { fallback: /* @__PURE__ */ re("div", {}), children: /* @__PURE__ */ re(qc, { content: e }) }),
8685
8685
  e && !e.includes("$$") && !e.includes("```") && /* @__PURE__ */ re(vu, { remarkPlugins: [Uc], children: e })
8686
8686
  ]
8687
8687
  }