@versini/sassysaint 8.90.3 → 8.92.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.CPjLntlq.js → AboutChangelog.BOP3BSrk.js} +3 -3
- package/dist/chunks/AboutEntry.Bj8HUsU4.js +89 -0
- package/dist/chunks/{App.zkb8gvM3.js → App.DAQta2pJ.js} +638 -613
- package/dist/chunks/{Chart.DLxNkoZh.js → Chart.4eKSXUC7.js} +1133 -1143
- package/dist/chunks/ChatBubbleAssistant.CSgJfGV8.js +71 -0
- package/dist/chunks/{ChatBubbleUser.BVHUcko2.js → ChatBubbleUser.K3_2TN_h.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.BupKfYV_.js → ChatHistoryTable.BngsfWch.js} +8 -8
- package/dist/chunks/{HistoryEntry.B0rPR2OE.js → HistoryEntry.BXEni06v.js} +38 -37
- package/dist/chunks/{ProfileEntry.NsztPEkp.js → ProfileEntry.B5H9_Q-0.js} +21 -20
- package/dist/chunks/{SettingsEntry.CDOPc6iD.js → SettingsEntry.D5cipDqa.js} +25 -24
- package/dist/chunks/UsageEntry.DPue9312.js +211 -0
- package/dist/chunks/{UserMemoriesPanel.4Bgcvr6X.js → UserMemoriesPanel.CwAnAj0p.js} +13 -12
- package/dist/chunks/{index.ChYRuj2g.js → index.BECvwaM5.js} +764 -736
- package/dist/chunks/{index.BAQ69A14.js → index.C5Rg3-rY.js} +1 -1
- package/dist/chunks/{index.BqwARS2K.js → index.C9N2vELq.js} +1 -1
- package/dist/chunks/{index.D12uAEYv.js → index.CGdw9MqW.js} +2 -2
- package/dist/chunks/{index.DIt56Ck2.js → index.CzSTlOsu.js} +3 -3
- package/dist/chunks/{index.Bg0DWoXf.js → index.Drx_3ie_.js} +1 -1
- package/dist/chunks/{index.DUcwF6lX.js → index.N6iGJtWi.js} +1 -1
- package/dist/chunks/{index.wC_fDv6h.js → index.NHQBZNrH.js} +1 -1
- package/dist/chunks/{index.BMVDRH6N.js → index.hL9trLAw.js} +1 -1
- package/dist/chunks/{useMarkdown.D-AXpwz2.js → useMarkdown.keqTeXmn.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/AboutEntry.D4NbCMmI.js +0 -69
- package/dist/chunks/ChatBubbleAssistant.CT-lt9VL.js +0 -82
- package/dist/chunks/UsageEntry.Bq3qWoi3.js +0 -152
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { n as L, useUniqueId as v, useUserChatStats as z, useChatsUsage as _, USAGE_TITLE as B, Card as A, CARDS as a, L as u, j$1 as h, Button as o, renderDataAsList as P, pluralize as T } from "./index.ChYRuj2g.js";
|
|
3
|
-
import { Panel as b } from "./App.zkb8gvM3.js";
|
|
4
|
-
import { useState as C, Suspense as H, lazy as j } from "react";
|
|
5
|
-
const s = [0, 3, 6, 9], n = {
|
|
6
|
-
TOKEN: "token",
|
|
7
|
-
MODEL: "model"
|
|
8
|
-
}, G = j(
|
|
9
|
-
() => import(
|
|
10
|
-
/* webpackChunkName: "chart-highcharts" */
|
|
11
|
-
"./Chart.DLxNkoZh.js"
|
|
12
|
-
)
|
|
13
|
-
), R = ({
|
|
14
|
-
open: E,
|
|
15
|
-
onOpenChange: I
|
|
16
|
-
}) => {
|
|
17
|
-
const { getAccessToken: S, user: g } = L(), N = v(), { data: t, isSuccess: x } = z({
|
|
18
|
-
user: g?.username,
|
|
19
|
-
getAccessToken: S
|
|
20
|
-
}), { data: r, isSuccess: M } = _({
|
|
21
|
-
user: g?.username,
|
|
22
|
-
getAccessToken: S
|
|
23
|
-
}), f = Math.floor((/* @__PURE__ */ new Date()).getMonth() / 3) * 3, [c, p] = C(f), [l, k] = C(n.MODEL), U = (d) => {
|
|
24
|
-
d.preventDefault();
|
|
25
|
-
const m = (s.indexOf(c) + 1) % s.length;
|
|
26
|
-
p(s[m]);
|
|
27
|
-
}, D = (d) => {
|
|
28
|
-
d.preventDefault();
|
|
29
|
-
const m = (s.indexOf(c) - 1 + s.length) % s.length;
|
|
30
|
-
p(s[m]);
|
|
31
|
-
};
|
|
32
|
-
return /* @__PURE__ */ i(
|
|
33
|
-
b,
|
|
34
|
-
{
|
|
35
|
-
open: E,
|
|
36
|
-
onOpenChange: I,
|
|
37
|
-
title: B,
|
|
38
|
-
animation: !0,
|
|
39
|
-
animationType: "fade",
|
|
40
|
-
footer: /* @__PURE__ */ e(
|
|
41
|
-
u,
|
|
42
|
-
{
|
|
43
|
-
columnGap: 2,
|
|
44
|
-
alignHorizontal: "flex-end",
|
|
45
|
-
className: "pb-8 sm:pb-0",
|
|
46
|
-
children: /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(
|
|
47
|
-
o,
|
|
48
|
-
{
|
|
49
|
-
mode: "dark",
|
|
50
|
-
variant: "secondary",
|
|
51
|
-
focusMode: "light",
|
|
52
|
-
noBorder: !0,
|
|
53
|
-
onClick: () => I(!1),
|
|
54
|
-
children: "Dismiss"
|
|
55
|
-
}
|
|
56
|
-
) })
|
|
57
|
-
}
|
|
58
|
-
),
|
|
59
|
-
children: [
|
|
60
|
-
/* @__PURE__ */ e(
|
|
61
|
-
A,
|
|
62
|
-
{
|
|
63
|
-
header: a.MAIN_STATISTICS.USAGE,
|
|
64
|
-
className: "prose-dark dark:prose-lighter mb-4 min-h-[555px]",
|
|
65
|
-
noBorder: !0,
|
|
66
|
-
children: M && r && r.tokenUsage && r.tokenUsage.series && r.tokenUsage.series.length ? /* @__PURE__ */ i(H, { fallback: /* @__PURE__ */ e("div", {}), children: [
|
|
67
|
-
/* @__PURE__ */ e(u, { className: "mb-2", alignHorizontal: "center", children: /* @__PURE__ */ i(h, { children: [
|
|
68
|
-
/* @__PURE__ */ e(
|
|
69
|
-
o,
|
|
70
|
-
{
|
|
71
|
-
onClick: () => k(n.MODEL),
|
|
72
|
-
size: "small",
|
|
73
|
-
noBorder: !0,
|
|
74
|
-
mode: l === n.MODEL ? "dark" : "light",
|
|
75
|
-
className: "mr-2",
|
|
76
|
-
children: "Model Usage"
|
|
77
|
-
}
|
|
78
|
-
),
|
|
79
|
-
/* @__PURE__ */ e(
|
|
80
|
-
o,
|
|
81
|
-
{
|
|
82
|
-
onClick: () => k(n.TOKEN),
|
|
83
|
-
size: "small",
|
|
84
|
-
noBorder: !0,
|
|
85
|
-
mode: l === n.TOKEN ? "dark" : "light",
|
|
86
|
-
children: "Token Usage"
|
|
87
|
-
}
|
|
88
|
-
)
|
|
89
|
-
] }) }),
|
|
90
|
-
/* @__PURE__ */ e(
|
|
91
|
-
G,
|
|
92
|
-
{
|
|
93
|
-
tokenUsage: l === n.TOKEN ? r.tokenUsage.series : r.modelUsage?.series || [],
|
|
94
|
-
page: c,
|
|
95
|
-
viewMode: l
|
|
96
|
-
}
|
|
97
|
-
),
|
|
98
|
-
/* @__PURE__ */ e(u, { className: "mt-2", alignHorizontal: "center", children: /* @__PURE__ */ i(h, { children: [
|
|
99
|
-
/* @__PURE__ */ e(
|
|
100
|
-
o,
|
|
101
|
-
{
|
|
102
|
-
onClick: D,
|
|
103
|
-
className: "mr-2",
|
|
104
|
-
size: "small",
|
|
105
|
-
noBorder: !0,
|
|
106
|
-
children: "Previous"
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
/* @__PURE__ */ e(
|
|
110
|
-
o,
|
|
111
|
-
{
|
|
112
|
-
onClick: U,
|
|
113
|
-
className: "mr-2",
|
|
114
|
-
size: "small",
|
|
115
|
-
noBorder: !0,
|
|
116
|
-
children: "Next"
|
|
117
|
-
}
|
|
118
|
-
)
|
|
119
|
-
] }) })
|
|
120
|
-
] }) : null
|
|
121
|
-
}
|
|
122
|
-
),
|
|
123
|
-
/* @__PURE__ */ e(
|
|
124
|
-
A,
|
|
125
|
-
{
|
|
126
|
-
header: a.MAIN_STATISTICS.TITLE,
|
|
127
|
-
className: "prose-dark dark:prose-lighter min-h-[170px]",
|
|
128
|
-
noBorder: !0,
|
|
129
|
-
children: x ? P(
|
|
130
|
-
N,
|
|
131
|
-
{
|
|
132
|
-
[T(a.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
133
|
-
[T(
|
|
134
|
-
a.MAIN_STATISTICS.TOTAL_PRIVATE,
|
|
135
|
-
t.privateChats
|
|
136
|
-
)]: t.privateChats,
|
|
137
|
-
[T(
|
|
138
|
-
a.MAIN_STATISTICS.TOTAL_DELETED,
|
|
139
|
-
t.deletedChats
|
|
140
|
-
)]: t.deletedChats
|
|
141
|
-
},
|
|
142
|
-
!0
|
|
143
|
-
) : null
|
|
144
|
-
}
|
|
145
|
-
)
|
|
146
|
-
]
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
};
|
|
150
|
-
export {
|
|
151
|
-
R as Usage
|
|
152
|
-
};
|