@versini/sassysaint 8.107.2 → 8.107.4

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 (33) hide show
  1. package/dist/chunks/{AboutChangelog.-F_kMw74.js → AboutChangelog.DeRcKN5H.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DR75PxCw.js → AboutEntry.6mTHwkfb.js} +7 -7
  3. package/dist/chunks/{App.3M79T1qj.js → App.DTjbiLAP.js} +1753 -2012
  4. package/dist/chunks/{Bubble.CA6Nm1l0.js → Bubble.ltolxxta.js} +47 -86
  5. package/dist/chunks/{Chart.DwZeH0GA.js → Chart.BzOmOhOW.js} +2 -2
  6. package/dist/chunks/{ChatBubbleAssistant.Bm-gE-ev.js → ChatBubbleAssistant.lGE_8ao1.js} +200 -213
  7. package/dist/chunks/{ChatBubbleUser.lLvteBf3.js → ChatBubbleUser.DC661ePq.js} +28 -41
  8. package/dist/chunks/{ChatHistoryTable.yS0g-92Q.js → ChatHistoryTable.BkRFWpsA.js} +108 -125
  9. package/dist/chunks/{Table.AnN2X7VF.js → DeleteButtonIcon.P0LgJDjE.js} +125 -116
  10. package/dist/chunks/{HistoryEntry.DfNmYlfN.js → HistoryEntry.uUjsDuT0.js} +6 -6
  11. package/dist/chunks/{LoginEntry.BccxHPtX.js → LoginEntry.BGZdTDwf.js} +4 -4
  12. package/dist/chunks/{LogoEntry.CFw0uv25.js → LogoEntry.Bpddd0yA.js} +301 -430
  13. package/dist/chunks/{MemoriesEntry.Cdao1cmo.js → MemoriesEntry.BYQm9cuU.js} +164 -169
  14. package/dist/chunks/{ProfileEntry.b8NaUHNW.js → ProfileEntry.BqcZXSeT.js} +4 -4
  15. package/dist/chunks/{SettingsEntry.CjuYtYSp.js → SettingsEntry.BdC5Vyof.js} +5 -5
  16. package/dist/chunks/{UsageEntry.cp-aSBF9.js → UsageEntry._O8Q6TwS.js} +5 -5
  17. package/dist/chunks/index.Bi0z4EE1.js +90 -0
  18. package/dist/chunks/{index.CgpXJ39e.js → index.BlviGqw0.js} +4 -4
  19. package/dist/chunks/{index.BSdZTOf6.js → index.BxbWxVtd.js} +1 -1
  20. package/dist/chunks/index.C70LcKzU.js +279 -0
  21. package/dist/chunks/{index.CLVeqfU3.js → index.CYcieK1H.js} +34 -47
  22. package/dist/chunks/{index.Dbw9MfpE.js → index.CaofbEIP.js} +3 -19
  23. package/dist/chunks/{index.B6FhZIr6.js → index.D2nN0rC6.js} +1 -1
  24. package/dist/chunks/{index.DhQEm5fx.js → index.DG-VhqKw.js} +1 -1
  25. package/dist/chunks/{index.DYkMD3_1.js → index.DuxTgnco.js} +56 -69
  26. package/dist/chunks/{index.DHLA2Fes.js → index.s8Izh8-Q.js} +2 -2
  27. package/dist/chunks/{useMarkdown.CoVPoXwW.js → useMarkdown.DjEZz9lH.js} +316 -329
  28. package/dist/components/SassySaint/SassySaint.js +1 -1
  29. package/dist/index.js +3 -7
  30. package/dist/style.css +1 -14
  31. package/package.json +5 -5
  32. package/dist/chunks/index.BAdB50GZ.js +0 -103
  33. package/dist/chunks/index.CyKPGk1D.js +0 -305
@@ -1,66 +1,66 @@
1
- import { jsx as e, jsxs as r, Fragment as I } from "react/jsx-runtime";
2
- import { n as Te, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as we, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ve, useUserMemories as De, useExpiredMemories as Ee, useDeleteMemory as Me, useDeleteAllActiveMemories as be, useDeleteAllExpiredMemories as Re, useUpdateMemory as Ie, useRestoreMemory as Le } from "./index.Dbw9MfpE.js";
3
- import { L as b, j as f, Button as B, e as c, ButtonIcon as L, IconEdit as Oe, IconDelete as te, IconRestore as _e } from "./LogoEntry.CFw0uv25.js";
4
- import { Panel as se, Toggle as O, CancelButton as ae, useLocalStorage as re, ConfirmationPanel as ie, ResponsiveTooltip as _ } from "./App.3M79T1qj.js";
5
- import { H as oe, F as ne, q as v, O as s, J as z, Y as le, G as ce } from "./Table.AnN2X7VF.js";
1
+ import { jsx as e, jsxs as r, Fragment as D } from "react/jsx-runtime";
2
+ import { n as Se, LOCAL_STORAGE_PREFIX as ee, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Te, LOCAL_STORAGE_SORT_MEMORY_COLUMN as we, useUserMemories as De, useExpiredMemories as ve, useDeleteMemory as Ee, useDeleteAllActiveMemories as Me, useDeleteAllExpiredMemories as be, useUpdateMemory as Re, useRestoreMemory as Ie } from "./index.CaofbEIP.js";
3
+ import { L as R, j as f, Button as _, e as l, ButtonIcon as G, IconEdit as Le, IconRestore as Oe, IconDelete as _e } from "./LogoEntry.Bpddd0yA.js";
4
+ import { Panel as ce, Toggle as L, CancelButton as se, useLocalStorage as te, ConfirmationPanel as re, ResponsiveTooltip as U } from "./App.DTjbiLAP.js";
5
+ import { H as ie, F as oe, q as v, O as c, J as O, Y as ne, DeleteButtonIcon as ze, G as le } from "./DeleteButtonIcon.P0LgJDjE.js";
6
6
  import C from "clsx";
7
- import { useState as N, useEffect as ze, useRef as q } from "react";
8
- import { TextArea as Be } from "./index.CyKPGk1D.js";
9
- const Pe = ({
7
+ import { useState as N, useEffect as Be, useRef as q } from "react";
8
+ import { TextArea as Pe } from "./index.C70LcKzU.js";
9
+ const Fe = ({
10
10
  open: k,
11
- onOpenChange: D,
11
+ onOpenChange: E,
12
12
  initialText: d,
13
13
  metadata: o,
14
14
  onSave: y,
15
- isSaving: E = !1
15
+ isSaving: M = !1
16
16
  }) => {
17
- const [l, M] = N(d), [A, p] = N("none");
18
- ze(() => {
17
+ const [s, b] = N(d), [A, p] = N("none");
18
+ Be(() => {
19
19
  if (k) {
20
- M(d);
20
+ b(d);
21
21
  const n = o?.expiration || "none";
22
22
  p(n);
23
23
  }
24
24
  }, [k, d, o?.expiration]);
25
- const P = () => {
26
- if (l.trim().length >= 3) {
25
+ const z = () => {
26
+ if (s.trim().length >= 3) {
27
27
  const n = A === "none" ? null : A;
28
- y(l.trim(), n);
28
+ y(s.trim(), n);
29
29
  }
30
- }, T = l.trim().length >= 3, h = l.trim() !== d.trim() || A !== (o?.expiration || "none");
30
+ }, T = s.trim().length >= 3, h = s.trim() !== d.trim() || A !== (o?.expiration || "none");
31
31
  return /* @__PURE__ */ e(
32
- se,
32
+ ce,
33
33
  {
34
34
  open: k,
35
- onOpenChange: D,
35
+ onOpenChange: E,
36
36
  title: "Edit Memory",
37
37
  animation: !0,
38
38
  animationType: "fade",
39
- footer: /* @__PURE__ */ r(b, { columnGap: 2, alignHorizontal: "flex-end", children: [
40
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(ae, { onOpenChange: D, label: "Cancel" }) }),
39
+ footer: /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "flex-end", children: [
40
+ /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(se, { onOpenChange: E, label: "Cancel" }) }),
41
41
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
42
- B,
42
+ _,
43
43
  {
44
44
  mode: "dark",
45
45
  focusMode: "light",
46
- disabled: E || !T || !h,
47
- onClick: P,
48
- children: E ? "Saving..." : "Save"
46
+ disabled: M || !T || !h,
47
+ onClick: z,
48
+ children: M ? "Saving..." : "Save"
49
49
  }
50
50
  ) })
51
51
  ] }),
52
52
  children: /* @__PURE__ */ r("div", { className: "flex flex-col pt-2 gap-4", children: [
53
53
  /* @__PURE__ */ e(
54
- Be,
54
+ Pe,
55
55
  {
56
56
  mode: "dark",
57
57
  focusMode: "light",
58
58
  label: "Memory text",
59
59
  name: "memoryText",
60
- value: l,
61
- onChange: (n) => M(n.target.value),
60
+ value: s,
61
+ onChange: (n) => b(n.target.value),
62
62
  autoFocus: !0,
63
- helperText: l.trim().length < 3 ? "Memory text must be at least 3 characters" : `${l.length} characters`
63
+ helperText: s.trim().length < 3 ? "Memory text must be at least 3 characters" : `${s.length} characters`
64
64
  }
65
65
  ),
66
66
  /* @__PURE__ */ r("div", { className: "flex flex-col gap-3 p-4 bg-surface-darker rounded-md", children: [
@@ -68,7 +68,7 @@ const Pe = ({
68
68
  /* @__PURE__ */ e("p", { className: "text-xs text-copy-medium m-0", children: "Set when this memory should expire and be automatically removed." }),
69
69
  /* @__PURE__ */ r("div", { className: "flex flex-col gap-2", children: [
70
70
  /* @__PURE__ */ e(
71
- O,
71
+ L,
72
72
  {
73
73
  mode: "dark",
74
74
  focusMode: "light",
@@ -83,7 +83,7 @@ const Pe = ({
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ e(
86
- O,
86
+ L,
87
87
  {
88
88
  mode: "dark",
89
89
  focusMode: "light",
@@ -98,7 +98,7 @@ const Pe = ({
98
98
  }
99
99
  ),
100
100
  /* @__PURE__ */ e(
101
- O,
101
+ L,
102
102
  {
103
103
  mode: "dark",
104
104
  focusMode: "light",
@@ -113,7 +113,7 @@ const Pe = ({
113
113
  }
114
114
  ),
115
115
  /* @__PURE__ */ e(
116
- O,
116
+ L,
117
117
  {
118
118
  mode: "dark",
119
119
  focusMode: "light",
@@ -179,48 +179,48 @@ const Pe = ({
179
179
  ] })
180
180
  }
181
181
  );
182
- }, je = ({ open: k, onOpenChange: D, user: d }) => {
183
- const o = q(null), { getAccessToken: y } = Te(), [E] = N(void 0), [l, M] = N("active"), [A, p] = re({
182
+ }, Ye = ({ open: k, onOpenChange: E, user: d }) => {
183
+ const o = q(null), { getAccessToken: y } = Se(), [M] = N(void 0), [s, b] = N("active"), [A, p] = te({
184
+ key: ee + Te,
185
+ initialValue: l.DESC
186
+ }), [z, T] = te({
184
187
  key: ee + we,
185
- initialValue: c.DESC
186
- }), [P, T] = re({
187
- key: ee + ve,
188
188
  initialValue: "createdAt"
189
- }), [h, n] = N(A || c.DESC), [u, R] = N(
190
- P || "createdAt"
189
+ }), [h, n] = N(A || l.DESC), [u, I] = N(
190
+ z || "createdAt"
191
191
  ), { data: w, isLoading: H, isError: $ } = De({
192
192
  user: d,
193
- query: E,
193
+ query: M,
194
194
  getAccessToken: y,
195
- enabled: k && l === "active"
195
+ enabled: k && s === "active"
196
196
  }), {
197
197
  data: g,
198
198
  isLoading: X,
199
199
  isError: V
200
- } = Ee({
200
+ } = ve({
201
201
  user: d,
202
- query: E,
202
+ query: M,
203
203
  getAccessToken: y,
204
- enabled: k && l === "expired"
205
- }), F = Me({ getAccessToken: y }), j = be({ getAccessToken: y }), Y = Re({ getAccessToken: y }), G = Ie({ getAccessToken: y }), J = Le({ getAccessToken: y }), [de, K] = N(!1), S = q(null), [me, Q] = N(!1), [xe, U] = N(!1), x = q(null), W = (t, i, a, m) => {
204
+ enabled: k && s === "expired"
205
+ }), B = Ee({ getAccessToken: y }), j = Me({ getAccessToken: y }), Y = be({ getAccessToken: y }), P = Re({ getAccessToken: y }), J = Ie({ getAccessToken: y }), [ae, K] = N(!1), S = q(null), [de, Q] = N(!1), [me, F] = N(!1), x = q(null), W = (t, i, a, m) => {
206
206
  S.current = { id: t, text: i, description: a, createdAt: m }, K(!0);
207
- }, pe = () => {
208
- S.current && F.mutate({ user: d, memoryId: S.current.id });
209
- }, he = (t, i, a, m, ye, Ae, Ce, Ne, ke, Se) => {
207
+ }, xe = () => {
208
+ S.current && B.mutate({ user: d, memoryId: S.current.id });
209
+ }, pe = (t, i, a, m, fe, ye, Ae, Ce, Ne, ke) => {
210
210
  x.current = {
211
211
  id: t,
212
212
  description: i,
213
213
  categories: a,
214
214
  quote: m,
215
- canonicalText: ye,
216
- confidence: Ae,
217
- status: Ce,
218
- sourceType: Ne,
219
- expiration: ke,
220
- expiresAt: Se
221
- }, U(!0);
222
- }, ue = (t, i) => {
223
- x.current && d && G.mutate(
215
+ canonicalText: fe,
216
+ confidence: ye,
217
+ status: Ae,
218
+ sourceType: Ce,
219
+ expiration: Ne,
220
+ expiresAt: ke
221
+ }, F(!0);
222
+ }, he = (t, i) => {
223
+ x.current && d && P.mutate(
224
224
  {
225
225
  user: d,
226
226
  memoryId: x.current.id,
@@ -229,24 +229,24 @@ const Pe = ({
229
229
  },
230
230
  {
231
231
  onSuccess: () => {
232
- U(!1);
232
+ F(!1);
233
233
  }
234
234
  }
235
235
  );
236
- }, ge = () => {
236
+ }, ue = () => {
237
237
  d && Q(!0);
238
- }, fe = () => {
239
- d && (l === "active" ? j.mutate({ user: d }) : Y.mutate({ user: d }));
238
+ }, ge = () => {
239
+ d && (s === "active" ? j.mutate({ user: d }) : Y.mutate({ user: d }));
240
240
  }, Z = (t) => {
241
241
  const i = `${t.total} memor${t.total === 1 ? "y" : "ies"}`, a = t.totalTokenUsage ? ` (~${t.totalTokenUsage} tokens)` : "";
242
242
  return i + a;
243
243
  };
244
- return /* @__PURE__ */ r(I, { children: [
244
+ return /* @__PURE__ */ r(D, { children: [
245
245
  /* @__PURE__ */ e(
246
- Pe,
246
+ Fe,
247
247
  {
248
- open: xe,
249
- onOpenChange: U,
248
+ open: me,
249
+ onOpenChange: F,
250
250
  initialText: x.current?.description || "",
251
251
  metadata: x.current ? {
252
252
  categories: x.current.categories,
@@ -258,16 +258,16 @@ const Pe = ({
258
258
  expiration: x.current.expiration,
259
259
  expiresAt: x.current.expiresAt
260
260
  } : void 0,
261
- onSave: ue,
262
- isSaving: G.isPending
261
+ onSave: he,
262
+ isSaving: P.isPending
263
263
  }
264
264
  ),
265
265
  /* @__PURE__ */ r(
266
- ie,
266
+ re,
267
267
  {
268
- showConfirmation: de,
268
+ showConfirmation: ae,
269
269
  setShowConfirmation: K,
270
- action: pe,
270
+ action: xe,
271
271
  customStrings: {
272
272
  title: "Delete memory",
273
273
  confirmAction: "Delete",
@@ -291,71 +291,79 @@ const Pe = ({
291
291
  }
292
292
  ),
293
293
  /* @__PURE__ */ e(
294
- ie,
294
+ re,
295
295
  {
296
- showConfirmation: me,
296
+ showConfirmation: de,
297
297
  setShowConfirmation: Q,
298
- action: fe,
298
+ action: ge,
299
299
  customStrings: {
300
- title: l === "active" ? "Delete all active memories" : "Delete all expired memories",
300
+ title: "Delete memories",
301
301
  confirmAction: "Delete all",
302
302
  cancelAction: "Cancel"
303
303
  },
304
- children: /* @__PURE__ */ e("p", { className: "m-0", children: l === "active" ? "This will permanently delete all active memories for this user. This action cannot be undone." : "This will permanently delete all expired memories for this user. This action cannot be undone." })
304
+ children: /* @__PURE__ */ e("p", { className: "m-0", children: s === "active" ? /* @__PURE__ */ r(D, { children: [
305
+ "This will permanently delete all ",
306
+ /* @__PURE__ */ e("em", { children: "active memories" }),
307
+ " for this user. This action cannot be undone."
308
+ ] }) : /* @__PURE__ */ r(D, { children: [
309
+ "This will permanently delete all ",
310
+ /* @__PURE__ */ e("em", { children: "expired memories" }),
311
+ " for this user. This action cannot be undone."
312
+ ] }) })
305
313
  }
306
314
  ),
307
315
  /* @__PURE__ */ e(
308
- se,
316
+ ce,
309
317
  {
310
318
  open: k,
311
- onOpenChange: (t) => D(t),
319
+ onOpenChange: (t) => E(t),
312
320
  title: "User Memories",
313
321
  animation: !0,
314
322
  animationType: "fade",
315
323
  blurEffect: "large",
316
324
  initialFocus: o,
317
- footer: /* @__PURE__ */ r(b, { columnGap: 2, alignHorizontal: "flex-end", children: [
325
+ footer: /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "flex-end", children: [
318
326
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
319
- ae,
327
+ se,
320
328
  {
321
- onOpenChange: D,
329
+ onOpenChange: E,
322
330
  label: "Close",
323
331
  ref: o
324
332
  }
325
333
  ) }),
326
334
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
327
- B,
335
+ _,
328
336
  {
329
337
  mode: "dark",
330
338
  focusMode: "light",
331
339
  variant: "danger",
332
- disabled: (l === "active" ? j.isPending : Y.isPending) || (l === "active" ? (w?.total ?? 0) === 0 : (g?.total ?? 0) === 0),
333
- onClick: ge,
340
+ disabled: (s === "active" ? j.isPending : Y.isPending) || (s === "active" ? (w?.total ?? 0) === 0 : (g?.total ?? 0) === 0),
341
+ onClick: ue,
334
342
  children: "Delete All"
335
343
  }
336
344
  ) })
337
345
  ] }),
338
346
  children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-4 @container/editmemoriespanel", children: [
339
- /* @__PURE__ */ r(b, { columnGap: 2, alignHorizontal: "center", children: [
347
+ /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "center", children: [
340
348
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
341
- B,
349
+ _,
342
350
  {
343
351
  focusMode: "light",
344
- mode: l === "active" ? "light" : "dark",
352
+ mode: s === "active" ? "light" : "dark",
345
353
  size: "small",
346
354
  noBorder: !0,
347
- onClick: () => M("active"),
355
+ onClick: () => b("active"),
348
356
  children: "Active Memories"
349
357
  }
350
358
  ) }),
351
359
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
352
- B,
360
+ _,
353
361
  {
354
362
  focusMode: "light",
355
- mode: l === "expired" ? "light" : "dark",
363
+ mode: s === "expired" ? "light" : "dark",
356
364
  size: "small",
357
365
  noBorder: !0,
358
- onClick: () => M("expired"),
366
+ onClick: () => b("expired"),
359
367
  children: "Expired Memories"
360
368
  }
361
369
  ) })
@@ -369,11 +377,11 @@ const Pe = ({
369
377
  "sm:max-h-[75vh]",
370
378
  "min-h-[70vh]"
371
379
  ),
372
- children: l === "active" ? /* @__PURE__ */ r(I, { children: [
380
+ children: s === "active" ? /* @__PURE__ */ r(D, { children: [
373
381
  H && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading memories..." }),
374
382
  $ && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load memories." }),
375
383
  !H && !$ && (w && w.items.length > 0 ? /* @__PURE__ */ r(
376
- oe,
384
+ ie,
377
385
  {
378
386
  stickyHeader: !0,
379
387
  stickyFooter: !0,
@@ -381,11 +389,11 @@ const Pe = ({
381
389
  mode: "alt-system",
382
390
  caption: Z(w),
383
391
  children: [
384
- /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ r(v, { children: [
385
- /* @__PURE__ */ e(s, { className: "sr-only", children: "Row" }),
386
- /* @__PURE__ */ e(s, { children: "Memory" }),
392
+ /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ r(v, { children: [
393
+ /* @__PURE__ */ e(c, { className: "sr-only", children: "Row" }),
394
+ /* @__PURE__ */ e(c, { children: "Memory" }),
387
395
  /* @__PURE__ */ e(
388
- z,
396
+ O,
389
397
  {
390
398
  focusMode: "system",
391
399
  buttonClassName: "text-xs sm:text-sm",
@@ -394,8 +402,8 @@ const Pe = ({
394
402
  sortDirection: h,
395
403
  sortedCell: u,
396
404
  onClick: () => {
397
- R("createdAt"), T("createdAt"), n((t) => {
398
- const i = t === c.ASC ? c.DESC : c.ASC;
405
+ I("createdAt"), T("createdAt"), n((t) => {
406
+ const i = t === l.ASC ? l.DESC : l.ASC;
399
407
  return p(i), i;
400
408
  });
401
409
  },
@@ -403,7 +411,7 @@ const Pe = ({
403
411
  }
404
412
  ),
405
413
  /* @__PURE__ */ e(
406
- z,
414
+ O,
407
415
  {
408
416
  focusMode: "system",
409
417
  buttonClassName: "text-xs sm:text-sm",
@@ -412,36 +420,36 @@ const Pe = ({
412
420
  sortDirection: h,
413
421
  sortedCell: u,
414
422
  onClick: () => {
415
- R("expiresAt"), T("expiresAt"), n((t) => {
416
- const i = t === c.ASC ? c.DESC : c.ASC;
423
+ I("expiresAt"), T("expiresAt"), n((t) => {
424
+ const i = t === l.ASC ? l.DESC : l.ASC;
417
425
  return p(i), i;
418
426
  });
419
427
  },
420
428
  children: "Expires"
421
429
  }
422
430
  ),
423
- /* @__PURE__ */ e(s, { align: "right", children: "Actions" })
431
+ /* @__PURE__ */ e(c, { align: "right", children: "Actions" })
424
432
  ] }) }),
425
- /* @__PURE__ */ e(le, { children: [...w.items].sort((t, i) => {
433
+ /* @__PURE__ */ e(ne, { children: [...w.items].sort((t, i) => {
426
434
  if (u === "createdAt") {
427
435
  const a = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
428
- return h === c.ASC ? a - m : m - a;
436
+ return h === l.ASC ? a - m : m - a;
429
437
  }
430
438
  if (u === "expiresAt") {
431
439
  const a = t.expiresAt ? new Date(t.expiresAt).getTime() : Number.MAX_SAFE_INTEGER, m = i.expiresAt ? new Date(i.expiresAt).getTime() : Number.MAX_SAFE_INTEGER;
432
- return h === c.ASC ? a - m : m - a;
440
+ return h === l.ASC ? a - m : m - a;
433
441
  }
434
442
  return 0;
435
443
  }).map((t, i) => /* @__PURE__ */ r(v, { children: [
436
444
  /* @__PURE__ */ e(
437
- s,
445
+ c,
438
446
  {
439
447
  className: C("dark:text-copy-medium"),
440
448
  children: i + 1
441
449
  }
442
450
  ),
443
451
  /* @__PURE__ */ e(
444
- s,
452
+ c,
445
453
  {
446
454
  className: C(
447
455
  "dark:text-copy-lighter",
@@ -455,7 +463,7 @@ const Pe = ({
455
463
  }
456
464
  ),
457
465
  /* @__PURE__ */ e(
458
- s,
466
+ c,
459
467
  {
460
468
  className: C(
461
469
  "dark:text-copy-medium",
@@ -465,7 +473,7 @@ const Pe = ({
465
473
  }
466
474
  ),
467
475
  /* @__PURE__ */ e(
468
- s,
476
+ c,
469
477
  {
470
478
  className: C(
471
479
  "dark:text-copy-medium",
@@ -475,31 +483,31 @@ const Pe = ({
475
483
  }
476
484
  ),
477
485
  /* @__PURE__ */ e(
478
- s,
486
+ c,
479
487
  {
480
488
  className: "align-top border-l border-table-light dark:border-table-dark",
481
489
  align: "right",
482
490
  children: /* @__PURE__ */ r(
483
- b,
491
+ R,
484
492
  {
485
493
  columnGap: 2,
486
494
  alignHorizontal: "flex-end",
487
495
  children: [
488
496
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
489
- _,
497
+ U,
490
498
  {
491
499
  label: "Edit memory",
492
500
  mode: "system",
493
501
  placement: "top",
494
502
  trigger: /* @__PURE__ */ e(
495
- L,
503
+ G,
496
504
  {
497
505
  focusMode: "system",
498
506
  noBorder: !0,
499
507
  label: "Edit memory",
500
508
  variant: "primary",
501
- disabled: G.isPending,
502
- onClick: () => he(
509
+ disabled: P.isPending,
510
+ onClick: () => pe(
503
511
  t.memoryId,
504
512
  t.description || t.text,
505
513
  t.categories,
@@ -511,34 +519,21 @@ const Pe = ({
511
519
  t.expiration,
512
520
  t.expiresAt
513
521
  ),
514
- children: /* @__PURE__ */ e(Oe, { size: "size-3", monotone: !0 })
522
+ children: /* @__PURE__ */ e(Le, { size: "size-3", monotone: !0 })
515
523
  }
516
524
  )
517
525
  }
518
526
  ) }),
519
527
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
520
- _,
528
+ ze,
521
529
  {
522
530
  label: "Delete memory",
523
- mode: "system",
524
- placement: "top",
525
- trigger: /* @__PURE__ */ e(
526
- L,
527
- {
528
- focusMode: "system",
529
- noBorder: !0,
530
- label: "Delete memory",
531
- variant: "primary",
532
- iconClassName: "text-copy-error-dark dark:text-copy-error-light",
533
- disabled: F.isPending,
534
- onClick: () => W(
535
- t.memoryId,
536
- t.text,
537
- t.description,
538
- t.createdAt
539
- ),
540
- children: /* @__PURE__ */ e(te, { size: "size-3", monotone: !0 })
541
- }
531
+ disabled: B.isPending,
532
+ onClick: () => W(
533
+ t.memoryId,
534
+ t.text,
535
+ t.description,
536
+ t.createdAt
542
537
  )
543
538
  }
544
539
  ) })
@@ -548,19 +543,19 @@ const Pe = ({
548
543
  }
549
544
  )
550
545
  ] }, t.memoryId)) }),
551
- /* @__PURE__ */ e(ce, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(s, { colSpan: 5, children: Z(w) }) }) })
546
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(c, { colSpan: 5, children: Z(w) }) }) })
552
547
  ]
553
548
  }
554
549
  ) : /* @__PURE__ */ e("p", { className: "m-0 italic opacity-70", children: "No memories stored." }))
555
- ] }) : /* @__PURE__ */ r(I, { children: [
550
+ ] }) : /* @__PURE__ */ r(D, { children: [
556
551
  X && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading expired memories..." }),
557
552
  V && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load expired memories." }),
558
- !X && !V && (g && g.items.length > 0 ? /* @__PURE__ */ r(oe, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
559
- /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ r(v, { children: [
560
- /* @__PURE__ */ e(s, { className: "sr-only", children: "Row" }),
561
- /* @__PURE__ */ e(s, { children: "Memory" }),
553
+ !X && !V && (g && g.items.length > 0 ? /* @__PURE__ */ r(ie, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
554
+ /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ r(v, { children: [
555
+ /* @__PURE__ */ e(c, { className: "sr-only", children: "Row" }),
556
+ /* @__PURE__ */ e(c, { children: "Memory" }),
562
557
  /* @__PURE__ */ e(
563
- z,
558
+ O,
564
559
  {
565
560
  focusMode: "system",
566
561
  buttonClassName: "text-xs sm:text-sm",
@@ -569,8 +564,8 @@ const Pe = ({
569
564
  sortDirection: h,
570
565
  sortedCell: u,
571
566
  onClick: () => {
572
- R("createdAt"), T("createdAt"), n((t) => {
573
- const i = t === c.ASC ? c.DESC : c.ASC;
567
+ I("createdAt"), T("createdAt"), n((t) => {
568
+ const i = t === l.ASC ? l.DESC : l.ASC;
574
569
  return p(i), i;
575
570
  });
576
571
  },
@@ -578,7 +573,7 @@ const Pe = ({
578
573
  }
579
574
  ),
580
575
  /* @__PURE__ */ e(
581
- z,
576
+ O,
582
577
  {
583
578
  focusMode: "system",
584
579
  buttonClassName: "text-xs sm:text-sm",
@@ -587,36 +582,36 @@ const Pe = ({
587
582
  sortDirection: h,
588
583
  sortedCell: u,
589
584
  onClick: () => {
590
- R("expiresAt"), T("expiresAt"), n((t) => {
591
- const i = t === c.ASC ? c.DESC : c.ASC;
585
+ I("expiresAt"), T("expiresAt"), n((t) => {
586
+ const i = t === l.ASC ? l.DESC : l.ASC;
592
587
  return p(i), i;
593
588
  });
594
589
  },
595
590
  children: "Expired"
596
591
  }
597
592
  ),
598
- /* @__PURE__ */ e(s, { align: "right", children: "Actions" })
593
+ /* @__PURE__ */ e(c, { align: "right", children: "Actions" })
599
594
  ] }) }),
600
- /* @__PURE__ */ e(le, { children: [...g.items].sort((t, i) => {
595
+ /* @__PURE__ */ e(ne, { children: [...g.items].sort((t, i) => {
601
596
  if (u === "createdAt") {
602
597
  const a = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
603
- return h === c.ASC ? a - m : m - a;
598
+ return h === l.ASC ? a - m : m - a;
604
599
  }
605
600
  if (u === "expiresAt") {
606
601
  const a = t.expiresAt ? new Date(t.expiresAt).getTime() : Number.MAX_SAFE_INTEGER, m = i.expiresAt ? new Date(i.expiresAt).getTime() : Number.MAX_SAFE_INTEGER;
607
- return h === c.ASC ? a - m : m - a;
602
+ return h === l.ASC ? a - m : m - a;
608
603
  }
609
604
  return 0;
610
605
  }).map((t, i) => /* @__PURE__ */ r(v, { children: [
611
606
  /* @__PURE__ */ e(
612
- s,
607
+ c,
613
608
  {
614
609
  className: C("dark:text-copy-medium"),
615
610
  children: i + 1
616
611
  }
617
612
  ),
618
613
  /* @__PURE__ */ e(
619
- s,
614
+ c,
620
615
  {
621
616
  className: C(
622
617
  "dark:text-copy-lighter",
@@ -630,7 +625,7 @@ const Pe = ({
630
625
  }
631
626
  ),
632
627
  /* @__PURE__ */ e(
633
- s,
628
+ c,
634
629
  {
635
630
  className: C(
636
631
  "dark:text-copy-medium",
@@ -640,7 +635,7 @@ const Pe = ({
640
635
  }
641
636
  ),
642
637
  /* @__PURE__ */ e(
643
- s,
638
+ c,
644
639
  {
645
640
  className: C(
646
641
  "dark:text-copy-medium",
@@ -650,24 +645,24 @@ const Pe = ({
650
645
  }
651
646
  ),
652
647
  /* @__PURE__ */ e(
653
- s,
648
+ c,
654
649
  {
655
650
  className: "align-top border-l border-table-light dark:border-table-dark",
656
651
  align: "right",
657
652
  children: /* @__PURE__ */ r(
658
- b,
653
+ R,
659
654
  {
660
655
  columnGap: 2,
661
656
  alignHorizontal: "flex-end",
662
657
  children: [
663
658
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
664
- _,
659
+ U,
665
660
  {
666
661
  label: "Restore memory",
667
662
  mode: "system",
668
663
  placement: "top",
669
664
  trigger: /* @__PURE__ */ e(
670
- L,
665
+ G,
671
666
  {
672
667
  focusMode: "system",
673
668
  noBorder: !0,
@@ -680,33 +675,33 @@ const Pe = ({
680
675
  memoryId: t.memoryId
681
676
  });
682
677
  },
683
- children: /* @__PURE__ */ e(_e, { size: "size-3", monotone: !0 })
678
+ children: /* @__PURE__ */ e(Oe, { size: "size-3", monotone: !0 })
684
679
  }
685
680
  )
686
681
  }
687
682
  ) }),
688
683
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
689
- _,
684
+ U,
690
685
  {
691
686
  label: "Delete memory",
692
687
  mode: "system",
693
688
  placement: "top",
694
689
  trigger: /* @__PURE__ */ e(
695
- L,
690
+ G,
696
691
  {
697
692
  focusMode: "system",
698
693
  noBorder: !0,
699
694
  label: "Delete memory",
700
695
  variant: "primary",
701
696
  iconClassName: "text-copy-error-dark dark:text-copy-error-light",
702
- disabled: F.isPending,
697
+ disabled: B.isPending,
703
698
  onClick: () => W(
704
699
  t.memoryId,
705
700
  t.text,
706
701
  t.description,
707
702
  t.createdAt
708
703
  ),
709
- children: /* @__PURE__ */ e(te, { size: "size-3", monotone: !0 })
704
+ children: /* @__PURE__ */ e(_e, { size: "size-3", monotone: !0 })
710
705
  }
711
706
  )
712
707
  }
@@ -717,11 +712,11 @@ const Pe = ({
717
712
  }
718
713
  )
719
714
  ] }, t.memoryId)) }),
720
- /* @__PURE__ */ e(ce, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(s, { colSpan: 5, children: [
715
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(c, { colSpan: 5, children: [
721
716
  g.total,
722
717
  " expired memor",
723
718
  g.total === 1 ? "y" : "ies",
724
- g.totalTokenUsage !== void 0 && g.totalTokenUsage > 0 && /* @__PURE__ */ r(I, { children: [
719
+ g.totalTokenUsage !== void 0 && g.totalTokenUsage > 0 && /* @__PURE__ */ r(D, { children: [
725
720
  " ",
726
721
  "(approximately",
727
722
  " ",
@@ -744,5 +739,5 @@ const Pe = ({
744
739
  ] });
745
740
  };
746
741
  export {
747
- je as default
742
+ Ye as default
748
743
  };