@versini/sassysaint 8.99.3 → 8.100.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.C_qMLuiB.js → AboutChangelog.DA361mHf.js} +3 -3
  2. package/dist/chunks/AboutEntry.COmeuxq_.js +83 -0
  3. package/dist/chunks/{App.BUZaV6AF.js → App.BLNMkw5x.js} +331 -329
  4. package/dist/chunks/{Chart.DvSv2Eza.js → Chart.GBOvQ25I.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DPvPqKP2.js → ChatBubbleAssistant.De5psmEG.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.BCEiPwpY.js → ChatBubbleUser.DF9Axp_4.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.BV0EO83B.js → ChatHistoryTable.rOFYnFKa.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.DdsxhGAV.js → HistoryEntry.DnG7vXnm.js} +134 -133
  9. package/dist/chunks/{UserMemoriesPanel.B7Vh6shw.js → MemoriesEntry.rleSeGKZ.js} +212 -209
  10. package/dist/chunks/{ProfileEntry.C-3cFRJF.js → ProfileEntry.ZVmjBCNA.js} +76 -72
  11. package/dist/chunks/{SettingsEntry.AuH85ovZ.js → SettingsEntry.azCvMpSB.js} +116 -108
  12. package/dist/chunks/{UsageEntry.C5_CSslN.js → UsageEntry.CK1PBjs3.js} +77 -76
  13. package/dist/chunks/{index.DQOeZzJl.js → index.Bil3-QBE.js} +1 -1
  14. package/dist/chunks/{index.BtC6g5QI.js → index.Bz0fwQT2.js} +1 -1
  15. package/dist/chunks/{index.CHoYdZu2.js → index.CY7OKrvt.js} +3 -3
  16. package/dist/chunks/{index.3sEe64_a.js → index.CYzDnVAL.js} +1 -1
  17. package/dist/chunks/{index.BbB1hl1m.js → index.CgmhTYJp.js} +1 -1
  18. package/dist/chunks/{index.DRSAc_Rh.js → index.DfrHJ6QJ.js} +1 -1
  19. package/dist/chunks/{index.C8gT8NUq.js → index.DlepPi73.js} +2 -2
  20. package/dist/chunks/{index.IFwWrDqI.js → index.Dw8chhdS.js} +1 -1
  21. package/dist/chunks/{index.D3zzxjS0.js → index.iTnfwVri.js} +1 -1
  22. package/dist/chunks/{useMarkdown.CFmffPvi.js → useMarkdown.DhNvct2e.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/package.json +3 -3
  26. package/dist/chunks/AboutEntry.CKKvxJXb.js +0 -79
@@ -1,7 +1,7 @@
1
1
  import { jsx as Pp } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as dn } from "./App.BUZaV6AF.js";
2
+ import { getDefaultExportFromCjs as dn } from "./App.BLNMkw5x.js";
3
3
  import Op, { useMemo as Lp } from "react";
4
- import { TRIMESTERS_SHORT as Ep, TRIMESTERS as on, TIME_RANGES as ls, isProbablyMobile as Ip, TIME_RANGE_LABELS as an } from "./index.BbB1hl1m.js";
4
+ import { TRIMESTERS_SHORT as Ep, TRIMESTERS as on, TIME_RANGES as ls, isProbablyMobile as Ip, TIME_RANGE_LABELS as an } from "./index.CgmhTYJp.js";
5
5
  var hs = { exports: {} }, Dp = hs.exports, nn;
6
6
  function Bp() {
7
7
  return nn || (nn = 1, (function(Ae, pe) {
@@ -1,10 +1,10 @@
1
1
  import { jsx as ss } from "react/jsx-runtime";
2
- import { ChatContext as is, AppContext as rs, n as as, useUserPreferences as os, convertCamelCaseToReadable as ls, numberFormatter as us, pluralize as cs } from "./index.BbB1hl1m.js";
3
- import { BUBBLE_FOOTER_EMPTY as fs } from "./index.IFwWrDqI.js";
2
+ import { ChatContext as is, AppContext as rs, n as as, useUserPreferences as os, convertCamelCaseToReadable as ls, numberFormatter as us, pluralize as cs } from "./index.CgmhTYJp.js";
3
+ import { BUBBLE_FOOTER_EMPTY as fs } from "./index.Dw8chhdS.js";
4
4
  import Xt from "clsx";
5
5
  import hs, { useState as Me, useEffect as qt, useContext as vt } from "react";
6
- import { useMarkdown as ds } from "./useMarkdown.CFmffPvi.js";
7
- import { AsyncBubble as ps } from "./App.BUZaV6AF.js";
6
+ import { useMarkdown as ds } from "./useMarkdown.DhNvct2e.js";
7
+ import { AsyncBubble as ps } from "./App.BLNMkw5x.js";
8
8
  function ms(e, t) {
9
9
  e.indexOf(t) === -1 && e.push(t);
10
10
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, Fragment as S, jsxs as C } from "react/jsx-runtime";
2
- import { Button as _ } from "./index.BbB1hl1m.js";
2
+ import { Button as _ } from "./index.CgmhTYJp.js";
3
3
  import { useState as h, useMemo as m, isValidElement as T, useEffect as B } from "react";
4
- import { useMarkdown as b } from "./useMarkdown.CFmffPvi.js";
5
- import { AsyncBubble as k } from "./App.BUZaV6AF.js";
4
+ import { useMarkdown as b } from "./useMarkdown.DhNvct2e.js";
5
+ import { AsyncBubble as k } from "./App.BLNMkw5x.js";
6
6
  /*!
7
7
  @versini/ui-truncate v6.1.0
8
8
  © 2025 gizmette.com
@@ -1,9 +1,9 @@
1
1
  import { jsxs as c, jsx as e } from "react/jsx-runtime";
2
- import { IconCloseLight as P, y as S, v as M, INFINITE_SCROLL_THRESHOLD as U, CARDS as D, pluralize as k, ButtonIcon as C, IconRestore as z, IconStarInCircle as B, IconStarInCircleLight as $, IconDelete as Y, numberFormatter as j, isProbablyMobile as G } from "./index.BbB1hl1m.js";
2
+ import { IconCloseLight as P, y as S, v as M, INFINITE_SCROLL_THRESHOLD as U, CARDS as D, pluralize as k, ButtonIcon as C, IconRestore as z, IconStarInCircle as B, IconStarInCircleLight as $, IconDelete as Y, numberFormatter as j, isProbablyMobile as G } from "./index.CgmhTYJp.js";
3
3
  import { useState as K, Fragment as V } from "react";
4
4
  import i from "clsx";
5
- import { j as W, D as F, F as N, G as H, L as o, Y as A } from "./index.DQOeZzJl.js";
6
- import { ResponsiveTooltip as w } from "./App.BUZaV6AF.js";
5
+ import { j as W, D as F, F as N, G as H, L as o, Y as A } from "./index.Bil3-QBE.js";
6
+ import { ResponsiveTooltip as w } from "./App.BLNMkw5x.js";
7
7
  /*!
8
8
  @versini/ui-pill v5.2.3
9
9
  © 2025 gizmette.com
@@ -1,79 +1,79 @@
1
1
  import { jsxs as i, Fragment as ae, jsx as t } from "react/jsx-runtime";
2
- import { n as j, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, HistoryContext as K, ChatContext as se, useLocalStorage as h, LOCAL_STORAGE_PREFIX as m, LOCAL_STORAGE_SORT_TIMESTAMP as oe, e$1 as d, LOCAL_STORAGE_SORT_TOKEN_USAGE as ne, LOCAL_STORAGE_SORT as ie, y as x, LOCAL_STORAGE_CHAT_ID as ce, useDeleteChat as le, useToggleFavoriteChat as de, APP_CLASSNAME as he, TOAST_CHAT_DELETED as me, graphQLRequest as ue, SERVICE_TYPES as Ce, ACTION_SORT as Se, v as fe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, LOCAL_STORAGE_KEYWORD_MATCH_ALL as pe, useChatsHistory as ge, useUserChatStats as Ae, HISTORY_TITLE as Ee, Card as _e, TextInput as Le, debounce as De, IconSearch as Oe, Button as ke, L as ve, j as Re, ACTION_SEARCH as be } from "./index.BbB1hl1m.js";
3
- import { useAiChat as Ie, ConfirmationPanel as xe, LazyToastContainerWrapper as we, showErrorToast as He, v4 as Ne, CHAT_RESET as Fe, CHAT_SET_ATTACHMENTS as Me, CHAT_SET_STATUS as Ge, Panel as Ve, Toggle as U, CancelButton as ze } from "./App.BUZaV6AF.js";
2
+ import { n as K, INFINITE_SCROLL_LIMIT as U, INFINITE_SCROLL_THRESHOLD as re, HistoryContext as Y, ChatContext as se, useLocalStorage as m, LOCAL_STORAGE_PREFIX as C, LOCAL_STORAGE_SORT_TIMESTAMP as oe, e$1 as u, LOCAL_STORAGE_SORT_TOKEN_USAGE as ne, LOCAL_STORAGE_SORT as ie, y as I, LOCAL_STORAGE_CHAT_ID as ce, useDeleteChat as le, useToggleFavoriteChat as de, APP_CLASSNAME as he, TOAST_CHAT_DELETED as ue, graphQLRequest as me, SERVICE_TYPES as Ce, ACTION_SORT as Se, v as fe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, LOCAL_STORAGE_KEYWORD_MATCH_ALL as pe, useChatsHistory as ge, useUserChatStats as Ae, HISTORY_TITLE as Ee, Card as _e, TextInput as Le, debounce as De, IconSearch as Oe, Button as ke, L as ve, j as Re, ACTION_SEARCH as be } from "./index.CgmhTYJp.js";
3
+ import { useAiChat as Ie, ConfirmationPanel as xe, LazyToastContainerWrapper as we, showErrorToast as He, v4 as Ne, CHAT_RESET as Fe, CHAT_SET_ATTACHMENTS as Me, CHAT_SET_STATUS as Ge, Panel as Ve, Toggle as B, CancelButton as ze } from "./App.BLNMkw5x.js";
4
4
  import Pe from "clsx";
5
- import { useRef as F, useState as M, useContext as G, useCallback as B, Suspense as Ue, lazy as Be, useEffect as je } from "react";
5
+ import { useRef as x, useState as G, useContext as V, useCallback as j, Suspense as Ue, lazy as Be, useEffect as je } from "react";
6
6
  const Ke = Be(
7
7
  () => import(
8
8
  /* webpackChunkName: "history-table" */
9
- "./ChatHistoryTable.BV0EO83B.js"
10
- ).then((u) => ({ default: u.ChatHistoryTable }))
9
+ "./ChatHistoryTable.rOFYnFKa.js"
10
+ ).then((S) => ({ default: S.ChatHistoryTable }))
11
11
  ), Ye = ({
12
- filteredHistory: u,
13
- onOpenChange: y,
14
- mutate: T,
12
+ filteredHistory: S,
13
+ onOpenChange: f,
14
+ mutate: y,
15
15
  isLoading: E = !1,
16
- totalHistoryCount: w,
17
- isFiltered: _ = !1,
18
- isSearchActive: C = !1
16
+ totalHistoryCount: _,
17
+ isFiltered: w = !1,
18
+ isSearchActive: L = !1
19
19
  }) => {
20
- const { user: r, getAccessToken: p } = j(), g = F(null), n = F({
20
+ const { user: l, getAccessToken: a } = K(), T = x(null), d = x({
21
21
  id: "",
22
22
  timestamp: "",
23
23
  message: ""
24
- }), [L, A] = M(!1), [H, S] = M(
25
- P + re
26
- ), { state: c, dispatch: D } = G(K), O = {
27
- searchString: c.searchString || "",
28
- sortDirection: c.sortDirection || d.DESC,
29
- sortedCell: c.sortedCell || x
24
+ }), [h, D] = G(!1), [O, H] = G(
25
+ U + re
26
+ ), { state: o, dispatch: N } = V(Y), k = {
27
+ searchString: o.searchString || "",
28
+ sortDirection: o.sortDirection || u.DESC,
29
+ sortedCell: o.sortedCell || I
30
30
  }, {
31
- setChatId: l,
32
- setInitialMessages: k,
33
- dispatch: f
34
- } = G(se), { setInput: v } = Ie(), [R, b] = h({
35
- key: m + oe,
36
- initialValue: d.DESC
37
- }), [N, a] = h({
38
- key: m + ne,
39
- initialValue: d.ASC
40
- }), [, Y] = h({
41
- key: m + ie,
42
- initialValue: x
43
- }), [W] = h({
44
- key: m + ce,
31
+ setChatId: p,
32
+ setInitialMessages: c,
33
+ dispatch: g
34
+ } = V(se), { setInput: A } = Ie(), [v, R] = m({
35
+ key: C + oe,
36
+ initialValue: u.DESC
37
+ }), [F, M] = m({
38
+ key: C + ne,
39
+ initialValue: u.ASC
40
+ }), [, r] = m({
41
+ key: C + ie,
42
+ initialValue: I
43
+ }), [W] = m({
44
+ key: C + ce,
45
45
  initialValue: ""
46
- }), { mutateAsync: q } = le({ getAccessToken: p }), { mutateAsync: Q } = de({
47
- getAccessToken: p
46
+ }), { mutateAsync: q } = le({ getAccessToken: a }), { mutateAsync: Q } = de({
47
+ getAccessToken: a
48
48
  }), X = (e) => {
49
- const o = c.sortedCell === e;
50
- let s, I;
49
+ const n = o.sortedCell === e;
50
+ let s, b;
51
51
  switch (e) {
52
- case x:
53
- I = b, s = o ? c.sortDirection : R;
52
+ case I:
53
+ b = R, s = n ? o.sortDirection : v;
54
54
  break;
55
55
  case fe:
56
- I = a, s = o ? c.sortDirection : N;
56
+ b = M, s = n ? o.sortDirection : F;
57
57
  break;
58
58
  default:
59
- I = b, s = o ? c.sortDirection : R;
59
+ b = R, s = n ? o.sortDirection : v;
60
60
  break;
61
61
  }
62
- const z = s === d.ASC ? d.DESC : d.ASC;
63
- I(z), Y(e), D({
62
+ const P = s === u.ASC ? u.DESC : u.ASC;
63
+ b(P), r(e), N({
64
64
  type: Se,
65
65
  payload: {
66
66
  sortedCell: e,
67
- sortDirection: z
67
+ sortDirection: P
68
68
  }
69
69
  });
70
70
  }, $ = async () => {
71
- const e = n.current;
71
+ const e = d.current;
72
72
  try {
73
73
  await q({
74
- userId: r?.username || "",
74
+ userId: l?.username || "",
75
75
  id: e.id
76
- }), T(""), await He(me, {
76
+ }), y(""), await He(ue, {
77
77
  autoClose: 2e3,
78
78
  containerId: "history-table"
79
79
  });
@@ -81,14 +81,14 @@ const Ke = Be(
81
81
  }
82
82
  }, J = async (e) => {
83
83
  try {
84
- const o = await p(), s = await ue({
85
- accessToken: o,
84
+ const n = await a(), s = await me({
85
+ accessToken: n,
86
86
  type: Ce.GET_CHAT,
87
87
  params: {
88
88
  id: e.id
89
89
  }
90
90
  });
91
- f({
91
+ g({
92
92
  type: Ge,
93
93
  payload: {
94
94
  streaming: !1,
@@ -97,21 +97,21 @@ const Ke = Be(
97
97
  restoredModel: s.data?.model || "",
98
98
  restoredUsage: s.data?.tokenUsage || 0
99
99
  }
100
- }), v(""), l(e.id), k(s.data.messages), y(!1);
100
+ }), A(""), p(e.id), c(s.data.messages), f(!1);
101
101
  } catch {
102
102
  }
103
103
  }, Z = (e) => {
104
- n.current = {
104
+ d.current = {
105
105
  id: e.id,
106
106
  timestamp: e.timestamp,
107
107
  message: e.summary
108
- }, A(!L), W === e.id && (l(Ne()), k([]), v(""), f({
108
+ }, D(!h), W === e.id && (p(Ne()), c([]), A(""), g({
109
109
  type: Fe,
110
110
  payload: {
111
111
  privateChat: !1,
112
112
  reasoning: !1
113
113
  }
114
- }), f({
114
+ }), g({
115
115
  type: Me,
116
116
  payload: {
117
117
  attachments: 0
@@ -120,30 +120,30 @@ const Ke = Be(
120
120
  }, ee = async (e) => {
121
121
  try {
122
122
  await Q({
123
- userId: r?.username || "",
123
+ userId: l?.username || "",
124
124
  id: e.id
125
- }), T("");
125
+ }), y("");
126
126
  } catch {
127
127
  }
128
- }, V = B((e) => {
129
- e[0].isIntersecting && S((s) => s + P);
130
- }, []), te = B(
128
+ }, z = j((e) => {
129
+ e[0].isIntersecting && H((s) => s + U);
130
+ }, []), te = j(
131
131
  (e) => {
132
- if (g.current && g.current.disconnect(), e) {
133
- const o = {
132
+ if (T.current && T.current.disconnect(), e) {
133
+ const n = {
134
134
  rootMargin: "20px"
135
- }, s = new IntersectionObserver(V, o);
136
- s.observe(e), g.current = s;
135
+ }, s = new IntersectionObserver(z, n);
136
+ s.observe(e), T.current = s;
137
137
  }
138
138
  },
139
- [V]
139
+ [z]
140
140
  );
141
141
  return /* @__PURE__ */ i(ae, { children: [
142
142
  /* @__PURE__ */ i(
143
143
  xe,
144
144
  {
145
- showConfirmation: L,
146
- setShowConfirmation: A,
145
+ showConfirmation: h,
146
+ setShowConfirmation: D,
147
147
  action: $,
148
148
  customStrings: {
149
149
  confirmAction: "Delete",
@@ -156,12 +156,12 @@ const Ke = Be(
156
156
  /* @__PURE__ */ i("li", { children: [
157
157
  "Timestamp:",
158
158
  " ",
159
- /* @__PURE__ */ t("span", { className: "text-lg", children: n.current && n.current.timestamp })
159
+ /* @__PURE__ */ t("span", { className: "text-lg", children: d.current && d.current.timestamp })
160
160
  ] }),
161
161
  /* @__PURE__ */ i("li", { children: [
162
162
  "First message:",
163
163
  " ",
164
- /* @__PURE__ */ t("span", { className: "text-lg", children: n.current?.message })
164
+ /* @__PURE__ */ t("span", { className: "text-lg", children: d.current?.message })
165
165
  ] })
166
166
  ] })
167
167
  ]
@@ -171,93 +171,94 @@ const Ke = Be(
171
171
  /* @__PURE__ */ t(Ue, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
172
172
  Ke,
173
173
  {
174
- filteredHistory: u,
175
- historyState: O,
176
- lastEntryToLoad: H,
174
+ filteredHistory: S,
175
+ historyState: k,
176
+ lastEntryToLoad: O,
177
177
  onClickSort: X,
178
178
  onClickRestore: J,
179
179
  onClickDelete: Z,
180
180
  onClickFavorite: ee,
181
181
  infinityScrollMarkerRef: te,
182
182
  isLoading: E,
183
- totalHistoryCount: w,
184
- isFiltered: _,
185
- isSearchActive: C
183
+ totalHistoryCount: _,
184
+ isFiltered: w,
185
+ isSearchActive: L
186
186
  }
187
187
  ) })
188
188
  ] });
189
189
  }, Je = ({
190
- open: u,
191
- onOpenChange: y
190
+ open: S,
191
+ onOpenChange: f
192
192
  }) => {
193
- const { getAccessToken: T, user: E } = j(), [w, _] = M([]), C = F(null), { state: r, dispatch: p } = G(K), [, g] = h({
194
- key: m + ye,
195
- initialValue: r.searchString
196
- }), [n, L] = h({
197
- key: m + Te,
193
+ const y = x(null), { getAccessToken: E, user: _ } = K(), [w, L] = G([]), l = x(null), { state: a, dispatch: T } = V(Y), [, d] = m({
194
+ key: C + ye,
195
+ initialValue: a.searchString
196
+ }), [h, D] = m({
197
+ key: C + Te,
198
198
  initialValue: !1
199
- }), [A, H] = h({
200
- key: m + pe,
199
+ }), [O, H] = m({
200
+ key: C + pe,
201
201
  initialValue: !0
202
202
  }), {
203
- data: S,
204
- refetch: c,
205
- isLoading: D,
206
- isError: O
203
+ data: o,
204
+ refetch: N,
205
+ isLoading: k,
206
+ isError: p
207
207
  } = ge({
208
- enabled: u,
209
- user: E?.username || "",
210
- searchString: r.searchString || "",
211
- sortDirection: r.sortDirection || d.DESC,
212
- sortedCell: r.sortedCell || x,
213
- getAccessToken: T,
214
- keywordMatchAll: A
215
- }), { data: l } = Ae({
216
- user: E?.username,
217
- getAccessToken: T
218
- }), k = l && l.totalChats ? l.totalChats - l.privateChats - l.deletedChats : 0;
208
+ enabled: S,
209
+ user: _?.username || "",
210
+ searchString: a.searchString || "",
211
+ sortDirection: a.sortDirection || u.DESC,
212
+ sortedCell: a.sortedCell || I,
213
+ getAccessToken: E,
214
+ keywordMatchAll: O
215
+ }), { data: c } = Ae({
216
+ user: _?.username,
217
+ getAccessToken: E
218
+ }), g = c && c.totalChats ? c.totalChats - c.privateChats - c.deletedChats : 0;
219
219
  je(() => {
220
- S && _(
221
- n ? S.filter((a) => a.favoriteChat === !0) : S
220
+ o && L(
221
+ h ? o.filter((r) => r.favoriteChat === !0) : o
222
222
  );
223
- }, [S, n]);
224
- const f = async (a) => {
225
- g(a), p({
223
+ }, [o, h]);
224
+ const A = async (r) => {
225
+ d(r), T({
226
226
  type: be,
227
- payload: { searchString: a }
227
+ payload: { searchString: r }
228
228
  });
229
- }, v = De((a) => {
230
- f(a.target.value.trim());
231
- }, 800), R = async (a) => {
232
- a.preventDefault();
233
- }, b = (a) => {
234
- L(a);
235
- }, N = (a) => {
236
- H(a);
229
+ }, v = De((r) => {
230
+ A(r.target.value.trim());
231
+ }, 800), R = async (r) => {
232
+ r.preventDefault();
233
+ }, F = (r) => {
234
+ D(r);
235
+ }, M = (r) => {
236
+ H(r);
237
237
  };
238
238
  return /* @__PURE__ */ i(
239
239
  Ve,
240
240
  {
241
- open: u,
242
- onOpenChange: y,
241
+ open: S,
242
+ onOpenChange: f,
243
243
  title: Ee,
244
244
  animation: !0,
245
245
  animationType: "fade",
246
246
  blurEffect: "large",
247
+ initialFocus: y,
247
248
  footer: /* @__PURE__ */ t(
248
249
  ve,
249
250
  {
250
251
  columnGap: 2,
251
252
  alignHorizontal: "flex-end",
252
253
  className: "pb-8 sm:pb-0",
253
- children: /* @__PURE__ */ t(Re, { children: /* @__PURE__ */ t(ze, { onOpenChange: y }) })
254
+ children: /* @__PURE__ */ t(Re, { children: /* @__PURE__ */ t(ze, { onOpenChange: f, ref: y }) })
254
255
  }
255
256
  ),
256
257
  children: [
257
258
  /* @__PURE__ */ t(
258
259
  _e,
259
260
  {
260
- header: D && r.searchString ? "Loading..." : r.searchString ? "Filters applied" : "Filters",
261
+ header: k && a.searchString ? "Loading..." : a.searchString ? "Filters applied" : "Filters",
261
262
  className: "prose-dark dark:prose-lighter mb-4",
262
263
  noBorder: !0,
263
264
  compact: !0,
@@ -271,8 +272,8 @@ const Ke = Be(
271
272
  autoCapitalize: "off",
272
273
  autoComplete: "off",
273
274
  autoCorrect: "off",
274
- ref: C,
275
- defaultValue: r.searchString,
275
+ ref: l,
276
+ defaultValue: a.searchString,
276
277
  mode: "alt-system",
277
278
  name: "Search",
278
279
  label: "Search",
@@ -284,22 +285,22 @@ const Ke = Be(
284
285
  /* @__PURE__ */ i("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
285
286
  /* @__PURE__ */ i("div", { className: "flex flex-col sm:flex-row gap-2 order-1 sm:order-0", children: [
286
287
  /* @__PURE__ */ t(
287
- U,
288
+ B,
288
289
  {
289
290
  name: "favorites-only",
290
- checked: n,
291
- onChange: b,
291
+ checked: h,
292
+ onChange: F,
292
293
  label: "Show favorites only",
293
294
  narrow: !0,
294
295
  noBorder: !0
295
296
  }
296
297
  ),
297
298
  /* @__PURE__ */ t(
298
- U,
299
+ B,
299
300
  {
300
301
  name: "keyword-match-all",
301
- checked: A,
302
- onChange: N,
302
+ checked: O,
303
+ onChange: M,
303
304
  label: "Match all keywords",
304
305
  narrow: !0,
305
306
  noBorder: !0
@@ -311,9 +312,9 @@ const Ke = Be(
311
312
  {
312
313
  mode: "light",
313
314
  size: "small",
314
- disabled: r.searchString === "",
315
+ disabled: a.searchString === "",
315
316
  onClick: () => {
316
- f(""), C.current?.value && (C.current.value = "", C.current.focus());
317
+ A(""), l.current?.value && (l.current.value = "", l.current.focus());
317
318
  },
318
319
  children: "Reset Search"
319
320
  }
@@ -332,17 +333,17 @@ const Ke = Be(
332
333
  "min-h-[60vh]"
333
334
  ),
334
335
  children: [
335
- O && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
336
- !O && /* @__PURE__ */ t(
336
+ p && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
337
+ !p && /* @__PURE__ */ t(
337
338
  Ye,
338
339
  {
339
- mutate: c,
340
+ mutate: N,
340
341
  filteredHistory: w,
341
- onOpenChange: y,
342
- isLoading: D,
343
- totalHistoryCount: k,
344
- isFiltered: !!(r.searchString || n),
345
- isSearchActive: !!r.searchString
342
+ onOpenChange: f,
343
+ isLoading: k,
344
+ totalHistoryCount: g,
345
+ isFiltered: !!(a.searchString || h),
346
+ isSearchActive: !!a.searchString
346
347
  }
347
348
  )
348
349
  ]