@versini/sassysaint 8.118.0 → 8.118.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.
Files changed (83) hide show
  1. package/dist/chunks/{AboutChangelog.NMMfTbp4.js → AboutChangelog.D-CvvmNj.js} +2 -2
  2. package/dist/chunks/{AboutEntry.8kXGiBKr.js → AboutEntry.DSwJ8c3X.js} +7 -7
  3. package/dist/chunks/{App.MBikKP52.js → App.CeXH-zPe.js} +44 -43
  4. package/dist/chunks/{BubbleActions.u9muFBXv.js → BubbleActions.D7oR9h2P.js} +3 -3
  5. package/dist/chunks/{ButtonIconDelete.UIDZwKOu.js → ButtonIconDelete.BMSba-RX.js} +92 -112
  6. package/dist/chunks/{Chart.IEDLbK1M.js → Chart.BcLSFk4S.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.Cn1keoow.js → ChatBubbleAssistant.B7aKj9Kz.js} +5 -5
  8. package/dist/chunks/{ChatBubbleUser.DUizsIIv.js → ChatBubbleUser.D1cm5gzP.js} +4 -4
  9. package/dist/chunks/{ChatHistoryTable.DIT1MlOO.js → ChatHistoryTable.BvYdhMqi.js} +93 -89
  10. package/dist/chunks/{HistoryEntry.sZ_AMeUu.js → HistoryEntry.B0QgepOk.js} +123 -136
  11. package/dist/chunks/{InlineFilter.1dVMRTxM.js → InlineFilter.1P5aQFGT.js} +3 -3
  12. package/dist/chunks/{LoginEntry.BnHprT7f.js → LoginEntry.-bnrLsVp.js} +4 -4
  13. package/dist/chunks/{LogoEntry.uN5foS5i.js → LogoEntry.rzjFIdbv.js} +1 -1
  14. package/dist/chunks/{MemoriesEntry.CpxdE30v.js → MemoriesEntry.BOvQNYiF.js} +112 -119
  15. package/dist/chunks/{ProfileEntry.BMpJic5U.js → ProfileEntry.BjWgDBqL.js} +4 -4
  16. package/dist/chunks/{SettingsEntry.B8xGufV0.js → SettingsEntry.XE7O69z9.js} +5 -5
  17. package/dist/chunks/{UsageEntry.B1zVYUBb.js → UsageEntry.DV6W6WGG.js} +5 -5
  18. package/dist/chunks/{_baseUniq.BeocMcb-.js → _baseUniq.Dmbcf1N7.js} +1 -1
  19. package/dist/chunks/{arc.C-CDR6Sz.js → arc.BN6_60mZ.js} +1 -1
  20. package/dist/chunks/{architecture-U656AL7Q.DQ7Jtm55.js → architecture-U656AL7Q.3wcHlTzP.js} +1 -1
  21. package/dist/chunks/{architectureDiagram-VXUJARFQ.Ceo3pgxm.js → architectureDiagram-VXUJARFQ.ULGdKAsY.js} +4 -4
  22. package/dist/chunks/{blockDiagram-VD42YOAC.BvjaUl_a.js → blockDiagram-VD42YOAC.rsYqZQuv.js} +5 -5
  23. package/dist/chunks/{browser.DvUqvHKQ.js → browser.ygpjKEUL.js} +1 -1
  24. package/dist/chunks/{c4Diagram-YG6GDRKO.D8dful9J.js → c4Diagram-YG6GDRKO.BoulQIAf.js} +2 -2
  25. package/dist/chunks/{channel.B6Qvl469.js → channel.CeCiSz8G.js} +1 -1
  26. package/dist/chunks/{chunk-4BX2VUAB.CtVNPH4N.js → chunk-4BX2VUAB.nPXiqVPa.js} +1 -1
  27. package/dist/chunks/{chunk-55IACEB6.C0X4Jue2.js → chunk-55IACEB6.BVjwceMV.js} +1 -1
  28. package/dist/chunks/{chunk-B4BG7PRW.Conu6DQr.js → chunk-B4BG7PRW.C71uSmgS.js} +4 -4
  29. package/dist/chunks/{chunk-DI55MBZ5.Dg38hF9_.js → chunk-DI55MBZ5.C1pnFYaE.js} +3 -3
  30. package/dist/chunks/{chunk-FMBD7UC4.BsUH0rhB.js → chunk-FMBD7UC4.jDZnjru1.js} +1 -1
  31. package/dist/chunks/{chunk-QN33PNHL.0RjA_wXX.js → chunk-QN33PNHL.DP6Fwelp.js} +1 -1
  32. package/dist/chunks/{chunk-QZHKN3VN.Dz6HmVZY.js → chunk-QZHKN3VN.E73siEqr.js} +1 -1
  33. package/dist/chunks/{chunk-TZMSLE5B.Dxuv9zIm.js → chunk-TZMSLE5B.BuA_4J8K.js} +1 -1
  34. package/dist/chunks/{classDiagram-2ON5EDUG.CRdX6xMs.js → classDiagram-2ON5EDUG.D_z1qDzM.js} +2 -2
  35. package/dist/chunks/{classDiagram-v2-WZHVMYZB.CRdX6xMs.js → classDiagram-v2-WZHVMYZB.D_z1qDzM.js} +2 -2
  36. package/dist/chunks/{clone.ByaUA-r2.js → clone.mMQDv3bv.js} +1 -1
  37. package/dist/chunks/{cose-bilkent-S5V4N54A.B5YgIJoQ.js → cose-bilkent-S5V4N54A.ck8LAP13.js} +2 -2
  38. package/dist/chunks/{dagre-6UL2VRFP.uIiQ6FUj.js → dagre-6UL2VRFP.BItaK99h.js} +5 -5
  39. package/dist/chunks/{diagram-PSM6KHXK.Bv8fX1RC.js → diagram-PSM6KHXK.DyW4Ptmi.js} +4 -4
  40. package/dist/chunks/{diagram-QEK2KX5R.CY_Rq5A7.js → diagram-QEK2KX5R.jKwj3GRj.js} +3 -3
  41. package/dist/chunks/{diagram-S2PKOQOG.BfXCT4NH.js → diagram-S2PKOQOG.DsMH6_Zw.js} +3 -3
  42. package/dist/chunks/{erDiagram-Q2GNP2WA.BQrPmQkr.js → erDiagram-Q2GNP2WA.CzmoZDbP.js} +4 -4
  43. package/dist/chunks/{flowDiagram-NV44I4VS.DZwCRz8X.js → flowDiagram-NV44I4VS.DxdqqGRo.js} +5 -5
  44. package/dist/chunks/{ganttDiagram-JELNMOA3.CpqB-Lco.js → ganttDiagram-JELNMOA3.CcLEjTud.js} +2 -2
  45. package/dist/chunks/{gitGraph-F6HP7TQM.HmdqWT9j.js → gitGraph-F6HP7TQM.jRe6CGxe.js} +1 -1
  46. package/dist/chunks/{gitGraphDiagram-NY62KEGX.i87uZR96.js → gitGraphDiagram-NY62KEGX.BU9jMEjw.js} +4 -4
  47. package/dist/chunks/{graph.C_jA5HK0.js → graph.D_97simK.js} +2 -2
  48. package/dist/chunks/{index.BggKJCTP.js → index.5Dk40BwF.js} +1 -1
  49. package/dist/chunks/{index.Bm1g0K7E.js → index.Ba4pxqR4.js} +3 -3
  50. package/dist/chunks/{index.BrfxZy3k.js → index.BkOYiDfc.js} +2 -2
  51. package/dist/chunks/{index.Y9mwgfBs.js → index.C8TVf8G8.js} +1 -1
  52. package/dist/chunks/{index.BHwQBUwd.js → index.Cl3rYVMB.js} +1 -1
  53. package/dist/chunks/{index.C5piY5Ss.js → index.KOLL3mel.js} +1 -1
  54. package/dist/chunks/{index.BaE2Lbfd.js → index.QUKSRj2a.js} +1 -1
  55. package/dist/chunks/{index.g3S1xCER.js → index.UROP8tJb.js} +1 -1
  56. package/dist/chunks/{index.cXGGRddQ.js → index.ggYqhS1e.js} +3 -3
  57. package/dist/chunks/{info-NVLQJR56.ITJfPEdI.js → info-NVLQJR56.CszFnDwo.js} +1 -1
  58. package/dist/chunks/{infoDiagram-WHAUD3N6.fkRhLS2k.js → infoDiagram-WHAUD3N6.YyEpS05M.js} +2 -2
  59. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BtGrOEeN.js → journeyDiagram-XKPGCS4Q.DcbRg9cB.js} +4 -4
  60. package/dist/chunks/{kanban-definition-3W4ZIXB7.B5uNw32c.js → kanban-definition-3W4ZIXB7.BbVIN7fW.js} +2 -2
  61. package/dist/chunks/{layout.CqkuHUdu.js → layout.CfcudlJZ.js} +4 -4
  62. package/dist/chunks/{mermaid-parser.core.Ci-ITaRl.js → mermaid-parser.core.kpF3KDFK.js} +10 -10
  63. package/dist/chunks/{min.ZkscJwva.js → min.DRYc5zYs.js} +2 -2
  64. package/dist/chunks/{mindmap-definition-VGOIOE7T.B6kzhC94.js → mindmap-definition-VGOIOE7T.Dn-mBgyv.js} +4 -4
  65. package/dist/chunks/{packet-BFZMPI3H.BMbAoa6x.js → packet-BFZMPI3H.Cayad0vN.js} +1 -1
  66. package/dist/chunks/{pie-7BOR55EZ.BMdBvM8R.js → pie-7BOR55EZ.zajRRxb0.js} +1 -1
  67. package/dist/chunks/{pieDiagram-ADFJNKIX.-lbBXtjO.js → pieDiagram-ADFJNKIX.BK3VLjHA.js} +4 -4
  68. package/dist/chunks/{quadrantDiagram-AYHSOK5B.Davn6069.js → quadrantDiagram-AYHSOK5B.BsUBxvka.js} +1 -1
  69. package/dist/chunks/{radar-NHE76QYJ.DYto8RZU.js → radar-NHE76QYJ.q2p7Sm3i.js} +1 -1
  70. package/dist/chunks/{rehype-mermaid.CSGNYSn9.js → rehype-mermaid.2ONPwhMk.js} +33 -33
  71. package/dist/chunks/{requirementDiagram-UZGBJVZJ.FMUxUq0R.js → requirementDiagram-UZGBJVZJ.B4PjDM9-.js} +3 -3
  72. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DTIl9DDr.js → sankeyDiagram-TZEHDZUN.CDGSRLf0.js} +1 -1
  73. package/dist/chunks/{sequenceDiagram-WL72ISMW.Bc9ucdVx.js → sequenceDiagram-WL72ISMW.QdoIh0dQ.js} +3 -3
  74. package/dist/chunks/{stateDiagram-FKZM4ZOC.DiBSTbjk.js → stateDiagram-FKZM4ZOC.Dp31Fg9B.js} +4 -4
  75. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.C3xcoMwn.js → stateDiagram-v2-4FDKWEC3.BACEZc8w.js} +2 -2
  76. package/dist/chunks/{timeline-definition-IT6M3QCI.BC01Xx8r.js → timeline-definition-IT6M3QCI.DsQAVlJ0.js} +2 -2
  77. package/dist/chunks/{treemap-KMMF4GRG.oysg6M_i.js → treemap-KMMF4GRG.C5WeXexz.js} +1 -1
  78. package/dist/chunks/{useMarkdown.D8WEecQ3.js → useMarkdown.SxDFn8Cl.js} +8 -8
  79. package/dist/chunks/{xychartDiagram-PRI3JC2R.C3TO2yCs.js → xychartDiagram-PRI3JC2R.Cwk7BfJr.js} +1 -1
  80. package/dist/components/SassySaint/SassySaint.js +1 -1
  81. package/dist/index.js +3 -3
  82. package/dist/style.css +1 -1
  83. package/package.json +3 -3
@@ -1,32 +1,31 @@
1
- import { jsxs as c, Fragment as G, jsx as t } from "react/jsx-runtime";
2
- import { n as ee, INFINITE_SCROLL_LIMIT as J, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as C, LOCAL_STORAGE_SORT_TIMESTAMP as se, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as ne, y as V, LOCAL_STORAGE_CHAT_ID as ie, useDeleteChat as ce, useToggleFavoriteChat as le, graphQLRequest as de, SERVICE_TYPES as he, ACTION_SORT as Ce, V as ue, LOCAL_STORAGE_SEARCH as me, LOCAL_STORAGE_FAVORITES_ONLY as Se, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Te, useUserChatStats as ye, ACTION_SEARCH as ge } from "./index.BrfxZy3k.js";
3
- import { useAiChat as pe, useLocalStorage as u, LazyToastContainerWrapper as Ae, v4 as Ee, CHAT_RESET as _e, CHAT_SET_ATTACHMENTS as De, CHAT_SET_STATUS as Le, showErrorToast as Oe, ConfirmationPanel as Re, Panel as ve, debounce as Ie, Toggle as $, ButtonCancel as ke } from "./App.MBikKP52.js";
4
- import { HistoryContext as te, ChatContext as be, TableCellSortDirections as h, APP_CLASSNAME as we, TOAST_CHAT_DELETED as xe, HISTORY_TITLE as He } from "./LogoEntry.uN5foS5i.js";
5
- import Fe from "clsx";
6
- import { useRef as P, useState as R, useContext as Q, useEffect as ae, useCallback as U, Suspense as Ne, lazy as Me } from "react";
7
- import { InlineFilter as Ve } from "./InlineFilter.1dVMRTxM.js";
8
- const Ge = Me(
1
+ import { jsxs as l, jsx as t, Fragment as W } from "react/jsx-runtime";
2
+ import { n as ee, INFINITE_SCROLL_LIMIT as J, INFINITE_SCROLL_THRESHOLD as Z, LOCAL_STORAGE_PREFIX as u, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as ne, y as V, LOCAL_STORAGE_CHAT_ID as ie, useDeleteChat as ce, useToggleFavoriteChat as le, graphQLRequest as de, SERVICE_TYPES as he, ACTION_SORT as ue, V as Ce, LOCAL_STORAGE_SEARCH as me, LOCAL_STORAGE_FAVORITES_ONLY as Se, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Te, useUserChatStats as ye, ACTION_SEARCH as ge } from "./index.BkOYiDfc.js";
3
+ import { useAiChat as pe, useLocalStorage as C, LazyToastContainerWrapper as Ae, v4 as Ee, CHAT_RESET as _e, CHAT_SET_ATTACHMENTS as De, CHAT_SET_STATUS as Le, showErrorToast as Oe, ConfirmationPanel as Re, Panel as Ie, debounce as ve, Toggle as $, ButtonCancel as ke } from "./App.CeXH-zPe.js";
4
+ import { HistoryContext as te, ChatContext as be, TableCellSortDirections as h, APP_CLASSNAME as we, TOAST_CHAT_DELETED as xe, HISTORY_TITLE as He } from "./LogoEntry.rzjFIdbv.js";
5
+ import { useRef as G, useState as R, useContext as Q, useEffect as ae, useCallback as P, Suspense as Ne, lazy as Fe } from "react";
6
+ import { InlineFilter as Me } from "./InlineFilter.1P5aQFGT.js";
7
+ const Ve = Fe(
9
8
  () => import(
10
9
  /* webpackChunkName: "history-table" */
11
- "./ChatHistoryTable.DIT1MlOO.js"
10
+ "./ChatHistoryTable.BvYdhMqi.js"
12
11
  ).then((n) => ({ default: n.ChatHistoryTable }))
13
- ), Pe = ({
12
+ ), Ge = ({
14
13
  filteredHistory: n,
15
14
  onOpenChange: y,
16
15
  mutate: g,
17
- isLoading: v = !1,
18
- totalHistoryCount: I,
19
- isFiltered: z = !1,
16
+ isLoading: I = !1,
17
+ totalHistoryCount: v,
18
+ isFiltered: U = !1,
20
19
  isSearchActive: k = !1,
21
20
  requestConfirmation: m
22
21
  }) => {
23
- const { user: s, getAccessToken: p } = ee(), A = P(null), S = P({
22
+ const { user: r, getAccessToken: p } = ee(), A = G(null), S = G({
24
23
  id: "",
25
24
  timestamp: "",
26
25
  message: ""
27
26
  }), [E, _] = R(
28
27
  J + Z
29
- ), { state: i, dispatch: K } = Q(te), b = {
28
+ ), { state: i, dispatch: z } = Q(te), b = {
30
29
  searchString: i.searchString || "",
31
30
  sortDirection: i.sortDirection || h.DESC,
32
31
  sortedCell: i.sortedCell || V
@@ -34,55 +33,55 @@ const Ge = Me(
34
33
  setChatId: f,
35
34
  setInitialMessages: D,
36
35
  dispatch: L
37
- } = Q(be), { setInput: O } = pe(), [w, x] = u({
38
- key: C + se,
36
+ } = Q(be), { setInput: O } = pe(), [w, x] = C({
37
+ key: u + re,
39
38
  initialValue: h.DESC
40
- }), [T, Y] = u({
41
- key: C + oe,
39
+ }), [T, K] = C({
40
+ key: u + oe,
42
41
  initialValue: h.ASC
43
- }), [, H] = u({
44
- key: C + ne,
42
+ }), [, H] = C({
43
+ key: u + ne,
45
44
  initialValue: V
46
- }), [l] = u({
47
- key: C + ie,
45
+ }), [c] = C({
46
+ key: u + ie,
48
47
  initialValue: ""
49
48
  });
50
49
  ae(() => {
51
- if (!l || n.length === 0)
50
+ if (!c || n.length === 0)
52
51
  return;
53
52
  const e = n.findIndex(
54
- (o) => o.id === l
53
+ (o) => o.id === c
55
54
  );
56
55
  e >= 0 && e >= E && _(e + Z);
57
- }, [l, n, E]);
58
- const { mutateAsync: d } = ce({ getAccessToken: p }), { mutateAsync: j } = le({
56
+ }, [c, n, E]);
57
+ const { mutateAsync: d } = ce({ getAccessToken: p }), { mutateAsync: Y } = le({
59
58
  getAccessToken: p
60
- }), F = (e) => {
59
+ }), N = (e) => {
61
60
  const o = i.sortedCell === e;
62
- let r, M;
61
+ let s, M;
63
62
  switch (e) {
64
63
  case V:
65
- M = x, r = o ? i.sortDirection : w;
64
+ M = x, s = o ? i.sortDirection : w;
66
65
  break;
67
- case ue:
68
- M = Y, r = o ? i.sortDirection : T;
66
+ case Ce:
67
+ M = K, s = o ? i.sortDirection : T;
69
68
  break;
70
69
  default:
71
- M = x, r = o ? i.sortDirection : w;
70
+ M = x, s = o ? i.sortDirection : w;
72
71
  break;
73
72
  }
74
- const X = r === h.ASC ? h.DESC : h.ASC;
75
- M(X), H(e), K({
76
- type: Ce,
73
+ const X = s === h.ASC ? h.DESC : h.ASC;
74
+ M(X), H(e), z({
75
+ type: ue,
77
76
  payload: {
78
77
  sortedCell: e,
79
78
  sortDirection: X
80
79
  }
81
80
  });
82
- }, B = async (e) => {
81
+ }, j = async (e) => {
83
82
  try {
84
83
  await d({
85
- userId: s?.username || "",
84
+ userId: r?.username || "",
86
85
  id: e
87
86
  }), g(""), await Oe(xe, {
88
87
  autoClose: 2e3,
@@ -90,9 +89,9 @@ const Ge = Me(
90
89
  });
91
90
  } catch {
92
91
  }
93
- }, q = async (e) => {
92
+ }, B = async (e) => {
94
93
  try {
95
- const o = await p(), r = await de({
94
+ const o = await p(), s = await de({
96
95
  accessToken: o,
97
96
  type: he.GET_CHAT,
98
97
  params: {
@@ -105,34 +104,34 @@ const Ge = Me(
105
104
  streaming: !1,
106
105
  loading: !1,
107
106
  restoring: !0,
108
- restoredModel: r.data?.model || "",
109
- restoredTimestamp: r.data?.timestamp || "",
110
- restoredUsage: r.data?.tokenUsage || 0
107
+ restoredModel: s.data?.model || "",
108
+ restoredTimestamp: s.data?.timestamp || "",
109
+ restoredUsage: s.data?.tokenUsage || 0
111
110
  }
112
- }), O(""), f(e.id), D(r.data.messages), y(!1);
111
+ }), O(""), f(e.id), D(s.data.messages), y(!1);
113
112
  } catch {
114
113
  }
115
- }, W = (e) => {
114
+ }, q = (e) => {
116
115
  S.current = {
117
116
  id: e.id,
118
117
  timestamp: e.timestamp,
119
118
  message: e.summary
120
119
  }, m(
121
- () => B(e.id),
122
- /* @__PURE__ */ c(G, { children: [
120
+ () => j(e.id),
121
+ /* @__PURE__ */ l(W, { children: [
123
122
  /* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
124
- /* @__PURE__ */ c("ul", { className: "m-0", children: [
125
- /* @__PURE__ */ c("li", { children: [
123
+ /* @__PURE__ */ l("ul", { className: "m-0", children: [
124
+ /* @__PURE__ */ l("li", { children: [
126
125
  "Timestamp: ",
127
126
  /* @__PURE__ */ t("span", { className: "text-lg", children: e.timestamp })
128
127
  ] }),
129
- /* @__PURE__ */ c("li", { children: [
128
+ /* @__PURE__ */ l("li", { children: [
130
129
  "First message: ",
131
130
  /* @__PURE__ */ t("span", { className: "text-lg", children: e.summary })
132
131
  ] })
133
132
  ] })
134
133
  ] })
135
- ), l === e.id && (f(Ee()), D([]), O(""), L({
134
+ ), c === e.id && (f(Ee()), D([]), O(""), L({
136
135
  type: _e,
137
136
  payload: {
138
137
  privateChat: !1,
@@ -146,105 +145,105 @@ const Ge = Me(
146
145
  }));
147
146
  }, a = async (e) => {
148
147
  try {
149
- await j({
150
- userId: s?.username || "",
148
+ await Y({
149
+ userId: r?.username || "",
151
150
  id: e.id
152
151
  }), g("");
153
152
  } catch {
154
153
  }
155
- }, N = U((e) => {
156
- e[0].isIntersecting && _((r) => r + J);
157
- }, []), re = U(
154
+ }, F = P((e) => {
155
+ e[0].isIntersecting && _((s) => s + J);
156
+ }, []), se = P(
158
157
  (e) => {
159
158
  if (A.current && A.current.disconnect(), e) {
160
159
  const o = {
161
160
  rootMargin: "20px"
162
- }, r = new IntersectionObserver(N, o);
163
- r.observe(e), A.current = r;
161
+ }, s = new IntersectionObserver(F, o);
162
+ s.observe(e), A.current = s;
164
163
  }
165
164
  },
166
- [N]
165
+ [F]
167
166
  );
168
- return /* @__PURE__ */ c(G, { children: [
167
+ return /* @__PURE__ */ l("div", { children: [
169
168
  /* @__PURE__ */ t("div", { className: we, children: /* @__PURE__ */ t(Ae, { containerId: "history-table" }) }),
170
169
  /* @__PURE__ */ t(Ne, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
171
- Ge,
170
+ Ve,
172
171
  {
173
172
  filteredHistory: n,
174
173
  historyState: b,
175
174
  lastEntryToLoad: E,
176
- onClickSort: F,
177
- onClickRestore: q,
178
- onClickDelete: W,
175
+ onClickSort: N,
176
+ onClickRestore: B,
177
+ onClickDelete: q,
179
178
  onClickFavorite: a,
180
- infinityScrollMarkerRef: re,
181
- isLoading: v,
182
- totalHistoryCount: I,
183
- isFiltered: z,
179
+ infinityScrollMarkerRef: se,
180
+ isLoading: I,
181
+ totalHistoryCount: v,
182
+ isFiltered: U,
184
183
  isSearchActive: k,
185
- activeChatId: l
184
+ activeChatId: c
186
185
  }
187
186
  ) })
188
187
  ] });
189
- }, We = ({
188
+ }, Be = ({
190
189
  open: n,
191
190
  onOpenChange: y
192
191
  }) => {
193
- const g = P(null), { getAccessToken: v, user: I } = ee(), [z, k] = R([]), m = P(null), { state: s, dispatch: p } = Q(te), [, A] = u({
194
- key: C + me,
195
- initialValue: s.searchString
196
- }), [S, E] = u({
197
- key: C + Se,
192
+ const g = G(null), { getAccessToken: I, user: v } = ee(), [U, k] = R([]), m = G(null), { state: r, dispatch: p } = Q(te), [, A] = C({
193
+ key: u + me,
194
+ initialValue: r.searchString
195
+ }), [S, E] = C({
196
+ key: u + Se,
198
197
  initialValue: !1
199
- }), [_, i] = u({
200
- key: C + fe,
198
+ }), [_, i] = C({
199
+ key: u + fe,
201
200
  initialValue: !0
202
- }), [K, b] = R(!1), [f, D] = R(null), [L, O] = R(null), w = U(
203
- (a, N) => {
204
- D(() => a), O(N), b(!0);
201
+ }), [z, b] = R(!1), [f, D] = R(null), [L, O] = R(null), w = P(
202
+ (a, F) => {
203
+ D(() => a), O(F), b(!0);
205
204
  },
206
205
  []
207
- ), x = U(() => {
206
+ ), x = P(() => {
208
207
  f && f(), D(null), O(null);
209
208
  }, [f]), {
210
209
  data: T,
211
- refetch: Y,
210
+ refetch: K,
212
211
  isLoading: H,
213
- isError: l
212
+ isError: c
214
213
  } = Te({
215
214
  enabled: n,
216
- user: I?.username || "",
217
- searchString: s.searchString || "",
218
- sortDirection: s.sortDirection || h.DESC,
219
- sortedCell: s.sortedCell || V,
220
- getAccessToken: v,
215
+ user: v?.username || "",
216
+ searchString: r.searchString || "",
217
+ sortDirection: r.sortDirection || h.DESC,
218
+ sortedCell: r.sortedCell || V,
219
+ getAccessToken: I,
221
220
  keywordMatchAll: _
222
221
  }), { data: d } = ye({
223
- user: I?.username,
224
- getAccessToken: v
225
- }), j = d && d.totalChats ? d.totalChats - d.privateChats - d.deletedChats : 0;
222
+ user: v?.username,
223
+ getAccessToken: I
224
+ }), Y = d && d.totalChats ? d.totalChats - d.privateChats - d.deletedChats : 0;
226
225
  ae(() => {
227
226
  T && k(
228
227
  S ? T.filter((a) => a.favoriteChat === !0) : T
229
228
  );
230
229
  }, [T, S]);
231
- const F = async (a) => {
230
+ const N = async (a) => {
232
231
  A(a), p({
233
232
  type: ge,
234
233
  payload: { searchString: a }
235
234
  });
236
- }, B = Ie((a) => {
237
- F(a.target.value.trim());
238
- }, 800), q = (a) => {
235
+ }, j = ve((a) => {
236
+ N(a.target.value.trim());
237
+ }, 800), B = (a) => {
239
238
  E(a);
240
- }, W = (a) => {
239
+ }, q = (a) => {
241
240
  i(a);
242
241
  };
243
- return /* @__PURE__ */ c(G, { children: [
242
+ return /* @__PURE__ */ l(W, { children: [
244
243
  /* @__PURE__ */ t(
245
244
  Re,
246
245
  {
247
- showConfirmation: K,
246
+ showConfirmation: z,
248
247
  setShowConfirmation: b,
249
248
  action: x,
250
249
  customStrings: {
@@ -255,8 +254,8 @@ const Ge = Me(
255
254
  children: L
256
255
  }
257
256
  ),
258
- /* @__PURE__ */ c(
259
- ve,
257
+ /* @__PURE__ */ t(
258
+ Ie,
260
259
  {
261
260
  open: n,
262
261
  onOpenChange: y,
@@ -265,19 +264,20 @@ const Ge = Me(
265
264
  animationType: "fade",
266
265
  blurEffect: "large",
267
266
  initialFocus: g,
267
+ className: "h-full sm:h-max",
268
268
  footer: /* @__PURE__ */ t("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: /* @__PURE__ */ t("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ t(ke, { onOpenChange: y, ref: g }) }) }),
269
- children: [
269
+ children: /* @__PURE__ */ l("div", { className: "flex h-full flex-col gap-4", children: [
270
270
  /* @__PURE__ */ t(
271
- Ve,
271
+ Me,
272
272
  {
273
- header: H && s.searchString ? "Loading..." : s.searchString ? "Filters applied" : "Filters",
274
- toggles: /* @__PURE__ */ c(G, { children: [
273
+ header: H && r.searchString ? "Loading..." : r.searchString ? "Filters applied" : "Filters",
274
+ toggles: /* @__PURE__ */ l(W, { children: [
275
275
  /* @__PURE__ */ t(
276
276
  $,
277
277
  {
278
278
  name: "favorites-only",
279
279
  checked: S,
280
- onChange: q,
280
+ onChange: B,
281
281
  label: "Show favorites only",
282
282
  narrow: !0,
283
283
  noBorder: !0
@@ -288,7 +288,7 @@ const Ge = Me(
288
288
  {
289
289
  name: "keyword-match-all",
290
290
  checked: _,
291
- onChange: W,
291
+ onChange: q,
292
292
  label: "Match all keywords",
293
293
  narrow: !0,
294
294
  noBorder: !0
@@ -296,46 +296,33 @@ const Ge = Me(
296
296
  )
297
297
  ] }),
298
298
  inputSearchRef: m,
299
- onSearchChange: B,
300
- defaultValue: s.searchString,
301
- resetDisabled: s.searchString === "",
299
+ onSearchChange: j,
300
+ defaultValue: r.searchString,
301
+ resetDisabled: r.searchString === "",
302
302
  onResetSearch: () => {
303
- F(""), m.current?.value && (m.current.value = "", m.current.focus());
303
+ N(""), m.current?.value && (m.current.value = "", m.current.focus());
304
304
  }
305
305
  }
306
306
  ),
307
- /* @__PURE__ */ c(
308
- "div",
307
+ c && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
308
+ !c && /* @__PURE__ */ t(
309
+ Ge,
309
310
  {
310
- className: Fe(
311
- "flex flex-col sm:flex-row",
312
- "max-h-[65vh]",
313
- "sm:max-h-[75vh]",
314
- "min-h-[60vh]"
315
- ),
316
- children: [
317
- l && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
318
- !l && /* @__PURE__ */ t(
319
- Pe,
320
- {
321
- mutate: Y,
322
- filteredHistory: z,
323
- onOpenChange: y,
324
- isLoading: H,
325
- totalHistoryCount: j,
326
- isFiltered: !!(s.searchString || S),
327
- isSearchActive: !!s.searchString,
328
- requestConfirmation: w
329
- }
330
- )
331
- ]
311
+ mutate: K,
312
+ filteredHistory: U,
313
+ onOpenChange: y,
314
+ isLoading: H,
315
+ totalHistoryCount: Y,
316
+ isFiltered: !!(r.searchString || S),
317
+ isSearchActive: !!r.searchString,
318
+ requestConfirmation: w
332
319
  }
333
320
  )
334
- ]
321
+ ] })
335
322
  }
336
323
  )
337
324
  ] });
338
325
  };
339
326
  export {
340
- We as HistoryPanel
327
+ Be as HistoryPanel
341
328
  };
@@ -1,7 +1,7 @@
1
1
  import { jsxs as r, jsx as e } from "react/jsx-runtime";
2
- import { IconSearch as c, Button as d } from "./LogoEntry.uN5foS5i.js";
3
- import { Card as n } from "./index.Y9mwgfBs.js";
4
- import { TextInput as f } from "./index.g3S1xCER.js";
2
+ import { IconSearch as c, Button as d } from "./LogoEntry.rzjFIdbv.js";
3
+ import { Card as n } from "./index.C8TVf8G8.js";
4
+ import { TextInput as f } from "./index.UROP8tJb.js";
5
5
  const b = ({
6
6
  header: o,
7
7
  toggles: t,
@@ -1,8 +1,8 @@
1
1
  import { jsxs as i, jsx as e, Fragment as x } from "react/jsx-runtime";
2
- import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.BrfxZy3k.js";
3
- import { Logo as k, PASSWORD_PLACEHOLDER as M, ButtonIcon as u, IconShow as I, IconHide as L, Button as y, LOG_IN as E, LOG_IN_PASSKEY as S, IconPasskey as P } from "./LogoEntry.uN5foS5i.js";
4
- import { Card as B } from "./index.Y9mwgfBs.js";
5
- import { TextInput as O, TextInputMask as T } from "./index.g3S1xCER.js";
2
+ import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.BkOYiDfc.js";
3
+ import { Logo as k, PASSWORD_PLACEHOLDER as M, ButtonIcon as u, IconShow as I, IconHide as L, Button as y, LOG_IN as E, LOG_IN_PASSKEY as S, IconPasskey as P } from "./LogoEntry.rzjFIdbv.js";
4
+ import { Card as B } from "./index.C8TVf8G8.js";
5
+ import { TextInput as O, TextInputMask as T } from "./index.UROP8tJb.js";
6
6
  import { useState as r, useEffect as f } from "react";
7
7
  const G = () => {
8
8
  const { login: h, logoutReason: o, loginWithPasskey: g } = N(), [t, l] = r(""), [d, n] = r(""), [m, p] = r(!0), [s, c] = r({
@@ -1,7 +1,7 @@
1
1
  import B, { useRef as M, useEffect as z, useCallback as Q, useState as i1, useMemo as G, useContext as n1, useId as l1, useLayoutEffect as J } from "react";
2
2
  import { jsxs as n, jsx as r } from "react/jsx-runtime";
3
3
  import l from "clsx";
4
- import { b as h, e as h1, R as d1, E as u1 } from "./index.BrfxZy3k.js";
4
+ import { b as h, e as h1, R as d1, E as u1 } from "./index.BkOYiDfc.js";
5
5
  function p1() {
6
6
  const t = M(!1);
7
7
  return z(() => (t.current = !0, () => {