@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,66 +1,66 @@
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.CBEv2y_C.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.CucXks5G.js";
4
- import { Panel as ce, Toggle as L, ButtonCancel as se, useLocalStorage as te, ConfirmationPanel as re, ResponsiveTooltip as U } from "./App.BD0e8HgV.js";
5
- import { H as ie, F as oe, q as v, O as c, J as O, Y as ne, ButtonIconDelete as ze, G as le } from "./ButtonIconDelete.Bw7zU6Rb.js";
6
- import C from "clsx";
7
- import { useState as N, useEffect as Be, useRef as q } from "react";
8
- import { TextArea as Pe } from "./index.DAuo-OH1.js";
9
- const Fe = ({
10
- open: k,
11
- onOpenChange: E,
1
+ import { jsx as e, jsxs as r, Fragment as T } from "react/jsx-runtime";
2
+ import { n as be, LOCAL_STORAGE_PREFIX as W, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as we, LOCAL_STORAGE_SORT_MEMORY_COLUMN as Ce, useUserMemories as ve, useExpiredMemories as Te, useDeleteMemory as Se, useDeleteAllActiveMemories as ke, useDeleteAllExpiredMemories as De, useUpdateMemory as Ee, useRestoreMemory as Me } from "./index.MD-I3XF8.js";
3
+ import { Button as L, TableCellSortDirections as s, ButtonIcon as F, IconEdit as Re, IconRestore as Ie, IconDelete as Le } from "./LogoEntry.CTMAkXZN.js";
4
+ import { Panel as le, Toggle as R, ButtonCancel as se, useLocalStorage as Z, ConfirmationPanel as ee, ResponsiveTooltip as U } from "./App.7P9lyXTX.js";
5
+ import { Table as te, TableHead as re, TableRow as S, TableCell as a, TableCellSort as I, TableBody as ie, ButtonIconDelete as Oe, TableFooter as oe } from "./ButtonIconDelete.CAEfJOI7.js";
6
+ import A from "clsx";
7
+ import { useState as N, useEffect as _e, useRef as z } from "react";
8
+ import { TextArea as Be } from "./index.CK3q1Sfv.js";
9
+ const Pe = ({
10
+ open: b,
11
+ onOpenChange: k,
12
12
  initialText: d,
13
13
  metadata: o,
14
- onSave: y,
15
- isSaving: M = !1
14
+ onSave: g,
15
+ isSaving: D = !1
16
16
  }) => {
17
- const [s, b] = N(d), [A, p] = N("none");
18
- Be(() => {
19
- if (k) {
20
- b(d);
21
- const n = o?.expiration || "none";
22
- p(n);
17
+ const [n, E] = N(d), [y, p] = N("none");
18
+ _e(() => {
19
+ if (b) {
20
+ E(d);
21
+ const l = o?.expiration || "none";
22
+ p(l);
23
23
  }
24
- }, [k, d, o?.expiration]);
25
- const z = () => {
26
- if (s.trim().length >= 3) {
27
- const n = A === "none" ? null : A;
28
- y(s.trim(), n);
24
+ }, [b, d, o?.expiration]);
25
+ const O = () => {
26
+ if (n.trim().length >= 3) {
27
+ const l = y === "none" ? null : y;
28
+ g(n.trim(), l);
29
29
  }
30
- }, T = s.trim().length >= 3, h = s.trim() !== d.trim() || A !== (o?.expiration || "none");
30
+ }, C = n.trim().length >= 3, u = n.trim() !== d.trim() || y !== (o?.expiration || "none");
31
31
  return /* @__PURE__ */ e(
32
- ce,
32
+ le,
33
33
  {
34
- open: k,
35
- onOpenChange: E,
34
+ open: b,
35
+ onOpenChange: k,
36
36
  title: "Edit Memory",
37
37
  animation: !0,
38
38
  animationType: "fade",
39
- footer: /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "flex-end", children: [
40
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(se, { onOpenChange: E, label: "Cancel" }) }),
41
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
42
- _,
39
+ footer: /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
40
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(se, { onOpenChange: k, label: "Cancel" }) }),
41
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
42
+ L,
43
43
  {
44
44
  mode: "dark",
45
45
  focusMode: "light",
46
- disabled: M || !T || !h,
47
- onClick: z,
48
- children: M ? "Saving..." : "Save"
46
+ disabled: D || !C || !u,
47
+ onClick: O,
48
+ children: D ? "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
- Pe,
54
+ Be,
55
55
  {
56
56
  mode: "dark",
57
57
  focusMode: "light",
58
58
  label: "Memory text",
59
59
  name: "memoryText",
60
- value: s,
61
- onChange: (n) => b(n.target.value),
60
+ value: n,
61
+ onChange: (l) => E(l.target.value),
62
62
  autoFocus: !0,
63
- helperText: s.trim().length < 3 ? "Memory text must be at least 3 characters" : `${s.length} characters`
63
+ helperText: n.trim().length < 3 ? "Memory text must be at least 3 characters" : `${n.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 Fe = ({
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
- L,
71
+ R,
72
72
  {
73
73
  mode: "dark",
74
74
  focusMode: "light",
@@ -76,14 +76,14 @@ const Fe = ({
76
76
  narrow: !0,
77
77
  label: "Never expire",
78
78
  name: "expiration-none",
79
- checked: A === "none",
80
- onChange: (n) => {
81
- n && p("none");
79
+ checked: y === "none",
80
+ onChange: (l) => {
81
+ l && p("none");
82
82
  }
83
83
  }
84
84
  ),
85
85
  /* @__PURE__ */ e(
86
- L,
86
+ R,
87
87
  {
88
88
  mode: "dark",
89
89
  focusMode: "light",
@@ -91,14 +91,14 @@ const Fe = ({
91
91
  narrow: !0,
92
92
  label: "Short (1 month)",
93
93
  name: "expiration-short",
94
- checked: A === "short",
95
- onChange: (n) => {
96
- n && p("short");
94
+ checked: y === "short",
95
+ onChange: (l) => {
96
+ l && p("short");
97
97
  }
98
98
  }
99
99
  ),
100
100
  /* @__PURE__ */ e(
101
- L,
101
+ R,
102
102
  {
103
103
  mode: "dark",
104
104
  focusMode: "light",
@@ -106,14 +106,14 @@ const Fe = ({
106
106
  narrow: !0,
107
107
  label: "Medium (6 months)",
108
108
  name: "expiration-medium",
109
- checked: A === "medium",
110
- onChange: (n) => {
111
- n && p("medium");
109
+ checked: y === "medium",
110
+ onChange: (l) => {
111
+ l && p("medium");
112
112
  }
113
113
  }
114
114
  ),
115
115
  /* @__PURE__ */ e(
116
- L,
116
+ R,
117
117
  {
118
118
  mode: "dark",
119
119
  focusMode: "light",
@@ -121,9 +121,9 @@ const Fe = ({
121
121
  narrow: !0,
122
122
  label: "Long (1 year)",
123
123
  name: "expiration-long",
124
- checked: A === "long",
125
- onChange: (n) => {
126
- n && p("long");
124
+ checked: y === "long",
125
+ onChange: (l) => {
126
+ l && p("long");
127
127
  }
128
128
  }
129
129
  )
@@ -133,13 +133,13 @@ const Fe = ({
133
133
  /* @__PURE__ */ e("h3", { className: "text-sm m-0", children: "Memory Details" }),
134
134
  o.categories && o.categories.length > 0 && /* @__PURE__ */ r("div", { className: "flex flex-col gap-1", children: [
135
135
  /* @__PURE__ */ e("span", { className: "text-xs text-copy-medium uppercase", children: "Category" }),
136
- /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: o.categories.map((n, u) => /* @__PURE__ */ e(
136
+ /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-1", children: o.categories.map((l, h) => /* @__PURE__ */ e(
137
137
  "span",
138
138
  {
139
139
  className: "text-xs px-2 py-1 text-copy-light rounded",
140
- children: n
140
+ children: l
141
141
  },
142
- `${n}-${u}`
142
+ `${l}-${h}`
143
143
  )) })
144
144
  ] }),
145
145
  /* @__PURE__ */ r("div", { className: "flex flex-col sm:flex-row gap-4", children: [
@@ -179,48 +179,48 @@ const Fe = ({
179
179
  ] })
180
180
  }
181
181
  );
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({
187
- key: ee + we,
182
+ }, Ve = ({ open: b, onOpenChange: k, user: d }) => {
183
+ const o = z(null), { getAccessToken: g } = be(), [D] = N(void 0), [n, E] = N("active"), [y, p] = Z({
184
+ key: W + we,
185
+ initialValue: s.DESC
186
+ }), [O, C] = Z({
187
+ key: W + Ce,
188
188
  initialValue: "createdAt"
189
- }), [h, n] = N(A || l.DESC), [u, I] = N(
190
- z || "createdAt"
191
- ), { data: w, isLoading: H, isError: $ } = De({
189
+ }), [u, l] = N(y || s.DESC), [h, M] = N(
190
+ O || "createdAt"
191
+ ), { data: v, isLoading: q, isError: j } = ve({
192
192
  user: d,
193
- query: M,
194
- getAccessToken: y,
195
- enabled: k && s === "active"
193
+ query: D,
194
+ getAccessToken: g,
195
+ enabled: b && n === "active"
196
196
  }), {
197
- data: g,
198
- isLoading: X,
199
- isError: V
200
- } = ve({
197
+ data: f,
198
+ isLoading: G,
199
+ isError: $
200
+ } = Te({
201
201
  user: d,
202
- query: M,
203
- getAccessToken: y,
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
- S.current = { id: t, text: i, description: a, createdAt: m }, K(!0);
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) => {
202
+ query: D,
203
+ getAccessToken: g,
204
+ enabled: b && n === "expired"
205
+ }), _ = Se({ getAccessToken: g }), X = ke({ getAccessToken: g }), V = De({ getAccessToken: g }), B = Ee({ getAccessToken: g }), H = Me({ getAccessToken: g }), [ae, Y] = N(!1), w = z(null), [ne, J] = N(!1), [ce, P] = N(!1), x = z(null), K = (t, i, c, m) => {
206
+ w.current = { id: t, text: i, description: c, createdAt: m }, Y(!0);
207
+ }, de = () => {
208
+ w.current && _.mutate({ user: d, memoryId: w.current.id });
209
+ }, me = (t, i, c, m, he, fe, ge, ye, Ae, Ne) => {
210
210
  x.current = {
211
211
  id: t,
212
212
  description: i,
213
- categories: a,
213
+ categories: c,
214
214
  quote: m,
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(
215
+ canonicalText: he,
216
+ confidence: fe,
217
+ status: ge,
218
+ sourceType: ye,
219
+ expiration: Ae,
220
+ expiresAt: Ne
221
+ }, P(!0);
222
+ }, xe = (t, i) => {
223
+ x.current && d && B.mutate(
224
224
  {
225
225
  user: d,
226
226
  memoryId: x.current.id,
@@ -229,24 +229,24 @@ const Fe = ({
229
229
  },
230
230
  {
231
231
  onSuccess: () => {
232
- F(!1);
232
+ P(!1);
233
233
  }
234
234
  }
235
235
  );
236
+ }, pe = () => {
237
+ d && J(!0);
236
238
  }, ue = () => {
237
- d && Q(!0);
238
- }, ge = () => {
239
- d && (s === "active" ? j.mutate({ user: d }) : Y.mutate({ user: d }));
240
- }, Z = (t) => {
241
- const i = `${t.total} memor${t.total === 1 ? "y" : "ies"}`, a = t.totalTokenUsage ? ` (~${t.totalTokenUsage} tokens)` : "";
242
- return i + a;
239
+ d && (n === "active" ? X.mutate({ user: d }) : V.mutate({ user: d }));
240
+ }, Q = (t) => {
241
+ const i = `${t.total} memor${t.total === 1 ? "y" : "ies"}`, c = t.totalTokenUsage ? ` (~${t.totalTokenUsage} tokens)` : "";
242
+ return i + c;
243
243
  };
244
- return /* @__PURE__ */ r(D, { children: [
244
+ return /* @__PURE__ */ r(T, { children: [
245
245
  /* @__PURE__ */ e(
246
- Fe,
246
+ Pe,
247
247
  {
248
- open: me,
249
- onOpenChange: F,
248
+ open: ce,
249
+ onOpenChange: P,
250
250
  initialText: x.current?.description || "",
251
251
  metadata: x.current ? {
252
252
  categories: x.current.categories,
@@ -258,16 +258,16 @@ const Fe = ({
258
258
  expiration: x.current.expiration,
259
259
  expiresAt: x.current.expiresAt
260
260
  } : void 0,
261
- onSave: he,
262
- isSaving: P.isPending
261
+ onSave: xe,
262
+ isSaving: B.isPending
263
263
  }
264
264
  ),
265
265
  /* @__PURE__ */ r(
266
- re,
266
+ ee,
267
267
  {
268
268
  showConfirmation: ae,
269
- setShowConfirmation: K,
270
- action: xe,
269
+ setShowConfirmation: Y,
270
+ action: de,
271
271
  customStrings: {
272
272
  title: "Delete memory",
273
273
  confirmAction: "Delete",
@@ -279,33 +279,33 @@ const Fe = ({
279
279
  /* @__PURE__ */ r("li", { children: [
280
280
  "Excerpt:",
281
281
  " ",
282
- (S.current?.description || S.current?.text || "").slice(0, 80)
282
+ (w.current?.description || w.current?.text || "").slice(0, 80)
283
283
  ] }),
284
284
  /* @__PURE__ */ r("li", { children: [
285
285
  "Created:",
286
286
  " ",
287
- S.current?.createdAt ? new Date(S.current.createdAt).toLocaleString() : "-"
287
+ w.current?.createdAt ? new Date(w.current.createdAt).toLocaleString() : "-"
288
288
  ] })
289
289
  ] })
290
290
  ]
291
291
  }
292
292
  ),
293
293
  /* @__PURE__ */ e(
294
- re,
294
+ ee,
295
295
  {
296
- showConfirmation: de,
297
- setShowConfirmation: Q,
298
- action: ge,
296
+ showConfirmation: ne,
297
+ setShowConfirmation: J,
298
+ action: ue,
299
299
  customStrings: {
300
300
  title: "Delete memories",
301
301
  confirmAction: "Delete all",
302
302
  cancelAction: "Cancel"
303
303
  },
304
- children: /* @__PURE__ */ e("p", { className: "m-0", children: s === "active" ? /* @__PURE__ */ r(D, { children: [
304
+ children: /* @__PURE__ */ e("p", { className: "m-0", children: n === "active" ? /* @__PURE__ */ r(T, { children: [
305
305
  "This will permanently delete all ",
306
306
  /* @__PURE__ */ e("em", { children: "active memories" }),
307
307
  " for this user. This action cannot be undone."
308
- ] }) : /* @__PURE__ */ r(D, { children: [
308
+ ] }) : /* @__PURE__ */ r(T, { children: [
309
309
  "This will permanently delete all ",
310
310
  /* @__PURE__ */ e("em", { children: "expired memories" }),
311
311
  " for this user. This action cannot be undone."
@@ -313,57 +313,57 @@ const Fe = ({
313
313
  }
314
314
  ),
315
315
  /* @__PURE__ */ e(
316
- ce,
316
+ le,
317
317
  {
318
- open: k,
319
- onOpenChange: (t) => E(t),
318
+ open: b,
319
+ onOpenChange: (t) => k(t),
320
320
  title: "User Memories",
321
321
  animation: !0,
322
322
  animationType: "fade",
323
323
  blurEffect: "large",
324
324
  initialFocus: o,
325
- footer: /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "flex-end", children: [
326
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
325
+ footer: /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
326
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
327
327
  se,
328
328
  {
329
- onOpenChange: E,
329
+ onOpenChange: k,
330
330
  label: "Close",
331
331
  ref: o
332
332
  }
333
333
  ) }),
334
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
335
- _,
334
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
335
+ L,
336
336
  {
337
337
  mode: "dark",
338
338
  focusMode: "light",
339
339
  variant: "danger",
340
- disabled: (s === "active" ? j.isPending : Y.isPending) || (s === "active" ? (w?.total ?? 0) === 0 : (g?.total ?? 0) === 0),
341
- onClick: ue,
340
+ disabled: (n === "active" ? X.isPending : V.isPending) || (n === "active" ? (v?.total ?? 0) === 0 : (f?.total ?? 0) === 0),
341
+ onClick: pe,
342
342
  children: "Delete All"
343
343
  }
344
344
  ) })
345
345
  ] }),
346
346
  children: /* @__PURE__ */ r("div", { className: "flex flex-col gap-4 @container/editmemoriespanel", children: [
347
- /* @__PURE__ */ r(R, { columnGap: 2, alignHorizontal: "center", children: [
348
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
349
- _,
347
+ /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-center gap-x-2", children: [
348
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
349
+ L,
350
350
  {
351
351
  focusMode: "light",
352
- mode: s === "active" ? "light" : "dark",
352
+ mode: n === "active" ? "light" : "dark",
353
353
  size: "small",
354
354
  noBorder: !0,
355
- onClick: () => b("active"),
355
+ onClick: () => E("active"),
356
356
  children: "Active Memories"
357
357
  }
358
358
  ) }),
359
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
360
- _,
359
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
360
+ L,
361
361
  {
362
362
  focusMode: "light",
363
- mode: s === "expired" ? "light" : "dark",
363
+ mode: n === "expired" ? "light" : "dark",
364
364
  size: "small",
365
365
  noBorder: !0,
366
- onClick: () => b("expired"),
366
+ onClick: () => E("expired"),
367
367
  children: "Expired Memories"
368
368
  }
369
369
  ) })
@@ -371,39 +371,39 @@ const Fe = ({
371
371
  /* @__PURE__ */ e(
372
372
  "div",
373
373
  {
374
- className: C(
374
+ className: A(
375
375
  "flex flex-col sm:flex-row",
376
376
  "max-h-[75vh]",
377
377
  "sm:max-h-[75vh]",
378
378
  "min-h-[70vh]"
379
379
  ),
380
- children: s === "active" ? /* @__PURE__ */ r(D, { children: [
381
- H && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading memories..." }),
382
- $ && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load memories." }),
383
- !H && !$ && (w && w.items.length > 0 ? /* @__PURE__ */ r(
384
- ie,
380
+ children: n === "active" ? /* @__PURE__ */ r(T, { children: [
381
+ q && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading memories..." }),
382
+ j && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load memories." }),
383
+ !q && !j && (v && v.items.length > 0 ? /* @__PURE__ */ r(
384
+ te,
385
385
  {
386
386
  stickyHeader: !0,
387
387
  stickyFooter: !0,
388
388
  compact: !0,
389
389
  mode: "alt-system",
390
- caption: Z(w),
390
+ caption: Q(v),
391
391
  children: [
392
- /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ r(v, { children: [
393
- /* @__PURE__ */ e(c, { className: "sr-only", children: "Row" }),
394
- /* @__PURE__ */ e(c, { children: "Memory" }),
392
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ r(S, { children: [
393
+ /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }),
394
+ /* @__PURE__ */ e(a, { children: "Memory" }),
395
395
  /* @__PURE__ */ e(
396
- O,
396
+ I,
397
397
  {
398
398
  focusMode: "system",
399
399
  buttonClassName: "text-xs sm:text-sm",
400
400
  cellId: "createdAt",
401
401
  align: "left",
402
- sortDirection: h,
403
- sortedCell: u,
402
+ sortDirection: u,
403
+ sortedCell: h,
404
404
  onClick: () => {
405
- I("createdAt"), T("createdAt"), n((t) => {
406
- const i = t === l.ASC ? l.DESC : l.ASC;
405
+ M("createdAt"), C("createdAt"), l((t) => {
406
+ const i = t === s.ASC ? s.DESC : s.ASC;
407
407
  return p(i), i;
408
408
  });
409
409
  },
@@ -411,47 +411,47 @@ const Fe = ({
411
411
  }
412
412
  ),
413
413
  /* @__PURE__ */ e(
414
- O,
414
+ I,
415
415
  {
416
416
  focusMode: "system",
417
417
  buttonClassName: "text-xs sm:text-sm",
418
418
  cellId: "expiresAt",
419
419
  align: "left",
420
- sortDirection: h,
421
- sortedCell: u,
420
+ sortDirection: u,
421
+ sortedCell: h,
422
422
  onClick: () => {
423
- I("expiresAt"), T("expiresAt"), n((t) => {
424
- const i = t === l.ASC ? l.DESC : l.ASC;
423
+ M("expiresAt"), C("expiresAt"), l((t) => {
424
+ const i = t === s.ASC ? s.DESC : s.ASC;
425
425
  return p(i), i;
426
426
  });
427
427
  },
428
428
  children: "Expires"
429
429
  }
430
430
  ),
431
- /* @__PURE__ */ e(c, { align: "right", children: "Actions" })
431
+ /* @__PURE__ */ e(a, { align: "right", children: "Actions" })
432
432
  ] }) }),
433
- /* @__PURE__ */ e(ne, { children: [...w.items].sort((t, i) => {
434
- if (u === "createdAt") {
435
- const a = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
436
- return h === l.ASC ? a - m : m - a;
433
+ /* @__PURE__ */ e(ie, { children: [...v.items].sort((t, i) => {
434
+ if (h === "createdAt") {
435
+ const c = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
436
+ return u === s.ASC ? c - m : m - c;
437
437
  }
438
- if (u === "expiresAt") {
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;
440
- return h === l.ASC ? a - m : m - a;
438
+ if (h === "expiresAt") {
439
+ const c = t.expiresAt ? new Date(t.expiresAt).getTime() : Number.MAX_SAFE_INTEGER, m = i.expiresAt ? new Date(i.expiresAt).getTime() : Number.MAX_SAFE_INTEGER;
440
+ return u === s.ASC ? c - m : m - c;
441
441
  }
442
442
  return 0;
443
- }).map((t, i) => /* @__PURE__ */ r(v, { children: [
443
+ }).map((t, i) => /* @__PURE__ */ r(S, { children: [
444
444
  /* @__PURE__ */ e(
445
- c,
445
+ a,
446
446
  {
447
- className: C("dark:text-copy-medium"),
447
+ className: A("dark:text-copy-medium"),
448
448
  children: i + 1
449
449
  }
450
450
  ),
451
451
  /* @__PURE__ */ e(
452
- c,
452
+ a,
453
453
  {
454
- className: C(
454
+ className: A(
455
455
  "dark:text-copy-lighter",
456
456
  "max-w-25 sm:max-w-100",
457
457
  "text-xs sm:text-sm"
@@ -463,9 +463,9 @@ const Fe = ({
463
463
  }
464
464
  ),
465
465
  /* @__PURE__ */ e(
466
- c,
466
+ a,
467
467
  {
468
- className: C(
468
+ className: A(
469
469
  "dark:text-copy-medium",
470
470
  "sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
471
471
  ),
@@ -473,9 +473,9 @@ const Fe = ({
473
473
  }
474
474
  ),
475
475
  /* @__PURE__ */ e(
476
- c,
476
+ a,
477
477
  {
478
- className: C(
478
+ className: A(
479
479
  "dark:text-copy-medium",
480
480
  "sm:whitespace-nowrap text-xs sm:text-sm"
481
481
  ),
@@ -483,89 +483,82 @@ const Fe = ({
483
483
  }
484
484
  ),
485
485
  /* @__PURE__ */ e(
486
- c,
486
+ a,
487
487
  {
488
488
  className: "align-top border-l border-table-light dark:border-table-dark",
489
489
  align: "right",
490
- children: /* @__PURE__ */ r(
491
- R,
492
- {
493
- columnGap: 2,
494
- alignHorizontal: "flex-end",
495
- children: [
496
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
497
- U,
490
+ children: /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
491
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
492
+ U,
493
+ {
494
+ label: "Edit memory",
495
+ mode: "system",
496
+ placement: "top",
497
+ trigger: /* @__PURE__ */ e(
498
+ F,
498
499
  {
500
+ focusMode: "system",
501
+ noBorder: !0,
499
502
  label: "Edit memory",
500
- mode: "system",
501
- placement: "top",
502
- trigger: /* @__PURE__ */ e(
503
- G,
504
- {
505
- focusMode: "system",
506
- noBorder: !0,
507
- label: "Edit memory",
508
- variant: "primary",
509
- disabled: P.isPending,
510
- onClick: () => pe(
511
- t.memoryId,
512
- t.description || t.text,
513
- t.categories,
514
- t.quote,
515
- t.canonicalText,
516
- t.confidence,
517
- t.status,
518
- t.sourceType,
519
- t.expiration,
520
- t.expiresAt
521
- ),
522
- children: /* @__PURE__ */ e(Le, { size: "size-3", monotone: !0 })
523
- }
524
- )
525
- }
526
- ) }),
527
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
528
- ze,
529
- {
530
- label: "Delete memory",
503
+ variant: "primary",
531
504
  disabled: B.isPending,
532
- onClick: () => W(
505
+ onClick: () => me(
533
506
  t.memoryId,
534
- t.text,
535
- t.description,
536
- t.createdAt
537
- )
507
+ t.description || t.text,
508
+ t.categories,
509
+ t.quote,
510
+ t.canonicalText,
511
+ t.confidence,
512
+ t.status,
513
+ t.sourceType,
514
+ t.expiration,
515
+ t.expiresAt
516
+ ),
517
+ children: /* @__PURE__ */ e(Re, { size: "size-3", monotone: !0 })
538
518
  }
539
- ) })
540
- ]
541
- }
542
- )
519
+ )
520
+ }
521
+ ) }),
522
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
523
+ Oe,
524
+ {
525
+ label: "Delete memory",
526
+ disabled: _.isPending,
527
+ onClick: () => K(
528
+ t.memoryId,
529
+ t.text,
530
+ t.description,
531
+ t.createdAt
532
+ )
533
+ }
534
+ ) })
535
+ ] })
543
536
  }
544
537
  )
545
538
  ] }, t.memoryId)) }),
546
- /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(c, { colSpan: 5, children: Z(w) }) }) })
539
+ /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(a, { colSpan: 5, children: Q(v) }) }) })
547
540
  ]
548
541
  }
549
542
  ) : /* @__PURE__ */ e("p", { className: "m-0 italic opacity-70", children: "No memories stored." }))
550
- ] }) : /* @__PURE__ */ r(D, { children: [
551
- X && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading expired memories..." }),
552
- V && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load expired memories." }),
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" }),
543
+ ] }) : /* @__PURE__ */ r(T, { children: [
544
+ G && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading expired memories..." }),
545
+ $ && /* @__PURE__ */ e("p", { className: "m-0 text-copy-error-light", children: "Failed to load expired memories." }),
546
+ !G && !$ && (f && f.items.length > 0 ? /* @__PURE__ */ r(te, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
547
+ /* @__PURE__ */ e(re, { children: /* @__PURE__ */ r(S, { children: [
548
+ /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }),
549
+ /* @__PURE__ */ e(a, { children: "Memory" }),
557
550
  /* @__PURE__ */ e(
558
- O,
551
+ I,
559
552
  {
560
553
  focusMode: "system",
561
554
  buttonClassName: "text-xs sm:text-sm",
562
555
  cellId: "createdAt",
563
556
  align: "left",
564
- sortDirection: h,
565
- sortedCell: u,
557
+ sortDirection: u,
558
+ sortedCell: h,
566
559
  onClick: () => {
567
- I("createdAt"), T("createdAt"), n((t) => {
568
- const i = t === l.ASC ? l.DESC : l.ASC;
560
+ M("createdAt"), C("createdAt"), l((t) => {
561
+ const i = t === s.ASC ? s.DESC : s.ASC;
569
562
  return p(i), i;
570
563
  });
571
564
  },
@@ -573,47 +566,47 @@ const Fe = ({
573
566
  }
574
567
  ),
575
568
  /* @__PURE__ */ e(
576
- O,
569
+ I,
577
570
  {
578
571
  focusMode: "system",
579
572
  buttonClassName: "text-xs sm:text-sm",
580
573
  cellId: "expiresAt",
581
574
  align: "left",
582
- sortDirection: h,
583
- sortedCell: u,
575
+ sortDirection: u,
576
+ sortedCell: h,
584
577
  onClick: () => {
585
- I("expiresAt"), T("expiresAt"), n((t) => {
586
- const i = t === l.ASC ? l.DESC : l.ASC;
578
+ M("expiresAt"), C("expiresAt"), l((t) => {
579
+ const i = t === s.ASC ? s.DESC : s.ASC;
587
580
  return p(i), i;
588
581
  });
589
582
  },
590
583
  children: "Expired"
591
584
  }
592
585
  ),
593
- /* @__PURE__ */ e(c, { align: "right", children: "Actions" })
586
+ /* @__PURE__ */ e(a, { align: "right", children: "Actions" })
594
587
  ] }) }),
595
- /* @__PURE__ */ e(ne, { children: [...g.items].sort((t, i) => {
596
- if (u === "createdAt") {
597
- const a = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
598
- return h === l.ASC ? a - m : m - a;
588
+ /* @__PURE__ */ e(ie, { children: [...f.items].sort((t, i) => {
589
+ if (h === "createdAt") {
590
+ const c = t.createdAt ? new Date(t.createdAt).getTime() : 0, m = i.createdAt ? new Date(i.createdAt).getTime() : 0;
591
+ return u === s.ASC ? c - m : m - c;
599
592
  }
600
- if (u === "expiresAt") {
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;
602
- return h === l.ASC ? a - m : m - a;
593
+ if (h === "expiresAt") {
594
+ const c = t.expiresAt ? new Date(t.expiresAt).getTime() : Number.MAX_SAFE_INTEGER, m = i.expiresAt ? new Date(i.expiresAt).getTime() : Number.MAX_SAFE_INTEGER;
595
+ return u === s.ASC ? c - m : m - c;
603
596
  }
604
597
  return 0;
605
- }).map((t, i) => /* @__PURE__ */ r(v, { children: [
598
+ }).map((t, i) => /* @__PURE__ */ r(S, { children: [
606
599
  /* @__PURE__ */ e(
607
- c,
600
+ a,
608
601
  {
609
- className: C("dark:text-copy-medium"),
602
+ className: A("dark:text-copy-medium"),
610
603
  children: i + 1
611
604
  }
612
605
  ),
613
606
  /* @__PURE__ */ e(
614
- c,
607
+ a,
615
608
  {
616
- className: C(
609
+ className: A(
617
610
  "dark:text-copy-lighter",
618
611
  "max-w-25 sm:max-w-100",
619
612
  "text-xs sm:text-sm"
@@ -625,9 +618,9 @@ const Fe = ({
625
618
  }
626
619
  ),
627
620
  /* @__PURE__ */ e(
628
- c,
621
+ a,
629
622
  {
630
- className: C(
623
+ className: A(
631
624
  "dark:text-copy-medium",
632
625
  "sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none"
633
626
  ),
@@ -635,9 +628,9 @@ const Fe = ({
635
628
  }
636
629
  ),
637
630
  /* @__PURE__ */ e(
638
- c,
631
+ a,
639
632
  {
640
- className: C(
633
+ className: A(
641
634
  "dark:text-copy-medium",
642
635
  "sm:whitespace-nowrap text-xs sm:text-sm"
643
636
  ),
@@ -645,87 +638,80 @@ const Fe = ({
645
638
  }
646
639
  ),
647
640
  /* @__PURE__ */ e(
648
- c,
641
+ a,
649
642
  {
650
643
  className: "align-top border-l border-table-light dark:border-table-dark",
651
644
  align: "right",
652
- children: /* @__PURE__ */ r(
653
- R,
654
- {
655
- columnGap: 2,
656
- alignHorizontal: "flex-end",
657
- children: [
658
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
659
- U,
645
+ children: /* @__PURE__ */ r("div", { className: "flex flex-wrap justify-end gap-x-2", children: [
646
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
647
+ U,
648
+ {
649
+ label: "Restore memory",
650
+ mode: "system",
651
+ placement: "top",
652
+ trigger: /* @__PURE__ */ e(
653
+ F,
660
654
  {
655
+ focusMode: "system",
656
+ noBorder: !0,
661
657
  label: "Restore memory",
662
- mode: "system",
663
- placement: "top",
664
- trigger: /* @__PURE__ */ e(
665
- G,
666
- {
667
- focusMode: "system",
668
- noBorder: !0,
669
- label: "Restore memory",
670
- variant: "primary",
671
- disabled: J.isPending,
672
- onClick: () => {
673
- d && J.mutate({
674
- user: d,
675
- memoryId: t.memoryId
676
- });
677
- },
678
- children: /* @__PURE__ */ e(Oe, { size: "size-3", monotone: !0 })
679
- }
680
- )
658
+ variant: "primary",
659
+ disabled: H.isPending,
660
+ onClick: () => {
661
+ d && H.mutate({
662
+ user: d,
663
+ memoryId: t.memoryId
664
+ });
665
+ },
666
+ children: /* @__PURE__ */ e(Ie, { size: "size-3", monotone: !0 })
681
667
  }
682
- ) }),
683
- /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
684
- U,
668
+ )
669
+ }
670
+ ) }),
671
+ /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ e(
672
+ U,
673
+ {
674
+ label: "Delete memory",
675
+ mode: "system",
676
+ placement: "top",
677
+ trigger: /* @__PURE__ */ e(
678
+ F,
685
679
  {
680
+ focusMode: "system",
681
+ noBorder: !0,
686
682
  label: "Delete memory",
687
- mode: "system",
688
- placement: "top",
689
- trigger: /* @__PURE__ */ e(
690
- G,
691
- {
692
- focusMode: "system",
693
- noBorder: !0,
694
- label: "Delete memory",
695
- variant: "primary",
696
- iconClassName: "text-copy-error-dark dark:text-copy-error-light",
697
- disabled: B.isPending,
698
- onClick: () => W(
699
- t.memoryId,
700
- t.text,
701
- t.description,
702
- t.createdAt
703
- ),
704
- children: /* @__PURE__ */ e(_e, { size: "size-3", monotone: !0 })
705
- }
706
- )
683
+ variant: "primary",
684
+ iconClassName: "text-copy-error-dark dark:text-copy-error-light",
685
+ disabled: _.isPending,
686
+ onClick: () => K(
687
+ t.memoryId,
688
+ t.text,
689
+ t.description,
690
+ t.createdAt
691
+ ),
692
+ children: /* @__PURE__ */ e(Le, { size: "size-3", monotone: !0 })
707
693
  }
708
- ) })
709
- ]
710
- }
711
- )
694
+ )
695
+ }
696
+ ) })
697
+ ] })
712
698
  }
713
699
  )
714
700
  ] }, t.memoryId)) }),
715
- /* @__PURE__ */ e(le, { children: /* @__PURE__ */ e(v, { children: /* @__PURE__ */ r(c, { colSpan: 5, children: [
716
- g.total,
701
+ /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ r(a, { colSpan: 5, children: [
702
+ f.total,
717
703
  " expired memor",
718
- g.total === 1 ? "y" : "ies",
719
- g.totalTokenUsage !== void 0 && g.totalTokenUsage > 0 && /* @__PURE__ */ r(D, { children: [
704
+ f.total === 1 ? "y" : "ies",
705
+ f.totalTokenUsage !== void 0 && f.totalTokenUsage > 0 && /* @__PURE__ */ r(T, { children: [
720
706
  " ",
721
707
  "(approximately",
722
708
  " ",
723
709
  Math.round(
724
- g.totalTokenUsage
710
+ f.totalTokenUsage
725
711
  ).toLocaleString(),
726
712
  " ",
727
713
  "token",
728
- Math.round(g.totalTokenUsage) === 1 ? "" : "s",
714
+ Math.round(f.totalTokenUsage) === 1 ? "" : "s",
729
715
  ")"
730
716
  ] })
731
717
  ] }) }) })
@@ -739,5 +725,5 @@ const Fe = ({
739
725
  ] });
740
726
  };
741
727
  export {
742
- Ye as default
728
+ Ve as default
743
729
  };