@versini/sassysaint 5.5.19 → 5.5.21
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.CN26Vdes.js → App.DhOL7eGv.js} +304 -302
- package/dist/chunks/{HeaderToolbar.RG5VcCoN.js → HeaderToolbar.B4yR6iL0.js} +595 -595
- package/dist/chunks/{MarkdownWithExtra.D9aZRrcd.js → MarkdownWithExtra.BV7XoKnH.js} +2 -2
- package/dist/chunks/{MessageAssistant.DpLJVr9t.js → MessageAssistant.Dv5-gw8Q.js} +3 -3
- package/dist/chunks/{index.DaKlCgCU.js → index.CEwE7VpW.js} +275 -275
- 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 { jsxs as v, jsx as l, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as ge, ACTION_RESTORE as At, ACTION_MESSAGE as q, ROLE_ASSISTANT as K, ACTION_RESET as qe, ACTION_MODEL as Ke, ACTION_ENGINE as Je, ACTION_STREAMING as Qe, ACTION_SORT as Lt, ACTION_SEARCH as Mt, ACTION_SET_PROMPTS as Xe, ACTION_RESET_PROMPTS as Ye, ACTION_TOGGLE_PROMPT as Ze, DEFAULT_AI_ENGINE as U, P as et, un as Z, ROLE_SYSTEM as zt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_PROMPT as Ae, TYPE_QUESTION as Ut, C as tt, SEND as Pt, ERROR_MESSAGE as Dt, ROLE_USER as le, L as Vt, j as Ht, isLastMessageFromRole as Ft, getMessageContaintWrapperClass as Gt, Logo as Wt, getMainPaddingClass as Le, r as jt, LOCAL_STORAGE_PREFIX as Me, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Kt } from "./index.CEwE7VpW.js";
|
|
3
3
|
import s from "clsx";
|
|
4
|
-
import I, { useRef as k, useEffect as x, useCallback as
|
|
4
|
+
import I, { useRef as k, useEffect as x, useCallback as P, useSyncExternalStore as Jt, useState as S, useMemo as pe, useContext as $, useLayoutEffect as V, useId as Qt, useReducer as Q, lazy as rt, Suspense as ce } from "react";
|
|
5
5
|
const Xt = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: t,
|
|
@@ -9,7 +9,7 @@ const Xt = ({
|
|
|
9
9
|
monotone: a,
|
|
10
10
|
...o
|
|
11
11
|
}) => /* @__PURE__ */ v(
|
|
12
|
-
|
|
12
|
+
ge,
|
|
13
13
|
{
|
|
14
14
|
defaultViewBox: "0 0 448 512",
|
|
15
15
|
size: "size-5",
|
|
@@ -35,7 +35,7 @@ const Xt = ({
|
|
|
35
35
|
monotone: a,
|
|
36
36
|
...o
|
|
37
37
|
}) => /* @__PURE__ */ l(
|
|
38
|
-
|
|
38
|
+
ge,
|
|
39
39
|
{
|
|
40
40
|
defaultViewBox: "0 0 384 512",
|
|
41
41
|
size: "size-5",
|
|
@@ -52,7 +52,7 @@ const Xt = ({
|
|
|
52
52
|
monotone: a,
|
|
53
53
|
...o
|
|
54
54
|
}) => /* @__PURE__ */ l(
|
|
55
|
-
|
|
55
|
+
ge,
|
|
56
56
|
{
|
|
57
57
|
defaultViewBox: "0 0 384 512",
|
|
58
58
|
size: "size-5",
|
|
@@ -87,7 +87,7 @@ const er = "av-header", tr = ({
|
|
|
87
87
|
noMargin: c = !1,
|
|
88
88
|
noPadding: d = !1
|
|
89
89
|
}) => {
|
|
90
|
-
const
|
|
90
|
+
const m = s(
|
|
91
91
|
er,
|
|
92
92
|
{
|
|
93
93
|
"border-border-accent": a === "dark" && !r && !o && !i,
|
|
@@ -103,12 +103,12 @@ const er = "av-header", tr = ({
|
|
|
103
103
|
"sticky top-0 z-50": n
|
|
104
104
|
},
|
|
105
105
|
t
|
|
106
|
-
),
|
|
106
|
+
), u = s({
|
|
107
107
|
"mt-0": !c,
|
|
108
108
|
"p-2": !d,
|
|
109
109
|
"flex flex-col w-full md:mx-auto md:max-w-4xl": !r
|
|
110
110
|
});
|
|
111
|
-
return /* @__PURE__ */ l("header", { className:
|
|
111
|
+
return /* @__PURE__ */ l("header", { className: m, children: /* @__PURE__ */ l("div", { className: u, children: e }) });
|
|
112
112
|
};
|
|
113
113
|
function rr(e) {
|
|
114
114
|
const t = e.toLowerCase().split("+").map((n) => n.trim()), r = {
|
|
@@ -124,15 +124,15 @@ function rr(e) {
|
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
126
|
function ar(e, t) {
|
|
127
|
-
const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey:
|
|
127
|
+
const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey: m, metaKey: u, shiftKey: h, key: g } = t;
|
|
128
128
|
if (r !== d)
|
|
129
129
|
return !1;
|
|
130
130
|
if (n) {
|
|
131
|
-
if (!
|
|
131
|
+
if (!m && !u)
|
|
132
132
|
return !1;
|
|
133
|
-
} else if (a !==
|
|
133
|
+
} else if (a !== m || o !== u)
|
|
134
134
|
return !1;
|
|
135
|
-
return i !== h ? !1 : !!(c && (
|
|
135
|
+
return i !== h ? !1 : !!(c && (g.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
|
|
136
136
|
}
|
|
137
137
|
function or(e) {
|
|
138
138
|
return (t) => ar(rr(e), t);
|
|
@@ -149,12 +149,12 @@ function sr() {
|
|
|
149
149
|
const e = k(!1);
|
|
150
150
|
return x(() => (e.current = !0, () => {
|
|
151
151
|
e.current = !1;
|
|
152
|
-
}), []),
|
|
152
|
+
}), []), P(() => e.current, []);
|
|
153
153
|
}
|
|
154
154
|
function at(e, t) {
|
|
155
155
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
156
156
|
}
|
|
157
|
-
const
|
|
157
|
+
const ze = (e, t) => {
|
|
158
158
|
const r = JSON.stringify(
|
|
159
159
|
typeof t == "function" ? t() : t
|
|
160
160
|
);
|
|
@@ -166,24 +166,24 @@ function Ue({
|
|
|
166
166
|
key: e,
|
|
167
167
|
initialValue: t
|
|
168
168
|
}) {
|
|
169
|
-
const r = Jt(lr, () => Oe(e)), a =
|
|
169
|
+
const r = Jt(lr, () => Oe(e)), a = P(
|
|
170
170
|
(i) => {
|
|
171
171
|
try {
|
|
172
172
|
const c = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
173
|
-
c == null ? ir(e) :
|
|
173
|
+
c == null ? ir(e) : ze(e, c);
|
|
174
174
|
} catch (c) {
|
|
175
175
|
console.warn(c);
|
|
176
176
|
}
|
|
177
177
|
},
|
|
178
178
|
[e, r]
|
|
179
|
-
), o =
|
|
179
|
+
), o = P(() => {
|
|
180
180
|
a(t);
|
|
181
|
-
}, [t, a]), n =
|
|
181
|
+
}, [t, a]), n = P(() => {
|
|
182
182
|
a(null);
|
|
183
183
|
}, [a]);
|
|
184
184
|
return x(() => {
|
|
185
185
|
try {
|
|
186
|
-
Oe(e) === null && typeof t < "u" &&
|
|
186
|
+
Oe(e) === null && typeof t < "u" && ze(e, t);
|
|
187
187
|
} catch (i) {
|
|
188
188
|
console.warn(i);
|
|
189
189
|
}
|
|
@@ -226,7 +226,7 @@ try {
|
|
|
226
226
|
const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
227
227
|
ASC: "asc",
|
|
228
228
|
DESC: "desc"
|
|
229
|
-
},
|
|
229
|
+
}, mr = ({
|
|
230
230
|
mode: e,
|
|
231
231
|
className: t,
|
|
232
232
|
wrapperClassName: r,
|
|
@@ -261,7 +261,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
|
261
261
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
262
262
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
263
263
|
})
|
|
264
|
-
}),
|
|
264
|
+
}), ur = ({
|
|
265
265
|
className: e,
|
|
266
266
|
stickyHeader: t,
|
|
267
267
|
mode: r
|
|
@@ -274,7 +274,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
|
274
274
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
|
|
275
275
|
},
|
|
276
276
|
e
|
|
277
|
-
),
|
|
277
|
+
), gr = ({
|
|
278
278
|
className: e,
|
|
279
279
|
stickyFooter: t,
|
|
280
280
|
mode: r
|
|
@@ -338,7 +338,7 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
|
338
338
|
)
|
|
339
339
|
}), br = ({
|
|
340
340
|
buttonClassName: e
|
|
341
|
-
}) => s("rounded-none text-sm", e),
|
|
341
|
+
}) => s("rounded-none text-sm", e), Pe = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
|
|
342
342
|
type: e,
|
|
343
343
|
size: t,
|
|
344
344
|
labelRight: r,
|
|
@@ -569,35 +569,35 @@ const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
|
569
569
|
fullWidth: i,
|
|
570
570
|
size: c,
|
|
571
571
|
noBorder: d,
|
|
572
|
-
labelRight:
|
|
573
|
-
labelLeft:
|
|
572
|
+
labelRight: m,
|
|
573
|
+
labelLeft: u,
|
|
574
574
|
noBackground: h,
|
|
575
|
-
variant:
|
|
575
|
+
variant: g,
|
|
576
576
|
noTruncate: p,
|
|
577
577
|
align: b,
|
|
578
578
|
radius: f
|
|
579
|
-
}) => (
|
|
580
|
-
|
|
579
|
+
}) => (g || (g = "primary"), r ? s(Pe, t) : s(
|
|
580
|
+
Pe,
|
|
581
581
|
kr({
|
|
582
582
|
mode: a,
|
|
583
|
-
variant:
|
|
583
|
+
variant: g,
|
|
584
584
|
noBackground: h,
|
|
585
585
|
noTruncate: p
|
|
586
586
|
}),
|
|
587
|
-
vr({ mode: a, noBackground: h, variant:
|
|
587
|
+
vr({ mode: a, noBackground: h, variant: g }),
|
|
588
588
|
xr({ radius: f }),
|
|
589
589
|
yr({
|
|
590
590
|
type: e,
|
|
591
591
|
size: c,
|
|
592
|
-
labelRight:
|
|
593
|
-
labelLeft:
|
|
592
|
+
labelRight: m,
|
|
593
|
+
labelLeft: u,
|
|
594
594
|
align: b
|
|
595
595
|
}),
|
|
596
|
-
fr({ type: e, size: c, labelRight:
|
|
597
|
-
Nr({ mode: a, variant:
|
|
596
|
+
fr({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
597
|
+
Nr({ mode: a, variant: g, noBorder: d }),
|
|
598
598
|
Tr({ focusMode: o }),
|
|
599
|
-
_r({ mode: a, variant:
|
|
600
|
-
wr({ mode: a, variant:
|
|
599
|
+
_r({ mode: a, variant: g, disabled: n }),
|
|
600
|
+
wr({ mode: a, variant: g, disabled: n }),
|
|
601
601
|
{
|
|
602
602
|
"w-full": i,
|
|
603
603
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -644,10 +644,10 @@ const st = I.forwardRef(
|
|
|
644
644
|
type: i = "button",
|
|
645
645
|
raw: c = !1,
|
|
646
646
|
noBorder: d = !1,
|
|
647
|
-
"aria-label":
|
|
648
|
-
label:
|
|
647
|
+
"aria-label": m,
|
|
648
|
+
label: u,
|
|
649
649
|
size: h = "medium",
|
|
650
|
-
labelRight:
|
|
650
|
+
labelRight: g,
|
|
651
651
|
labelLeft: p,
|
|
652
652
|
noBackground: b = !1,
|
|
653
653
|
align: f = "center",
|
|
@@ -665,7 +665,7 @@ const st = I.forwardRef(
|
|
|
665
665
|
className: n,
|
|
666
666
|
noBorder: d,
|
|
667
667
|
size: h,
|
|
668
|
-
labelRight:
|
|
668
|
+
labelRight: g,
|
|
669
669
|
labelLeft: p,
|
|
670
670
|
noBackground: b,
|
|
671
671
|
align: f,
|
|
@@ -675,7 +675,7 @@ const st = I.forwardRef(
|
|
|
675
675
|
"text-copy-light": r === "dark" && !c,
|
|
676
676
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
677
677
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
678
|
-
}),
|
|
678
|
+
}), M = y ? s(
|
|
679
679
|
"relative",
|
|
680
680
|
"focus-within:static",
|
|
681
681
|
"focus-within:after:border-transparent",
|
|
@@ -692,19 +692,19 @@ const st = I.forwardRef(
|
|
|
692
692
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
693
693
|
}
|
|
694
694
|
) : "";
|
|
695
|
-
return /* @__PURE__ */ l("div", { className:
|
|
695
|
+
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
696
696
|
nt,
|
|
697
697
|
{
|
|
698
698
|
ref: T,
|
|
699
699
|
className: R,
|
|
700
700
|
disabled: t,
|
|
701
701
|
type: i,
|
|
702
|
-
"aria-label":
|
|
702
|
+
"aria-label": m || u,
|
|
703
703
|
...N,
|
|
704
704
|
children: [
|
|
705
705
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
706
706
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
707
|
-
|
|
707
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
708
708
|
]
|
|
709
709
|
}
|
|
710
710
|
) });
|
|
@@ -722,13 +722,13 @@ const fe = ({
|
|
|
722
722
|
semantic: c = !1,
|
|
723
723
|
...d
|
|
724
724
|
}) => {
|
|
725
|
-
const
|
|
725
|
+
const m = s(n, a);
|
|
726
726
|
return /* @__PURE__ */ v(Y, { children: [
|
|
727
727
|
/* @__PURE__ */ l(
|
|
728
728
|
"svg",
|
|
729
729
|
{
|
|
730
730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
731
|
-
className:
|
|
731
|
+
className: m,
|
|
732
732
|
viewBox: r || o,
|
|
733
733
|
fill: t || "currentColor",
|
|
734
734
|
role: "img",
|
|
@@ -867,7 +867,7 @@ try {
|
|
|
867
867
|
});
|
|
868
868
|
} catch {
|
|
869
869
|
}
|
|
870
|
-
const
|
|
870
|
+
const F = I.createContext({
|
|
871
871
|
mode: "light",
|
|
872
872
|
cellWrapper: "thead",
|
|
873
873
|
stickyHeader: !1,
|
|
@@ -883,20 +883,20 @@ const G = I.createContext({
|
|
|
883
883
|
wrapperClassName: i,
|
|
884
884
|
maxHeight: c,
|
|
885
885
|
stickyHeader: d,
|
|
886
|
-
stickyFooter:
|
|
887
|
-
...
|
|
886
|
+
stickyFooter: m,
|
|
887
|
+
...u
|
|
888
888
|
}) => {
|
|
889
|
-
const h =
|
|
889
|
+
const h = mr({
|
|
890
890
|
mode: t,
|
|
891
891
|
className: n,
|
|
892
892
|
wrapperClassName: i,
|
|
893
893
|
stickyHeader: d,
|
|
894
|
-
stickyFooter:
|
|
894
|
+
stickyFooter: m
|
|
895
895
|
});
|
|
896
896
|
return /* @__PURE__ */ l(
|
|
897
|
-
|
|
897
|
+
F.Provider,
|
|
898
898
|
{
|
|
899
|
-
value: { mode: t, stickyHeader: d, stickyFooter:
|
|
899
|
+
value: { mode: t, stickyHeader: d, stickyFooter: m, compact: a },
|
|
900
900
|
children: /* @__PURE__ */ l(
|
|
901
901
|
"div",
|
|
902
902
|
{
|
|
@@ -904,7 +904,7 @@ const G = I.createContext({
|
|
|
904
904
|
...c && {
|
|
905
905
|
style: { maxHeight: c }
|
|
906
906
|
},
|
|
907
|
-
children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...
|
|
907
|
+
children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...u, children: [
|
|
908
908
|
r && /* @__PURE__ */ l("caption", { className: h.caption, children: r }),
|
|
909
909
|
e
|
|
910
910
|
] })
|
|
@@ -917,9 +917,9 @@ const G = I.createContext({
|
|
|
917
917
|
className: t,
|
|
918
918
|
...r
|
|
919
919
|
}) => {
|
|
920
|
-
const a = $(
|
|
920
|
+
const a = $(F);
|
|
921
921
|
a.cellWrapper = ee;
|
|
922
|
-
const o =
|
|
922
|
+
const o = ur({
|
|
923
923
|
className: t,
|
|
924
924
|
mode: a.mode,
|
|
925
925
|
stickyHeader: a.stickyHeader
|
|
@@ -930,23 +930,23 @@ const G = I.createContext({
|
|
|
930
930
|
className: t,
|
|
931
931
|
...r
|
|
932
932
|
}) => {
|
|
933
|
-
const a = $(
|
|
933
|
+
const a = $(F);
|
|
934
934
|
a.cellWrapper = be;
|
|
935
|
-
const o =
|
|
935
|
+
const o = gr({
|
|
936
936
|
className: t,
|
|
937
937
|
mode: a.mode,
|
|
938
938
|
stickyFooter: a.stickyFooter
|
|
939
939
|
});
|
|
940
940
|
return /* @__PURE__ */ l("tfoot", { className: o, ...r, children: e });
|
|
941
941
|
}, ao = ({ children: e, ...t }) => {
|
|
942
|
-
const r = $(
|
|
942
|
+
const r = $(F);
|
|
943
943
|
return r.cellWrapper = H, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
944
944
|
}, oo = ({
|
|
945
945
|
children: e,
|
|
946
946
|
className: t,
|
|
947
947
|
...r
|
|
948
948
|
}) => {
|
|
949
|
-
const a = $(
|
|
949
|
+
const a = $(F), o = hr({
|
|
950
950
|
mode: a.mode,
|
|
951
951
|
cellWrapper: a.cellWrapper,
|
|
952
952
|
className: t
|
|
@@ -959,7 +959,7 @@ const G = I.createContext({
|
|
|
959
959
|
align: a,
|
|
960
960
|
...o
|
|
961
961
|
}) => {
|
|
962
|
-
const n = $(
|
|
962
|
+
const n = $(F), i = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
|
|
963
963
|
cellWrapper: n.cellWrapper,
|
|
964
964
|
className: r,
|
|
965
965
|
mode: n.mode,
|
|
@@ -977,24 +977,24 @@ const G = I.createContext({
|
|
|
977
977
|
mode: i = "alt-system",
|
|
978
978
|
onClick: c,
|
|
979
979
|
sortDirection: d,
|
|
980
|
-
sortedCell:
|
|
981
|
-
cellId:
|
|
980
|
+
sortedCell: m,
|
|
981
|
+
cellId: u,
|
|
982
982
|
...h
|
|
983
983
|
}) => {
|
|
984
|
-
const
|
|
984
|
+
const g = br({ buttonClassName: r });
|
|
985
985
|
return /* @__PURE__ */ l(
|
|
986
986
|
$r,
|
|
987
987
|
{
|
|
988
988
|
component: o,
|
|
989
989
|
className: a,
|
|
990
990
|
role: "columnheader",
|
|
991
|
-
"aria-sort": d === j.ASC &&
|
|
991
|
+
"aria-sort": d === j.ASC && m === u ? "ascending" : d === j.DESC && m === u ? "descending" : "other",
|
|
992
992
|
...h,
|
|
993
993
|
children: /* @__PURE__ */ l(
|
|
994
994
|
st,
|
|
995
995
|
{
|
|
996
|
-
active:
|
|
997
|
-
className:
|
|
996
|
+
active: m === u,
|
|
997
|
+
className: g,
|
|
998
998
|
onClick: c,
|
|
999
999
|
align: e,
|
|
1000
1000
|
noBorder: !0,
|
|
@@ -1002,7 +1002,7 @@ const G = I.createContext({
|
|
|
1002
1002
|
mode: i,
|
|
1003
1003
|
fullWidth: !0,
|
|
1004
1004
|
labelRight: t,
|
|
1005
|
-
children: d === j.ASC &&
|
|
1005
|
+
children: d === j.ASC && m === u ? /* @__PURE__ */ l(Rr, { className: "size-4", monotone: !0 }) : d === j.DESC && m === u ? /* @__PURE__ */ l(Ir, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Cr, { className: "size-4", monotone: !0 })
|
|
1006
1006
|
}
|
|
1007
1007
|
)
|
|
1008
1008
|
}
|
|
@@ -1023,15 +1023,15 @@ function Lr() {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return se(Ar);
|
|
1025
1025
|
}
|
|
1026
|
-
const
|
|
1026
|
+
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), De = { randomUUID: Mr };
|
|
1027
1027
|
function ke(e, t, r) {
|
|
1028
|
-
if (
|
|
1029
|
-
return
|
|
1028
|
+
if (De.randomUUID && !t && !e)
|
|
1029
|
+
return De.randomUUID();
|
|
1030
1030
|
e = e || {};
|
|
1031
1031
|
const a = e.random || (e.rng || Lr)();
|
|
1032
1032
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Br(a);
|
|
1033
1033
|
}
|
|
1034
|
-
const
|
|
1034
|
+
const zr = (e, t) => {
|
|
1035
1035
|
if ((t == null ? void 0 : t.type) === At) {
|
|
1036
1036
|
const r = t.payload.messages.map((a) => ({
|
|
1037
1037
|
message: {
|
|
@@ -1048,7 +1048,7 @@ const Mr = (e, t) => {
|
|
|
1048
1048
|
isComponent: e.isComponent,
|
|
1049
1049
|
messages: r,
|
|
1050
1050
|
engine: e.engine,
|
|
1051
|
-
|
|
1051
|
+
prompts: e.prompts
|
|
1052
1052
|
};
|
|
1053
1053
|
}
|
|
1054
1054
|
if ((t == null ? void 0 : t.type) === q) {
|
|
@@ -1063,25 +1063,25 @@ const Mr = (e, t) => {
|
|
|
1063
1063
|
};
|
|
1064
1064
|
if (r === K) {
|
|
1065
1065
|
const d = e.messages.findIndex(
|
|
1066
|
-
(
|
|
1066
|
+
(m) => m.message.messageId === i
|
|
1067
1067
|
);
|
|
1068
1068
|
if (d !== -1) {
|
|
1069
|
-
const
|
|
1069
|
+
const m = e.messages.map((u, h) => h === d ? {
|
|
1070
1070
|
message: {
|
|
1071
|
-
...
|
|
1072
|
-
content: `${
|
|
1071
|
+
...u.message,
|
|
1072
|
+
content: `${u.message.content}${a}`,
|
|
1073
1073
|
processingTime: n,
|
|
1074
1074
|
name: o
|
|
1075
1075
|
}
|
|
1076
|
-
} :
|
|
1076
|
+
} : u);
|
|
1077
1077
|
return {
|
|
1078
1078
|
id: e.id,
|
|
1079
1079
|
model: e.model,
|
|
1080
1080
|
usage: e.usage,
|
|
1081
1081
|
isComponent: e.isComponent,
|
|
1082
|
-
messages:
|
|
1082
|
+
messages: m,
|
|
1083
1083
|
engine: e.engine,
|
|
1084
|
-
|
|
1084
|
+
prompts: e.prompts
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
@@ -1089,7 +1089,7 @@ const Mr = (e, t) => {
|
|
|
1089
1089
|
id: e.id,
|
|
1090
1090
|
model: e.model,
|
|
1091
1091
|
engine: e.engine,
|
|
1092
|
-
|
|
1092
|
+
prompts: e.prompts,
|
|
1093
1093
|
usage: e.usage,
|
|
1094
1094
|
isComponent: e.isComponent,
|
|
1095
1095
|
messages: [
|
|
@@ -1108,12 +1108,12 @@ const Mr = (e, t) => {
|
|
|
1108
1108
|
usage: 0,
|
|
1109
1109
|
messages: [],
|
|
1110
1110
|
isComponent: e.isComponent,
|
|
1111
|
-
|
|
1111
|
+
prompts: e.prompts
|
|
1112
1112
|
} : (t == null ? void 0 : t.type) === Ke ? {
|
|
1113
1113
|
id: e.id,
|
|
1114
1114
|
model: t.payload.model,
|
|
1115
1115
|
engine: e.engine,
|
|
1116
|
-
|
|
1116
|
+
prompts: e.prompts,
|
|
1117
1117
|
usage: t.payload.usage,
|
|
1118
1118
|
messages: e.messages,
|
|
1119
1119
|
isComponent: e.isComponent
|
|
@@ -1126,7 +1126,7 @@ const Mr = (e, t) => {
|
|
|
1126
1126
|
} : e;
|
|
1127
1127
|
}, Or = (e, t) => {
|
|
1128
1128
|
switch (t == null ? void 0 : t.type) {
|
|
1129
|
-
case
|
|
1129
|
+
case Mt:
|
|
1130
1130
|
return {
|
|
1131
1131
|
searchString: t.payload.searchString,
|
|
1132
1132
|
sortedCell: e.sortedCell,
|
|
@@ -1145,18 +1145,18 @@ const Mr = (e, t) => {
|
|
|
1145
1145
|
switch (t == null ? void 0 : t.type) {
|
|
1146
1146
|
case Ze:
|
|
1147
1147
|
return {
|
|
1148
|
-
|
|
1149
|
-
|
|
1148
|
+
prompts: e.prompts,
|
|
1149
|
+
prompt: t.payload.prompt
|
|
1150
1150
|
};
|
|
1151
1151
|
case Ye:
|
|
1152
1152
|
return {
|
|
1153
|
-
|
|
1154
|
-
|
|
1153
|
+
prompts: e.prompts,
|
|
1154
|
+
prompt: ""
|
|
1155
1155
|
};
|
|
1156
1156
|
case Xe:
|
|
1157
1157
|
return {
|
|
1158
|
-
|
|
1159
|
-
|
|
1158
|
+
prompts: t.payload.prompts,
|
|
1159
|
+
prompt: ""
|
|
1160
1160
|
};
|
|
1161
1161
|
default:
|
|
1162
1162
|
return e;
|
|
@@ -1298,7 +1298,7 @@ const Mr = (e, t) => {
|
|
|
1298
1298
|
schema: L.SET_USER_PREFERENCES,
|
|
1299
1299
|
method: "setUserPreferences"
|
|
1300
1300
|
}
|
|
1301
|
-
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
1301
|
+
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Pr = async ({
|
|
1302
1302
|
query: e,
|
|
1303
1303
|
data: t,
|
|
1304
1304
|
headers: r = {}
|
|
@@ -1321,7 +1321,7 @@ const Mr = (e, t) => {
|
|
|
1321
1321
|
}) => {
|
|
1322
1322
|
const a = t != null && t.data ? t.data(r) : r;
|
|
1323
1323
|
try {
|
|
1324
|
-
const o = `Bearer ${e}`, n = await
|
|
1324
|
+
const o = `Bearer ${e}`, n = await Pr({
|
|
1325
1325
|
headers: {
|
|
1326
1326
|
authorization: o
|
|
1327
1327
|
},
|
|
@@ -1339,7 +1339,7 @@ const Mr = (e, t) => {
|
|
|
1339
1339
|
} catch (o) {
|
|
1340
1340
|
return console.error(o), { status: 500, data: [] };
|
|
1341
1341
|
}
|
|
1342
|
-
},
|
|
1342
|
+
}, Dr = async ({
|
|
1343
1343
|
accessToken: e,
|
|
1344
1344
|
name: t,
|
|
1345
1345
|
data: r,
|
|
@@ -1355,7 +1355,7 @@ const Mr = (e, t) => {
|
|
|
1355
1355
|
},
|
|
1356
1356
|
body: JSON.stringify(r)
|
|
1357
1357
|
});
|
|
1358
|
-
},
|
|
1358
|
+
}, G = I.createContext({
|
|
1359
1359
|
state: {
|
|
1360
1360
|
id: "",
|
|
1361
1361
|
model: U,
|
|
@@ -1363,7 +1363,7 @@ const Mr = (e, t) => {
|
|
|
1363
1363
|
usage: 0,
|
|
1364
1364
|
messages: [],
|
|
1365
1365
|
isComponent: !1,
|
|
1366
|
-
|
|
1366
|
+
prompts: []
|
|
1367
1367
|
},
|
|
1368
1368
|
dispatch: () => {
|
|
1369
1369
|
},
|
|
@@ -1374,12 +1374,12 @@ const Mr = (e, t) => {
|
|
|
1374
1374
|
engine: U,
|
|
1375
1375
|
engines: []
|
|
1376
1376
|
}
|
|
1377
|
-
}),
|
|
1377
|
+
}), Vr = I.createContext({
|
|
1378
1378
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1379
1379
|
dispatch: () => {
|
|
1380
1380
|
}
|
|
1381
1381
|
}), ve = I.createContext({
|
|
1382
|
-
state: {
|
|
1382
|
+
state: { prompt: "" },
|
|
1383
1383
|
dispatch: () => {
|
|
1384
1384
|
}
|
|
1385
1385
|
});
|
|
@@ -1396,12 +1396,12 @@ try {
|
|
|
1396
1396
|
});
|
|
1397
1397
|
} catch {
|
|
1398
1398
|
}
|
|
1399
|
-
const dt = "av-text-area", Hr = "av-text-area-wrapper", ie = "av-text-area-helper-text",
|
|
1399
|
+
const dt = "av-text-area", Hr = "av-text-area-wrapper", ie = "av-text-area-helper-text", Fr = "av-text-area__control--right", Gr = "av-text-area__control--left";
|
|
1400
1400
|
function Wr() {
|
|
1401
1401
|
const e = k(!1);
|
|
1402
1402
|
return x(() => (e.current = !0, () => {
|
|
1403
1403
|
e.current = !1;
|
|
1404
|
-
}), []),
|
|
1404
|
+
}), []), P(() => e.current, []);
|
|
1405
1405
|
}
|
|
1406
1406
|
function jr(e) {
|
|
1407
1407
|
return pe(() => e.every((t) => t == null) ? () => {
|
|
@@ -1421,7 +1421,7 @@ const qr = {
|
|
|
1421
1421
|
bottom: 0,
|
|
1422
1422
|
right: 0
|
|
1423
1423
|
};
|
|
1424
|
-
function
|
|
1424
|
+
function Ve(e) {
|
|
1425
1425
|
const t = Wr(), r = k(0), a = k(null), [o, n] = S(qr), i = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
1426
1426
|
const d = c[0];
|
|
1427
1427
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -1442,14 +1442,14 @@ function Kr({
|
|
|
1442
1442
|
}) {
|
|
1443
1443
|
const [n, i] = S(!1), [c, d] = S(
|
|
1444
1444
|
t !== void 0 ? t : r
|
|
1445
|
-
),
|
|
1446
|
-
d(
|
|
1445
|
+
), m = (u) => {
|
|
1446
|
+
d(u), a == null || a(u);
|
|
1447
1447
|
};
|
|
1448
1448
|
return x(() => {
|
|
1449
1449
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1450
|
-
(
|
|
1450
|
+
(u) => setTimeout(u, o)
|
|
1451
1451
|
), i(!0)))();
|
|
1452
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c,
|
|
1452
|
+
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, m, !1];
|
|
1453
1453
|
}
|
|
1454
1454
|
function Jr(e) {
|
|
1455
1455
|
const t = Qt();
|
|
@@ -1462,7 +1462,7 @@ function Jr(e) {
|
|
|
1462
1462
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
1463
1463
|
}
|
|
1464
1464
|
}
|
|
1465
|
-
const
|
|
1465
|
+
const mt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
1466
1466
|
alert: null,
|
|
1467
1467
|
alertdialog: null,
|
|
1468
1468
|
log: "polite",
|
|
@@ -1472,12 +1472,12 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1472
1472
|
timer: "assertive"
|
|
1473
1473
|
}, Xr = (e, t) => {
|
|
1474
1474
|
switch (t == null ? void 0 : t.type) {
|
|
1475
|
-
case
|
|
1475
|
+
case mt:
|
|
1476
1476
|
return {
|
|
1477
1477
|
...e,
|
|
1478
1478
|
announcement: t.payload
|
|
1479
1479
|
};
|
|
1480
|
-
case
|
|
1480
|
+
case ut:
|
|
1481
1481
|
return {
|
|
1482
1482
|
...e,
|
|
1483
1483
|
announcement: null
|
|
@@ -1490,7 +1490,7 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1490
1490
|
dispatch: t
|
|
1491
1491
|
}) => {
|
|
1492
1492
|
t({
|
|
1493
|
-
type:
|
|
1493
|
+
type: ut
|
|
1494
1494
|
}), typeof e == "function" && e();
|
|
1495
1495
|
}, He = ({
|
|
1496
1496
|
children: e,
|
|
@@ -1500,7 +1500,7 @@ const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1500
1500
|
dispatch: o
|
|
1501
1501
|
}) => {
|
|
1502
1502
|
clearTimeout(r.current), e !== null && o({
|
|
1503
|
-
type:
|
|
1503
|
+
type: mt,
|
|
1504
1504
|
payload: e
|
|
1505
1505
|
}), t && (r.current = setTimeout(
|
|
1506
1506
|
() => Yr({
|
|
@@ -1543,19 +1543,19 @@ function ea({
|
|
|
1543
1543
|
visible: c,
|
|
1544
1544
|
...d
|
|
1545
1545
|
}) {
|
|
1546
|
-
const
|
|
1546
|
+
const m = k(null), u = k(null), [h, g] = Q(Xr, {
|
|
1547
1547
|
announcement: null
|
|
1548
1548
|
});
|
|
1549
1549
|
let p = r;
|
|
1550
1550
|
typeof p > "u" && (p = a ? Qr[a] : "assertive"), x(() => {
|
|
1551
1551
|
Zr({
|
|
1552
|
-
announcementTimeoutRef:
|
|
1552
|
+
announcementTimeoutRef: m,
|
|
1553
1553
|
announcementDelay: o,
|
|
1554
1554
|
children: e,
|
|
1555
1555
|
clearAnnouncementDelay: n,
|
|
1556
|
-
clearAnnouncementTimeoutRef:
|
|
1556
|
+
clearAnnouncementTimeoutRef: u,
|
|
1557
1557
|
onAnnouncementClear: i,
|
|
1558
|
-
dispatch:
|
|
1558
|
+
dispatch: g
|
|
1559
1559
|
});
|
|
1560
1560
|
}, [
|
|
1561
1561
|
e,
|
|
@@ -1686,9 +1686,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1686
1686
|
error: i,
|
|
1687
1687
|
mode: c,
|
|
1688
1688
|
leftElement: d,
|
|
1689
|
-
rightElement:
|
|
1689
|
+
rightElement: m
|
|
1690
1690
|
}) => {
|
|
1691
|
-
const
|
|
1691
|
+
const u = r ? e : s(
|
|
1692
1692
|
"relative flex w-full flex-col justify-center",
|
|
1693
1693
|
Hr,
|
|
1694
1694
|
e
|
|
@@ -1705,23 +1705,23 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1705
1705
|
{
|
|
1706
1706
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1707
1707
|
}
|
|
1708
|
-
),
|
|
1708
|
+
), g = r ? void 0 : "sr-only", p = na({
|
|
1709
1709
|
disabled: o,
|
|
1710
1710
|
raw: r,
|
|
1711
1711
|
error: i,
|
|
1712
1712
|
mode: c,
|
|
1713
|
-
rightElement:
|
|
1713
|
+
rightElement: m,
|
|
1714
1714
|
leftElement: d
|
|
1715
1715
|
}), b = sa({
|
|
1716
1716
|
error: i,
|
|
1717
1717
|
raw: r,
|
|
1718
1718
|
mode: c,
|
|
1719
1719
|
disabled: o
|
|
1720
|
-
}), f = r ? void 0 : s(
|
|
1720
|
+
}), f = r ? void 0 : s(Fr, "absolute"), y = r ? void 0 : s(Gr, "absolute");
|
|
1721
1721
|
return {
|
|
1722
|
-
wrapper:
|
|
1722
|
+
wrapper: u,
|
|
1723
1723
|
textArea: h,
|
|
1724
|
-
accessibleLabel:
|
|
1724
|
+
accessibleLabel: g,
|
|
1725
1725
|
visibleLabel: p,
|
|
1726
1726
|
helperText: b,
|
|
1727
1727
|
rightElement: f,
|
|
@@ -1743,7 +1743,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1743
1743
|
helperTextOffset: n,
|
|
1744
1744
|
scrollHeight: e
|
|
1745
1745
|
};
|
|
1746
|
-
},
|
|
1746
|
+
}, gt = I.forwardRef(
|
|
1747
1747
|
({
|
|
1748
1748
|
id: e,
|
|
1749
1749
|
name: t,
|
|
@@ -1754,10 +1754,10 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1754
1754
|
textAreaClassName: i,
|
|
1755
1755
|
mode: c = "system",
|
|
1756
1756
|
focusMode: d = "system",
|
|
1757
|
-
value:
|
|
1758
|
-
defaultValue:
|
|
1757
|
+
value: m,
|
|
1758
|
+
defaultValue: u,
|
|
1759
1759
|
disabled: h = !1,
|
|
1760
|
-
noBorder:
|
|
1760
|
+
noBorder: g = !1,
|
|
1761
1761
|
labelId: p,
|
|
1762
1762
|
helperText: b = "",
|
|
1763
1763
|
helperTextOnFocus: f = !1,
|
|
@@ -1767,9 +1767,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1767
1767
|
onFocus: T,
|
|
1768
1768
|
onBlur: R,
|
|
1769
1769
|
...E
|
|
1770
|
-
},
|
|
1770
|
+
}, M) => {
|
|
1771
1771
|
var Te;
|
|
1772
|
-
const B = k(null), xt = jr([
|
|
1772
|
+
const B = k(null), xt = jr([M, B]), [_t, J] = Ve(), [wt, D] = Ve(), re = k(80), Ee = k(-25), z = k(null), Se = k(30), ae = k(null), W = Jr({ id: e, prefix: `${dt}-` }), [Ce, Nt] = S(0), [Ie, Tt] = S(0), [Et, Re] = S(
|
|
1773
1773
|
!!(!f && b)
|
|
1774
1774
|
), St = `${t} error, ${b}`, O = ia({
|
|
1775
1775
|
className: n,
|
|
@@ -1778,14 +1778,14 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1778
1778
|
raw: o,
|
|
1779
1779
|
focusMode: d,
|
|
1780
1780
|
disabled: h,
|
|
1781
|
-
noBorder:
|
|
1781
|
+
noBorder: g,
|
|
1782
1782
|
mode: c,
|
|
1783
1783
|
rightElement: !!y,
|
|
1784
1784
|
leftElement: !!_
|
|
1785
1785
|
}), [A, Ct] = Kr({
|
|
1786
|
-
value:
|
|
1786
|
+
value: m,
|
|
1787
1787
|
initialControlledDelay: 20,
|
|
1788
|
-
defaultValue:
|
|
1788
|
+
defaultValue: u,
|
|
1789
1789
|
onChange: (C) => {
|
|
1790
1790
|
N && N({
|
|
1791
1791
|
target: {
|
|
@@ -1800,21 +1800,21 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1800
1800
|
}, $t = (C) => {
|
|
1801
1801
|
f && b && !A && Re(!1), R && R(C);
|
|
1802
1802
|
};
|
|
1803
|
-
return
|
|
1803
|
+
return V(() => {
|
|
1804
1804
|
J && J.width && Nt(J.width + 18 + 10);
|
|
1805
|
-
}, [J]),
|
|
1806
|
-
|
|
1807
|
-
}, [
|
|
1805
|
+
}, [J]), V(() => {
|
|
1806
|
+
D && D.width && Tt(D.width + 18 + 10);
|
|
1807
|
+
}, [D]), V(() => {
|
|
1808
1808
|
o || B && B.current && A !== void 0 && (B.current.style.height = "inherit", B.current.style.height = B.current.scrollHeight + "px");
|
|
1809
|
-
}, [A, o]),
|
|
1809
|
+
}, [A, o]), V(() => {
|
|
1810
1810
|
o || setTimeout(() => {
|
|
1811
1811
|
var C;
|
|
1812
|
-
(C =
|
|
1812
|
+
(C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1813
1813
|
"--av-text-area-wrapper-transition",
|
|
1814
1814
|
A ? "none" : "all 0.2s ease-out"
|
|
1815
1815
|
);
|
|
1816
1816
|
}, 0);
|
|
1817
|
-
}, [A, o]),
|
|
1817
|
+
}, [A, o]), V(() => {
|
|
1818
1818
|
var C, $e;
|
|
1819
1819
|
if (!o && B && B.current && A !== void 0) {
|
|
1820
1820
|
const { labelOffset: oe, helperTextOffset: ne, scrollHeight: Bt } = la({
|
|
@@ -1823,7 +1823,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1823
1823
|
currentLabelOffset: Ee.current,
|
|
1824
1824
|
currentHelperTextOffset: Se.current
|
|
1825
1825
|
});
|
|
1826
|
-
oe && (Ee.current = oe, (C =
|
|
1826
|
+
oe && (Ee.current = oe, (C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1827
1827
|
"--av-text-area-label",
|
|
1828
1828
|
`${oe}px`
|
|
1829
1829
|
)), ne && (Se.current = ne, ($e = ae == null ? void 0 : ae.current) == null || $e.style.setProperty(
|
|
@@ -1831,9 +1831,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1831
1831
|
`${ne}px`
|
|
1832
1832
|
)), re.current = Bt || re.current;
|
|
1833
1833
|
}
|
|
1834
|
-
}, [A, o]),
|
|
1834
|
+
}, [A, o]), D.width > 0 && ((Te = z == null ? void 0 : z.current) == null || Te.style.setProperty(
|
|
1835
1835
|
"--tw-translate-x",
|
|
1836
|
-
`${12 +
|
|
1836
|
+
`${12 + D.width + 5}px`
|
|
1837
1837
|
)), /* @__PURE__ */ v("div", { className: O.wrapper, children: [
|
|
1838
1838
|
/* @__PURE__ */ l(
|
|
1839
1839
|
"label",
|
|
@@ -1882,7 +1882,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1882
1882
|
!o && /* @__PURE__ */ l(
|
|
1883
1883
|
"label",
|
|
1884
1884
|
{
|
|
1885
|
-
ref:
|
|
1885
|
+
ref: z,
|
|
1886
1886
|
"aria-hidden": !0,
|
|
1887
1887
|
htmlFor: W,
|
|
1888
1888
|
className: `${O.visibleLabel}`,
|
|
@@ -1910,13 +1910,13 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1910
1910
|
] });
|
|
1911
1911
|
}
|
|
1912
1912
|
);
|
|
1913
|
-
|
|
1913
|
+
gt.displayName = "TextArea";
|
|
1914
1914
|
const ca = ({
|
|
1915
1915
|
mode: e = "light",
|
|
1916
1916
|
focusMode: t = "light",
|
|
1917
1917
|
radius: r = "small"
|
|
1918
1918
|
}) => {
|
|
1919
|
-
const { state: a, dispatch: o } = $(
|
|
1919
|
+
const { state: a, dispatch: o } = $(G), n = k(null), i = k(!1), c = (d) => {
|
|
1920
1920
|
d.preventDefault(), o({
|
|
1921
1921
|
type: qe
|
|
1922
1922
|
});
|
|
@@ -1943,31 +1943,31 @@ const ca = ({
|
|
|
1943
1943
|
streaming: t
|
|
1944
1944
|
}
|
|
1945
1945
|
});
|
|
1946
|
-
},
|
|
1946
|
+
}, Fe = (e) => {
|
|
1947
1947
|
X(e, !1), e({
|
|
1948
1948
|
type: q,
|
|
1949
1949
|
payload: {
|
|
1950
1950
|
message: {
|
|
1951
1951
|
role: he,
|
|
1952
|
-
content:
|
|
1952
|
+
content: Dt
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
1955
|
});
|
|
1956
1956
|
}, da = () => {
|
|
1957
|
-
const { state: e, dispatch: t } = $(
|
|
1957
|
+
const { state: e, dispatch: t } = $(G), { state: r, dispatch: a } = $(ve), [o, n] = S(""), { getAccessToken: i, user: c } = Z(), d = k(null), m = k(
|
|
1958
1958
|
null
|
|
1959
1959
|
);
|
|
1960
1960
|
x(() => {
|
|
1961
1961
|
(async () => {
|
|
1962
|
-
var
|
|
1962
|
+
var g;
|
|
1963
1963
|
if (!e || e.messages.length === 0) {
|
|
1964
|
-
(
|
|
1964
|
+
(g = m == null ? void 0 : m.current) == null || g.cancel();
|
|
1965
1965
|
return;
|
|
1966
1966
|
}
|
|
1967
1967
|
const h = e.messages[e.messages.length - 1];
|
|
1968
|
-
if (!(e.messages.length === 0 || h.message.role === K || h.message.role ===
|
|
1968
|
+
if (!(e.messages.length === 0 || h.message.role === K || h.message.role === zt || h.message.role === he || h.message.role === Ot))
|
|
1969
1969
|
try {
|
|
1970
|
-
const p = await
|
|
1970
|
+
const p = await Dr({
|
|
1971
1971
|
accessToken: await i(),
|
|
1972
1972
|
name: "generate",
|
|
1973
1973
|
data: {
|
|
@@ -1980,11 +1980,11 @@ const ca = ({
|
|
|
1980
1980
|
});
|
|
1981
1981
|
if (p && p.ok) {
|
|
1982
1982
|
const b = ke();
|
|
1983
|
-
|
|
1983
|
+
m.current = p.body.getReader();
|
|
1984
1984
|
const f = new TextDecoder();
|
|
1985
1985
|
for (; ; ) {
|
|
1986
1986
|
X(t, !0);
|
|
1987
|
-
const { done: y, value: _ } = await
|
|
1987
|
+
const { done: y, value: _ } = await m.current.read();
|
|
1988
1988
|
if (y) {
|
|
1989
1989
|
X(t, !1);
|
|
1990
1990
|
break;
|
|
@@ -2026,13 +2026,13 @@ const ca = ({
|
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
2028
|
} else
|
|
2029
|
-
|
|
2029
|
+
Fe(t);
|
|
2030
2030
|
} catch (p) {
|
|
2031
|
-
console.error(p),
|
|
2031
|
+
console.error(p), Fe(t);
|
|
2032
2032
|
}
|
|
2033
2033
|
})();
|
|
2034
2034
|
}, [e == null ? void 0 : e.messages]);
|
|
2035
|
-
const
|
|
2035
|
+
const u = async (h) => {
|
|
2036
2036
|
h.preventDefault(), t({
|
|
2037
2037
|
type: q,
|
|
2038
2038
|
payload: {
|
|
@@ -2044,8 +2044,8 @@ const ca = ({
|
|
|
2044
2044
|
}), n("");
|
|
2045
2045
|
};
|
|
2046
2046
|
return x(() => {
|
|
2047
|
-
if (r.
|
|
2048
|
-
const h = r.
|
|
2047
|
+
if (r.prompt !== "") {
|
|
2048
|
+
const h = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
|
|
2049
2049
|
h.indexOf(Ae) !== -1 ? navigator.clipboard.readText().then((p) => {
|
|
2050
2050
|
n(h.replace(Ae, p));
|
|
2051
2051
|
}) : n(h), d.current && d.current.focus(), a({
|
|
@@ -2054,8 +2054,8 @@ const ca = ({
|
|
|
2054
2054
|
}
|
|
2055
2055
|
}, [r, a]), x(() => {
|
|
2056
2056
|
e && e.usage === 0 && e.messages.length === 0 && d.current && d.current.focus();
|
|
2057
|
-
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit:
|
|
2058
|
-
|
|
2057
|
+
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ l(
|
|
2058
|
+
gt,
|
|
2059
2059
|
{
|
|
2060
2060
|
mode: "dark",
|
|
2061
2061
|
focusMode: "light",
|
|
@@ -2067,7 +2067,7 @@ const ca = ({
|
|
|
2067
2067
|
required: !0,
|
|
2068
2068
|
value: o,
|
|
2069
2069
|
onChange: (h) => n(h.target.value),
|
|
2070
|
-
onKeyDown: nr([["mod+Enter",
|
|
2070
|
+
onKeyDown: nr([["mod+Enter", u]]),
|
|
2071
2071
|
leftElement: /* @__PURE__ */ l(ca, {}),
|
|
2072
2072
|
rightElement: /* @__PURE__ */ l(
|
|
2073
2073
|
tt,
|
|
@@ -2077,19 +2077,19 @@ const ca = ({
|
|
|
2077
2077
|
type: "submit",
|
|
2078
2078
|
mode: "light",
|
|
2079
2079
|
focusMode: "light",
|
|
2080
|
-
children:
|
|
2080
|
+
children: Pt
|
|
2081
2081
|
}
|
|
2082
2082
|
)
|
|
2083
2083
|
}
|
|
2084
2084
|
) }) });
|
|
2085
|
-
},
|
|
2085
|
+
}, ma = () => {
|
|
2086
2086
|
const { dispatch: e, state: t } = $(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
|
|
2087
2087
|
loaded: !1
|
|
2088
|
-
}), i = "mt-2 flex justify-center rounded-md", c = (d,
|
|
2088
|
+
}), i = "mt-2 flex justify-center rounded-md", c = (d, m) => {
|
|
2089
2089
|
d.preventDefault(), e({
|
|
2090
2090
|
type: Ze,
|
|
2091
2091
|
payload: {
|
|
2092
|
-
|
|
2092
|
+
prompt: m
|
|
2093
2093
|
}
|
|
2094
2094
|
});
|
|
2095
2095
|
};
|
|
@@ -2112,7 +2112,7 @@ const ca = ({
|
|
|
2112
2112
|
d.status === 200 && (e({
|
|
2113
2113
|
type: Xe,
|
|
2114
2114
|
payload: {
|
|
2115
|
-
|
|
2115
|
+
prompts: d.data.tags || []
|
|
2116
2116
|
}
|
|
2117
2117
|
}), n({
|
|
2118
2118
|
loaded: !0
|
|
@@ -2120,19 +2120,19 @@ const ca = ({
|
|
|
2120
2120
|
} catch {
|
|
2121
2121
|
}
|
|
2122
2122
|
})();
|
|
2123
|
-
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(
|
|
2123
|
+
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(Vt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.prompts && t.prompts.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(Ht, { children: /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
|
|
2124
2124
|
tt,
|
|
2125
2125
|
{
|
|
2126
2126
|
noBorder: !0,
|
|
2127
2127
|
mode: "dark",
|
|
2128
2128
|
focusMode: "light",
|
|
2129
2129
|
size: "small",
|
|
2130
|
-
onClick: (
|
|
2130
|
+
onClick: (m) => c(m, d.content),
|
|
2131
2131
|
children: d.label
|
|
2132
2132
|
}
|
|
2133
|
-
) }) }, `
|
|
2134
|
-
},
|
|
2135
|
-
const { state: e } = $(
|
|
2133
|
+
) }) }, `prompt-button-${d.slot}`)) }) });
|
|
2134
|
+
}, ua = () => {
|
|
2135
|
+
const { state: e } = $(G), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
|
|
2136
2136
|
r ? "bottom-10" : "top-[245px]"
|
|
2137
2137
|
);
|
|
2138
2138
|
return x(() => {
|
|
@@ -2147,26 +2147,26 @@ const ca = ({
|
|
|
2147
2147
|
a
|
|
2148
2148
|
),
|
|
2149
2149
|
children: [
|
|
2150
|
-
/* @__PURE__ */ l(
|
|
2150
|
+
/* @__PURE__ */ l(ma, {}),
|
|
2151
2151
|
/* @__PURE__ */ l(da, {})
|
|
2152
2152
|
]
|
|
2153
2153
|
}
|
|
2154
2154
|
);
|
|
2155
2155
|
};
|
|
2156
2156
|
/*!
|
|
2157
|
-
@versini/ui-bubble v3.0.
|
|
2157
|
+
@versini/ui-bubble v3.0.4
|
|
2158
2158
|
© 2025 gizmette.com
|
|
2159
2159
|
*/
|
|
2160
2160
|
try {
|
|
2161
2161
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
2162
|
-
version: "3.0.
|
|
2163
|
-
buildTime: "01/04/2025
|
|
2162
|
+
version: "3.0.4",
|
|
2163
|
+
buildTime: "01/04/2025 07:31 PM EST",
|
|
2164
2164
|
homepage: "https://github.com/aversini/ui-components",
|
|
2165
2165
|
license: "MIT"
|
|
2166
2166
|
});
|
|
2167
2167
|
} catch {
|
|
2168
2168
|
}
|
|
2169
|
-
const
|
|
2169
|
+
const ga = "av-bubble", Ge = "av-button", te = "icon", ht = "button", me = "link", ha = ({
|
|
2170
2170
|
type: e,
|
|
2171
2171
|
size: t,
|
|
2172
2172
|
labelRight: r,
|
|
@@ -2176,7 +2176,7 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2176
2176
|
const n = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
2177
2177
|
switch (e) {
|
|
2178
2178
|
case ht:
|
|
2179
|
-
case
|
|
2179
|
+
case me:
|
|
2180
2180
|
return s({
|
|
2181
2181
|
[n]: t === "small",
|
|
2182
2182
|
[i]: t === "medium",
|
|
@@ -2204,9 +2204,9 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2204
2204
|
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2205
2205
|
switch (e) {
|
|
2206
2206
|
case ht:
|
|
2207
|
-
case
|
|
2207
|
+
case me:
|
|
2208
2208
|
return s({
|
|
2209
|
-
"text-center": e ===
|
|
2209
|
+
"text-center": e === me,
|
|
2210
2210
|
[o]: t === "small",
|
|
2211
2211
|
[n]: t === "medium",
|
|
2212
2212
|
[i]: t === "large"
|
|
@@ -2397,35 +2397,35 @@ const ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2397
2397
|
fullWidth: i,
|
|
2398
2398
|
size: c,
|
|
2399
2399
|
noBorder: d,
|
|
2400
|
-
labelRight:
|
|
2401
|
-
labelLeft:
|
|
2400
|
+
labelRight: m,
|
|
2401
|
+
labelLeft: u,
|
|
2402
2402
|
noBackground: h,
|
|
2403
|
-
variant:
|
|
2403
|
+
variant: g,
|
|
2404
2404
|
noTruncate: p,
|
|
2405
2405
|
align: b,
|
|
2406
2406
|
radius: f
|
|
2407
|
-
}) => (
|
|
2408
|
-
|
|
2407
|
+
}) => (g || (g = "primary"), r ? s(Ge, t) : s(
|
|
2408
|
+
Ge,
|
|
2409
2409
|
ba({
|
|
2410
2410
|
mode: a,
|
|
2411
|
-
variant:
|
|
2411
|
+
variant: g,
|
|
2412
2412
|
noBackground: h,
|
|
2413
2413
|
noTruncate: p
|
|
2414
2414
|
}),
|
|
2415
|
-
ya({ mode: a, noBackground: h, variant:
|
|
2415
|
+
ya({ mode: a, noBackground: h, variant: g }),
|
|
2416
2416
|
fa({ radius: f }),
|
|
2417
2417
|
ha({
|
|
2418
2418
|
type: e,
|
|
2419
2419
|
size: c,
|
|
2420
|
-
labelRight:
|
|
2421
|
-
labelLeft:
|
|
2420
|
+
labelRight: m,
|
|
2421
|
+
labelLeft: u,
|
|
2422
2422
|
align: b
|
|
2423
2423
|
}),
|
|
2424
|
-
pa({ type: e, size: c, labelRight:
|
|
2425
|
-
xa({ mode: a, variant:
|
|
2424
|
+
pa({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
2425
|
+
xa({ mode: a, variant: g, noBorder: d }),
|
|
2426
2426
|
_a({ focusMode: o }),
|
|
2427
|
-
ka({ mode: a, variant:
|
|
2428
|
-
va({ mode: a, variant:
|
|
2427
|
+
ka({ mode: a, variant: g, disabled: n }),
|
|
2428
|
+
va({ mode: a, variant: g, disabled: n }),
|
|
2429
2429
|
{
|
|
2430
2430
|
"w-full": i,
|
|
2431
2431
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -2459,10 +2459,10 @@ const bt = I.forwardRef(
|
|
|
2459
2459
|
type: i = "button",
|
|
2460
2460
|
raw: c = !1,
|
|
2461
2461
|
noBorder: d = !1,
|
|
2462
|
-
"aria-label":
|
|
2463
|
-
label:
|
|
2462
|
+
"aria-label": m,
|
|
2463
|
+
label: u,
|
|
2464
2464
|
size: h = "medium",
|
|
2465
|
-
labelRight:
|
|
2465
|
+
labelRight: g,
|
|
2466
2466
|
labelLeft: p,
|
|
2467
2467
|
noBackground: b = !1,
|
|
2468
2468
|
align: f = "center",
|
|
@@ -2480,7 +2480,7 @@ const bt = I.forwardRef(
|
|
|
2480
2480
|
className: n,
|
|
2481
2481
|
noBorder: d,
|
|
2482
2482
|
size: h,
|
|
2483
|
-
labelRight:
|
|
2483
|
+
labelRight: g,
|
|
2484
2484
|
labelLeft: p,
|
|
2485
2485
|
noBackground: b,
|
|
2486
2486
|
align: f,
|
|
@@ -2499,12 +2499,12 @@ const bt = I.forwardRef(
|
|
|
2499
2499
|
className: R,
|
|
2500
2500
|
disabled: t,
|
|
2501
2501
|
type: i,
|
|
2502
|
-
"aria-label":
|
|
2502
|
+
"aria-label": m || u,
|
|
2503
2503
|
...N,
|
|
2504
2504
|
children: [
|
|
2505
2505
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2506
2506
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2507
|
-
|
|
2507
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2508
2508
|
]
|
|
2509
2509
|
}
|
|
2510
2510
|
);
|
|
@@ -2518,7 +2518,7 @@ bt.displayName = "ButtonIcon";
|
|
|
2518
2518
|
try {
|
|
2519
2519
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2520
2520
|
version: "4.0.3",
|
|
2521
|
-
buildTime: "01/04/2025
|
|
2521
|
+
buildTime: "01/04/2025 07:31 PM EST",
|
|
2522
2522
|
homepage: "https://github.com/aversini/ui-components",
|
|
2523
2523
|
license: "MIT"
|
|
2524
2524
|
});
|
|
@@ -2535,10 +2535,10 @@ const Na = I.forwardRef(
|
|
|
2535
2535
|
type: i = "button",
|
|
2536
2536
|
raw: c = !1,
|
|
2537
2537
|
noBorder: d = !1,
|
|
2538
|
-
"aria-label":
|
|
2539
|
-
label:
|
|
2538
|
+
"aria-label": m,
|
|
2539
|
+
label: u,
|
|
2540
2540
|
size: h = "medium",
|
|
2541
|
-
labelRight:
|
|
2541
|
+
labelRight: g,
|
|
2542
2542
|
labelLeft: p,
|
|
2543
2543
|
noBackground: b = !1,
|
|
2544
2544
|
align: f = "center",
|
|
@@ -2556,7 +2556,7 @@ const Na = I.forwardRef(
|
|
|
2556
2556
|
className: n,
|
|
2557
2557
|
noBorder: d,
|
|
2558
2558
|
size: h,
|
|
2559
|
-
labelRight:
|
|
2559
|
+
labelRight: g,
|
|
2560
2560
|
labelLeft: p,
|
|
2561
2561
|
noBackground: b,
|
|
2562
2562
|
align: f,
|
|
@@ -2566,7 +2566,7 @@ const Na = I.forwardRef(
|
|
|
2566
2566
|
"text-copy-light": r === "dark" && !c,
|
|
2567
2567
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
2568
2568
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
2569
|
-
}),
|
|
2569
|
+
}), M = y ? s(
|
|
2570
2570
|
"relative",
|
|
2571
2571
|
"focus-within:static",
|
|
2572
2572
|
"focus-within:after:border-transparent",
|
|
@@ -2583,19 +2583,19 @@ const Na = I.forwardRef(
|
|
|
2583
2583
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
2584
2584
|
}
|
|
2585
2585
|
) : "";
|
|
2586
|
-
return /* @__PURE__ */ l("div", { className:
|
|
2586
|
+
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
2587
2587
|
xe,
|
|
2588
2588
|
{
|
|
2589
2589
|
ref: T,
|
|
2590
2590
|
className: R,
|
|
2591
2591
|
disabled: t,
|
|
2592
2592
|
type: i,
|
|
2593
|
-
"aria-label":
|
|
2593
|
+
"aria-label": m || u,
|
|
2594
2594
|
...N,
|
|
2595
2595
|
children: [
|
|
2596
2596
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2597
2597
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2598
|
-
|
|
2598
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2599
2599
|
]
|
|
2600
2600
|
}
|
|
2601
2601
|
) });
|
|
@@ -2613,13 +2613,13 @@ const yt = ({
|
|
|
2613
2613
|
semantic: c = !1,
|
|
2614
2614
|
...d
|
|
2615
2615
|
}) => {
|
|
2616
|
-
const
|
|
2616
|
+
const m = s(n, a);
|
|
2617
2617
|
return /* @__PURE__ */ v(Y, { children: [
|
|
2618
2618
|
/* @__PURE__ */ l(
|
|
2619
2619
|
"svg",
|
|
2620
2620
|
{
|
|
2621
2621
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2622
|
-
className:
|
|
2622
|
+
className: m,
|
|
2623
2623
|
viewBox: r || o,
|
|
2624
2624
|
fill: t || "currentColor",
|
|
2625
2625
|
role: "img",
|
|
@@ -2639,7 +2639,7 @@ const yt = ({
|
|
|
2639
2639
|
try {
|
|
2640
2640
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2641
2641
|
version: "4.0.0",
|
|
2642
|
-
buildTime: "01/04/2025
|
|
2642
|
+
buildTime: "01/04/2025 07:31 PM EST",
|
|
2643
2643
|
homepage: "https://github.com/aversini/ui-components",
|
|
2644
2644
|
license: "MIT"
|
|
2645
2645
|
});
|
|
@@ -2703,13 +2703,15 @@ const Ta = ({
|
|
|
2703
2703
|
try {
|
|
2704
2704
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2705
2705
|
version: "4.2.0",
|
|
2706
|
-
buildTime: "01/04/2025
|
|
2706
|
+
buildTime: "01/04/2025 07:31 PM EST",
|
|
2707
2707
|
homepage: "https://github.com/aversini/ui-components",
|
|
2708
2708
|
license: "MIT"
|
|
2709
2709
|
});
|
|
2710
2710
|
} catch {
|
|
2711
2711
|
}
|
|
2712
|
-
const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl",
|
|
2712
|
+
const Sa = ({ kind: e }) => s("p-4 max-w-xs sm:max-w-md md:max-w-2xl", {
|
|
2713
|
+
"lg:max-w-3xl": e === "left"
|
|
2714
|
+
}), Ca = ({ kind: e }) => s({
|
|
2713
2715
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
2714
2716
|
"bg-surface-accent": e === "right"
|
|
2715
2717
|
}), Ia = ({ kind: e }) => s(
|
|
@@ -2725,7 +2727,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2725
2727
|
className: t
|
|
2726
2728
|
}) => {
|
|
2727
2729
|
const r = s(
|
|
2728
|
-
|
|
2730
|
+
ga,
|
|
2729
2731
|
"flex items-start",
|
|
2730
2732
|
{
|
|
2731
2733
|
"flex-row-reverse": e === "right"
|
|
@@ -2733,7 +2735,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2733
2735
|
t
|
|
2734
2736
|
), a = s(
|
|
2735
2737
|
"flex flex-col empty:hidden",
|
|
2736
|
-
Sa(),
|
|
2738
|
+
Sa({ kind: e }),
|
|
2737
2739
|
Ia({ kind: e }),
|
|
2738
2740
|
Ca({ kind: e }),
|
|
2739
2741
|
Ra({ kind: e })
|
|
@@ -2757,27 +2759,27 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2757
2759
|
copyToClipboardFocusMode: i = "system",
|
|
2758
2760
|
copyToClipboardMode: c = "system"
|
|
2759
2761
|
}) => {
|
|
2760
|
-
const [d,
|
|
2761
|
-
|
|
2762
|
+
const [d, m] = S(!1), u = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), g = () => {
|
|
2763
|
+
m(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
2762
2764
|
};
|
|
2763
2765
|
return x(() => {
|
|
2764
2766
|
let p;
|
|
2765
2767
|
return d && (p = window.setTimeout(() => {
|
|
2766
|
-
|
|
2768
|
+
m(!1);
|
|
2767
2769
|
}, 3e3)), () => {
|
|
2768
2770
|
clearTimeout(p);
|
|
2769
2771
|
};
|
|
2770
|
-
}, [d]), /* @__PURE__ */ v("div", { className:
|
|
2772
|
+
}, [d]), /* @__PURE__ */ v("div", { className: u.wrapper, children: [
|
|
2771
2773
|
/* @__PURE__ */ v("div", { children: [
|
|
2772
|
-
/* @__PURE__ */ l("div", { className:
|
|
2773
|
-
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className:
|
|
2774
|
+
/* @__PURE__ */ l("div", { className: u.main, children: e }),
|
|
2775
|
+
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: u.footer, children: [
|
|
2774
2776
|
p,
|
|
2775
2777
|
": ",
|
|
2776
2778
|
a[p]
|
|
2777
2779
|
] }) }, `-${p}`) : null),
|
|
2778
2780
|
o && o
|
|
2779
2781
|
] }),
|
|
2780
|
-
h && /* @__PURE__ */ l("div", { className:
|
|
2782
|
+
h && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
|
|
2781
2783
|
bt,
|
|
2782
2784
|
{
|
|
2783
2785
|
noBorder: !0,
|
|
@@ -2786,13 +2788,13 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2786
2788
|
mode: c,
|
|
2787
2789
|
focusMode: i,
|
|
2788
2790
|
label: d ? "Copied to clipboard" : "Copy to clipboard",
|
|
2789
|
-
onClick:
|
|
2791
|
+
onClick: g,
|
|
2790
2792
|
disabled: d,
|
|
2791
2793
|
children: d ? /* @__PURE__ */ l(Ta, { size: "size-3" }) : /* @__PURE__ */ l(Ea, { size: "size-3" })
|
|
2792
2794
|
}
|
|
2793
2795
|
) })
|
|
2794
2796
|
] });
|
|
2795
|
-
}, We = "av-button", _e = "icon", we = "button",
|
|
2797
|
+
}, We = "av-button", _e = "icon", we = "button", ue = "link", Aa = ({
|
|
2796
2798
|
type: e,
|
|
2797
2799
|
size: t,
|
|
2798
2800
|
labelRight: r,
|
|
@@ -2802,7 +2804,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2802
2804
|
const n = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
2803
2805
|
switch (e) {
|
|
2804
2806
|
case we:
|
|
2805
|
-
case
|
|
2807
|
+
case ue:
|
|
2806
2808
|
return s({
|
|
2807
2809
|
[n]: t === "small",
|
|
2808
2810
|
[i]: t === "medium",
|
|
@@ -2830,9 +2832,9 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2830
2832
|
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2831
2833
|
switch (e) {
|
|
2832
2834
|
case we:
|
|
2833
|
-
case
|
|
2835
|
+
case ue:
|
|
2834
2836
|
return s({
|
|
2835
|
-
"text-center": e ===
|
|
2837
|
+
"text-center": e === ue,
|
|
2836
2838
|
[o]: t === "small",
|
|
2837
2839
|
[n]: t === "medium",
|
|
2838
2840
|
[i]: t === "large"
|
|
@@ -2844,7 +2846,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2844
2846
|
[i]: t === "large" && (r || a)
|
|
2845
2847
|
});
|
|
2846
2848
|
}
|
|
2847
|
-
},
|
|
2849
|
+
}, Ma = ({
|
|
2848
2850
|
mode: e,
|
|
2849
2851
|
noBackground: t,
|
|
2850
2852
|
noTruncate: r,
|
|
@@ -2880,7 +2882,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2880
2882
|
return s("not-prose text-copy-lighter", {
|
|
2881
2883
|
truncate: !r
|
|
2882
2884
|
});
|
|
2883
|
-
},
|
|
2885
|
+
}, za = ({
|
|
2884
2886
|
mode: e,
|
|
2885
2887
|
noBackground: t,
|
|
2886
2888
|
variant: r
|
|
@@ -2946,7 +2948,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2946
2948
|
});
|
|
2947
2949
|
if (r === "selected")
|
|
2948
2950
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2949
|
-
},
|
|
2951
|
+
}, Pa = ({
|
|
2950
2952
|
mode: e,
|
|
2951
2953
|
disabled: t,
|
|
2952
2954
|
variant: r
|
|
@@ -2976,7 +2978,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2976
2978
|
});
|
|
2977
2979
|
if (r === "selected")
|
|
2978
2980
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2979
|
-
},
|
|
2981
|
+
}, Da = ({
|
|
2980
2982
|
mode: e,
|
|
2981
2983
|
noBorder: t,
|
|
2982
2984
|
variant: r
|
|
@@ -3006,7 +3008,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3006
3008
|
});
|
|
3007
3009
|
if (r === "selected")
|
|
3008
3010
|
return "border border-border-selected-dark";
|
|
3009
|
-
},
|
|
3011
|
+
}, Va = ({
|
|
3010
3012
|
focusMode: e
|
|
3011
3013
|
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
3012
3014
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -3023,35 +3025,35 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3023
3025
|
fullWidth: i,
|
|
3024
3026
|
size: c,
|
|
3025
3027
|
noBorder: d,
|
|
3026
|
-
labelRight:
|
|
3027
|
-
labelLeft:
|
|
3028
|
+
labelRight: m,
|
|
3029
|
+
labelLeft: u,
|
|
3028
3030
|
noBackground: h,
|
|
3029
|
-
variant:
|
|
3031
|
+
variant: g,
|
|
3030
3032
|
noTruncate: p,
|
|
3031
3033
|
align: b,
|
|
3032
3034
|
radius: f
|
|
3033
|
-
}) => (
|
|
3035
|
+
}) => (g || (g = "primary"), r ? s(We, t) : s(
|
|
3034
3036
|
We,
|
|
3035
|
-
|
|
3037
|
+
Ma({
|
|
3036
3038
|
mode: a,
|
|
3037
|
-
variant:
|
|
3039
|
+
variant: g,
|
|
3038
3040
|
noBackground: h,
|
|
3039
3041
|
noTruncate: p
|
|
3040
3042
|
}),
|
|
3041
|
-
|
|
3043
|
+
za({ mode: a, noBackground: h, variant: g }),
|
|
3042
3044
|
Oa({ radius: f }),
|
|
3043
3045
|
Aa({
|
|
3044
3046
|
type: e,
|
|
3045
3047
|
size: c,
|
|
3046
|
-
labelRight:
|
|
3047
|
-
labelLeft:
|
|
3048
|
+
labelRight: m,
|
|
3049
|
+
labelLeft: u,
|
|
3048
3050
|
align: b
|
|
3049
3051
|
}),
|
|
3050
|
-
La({ type: e, size: c, labelRight:
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
Ua({ mode: a, variant:
|
|
3054
|
-
|
|
3052
|
+
La({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
3053
|
+
Da({ mode: a, variant: g, noBorder: d }),
|
|
3054
|
+
Va({ focusMode: o }),
|
|
3055
|
+
Ua({ mode: a, variant: g, disabled: n }),
|
|
3056
|
+
Pa({ mode: a, variant: g, disabled: n }),
|
|
3055
3057
|
{
|
|
3056
3058
|
"w-full": i,
|
|
3057
3059
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -3085,10 +3087,10 @@ const kt = I.forwardRef(
|
|
|
3085
3087
|
size: i = "medium",
|
|
3086
3088
|
raw: c = !1,
|
|
3087
3089
|
noBorder: d = !1,
|
|
3088
|
-
variant:
|
|
3089
|
-
noTruncate:
|
|
3090
|
+
variant: m = "primary",
|
|
3091
|
+
noTruncate: u = !1,
|
|
3090
3092
|
radius: h = "large",
|
|
3091
|
-
...
|
|
3093
|
+
...g
|
|
3092
3094
|
}, p) => {
|
|
3093
3095
|
const b = ft({
|
|
3094
3096
|
type: we,
|
|
@@ -3100,8 +3102,8 @@ const kt = I.forwardRef(
|
|
|
3100
3102
|
className: n,
|
|
3101
3103
|
size: i,
|
|
3102
3104
|
noBorder: d,
|
|
3103
|
-
variant:
|
|
3104
|
-
noTruncate:
|
|
3105
|
+
variant: m,
|
|
3106
|
+
noTruncate: u,
|
|
3105
3107
|
radius: h
|
|
3106
3108
|
});
|
|
3107
3109
|
return /* @__PURE__ */ l(
|
|
@@ -3110,7 +3112,7 @@ const kt = I.forwardRef(
|
|
|
3110
3112
|
ref: p,
|
|
3111
3113
|
className: b,
|
|
3112
3114
|
disabled: t,
|
|
3113
|
-
...
|
|
3115
|
+
...g,
|
|
3114
3116
|
children: e
|
|
3115
3117
|
}
|
|
3116
3118
|
);
|
|
@@ -3130,7 +3132,7 @@ try {
|
|
|
3130
3132
|
});
|
|
3131
3133
|
} catch {
|
|
3132
3134
|
}
|
|
3133
|
-
const
|
|
3135
|
+
const Fa = I.forwardRef(
|
|
3134
3136
|
({
|
|
3135
3137
|
children: e,
|
|
3136
3138
|
disabled: t = !1,
|
|
@@ -3141,10 +3143,10 @@ const Ga = I.forwardRef(
|
|
|
3141
3143
|
type: i = "button",
|
|
3142
3144
|
raw: c = !1,
|
|
3143
3145
|
noBorder: d = !1,
|
|
3144
|
-
"aria-label":
|
|
3145
|
-
label:
|
|
3146
|
+
"aria-label": m,
|
|
3147
|
+
label: u,
|
|
3146
3148
|
size: h = "medium",
|
|
3147
|
-
labelRight:
|
|
3149
|
+
labelRight: g,
|
|
3148
3150
|
labelLeft: p,
|
|
3149
3151
|
noBackground: b = !1,
|
|
3150
3152
|
align: f = "center",
|
|
@@ -3162,7 +3164,7 @@ const Ga = I.forwardRef(
|
|
|
3162
3164
|
className: n,
|
|
3163
3165
|
noBorder: d,
|
|
3164
3166
|
size: h,
|
|
3165
|
-
labelRight:
|
|
3167
|
+
labelRight: g,
|
|
3166
3168
|
labelLeft: p,
|
|
3167
3169
|
noBackground: b,
|
|
3168
3170
|
align: f,
|
|
@@ -3172,7 +3174,7 @@ const Ga = I.forwardRef(
|
|
|
3172
3174
|
"text-copy-light": r === "dark" && !c,
|
|
3173
3175
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
3174
3176
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
3175
|
-
}),
|
|
3177
|
+
}), M = y ? s(
|
|
3176
3178
|
"relative",
|
|
3177
3179
|
"focus-within:static",
|
|
3178
3180
|
"focus-within:after:border-transparent",
|
|
@@ -3189,28 +3191,28 @@ const Ga = I.forwardRef(
|
|
|
3189
3191
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
3190
3192
|
}
|
|
3191
3193
|
) : "";
|
|
3192
|
-
return /* @__PURE__ */ l("div", { className:
|
|
3194
|
+
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
3193
3195
|
Ne,
|
|
3194
3196
|
{
|
|
3195
3197
|
ref: T,
|
|
3196
3198
|
className: R,
|
|
3197
3199
|
disabled: t,
|
|
3198
3200
|
type: i,
|
|
3199
|
-
"aria-label":
|
|
3201
|
+
"aria-label": m || u,
|
|
3200
3202
|
...N,
|
|
3201
3203
|
children: [
|
|
3202
3204
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
3203
3205
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
3204
|
-
|
|
3206
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
3205
3207
|
]
|
|
3206
3208
|
}
|
|
3207
3209
|
) });
|
|
3208
3210
|
}
|
|
3209
3211
|
);
|
|
3210
|
-
|
|
3211
|
-
const
|
|
3212
|
+
Fa.displayName = "ButtonSort";
|
|
3213
|
+
const Ga = 200, Wa = ({
|
|
3212
3214
|
string: e,
|
|
3213
|
-
idealLength: t =
|
|
3215
|
+
idealLength: t = Ga
|
|
3214
3216
|
}) => {
|
|
3215
3217
|
if (e.length <= t)
|
|
3216
3218
|
return { string: e, isTruncated: !1 };
|
|
@@ -3267,10 +3269,10 @@ try {
|
|
|
3267
3269
|
const je = rt(
|
|
3268
3270
|
() => import(
|
|
3269
3271
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
3270
|
-
"./MessageAssistant.
|
|
3272
|
+
"./MessageAssistant.Dv5-gw8Q.js"
|
|
3271
3273
|
).then((e) => e.MessageAssistant)
|
|
3272
3274
|
), qa = () => {
|
|
3273
|
-
const { state: e } = $(
|
|
3275
|
+
const { state: e } = $(G);
|
|
3274
3276
|
return /* @__PURE__ */ v("div", { className: "space-y-6 mt-2", children: [
|
|
3275
3277
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
3276
3278
|
const { role: a, content: o, name: n, processingTime: i } = t.message;
|
|
@@ -3285,37 +3287,37 @@ const je = rt(
|
|
|
3285
3287
|
`${r}-${a}`
|
|
3286
3288
|
) : null;
|
|
3287
3289
|
}),
|
|
3288
|
-
|
|
3290
|
+
Ft(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
|
|
3289
3291
|
] });
|
|
3290
3292
|
}, Ka = () => {
|
|
3291
|
-
const { isAuthenticated: e } = Z(), { state: t } = $(
|
|
3293
|
+
const { isAuthenticated: e } = Z(), { state: t } = $(G), [r, a] = S(!1), [o, n] = dr(), i = Gt({
|
|
3292
3294
|
isAuthenticated: e,
|
|
3293
3295
|
extraClass: "rounded-b-md"
|
|
3294
|
-
}), c = k(!1), d =
|
|
3295
|
-
const
|
|
3296
|
-
if (
|
|
3297
|
-
const { scrollHeight: h, clientHeight:
|
|
3298
|
-
|
|
3296
|
+
}), c = k(!1), d = P(() => {
|
|
3297
|
+
const u = o.current;
|
|
3298
|
+
if (u) {
|
|
3299
|
+
const { scrollHeight: h, clientHeight: g, scrollTop: p } = u, b = h - g - p;
|
|
3300
|
+
u.scrollBy({
|
|
3299
3301
|
top: b,
|
|
3300
3302
|
behavior: "smooth"
|
|
3301
3303
|
});
|
|
3302
3304
|
}
|
|
3303
|
-
}, [o]),
|
|
3304
|
-
const
|
|
3305
|
-
if (
|
|
3306
|
-
const { scrollTop: h, scrollHeight:
|
|
3305
|
+
}, [o]), m = P(() => {
|
|
3306
|
+
const u = o.current;
|
|
3307
|
+
if (u) {
|
|
3308
|
+
const { scrollTop: h, scrollHeight: g, clientHeight: p } = u, b = g > p, f = h + p >= g - 1;
|
|
3307
3309
|
a(b && !f);
|
|
3308
3310
|
}
|
|
3309
3311
|
}, [o]);
|
|
3310
|
-
return
|
|
3311
|
-
n && n.width && t && !t.streaming &&
|
|
3312
|
-
}, [n, t,
|
|
3313
|
-
const
|
|
3314
|
-
if (
|
|
3315
|
-
return
|
|
3316
|
-
}, [
|
|
3317
|
-
t && t.streaming &&
|
|
3318
|
-
}, [t,
|
|
3312
|
+
return V(() => {
|
|
3313
|
+
n && n.width && t && !t.streaming && m();
|
|
3314
|
+
}, [n, t, m]), x(() => {
|
|
3315
|
+
const u = o.current;
|
|
3316
|
+
if (u)
|
|
3317
|
+
return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
|
|
3318
|
+
}, [m, o]), x(() => {
|
|
3319
|
+
t && t.streaming && m();
|
|
3320
|
+
}, [t, m]), x(() => {
|
|
3319
3321
|
t && (!c.current && t.streaming && d(), c.current = !!t.streaming);
|
|
3320
3322
|
}, [t, d]), /* @__PURE__ */ v("div", { className: i, ref: o, children: [
|
|
3321
3323
|
r && /* @__PURE__ */ l("div", { className: "bottom-44 z-40 fixed left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ l(
|
|
@@ -3345,31 +3347,31 @@ const je = rt(
|
|
|
3345
3347
|
}, Ja = rt(
|
|
3346
3348
|
() => import(
|
|
3347
3349
|
/* webpackChunkName: "LazyHeader" */
|
|
3348
|
-
"./HeaderToolbar.
|
|
3350
|
+
"./HeaderToolbar.B4yR6iL0.js"
|
|
3349
3351
|
)
|
|
3350
3352
|
);
|
|
3351
3353
|
function vt({ isComponent: e = !1 }) {
|
|
3352
3354
|
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] = Ue({
|
|
3353
|
-
key:
|
|
3355
|
+
key: Me + qt,
|
|
3354
3356
|
initialValue: ""
|
|
3355
3357
|
}), [i] = Ue({
|
|
3356
|
-
key:
|
|
3358
|
+
key: Me + Kt,
|
|
3357
3359
|
initialValue: j.ASC
|
|
3358
|
-
}), [c, d] = Q(
|
|
3360
|
+
}), [c, d] = Q(zr, {
|
|
3359
3361
|
id: ke(),
|
|
3360
3362
|
model: U,
|
|
3361
3363
|
engine: U,
|
|
3362
3364
|
usage: 0,
|
|
3363
3365
|
messages: [],
|
|
3364
|
-
|
|
3366
|
+
prompts: [],
|
|
3365
3367
|
isComponent: e
|
|
3366
|
-
}), [
|
|
3368
|
+
}), [m, u] = Q(Or, {
|
|
3367
3369
|
searchString: n,
|
|
3368
3370
|
sortedCell: "timestamp",
|
|
3369
3371
|
sortDirection: i
|
|
3370
|
-
}), [h,
|
|
3371
|
-
|
|
3372
|
-
|
|
3372
|
+
}), [h, g] = Q(Ur, {
|
|
3373
|
+
prompt: "",
|
|
3374
|
+
prompts: []
|
|
3373
3375
|
}), [p, b] = S({
|
|
3374
3376
|
version: "",
|
|
3375
3377
|
models: [],
|
|
@@ -3403,17 +3405,17 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3403
3405
|
var _;
|
|
3404
3406
|
(_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
|
|
3405
3407
|
}, 500);
|
|
3406
|
-
}), /* @__PURE__ */ l(
|
|
3407
|
-
|
|
3408
|
+
}), /* @__PURE__ */ l(G.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
|
|
3409
|
+
Vr.Provider,
|
|
3408
3410
|
{
|
|
3409
3411
|
value: {
|
|
3410
|
-
state:
|
|
3411
|
-
dispatch:
|
|
3412
|
+
state: m,
|
|
3413
|
+
dispatch: u
|
|
3412
3414
|
},
|
|
3413
3415
|
children: /* @__PURE__ */ v(
|
|
3414
3416
|
ve.Provider,
|
|
3415
3417
|
{
|
|
3416
|
-
value: { state: h, dispatch:
|
|
3418
|
+
value: { state: h, dispatch: g },
|
|
3417
3419
|
children: [
|
|
3418
3420
|
/* @__PURE__ */ l(
|
|
3419
3421
|
tr,
|
|
@@ -3439,7 +3441,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3439
3441
|
children: /* @__PURE__ */ l(Ka, {})
|
|
3440
3442
|
}
|
|
3441
3443
|
),
|
|
3442
|
-
/* @__PURE__ */ l(
|
|
3444
|
+
/* @__PURE__ */ l(ua, {})
|
|
3443
3445
|
]
|
|
3444
3446
|
}
|
|
3445
3447
|
)
|
|
@@ -3450,13 +3452,13 @@ vt.displayName = "App";
|
|
|
3450
3452
|
const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: vt }, Symbol.toStringTag, { value: "Module" }));
|
|
3451
3453
|
export {
|
|
3452
3454
|
so as App,
|
|
3453
|
-
|
|
3455
|
+
G as AppContext,
|
|
3454
3456
|
Ue as E,
|
|
3455
|
-
|
|
3457
|
+
Vr as HistoryContext,
|
|
3456
3458
|
ca as NewChatButton,
|
|
3457
|
-
|
|
3459
|
+
gt as Pe,
|
|
3460
|
+
ve as PromptsContext,
|
|
3458
3461
|
it as SERVICE_TYPES,
|
|
3459
|
-
ve as TagsContext,
|
|
3460
3462
|
ro as be,
|
|
3461
3463
|
j as f,
|
|
3462
3464
|
eo as ge,
|