@versini/sassysaint 8.110.0 → 8.110.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.BfOWMaYg.js → AboutChangelog.DEj7-6K6.js} +2 -2
- package/dist/chunks/AboutEntry.BSWdup9R.js +77 -0
- package/dist/chunks/{App.BD0e8HgV.js → App.Hqmg5y2Y.js} +2435 -2452
- package/dist/chunks/{Bubble.fxUgvZMG.js → Bubble.DJc-QO-3.js} +1 -1
- package/dist/chunks/ButtonIconDelete.D4aZDe7F.js +335 -0
- package/dist/chunks/{Chart.C-EqsPgy.js → Chart.CPv5Bfk9.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.hM8owVIk.js → ChatBubbleAssistant.DqUdvWwl.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.CnsuEhxO.js → ChatBubbleUser.Cs4LFprm.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.WRplbgo4.js → ChatHistoryTable.CkVMdj9x.js} +73 -73
- package/dist/chunks/{HistoryEntry.BgO_PD7Q.js → HistoryEntry.DM331KtZ.js} +72 -80
- package/dist/chunks/LoginEntry.Cvod0kbl.js +118 -0
- package/dist/chunks/{LogoEntry.CucXks5G.js → LogoEntry.DohsYXa0.js} +642 -746
- package/dist/chunks/MemoriesEntry.DJEsuqmV.js +649 -0
- package/dist/chunks/ProfileEntry.DHOE716m.js +205 -0
- package/dist/chunks/{SettingsEntry.ByPtC4lj.js → SettingsEntry.6_BWb1qD.js} +114 -122
- package/dist/chunks/UsageEntry.CtQKtTac.js +230 -0
- package/dist/chunks/{_baseUniq.DJhemj5B.js → _baseUniq.DdHdSR90.js} +1 -1
- package/dist/chunks/{arc.ClK0mYh2.js → arc.D4_xOXXj.js} +1 -1
- package/dist/chunks/{architecture-U656AL7Q.DGORleeb.js → architecture-U656AL7Q.s3rGBRgV.js} +1 -1
- package/dist/chunks/{architectureDiagram-VXUJARFQ.HR_eet_T.js → architectureDiagram-VXUJARFQ.CdCO91E5.js} +4 -4
- package/dist/chunks/{blockDiagram-VD42YOAC.CWrnXf_B.js → blockDiagram-VD42YOAC.CCDa9IbF.js} +5 -5
- package/dist/chunks/{browser.5ieI9QUP.js → browser.G7msF8GI.js} +1 -1
- package/dist/chunks/{c4Diagram-YG6GDRKO.CaA0SaMc.js → c4Diagram-YG6GDRKO.BYwrdrnm.js} +2 -2
- package/dist/chunks/{channel.BI8KZVUl.js → channel.Bhd_WAGN.js} +1 -1
- package/dist/chunks/{chunk-4BX2VUAB.CTzK9jPw.js → chunk-4BX2VUAB.CAsx7lRR.js} +1 -1
- package/dist/chunks/{chunk-55IACEB6.DMb8Reca.js → chunk-55IACEB6.ChwKLiO_.js} +1 -1
- package/dist/chunks/{chunk-B4BG7PRW.BHBa3N2V.js → chunk-B4BG7PRW.0XXdIUvB.js} +4 -4
- package/dist/chunks/{chunk-DI55MBZ5.Bqwg_jpX.js → chunk-DI55MBZ5.PoYuLfqT.js} +3 -3
- package/dist/chunks/{chunk-FMBD7UC4.p8OpoFJE.js → chunk-FMBD7UC4.ClQPaEEe.js} +1 -1
- package/dist/chunks/{chunk-QN33PNHL._xYLGQNv.js → chunk-QN33PNHL.BNHDFW8q.js} +1 -1
- package/dist/chunks/{chunk-QZHKN3VN.Bt1FHb64.js → chunk-QZHKN3VN.YjxD8GE7.js} +1 -1
- package/dist/chunks/{chunk-TZMSLE5B.hFsU0iJf.js → chunk-TZMSLE5B.CTNar1je.js} +1 -1
- package/dist/chunks/{classDiagram-2ON5EDUG.DiSJfiEu.js → classDiagram-2ON5EDUG.Ccr_Z8SZ.js} +2 -2
- package/dist/chunks/{classDiagram-v2-WZHVMYZB.DiSJfiEu.js → classDiagram-v2-WZHVMYZB.Ccr_Z8SZ.js} +2 -2
- package/dist/chunks/{clone.NcwizCyH.js → clone.BX8gciZV.js} +1 -1
- package/dist/chunks/{cose-bilkent-S5V4N54A.DogEbzcD.js → cose-bilkent-S5V4N54A.CJs1QiYn.js} +2 -2
- package/dist/chunks/{dagre-6UL2VRFP.Cy_GltZx.js → dagre-6UL2VRFP.DL9dVBGy.js} +5 -5
- package/dist/chunks/{diagram-PSM6KHXK.CazeYJ2F.js → diagram-PSM6KHXK.BlxCy0Sy.js} +4 -4
- package/dist/chunks/{diagram-QEK2KX5R.ByhZHDpm.js → diagram-QEK2KX5R.BWDu5W6C.js} +3 -3
- package/dist/chunks/{diagram-S2PKOQOG.D49-fpQd.js → diagram-S2PKOQOG.Ri3EElHD.js} +3 -3
- package/dist/chunks/{erDiagram-Q2GNP2WA.nce3gDBb.js → erDiagram-Q2GNP2WA.DEiFjTBB.js} +4 -4
- package/dist/chunks/{flowDiagram-NV44I4VS.DDUGMSKf.js → flowDiagram-NV44I4VS.BW00PHx7.js} +5 -5
- package/dist/chunks/{ganttDiagram-JELNMOA3.NGXzLkaH.js → ganttDiagram-JELNMOA3.ema0-IHx.js} +2 -2
- package/dist/chunks/{gitGraph-F6HP7TQM.BzKXexyv.js → gitGraph-F6HP7TQM.D7K-i_h_.js} +1 -1
- package/dist/chunks/{gitGraphDiagram-NY62KEGX.C3cn9f8o.js → gitGraphDiagram-NY62KEGX.D4HvM8U6.js} +4 -4
- package/dist/chunks/{graph.CURTRirk.js → graph.WmSD_kIW.js} +2 -2
- package/dist/chunks/{index.DAuo-OH1.js → index.5YcMrbtG.js} +1 -1
- package/dist/chunks/{index.BYDZbdMZ.js → index.BDdSIqNw.js} +1 -1
- package/dist/chunks/{index.CBEv2y_C.js → index.BRIbdI1P.js} +2 -2
- package/dist/chunks/{index.BinkIORG.js → index.CUKXvrUy.js} +1 -1
- package/dist/chunks/{index.gy41K1EE.js → index.CspNN5N2.js} +3 -3
- package/dist/chunks/{index.uUNtrS04.js → index.Damzobcg.js} +3 -3
- package/dist/chunks/{index.BqIARWUR.js → index.HEruAaRk.js} +1 -1
- package/dist/chunks/{index.CkajM1v0.js → index.OMR8Uuyn.js} +1 -1
- package/dist/chunks/{index.CURM9PiU.js → index.fRQVHuxk.js} +1 -1
- package/dist/chunks/{info-NVLQJR56.CHnZmbT7.js → info-NVLQJR56.jYI0Duob.js} +1 -1
- package/dist/chunks/{infoDiagram-WHAUD3N6.DCZfKYU8.js → infoDiagram-WHAUD3N6.BqOPFyGl.js} +2 -2
- package/dist/chunks/{journeyDiagram-XKPGCS4Q.B-0JNmK_.js → journeyDiagram-XKPGCS4Q.B1bd5wZT.js} +4 -4
- package/dist/chunks/{kanban-definition-3W4ZIXB7.C7aI8iBJ.js → kanban-definition-3W4ZIXB7.CXydmjo0.js} +2 -2
- package/dist/chunks/{layout.Bmgsrc8X.js → layout.D0fWXkiy.js} +4 -4
- package/dist/chunks/{mermaid-parser.core.BZIZyjyF.js → mermaid-parser.core.7OYqXvcF.js} +10 -10
- package/dist/chunks/{min.CtR4qhyM.js → min.DULzPnFA.js} +2 -2
- package/dist/chunks/{mindmap-definition-VGOIOE7T.DCsxzuhI.js → mindmap-definition-VGOIOE7T.BUC8Tuhp.js} +3 -3
- package/dist/chunks/{packet-BFZMPI3H.CQ2Sbdms.js → packet-BFZMPI3H.D_-dNPlf.js} +1 -1
- package/dist/chunks/{pie-7BOR55EZ.BYs1omMd.js → pie-7BOR55EZ.C5wUCEk_.js} +1 -1
- package/dist/chunks/{pieDiagram-ADFJNKIX.DqkDHdMo.js → pieDiagram-ADFJNKIX.DOCTIr8o.js} +4 -4
- package/dist/chunks/{quadrantDiagram-AYHSOK5B.Cx-eq1uu.js → quadrantDiagram-AYHSOK5B.DbasmgIr.js} +1 -1
- package/dist/chunks/{radar-NHE76QYJ.CIqwL1Hw.js → radar-NHE76QYJ.D-zD079S.js} +1 -1
- package/dist/chunks/{rehype-mermaid.LJaY9ylI.js → rehype-mermaid.C6-wTJWi.js} +33 -33
- package/dist/chunks/{requirementDiagram-UZGBJVZJ.C-YKp79x.js → requirementDiagram-UZGBJVZJ.CnuUJN5O.js} +3 -3
- package/dist/chunks/{sankeyDiagram-TZEHDZUN.BbfUzvVS.js → sankeyDiagram-TZEHDZUN.R_1cgZZg.js} +1 -1
- package/dist/chunks/{sequenceDiagram-WL72ISMW.D5wDvZwT.js → sequenceDiagram-WL72ISMW.sCa2kzuv.js} +3 -3
- package/dist/chunks/{stateDiagram-FKZM4ZOC.-65PQCxm.js → stateDiagram-FKZM4ZOC.DczjcrsN.js} +4 -4
- package/dist/chunks/{stateDiagram-v2-4FDKWEC3.BXy_3BUS.js → stateDiagram-v2-4FDKWEC3.DwOAdSSj.js} +2 -2
- package/dist/chunks/{timeline-definition-IT6M3QCI.B2tmtGDZ.js → timeline-definition-IT6M3QCI.Qx0o1egT.js} +2 -2
- package/dist/chunks/{treemap-KMMF4GRG.Dm_alnmO.js → treemap-KMMF4GRG.CwfQGJx8.js} +1 -1
- package/dist/chunks/{useMarkdown.BWJCktGN.js → useMarkdown.CZvYSQuE.js} +8 -8
- package/dist/chunks/{xychartDiagram-PRI3JC2R.XQCHu3eO.js → xychartDiagram-PRI3JC2R.CFOiW2rk.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/dist/chunks/AboutEntry.B7fBRGac.js +0 -85
- package/dist/chunks/ButtonIconDelete.Bw7zU6Rb.js +0 -456
- package/dist/chunks/LoginEntry.DvDNWT7T.js +0 -118
- package/dist/chunks/MemoriesEntry.OQ1K4KNa.js +0 -743
- package/dist/chunks/ProfileEntry.CbZLIK8x.js +0 -213
- package/dist/chunks/UsageEntry.CSkPteMr.js +0 -238
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as Q, jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as
|
|
3
|
-
import { HistoryContext as te, ChatContext as Te,
|
|
4
|
-
import { Card as
|
|
5
|
-
import { useAiChat as ve, useLocalStorage as h, LazyToastContainerWrapper as
|
|
6
|
-
import { TextInput as
|
|
7
|
-
import
|
|
8
|
-
import { useRef as M, useState as
|
|
9
|
-
const
|
|
2
|
+
import { n as ee, INFINITE_SCROLL_LIMIT as Z, INFINITE_SCROLL_THRESHOLD as ae, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as re, LOCAL_STORAGE_SORT_TOKEN_USAGE as oe, LOCAL_STORAGE_SORT as se, y as F, LOCAL_STORAGE_CHAT_ID as ne, useDeleteChat as ie, useToggleFavoriteChat as le, graphQLRequest as ce, SERVICE_TYPES as de, ACTION_SORT as he, v as me, LOCAL_STORAGE_SEARCH as ue, LOCAL_STORAGE_FAVORITES_ONLY as Ce, LOCAL_STORAGE_KEYWORD_MATCH_ALL as fe, useChatsHistory as Se, useUserChatStats as ye, ACTION_SEARCH as pe } from "./index.BRIbdI1P.js";
|
|
3
|
+
import { HistoryContext as te, ChatContext as Te, TableCellSortDirections as c, APP_CLASSNAME as ge, TOAST_CHAT_DELETED as Ae, HISTORY_TITLE as Ee, IconSearch as _e, Button as De } from "./LogoEntry.DohsYXa0.js";
|
|
4
|
+
import { Card as Le } from "./index.BDdSIqNw.js";
|
|
5
|
+
import { useAiChat as ve, useLocalStorage as h, LazyToastContainerWrapper as Oe, v4 as be, CHAT_RESET as ke, CHAT_SET_ATTACHMENTS as Re, CHAT_SET_STATUS as xe, showErrorToast as Ie, ConfirmationPanel as we, Panel as He, debounce as Ne, Toggle as $, ButtonCancel as Fe } from "./App.Hqmg5y2Y.js";
|
|
6
|
+
import { TextInput as Me } from "./index.fRQVHuxk.js";
|
|
7
|
+
import Ge from "clsx";
|
|
8
|
+
import { useRef as M, useState as D, useContext as X, useCallback as G, Suspense as Ve, lazy as ze, useEffect as Pe } from "react";
|
|
9
|
+
const Ue = ze(
|
|
10
10
|
() => import(
|
|
11
11
|
/* webpackChunkName: "history-table" */
|
|
12
|
-
"./ChatHistoryTable.
|
|
12
|
+
"./ChatHistoryTable.CkVMdj9x.js"
|
|
13
13
|
).then((m) => ({ default: m.ChatHistoryTable }))
|
|
14
|
-
),
|
|
14
|
+
), Be = ({
|
|
15
15
|
filteredHistory: m,
|
|
16
16
|
onOpenChange: y,
|
|
17
17
|
mutate: p,
|
|
18
|
-
isLoading:
|
|
19
|
-
totalHistoryCount:
|
|
18
|
+
isLoading: L = !1,
|
|
19
|
+
totalHistoryCount: v,
|
|
20
20
|
isFiltered: V = !1,
|
|
21
|
-
isSearchActive:
|
|
21
|
+
isSearchActive: O = !1,
|
|
22
22
|
requestConfirmation: u
|
|
23
23
|
}) => {
|
|
24
24
|
const { user: o, getAccessToken: T } = ee(), g = M(null), C = M({
|
|
25
25
|
id: "",
|
|
26
26
|
timestamp: "",
|
|
27
27
|
message: ""
|
|
28
|
-
}), [z,
|
|
28
|
+
}), [z, b] = D(
|
|
29
29
|
Z + ae
|
|
30
|
-
), { state: i, dispatch: P } = X(te),
|
|
30
|
+
), { state: i, dispatch: P } = X(te), k = {
|
|
31
31
|
searchString: i.searchString || "",
|
|
32
|
-
sortDirection: i.sortDirection ||
|
|
32
|
+
sortDirection: i.sortDirection || c.DESC,
|
|
33
33
|
sortedCell: i.sortedCell || F
|
|
34
34
|
}, {
|
|
35
35
|
setChatId: f,
|
|
36
36
|
setInitialMessages: A,
|
|
37
37
|
dispatch: E
|
|
38
|
-
} = X(Te), { setInput: _ } = ve(), [
|
|
38
|
+
} = X(Te), { setInput: _ } = ve(), [R, x] = h({
|
|
39
39
|
key: d + re,
|
|
40
|
-
initialValue:
|
|
40
|
+
initialValue: c.DESC
|
|
41
41
|
}), [S, U] = h({
|
|
42
42
|
key: d + oe,
|
|
43
|
-
initialValue:
|
|
44
|
-
}), [,
|
|
43
|
+
initialValue: c.ASC
|
|
44
|
+
}), [, I] = h({
|
|
45
45
|
key: d + se,
|
|
46
46
|
initialValue: F
|
|
47
47
|
}), [w] = h({
|
|
48
48
|
key: d + ne,
|
|
49
49
|
initialValue: ""
|
|
50
|
-
}), { mutateAsync:
|
|
50
|
+
}), { mutateAsync: l } = ie({ getAccessToken: T }), { mutateAsync: B } = le({
|
|
51
51
|
getAccessToken: T
|
|
52
52
|
}), H = (e) => {
|
|
53
53
|
const s = i.sortedCell === e;
|
|
54
54
|
let r, N;
|
|
55
55
|
switch (e) {
|
|
56
56
|
case F:
|
|
57
|
-
N =
|
|
57
|
+
N = x, r = s ? i.sortDirection : R;
|
|
58
58
|
break;
|
|
59
59
|
case me:
|
|
60
60
|
N = U, r = s ? i.sortDirection : S;
|
|
61
61
|
break;
|
|
62
62
|
default:
|
|
63
|
-
N =
|
|
63
|
+
N = x, r = s ? i.sortDirection : R;
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
|
-
const J = r ===
|
|
67
|
-
N(J),
|
|
66
|
+
const J = r === c.ASC ? c.DESC : c.ASC;
|
|
67
|
+
N(J), I(e), P({
|
|
68
68
|
type: he,
|
|
69
69
|
payload: {
|
|
70
70
|
sortedCell: e,
|
|
@@ -73,10 +73,10 @@ const je = Ue(
|
|
|
73
73
|
});
|
|
74
74
|
}, j = async (e) => {
|
|
75
75
|
try {
|
|
76
|
-
await
|
|
76
|
+
await l({
|
|
77
77
|
userId: o?.username || "",
|
|
78
78
|
id: e
|
|
79
|
-
}), p(""), await
|
|
79
|
+
}), p(""), await Ie(Ae, {
|
|
80
80
|
autoClose: 2e3,
|
|
81
81
|
containerId: "history-table"
|
|
82
82
|
});
|
|
@@ -84,7 +84,7 @@ const je = Ue(
|
|
|
84
84
|
}
|
|
85
85
|
}, K = async (e) => {
|
|
86
86
|
try {
|
|
87
|
-
const s = await T(), r = await
|
|
87
|
+
const s = await T(), r = await ce({
|
|
88
88
|
accessToken: s,
|
|
89
89
|
type: de.GET_CHAT,
|
|
90
90
|
params: {
|
|
@@ -92,7 +92,7 @@ const je = Ue(
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
E({
|
|
95
|
-
type:
|
|
95
|
+
type: xe,
|
|
96
96
|
payload: {
|
|
97
97
|
streaming: !1,
|
|
98
98
|
loading: !1,
|
|
@@ -125,13 +125,13 @@ const je = Ue(
|
|
|
125
125
|
] })
|
|
126
126
|
] })
|
|
127
127
|
), w === e.id && (f(be()), A([]), _(""), E({
|
|
128
|
-
type:
|
|
128
|
+
type: ke,
|
|
129
129
|
payload: {
|
|
130
130
|
privateChat: !1,
|
|
131
131
|
reasoningText: !1
|
|
132
132
|
}
|
|
133
133
|
}), E({
|
|
134
|
-
type:
|
|
134
|
+
type: Re,
|
|
135
135
|
payload: {
|
|
136
136
|
attachments: 0
|
|
137
137
|
}
|
|
@@ -145,7 +145,7 @@ const je = Ue(
|
|
|
145
145
|
} catch {
|
|
146
146
|
}
|
|
147
147
|
}, a = G((e) => {
|
|
148
|
-
e[0].isIntersecting &&
|
|
148
|
+
e[0].isIntersecting && b((r) => r + Z);
|
|
149
149
|
}, []), W = G(
|
|
150
150
|
(e) => {
|
|
151
151
|
if (g.current && g.current.disconnect(), e) {
|
|
@@ -158,64 +158,64 @@ const je = Ue(
|
|
|
158
158
|
[a]
|
|
159
159
|
);
|
|
160
160
|
return /* @__PURE__ */ n(Q, { children: [
|
|
161
|
-
/* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(
|
|
162
|
-
/* @__PURE__ */ t(
|
|
163
|
-
|
|
161
|
+
/* @__PURE__ */ t("div", { className: ge, children: /* @__PURE__ */ t(Oe, { containerId: "history-table" }) }),
|
|
162
|
+
/* @__PURE__ */ t(Ve, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
163
|
+
Ue,
|
|
164
164
|
{
|
|
165
165
|
filteredHistory: m,
|
|
166
|
-
historyState:
|
|
166
|
+
historyState: k,
|
|
167
167
|
lastEntryToLoad: z,
|
|
168
168
|
onClickSort: H,
|
|
169
169
|
onClickRestore: K,
|
|
170
170
|
onClickDelete: Y,
|
|
171
171
|
onClickFavorite: q,
|
|
172
172
|
infinityScrollMarkerRef: W,
|
|
173
|
-
isLoading:
|
|
174
|
-
totalHistoryCount:
|
|
173
|
+
isLoading: L,
|
|
174
|
+
totalHistoryCount: v,
|
|
175
175
|
isFiltered: V,
|
|
176
|
-
isSearchActive:
|
|
176
|
+
isSearchActive: O
|
|
177
177
|
}
|
|
178
178
|
) })
|
|
179
179
|
] });
|
|
180
|
-
},
|
|
180
|
+
}, Ze = ({
|
|
181
181
|
open: m,
|
|
182
182
|
onOpenChange: y
|
|
183
183
|
}) => {
|
|
184
|
-
const p = M(null), { getAccessToken:
|
|
184
|
+
const p = M(null), { getAccessToken: L, user: v } = ee(), [V, O] = D([]), u = M(null), { state: o, dispatch: T } = X(te), [, g] = h({
|
|
185
185
|
key: d + ue,
|
|
186
186
|
initialValue: o.searchString
|
|
187
187
|
}), [C, z] = h({
|
|
188
188
|
key: d + Ce,
|
|
189
189
|
initialValue: !1
|
|
190
|
-
}), [
|
|
190
|
+
}), [b, i] = h({
|
|
191
191
|
key: d + fe,
|
|
192
192
|
initialValue: !0
|
|
193
|
-
}), [P,
|
|
193
|
+
}), [P, k] = D(!1), [f, A] = D(null), [E, _] = D(null), R = G(
|
|
194
194
|
(a, W) => {
|
|
195
|
-
A(() => a), _(W),
|
|
195
|
+
A(() => a), _(W), k(!0);
|
|
196
196
|
},
|
|
197
197
|
[]
|
|
198
|
-
),
|
|
198
|
+
), x = G(() => {
|
|
199
199
|
f && f(), A(null), _(null);
|
|
200
200
|
}, [f]), {
|
|
201
201
|
data: S,
|
|
202
202
|
refetch: U,
|
|
203
|
-
isLoading:
|
|
203
|
+
isLoading: I,
|
|
204
204
|
isError: w
|
|
205
205
|
} = Se({
|
|
206
206
|
enabled: m,
|
|
207
|
-
user:
|
|
207
|
+
user: v?.username || "",
|
|
208
208
|
searchString: o.searchString || "",
|
|
209
|
-
sortDirection: o.sortDirection ||
|
|
209
|
+
sortDirection: o.sortDirection || c.DESC,
|
|
210
210
|
sortedCell: o.sortedCell || F,
|
|
211
|
-
getAccessToken:
|
|
212
|
-
keywordMatchAll:
|
|
213
|
-
}), { data:
|
|
214
|
-
user:
|
|
215
|
-
getAccessToken:
|
|
216
|
-
}), B =
|
|
217
|
-
|
|
218
|
-
S &&
|
|
211
|
+
getAccessToken: L,
|
|
212
|
+
keywordMatchAll: b
|
|
213
|
+
}), { data: l } = ye({
|
|
214
|
+
user: v?.username,
|
|
215
|
+
getAccessToken: L
|
|
216
|
+
}), B = l && l.totalChats ? l.totalChats - l.privateChats - l.deletedChats : 0;
|
|
217
|
+
Pe(() => {
|
|
218
|
+
S && O(
|
|
219
219
|
C ? S.filter((a) => a.favoriteChat === !0) : S
|
|
220
220
|
);
|
|
221
221
|
}, [S, C]);
|
|
@@ -224,7 +224,7 @@ const je = Ue(
|
|
|
224
224
|
type: pe,
|
|
225
225
|
payload: { searchString: a }
|
|
226
226
|
});
|
|
227
|
-
}, j =
|
|
227
|
+
}, j = Ne((a) => {
|
|
228
228
|
H(a.target.value.trim());
|
|
229
229
|
}, 800), K = async (a) => {
|
|
230
230
|
a.preventDefault();
|
|
@@ -235,11 +235,11 @@ const je = Ue(
|
|
|
235
235
|
};
|
|
236
236
|
return /* @__PURE__ */ n(Q, { children: [
|
|
237
237
|
/* @__PURE__ */ t(
|
|
238
|
-
|
|
238
|
+
we,
|
|
239
239
|
{
|
|
240
240
|
showConfirmation: P,
|
|
241
|
-
setShowConfirmation:
|
|
242
|
-
action:
|
|
241
|
+
setShowConfirmation: k,
|
|
242
|
+
action: x,
|
|
243
243
|
customStrings: {
|
|
244
244
|
confirmAction: "Delete",
|
|
245
245
|
cancelAction: "Cancel",
|
|
@@ -249,7 +249,7 @@ const je = Ue(
|
|
|
249
249
|
}
|
|
250
250
|
),
|
|
251
251
|
/* @__PURE__ */ n(
|
|
252
|
-
|
|
252
|
+
He,
|
|
253
253
|
{
|
|
254
254
|
open: m,
|
|
255
255
|
onOpenChange: y,
|
|
@@ -258,26 +258,18 @@ const je = Ue(
|
|
|
258
258
|
animationType: "fade",
|
|
259
259
|
blurEffect: "large",
|
|
260
260
|
initialFocus: p,
|
|
261
|
-
footer: /* @__PURE__ */ t(
|
|
262
|
-
De,
|
|
263
|
-
{
|
|
264
|
-
columnGap: 2,
|
|
265
|
-
alignHorizontal: "flex-end",
|
|
266
|
-
className: "pb-8 sm:pb-0",
|
|
267
|
-
children: /* @__PURE__ */ t(Oe, { children: /* @__PURE__ */ t(Ge, { onOpenChange: y, ref: p }) })
|
|
268
|
-
}
|
|
269
|
-
),
|
|
261
|
+
footer: /* @__PURE__ */ t("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: /* @__PURE__ */ t("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ t(Fe, { onOpenChange: y, ref: p }) }) }),
|
|
270
262
|
children: [
|
|
271
263
|
/* @__PURE__ */ t(
|
|
272
|
-
|
|
264
|
+
Le,
|
|
273
265
|
{
|
|
274
|
-
header:
|
|
266
|
+
header: I && o.searchString ? "Loading..." : o.searchString ? "Filters applied" : "Filters",
|
|
275
267
|
className: "prose-dark dark:prose-lighter mb-4",
|
|
276
268
|
noBorder: !0,
|
|
277
269
|
compact: !0,
|
|
278
270
|
children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: K, children: [
|
|
279
271
|
/* @__PURE__ */ t(
|
|
280
|
-
|
|
272
|
+
Me,
|
|
281
273
|
{
|
|
282
274
|
placeholder: "Search",
|
|
283
275
|
labelHidden: !0,
|
|
@@ -312,7 +304,7 @@ const je = Ue(
|
|
|
312
304
|
$,
|
|
313
305
|
{
|
|
314
306
|
name: "keyword-match-all",
|
|
315
|
-
checked:
|
|
307
|
+
checked: b,
|
|
316
308
|
onChange: q,
|
|
317
309
|
label: "Match all keywords",
|
|
318
310
|
narrow: !0,
|
|
@@ -321,7 +313,7 @@ const je = Ue(
|
|
|
321
313
|
)
|
|
322
314
|
] }),
|
|
323
315
|
/* @__PURE__ */ t(
|
|
324
|
-
|
|
316
|
+
De,
|
|
325
317
|
{
|
|
326
318
|
mode: "light",
|
|
327
319
|
size: "small",
|
|
@@ -339,7 +331,7 @@ const je = Ue(
|
|
|
339
331
|
/* @__PURE__ */ n(
|
|
340
332
|
"div",
|
|
341
333
|
{
|
|
342
|
-
className:
|
|
334
|
+
className: Ge(
|
|
343
335
|
"flex flex-col sm:flex-row",
|
|
344
336
|
"max-h-[65vh]",
|
|
345
337
|
"sm:max-h-[75vh]",
|
|
@@ -348,16 +340,16 @@ const je = Ue(
|
|
|
348
340
|
children: [
|
|
349
341
|
w && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
|
|
350
342
|
!w && /* @__PURE__ */ t(
|
|
351
|
-
|
|
343
|
+
Be,
|
|
352
344
|
{
|
|
353
345
|
mutate: U,
|
|
354
346
|
filteredHistory: V,
|
|
355
347
|
onOpenChange: y,
|
|
356
|
-
isLoading:
|
|
348
|
+
isLoading: I,
|
|
357
349
|
totalHistoryCount: B,
|
|
358
350
|
isFiltered: !!(o.searchString || C),
|
|
359
351
|
isSearchActive: !!o.searchString,
|
|
360
|
-
requestConfirmation:
|
|
352
|
+
requestConfirmation: R
|
|
361
353
|
}
|
|
362
354
|
)
|
|
363
355
|
]
|
|
@@ -369,5 +361,5 @@ const je = Ue(
|
|
|
369
361
|
] });
|
|
370
362
|
};
|
|
371
363
|
export {
|
|
372
|
-
|
|
364
|
+
Ze as HistoryPanel
|
|
373
365
|
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { n as N, getLayoutPaddingClass as C, getMessageContaintWrapperClass as v, isTauri as w } from "./index.BRIbdI1P.js";
|
|
3
|
+
import { Logo as k, PASSWORD_PLACEHOLDER as M, ButtonIcon as u, IconShow as I, IconHide as L, Button as y, LOG_IN as E, LOG_IN_PASSKEY as S, IconPasskey as P } from "./LogoEntry.DohsYXa0.js";
|
|
4
|
+
import { Card as B } from "./index.BDdSIqNw.js";
|
|
5
|
+
import { TextInput as O, TextInputMask as T } from "./index.fRQVHuxk.js";
|
|
6
|
+
import { useState as r, useEffect as f } from "react";
|
|
7
|
+
const G = () => {
|
|
8
|
+
const { login: h, logoutReason: o, loginWithPasskey: g } = N(), [t, l] = r(""), [d, n] = r(""), [m, p] = r(!0), [s, c] = r({
|
|
9
|
+
username: "",
|
|
10
|
+
password: ""
|
|
11
|
+
}), b = async (a) => {
|
|
12
|
+
a.preventDefault(), await h(s.username, s.password) || (n(""), l("Invalid username or password"));
|
|
13
|
+
};
|
|
14
|
+
return f(() => {
|
|
15
|
+
document.getElementById("logo")?.classList.add("fadeOut"), setTimeout(() => {
|
|
16
|
+
document.getElementById("root")?.classList.replace("app-hidden", "fadeIn");
|
|
17
|
+
}, 500);
|
|
18
|
+
}), f(() => {
|
|
19
|
+
o && n(o);
|
|
20
|
+
}, [o]), /* @__PURE__ */ i("main", { className: C({ extraClass: "mt-5" }), children: [
|
|
21
|
+
/* @__PURE__ */ e(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
className: v({
|
|
25
|
+
extraClass: "rounded-md pb-10"
|
|
26
|
+
}),
|
|
27
|
+
children: /* @__PURE__ */ e(k, {})
|
|
28
|
+
}
|
|
29
|
+
),
|
|
30
|
+
/* @__PURE__ */ e("form", { className: "mt-5", onSubmit: b, children: /* @__PURE__ */ e("div", { className: "flex flex-wrap justify-center", children: /* @__PURE__ */ e("div", { className: "box-border max-w-full basis-6/12", children: /* @__PURE__ */ i(B, { mode: "dark", children: [
|
|
31
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full mt-7", children: d && /* @__PURE__ */ e("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: d }) }),
|
|
32
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
|
|
33
|
+
O,
|
|
34
|
+
{
|
|
35
|
+
className: "mt-7",
|
|
36
|
+
required: !0,
|
|
37
|
+
autoCapitalize: "off",
|
|
38
|
+
autoComplete: "off",
|
|
39
|
+
autoCorrect: "off",
|
|
40
|
+
mode: "dark",
|
|
41
|
+
focusMode: "light",
|
|
42
|
+
name: "username",
|
|
43
|
+
label: "Username",
|
|
44
|
+
onChange: (a) => {
|
|
45
|
+
c({
|
|
46
|
+
...s,
|
|
47
|
+
username: a.target.value
|
|
48
|
+
}), l("");
|
|
49
|
+
},
|
|
50
|
+
error: t !== ""
|
|
51
|
+
}
|
|
52
|
+
) }),
|
|
53
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
|
|
54
|
+
T,
|
|
55
|
+
{
|
|
56
|
+
className: "mt-7",
|
|
57
|
+
required: !0,
|
|
58
|
+
autoCapitalize: "off",
|
|
59
|
+
autoComplete: "off",
|
|
60
|
+
autoCorrect: "off",
|
|
61
|
+
mode: "dark",
|
|
62
|
+
focusMode: "light",
|
|
63
|
+
name: "password",
|
|
64
|
+
label: M,
|
|
65
|
+
rightElement: /* @__PURE__ */ e(
|
|
66
|
+
u,
|
|
67
|
+
{
|
|
68
|
+
focusMode: "light",
|
|
69
|
+
mode: "dark",
|
|
70
|
+
label: m ? "Show" : "Hide",
|
|
71
|
+
children: m ? /* @__PURE__ */ e(I, {}) : /* @__PURE__ */ e(L, {})
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
onMaskChange: p,
|
|
75
|
+
onChange: (a) => {
|
|
76
|
+
c({
|
|
77
|
+
...s,
|
|
78
|
+
password: a.target.value
|
|
79
|
+
}), l("");
|
|
80
|
+
},
|
|
81
|
+
error: t !== "",
|
|
82
|
+
helperText: t
|
|
83
|
+
}
|
|
84
|
+
) }),
|
|
85
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
|
|
86
|
+
y,
|
|
87
|
+
{
|
|
88
|
+
mode: "dark",
|
|
89
|
+
focusMode: "light",
|
|
90
|
+
fullWidth: !0,
|
|
91
|
+
noBorder: !0,
|
|
92
|
+
type: "submit",
|
|
93
|
+
className: "mt-7",
|
|
94
|
+
children: E
|
|
95
|
+
}
|
|
96
|
+
) }),
|
|
97
|
+
!w() && /* @__PURE__ */ i(x, { children: [
|
|
98
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
|
|
99
|
+
/* @__PURE__ */ e("div", { className: "box-border max-w-full basis-full", children: /* @__PURE__ */ e(
|
|
100
|
+
u,
|
|
101
|
+
{
|
|
102
|
+
variant: "selected",
|
|
103
|
+
mode: "dark",
|
|
104
|
+
focusMode: "light",
|
|
105
|
+
fullWidth: !0,
|
|
106
|
+
className: "mb-4",
|
|
107
|
+
labelRight: S,
|
|
108
|
+
onClick: g,
|
|
109
|
+
children: /* @__PURE__ */ e(P, { size: "size-7" })
|
|
110
|
+
}
|
|
111
|
+
) })
|
|
112
|
+
] })
|
|
113
|
+
] }) }) }) })
|
|
114
|
+
] });
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
G as default
|
|
118
|
+
};
|