@versini/sassysaint 8.24.7 → 8.24.8
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.BUqeJ2k-.js → AboutChangelog.DlLSjExD.js} +2 -2
- package/dist/chunks/AboutEntry.DNuypnSn.js +55 -0
- package/dist/chunks/{App.PPFbshfq.js → App.CU8DPgBK.js} +3258 -5084
- package/dist/chunks/{Chart.JdBXYRNk.js → Chart.CUrSaDT3.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.BkpYlRoE.js → ChatBubbleAssistant.2TUzypYP.js} +3 -3
- package/dist/chunks/HistoryEntry.DQcqMjle.js +432 -0
- package/dist/chunks/{I3HPI4QX.ClLSUs8_.js → I3HPI4QX.DlQpQsgt.js} +1 -1
- package/dist/chunks/ProfileEntry.Iwbm1rap.js +57 -0
- package/dist/chunks/SettingsEntry.D9S_YV-z.js +969 -0
- package/dist/chunks/UsageEntry.BRpaSd7j.js +96 -0
- package/dist/chunks/index.B8EJY2WR.js +389 -0
- package/dist/chunks/{index.izWDheuH.js → index.BmP4cAmg.js} +3 -3
- package/dist/chunks/{index.BdkwBvzN.js → index.CRbaU3g8.js} +2591 -3715
- package/dist/chunks/{index.kEWQ679F.js → index.CRciMWyd.js} +654 -656
- package/dist/chunks/{index.BZVa__fH.js → index.CkC1cqoG.js} +1 -1
- package/dist/chunks/{index.Caz1Erk_.js → index.CxVK8gmr.js} +1789 -1675
- package/dist/chunks/{index.Dma3NBqH.js → index.D4ynJuQN.js} +1 -1
- package/dist/chunks/{useMarkdown.iTIG3u9x.js → useMarkdown.BP64kEQI.js} +1275 -1231
- 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 Tp } from "react/jsx-runtime";
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.CU8DPgBK.js";
|
3
3
|
import Ap, { useState as Cp, useEffect as Pp } from "react";
|
4
|
-
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.
|
4
|
+
import { TRIMESTERS as rn, TRIMESTERS_SHORT as Op, isProbablyMobile as Lp } from "./index.CxVK8gmr.js";
|
5
5
|
var ls = { exports: {} }, Ep = ls.exports, on;
|
6
6
|
function Ip() {
|
7
7
|
return on || (on = 1, function(ve, ne) {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsx as T } from "react/jsx-runtime";
|
2
|
-
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.
|
2
|
+
import { ChatContext as b, E as _, Me as N, Oe as S } from "./App.CU8DPgBK.js";
|
3
3
|
import L from "clsx";
|
4
4
|
import k, { useState as E, useRef as g, useEffect as O, useContext as w } from "react";
|
5
|
-
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.
|
6
|
-
import { useMarkdown as y } from "./useMarkdown.
|
5
|
+
import { LOCAL_STORAGE_PREFIX as F, LOCAL_STORAGE_CHAT_DETAILS as G, convertCamelCaseToReadable as U, numberFormatter as I, pluralize as P, ROLE_INTERNAL as v } from "./index.CxVK8gmr.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.BP64kEQI.js";
|
7
7
|
const D = 2, j = D * 1e3, h = "", q = (e) => e * (2 - e);
|
8
8
|
function V(e, a = !0) {
|
9
9
|
const [i, C] = E(0), [c, p] = E(0), [t, A] = E(e), r = g(0), s = g(0);
|
@@ -0,0 +1,432 @@
|
|
1
|
+
import { jsxs as s, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
2
|
+
import { I as O, n as G, INFINITE_SCROLL_LIMIT as M, INFINITE_SCROLL_THRESHOLD as B, LOCAL_STORAGE_PREFIX as U, LOCAL_STORAGE_SORT as ee, APP_CLASSNAME as te, le as k, CARDS as se, pluralize as ae, ACTION_SORT as P, TOAST_CHAT_DELETED as re, TOAST_PROVIDER_CHANGED as oe, LOCAL_STORAGE_SEARCH as ce, HISTORY_TITLE as ne, fe as ie, debounce as le, isProbablyMobile as de, ACTION_SEARCH as me } from "./index.CxVK8gmr.js";
|
3
|
+
import { HistoryContext as Y, ChatContext as j, useAiChat as he, E as q, useUserPreferences as ue, ConfirmationPanel as pe, LazyToastContainerWrapper as Ce, He as ge, $e as ye, qe as b, Pe as l, Ye as Se, Ge as fe, j as xe, a as Te, p as ve, p$1 as we, at as V, Fe as Ee, mutateCall as $, SERVICE_TYPES as F, showErrorToast as De, R as x, O as Ne, n as Ae, o as Ie, setNewProvider as Re, CHAT_SET_PROVIDER as ze, showSuccessToast as _e, CHAT_SET_STATUS as be, useChatsHistory as ke, rr as Le, a$1 as He } from "./App.CU8DPgBK.js";
|
4
|
+
import { useRef as L, useState as D, useContext as N, useCallback as Oe, useEffect as H, Fragment as Me } from "react";
|
5
|
+
const Be = ({
|
6
|
+
className: a,
|
7
|
+
viewBox: c,
|
8
|
+
title: d,
|
9
|
+
monotone: m,
|
10
|
+
...o
|
11
|
+
}) => /* @__PURE__ */ s(
|
12
|
+
O,
|
13
|
+
{
|
14
|
+
defaultViewBox: "0 0 448 512",
|
15
|
+
size: "size-5",
|
16
|
+
viewBox: c,
|
17
|
+
className: a,
|
18
|
+
title: d || "Delete",
|
19
|
+
...o,
|
20
|
+
children: [
|
21
|
+
/* @__PURE__ */ e(
|
22
|
+
"path",
|
23
|
+
{
|
24
|
+
d: "M32 96v352c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V96zm80 80c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16zm96 0c0-8.8 7.2-16 16-16s16 7.2 16 16v224c0 8.8-7.2 16-16 16s-16-7.2-16-16z",
|
25
|
+
opacity: m ? "1" : "0.4"
|
26
|
+
}
|
27
|
+
),
|
28
|
+
/* @__PURE__ */ e("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0z" })
|
29
|
+
]
|
30
|
+
}
|
31
|
+
), Pe = ({
|
32
|
+
className: a,
|
33
|
+
viewBox: c,
|
34
|
+
title: d,
|
35
|
+
monotone: m,
|
36
|
+
...o
|
37
|
+
}) => /* @__PURE__ */ s(
|
38
|
+
O,
|
39
|
+
{
|
40
|
+
defaultViewBox: "0 0 512 512",
|
41
|
+
size: "size-5",
|
42
|
+
viewBox: c,
|
43
|
+
className: a,
|
44
|
+
title: d || "Restore",
|
45
|
+
...o,
|
46
|
+
children: [
|
47
|
+
/* @__PURE__ */ e(
|
48
|
+
"path",
|
49
|
+
{
|
50
|
+
d: "M128 80v16h64V80c0-8.8 7.2-16 16-16h224c8.8 0 16 7.2 16 16v224c0 8.8-7.2 16-16 16h-16v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80",
|
51
|
+
opacity: m ? "1" : "0.4"
|
52
|
+
}
|
53
|
+
),
|
54
|
+
/* @__PURE__ */ e("path", { d: "M64 128c-35.3 0-64 28.7-64 64v256c0 35.3 28.7 64 64 64h256c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64zm32 64h192c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32" })
|
55
|
+
]
|
56
|
+
}
|
57
|
+
), Ve = ({
|
58
|
+
className: a,
|
59
|
+
viewBox: c,
|
60
|
+
title: d,
|
61
|
+
monotone: m,
|
62
|
+
...o
|
63
|
+
}) => /* @__PURE__ */ s(
|
64
|
+
O,
|
65
|
+
{
|
66
|
+
defaultViewBox: "0 0 512 512",
|
67
|
+
size: "size-5",
|
68
|
+
viewBox: c,
|
69
|
+
className: a,
|
70
|
+
title: d || "Search",
|
71
|
+
...o,
|
72
|
+
children: [
|
73
|
+
/* @__PURE__ */ e(
|
74
|
+
"path",
|
75
|
+
{
|
76
|
+
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",
|
77
|
+
opacity: m ? "1" : "0.4"
|
78
|
+
}
|
79
|
+
),
|
80
|
+
/* @__PURE__ */ e("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" })
|
81
|
+
]
|
82
|
+
}
|
83
|
+
), $e = {
|
84
|
+
[Ie]: we,
|
85
|
+
[Ae]: ve,
|
86
|
+
[Ne]: Te
|
87
|
+
}, Fe = ({
|
88
|
+
filteredHistory: a,
|
89
|
+
dispatch: c,
|
90
|
+
onOpenChange: d,
|
91
|
+
mutate: m
|
92
|
+
}) => {
|
93
|
+
const { user: o, getAccessToken: y } = G(), S = L(null), n = L({
|
94
|
+
id: "",
|
95
|
+
timestamp: "",
|
96
|
+
message: ""
|
97
|
+
}), [r, T] = D(!1), [C, A] = D(
|
98
|
+
M + B
|
99
|
+
), { state: p, dispatch: v } = N(Y), {
|
100
|
+
state: { provider: I },
|
101
|
+
setChatId: w,
|
102
|
+
setInitialMessages: R
|
103
|
+
} = N(j), { setInput: z } = he(), [, h] = q({
|
104
|
+
key: U + ee,
|
105
|
+
initialValue: p.sortDirection
|
106
|
+
}), { refetch: W } = ue({
|
107
|
+
user: o?.username,
|
108
|
+
getAccessToken: y
|
109
|
+
}), X = (t) => {
|
110
|
+
switch (p.sortDirection) {
|
111
|
+
case x.ASC:
|
112
|
+
h(x.DESC), v({
|
113
|
+
type: P,
|
114
|
+
payload: {
|
115
|
+
sortedCell: t,
|
116
|
+
sortDirection: x.DESC
|
117
|
+
}
|
118
|
+
});
|
119
|
+
break;
|
120
|
+
default:
|
121
|
+
h(x.ASC), v({
|
122
|
+
type: P,
|
123
|
+
payload: {
|
124
|
+
sortedCell: t,
|
125
|
+
sortDirection: x.ASC
|
126
|
+
}
|
127
|
+
});
|
128
|
+
break;
|
129
|
+
}
|
130
|
+
}, J = async () => {
|
131
|
+
const t = n.current;
|
132
|
+
try {
|
133
|
+
await $({
|
134
|
+
accessToken: await y(),
|
135
|
+
type: F.DELETE_CHAT,
|
136
|
+
params: {
|
137
|
+
userId: o?.username || "",
|
138
|
+
id: t.id
|
139
|
+
}
|
140
|
+
}), m(""), await De(re, {
|
141
|
+
autoClose: 2e3,
|
142
|
+
containerId: "history-table"
|
143
|
+
});
|
144
|
+
} catch {
|
145
|
+
}
|
146
|
+
}, K = async (t, i, f, g, E, _) => {
|
147
|
+
try {
|
148
|
+
const u = await $({
|
149
|
+
accessToken: g,
|
150
|
+
type: F.GET_CHAT,
|
151
|
+
params: {
|
152
|
+
id: t.id
|
153
|
+
}
|
154
|
+
});
|
155
|
+
u.status === 200 && (u.data.provider !== _ && (await Re({
|
156
|
+
provider: u.data.provider,
|
157
|
+
accessToken: g,
|
158
|
+
username: E
|
159
|
+
}), i({
|
160
|
+
type: ze,
|
161
|
+
payload: {
|
162
|
+
provider: u.data.provider
|
163
|
+
}
|
164
|
+
}), W(), await _e(
|
165
|
+
`${oe} ${u.data.provider}`,
|
166
|
+
{
|
167
|
+
containerId: "toggle-provider"
|
168
|
+
}
|
169
|
+
)), i({
|
170
|
+
type: be,
|
171
|
+
payload: {
|
172
|
+
restoring: !0,
|
173
|
+
restoredModel: u.data?.model || "",
|
174
|
+
restoredUsage: u.data?.tokenUsage || 0
|
175
|
+
}
|
176
|
+
}), z(""), w(t.id), R(u.data.messages), f(!1));
|
177
|
+
} catch {
|
178
|
+
}
|
179
|
+
}, Q = Oe((t) => {
|
180
|
+
t[0].isIntersecting && A((f) => f + M);
|
181
|
+
}, []);
|
182
|
+
return H(() => {
|
183
|
+
const t = {
|
184
|
+
// root: null,
|
185
|
+
rootMargin: "20px"
|
186
|
+
}, i = new IntersectionObserver(Q, t);
|
187
|
+
S.current && i.observe(S.current);
|
188
|
+
}), /* @__PURE__ */ s(Z, { children: [
|
189
|
+
/* @__PURE__ */ s(
|
190
|
+
pe,
|
191
|
+
{
|
192
|
+
showConfirmation: r,
|
193
|
+
setShowConfirmation: T,
|
194
|
+
action: J,
|
195
|
+
customStrings: {
|
196
|
+
confirmAction: "Delete",
|
197
|
+
cancelAction: "Cancel",
|
198
|
+
title: "Delete chat"
|
199
|
+
},
|
200
|
+
children: [
|
201
|
+
/* @__PURE__ */ e("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
202
|
+
/* @__PURE__ */ s("ul", { className: "m-0", children: [
|
203
|
+
/* @__PURE__ */ s("li", { children: [
|
204
|
+
"Timestamp:",
|
205
|
+
" ",
|
206
|
+
/* @__PURE__ */ e("span", { className: "text-lg", children: n.current && n.current.timestamp })
|
207
|
+
] }),
|
208
|
+
/* @__PURE__ */ s("li", { children: [
|
209
|
+
"First message:",
|
210
|
+
" ",
|
211
|
+
/* @__PURE__ */ e("span", { className: "text-lg", children: n.current?.message })
|
212
|
+
] })
|
213
|
+
] })
|
214
|
+
]
|
215
|
+
}
|
216
|
+
),
|
217
|
+
/* @__PURE__ */ e("div", { className: te, children: /* @__PURE__ */ e(Ce, { containerId: "history-table" }) }),
|
218
|
+
/* @__PURE__ */ s(ge, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
219
|
+
/* @__PURE__ */ e(ye, { children: /* @__PURE__ */ s(b, { children: [
|
220
|
+
/* @__PURE__ */ e(l, { className: "sr-only", children: "Row" }),
|
221
|
+
/* @__PURE__ */ e(
|
222
|
+
Se,
|
223
|
+
{
|
224
|
+
buttonClassName: "text-xs sm:text-sm",
|
225
|
+
cellId: "timestamp",
|
226
|
+
align: "left",
|
227
|
+
sortDirection: p.sortDirection,
|
228
|
+
sortedCell: p.sortedCell,
|
229
|
+
onClick: () => {
|
230
|
+
X("timestamp");
|
231
|
+
},
|
232
|
+
children: "Date"
|
233
|
+
}
|
234
|
+
),
|
235
|
+
/* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Summary" }),
|
236
|
+
/* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Provider" }),
|
237
|
+
/* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
238
|
+
] }) }),
|
239
|
+
/* @__PURE__ */ e(fe, { children: a.slice(0, C).map((t, i) => {
|
240
|
+
const f = t.summary || (t.messages.length > 0 ? t.messages[0]?.content : ""), g = t.model ? xe(t.model) : null, E = g ? $e[g] : null;
|
241
|
+
return t?.messages?.length > 0 ? /* @__PURE__ */ s(Me, { children: [
|
242
|
+
i === C - B && /* @__PURE__ */ e("tr", { ref: S }),
|
243
|
+
/* @__PURE__ */ s(b, { children: [
|
244
|
+
/* @__PURE__ */ e(l, { children: i + 1 }),
|
245
|
+
/* @__PURE__ */ e(
|
246
|
+
l,
|
247
|
+
{
|
248
|
+
component: "th",
|
249
|
+
scope: "row",
|
250
|
+
className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
|
251
|
+
children: t.timestamp.split(",")[0]
|
252
|
+
}
|
253
|
+
),
|
254
|
+
/* @__PURE__ */ e(
|
255
|
+
l,
|
256
|
+
{
|
257
|
+
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
258
|
+
style: {
|
259
|
+
wordBreak: "break-word"
|
260
|
+
},
|
261
|
+
children: f
|
262
|
+
}
|
263
|
+
),
|
264
|
+
/* @__PURE__ */ e(
|
265
|
+
l,
|
266
|
+
{
|
267
|
+
component: "th",
|
268
|
+
scope: "row",
|
269
|
+
className: "text-gray-400",
|
270
|
+
align: "center",
|
271
|
+
children: E ? /* @__PURE__ */ e(
|
272
|
+
E,
|
273
|
+
{
|
274
|
+
size: "size-4 sm:size-5",
|
275
|
+
semantic: !0,
|
276
|
+
title: t.model || g
|
277
|
+
}
|
278
|
+
) : null
|
279
|
+
}
|
280
|
+
),
|
281
|
+
/* @__PURE__ */ s(l, { align: "right", children: [
|
282
|
+
/* @__PURE__ */ e(
|
283
|
+
V,
|
284
|
+
{
|
285
|
+
label: "Restore chat",
|
286
|
+
mode: "alt-system",
|
287
|
+
placement: "top",
|
288
|
+
trigger: /* @__PURE__ */ e(
|
289
|
+
k,
|
290
|
+
{
|
291
|
+
className: "mr-2",
|
292
|
+
focusMode: "alt-system",
|
293
|
+
noBorder: !0,
|
294
|
+
label: "Restore chat",
|
295
|
+
onClick: async () => {
|
296
|
+
const _ = await y();
|
297
|
+
K(
|
298
|
+
t,
|
299
|
+
c,
|
300
|
+
d,
|
301
|
+
_,
|
302
|
+
o?.username || "",
|
303
|
+
I
|
304
|
+
);
|
305
|
+
},
|
306
|
+
children: /* @__PURE__ */ e(Pe, { size: "size-3", monotone: !0 })
|
307
|
+
}
|
308
|
+
)
|
309
|
+
}
|
310
|
+
),
|
311
|
+
/* @__PURE__ */ e(
|
312
|
+
V,
|
313
|
+
{
|
314
|
+
label: "Delete chat",
|
315
|
+
mode: "alt-system",
|
316
|
+
placement: "top",
|
317
|
+
trigger: /* @__PURE__ */ e(
|
318
|
+
k,
|
319
|
+
{
|
320
|
+
focusMode: "alt-system",
|
321
|
+
noBorder: !0,
|
322
|
+
label: "Delete chat",
|
323
|
+
onClick: () => {
|
324
|
+
n.current = {
|
325
|
+
id: t.id,
|
326
|
+
timestamp: t.timestamp,
|
327
|
+
message: t.messages.length > 0 ? t.messages[0]?.content : ""
|
328
|
+
}, T(!r);
|
329
|
+
},
|
330
|
+
children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(Be, { size: "size-3", monotone: !0 }) })
|
331
|
+
}
|
332
|
+
)
|
333
|
+
}
|
334
|
+
)
|
335
|
+
] })
|
336
|
+
] })
|
337
|
+
] }, `${se.HISTORY.TITLE}-${t.id}-${i}`) : null;
|
338
|
+
}) }),
|
339
|
+
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ e(b, { children: /* @__PURE__ */ e(l, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: ae(
|
340
|
+
`${a.length} chat`,
|
341
|
+
a.length
|
342
|
+
) }) }) }) })
|
343
|
+
] })
|
344
|
+
] });
|
345
|
+
}, qe = ({
|
346
|
+
open: a,
|
347
|
+
onOpenChange: c
|
348
|
+
}) => {
|
349
|
+
const { getAccessToken: d, user: m } = G(), { dispatch: o } = N(j), [y, S] = D([]), n = L(null), { state: r, dispatch: T } = N(Y), [C, A] = D(
|
350
|
+
r.sortDirection
|
351
|
+
), { data: p, refetch: v } = ke({
|
352
|
+
enabled: a,
|
353
|
+
user: m?.username || "",
|
354
|
+
searchString: r.searchString,
|
355
|
+
sortDirection: C,
|
356
|
+
getAccessToken: d
|
357
|
+
}), [, I] = q({
|
358
|
+
key: U + ce,
|
359
|
+
initialValue: r.searchString
|
360
|
+
});
|
361
|
+
H(() => {
|
362
|
+
r.sortDirection !== C && A(r.sortDirection);
|
363
|
+
}, [r, C]), H(() => {
|
364
|
+
p && S(p);
|
365
|
+
}, [p]);
|
366
|
+
const w = async (h) => {
|
367
|
+
I(h), T({
|
368
|
+
type: me,
|
369
|
+
payload: { searchString: h }
|
370
|
+
});
|
371
|
+
}, R = le((h) => {
|
372
|
+
w(h.target.value.trim());
|
373
|
+
}, 500), z = async (h) => {
|
374
|
+
h.preventDefault();
|
375
|
+
};
|
376
|
+
return /* @__PURE__ */ s(
|
377
|
+
Le,
|
378
|
+
{
|
379
|
+
animation: !de(),
|
380
|
+
open: a,
|
381
|
+
onOpenChange: c,
|
382
|
+
title: ne,
|
383
|
+
children: [
|
384
|
+
/* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: z, children: /* @__PURE__ */ e(
|
385
|
+
ie,
|
386
|
+
{
|
387
|
+
placeholder: "Search",
|
388
|
+
labelHidden: !0,
|
389
|
+
noBorder: !0,
|
390
|
+
autoCapitalize: "off",
|
391
|
+
autoComplete: "off",
|
392
|
+
autoCorrect: "off",
|
393
|
+
ref: n,
|
394
|
+
defaultValue: r.searchString,
|
395
|
+
focusMode: "light",
|
396
|
+
mode: "light",
|
397
|
+
name: "Search",
|
398
|
+
label: "Search",
|
399
|
+
onChange: R,
|
400
|
+
className: "my-2",
|
401
|
+
rightElement: /* @__PURE__ */ e("div", { className: "text-copy-dark", children: /* @__PURE__ */ e(
|
402
|
+
k,
|
403
|
+
{
|
404
|
+
mode: "dark",
|
405
|
+
focusMode: "dark",
|
406
|
+
label: "Search",
|
407
|
+
size: "small",
|
408
|
+
onClick: () => {
|
409
|
+
w(""), n.current?.value && (n.current.value = "", n.current.focus());
|
410
|
+
},
|
411
|
+
disabled: r.searchString === "",
|
412
|
+
children: r.searchString !== "" ? /* @__PURE__ */ e(He, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ e(Ve, { monotone: !0, size: "size-3" })
|
413
|
+
}
|
414
|
+
) })
|
415
|
+
}
|
416
|
+
) }),
|
417
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ e(
|
418
|
+
Fe,
|
419
|
+
{
|
420
|
+
mutate: v,
|
421
|
+
filteredHistory: y,
|
422
|
+
dispatch: o,
|
423
|
+
onOpenChange: c
|
424
|
+
}
|
425
|
+
) })
|
426
|
+
]
|
427
|
+
}
|
428
|
+
);
|
429
|
+
};
|
430
|
+
export {
|
431
|
+
qe as HistoryPanel
|
432
|
+
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.
|
1
|
+
import { createContext as be, createSignal as R, onMount as Mt, createEffect as B, createMemo as M, createComponent as p, Portal as Lo, Show as z, template as _, insert as k, createRenderEffect as N, className as T, clearDelegatedEvents as ms, delegateEvents as rr, useContext as xe, onCleanup as U, sortFns as Gn, mutationSortFns as Hn, on as ct, setAttribute as A, getSidedProp as vs, use as Mn, batch as bs, getQueryStatusLabel as Lt, getMutationStatusColor as _t, getQueryStatusColor as xs, getQueryStatusColorByLabel as ws, displayValue as bn, For as $s, convertRemToPixels as Rr, untrack as Rt, useTransition as Cs, spread as Ss, mergeProps as j, createRoot as zr, serialize as ks, Index as Es, updateNestedDataByPath as or, addEventListener as Ms, stringify as Ds, Match as Rn, Switch as As, deleteNestedDataByPath as Ts, createUniqueId as Ke, splitProps as X, Dynamic as Fs, createComputed as Is, getPreferredColorScheme as Ps } from "./index.CxVK8gmr.js";
|
2
2
|
var Ls = (e) => e != null, Os = (e) => e.filter(Ls);
|
3
3
|
function qs(e) {
|
4
4
|
return (...t) => {
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { jsxs as s, Fragment as m, jsx as e } from "react/jsx-runtime";
|
2
|
+
import { i as h, nt as S, rr as P } from "./App.CU8DPgBK.js";
|
3
|
+
import { n as R, S as l, renderDataAsList as N, CARDS as r, isElectron as p, le as T, l as E, L as u, j as a, PROFILE_TITLE as C, isProbablyMobile as A } from "./index.CxVK8gmr.js";
|
4
|
+
const F = () => {
|
5
|
+
const { isAuthenticated: n, user: i, registeringForPasskey: o, authenticationType: c } = R(), d = h(), t = i?.username || "";
|
6
|
+
return n && t ? /* @__PURE__ */ s(m, { children: [
|
7
|
+
/* @__PURE__ */ e(
|
8
|
+
l,
|
9
|
+
{
|
10
|
+
header: r.PREFERENCES.TITLE,
|
11
|
+
className: "prose-dark dark:prose-lighter",
|
12
|
+
children: N(d, {
|
13
|
+
[r.PREFERENCES.NAME]: t,
|
14
|
+
[r.PREFERENCES.EMAIL]: i?.email || ""
|
15
|
+
})
|
16
|
+
}
|
17
|
+
),
|
18
|
+
c !== S.PASSKEY && !p() && /* @__PURE__ */ s(
|
19
|
+
l,
|
20
|
+
{
|
21
|
+
className: "prose-dark dark:prose-lighter mt-4",
|
22
|
+
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ s(u, { columnGap: 3, alignVertical: "center", children: [
|
23
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(E, { size: "size-8" }) }),
|
24
|
+
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("div", { children: r.PREFERENCES.PASSKEY_TITLE }) })
|
25
|
+
] }) }),
|
26
|
+
children: [
|
27
|
+
/* @__PURE__ */ e("p", { children: r.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
28
|
+
/* @__PURE__ */ e(
|
29
|
+
T,
|
30
|
+
{
|
31
|
+
size: "small",
|
32
|
+
className: "mt-2",
|
33
|
+
onClick: o,
|
34
|
+
labelLeft: r.PREFERENCES.PASSKEY_BUTTON,
|
35
|
+
children: /* @__PURE__ */ e(E, { size: "size-5", monotone: !0 })
|
36
|
+
}
|
37
|
+
)
|
38
|
+
]
|
39
|
+
}
|
40
|
+
)
|
41
|
+
] }) : null;
|
42
|
+
}, g = ({
|
43
|
+
open: n,
|
44
|
+
onOpenChange: i
|
45
|
+
}) => /* @__PURE__ */ e(
|
46
|
+
P,
|
47
|
+
{
|
48
|
+
animation: !A(),
|
49
|
+
open: n,
|
50
|
+
onOpenChange: i,
|
51
|
+
title: C,
|
52
|
+
children: /* @__PURE__ */ e(F, {})
|
53
|
+
}
|
54
|
+
);
|
55
|
+
export {
|
56
|
+
g as Profile
|
57
|
+
};
|