@versini/sassysaint 5.4.13 → 5.4.15
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/{LazyApp.DNOGYuzJ.js → LazyApp.CmWxSgb_.js} +398 -387
- package/dist/chunks/{LazyHeader.oCAx75zT.js → LazyHeader.CmyI3orp.js} +123 -117
- package/dist/chunks/{LazyMarkdownWithExtra.F2tZ4gOI.js → LazyMarkdownWithExtra.bTU0zWSE.js} +747 -739
- package/dist/chunks/{LazyMessageAssistant.L4L_m5nw.js → LazyMessageAssistant.BkIqe55j.js} +11 -11
- package/dist/chunks/{index.CxzLMGVa.js → index.D8QVMbN9.js} +764 -855
- package/dist/chunks/{index.Ck3nAtox.js → index.Dn9p043U.js} +339 -303
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { g as O, R as L, CARDS as
|
|
3
|
-
import { serviceCall as D, SERVICE_TYPES as V, E as ce, ce as
|
|
2
|
+
import { g as O, R as L, CARDS as x, renderDataAsList as oe, pluralize as he, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as z, C as F, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.D8QVMbN9.js";
|
|
3
|
+
import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as we, be as nr, oe as $, ge as sr, ne as ir, f as U, Le as He, TagsContext as cr, h as Ge } from "./index.Dn9p043U.js";
|
|
4
4
|
import * as f from "react";
|
|
5
5
|
import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as P, useEffect as H } from "react";
|
|
6
6
|
import k from "clsx";
|
|
@@ -126,7 +126,7 @@ const ht = ({
|
|
|
126
126
|
/* @__PURE__ */ o("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
|
-
),
|
|
129
|
+
), xr = ({
|
|
130
130
|
className: e,
|
|
131
131
|
viewBox: t,
|
|
132
132
|
title: r,
|
|
@@ -175,7 +175,7 @@ const ht = ({
|
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
177
|
}
|
|
178
|
-
),
|
|
178
|
+
), Nr = ({
|
|
179
179
|
className: e,
|
|
180
180
|
viewBox: t,
|
|
181
181
|
title: r,
|
|
@@ -289,7 +289,7 @@ const Ee = f.createContext({
|
|
|
289
289
|
strategy: "fixed",
|
|
290
290
|
middleware: [dr({ mainAxis: 10 }), ur(), mr()],
|
|
291
291
|
whileElementsMounted: hr
|
|
292
|
-
}),
|
|
292
|
+
}), N = it(R, {
|
|
293
293
|
event: "mousedown",
|
|
294
294
|
toggle: !0,
|
|
295
295
|
ignoreMouse: !1
|
|
@@ -303,7 +303,7 @@ const Ee = f.createContext({
|
|
|
303
303
|
listRef: v,
|
|
304
304
|
onMatch: l ? m : void 0,
|
|
305
305
|
activeIndex: h
|
|
306
|
-
}), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: B } = dt([
|
|
306
|
+
}), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: B } = dt([N, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Ot = De ? {
|
|
307
307
|
noInternalClick: De,
|
|
308
308
|
focusMode: s,
|
|
309
309
|
mode: i
|
|
@@ -428,26 +428,26 @@ const Sr = ({ className: e, ...t }) => {
|
|
|
428
428
|
return /* @__PURE__ */ o("div", { className: r, ...t });
|
|
429
429
|
};
|
|
430
430
|
/*!
|
|
431
|
-
@versini/ui-menu v2.0.
|
|
431
|
+
@versini/ui-menu v2.0.6
|
|
432
432
|
© 2024 gizmette.com
|
|
433
433
|
*/
|
|
434
434
|
try {
|
|
435
435
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
436
|
-
version: "2.0.
|
|
437
|
-
buildTime: "12/30/2024
|
|
436
|
+
version: "2.0.6",
|
|
437
|
+
buildTime: "12/30/2024 07:48 PM EST",
|
|
438
438
|
homepage: "https://github.com/aversini/ui-components",
|
|
439
439
|
license: "MIT"
|
|
440
440
|
});
|
|
441
441
|
} catch {
|
|
442
442
|
}
|
|
443
443
|
/*!
|
|
444
|
-
@versini/ui-togglegroup v2.0.
|
|
444
|
+
@versini/ui-togglegroup v2.0.5
|
|
445
445
|
© 2024 gizmette.com
|
|
446
446
|
*/
|
|
447
447
|
try {
|
|
448
448
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
449
|
-
version: "2.0.
|
|
450
|
-
buildTime: "12/30/2024
|
|
449
|
+
version: "2.0.5",
|
|
450
|
+
buildTime: "12/30/2024 07:48 PM EST",
|
|
451
451
|
homepage: "https://github.com/aversini/ui-components",
|
|
452
452
|
license: "MIT"
|
|
453
453
|
});
|
|
@@ -689,7 +689,7 @@ function bt(e) {
|
|
|
689
689
|
const t = f.useContext(Ur);
|
|
690
690
|
return e || t || "ltr";
|
|
691
691
|
}
|
|
692
|
-
var
|
|
692
|
+
var xe = "rovingFocusGroup.onEntryFocus", jr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Kr] = Dr(be), [Wr, yt] = ze(
|
|
693
693
|
be,
|
|
694
694
|
[Kr]
|
|
695
695
|
), [Yr, qr] = Wr(be), kt = f.forwardRef(
|
|
@@ -714,9 +714,9 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
714
714
|
onChange: g
|
|
715
715
|
}), [T, C] = f.useState(!1), w = Le(l), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
|
|
716
716
|
return f.useEffect(() => {
|
|
717
|
-
const
|
|
718
|
-
if (
|
|
719
|
-
return
|
|
717
|
+
const N = b.current;
|
|
718
|
+
if (N)
|
|
719
|
+
return N.addEventListener(xe, w), () => N.removeEventListener(xe, w);
|
|
720
720
|
}, [w]), /* @__PURE__ */ o(
|
|
721
721
|
Yr,
|
|
722
722
|
{
|
|
@@ -726,16 +726,16 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
726
726
|
loop: n,
|
|
727
727
|
currentTabStopId: d,
|
|
728
728
|
onItemFocus: f.useCallback(
|
|
729
|
-
(
|
|
729
|
+
(N) => v(N),
|
|
730
730
|
[v]
|
|
731
731
|
),
|
|
732
732
|
onItemShiftTab: f.useCallback(() => C(!0), []),
|
|
733
733
|
onFocusableItemAdd: f.useCallback(
|
|
734
|
-
() => R((
|
|
734
|
+
() => R((N) => N + 1),
|
|
735
735
|
[]
|
|
736
736
|
),
|
|
737
737
|
onFocusableItemRemove: f.useCallback(
|
|
738
|
-
() => R((
|
|
738
|
+
() => R((N) => N - 1),
|
|
739
739
|
[]
|
|
740
740
|
),
|
|
741
741
|
children: /* @__PURE__ */ o(
|
|
@@ -749,11 +749,11 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
749
749
|
onMouseDown: K(e.onMouseDown, () => {
|
|
750
750
|
A.current = !0;
|
|
751
751
|
}),
|
|
752
|
-
onFocus: K(e.onFocus, (
|
|
752
|
+
onFocus: K(e.onFocus, (N) => {
|
|
753
753
|
const le = !A.current;
|
|
754
|
-
if (
|
|
755
|
-
const de = new CustomEvent(
|
|
756
|
-
if (
|
|
754
|
+
if (N.target === N.currentTarget && le && !T) {
|
|
755
|
+
const de = new CustomEvent(xe, jr);
|
|
756
|
+
if (N.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
|
|
757
757
|
const X = S().filter((B) => B.focusable), ye = X.find((B) => B.active), ke = X.find((B) => B.id === d), Ce = [ye, ke, ...X].filter(
|
|
758
758
|
Boolean
|
|
759
759
|
).map((B) => B.ref.current);
|
|
@@ -850,7 +850,7 @@ function wt(e, t = !1) {
|
|
|
850
850
|
function eo(e, t) {
|
|
851
851
|
return e.map((r, a) => e[(t + a) % e.length]);
|
|
852
852
|
}
|
|
853
|
-
var to = kt, ro = Tt, oo = "Toggle",
|
|
853
|
+
var to = kt, ro = Tt, oo = "Toggle", xt = f.forwardRef((e, t) => {
|
|
854
854
|
const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, c] = pe({
|
|
855
855
|
prop: r,
|
|
856
856
|
onChange: n,
|
|
@@ -871,8 +871,8 @@ var to = kt, ro = Tt, oo = "Toggle", Nt = f.forwardRef((e, t) => {
|
|
|
871
871
|
}
|
|
872
872
|
);
|
|
873
873
|
});
|
|
874
|
-
|
|
875
|
-
var Q = "ToggleGroup", [
|
|
874
|
+
xt.displayName = oo;
|
|
875
|
+
var Q = "ToggleGroup", [Nt, ha] = ze(Q, [
|
|
876
876
|
yt
|
|
877
877
|
]), Et = yt(), Pe = E.forwardRef((e, t) => {
|
|
878
878
|
const { type: r, ...a } = e;
|
|
@@ -883,7 +883,7 @@ var Q = "ToggleGroup", [xt, ha] = ze(Q, [
|
|
|
883
883
|
throw new Error(`Missing prop \`type\` expected on \`${Q}\``);
|
|
884
884
|
});
|
|
885
885
|
Pe.displayName = Q;
|
|
886
|
-
var [It, St] =
|
|
886
|
+
var [It, St] = Nt(Q), ao = E.forwardRef((e, t) => {
|
|
887
887
|
const {
|
|
888
888
|
value: r,
|
|
889
889
|
defaultValue: a,
|
|
@@ -937,7 +937,7 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
|
937
937
|
);
|
|
938
938
|
});
|
|
939
939
|
Pe.displayName = Q;
|
|
940
|
-
var [so, io] =
|
|
940
|
+
var [so, io] = Nt(Q), _t = E.forwardRef(
|
|
941
941
|
(e, t) => {
|
|
942
942
|
const {
|
|
943
943
|
__scopeToggleGroup: r,
|
|
@@ -981,7 +981,7 @@ var Ke = E.forwardRef(
|
|
|
981
981
|
(e, t) => {
|
|
982
982
|
const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = i.type === "single" ? s : void 0;
|
|
983
983
|
return /* @__PURE__ */ o(
|
|
984
|
-
|
|
984
|
+
xt,
|
|
985
985
|
{
|
|
986
986
|
...c,
|
|
987
987
|
...n,
|
|
@@ -1097,13 +1097,13 @@ const At = E.createContext({
|
|
|
1097
1097
|
) });
|
|
1098
1098
|
};
|
|
1099
1099
|
/*!
|
|
1100
|
-
@versini/ui-panel v1.2.
|
|
1100
|
+
@versini/ui-panel v1.2.13
|
|
1101
1101
|
© 2024 gizmette.com
|
|
1102
1102
|
*/
|
|
1103
1103
|
try {
|
|
1104
1104
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1105
|
-
version: "1.2.
|
|
1106
|
-
buildTime: "12/
|
|
1105
|
+
version: "1.2.13",
|
|
1106
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
1107
1107
|
homepage: "https://github.com/aversini/ui-components",
|
|
1108
1108
|
license: "MIT"
|
|
1109
1109
|
});
|
|
@@ -1116,16 +1116,16 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
|
|
|
1116
1116
|
labelLeft: a,
|
|
1117
1117
|
align: n
|
|
1118
1118
|
}) => {
|
|
1119
|
-
const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
|
|
1119
|
+
const i = "text-sm font-medium max-h-8 py-0 px-2", s = "text-base font-medium max-h-9 py-1 px-3", c = "text-lg font-medium max-h-12 py-2 px-4";
|
|
1120
1120
|
switch (e) {
|
|
1121
1121
|
case yo:
|
|
1122
|
-
return k(
|
|
1122
|
+
return k({
|
|
1123
1123
|
[i]: t === "small",
|
|
1124
1124
|
[s]: t === "medium",
|
|
1125
1125
|
[c]: t === "large"
|
|
1126
1126
|
});
|
|
1127
1127
|
case ko:
|
|
1128
|
-
return k("
|
|
1128
|
+
return k("text-center", {
|
|
1129
1129
|
[i]: t === "small",
|
|
1130
1130
|
[s]: t === "medium",
|
|
1131
1131
|
[c]: t === "large"
|
|
@@ -1136,9 +1136,9 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
|
|
|
1136
1136
|
"justify-start": n === "left",
|
|
1137
1137
|
"justify-end": n === "right",
|
|
1138
1138
|
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
1139
|
-
"h-6 px-
|
|
1139
|
+
"h-6 px-2 text-sm font-medium": t === "small" && (r || a),
|
|
1140
1140
|
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
1141
|
-
"h-8 px-
|
|
1141
|
+
"h-8 px-3 text-base font-medium": t === "medium" && (r || a),
|
|
1142
1142
|
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
1143
1143
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
1144
1144
|
});
|
|
@@ -1235,7 +1235,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
|
|
|
1235
1235
|
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
1236
1236
|
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
1237
1237
|
});
|
|
1238
|
-
},
|
|
1238
|
+
}, xo = ({
|
|
1239
1239
|
mode: e,
|
|
1240
1240
|
disabled: t,
|
|
1241
1241
|
variant: r
|
|
@@ -1270,7 +1270,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
|
|
|
1270
1270
|
"active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
|
|
1271
1271
|
"active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
|
|
1272
1272
|
});
|
|
1273
|
-
},
|
|
1273
|
+
}, No = ({
|
|
1274
1274
|
mode: e,
|
|
1275
1275
|
noBorder: t,
|
|
1276
1276
|
variant: r
|
|
@@ -1338,11 +1338,17 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo =
|
|
|
1338
1338
|
noTruncate: h,
|
|
1339
1339
|
radius: d
|
|
1340
1340
|
}),
|
|
1341
|
-
Co({
|
|
1342
|
-
|
|
1341
|
+
Co({
|
|
1342
|
+
type: e,
|
|
1343
|
+
size: c,
|
|
1344
|
+
labelRight: l,
|
|
1345
|
+
labelLeft: u,
|
|
1346
|
+
align: m
|
|
1347
|
+
}),
|
|
1348
|
+
No({ mode: a, variant: b, noBorder: g }),
|
|
1343
1349
|
Eo({ focusMode: n }),
|
|
1344
1350
|
wo({ mode: a, variant: b, disabled: i }),
|
|
1345
|
-
|
|
1351
|
+
xo({ mode: a, variant: b, disabled: i }),
|
|
1346
1352
|
{
|
|
1347
1353
|
"w-full": s,
|
|
1348
1354
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
@@ -1427,13 +1433,13 @@ const zt = E.forwardRef(
|
|
|
1427
1433
|
);
|
|
1428
1434
|
zt.displayName = "ButtonIcon";
|
|
1429
1435
|
/*!
|
|
1430
|
-
@versini/ui-button v3.0
|
|
1436
|
+
@versini/ui-button v3.2.0
|
|
1431
1437
|
© 2024 gizmette.com
|
|
1432
1438
|
*/
|
|
1433
1439
|
try {
|
|
1434
1440
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1435
|
-
version: "3.0
|
|
1436
|
-
buildTime: "12/
|
|
1441
|
+
version: "3.2.0",
|
|
1442
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
1437
1443
|
homepage: "https://github.com/aversini/ui-components",
|
|
1438
1444
|
license: "MIT"
|
|
1439
1445
|
});
|
|
@@ -1548,13 +1554,13 @@ const _o = ({
|
|
|
1548
1554
|
] });
|
|
1549
1555
|
};
|
|
1550
1556
|
/*!
|
|
1551
|
-
@versini/ui-svgicon v3.0.
|
|
1557
|
+
@versini/ui-svgicon v3.0.2
|
|
1552
1558
|
© 2024 gizmette.com
|
|
1553
1559
|
*/
|
|
1554
1560
|
try {
|
|
1555
1561
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1556
|
-
version: "3.0.
|
|
1557
|
-
buildTime: "12/
|
|
1562
|
+
version: "3.0.2",
|
|
1563
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
1558
1564
|
homepage: "https://github.com/aversini/ui-components",
|
|
1559
1565
|
license: "MIT"
|
|
1560
1566
|
});
|
|
@@ -1579,13 +1585,13 @@ const Ro = ({
|
|
|
1579
1585
|
}
|
|
1580
1586
|
);
|
|
1581
1587
|
/*!
|
|
1582
|
-
@versini/ui-icons v3.0.
|
|
1588
|
+
@versini/ui-icons v3.0.2
|
|
1583
1589
|
© 2024 gizmette.com
|
|
1584
1590
|
*/
|
|
1585
1591
|
try {
|
|
1586
1592
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1587
|
-
version: "3.0.
|
|
1588
|
-
buildTime: "12/
|
|
1593
|
+
version: "3.0.2",
|
|
1594
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
1589
1595
|
homepage: "https://github.com/aversini/ui-components",
|
|
1590
1596
|
license: "MIT"
|
|
1591
1597
|
});
|
|
@@ -1666,13 +1672,13 @@ const zo = f.forwardRef(function(e, t) {
|
|
|
1666
1672
|
}) });
|
|
1667
1673
|
});
|
|
1668
1674
|
/*!
|
|
1669
|
-
@versini/ui-modal v1.1.
|
|
1675
|
+
@versini/ui-modal v1.1.7
|
|
1670
1676
|
© 2024 gizmette.com
|
|
1671
1677
|
*/
|
|
1672
1678
|
try {
|
|
1673
1679
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1674
|
-
version: "1.1.
|
|
1675
|
-
buildTime: "12/
|
|
1680
|
+
version: "1.1.7",
|
|
1681
|
+
buildTime: "12/31/2024 09:01 AM EST",
|
|
1676
1682
|
homepage: "https://github.com/aversini/ui-components",
|
|
1677
1683
|
license: "MIT"
|
|
1678
1684
|
});
|
|
@@ -1740,23 +1746,23 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1740
1746
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1741
1747
|
L,
|
|
1742
1748
|
{
|
|
1743
|
-
header:
|
|
1749
|
+
header: x.ABOUT.TITLE_CLIENT,
|
|
1744
1750
|
className: "prose-dark dark:prose-lighter",
|
|
1745
1751
|
children: oe(n, {
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1752
|
+
[x.ABOUT.VERSION]: "5.12.0",
|
|
1753
|
+
[x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 01:38 PM EST"
|
|
1748
1754
|
})
|
|
1749
1755
|
}
|
|
1750
1756
|
) }),
|
|
1751
1757
|
/* @__PURE__ */ o(
|
|
1752
1758
|
L,
|
|
1753
1759
|
{
|
|
1754
|
-
header:
|
|
1760
|
+
header: x.ABOUT.TITLE_SERVER,
|
|
1755
1761
|
className: "prose-dark dark:prose-lighter",
|
|
1756
1762
|
children: oe(i, {
|
|
1757
|
-
[
|
|
1758
|
-
[he(
|
|
1759
|
-
[he(
|
|
1763
|
+
[x.ABOUT.VERSION]: r,
|
|
1764
|
+
[he(x.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
|
|
1765
|
+
[he(x.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
|
|
1760
1766
|
})
|
|
1761
1767
|
}
|
|
1762
1768
|
)
|
|
@@ -1765,7 +1771,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1765
1771
|
open: e,
|
|
1766
1772
|
onOpenChange: t
|
|
1767
1773
|
}) => {
|
|
1768
|
-
const { serverStats: r } = P(
|
|
1774
|
+
const { serverStats: r } = P(ie);
|
|
1769
1775
|
return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
|
|
1770
1776
|
}, $o = (e) => Qe(e), Fo = (e) => {
|
|
1771
1777
|
if (!e || e.length === 0)
|
|
@@ -1784,29 +1790,29 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1784
1790
|
isAuthenticated: e,
|
|
1785
1791
|
stats: t
|
|
1786
1792
|
}) => {
|
|
1787
|
-
const { state: r } = P(
|
|
1793
|
+
const { state: r } = P(ie), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
|
|
1788
1794
|
return e ? /* @__PURE__ */ y(_, { children: [
|
|
1789
1795
|
r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1790
1796
|
L,
|
|
1791
1797
|
{
|
|
1792
|
-
header:
|
|
1798
|
+
header: x.CURRENT_STATISTICS.TITLE,
|
|
1793
1799
|
className: "prose-dark dark:prose-lighter",
|
|
1794
1800
|
children: oe(n, {
|
|
1795
|
-
[
|
|
1796
|
-
[
|
|
1797
|
-
[
|
|
1798
|
-
[
|
|
1801
|
+
[x.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
|
|
1802
|
+
[x.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
|
|
1803
|
+
[x.CURRENT_STATISTICS.REMAINING_TOKENS]: Vt.format(a),
|
|
1804
|
+
[x.CURRENT_STATISTICS.PROCESSING_TIME]: Fo(r == null ? void 0 : r.messages)
|
|
1799
1805
|
})
|
|
1800
1806
|
}
|
|
1801
1807
|
) }),
|
|
1802
1808
|
/* @__PURE__ */ o(
|
|
1803
1809
|
L,
|
|
1804
1810
|
{
|
|
1805
|
-
header:
|
|
1811
|
+
header: x.MAIN_STATISTICS.TITLE,
|
|
1806
1812
|
className: "prose-dark dark:prose-lighter",
|
|
1807
1813
|
children: oe(i, {
|
|
1808
|
-
[he(
|
|
1809
|
-
[
|
|
1814
|
+
[he(x.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
1815
|
+
[x.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
|
|
1810
1816
|
t.averageProcessingTimes
|
|
1811
1817
|
)
|
|
1812
1818
|
})
|
|
@@ -1887,7 +1893,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1887
1893
|
}
|
|
1888
1894
|
});
|
|
1889
1895
|
n.status === 200 && (t({
|
|
1890
|
-
type:
|
|
1896
|
+
type: Je
|
|
1891
1897
|
}), t({
|
|
1892
1898
|
type: jt,
|
|
1893
1899
|
payload: {
|
|
@@ -1910,8 +1916,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1910
1916
|
id: 0,
|
|
1911
1917
|
timestamp: "",
|
|
1912
1918
|
message: ""
|
|
1913
|
-
}), [c, g] = I(!1), { state: l, dispatch: u } = P(
|
|
1914
|
-
key:
|
|
1919
|
+
}), [c, g] = I(!1), { state: l, dispatch: u } = P(rt), [, p] = ce({
|
|
1920
|
+
key: se + Ut,
|
|
1915
1921
|
initialValue: l.sortDirection
|
|
1916
1922
|
}), b = (d) => {
|
|
1917
1923
|
switch (l.sortDirection) {
|
|
@@ -1983,16 +1989,16 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
1983
1989
|
}
|
|
1984
1990
|
),
|
|
1985
1991
|
/* @__PURE__ */ y(
|
|
1986
|
-
|
|
1992
|
+
or,
|
|
1987
1993
|
{
|
|
1988
1994
|
stickyHeader: !0,
|
|
1989
1995
|
stickyFooter: !0,
|
|
1990
1996
|
compact: !0,
|
|
1991
1997
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
1992
1998
|
children: [
|
|
1993
|
-
/* @__PURE__ */ o(
|
|
1999
|
+
/* @__PURE__ */ o(ar, { children: /* @__PURE__ */ y(we, { children: [
|
|
1994
2000
|
/* @__PURE__ */ o(
|
|
1995
|
-
|
|
2001
|
+
nr,
|
|
1996
2002
|
{
|
|
1997
2003
|
buttonClassName: "text-xs sm:text-sm",
|
|
1998
2004
|
cellId: "timestamp",
|
|
@@ -2009,7 +2015,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
2009
2015
|
/* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2010
2016
|
/* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
2011
2017
|
] }) }),
|
|
2012
|
-
/* @__PURE__ */ o(
|
|
2018
|
+
/* @__PURE__ */ o(sr, { children: e.data.map((d, v) => {
|
|
2013
2019
|
var T, C;
|
|
2014
2020
|
return ((T = d == null ? void 0 : d.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(we, { children: [
|
|
2015
2021
|
/* @__PURE__ */ o(
|
|
@@ -2072,9 +2078,9 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
2072
2078
|
}
|
|
2073
2079
|
)
|
|
2074
2080
|
] }) })
|
|
2075
|
-
] }, `${
|
|
2081
|
+
] }, `${x.HISTORY.TITLE}-${d.id}-${v}`) : null;
|
|
2076
2082
|
}) }),
|
|
2077
|
-
/* @__PURE__ */ o(
|
|
2083
|
+
/* @__PURE__ */ o(ir, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
|
|
2078
2084
|
`${e.data.length} chat`,
|
|
2079
2085
|
e.data.length
|
|
2080
2086
|
) }) }) }) })
|
|
@@ -2109,8 +2115,8 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
2109
2115
|
}
|
|
2110
2116
|
return [];
|
|
2111
2117
|
}, Ko = ({ onOpenChange: e }) => {
|
|
2112
|
-
const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(
|
|
2113
|
-
key:
|
|
2118
|
+
const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(ie), { state: c, dispatch: g } = P(rt), [, l] = ce({
|
|
2119
|
+
key: se + Kt,
|
|
2114
2120
|
initialValue: c.searchString
|
|
2115
2121
|
}), [u, p] = I({
|
|
2116
2122
|
data: [],
|
|
@@ -2164,7 +2170,7 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
2164
2170
|
}
|
|
2165
2171
|
}, [u, c]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
|
|
2166
2172
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: m, children: /* @__PURE__ */ o(
|
|
2167
|
-
|
|
2173
|
+
Ne,
|
|
2168
2174
|
{
|
|
2169
2175
|
autoCapitalize: "off",
|
|
2170
2176
|
autoComplete: "off",
|
|
@@ -2212,13 +2218,13 @@ const ee = "panel", ue = "messagebox", Bo = ({
|
|
|
2212
2218
|
onOpenChange: t
|
|
2213
2219
|
}) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { onOpenChange: t }) });
|
|
2214
2220
|
/*!
|
|
2215
|
-
@versini/ui-toggle v2.0.
|
|
2221
|
+
@versini/ui-toggle v2.0.5
|
|
2216
2222
|
© 2024 gizmette.com
|
|
2217
2223
|
*/
|
|
2218
2224
|
try {
|
|
2219
2225
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
2220
|
-
version: "2.0.
|
|
2221
|
-
buildTime: "12/30/2024
|
|
2226
|
+
version: "2.0.5",
|
|
2227
|
+
buildTime: "12/30/2024 07:48 PM EST",
|
|
2222
2228
|
homepage: "https://github.com/aversini/ui-components",
|
|
2223
2229
|
license: "MIT"
|
|
2224
2230
|
});
|
|
@@ -2331,14 +2337,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2331
2337
|
open: e,
|
|
2332
2338
|
onOpenChange: t
|
|
2333
2339
|
}) => {
|
|
2334
|
-
const { dispatch: r } = P(
|
|
2340
|
+
const { dispatch: r } = P(ie), { getAccessToken: a, user: n } = W(), [i, s] = I({
|
|
2335
2341
|
loaded: !1,
|
|
2336
2342
|
instructions: "",
|
|
2337
2343
|
loadingLocation: !1,
|
|
2338
2344
|
location: "",
|
|
2339
2345
|
engine: te
|
|
2340
2346
|
}), [c, g] = ce({
|
|
2341
|
-
key:
|
|
2347
|
+
key: se + et,
|
|
2342
2348
|
initialValue: !1
|
|
2343
2349
|
}), l = async (h) => {
|
|
2344
2350
|
h.preventDefault();
|
|
@@ -2353,7 +2359,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2353
2359
|
engine: i.engine
|
|
2354
2360
|
}
|
|
2355
2361
|
}), r({
|
|
2356
|
-
type:
|
|
2362
|
+
type: tt,
|
|
2357
2363
|
payload: {
|
|
2358
2364
|
engine: i.engine
|
|
2359
2365
|
}
|
|
@@ -2597,7 +2603,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2597
2603
|
open: e,
|
|
2598
2604
|
onOpenChange: t
|
|
2599
2605
|
}) => {
|
|
2600
|
-
const { state: r, dispatch: a } = P(
|
|
2606
|
+
const { state: r, dispatch: a } = P(cr), { getAccessToken: n, user: i } = W(), [s, c] = I({
|
|
2601
2607
|
tags: [...r.tags]
|
|
2602
2608
|
}), g = ({
|
|
2603
2609
|
slot: u,
|
|
@@ -2631,7 +2637,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2631
2637
|
tags: s.tags
|
|
2632
2638
|
}
|
|
2633
2639
|
}), a({
|
|
2634
|
-
type:
|
|
2640
|
+
type: Jt,
|
|
2635
2641
|
payload: {
|
|
2636
2642
|
tags: s.tags
|
|
2637
2643
|
}
|
|
@@ -2680,7 +2686,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2680
2686
|
}
|
|
2681
2687
|
),
|
|
2682
2688
|
children: [
|
|
2683
|
-
/* @__PURE__ */ o("p", { children:
|
|
2689
|
+
/* @__PURE__ */ o("p", { children: Xt }),
|
|
2684
2690
|
s.tags && s.tags.map((u) => /* @__PURE__ */ y(
|
|
2685
2691
|
L,
|
|
2686
2692
|
{
|
|
@@ -2689,7 +2695,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2689
2695
|
children: [
|
|
2690
2696
|
/* @__PURE__ */ y(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2691
2697
|
/* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2692
|
-
|
|
2698
|
+
Ne,
|
|
2693
2699
|
{
|
|
2694
2700
|
label: "Label",
|
|
2695
2701
|
name: `tag${u.slot}-label`,
|
|
@@ -2705,7 +2711,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2705
2711
|
}
|
|
2706
2712
|
) }),
|
|
2707
2713
|
/* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2708
|
-
|
|
2714
|
+
Ne,
|
|
2709
2715
|
{
|
|
2710
2716
|
label: "Content",
|
|
2711
2717
|
name: `tag${u.slot}-content`,
|
|
@@ -2748,7 +2754,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2748
2754
|
);
|
|
2749
2755
|
}, na = () => {
|
|
2750
2756
|
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = ce({
|
|
2751
|
-
key:
|
|
2757
|
+
key: se + er,
|
|
2752
2758
|
initialValue: !1
|
|
2753
2759
|
}), [s, c] = I(!1), [g, l] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
|
|
2754
2760
|
i(d);
|
|
@@ -2769,19 +2775,19 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2769
2775
|
/* @__PURE__ */ y(
|
|
2770
2776
|
L,
|
|
2771
2777
|
{
|
|
2772
|
-
header:
|
|
2778
|
+
header: x.PREFERENCES.TITLE,
|
|
2773
2779
|
className: "prose-dark dark:prose-lighter",
|
|
2774
2780
|
children: [
|
|
2775
2781
|
oe(u, {
|
|
2776
|
-
[
|
|
2777
|
-
[
|
|
2778
|
-
[
|
|
2782
|
+
[x.PREFERENCES.NAME]: p,
|
|
2783
|
+
[x.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
|
|
2784
|
+
[x.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
|
|
2779
2785
|
re,
|
|
2780
2786
|
{
|
|
2781
2787
|
noBorder: !0,
|
|
2782
2788
|
labelHidden: !0,
|
|
2783
|
-
label:
|
|
2784
|
-
name:
|
|
2789
|
+
label: x.PREFERENCES.ENGINE_DETAILS,
|
|
2790
|
+
name: x.PREFERENCES.ENGINE_DETAILS,
|
|
2785
2791
|
onChange: b,
|
|
2786
2792
|
checked: n
|
|
2787
2793
|
}
|
|
@@ -2810,23 +2816,23 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2810
2816
|
]
|
|
2811
2817
|
}
|
|
2812
2818
|
),
|
|
2813
|
-
a !==
|
|
2819
|
+
a !== tr.PASSKEY && /* @__PURE__ */ y(
|
|
2814
2820
|
L,
|
|
2815
2821
|
{
|
|
2816
2822
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2817
2823
|
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(q, { columnGap: 3, alignVertical: "center", children: [
|
|
2818
2824
|
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
|
|
2819
|
-
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o("div", { children:
|
|
2825
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o("div", { children: x.PREFERENCES.PASSKEY_TITLE }) })
|
|
2820
2826
|
] }) }),
|
|
2821
2827
|
children: [
|
|
2822
|
-
/* @__PURE__ */ o("p", { children:
|
|
2828
|
+
/* @__PURE__ */ o("p", { children: x.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2823
2829
|
/* @__PURE__ */ o(
|
|
2824
2830
|
j,
|
|
2825
2831
|
{
|
|
2826
2832
|
size: "small",
|
|
2827
2833
|
className: "mt-2",
|
|
2828
2834
|
onClick: r,
|
|
2829
|
-
labelLeft:
|
|
2835
|
+
labelLeft: x.PREFERENCES.PASSKEY_BUTTON,
|
|
2830
2836
|
children: /* @__PURE__ */ o($e, { size: "size-5", monotone: !0 })
|
|
2831
2837
|
}
|
|
2832
2838
|
)
|
|
@@ -2837,9 +2843,9 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2837
2843
|
}, sa = ({
|
|
2838
2844
|
open: e,
|
|
2839
2845
|
onOpenChange: t
|
|
2840
|
-
}) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title:
|
|
2841
|
-
const { state: e, dispatch: t, serverStats: r } = P(
|
|
2842
|
-
key:
|
|
2846
|
+
}) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: rr, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
|
|
2847
|
+
const { state: e, dispatch: t, serverStats: r } = P(ie), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
|
|
2848
|
+
key: se + et,
|
|
2843
2849
|
initialValue: !1
|
|
2844
2850
|
}), { logout: v, getAccessToken: T, user: C } = W(), w = () => {
|
|
2845
2851
|
s(!i);
|
|
@@ -2888,28 +2894,28 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2888
2894
|
mode: "dark",
|
|
2889
2895
|
focusMode: "light",
|
|
2890
2896
|
value: a,
|
|
2891
|
-
onValueChange: async (
|
|
2892
|
-
if (
|
|
2897
|
+
onValueChange: async (N) => {
|
|
2898
|
+
if (N)
|
|
2893
2899
|
try {
|
|
2894
2900
|
await D({
|
|
2895
2901
|
accessToken: await T(),
|
|
2896
2902
|
type: V.SET_USER_PREFERENCES,
|
|
2897
2903
|
params: {
|
|
2898
2904
|
user: C == null ? void 0 : C.username,
|
|
2899
|
-
engine:
|
|
2905
|
+
engine: N
|
|
2900
2906
|
}
|
|
2901
2907
|
}), t({
|
|
2902
|
-
type:
|
|
2908
|
+
type: tt,
|
|
2903
2909
|
payload: {
|
|
2904
|
-
engine:
|
|
2910
|
+
engine: N
|
|
2905
2911
|
}
|
|
2906
2912
|
}), t({
|
|
2907
|
-
type:
|
|
2913
|
+
type: Je
|
|
2908
2914
|
});
|
|
2909
2915
|
} catch {
|
|
2910
2916
|
}
|
|
2911
2917
|
},
|
|
2912
|
-
children: r && r.engines.map((
|
|
2918
|
+
children: r && r.engines.map((N) => /* @__PURE__ */ o(vo, { value: N }, N))
|
|
2913
2919
|
}
|
|
2914
2920
|
) })
|
|
2915
2921
|
}
|
|
@@ -2927,7 +2933,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2927
2933
|
{
|
|
2928
2934
|
label: "Profile",
|
|
2929
2935
|
onClick: w,
|
|
2930
|
-
icon: /* @__PURE__ */ o(
|
|
2936
|
+
icon: /* @__PURE__ */ o(Nr, {})
|
|
2931
2937
|
}
|
|
2932
2938
|
),
|
|
2933
2939
|
/* @__PURE__ */ o(
|
|
@@ -2951,7 +2957,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2951
2957
|
{
|
|
2952
2958
|
label: "About",
|
|
2953
2959
|
onClick: M,
|
|
2954
|
-
icon: /* @__PURE__ */ o(
|
|
2960
|
+
icon: /* @__PURE__ */ o(xr, {})
|
|
2955
2961
|
}
|
|
2956
2962
|
),
|
|
2957
2963
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(_, { children: [
|