@versini/sassysaint 8.99.2 → 8.100.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.
- package/dist/chunks/{AboutChangelog.u1NxfRZ6.js → AboutChangelog.DA361mHf.js} +3 -3
- package/dist/chunks/AboutEntry.COmeuxq_.js +83 -0
- package/dist/chunks/{App.9OTgQFE5.js → App.BLNMkw5x.js} +331 -329
- package/dist/chunks/{Chart.CTX3yXAp.js → Chart.GBOvQ25I.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.DHiBvqvV.js → ChatBubbleAssistant.De5psmEG.js} +7 -7
- package/dist/chunks/{ChatBubbleUser.BdygOc-M.js → ChatBubbleUser.DF9Axp_4.js} +28 -27
- package/dist/chunks/{ChatHistoryTable.XuPzHnDG.js → ChatHistoryTable.rOFYnFKa.js} +3 -3
- package/dist/chunks/{HistoryEntry.CVgA3SYH.js → HistoryEntry.DnG7vXnm.js} +134 -133
- package/dist/chunks/{UserMemoriesPanel.D9cKoAvT.js → MemoriesEntry.rleSeGKZ.js} +212 -209
- package/dist/chunks/{ProfileEntry.wwU14Mrk.js → ProfileEntry.ZVmjBCNA.js} +76 -72
- package/dist/chunks/{SettingsEntry.CFneilrk.js → SettingsEntry.azCvMpSB.js} +116 -108
- package/dist/chunks/{UsageEntry.CgMVSr_T.js → UsageEntry.CK1PBjs3.js} +77 -76
- package/dist/chunks/{index.CbyVRgN9.js → index.Bil3-QBE.js} +1 -1
- package/dist/chunks/{index.DXbW0hgE.js → index.Bz0fwQT2.js} +1 -1
- package/dist/chunks/{index.IgpP31Km.js → index.CY7OKrvt.js} +3 -3
- package/dist/chunks/{index.CSpbJbbj.js → index.CYzDnVAL.js} +1 -1
- package/dist/chunks/{index.BNtgmlzo.js → index.CgmhTYJp.js} +1 -1
- package/dist/chunks/{index.Dy3lHiSY.js → index.DfrHJ6QJ.js} +1 -1
- package/dist/chunks/{index.CI7wfY6h.js → index.DlepPi73.js} +2 -2
- package/dist/chunks/{index.CqZKR4eS.js → index.Dw8chhdS.js} +1 -1
- package/dist/chunks/{index.BgQcUSpD.js → index.iTnfwVri.js} +1 -1
- package/dist/chunks/{useMarkdown.CnnQWkcw.js → useMarkdown.DhNvct2e.js} +8 -7
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/AboutEntry.2URxdMvt.js +0 -79
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { preloadToast as K, showSuccessToast as O, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as $, Panel as V, CancelButton as q } from "./App.
|
|
3
|
-
import { n as J, useUniqueId as Q, useUserPreferences as X, useServerCapabilities as Z, p as ee, setUserPlan as ae, Card as
|
|
4
|
-
import ce from "
|
|
5
|
-
import
|
|
6
|
-
const
|
|
1
|
+
import { jsxs as l, Fragment as H, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { preloadToast as K, showSuccessToast as O, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as $, Panel as V, CancelButton as q } from "./App.BLNMkw5x.js";
|
|
3
|
+
import { n as J, useUniqueId as Q, useUserPreferences as X, useServerCapabilities as Z, p as ee, setUserPlan as ae, Card as m, renderDataAsList as ne, CARDS as s, L as u, j as i, Button as se, st as re, isTauri as le, ButtonIcon as te, IconPasskey as L, PROFILE_TITLE as ie } from "./index.CgmhTYJp.js";
|
|
4
|
+
import { useState as h, useMemo as ce, useCallback as N, useRef as oe } from "react";
|
|
5
|
+
import de from "clsx";
|
|
6
|
+
const me = () => {
|
|
7
7
|
const {
|
|
8
|
-
isAuthenticated:
|
|
8
|
+
isAuthenticated: p,
|
|
9
9
|
user: n,
|
|
10
|
-
registeringForPasskey:
|
|
10
|
+
registeringForPasskey: o,
|
|
11
11
|
authenticationType: y,
|
|
12
|
-
getAccessToken:
|
|
13
|
-
} = J(), [
|
|
12
|
+
getAccessToken: f
|
|
13
|
+
} = J(), [F, T] = h(null), [C, v] = h(!1), [x, R] = h(!1), [t, w] = h(null), U = Q(), A = n?.username || "", {
|
|
14
14
|
data: E,
|
|
15
15
|
isSuccess: z,
|
|
16
16
|
refetch: I
|
|
17
17
|
} = X({
|
|
18
18
|
user: n?.username,
|
|
19
|
-
getAccessToken:
|
|
20
|
-
}), { data: S, isSuccess:
|
|
19
|
+
getAccessToken: f
|
|
20
|
+
}), { data: S, isSuccess: P } = Z(), b = ce(() => !P || !S?.plans ? [] : S.plans.map((a) => ({
|
|
21
21
|
id: a.name,
|
|
22
22
|
label: a.label,
|
|
23
23
|
description: a.description,
|
|
@@ -25,17 +25,17 @@ const de = () => {
|
|
|
25
25
|
models: a.allowedModels.map(
|
|
26
26
|
(r) => ee[r] || r
|
|
27
27
|
)
|
|
28
|
-
})), [
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
if (!(!
|
|
28
|
+
})), [P, S?.plans]), g = N(() => {
|
|
29
|
+
C || (K(), v(!0));
|
|
30
|
+
}, [C]), B = N(async () => {
|
|
31
|
+
if (!(!t || !n?.username))
|
|
32
32
|
try {
|
|
33
|
-
|
|
34
|
-
plan:
|
|
35
|
-
accessToken: await
|
|
33
|
+
T(t.id), await ae({
|
|
34
|
+
plan: t.id,
|
|
35
|
+
accessToken: await f(),
|
|
36
36
|
username: n.username
|
|
37
37
|
}), await I(), await O(
|
|
38
|
-
`${s.PLANS.SWITCH_SUCCESS} ${
|
|
38
|
+
`${s.PLANS.SWITCH_SUCCESS} ${t.label}`,
|
|
39
39
|
{
|
|
40
40
|
containerId: "profile-plan-selection"
|
|
41
41
|
}
|
|
@@ -45,36 +45,36 @@ const de = () => {
|
|
|
45
45
|
containerId: "profile-plan-selection"
|
|
46
46
|
});
|
|
47
47
|
} finally {
|
|
48
|
-
|
|
48
|
+
T(null), w(null);
|
|
49
49
|
}
|
|
50
|
-
}, [
|
|
50
|
+
}, [f, t, I, n?.username]), _ = N(
|
|
51
51
|
(a, r) => {
|
|
52
|
-
!n?.username || a === E?.plan || (w({ id: a, label: r }),
|
|
52
|
+
!n?.username || a === E?.plan || (w({ id: a, label: r }), R(!0));
|
|
53
53
|
},
|
|
54
54
|
[E?.plan, n?.username]
|
|
55
55
|
);
|
|
56
|
-
return
|
|
56
|
+
return p && A ? /* @__PURE__ */ l(H, { children: [
|
|
57
57
|
/* @__PURE__ */ e(
|
|
58
58
|
Y,
|
|
59
59
|
{
|
|
60
|
-
showConfirmation:
|
|
61
|
-
setShowConfirmation:
|
|
60
|
+
showConfirmation: x,
|
|
61
|
+
setShowConfirmation: R,
|
|
62
62
|
action: B,
|
|
63
63
|
customStrings: {
|
|
64
64
|
confirmAction: "Switch Plan",
|
|
65
65
|
cancelAction: "Cancel",
|
|
66
66
|
title: "Switch Plan"
|
|
67
67
|
},
|
|
68
|
-
children:
|
|
68
|
+
children: t && /* @__PURE__ */ l("p", { className: "m-0", children: [
|
|
69
69
|
"Are you sure you want to switch to the following plan:",
|
|
70
70
|
" ",
|
|
71
|
-
/* @__PURE__ */ e("span", { className: "font-semibold", children:
|
|
71
|
+
/* @__PURE__ */ e("span", { className: "font-semibold", children: t.label })
|
|
72
72
|
] })
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
75
|
/* @__PURE__ */ e("div", { className: "av-sassy", children: /* @__PURE__ */ e($, { containerId: "profile-plan-selection" }) }),
|
|
76
76
|
/* @__PURE__ */ e(
|
|
77
|
-
|
|
77
|
+
m,
|
|
78
78
|
{
|
|
79
79
|
header: s.PREFERENCES.TITLE,
|
|
80
80
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -85,24 +85,24 @@ const de = () => {
|
|
|
85
85
|
})
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
z &&
|
|
89
|
-
|
|
88
|
+
z && P && b.length > 0 && /* @__PURE__ */ l(
|
|
89
|
+
m,
|
|
90
90
|
{
|
|
91
91
|
header: s.PLANS.TITLE,
|
|
92
92
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
93
93
|
noBorder: !0,
|
|
94
94
|
children: [
|
|
95
95
|
/* @__PURE__ */ e("p", { className: "text-sm", children: s.PLANS.DESCRIPTION }),
|
|
96
|
-
/* @__PURE__ */ e(
|
|
97
|
-
const
|
|
98
|
-
return /* @__PURE__ */ e(i, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */
|
|
96
|
+
/* @__PURE__ */ e(u, { columnGap: 3, rowGap: 3, className: "mt-4", children: b.map(({ id: a, label: r, description: G, features: M, models: j }) => {
|
|
97
|
+
const d = E?.plan === a, D = d ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, k = F === a;
|
|
98
|
+
return /* @__PURE__ */ e(i, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(m, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ l(u, { 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
101
|
/* @__PURE__ */ e(
|
|
102
102
|
"h3",
|
|
103
103
|
{
|
|
104
|
-
className:
|
|
105
|
-
"text-emerald-400":
|
|
104
|
+
className: de("m-0", {
|
|
105
|
+
"text-emerald-400": d
|
|
106
106
|
}),
|
|
107
107
|
children: r
|
|
108
108
|
}
|
|
@@ -119,16 +119,16 @@ const de = () => {
|
|
|
119
119
|
{
|
|
120
120
|
mode: "dark",
|
|
121
121
|
size: "small",
|
|
122
|
-
variant:
|
|
122
|
+
variant: d ? "selected" : "secondary",
|
|
123
123
|
className: "mt-4",
|
|
124
124
|
fullWidth: !0,
|
|
125
|
-
disabled:
|
|
125
|
+
disabled: d || k,
|
|
126
126
|
onClick: () => {
|
|
127
127
|
_(a, r);
|
|
128
128
|
},
|
|
129
|
-
onMouseEnter:
|
|
130
|
-
onFocus:
|
|
131
|
-
children:
|
|
129
|
+
onMouseEnter: g,
|
|
130
|
+
onFocus: g,
|
|
131
|
+
children: k ? "Updating..." : D
|
|
132
132
|
}
|
|
133
133
|
) })
|
|
134
134
|
] }) }) }, a);
|
|
@@ -136,26 +136,26 @@ const de = () => {
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
|
-
y !== re.PASSKEY && !
|
|
140
|
-
|
|
139
|
+
y !== re.PASSKEY && !le() && /* @__PURE__ */ l(
|
|
140
|
+
m,
|
|
141
141
|
{
|
|
142
142
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
143
143
|
noBorder: !0,
|
|
144
|
-
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */
|
|
145
|
-
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
144
|
+
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ l(u, { columnGap: 3, alignVertical: "center", children: [
|
|
145
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(L, { size: "size-8" }) }),
|
|
146
146
|
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e("div", { children: s.PREFERENCES.PASSKEY_TITLE }) })
|
|
147
147
|
] }) }),
|
|
148
148
|
children: [
|
|
149
149
|
/* @__PURE__ */ e("p", { children: s.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
150
150
|
/* @__PURE__ */ e(
|
|
151
|
-
|
|
151
|
+
te,
|
|
152
152
|
{
|
|
153
153
|
variant: "selected",
|
|
154
154
|
size: "small",
|
|
155
155
|
className: "mt-2",
|
|
156
|
-
onClick:
|
|
156
|
+
onClick: o,
|
|
157
157
|
labelLeft: s.PREFERENCES.PASSKEY_BUTTON,
|
|
158
|
-
children: /* @__PURE__ */ e(
|
|
158
|
+
children: /* @__PURE__ */ e(L, { size: "size-5", monotone: !0 })
|
|
159
159
|
}
|
|
160
160
|
)
|
|
161
161
|
]
|
|
@@ -163,29 +163,33 @@ const de = () => {
|
|
|
163
163
|
)
|
|
164
164
|
] }) : null;
|
|
165
165
|
}, Se = ({
|
|
166
|
-
open:
|
|
166
|
+
open: p,
|
|
167
167
|
onOpenChange: n
|
|
168
|
-
}) =>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
)
|
|
168
|
+
}) => {
|
|
169
|
+
const o = oe(null);
|
|
170
|
+
return /* @__PURE__ */ e(
|
|
171
|
+
V,
|
|
172
|
+
{
|
|
173
|
+
open: p,
|
|
174
|
+
onOpenChange: n,
|
|
175
|
+
title: ie,
|
|
176
|
+
animation: !0,
|
|
177
|
+
animationType: "fade",
|
|
178
|
+
blurEffect: "large",
|
|
179
|
+
initialFocus: o,
|
|
180
|
+
footer: /* @__PURE__ */ e(
|
|
181
|
+
u,
|
|
182
|
+
{
|
|
183
|
+
columnGap: 2,
|
|
184
|
+
alignHorizontal: "flex-end",
|
|
185
|
+
className: "pb-8 sm:pb-0",
|
|
186
|
+
children: /* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(q, { onOpenChange: n, ref: o }) })
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
children: /* @__PURE__ */ e(me, {})
|
|
190
|
+
}
|
|
191
|
+
);
|
|
192
|
+
};
|
|
189
193
|
export {
|
|
190
194
|
Se as Profile
|
|
191
195
|
};
|