@versini/sassysaint 8.70.1 → 8.70.3

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._T5Lr2_6.js → AboutChangelog.D7hu4Qqk.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DJ0OUM4_.js → AboutEntry.CXGcXe6K.js} +7 -7
  3. package/dist/chunks/{App.CcqDGZun.js → App.DsIUXmFA.js} +1723 -1743
  4. package/dist/chunks/{Chart.Dm81lz3L.js → Chart.Ckm3ANSq.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.D4Ru1U9N.js → ChatBubbleAssistant.3ROQNV_n.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.CvpUTP0y.js → ChatBubbleUser.B3m6lXZh.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.CDC3cvyT.js → ChatHistoryTable.CoZAK6Eh.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.C_3ek905.js → HistoryEntry.BB34Lt3G.js} +107 -113
  9. package/dist/chunks/{ProfileEntry.BcL78DD5.js → ProfileEntry.CJ47oHQw.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.F8OD9jcf.js → SettingsEntry.Cb1kQyJ0.js} +29 -29
  11. package/dist/chunks/{Table.DvDzjCKJ.js → Table.CbLJ09Ts.js} +2 -2
  12. package/dist/chunks/{UsageEntry.BJMW3Rxc.js → UsageEntry.Dsmj0zqB.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.BByjrVlZ.js → UserMemoriesPanel.BfA8qOUH.js} +4 -4
  14. package/dist/chunks/{index.CpmMOFcw.js → index.BBkOItAA.js} +1 -1
  15. package/dist/chunks/{index.DZlzg3MC.js → index.BJjl5HBk.js} +1 -1
  16. package/dist/chunks/{index.CRvAVi49.js → index.BUHFHowY.js} +3 -3
  17. package/dist/chunks/{index.5sFEsLHg.js → index.BgfJhLwR.js} +1 -1
  18. package/dist/chunks/{index.DAjlwxaV.js → index.BuTELlmM.js} +1 -1
  19. package/dist/chunks/{index.ByjDYmg9.js → index.ByEQpFTA.js} +909 -837
  20. package/dist/chunks/{index.BE-5S88E.js → index.CTp_-pvG.js} +1 -1
  21. package/dist/chunks/{index.B-4Q-F7F.js → index.DvP4TYvo.js} +2 -2
  22. package/dist/chunks/{useMarkdown.4pam55Dz.js → useMarkdown.SFGGCgew.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.CcqDGZun.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.DsIUXmFA.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.ByjDYmg9.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.ByEQpFTA.js";
5
5
  var ls = { exports: {} }, Ip = ls.exports, on;
6
6
  function Dp() {
7
7
  return on || (on = 1, (function(we, he) {
@@ -1,10 +1,10 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y as L } from "./index.ByjDYmg9.js";
3
- import { BUBBLE_FOOTER_EMPTY as _ } from "./index.DZlzg3MC.js";
2
+ import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y as L } from "./index.ByEQpFTA.js";
3
+ import { BUBBLE_FOOTER_EMPTY as _ } from "./index.BJjl5HBk.js";
4
4
  import w from "clsx";
5
5
  import v, { useState as M, useRef as A, useEffect as U, useContext as B } from "react";
6
- import { ChatContext as G, AsyncBubble as E } from "./App.CcqDGZun.js";
7
- import { useMarkdown as D } from "./useMarkdown.4pam55Dz.js";
6
+ import { ChatContext as G, AsyncBubble as E } from "./App.DsIUXmFA.js";
7
+ import { useMarkdown as D } from "./useMarkdown.SFGGCgew.js";
8
8
  const j = 2, q = j * 1e3, b = "", I = (e) => e * (2 - e);
9
9
  function W(e, n = !0) {
10
10
  const [a, p] = M(0), [i, C] = M(0), [t, T] = M(e), r = A(0), s = A(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.CcqDGZun.js";
4
- import { useMarkdown as _ } from "./useMarkdown.4pam55Dz.js";
5
- import { C as M } from "./index.ByjDYmg9.js";
3
+ import { AsyncBubble as w } from "./App.DsIUXmFA.js";
4
+ import { useMarkdown as _ } from "./useMarkdown.SFGGCgew.js";
5
+ import { C as M } from "./index.ByEQpFTA.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 g, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.ByjDYmg9.js";
3
- import { st as u, p$1 as P, z as L, p$2 as V } from "./App.CcqDGZun.js";
2
+ import { I as g, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.ByEQpFTA.js";
3
+ import { st as u, p$1 as P, z as L, p$2 as V } from "./App.DsIUXmFA.js";
4
4
  import h from "clsx";
5
5
  import { Fragment as _ } from "react";
6
- import { j as $, D as H, G as M, H as Y, U as F, M as a, F as f, l as G } from "./Table.DvDzjCKJ.js";
6
+ import { j as $, D as H, G as M, H as Y, U as F, M as a, F as f, l as G } from "./Table.CbLJ09Ts.js";
7
7
  const K = ({
8
8
  className: l,
9
9
  viewBox: c,
@@ -1,21 +1,21 @@
1
- import { jsxs as n, jsx as t, Fragment as q } from "react/jsx-runtime";
2
- import { I as Q, n as P, INFINITE_SCROLL_LIMIT as V, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as f, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, Z as L, useUserPreferences as se, APP_CLASSNAME as oe, mutateCall as b, SERVICE_TYPES as x, TOAST_CHAT_DELETED as ie, setNewProvider as ne, ACTION_SORT as ce, J as le, TOAST_PROVIDER_CHANGED as de, useChatsHistory as he, LOCAL_STORAGE_SEARCH as me, LOCAL_STORAGE_FAVORITES_ONLY as ue, HISTORY_TITLE as Ce, S as Se, Y$1 as pe, debounce as Te, C as ye, ACTION_SEARCH as fe } from "./index.ByjDYmg9.js";
3
- import { HistoryContext as z, ChatContext as M, useAiChat as Ee, E, e as m, ConfirmationPanel as ge, LazyToastContainerWrapper as Ae, showErrorToast as _e, CHAT_SET_PROVIDER as ve, showSuccessToast as De, CHAT_SET_STATUS as Oe, oe as Le, G as Re } from "./App.CcqDGZun.js";
4
- import { useRef as H, useState as F, useContext as R, useCallback as ke, useEffect as U, Suspense as Ie, lazy as we } from "react";
5
- const Ne = ({
1
+ import { jsxs as n, jsx as t, Fragment as X } from "react/jsx-runtime";
2
+ import { I as Z, n as P, INFINITE_SCROLL_LIMIT as F, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, Z as L, useUserPreferences as se, useDeleteChat as oe, useToggleFavoriteChat as ie, APP_CLASSNAME as ne, TOAST_CHAT_DELETED as ce, graphQLRequest as le, SERVICE_TYPES as de, setNewProvider as he, ACTION_SORT as me, J as ue, TOAST_PROVIDER_CHANGED as Ce, useChatsHistory as Se, LOCAL_STORAGE_SEARCH as pe, LOCAL_STORAGE_FAVORITES_ONLY as ye, HISTORY_TITLE as fe, S as Te, Y$1 as ge, debounce as Ae, C as Ee, ACTION_SEARCH as ve } from "./index.ByEQpFTA.js";
3
+ import { HistoryContext as V, ChatContext as z, useAiChat as _e, E as g, e as m, ConfirmationPanel as De, LazyToastContainerWrapper as Oe, showErrorToast as Le, CHAT_SET_PROVIDER as Re, showSuccessToast as Ie, CHAT_SET_STATUS as ke, oe as Ne, G as be } from "./App.DsIUXmFA.js";
4
+ import { useRef as w, useState as x, useContext as R, useCallback as we, useEffect as G, Suspense as xe, lazy as He } from "react";
5
+ const Fe = ({
6
6
  className: l,
7
7
  viewBox: h,
8
- title: T,
8
+ title: y,
9
9
  monotone: u,
10
10
  ...d
11
11
  }) => /* @__PURE__ */ n(
12
- Q,
12
+ Z,
13
13
  {
14
14
  defaultViewBox: "0 0 512 512",
15
15
  size: "size-5",
16
16
  viewBox: h,
17
17
  className: l,
18
- title: T || "Search",
18
+ title: y || "Search",
19
19
  ...d,
20
20
  children: [
21
21
  /* @__PURE__ */ t(
@@ -28,148 +28,142 @@ const Ne = ({
28
28
  /* @__PURE__ */ t("path", { d: "m330.7 376 126.7 126.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L376 330.7c-12.7 17.3-28 32.6-45.3 45.3" })
29
29
  ]
30
30
  }
31
- ), be = we(
31
+ ), Pe = He(
32
32
  () => import(
33
33
  /* webpackChunkName: "history-table" */
34
- "./ChatHistoryTable.CDC3cvyT.js"
34
+ "./ChatHistoryTable.CoZAK6Eh.js"
35
35
  ).then((l) => ({ default: l.ChatHistoryTable }))
36
- ), xe = ({
36
+ ), Ve = ({
37
37
  filteredHistory: l,
38
38
  dispatch: h,
39
- onOpenChange: T,
39
+ onOpenChange: y,
40
40
  mutate: u
41
41
  }) => {
42
- const { user: d, getAccessToken: C } = P(), S = H(null), o = H({
42
+ const { user: d, getAccessToken: C } = P(), S = w(null), o = w({
43
43
  id: "",
44
44
  timestamp: "",
45
45
  message: ""
46
- }), [c, g] = F(!1), [p, k] = F(
47
- V + ee
48
- ), { state: i, dispatch: A } = R(z), I = {
46
+ }), [c, A] = x(!1), [p, I] = x(
47
+ F + ee
48
+ ), { state: i, dispatch: E } = R(V), k = {
49
49
  searchString: i.searchString || "",
50
50
  sortDirection: i.sortDirection || m.DESC,
51
51
  sortedCell: i.sortedCell || L
52
52
  }, {
53
- state: { provider: y },
54
- setChatId: w,
55
- setInitialMessages: _
56
- } = R(M), { setInput: N } = Ee(), [v, D] = E({
57
- key: f + te,
53
+ state: { provider: f },
54
+ setChatId: N,
55
+ setInitialMessages: v
56
+ } = R(z), { setInput: b } = _e(), [_, D] = g({
57
+ key: T + te,
58
58
  initialValue: m.DESC
59
- }), [a, B] = E({
60
- key: f + re,
59
+ }), [a, M] = g({
60
+ key: T + re,
61
61
  initialValue: m.ASC
62
- }), [, Y] = E({
63
- key: f + ae,
62
+ }), [, U] = g({
63
+ key: T + ae,
64
64
  initialValue: L
65
- }), { refetch: $ } = se({
65
+ }), { refetch: B } = se({
66
66
  user: d?.username,
67
67
  getAccessToken: C
68
+ }), { mutateAsync: Y } = oe({ getAccessToken: C }), { mutateAsync: $ } = ie({
69
+ getAccessToken: C
68
70
  }), j = (e) => {
69
71
  const s = i.sortedCell === e;
70
72
  let r, O;
71
73
  switch (e) {
72
74
  case L:
73
- O = D, r = s ? i.sortDirection : v;
75
+ O = D, r = s ? i.sortDirection : _;
74
76
  break;
75
- case le:
76
- O = B, r = s ? i.sortDirection : a;
77
+ case ue:
78
+ O = M, r = s ? i.sortDirection : a;
77
79
  break;
78
80
  default:
79
- O = D, r = s ? i.sortDirection : v;
81
+ O = D, r = s ? i.sortDirection : _;
80
82
  break;
81
83
  }
82
- const G = r === m.ASC ? m.DESC : m.ASC;
83
- O(G), Y(e), A({
84
- type: ce,
84
+ const H = r === m.ASC ? m.DESC : m.ASC;
85
+ O(H), U(e), E({
86
+ type: me,
85
87
  payload: {
86
88
  sortedCell: e,
87
- sortDirection: G
89
+ sortDirection: H
88
90
  }
89
91
  });
90
- }, J = async () => {
92
+ }, q = async () => {
91
93
  const e = o.current;
92
94
  try {
93
- await b({
94
- accessToken: await C(),
95
- type: x.DELETE_CHAT,
96
- params: {
97
- userId: d?.username || "",
98
- id: e.id
99
- }
100
- }), u(""), await _e(ie, {
95
+ await Y({
96
+ userId: d?.username || "",
97
+ id: e.id
98
+ }), u(""), await Le(ce, {
101
99
  autoClose: 2e3,
102
100
  containerId: "history-table"
103
101
  });
104
102
  } catch {
105
103
  }
106
- }, K = async (e) => {
104
+ }, J = async (e) => {
107
105
  try {
108
- const s = await C(), r = await b({
106
+ const s = await C(), r = await le({
109
107
  accessToken: s,
110
- type: x.GET_CHAT,
108
+ type: de.GET_CHAT,
111
109
  params: {
112
110
  id: e.id
113
111
  }
114
112
  });
115
- r.data.provider !== y && (await ne({
113
+ r.data.provider !== f && (await he({
116
114
  provider: r.data.provider,
117
115
  accessToken: s,
118
116
  username: d?.username || ""
119
117
  }), h({
120
- type: ve,
118
+ type: Re,
121
119
  payload: {
122
120
  provider: r.data.provider
123
121
  }
124
- }), $(), await De(
125
- `${de} ${r.data.provider}`,
122
+ }), B(), await Ie(
123
+ `${Ce} ${r.data.provider}`,
126
124
  {
127
125
  containerId: "toggle-provider"
128
126
  }
129
127
  )), h({
130
- type: Oe,
128
+ type: ke,
131
129
  payload: {
132
130
  restoring: !0,
133
131
  restoredModel: r.data?.model || "",
134
132
  restoredUsage: r.data?.tokenUsage || 0
135
133
  }
136
- }), N(""), w(e.id), _(r.data.messages), T(!1);
134
+ }), b(""), N(e.id), v(r.data.messages), y(!1);
137
135
  } catch {
138
136
  }
139
- }, W = (e) => {
137
+ }, K = (e) => {
140
138
  o.current = {
141
139
  id: e.id,
142
140
  timestamp: e.timestamp,
143
141
  message: e.messages.length > 0 ? e.messages[0]?.content : ""
144
- }, g(!c);
145
- }, X = async (e) => {
142
+ }, A(!c);
143
+ }, Q = async (e) => {
146
144
  try {
147
- await b({
148
- accessToken: await C(),
149
- type: x.TOGGLE_FAVORITE_CHAT,
150
- params: {
151
- userId: d?.username || "",
152
- id: e.id
153
- }
145
+ await $({
146
+ userId: d?.username || "",
147
+ id: e.id
154
148
  }), u("");
155
149
  } catch {
156
150
  }
157
- }, Z = ke((e) => {
158
- e[0].isIntersecting && k((r) => r + V);
151
+ }, W = we((e) => {
152
+ e[0].isIntersecting && I((r) => r + F);
159
153
  }, []);
160
- return U(() => {
154
+ return G(() => {
161
155
  const e = {
162
156
  // root: null,
163
157
  rootMargin: "20px"
164
- }, s = new IntersectionObserver(Z, e);
158
+ }, s = new IntersectionObserver(W, e);
165
159
  S.current && s.observe(S.current);
166
- }), /* @__PURE__ */ n(q, { children: [
160
+ }), /* @__PURE__ */ n(X, { children: [
167
161
  /* @__PURE__ */ n(
168
- ge,
162
+ De,
169
163
  {
170
164
  showConfirmation: c,
171
- setShowConfirmation: g,
172
- action: J,
165
+ setShowConfirmation: A,
166
+ action: q,
173
167
  customStrings: {
174
168
  confirmAction: "Delete",
175
169
  cancelAction: "Cancel",
@@ -192,80 +186,80 @@ const Ne = ({
192
186
  ]
193
187
  }
194
188
  ),
195
- /* @__PURE__ */ t("div", { className: oe, children: /* @__PURE__ */ t(Ae, { containerId: "history-table" }) }),
196
- /* @__PURE__ */ t(Ie, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
197
- be,
189
+ /* @__PURE__ */ t("div", { className: ne, children: /* @__PURE__ */ t(Oe, { containerId: "history-table" }) }),
190
+ /* @__PURE__ */ t(xe, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
191
+ Pe,
198
192
  {
199
193
  filteredHistory: l,
200
- historyState: I,
194
+ historyState: k,
201
195
  lastEntryToLoad: p,
202
196
  onClickSort: j,
203
- onClickRestore: K,
204
- onClickDelete: W,
205
- onClickFavorite: X,
197
+ onClickRestore: J,
198
+ onClickDelete: K,
199
+ onClickFavorite: Q,
206
200
  infinityScrollMarkerRef: S
207
201
  }
208
202
  ) })
209
203
  ] });
210
- }, Pe = ({
204
+ }, Be = ({
211
205
  open: l,
212
206
  onOpenChange: h
213
207
  }) => {
214
- const { getAccessToken: T, user: u } = P(), { dispatch: d } = R(M), [C, S] = F([]), o = H(null), { state: c, dispatch: g } = R(z), {
208
+ const { getAccessToken: y, user: u } = P(), { dispatch: d } = R(z), [C, S] = x([]), o = w(null), { state: c, dispatch: A } = R(V), {
215
209
  data: p,
216
- refetch: k,
210
+ refetch: I,
217
211
  isLoading: i,
218
- isError: A
219
- } = he({
212
+ isError: E
213
+ } = Se({
220
214
  enabled: l,
221
215
  user: u?.username || "",
222
216
  searchString: c.searchString || "",
223
217
  sortDirection: c.sortDirection || m.DESC,
224
218
  sortedCell: c.sortedCell || L,
225
- getAccessToken: T
226
- }), [, I] = E({
227
- key: f + me,
219
+ getAccessToken: y
220
+ }), [, k] = g({
221
+ key: T + pe,
228
222
  initialValue: c.searchString
229
- }), [y, w] = E({
230
- key: f + ue,
223
+ }), [f, N] = g({
224
+ key: T + ye,
231
225
  initialValue: !1
232
226
  });
233
- U(() => {
227
+ G(() => {
234
228
  p && S(
235
- y ? p.filter((a) => a.favoriteChat === !0) : p
229
+ f ? p.filter((a) => a.favoriteChat === !0) : p
236
230
  );
237
- }, [p, y]);
238
- const _ = async (a) => {
239
- I(a), g({
240
- type: fe,
231
+ }, [p, f]);
232
+ const v = async (a) => {
233
+ k(a), A({
234
+ type: ve,
241
235
  payload: { searchString: a }
242
236
  });
243
- }, N = Te((a) => {
244
- _(a.target.value.trim());
245
- }, 500), v = async (a) => {
237
+ }, b = Ae((a) => {
238
+ v(a.target.value.trim());
239
+ }, 500), _ = async (a) => {
246
240
  a.preventDefault();
247
241
  }, D = (a) => {
248
- w(a);
242
+ N(a);
249
243
  };
250
244
  return /* @__PURE__ */ n(
251
- Le,
245
+ Ne,
252
246
  {
253
247
  open: l,
254
248
  onOpenChange: h,
255
- title: Ce,
249
+ title: fe,
256
250
  animation: !0,
257
251
  animationType: "fade",
258
252
  children: [
259
253
  /* @__PURE__ */ t(
260
- Se,
254
+ Te,
261
255
  {
262
256
  header: "Filters",
263
257
  className: "prose-dark dark:prose-lighter mb-4",
264
258
  noBorder: !0,
265
259
  compact: !0,
266
- children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: v, children: [
260
+ children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: _, children: [
267
261
  /* @__PURE__ */ t(
268
- pe,
262
+ ge,
269
263
  {
270
264
  placeholder: "Search",
271
265
  labelHidden: !0,
@@ -278,17 +272,17 @@ const Ne = ({
278
272
  mode: "alt-system",
279
273
  name: "Search",
280
274
  label: "Search",
281
- onChange: N,
275
+ onChange: b,
282
276
  className: "my-2",
283
- rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(Ne, { monotone: !0, size: "size-3" }) })
277
+ rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(Fe, { monotone: !0, size: "size-3" }) })
284
278
  }
285
279
  ),
286
280
  /* @__PURE__ */ n("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
287
281
  /* @__PURE__ */ t("div", { className: "order-1 sm:order-0", children: /* @__PURE__ */ t(
288
- Re,
282
+ be,
289
283
  {
290
284
  name: "favorites-only",
291
- checked: y,
285
+ checked: f,
292
286
  onChange: D,
293
287
  label: "Show favorites only",
294
288
  narrow: !0,
@@ -296,12 +290,12 @@ const Ne = ({
296
290
  }
297
291
  ) }),
298
292
  /* @__PURE__ */ t(
299
- ye,
293
+ Ee,
300
294
  {
301
295
  size: "small",
302
296
  disabled: c.searchString === "",
303
297
  onClick: () => {
304
- _(""), o.current?.value && (o.current.value = "", o.current.focus());
298
+ v(""), o.current?.value && (o.current.value = "", o.current.focus());
305
299
  },
306
300
  children: "Reset Search"
307
301
  }
@@ -312,11 +306,11 @@ const Ne = ({
312
306
  ),
313
307
  /* @__PURE__ */ n("div", { className: "flex flex-col sm:flex-row max-h-[65vh] sm:max-h-[75vh] min-h-[60vh]", children: [
314
308
  i && /* @__PURE__ */ t("p", { className: "m-0", children: "Loading..." }),
315
- A && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
316
- !i && !A && /* @__PURE__ */ t(
317
- xe,
309
+ E && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
310
+ !i && !E && /* @__PURE__ */ t(
311
+ Ve,
318
312
  {
319
- mutate: k,
313
+ mutate: I,
320
314
  filteredHistory: C,
321
315
  dispatch: d,
322
316
  onOpenChange: h
@@ -328,5 +322,5 @@ const Ne = ({
328
322
  );
329
323
  };
330
324
  export {
331
- Pe as HistoryPanel
325
+ Be as HistoryPanel
332
326
  };
@@ -1,6 +1,6 @@
1
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 H, LazyToastContainerWrapper as $, oe as V } from "./App.CcqDGZun.js";
3
- import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x 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.ByjDYmg9.js";
2
+ import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as H, LazyToastContainerWrapper as $, oe as V } from "./App.DsIUXmFA.js";
3
+ import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x 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.ByEQpFTA.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 = () => {
@@ -1,7 +1,7 @@
1
1
  import { jsxs as s, jsx as t, Fragment as w } from "react/jsx-runtime";
2
- import { n as Ce, useEntitlements as Ie, useUserPreferences as be, nt as te, canEvaluateModels as ke, et as we, getCacheInfo as ye, isServiceWorkerEnabled as ve, SETTINGS_TITLE as De, S as m, CARDS as c, Q as Le, C as y, PROMPTS_DESCRIPTION as Me, L as xe, j as oe, getCurrentGeoLocation as _e, mutateCall as se, SERVICE_TYPES as ae, handleServiceWorkerToggle as Re } from "./index.ByjDYmg9.js";
3
- import { useCapability as ne, oe as Be, G as l } from "./App.CcqDGZun.js";
4
- import { Re as re } from "./index.CpmMOFcw.js";
2
+ import { n as Ce, useEntitlements as Ie, useUserPreferences as be, nt as te, canEvaluateModels as ke, et as we, getCacheInfo as ye, isServiceWorkerEnabled as ve, SETTINGS_TITLE as De, S as m, CARDS as c, Q as Le, C as y, PROMPTS_DESCRIPTION as Me, L as xe, j as oe, getCurrentGeoLocation as Re, graphQLRequest as se, handleServiceWorkerToggle as _e, SERVICE_TYPES as ae } from "./index.ByEQpFTA.js";
3
+ import { useCapability as ne, oe as Be, G as l } from "./App.DsIUXmFA.js";
4
+ import { Re as re } from "./index.BBkOItAA.js";
5
5
  import { useState as n, useMemo as Oe, useCallback as Ae, useEffect as ce } from "react";
6
6
  const $e = ({
7
7
  open: le,
@@ -16,13 +16,13 @@ const $e = ({
16
16
  getAccessToken: E
17
17
  }), [x, p] = n({
18
18
  loadingLocation: !1
19
- }), [C, _] = n({
19
+ }), [C, R] = n({
20
20
  prompts: []
21
- }), [R, B] = n(""), [O, g] = n(""), [A, P] = n(!1), [G, U] = n(!1), [N, W] = n(!1), [S, V] = n(!1), [$, z] = n(!1), [j, Y] = n(!1), [u, F] = n(null), [H, q] = n(!1), [Q, J] = n(!1), K = ne(te.TOOL.MEMORIES), X = ne(te.ADDON.REASONING), de = Oe(() => ke(T, L) ? we(T) : !1, [T, L]), me = (e) => {
21
+ }), [_, B] = n(""), [O, g] = n(""), [A, P] = n(!1), [G, U] = n(!1), [N, W] = n(!1), [S, V] = n(!1), [$, z] = n(!1), [j, Y] = n(!1), [h, q] = n(null), [F, H] = n(!1), [Q, J] = n(!1), K = ne(te.TOOL.MEMORIES), X = ne(te.ADDON.REASONING), de = Oe(() => ke(T, L) ? we(T) : !1, [T, L]), me = (e) => {
22
22
  J(e);
23
- }, ue = (e) => {
24
- P(e);
25
23
  }, he = (e) => {
24
+ P(e);
25
+ }, ue = (e) => {
26
26
  K && U(e);
27
27
  }, pe = (e) => {
28
28
  V(e);
@@ -38,7 +38,7 @@ const $e = ({
38
38
  type: ae.SET_USER_PREFERENCES,
39
39
  params: {
40
40
  user: D?.username,
41
- instructions: R,
41
+ instructions: _,
42
42
  location: O,
43
43
  provider: o?.provider,
44
44
  tags: C.prompts,
@@ -48,7 +48,7 @@ const $e = ({
48
48
  showReasoningButton: $,
49
49
  useNestedModelSelection: j
50
50
  }
51
- }), S !== N && (await Re(S), W(S)), M(), p({
51
+ }), S !== N && (await _e(S), W(S)), M(), p({
52
52
  loadingLocation: !1
53
53
  });
54
54
  } catch {
@@ -58,7 +58,7 @@ const $e = ({
58
58
  loadingLocation: !0
59
59
  }), g("...");
60
60
  try {
61
- const e = Date.now(), a = await _e(), f = await se({
61
+ const e = Date.now(), a = await Re(), f = await se({
62
62
  accessToken: await E(),
63
63
  type: ae.GET_LOCATION,
64
64
  params: {
@@ -67,7 +67,7 @@ const $e = ({
67
67
  }
68
68
  }), d = Date.now() - e;
69
69
  d < 2e3 && await new Promise((Te) => setTimeout(Te, 2e3 - d));
70
- const { city: i, state: r, country: h, displayName: k } = f.data, Ee = i && r && h ? `${i}, ${r}, ${h}` : k;
70
+ const { city: i, state: r, country: u, displayName: k } = f.data, Ee = i && r && u ? `${i}, ${r}, ${u}` : k;
71
71
  p({
72
72
  loadingLocation: !1
73
73
  }), g(Ee);
@@ -84,7 +84,7 @@ const $e = ({
84
84
  clipboardAccess: f = !1,
85
85
  ...b
86
86
  }) => {
87
- _((d) => {
87
+ R((d) => {
88
88
  const i = d.prompts, r = {
89
89
  ...b,
90
90
  enabled: e,
@@ -92,33 +92,33 @@ const $e = ({
92
92
  clipboardAccess: f
93
93
  };
94
94
  f ? r.content = r.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : r.content = r.content.replace(/{{clipboard}}/g, "");
95
- const h = i.findIndex((k) => k.slot === b.slot);
96
- return h === -1 ? {
95
+ const u = i.findIndex((k) => k.slot === b.slot);
96
+ return u === -1 ? {
97
97
  ...d,
98
98
  prompts: [...i, { ...r }]
99
- } : (i[h] = r, {
99
+ } : (i[u] = r, {
100
100
  ...d,
101
101
  prompts: [...i]
102
102
  });
103
103
  });
104
104
  }, ee = Ae(async () => {
105
105
  try {
106
- q(!0);
106
+ H(!0);
107
107
  const e = await ye();
108
- F(e);
108
+ q(e);
109
109
  } catch {
110
110
  } finally {
111
- q(!1);
111
+ H(!1);
112
112
  }
113
113
  }, []);
114
114
  return ce(() => {
115
115
  if (!o)
116
116
  return;
117
- o.instructions && B(o.instructions), o.location && g(o.location), o.tags && _({ prompts: o.tags }), o.sendOnEnter !== void 0 && P(o.sendOnEnter), o.useMemory !== void 0 && U(o.useMemory), o.showDetails !== void 0 && J(o.showDetails), o.showReasoningButton !== void 0 && z(o.showReasoningButton), o.useNestedModelSelection !== void 0 && Y(o.useNestedModelSelection);
117
+ o.instructions && B(o.instructions), o.location && g(o.location), o.tags && R({ prompts: o.tags }), o.sendOnEnter !== void 0 && P(o.sendOnEnter), o.useMemory !== void 0 && U(o.useMemory), o.showDetails !== void 0 && J(o.showDetails), o.showReasoningButton !== void 0 && z(o.showReasoningButton), o.useNestedModelSelection !== void 0 && Y(o.useNestedModelSelection);
118
118
  const e = ve();
119
119
  W(e), V(e);
120
120
  }, [o]), ce(() => {
121
- N ? ee() : F(null);
121
+ N ? ee() : q(null);
122
122
  }, [N, ee]), ie ? /* @__PURE__ */ s(
123
123
  Be,
124
124
  {
@@ -189,7 +189,7 @@ const $e = ({
189
189
  className: "mt-2",
190
190
  label: "Send Message on Enter",
191
191
  name: "send-message-on-enter",
192
- onChange: ue,
192
+ onChange: he,
193
193
  checked: A
194
194
  }
195
195
  ),
@@ -203,7 +203,7 @@ const $e = ({
203
203
  className: "mt-2",
204
204
  label: "Use Memory",
205
205
  name: "use-memory",
206
- onChange: he,
206
+ onChange: ue,
207
207
  checked: G
208
208
  }
209
209
  )
@@ -232,7 +232,7 @@ const $e = ({
232
232
  autoCorrect: "off",
233
233
  name: "customInstructions",
234
234
  label: "Custom Instructions",
235
- value: R,
235
+ value: _,
236
236
  onChange: (e) => {
237
237
  B(e.target.value);
238
238
  },
@@ -411,16 +411,16 @@ const $e = ({
411
411
  ),
412
412
  N && /* @__PURE__ */ s("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
413
413
  /* @__PURE__ */ t("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
414
- u ? /* @__PURE__ */ s("div", { className: "text-xs space-y-2", children: [
414
+ h ? /* @__PURE__ */ s("div", { className: "text-xs space-y-2", children: [
415
415
  /* @__PURE__ */ s("p", { className: "m-0", children: [
416
416
  "Version: ",
417
- /* @__PURE__ */ t("strong", { children: u.version })
417
+ /* @__PURE__ */ t("strong", { children: h.version })
418
418
  ] }),
419
419
  /* @__PURE__ */ s("p", { className: "m-0", children: [
420
420
  "Total Items: ",
421
- /* @__PURE__ */ t("strong", { children: u.totalItems })
421
+ /* @__PURE__ */ t("strong", { children: h.totalItems })
422
422
  ] }),
423
- u.caches.map((e) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: e.urls.map((a) => /* @__PURE__ */ t(
423
+ h.caches.map((e) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: e.urls.map((a) => /* @__PURE__ */ t(
424
424
  "li",
425
425
  {
426
426
  className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
@@ -429,8 +429,8 @@ const $e = ({
429
429
  },
430
430
  a
431
431
  )) }) }, e.name)),
432
- u.totalItems === 0 && !H && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
433
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: H ? "Loading cache info..." : "No cache info available." })
432
+ h.totalItems === 0 && !F && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
433
+ ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: F ? "Loading cache info..." : "No cache info available." })
434
434
  ] })
435
435
  ]
436
436
  }
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as r } from "react/jsx-runtime";
2
- import { I as f, b as v } from "./index.ByjDYmg9.js";
2
+ import { I as f, b as v } from "./index.ByEQpFTA.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.CcqDGZun.js";
5
+ import { e as k } from "./App.DsIUXmFA.js";
6
6
  const L = ({
7
7
  className: e,
8
8
  viewBox: a,