@versini/sassysaint 8.70.1 → 8.70.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._T5Lr2_6.js → AboutChangelog.D_coGtfg.js} +2 -2
- package/dist/chunks/{AboutEntry.DJ0OUM4_.js → AboutEntry.BoG1YJgv.js} +7 -7
- package/dist/chunks/{App.CcqDGZun.js → App.fsMPD4V8.js} +1723 -1743
- package/dist/chunks/{Chart.Dm81lz3L.js → Chart.ClJqWZQS.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.D4Ru1U9N.js → ChatBubbleAssistant.DVPvkwc9.js} +4 -4
- package/dist/chunks/{ChatBubbleUser.CvpUTP0y.js → ChatBubbleUser.BRVFV4OE.js} +3 -3
- package/dist/chunks/{ChatHistoryTable.CDC3cvyT.js → ChatHistoryTable.BCuJEN4O.js} +3 -3
- package/dist/chunks/{HistoryEntry.C_3ek905.js → HistoryEntry.s_vx_csj.js} +107 -113
- package/dist/chunks/{ProfileEntry.BcL78DD5.js → ProfileEntry.ZXG7l__n.js} +2 -2
- package/dist/chunks/{SettingsEntry.F8OD9jcf.js → SettingsEntry.BTa21LvJ.js} +29 -29
- package/dist/chunks/{Table.DvDzjCKJ.js → Table.M89-ZLhi.js} +2 -2
- package/dist/chunks/{UsageEntry.BJMW3Rxc.js → UsageEntry.elc98m0S.js} +3 -3
- package/dist/chunks/{UserMemoriesPanel.BByjrVlZ.js → UserMemoriesPanel.DdkrlC6R.js} +4 -4
- package/dist/chunks/{index.CpmMOFcw.js → index.BZMtXIBc.js} +1 -1
- package/dist/chunks/{index.DZlzg3MC.js → index.Bwc2cdjp.js} +1 -1
- package/dist/chunks/{index.DAjlwxaV.js → index.CxV4ixy4.js} +1 -1
- package/dist/chunks/{index.CRvAVi49.js → index.D7PCvd5q.js} +3 -3
- package/dist/chunks/{index.5sFEsLHg.js → index.Dhc-0s9a.js} +1 -1
- package/dist/chunks/{index.BE-5S88E.js → index.DnRHLO_W.js} +1 -1
- package/dist/chunks/{index.B-4Q-F7F.js → index.DwBFDfmf.js} +2 -2
- package/dist/chunks/{index.ByjDYmg9.js → index.waB0Z6fk.js} +909 -837
- package/dist/chunks/{useMarkdown.4pam55Dz.js → useMarkdown.DUddJwCO.js} +6 -6
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- 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.fsMPD4V8.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.waB0Z6fk.js";
|
|
5
5
|
var ls = { exports: {} }, Ip = ls.exports, on;
|
|
6
6
|
function Dp() {
|
|
7
7
|
return on || (on = 1, (function(we, he) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as x } from "react/jsx-runtime";
|
|
2
|
-
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y as L } from "./index.
|
|
3
|
-
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.
|
|
2
|
+
import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y as L } from "./index.waB0Z6fk.js";
|
|
3
|
+
import { BUBBLE_FOOTER_EMPTY as _ } from "./index.Bwc2cdjp.js";
|
|
4
4
|
import w from "clsx";
|
|
5
5
|
import v, { useState as M, useRef as A, useEffect as U, useContext as B } from "react";
|
|
6
|
-
import { ChatContext as G, AsyncBubble as E } from "./App.
|
|
7
|
-
import { useMarkdown as D } from "./useMarkdown.
|
|
6
|
+
import { ChatContext as G, AsyncBubble as E } from "./App.fsMPD4V8.js";
|
|
7
|
+
import { useMarkdown as D } from "./useMarkdown.DUddJwCO.js";
|
|
8
8
|
const j = 2, q = j * 1e3, b = "", I = (e) => e * (2 - e);
|
|
9
9
|
function W(e, n = !0) {
|
|
10
10
|
const [a, p] = M(0), [i, C] = M(0), [t, T] = M(e), r = A(0), s = A(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.fsMPD4V8.js";
|
|
4
|
+
import { useMarkdown as _ } from "./useMarkdown.DUddJwCO.js";
|
|
5
|
+
import { C as M } from "./index.waB0Z6fk.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, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.
|
|
3
|
-
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.
|
|
2
|
+
import { I as g, Z as N, J as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, ot as b, isProbablyMobile as D, c as U, r as B, O as I } from "./index.waB0Z6fk.js";
|
|
3
|
+
import { st as u, p$1 as P, z as L, p$2 as V } from "./App.fsMPD4V8.js";
|
|
4
4
|
import h from "clsx";
|
|
5
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.
|
|
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.M89-ZLhi.js";
|
|
7
7
|
const K = ({
|
|
8
8
|
className: l,
|
|
9
9
|
viewBox: c,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { jsxs as n, jsx as t, Fragment as
|
|
2
|
-
import { I as
|
|
3
|
-
import { HistoryContext as
|
|
4
|
-
import { useRef as
|
|
5
|
-
const
|
|
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, Z 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, J 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$1 as ge, debounce as Ae, C as Ee, ACTION_SEARCH as ve } from "./index.waB0Z6fk.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.fsMPD4V8.js";
|
|
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
|
+
const Fe = ({
|
|
6
6
|
className: l,
|
|
7
7
|
viewBox: h,
|
|
8
|
-
title:
|
|
8
|
+
title: y,
|
|
9
9
|
monotone: u,
|
|
10
10
|
...d
|
|
11
11
|
}) => /* @__PURE__ */ n(
|
|
12
|
-
|
|
12
|
+
Z,
|
|
13
13
|
{
|
|
14
14
|
defaultViewBox: "0 0 512 512",
|
|
15
15
|
size: "size-5",
|
|
16
16
|
viewBox: h,
|
|
17
17
|
className: l,
|
|
18
|
-
title:
|
|
18
|
+
title: y || "Search",
|
|
19
19
|
...d,
|
|
20
20
|
children: [
|
|
21
21
|
/* @__PURE__ */ t(
|
|
@@ -28,148 +28,142 @@ const Ne = ({
|
|
|
28
28
|
/* @__PURE__ */ t("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" })
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
|
-
),
|
|
31
|
+
), Pe = He(
|
|
32
32
|
() => import(
|
|
33
33
|
/* webpackChunkName: "history-table" */
|
|
34
|
-
"./ChatHistoryTable.
|
|
34
|
+
"./ChatHistoryTable.BCuJEN4O.js"
|
|
35
35
|
).then((l) => ({ default: l.ChatHistoryTable }))
|
|
36
|
-
),
|
|
36
|
+
), Ve = ({
|
|
37
37
|
filteredHistory: l,
|
|
38
38
|
dispatch: h,
|
|
39
|
-
onOpenChange:
|
|
39
|
+
onOpenChange: y,
|
|
40
40
|
mutate: u
|
|
41
41
|
}) => {
|
|
42
|
-
const { user: d, getAccessToken: C } = P(), S =
|
|
42
|
+
const { user: d, getAccessToken: C } = P(), S = w(null), o = w({
|
|
43
43
|
id: "",
|
|
44
44
|
timestamp: "",
|
|
45
45
|
message: ""
|
|
46
|
-
}), [c,
|
|
47
|
-
|
|
48
|
-
), { state: i, dispatch:
|
|
46
|
+
}), [c, A] = x(!1), [p, I] = x(
|
|
47
|
+
F + ee
|
|
48
|
+
), { state: i, dispatch: E } = R(V), k = {
|
|
49
49
|
searchString: i.searchString || "",
|
|
50
50
|
sortDirection: i.sortDirection || m.DESC,
|
|
51
51
|
sortedCell: i.sortedCell || L
|
|
52
52
|
}, {
|
|
53
|
-
state: { provider:
|
|
54
|
-
setChatId:
|
|
55
|
-
setInitialMessages:
|
|
56
|
-
} = R(
|
|
57
|
-
key:
|
|
53
|
+
state: { provider: f },
|
|
54
|
+
setChatId: N,
|
|
55
|
+
setInitialMessages: v
|
|
56
|
+
} = R(z), { setInput: b } = _e(), [_, D] = g({
|
|
57
|
+
key: T + te,
|
|
58
58
|
initialValue: m.DESC
|
|
59
|
-
}), [a,
|
|
60
|
-
key:
|
|
59
|
+
}), [a, M] = g({
|
|
60
|
+
key: T + re,
|
|
61
61
|
initialValue: m.ASC
|
|
62
|
-
}), [,
|
|
63
|
-
key:
|
|
62
|
+
}), [, U] = g({
|
|
63
|
+
key: T + ae,
|
|
64
64
|
initialValue: L
|
|
65
|
-
}), { refetch:
|
|
65
|
+
}), { refetch: B } = se({
|
|
66
66
|
user: d?.username,
|
|
67
67
|
getAccessToken: C
|
|
68
|
+
}), { mutateAsync: Y } = oe({ getAccessToken: C }), { mutateAsync: $ } = ie({
|
|
69
|
+
getAccessToken: C
|
|
68
70
|
}), j = (e) => {
|
|
69
71
|
const s = i.sortedCell === e;
|
|
70
72
|
let r, O;
|
|
71
73
|
switch (e) {
|
|
72
74
|
case L:
|
|
73
|
-
O = D, r = s ? i.sortDirection :
|
|
75
|
+
O = D, r = s ? i.sortDirection : _;
|
|
74
76
|
break;
|
|
75
|
-
case
|
|
76
|
-
O =
|
|
77
|
+
case ue:
|
|
78
|
+
O = M, r = s ? i.sortDirection : a;
|
|
77
79
|
break;
|
|
78
80
|
default:
|
|
79
|
-
O = D, r = s ? i.sortDirection :
|
|
81
|
+
O = D, r = s ? i.sortDirection : _;
|
|
80
82
|
break;
|
|
81
83
|
}
|
|
82
|
-
const
|
|
83
|
-
O(
|
|
84
|
-
type:
|
|
84
|
+
const H = r === m.ASC ? m.DESC : m.ASC;
|
|
85
|
+
O(H), U(e), E({
|
|
86
|
+
type: me,
|
|
85
87
|
payload: {
|
|
86
88
|
sortedCell: e,
|
|
87
|
-
sortDirection:
|
|
89
|
+
sortDirection: H
|
|
88
90
|
}
|
|
89
91
|
});
|
|
90
|
-
},
|
|
92
|
+
}, q = async () => {
|
|
91
93
|
const e = o.current;
|
|
92
94
|
try {
|
|
93
|
-
await
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
userId: d?.username || "",
|
|
98
|
-
id: e.id
|
|
99
|
-
}
|
|
100
|
-
}), u(""), await _e(ie, {
|
|
95
|
+
await Y({
|
|
96
|
+
userId: d?.username || "",
|
|
97
|
+
id: e.id
|
|
98
|
+
}), u(""), await Le(ce, {
|
|
101
99
|
autoClose: 2e3,
|
|
102
100
|
containerId: "history-table"
|
|
103
101
|
});
|
|
104
102
|
} catch {
|
|
105
103
|
}
|
|
106
|
-
},
|
|
104
|
+
}, J = async (e) => {
|
|
107
105
|
try {
|
|
108
|
-
const s = await C(), r = await
|
|
106
|
+
const s = await C(), r = await le({
|
|
109
107
|
accessToken: s,
|
|
110
|
-
type:
|
|
108
|
+
type: de.GET_CHAT,
|
|
111
109
|
params: {
|
|
112
110
|
id: e.id
|
|
113
111
|
}
|
|
114
112
|
});
|
|
115
|
-
r.data.provider !==
|
|
113
|
+
r.data.provider !== f && (await he({
|
|
116
114
|
provider: r.data.provider,
|
|
117
115
|
accessToken: s,
|
|
118
116
|
username: d?.username || ""
|
|
119
117
|
}), h({
|
|
120
|
-
type:
|
|
118
|
+
type: Re,
|
|
121
119
|
payload: {
|
|
122
120
|
provider: r.data.provider
|
|
123
121
|
}
|
|
124
|
-
}),
|
|
125
|
-
`${
|
|
122
|
+
}), B(), await Ie(
|
|
123
|
+
`${Ce} ${r.data.provider}`,
|
|
126
124
|
{
|
|
127
125
|
containerId: "toggle-provider"
|
|
128
126
|
}
|
|
129
127
|
)), h({
|
|
130
|
-
type:
|
|
128
|
+
type: ke,
|
|
131
129
|
payload: {
|
|
132
130
|
restoring: !0,
|
|
133
131
|
restoredModel: r.data?.model || "",
|
|
134
132
|
restoredUsage: r.data?.tokenUsage || 0
|
|
135
133
|
}
|
|
136
|
-
}),
|
|
134
|
+
}), b(""), N(e.id), v(r.data.messages), y(!1);
|
|
137
135
|
} catch {
|
|
138
136
|
}
|
|
139
|
-
},
|
|
137
|
+
}, K = (e) => {
|
|
140
138
|
o.current = {
|
|
141
139
|
id: e.id,
|
|
142
140
|
timestamp: e.timestamp,
|
|
143
141
|
message: e.messages.length > 0 ? e.messages[0]?.content : ""
|
|
144
|
-
},
|
|
145
|
-
},
|
|
142
|
+
}, A(!c);
|
|
143
|
+
}, Q = async (e) => {
|
|
146
144
|
try {
|
|
147
|
-
await
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
params: {
|
|
151
|
-
userId: d?.username || "",
|
|
152
|
-
id: e.id
|
|
153
|
-
}
|
|
145
|
+
await $({
|
|
146
|
+
userId: d?.username || "",
|
|
147
|
+
id: e.id
|
|
154
148
|
}), u("");
|
|
155
149
|
} catch {
|
|
156
150
|
}
|
|
157
|
-
},
|
|
158
|
-
e[0].isIntersecting &&
|
|
151
|
+
}, W = we((e) => {
|
|
152
|
+
e[0].isIntersecting && I((r) => r + F);
|
|
159
153
|
}, []);
|
|
160
|
-
return
|
|
154
|
+
return G(() => {
|
|
161
155
|
const e = {
|
|
162
156
|
// root: null,
|
|
163
157
|
rootMargin: "20px"
|
|
164
|
-
}, s = new IntersectionObserver(
|
|
158
|
+
}, s = new IntersectionObserver(W, e);
|
|
165
159
|
S.current && s.observe(S.current);
|
|
166
|
-
}), /* @__PURE__ */ n(
|
|
160
|
+
}), /* @__PURE__ */ n(X, { children: [
|
|
167
161
|
/* @__PURE__ */ n(
|
|
168
|
-
|
|
162
|
+
De,
|
|
169
163
|
{
|
|
170
164
|
showConfirmation: c,
|
|
171
|
-
setShowConfirmation:
|
|
172
|
-
action:
|
|
165
|
+
setShowConfirmation: A,
|
|
166
|
+
action: q,
|
|
173
167
|
customStrings: {
|
|
174
168
|
confirmAction: "Delete",
|
|
175
169
|
cancelAction: "Cancel",
|
|
@@ -192,80 +186,80 @@ const Ne = ({
|
|
|
192
186
|
]
|
|
193
187
|
}
|
|
194
188
|
),
|
|
195
|
-
/* @__PURE__ */ t("div", { className:
|
|
196
|
-
/* @__PURE__ */ t(
|
|
197
|
-
|
|
189
|
+
/* @__PURE__ */ t("div", { className: ne, children: /* @__PURE__ */ t(Oe, { containerId: "history-table" }) }),
|
|
190
|
+
/* @__PURE__ */ t(xe, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
|
|
191
|
+
Pe,
|
|
198
192
|
{
|
|
199
193
|
filteredHistory: l,
|
|
200
|
-
historyState:
|
|
194
|
+
historyState: k,
|
|
201
195
|
lastEntryToLoad: p,
|
|
202
196
|
onClickSort: j,
|
|
203
|
-
onClickRestore:
|
|
204
|
-
onClickDelete:
|
|
205
|
-
onClickFavorite:
|
|
197
|
+
onClickRestore: J,
|
|
198
|
+
onClickDelete: K,
|
|
199
|
+
onClickFavorite: Q,
|
|
206
200
|
infinityScrollMarkerRef: S
|
|
207
201
|
}
|
|
208
202
|
) })
|
|
209
203
|
] });
|
|
210
|
-
},
|
|
204
|
+
}, Be = ({
|
|
211
205
|
open: l,
|
|
212
206
|
onOpenChange: h
|
|
213
207
|
}) => {
|
|
214
|
-
const { getAccessToken:
|
|
208
|
+
const { getAccessToken: y, user: u } = P(), { dispatch: d } = R(z), [C, S] = x([]), o = w(null), { state: c, dispatch: A } = R(V), {
|
|
215
209
|
data: p,
|
|
216
|
-
refetch:
|
|
210
|
+
refetch: I,
|
|
217
211
|
isLoading: i,
|
|
218
|
-
isError:
|
|
219
|
-
} =
|
|
212
|
+
isError: E
|
|
213
|
+
} = Se({
|
|
220
214
|
enabled: l,
|
|
221
215
|
user: u?.username || "",
|
|
222
216
|
searchString: c.searchString || "",
|
|
223
217
|
sortDirection: c.sortDirection || m.DESC,
|
|
224
218
|
sortedCell: c.sortedCell || L,
|
|
225
|
-
getAccessToken:
|
|
226
|
-
}), [,
|
|
227
|
-
key:
|
|
219
|
+
getAccessToken: y
|
|
220
|
+
}), [, k] = g({
|
|
221
|
+
key: T + pe,
|
|
228
222
|
initialValue: c.searchString
|
|
229
|
-
}), [
|
|
230
|
-
key:
|
|
223
|
+
}), [f, N] = g({
|
|
224
|
+
key: T + ye,
|
|
231
225
|
initialValue: !1
|
|
232
226
|
});
|
|
233
|
-
|
|
227
|
+
G(() => {
|
|
234
228
|
p && S(
|
|
235
|
-
|
|
229
|
+
f ? p.filter((a) => a.favoriteChat === !0) : p
|
|
236
230
|
);
|
|
237
|
-
}, [p,
|
|
238
|
-
const
|
|
239
|
-
|
|
240
|
-
type:
|
|
231
|
+
}, [p, f]);
|
|
232
|
+
const v = async (a) => {
|
|
233
|
+
k(a), A({
|
|
234
|
+
type: ve,
|
|
241
235
|
payload: { searchString: a }
|
|
242
236
|
});
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
}, 500),
|
|
237
|
+
}, b = Ae((a) => {
|
|
238
|
+
v(a.target.value.trim());
|
|
239
|
+
}, 500), _ = async (a) => {
|
|
246
240
|
a.preventDefault();
|
|
247
241
|
}, D = (a) => {
|
|
248
|
-
|
|
242
|
+
N(a);
|
|
249
243
|
};
|
|
250
244
|
return /* @__PURE__ */ n(
|
|
251
|
-
|
|
245
|
+
Ne,
|
|
252
246
|
{
|
|
253
247
|
open: l,
|
|
254
248
|
onOpenChange: h,
|
|
255
|
-
title:
|
|
249
|
+
title: fe,
|
|
256
250
|
animation: !0,
|
|
257
251
|
animationType: "fade",
|
|
258
252
|
children: [
|
|
259
253
|
/* @__PURE__ */ t(
|
|
260
|
-
|
|
254
|
+
Te,
|
|
261
255
|
{
|
|
262
256
|
header: "Filters",
|
|
263
257
|
className: "prose-dark dark:prose-lighter mb-4",
|
|
264
258
|
noBorder: !0,
|
|
265
259
|
compact: !0,
|
|
266
|
-
children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit:
|
|
260
|
+
children: /* @__PURE__ */ n("form", { autoComplete: "off", onSubmit: _, children: [
|
|
267
261
|
/* @__PURE__ */ t(
|
|
268
|
-
|
|
262
|
+
ge,
|
|
269
263
|
{
|
|
270
264
|
placeholder: "Search",
|
|
271
265
|
labelHidden: !0,
|
|
@@ -278,17 +272,17 @@ const Ne = ({
|
|
|
278
272
|
mode: "alt-system",
|
|
279
273
|
name: "Search",
|
|
280
274
|
label: "Search",
|
|
281
|
-
onChange:
|
|
275
|
+
onChange: b,
|
|
282
276
|
className: "my-2",
|
|
283
|
-
rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(
|
|
277
|
+
rightElement: /* @__PURE__ */ t("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ t(Fe, { monotone: !0, size: "size-3" }) })
|
|
284
278
|
}
|
|
285
279
|
),
|
|
286
280
|
/* @__PURE__ */ n("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
|
|
287
281
|
/* @__PURE__ */ t("div", { className: "order-1 sm:order-0", children: /* @__PURE__ */ t(
|
|
288
|
-
|
|
282
|
+
be,
|
|
289
283
|
{
|
|
290
284
|
name: "favorites-only",
|
|
291
|
-
checked:
|
|
285
|
+
checked: f,
|
|
292
286
|
onChange: D,
|
|
293
287
|
label: "Show favorites only",
|
|
294
288
|
narrow: !0,
|
|
@@ -296,12 +290,12 @@ const Ne = ({
|
|
|
296
290
|
}
|
|
297
291
|
) }),
|
|
298
292
|
/* @__PURE__ */ t(
|
|
299
|
-
|
|
293
|
+
Ee,
|
|
300
294
|
{
|
|
301
295
|
size: "small",
|
|
302
296
|
disabled: c.searchString === "",
|
|
303
297
|
onClick: () => {
|
|
304
|
-
|
|
298
|
+
v(""), o.current?.value && (o.current.value = "", o.current.focus());
|
|
305
299
|
},
|
|
306
300
|
children: "Reset Search"
|
|
307
301
|
}
|
|
@@ -312,11 +306,11 @@ const Ne = ({
|
|
|
312
306
|
),
|
|
313
307
|
/* @__PURE__ */ n("div", { className: "flex flex-col sm:flex-row max-h-[65vh] sm:max-h-[75vh] min-h-[60vh]", children: [
|
|
314
308
|
i && /* @__PURE__ */ t("p", { className: "m-0", children: "Loading..." }),
|
|
315
|
-
|
|
316
|
-
!i && !
|
|
317
|
-
|
|
309
|
+
E && /* @__PURE__ */ t("p", { className: "m-0 text-red-500", children: "Failed to load history." }),
|
|
310
|
+
!i && !E && /* @__PURE__ */ t(
|
|
311
|
+
Ve,
|
|
318
312
|
{
|
|
319
|
-
mutate:
|
|
313
|
+
mutate: I,
|
|
320
314
|
filteredHistory: C,
|
|
321
315
|
dispatch: d,
|
|
322
316
|
onOpenChange: h
|
|
@@ -328,5 +322,5 @@ const Ne = ({
|
|
|
328
322
|
);
|
|
329
323
|
};
|
|
330
324
|
export {
|
|
331
|
-
|
|
325
|
+
Be as HistoryPanel
|
|
332
326
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as t, Fragment as D, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as H, LazyToastContainerWrapper as $, oe as V } from "./App.
|
|
3
|
-
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x 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.
|
|
2
|
+
import { preloadToast as K, showSuccessToast as W, showErrorToast as Y, ConfirmationPanel as H, LazyToastContainerWrapper as $, oe as V } from "./App.fsMPD4V8.js";
|
|
3
|
+
import { n as q, i as J, useUserPreferences as Q, useServerCapabilities as X, x 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.waB0Z6fk.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 = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t, Fragment as w } from "react/jsx-runtime";
|
|
2
|
-
import { n as Ce, useEntitlements as Ie, useUserPreferences as be, nt as te, canEvaluateModels as ke, et as we, getCacheInfo as ye, isServiceWorkerEnabled as ve, SETTINGS_TITLE as De, S as m, CARDS as c, Q as Le, C as y, PROMPTS_DESCRIPTION as Me, L as xe, j as oe, getCurrentGeoLocation as
|
|
3
|
-
import { useCapability as ne, oe as Be, G as l } from "./App.
|
|
4
|
-
import { Re as re } from "./index.
|
|
2
|
+
import { n as Ce, useEntitlements as Ie, useUserPreferences as be, nt as te, canEvaluateModels as ke, et as we, getCacheInfo as ye, isServiceWorkerEnabled as ve, SETTINGS_TITLE as De, S as m, CARDS as c, Q as Le, C as y, PROMPTS_DESCRIPTION as Me, L as xe, j as oe, getCurrentGeoLocation as Re, graphQLRequest as se, handleServiceWorkerToggle as _e, SERVICE_TYPES as ae } from "./index.waB0Z6fk.js";
|
|
3
|
+
import { useCapability as ne, oe as Be, G as l } from "./App.fsMPD4V8.js";
|
|
4
|
+
import { Re as re } from "./index.BZMtXIBc.js";
|
|
5
5
|
import { useState as n, useMemo as Oe, useCallback as Ae, useEffect as ce } from "react";
|
|
6
6
|
const $e = ({
|
|
7
7
|
open: le,
|
|
@@ -16,13 +16,13 @@ const $e = ({
|
|
|
16
16
|
getAccessToken: E
|
|
17
17
|
}), [x, p] = n({
|
|
18
18
|
loadingLocation: !1
|
|
19
|
-
}), [C,
|
|
19
|
+
}), [C, R] = n({
|
|
20
20
|
prompts: []
|
|
21
|
-
}), [
|
|
21
|
+
}), [_, B] = n(""), [O, g] = n(""), [A, P] = n(!1), [G, U] = n(!1), [N, W] = n(!1), [S, V] = n(!1), [$, z] = n(!1), [j, Y] = n(!1), [h, q] = n(null), [F, H] = n(!1), [Q, J] = n(!1), K = ne(te.TOOL.MEMORIES), X = ne(te.ADDON.REASONING), de = Oe(() => ke(T, L) ? we(T) : !1, [T, L]), me = (e) => {
|
|
22
22
|
J(e);
|
|
23
|
-
}, ue = (e) => {
|
|
24
|
-
P(e);
|
|
25
23
|
}, he = (e) => {
|
|
24
|
+
P(e);
|
|
25
|
+
}, ue = (e) => {
|
|
26
26
|
K && U(e);
|
|
27
27
|
}, pe = (e) => {
|
|
28
28
|
V(e);
|
|
@@ -38,7 +38,7 @@ const $e = ({
|
|
|
38
38
|
type: ae.SET_USER_PREFERENCES,
|
|
39
39
|
params: {
|
|
40
40
|
user: D?.username,
|
|
41
|
-
instructions:
|
|
41
|
+
instructions: _,
|
|
42
42
|
location: O,
|
|
43
43
|
provider: o?.provider,
|
|
44
44
|
tags: C.prompts,
|
|
@@ -48,7 +48,7 @@ const $e = ({
|
|
|
48
48
|
showReasoningButton: $,
|
|
49
49
|
useNestedModelSelection: j
|
|
50
50
|
}
|
|
51
|
-
}), S !== N && (await
|
|
51
|
+
}), S !== N && (await _e(S), W(S)), M(), p({
|
|
52
52
|
loadingLocation: !1
|
|
53
53
|
});
|
|
54
54
|
} catch {
|
|
@@ -58,7 +58,7 @@ const $e = ({
|
|
|
58
58
|
loadingLocation: !0
|
|
59
59
|
}), g("...");
|
|
60
60
|
try {
|
|
61
|
-
const e = Date.now(), a = await
|
|
61
|
+
const e = Date.now(), a = await Re(), f = await se({
|
|
62
62
|
accessToken: await E(),
|
|
63
63
|
type: ae.GET_LOCATION,
|
|
64
64
|
params: {
|
|
@@ -67,7 +67,7 @@ const $e = ({
|
|
|
67
67
|
}
|
|
68
68
|
}), d = Date.now() - e;
|
|
69
69
|
d < 2e3 && await new Promise((Te) => setTimeout(Te, 2e3 - d));
|
|
70
|
-
const { city: i, state: r, country:
|
|
70
|
+
const { city: i, state: r, country: u, displayName: k } = f.data, Ee = i && r && u ? `${i}, ${r}, ${u}` : k;
|
|
71
71
|
p({
|
|
72
72
|
loadingLocation: !1
|
|
73
73
|
}), g(Ee);
|
|
@@ -84,7 +84,7 @@ const $e = ({
|
|
|
84
84
|
clipboardAccess: f = !1,
|
|
85
85
|
...b
|
|
86
86
|
}) => {
|
|
87
|
-
|
|
87
|
+
R((d) => {
|
|
88
88
|
const i = d.prompts, r = {
|
|
89
89
|
...b,
|
|
90
90
|
enabled: e,
|
|
@@ -92,33 +92,33 @@ const $e = ({
|
|
|
92
92
|
clipboardAccess: f
|
|
93
93
|
};
|
|
94
94
|
f ? r.content = r.content.replace(/{{clipboard}}/g, "") + " {{clipboard}}" : r.content = r.content.replace(/{{clipboard}}/g, "");
|
|
95
|
-
const
|
|
96
|
-
return
|
|
95
|
+
const u = i.findIndex((k) => k.slot === b.slot);
|
|
96
|
+
return u === -1 ? {
|
|
97
97
|
...d,
|
|
98
98
|
prompts: [...i, { ...r }]
|
|
99
|
-
} : (i[
|
|
99
|
+
} : (i[u] = r, {
|
|
100
100
|
...d,
|
|
101
101
|
prompts: [...i]
|
|
102
102
|
});
|
|
103
103
|
});
|
|
104
104
|
}, ee = Ae(async () => {
|
|
105
105
|
try {
|
|
106
|
-
|
|
106
|
+
H(!0);
|
|
107
107
|
const e = await ye();
|
|
108
|
-
|
|
108
|
+
q(e);
|
|
109
109
|
} catch {
|
|
110
110
|
} finally {
|
|
111
|
-
|
|
111
|
+
H(!1);
|
|
112
112
|
}
|
|
113
113
|
}, []);
|
|
114
114
|
return ce(() => {
|
|
115
115
|
if (!o)
|
|
116
116
|
return;
|
|
117
|
-
o.instructions && B(o.instructions), o.location && g(o.location), o.tags &&
|
|
117
|
+
o.instructions && B(o.instructions), o.location && g(o.location), o.tags && R({ prompts: o.tags }), o.sendOnEnter !== void 0 && P(o.sendOnEnter), o.useMemory !== void 0 && U(o.useMemory), o.showDetails !== void 0 && J(o.showDetails), o.showReasoningButton !== void 0 && z(o.showReasoningButton), o.useNestedModelSelection !== void 0 && Y(o.useNestedModelSelection);
|
|
118
118
|
const e = ve();
|
|
119
119
|
W(e), V(e);
|
|
120
120
|
}, [o]), ce(() => {
|
|
121
|
-
N ? ee() :
|
|
121
|
+
N ? ee() : q(null);
|
|
122
122
|
}, [N, ee]), ie ? /* @__PURE__ */ s(
|
|
123
123
|
Be,
|
|
124
124
|
{
|
|
@@ -189,7 +189,7 @@ const $e = ({
|
|
|
189
189
|
className: "mt-2",
|
|
190
190
|
label: "Send Message on Enter",
|
|
191
191
|
name: "send-message-on-enter",
|
|
192
|
-
onChange:
|
|
192
|
+
onChange: he,
|
|
193
193
|
checked: A
|
|
194
194
|
}
|
|
195
195
|
),
|
|
@@ -203,7 +203,7 @@ const $e = ({
|
|
|
203
203
|
className: "mt-2",
|
|
204
204
|
label: "Use Memory",
|
|
205
205
|
name: "use-memory",
|
|
206
|
-
onChange:
|
|
206
|
+
onChange: ue,
|
|
207
207
|
checked: G
|
|
208
208
|
}
|
|
209
209
|
)
|
|
@@ -232,7 +232,7 @@ const $e = ({
|
|
|
232
232
|
autoCorrect: "off",
|
|
233
233
|
name: "customInstructions",
|
|
234
234
|
label: "Custom Instructions",
|
|
235
|
-
value:
|
|
235
|
+
value: _,
|
|
236
236
|
onChange: (e) => {
|
|
237
237
|
B(e.target.value);
|
|
238
238
|
},
|
|
@@ -411,16 +411,16 @@ const $e = ({
|
|
|
411
411
|
),
|
|
412
412
|
N && /* @__PURE__ */ s("div", { className: "mt-4 p-3 border border-dashed border-neutral-700 dark:border-neutral-400 rounded @container/optimizations", children: [
|
|
413
413
|
/* @__PURE__ */ t("h3", { className: "m-0 mb-2 text-xs uppercase opacity-70", children: "Cache Info" }),
|
|
414
|
-
|
|
414
|
+
h ? /* @__PURE__ */ s("div", { className: "text-xs space-y-2", children: [
|
|
415
415
|
/* @__PURE__ */ s("p", { className: "m-0", children: [
|
|
416
416
|
"Version: ",
|
|
417
|
-
/* @__PURE__ */ t("strong", { children:
|
|
417
|
+
/* @__PURE__ */ t("strong", { children: h.version })
|
|
418
418
|
] }),
|
|
419
419
|
/* @__PURE__ */ s("p", { className: "m-0", children: [
|
|
420
420
|
"Total Items: ",
|
|
421
|
-
/* @__PURE__ */ t("strong", { children:
|
|
421
|
+
/* @__PURE__ */ t("strong", { children: h.totalItems })
|
|
422
422
|
] }),
|
|
423
|
-
|
|
423
|
+
h.caches.map((e) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("ul", { className: "not-prose font-mono mt-2 list-none w-[95cqw]", children: e.urls.map((a) => /* @__PURE__ */ t(
|
|
424
424
|
"li",
|
|
425
425
|
{
|
|
426
426
|
className: "truncate text-xs text-copy-dark dark:text-copy-light overflow-hidden text-ellipsis",
|
|
@@ -429,8 +429,8 @@ const $e = ({
|
|
|
429
429
|
},
|
|
430
430
|
a
|
|
431
431
|
)) }) }, e.name)),
|
|
432
|
-
|
|
433
|
-
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children:
|
|
432
|
+
h.totalItems === 0 && !F && /* @__PURE__ */ t("p", { className: "italic m-0 opacity-70", children: "No cached assets yet." })
|
|
433
|
+
] }) : /* @__PURE__ */ t("p", { className: "text-xs opacity-70 m-0", children: F ? "Loading cache info..." : "No cache info available." })
|
|
434
434
|
] })
|
|
435
435
|
]
|
|
436
436
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { I as f, b as v } from "./index.
|
|
2
|
+
import { I as f, b as v } from "./index.waB0Z6fk.js";
|
|
3
3
|
import C, { useContext as b } from "react";
|
|
4
4
|
import o from "clsx";
|
|
5
|
-
import { e as k } from "./App.
|
|
5
|
+
import { e as k } from "./App.fsMPD4V8.js";
|
|
6
6
|
const L = ({
|
|
7
7
|
className: e,
|
|
8
8
|
viewBox: a,
|