@versini/sassysaint 8.75.4 → 8.76.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.
Files changed (26) hide show
  1. package/dist/chunks/{AboutChangelog.DE5M5CPF.js → AboutChangelog.0kKcS_nT.js} +2 -2
  2. package/dist/chunks/{AboutEntry.CC4Geu98.js → AboutEntry.pKgicvGA.js} +7 -7
  3. package/dist/chunks/{App.ENGe9H1T.js → App.CtFpHv2O.js} +205 -204
  4. package/dist/chunks/{Chart.DpZtBOl0.js → Chart.DD1RkG8X.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.e2Qi5r3T.js → ChatBubbleAssistant.K55U7Bno.js} +13 -13
  6. package/dist/chunks/{ChatBubbleUser.DP1w-8LC.js → ChatBubbleUser.DsX56Kxx.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.BKu_ZZU9.js → ChatHistoryTable.BvEUTjiq.js} +17 -17
  8. package/dist/chunks/{HistoryEntry.ghac4Dvt.js → HistoryEntry.BSOPWYO2.js} +20 -20
  9. package/dist/chunks/{ProfileEntry.B5p6jUni.js → ProfileEntry.Bb-kLfDX.js} +18 -18
  10. package/dist/chunks/{SettingsEntry.DRaXHqD7.js → SettingsEntry.DrmBVh-w.js} +10 -10
  11. package/dist/chunks/{Table.DFmbCLqy.js → Table.BbIvEnBz.js} +2 -2
  12. package/dist/chunks/{UsageEntry.v3rZzEkE.js → UsageEntry.O3YdUF30.js} +8 -8
  13. package/dist/chunks/{UserMemoriesPanel.CxSpeQVc.js → UserMemoriesPanel.Dl5GlyBr.js} +22 -22
  14. package/dist/chunks/{index.DkACWoJr.js → index.B9mUNJfd.js} +1 -1
  15. package/dist/chunks/{index.DQMZ9_rK.js → index.BNusLsEn.js} +13 -13
  16. package/dist/chunks/{index.CGU26igb.js → index.BeIiCAAq.js} +2 -2
  17. package/dist/chunks/{index.DrNijiOb.js → index.Czv_1MTM.js} +559 -622
  18. package/dist/chunks/{index.BxFHN1eH.js → index.DEKgWsou.js} +1 -1
  19. package/dist/chunks/{index.DTuvjVrw.js → index.DGkW9g6n.js} +3 -3
  20. package/dist/chunks/{index.Cnc9HRbd.js → index.DUl-LwyU.js} +1 -1
  21. package/dist/chunks/{index.CyFKAjrJ.js → index.icjUE8II.js} +24 -24
  22. package/dist/chunks/{useMarkdown.CYvX9qkp.js → useMarkdown.Bf7wGKkC.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { jsx as Ap } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as ln } from "./App.ENGe9H1T.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.CtFpHv2O.js";
3
3
  import Cp, { useState as Pp, useEffect as Op } from "react";
4
- import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.DrNijiOb.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.Czv_1MTM.js";
5
5
  var ls = { exports: {} }, Ip = ls.exports, on;
6
6
  function Dp() {
7
7
  return on || (on = 1, (function(we, he) {
@@ -1,17 +1,17 @@
1
- import { jsx as b } from "react/jsx-runtime";
2
- import { n as P, useUserPreferences as R, convertCamelCaseToReadable as y, numberFormatter as L, pluralize as _, b as v } from "./index.DrNijiOb.js";
3
- import { BUBBLE_FOOTER_EMPTY as B } from "./index.CyFKAjrJ.js";
1
+ import { jsx as g } from "react/jsx-runtime";
2
+ import { n as P, useUserPreferences as R, convertCamelCaseToReadable as y, numberFormatter as L, pluralize as _, J as v } from "./index.Czv_1MTM.js";
3
+ import { BUBBLE_FOOTER_EMPTY as B } from "./index.icjUE8II.js";
4
4
  import U from "clsx";
5
- import G, { useState as g, useRef as E, useEffect as F, useContext as S } from "react";
6
- import { ChatContext as D, AppContext as j, AsyncBubble as k } from "./App.ENGe9H1T.js";
7
- import { useMarkdown as q } from "./useMarkdown.CYvX9qkp.js";
8
- const I = 2, W = I * 1e3, M = "", $ = (e) => e * (2 - e);
5
+ import G, { useState as M, useRef as E, useEffect as F, useContext as S } from "react";
6
+ import { ChatContext as D, AppContext as j, AsyncBubble as k } from "./App.CtFpHv2O.js";
7
+ import { useMarkdown as q } from "./useMarkdown.Bf7wGKkC.js";
8
+ const I = 2, W = I * 1e3, b = "", $ = (e) => e * (2 - e);
9
9
  function V(e, n = !0) {
10
- const [a, d] = g(0), [c, p] = g(0), [t, C] = g(e), r = E(0), s = E(0);
10
+ const [a, d] = M(0), [c, p] = M(0), [t, C] = M(e), r = E(0), s = E(0);
11
11
  return t !== e && (C(e), p(e.startsWith(t) ? a : 0)), F(() => {
12
12
  if (!n)
13
13
  return;
14
- const T = e.split(M).length, i = (o) => {
14
+ const T = e.split(b).length, i = (o) => {
15
15
  s.current || (s.current = o);
16
16
  const u = o - s.current, l = Math.min(u / W, 1), h = $(l), x = c + (T - c) * h;
17
17
  d(Math.floor(x)), l < 1 && (r.current = requestAnimationFrame(i));
@@ -19,7 +19,7 @@ function V(e, n = !0) {
19
19
  return s.current = 0, r.current = requestAnimationFrame(i), () => {
20
20
  r.current && cancelAnimationFrame(r.current);
21
21
  };
22
- }, [c, e, n]), n ? e.split(M).slice(0, a).join(M) : e;
22
+ }, [c, e, n]), n ? e.split(b).slice(0, a).join(b) : e;
23
23
  }
24
24
  const f = {
25
25
  MODEL: "Model",
@@ -50,16 +50,16 @@ const f = {
50
50
  [f.PLUGIN]: a ? y(a) : null
51
51
  }, o && (p ? m[f.USAGE] = `${L.format(o)} ${_("token", o)}` : m[f.USAGE] = B)), F(() => {
52
52
  t && l(t);
53
- }, [t, l]), d === v ? /* @__PURE__ */ b(
53
+ }, [t, l]), d === v ? /* @__PURE__ */ g(
54
54
  k,
55
55
  {
56
56
  tail: !0,
57
57
  className: w,
58
58
  contentClassName: A,
59
59
  noMaxWidth: !0,
60
- children: /* @__PURE__ */ b("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: u })
60
+ children: /* @__PURE__ */ g("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: u })
61
61
  }
62
- ) : /* @__PURE__ */ b(
62
+ ) : /* @__PURE__ */ g(
63
63
  k,
64
64
  {
65
65
  tail: !0,
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
2
2
  import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
3
- import { AsyncBubble as w } from "./App.ENGe9H1T.js";
4
- import { useMarkdown as _ } from "./useMarkdown.CYvX9qkp.js";
5
- import { C as M } from "./index.DrNijiOb.js";
3
+ import { AsyncBubble as w } from "./App.CtFpHv2O.js";
4
+ import { useMarkdown as _ } from "./useMarkdown.Bf7wGKkC.js";
5
+ import { C$1 as M } from "./index.Czv_1MTM.js";
6
6
  const R = 200, N = ({
7
7
  string: e,
8
8
  idealLength: r = R
@@ -1,9 +1,9 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { I as R, J as N, Q as g, INFINITE_SCROLL_THRESHOLD as E, CARDS as k, pluralize as b, te as u, numberFormatter as y, st as D, isProbablyMobile as U, c as I, r as P, O as B } from "./index.DrNijiOb.js";
3
- import { st as M, p$1 as L, z as $, p$2 as _ } from "./App.ENGe9H1T.js";
2
+ import { I as R, f as N, h as g, INFINITE_SCROLL_THRESHOLD as E, CARDS as k, pluralize as b, te as u, numberFormatter as y, k as D, isProbablyMobile as U, z as I, Z as P, E as B } from "./index.Czv_1MTM.js";
3
+ import { st as M, p$1 as L, z as $, p$2 as _ } from "./App.CtFpHv2O.js";
4
4
  import h from "clsx";
5
5
  import { Fragment as V } from "react";
6
- import { j as Y, D as F, G as x, H as G, M as a, U as K, F as O, n as W, l as H } from "./Table.DFmbCLqy.js";
6
+ import { j as Y, D as F, G as x, H as G, M as a, U as K, F as f, n as W, l as H } from "./Table.BbIvEnBz.js";
7
7
  const j = ({
8
8
  className: l,
9
9
  viewBox: c,
@@ -30,7 +30,7 @@ const j = ({
30
30
  /* @__PURE__ */ e("path", { d: "M270.3 112.9c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81.1 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.9 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81-11.8-36.2-73.4z" })
31
31
  ]
32
32
  }
33
- ), J = ({
33
+ ), Z = ({
34
34
  className: l,
35
35
  viewBox: c,
36
36
  title: n,
@@ -56,7 +56,7 @@ const j = ({
56
56
  /* @__PURE__ */ e("path", { d: "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448m0 480a256 256 0 1 0 0-512 256 256 0 1 0 0 512m14.3-399.1c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.8 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81.1-11.8-36.2-73.4zm-40 95.1 25.7-51.8 25.6 51.9c2.3 4.7 6.8 8 12 8.8l57.3 8.3-41.5 40.4c-3.8 3.7-5.5 9-4.6 14.2l9.8 57.1-51.2-26.9c-4.7-2.5-10.2-2.5-14.9 0l-51.2 26.9 9.8-57.1c.9-5.2-.8-10.5-4.6-14.2L161 225.1l57.3-8.3c5.2-.8 9.7-4 12-8.8" })
57
57
  ]
58
58
  }
59
- ), Q = {
59
+ ), q = {
60
60
  [B]: _,
61
61
  [P]: $,
62
62
  [I]: L
@@ -67,12 +67,12 @@ const j = ({
67
67
  PROVIDER: "provider",
68
68
  TOKEN_USAGE: g,
69
69
  ACTIONS: "actions"
70
- }, q = [
70
+ }, J = [
71
71
  t.ROW,
72
72
  t.TIMESTAMP,
73
73
  t.SUMMARY,
74
74
  t.ACTIONS
75
- ], X = [
75
+ ], Q = [
76
76
  t.ROW,
77
77
  t.SUMMARY,
78
78
  t.TIMESTAMP,
@@ -85,18 +85,18 @@ const j = ({
85
85
  lastEntryToLoad: n,
86
86
  onClickSort: d,
87
87
  onClickRestore: o,
88
- onClickDelete: f,
88
+ onClickDelete: O,
89
89
  onClickFavorite: T,
90
90
  infinityScrollMarkerRef: v,
91
91
  isLoading: w = !1
92
92
  }) => {
93
- const C = U() ? q : X, A = (s) => {
93
+ const C = U() ? J : Q, z = (s) => {
94
94
  switch (s) {
95
95
  case t.ROW:
96
96
  return /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }, s);
97
97
  case t.TIMESTAMP:
98
98
  return /* @__PURE__ */ e(
99
- O,
99
+ f,
100
100
  {
101
101
  focusMode: "system",
102
102
  buttonClassName: "text-xs sm:text-sm",
@@ -117,7 +117,7 @@ const j = ({
117
117
  return /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm", children: "Provider" }, s);
118
118
  case t.TOKEN_USAGE:
119
119
  return /* @__PURE__ */ e(
120
- O,
120
+ f,
121
121
  {
122
122
  focusMode: "system",
123
123
  buttonClassName: "text-xs sm:text-sm",
@@ -137,7 +137,7 @@ const j = ({
137
137
  default:
138
138
  return null;
139
139
  }
140
- }, z = (s, r, p) => {
140
+ }, A = (s, r, p) => {
141
141
  switch (s) {
142
142
  case t.ROW:
143
143
  return /* @__PURE__ */ e(a, { children: p + 1 }, s);
@@ -173,7 +173,7 @@ const j = ({
173
173
  );
174
174
  }
175
175
  case t.PROVIDER: {
176
- const i = r.model ? D(r.model) : null, S = i ? Q[i] : null;
176
+ const i = r.model ? D(r.model) : null, S = i ? q[i] : null;
177
177
  return /* @__PURE__ */ e(
178
178
  a,
179
179
  {
@@ -239,7 +239,7 @@ const j = ({
239
239
  onClick: async () => {
240
240
  await T(r);
241
241
  },
242
- children: r.favoriteChat ? /* @__PURE__ */ e(j, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(J, { size: "size-4", monotone: !0 })
242
+ children: r.favoriteChat ? /* @__PURE__ */ e(j, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(Z, { size: "size-4", monotone: !0 })
243
243
  }
244
244
  )
245
245
  }
@@ -257,7 +257,7 @@ const j = ({
257
257
  variant: "primary",
258
258
  iconClassName: "text-red-700 dark:text-red-500",
259
259
  onClick: () => {
260
- f(r);
260
+ O(r);
261
261
  },
262
262
  children: /* @__PURE__ */ e(H, { size: "size-3", monotone: !0 })
263
263
  }
@@ -270,11 +270,11 @@ const j = ({
270
270
  }
271
271
  };
272
272
  return /* @__PURE__ */ m(Y, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
273
- /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(x, { children: C.map((s) => A(s)) }) }),
273
+ /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(x, { children: C.map((s) => z(s)) }) }),
274
274
  /* @__PURE__ */ e(G, { children: w && l.length === 0 ? /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: "Loading..." }) }) }) : l.slice(0, n).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m(V, { children: [
275
275
  r === n - E && /* @__PURE__ */ e("tr", { ref: v }),
276
276
  /* @__PURE__ */ e(x, { children: C.map(
277
- (p) => z(p, s, r)
277
+ (p) => A(p, s, r)
278
278
  ) })
279
279
  ] }, `${k.HISTORY.TITLE}-${s.id}-${r}`) : null) }),
280
280
  /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(x, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: b(
@@ -1,6 +1,6 @@
1
1
  import { jsxs as n, jsx as t, Fragment as ee } from "react/jsx-runtime";
2
- import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.DrNijiOb.js";
3
- import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.ENGe9H1T.js";
2
+ import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, f as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, h as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C$1 as _e, ACTION_SEARCH as De } from "./index.Czv_1MTM.js";
3
+ import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.CtFpHv2O.js";
4
4
  import { useRef as N, useState as x, useContext as O, useCallback as V, Suspense as He, lazy as Fe, useEffect as Pe } from "react";
5
5
  const Ve = ({
6
6
  className: c,
@@ -31,7 +31,7 @@ const Ve = ({
31
31
  ), ze = Fe(
32
32
  () => import(
33
33
  /* webpackChunkName: "history-table" */
34
- "./ChatHistoryTable.BKu_ZZU9.js"
34
+ "./ChatHistoryTable.BvEUTjiq.js"
35
35
  ).then((c) => ({ default: c.ChatHistoryTable }))
36
36
  ), Ge = ({
37
37
  filteredHistory: c,
@@ -63,12 +63,12 @@ const Ve = ({
63
63
  }), [, Y] = g({
64
64
  key: T + oe,
65
65
  initialValue: D
66
- }), { refetch: j } = ie({
66
+ }), { refetch: $ } = ie({
67
67
  user: S?.username,
68
68
  getAccessToken: h
69
- }), { mutateAsync: $ } = ne({ getAccessToken: h }), { mutateAsync: Q } = ce({
69
+ }), { mutateAsync: j } = ne({ getAccessToken: h }), { mutateAsync: q } = ce({
70
70
  getAccessToken: h
71
- }), q = (e) => {
71
+ }), K = (e) => {
72
72
  const o = i.sortedCell === e;
73
73
  let r, _;
74
74
  switch (e) {
@@ -90,10 +90,10 @@ const Ve = ({
90
90
  sortDirection: F
91
91
  }
92
92
  });
93
- }, J = async () => {
93
+ }, Q = async () => {
94
94
  const e = s.current;
95
95
  try {
96
- await $({
96
+ await j({
97
97
  userId: S?.username || "",
98
98
  id: e.id
99
99
  }), C(""), await Ie(de, {
@@ -102,7 +102,7 @@ const Ve = ({
102
102
  });
103
103
  } catch {
104
104
  }
105
- }, K = async (e) => {
105
+ }, W = async (e) => {
106
106
  try {
107
107
  const o = await h(), r = await he({
108
108
  accessToken: o,
@@ -121,7 +121,7 @@ const Ve = ({
121
121
  payload: {
122
122
  provider: r.data.provider
123
123
  }
124
- }), j(), await be(
124
+ }), $(), await be(
125
125
  `${fe} ${r.data.provider}`,
126
126
  {
127
127
  containerId: "toggle-provider"
@@ -136,15 +136,15 @@ const Ve = ({
136
136
  }), w(""), E(e.id), b(r.data.messages), f(!1);
137
137
  } catch {
138
138
  }
139
- }, W = (e) => {
139
+ }, X = (e) => {
140
140
  s.current = {
141
141
  id: e.id,
142
142
  timestamp: e.timestamp,
143
143
  message: e.messages.length > 0 ? e.messages[0]?.content : ""
144
144
  }, m(!A);
145
- }, X = async (e) => {
145
+ }, J = async (e) => {
146
146
  try {
147
- await Q({
147
+ await q({
148
148
  userId: S?.username || "",
149
149
  id: e.id
150
150
  }), C("");
@@ -169,7 +169,7 @@ const Ve = ({
169
169
  {
170
170
  showConfirmation: A,
171
171
  setShowConfirmation: m,
172
- action: J,
172
+ action: Q,
173
173
  customStrings: {
174
174
  confirmAction: "Delete",
175
175
  cancelAction: "Cancel",
@@ -199,16 +199,16 @@ const Ve = ({
199
199
  filteredHistory: c,
200
200
  historyState: y,
201
201
  lastEntryToLoad: R,
202
- onClickSort: q,
203
- onClickRestore: K,
204
- onClickDelete: W,
205
- onClickFavorite: X,
202
+ onClickSort: K,
203
+ onClickRestore: W,
204
+ onClickDelete: X,
205
+ onClickFavorite: J,
206
206
  infinityScrollMarkerRef: Z,
207
207
  isLoading: p
208
208
  }
209
209
  ) })
210
210
  ] });
211
- }, je = ({
211
+ }, $e = ({
212
212
  open: c,
213
213
  onOpenChange: d
214
214
  }) => {
@@ -329,5 +329,5 @@ const Ve = ({
329
329
  );
330
330
  };
331
331
  export {
332
- je as HistoryPanel
332
+ $e as HistoryPanel
333
333
  };
@@ -1,6 +1,6 @@
1
- import { jsxs as t, Fragment as $, jsx as e } from "react/jsx-runtime";
2
- import { preloadToast as D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.ENGe9H1T.js";
3
- import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.DrNijiOb.js";
1
+ import { jsxs as t, Fragment as D, jsx as e } from "react/jsx-runtime";
2
+ import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as $, LazyToastContainerWrapper as H, oe as V } from "./App.CtFpHv2O.js";
3
+ import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, N as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C$1 as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.Czv_1MTM.js";
4
4
  import ie from "clsx";
5
5
  import { useState as m, useMemo as ce, useCallback as P } from "react";
6
6
  const oe = () => {
@@ -26,40 +26,40 @@ const oe = () => {
26
26
  (r) => Z[r] || r
27
27
  )
28
28
  })), [E, S?.plans]), g = P(() => {
29
- T || (D(), F(!0));
30
- }, [T]), j = P(async () => {
29
+ T || (K(), F(!0));
30
+ }, [T]), z = P(async () => {
31
31
  if (!(!l || !n?.username))
32
32
  try {
33
33
  N(l.id), await ee({
34
34
  plan: l.id,
35
35
  accessToken: await u(),
36
36
  username: n.username
37
- }), await R(), await K(
37
+ }), await R(), await W(
38
38
  `${s.PLANS.SWITCH_SUCCESS} ${l.label}`,
39
39
  {
40
40
  containerId: "profile-plan-selection"
41
41
  }
42
42
  );
43
43
  } catch {
44
- await W(s.PLANS.SWITCH_ERROR, {
44
+ await Y(s.PLANS.SWITCH_ERROR, {
45
45
  containerId: "profile-plan-selection"
46
46
  });
47
47
  } finally {
48
48
  N(null), w(null);
49
49
  }
50
- }, [u, l, R, n?.username]), z = P(
50
+ }, [u, l, R, n?.username]), M = P(
51
51
  (a, r) => {
52
52
  !n?.username || a === p?.plan || (w({ id: a, label: r }), C(!0));
53
53
  },
54
54
  [p?.plan, n?.username]
55
55
  );
56
- return h && A ? /* @__PURE__ */ t($, { children: [
56
+ return h && A ? /* @__PURE__ */ t(D, { children: [
57
57
  /* @__PURE__ */ e(
58
- Y,
58
+ $,
59
59
  {
60
60
  showConfirmation: x,
61
61
  setShowConfirmation: C,
62
- action: j,
62
+ action: z,
63
63
  customStrings: {
64
64
  confirmAction: "Switch Plan",
65
65
  cancelAction: "Cancel",
@@ -93,8 +93,8 @@ const oe = () => {
93
93
  noBorder: !0,
94
94
  children: [
95
95
  /* @__PURE__ */ e("p", { className: "text-sm", children: s.PLANS.DESCRIPTION }),
96
- /* @__PURE__ */ e(f, { columnGap: 3, rowGap: 3, className: "mt-4", children: I.map(({ id: a, label: r, description: M, features: B, models: G }) => {
97
- const o = p?.plan === a, O = o ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, L = v === a;
96
+ /* @__PURE__ */ e(f, { columnGap: 3, rowGap: 3, className: "mt-4", children: I.map(({ id: a, label: r, description: B, features: G, models: O }) => {
97
+ const o = p?.plan === a, j = o ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, L = v === a;
98
98
  return /* @__PURE__ */ e(c, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(d, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ t(f, { direction: "column", children: [
99
99
  /* @__PURE__ */ t(c, { children: [
100
100
  /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ t("div", { children: [
@@ -107,12 +107,12 @@ const oe = () => {
107
107
  children: r
108
108
  }
109
109
  ),
110
- /* @__PURE__ */ e("p", { className: "mb-0 text-sm opacity-80", children: M })
110
+ /* @__PURE__ */ e("p", { className: "mb-0 text-sm opacity-80", children: B })
111
111
  ] }) }),
112
112
  /* @__PURE__ */ e("h4", { children: "Features" }),
113
- /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: B.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) }),
113
+ /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: G.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) }),
114
114
  /* @__PURE__ */ e("h4", { children: "Models" }),
115
- /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: G.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
115
+ /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: O.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
116
116
  ] }),
117
117
  /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(
118
118
  se,
@@ -124,11 +124,11 @@ const oe = () => {
124
124
  fullWidth: !0,
125
125
  disabled: o || L,
126
126
  onClick: () => {
127
- z(a, r);
127
+ M(a, r);
128
128
  },
129
129
  onMouseEnter: g,
130
130
  onFocus: g,
131
- children: L ? "Updating..." : O
131
+ children: L ? "Updating..." : j
132
132
  }
133
133
  ) })
134
134
  ] }) }) }, a);
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as t, Fragment as A } from "react/jsx-runtime";
2
- import { n as Pe, useEntitlements as Be, useUserPreferences as Ge, ot as ce, LOCAL_STORAGE_OLED_MODE as Ue, LOCAL_STORAGE_FULL_SCREEN as Fe, canEvaluateModels as Ve, Et as We, getCacheInfo as $e, isServiceWorkerEnabled as ze, SETTINGS_TITLE as je, S as p, CARDS as r, $ as He, C as R, PROMPTS_DESCRIPTION as Ye, L as qe, j as ie, applyOledMode as de, getCurrentGeoLocation as Ke, graphQLRequest as me, handleServiceWorkerToggle as Qe, SERVICE_TYPES as ue } from "./index.DrNijiOb.js";
3
- import { AppContext as Je, useCapability as he, E as pe, oe as Xe, G as l, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as Se } from "./App.ENGe9H1T.js";
4
- import { Re as Ne } from "./index.DQMZ9_rK.js";
2
+ import { n as Pe, useEntitlements as Be, useUserPreferences as Ge, C as ce, LOCAL_STORAGE_OLED_MODE as Ue, LOCAL_STORAGE_FULL_SCREEN as Fe, canEvaluateModels as Ve, H as We, getCacheInfo as $e, isServiceWorkerEnabled as ze, SETTINGS_TITLE as He, S as p, CARDS as r, b as je, C$1 as R, PROMPTS_DESCRIPTION as Ye, L as qe, j as ie, applyOledMode as de, getCurrentGeoLocation as Ke, graphQLRequest as me, handleServiceWorkerToggle as Qe, SERVICE_TYPES as ue } from "./index.Czv_1MTM.js";
3
+ import { AppContext as Je, useCapability as he, E as pe, oe as Xe, G as l, APP_SET_OLED_MODE as Ee, APP_SET_FULL_SCREEN as Se } from "./App.CtFpHv2O.js";
4
+ import { Re as Ne } from "./index.BNusLsEn.js";
5
5
  import { useContext as Ze, useState as n, useMemo as et, useCallback as tt, useEffect as ge } from "react";
6
6
  const lt = ({
7
7
  open: fe,
@@ -18,7 +18,7 @@ const lt = ({
18
18
  loadingLocation: !1
19
19
  }), [w, F] = n({
20
20
  prompts: []
21
- }), [V, W] = n(""), [$, T] = n(""), [z, j] = n(!1), [H, Y] = n(!1), [C, q] = n(!1), [I, K] = n(!1), [Q, J] = n(!1), [D, X] = n(!1), [E, Z] = n(null), [ee, te] = n(!1), [oe, se] = n(!1), ae = he(ce.TOOL.MEMORIES), ne = he(ce.ADDON.REASONING), [i, Ce] = pe({
21
+ }), [V, W] = n(""), [$, T] = n(""), [z, H] = n(!1), [j, Y] = n(!1), [C, q] = n(!1), [I, K] = n(!1), [Q, J] = n(!1), [D, X] = n(!1), [E, Z] = n(null), [ee, te] = n(!1), [oe, se] = n(!1), ae = he(ce.TOOL.MEMORIES), ne = he(ce.ADDON.REASONING), [i, Ce] = pe({
22
22
  key: Ue,
23
23
  initialValue: !1
24
24
  }), [m, Ie] = pe({
@@ -27,7 +27,7 @@ const lt = ({
27
27
  }), [u, L] = n(!1), [S, _] = n(!1), be = et(() => Ve(k, B) ? We(k) : !1, [k, B]), ye = (e) => {
28
28
  se(e);
29
29
  }, ke = (e) => {
30
- j(e);
30
+ H(e);
31
31
  }, we = (e) => {
32
32
  ae && Y(e);
33
33
  }, De = (e) => {
@@ -59,7 +59,7 @@ const lt = ({
59
59
  model: D && o?.model || "",
60
60
  tags: w.prompts,
61
61
  sendOnEnter: z,
62
- useMemory: H,
62
+ useMemory: j,
63
63
  showDetails: oe,
64
64
  showReasoningButton: Q,
65
65
  useNestedModelSelection: D
@@ -142,7 +142,7 @@ const lt = ({
142
142
  return ge(() => {
143
143
  if (!o)
144
144
  return;
145
- o.instructions && W(o.instructions), o.location && T(o.location), o.tags && F({ prompts: o.tags }), o.sendOnEnter !== void 0 && j(o.sendOnEnter), o.useMemory !== void 0 && Y(o.useMemory), o.showDetails !== void 0 && se(o.showDetails), o.showReasoningButton !== void 0 && J(o.showReasoningButton), o.useNestedModelSelection !== void 0 && X(o.useNestedModelSelection);
145
+ o.instructions && W(o.instructions), o.location && T(o.location), o.tags && F({ prompts: o.tags }), o.sendOnEnter !== void 0 && H(o.sendOnEnter), o.useMemory !== void 0 && Y(o.useMemory), o.showDetails !== void 0 && se(o.showDetails), o.showReasoningButton !== void 0 && J(o.showReasoningButton), o.useNestedModelSelection !== void 0 && X(o.useNestedModelSelection);
146
146
  const e = ze();
147
147
  q(e), K(e), L(i), _(m);
148
148
  }, [o, i, m]), ge(() => {
@@ -152,7 +152,7 @@ const lt = ({
152
152
  {
153
153
  open: fe,
154
154
  onOpenChange: re,
155
- title: je,
155
+ title: He,
156
156
  animation: !0,
157
157
  animationType: "fade",
158
158
  footer: /* @__PURE__ */ s(
@@ -232,7 +232,7 @@ const lt = ({
232
232
  label: "Use Memory",
233
233
  name: "use-memory",
234
234
  onChange: we,
235
- checked: H
235
+ checked: j
236
236
  }
237
237
  )
238
238
  ] })
@@ -248,7 +248,7 @@ const lt = ({
248
248
  children: [
249
249
  /* @__PURE__ */ s("p", { className: "text-sm", children: [
250
250
  "What would you like ",
251
- /* @__PURE__ */ t("em", { children: He }),
251
+ /* @__PURE__ */ t("em", { children: je }),
252
252
  " to know about you to provide better responses?"
253
253
  ] }),
254
254
  /* @__PURE__ */ t(
@@ -1,8 +1,8 @@
1
1
  import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { I as u, b$1 as f } from "./index.DrNijiOb.js";
2
+ import { I as u, b$1 as f } from "./index.Czv_1MTM.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.ENGe9H1T.js";
5
+ import { e as k } from "./App.CtFpHv2O.js";
6
6
  const L = ({
7
7
  className: e,
8
8
  viewBox: a,
@@ -1,13 +1,13 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as A, C as i, pluralize as h } from "./index.DrNijiOb.js";
3
- import { oe as H } from "./App.ENGe9H1T.js";
4
- import { useState as C, Suspense as K, lazy as j } from "react";
2
+ import { n as f, i as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, S as g, renderDataAsList as P, CARDS as a, L as p, j as C, C$1 as i, pluralize as h } from "./index.Czv_1MTM.js";
3
+ import { oe as H } from "./App.CtFpHv2O.js";
4
+ import { useState as A, Suspense as K, lazy as j } from "react";
5
5
  const s = [0, 3, 6, 9], n = {
6
6
  TOKEN: "token",
7
7
  MODEL: "model"
8
8
  }, w = j(() => import(
9
9
  /* webpackChunkName: "LazyChart" */
10
- "./Chart.DpZtBOl0.js"
10
+ "./Chart.DD1RkG8X.js"
11
11
  )), R = ({
12
12
  open: k,
13
13
  onOpenChange: E
@@ -18,7 +18,7 @@ const s = [0, 3, 6, 9], n = {
18
18
  }), { data: r, isSuccess: M } = z({
19
19
  user: T?.username,
20
20
  getAccessToken: u
21
- }), O = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [c, S] = C(O), [o, I] = C(n.MODEL), U = (d) => {
21
+ }), O = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [c, S] = A(O), [o, I] = A(n.MODEL), U = (d) => {
22
22
  d.preventDefault();
23
23
  const m = (s.indexOf(c) + 1) % s.length;
24
24
  S(s[m]);
@@ -63,10 +63,10 @@ const s = [0, 3, 6, 9], n = {
63
63
  g,
64
64
  {
65
65
  header: a.MAIN_STATISTICS.USAGE,
66
- className: "prose-dark dark:prose-lighter mt-4 min-h-[535px]",
66
+ className: "prose-dark dark:prose-lighter mt-4 min-h-[555px]",
67
67
  noBorder: !0,
68
68
  children: M && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ l(K, { fallback: /* @__PURE__ */ e("div", {}), children: [
69
- /* @__PURE__ */ e(p, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ l(A, { children: [
69
+ /* @__PURE__ */ e(p, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ l(C, { children: [
70
70
  /* @__PURE__ */ e(
71
71
  i,
72
72
  {
@@ -97,7 +97,7 @@ const s = [0, 3, 6, 9], n = {
97
97
  viewMode: o
98
98
  }
99
99
  ),
100
- /* @__PURE__ */ e(p, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ l(A, { children: [
100
+ /* @__PURE__ */ e(p, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ l(C, { children: [
101
101
  /* @__PURE__ */ e(
102
102
  i,
103
103
  {