@versini/sassysaint 8.110.0 → 8.110.1

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 (87) hide show
  1. package/dist/chunks/{AboutChangelog.BfOWMaYg.js → AboutChangelog.DfItgg_1.js} +2 -2
  2. package/dist/chunks/AboutEntry.DIYTS0Pp.js +77 -0
  3. package/dist/chunks/{App.BD0e8HgV.js → App.7P9lyXTX.js} +2435 -2452
  4. package/dist/chunks/{Bubble.fxUgvZMG.js → Bubble.C3J-YrAQ.js} +1 -1
  5. package/dist/chunks/ButtonIconDelete.CAEfJOI7.js +333 -0
  6. package/dist/chunks/{Chart.C-EqsPgy.js → Chart.Dg1jAFpj.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.hM8owVIk.js → ChatBubbleAssistant.DavDkAFx.js} +4 -4
  8. package/dist/chunks/{ChatBubbleUser.CnsuEhxO.js → ChatBubbleUser.DSMfBmEP.js} +3 -3
  9. package/dist/chunks/{ChatHistoryTable.WRplbgo4.js → ChatHistoryTable.qju2f_Sh.js} +73 -73
  10. package/dist/chunks/{HistoryEntry.BgO_PD7Q.js → HistoryEntry.QxUwQO5B.js} +72 -80
  11. package/dist/chunks/LoginEntry.BbhZpovW.js +118 -0
  12. package/dist/chunks/{LogoEntry.CucXks5G.js → LogoEntry.CTMAkXZN.js} +642 -746
  13. package/dist/chunks/{MemoriesEntry.OQ1K4KNa.js → MemoriesEntry.BYYT1IVl.js} +304 -318
  14. package/dist/chunks/ProfileEntry.vCF-ayWr.js +205 -0
  15. package/dist/chunks/{SettingsEntry.ByPtC4lj.js → SettingsEntry.DEaHLi7A.js} +114 -122
  16. package/dist/chunks/UsageEntry.B3Z4Zr4a.js +230 -0
  17. package/dist/chunks/{_baseUniq.DJhemj5B.js → _baseUniq.CKo3g19j.js} +1 -1
  18. package/dist/chunks/{arc.ClK0mYh2.js → arc.ny1AnYpL.js} +1 -1
  19. package/dist/chunks/{architecture-U656AL7Q.DGORleeb.js → architecture-U656AL7Q.CoJV4P-W.js} +1 -1
  20. package/dist/chunks/{architectureDiagram-VXUJARFQ.HR_eet_T.js → architectureDiagram-VXUJARFQ.C_r6hPXf.js} +4 -4
  21. package/dist/chunks/{blockDiagram-VD42YOAC.CWrnXf_B.js → blockDiagram-VD42YOAC.DeTKi9HH.js} +5 -5
  22. package/dist/chunks/{browser.5ieI9QUP.js → browser.Dd1PVu4Q.js} +1 -1
  23. package/dist/chunks/{c4Diagram-YG6GDRKO.CaA0SaMc.js → c4Diagram-YG6GDRKO.PYJXPQRd.js} +2 -2
  24. package/dist/chunks/{channel.BI8KZVUl.js → channel.CldxJpdX.js} +1 -1
  25. package/dist/chunks/{chunk-4BX2VUAB.CTzK9jPw.js → chunk-4BX2VUAB.D_xGzQXV.js} +1 -1
  26. package/dist/chunks/{chunk-55IACEB6.DMb8Reca.js → chunk-55IACEB6.D91lGO9k.js} +1 -1
  27. package/dist/chunks/{chunk-B4BG7PRW.BHBa3N2V.js → chunk-B4BG7PRW.rABluadn.js} +4 -4
  28. package/dist/chunks/{chunk-DI55MBZ5.Bqwg_jpX.js → chunk-DI55MBZ5.BisMfdbP.js} +3 -3
  29. package/dist/chunks/{chunk-FMBD7UC4.p8OpoFJE.js → chunk-FMBD7UC4.IZluU3TG.js} +1 -1
  30. package/dist/chunks/{chunk-QN33PNHL._xYLGQNv.js → chunk-QN33PNHL.DdhRwJuC.js} +1 -1
  31. package/dist/chunks/{chunk-QZHKN3VN.Bt1FHb64.js → chunk-QZHKN3VN.DxJRkbxl.js} +1 -1
  32. package/dist/chunks/{chunk-TZMSLE5B.hFsU0iJf.js → chunk-TZMSLE5B.yJUdJdZG.js} +1 -1
  33. package/dist/chunks/{classDiagram-2ON5EDUG.DiSJfiEu.js → classDiagram-2ON5EDUG.BJJShSGE.js} +2 -2
  34. package/dist/chunks/{classDiagram-v2-WZHVMYZB.DiSJfiEu.js → classDiagram-v2-WZHVMYZB.BJJShSGE.js} +2 -2
  35. package/dist/chunks/{clone.NcwizCyH.js → clone.CYQWcQos.js} +1 -1
  36. package/dist/chunks/{cose-bilkent-S5V4N54A.DogEbzcD.js → cose-bilkent-S5V4N54A.CFiLRTlV.js} +2 -2
  37. package/dist/chunks/{dagre-6UL2VRFP.Cy_GltZx.js → dagre-6UL2VRFP.BAOLjlsO.js} +5 -5
  38. package/dist/chunks/{diagram-PSM6KHXK.CazeYJ2F.js → diagram-PSM6KHXK.B7fd_KvS.js} +4 -4
  39. package/dist/chunks/{diagram-QEK2KX5R.ByhZHDpm.js → diagram-QEK2KX5R.nRWB6Pdu.js} +3 -3
  40. package/dist/chunks/{diagram-S2PKOQOG.D49-fpQd.js → diagram-S2PKOQOG.C4gQIrc_.js} +3 -3
  41. package/dist/chunks/{erDiagram-Q2GNP2WA.nce3gDBb.js → erDiagram-Q2GNP2WA.U2TDWSHg.js} +4 -4
  42. package/dist/chunks/{flowDiagram-NV44I4VS.DDUGMSKf.js → flowDiagram-NV44I4VS.CmXaVrq9.js} +5 -5
  43. package/dist/chunks/{ganttDiagram-JELNMOA3.NGXzLkaH.js → ganttDiagram-JELNMOA3.DSD39bjf.js} +2 -2
  44. package/dist/chunks/{gitGraph-F6HP7TQM.BzKXexyv.js → gitGraph-F6HP7TQM.C_axBowD.js} +1 -1
  45. package/dist/chunks/{gitGraphDiagram-NY62KEGX.C3cn9f8o.js → gitGraphDiagram-NY62KEGX.Y6LpuRjD.js} +4 -4
  46. package/dist/chunks/{graph.CURTRirk.js → graph.CsEnoNl4.js} +2 -2
  47. package/dist/chunks/{index.BYDZbdMZ.js → index.-DOP9Ckx.js} +1 -1
  48. package/dist/chunks/{index.gy41K1EE.js → index.4552QdXH.js} +3 -3
  49. package/dist/chunks/{index.BinkIORG.js → index.76MlCVOY.js} +1 -1
  50. package/dist/chunks/{index.CkajM1v0.js → index.BYUyJHzk.js} +1 -1
  51. package/dist/chunks/{index.CURM9PiU.js → index.Bi2ow_w5.js} +1 -1
  52. package/dist/chunks/{index.DAuo-OH1.js → index.CK3q1Sfv.js} +1 -1
  53. package/dist/chunks/{index.uUNtrS04.js → index.CR9-xbTg.js} +3 -3
  54. package/dist/chunks/{index.CBEv2y_C.js → index.MD-I3XF8.js} +2 -2
  55. package/dist/chunks/{index.BqIARWUR.js → index.whZY27YH.js} +1 -1
  56. package/dist/chunks/{info-NVLQJR56.CHnZmbT7.js → info-NVLQJR56.BM1oszeu.js} +1 -1
  57. package/dist/chunks/{infoDiagram-WHAUD3N6.DCZfKYU8.js → infoDiagram-WHAUD3N6.BOdkf_MU.js} +2 -2
  58. package/dist/chunks/{journeyDiagram-XKPGCS4Q.B-0JNmK_.js → journeyDiagram-XKPGCS4Q.Dw7-F-3G.js} +4 -4
  59. package/dist/chunks/{kanban-definition-3W4ZIXB7.C7aI8iBJ.js → kanban-definition-3W4ZIXB7.DBHZd8kd.js} +2 -2
  60. package/dist/chunks/{layout.Bmgsrc8X.js → layout.FDyoYwG2.js} +4 -4
  61. package/dist/chunks/{mermaid-parser.core.BZIZyjyF.js → mermaid-parser.core.C4lg1K9H.js} +10 -10
  62. package/dist/chunks/{min.CtR4qhyM.js → min.DBs1Msoe.js} +2 -2
  63. package/dist/chunks/{mindmap-definition-VGOIOE7T.DCsxzuhI.js → mindmap-definition-VGOIOE7T.CU1TS1Wz.js} +3 -3
  64. package/dist/chunks/{packet-BFZMPI3H.CQ2Sbdms.js → packet-BFZMPI3H.BQDJHYjU.js} +1 -1
  65. package/dist/chunks/{pie-7BOR55EZ.BYs1omMd.js → pie-7BOR55EZ.BlU94TQO.js} +1 -1
  66. package/dist/chunks/{pieDiagram-ADFJNKIX.DqkDHdMo.js → pieDiagram-ADFJNKIX.CKbT8AbG.js} +4 -4
  67. package/dist/chunks/{quadrantDiagram-AYHSOK5B.Cx-eq1uu.js → quadrantDiagram-AYHSOK5B.iibdk6QV.js} +1 -1
  68. package/dist/chunks/{radar-NHE76QYJ.CIqwL1Hw.js → radar-NHE76QYJ.CqellN1R.js} +1 -1
  69. package/dist/chunks/{rehype-mermaid.LJaY9ylI.js → rehype-mermaid.D5rxFoLJ.js} +33 -33
  70. package/dist/chunks/{requirementDiagram-UZGBJVZJ.C-YKp79x.js → requirementDiagram-UZGBJVZJ.BeoYCRTt.js} +3 -3
  71. package/dist/chunks/{sankeyDiagram-TZEHDZUN.BbfUzvVS.js → sankeyDiagram-TZEHDZUN.Cl7AJQyH.js} +1 -1
  72. package/dist/chunks/{sequenceDiagram-WL72ISMW.D5wDvZwT.js → sequenceDiagram-WL72ISMW.DJiYzLwe.js} +3 -3
  73. package/dist/chunks/{stateDiagram-FKZM4ZOC.-65PQCxm.js → stateDiagram-FKZM4ZOC.CEH77n-u.js} +4 -4
  74. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BXy_3BUS.js → stateDiagram-v2-4FDKWEC3.C7e8FoNM.js} +2 -2
  75. package/dist/chunks/{timeline-definition-IT6M3QCI.B2tmtGDZ.js → timeline-definition-IT6M3QCI.DpH45C9N.js} +2 -2
  76. package/dist/chunks/{treemap-KMMF4GRG.Dm_alnmO.js → treemap-KMMF4GRG.CaXoo_S5.js} +1 -1
  77. package/dist/chunks/{useMarkdown.BWJCktGN.js → useMarkdown.C2zWe9xE.js} +8 -8
  78. package/dist/chunks/{xychartDiagram-PRI3JC2R.XQCHu3eO.js → xychartDiagram-PRI3JC2R.l9efaY6c.js} +1 -1
  79. package/dist/components/SassySaint/SassySaint.js +1 -1
  80. package/dist/index.js +3 -3
  81. package/dist/style.css +1 -1
  82. package/package.json +3 -3
  83. package/dist/chunks/AboutEntry.B7fBRGac.js +0 -85
  84. package/dist/chunks/ButtonIconDelete.Bw7zU6Rb.js +0 -456
  85. package/dist/chunks/LoginEntry.DvDNWT7T.js +0 -118
  86. package/dist/chunks/ProfileEntry.CbZLIK8x.js +0 -213
  87. package/dist/chunks/UsageEntry.CSkPteMr.js +0 -238
@@ -1,70 +1,70 @@
1
1
  import { jsxs as n, Fragment as Q, jsx as t } from "react/jsx-runtime";
2
- import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as ce, graphQLRequest as le, SERVICE_TYPES as de, ACTION_SORT as he, v as me, LOCAL_STORAGE_SEARCH as ue, LOCAL_STORAGE_FAVORITES_ONLY as Ce, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Se, useUserChatStats as ye, ACTION_SEARCH as pe } from "./index.CBEv2y_C.js";
3
- import { HistoryContext as te, ChatContext as Te, e as l, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as Le, L as De, j as Oe } from "./LogoEntry.CucXks5G.js";
4
- import { Card as ke } from "./index.BYDZbdMZ.js";
5
- import { useAiChat as ve, useLocalStorage as h, LazyToastContainerWrapper as Re, v4 as be, CHAT_RESET as Ie, CHAT_SET_ATTACHMENTS as xe, CHAT_SET_STATUS as we, showErrorToast as He, ConfirmationPanel as Ne, Panel as Fe, debounce as Me, Toggle as $, ButtonCancel as Ge } from "./App.BD0e8HgV.js";
6
- import { TextInput as Ve } from "./index.CURM9PiU.js";
7
- import ze from "clsx";
8
- import { useRef as M, useState as L, useContext as X, useCallback as G, Suspense as Pe, lazy as Ue, useEffect as Be } from "react";
9
- const je = Ue(
2
+ import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as le, graphQLRequest as ce, SERVICE_TYPES as de, ACTION_SORT as he, v as me, LOCAL_STORAGE_SEARCH as ue, LOCAL_STORAGE_FAVORITES_ONLY as Ce, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Se, useUserChatStats as ye, ACTION_SEARCH as pe } from "./index.MD-I3XF8.js";
3
+ import { HistoryContext as te, ChatContext as Te, TableCellSortDirections as c, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as De } from "./LogoEntry.CTMAkXZN.js";
4
+ import { Card as Le } from "./index.-DOP9Ckx.js";
5
+ import { useAiChat as ve, useLocalStorage as h, LazyToastContainerWrapper as Oe, v4 as be, CHAT_RESET as ke, CHAT_SET_ATTACHMENTS as Re, CHAT_SET_STATUS as xe, showErrorToast as Ie, ConfirmationPanel as we, Panel as He, debounce as Ne, Toggle as $, ButtonCancel as Fe } from "./App.7P9lyXTX.js";
6
+ import { TextInput as Me } from "./index.Bi2ow_w5.js";
7
+ import Ge from "clsx";
8
+ import { useRef as M, useState as D, useContext as X, useCallback as G, Suspense as Ve, lazy as ze, useEffect as Pe } from "react";
9
+ const Ue = ze(
10
10
  () => import(
11
11
  /* webpackChunkName: "history-table" */
12
- "./ChatHistoryTable.WRplbgo4.js"
12
+ "./ChatHistoryTable.qju2f_Sh.js"
13
13
  ).then((m) => ({ default: m.ChatHistoryTable }))
14
- ), Ke = ({
14
+ ), Be = ({
15
15
  filteredHistory: m,
16
16
  onOpenChange: y,
17
17
  mutate: p,
18
- isLoading: D = !1,
19
- totalHistoryCount: O,
18
+ isLoading: L = !1,
19
+ totalHistoryCount: v,
20
20
  isFiltered: V = !1,
21
- isSearchActive: k = !1,
21
+ isSearchActive: O = !1,
22
22
  requestConfirmation: u
23
23
  }) => {
24
24
  const { user: o, getAccessToken: T } = ee(), g = M(null), C = M({
25
25
  id: "",
26
26
  timestamp: "",
27
27
  message: ""
28
- }), [z, v] = L(
28
+ }), [z, b] = D(
29
29
  Z + ae
30
- ), { state: i, dispatch: P } = X(te), R = {
30
+ ), { state: i, dispatch: P } = X(te), k = {
31
31
  searchString: i.searchString || "",
32
- sortDirection: i.sortDirection || l.DESC,
32
+ sortDirection: i.sortDirection || c.DESC,
33
33
  sortedCell: i.sortedCell || F
34
34
  }, {
35
35
  setChatId: f,
36
36
  setInitialMessages: A,
37
37
  dispatch: E
38
- } = X(Te), { setInput: _ } = ve(), [b, I] = h({
38
+ } = X(Te), { setInput: _ } = ve(), [R, x] = h({
39
39
  key: d + re,
40
- initialValue: l.DESC
40
+ initialValue: c.DESC
41
41
  }), [S, U] = h({
42
42
  key: d + oe,
43
- initialValue: l.ASC
44
- }), [, x] = h({
43
+ initialValue: c.ASC
44
+ }), [, I] = h({
45
45
  key: d + se,
46
46
  initialValue: F
47
47
  }), [w] = h({
48
48
  key: d + ne,
49
49
  initialValue: ""
50
- }), { mutateAsync: c } = ie({ getAccessToken: T }), { mutateAsync: B } = ce({
50
+ }), { mutateAsync: l } = ie({ getAccessToken: T }), { mutateAsync: B } = le({
51
51
  getAccessToken: T
52
52
  }), H = (e) => {
53
53
  const s = i.sortedCell === e;
54
54
  let r, N;
55
55
  switch (e) {
56
56
  case F:
57
- N = I, r = s ? i.sortDirection : b;
57
+ N = x, r = s ? i.sortDirection : R;
58
58
  break;
59
59
  case me:
60
60
  N = U, r = s ? i.sortDirection : S;
61
61
  break;
62
62
  default:
63
- N = I, r = s ? i.sortDirection : b;
63
+ N = x, r = s ? i.sortDirection : R;
64
64
  break;
65
65
  }
66
- const J = r === l.ASC ? l.DESC : l.ASC;
67
- N(J), x(e), P({
66
+ const J = r === c.ASC ? c.DESC : c.ASC;
67
+ N(J), I(e), P({
68
68
  type: he,
69
69
  payload: {
70
70
  sortedCell: e,
@@ -73,10 +73,10 @@ const je = Ue(
73
73
  });
74
74
  }, j = async (e) => {
75
75
  try {
76
- await c({
76
+ await l({
77
77
  userId: o?.username || "",
78
78
  id: e
79
- }), p(""), await He(Ae, {
79
+ }), p(""), await Ie(Ae, {
80
80
  autoClose: 2e3,
81
81
  containerId: "history-table"
82
82
  });
@@ -84,7 +84,7 @@ const je = Ue(
84
84
  }
85
85
  }, K = async (e) => {
86
86
  try {
87
- const s = await T(), r = await le({
87
+ const s = await T(), r = await ce({
88
88
  accessToken: s,
89
89
  type: de.GET_CHAT,
90
90
  params: {
@@ -92,7 +92,7 @@ const je = Ue(
92
92
  }
93
93
  });
94
94
  E({
95
- type: we,
95
+ type: xe,
96
96
  payload: {
97
97
  streaming: !1,
98
98
  loading: !1,
@@ -125,13 +125,13 @@ const je = Ue(
125
125
  ] })
126
126
  ] })
127
127
  ), w === e.id && (f(be()), A([]), _(""), E({
128
- type: Ie,
128
+ type: ke,
129
129
  payload: {
130
130
  privateChat: !1,
131
131
  reasoningText: !1
132
132
  }
133
133
  }), E({
134
- type: xe,
134
+ type: Re,
135
135
  payload: {
136
136
  attachments: 0
137
137
  }
@@ -145,7 +145,7 @@ const je = Ue(
145
145
  } catch {
146
146
  }
147
147
  }, a = G((e) => {
148
- e[0].isIntersecting && v((r) => r + Z);
148
+ e[0].isIntersecting && b((r) => r + Z);
149
149
  }, []), W = G(
150
150
  (e) => {
151
151
  if (g.current && g.current.disconnect(), e) {
@@ -158,64 +158,64 @@ const je = Ue(
158
158
  [a]
159
159
  );
160
160
  return /* @__PURE__ */ n(Q, { children: [
161
- /* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(Re, { containerId: "history-table" }) }),
162
- /* @__PURE__ */ t(Pe, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
163
- je,
161
+ /* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(Oe, { containerId: "history-table" }) }),
162
+ /* @__PURE__ */ t(Ve, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
163
+ Ue,
164
164
  {
165
165
  filteredHistory: m,
166
- historyState: R,
166
+ historyState: k,
167
167
  lastEntryToLoad: z,
168
168
  onClickSort: H,
169
169
  onClickRestore: K,
170
170
  onClickDelete: Y,
171
171
  onClickFavorite: q,
172
172
  infinityScrollMarkerRef: W,
173
- isLoading: D,
174
- totalHistoryCount: O,
173
+ isLoading: L,
174
+ totalHistoryCount: v,
175
175
  isFiltered: V,
176
- isSearchActive: k
176
+ isSearchActive: O
177
177
  }
178
178
  ) })
179
179
  ] });
180
- }, et = ({
180
+ }, Ze = ({
181
181
  open: m,
182
182
  onOpenChange: y
183
183
  }) => {
184
- const p = M(null), { getAccessToken: D, user: O } = ee(), [V, k] = L([]), u = M(null), { state: o, dispatch: T } = X(te), [, g] = h({
184
+ const p = M(null), { getAccessToken: L, user: v } = ee(), [V, O] = D([]), u = M(null), { state: o, dispatch: T } = X(te), [, g] = h({
185
185
  key: d + ue,
186
186
  initialValue: o.searchString
187
187
  }), [C, z] = h({
188
188
  key: d + Ce,
189
189
  initialValue: !1
190
- }), [v, i] = h({
190
+ }), [b, i] = h({
191
191
  key: d + fe,
192
192
  initialValue: !0
193
- }), [P, R] = L(!1), [f, A] = L(null), [E, _] = L(null), b = G(
193
+ }), [P, k] = D(!1), [f, A] = D(null), [E, _] = D(null), R = G(
194
194
  (a, W) => {
195
- A(() => a), _(W), R(!0);
195
+ A(() => a), _(W), k(!0);
196
196
  },
197
197
  []
198
- ), I = G(() => {
198
+ ), x = G(() => {
199
199
  f && f(), A(null), _(null);
200
200
  }, [f]), {
201
201
  data: S,
202
202
  refetch: U,
203
- isLoading: x,
203
+ isLoading: I,
204
204
  isError: w
205
205
  } = Se({
206
206
  enabled: m,
207
- user: O?.username || "",
207
+ user: v?.username || "",
208
208
  searchString: o.searchString || "",
209
- sortDirection: o.sortDirection || l.DESC,
209
+ sortDirection: o.sortDirection || c.DESC,
210
210
  sortedCell: o.sortedCell || F,
211
- getAccessToken: D,
212
- keywordMatchAll: v
213
- }), { data: c } = ye({
214
- user: O?.username,
215
- getAccessToken: D
216
- }), B = c && c.totalChats ? c.totalChats - c.privateChats - c.deletedChats : 0;
217
- Be(() => {
218
- S && k(
211
+ getAccessToken: L,
212
+ keywordMatchAll: b
213
+ }), { data: l } = ye({
214
+ user: v?.username,
215
+ getAccessToken: L
216
+ }), B = l && l.totalChats ? l.totalChats - l.privateChats - l.deletedChats : 0;
217
+ Pe(() => {
218
+ S && O(
219
219
  C ? S.filter((a) => a.favoriteChat === !0) : S
220
220
  );
221
221
  }, [S, C]);
@@ -224,7 +224,7 @@ const je = Ue(
224
224
  type: pe,
225
225
  payload: { searchString: a }
226
226
  });
227
- }, j = Me((a) => {
227
+ }, j = Ne((a) => {
228
228
  H(a.target.value.trim());
229
229
  }, 800), K = async (a) => {
230
230
  a.preventDefault();
@@ -235,11 +235,11 @@ const je = Ue(
235
235
  };
236
236
  return /* @__PURE__ */ n(Q, { children: [
237
237
  /* @__PURE__ */ t(
238
- Ne,
238
+ we,
239
239
  {
240
240
  showConfirmation: P,
241
- setShowConfirmation: R,
242
- action: I,
241
+ setShowConfirmation: k,
242
+ action: x,
243
243
  customStrings: {
244
244
  confirmAction: "Delete",
245
245
  cancelAction: "Cancel",
@@ -249,7 +249,7 @@ const je = Ue(
249
249
  }
250
250
  ),
251
251
  /* @__PURE__ */ n(
252
- Fe,
252
+ He,
253
253
  {
254
254
  open: m,
255
255
  onOpenChange: y,
@@ -258,26 +258,18 @@ const je = Ue(
258
258
  animationType: "fade",
259
259
  blurEffect: "large",
260
260
  initialFocus: p,
261
- footer: /* @__PURE__ */ t(
262
- De,
263
- {
264
- columnGap: 2,
265
- alignHorizontal: "flex-end",
266
- className: "pb-8 sm:pb-0",
267
- children: /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(Ge, { onOpenChange: y, ref: p }) })
268
- }
269
- ),
261
+ 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(Fe, { onOpenChange: y, ref: p }) }) }),
270
262
  children: [
271
263
  /* @__PURE__ */ t(
272
- ke,
264
+ Le,
273
265
  {
274
- header: x && o.searchString ? "Loading..." : o.searchString ? "Filters applied" : "Filters",
266
+ header: I && o.searchString ? "Loading..." : o.searchString ? "Filters applied" : "Filters",
275
267
  className: "prose-dark dark:prose-lighter mb-4",
276
268
  noBorder: !0,
277
269
  compact: !0,
278
270
  children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: K, children: [
279
271
  /* @__PURE__ */ t(
280
- Ve,
272
+ Me,
281
273
  {
282
274
  placeholder: "Search",
283
275
  labelHidden: !0,
@@ -312,7 +304,7 @@ const je = Ue(
312
304
  $,
313
305
  {
314
306
  name: "keyword-match-all",
315
- checked: v,
307
+ checked: b,
316
308
  onChange: q,
317
309
  label: "Match all keywords",
318
310
  narrow: !0,
@@ -321,7 +313,7 @@ const je = Ue(
321
313
  )
322
314
  ] }),
323
315
  /* @__PURE__ */ t(
324
- Le,
316
+ De,
325
317
  {
326
318
  mode: "light",
327
319
  size: "small",
@@ -339,7 +331,7 @@ const je = Ue(
339
331
  /* @__PURE__ */ n(
340
332
  "div",
341
333
  {
342
- className: ze(
334
+ className: Ge(
343
335
  "flex flex-col sm:flex-row",
344
336
  "max-h-[65vh]",
345
337
  "sm:max-h-[75vh]",
@@ -348,16 +340,16 @@ const je = Ue(
348
340
  children: [
349
341
  w && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
350
342
  !w && /* @__PURE__ */ t(
351
- Ke,
343
+ Be,
352
344
  {
353
345
  mutate: U,
354
346
  filteredHistory: V,
355
347
  onOpenChange: y,
356
- isLoading: x,
348
+ isLoading: I,
357
349
  totalHistoryCount: B,
358
350
  isFiltered: !!(o.searchString || C),
359
351
  isSearchActive: !!o.searchString,
360
- requestConfirmation: b
352
+ requestConfirmation: R
361
353
  }
362
354
  )
363
355
  ]
@@ -369,5 +361,5 @@ const je = Ue(
369
361
  ] });
370
362
  };
371
363
  export {
372
- et as HistoryPanel
364
+ Ze as HistoryPanel
373
365
  };
@@ -0,0 +1,118 @@
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.MD-I3XF8.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.CTMAkXZN.js";
4
+ import { Card as B } from "./index.-DOP9Ckx.js";
5
+ import { TextInput as O, TextInputMask as T } from "./index.Bi2ow_w5.js";
6
+ import { useState as r, useEffect as f } from "react";
7
+ const G = () => {
8
+ const { login: h, logoutReason: o, loginWithPasskey: g } = N(), [t, l] = r(""), [d, n] = r(""), [m, p] = r(!0), [s, c] = r({
9
+ username: "",
10
+ password: ""
11
+ }), b = async (a) => {
12
+ a.preventDefault(), await h(s.username, s.password) || (n(""), l("Invalid username or password"));
13
+ };
14
+ return f(() => {
15
+ document.getElementById("logo")?.classList.add("fadeOut"), setTimeout(() => {
16
+ document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
17
+ }, 500);
18
+ }), f(() => {
19
+ o && n(o);
20
+ }, [o]), /* @__PURE__ */ i("main", { className: C({ extraClass: "mt-5" }), children: [
21
+ /* @__PURE__ */ e(
22
+ "div",
23
+ {
24
+ className: v({
25
+ extraClass: "rounded-md pb-10"
26
+ }),
27
+ children: /* @__PURE__ */ e(k, {})
28
+ }
29
+ ),
30
+ /* @__PURE__ */ e("form", { className: "mt-5", onSubmit: b, children: /* @__PURE__ */ e("div", { className: "flex flex-wrap justify-center", children: /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-6/12", children: /* @__PURE__ */ i(B, { mode: "dark", children: [
31
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full mt-7", children: d && /* @__PURE__ */ e("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: d }) }),
32
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
33
+ O,
34
+ {
35
+ className: "mt-7",
36
+ required: !0,
37
+ autoCapitalize: "off",
38
+ autoComplete: "off",
39
+ autoCorrect: "off",
40
+ mode: "dark",
41
+ focusMode: "light",
42
+ name: "username",
43
+ label: "Username",
44
+ onChange: (a) => {
45
+ c({
46
+ ...s,
47
+ username: a.target.value
48
+ }), l("");
49
+ },
50
+ error: t !== ""
51
+ }
52
+ ) }),
53
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
54
+ T,
55
+ {
56
+ className: "mt-7",
57
+ required: !0,
58
+ autoCapitalize: "off",
59
+ autoComplete: "off",
60
+ autoCorrect: "off",
61
+ mode: "dark",
62
+ focusMode: "light",
63
+ name: "password",
64
+ label: M,
65
+ rightElement: /* @__PURE__ */ e(
66
+ u,
67
+ {
68
+ focusMode: "light",
69
+ mode: "dark",
70
+ label: m ? "Show" : "Hide",
71
+ children: m ? /* @__PURE__ */ e(I, {}) : /* @__PURE__ */ e(L, {})
72
+ }
73
+ ),
74
+ onMaskChange: p,
75
+ onChange: (a) => {
76
+ c({
77
+ ...s,
78
+ password: a.target.value
79
+ }), l("");
80
+ },
81
+ error: t !== "",
82
+ helperText: t
83
+ }
84
+ ) }),
85
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
86
+ y,
87
+ {
88
+ mode: "dark",
89
+ focusMode: "light",
90
+ fullWidth: !0,
91
+ noBorder: !0,
92
+ type: "submit",
93
+ className: "mt-7",
94
+ children: E
95
+ }
96
+ ) }),
97
+ !w() && /* @__PURE__ */ i(x, { children: [
98
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
99
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
100
+ u,
101
+ {
102
+ variant: "selected",
103
+ mode: "dark",
104
+ focusMode: "light",
105
+ fullWidth: !0,
106
+ className: "mb-4",
107
+ labelRight: S,
108
+ onClick: g,
109
+ children: /* @__PURE__ */ e(P, { size: "size-7" })
110
+ }
111
+ ) })
112
+ ] })
113
+ ] }) }) }) })
114
+ ] });
115
+ };
116
+ export {
117
+ G as default
118
+ };