@versini/sassysaint 8.24.8 → 8.25.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.DlLSjExD.js → AboutChangelog.DZ1-iJ5A.js} +2 -2
- package/dist/chunks/{AboutEntry.DNuypnSn.js → AboutEntry.Okn300Ka.js} +19 -18
- package/dist/chunks/{App.CU8DPgBK.js → App.BeMVpu5U.js} +139 -138
- package/dist/chunks/{Chart.CUrSaDT3.js → Chart.Bpkp6pxX.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.2TUzypYP.js → ChatBubbleAssistant.C2qF6aep.js} +3 -3
- package/dist/chunks/{HistoryEntry.DQcqMjle.js → HistoryEntry.BMFZA7sy.js} +103 -112
- package/dist/chunks/{I3HPI4QX.DlQpQsgt.js → I3HPI4QX.CZKfF4QS.js} +1 -1
- package/dist/chunks/{ProfileEntry.Iwbm1rap.js → ProfileEntry.CvSmmgnk.js} +11 -20
- package/dist/chunks/{SettingsEntry.D9S_YV-z.js → SettingsEntry.zQ7rDphM.js} +64 -65
- package/dist/chunks/UsageEntry.DjUX5B6l.js +87 -0
- package/dist/chunks/{index.BmP4cAmg.js → index.C6GUxeYR.js} +3 -3
- package/dist/chunks/{index.D4ynJuQN.js → index.CWHaDvJC.js} +1 -1
- package/dist/chunks/{index.CRbaU3g8.js → index.Cdwqyz44.js} +2 -2
- package/dist/chunks/{index.CkC1cqoG.js → index.DoY59F_M.js} +1 -1
- package/dist/chunks/{index.CRciMWyd.js → index.Dw1w26Sa.js} +1 -1
- package/dist/chunks/{index.CxVK8gmr.js → index.Ryu4fNCl.js} +2 -2
- package/dist/chunks/{useMarkdown.BP64kEQI.js → useMarkdown.DzobZvVM.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/UsageEntry.BRpaSd7j.js +0 -96
@@ -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.BeMVpu5U.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.Ryu4fNCl.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.BeMVpu5U.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.Ryu4fNCl.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.DzobZvVM.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);
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
2
|
-
import { I as
|
3
|
-
import { HistoryContext as Y, ChatContext as j, useAiChat as
|
4
|
-
import { useRef as
|
5
|
-
const
|
2
|
+
import { I as H, 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 b, CARDS as se, pluralize as ae, ACTION_SORT as V, 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, ACTION_SEARCH as de } from "./index.Ryu4fNCl.js";
|
3
|
+
import { HistoryContext as Y, ChatContext as j, useAiChat as me, E as q, useUserPreferences as he, ConfirmationPanel as ue, LazyToastContainerWrapper as pe, He as Ce, $e as Se, qe as _, Pe as l, Ye as ge, Ge as ye, j as fe, a as xe, p as Te, p$1 as ve, at as $, Fe as we, mutateCall as P, SERVICE_TYPES as F, showErrorToast as Ee, R as x, O as De, n as Ne, o as Ae, setNewProvider as Ie, CHAT_SET_PROVIDER as Re, showSuccessToast as ze, CHAT_SET_STATUS as _e, useChatsHistory as be, rr as ke, a$1 as Le } from "./App.BeMVpu5U.js";
|
4
|
+
import { useRef as k, useState as D, useContext as N, useCallback as He, useEffect as L, Fragment as Oe } from "react";
|
5
|
+
const Me = ({
|
6
6
|
className: a,
|
7
7
|
viewBox: c,
|
8
8
|
title: d,
|
9
9
|
monotone: m,
|
10
10
|
...o
|
11
11
|
}) => /* @__PURE__ */ s(
|
12
|
-
|
12
|
+
H,
|
13
13
|
{
|
14
14
|
defaultViewBox: "0 0 448 512",
|
15
15
|
size: "size-5",
|
@@ -28,14 +28,14 @@ const Be = ({
|
|
28
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
29
|
]
|
30
30
|
}
|
31
|
-
),
|
31
|
+
), Be = ({
|
32
32
|
className: a,
|
33
33
|
viewBox: c,
|
34
34
|
title: d,
|
35
35
|
monotone: m,
|
36
36
|
...o
|
37
37
|
}) => /* @__PURE__ */ s(
|
38
|
-
|
38
|
+
H,
|
39
39
|
{
|
40
40
|
defaultViewBox: "0 0 512 512",
|
41
41
|
size: "size-5",
|
@@ -61,7 +61,7 @@ const Be = ({
|
|
61
61
|
monotone: m,
|
62
62
|
...o
|
63
63
|
}) => /* @__PURE__ */ s(
|
64
|
-
|
64
|
+
H,
|
65
65
|
{
|
66
66
|
defaultViewBox: "0 0 512 512",
|
67
67
|
size: "size-5",
|
@@ -81,16 +81,16 @@ const Be = ({
|
|
81
81
|
]
|
82
82
|
}
|
83
83
|
), $e = {
|
84
|
-
[Ie]: we,
|
85
84
|
[Ae]: ve,
|
86
|
-
[Ne]: Te
|
87
|
-
|
85
|
+
[Ne]: Te,
|
86
|
+
[De]: xe
|
87
|
+
}, Pe = ({
|
88
88
|
filteredHistory: a,
|
89
89
|
dispatch: c,
|
90
90
|
onOpenChange: d,
|
91
91
|
mutate: m
|
92
92
|
}) => {
|
93
|
-
const { user: o, getAccessToken:
|
93
|
+
const { user: o, getAccessToken: g } = G(), y = k(null), n = k({
|
94
94
|
id: "",
|
95
95
|
timestamp: "",
|
96
96
|
message: ""
|
@@ -100,17 +100,17 @@ const Be = ({
|
|
100
100
|
state: { provider: I },
|
101
101
|
setChatId: w,
|
102
102
|
setInitialMessages: R
|
103
|
-
} = N(j), { setInput:
|
103
|
+
} = N(j), { setInput: O } = me(), [, h] = q({
|
104
104
|
key: U + ee,
|
105
105
|
initialValue: p.sortDirection
|
106
|
-
}), { refetch: W } =
|
106
|
+
}), { refetch: W } = he({
|
107
107
|
user: o?.username,
|
108
|
-
getAccessToken:
|
108
|
+
getAccessToken: g
|
109
109
|
}), X = (t) => {
|
110
110
|
switch (p.sortDirection) {
|
111
111
|
case x.ASC:
|
112
112
|
h(x.DESC), v({
|
113
|
-
type:
|
113
|
+
type: V,
|
114
114
|
payload: {
|
115
115
|
sortedCell: t,
|
116
116
|
sortDirection: x.DESC
|
@@ -119,7 +119,7 @@ const Be = ({
|
|
119
119
|
break;
|
120
120
|
default:
|
121
121
|
h(x.ASC), v({
|
122
|
-
type:
|
122
|
+
type: V,
|
123
123
|
payload: {
|
124
124
|
sortedCell: t,
|
125
125
|
sortDirection: x.ASC
|
@@ -130,64 +130,64 @@ const Be = ({
|
|
130
130
|
}, J = async () => {
|
131
131
|
const t = n.current;
|
132
132
|
try {
|
133
|
-
await
|
134
|
-
accessToken: await
|
133
|
+
await P({
|
134
|
+
accessToken: await g(),
|
135
135
|
type: F.DELETE_CHAT,
|
136
136
|
params: {
|
137
137
|
userId: o?.username || "",
|
138
138
|
id: t.id
|
139
139
|
}
|
140
|
-
}), m(""), await
|
140
|
+
}), m(""), await Ee(re, {
|
141
141
|
autoClose: 2e3,
|
142
142
|
containerId: "history-table"
|
143
143
|
});
|
144
144
|
} catch {
|
145
145
|
}
|
146
|
-
}, K = async (t, i, f,
|
146
|
+
}, K = async (t, i, f, S, E, z) => {
|
147
147
|
try {
|
148
|
-
const u = await
|
149
|
-
accessToken:
|
148
|
+
const u = await P({
|
149
|
+
accessToken: S,
|
150
150
|
type: F.GET_CHAT,
|
151
151
|
params: {
|
152
152
|
id: t.id
|
153
153
|
}
|
154
154
|
});
|
155
|
-
u.status === 200 && (u.data.provider !==
|
155
|
+
u.status === 200 && (u.data.provider !== z && (await Ie({
|
156
156
|
provider: u.data.provider,
|
157
|
-
accessToken:
|
157
|
+
accessToken: S,
|
158
158
|
username: E
|
159
159
|
}), i({
|
160
|
-
type:
|
160
|
+
type: Re,
|
161
161
|
payload: {
|
162
162
|
provider: u.data.provider
|
163
163
|
}
|
164
|
-
}), W(), await
|
164
|
+
}), W(), await ze(
|
165
165
|
`${oe} ${u.data.provider}`,
|
166
166
|
{
|
167
167
|
containerId: "toggle-provider"
|
168
168
|
}
|
169
169
|
)), i({
|
170
|
-
type:
|
170
|
+
type: _e,
|
171
171
|
payload: {
|
172
172
|
restoring: !0,
|
173
173
|
restoredModel: u.data?.model || "",
|
174
174
|
restoredUsage: u.data?.tokenUsage || 0
|
175
175
|
}
|
176
|
-
}),
|
176
|
+
}), O(""), w(t.id), R(u.data.messages), f(!1));
|
177
177
|
} catch {
|
178
178
|
}
|
179
|
-
}, Q =
|
179
|
+
}, Q = He((t) => {
|
180
180
|
t[0].isIntersecting && A((f) => f + M);
|
181
181
|
}, []);
|
182
|
-
return
|
182
|
+
return L(() => {
|
183
183
|
const t = {
|
184
184
|
// root: null,
|
185
185
|
rootMargin: "20px"
|
186
186
|
}, i = new IntersectionObserver(Q, t);
|
187
|
-
|
187
|
+
y.current && i.observe(y.current);
|
188
188
|
}), /* @__PURE__ */ s(Z, { children: [
|
189
189
|
/* @__PURE__ */ s(
|
190
|
-
|
190
|
+
ue,
|
191
191
|
{
|
192
192
|
showConfirmation: r,
|
193
193
|
setShowConfirmation: T,
|
@@ -214,12 +214,12 @@ const Be = ({
|
|
214
214
|
]
|
215
215
|
}
|
216
216
|
),
|
217
|
-
/* @__PURE__ */ e("div", { className: te, children: /* @__PURE__ */ e(
|
218
|
-
/* @__PURE__ */ s(
|
219
|
-
/* @__PURE__ */ e(
|
217
|
+
/* @__PURE__ */ e("div", { className: te, children: /* @__PURE__ */ e(pe, { containerId: "history-table" }) }),
|
218
|
+
/* @__PURE__ */ s(Ce, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
219
|
+
/* @__PURE__ */ e(Se, { children: /* @__PURE__ */ s(_, { children: [
|
220
220
|
/* @__PURE__ */ e(l, { className: "sr-only", children: "Row" }),
|
221
221
|
/* @__PURE__ */ e(
|
222
|
-
|
222
|
+
ge,
|
223
223
|
{
|
224
224
|
buttonClassName: "text-xs sm:text-sm",
|
225
225
|
cellId: "timestamp",
|
@@ -236,11 +236,11 @@ const Be = ({
|
|
236
236
|
/* @__PURE__ */ e(l, { className: "text-xs sm:text-sm", children: "Provider" }),
|
237
237
|
/* @__PURE__ */ e(l, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
238
238
|
] }) }),
|
239
|
-
/* @__PURE__ */ e(
|
240
|
-
const f = t.summary || (t.messages.length > 0 ? t.messages[0]?.content : ""),
|
241
|
-
return t?.messages?.length > 0 ? /* @__PURE__ */ s(
|
242
|
-
i === C - B && /* @__PURE__ */ e("tr", { ref:
|
243
|
-
/* @__PURE__ */ s(
|
239
|
+
/* @__PURE__ */ e(ye, { children: a.slice(0, C).map((t, i) => {
|
240
|
+
const f = t.summary || (t.messages.length > 0 ? t.messages[0]?.content : ""), S = t.model ? fe(t.model) : null, E = S ? $e[S] : null;
|
241
|
+
return t?.messages?.length > 0 ? /* @__PURE__ */ s(Oe, { children: [
|
242
|
+
i === C - B && /* @__PURE__ */ e("tr", { ref: y }),
|
243
|
+
/* @__PURE__ */ s(_, { children: [
|
244
244
|
/* @__PURE__ */ e(l, { children: i + 1 }),
|
245
245
|
/* @__PURE__ */ e(
|
246
246
|
l,
|
@@ -273,49 +273,49 @@ const Be = ({
|
|
273
273
|
{
|
274
274
|
size: "size-4 sm:size-5",
|
275
275
|
semantic: !0,
|
276
|
-
title: t.model ||
|
276
|
+
title: t.model || S
|
277
277
|
}
|
278
278
|
) : null
|
279
279
|
}
|
280
280
|
),
|
281
281
|
/* @__PURE__ */ s(l, { align: "right", children: [
|
282
282
|
/* @__PURE__ */ e(
|
283
|
-
|
283
|
+
$,
|
284
284
|
{
|
285
285
|
label: "Restore chat",
|
286
286
|
mode: "alt-system",
|
287
287
|
placement: "top",
|
288
288
|
trigger: /* @__PURE__ */ e(
|
289
|
-
|
289
|
+
b,
|
290
290
|
{
|
291
291
|
className: "mr-2",
|
292
292
|
focusMode: "alt-system",
|
293
293
|
noBorder: !0,
|
294
294
|
label: "Restore chat",
|
295
295
|
onClick: async () => {
|
296
|
-
const
|
296
|
+
const z = await g();
|
297
297
|
K(
|
298
298
|
t,
|
299
299
|
c,
|
300
300
|
d,
|
301
|
-
|
301
|
+
z,
|
302
302
|
o?.username || "",
|
303
303
|
I
|
304
304
|
);
|
305
305
|
},
|
306
|
-
children: /* @__PURE__ */ e(
|
306
|
+
children: /* @__PURE__ */ e(Be, { size: "size-3", monotone: !0 })
|
307
307
|
}
|
308
308
|
)
|
309
309
|
}
|
310
310
|
),
|
311
311
|
/* @__PURE__ */ e(
|
312
|
-
|
312
|
+
$,
|
313
313
|
{
|
314
314
|
label: "Delete chat",
|
315
315
|
mode: "alt-system",
|
316
316
|
placement: "top",
|
317
317
|
trigger: /* @__PURE__ */ e(
|
318
|
-
|
318
|
+
b,
|
319
319
|
{
|
320
320
|
focusMode: "alt-system",
|
321
321
|
noBorder: !0,
|
@@ -327,7 +327,7 @@ const Be = ({
|
|
327
327
|
message: t.messages.length > 0 ? t.messages[0]?.content : ""
|
328
328
|
}, T(!r);
|
329
329
|
},
|
330
|
-
children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(
|
330
|
+
children: /* @__PURE__ */ e("div", { className: "text-red-400", children: /* @__PURE__ */ e(Me, { size: "size-3", monotone: !0 }) })
|
331
331
|
}
|
332
332
|
)
|
333
333
|
}
|
@@ -336,19 +336,19 @@ const Be = ({
|
|
336
336
|
] })
|
337
337
|
] }, `${se.HISTORY.TITLE}-${t.id}-${i}`) : null;
|
338
338
|
}) }),
|
339
|
-
/* @__PURE__ */ e(
|
339
|
+
/* @__PURE__ */ e(we, { children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(l, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: ae(
|
340
340
|
`${a.length} chat`,
|
341
341
|
a.length
|
342
342
|
) }) }) }) })
|
343
343
|
] })
|
344
344
|
] });
|
345
|
-
},
|
345
|
+
}, je = ({
|
346
346
|
open: a,
|
347
347
|
onOpenChange: c
|
348
348
|
}) => {
|
349
|
-
const { getAccessToken: d, user: m } = G(), { dispatch: o } = N(j), [
|
349
|
+
const { getAccessToken: d, user: m } = G(), { dispatch: o } = N(j), [g, y] = D([]), n = k(null), { state: r, dispatch: T } = N(Y), [C, A] = D(
|
350
350
|
r.sortDirection
|
351
|
-
), { data: p, refetch: v } =
|
351
|
+
), { data: p, refetch: v } = be({
|
352
352
|
enabled: a,
|
353
353
|
user: m?.username || "",
|
354
354
|
searchString: r.searchString,
|
@@ -358,75 +358,66 @@ const Be = ({
|
|
358
358
|
key: U + ce,
|
359
359
|
initialValue: r.searchString
|
360
360
|
});
|
361
|
-
|
361
|
+
L(() => {
|
362
362
|
r.sortDirection !== C && A(r.sortDirection);
|
363
|
-
}, [r, C]),
|
364
|
-
p &&
|
363
|
+
}, [r, C]), L(() => {
|
364
|
+
p && y(p);
|
365
365
|
}, [p]);
|
366
366
|
const w = async (h) => {
|
367
367
|
I(h), T({
|
368
|
-
type:
|
368
|
+
type: de,
|
369
369
|
payload: { searchString: h }
|
370
370
|
});
|
371
371
|
}, R = le((h) => {
|
372
372
|
w(h.target.value.trim());
|
373
|
-
}, 500)
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
373
|
+
}, 500);
|
374
|
+
return /* @__PURE__ */ s(ke, { open: a, onOpenChange: c, title: ne, children: [
|
375
|
+
/* @__PURE__ */ e("form", { autoComplete: "off", onSubmit: async (h) => {
|
376
|
+
h.preventDefault();
|
377
|
+
}, children: /* @__PURE__ */ e(
|
378
|
+
ie,
|
379
|
+
{
|
380
|
+
placeholder: "Search",
|
381
|
+
labelHidden: !0,
|
382
|
+
noBorder: !0,
|
383
|
+
autoCapitalize: "off",
|
384
|
+
autoComplete: "off",
|
385
|
+
autoCorrect: "off",
|
386
|
+
ref: n,
|
387
|
+
defaultValue: r.searchString,
|
388
|
+
focusMode: "light",
|
389
|
+
mode: "light",
|
390
|
+
name: "Search",
|
391
|
+
label: "Search",
|
392
|
+
onChange: R,
|
393
|
+
className: "my-2",
|
394
|
+
rightElement: /* @__PURE__ */ e("div", { className: "text-copy-dark", children: /* @__PURE__ */ e(
|
395
|
+
b,
|
386
396
|
{
|
387
|
-
|
388
|
-
|
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",
|
397
|
+
mode: "dark",
|
398
|
+
focusMode: "dark",
|
398
399
|
label: "Search",
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
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
|
400
|
+
size: "small",
|
401
|
+
onClick: () => {
|
402
|
+
w(""), n.current?.value && (n.current.value = "", n.current.focus());
|
403
|
+
},
|
404
|
+
disabled: r.searchString === "",
|
405
|
+
children: r.searchString !== "" ? /* @__PURE__ */ e(Le, { monotone: !0, size: "size-3" }) : /* @__PURE__ */ e(Ve, { monotone: !0, size: "size-3" })
|
424
406
|
}
|
425
407
|
) })
|
426
|
-
|
427
|
-
}
|
428
|
-
|
408
|
+
}
|
409
|
+
) }),
|
410
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ e(
|
411
|
+
Pe,
|
412
|
+
{
|
413
|
+
mutate: v,
|
414
|
+
filteredHistory: g,
|
415
|
+
dispatch: o,
|
416
|
+
onOpenChange: c
|
417
|
+
}
|
418
|
+
) })
|
419
|
+
] });
|
429
420
|
};
|
430
421
|
export {
|
431
|
-
|
422
|
+
je as HistoryPanel
|
432
423
|
};
|
@@ -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.Ryu4fNCl.js";
|
2
2
|
var Ls = (e) => e != null, Os = (e) => e.filter(Ls);
|
3
3
|
function qs(e) {
|
4
4
|
return (...t) => {
|
@@ -1,25 +1,25 @@
|
|
1
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
|
3
|
-
import { n as
|
4
|
-
const
|
5
|
-
const { isAuthenticated: n, user: i, registeringForPasskey:
|
2
|
+
import { i as h, nt as S, rr as R } from "./App.BeMVpu5U.js";
|
3
|
+
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as p, le as T, l as E, L as C, j as a, PROFILE_TITLE as u } from "./index.Ryu4fNCl.js";
|
4
|
+
const A = () => {
|
5
|
+
const { isAuthenticated: n, user: i, registeringForPasskey: c, authenticationType: o } = N(), d = h(), t = i?.username || "";
|
6
6
|
return n && t ? /* @__PURE__ */ s(m, { children: [
|
7
7
|
/* @__PURE__ */ e(
|
8
8
|
l,
|
9
9
|
{
|
10
10
|
header: r.PREFERENCES.TITLE,
|
11
11
|
className: "prose-dark dark:prose-lighter",
|
12
|
-
children:
|
12
|
+
children: P(d, {
|
13
13
|
[r.PREFERENCES.NAME]: t,
|
14
14
|
[r.PREFERENCES.EMAIL]: i?.email || ""
|
15
15
|
})
|
16
16
|
}
|
17
17
|
),
|
18
|
-
|
18
|
+
o !== S.PASSKEY && !p() && /* @__PURE__ */ s(
|
19
19
|
l,
|
20
20
|
{
|
21
21
|
className: "prose-dark dark:prose-lighter mt-4",
|
22
|
-
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ s(
|
22
|
+
header: /* @__PURE__ */ e("h2", { className: "m-0", children: /* @__PURE__ */ s(C, { columnGap: 3, alignVertical: "center", children: [
|
23
23
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(E, { size: "size-8" }) }),
|
24
24
|
/* @__PURE__ */ e(a, { children: /* @__PURE__ */ e("div", { children: r.PREFERENCES.PASSKEY_TITLE }) })
|
25
25
|
] }) }),
|
@@ -30,7 +30,7 @@ const F = () => {
|
|
30
30
|
{
|
31
31
|
size: "small",
|
32
32
|
className: "mt-2",
|
33
|
-
onClick:
|
33
|
+
onClick: c,
|
34
34
|
labelLeft: r.PREFERENCES.PASSKEY_BUTTON,
|
35
35
|
children: /* @__PURE__ */ e(E, { size: "size-5", monotone: !0 })
|
36
36
|
}
|
@@ -39,19 +39,10 @@ const F = () => {
|
|
39
39
|
}
|
40
40
|
)
|
41
41
|
] }) : null;
|
42
|
-
},
|
42
|
+
}, f = ({
|
43
43
|
open: n,
|
44
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
|
-
);
|
45
|
+
}) => /* @__PURE__ */ e(R, { open: n, onOpenChange: i, title: u, children: /* @__PURE__ */ e(A, {}) });
|
55
46
|
export {
|
56
|
-
|
47
|
+
f as Profile
|
57
48
|
};
|