@versini/sassysaint 8.73.0 → 8.73.2
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.Cp9PopiO.js → AboutChangelog.BGbXeM1V.js} +2 -2
- package/dist/chunks/{AboutEntry.BOb5_aZI.js → AboutEntry.B6zksAh7.js} +7 -7
- package/dist/chunks/{App.Ck78giBC.js → App.tbzd8U0K.js} +125 -125
- package/dist/chunks/{Chart.C1dgaS-F.js → Chart.D2MV2w_Q.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CT2jmjen.js → ChatBubbleAssistant.RzH26aLB.js} +17 -17
- package/dist/chunks/{ChatBubbleUser.CM1FzHNQ.js → ChatBubbleUser.CBnoxqes.js} +3 -3
- package/dist/chunks/{ChatHistoryTable._Rzl_5Sk.js → ChatHistoryTable.C6I638cE.js} +62 -61
- package/dist/chunks/HistoryEntry.CwveusV0.js +333 -0
- package/dist/chunks/{ProfileEntry.Naot3F9p.js → ProfileEntry.BSOMcinm.js} +21 -21
- package/dist/chunks/{SettingsEntry.Du0GDXgA.js → SettingsEntry.SHZazp-B.js} +69 -63
- package/dist/chunks/{Table.JtsJZQLY.js → Table.DwbGRt2o.js} +2 -2
- package/dist/chunks/{UsageEntry.C18Kaf6V.js → UsageEntry.BOtq-YTl.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.C9gXdvcN.js → UserMemoriesPanel.BdWYKyp5.js} +4 -4
- package/dist/chunks/{index.ce_hM2eo.js → index.BO_yfOl7.js} +3 -3
- package/dist/chunks/{index.D0pvrKFC.js → index.CREsouo5.js} +1 -1
- package/dist/chunks/{index.DTBMKq5O.js → index.CqtcPR4A.js} +177 -174
- package/dist/chunks/{index.GppF30Qs.js → index.Cxd_WImT.js} +13 -13
- package/dist/chunks/{index.DBqrJ-of.js → index.DX8g0zp_.js} +2 -2
- package/dist/chunks/{index.Ce0bioPG.js → index.Dxke1YD_.js} +1 -1
- package/dist/chunks/{index.BYZBF4_0.js → index.Tr3TVoxP.js} +1 -1
- package/dist/chunks/{index.DdEAWm8o.js → index.zCqfAEjf.js} +1 -1
- package/dist/chunks/{useMarkdown.CfYCs10-.js → useMarkdown.DBF4PL2-.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/chunks/HistoryEntry.DM6RInwR.js +0 -326
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
import { jsxs as n, jsx as t, Fragment as ee } from "react/jsx-runtime";
|
|
2
|
+
import { I as te, n as z, INFINITE_SCROLL_LIMIT as P, INFINITE_SCROLL_THRESHOLD as re, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as ae, LOCAL_STORAGE_SORT_TOKEN_USAGE as se, LOCAL_STORAGE_SORT as oe, J as D, useUserPreferences as ie, useDeleteChat as ne, useToggleFavoriteChat as ce, APP_CLASSNAME as le, TOAST_CHAT_DELETED as de, graphQLRequest as he, SERVICE_TYPES as me, setNewProvider as ue, ACTION_SORT as Ce, Q as Se, TOAST_PROVIDER_CHANGED as fe, useChatsHistory as pe, LOCAL_STORAGE_SEARCH as ye, LOCAL_STORAGE_FAVORITES_ONLY as Te, HISTORY_TITLE as ge, S as Ae, Y as Ee, debounce as ve, C as _e, ACTION_SEARCH as De } from "./index.CqtcPR4A.js";
|
|
3
|
+
import { HistoryContext as G, ChatContext as M, useAiChat as Oe, E as g, e as u, ConfirmationPanel as Re, LazyToastContainerWrapper as Le, showErrorToast as Ie, CHAT_SET_PROVIDER as ke, showSuccessToast as be, CHAT_SET_STATUS as we, oe as Ne, G as xe } from "./App.tbzd8U0K.js";
|
|
4
|
+
import { useRef as N, useState as x, useContext as O, useCallback as V, Suspense as He, lazy as Fe, useEffect as Pe } from "react";
|
|
5
|
+
const Ve = ({
|
|
6
|
+
className: c,
|
|
7
|
+
viewBox: d,
|
|
8
|
+
title: f,
|
|
9
|
+
monotone: C,
|
|
10
|
+
...p
|
|
11
|
+
}) => /* @__PURE__ */ n(
|
|
12
|
+
te,
|
|
13
|
+
{
|
|
14
|
+
defaultViewBox: "0 0 512 512",
|
|
15
|
+
size: "size-5",
|
|
16
|
+
viewBox: d,
|
|
17
|
+
className: c,
|
|
18
|
+
title: f || "Search",
|
|
19
|
+
...p,
|
|
20
|
+
children: [
|
|
21
|
+
/* @__PURE__ */ t(
|
|
22
|
+
"path",
|
|
23
|
+
{
|
|
24
|
+
d: "M0 208a208 208 0 1 0 416 0 208 208 0 1 0-416 0m352 0a144 144 0 1 1-288 0 144 144 0 1 1 288 0",
|
|
25
|
+
opacity: C ? "1" : "0.4"
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t("path", { d: "m330.7 376 126.7 126.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L376 330.7c-12.7 17.3-28 32.6-45.3 45.3" })
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
), ze = Fe(
|
|
32
|
+
() => import(
|
|
33
|
+
/* webpackChunkName: "history-table" */
|
|
34
|
+
"./ChatHistoryTable.C6I638cE.js"
|
|
35
|
+
).then((c) => ({ default: c.ChatHistoryTable }))
|
|
36
|
+
), Ge = ({
|
|
37
|
+
filteredHistory: c,
|
|
38
|
+
dispatch: d,
|
|
39
|
+
onOpenChange: f,
|
|
40
|
+
mutate: C,
|
|
41
|
+
isLoading: p = !1
|
|
42
|
+
}) => {
|
|
43
|
+
const { user: S, getAccessToken: h } = z(), l = N(null), s = N({
|
|
44
|
+
id: "",
|
|
45
|
+
timestamp: "",
|
|
46
|
+
message: ""
|
|
47
|
+
}), [A, m] = x(!1), [R, L] = x(
|
|
48
|
+
P + re
|
|
49
|
+
), { state: i, dispatch: I } = O(G), y = {
|
|
50
|
+
searchString: i.searchString || "",
|
|
51
|
+
sortDirection: i.sortDirection || u.DESC,
|
|
52
|
+
sortedCell: i.sortedCell || D
|
|
53
|
+
}, {
|
|
54
|
+
state: { provider: k },
|
|
55
|
+
setChatId: E,
|
|
56
|
+
setInitialMessages: b
|
|
57
|
+
} = O(M), { setInput: w } = Oe(), [v, a] = g({
|
|
58
|
+
key: T + ae,
|
|
59
|
+
initialValue: u.DESC
|
|
60
|
+
}), [U, B] = g({
|
|
61
|
+
key: T + se,
|
|
62
|
+
initialValue: u.ASC
|
|
63
|
+
}), [, Y] = g({
|
|
64
|
+
key: T + oe,
|
|
65
|
+
initialValue: D
|
|
66
|
+
}), { refetch: j } = ie({
|
|
67
|
+
user: S?.username,
|
|
68
|
+
getAccessToken: h
|
|
69
|
+
}), { mutateAsync: $ } = ne({ getAccessToken: h }), { mutateAsync: Q } = ce({
|
|
70
|
+
getAccessToken: h
|
|
71
|
+
}), q = (e) => {
|
|
72
|
+
const o = i.sortedCell === e;
|
|
73
|
+
let r, _;
|
|
74
|
+
switch (e) {
|
|
75
|
+
case D:
|
|
76
|
+
_ = a, r = o ? i.sortDirection : v;
|
|
77
|
+
break;
|
|
78
|
+
case Se:
|
|
79
|
+
_ = B, r = o ? i.sortDirection : U;
|
|
80
|
+
break;
|
|
81
|
+
default:
|
|
82
|
+
_ = a, r = o ? i.sortDirection : v;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
const F = r === u.ASC ? u.DESC : u.ASC;
|
|
86
|
+
_(F), Y(e), I({
|
|
87
|
+
type: Ce,
|
|
88
|
+
payload: {
|
|
89
|
+
sortedCell: e,
|
|
90
|
+
sortDirection: F
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}, J = async () => {
|
|
94
|
+
const e = s.current;
|
|
95
|
+
try {
|
|
96
|
+
await $({
|
|
97
|
+
userId: S?.username || "",
|
|
98
|
+
id: e.id
|
|
99
|
+
}), C(""), await Ie(de, {
|
|
100
|
+
autoClose: 2e3,
|
|
101
|
+
containerId: "history-table"
|
|
102
|
+
});
|
|
103
|
+
} catch {
|
|
104
|
+
}
|
|
105
|
+
}, K = async (e) => {
|
|
106
|
+
try {
|
|
107
|
+
const o = await h(), r = await he({
|
|
108
|
+
accessToken: o,
|
|
109
|
+
type: me.GET_CHAT,
|
|
110
|
+
params: {
|
|
111
|
+
id: e.id
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
r.data.provider !== k && (await ue({
|
|
115
|
+
provider: r.data.provider,
|
|
116
|
+
model: r.data.model,
|
|
117
|
+
accessToken: o,
|
|
118
|
+
username: S?.username || ""
|
|
119
|
+
}), d({
|
|
120
|
+
type: ke,
|
|
121
|
+
payload: {
|
|
122
|
+
provider: r.data.provider
|
|
123
|
+
}
|
|
124
|
+
}), j(), await be(
|
|
125
|
+
`${fe} ${r.data.provider}`,
|
|
126
|
+
{
|
|
127
|
+
containerId: "toggle-provider"
|
|
128
|
+
}
|
|
129
|
+
)), d({
|
|
130
|
+
type: we,
|
|
131
|
+
payload: {
|
|
132
|
+
restoring: !0,
|
|
133
|
+
restoredModel: r.data?.model || "",
|
|
134
|
+
restoredUsage: r.data?.tokenUsage || 0
|
|
135
|
+
}
|
|
136
|
+
}), w(""), E(e.id), b(r.data.messages), f(!1);
|
|
137
|
+
} catch {
|
|
138
|
+
}
|
|
139
|
+
}, W = (e) => {
|
|
140
|
+
s.current = {
|
|
141
|
+
id: e.id,
|
|
142
|
+
timestamp: e.timestamp,
|
|
143
|
+
message: e.messages.length > 0 ? e.messages[0]?.content : ""
|
|
144
|
+
}, m(!A);
|
|
145
|
+
}, X = async (e) => {
|
|
146
|
+
try {
|
|
147
|
+
await Q({
|
|
148
|
+
userId: S?.username || "",
|
|
149
|
+
id: e.id
|
|
150
|
+
}), C("");
|
|
151
|
+
} catch {
|
|
152
|
+
}
|
|
153
|
+
}, H = V((e) => {
|
|
154
|
+
e[0].isIntersecting && L((r) => r + P);
|
|
155
|
+
}, []), Z = V(
|
|
156
|
+
(e) => {
|
|
157
|
+
if (l.current && l.current.disconnect(), e) {
|
|
158
|
+
const o = {
|
|
159
|
+
rootMargin: "20px"
|
|
160
|
+
}, r = new IntersectionObserver(H, o);
|
|
161
|
+
r.observe(e), l.current = r;
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
[H]
|
|
165
|
+
);
|
|
166
|
+
return /* @__PURE__ */ n(ee, { children: [
|
|
167
|
+
/* @__PURE__ */ n(
|
|
168
|
+
Re,
|
|
169
|
+
{
|
|
170
|
+
showConfirmation: A,
|
|
171
|
+
setShowConfirmation: m,
|
|
172
|
+
action: J,
|
|
173
|
+
customStrings: {
|
|
174
|
+
confirmAction: "Delete",
|
|
175
|
+
cancelAction: "Cancel",
|
|
176
|
+
title: "Delete chat"
|
|
177
|
+
},
|
|
178
|
+
children: [
|
|
179
|
+
/* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
180
|
+
/* @__PURE__ */ n("ul", { className: "m-0", children: [
|
|
181
|
+
/* @__PURE__ */ n("li", { children: [
|
|
182
|
+
"Timestamp:",
|
|
183
|
+
" ",
|
|
184
|
+
/* @__PURE__ */ t("span", { className: "text-lg", children: s.current && s.current.timestamp })
|
|
185
|
+
] }),
|
|
186
|
+
/* @__PURE__ */ n("li", { children: [
|
|
187
|
+
"First message:",
|
|
188
|
+
" ",
|
|
189
|
+
/* @__PURE__ */ t("span", { className: "text-lg", children: s.current?.message })
|
|
190
|
+
] })
|
|
191
|
+
] })
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
),
|
|
195
|
+
/* @__PURE__ */ t("div", { className: le, children: /* @__PURE__ */ t(Le, { containerId: "history-table" }) }),
|
|
196
|
+
/* @__PURE__ */ t(He, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
197
|
+
ze,
|
|
198
|
+
{
|
|
199
|
+
filteredHistory: c,
|
|
200
|
+
historyState: y,
|
|
201
|
+
lastEntryToLoad: R,
|
|
202
|
+
onClickSort: q,
|
|
203
|
+
onClickRestore: K,
|
|
204
|
+
onClickDelete: W,
|
|
205
|
+
onClickFavorite: X,
|
|
206
|
+
infinityScrollMarkerRef: Z,
|
|
207
|
+
isLoading: p
|
|
208
|
+
}
|
|
209
|
+
) })
|
|
210
|
+
] });
|
|
211
|
+
}, je = ({
|
|
212
|
+
open: c,
|
|
213
|
+
onOpenChange: d
|
|
214
|
+
}) => {
|
|
215
|
+
const { getAccessToken: f, user: C } = z(), { dispatch: p } = O(M), [S, h] = x([]), l = N(null), { state: s, dispatch: A } = O(G), {
|
|
216
|
+
data: m,
|
|
217
|
+
refetch: R,
|
|
218
|
+
isLoading: L,
|
|
219
|
+
isError: i
|
|
220
|
+
} = pe({
|
|
221
|
+
enabled: c,
|
|
222
|
+
user: C?.username || "",
|
|
223
|
+
searchString: s.searchString || "",
|
|
224
|
+
sortDirection: s.sortDirection || u.DESC,
|
|
225
|
+
sortedCell: s.sortedCell || D,
|
|
226
|
+
getAccessToken: f
|
|
227
|
+
}), [, I] = g({
|
|
228
|
+
key: T + ye,
|
|
229
|
+
initialValue: s.searchString
|
|
230
|
+
}), [y, k] = g({
|
|
231
|
+
key: T + Te,
|
|
232
|
+
initialValue: !1
|
|
233
|
+
});
|
|
234
|
+
Pe(() => {
|
|
235
|
+
m && h(
|
|
236
|
+
y ? m.filter((a) => a.favoriteChat === !0) : m
|
|
237
|
+
);
|
|
238
|
+
}, [m, y]);
|
|
239
|
+
const E = async (a) => {
|
|
240
|
+
I(a), A({
|
|
241
|
+
type: De,
|
|
242
|
+
payload: { searchString: a }
|
|
243
|
+
});
|
|
244
|
+
}, b = ve((a) => {
|
|
245
|
+
E(a.target.value.trim());
|
|
246
|
+
}, 500), w = async (a) => {
|
|
247
|
+
a.preventDefault();
|
|
248
|
+
}, v = (a) => {
|
|
249
|
+
k(a);
|
|
250
|
+
};
|
|
251
|
+
return /* @__PURE__ */ n(
|
|
252
|
+
Ne,
|
|
253
|
+
{
|
|
254
|
+
open: c,
|
|
255
|
+
onOpenChange: d,
|
|
256
|
+
title: ge,
|
|
257
|
+
animation: !0,
|
|
258
|
+
animationType: "fade",
|
|
259
|
+
children: [
|
|
260
|
+
/* @__PURE__ */ t(
|
|
261
|
+
Ae,
|
|
262
|
+
{
|
|
263
|
+
header: "Filters",
|
|
264
|
+
className: "prose-dark dark:prose-lighter mb-4",
|
|
265
|
+
noBorder: !0,
|
|
266
|
+
compact: !0,
|
|
267
|
+
children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: w, children: [
|
|
268
|
+
/* @__PURE__ */ t(
|
|
269
|
+
Ee,
|
|
270
|
+
{
|
|
271
|
+
placeholder: "Search",
|
|
272
|
+
labelHidden: !0,
|
|
273
|
+
noBorder: !0,
|
|
274
|
+
autoCapitalize: "off",
|
|
275
|
+
autoComplete: "off",
|
|
276
|
+
autoCorrect: "off",
|
|
277
|
+
ref: l,
|
|
278
|
+
defaultValue: s.searchString,
|
|
279
|
+
mode: "alt-system",
|
|
280
|
+
name: "Search",
|
|
281
|
+
label: "Search",
|
|
282
|
+
onChange: b,
|
|
283
|
+
className: "my-2",
|
|
284
|
+
rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(Ve, { monotone: !0, size: "size-3" }) })
|
|
285
|
+
}
|
|
286
|
+
),
|
|
287
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
|
|
288
|
+
/* @__PURE__ */ t("div", { className: "order-1 sm:order-0", children: /* @__PURE__ */ t(
|
|
289
|
+
xe,
|
|
290
|
+
{
|
|
291
|
+
name: "favorites-only",
|
|
292
|
+
checked: y,
|
|
293
|
+
onChange: v,
|
|
294
|
+
label: "Show favorites only",
|
|
295
|
+
narrow: !0,
|
|
296
|
+
noBorder: !0
|
|
297
|
+
}
|
|
298
|
+
) }),
|
|
299
|
+
/* @__PURE__ */ t(
|
|
300
|
+
_e,
|
|
301
|
+
{
|
|
302
|
+
size: "small",
|
|
303
|
+
disabled: s.searchString === "",
|
|
304
|
+
onClick: () => {
|
|
305
|
+
E(""), l.current?.value && (l.current.value = "", l.current.focus());
|
|
306
|
+
},
|
|
307
|
+
children: "Reset Search"
|
|
308
|
+
}
|
|
309
|
+
)
|
|
310
|
+
] })
|
|
311
|
+
] })
|
|
312
|
+
}
|
|
313
|
+
),
|
|
314
|
+
/* @__PURE__ */ n("div", { className: "flex flex-col sm:flex-row max-h-[65vh] sm:max-h-[75vh] min-h-[60vh]", children: [
|
|
315
|
+
i && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
|
|
316
|
+
!i && /* @__PURE__ */ t(
|
|
317
|
+
Ge,
|
|
318
|
+
{
|
|
319
|
+
mutate: R,
|
|
320
|
+
filteredHistory: S,
|
|
321
|
+
dispatch: p,
|
|
322
|
+
onOpenChange: d,
|
|
323
|
+
isLoading: L
|
|
324
|
+
}
|
|
325
|
+
)
|
|
326
|
+
] })
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
);
|
|
330
|
+
};
|
|
331
|
+
export {
|
|
332
|
+
je as HistoryPanel
|
|
333
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as t, Fragment as
|
|
2
|
-
import { preloadToast as
|
|
3
|
-
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X,
|
|
1
|
+
import { jsxs as t, Fragment as $, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { preloadToast as D, showSuccessToast as K, showErrorToast as W, ConfirmationPanel as Y, LazyToastContainerWrapper as H, oe as V } from "./App.tbzd8U0K.js";
|
|
3
|
+
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, j$1 as Z, setUserPlan as ee, S as d, renderDataAsList as ae, CARDS as s, L as f, j as c, C as se, it as ne, isTauri as re, te, l as b, PROFILE_TITLE as le } from "./index.CqtcPR4A.js";
|
|
4
4
|
import ie from "clsx";
|
|
5
5
|
import { useState as m, useMemo as ce, useCallback as P } from "react";
|
|
6
6
|
const oe = () => {
|
|
@@ -10,7 +10,7 @@ const oe = () => {
|
|
|
10
10
|
registeringForPasskey: k,
|
|
11
11
|
authenticationType: y,
|
|
12
12
|
getAccessToken: u
|
|
13
|
-
} = q(), [v, N] = m(null), [T,
|
|
13
|
+
} = q(), [v, N] = m(null), [T, F] = m(!1), [x, C] = m(!1), [l, w] = m(null), U = J(), A = n?.username || "", {
|
|
14
14
|
data: p,
|
|
15
15
|
isSuccess: _,
|
|
16
16
|
refetch: R
|
|
@@ -26,40 +26,40 @@ const oe = () => {
|
|
|
26
26
|
(r) => Z[r] || r
|
|
27
27
|
)
|
|
28
28
|
})), [E, S?.plans]), g = P(() => {
|
|
29
|
-
T || (
|
|
30
|
-
}, [T]),
|
|
29
|
+
T || (D(), F(!0));
|
|
30
|
+
}, [T]), j = P(async () => {
|
|
31
31
|
if (!(!l || !n?.username))
|
|
32
32
|
try {
|
|
33
33
|
N(l.id), await ee({
|
|
34
34
|
plan: l.id,
|
|
35
35
|
accessToken: await u(),
|
|
36
36
|
username: n.username
|
|
37
|
-
}), await R(), await
|
|
37
|
+
}), await R(), await K(
|
|
38
38
|
`${s.PLANS.SWITCH_SUCCESS} ${l.label}`,
|
|
39
39
|
{
|
|
40
40
|
containerId: "profile-plan-selection"
|
|
41
41
|
}
|
|
42
42
|
);
|
|
43
43
|
} catch {
|
|
44
|
-
await
|
|
44
|
+
await W(s.PLANS.SWITCH_ERROR, {
|
|
45
45
|
containerId: "profile-plan-selection"
|
|
46
46
|
});
|
|
47
47
|
} finally {
|
|
48
48
|
N(null), w(null);
|
|
49
49
|
}
|
|
50
|
-
}, [u, l, R, n?.username]),
|
|
50
|
+
}, [u, l, R, n?.username]), z = P(
|
|
51
51
|
(a, r) => {
|
|
52
52
|
!n?.username || a === p?.plan || (w({ id: a, label: r }), C(!0));
|
|
53
53
|
},
|
|
54
54
|
[p?.plan, n?.username]
|
|
55
55
|
);
|
|
56
|
-
return h && A ? /* @__PURE__ */ t(
|
|
56
|
+
return h && A ? /* @__PURE__ */ t($, { children: [
|
|
57
57
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
58
|
+
Y,
|
|
59
59
|
{
|
|
60
|
-
showConfirmation:
|
|
60
|
+
showConfirmation: x,
|
|
61
61
|
setShowConfirmation: C,
|
|
62
|
-
action:
|
|
62
|
+
action: j,
|
|
63
63
|
customStrings: {
|
|
64
64
|
confirmAction: "Switch Plan",
|
|
65
65
|
cancelAction: "Cancel",
|
|
@@ -72,7 +72,7 @@ const oe = () => {
|
|
|
72
72
|
] })
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */ e("div", { className: "av-sassy", children: /* @__PURE__ */ e(
|
|
75
|
+
/* @__PURE__ */ e("div", { className: "av-sassy", children: /* @__PURE__ */ e(H, { containerId: "profile-plan-selection" }) }),
|
|
76
76
|
/* @__PURE__ */ e(
|
|
77
77
|
d,
|
|
78
78
|
{
|
|
@@ -93,8 +93,8 @@ const oe = () => {
|
|
|
93
93
|
noBorder: !0,
|
|
94
94
|
children: [
|
|
95
95
|
/* @__PURE__ */ e("p", { className: "text-sm", children: s.PLANS.DESCRIPTION }),
|
|
96
|
-
/* @__PURE__ */ e(f, { columnGap: 3, rowGap: 3, className: "mt-4", children: I.map(({ id: a, label: r, description:
|
|
97
|
-
const o = p?.plan === a,
|
|
96
|
+
/* @__PURE__ */ e(f, { columnGap: 3, rowGap: 3, className: "mt-4", children: I.map(({ id: a, label: r, description: M, features: B, models: G }) => {
|
|
97
|
+
const o = p?.plan === a, O = o ? s.PLANS.ACTIVE_BADGE : `Get ${r}`, L = v === a;
|
|
98
98
|
return /* @__PURE__ */ e(c, { span: { fallback: 12, md: 4 }, children: /* @__PURE__ */ e(d, { mode: "darker", className: "prose-lighter h-full", children: /* @__PURE__ */ t(f, { direction: "column", children: [
|
|
99
99
|
/* @__PURE__ */ t(c, { children: [
|
|
100
100
|
/* @__PURE__ */ e("div", { className: "flex items-start justify-between gap-2", children: /* @__PURE__ */ t("div", { children: [
|
|
@@ -107,12 +107,12 @@ const oe = () => {
|
|
|
107
107
|
children: r
|
|
108
108
|
}
|
|
109
109
|
),
|
|
110
|
-
/* @__PURE__ */ e("p", { className: "mb-0 text-sm opacity-80", children:
|
|
110
|
+
/* @__PURE__ */ e("p", { className: "mb-0 text-sm opacity-80", children: M })
|
|
111
111
|
] }) }),
|
|
112
112
|
/* @__PURE__ */ e("h4", { children: "Features" }),
|
|
113
|
-
/* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children:
|
|
113
|
+
/* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: B.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) }),
|
|
114
114
|
/* @__PURE__ */ e("h4", { children: "Models" }),
|
|
115
|
-
/* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children:
|
|
115
|
+
/* @__PURE__ */ e("ul", { className: "prose-li:text-sm", children: G.map((i) => /* @__PURE__ */ e("li", { children: i }, i)) })
|
|
116
116
|
] }),
|
|
117
117
|
/* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(
|
|
118
118
|
se,
|
|
@@ -124,11 +124,11 @@ const oe = () => {
|
|
|
124
124
|
fullWidth: !0,
|
|
125
125
|
disabled: o || L,
|
|
126
126
|
onClick: () => {
|
|
127
|
-
|
|
127
|
+
z(a, r);
|
|
128
128
|
},
|
|
129
129
|
onMouseEnter: g,
|
|
130
130
|
onFocus: g,
|
|
131
|
-
children: L ? "Updating..." :
|
|
131
|
+
children: L ? "Updating..." : O
|
|
132
132
|
}
|
|
133
133
|
) })
|
|
134
134
|
] }) }) }, a);
|