@versini/sassysaint 8.83.1 → 8.85.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. package/dist/chunks/{AboutChangelog.mWn6DHnN.js → AboutChangelog.Cmviu4q-.js} +3 -3
  2. package/dist/chunks/{AboutEntry.CF0h629q.js → AboutEntry.Hi0jo6Cb.js} +5 -5
  3. package/dist/chunks/{App.ByR7hh4G.js → App.B6stoZHi.js} +823 -820
  4. package/dist/chunks/{Chart.BOrnLtUH.js → Chart.-Zf5n2lJ.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.BbKm4kCr.js → ChatBubbleAssistant.CJ9ZlMsQ.js} +10 -10
  6. package/dist/chunks/{ChatBubbleUser.CSd4FUFb.js → ChatBubbleUser.DrAvgLQQ.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.OhJzHZwR.js → ChatHistoryTable.lIRb_XTS.js} +12 -12
  8. package/dist/chunks/{HistoryEntry.DuHoMXgy.js → HistoryEntry.BkHfgtzh.js} +137 -106
  9. package/dist/chunks/ProfileEntry.BuGuaJZ7.js +200 -0
  10. package/dist/chunks/{SettingsEntry.W5dfrzDj.js → SettingsEntry.C5p3uHQS.js} +21 -21
  11. package/dist/chunks/{UsageEntry.BlC_GEWV.js → UsageEntry.BR0TAHBi.js} +7 -7
  12. package/dist/chunks/{UserMemoriesPanel.pk5CBYkd.js → UserMemoriesPanel.I6TEjRS_.js} +12 -10
  13. package/dist/chunks/{index.xYO9MQ7q.js → index.-hZzCrDt.js} +1 -1
  14. package/dist/chunks/{index.X83cFhfe.js → index.CMqrKzc1.js} +1 -1
  15. package/dist/chunks/{index.Dm0B1x9v.js → index.DrgEENCo.js} +1 -1
  16. package/dist/chunks/{index.DosDfPyo.js → index.DuJhOApx.js} +1 -1
  17. package/dist/chunks/{index.DvwicTLq.js → index.Hwof3Goa.js} +1217 -1271
  18. package/dist/chunks/{index.eSkzK0sZ.js → index.ZEvOt3IK.js} +2 -2
  19. package/dist/chunks/{index.LWfh_Nx0.js → index.f-Tyvnqq.js} +1 -1
  20. package/dist/chunks/{index.C4Kp9caJ.js → index.mKL_Oq89.js} +1 -1
  21. package/dist/chunks/{index.Dq1H4UoP.js → index.oca08k9S.js} +3 -3
  22. package/dist/chunks/{useMarkdown.Bxe6gfSy.js → useMarkdown.DSduoaoO.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +3 -3
  27. package/dist/chunks/ProfileEntry.CTvtlf06.js +0 -181
@@ -0,0 +1,200 @@
1
+ import { jsxs as l, Fragment as K, jsx as e } from "react/jsx-runtime";
2
+ import { n as O, useUniqueId as W, useUserPreferences as Y, useServerCapabilities as $, H as V, setUserPlan as q, Card as d, renderDataAsList as J, CARDS as n, L as h, j$1 as i, Button as L, it as Q, isTauri as X, ButtonIcon as Z, IconPasskey as g, PROFILE_TITLE as ee } from "./index.Hwof3Goa.js";
3
+ import { preloadToast as ae, showSuccessToast as se, showErrorToast as ne, ConfirmationPanel as re, LazyToastContainerWrapper as le, Panel as te } from "./App.B6stoZHi.js";
4
+ import ie from "clsx";
5
+ import { useState as m, useMemo as oe, useCallback as P } from "react";
6
+ const ce = () => {
7
+ const {
8
+ isAuthenticated: u,
9
+ user: s,
10
+ registeringForPasskey: y,
11
+ authenticationType: v,
12
+ getAccessToken: p
13
+ } = O(), [x, N] = m(null), [T, F] = m(!1), [U, C] = m(!1), [t, w] = m(null), z = W(), A = s?.username || "", {
14
+ data: E,
15
+ isSuccess: B,
16
+ refetch: I
17
+ } = Y({
18
+ user: s?.username,
19
+ getAccessToken: p
20
+ }), { data: S, isSuccess: f } = $(), R = oe(() => !f || !S?.plans ? [] : S.plans.map((a) => ({
21
+ id: a.name,
22
+ label: a.label,
23
+ description: a.description,
24
+ features: a.features,
25
+ models: a.allowedModels.map(
26
+ (r) => V[r] || r
27
+ )
28
+ })), [f, S?.plans]), k = P(() => {
29
+ T || (ae(), F(!0));
30
+ }, [T]), _ = P(async () => {
31
+ if (!(!t || !s?.username))
32
+ try {
33
+ N(t.id), await q({
34
+ plan: t.id,
35
+ accessToken: await p(),
36
+ username: s.username
37
+ }), await I(), await se(
38
+ `${n.PLANS.SWITCH_SUCCESS} ${t.label}`,
39
+ {
40
+ containerId: "profile-plan-selection"
41
+ }
42
+ );
43
+ } catch {
44
+ await ne(n.PLANS.SWITCH_ERROR, {
45
+ containerId: "profile-plan-selection"
46
+ });
47
+ } finally {
48
+ N(null), w(null);
49
+ }
50
+ }, [p, t, I, s?.username]), M = P(
51
+ (a, r) => {
52
+ !s?.username || a === E?.plan || (w({ id: a, label: r }), C(!0));
53
+ },
54
+ [E?.plan, s?.username]
55
+ );
56
+ return u && A ? /* @__PURE__ */ l(K, { children: [
57
+ /* @__PURE__ */ e(
58
+ re,
59
+ {
60
+ showConfirmation: U,
61
+ setShowConfirmation: C,
62
+ action: _,
63
+ customStrings: {
64
+ confirmAction: "Switch Plan",
65
+ cancelAction: "Cancel",
66
+ title: "Switch Plan"
67
+ },
68
+ children: t && /* @__PURE__ */ l("p", { className: "m-0", children: [
69
+ "Are you sure you want to switch to the following plan:",
70
+ " ",
71
+ /* @__PURE__ */ e("span", { className: "font-semibold", children: t.label })
72
+ ] })
73
+ }
74
+ ),
75
+ /* @__PURE__ */ e("div", { className: "av-sassy", children: /* @__PURE__ */ e(le, { containerId: "profile-plan-selection" }) }),
76
+ /* @__PURE__ */ e(
77
+ d,
78
+ {
79
+ header: n.PREFERENCES.TITLE,
80
+ className: "prose-dark dark:prose-lighter",
81
+ noBorder: !0,
82
+ children: J(z, {
83
+ [n.PREFERENCES.USERNAME]: A,
84
+ [n.PREFERENCES.EMAIL]: s?.email || ""
85
+ })
86
+ }
87
+ ),
88
+ B && f && R.length > 0 && /* @__PURE__ */ l(
89
+ d,
90
+ {
91
+ header: n.PLANS.TITLE,
92
+ className: "prose-dark dark:prose-lighter mt-4",
93
+ noBorder: !0,
94
+ children: [
95
+ /* @__PURE__ */ e("p", { className: "text-sm", children: n.PLANS.DESCRIPTION }),
96
+ /* @__PURE__ */ e(h, { columnGap: 3, rowGap: 3, className: "mt-4", children: R.map(({ id: a, label: r, description: G, features: j, models: D }) => {
97
+ const c = E?.plan === a, H = c ? n.PLANS.ACTIVE_BADGE : `Get ${r}`, b = x === a;
98
+ return /* @__PURE__ */ e(i, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(d, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ l(h, { direction: "column", children: [
99
+ /* @__PURE__ */ l(i, { children: [
100
+ /* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ l("div", { children: [
101
+ /* @__PURE__ */ e(
102
+ "h3",
103
+ {
104
+ className: ie("m-0", {
105
+ "text-emerald-400": c
106
+ }),
107
+ children: r
108
+ }
109
+ ),
110
+ /* @__PURE__ */ e("p", { className: "mb-0 text-sm opacity-80", children: G })
111
+ ] }) }),
112
+ /* @__PURE__ */ e("h4", { children: "Features" }),
113
+ /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: j.map((o) => /* @__PURE__ */ e("li", { children: o }, o)) }),
114
+ /* @__PURE__ */ e("h4", { children: "Models" }),
115
+ /* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: D.map((o) => /* @__PURE__ */ e("li", { children: o }, o)) })
116
+ ] }),
117
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
118
+ L,
119
+ {
120
+ mode: "dark",
121
+ size: "small",
122
+ variant: c ? "selected" : "secondary",
123
+ className: "mt-4",
124
+ fullWidth: !0,
125
+ disabled: c || b,
126
+ onClick: () => {
127
+ M(a, r);
128
+ },
129
+ onMouseEnter: k,
130
+ onFocus: k,
131
+ children: b ? "Updating..." : H
132
+ }
133
+ ) })
134
+ ] }) }) }, a);
135
+ }) })
136
+ ]
137
+ }
138
+ ),
139
+ v !== Q.PASSKEY && !X() && /* @__PURE__ */ l(
140
+ d,
141
+ {
142
+ className: "prose-dark dark:prose-lighter mt-4",
143
+ noBorder: !0,
144
+ header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ l(h, { columnGap: 3, alignVertical: "center", children: [
145
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(g, { size: "size-8" }) }),
146
+ /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { children: n.PREFERENCES.PASSKEY_TITLE }) })
147
+ ] }) }),
148
+ children: [
149
+ /* @__PURE__ */ e("p", { children: n.PREFERENCES.PASSKEY_INSTRUCTIONS }),
150
+ /* @__PURE__ */ e(
151
+ Z,
152
+ {
153
+ variant: "selected",
154
+ size: "small",
155
+ className: "mt-2",
156
+ onClick: y,
157
+ labelLeft: n.PREFERENCES.PASSKEY_BUTTON,
158
+ children: /* @__PURE__ */ e(g, { size: "size-5", monotone: !0 })
159
+ }
160
+ )
161
+ ]
162
+ }
163
+ )
164
+ ] }) : null;
165
+ }, Ee = ({
166
+ open: u,
167
+ onOpenChange: s
168
+ }) => /* @__PURE__ */ e(
169
+ te,
170
+ {
171
+ open: u,
172
+ onOpenChange: s,
173
+ title: ee,
174
+ animation: !0,
175
+ animationType: "fade",
176
+ footer: /* @__PURE__ */ e(
177
+ h,
178
+ {
179
+ columnGap: 2,
180
+ alignHorizontal: "flex-end",
181
+ className: "pb-8 sm:pb-0",
182
+ children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
183
+ L,
184
+ {
185
+ mode: "dark",
186
+ variant: "secondary",
187
+ focusMode: "light",
188
+ noBorder: !0,
189
+ onClick: () => s(!1),
190
+ children: "Dismiss"
191
+ }
192
+ ) })
193
+ }
194
+ ),
195
+ children: /* @__PURE__ */ e(ce, {})
196
+ }
197
+ );
198
+ export {
199
+ Ee as Profile
200
+ };
@@ -1,30 +1,30 @@
1
1
  import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { n as je, useEntitlements as Ve, AppContext as Fe, useUserPreferences as We, V as ie, useLocalStorage as de, LOCAL_STORAGE_OLED_MODE as $e, LOCAL_STORAGE_FULL_SCREEN as ze, k as ue, canEvaluateModels as He, Y as Ye, getCacheInfo as qe, isServiceWorkerEnabled as Ke, SETTINGS_TITLE as Qe, Card as E, CARDS as r, b as Je, Button as v, PROMPTS_DESCRIPTION as Xe, e_ as me, L as Ze, j as he, applyOledMode as Ee, APP_SET_OLED_MODE as fe, APP_SET_FULL_SCREEN as Se, getCurrentGeoLocation as et, graphQLRequest as pe, handleServiceWorkerToggle as tt, SERVICE_TYPES as ge } from "./index.DvwicTLq.js";
3
- import { useCapability as be, Panel as ot, Toggle as l } from "./App.ByR7hh4G.js";
4
- import { TextArea as Te } from "./index.X83cFhfe.js";
2
+ import { n as je, useEntitlements as Ve, AppContext as Fe, useUserPreferences as We, j as ie, useLocalStorage as de, LOCAL_STORAGE_OLED_MODE as $e, LOCAL_STORAGE_FULL_SCREEN as ze, e as ue, canEvaluateModels as He, Z as Ye, getCacheInfo as qe, isServiceWorkerEnabled as Ke, SETTINGS_TITLE as Qe, Card as E, CARDS as r, w as Ze, Button as v, PROMPTS_DESCRIPTION as Je, ee as me, L as Xe, j$1 as he, applyOledMode as Ee, APP_SET_OLED_MODE as fe, APP_SET_FULL_SCREEN as Se, getCurrentGeoLocation as et, graphQLRequest as pe, handleServiceWorkerToggle as tt, SERVICE_TYPES as ge } from "./index.Hwof3Goa.js";
3
+ import { useCapability as be, Panel as ot, Toggle as l } from "./App.B6stoZHi.js";
4
+ import { TextArea as Te } from "./index.CMqrKzc1.js";
5
5
  import { useContext as at, useState as a, useMemo as st, useCallback as nt, useEffect as Ne } from "react";
6
6
  const ut = ({
7
7
  open: Ce,
8
8
  onOpenChange: A
9
9
  }) => {
10
- const { getAccessToken: I, user: R } = je(), { allowedModels: w, status: B } = Ve(), { dispatch: g } = at(Fe), {
10
+ const { getAccessToken: w, user: R } = je(), { allowedModels: I, status: B } = Ve(), { dispatch: g } = at(Fe), {
11
11
  data: o,
12
12
  isSuccess: ye,
13
13
  refetch: x
14
14
  } = We({
15
15
  user: R?.username,
16
- getAccessToken: I
16
+ getAccessToken: w
17
17
  }), [G, b] = a({
18
18
  loadingLocation: !1
19
19
  }), [L, U] = a({
20
20
  prompts: []
21
- }), [j, V] = a(""), [F, T] = a(""), [W, $] = a(!1), [z, H] = a(!1), [N, Y] = a(!1), [C, q] = a(!1), [K, Q] = a(!1), [k, J] = a(!1), [f, X] = a(null), [Z, ee] = a(!1), [te, oe] = a(!1), ae = be(ie.TOOL.MEMORIES), se = be(ie.ADDON.REASONING), [i, Ie] = de({
21
+ }), [j, V] = a(""), [F, T] = a(""), [W, $] = a(!1), [z, H] = a(!1), [N, Y] = a(!1), [C, q] = a(!1), [K, Q] = a(!1), [k, Z] = a(!1), [f, J] = a(null), [X, ee] = a(!1), [te, oe] = a(!1), ae = be(ie.TOOL.MEMORIES), se = be(ie.ADDON.REASONING), [i, we] = de({
22
22
  key: $e,
23
23
  initialValue: !1
24
- }), [u, we] = de({
24
+ }), [u, Ie] = de({
25
25
  key: ze,
26
26
  initialValue: !1
27
- }), [m, M] = a(!1), [S, D] = a(!1), [ne, re] = a(ue), Le = st(() => He(w, B) ? Ye(w) : !1, [w, B]), ke = (e) => {
27
+ }), [m, M] = a(!1), [S, D] = a(!1), [ne, re] = a(ue), Le = st(() => He(I, B) ? Ye(I) : !1, [I, B]), ke = (e) => {
28
28
  oe(e);
29
29
  }, Me = (e) => {
30
30
  $(e);
@@ -35,7 +35,7 @@ const ut = ({
35
35
  }, Oe = (e) => {
36
36
  se && Q(e);
37
37
  }, Pe = (e) => {
38
- J(e);
38
+ Z(e);
39
39
  }, ve = (e) => {
40
40
  M(e);
41
41
  }, Ae = (e) => {
@@ -46,7 +46,7 @@ const ut = ({
46
46
  e.preventDefault();
47
47
  try {
48
48
  await pe({
49
- accessToken: await I(),
49
+ accessToken: await w(),
50
50
  type: ge.SET_USER_PREFERENCES,
51
51
  params: {
52
52
  user: R?.username,
@@ -67,10 +67,10 @@ const ut = ({
67
67
  useNestedModelSelection: k,
68
68
  themeMode: ne
69
69
  }
70
- }), C !== N && (await tt(C), Y(C)), m !== i && (Ie(m), Ee(m), g({
70
+ }), C !== N && (await tt(C), Y(C)), m !== i && (we(m), Ee(m), g({
71
71
  type: fe,
72
72
  payload: { oledMode: m }
73
- })), S !== u && (we(S), g({
73
+ })), S !== u && (Ie(S), g({
74
74
  type: Se,
75
75
  payload: { fullScreen: S }
76
76
  })), x(), b({
@@ -84,7 +84,7 @@ const ut = ({
84
84
  }), T("...");
85
85
  try {
86
86
  const e = Date.now(), s = await et(), y = await pe({
87
- accessToken: await I(),
87
+ accessToken: await w(),
88
88
  type: ge.GET_LOCATION,
89
89
  params: {
90
90
  latitude: s.latitude,
@@ -136,7 +136,7 @@ const ut = ({
136
136
  try {
137
137
  ee(!0);
138
138
  const e = await qe();
139
- X(e);
139
+ J(e);
140
140
  } catch {
141
141
  } finally {
142
142
  ee(!1);
@@ -145,11 +145,11 @@ const ut = ({
145
145
  return Ne(() => {
146
146
  if (!o)
147
147
  return;
148
- o.instructions && V(o.instructions), o.location && T(o.location), o.tags && U({ prompts: o.tags }), o.sendOnEnter !== void 0 && $(o.sendOnEnter), o.useMemory !== void 0 && H(o.useMemory), o.showDetails !== void 0 && oe(o.showDetails), o.showReasoningButton !== void 0 && Q(o.showReasoningButton), o.useNestedModelSelection !== void 0 && J(o.useNestedModelSelection), o.themeMode !== void 0 && re(o.themeMode);
148
+ o.instructions && V(o.instructions), o.location && T(o.location), o.tags && U({ prompts: o.tags }), o.sendOnEnter !== void 0 && $(o.sendOnEnter), o.useMemory !== void 0 && H(o.useMemory), o.showDetails !== void 0 && oe(o.showDetails), o.showReasoningButton !== void 0 && Q(o.showReasoningButton), o.useNestedModelSelection !== void 0 && Z(o.useNestedModelSelection), o.themeMode !== void 0 && re(o.themeMode);
149
149
  const e = Ke();
150
150
  Y(e), q(e), M(i), D(u);
151
151
  }, [o, i, u]), Ne(() => {
152
- N ? ce() : X(null);
152
+ N ? ce() : J(null);
153
153
  }, [N, ce]), ye ? /* @__PURE__ */ n(
154
154
  ot,
155
155
  {
@@ -159,7 +159,7 @@ const ut = ({
159
159
  animation: !0,
160
160
  animationType: "fade",
161
161
  footer: /* @__PURE__ */ n(
162
- Ze,
162
+ Xe,
163
163
  {
164
164
  columnGap: 2,
165
165
  alignHorizontal: "flex-end",
@@ -252,7 +252,7 @@ const ut = ({
252
252
  children: [
253
253
  /* @__PURE__ */ n("p", { className: "text-sm", children: [
254
254
  "What would you like ",
255
- /* @__PURE__ */ t("em", { children: Je }),
255
+ /* @__PURE__ */ t("em", { children: Ze }),
256
256
  " to know about you to provide better responses?"
257
257
  ] }),
258
258
  /* @__PURE__ */ t(
@@ -317,7 +317,7 @@ const ut = ({
317
317
  className: "prose-dark dark:prose-lighter mt-4",
318
318
  noBorder: !0,
319
319
  children: [
320
- /* @__PURE__ */ t("p", { className: "text-sm", children: Xe }),
320
+ /* @__PURE__ */ t("p", { className: "text-sm", children: Je }),
321
321
  L.prompts && L.prompts.slice(0, 3).map((e) => /* @__PURE__ */ n(
322
322
  E,
323
323
  {
@@ -502,8 +502,8 @@ const ut = ({
502
502
  },
503
503
  s
504
504
  )) }) }, e.name)),
505
- f.totalItems === 0 && !Z && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
506
- ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: Z ? "Loading cache info..." : "No cache info available." })
505
+ f.totalItems === 0 && !X && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
506
+ ] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: X ? "Loading cache info..." : "No cache info available." })
507
507
  ] })
508
508
  ]
509
509
  }
@@ -1,13 +1,13 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, useUniqueId as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, Card as g, renderDataAsList as P, CARDS as a, L as p, j as A, Button as i, pluralize as m } from "./index.DvwicTLq.js";
3
- import { Panel as H } from "./App.ByR7hh4G.js";
4
- import { useState as C, Suspense as K, lazy as j } from "react";
2
+ import { n as f, useUniqueId as v, useUserChatStats as _, useChatsUsage as z, USAGE_TITLE as B, Card as g, renderDataAsList as P, CARDS as a, L as p, j$1 as A, Button as i, pluralize as m } from "./index.Hwof3Goa.js";
3
+ import { Panel as j } from "./App.B6stoZHi.js";
4
+ import { useState as C, Suspense as H, lazy as K } from "react";
5
5
  const s = [0, 3, 6, 9], n = {
6
6
  TOKEN: "token",
7
7
  MODEL: "model"
8
- }, w = j(() => import(
8
+ }, w = K(() => import(
9
9
  /* webpackChunkName: "LazyChart" */
10
- "./Chart.BOrnLtUH.js"
10
+ "./Chart.-Zf5n2lJ.js"
11
11
  )), R = ({
12
12
  open: k,
13
13
  onOpenChange: E
@@ -28,7 +28,7 @@ const s = [0, 3, 6, 9], n = {
28
28
  I(s[u]);
29
29
  };
30
30
  return /* @__PURE__ */ l(
31
- H,
31
+ j,
32
32
  {
33
33
  open: k,
34
34
  onOpenChange: E,
@@ -65,7 +65,7 @@ const s = [0, 3, 6, 9], n = {
65
65
  header: a.MAIN_STATISTICS.USAGE,
66
66
  className: "prose-dark dark:prose-lighter mt-4 min-h-[555px]",
67
67
  noBorder: !0,
68
- children: M && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ l(K, { fallback: /* @__PURE__ */ e("div", {}), children: [
68
+ children: M && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ l(H, { fallback: /* @__PURE__ */ e("div", {}), children: [
69
69
  /* @__PURE__ */ e(p, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ l(A, { children: [
70
70
  /* @__PURE__ */ e(
71
71
  i,
@@ -1,10 +1,10 @@
1
1
  import { jsx as e, jsxs as r, Fragment as b } from "react/jsx-runtime";
2
- import { L as R, j as A, Button as M, n as Ne, useLocalStorage as K, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as we, e as l, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ke, useUserMemories as Se, useExpiredMemories as Te, useDeleteMemory as ve, useDeleteAllActiveMemories as De, useDeleteAllExpiredMemories as Me, useUpdateMemory as Ee, useRestoreMemory as be, ButtonIcon as O, IconEdit as Re, IconDelete as Z, IconRestore as Ie } from "./index.DvwicTLq.js";
3
- import { Panel as le, Toggle as _, ConfirmationPanel as ee, Tooltip as z } from "./App.ByR7hh4G.js";
4
- import { W as te, j as re, G as D, M as s, F as B, H as ie, D as ne } from "./index.xYO9MQ7q.js";
2
+ import { L as R, j$1 as A, Button as M, n as Ne, useLocalStorage as K, LOCAL_STORAGE_PREFIX as Q, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as we, e$1 as l, LOCAL_STORAGE_SORT_MEMORY_COLUMN as ke, useUserMemories as Se, useExpiredMemories as Te, useDeleteMemory as ve, useDeleteAllActiveMemories as De, useDeleteAllExpiredMemories as Me, useUpdateMemory as Ee, useRestoreMemory as be, ButtonIcon as O, IconEdit as Re, IconDelete as Z, IconRestore as Ie } from "./index.Hwof3Goa.js";
3
+ import { Panel as le, Toggle as _, ConfirmationPanel as ee, Tooltip as z } from "./App.B6stoZHi.js";
4
+ import { W as te, j as re, G as D, M as s, F as B, H as ie, D as ne } from "./index.-hZzCrDt.js";
5
5
  import y from "clsx";
6
6
  import { useState as C, useEffect as Le, useRef as oe } from "react";
7
- import { TextArea as Oe } from "./index.X83cFhfe.js";
7
+ import { TextArea as Oe } from "./index.CMqrKzc1.js";
8
8
  const _e = ({
9
9
  open: N,
10
10
  onOpenChange: E,
@@ -216,7 +216,7 @@ const _e = ({
216
216
  query: I,
217
217
  getAccessToken: n,
218
218
  enabled: N && m === "expired"
219
- }), P = ve({ getAccessToken: n }), X = De({ getAccessToken: n }), V = Me({ getAccessToken: n }), F = Ee({ getAccessToken: n }), $ = be({ getAccessToken: n }), [se, Y] = C(!1), k = oe(null), [ae, W] = C(!1), [ce, G] = C(!1), x = oe(null), J = (t, i, c, d) => {
219
+ }), P = ve({ getAccessToken: n }), $ = De({ getAccessToken: n }), X = Me({ getAccessToken: n }), F = Ee({ getAccessToken: n }), V = be({ getAccessToken: n }), [se, Y] = C(!1), k = oe(null), [ae, W] = C(!1), [ce, G] = C(!1), x = oe(null), J = (t, i, c, d) => {
220
220
  k.current = { id: t, text: i, description: c, createdAt: d }, Y(!0);
221
221
  }, de = () => {
222
222
  k.current && P.mutate({ user: a, memoryId: k.current.id });
@@ -250,7 +250,7 @@ const _e = ({
250
250
  }, he = () => {
251
251
  a && W(!0);
252
252
  }, pe = () => {
253
- a && (m === "active" ? X.mutate({ user: a }) : V.mutate({ user: a }));
253
+ a && (m === "active" ? $.mutate({ user: a }) : X.mutate({ user: a }));
254
254
  };
255
255
  return /* @__PURE__ */ r(b, { children: [
256
256
  /* @__PURE__ */ e(
@@ -341,7 +341,7 @@ const _e = ({
341
341
  mode: "dark",
342
342
  focusMode: "light",
343
343
  variant: "danger",
344
- disabled: (m === "active" ? X.isPending : V.isPending) || (m === "active" ? (g?.total ?? 0) === 0 : (f?.total ?? 0) === 0),
344
+ disabled: (m === "active" ? $.isPending : X.isPending) || (m === "active" ? (g?.total ?? 0) === 0 : (f?.total ?? 0) === 0),
345
345
  onClick: he,
346
346
  children: "Delete All"
347
347
  }
@@ -377,7 +377,9 @@ const _e = ({
377
377
  {
378
378
  className: y(
379
379
  "flex flex-col sm:flex-row",
380
- "sm:max-h-[50vh] sm:min-h-[50vh]"
380
+ "max-h-[75vh]",
381
+ "sm:max-h-[75vh]",
382
+ "min-h-[70vh]"
381
383
  ),
382
384
  children: m === "active" ? /* @__PURE__ */ r(b, { children: [
383
385
  U && /* @__PURE__ */ e("p", { className: "m-0", children: "Loading memories..." }),
@@ -669,9 +671,9 @@ const _e = ({
669
671
  noBorder: !0,
670
672
  label: "Restore memory",
671
673
  variant: "primary",
672
- disabled: $.isPending,
674
+ disabled: V.isPending,
673
675
  onClick: () => {
674
- a && $.mutate({
676
+ a && V.mutate({
675
677
  user: a,
676
678
  memoryId: t.memoryId
677
679
  });
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as y } from "react/jsx-runtime";
2
- import { ButtonSort_private as f, e as k } from "./index.DvwicTLq.js";
2
+ import { ButtonSort_private as f, e$1 as k } from "./index.Hwof3Goa.js";
3
3
  import o from "clsx";
4
4
  import v, { useContext as b } from "react";
5
5
  /*!
@@ -1,5 +1,5 @@
1
1
  import { jsxs as oe, jsx as h } from "react/jsx-runtime";
2
- import { useMergeRefs as ce, useResizeObserver as W, useUniqueId as ne, useUncontrolled as le, LiveRegion as ie } from "./index.DvwicTLq.js";
2
+ import { useMergeRefs as ce, useResizeObserver as W, useUniqueId as ne, useUncontrolled as le, LiveRegion as ie } from "./index.Hwof3Goa.js";
3
3
  import ue, { useRef as k, useState as I, useLayoutEffect as R } from "react";
4
4
  import o from "clsx";
5
5
  /*!
@@ -1,4 +1,4 @@
1
- import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.Bxe6gfSy.js";
1
+ import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.DSduoaoO.js";
2
2
  import { longestStreak as qe } from "./index.Cyw5OC0t.js";
3
3
  function ne(e, n) {
4
4
  const t = String(e);
@@ -1,4 +1,4 @@
1
- import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.Bxe6gfSy.js";
1
+ import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.DSduoaoO.js";
2
2
  import { longestStreak as q } from "./index.Cyw5OC0t.js";
3
3
  function b() {
4
4
  return {