@versini/sassysaint 8.29.1 → 8.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{AboutChangelog.Kvve-bf3.js → AboutChangelog.1LgYNj2i.js} +2 -2
- package/dist/chunks/{AboutEntry.uRTVBW38.js → AboutEntry.WJi-LOJL.js} +8 -8
- package/dist/chunks/{App.CeAix1SW.js → App.P5J8tU9o.js} +354 -354
- package/dist/chunks/{Chart.Dz1CbrVW.js → Chart.KIoSyz6Q.js} +2 -2
- package/dist/chunks/{ChatBubbleAssistant.Us3lU5MP.js → ChatBubbleAssistant.B3afkMea.js} +3 -3
- package/dist/chunks/{HistoryEntry.vKi3eYMd.js → HistoryEntry.Dta-9c3Y.js} +2 -2
- package/dist/chunks/{I3HPI4QX.DKcplVep.js → I3HPI4QX.D4ePjA0-.js} +1 -1
- package/dist/chunks/{ProfileEntry.BYWrCpL1.js → ProfileEntry.Ll8ojBnt.js} +2 -2
- package/dist/chunks/{SettingsEntry.BspfcHrj.js → SettingsEntry.BVTwMJgA.js} +70 -70
- package/dist/chunks/{UsageEntry.BO-kF-Z5.js → UsageEntry.BvG4fkbf.js} +3 -3
- package/dist/chunks/{index.BlJwA4EM.js → index.7XLlPmoz.js} +3 -3
- package/dist/chunks/{index.Bjqvjd0F.js → index.B_7Ctvht.js} +1 -1
- package/dist/chunks/{index.B9JJr6Vp.js → index.C3N20NWc.js} +2 -2
- package/dist/chunks/{index.IuVYTWNs.js → index.C938radi.js} +1 -1
- package/dist/chunks/{index.BQAhrmXB.js → index.MQ7KY0fz.js} +1403 -1386
- package/dist/chunks/{index.CgIb-r4g.js → index.hIcBESDS.js} +1 -1
- package/dist/chunks/{useMarkdown.bHfDa3Jo.js → useMarkdown.zScU9ur4.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 Tp } from "react/jsx-runtime";
|
2
|
-
import { getDefaultExportFromCjs as ln } from "./App.
|
2
|
+
import { getDefaultExportFromCjs as ln } from "./App.P5J8tU9o.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.MQ7KY0fz.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.P5J8tU9o.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.MQ7KY0fz.js";
|
6
|
+
import { useMarkdown as y } from "./useMarkdown.zScU9ur4.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,6 +1,6 @@
|
|
1
1
|
import { jsxs as s, jsx as e, Fragment as Z } from "react/jsx-runtime";
|
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.
|
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.
|
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.MQ7KY0fz.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.P5J8tU9o.js";
|
4
4
|
import { useRef as k, useState as D, useContext as N, useCallback as He, useEffect as L, Fragment as Oe } from "react";
|
5
5
|
const Me = ({
|
6
6
|
className: a,
|
@@ -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.MQ7KY0fz.js";
|
2
2
|
var Ls = (e) => e != null, Os = (e) => e.filter(Ls);
|
3
3
|
function qs(e) {
|
4
4
|
return (...t) => {
|
@@ -1,6 +1,6 @@
|
|
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 R } from "./App.
|
3
|
-
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as T, isTauri as p, le as u, l as E, L as C, j as a, PROFILE_TITLE as A } from "./index.
|
2
|
+
import { i as h, nt as S, rr as R } from "./App.P5J8tU9o.js";
|
3
|
+
import { n as N, S as l, renderDataAsList as P, CARDS as r, isElectron as T, isTauri as p, le as u, l as E, L as C, j as a, PROFILE_TITLE as A } from "./index.MQ7KY0fz.js";
|
4
4
|
const F = () => {
|
5
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: [
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { jsxs as N, jsx as l } from "react/jsx-runtime";
|
2
|
-
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce,
|
3
|
-
import { useUserPreferences as
|
4
|
-
import
|
2
|
+
import { n as ve, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_CHAT_DETAILS as _e, LOCAL_STORAGE_SERVICE_WORKER as we, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Se, S as U, CARDS as P, APP_NAME as Ie, C as ae, PROMPTS_DESCRIPTION as Ae, L as Re, j as ce, getCurrentGeoLocation as Le, handleServiceWorkerToggle as Oe } from "./index.MQ7KY0fz.js";
|
3
|
+
import { useUserPreferences as Me, E as ie, rr as De, mutateCall as de, SERVICE_TYPES as ue } from "./App.P5J8tU9o.js";
|
4
|
+
import Pe, { useRef as v, useState as y, useLayoutEffect as z, useMemo as pe, useEffect as j, useId as Ge, useReducer as Be, useCallback as He } from "react";
|
5
5
|
import i from "clsx";
|
6
|
-
const he = "av-text-area",
|
7
|
-
function
|
6
|
+
const he = "av-text-area", Ve = "av-text-area-wrapper", oe = "av-text-area-helper-text", Ue = "av-text-area__control--right", $e = "av-text-area__control--left";
|
7
|
+
function Fe() {
|
8
8
|
const e = v(!1);
|
9
9
|
return j(() => (e.current = !0, () => {
|
10
10
|
e.current = !1;
|
11
|
-
}), []),
|
11
|
+
}), []), He(() => e.current, []);
|
12
12
|
}
|
13
|
-
function
|
13
|
+
function We(e) {
|
14
14
|
return pe(() => e.every((r) => r == null) ? () => {
|
15
15
|
} : (r) => {
|
16
16
|
e.forEach((a) => {
|
@@ -18,7 +18,7 @@ function ze(e) {
|
|
18
18
|
});
|
19
19
|
}, [...e]);
|
20
20
|
}
|
21
|
-
const
|
21
|
+
const ze = {
|
22
22
|
x: 0,
|
23
23
|
y: 0,
|
24
24
|
width: 0,
|
@@ -29,7 +29,7 @@ const je = {
|
|
29
29
|
right: 0
|
30
30
|
};
|
31
31
|
function me(e) {
|
32
|
-
const r =
|
32
|
+
const r = Fe(), a = v(0), o = v(null), [t, s] = y(ze), c = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((d) => {
|
33
33
|
const u = d[0];
|
34
34
|
u && (cancelAnimationFrame(a.current), a.current = requestAnimationFrame(() => {
|
35
35
|
o.current && r() && s(u.contentRect);
|
@@ -39,7 +39,7 @@ function me(e) {
|
|
39
39
|
c?.disconnect(), a.current && cancelAnimationFrame(a.current);
|
40
40
|
}), [c, e]), [o, t];
|
41
41
|
}
|
42
|
-
function
|
42
|
+
function je({
|
43
43
|
value: e,
|
44
44
|
defaultValue: r,
|
45
45
|
finalValue: a,
|
@@ -58,8 +58,8 @@ function Xe({
|
|
58
58
|
), c(!0)))();
|
59
59
|
}, [e, t, s]), e !== void 0 ? !s && t > 0 ? ["", o, !0] : [e, o, !0] : [d, m, !1];
|
60
60
|
}
|
61
|
-
function
|
62
|
-
const r =
|
61
|
+
function Xe(e) {
|
62
|
+
const r = Ge();
|
63
63
|
if (!e)
|
64
64
|
return r;
|
65
65
|
if (typeof e == "number" || typeof e == "string")
|
@@ -69,7 +69,7 @@ function Ye(e) {
|
|
69
69
|
return typeof a == "number" || typeof a == "string" ? `${o}${a}` : `${o}${r}`;
|
70
70
|
}
|
71
71
|
}
|
72
|
-
const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT",
|
72
|
+
const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", Ye = {
|
73
73
|
alert: null,
|
74
74
|
alertdialog: null,
|
75
75
|
log: "polite",
|
@@ -77,7 +77,7 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", qe = {
|
|
77
77
|
progressbar: null,
|
78
78
|
status: "polite",
|
79
79
|
timer: "assertive"
|
80
|
-
},
|
80
|
+
}, qe = (e, r) => {
|
81
81
|
switch (r?.type) {
|
82
82
|
case ge:
|
83
83
|
return {
|
@@ -92,7 +92,7 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", qe = {
|
|
92
92
|
default:
|
93
93
|
return e;
|
94
94
|
}
|
95
|
-
},
|
95
|
+
}, Ke = ({
|
96
96
|
onAnnouncementClear: e,
|
97
97
|
dispatch: r
|
98
98
|
}) => {
|
@@ -110,13 +110,13 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", qe = {
|
|
110
110
|
type: ge,
|
111
111
|
payload: e
|
112
112
|
}), r && (a.current = setTimeout(
|
113
|
-
() =>
|
113
|
+
() => Ke({
|
114
114
|
onAnnouncementClear: o,
|
115
115
|
dispatch: t
|
116
116
|
}),
|
117
117
|
r
|
118
118
|
));
|
119
|
-
},
|
119
|
+
}, Qe = ({
|
120
120
|
children: e,
|
121
121
|
announcementTimeoutRef: r,
|
122
122
|
announcementDelay: a,
|
@@ -139,7 +139,7 @@ const ge = "SET_ANNOUNCEMENT", ye = "CLEAR_ANNOUNCEMENT", qe = {
|
|
139
139
|
dispatch: c
|
140
140
|
});
|
141
141
|
};
|
142
|
-
function
|
142
|
+
function Je({
|
143
143
|
children: e,
|
144
144
|
className: r,
|
145
145
|
politeness: a,
|
@@ -150,12 +150,12 @@ function Ze({
|
|
150
150
|
visible: d,
|
151
151
|
...u
|
152
152
|
}) {
|
153
|
-
const m = v(null), p = v(null), [k, A] =
|
153
|
+
const m = v(null), p = v(null), [k, A] = Be(qe, {
|
154
154
|
announcement: null
|
155
155
|
});
|
156
156
|
let _ = a;
|
157
|
-
typeof _ > "u" && (_ = o ?
|
158
|
-
|
157
|
+
typeof _ > "u" && (_ = o ? Ye[o] : "assertive"), j(() => {
|
158
|
+
Qe({
|
159
159
|
announcementTimeoutRef: m,
|
160
160
|
announcementDelay: t,
|
161
161
|
children: e,
|
@@ -197,19 +197,19 @@ try {
|
|
197
197
|
});
|
198
198
|
} catch {
|
199
199
|
}
|
200
|
-
const
|
200
|
+
const Ze = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", et = ({ mode: e }) => i({
|
201
201
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
202
202
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
203
203
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
204
204
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
205
|
-
}),
|
205
|
+
}), tt = ({
|
206
206
|
focusMode: e
|
207
207
|
}) => i("focus:outline focus:outline-2 focus:outline-offset-2", {
|
208
208
|
"focus:outline-focus-dark": e === "dark",
|
209
209
|
"focus:outline-focus-light": e === "light",
|
210
210
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
211
211
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
212
|
-
}),
|
212
|
+
}), rt = ({
|
213
213
|
noBorder: e,
|
214
214
|
error: r
|
215
215
|
}) => i("border-2", {
|
@@ -217,7 +217,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
217
217
|
"focus:border-border-dark": !e && r,
|
218
218
|
"border-border-error-dark": !e && r,
|
219
219
|
"border-transparent": e
|
220
|
-
}),
|
220
|
+
}), at = ({
|
221
221
|
disabled: e,
|
222
222
|
raw: r,
|
223
223
|
error: a,
|
@@ -256,7 +256,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
256
256
|
"text-copy-medium dark:text-copy-error-dark": o === "alt-system"
|
257
257
|
}
|
258
258
|
);
|
259
|
-
},
|
259
|
+
}, ot = ({
|
260
260
|
error: e,
|
261
261
|
raw: r,
|
262
262
|
mode: a,
|
@@ -283,7 +283,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
283
283
|
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
284
284
|
"dark:text-copy-error-dark text-copy-error-light": a === "alt-system"
|
285
285
|
});
|
286
|
-
},
|
286
|
+
}, nt = ({
|
287
287
|
className: e,
|
288
288
|
textAreaClassName: r,
|
289
289
|
raw: a,
|
@@ -297,34 +297,34 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
297
297
|
}) => {
|
298
298
|
const p = a ? e : i(
|
299
299
|
"relative flex w-full flex-col justify-center",
|
300
|
-
|
300
|
+
Ve,
|
301
301
|
e
|
302
302
|
), k = a ? i(r) : i(
|
303
303
|
he,
|
304
304
|
r,
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
305
|
+
Ze(),
|
306
|
+
et({ mode: d }),
|
307
|
+
tt({ focusMode: o }),
|
308
|
+
rt({
|
309
309
|
noBorder: s,
|
310
310
|
error: c
|
311
311
|
}),
|
312
312
|
{
|
313
313
|
"disabled:cursor-not-allowed disabled:opacity-50": t
|
314
314
|
}
|
315
|
-
), A = a ? void 0 : "sr-only", _ =
|
315
|
+
), A = a ? void 0 : "sr-only", _ = at({
|
316
316
|
disabled: t,
|
317
317
|
raw: a,
|
318
318
|
error: c,
|
319
319
|
mode: d,
|
320
320
|
rightElement: m,
|
321
321
|
leftElement: u
|
322
|
-
}), f =
|
322
|
+
}), f = ot({
|
323
323
|
error: c,
|
324
324
|
raw: a,
|
325
325
|
mode: d,
|
326
326
|
disabled: t
|
327
|
-
}), R = a ? void 0 : i(
|
327
|
+
}), R = a ? void 0 : i(Ue, "absolute"), x = a ? void 0 : i($e, "absolute");
|
328
328
|
return {
|
329
329
|
wrapper: p,
|
330
330
|
textArea: k,
|
@@ -334,7 +334,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
334
334
|
rightElement: R,
|
335
335
|
leftElement: x
|
336
336
|
};
|
337
|
-
},
|
337
|
+
}, lt = ({
|
338
338
|
scrollHeight: e,
|
339
339
|
currentHeight: r,
|
340
340
|
currentLabelOffset: a = 0,
|
@@ -350,7 +350,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
350
350
|
helperTextOffset: s,
|
351
351
|
scrollHeight: e
|
352
352
|
};
|
353
|
-
}, ne =
|
353
|
+
}, ne = Pe.forwardRef(
|
354
354
|
({
|
355
355
|
id: e,
|
356
356
|
name: r,
|
@@ -376,9 +376,9 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
376
376
|
...K
|
377
377
|
}, Q) => {
|
378
378
|
var Y;
|
379
|
-
const E = v(null), J =
|
379
|
+
const E = v(null), J = We([Q, E]), [Z, B] = me(), [ee, L] = me(), H = v(80), V = v(-25), n = v(null), h = v(30), C = v(null), S = Xe({ id: e, prefix: `${he}-` }), [I, T] = y(0), [b, M] = y(0), [W, q] = y(
|
380
380
|
!!(!R && f)
|
381
|
-
), be = `${r} error, ${f}`, D =
|
381
|
+
), be = `${r} error, ${f}`, D = nt({
|
382
382
|
className: s,
|
383
383
|
textAreaClassName: c,
|
384
384
|
error: o,
|
@@ -389,7 +389,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
389
389
|
mode: d,
|
390
390
|
rightElement: !!x,
|
391
391
|
leftElement: !!w
|
392
|
-
}), [O, ke] =
|
392
|
+
}), [O, ke] = je({
|
393
393
|
value: m,
|
394
394
|
initialControlledDelay: 20,
|
395
395
|
defaultValue: p,
|
@@ -424,7 +424,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
424
424
|
}, [O, t]), z(() => {
|
425
425
|
var g, le;
|
426
426
|
if (!t && E && E.current && O !== void 0) {
|
427
|
-
const { labelOffset: te, helperTextOffset: re, scrollHeight: Ne } =
|
427
|
+
const { labelOffset: te, helperTextOffset: re, scrollHeight: Ne } = lt({
|
428
428
|
scrollHeight: E.current.scrollHeight,
|
429
429
|
currentHeight: H.current,
|
430
430
|
currentLabelOffset: V.current,
|
@@ -513,7 +513,7 @@ const et = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
513
513
|
children: x
|
514
514
|
}
|
515
515
|
),
|
516
|
-
o && f && /* @__PURE__ */ l(
|
516
|
+
o && f && /* @__PURE__ */ l(Je, { politeness: "polite", clearAnnouncementDelay: 500, children: be })
|
517
517
|
] });
|
518
518
|
}
|
519
519
|
);
|
@@ -531,7 +531,7 @@ try {
|
|
531
531
|
});
|
532
532
|
} catch {
|
533
533
|
}
|
534
|
-
const
|
534
|
+
const st = "av-toggle", ct = () => i("peer", "h-6", "w-11", "rounded-full"), it = ({
|
535
535
|
focusMode: e
|
536
536
|
}) => i(
|
537
537
|
"peer-focus:outline",
|
@@ -543,14 +543,14 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
543
543
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
544
544
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
545
545
|
}
|
546
|
-
),
|
546
|
+
), dt = () => i(
|
547
547
|
"peer-checked:after:translate-x-full",
|
548
548
|
// background color when checked
|
549
549
|
"peer-checked:bg-violet-500",
|
550
550
|
// knob circle and border color when checked
|
551
551
|
"peer-checked:after:bg-white",
|
552
552
|
"peer-checked:after:border-white"
|
553
|
-
),
|
553
|
+
), ut = () => i(
|
554
554
|
"after:left-[2px]",
|
555
555
|
"after:top-[2px]",
|
556
556
|
"after:border",
|
@@ -562,7 +562,7 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
562
562
|
"after:rounded-full",
|
563
563
|
"after:transition-all",
|
564
564
|
"after:content-['']"
|
565
|
-
),
|
565
|
+
), mt = ({
|
566
566
|
mode: e,
|
567
567
|
noBorder: r
|
568
568
|
}) => i({
|
@@ -571,7 +571,7 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
571
571
|
"border-border-light bg-surface-darker": e === "dark",
|
572
572
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
573
573
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
574
|
-
}),
|
574
|
+
}), ft = ({
|
575
575
|
mode: e,
|
576
576
|
labelHidden: r
|
577
577
|
}) => r ? "sr-only" : i("ml-2 text-sm", {
|
@@ -579,11 +579,11 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
579
579
|
"text-copy-lighter": e === "dark",
|
580
580
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
581
581
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
582
|
-
}),
|
583
|
-
|
582
|
+
}), pt = ({ className: e }) => i(
|
583
|
+
st,
|
584
584
|
"relative flex cursor-pointer items-center",
|
585
585
|
e
|
586
|
-
),
|
586
|
+
), ht = ({
|
587
587
|
mode: e,
|
588
588
|
focusMode: r,
|
589
589
|
labelHidden: a,
|
@@ -591,15 +591,15 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
591
591
|
noBorder: t
|
592
592
|
}) => ({
|
593
593
|
toggle: i(
|
594
|
-
|
595
|
-
|
596
|
-
|
597
|
-
|
598
|
-
|
594
|
+
ct(),
|
595
|
+
mt({ mode: e, noBorder: t }),
|
596
|
+
it({ focusMode: r }),
|
597
|
+
ut(),
|
598
|
+
dt()
|
599
599
|
),
|
600
|
-
label:
|
600
|
+
label: ft({ mode: e, labelHidden: a }),
|
601
601
|
input: "peer sr-only",
|
602
|
-
wrapper:
|
602
|
+
wrapper: pt({ className: o })
|
603
603
|
}), G = ({
|
604
604
|
checked: e = !1,
|
605
605
|
onChange: r,
|
@@ -611,7 +611,7 @@ const ct = "av-toggle", it = () => i("peer", "h-6", "w-11", "rounded-full"), dt
|
|
611
611
|
className: d,
|
612
612
|
noBorder: u = !1
|
613
613
|
}) => {
|
614
|
-
const m =
|
614
|
+
const m = ht({
|
615
615
|
mode: s,
|
616
616
|
focusMode: c,
|
617
617
|
labelHidden: o,
|
@@ -648,7 +648,7 @@ try {
|
|
648
648
|
});
|
649
649
|
} catch {
|
650
650
|
}
|
651
|
-
const
|
651
|
+
const Et = ({
|
652
652
|
open: e,
|
653
653
|
onOpenChange: r
|
654
654
|
}) => {
|
@@ -656,7 +656,7 @@ const Tt = ({
|
|
656
656
|
data: t,
|
657
657
|
isSuccess: s,
|
658
658
|
refetch: c
|
659
|
-
} =
|
659
|
+
} = Me({
|
660
660
|
user: o?.username,
|
661
661
|
getAccessToken: a
|
662
662
|
}), [d, u] = y({
|
@@ -676,7 +676,7 @@ const Tt = ({
|
|
676
676
|
}, Z = (n) => {
|
677
677
|
$(n);
|
678
678
|
}, B = async (n) => {
|
679
|
-
Y(n), F(n), await
|
679
|
+
Y(n), F(n), await Oe(n);
|
680
680
|
}, ee = async (n) => {
|
681
681
|
n.preventDefault();
|
682
682
|
try {
|
@@ -702,7 +702,7 @@ const Tt = ({
|
|
702
702
|
loadingLocation: !0
|
703
703
|
}), f("...");
|
704
704
|
try {
|
705
|
-
const n = Date.now(), h = await
|
705
|
+
const n = Date.now(), h = await Le(), C = await de({
|
706
706
|
accessToken: await a(),
|
707
707
|
type: ue.GET_LOCATION,
|
708
708
|
params: {
|
@@ -750,13 +750,13 @@ const Tt = ({
|
|
750
750
|
return j(() => {
|
751
751
|
t?.instructions && A(t.instructions), t?.location && f(t.location), t?.tags && p({ prompts: t.tags }), t?.sendOnEnter !== void 0 && x(t.sendOnEnter), t?.useMemory !== void 0 && $(t.useMemory), F(Ce());
|
752
752
|
}, [t]), s ? /* @__PURE__ */ N(
|
753
|
-
|
753
|
+
De,
|
754
754
|
{
|
755
755
|
open: e,
|
756
756
|
onOpenChange: H,
|
757
|
-
title:
|
757
|
+
title: Se,
|
758
758
|
footer: /* @__PURE__ */ N(
|
759
|
-
|
759
|
+
Re,
|
760
760
|
{
|
761
761
|
columnGap: 2,
|
762
762
|
alignHorizontal: "flex-end",
|
@@ -841,7 +841,7 @@ const Tt = ({
|
|
841
841
|
children: [
|
842
842
|
/* @__PURE__ */ N("p", { className: "text-sm", children: [
|
843
843
|
"What would you like ",
|
844
|
-
/* @__PURE__ */ l("em", { children:
|
844
|
+
/* @__PURE__ */ l("em", { children: Ie }),
|
845
845
|
" to know about you to provide better responses?"
|
846
846
|
] }),
|
847
847
|
/* @__PURE__ */ l(
|
@@ -890,7 +890,7 @@ const Tt = ({
|
|
890
890
|
}
|
891
891
|
)
|
892
892
|
] }),
|
893
|
-
|
893
|
+
/* @__PURE__ */ N(
|
894
894
|
U,
|
895
895
|
{
|
896
896
|
header: P.SETTINGS_CACHING.TITLE,
|
@@ -902,7 +902,7 @@ const Tt = ({
|
|
902
902
|
{
|
903
903
|
className: "mt-2",
|
904
904
|
noBorder: !0,
|
905
|
-
label: "Enable
|
905
|
+
label: "Enable Assets Caching",
|
906
906
|
name: "enable-service-worker",
|
907
907
|
onChange: B,
|
908
908
|
checked: X
|
@@ -917,7 +917,7 @@ const Tt = ({
|
|
917
917
|
header: P.SETTINGS_PROMPTS.TITLE,
|
918
918
|
className: "prose-dark dark:prose-lighter mt-4",
|
919
919
|
children: [
|
920
|
-
/* @__PURE__ */ l("p", { className: "text-sm", children:
|
920
|
+
/* @__PURE__ */ l("p", { className: "text-sm", children: Ae }),
|
921
921
|
m.prompts && m.prompts.slice(0, 3).map((n) => /* @__PURE__ */ N(
|
922
922
|
U,
|
923
923
|
{
|
@@ -990,5 +990,5 @@ const Tt = ({
|
|
990
990
|
) : null;
|
991
991
|
};
|
992
992
|
export {
|
993
|
-
|
993
|
+
Et as SettingsPanel
|
994
994
|
};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
2
|
-
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.
|
3
|
-
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.
|
2
|
+
import { n as f, USAGE_TITLE as U, S as T, renderDataAsList as v, CARDS as n, L as E, j as L, C as S, pluralize as i } from "./index.MQ7KY0fz.js";
|
3
|
+
import { i as M, useUserChatStats as _, useChatsUsage as D, rr as z } from "./App.P5J8tU9o.js";
|
4
4
|
import { useState as O, Suspense as P, lazy as j } from "react";
|
5
5
|
const s = [0, 3, 6, 9], G = j(() => import(
|
6
6
|
/* webpackChunkName: "LazyChart" */
|
7
|
-
"./Chart.
|
7
|
+
"./Chart.KIoSyz6Q.js"
|
8
8
|
)), w = ({
|
9
9
|
open: m,
|
10
10
|
onOpenChange: I
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { getDefaultExportFromCjs as kn } from "./App.
|
2
|
-
import { visit as In } from "./useMarkdown.
|
3
|
-
import { toText as Cn } from "./index.
|
1
|
+
import { getDefaultExportFromCjs as kn } from "./App.P5J8tU9o.js";
|
2
|
+
import { visit as In } from "./useMarkdown.zScU9ur4.js";
|
3
|
+
import { toText as Cn } from "./index.C938radi.js";
|
4
4
|
function xn(e) {
|
5
5
|
const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
|
6
6
|
className: "type",
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.
|
2
|
-
import { toText as Ca } from "./index.
|
1
|
+
import { find as Aa, parse as Ft, parse$1 as Ht, normalize as Pt, html as Ta, svg as Ba, visitParents as Na, SKIP as Da } from "./useMarkdown.zScU9ur4.js";
|
2
|
+
import { toText as Ca } from "./index.C938radi.js";
|
3
3
|
const Gt = /[#.]/g;
|
4
4
|
function qa(r, e) {
|
5
5
|
const t = r || "", a = {};
|