@versini/sassysaint 8.73.0 → 8.73.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.
- package/dist/chunks/{AboutChangelog.Cp9PopiO.js → AboutChangelog.2b2DI_SN.js} +2 -2
- package/dist/chunks/{AboutEntry.BOb5_aZI.js → AboutEntry.BHq7KBa1.js} +7 -7
- package/dist/chunks/{App.Ck78giBC.js → App.DcQF9Hq9.js} +125 -125
- package/dist/chunks/{Chart.C1dgaS-F.js → Chart.DAdepX81.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.CT2jmjen.js → ChatBubbleAssistant.BF3Bj7JJ.js} +17 -17
- package/dist/chunks/{ChatBubbleUser.CM1FzHNQ.js → ChatBubbleUser.B5uyfOKG.js} +3 -3
- package/dist/chunks/{ChatHistoryTable._Rzl_5Sk.js → ChatHistoryTable.BwjPu3FF.js} +8 -8
- package/dist/chunks/{HistoryEntry.DM6RInwR.js → HistoryEntry.Cj5Hwpkx.js} +16 -15
- package/dist/chunks/{ProfileEntry.Naot3F9p.js → ProfileEntry.Ce801i2m.js} +21 -21
- package/dist/chunks/{SettingsEntry.Du0GDXgA.js → SettingsEntry.fNHoX42W.js} +69 -63
- package/dist/chunks/{Table.JtsJZQLY.js → Table.J1RcsDNn.js} +2 -2
- package/dist/chunks/{UsageEntry.C18Kaf6V.js → UsageEntry.k-Ljpdg9.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.C9gXdvcN.js → UserMemoriesPanel.C0BI-Pbv.js} +4 -4
- package/dist/chunks/{index.BYZBF4_0.js → index.BqnKf1sr.js} +1 -1
- package/dist/chunks/{index.D0pvrKFC.js → index.C_OZL-ky.js} +1 -1
- package/dist/chunks/{index.ce_hM2eo.js → index.CauWbyr8.js} +3 -3
- package/dist/chunks/{index.GppF30Qs.js → index.CmXD-yP7.js} +13 -13
- package/dist/chunks/{index.Ce0bioPG.js → index.FbsVqChk.js} +1 -1
- package/dist/chunks/{index.DBqrJ-of.js → index.RnO-M1tm.js} +2 -2
- package/dist/chunks/{index.DdEAWm8o.js → index.nSgn5ZFo.js} +1 -1
- package/dist/chunks/{index.DTBMKq5O.js → index.uzB9FupG.js} +176 -173
- package/dist/chunks/{useMarkdown.CfYCs10-.js → useMarkdown.rLeRHXfb.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as Ap } from "react/jsx-runtime";
|
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.DcQF9Hq9.js";
|
|
3
3
|
import Cp, { useState as Pp, useEffect as Op } from "react";
|
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.
|
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.uzB9FupG.js";
|
|
5
5
|
var ls = { exports: {} }, Ip = ls.exports, on;
|
|
6
6
|
function Dp() {
|
|
7
7
|
return on || (on = 1, (function(we, he) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y,
|
|
3
|
-
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, b as L } from "./index.uzB9FupG.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.BqnKf1sr.js";
|
|
4
4
|
import w from "clsx";
|
|
5
|
-
import v, { useState as
|
|
6
|
-
import { ChatContext as G, AsyncBubble as E } from "./App.
|
|
7
|
-
import { useMarkdown as D } from "./useMarkdown.
|
|
8
|
-
const j = 2, q = j * 1e3,
|
|
5
|
+
import v, { useState as x, useRef as A, useEffect as U, useContext as B } from "react";
|
|
6
|
+
import { ChatContext as G, AsyncBubble as E } from "./App.DcQF9Hq9.js";
|
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.rLeRHXfb.js";
|
|
8
|
+
const j = 2, q = j * 1e3, M = "", I = (e) => e * (2 - e);
|
|
9
9
|
function W(e, n = !0) {
|
|
10
|
-
const [a, p] =
|
|
10
|
+
const [a, p] = x(0), [i, C] = x(0), [t, T] = x(e), r = A(0), s = A(0);
|
|
11
11
|
return t !== e && (T(e), C(e.startsWith(t) ? a : 0)), U(() => {
|
|
12
12
|
if (!n)
|
|
13
13
|
return;
|
|
14
|
-
const u = e.split(
|
|
14
|
+
const u = e.split(M).length, o = (c) => {
|
|
15
15
|
s.current || (s.current = c);
|
|
16
|
-
const l = c - s.current, m = Math.min(l / q, 1), h = I(m),
|
|
17
|
-
p(Math.floor(
|
|
16
|
+
const l = c - s.current, m = Math.min(l / q, 1), h = I(m), b = i + (u - i) * h;
|
|
17
|
+
p(Math.floor(b)), m < 1 && (r.current = requestAnimationFrame(o));
|
|
18
18
|
};
|
|
19
19
|
return s.current = 0, r.current = requestAnimationFrame(o), () => {
|
|
20
20
|
r.current && cancelAnimationFrame(r.current);
|
|
21
21
|
};
|
|
22
|
-
}, [i, e, n]), n ? e.split(
|
|
22
|
+
}, [i, e, n]), n ? e.split(M).slice(0, a).join(M) : e;
|
|
23
23
|
}
|
|
24
24
|
const d = {
|
|
25
25
|
MODEL: "Model",
|
|
@@ -36,26 +36,26 @@ const d = {
|
|
|
36
36
|
}) => {
|
|
37
37
|
const t = W(e, i), {
|
|
38
38
|
state: { streaming: T, restoredModel: r, tokenUsage: s }
|
|
39
|
-
} = B(G), u = n?.model || r, o = s, [c, l] = D(), { user: m, getAccessToken: h } = N(), { data:
|
|
39
|
+
} = B(G), u = n?.model || r, o = s, [c, l] = D(), { user: m, getAccessToken: h } = N(), { data: b } = O({
|
|
40
40
|
user: m?.username,
|
|
41
41
|
getAccessToken: h
|
|
42
|
-
}), F =
|
|
42
|
+
}), F = b?.showDetails || !1;
|
|
43
43
|
let f;
|
|
44
44
|
return F && (f = {
|
|
45
45
|
[d.MODEL]: u || null,
|
|
46
46
|
[d.PLUGIN]: a ? P(a) : null
|
|
47
47
|
}, o && (C ? f[d.USAGE] = `${R.format(o)} ${y("token", o)}` : f[d.USAGE] = _)), U(() => {
|
|
48
48
|
t && l(t);
|
|
49
|
-
}, [t, l]), p === L ? /* @__PURE__ */
|
|
49
|
+
}, [t, l]), p === L ? /* @__PURE__ */ g(
|
|
50
50
|
E,
|
|
51
51
|
{
|
|
52
52
|
tail: !0,
|
|
53
53
|
className: k,
|
|
54
54
|
contentClassName: S,
|
|
55
55
|
noMaxWidth: !0,
|
|
56
|
-
children: /* @__PURE__ */
|
|
56
|
+
children: /* @__PURE__ */ g("div", { className: "flex items-center justify-center italic text-copy-error-dark dark:text-red-300", children: c })
|
|
57
57
|
}
|
|
58
|
-
) : /* @__PURE__ */
|
|
58
|
+
) : /* @__PURE__ */ g(
|
|
59
59
|
E,
|
|
60
60
|
{
|
|
61
61
|
tail: !0,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
|
|
2
2
|
import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
|
|
3
|
-
import { AsyncBubble as w } from "./App.
|
|
4
|
-
import { useMarkdown as _ } from "./useMarkdown.
|
|
5
|
-
import { C as M } from "./index.
|
|
3
|
+
import { AsyncBubble as w } from "./App.DcQF9Hq9.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.rLeRHXfb.js";
|
|
5
|
+
import { C as M } from "./index.uzB9FupG.js";
|
|
6
6
|
const R = 200, N = ({
|
|
7
7
|
string: e,
|
|
8
8
|
idealLength: r = R
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as m, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { I as g,
|
|
3
|
-
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.
|
|
2
|
+
import { I as g, J as N, Q as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, st as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.uzB9FupG.js";
|
|
3
|
+
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.DcQF9Hq9.js";
|
|
4
4
|
import h from "clsx";
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { j as
|
|
5
|
+
import { Fragment as $ } from "react";
|
|
6
|
+
import { j as _, D as H, G as M, H as Y, U as F, M as a, F as f, l as G } from "./Table.J1RcsDNn.js";
|
|
7
7
|
const K = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
@@ -93,7 +93,7 @@ const K = ({
|
|
|
93
93
|
PROVIDER: "provider",
|
|
94
94
|
TOKEN_USAGE: C,
|
|
95
95
|
ACTIONS: "actions"
|
|
96
|
-
},
|
|
96
|
+
}, Q = [
|
|
97
97
|
t.ROW,
|
|
98
98
|
t.TIMESTAMP,
|
|
99
99
|
t.SUMMARY,
|
|
@@ -115,7 +115,7 @@ const K = ({
|
|
|
115
115
|
onClickFavorite: O,
|
|
116
116
|
infinityScrollMarkerRef: S
|
|
117
117
|
}) => {
|
|
118
|
-
const v = D() ?
|
|
118
|
+
const v = D() ? Q : q, T = (s) => {
|
|
119
119
|
switch (s) {
|
|
120
120
|
case t.ROW:
|
|
121
121
|
return /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }, s);
|
|
@@ -294,9 +294,9 @@ const K = ({
|
|
|
294
294
|
return null;
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
|
-
return /* @__PURE__ */ m(
|
|
297
|
+
return /* @__PURE__ */ m(_, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
|
|
298
298
|
/* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(M, { children: v.map((s) => T(s)) }) }),
|
|
299
|
-
/* @__PURE__ */ e(Y, { children: l.slice(0, o).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m(
|
|
299
|
+
/* @__PURE__ */ e(Y, { children: l.slice(0, o).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m($, { children: [
|
|
300
300
|
r === o - A && /* @__PURE__ */ e("tr", { ref: S }),
|
|
301
301
|
/* @__PURE__ */ e(M, { children: v.map(
|
|
302
302
|
(x) => z(x, s, r)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t, Fragment as X } from "react/jsx-runtime";
|
|
2
|
-
import { I as Z, n as P, INFINITE_SCROLL_LIMIT as F, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae,
|
|
3
|
-
import { HistoryContext as V, ChatContext as z, useAiChat as _e, E as g, e as m, ConfirmationPanel as De, LazyToastContainerWrapper as Oe, showErrorToast as Le, CHAT_SET_PROVIDER as Re, showSuccessToast as Ie, CHAT_SET_STATUS as ke, oe as Ne, G as be } from "./App.
|
|
2
|
+
import { I as Z, n as P, INFINITE_SCROLL_LIMIT as F, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as T, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, J as L, useUserPreferences as se, useDeleteChat as oe, useToggleFavoriteChat as ie, APP_CLASSNAME as ne, TOAST_CHAT_DELETED as ce, graphQLRequest as le, SERVICE_TYPES as de, setNewProvider as he, ACTION_SORT as me, Q as ue, TOAST_PROVIDER_CHANGED as Ce, useChatsHistory as Se, LOCAL_STORAGE_SEARCH as pe, LOCAL_STORAGE_FAVORITES_ONLY as ye, HISTORY_TITLE as fe, S as Te, Y as ge, debounce as Ae, C as Ee, ACTION_SEARCH as ve } from "./index.uzB9FupG.js";
|
|
3
|
+
import { HistoryContext as V, ChatContext as z, useAiChat as _e, E as g, e as m, ConfirmationPanel as De, LazyToastContainerWrapper as Oe, showErrorToast as Le, CHAT_SET_PROVIDER as Re, showSuccessToast as Ie, CHAT_SET_STATUS as ke, oe as Ne, G as be } from "./App.DcQF9Hq9.js";
|
|
4
4
|
import { useRef as w, useState as x, useContext as R, useCallback as we, useEffect as G, Suspense as xe, lazy as He } from "react";
|
|
5
5
|
const Fe = ({
|
|
6
6
|
className: l,
|
|
@@ -31,7 +31,7 @@ const Fe = ({
|
|
|
31
31
|
), Pe = He(
|
|
32
32
|
() => import(
|
|
33
33
|
/* webpackChunkName: "history-table" */
|
|
34
|
-
"./ChatHistoryTable.
|
|
34
|
+
"./ChatHistoryTable.BwjPu3FF.js"
|
|
35
35
|
).then((l) => ({ default: l.ChatHistoryTable }))
|
|
36
36
|
), Ve = ({
|
|
37
37
|
filteredHistory: l,
|
|
@@ -65,9 +65,9 @@ const Fe = ({
|
|
|
65
65
|
}), { refetch: B } = se({
|
|
66
66
|
user: d?.username,
|
|
67
67
|
getAccessToken: C
|
|
68
|
-
}), { mutateAsync: Y } = oe({ getAccessToken: C }), { mutateAsync:
|
|
68
|
+
}), { mutateAsync: Y } = oe({ getAccessToken: C }), { mutateAsync: j } = ie({
|
|
69
69
|
getAccessToken: C
|
|
70
|
-
}),
|
|
70
|
+
}), $ = (e) => {
|
|
71
71
|
const s = i.sortedCell === e;
|
|
72
72
|
let r, O;
|
|
73
73
|
switch (e) {
|
|
@@ -89,7 +89,7 @@ const Fe = ({
|
|
|
89
89
|
sortDirection: H
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
},
|
|
92
|
+
}, Q = async () => {
|
|
93
93
|
const e = o.current;
|
|
94
94
|
try {
|
|
95
95
|
await Y({
|
|
@@ -101,7 +101,7 @@ const Fe = ({
|
|
|
101
101
|
});
|
|
102
102
|
} catch {
|
|
103
103
|
}
|
|
104
|
-
},
|
|
104
|
+
}, q = async (e) => {
|
|
105
105
|
try {
|
|
106
106
|
const s = await C(), r = await le({
|
|
107
107
|
accessToken: s,
|
|
@@ -112,6 +112,7 @@ const Fe = ({
|
|
|
112
112
|
});
|
|
113
113
|
r.data.provider !== f && (await he({
|
|
114
114
|
provider: r.data.provider,
|
|
115
|
+
model: r.data.model,
|
|
115
116
|
accessToken: s,
|
|
116
117
|
username: d?.username || ""
|
|
117
118
|
}), h({
|
|
@@ -134,15 +135,15 @@ const Fe = ({
|
|
|
134
135
|
}), b(""), N(e.id), v(r.data.messages), y(!1);
|
|
135
136
|
} catch {
|
|
136
137
|
}
|
|
137
|
-
},
|
|
138
|
+
}, J = (e) => {
|
|
138
139
|
o.current = {
|
|
139
140
|
id: e.id,
|
|
140
141
|
timestamp: e.timestamp,
|
|
141
142
|
message: e.messages.length > 0 ? e.messages[0]?.content : ""
|
|
142
143
|
}, A(!c);
|
|
143
|
-
},
|
|
144
|
+
}, K = async (e) => {
|
|
144
145
|
try {
|
|
145
|
-
await
|
|
146
|
+
await j({
|
|
146
147
|
userId: d?.username || "",
|
|
147
148
|
id: e.id
|
|
148
149
|
}), u("");
|
|
@@ -163,7 +164,7 @@ const Fe = ({
|
|
|
163
164
|
{
|
|
164
165
|
showConfirmation: c,
|
|
165
166
|
setShowConfirmation: A,
|
|
166
|
-
action:
|
|
167
|
+
action: Q,
|
|
167
168
|
customStrings: {
|
|
168
169
|
confirmAction: "Delete",
|
|
169
170
|
cancelAction: "Cancel",
|
|
@@ -193,10 +194,10 @@ const Fe = ({
|
|
|
193
194
|
filteredHistory: l,
|
|
194
195
|
historyState: k,
|
|
195
196
|
lastEntryToLoad: p,
|
|
196
|
-
onClickSort:
|
|
197
|
-
onClickRestore:
|
|
198
|
-
onClickDelete:
|
|
199
|
-
onClickFavorite:
|
|
197
|
+
onClickSort: $,
|
|
198
|
+
onClickRestore: q,
|
|
199
|
+
onClickDelete: J,
|
|
200
|
+
onClickFavorite: K,
|
|
200
201
|
infinityScrollMarkerRef: S
|
|
201
202
|
}
|
|
202
203
|
) })
|
|
@@ -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.DcQF9Hq9.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.uzB9FupG.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);
|