@versini/sassysaint 5.1.5 → 5.1.6
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/{App.BoAAv1ef.js → App.68xrhTIC.js} +2 -2
- package/dist/chunks/{LazyHeader.CdRVwfYZ.js → LazyHeader.DPlhG-1q.js} +191 -191
- package/dist/chunks/{LazyMarkdownWithExtra.BRbTgvZL.js → LazyMarkdownWithExtra.o-qNkWIb.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.cqGNC6SU.js → LazyMessageAssistant.CkSUdQWN.js} +3 -3
- package/dist/chunks/{index.CYw7R4Su.js → index.DaWYWXXP.js} +3 -3
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as v, Fragment as H, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { AppContext as j, TagsContext as q, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as Z, ROLE_USER as Y, rn as J, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.
|
|
2
|
+
import { AppContext as j, TagsContext as q, LOCAL_STORAGE_PREFIX as M, b as _e, j as G, R as B, TAG_CONTENT as O, TAGS as C, isLastMessageFromRole as de, CANCEL as Ne, CLEAR as we, ACTION_RESET as le, ACTION_TOGGLE_TAG as ce, ROLE_ASSISTANT as I, ROLE_INTERNAL as Z, ROLE_USER as Y, rn as J, ROLE_SYSTEM as Ee, ROLE_HIDDEN as Ce, DEFAULT_AI_ENGINE as z, STATS_SEPARATOR as te, ACTION_MODEL as ge, ACTION_MESSAGE as L, ACTION_RESET_TAGS as ue, TYPE_QUESTION as Ie, SEND as Re, ACTION_STREAMING as me, ERROR_MESSAGE as Se, getMessageContaintWrapperClass as Ae, MessagesContainerHeader as Be, ACTION_SEARCH as Me, ACTION_SORT as Oe, ACTION_RESTORE as Le, ACTION_ENGINE as he, HistoryContext as $e, d as Ue, AppFooter as Ve, LOCAL_STORAGE_SEARCH as ze, LOCAL_STORAGE_SORT as De } from "./index.DaWYWXXP.js";
|
|
3
3
|
import { E as $, restCall as He, we as je, serviceCall as Pe, SERVICE_TYPES as Ge, f as Fe } from "./index.B6C-bgBL.js";
|
|
4
4
|
import S, { useContext as U, useRef as R, useEffect as E, useState as P, lazy as We, Suspense as re, useReducer as F } from "react";
|
|
5
5
|
import s from "clsx";
|
|
@@ -1095,7 +1095,7 @@ try {
|
|
|
1095
1095
|
const ne = We(
|
|
1096
1096
|
() => import(
|
|
1097
1097
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
1098
|
-
"./LazyMessageAssistant.
|
|
1098
|
+
"./LazyMessageAssistant.CkSUdQWN.js"
|
|
1099
1099
|
).then((e) => e.LazyMessageAssistant)
|
|
1100
1100
|
), Mt = () => {
|
|
1101
1101
|
const { state: e } = U(j);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as u, jsx as o, Fragment as x } from "react/jsx-runtime";
|
|
2
|
-
import { g as _, D as I, CARDS as y, renderDataAsList as Z, pluralize as ne, AppContext as Q, ABOUT_TITLE as qe, DEFAULT_AI_ENGINE as
|
|
2
|
+
import { g as _, D as I, CARDS as y, renderDataAsList as Z, pluralize as ne, AppContext as Q, ABOUT_TITLE as qe, DEFAULT_AI_ENGINE as re, numberFormatter as Qe, durationFormatter as Me, NA as et, ROLE_ASSISTANT as tt, extractAverage as at, GPT4_MAX_TOKENS as ot, rn as j, STATS as Le, b as pe, j as $, R as z, HistoryContext as Be, LOCAL_STORAGE_PREFIX as V, LOCAL_STORAGE_SORT as rt, O as F, ACTION_RESET as nt, ACTION_RESTORE as it, truncate as st, ACTION_SORT as se, LOCAL_STORAGE_SEARCH as lt, me as ct, ACTION_SEARCH as dt, HISTORY_TITLE as ut, ENGINE_OPENAI as le, ENGINE_ANTHROPIC as ce, ACTION_ENGINE as ht, getCurrentGeoLocation as mt, LOCAL_STORAGE_TAG_SUMMARIZE as ye, LOCAL_STORAGE_TAG_PROOFREAD as ke, LOCAL_STORAGE_TAG_REPHRASE as Te, TAG_CONTENT as de, TAGS as ue, LOCAL_STORAGE_CHAT_DETAILS as gt, G as pt, v as Ce, PROFILE_TITLE as ft, LOG_OUT as Ne } from "./index.DaWYWXXP.js";
|
|
3
3
|
import * as me from "react";
|
|
4
|
-
import
|
|
5
|
-
import { serviceCall as B, SERVICE_TYPES as O, E as G, f as S, ce as Tt, ge as Ct, me as
|
|
4
|
+
import ie, { forwardRef as Oe, useState as E, useRef as J, useContext as M, useEffect as H, Suspense as bt, lazy as vt, useId as yt, useMemo as kt } from "react";
|
|
5
|
+
import { serviceCall as B, SERVICE_TYPES as O, E as G, f as S, ce as Tt, ge as Ct, me as he, ie as R, ue as Nt, be as Et, he as wt, we as Ee } from "./index.B6C-bgBL.js";
|
|
6
6
|
import f from "clsx";
|
|
7
7
|
import { useFloatingTree as He, useFloatingNodeId as xt, useListItem as De, useFloating as It, offset as St, flip as _t, shift as At, autoUpdate as Rt, useClick as Mt, useRole as Lt, useDismiss as Bt, useListNavigation as Ot, useTypeahead as Ht, useInteractions as Dt, useMergeRefs as Pe, FloatingNode as Pt, FloatingList as zt, FloatingPortal as Vt, FloatingFocusManager as Ft, FloatingTree as Gt } from "@floating-ui/react";
|
|
8
8
|
const Ut = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
spacing: a,
|
|
12
|
-
title:
|
|
13
|
-
monotone:
|
|
12
|
+
title: r,
|
|
13
|
+
monotone: n,
|
|
14
14
|
...i
|
|
15
15
|
}) => /* @__PURE__ */ u(
|
|
16
16
|
_,
|
|
@@ -20,13 +20,13 @@ const Ut = ({
|
|
|
20
20
|
viewBox: t,
|
|
21
21
|
className: e,
|
|
22
22
|
spacing: a,
|
|
23
|
-
title:
|
|
23
|
+
title: r || "Back",
|
|
24
24
|
...i,
|
|
25
25
|
children: [
|
|
26
26
|
/* @__PURE__ */ o(
|
|
27
27
|
"path",
|
|
28
28
|
{
|
|
29
|
-
opacity:
|
|
29
|
+
opacity: n ? "1" : "0.4",
|
|
30
30
|
d: "M288.4 93.4c2.9-17.4 19.4-29.2 36.9-26.3C431.3 84.9 512 177 512 288c0 123.7-100.3 224-224 224C177 512 84.9 431.3 67.1 325.3c-2.9-17.4 8.8-33.9 26.3-36.9s33.9 8.8 36.9 26.3C142.9 390.4 208.8 448 288 448c88.4 0 160-71.6 160-160c0-79.2-57.6-145.1-133.3-157.8c-17.4-2.9-29.2-19.4-26.3-36.9z"
|
|
31
31
|
}
|
|
32
32
|
),
|
|
@@ -37,8 +37,8 @@ const Ut = ({
|
|
|
37
37
|
className: e,
|
|
38
38
|
viewBox: t,
|
|
39
39
|
spacing: a,
|
|
40
|
-
title:
|
|
41
|
-
monotone:
|
|
40
|
+
title: r,
|
|
41
|
+
monotone: n,
|
|
42
42
|
...i
|
|
43
43
|
}) => /* @__PURE__ */ u(
|
|
44
44
|
_,
|
|
@@ -48,13 +48,13 @@ const Ut = ({
|
|
|
48
48
|
viewBox: t,
|
|
49
49
|
className: e,
|
|
50
50
|
spacing: a,
|
|
51
|
-
title:
|
|
51
|
+
title: r || "Chart",
|
|
52
52
|
...i,
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ o(
|
|
55
55
|
"path",
|
|
56
56
|
{
|
|
57
|
-
opacity:
|
|
57
|
+
opacity: n ? "1" : "0.4",
|
|
58
58
|
d: "M160 80c0-26.5 21.5-48 48-48h32c26.5 0 48 21.5 48 48V432c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V80z"
|
|
59
59
|
}
|
|
60
60
|
),
|
|
@@ -65,8 +65,8 @@ const Ut = ({
|
|
|
65
65
|
className: e,
|
|
66
66
|
viewBox: t,
|
|
67
67
|
spacing: a,
|
|
68
|
-
title:
|
|
69
|
-
monotone:
|
|
68
|
+
title: r,
|
|
69
|
+
monotone: n,
|
|
70
70
|
...i
|
|
71
71
|
}) => /* @__PURE__ */ u(
|
|
72
72
|
_,
|
|
@@ -76,13 +76,13 @@ const Ut = ({
|
|
|
76
76
|
viewBox: t,
|
|
77
77
|
className: e,
|
|
78
78
|
spacing: a,
|
|
79
|
-
title:
|
|
79
|
+
title: r || "Delete",
|
|
80
80
|
...i,
|
|
81
81
|
children: [
|
|
82
82
|
/* @__PURE__ */ o(
|
|
83
83
|
"path",
|
|
84
84
|
{
|
|
85
|
-
opacity:
|
|
85
|
+
opacity: n ? "1" : "0.4",
|
|
86
86
|
d: "M416 96H32V448c0 35.3 28.7 64 64 64H352c35.3 0 64-28.7 64-64V96zM144 176V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16zm96 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V176c0-8.8 7.2-16 16-16s16 7.2 16 16z"
|
|
87
87
|
}
|
|
88
88
|
),
|
|
@@ -93,8 +93,8 @@ const Ut = ({
|
|
|
93
93
|
className: e,
|
|
94
94
|
viewBox: t,
|
|
95
95
|
spacing: a,
|
|
96
|
-
title:
|
|
97
|
-
monotone:
|
|
96
|
+
title: r,
|
|
97
|
+
monotone: n,
|
|
98
98
|
...i
|
|
99
99
|
}) => /* @__PURE__ */ u(
|
|
100
100
|
_,
|
|
@@ -104,13 +104,13 @@ const Ut = ({
|
|
|
104
104
|
viewBox: t,
|
|
105
105
|
className: e,
|
|
106
106
|
spacing: a,
|
|
107
|
-
title:
|
|
107
|
+
title: r || "Edit",
|
|
108
108
|
...i,
|
|
109
109
|
children: [
|
|
110
110
|
/* @__PURE__ */ o(
|
|
111
111
|
"path",
|
|
112
112
|
{
|
|
113
|
-
opacity:
|
|
113
|
+
opacity: n ? "1" : "0.4",
|
|
114
114
|
d: "M0 160c0-53 43-96 96-96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32 14.3-32 32V416c0 17.7 14.3 32 32 32H352c17.7 0 32-14.3 32-32V320c0-17.7 14.3-32 32-32s32 14.3 32 32v96c0 53-43 96-96 96H96c-53 0-96-43-96-96V160z"
|
|
115
115
|
}
|
|
116
116
|
),
|
|
@@ -121,8 +121,8 @@ const Ut = ({
|
|
|
121
121
|
className: e,
|
|
122
122
|
viewBox: t,
|
|
123
123
|
spacing: a,
|
|
124
|
-
title:
|
|
125
|
-
monotone:
|
|
124
|
+
title: r,
|
|
125
|
+
monotone: n,
|
|
126
126
|
...i
|
|
127
127
|
}) => /* @__PURE__ */ u(
|
|
128
128
|
_,
|
|
@@ -132,13 +132,13 @@ const Ut = ({
|
|
|
132
132
|
viewBox: t,
|
|
133
133
|
className: e,
|
|
134
134
|
spacing: a,
|
|
135
|
-
title:
|
|
135
|
+
title: r || "History",
|
|
136
136
|
...i,
|
|
137
137
|
children: [
|
|
138
138
|
/* @__PURE__ */ o(
|
|
139
139
|
"path",
|
|
140
140
|
{
|
|
141
|
-
opacity:
|
|
141
|
+
opacity: n ? "1" : "0.4",
|
|
142
142
|
d: "M120.2 120.2C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8z"
|
|
143
143
|
}
|
|
144
144
|
),
|
|
@@ -149,8 +149,8 @@ const Ut = ({
|
|
|
149
149
|
className: e,
|
|
150
150
|
viewBox: t,
|
|
151
151
|
spacing: a,
|
|
152
|
-
title:
|
|
153
|
-
monotone:
|
|
152
|
+
title: r,
|
|
153
|
+
monotone: n,
|
|
154
154
|
...i
|
|
155
155
|
}) => /* @__PURE__ */ u(
|
|
156
156
|
_,
|
|
@@ -160,7 +160,7 @@ const Ut = ({
|
|
|
160
160
|
viewBox: t,
|
|
161
161
|
className: e,
|
|
162
162
|
spacing: a,
|
|
163
|
-
title:
|
|
163
|
+
title: r || "Info",
|
|
164
164
|
...i,
|
|
165
165
|
children: [
|
|
166
166
|
/* @__PURE__ */ o(
|
|
@@ -177,8 +177,8 @@ const Ut = ({
|
|
|
177
177
|
className: e,
|
|
178
178
|
viewBox: t,
|
|
179
179
|
spacing: a,
|
|
180
|
-
title:
|
|
181
|
-
monotone:
|
|
180
|
+
title: r,
|
|
181
|
+
monotone: n,
|
|
182
182
|
...i
|
|
183
183
|
}) => /* @__PURE__ */ u(
|
|
184
184
|
_,
|
|
@@ -188,7 +188,7 @@ const Ut = ({
|
|
|
188
188
|
viewBox: t,
|
|
189
189
|
className: e,
|
|
190
190
|
spacing: a,
|
|
191
|
-
title:
|
|
191
|
+
title: r || "Profile",
|
|
192
192
|
...i,
|
|
193
193
|
children: [
|
|
194
194
|
/* @__PURE__ */ o(
|
|
@@ -205,8 +205,8 @@ const Ut = ({
|
|
|
205
205
|
className: e,
|
|
206
206
|
viewBox: t,
|
|
207
207
|
spacing: a,
|
|
208
|
-
title:
|
|
209
|
-
monotone:
|
|
208
|
+
title: r,
|
|
209
|
+
monotone: n,
|
|
210
210
|
...i
|
|
211
211
|
}) => /* @__PURE__ */ u(
|
|
212
212
|
_,
|
|
@@ -216,13 +216,13 @@ const Ut = ({
|
|
|
216
216
|
viewBox: t,
|
|
217
217
|
className: e,
|
|
218
218
|
spacing: a,
|
|
219
|
-
title:
|
|
219
|
+
title: r || "Restore",
|
|
220
220
|
...i,
|
|
221
221
|
children: [
|
|
222
222
|
/* @__PURE__ */ o(
|
|
223
223
|
"path",
|
|
224
224
|
{
|
|
225
|
-
opacity:
|
|
225
|
+
opacity: n ? "1" : "0.4",
|
|
226
226
|
d: "M208 64H432c8.8 0 16 7.2 16 16V304c0 8.8-7.2 16-16 16H416v64h16c44.2 0 80-35.8 80-80V80c0-44.2-35.8-80-80-80H208c-44.2 0-80 35.8-80 80V96h64V80c0-8.8 7.2-16 16-16z"
|
|
227
227
|
}
|
|
228
228
|
),
|
|
@@ -233,8 +233,8 @@ const Ut = ({
|
|
|
233
233
|
className: e,
|
|
234
234
|
viewBox: t,
|
|
235
235
|
spacing: a,
|
|
236
|
-
title:
|
|
237
|
-
monotone:
|
|
236
|
+
title: r,
|
|
237
|
+
monotone: n,
|
|
238
238
|
...i
|
|
239
239
|
}) => /* @__PURE__ */ o(
|
|
240
240
|
_,
|
|
@@ -244,7 +244,7 @@ const Ut = ({
|
|
|
244
244
|
viewBox: t,
|
|
245
245
|
className: e,
|
|
246
246
|
spacing: a,
|
|
247
|
-
title:
|
|
247
|
+
title: r || "Settings",
|
|
248
248
|
...i,
|
|
249
249
|
children: /* @__PURE__ */ o("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
|
|
250
250
|
}
|
|
@@ -273,8 +273,8 @@ const Ut = ({
|
|
|
273
273
|
trigger: e,
|
|
274
274
|
children: t,
|
|
275
275
|
label: a = "Open menu",
|
|
276
|
-
defaultPlacement:
|
|
277
|
-
onOpenChange:
|
|
276
|
+
defaultPlacement: r = "bottom-start",
|
|
277
|
+
onOpenChange: n,
|
|
278
278
|
spacing: i,
|
|
279
279
|
mode: s = "system",
|
|
280
280
|
focusMode: c = "system",
|
|
@@ -284,9 +284,9 @@ const Ut = ({
|
|
|
284
284
|
nodeId: w,
|
|
285
285
|
open: h,
|
|
286
286
|
onOpenChange: (K) => {
|
|
287
|
-
l(K),
|
|
287
|
+
l(K), n == null || n(K);
|
|
288
288
|
},
|
|
289
|
-
placement:
|
|
289
|
+
placement: r,
|
|
290
290
|
strategy: "fixed",
|
|
291
291
|
middleware: [St({ mainAxis: 10 }), _t(), At()],
|
|
292
292
|
whileElementsMounted: Rt
|
|
@@ -309,7 +309,7 @@ const Ut = ({
|
|
|
309
309
|
focusMode: c,
|
|
310
310
|
mode: s,
|
|
311
311
|
spacing: i
|
|
312
|
-
} : {}, Je =
|
|
312
|
+
} : {}, Je = ie.cloneElement(e, {
|
|
313
313
|
...Ze,
|
|
314
314
|
"aria-label": a,
|
|
315
315
|
"data-open": h ? "" : void 0,
|
|
@@ -325,12 +325,12 @@ const Ut = ({
|
|
|
325
325
|
if (!N)
|
|
326
326
|
return;
|
|
327
327
|
function K() {
|
|
328
|
-
l(!1),
|
|
328
|
+
l(!1), n == null || n(!1);
|
|
329
329
|
}
|
|
330
330
|
return N.events.on("click", K), () => {
|
|
331
331
|
N.events.off("click", K);
|
|
332
332
|
};
|
|
333
|
-
}, [N,
|
|
333
|
+
}, [N, n]), H(() => {
|
|
334
334
|
h && N && N.events.emit("menuopen", { nodeId: w });
|
|
335
335
|
}, [N, h, w]), /* @__PURE__ */ u(Pt, { id: w, children: [
|
|
336
336
|
Je,
|
|
@@ -370,13 +370,13 @@ const Ut = ({
|
|
|
370
370
|
), Ve = Oe((e, t) => /* @__PURE__ */ o(Gt, { children: /* @__PURE__ */ o(ze, { ...e, ref: t }) }));
|
|
371
371
|
Ve.displayName = "Menu";
|
|
372
372
|
ze.displayName = "MenuComponent";
|
|
373
|
-
const P = me.forwardRef(({ label: e, disabled: t, icon: a, ...
|
|
373
|
+
const P = me.forwardRef(({ label: e, disabled: t, icon: a, ...r }, n) => {
|
|
374
374
|
const i = me.useContext(ge), s = De({ label: t ? null : e }), c = He();
|
|
375
375
|
return /* @__PURE__ */ u(
|
|
376
376
|
"button",
|
|
377
377
|
{
|
|
378
|
-
...
|
|
379
|
-
ref: Pe([s.ref,
|
|
378
|
+
...r,
|
|
379
|
+
ref: Pe([s.ref, n]),
|
|
380
380
|
role: "menuitem",
|
|
381
381
|
className: "m-0 flex w-full rounded-md border border-transparent bg-none px-3 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
|
|
382
382
|
tabIndex: 0,
|
|
@@ -384,11 +384,11 @@ const P = me.forwardRef(({ label: e, disabled: t, icon: a, ...n }, r) => {
|
|
|
384
384
|
...i.getItemProps({
|
|
385
385
|
onClick(m) {
|
|
386
386
|
var d;
|
|
387
|
-
(d =
|
|
387
|
+
(d = r.onClick) == null || d.call(r, m), c == null || c.events.emit("click");
|
|
388
388
|
},
|
|
389
389
|
onFocus(m) {
|
|
390
390
|
var d;
|
|
391
|
-
(d =
|
|
391
|
+
(d = r.onFocus) == null || d.call(r, m), i.setHasFocusInside(!0);
|
|
392
392
|
}
|
|
393
393
|
}),
|
|
394
394
|
children: [
|
|
@@ -442,8 +442,8 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
442
442
|
type: e,
|
|
443
443
|
size: t,
|
|
444
444
|
labelRight: a,
|
|
445
|
-
labelLeft:
|
|
446
|
-
align:
|
|
445
|
+
labelLeft: r,
|
|
446
|
+
align: n
|
|
447
447
|
}) => {
|
|
448
448
|
const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
|
|
449
449
|
switch (e) {
|
|
@@ -461,26 +461,26 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
461
461
|
});
|
|
462
462
|
case fe:
|
|
463
463
|
return f("inline-flex items-center", {
|
|
464
|
-
"justify-center":
|
|
465
|
-
"justify-start":
|
|
466
|
-
"justify-end":
|
|
467
|
-
"h-6 w-6 p-0": t === "small" && !(a ||
|
|
468
|
-
"h-6 px-4 text-sm font-medium": t === "small" && (a ||
|
|
469
|
-
"h-8 w-8 p-1": t === "medium" && !(a ||
|
|
470
|
-
"h-8 px-4 text-base font-medium": t === "medium" && (a ||
|
|
471
|
-
"h-12 w-12 p-2": t === "large" && !(a ||
|
|
472
|
-
"h-12 px-4 text-lg font-medium": t === "large" && (a ||
|
|
464
|
+
"justify-center": n === "center",
|
|
465
|
+
"justify-start": n === "left",
|
|
466
|
+
"justify-end": n === "right",
|
|
467
|
+
"h-6 w-6 p-0": t === "small" && !(a || r),
|
|
468
|
+
"h-6 px-4 text-sm font-medium": t === "small" && (a || r),
|
|
469
|
+
"h-8 w-8 p-1": t === "medium" && !(a || r),
|
|
470
|
+
"h-8 px-4 text-base font-medium": t === "medium" && (a || r),
|
|
471
|
+
"h-12 w-12 p-2": t === "large" && !(a || r),
|
|
472
|
+
"h-12 px-4 text-lg font-medium": t === "large" && (a || r)
|
|
473
473
|
});
|
|
474
474
|
}
|
|
475
475
|
}, aa = ({
|
|
476
476
|
mode: e,
|
|
477
477
|
noBackground: t,
|
|
478
478
|
noTruncate: a,
|
|
479
|
-
variant:
|
|
479
|
+
variant: r
|
|
480
480
|
}) => {
|
|
481
481
|
if (t)
|
|
482
482
|
return "not-prose rounded-full";
|
|
483
|
-
if (
|
|
483
|
+
if (r === "primary")
|
|
484
484
|
return f("not-prose rounded-full", {
|
|
485
485
|
truncate: !a,
|
|
486
486
|
"bg-action-dark text-copy-light": e === "dark",
|
|
@@ -488,7 +488,7 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
488
488
|
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "system",
|
|
489
489
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
|
|
490
490
|
});
|
|
491
|
-
if (
|
|
491
|
+
if (r === "secondary")
|
|
492
492
|
return f("not-prose rounded-full", {
|
|
493
493
|
truncate: !a,
|
|
494
494
|
"bg-action-dark text-copy-light": e === "light",
|
|
@@ -496,7 +496,7 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
496
496
|
"bg-action-dark text-copy-light dark:bg-action-light dark:text-copy-lighter": e === "alt-system",
|
|
497
497
|
"bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
|
|
498
498
|
});
|
|
499
|
-
if (
|
|
499
|
+
if (r === "danger")
|
|
500
500
|
return f("not-prose rounded-full", {
|
|
501
501
|
truncate: !a,
|
|
502
502
|
"bg-action-danger-dark text-copy-light": e === "dark",
|
|
@@ -532,7 +532,7 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
532
532
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
533
533
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
534
534
|
});
|
|
535
|
-
},
|
|
535
|
+
}, ra = ({
|
|
536
536
|
mode: e,
|
|
537
537
|
disabled: t,
|
|
538
538
|
variant: a
|
|
@@ -560,7 +560,7 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
560
560
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
561
561
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
562
562
|
});
|
|
563
|
-
},
|
|
563
|
+
}, na = ({
|
|
564
564
|
mode: e,
|
|
565
565
|
noBorder: t,
|
|
566
566
|
variant: a
|
|
@@ -597,8 +597,8 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
597
597
|
type: e,
|
|
598
598
|
className: t,
|
|
599
599
|
raw: a,
|
|
600
|
-
mode:
|
|
601
|
-
focusMode:
|
|
600
|
+
mode: r,
|
|
601
|
+
focusMode: n,
|
|
602
602
|
disabled: i,
|
|
603
603
|
fullWidth: s,
|
|
604
604
|
size: c,
|
|
@@ -614,40 +614,40 @@ const Ie = "av-messagebox", Se = "av-panel", _e = "av-button", qt = (e) => {
|
|
|
614
614
|
_e,
|
|
615
615
|
t,
|
|
616
616
|
qt(l),
|
|
617
|
-
aa({ mode:
|
|
617
|
+
aa({ mode: r, variant: v, noBackground: g, noTruncate: b }),
|
|
618
618
|
ta({ type: e, size: c, labelRight: d, labelLeft: h, align: T }),
|
|
619
|
-
|
|
620
|
-
ia({ focusMode:
|
|
621
|
-
oa({ mode:
|
|
622
|
-
|
|
619
|
+
na({ mode: r, variant: v, noBorder: m }),
|
|
620
|
+
ia({ focusMode: n }),
|
|
621
|
+
oa({ mode: r, variant: v, disabled: i }),
|
|
622
|
+
ra({ mode: r, variant: v, disabled: i }),
|
|
623
623
|
{
|
|
624
624
|
"w-full": s,
|
|
625
625
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
626
626
|
}
|
|
627
627
|
)), sa = (e, t, a) => {
|
|
628
|
-
var
|
|
629
|
-
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((
|
|
630
|
-
}, be =
|
|
631
|
-
const { onClick: a, noInternalClick:
|
|
628
|
+
var r;
|
|
629
|
+
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((r = e == null ? void 0 : e.currentTarget) == null ? void 0 : r.focus) == "function" && e.currentTarget.focus(), typeof a == "function" && a(e);
|
|
630
|
+
}, be = ie.forwardRef((e, t) => {
|
|
631
|
+
const { onClick: a, noInternalClick: r = !1, ...n } = e;
|
|
632
632
|
return /* @__PURE__ */ o(
|
|
633
633
|
"button",
|
|
634
634
|
{
|
|
635
635
|
ref: t,
|
|
636
636
|
onClick: (i) => {
|
|
637
|
-
sa(i,
|
|
637
|
+
sa(i, r, a);
|
|
638
638
|
},
|
|
639
|
-
...
|
|
639
|
+
...n
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
642
|
});
|
|
643
643
|
be.displayName = "BaseButton";
|
|
644
|
-
const Ge =
|
|
644
|
+
const Ge = ie.forwardRef(
|
|
645
645
|
({
|
|
646
646
|
children: e,
|
|
647
647
|
disabled: t = !1,
|
|
648
648
|
mode: a = "system",
|
|
649
|
-
focusMode:
|
|
650
|
-
fullWidth:
|
|
649
|
+
focusMode: r = "system",
|
|
650
|
+
fullWidth: n = !1,
|
|
651
651
|
className: i,
|
|
652
652
|
type: s = "button",
|
|
653
653
|
raw: c = !1,
|
|
@@ -665,8 +665,8 @@ const Ge = re.forwardRef(
|
|
|
665
665
|
const N = Fe({
|
|
666
666
|
type: fe,
|
|
667
667
|
mode: a,
|
|
668
|
-
focusMode:
|
|
669
|
-
fullWidth:
|
|
668
|
+
focusMode: r,
|
|
669
|
+
fullWidth: n,
|
|
670
670
|
disabled: t,
|
|
671
671
|
raw: c,
|
|
672
672
|
className: i,
|
|
@@ -715,13 +715,13 @@ try {
|
|
|
715
715
|
});
|
|
716
716
|
} catch {
|
|
717
717
|
}
|
|
718
|
-
const la =
|
|
718
|
+
const la = ie.forwardRef(
|
|
719
719
|
({
|
|
720
720
|
children: e,
|
|
721
721
|
disabled: t = !1,
|
|
722
722
|
mode: a = "system",
|
|
723
|
-
focusMode:
|
|
724
|
-
fullWidth:
|
|
723
|
+
focusMode: r = "system",
|
|
724
|
+
fullWidth: n = !1,
|
|
725
725
|
className: i,
|
|
726
726
|
type: s = "button",
|
|
727
727
|
raw: c = !1,
|
|
@@ -740,8 +740,8 @@ const la = re.forwardRef(
|
|
|
740
740
|
const w = Fe({
|
|
741
741
|
type: fe,
|
|
742
742
|
mode: a,
|
|
743
|
-
focusMode:
|
|
744
|
-
fullWidth:
|
|
743
|
+
focusMode: r,
|
|
744
|
+
fullWidth: n,
|
|
745
745
|
disabled: t,
|
|
746
746
|
raw: c,
|
|
747
747
|
className: i,
|
|
@@ -806,8 +806,8 @@ const ca = (e) => {
|
|
|
806
806
|
children: e,
|
|
807
807
|
fill: t,
|
|
808
808
|
viewBox: a,
|
|
809
|
-
className:
|
|
810
|
-
defaultViewBox:
|
|
809
|
+
className: r,
|
|
810
|
+
defaultViewBox: n,
|
|
811
811
|
defaultClassName: i,
|
|
812
812
|
spacing: s,
|
|
813
813
|
title: c,
|
|
@@ -816,7 +816,7 @@ const ca = (e) => {
|
|
|
816
816
|
}) => {
|
|
817
817
|
const h = ca(s), l = f(
|
|
818
818
|
h,
|
|
819
|
-
|
|
819
|
+
r || i
|
|
820
820
|
);
|
|
821
821
|
return /* @__PURE__ */ u(x, { children: [
|
|
822
822
|
/* @__PURE__ */ o(
|
|
@@ -824,7 +824,7 @@ const ca = (e) => {
|
|
|
824
824
|
{
|
|
825
825
|
xmlns: "http://www.w3.org/2000/svg",
|
|
826
826
|
className: l,
|
|
827
|
-
viewBox: a ||
|
|
827
|
+
viewBox: a || n,
|
|
828
828
|
fill: t || "currentColor",
|
|
829
829
|
role: "img",
|
|
830
830
|
"aria-hidden": !m,
|
|
@@ -853,8 +853,8 @@ const ua = ({
|
|
|
853
853
|
className: e,
|
|
854
854
|
viewBox: t,
|
|
855
855
|
spacing: a,
|
|
856
|
-
title:
|
|
857
|
-
monotone:
|
|
856
|
+
title: r,
|
|
857
|
+
monotone: n,
|
|
858
858
|
...i
|
|
859
859
|
}) => /* @__PURE__ */ o(
|
|
860
860
|
da,
|
|
@@ -864,7 +864,7 @@ const ua = ({
|
|
|
864
864
|
viewBox: t,
|
|
865
865
|
className: e,
|
|
866
866
|
spacing: a,
|
|
867
|
-
title:
|
|
867
|
+
title: r || "Close",
|
|
868
868
|
...i,
|
|
869
869
|
children: /* @__PURE__ */ o("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256l105.3-105.4z" })
|
|
870
870
|
}
|
|
@@ -910,8 +910,8 @@ const X = "panel", oe = "messagebox", ha = ({
|
|
|
910
910
|
open: e,
|
|
911
911
|
onOpenChange: t,
|
|
912
912
|
title: a,
|
|
913
|
-
children:
|
|
914
|
-
footer:
|
|
913
|
+
children: r,
|
|
914
|
+
footer: n,
|
|
915
915
|
borderMode: i = "light",
|
|
916
916
|
kind: s = X,
|
|
917
917
|
className: c
|
|
@@ -939,24 +939,24 @@ const X = "panel", oe = "messagebox", ha = ({
|
|
|
939
939
|
),
|
|
940
940
|
/* @__PURE__ */ o(ba, { className: d.header, children: a })
|
|
941
941
|
] }),
|
|
942
|
-
/* @__PURE__ */ o(fa, { className: d.content, children:
|
|
943
|
-
|
|
942
|
+
/* @__PURE__ */ o(fa, { className: d.content, children: r }),
|
|
943
|
+
n && /* @__PURE__ */ o("div", { className: d.footer, children: n })
|
|
944
944
|
] }) }) });
|
|
945
945
|
};
|
|
946
946
|
function q(e) {
|
|
947
947
|
return yt();
|
|
948
948
|
}
|
|
949
949
|
const va = ({ stats: e }) => {
|
|
950
|
-
const t = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "",
|
|
950
|
+
const t = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", r = (e == null ? void 0 : e.models) || [], n = q(), i = q();
|
|
951
951
|
return /* @__PURE__ */ u(x, { children: [
|
|
952
952
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
953
953
|
I,
|
|
954
954
|
{
|
|
955
955
|
header: y.ABOUT.TITLE_CLIENT,
|
|
956
956
|
className: "prose-dark dark:prose-lighter",
|
|
957
|
-
children: Z(
|
|
958
|
-
[y.ABOUT.VERSION]: "5.0.
|
|
959
|
-
[y.ABOUT.BUILD_TIMESTAMP]: "10/03/2024
|
|
957
|
+
children: Z(n, {
|
|
958
|
+
[y.ABOUT.VERSION]: "5.0.1",
|
|
959
|
+
[y.ABOUT.BUILD_TIMESTAMP]: "10/03/2024 12:40 PM EDT"
|
|
960
960
|
})
|
|
961
961
|
}
|
|
962
962
|
) }),
|
|
@@ -967,7 +967,7 @@ const va = ({ stats: e }) => {
|
|
|
967
967
|
className: "prose-dark dark:prose-lighter",
|
|
968
968
|
children: Z(i, {
|
|
969
969
|
[y.ABOUT.VERSION]: a,
|
|
970
|
-
[ne(y.ABOUT.ENGINE,
|
|
970
|
+
[ne(y.ABOUT.ENGINE, r.length)]: /* @__PURE__ */ o(x, { children: r.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
|
|
971
971
|
[ne(y.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(x, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
|
|
972
972
|
})
|
|
973
973
|
}
|
|
@@ -984,8 +984,8 @@ const va = ({ stats: e }) => {
|
|
|
984
984
|
return et;
|
|
985
985
|
const t = e.filter(
|
|
986
986
|
(a) => {
|
|
987
|
-
var
|
|
988
|
-
return ((
|
|
987
|
+
var r, n;
|
|
988
|
+
return ((r = a == null ? void 0 : a.message) == null ? void 0 : r.role) === tt && typeof ((n = a == null ? void 0 : a.message) == null ? void 0 : n.processingTime) == "number";
|
|
989
989
|
}
|
|
990
990
|
).map((a) => a.message.processingTime);
|
|
991
991
|
return at({
|
|
@@ -996,17 +996,17 @@ const va = ({ stats: e }) => {
|
|
|
996
996
|
isAuthenticated: e,
|
|
997
997
|
stats: t
|
|
998
998
|
}) => {
|
|
999
|
-
const { state: a } = M(Q),
|
|
999
|
+
const { state: a } = M(Q), r = ot - Number(a == null ? void 0 : a.usage), n = q(), i = q();
|
|
1000
1000
|
return e ? /* @__PURE__ */ u(x, { children: [
|
|
1001
1001
|
a && a.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1002
1002
|
I,
|
|
1003
1003
|
{
|
|
1004
1004
|
header: y.CURRENT_STATISTICS.TITLE,
|
|
1005
1005
|
className: "prose-dark dark:prose-lighter",
|
|
1006
|
-
children: Z(
|
|
1007
|
-
[y.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) ||
|
|
1006
|
+
children: Z(n, {
|
|
1007
|
+
[y.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) || re,
|
|
1008
1008
|
[y.CURRENT_STATISTICS.TOKENS_USED]: a == null ? void 0 : a.usage,
|
|
1009
|
-
[y.CURRENT_STATISTICS.REMAINING_TOKENS]: Qe.format(
|
|
1009
|
+
[y.CURRENT_STATISTICS.REMAINING_TOKENS]: Qe.format(r),
|
|
1010
1010
|
[y.CURRENT_STATISTICS.PROCESSING_TIME]: Ta(a == null ? void 0 : a.messages)
|
|
1011
1011
|
})
|
|
1012
1012
|
}
|
|
@@ -1029,10 +1029,10 @@ const va = ({ stats: e }) => {
|
|
|
1029
1029
|
open: e,
|
|
1030
1030
|
onOpenChange: t
|
|
1031
1031
|
}) => {
|
|
1032
|
-
const [a,
|
|
1032
|
+
const [a, r] = E({
|
|
1033
1033
|
averageProcessingTimes: 0,
|
|
1034
1034
|
totalChats: 0
|
|
1035
|
-
}), { isAuthenticated:
|
|
1035
|
+
}), { isAuthenticated: n, getAccessToken: i, user: s } = j();
|
|
1036
1036
|
return H(() => {
|
|
1037
1037
|
!e || !s || (async () => {
|
|
1038
1038
|
try {
|
|
@@ -1043,24 +1043,24 @@ const va = ({ stats: e }) => {
|
|
|
1043
1043
|
userId: s.username
|
|
1044
1044
|
}
|
|
1045
1045
|
});
|
|
1046
|
-
c.status === 200 &&
|
|
1046
|
+
c.status === 200 && r(c.data);
|
|
1047
1047
|
} catch {
|
|
1048
1048
|
}
|
|
1049
1049
|
})();
|
|
1050
|
-
}, [e, i, s]), /* @__PURE__ */ o(D, { open: e, onOpenChange: t, title: Le, children: /* @__PURE__ */ o(Ca, { isAuthenticated:
|
|
1050
|
+
}, [e, i, s]), /* @__PURE__ */ o(D, { open: e, onOpenChange: t, title: Le, children: /* @__PURE__ */ o(Ca, { isAuthenticated: n, stats: a }) });
|
|
1051
1051
|
}, Ue = ({
|
|
1052
1052
|
showConfirmation: e,
|
|
1053
1053
|
setShowConfirmation: t,
|
|
1054
1054
|
action: a,
|
|
1055
|
-
children:
|
|
1056
|
-
customStrings:
|
|
1055
|
+
children: r,
|
|
1056
|
+
customStrings: n
|
|
1057
1057
|
}) => /* @__PURE__ */ o(
|
|
1058
1058
|
D,
|
|
1059
1059
|
{
|
|
1060
1060
|
kind: "messagebox",
|
|
1061
1061
|
open: e,
|
|
1062
1062
|
onOpenChange: t,
|
|
1063
|
-
title:
|
|
1063
|
+
title: n.title,
|
|
1064
1064
|
footer: /* @__PURE__ */ u(pe, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1065
1065
|
/* @__PURE__ */ o($, { children: /* @__PURE__ */ o(
|
|
1066
1066
|
z,
|
|
@@ -1071,7 +1071,7 @@ const va = ({ stats: e }) => {
|
|
|
1071
1071
|
onClick: () => {
|
|
1072
1072
|
t(!1);
|
|
1073
1073
|
},
|
|
1074
|
-
children:
|
|
1074
|
+
children: n.cancelAction
|
|
1075
1075
|
}
|
|
1076
1076
|
) }),
|
|
1077
1077
|
/* @__PURE__ */ o($, { children: /* @__PURE__ */ o(
|
|
@@ -1083,44 +1083,44 @@ const va = ({ stats: e }) => {
|
|
|
1083
1083
|
onClick: () => {
|
|
1084
1084
|
t(!1), a();
|
|
1085
1085
|
},
|
|
1086
|
-
children:
|
|
1086
|
+
children: n.confirmAction
|
|
1087
1087
|
}
|
|
1088
1088
|
) })
|
|
1089
1089
|
] }),
|
|
1090
|
-
children:
|
|
1090
|
+
children: r
|
|
1091
1091
|
}
|
|
1092
1092
|
);
|
|
1093
1093
|
var Ea = typeof window < "u", wa = function(e, t) {
|
|
1094
1094
|
return Ea ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
1095
1095
|
}, xa = function(e, t) {
|
|
1096
|
-
var a = E(wa(e)),
|
|
1096
|
+
var a = E(wa(e)), r = a[0], n = a[1];
|
|
1097
1097
|
return H(function() {
|
|
1098
1098
|
var i = !0, s = window.matchMedia(e), c = function() {
|
|
1099
|
-
i &&
|
|
1099
|
+
i && n(!!s.matches);
|
|
1100
1100
|
};
|
|
1101
|
-
return s.addEventListener("change", c),
|
|
1101
|
+
return s.addEventListener("change", c), n(s.matches), function() {
|
|
1102
1102
|
i = !1, s.removeEventListener("change", c);
|
|
1103
1103
|
};
|
|
1104
|
-
}, [e]),
|
|
1104
|
+
}, [e]), r;
|
|
1105
1105
|
};
|
|
1106
|
-
const Ia = async (e, t, a,
|
|
1106
|
+
const Ia = async (e, t, a, r) => {
|
|
1107
1107
|
try {
|
|
1108
|
-
const
|
|
1109
|
-
accessToken:
|
|
1108
|
+
const n = await B({
|
|
1109
|
+
accessToken: r,
|
|
1110
1110
|
type: O.GET_CHAT,
|
|
1111
1111
|
params: {
|
|
1112
1112
|
id: e.id
|
|
1113
1113
|
}
|
|
1114
1114
|
});
|
|
1115
|
-
|
|
1116
|
-
type:
|
|
1115
|
+
n.status === 200 && (t({
|
|
1116
|
+
type: nt
|
|
1117
1117
|
}), t({
|
|
1118
1118
|
type: it,
|
|
1119
1119
|
payload: {
|
|
1120
1120
|
id: e.id,
|
|
1121
|
-
model:
|
|
1122
|
-
usage:
|
|
1123
|
-
messages:
|
|
1121
|
+
model: n.data.model,
|
|
1122
|
+
usage: n.data.usage,
|
|
1123
|
+
messages: n.data.messages
|
|
1124
1124
|
}
|
|
1125
1125
|
}), a(!1));
|
|
1126
1126
|
} catch {
|
|
@@ -1132,15 +1132,15 @@ const Ia = async (e, t, a, n) => {
|
|
|
1132
1132
|
filteredHistory: e,
|
|
1133
1133
|
setFilteredHistory: t,
|
|
1134
1134
|
dispatch: a,
|
|
1135
|
-
onOpenChange:
|
|
1135
|
+
onOpenChange: r
|
|
1136
1136
|
}) => {
|
|
1137
1137
|
var C;
|
|
1138
|
-
const { user:
|
|
1138
|
+
const { user: n, getAccessToken: i } = j(), s = J({
|
|
1139
1139
|
id: 0,
|
|
1140
1140
|
timestamp: "",
|
|
1141
1141
|
message: ""
|
|
1142
1142
|
}), [c, m] = E(!1), d = xa("(min-width: 480px)"), { state: h, dispatch: l } = M(Be), [, g] = G({
|
|
1143
|
-
key: V +
|
|
1143
|
+
key: V + rt,
|
|
1144
1144
|
initialValue: h.sortDirection
|
|
1145
1145
|
}), v = e.data.sort(
|
|
1146
1146
|
(p, k) => {
|
|
@@ -1160,7 +1160,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1160
1160
|
switch (h.sortDirection) {
|
|
1161
1161
|
case !1:
|
|
1162
1162
|
g(S.ASC), l({
|
|
1163
|
-
type:
|
|
1163
|
+
type: se,
|
|
1164
1164
|
payload: {
|
|
1165
1165
|
sortedCell: p,
|
|
1166
1166
|
sortDirection: S.ASC
|
|
@@ -1169,7 +1169,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1169
1169
|
break;
|
|
1170
1170
|
case S.ASC:
|
|
1171
1171
|
g(S.DESC), l({
|
|
1172
|
-
type:
|
|
1172
|
+
type: se,
|
|
1173
1173
|
payload: {
|
|
1174
1174
|
sortedCell: p,
|
|
1175
1175
|
sortDirection: S.DESC
|
|
@@ -1178,7 +1178,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1178
1178
|
break;
|
|
1179
1179
|
default:
|
|
1180
1180
|
g(S.ASC), l({
|
|
1181
|
-
type:
|
|
1181
|
+
type: se,
|
|
1182
1182
|
payload: {
|
|
1183
1183
|
sortedCell: p,
|
|
1184
1184
|
sortDirection: S.ASC
|
|
@@ -1200,7 +1200,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1200
1200
|
accessToken: await i(),
|
|
1201
1201
|
type: O.DELETE_CHAT,
|
|
1202
1202
|
params: {
|
|
1203
|
-
userId: (
|
|
1203
|
+
userId: (n == null ? void 0 : n.username) || "",
|
|
1204
1204
|
id: p.id
|
|
1205
1205
|
}
|
|
1206
1206
|
});
|
|
@@ -1231,7 +1231,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
),
|
|
1233
1233
|
/* @__PURE__ */ u(Tt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
|
|
1234
|
-
/* @__PURE__ */ o(Ct, { children: /* @__PURE__ */ u(
|
|
1234
|
+
/* @__PURE__ */ o(Ct, { children: /* @__PURE__ */ u(he, { children: [
|
|
1235
1235
|
d && /* @__PURE__ */ o(R, { className: "sr-only", children: "Row" }),
|
|
1236
1236
|
/* @__PURE__ */ o(
|
|
1237
1237
|
Nt,
|
|
@@ -1251,7 +1251,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1251
1251
|
] }) }),
|
|
1252
1252
|
/* @__PURE__ */ o(Et, { children: v.map((p, k) => {
|
|
1253
1253
|
var N;
|
|
1254
|
-
return ((N = p == null ? void 0 : p.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ u(
|
|
1254
|
+
return ((N = p == null ? void 0 : p.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ u(he, { children: [
|
|
1255
1255
|
d && /* @__PURE__ */ o(R, { children: k + 1 }),
|
|
1256
1256
|
/* @__PURE__ */ o(
|
|
1257
1257
|
R,
|
|
@@ -1275,7 +1275,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1275
1275
|
Ia(
|
|
1276
1276
|
p,
|
|
1277
1277
|
a,
|
|
1278
|
-
|
|
1278
|
+
r,
|
|
1279
1279
|
w
|
|
1280
1280
|
);
|
|
1281
1281
|
},
|
|
@@ -1301,7 +1301,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1301
1301
|
] }) })
|
|
1302
1302
|
] }, `${y.HISTORY.TITLE}-${p.id}-${k}`) : null;
|
|
1303
1303
|
}) }),
|
|
1304
|
-
/* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(
|
|
1304
|
+
/* @__PURE__ */ o(wt, { children: /* @__PURE__ */ o(he, { children: /* @__PURE__ */ o(R, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: ne(
|
|
1305
1305
|
`${e.data.length} chat`,
|
|
1306
1306
|
e.data.length
|
|
1307
1307
|
) }) }) }) })
|
|
@@ -1311,7 +1311,7 @@ const Ia = async (e, t, a, n) => {
|
|
|
1311
1311
|
function Re(e, t) {
|
|
1312
1312
|
return t ? e.filter(
|
|
1313
1313
|
(a) => a.messages.some(
|
|
1314
|
-
(
|
|
1314
|
+
(r) => r.content !== null && r.content.toLowerCase().includes(t.toLowerCase())
|
|
1315
1315
|
)
|
|
1316
1316
|
) : e;
|
|
1317
1317
|
}
|
|
@@ -1319,7 +1319,7 @@ const _a = ({
|
|
|
1319
1319
|
onOpenChange: e,
|
|
1320
1320
|
historyData: t
|
|
1321
1321
|
}) => {
|
|
1322
|
-
const { isAuthenticated: a } = j(),
|
|
1322
|
+
const { isAuthenticated: a } = j(), r = J(null), { dispatch: n } = M(Q), { state: i, dispatch: s } = M(Be), [, c] = G({
|
|
1323
1323
|
key: V + lt,
|
|
1324
1324
|
initialValue: i.searchString
|
|
1325
1325
|
}), m = kt(() => t, [t]), [d, h] = E({
|
|
@@ -1349,7 +1349,7 @@ const _a = ({
|
|
|
1349
1349
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: v, children: /* @__PURE__ */ o(
|
|
1350
1350
|
ct,
|
|
1351
1351
|
{
|
|
1352
|
-
ref:
|
|
1352
|
+
ref: r,
|
|
1353
1353
|
defaultValue: i.searchString,
|
|
1354
1354
|
focusMode: "light",
|
|
1355
1355
|
name: "Search",
|
|
@@ -1366,7 +1366,7 @@ const _a = ({
|
|
|
1366
1366
|
size: "small",
|
|
1367
1367
|
onClick: () => {
|
|
1368
1368
|
var b;
|
|
1369
|
-
l(""), (b =
|
|
1369
|
+
l(""), (b = r.current) != null && b.value && (r.current.value = "", r.current.focus());
|
|
1370
1370
|
},
|
|
1371
1371
|
children: "Reset"
|
|
1372
1372
|
}
|
|
@@ -1379,7 +1379,7 @@ const _a = ({
|
|
|
1379
1379
|
{
|
|
1380
1380
|
filteredHistory: d,
|
|
1381
1381
|
setFilteredHistory: h,
|
|
1382
|
-
dispatch:
|
|
1382
|
+
dispatch: n,
|
|
1383
1383
|
onOpenChange: e
|
|
1384
1384
|
}
|
|
1385
1385
|
) })
|
|
@@ -1467,25 +1467,25 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1467
1467
|
mode: e,
|
|
1468
1468
|
focusMode: t,
|
|
1469
1469
|
labelHidden: a,
|
|
1470
|
-
spacing:
|
|
1471
|
-
noBorder:
|
|
1470
|
+
spacing: r,
|
|
1471
|
+
noBorder: n
|
|
1472
1472
|
}) => ({
|
|
1473
1473
|
toggle: f(
|
|
1474
1474
|
La(),
|
|
1475
|
-
Da({ mode: e, noBorder:
|
|
1475
|
+
Da({ mode: e, noBorder: n }),
|
|
1476
1476
|
Ba({ focusMode: t }),
|
|
1477
1477
|
Ha(),
|
|
1478
1478
|
Oa()
|
|
1479
1479
|
),
|
|
1480
1480
|
label: Pa({ mode: e, labelHidden: a }),
|
|
1481
1481
|
input: "peer sr-only",
|
|
1482
|
-
wrapper: za({ spacing:
|
|
1482
|
+
wrapper: za({ spacing: r })
|
|
1483
1483
|
}), U = ({
|
|
1484
1484
|
checked: e = !1,
|
|
1485
1485
|
onChange: t,
|
|
1486
1486
|
label: a,
|
|
1487
|
-
labelHidden:
|
|
1488
|
-
name:
|
|
1487
|
+
labelHidden: r = !1,
|
|
1488
|
+
name: n,
|
|
1489
1489
|
mode: i = "system",
|
|
1490
1490
|
focusMode: s = "system",
|
|
1491
1491
|
spacing: c,
|
|
@@ -1494,7 +1494,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1494
1494
|
const d = Va({
|
|
1495
1495
|
mode: i,
|
|
1496
1496
|
focusMode: s,
|
|
1497
|
-
labelHidden:
|
|
1497
|
+
labelHidden: r,
|
|
1498
1498
|
spacing: c,
|
|
1499
1499
|
noBorder: m
|
|
1500
1500
|
}), h = (l) => {
|
|
@@ -1504,7 +1504,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1504
1504
|
/* @__PURE__ */ o(
|
|
1505
1505
|
"input",
|
|
1506
1506
|
{
|
|
1507
|
-
name:
|
|
1507
|
+
name: n,
|
|
1508
1508
|
checked: e,
|
|
1509
1509
|
type: "checkbox",
|
|
1510
1510
|
className: d.input,
|
|
@@ -1518,21 +1518,21 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1518
1518
|
open: e,
|
|
1519
1519
|
onOpenChange: t
|
|
1520
1520
|
}) => {
|
|
1521
|
-
const { dispatch: a } = M(Q), { getAccessToken:
|
|
1521
|
+
const { dispatch: a } = M(Q), { getAccessToken: r, user: n } = j(), [i, s] = E({
|
|
1522
1522
|
loaded: !1,
|
|
1523
|
-
|
|
1523
|
+
instructions: "",
|
|
1524
1524
|
loadingLocation: !1,
|
|
1525
1525
|
location: "",
|
|
1526
|
-
engine:
|
|
1526
|
+
engine: re
|
|
1527
1527
|
}), c = async (l) => {
|
|
1528
1528
|
l.preventDefault();
|
|
1529
1529
|
try {
|
|
1530
1530
|
await B({
|
|
1531
|
-
accessToken: await
|
|
1531
|
+
accessToken: await r(),
|
|
1532
1532
|
type: O.SET_USER_PREFERENCES,
|
|
1533
1533
|
params: {
|
|
1534
|
-
user:
|
|
1535
|
-
instructions: i.
|
|
1534
|
+
user: n == null ? void 0 : n.username,
|
|
1535
|
+
instructions: i.instructions,
|
|
1536
1536
|
location: i.location,
|
|
1537
1537
|
engine: i.engine
|
|
1538
1538
|
}
|
|
@@ -1552,7 +1552,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1552
1552
|
}));
|
|
1553
1553
|
try {
|
|
1554
1554
|
const l = Date.now(), g = await mt(), v = await B({
|
|
1555
|
-
accessToken: await
|
|
1555
|
+
accessToken: await r(),
|
|
1556
1556
|
type: O.GET_LOCATION,
|
|
1557
1557
|
params: {
|
|
1558
1558
|
latitude: g.latitude,
|
|
@@ -1579,45 +1579,45 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1579
1579
|
}, d = (l) => {
|
|
1580
1580
|
s((g) => ({
|
|
1581
1581
|
...g,
|
|
1582
|
-
engine: l ?
|
|
1582
|
+
engine: l ? le : ce
|
|
1583
1583
|
}));
|
|
1584
1584
|
}, h = (l) => {
|
|
1585
1585
|
s((g) => ({
|
|
1586
1586
|
...g,
|
|
1587
|
-
engine: l ?
|
|
1587
|
+
engine: l ? ce : le
|
|
1588
1588
|
}));
|
|
1589
1589
|
};
|
|
1590
1590
|
return H(() => {
|
|
1591
|
-
if (!e || !
|
|
1591
|
+
if (!e || !n) {
|
|
1592
1592
|
s({
|
|
1593
1593
|
loaded: !1,
|
|
1594
1594
|
loadingLocation: !1,
|
|
1595
|
-
|
|
1595
|
+
instructions: "",
|
|
1596
1596
|
location: "",
|
|
1597
|
-
engine:
|
|
1597
|
+
engine: re
|
|
1598
1598
|
});
|
|
1599
1599
|
return;
|
|
1600
1600
|
}
|
|
1601
1601
|
(async () => {
|
|
1602
1602
|
try {
|
|
1603
1603
|
const l = await B({
|
|
1604
|
-
accessToken: await
|
|
1604
|
+
accessToken: await r(),
|
|
1605
1605
|
type: O.GET_USER_PREFERENCES,
|
|
1606
1606
|
params: {
|
|
1607
|
-
user:
|
|
1607
|
+
user: n.username
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
1610
|
l.status === 200 && s((g) => ({
|
|
1611
1611
|
...g,
|
|
1612
1612
|
loaded: !0,
|
|
1613
|
-
|
|
1614
|
-
location: l.data.location,
|
|
1615
|
-
engine: l.data.engine
|
|
1613
|
+
instructions: l.data.instructions || "",
|
|
1614
|
+
location: l.data.location || "",
|
|
1615
|
+
engine: l.data.engine || re
|
|
1616
1616
|
}));
|
|
1617
1617
|
} catch {
|
|
1618
1618
|
}
|
|
1619
1619
|
})();
|
|
1620
|
-
}, [
|
|
1620
|
+
}, [n, e]), /* @__PURE__ */ o(x, { children: i.loaded && /* @__PURE__ */ o(
|
|
1621
1621
|
D,
|
|
1622
1622
|
{
|
|
1623
1623
|
open: e,
|
|
@@ -1664,7 +1664,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1664
1664
|
label: "OpenAI",
|
|
1665
1665
|
name: "OpenAI",
|
|
1666
1666
|
onChange: d,
|
|
1667
|
-
checked: i.engine ===
|
|
1667
|
+
checked: i.engine === le
|
|
1668
1668
|
}
|
|
1669
1669
|
),
|
|
1670
1670
|
/* @__PURE__ */ o(
|
|
@@ -1675,7 +1675,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1675
1675
|
label: "Anthropic",
|
|
1676
1676
|
name: "Anthropic",
|
|
1677
1677
|
onChange: h,
|
|
1678
|
-
checked: i.engine ===
|
|
1678
|
+
checked: i.engine === ce
|
|
1679
1679
|
}
|
|
1680
1680
|
),
|
|
1681
1681
|
/* @__PURE__ */ o("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI. It also cannot take advantage yet of internal helper tools such as the OpenWeather or Google Images plugin." })
|
|
@@ -1699,12 +1699,12 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1699
1699
|
autoCorrect: "off",
|
|
1700
1700
|
name: "customInstructions",
|
|
1701
1701
|
label: "Custom Instructions",
|
|
1702
|
-
value: i.
|
|
1702
|
+
value: i.instructions,
|
|
1703
1703
|
onChange: (l) => {
|
|
1704
1704
|
s((g) => ({
|
|
1705
1705
|
...g,
|
|
1706
1706
|
loaded: !0,
|
|
1707
|
-
|
|
1707
|
+
instructions: l.target.value
|
|
1708
1708
|
}));
|
|
1709
1709
|
},
|
|
1710
1710
|
helperText: "Press ENTER to add a new line."
|
|
@@ -1759,17 +1759,17 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1759
1759
|
open: e,
|
|
1760
1760
|
onOpenChange: t
|
|
1761
1761
|
}) => {
|
|
1762
|
-
const [a,
|
|
1762
|
+
const [a, r] = G({
|
|
1763
1763
|
key: V + ye,
|
|
1764
1764
|
initialValue: !1
|
|
1765
|
-
}), [
|
|
1765
|
+
}), [n, i] = G({
|
|
1766
1766
|
key: V + ke,
|
|
1767
1767
|
initialValue: !1
|
|
1768
1768
|
}), [s, c] = G({
|
|
1769
1769
|
key: V + Te,
|
|
1770
1770
|
initialValue: !1
|
|
1771
1771
|
}), m = (l) => {
|
|
1772
|
-
|
|
1772
|
+
r(l);
|
|
1773
1773
|
}, d = (l) => {
|
|
1774
1774
|
i(l);
|
|
1775
1775
|
}, h = (l) => {
|
|
@@ -1781,7 +1781,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1781
1781
|
U,
|
|
1782
1782
|
{
|
|
1783
1783
|
noBorder: !0,
|
|
1784
|
-
label:
|
|
1784
|
+
label: de[ue.SUMMARIZE_ARTICLE].label,
|
|
1785
1785
|
name: ye,
|
|
1786
1786
|
onChange: m,
|
|
1787
1787
|
checked: a
|
|
@@ -1792,10 +1792,10 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1792
1792
|
{
|
|
1793
1793
|
spacing: { t: 2 },
|
|
1794
1794
|
noBorder: !0,
|
|
1795
|
-
label:
|
|
1795
|
+
label: de[ue.PROOFREAD_CONTENT].label,
|
|
1796
1796
|
name: ke,
|
|
1797
1797
|
onChange: d,
|
|
1798
|
-
checked:
|
|
1798
|
+
checked: n
|
|
1799
1799
|
}
|
|
1800
1800
|
),
|
|
1801
1801
|
/* @__PURE__ */ o(
|
|
@@ -1803,7 +1803,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1803
1803
|
{
|
|
1804
1804
|
spacing: { t: 2 },
|
|
1805
1805
|
noBorder: !0,
|
|
1806
|
-
label:
|
|
1806
|
+
label: de[ue.REPHRASE_CONTENT].label,
|
|
1807
1807
|
name: Te,
|
|
1808
1808
|
onChange: h,
|
|
1809
1809
|
checked: s
|
|
@@ -1811,7 +1811,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1811
1811
|
)
|
|
1812
1812
|
] }) });
|
|
1813
1813
|
}, Ua = () => {
|
|
1814
|
-
const { isAuthenticated: e, user: t, registeringForPasskey: a, authenticationType:
|
|
1814
|
+
const { isAuthenticated: e, user: t, registeringForPasskey: a, authenticationType: r } = j(), [n, i] = G({
|
|
1815
1815
|
key: V + gt,
|
|
1816
1816
|
initialValue: !1
|
|
1817
1817
|
}), [s, c] = E(!1), [m, d] = E(!1), h = q(), l = (t == null ? void 0 : t.username) || "", g = (T) => {
|
|
@@ -1847,7 +1847,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1847
1847
|
label: y.PREFERENCES.ENGINE_DETAILS,
|
|
1848
1848
|
name: y.PREFERENCES.ENGINE_DETAILS,
|
|
1849
1849
|
onChange: g,
|
|
1850
|
-
checked:
|
|
1850
|
+
checked: n
|
|
1851
1851
|
}
|
|
1852
1852
|
)
|
|
1853
1853
|
}),
|
|
@@ -1874,7 +1874,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1874
1874
|
]
|
|
1875
1875
|
}
|
|
1876
1876
|
),
|
|
1877
|
-
|
|
1877
|
+
r !== pt.PASSKEY && /* @__PURE__ */ u(
|
|
1878
1878
|
I,
|
|
1879
1879
|
{
|
|
1880
1880
|
spacing: { t: 4 },
|
|
@@ -1903,14 +1903,14 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1903
1903
|
open: e,
|
|
1904
1904
|
onOpenChange: t
|
|
1905
1905
|
}) => /* @__PURE__ */ o(D, { open: e, onOpenChange: t, title: ft, children: /* @__PURE__ */ o(Ua, {}) }), Ja = () => {
|
|
1906
|
-
const { state: e } = M(Q), [t, a] = E(!1), [
|
|
1906
|
+
const { state: e } = M(Q), [t, a] = E(!1), [r, n] = E(!1), [i, s] = E(!1), [c, m] = E(!1), [d, h] = E([]), [l, g] = E(!1), [v, b] = E({
|
|
1907
1907
|
done: !1,
|
|
1908
1908
|
progress: !1,
|
|
1909
1909
|
timestamp: Date.now()
|
|
1910
1910
|
}), { logout: T, getAccessToken: C, user: p } = j(), k = () => {
|
|
1911
1911
|
a(!t);
|
|
1912
1912
|
}, N = () => {
|
|
1913
|
-
|
|
1913
|
+
n(!r);
|
|
1914
1914
|
}, w = () => {
|
|
1915
1915
|
s(!i);
|
|
1916
1916
|
}, L = () => {
|
|
@@ -1963,7 +1963,7 @@ const Ra = "av-toggle", Ma = (e) => {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
),
|
|
1965
1965
|
/* @__PURE__ */ o($a, { open: t, onOpenChange: a }),
|
|
1966
|
-
/* @__PURE__ */ o(Na, { open:
|
|
1966
|
+
/* @__PURE__ */ o(Na, { open: r, onOpenChange: n }),
|
|
1967
1967
|
/* @__PURE__ */ o(
|
|
1968
1968
|
Aa,
|
|
1969
1969
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _i } from "react/jsx-runtime";
|
|
2
|
-
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.
|
|
2
|
+
import { convert as Si, getDefaultExportFromCjs as Ni, visit as ki, find as Ti, parse as z0, parse$1 as P0, normalize as F0, svg as Mi, html as Ai, visitParents as Oi, SKIP as Ri, longestStreak as Ci, factorySpace as Xt, markdownLineEnding as xt, Markdown as Ii, remarkGfm as Di } from "./LazyMessageAssistant.CkSUdQWN.js";
|
|
3
3
|
const U0 = (
|
|
4
4
|
// Note: overloads like this are needed to support optional generics.
|
|
5
5
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as He, jsx as re, Fragment as or } from "react/jsx-runtime";
|
|
2
|
-
import { le as ot } from "./App.
|
|
2
|
+
import { le as ot } from "./App.68xrhTIC.js";
|
|
3
3
|
import { E as wi } from "./index.B6C-bgBL.js";
|
|
4
4
|
import cn from "clsx";
|
|
5
5
|
import { lazy as Si, useContext as Ci, Suspense as Ei } from "react";
|
|
6
|
-
import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.
|
|
6
|
+
import { AppContext as Ai, LOCAL_STORAGE_PREFIX as Ii, LOCAL_STORAGE_CHAT_DETAILS as Ti, durationFormatter as Pi } from "./index.DaWYWXXP.js";
|
|
7
7
|
var at = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Li(e) {
|
|
9
9
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -8642,7 +8642,7 @@ function sf(e) {
|
|
|
8642
8642
|
const cf = Si(
|
|
8643
8643
|
() => import(
|
|
8644
8644
|
/* webpackChunkName: "LazyMarkdownWithExtra" */
|
|
8645
|
-
"./LazyMarkdownWithExtra.
|
|
8645
|
+
"./LazyMarkdownWithExtra.o-qNkWIb.js"
|
|
8646
8646
|
)
|
|
8647
8647
|
), In = {
|
|
8648
8648
|
MODEL: "Model",
|
|
@@ -3628,7 +3628,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3628
3628
|
row1: /* @__PURE__ */ I("div", { children: [
|
|
3629
3629
|
ir,
|
|
3630
3630
|
" v",
|
|
3631
|
-
"5.0.
|
|
3631
|
+
"5.0.1",
|
|
3632
3632
|
" - ",
|
|
3633
3633
|
Jn,
|
|
3634
3634
|
t && t.engine,
|
|
@@ -3645,7 +3645,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3645
3645
|
}, Xn = Nt(
|
|
3646
3646
|
() => import(
|
|
3647
3647
|
/* webpackChunkName: "LazyHeader" */
|
|
3648
|
-
"./LazyHeader.
|
|
3648
|
+
"./LazyHeader.DPlhG-1q.js"
|
|
3649
3649
|
)
|
|
3650
3650
|
), Qn = () => {
|
|
3651
3651
|
const { isAuthenticated: e } = rt();
|
|
@@ -3756,7 +3756,7 @@ const Fn = "av-footer", Yn = (e) => {
|
|
|
3756
3756
|
] });
|
|
3757
3757
|
}, eo = new URL(document.location.href).searchParams, to = !!eo.get("debug") || !1, ro = Nt(() => import(
|
|
3758
3758
|
/* webpackChunkName: "LazyApp" */
|
|
3759
|
-
"./App.
|
|
3759
|
+
"./App.68xrhTIC.js"
|
|
3760
3760
|
).then((e) => e.App)), ao = ({ isComponent: e }) => {
|
|
3761
3761
|
const { isAuthenticated: t } = rt();
|
|
3762
3762
|
return t ? /* @__PURE__ */ l(Rt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(ro, { isComponent: e }) }) : /* @__PURE__ */ l(Zn, {});
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { SassySaint as r } from "./chunks/index.
|
|
1
|
+
import { SassySaint as r } from "./chunks/index.DaWYWXXP.js";
|
|
2
2
|
/*!
|
|
3
|
-
@sassysaint/client v5.0.
|
|
3
|
+
@sassysaint/client v5.0.1
|
|
4
4
|
© 2024 gizmette.com
|
|
5
5
|
*/
|
|
6
6
|
try {
|
|
7
7
|
window.__VERSINI_SASSY_GLOBAL__ || (window.__VERSINI_SASSY_GLOBAL__ = {
|
|
8
|
-
version: "5.0.
|
|
9
|
-
buildTime: "10/03/2024
|
|
8
|
+
version: "5.0.1",
|
|
9
|
+
buildTime: "10/03/2024 12:40 PM EDT",
|
|
10
10
|
license: "MIT"
|
|
11
11
|
});
|
|
12
12
|
} catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/sassysaint",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.3.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@sassysaint/client": "5.0.
|
|
33
|
+
"@sassysaint/client": "5.0.1",
|
|
34
34
|
"@versini/ui-styles": "1.10.2"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"sideEffects": [
|
|
42
42
|
"**/*.css"
|
|
43
43
|
],
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "fe011a35d8c19c0c82846bba98ac958eb979334a"
|
|
45
45
|
}
|