@versini/sassysaint 5.5.11 → 5.5.13
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.CbBMiVHr.js → App.CgE9Asbd.js} +217 -192
- package/dist/chunks/{HeaderToolbar.CmGmS7yq.js → HeaderToolbar.C26uPJv0.js} +784 -805
- package/dist/chunks/{MarkdownWithExtra.bpTOaT-U.js → MarkdownWithExtra.wbV_UGsm.js} +8 -8
- package/dist/chunks/{MessageAssistant.C_sIDCZ4.js → MessageAssistant.CKmbS3S7.js} +6 -6
- package/dist/chunks/{index.CTyCRIB4.js → index.UQ480MwW.js} +66 -88
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as k, jsx as l, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { g as me, ACTION_RESTORE as
|
|
2
|
+
import { g as me, ACTION_RESTORE as $t, ACTION_MESSAGE as q, ROLE_ASSISTANT as J, ACTION_RESET as qe, ACTION_MODEL as Je, ACTION_ENGINE as Ke, ACTION_STREAMING as Qe, ACTION_SORT as zt, ACTION_SEARCH as Mt, ACTION_SET_TAGS as Xe, ACTION_RESET_TAGS as Ye, ACTION_TOGGLE_TAG as Ze, DEFAULT_AI_ENGINE as V, P as et, un as Z, ROLE_SYSTEM as Lt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_TAG as $e, TYPE_QUESTION as Vt, C as tt, SEND as Ht, ERROR_MESSAGE as Ut, ROLE_USER as le, L as Dt, j as Gt, isLastMessageFromRole as Pt, getMessageContaintWrapperClass as Ft, Logo as Wt, getMainPaddingClass as ze, r as jt, LOCAL_STORAGE_PREFIX as Me, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Jt } from "./index.UQ480MwW.js";
|
|
3
3
|
import i from "clsx";
|
|
4
|
-
import I, { useRef as v, useEffect as x, useCallback as
|
|
4
|
+
import I, { useRef as v, useEffect as x, useCallback as H, useSyncExternalStore as Kt, useState as S, useMemo as pe, useContext as A, useLayoutEffect as D, 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,
|
|
@@ -73,13 +73,13 @@ const Xt = ({
|
|
|
73
73
|
}
|
|
74
74
|
);
|
|
75
75
|
/*!
|
|
76
|
-
@versini/ui-header
|
|
76
|
+
@versini/ui-header v3.0.0
|
|
77
77
|
© 2025 gizmette.com
|
|
78
78
|
*/
|
|
79
79
|
try {
|
|
80
80
|
window.__VERSINI_UI_HEADER__ || (window.__VERSINI_UI_HEADER__ = {
|
|
81
|
-
version: "
|
|
82
|
-
buildTime: "01/
|
|
81
|
+
version: "3.0.0",
|
|
82
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
83
83
|
homepage: "https://github.com/aversini/ui-components",
|
|
84
84
|
license: "MIT"
|
|
85
85
|
});
|
|
@@ -158,7 +158,7 @@ function ir() {
|
|
|
158
158
|
const e = v(!1);
|
|
159
159
|
return x(() => (e.current = !0, () => {
|
|
160
160
|
e.current = !1;
|
|
161
|
-
}), []),
|
|
161
|
+
}), []), H(() => e.current, []);
|
|
162
162
|
}
|
|
163
163
|
function at(e, t) {
|
|
164
164
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
@@ -175,7 +175,7 @@ function Ve({
|
|
|
175
175
|
key: e,
|
|
176
176
|
initialValue: t
|
|
177
177
|
}) {
|
|
178
|
-
const r =
|
|
178
|
+
const r = Kt(lr, () => Oe(e)), a = H(
|
|
179
179
|
(s) => {
|
|
180
180
|
try {
|
|
181
181
|
const c = typeof s == "function" ? s(JSON.parse(r)) : s;
|
|
@@ -185,9 +185,9 @@ function Ve({
|
|
|
185
185
|
}
|
|
186
186
|
},
|
|
187
187
|
[e, r]
|
|
188
|
-
), o =
|
|
188
|
+
), o = H(() => {
|
|
189
189
|
a(t);
|
|
190
|
-
}, [t, a]), n =
|
|
190
|
+
}, [t, a]), n = H(() => {
|
|
191
191
|
a(null);
|
|
192
192
|
}, [a]);
|
|
193
193
|
return x(() => {
|
|
@@ -220,19 +220,19 @@ function dr(e) {
|
|
|
220
220
|
}), [s, e]), [a, o];
|
|
221
221
|
}
|
|
222
222
|
/*!
|
|
223
|
-
@versini/ui-table
|
|
223
|
+
@versini/ui-table v3.0.1
|
|
224
224
|
© 2025 gizmette.com
|
|
225
225
|
*/
|
|
226
226
|
try {
|
|
227
227
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
228
|
-
version: "
|
|
229
|
-
buildTime: "01/
|
|
228
|
+
version: "3.0.1",
|
|
229
|
+
buildTime: "01/03/2025 11:20 AM EST",
|
|
230
230
|
homepage: "https://github.com/aversini/ui-components",
|
|
231
231
|
license: "MIT"
|
|
232
232
|
});
|
|
233
233
|
} catch {
|
|
234
234
|
}
|
|
235
|
-
const ee = "thead", be = "tfoot",
|
|
235
|
+
const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
236
236
|
ASC: "asc",
|
|
237
237
|
DESC: "desc"
|
|
238
238
|
}, gr = ({
|
|
@@ -247,10 +247,14 @@ const ee = "thead", be = "tfoot", D = "tbody", j = {
|
|
|
247
247
|
{
|
|
248
248
|
"overflow-x-auto": !a && !o,
|
|
249
249
|
"overflow-y-scroll": a || o,
|
|
250
|
-
"bg-surface-darker
|
|
251
|
-
"bg-surface-light
|
|
252
|
-
"
|
|
253
|
-
"
|
|
250
|
+
"bg-surface-darker": e === "dark" || e === "system",
|
|
251
|
+
"bg-surface-light": e === "light" || e === "alt-system",
|
|
252
|
+
"dark:bg-surface-light": e === "system",
|
|
253
|
+
"dark:bg-surface-darker": e === "alt-system",
|
|
254
|
+
"text-copy-light": e === "dark",
|
|
255
|
+
"text-copy-dark": e === "light",
|
|
256
|
+
"text-copy-light dark:text-copy-dark": e === "system",
|
|
257
|
+
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
254
258
|
},
|
|
255
259
|
r
|
|
256
260
|
),
|
|
@@ -298,44 +302,52 @@ const ee = "thead", be = "tfoot", D = "tbody", j = {
|
|
|
298
302
|
cellWrapper: r
|
|
299
303
|
}) => r === ee || r === be ? i(
|
|
300
304
|
{
|
|
301
|
-
"bg-table-head-dark": e === "dark",
|
|
302
|
-
"bg-table-head-light": e === "light",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
305
|
+
"bg-table-head-dark": e === "dark" || e === "system",
|
|
306
|
+
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
307
|
+
"dark:bg-table-head-light": e === "system",
|
|
308
|
+
"dark:bg-table-head-dark": e === "alt-system"
|
|
305
309
|
},
|
|
306
310
|
t
|
|
307
311
|
) : i(
|
|
308
312
|
"border-b last:border-0",
|
|
309
313
|
{
|
|
310
|
-
"border-table-dark": e === "dark",
|
|
311
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": r ===
|
|
312
|
-
"border-table-light": e === "light",
|
|
313
|
-
"odd:bg-table-light-odd even:bg-table-light-even": r ===
|
|
314
|
-
"
|
|
315
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r ===
|
|
316
|
-
"
|
|
317
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r ===
|
|
314
|
+
"border-table-dark": e === "dark" || e === "system",
|
|
315
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": r === G && e === "dark",
|
|
316
|
+
"border-table-light": e === "light" || e === "alt-system",
|
|
317
|
+
"odd:bg-table-light-odd even:bg-table-light-even": r === G && e === "light",
|
|
318
|
+
"dark:border-table-light": e === "system",
|
|
319
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r === G && e === "system",
|
|
320
|
+
"dark:border-table-dark": e === "alt-system",
|
|
321
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === G && e === "alt-system"
|
|
318
322
|
},
|
|
319
323
|
t
|
|
320
324
|
), pr = ({
|
|
321
325
|
cellWrapper: e,
|
|
322
326
|
className: t,
|
|
323
327
|
compact: r,
|
|
324
|
-
mode: a
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
"text-
|
|
329
|
-
"
|
|
330
|
-
"
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
328
|
+
mode: a,
|
|
329
|
+
align: o
|
|
330
|
+
}) => ({
|
|
331
|
+
alignClasses: i({
|
|
332
|
+
"flex justify-start text-left": o === "left",
|
|
333
|
+
"flex justify-center text-center": o === "center",
|
|
334
|
+
"flex justify-end text-right": o === "right"
|
|
335
|
+
}),
|
|
336
|
+
mainClasses: i(
|
|
337
|
+
{
|
|
338
|
+
"text-copy-light": a === "dark" || a === "system",
|
|
339
|
+
"text-copy-dark": a === "light" || a === "alt-system",
|
|
340
|
+
"dark:text-copy-dark": a === "system",
|
|
341
|
+
"dark:text-copy-light": a === "alt-system",
|
|
342
|
+
"px-4 py-3": !r && (e === ee || e === be),
|
|
343
|
+
"p-4": !r && e === G,
|
|
344
|
+
"px-2 py-1.5": r
|
|
345
|
+
},
|
|
346
|
+
t
|
|
347
|
+
)
|
|
348
|
+
}), br = ({
|
|
337
349
|
buttonClassName: e
|
|
338
|
-
}) => i("rounded-none text-sm", e),
|
|
350
|
+
}) => i("rounded-none text-sm", e), He = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
|
|
339
351
|
type: e,
|
|
340
352
|
size: t,
|
|
341
353
|
labelRight: r,
|
|
@@ -577,8 +589,8 @@ const ee = "thead", be = "tfoot", D = "tbody", j = {
|
|
|
577
589
|
noTruncate: p,
|
|
578
590
|
align: b,
|
|
579
591
|
radius: f
|
|
580
|
-
}) => (m || (m = "primary"), r ? i(
|
|
581
|
-
|
|
592
|
+
}) => (m || (m = "primary"), r ? i(He, t) : i(
|
|
593
|
+
He,
|
|
582
594
|
kr({
|
|
583
595
|
mode: a,
|
|
584
596
|
variant: m,
|
|
@@ -622,13 +634,13 @@ const ee = "thead", be = "tfoot", D = "tbody", j = {
|
|
|
622
634
|
});
|
|
623
635
|
nt.displayName = "BaseButton";
|
|
624
636
|
/*!
|
|
625
|
-
@versini/ui-button
|
|
637
|
+
@versini/ui-button v4.0.0
|
|
626
638
|
© 2025 gizmette.com
|
|
627
639
|
*/
|
|
628
640
|
try {
|
|
629
641
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
630
|
-
version: "
|
|
631
|
-
buildTime: "01/
|
|
642
|
+
version: "4.0.0",
|
|
643
|
+
buildTime: "01/03/2025 11:20 AM EST",
|
|
632
644
|
homepage: "https://github.com/aversini/ui-components",
|
|
633
645
|
license: "MIT"
|
|
634
646
|
});
|
|
@@ -743,13 +755,13 @@ const fe = ({
|
|
|
743
755
|
] });
|
|
744
756
|
};
|
|
745
757
|
/*!
|
|
746
|
-
@versini/ui-svgicon
|
|
758
|
+
@versini/ui-svgicon v4.0.0
|
|
747
759
|
© 2025 gizmette.com
|
|
748
760
|
*/
|
|
749
761
|
try {
|
|
750
762
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
751
|
-
version: "
|
|
752
|
-
buildTime: "01/
|
|
763
|
+
version: "4.0.0",
|
|
764
|
+
buildTime: "01/03/2025 11:19 AM EST",
|
|
753
765
|
homepage: "https://github.com/aversini/ui-components",
|
|
754
766
|
license: "MIT"
|
|
755
767
|
});
|
|
@@ -835,19 +847,19 @@ const Cr = ({
|
|
|
835
847
|
}
|
|
836
848
|
);
|
|
837
849
|
/*!
|
|
838
|
-
@versini/ui-icons
|
|
850
|
+
@versini/ui-icons v4.0.0
|
|
839
851
|
© 2025 gizmette.com
|
|
840
852
|
*/
|
|
841
853
|
try {
|
|
842
854
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
843
|
-
version: "
|
|
844
|
-
buildTime: "01/
|
|
855
|
+
version: "4.0.0",
|
|
856
|
+
buildTime: "01/03/2025 11:19 AM EST",
|
|
845
857
|
homepage: "https://github.com/aversini/ui-components",
|
|
846
858
|
license: "MIT"
|
|
847
859
|
});
|
|
848
860
|
} catch {
|
|
849
861
|
}
|
|
850
|
-
const
|
|
862
|
+
const P = I.createContext({
|
|
851
863
|
mode: "light",
|
|
852
864
|
cellWrapper: "thead",
|
|
853
865
|
stickyHeader: !1,
|
|
@@ -874,7 +886,7 @@ const G = I.createContext({
|
|
|
874
886
|
stickyFooter: g
|
|
875
887
|
});
|
|
876
888
|
return /* @__PURE__ */ l(
|
|
877
|
-
|
|
889
|
+
P.Provider,
|
|
878
890
|
{
|
|
879
891
|
value: { mode: t, stickyHeader: d, stickyFooter: g, compact: a },
|
|
880
892
|
children: /* @__PURE__ */ l(
|
|
@@ -897,7 +909,7 @@ const G = I.createContext({
|
|
|
897
909
|
className: t,
|
|
898
910
|
...r
|
|
899
911
|
}) => {
|
|
900
|
-
const a =
|
|
912
|
+
const a = A(P);
|
|
901
913
|
a.cellWrapper = ee;
|
|
902
914
|
const o = ur({
|
|
903
915
|
className: t,
|
|
@@ -910,7 +922,7 @@ const G = I.createContext({
|
|
|
910
922
|
className: t,
|
|
911
923
|
...r
|
|
912
924
|
}) => {
|
|
913
|
-
const a =
|
|
925
|
+
const a = A(P);
|
|
914
926
|
a.cellWrapper = be;
|
|
915
927
|
const o = mr({
|
|
916
928
|
className: t,
|
|
@@ -919,32 +931,34 @@ const G = I.createContext({
|
|
|
919
931
|
});
|
|
920
932
|
return /* @__PURE__ */ l("tfoot", { className: o, ...r, children: e });
|
|
921
933
|
}, ao = ({ children: e, ...t }) => {
|
|
922
|
-
const r =
|
|
923
|
-
return r.cellWrapper =
|
|
934
|
+
const r = A(P);
|
|
935
|
+
return r.cellWrapper = G, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
924
936
|
}, oo = ({
|
|
925
937
|
children: e,
|
|
926
938
|
className: t,
|
|
927
939
|
...r
|
|
928
940
|
}) => {
|
|
929
|
-
const a =
|
|
941
|
+
const a = A(P), o = hr({
|
|
930
942
|
mode: a.mode,
|
|
931
943
|
cellWrapper: a.cellWrapper,
|
|
932
944
|
className: t
|
|
933
945
|
});
|
|
934
946
|
return /* @__PURE__ */ l("tr", { className: o, ...r, children: e });
|
|
935
|
-
},
|
|
947
|
+
}, Ar = ({
|
|
936
948
|
children: e,
|
|
937
949
|
component: t,
|
|
938
950
|
className: r,
|
|
939
|
-
|
|
951
|
+
align: a,
|
|
952
|
+
...o
|
|
940
953
|
}) => {
|
|
941
|
-
const
|
|
942
|
-
cellWrapper:
|
|
954
|
+
const n = A(P), s = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
|
|
955
|
+
cellWrapper: n.cellWrapper,
|
|
943
956
|
className: r,
|
|
944
|
-
mode:
|
|
945
|
-
compact:
|
|
957
|
+
mode: n.mode,
|
|
958
|
+
compact: n.compact,
|
|
959
|
+
align: a
|
|
946
960
|
});
|
|
947
|
-
return /* @__PURE__ */ l(
|
|
961
|
+
return a ? /* @__PURE__ */ l(s, { className: c, ...o, children: /* @__PURE__ */ l("div", { className: d, children: e }) }) : /* @__PURE__ */ l(s, { className: c, ...o, children: e });
|
|
948
962
|
}, no = ({
|
|
949
963
|
align: e,
|
|
950
964
|
children: t,
|
|
@@ -961,7 +975,7 @@ const G = I.createContext({
|
|
|
961
975
|
}) => {
|
|
962
976
|
const m = br({ buttonClassName: r });
|
|
963
977
|
return /* @__PURE__ */ l(
|
|
964
|
-
|
|
978
|
+
Ar,
|
|
965
979
|
{
|
|
966
980
|
component: o,
|
|
967
981
|
className: a,
|
|
@@ -992,25 +1006,25 @@ function Br(e, t = 0) {
|
|
|
992
1006
|
return (w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]]).toLowerCase();
|
|
993
1007
|
}
|
|
994
1008
|
let ie;
|
|
995
|
-
const
|
|
1009
|
+
const $r = new Uint8Array(16);
|
|
996
1010
|
function zr() {
|
|
997
1011
|
if (!ie) {
|
|
998
1012
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
999
1013
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1000
1014
|
ie = crypto.getRandomValues.bind(crypto);
|
|
1001
1015
|
}
|
|
1002
|
-
return ie(
|
|
1016
|
+
return ie($r);
|
|
1003
1017
|
}
|
|
1004
|
-
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
1018
|
+
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ue = { randomUUID: Mr };
|
|
1005
1019
|
function ke(e, t, r) {
|
|
1006
|
-
if (
|
|
1007
|
-
return
|
|
1020
|
+
if (Ue.randomUUID && !t && !e)
|
|
1021
|
+
return Ue.randomUUID();
|
|
1008
1022
|
e = e || {};
|
|
1009
1023
|
const a = e.random || (e.rng || zr)();
|
|
1010
1024
|
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Br(a);
|
|
1011
1025
|
}
|
|
1012
1026
|
const Lr = (e, t) => {
|
|
1013
|
-
if ((t == null ? void 0 : t.type) ===
|
|
1027
|
+
if ((t == null ? void 0 : t.type) === $t) {
|
|
1014
1028
|
const r = t.payload.messages.map((a) => ({
|
|
1015
1029
|
message: {
|
|
1016
1030
|
role: a.role,
|
|
@@ -1039,7 +1053,7 @@ const Lr = (e, t) => {
|
|
|
1039
1053
|
processingTime: n,
|
|
1040
1054
|
messageId: s
|
|
1041
1055
|
};
|
|
1042
|
-
if (r ===
|
|
1056
|
+
if (r === J) {
|
|
1043
1057
|
const d = e.messages.findIndex(
|
|
1044
1058
|
(g) => g.message.messageId === s
|
|
1045
1059
|
);
|
|
@@ -1087,7 +1101,7 @@ const Lr = (e, t) => {
|
|
|
1087
1101
|
messages: [],
|
|
1088
1102
|
isComponent: e.isComponent,
|
|
1089
1103
|
tags: e.tags
|
|
1090
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1104
|
+
} : (t == null ? void 0 : t.type) === Je ? {
|
|
1091
1105
|
id: e.id,
|
|
1092
1106
|
model: t.payload.model,
|
|
1093
1107
|
engine: e.engine,
|
|
@@ -1095,7 +1109,7 @@ const Lr = (e, t) => {
|
|
|
1095
1109
|
usage: t.payload.usage,
|
|
1096
1110
|
messages: e.messages,
|
|
1097
1111
|
isComponent: e.isComponent
|
|
1098
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1112
|
+
} : (t == null ? void 0 : t.type) === Ke ? {
|
|
1099
1113
|
...e,
|
|
1100
1114
|
engine: t.payload.engine
|
|
1101
1115
|
} : (t == null ? void 0 : t.type) === Qe ? {
|
|
@@ -1276,7 +1290,7 @@ const Lr = (e, t) => {
|
|
|
1276
1290
|
schema: z.SET_USER_PREFERENCES,
|
|
1277
1291
|
method: "setUserPreferences"
|
|
1278
1292
|
}
|
|
1279
|
-
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
1293
|
+
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Hr = async ({
|
|
1280
1294
|
query: e,
|
|
1281
1295
|
data: t,
|
|
1282
1296
|
headers: r = {}
|
|
@@ -1299,7 +1313,7 @@ const Lr = (e, t) => {
|
|
|
1299
1313
|
}) => {
|
|
1300
1314
|
const a = t != null && t.data ? t.data(r) : r;
|
|
1301
1315
|
try {
|
|
1302
|
-
const o = `Bearer ${e}`, n = await
|
|
1316
|
+
const o = `Bearer ${e}`, n = await Hr({
|
|
1303
1317
|
headers: {
|
|
1304
1318
|
authorization: o
|
|
1305
1319
|
},
|
|
@@ -1317,7 +1331,7 @@ const Lr = (e, t) => {
|
|
|
1317
1331
|
} catch (o) {
|
|
1318
1332
|
return console.error(o), { status: 500, data: [] };
|
|
1319
1333
|
}
|
|
1320
|
-
},
|
|
1334
|
+
}, Ur = async ({
|
|
1321
1335
|
accessToken: e,
|
|
1322
1336
|
name: t,
|
|
1323
1337
|
data: r,
|
|
@@ -1352,7 +1366,7 @@ const Lr = (e, t) => {
|
|
|
1352
1366
|
engine: V,
|
|
1353
1367
|
engines: []
|
|
1354
1368
|
}
|
|
1355
|
-
}),
|
|
1369
|
+
}), Dr = I.createContext({
|
|
1356
1370
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1357
1371
|
dispatch: () => {
|
|
1358
1372
|
}
|
|
@@ -1362,24 +1376,24 @@ const Lr = (e, t) => {
|
|
|
1362
1376
|
}
|
|
1363
1377
|
});
|
|
1364
1378
|
/*!
|
|
1365
|
-
@versini/ui-textarea
|
|
1379
|
+
@versini/ui-textarea v3.0.0
|
|
1366
1380
|
© 2025 gizmette.com
|
|
1367
1381
|
*/
|
|
1368
1382
|
try {
|
|
1369
1383
|
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
1370
|
-
version: "
|
|
1371
|
-
buildTime: "01/
|
|
1384
|
+
version: "3.0.0",
|
|
1385
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1372
1386
|
homepage: "https://github.com/aversini/ui-components",
|
|
1373
1387
|
license: "MIT"
|
|
1374
1388
|
});
|
|
1375
1389
|
} catch {
|
|
1376
1390
|
}
|
|
1377
|
-
const dt = "av-text-area",
|
|
1391
|
+
const dt = "av-text-area", Gr = "av-text-area-wrapper", se = "av-text-area-helper-text", Pr = "av-text-area__control--right", Fr = "av-text-area__control--left";
|
|
1378
1392
|
function Wr() {
|
|
1379
1393
|
const e = v(!1);
|
|
1380
1394
|
return x(() => (e.current = !0, () => {
|
|
1381
1395
|
e.current = !1;
|
|
1382
|
-
}), []),
|
|
1396
|
+
}), []), H(() => e.current, []);
|
|
1383
1397
|
}
|
|
1384
1398
|
function jr(e) {
|
|
1385
1399
|
return pe(() => e.every((t) => t == null) ? () => {
|
|
@@ -1399,7 +1413,7 @@ const qr = {
|
|
|
1399
1413
|
bottom: 0,
|
|
1400
1414
|
right: 0
|
|
1401
1415
|
};
|
|
1402
|
-
function
|
|
1416
|
+
function De(e) {
|
|
1403
1417
|
const t = Wr(), r = v(0), a = v(null), [o, n] = S(qr), s = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
1404
1418
|
const d = c[0];
|
|
1405
1419
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -1410,7 +1424,7 @@ function Pe(e) {
|
|
|
1410
1424
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
1411
1425
|
}), [s, e]), [a, o];
|
|
1412
1426
|
}
|
|
1413
|
-
function
|
|
1427
|
+
function Jr({
|
|
1414
1428
|
value: e,
|
|
1415
1429
|
defaultValue: t,
|
|
1416
1430
|
finalValue: r,
|
|
@@ -1429,7 +1443,7 @@ function Kr({
|
|
|
1429
1443
|
), s(!0)))();
|
|
1430
1444
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, g, !1];
|
|
1431
1445
|
}
|
|
1432
|
-
function
|
|
1446
|
+
function Kr(e) {
|
|
1433
1447
|
const t = Qt();
|
|
1434
1448
|
if (!e)
|
|
1435
1449
|
return t;
|
|
@@ -1470,7 +1484,7 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1470
1484
|
t({
|
|
1471
1485
|
type: ut
|
|
1472
1486
|
}), typeof e == "function" && e();
|
|
1473
|
-
},
|
|
1487
|
+
}, Ge = ({
|
|
1474
1488
|
children: e,
|
|
1475
1489
|
clearAnnouncementDelay: t,
|
|
1476
1490
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -1496,13 +1510,13 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1496
1510
|
onAnnouncementClear: n,
|
|
1497
1511
|
dispatch: s
|
|
1498
1512
|
}) => {
|
|
1499
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
1513
|
+
clearTimeout(t.current), r ? t.current = setTimeout(Ge, r, {
|
|
1500
1514
|
children: e,
|
|
1501
1515
|
clearAnnouncementDelay: a,
|
|
1502
1516
|
clearAnnouncementTimeoutRef: o,
|
|
1503
1517
|
onAnnouncementClear: n,
|
|
1504
1518
|
dispatch: s
|
|
1505
|
-
}) :
|
|
1519
|
+
}) : Ge({
|
|
1506
1520
|
children: e,
|
|
1507
1521
|
clearAnnouncementDelay: a,
|
|
1508
1522
|
clearAnnouncementTimeoutRef: o,
|
|
@@ -1556,13 +1570,13 @@ function ea({
|
|
|
1556
1570
|
);
|
|
1557
1571
|
}
|
|
1558
1572
|
/*!
|
|
1559
|
-
@versini/ui-liveregion v1.
|
|
1573
|
+
@versini/ui-liveregion v1.3.0
|
|
1560
1574
|
© 2025 gizmette.com
|
|
1561
1575
|
*/
|
|
1562
1576
|
try {
|
|
1563
1577
|
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
1564
|
-
version: "1.
|
|
1565
|
-
buildTime: "01/
|
|
1578
|
+
version: "1.3.0",
|
|
1579
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1566
1580
|
homepage: "https://github.com/aversini/ui-components",
|
|
1567
1581
|
license: "MIT"
|
|
1568
1582
|
});
|
|
@@ -1668,7 +1682,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1668
1682
|
}) => {
|
|
1669
1683
|
const u = r ? e : i(
|
|
1670
1684
|
"relative flex w-full flex-col justify-center",
|
|
1671
|
-
|
|
1685
|
+
Gr,
|
|
1672
1686
|
e
|
|
1673
1687
|
), h = r ? i(t) : i(
|
|
1674
1688
|
dt,
|
|
@@ -1695,7 +1709,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1695
1709
|
raw: r,
|
|
1696
1710
|
mode: c,
|
|
1697
1711
|
disabled: o
|
|
1698
|
-
}), f = r ? void 0 : i(
|
|
1712
|
+
}), f = r ? void 0 : i(Pr, "absolute"), y = r ? void 0 : i(Fr, "absolute");
|
|
1699
1713
|
return {
|
|
1700
1714
|
wrapper: u,
|
|
1701
1715
|
textArea: h,
|
|
@@ -1747,7 +1761,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1747
1761
|
...E
|
|
1748
1762
|
}, M) => {
|
|
1749
1763
|
var Ne;
|
|
1750
|
-
const B = v(null), xt = jr([M, B]), [_t,
|
|
1764
|
+
const B = v(null), xt = jr([M, B]), [_t, K] = De(), [wt, U] = De(), re = v(80), Ee = v(-25), L = v(null), Se = v(30), ae = v(null), W = Kr({ id: e, prefix: `${dt}-` }), [Ce, Tt] = S(0), [Ie, Nt] = S(0), [Et, Re] = S(
|
|
1751
1765
|
!!(!f && b)
|
|
1752
1766
|
), St = `${t} error, ${b}`, O = sa({
|
|
1753
1767
|
className: n,
|
|
@@ -1760,7 +1774,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1760
1774
|
mode: c,
|
|
1761
1775
|
rightElement: !!y,
|
|
1762
1776
|
leftElement: !!_
|
|
1763
|
-
}), [
|
|
1777
|
+
}), [$, Ct] = Jr({
|
|
1764
1778
|
value: g,
|
|
1765
1779
|
initialControlledDelay: 20,
|
|
1766
1780
|
defaultValue: u,
|
|
@@ -1775,26 +1789,26 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1775
1789
|
Ct(C.target.value);
|
|
1776
1790
|
}, Rt = (C) => {
|
|
1777
1791
|
f && b && Re(!0), N && N(C);
|
|
1778
|
-
},
|
|
1779
|
-
f && b &&
|
|
1792
|
+
}, At = (C) => {
|
|
1793
|
+
f && b && !$ && Re(!1), R && R(C);
|
|
1780
1794
|
};
|
|
1781
|
-
return
|
|
1782
|
-
|
|
1783
|
-
}, [
|
|
1784
|
-
|
|
1785
|
-
}, [
|
|
1786
|
-
o || B && B.current &&
|
|
1787
|
-
}, [
|
|
1795
|
+
return D(() => {
|
|
1796
|
+
K && K.width && Tt(K.width + 18 + 10);
|
|
1797
|
+
}, [K]), D(() => {
|
|
1798
|
+
U && U.width && Nt(U.width + 18 + 10);
|
|
1799
|
+
}, [U]), D(() => {
|
|
1800
|
+
o || B && B.current && $ !== void 0 && (B.current.style.height = "inherit", B.current.style.height = B.current.scrollHeight + "px");
|
|
1801
|
+
}, [$, o]), D(() => {
|
|
1788
1802
|
o || setTimeout(() => {
|
|
1789
1803
|
var C;
|
|
1790
1804
|
(C = L == null ? void 0 : L.current) == null || C.style.setProperty(
|
|
1791
1805
|
"--av-text-area-wrapper-transition",
|
|
1792
|
-
|
|
1806
|
+
$ ? "none" : "all 0.2s ease-out"
|
|
1793
1807
|
);
|
|
1794
1808
|
}, 0);
|
|
1795
|
-
}, [
|
|
1796
|
-
var C,
|
|
1797
|
-
if (!o && B && B.current &&
|
|
1809
|
+
}, [$, o]), D(() => {
|
|
1810
|
+
var C, Ae;
|
|
1811
|
+
if (!o && B && B.current && $ !== void 0) {
|
|
1798
1812
|
const { labelOffset: oe, helperTextOffset: ne, scrollHeight: Bt } = la({
|
|
1799
1813
|
scrollHeight: B.current.scrollHeight,
|
|
1800
1814
|
currentHeight: re.current,
|
|
@@ -1804,14 +1818,14 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1804
1818
|
oe && (Ee.current = oe, (C = L == null ? void 0 : L.current) == null || C.style.setProperty(
|
|
1805
1819
|
"--av-text-area-label",
|
|
1806
1820
|
`${oe}px`
|
|
1807
|
-
)), ne && (Se.current = ne, (
|
|
1821
|
+
)), ne && (Se.current = ne, (Ae = ae == null ? void 0 : ae.current) == null || Ae.style.setProperty(
|
|
1808
1822
|
"--av-text-area-helper-text",
|
|
1809
1823
|
`${ne}px`
|
|
1810
1824
|
)), re.current = Bt || re.current;
|
|
1811
1825
|
}
|
|
1812
|
-
}, [
|
|
1826
|
+
}, [$, o]), U.width > 0 && ((Ne = L == null ? void 0 : L.current) == null || Ne.style.setProperty(
|
|
1813
1827
|
"--tw-translate-x",
|
|
1814
|
-
`${12 +
|
|
1828
|
+
`${12 + U.width + 5}px`
|
|
1815
1829
|
)), /* @__PURE__ */ k("div", { className: O.wrapper, children: [
|
|
1816
1830
|
/* @__PURE__ */ l(
|
|
1817
1831
|
"label",
|
|
@@ -1850,10 +1864,10 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1850
1864
|
paddingLeft: Ie
|
|
1851
1865
|
}
|
|
1852
1866
|
},
|
|
1853
|
-
value:
|
|
1867
|
+
value: $,
|
|
1854
1868
|
onChange: It,
|
|
1855
1869
|
onFocus: Rt,
|
|
1856
|
-
onBlur:
|
|
1870
|
+
onBlur: At,
|
|
1857
1871
|
...E
|
|
1858
1872
|
}
|
|
1859
1873
|
),
|
|
@@ -1894,7 +1908,7 @@ const ca = ({
|
|
|
1894
1908
|
focusMode: t = "light",
|
|
1895
1909
|
radius: r = "small"
|
|
1896
1910
|
}) => {
|
|
1897
|
-
const { state: a, dispatch: o } =
|
|
1911
|
+
const { state: a, dispatch: o } = A(F), n = v(null), s = v(!1), c = (d) => {
|
|
1898
1912
|
d.preventDefault(), o({
|
|
1899
1913
|
type: qe
|
|
1900
1914
|
});
|
|
@@ -1921,18 +1935,18 @@ const ca = ({
|
|
|
1921
1935
|
streaming: t
|
|
1922
1936
|
}
|
|
1923
1937
|
});
|
|
1924
|
-
},
|
|
1938
|
+
}, Pe = (e) => {
|
|
1925
1939
|
X(e, !1), e({
|
|
1926
1940
|
type: q,
|
|
1927
1941
|
payload: {
|
|
1928
1942
|
message: {
|
|
1929
1943
|
role: he,
|
|
1930
|
-
content:
|
|
1944
|
+
content: Ut
|
|
1931
1945
|
}
|
|
1932
1946
|
}
|
|
1933
1947
|
});
|
|
1934
1948
|
}, da = () => {
|
|
1935
|
-
const { state: e, dispatch: t } =
|
|
1949
|
+
const { state: e, dispatch: t } = A(F), { state: r, dispatch: a } = A(ve), [o, n] = S(""), { getAccessToken: s, user: c } = Z(), d = v(null), g = v(
|
|
1936
1950
|
null
|
|
1937
1951
|
);
|
|
1938
1952
|
x(() => {
|
|
@@ -1943,9 +1957,9 @@ const ca = ({
|
|
|
1943
1957
|
return;
|
|
1944
1958
|
}
|
|
1945
1959
|
const h = e.messages[e.messages.length - 1];
|
|
1946
|
-
if (!(e.messages.length === 0 || h.message.role ===
|
|
1960
|
+
if (!(e.messages.length === 0 || h.message.role === J || h.message.role === Lt || h.message.role === he || h.message.role === Ot))
|
|
1947
1961
|
try {
|
|
1948
|
-
const p = await
|
|
1962
|
+
const p = await Ur({
|
|
1949
1963
|
accessToken: await s(),
|
|
1950
1964
|
name: "generate",
|
|
1951
1965
|
data: {
|
|
@@ -1973,7 +1987,7 @@ const ca = ({
|
|
|
1973
1987
|
T.substring(N + Be.length)
|
|
1974
1988
|
);
|
|
1975
1989
|
t({
|
|
1976
|
-
type:
|
|
1990
|
+
type: Je,
|
|
1977
1991
|
payload: {
|
|
1978
1992
|
model: E.model,
|
|
1979
1993
|
usage: E.usage
|
|
@@ -1983,7 +1997,7 @@ const ca = ({
|
|
|
1983
1997
|
payload: {
|
|
1984
1998
|
message: {
|
|
1985
1999
|
content: R,
|
|
1986
|
-
role:
|
|
2000
|
+
role: J,
|
|
1987
2001
|
messageId: b,
|
|
1988
2002
|
processingTime: E.processingTime,
|
|
1989
2003
|
name: E.name
|
|
@@ -1997,16 +2011,16 @@ const ca = ({
|
|
|
1997
2011
|
payload: {
|
|
1998
2012
|
message: {
|
|
1999
2013
|
content: T,
|
|
2000
|
-
role:
|
|
2014
|
+
role: J,
|
|
2001
2015
|
messageId: b
|
|
2002
2016
|
}
|
|
2003
2017
|
}
|
|
2004
2018
|
});
|
|
2005
2019
|
}
|
|
2006
2020
|
} else
|
|
2007
|
-
|
|
2021
|
+
Pe(t);
|
|
2008
2022
|
} catch (p) {
|
|
2009
|
-
console.error(p),
|
|
2023
|
+
console.error(p), Pe(t);
|
|
2010
2024
|
}
|
|
2011
2025
|
})();
|
|
2012
2026
|
}, [e == null ? void 0 : e.messages]);
|
|
@@ -2024,8 +2038,8 @@ const ca = ({
|
|
|
2024
2038
|
return x(() => {
|
|
2025
2039
|
if (r.tag !== "") {
|
|
2026
2040
|
const h = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
|
|
2027
|
-
h.indexOf(
|
|
2028
|
-
n(h.replace(
|
|
2041
|
+
h.indexOf($e) !== -1 ? navigator.clipboard.readText().then((p) => {
|
|
2042
|
+
n(h.replace($e, p));
|
|
2029
2043
|
}) : n(h), d.current && d.current.focus(), a({
|
|
2030
2044
|
type: Ye
|
|
2031
2045
|
});
|
|
@@ -2055,13 +2069,13 @@ const ca = ({
|
|
|
2055
2069
|
type: "submit",
|
|
2056
2070
|
mode: "light",
|
|
2057
2071
|
focusMode: "light",
|
|
2058
|
-
children:
|
|
2072
|
+
children: Ht
|
|
2059
2073
|
}
|
|
2060
2074
|
)
|
|
2061
2075
|
}
|
|
2062
2076
|
) }) });
|
|
2063
2077
|
}, ga = () => {
|
|
2064
|
-
const { dispatch: e, state: t } =
|
|
2078
|
+
const { dispatch: e, state: t } = A(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
|
|
2065
2079
|
loaded: !1
|
|
2066
2080
|
}), s = "mt-2 flex justify-center rounded-md", c = (d, g) => {
|
|
2067
2081
|
d.preventDefault(), e({
|
|
@@ -2098,7 +2112,7 @@ const ca = ({
|
|
|
2098
2112
|
} catch {
|
|
2099
2113
|
}
|
|
2100
2114
|
})();
|
|
2101
|
-
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(
|
|
2115
|
+
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(Dt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.tags && t.tags.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(Gt, { children: /* @__PURE__ */ l("div", { className: s, children: /* @__PURE__ */ l(
|
|
2102
2116
|
tt,
|
|
2103
2117
|
{
|
|
2104
2118
|
noBorder: !0,
|
|
@@ -2110,7 +2124,7 @@ const ca = ({
|
|
|
2110
2124
|
}
|
|
2111
2125
|
) }) }, `tag-button-${d.slot}`)) }) });
|
|
2112
2126
|
}, ua = () => {
|
|
2113
|
-
const { state: e } =
|
|
2127
|
+
const { state: e } = A(F), t = v(!1), r = window.innerWidth < 403, [a, o] = S(
|
|
2114
2128
|
r ? "bottom-10" : "top-[245px]"
|
|
2115
2129
|
);
|
|
2116
2130
|
return x(() => {
|
|
@@ -2132,13 +2146,13 @@ const ca = ({
|
|
|
2132
2146
|
);
|
|
2133
2147
|
};
|
|
2134
2148
|
/*!
|
|
2135
|
-
@versini/ui-bubble
|
|
2149
|
+
@versini/ui-bubble v3.0.0
|
|
2136
2150
|
© 2025 gizmette.com
|
|
2137
2151
|
*/
|
|
2138
2152
|
try {
|
|
2139
2153
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
2140
|
-
version: "
|
|
2141
|
-
buildTime: "01/
|
|
2154
|
+
version: "3.0.0",
|
|
2155
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
2142
2156
|
homepage: "https://github.com/aversini/ui-components",
|
|
2143
2157
|
license: "MIT"
|
|
2144
2158
|
});
|
|
@@ -2494,13 +2508,13 @@ const bt = I.forwardRef(
|
|
|
2494
2508
|
);
|
|
2495
2509
|
bt.displayName = "ButtonIcon";
|
|
2496
2510
|
/*!
|
|
2497
|
-
@versini/ui-button
|
|
2511
|
+
@versini/ui-button v4.0.0
|
|
2498
2512
|
© 2025 gizmette.com
|
|
2499
2513
|
*/
|
|
2500
2514
|
try {
|
|
2501
2515
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2502
|
-
version: "
|
|
2503
|
-
buildTime: "01/
|
|
2516
|
+
version: "4.0.0",
|
|
2517
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
2504
2518
|
homepage: "https://github.com/aversini/ui-components",
|
|
2505
2519
|
license: "MIT"
|
|
2506
2520
|
});
|
|
@@ -2615,13 +2629,13 @@ const yt = ({
|
|
|
2615
2629
|
] });
|
|
2616
2630
|
};
|
|
2617
2631
|
/*!
|
|
2618
|
-
@versini/ui-svgicon
|
|
2632
|
+
@versini/ui-svgicon v4.0.0
|
|
2619
2633
|
© 2025 gizmette.com
|
|
2620
2634
|
*/
|
|
2621
2635
|
try {
|
|
2622
2636
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2623
|
-
version: "
|
|
2624
|
-
buildTime: "01/
|
|
2637
|
+
version: "4.0.0",
|
|
2638
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
2625
2639
|
homepage: "https://github.com/aversini/ui-components",
|
|
2626
2640
|
license: "MIT"
|
|
2627
2641
|
});
|
|
@@ -2672,13 +2686,13 @@ const Na = ({
|
|
|
2672
2686
|
}
|
|
2673
2687
|
);
|
|
2674
2688
|
/*!
|
|
2675
|
-
@versini/ui-icons
|
|
2689
|
+
@versini/ui-icons v4.0.0
|
|
2676
2690
|
© 2025 gizmette.com
|
|
2677
2691
|
*/
|
|
2678
2692
|
try {
|
|
2679
2693
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2680
|
-
version: "
|
|
2681
|
-
buildTime: "01/
|
|
2694
|
+
version: "4.0.0",
|
|
2695
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
2682
2696
|
homepage: "https://github.com/aversini/ui-components",
|
|
2683
2697
|
license: "MIT"
|
|
2684
2698
|
});
|
|
@@ -2695,7 +2709,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2695
2709
|
), Ra = ({ kind: e }) => i("rounded-b-xl", {
|
|
2696
2710
|
"rounded-tr-xl": e === "left",
|
|
2697
2711
|
"rounded-tl-xl": e === "right"
|
|
2698
|
-
}),
|
|
2712
|
+
}), Aa = ({
|
|
2699
2713
|
kind: e,
|
|
2700
2714
|
className: t
|
|
2701
2715
|
}) => {
|
|
@@ -2732,7 +2746,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2732
2746
|
copyToClipboardFocusMode: s = "system",
|
|
2733
2747
|
copyToClipboardMode: c = "system"
|
|
2734
2748
|
}) => {
|
|
2735
|
-
const [d, g] = S(!1), u =
|
|
2749
|
+
const [d, g] = S(!1), u = Aa({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), m = () => {
|
|
2736
2750
|
g(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
2737
2751
|
};
|
|
2738
2752
|
return x(() => {
|
|
@@ -2767,7 +2781,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2767
2781
|
}
|
|
2768
2782
|
) })
|
|
2769
2783
|
] });
|
|
2770
|
-
}, We = "av-button", _e = "icon", we = "button", ue = "link",
|
|
2784
|
+
}, We = "av-button", _e = "icon", we = "button", ue = "link", $a = ({
|
|
2771
2785
|
type: e,
|
|
2772
2786
|
size: t,
|
|
2773
2787
|
labelRight: r,
|
|
@@ -2925,7 +2939,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2925
2939
|
});
|
|
2926
2940
|
if (r === "selected")
|
|
2927
2941
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2928
|
-
},
|
|
2942
|
+
}, Ha = ({
|
|
2929
2943
|
mode: e,
|
|
2930
2944
|
disabled: t,
|
|
2931
2945
|
variant: r
|
|
@@ -2955,7 +2969,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2955
2969
|
});
|
|
2956
2970
|
if (r === "selected")
|
|
2957
2971
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2958
|
-
},
|
|
2972
|
+
}, Ua = ({
|
|
2959
2973
|
mode: e,
|
|
2960
2974
|
noBorder: t,
|
|
2961
2975
|
variant: r
|
|
@@ -2985,7 +2999,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2985
2999
|
});
|
|
2986
3000
|
if (r === "selected")
|
|
2987
3001
|
return "border border-border-selected-dark";
|
|
2988
|
-
},
|
|
3002
|
+
}, Da = ({
|
|
2989
3003
|
focusMode: e
|
|
2990
3004
|
}) => i("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2991
3005
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -3019,7 +3033,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3019
3033
|
}),
|
|
3020
3034
|
La({ mode: a, noBackground: h, variant: m }),
|
|
3021
3035
|
Oa({ radius: f }),
|
|
3022
|
-
|
|
3036
|
+
$a({
|
|
3023
3037
|
type: e,
|
|
3024
3038
|
size: c,
|
|
3025
3039
|
labelRight: g,
|
|
@@ -3027,16 +3041,16 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3027
3041
|
align: b
|
|
3028
3042
|
}),
|
|
3029
3043
|
za({ type: e, size: c, labelRight: g, labelLeft: u }),
|
|
3030
|
-
|
|
3031
|
-
|
|
3044
|
+
Ua({ mode: a, variant: m, noBorder: d }),
|
|
3045
|
+
Da({ focusMode: o }),
|
|
3032
3046
|
Va({ mode: a, variant: m, disabled: n }),
|
|
3033
|
-
|
|
3047
|
+
Ha({ mode: a, variant: m, disabled: n }),
|
|
3034
3048
|
{
|
|
3035
3049
|
"w-full": s,
|
|
3036
3050
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
3037
3051
|
},
|
|
3038
3052
|
t
|
|
3039
|
-
)),
|
|
3053
|
+
)), Ga = (e, t, r) => {
|
|
3040
3054
|
var a;
|
|
3041
3055
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
3042
3056
|
}, Te = I.forwardRef((e, t) => {
|
|
@@ -3046,7 +3060,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3046
3060
|
{
|
|
3047
3061
|
ref: t,
|
|
3048
3062
|
onClick: (n) => {
|
|
3049
|
-
|
|
3063
|
+
Ga(n, a, r);
|
|
3050
3064
|
},
|
|
3051
3065
|
...o
|
|
3052
3066
|
}
|
|
@@ -3097,19 +3111,19 @@ const kt = I.forwardRef(
|
|
|
3097
3111
|
);
|
|
3098
3112
|
kt.displayName = "Button";
|
|
3099
3113
|
/*!
|
|
3100
|
-
@versini/ui-button
|
|
3114
|
+
@versini/ui-button v4.0.0
|
|
3101
3115
|
© 2025 gizmette.com
|
|
3102
3116
|
*/
|
|
3103
3117
|
try {
|
|
3104
3118
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3105
|
-
version: "
|
|
3106
|
-
buildTime: "01/
|
|
3119
|
+
version: "4.0.0",
|
|
3120
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
3107
3121
|
homepage: "https://github.com/aversini/ui-components",
|
|
3108
3122
|
license: "MIT"
|
|
3109
3123
|
});
|
|
3110
3124
|
} catch {
|
|
3111
3125
|
}
|
|
3112
|
-
const
|
|
3126
|
+
const Pa = I.forwardRef(
|
|
3113
3127
|
({
|
|
3114
3128
|
children: e,
|
|
3115
3129
|
disabled: t = !1,
|
|
@@ -3186,7 +3200,7 @@ const Ga = I.forwardRef(
|
|
|
3186
3200
|
) });
|
|
3187
3201
|
}
|
|
3188
3202
|
);
|
|
3189
|
-
|
|
3203
|
+
Pa.displayName = "ButtonSort";
|
|
3190
3204
|
const Fa = 200, Wa = ({
|
|
3191
3205
|
string: e,
|
|
3192
3206
|
idealLength: t = Fa
|
|
@@ -3231,13 +3245,13 @@ const Fa = 200, Wa = ({
|
|
|
3231
3245
|
] });
|
|
3232
3246
|
};
|
|
3233
3247
|
/*!
|
|
3234
|
-
@versini/ui-truncate
|
|
3248
|
+
@versini/ui-truncate v3.0.0
|
|
3235
3249
|
© 2025 gizmette.com
|
|
3236
3250
|
*/
|
|
3237
3251
|
try {
|
|
3238
3252
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
3239
|
-
version: "
|
|
3240
|
-
buildTime: "01/
|
|
3253
|
+
version: "3.0.0",
|
|
3254
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
3241
3255
|
homepage: "https://github.com/aversini/ui-components",
|
|
3242
3256
|
license: "MIT"
|
|
3243
3257
|
});
|
|
@@ -3246,14 +3260,14 @@ try {
|
|
|
3246
3260
|
const je = rt(
|
|
3247
3261
|
() => import(
|
|
3248
3262
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
3249
|
-
"./MessageAssistant.
|
|
3263
|
+
"./MessageAssistant.CKmbS3S7.js"
|
|
3250
3264
|
).then((e) => e.MessageAssistant)
|
|
3251
3265
|
), qa = () => {
|
|
3252
|
-
const { state: e } =
|
|
3266
|
+
const { state: e } = A(F);
|
|
3253
3267
|
return /* @__PURE__ */ k("div", { className: "space-y-6 mt-2", children: [
|
|
3254
3268
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
3255
3269
|
const { role: a, content: o, name: n, processingTime: s } = t.message;
|
|
3256
|
-
return (a ===
|
|
3270
|
+
return (a === J || a === he) && o ? /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { name: n, processingTime: s, children: o }) }, `${r}-${a}`) : a === le && o ? /* @__PURE__ */ l(
|
|
3257
3271
|
Ba,
|
|
3258
3272
|
{
|
|
3259
3273
|
kind: "right",
|
|
@@ -3264,13 +3278,13 @@ const je = rt(
|
|
|
3264
3278
|
`${r}-${a}`
|
|
3265
3279
|
) : null;
|
|
3266
3280
|
}),
|
|
3267
|
-
|
|
3281
|
+
Pt(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
|
|
3268
3282
|
] });
|
|
3269
|
-
},
|
|
3270
|
-
const { isAuthenticated: e } = Z(), { state: t } =
|
|
3283
|
+
}, Ja = () => {
|
|
3284
|
+
const { isAuthenticated: e } = Z(), { state: t } = A(F), [r, a] = S(!1), [o, n] = dr(), s = Ft({
|
|
3271
3285
|
isAuthenticated: e,
|
|
3272
3286
|
extraClass: "rounded-b-md"
|
|
3273
|
-
}), c = v(!1), d =
|
|
3287
|
+
}), c = v(!1), d = H(() => {
|
|
3274
3288
|
const u = o.current;
|
|
3275
3289
|
if (u) {
|
|
3276
3290
|
const { scrollHeight: h, clientHeight: m, scrollTop: p } = u, b = h - m - p;
|
|
@@ -3279,14 +3293,14 @@ const je = rt(
|
|
|
3279
3293
|
behavior: "smooth"
|
|
3280
3294
|
});
|
|
3281
3295
|
}
|
|
3282
|
-
}, [o]), g =
|
|
3296
|
+
}, [o]), g = H(() => {
|
|
3283
3297
|
const u = o.current;
|
|
3284
3298
|
if (u) {
|
|
3285
3299
|
const { scrollTop: h, scrollHeight: m, clientHeight: p } = u, b = m > p, f = h + p >= m - 1;
|
|
3286
3300
|
a(b && !f);
|
|
3287
3301
|
}
|
|
3288
3302
|
}, [o]);
|
|
3289
|
-
return
|
|
3303
|
+
return D(() => {
|
|
3290
3304
|
n && n.width && t && !t.streaming && g();
|
|
3291
3305
|
}, [n, t, g]), x(() => {
|
|
3292
3306
|
const u = o.current;
|
|
@@ -3300,20 +3314,31 @@ const je = rt(
|
|
|
3300
3314
|
r && /* @__PURE__ */ l("div", { className: "bottom-44 z-40 fixed left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ l(
|
|
3301
3315
|
et,
|
|
3302
3316
|
{
|
|
3303
|
-
className:
|
|
3317
|
+
className: i(
|
|
3318
|
+
"dark:bg-slate-50 dark:hover:bg-slate-300 dark:active:bg-slate-400",
|
|
3319
|
+
"bg-slate-500 hover:bg-slate-600 active:bg-slate-700"
|
|
3320
|
+
),
|
|
3321
|
+
noBorder: !0,
|
|
3304
3322
|
size: "medium",
|
|
3305
3323
|
mode: "dark",
|
|
3306
3324
|
onClick: d,
|
|
3307
|
-
children: /* @__PURE__ */ l(
|
|
3325
|
+
children: /* @__PURE__ */ l(
|
|
3326
|
+
Zt,
|
|
3327
|
+
{
|
|
3328
|
+
monotone: !0,
|
|
3329
|
+
size: "size-4",
|
|
3330
|
+
className: "dark:text-copy-dark text-copy-lighter"
|
|
3331
|
+
}
|
|
3332
|
+
)
|
|
3308
3333
|
}
|
|
3309
3334
|
) }),
|
|
3310
3335
|
/* @__PURE__ */ l(Wt, {}),
|
|
3311
3336
|
e && /* @__PURE__ */ l(qa, {})
|
|
3312
3337
|
] });
|
|
3313
|
-
},
|
|
3338
|
+
}, Ka = rt(
|
|
3314
3339
|
() => import(
|
|
3315
3340
|
/* webpackChunkName: "LazyHeader" */
|
|
3316
|
-
"./HeaderToolbar.
|
|
3341
|
+
"./HeaderToolbar.C26uPJv0.js"
|
|
3317
3342
|
)
|
|
3318
3343
|
);
|
|
3319
3344
|
function vt({ isComponent: e = !1 }) {
|
|
@@ -3321,7 +3346,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3321
3346
|
key: Me + qt,
|
|
3322
3347
|
initialValue: ""
|
|
3323
3348
|
}), [s] = Ve({
|
|
3324
|
-
key: Me +
|
|
3349
|
+
key: Me + Jt,
|
|
3325
3350
|
initialValue: j.ASC
|
|
3326
3351
|
}), [c, d] = Q(Lr, {
|
|
3327
3352
|
id: ke(),
|
|
@@ -3357,7 +3382,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3357
3382
|
}
|
|
3358
3383
|
});
|
|
3359
3384
|
t.current = !1, y.status === 200 && (b(y.data), d({
|
|
3360
|
-
type:
|
|
3385
|
+
type: Ke,
|
|
3361
3386
|
payload: {
|
|
3362
3387
|
engine: y.data.engine
|
|
3363
3388
|
}
|
|
@@ -3372,7 +3397,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3372
3397
|
(_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
|
|
3373
3398
|
}, 500);
|
|
3374
3399
|
}), /* @__PURE__ */ l(F.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
|
|
3375
|
-
|
|
3400
|
+
Dr.Provider,
|
|
3376
3401
|
{
|
|
3377
3402
|
value: {
|
|
3378
3403
|
state: g,
|
|
@@ -3393,7 +3418,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3393
3418
|
className: ze({
|
|
3394
3419
|
extraClass: "mt-5"
|
|
3395
3420
|
}),
|
|
3396
|
-
children: o && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(
|
|
3421
|
+
children: o && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Ka, {}) })
|
|
3397
3422
|
}
|
|
3398
3423
|
),
|
|
3399
3424
|
/* @__PURE__ */ l(
|
|
@@ -3404,7 +3429,7 @@ function vt({ isComponent: e = !1 }) {
|
|
|
3404
3429
|
}),
|
|
3405
3430
|
noMargin: !0,
|
|
3406
3431
|
noPadding: !0,
|
|
3407
|
-
children: /* @__PURE__ */ l(
|
|
3432
|
+
children: /* @__PURE__ */ l(Ja, {})
|
|
3408
3433
|
}
|
|
3409
3434
|
),
|
|
3410
3435
|
/* @__PURE__ */ l(ua, {})
|
|
@@ -3420,19 +3445,19 @@ export {
|
|
|
3420
3445
|
io as App,
|
|
3421
3446
|
F as AppContext,
|
|
3422
3447
|
Ve as E,
|
|
3423
|
-
|
|
3424
|
-
Pr as HistoryContext,
|
|
3448
|
+
Dr as HistoryContext,
|
|
3425
3449
|
ca as NewChatButton,
|
|
3450
|
+
mt as Pe,
|
|
3426
3451
|
st as SERVICE_TYPES,
|
|
3427
3452
|
ve as TagsContext,
|
|
3428
|
-
j as _,
|
|
3429
3453
|
ro as be,
|
|
3430
|
-
|
|
3454
|
+
j as f,
|
|
3431
3455
|
eo as ge,
|
|
3432
3456
|
to as he,
|
|
3433
|
-
|
|
3434
|
-
Ba as le,
|
|
3457
|
+
Ar as le,
|
|
3458
|
+
Ba as le$1,
|
|
3435
3459
|
ao as me,
|
|
3436
3460
|
ct as serviceCall,
|
|
3437
|
-
oo as ue
|
|
3461
|
+
oo as ue,
|
|
3462
|
+
no as ye
|
|
3438
3463
|
};
|