@versini/sassysaint 8.34.0 → 8.34.2

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.CxyIxMAe.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.Dx9-zTHB.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.DK5aa0OB.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.DOg0VpsL.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.CxyIxMAe.js";
2
+ import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.Dx9-zTHB.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.DK5aa0OB.js";
6
- import { useMarkdown as y } from "./useMarkdown.wo8gOuZw.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.DOg0VpsL.js";
6
+ import { useMarkdown as y } from "./useMarkdown.DhPC7902.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, le 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, fe as he, debounce as ue, ACTION_SEARCH as pe } from "./index.DK5aa0OB.js";
3
- import { HistoryContext as W, ChatContext as X, useAiChat as Ce, E as J, useUserPreferences as ge, ConfirmationPanel as ye, LazyToastContainerWrapper as Se, He as xe, $e 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 Ne, at as U, Fe as Ee, mutateCall as G, SERVICE_TYPES as Y, showErrorToast as Ae, R 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, rr as Oe, a$1 as Me } from "./App.CxyIxMAe.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.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";
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,
@@ -81,7 +81,7 @@ const Ve = ({
81
81
  ]
82
82
  }
83
83
  ), Ue = {
84
- [ke]: Ne,
84
+ [ke]: Ee,
85
85
  [be]: De,
86
86
  [Ie]: we
87
87
  }, Ge = ({
@@ -97,7 +97,7 @@ const Ve = ({
97
97
  }), [v, C] = A(!1), [w, S] = A(
98
98
  P + V
99
99
  ), { state: u, dispatch: D } = I(W), {
100
- state: { provider: N },
100
+ state: { provider: E },
101
101
  setChatId: b,
102
102
  setInitialMessages: O
103
103
  } = I(X), { setInput: p } = Ce(), [, M] = J({
@@ -143,7 +143,7 @@ const Ve = ({
143
143
  });
144
144
  } catch {
145
145
  }
146
- }, Z = async (t, i, x, g, E, k) => {
146
+ }, Z = async (t, i, x, g, N, k) => {
147
147
  try {
148
148
  const m = await G({
149
149
  accessToken: g,
@@ -155,7 +155,7 @@ const Ve = ({
155
155
  m.status === 200 && (m.data.provider !== k && (await Re({
156
156
  provider: m.data.provider,
157
157
  accessToken: g,
158
- username: E
158
+ username: N
159
159
  }), i({
160
160
  type: ze,
161
161
  payload: {
@@ -251,7 +251,7 @@ const Ve = ({
251
251
  /* @__PURE__ */ e(n, { className: "text-xs sm:text-sm text-right", children: "Actions" })
252
252
  ] }) }),
253
253
  /* @__PURE__ */ e(Te, { children: r.slice(0, w).map((t, i) => {
254
- const x = t.summary || (t.messages.length > 0 ? t.messages[0]?.content : ""), g = t.model ? ve(t.model) : null, E = g ? Ue[g] : null;
254
+ const x = t.summary || (t.messages.length > 0 ? t.messages[0]?.content : ""), g = t.model ? ve(t.model) : null, N = g ? Ue[g] : null;
255
255
  return t?.messages?.length > 0 ? /* @__PURE__ */ a(Pe, { children: [
256
256
  i === w - V && /* @__PURE__ */ e("tr", { ref: h }),
257
257
  /* @__PURE__ */ a(R, { children: [
@@ -282,8 +282,8 @@ const Ve = ({
282
282
  scope: "row",
283
283
  className: "text-gray-400",
284
284
  align: "center",
285
- children: E ? /* @__PURE__ */ e(
286
- E,
285
+ children: N ? /* @__PURE__ */ e(
286
+ N,
287
287
  {
288
288
  size: "size-4 sm:size-5",
289
289
  semantic: !0,
@@ -322,7 +322,7 @@ const Ve = ({
322
322
  l,
323
323
  k,
324
324
  o?.username || "",
325
- N
325
+ E
326
326
  );
327
327
  },
328
328
  children: /* @__PURE__ */ e($e, { size: "size-3", monotone: !0 })
@@ -358,7 +358,7 @@ const Ve = ({
358
358
  ] })
359
359
  ] }, `${oe.HISTORY.TITLE}-${t.id}-${i}`) : null;
360
360
  }) }),
361
- /* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(n, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: ne(
361
+ /* @__PURE__ */ e(Ne, { children: /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(n, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: ne(
362
362
  `${r.length} chat`,
363
363
  r.length
364
364
  ) }) }) }) })
@@ -386,13 +386,13 @@ const Ve = ({
386
386
  }, [s, C]), L(() => {
387
387
  S && T(S);
388
388
  }, [S]);
389
- const N = async (p) => {
389
+ const E = async (p) => {
390
390
  D(p), v({
391
391
  type: pe,
392
392
  payload: { searchString: p }
393
393
  });
394
394
  }, b = ue((p) => {
395
- N(p.target.value.trim());
395
+ E(p.target.value.trim());
396
396
  }, 500);
397
397
  return /* @__PURE__ */ a(Oe, { open: r, onOpenChange: c, title: me, children: [
398
398
  /* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: async (p) => {
@@ -422,7 +422,7 @@ const Ve = ({
422
422
  label: "Search",
423
423
  size: "small",
424
424
  onClick: () => {
425
- N(""), h.current?.value && (h.current.value = "", h.current.focus());
425
+ E(""), h.current?.value && (h.current.value = "", h.current.focus());
426
426
  },
427
427
  disabled: s.searchString === "",
428
428
  children: s.searchString !== "" ? /* @__PURE__ */ e(Me, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ e(Fe, { monotone: !0, size: "size-3" })
@@ -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.DK5aa0OB.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.DOg0VpsL.js";
2
2
  var qs = (e) => e != null, _s = (e) => e.filter(qs);
3
3
  function Rs(e) {
4
4
  return (...t) => {
@@ -1,26 +1,26 @@
1
- import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
2
- import { i as h, nt as S, rr as R } from "./App.CxyIxMAe.js";
3
- import { n as N, S as l, renderDataAsList as P, CARDS as r, isTauri as T, le as p, l as E, L as u, j as a, PROFILE_TITLE as C } from "./index.DK5aa0OB.js";
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";
4
4
  const A = () => {
5
- const { isAuthenticated: n, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), t = i?.username || "";
6
- return n && t ? /* @__PURE__ */ s(m, { children: [
5
+ const { isAuthenticated: t, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), s = i?.username || "";
6
+ return t && s ? /* @__PURE__ */ n(m, { children: [
7
7
  /* @__PURE__ */ e(
8
- l,
8
+ E,
9
9
  {
10
10
  header: r.PREFERENCES.TITLE,
11
11
  className: "prose-dark dark:prose-lighter",
12
12
  children: P(d, {
13
- [r.PREFERENCES.NAME]: t,
13
+ [r.PREFERENCES.NAME]: s,
14
14
  [r.PREFERENCES.EMAIL]: i?.email || ""
15
15
  })
16
16
  }
17
17
  ),
18
- o !== S.PASSKEY && !T() && /* @__PURE__ */ s(
19
- l,
18
+ o !== S.PASSKEY && !T() && /* @__PURE__ */ n(
19
+ E,
20
20
  {
21
21
  className: "prose-dark dark:prose-lighter mt-4",
22
- header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ s(u, { columnGap: 3, alignVertical: "center", children: [
23
- /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(E, { size: "size-8" }) }),
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
24
  /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("div", { children: r.PREFERENCES.PASSKEY_TITLE }) })
25
25
  ] }) }),
26
26
  children: [
@@ -32,7 +32,7 @@ const A = () => {
32
32
  className: "mt-2",
33
33
  onClick: c,
34
34
  labelLeft: r.PREFERENCES.PASSKEY_BUTTON,
35
- children: /* @__PURE__ */ e(E, { size: "size-5", monotone: !0 })
35
+ children: /* @__PURE__ */ e(l, { size: "size-5", monotone: !0 })
36
36
  }
37
37
  )
38
38
  ]
@@ -40,9 +40,9 @@ const A = () => {
40
40
  )
41
41
  ] }) : null;
42
42
  }, f = ({
43
- open: n,
43
+ open: t,
44
44
  onOpenChange: i
45
- }) => /* @__PURE__ */ e(R, { open: n, onOpenChange: i, title: C, children: /* @__PURE__ */ e(A, {}) });
45
+ }) => /* @__PURE__ */ e(R, { open: t, onOpenChange: i, title: C, children: /* @__PURE__ */ e(A, {}) });
46
46
  export {
47
47
  f as Profile
48
48
  };