@versini/sassysaint 5.5.33 → 5.5.34
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.BXAqV9_e.js → App.BcFxPLnZ.js} +153 -153
- package/dist/chunks/{HeaderToolbar.BoRwNEMw.js → HeaderToolbar.qJtZsjJJ.js} +91 -91
- package/dist/chunks/{MarkdownWithExtra.CIsHNAZk.js → MarkdownWithExtra.Bhrotx1F.js} +8 -8
- package/dist/chunks/{MessageAssistant.DKGaNVFc.js → MessageAssistant.wYO5jy_g.js} +6 -6
- package/dist/chunks/{index.ObAZLC3I.js → index.VGoUE96U.js} +25 -25
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as x, jsx as i, Fragment as ht } from "react/jsx-runtime";
|
|
2
|
-
import { g as ie, ACTION_RESTORE as Kr, ACTION_MESSAGE as ye, ROLE_ASSISTANT as ve, ACTION_RESET as ft, ACTION_MODEL as cr, ACTION_STREAMING as lr, ACTION_SORT as Jr, ACTION_SEARCH as Yr, ACTION_RESET_PROMPT as dr, ACTION_TOGGLE_PROMPT as ur, DEFAULT_AI_ENGINE as ke, P as Ee, un as xe, ENGINE_ANTHROPIC as Fe, ENGINE_OPENAI as $t, PROMPT_CLASSNAME as Zr, PROMPT_EDITABLE_AREA_CLASSNAME as Xr, ROLE_SYSTEM as Qr, ROLE_INTERNAL as pt, ROLE_HIDDEN as ea, STATS_SEPARATOR as Dt, CLIPBOARD_PROMPT as
|
|
2
|
+
import { g as ie, ACTION_RESTORE as Kr, ACTION_MESSAGE as ye, ROLE_ASSISTANT as ve, ACTION_RESET as ft, ACTION_MODEL as cr, ACTION_STREAMING as lr, ACTION_SORT as Jr, ACTION_SEARCH as Yr, ACTION_RESET_PROMPT as dr, ACTION_TOGGLE_PROMPT as ur, DEFAULT_AI_ENGINE as ke, P as Ee, un as xe, ENGINE_ANTHROPIC as Fe, ENGINE_OPENAI as $t, PROMPT_CLASSNAME as Zr, PROMPT_EDITABLE_AREA_CLASSNAME as Xr, ROLE_SYSTEM as Qr, ROLE_INTERNAL as pt, ROLE_HIDDEN as ea, STATS_SEPARATOR as Dt, CLIPBOARD_PROMPT as Vt, TYPE_QUESTION as ta, ERROR_MESSAGE as ra, ROLE_USER as Qe, FOOTER_DISCLAIMER as aa, isLastMessageFromRole as na, getMessageContaintWrapperClass as oa, Logo as sa, getMainPaddingClass as Pt, r as ia, LOCAL_STORAGE_PREFIX as Ut, LOCAL_STORAGE_SEARCH as ca, LOCAL_STORAGE_SORT as la } from "./index.VGoUE96U.js";
|
|
3
3
|
import l from "clsx";
|
|
4
4
|
import * as et from "react";
|
|
5
|
-
import M, { useRef as
|
|
5
|
+
import M, { useRef as O, useEffect as A, useCallback as K, useSyncExternalStore as da, useMemo as bt, useState as W, useId as ua, useContext as B, createContext as ma, useLayoutEffect as mr, useDebugValue as ga, forwardRef as gr, lazy as hr, Suspense as tt, useReducer as He } from "react";
|
|
6
6
|
import { useFloatingTree as fr, useFloatingNodeId as ha, useListItem as pr, useFloating as fa, offset as pa, flip as ba, shift as ya, autoUpdate as va, useClick as ka, useRole as _a, useDismiss as Ea, useListNavigation as xa, useTypeahead as Sa, useInteractions as wa, useMergeRefs as br, FloatingNode as Ta, FloatingList as Na, FloatingPortal as Ca, FloatingFocusManager as Ra, FloatingTree as Ia } from "@floating-ui/react";
|
|
7
7
|
const La = ({
|
|
8
8
|
className: e,
|
|
@@ -47,7 +47,7 @@ const La = ({
|
|
|
47
47
|
...n,
|
|
48
48
|
children: /* @__PURE__ */ i("path", { d: "M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z" })
|
|
49
49
|
}
|
|
50
|
-
),
|
|
50
|
+
), Aa = ({
|
|
51
51
|
className: e,
|
|
52
52
|
viewBox: t,
|
|
53
53
|
title: r,
|
|
@@ -80,7 +80,7 @@ const La = ({
|
|
|
80
80
|
)
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
|
-
),
|
|
83
|
+
), Oa = ({
|
|
84
84
|
className: e,
|
|
85
85
|
viewBox: t,
|
|
86
86
|
title: r,
|
|
@@ -150,13 +150,13 @@ const La = ({
|
|
|
150
150
|
}
|
|
151
151
|
);
|
|
152
152
|
/*!
|
|
153
|
-
@versini/ui-header v3.0.
|
|
153
|
+
@versini/ui-header v3.0.4
|
|
154
154
|
© 2025 gizmette.com
|
|
155
155
|
*/
|
|
156
156
|
try {
|
|
157
157
|
window.__VERSINI_UI_HEADER__ || (window.__VERSINI_UI_HEADER__ = {
|
|
158
|
-
version: "3.0.
|
|
159
|
-
buildTime: "01/
|
|
158
|
+
version: "3.0.4",
|
|
159
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
160
160
|
homepage: "https://github.com/aversini/ui-components",
|
|
161
161
|
license: "MIT"
|
|
162
162
|
});
|
|
@@ -209,7 +209,7 @@ function Da(e) {
|
|
|
209
209
|
key: n
|
|
210
210
|
};
|
|
211
211
|
}
|
|
212
|
-
function
|
|
212
|
+
function Va(e, t) {
|
|
213
213
|
const { alt: r, ctrl: a, meta: n, mod: o, shift: s, key: c } = e, { altKey: g, ctrlKey: d, metaKey: h, shiftKey: m, key: u } = t;
|
|
214
214
|
if (r !== g)
|
|
215
215
|
return !1;
|
|
@@ -220,20 +220,20 @@ function Pa(e, t) {
|
|
|
220
220
|
return !1;
|
|
221
221
|
return s !== m ? !1 : !!(c && (u.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
return (t) =>
|
|
223
|
+
function Pa(e) {
|
|
224
|
+
return (t) => Va(Da(e), t);
|
|
225
225
|
}
|
|
226
226
|
function Ua(e) {
|
|
227
227
|
return (t) => {
|
|
228
228
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
229
229
|
e.forEach(([a, n, o = { preventDefault: !0 }]) => {
|
|
230
|
-
|
|
230
|
+
Pa(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
|
|
231
231
|
});
|
|
232
232
|
};
|
|
233
233
|
}
|
|
234
234
|
function Fa() {
|
|
235
|
-
const e =
|
|
236
|
-
return
|
|
235
|
+
const e = O(!1);
|
|
236
|
+
return A(() => (e.current = !0, () => {
|
|
237
237
|
e.current = !1;
|
|
238
238
|
}), []), K(() => e.current, []);
|
|
239
239
|
}
|
|
@@ -267,7 +267,7 @@ function jt({
|
|
|
267
267
|
}, [t, a]), o = K(() => {
|
|
268
268
|
a(null);
|
|
269
269
|
}, [a]);
|
|
270
|
-
return
|
|
270
|
+
return A(() => {
|
|
271
271
|
try {
|
|
272
272
|
Gt(e) === null && typeof t < "u" && Wt(e, t);
|
|
273
273
|
} catch (s) {
|
|
@@ -294,13 +294,13 @@ const ja = {
|
|
|
294
294
|
right: 0
|
|
295
295
|
};
|
|
296
296
|
function qa(e) {
|
|
297
|
-
const t = Fa(), r =
|
|
297
|
+
const t = Fa(), r = O(0), a = O(null), [n, o] = W(ja), s = bt(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
298
298
|
const g = c[0];
|
|
299
299
|
g && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
300
300
|
a.current && t() && o(g.contentRect);
|
|
301
301
|
}));
|
|
302
302
|
}), [t]);
|
|
303
|
-
return
|
|
303
|
+
return A(() => (a.current && (s == null || s.observe(a.current, e)), () => {
|
|
304
304
|
s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
305
305
|
}), [s, e]), [a, n];
|
|
306
306
|
}
|
|
@@ -317,7 +317,7 @@ function Ka({
|
|
|
317
317
|
), d = (h) => {
|
|
318
318
|
g(h), a == null || a(h);
|
|
319
319
|
};
|
|
320
|
-
return
|
|
320
|
+
return A(() => {
|
|
321
321
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
|
322
322
|
(h) => setTimeout(h, n)
|
|
323
323
|
), s(!0)))();
|
|
@@ -327,19 +327,19 @@ function Ja(e) {
|
|
|
327
327
|
return ua();
|
|
328
328
|
}
|
|
329
329
|
/*!
|
|
330
|
-
@versini/ui-table v3.0.
|
|
330
|
+
@versini/ui-table v3.0.11
|
|
331
331
|
© 2025 gizmette.com
|
|
332
332
|
*/
|
|
333
333
|
try {
|
|
334
334
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
335
|
-
version: "3.0.
|
|
336
|
-
buildTime: "01/
|
|
335
|
+
version: "3.0.11",
|
|
336
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
337
337
|
homepage: "https://github.com/aversini/ui-components",
|
|
338
338
|
license: "MIT"
|
|
339
339
|
});
|
|
340
340
|
} catch {
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const Oe = "thead", yt = "tfoot", me = "tbody", be = {
|
|
343
343
|
ASC: "asc",
|
|
344
344
|
DESC: "desc"
|
|
345
345
|
}, Ya = ({
|
|
@@ -407,7 +407,7 @@ const Ae = "thead", yt = "tfoot", me = "tbody", be = {
|
|
|
407
407
|
mode: e,
|
|
408
408
|
className: t,
|
|
409
409
|
cellWrapper: r
|
|
410
|
-
}) => r ===
|
|
410
|
+
}) => r === Oe || r === yt ? l(
|
|
411
411
|
{
|
|
412
412
|
"bg-table-head-dark": e === "dark" || e === "system",
|
|
413
413
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
@@ -446,7 +446,7 @@ const Ae = "thead", yt = "tfoot", me = "tbody", be = {
|
|
|
446
446
|
"text-copy-dark": a === "light" || a === "alt-system",
|
|
447
447
|
"dark:text-copy-dark": a === "system",
|
|
448
448
|
"dark:text-copy-light": a === "alt-system",
|
|
449
|
-
"px-4 py-3": !r && (e ===
|
|
449
|
+
"px-4 py-3": !r && (e === Oe || e === yt),
|
|
450
450
|
"p-4": !r && e === me,
|
|
451
451
|
"px-2 py-1.5": r
|
|
452
452
|
},
|
|
@@ -737,13 +737,13 @@ const Ae = "thead", yt = "tfoot", me = "tbody", be = {
|
|
|
737
737
|
});
|
|
738
738
|
kr.displayName = "BaseButton";
|
|
739
739
|
/*!
|
|
740
|
-
@versini/ui-button v4.0.
|
|
740
|
+
@versini/ui-button v4.0.10
|
|
741
741
|
© 2025 gizmette.com
|
|
742
742
|
*/
|
|
743
743
|
try {
|
|
744
744
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
745
|
-
version: "4.0.
|
|
746
|
-
buildTime: "01/
|
|
745
|
+
version: "4.0.10",
|
|
746
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
747
747
|
homepage: "https://github.com/aversini/ui-components",
|
|
748
748
|
license: "MIT"
|
|
749
749
|
});
|
|
@@ -858,13 +858,13 @@ const kt = ({
|
|
|
858
858
|
] });
|
|
859
859
|
};
|
|
860
860
|
/*!
|
|
861
|
-
@versini/ui-svgicon v4.0.
|
|
861
|
+
@versini/ui-svgicon v4.0.3
|
|
862
862
|
© 2025 gizmette.com
|
|
863
863
|
*/
|
|
864
864
|
try {
|
|
865
865
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
866
|
-
version: "4.0.
|
|
867
|
-
buildTime: "01/
|
|
866
|
+
version: "4.0.3",
|
|
867
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
868
868
|
homepage: "https://github.com/aversini/ui-components",
|
|
869
869
|
license: "MIT"
|
|
870
870
|
});
|
|
@@ -971,13 +971,13 @@ const hn = ({
|
|
|
971
971
|
}
|
|
972
972
|
);
|
|
973
973
|
/*!
|
|
974
|
-
@versini/ui-icons v4.4.
|
|
974
|
+
@versini/ui-icons v4.4.2
|
|
975
975
|
© 2025 gizmette.com
|
|
976
976
|
*/
|
|
977
977
|
try {
|
|
978
978
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
979
|
-
version: "4.4.
|
|
980
|
-
buildTime: "01/
|
|
979
|
+
version: "4.4.2",
|
|
980
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
981
981
|
homepage: "https://github.com/aversini/ui-components",
|
|
982
982
|
license: "MIT"
|
|
983
983
|
});
|
|
@@ -1034,7 +1034,7 @@ const ge = M.createContext({
|
|
|
1034
1034
|
...r
|
|
1035
1035
|
}) => {
|
|
1036
1036
|
const a = B(ge);
|
|
1037
|
-
a.cellWrapper =
|
|
1037
|
+
a.cellWrapper = Oe;
|
|
1038
1038
|
const n = Za({
|
|
1039
1039
|
className: t,
|
|
1040
1040
|
mode: a.mode,
|
|
@@ -1075,7 +1075,7 @@ const ge = M.createContext({
|
|
|
1075
1075
|
align: a,
|
|
1076
1076
|
...n
|
|
1077
1077
|
}) => {
|
|
1078
|
-
const o = B(ge), s = t || (o.cellWrapper ===
|
|
1078
|
+
const o = B(ge), s = t || (o.cellWrapper === Oe ? "th" : "td"), { mainClasses: c, alignClasses: g } = en({
|
|
1079
1079
|
cellWrapper: o.cellWrapper,
|
|
1080
1080
|
className: r,
|
|
1081
1081
|
mode: o.mode,
|
|
@@ -1413,10 +1413,10 @@ function at(e, t) {
|
|
|
1413
1413
|
return e !== e && t !== t;
|
|
1414
1414
|
}
|
|
1415
1415
|
const j = /* @__PURE__ */ new WeakMap(), oe = () => {
|
|
1416
|
-
},
|
|
1416
|
+
}, P = (
|
|
1417
1417
|
/*#__NOINLINE__*/
|
|
1418
1418
|
oe()
|
|
1419
|
-
), nt = Object, E = (e) => e ===
|
|
1419
|
+
), nt = Object, E = (e) => e === P, q = (e) => typeof e == "function", se = (e, t) => ({
|
|
1420
1420
|
...e,
|
|
1421
1421
|
...t
|
|
1422
1422
|
}), Er = (e) => q(e.then), qe = {}, Re = {}, Et = "undefined", Be = typeof window != Et, ot = typeof document != Et, Rn = () => Be && typeof window.requestAnimationFrame != Et, xr = (e, t) => {
|
|
@@ -1447,9 +1447,9 @@ const In = () => st, [it, ct] = Be && window.addEventListener ? [
|
|
|
1447
1447
|
], Ln = () => {
|
|
1448
1448
|
const e = ot && document.visibilityState;
|
|
1449
1449
|
return E(e) || e !== "hidden";
|
|
1450
|
-
},
|
|
1450
|
+
}, An = (e) => (ot && document.addEventListener("visibilitychange", e), it("focus", e), () => {
|
|
1451
1451
|
ot && document.removeEventListener("visibilitychange", e), ct("focus", e);
|
|
1452
|
-
}),
|
|
1452
|
+
}), On = (e) => {
|
|
1453
1453
|
const t = () => {
|
|
1454
1454
|
st = !0, e();
|
|
1455
1455
|
}, r = () => {
|
|
@@ -1462,9 +1462,9 @@ const In = () => st, [it, ct] = Be && window.addEventListener ? [
|
|
|
1462
1462
|
isOnline: In,
|
|
1463
1463
|
isVisible: Ln
|
|
1464
1464
|
}, Mn = {
|
|
1465
|
-
initFocus:
|
|
1466
|
-
initReconnect:
|
|
1467
|
-
}, Qt = !M.useId, _e = !Be || "Deno" in globalThis, zn = (e) => Rn() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ke = _e ?
|
|
1465
|
+
initFocus: An,
|
|
1466
|
+
initReconnect: On
|
|
1467
|
+
}, Qt = !M.useId, _e = !Be || "Deno" in globalThis, zn = (e) => Rn() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ke = _e ? A : mr, Je = typeof navigator < "u" && navigator.connection, er = !_e && Je && ([
|
|
1468
1468
|
"slow-2g",
|
|
1469
1469
|
"2g"
|
|
1470
1470
|
].includes(Je.effectiveType) || Je.saveData), Ie = /* @__PURE__ */ new WeakMap(), Ye = (e, t) => nt.prototype.toString.call(e) === `[object ${t}]`;
|
|
@@ -1503,10 +1503,10 @@ const lt = (e) => {
|
|
|
1503
1503
|
];
|
|
1504
1504
|
};
|
|
1505
1505
|
let Dn = 0;
|
|
1506
|
-
const dt = () => ++Dn, Sr = 0, wr = 1, Tr = 2,
|
|
1506
|
+
const dt = () => ++Dn, Sr = 0, wr = 1, Tr = 2, Vn = 3;
|
|
1507
1507
|
var pe = {
|
|
1508
1508
|
__proto__: null,
|
|
1509
|
-
ERROR_REVALIDATE_EVENT:
|
|
1509
|
+
ERROR_REVALIDATE_EVENT: Vn,
|
|
1510
1510
|
FOCUS_EVENT: Sr,
|
|
1511
1511
|
MUTATE_EVENT: Tr,
|
|
1512
1512
|
RECONNECT_EVENT: wr
|
|
@@ -1563,25 +1563,25 @@ async function Nr(...e) {
|
|
|
1563
1563
|
return k;
|
|
1564
1564
|
} else C && R && d(C) && (s = !0, b({
|
|
1565
1565
|
data: J,
|
|
1566
|
-
_c:
|
|
1566
|
+
_c: P
|
|
1567
1567
|
}));
|
|
1568
1568
|
if (s && !C)
|
|
1569
1569
|
if (q(s)) {
|
|
1570
1570
|
const U = s(k, J);
|
|
1571
1571
|
b({
|
|
1572
1572
|
data: U,
|
|
1573
|
-
error:
|
|
1574
|
-
_c:
|
|
1573
|
+
error: P,
|
|
1574
|
+
_c: P
|
|
1575
1575
|
});
|
|
1576
1576
|
} else
|
|
1577
1577
|
b({
|
|
1578
1578
|
data: k,
|
|
1579
|
-
error:
|
|
1580
|
-
_c:
|
|
1579
|
+
error: P,
|
|
1580
|
+
_c: P
|
|
1581
1581
|
});
|
|
1582
1582
|
if (y[f][1] = dt(), Promise.resolve(N()).then(() => {
|
|
1583
1583
|
b({
|
|
1584
|
-
_c:
|
|
1584
|
+
_c: P
|
|
1585
1585
|
});
|
|
1586
1586
|
}), C) {
|
|
1587
1587
|
if (h) throw C;
|
|
@@ -1593,9 +1593,9 @@ async function Nr(...e) {
|
|
|
1593
1593
|
const tr = (e, t) => {
|
|
1594
1594
|
for (const r in e)
|
|
1595
1595
|
e[r][0] && e[r][0](t);
|
|
1596
|
-
},
|
|
1596
|
+
}, Pn = (e, t) => {
|
|
1597
1597
|
if (!j.has(e)) {
|
|
1598
|
-
const r = se(Mn, t), a = {}, n = Nr.bind(
|
|
1598
|
+
const r = se(Mn, t), a = {}, n = Nr.bind(P, e);
|
|
1599
1599
|
let o = oe;
|
|
1600
1600
|
const s = {}, c = (h, m) => {
|
|
1601
1601
|
const u = s[h] || [];
|
|
@@ -1616,7 +1616,7 @@ const tr = (e, t) => {
|
|
|
1616
1616
|
g,
|
|
1617
1617
|
c
|
|
1618
1618
|
]), !_e)) {
|
|
1619
|
-
const h = r.initFocus(setTimeout.bind(
|
|
1619
|
+
const h = r.initFocus(setTimeout.bind(P, tr.bind(P, a, Sr))), m = r.initReconnect(setTimeout.bind(P, tr.bind(P, a, wr)));
|
|
1620
1620
|
o = () => {
|
|
1621
1621
|
h && h(), m && m(), j.delete(e);
|
|
1622
1622
|
};
|
|
@@ -1636,7 +1636,7 @@ const tr = (e, t) => {
|
|
|
1636
1636
|
}, Un = (e, t, r, a, n) => {
|
|
1637
1637
|
const o = r.errorRetryCount, s = n.retryCount, c = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
|
|
1638
1638
|
!E(o) && s > o || setTimeout(a, c, n);
|
|
1639
|
-
}, Fn = at, [xt, Hn] =
|
|
1639
|
+
}, Fn = at, [xt, Hn] = Pn(/* @__PURE__ */ new Map()), Wn = se(
|
|
1640
1640
|
{
|
|
1641
1641
|
// events
|
|
1642
1642
|
onLoadingSlow: oe,
|
|
@@ -1728,7 +1728,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1728
1728
|
}), Xe = {
|
|
1729
1729
|
dedupe: !0
|
|
1730
1730
|
}, ro = (e, t, r) => {
|
|
1731
|
-
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: c, revalidateIfStale: g, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: m, keepPreviousData: u } = r, [f, p, b, v] = j.get(a), [y, _] = Me(e), S =
|
|
1731
|
+
const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: c, revalidateIfStale: g, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: m, keepPreviousData: u } = r, [f, p, b, v] = j.get(a), [y, _] = Me(e), S = O(!1), N = O(!1), k = O(y), C = O(t), I = O(r), R = () => I.current, Q = () => R().isVisible() && R().isOnline(), [F, ee, J, U] = xr(a, y), te = O({}).current, ce = E(s) ? E(r.fallback) ? P : r.fallback[y] : s, he = (w, T) => {
|
|
1732
1732
|
for (const D in te) {
|
|
1733
1733
|
const L = D;
|
|
1734
1734
|
if (L === "data") {
|
|
@@ -1739,8 +1739,8 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1739
1739
|
}
|
|
1740
1740
|
return !0;
|
|
1741
1741
|
}, we = bt(() => {
|
|
1742
|
-
const w = !y || !t ? !1 : E(c) ? R().isPaused() || o ? !1 : g !== !1 : c, T = (
|
|
1743
|
-
const Y = se(
|
|
1742
|
+
const w = !y || !t ? !1 : E(c) ? R().isPaused() || o ? !1 : g !== !1 : c, T = (V) => {
|
|
1743
|
+
const Y = se(V);
|
|
1744
1744
|
return delete Y._k, w ? {
|
|
1745
1745
|
isValidating: !0,
|
|
1746
1746
|
isLoading: !0,
|
|
@@ -1750,8 +1750,8 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1750
1750
|
let z = G;
|
|
1751
1751
|
return [
|
|
1752
1752
|
() => {
|
|
1753
|
-
const
|
|
1754
|
-
return he(
|
|
1753
|
+
const V = T(F());
|
|
1754
|
+
return he(V, z) ? (z.data = V.data, z.isLoading = V.isLoading, z.isValidating = V.isValidating, z.error = V.error, z) : (z = V, V);
|
|
1755
1755
|
},
|
|
1756
1756
|
() => ue
|
|
1757
1757
|
];
|
|
@@ -1767,13 +1767,13 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1767
1767
|
a,
|
|
1768
1768
|
y
|
|
1769
1769
|
]
|
|
1770
|
-
), we[0], we[1]), ae = !S.current, Wr = f[y] && f[y].length > 0, le = re.data, de = E(le) ? ce && Er(ce) ? Ze(ce) : ce : le, Te = re.error, It =
|
|
1770
|
+
), we[0], we[1]), ae = !S.current, Wr = f[y] && f[y].length > 0, le = re.data, de = E(le) ? ce && Er(ce) ? Ze(ce) : ce : le, Te = re.error, It = O(de), Ne = u ? E(le) ? It.current : le : de, Lt = Wr && !E(Te) ? !1 : ae && !E(c) ? c : R().isPaused() ? !1 : o ? E(de) ? !1 : g : E(de) || g, At = !!(y && t && ae && Lt), Gr = E(re.isValidating) ? At : re.isValidating, jr = E(re.isLoading) ? At : re.isLoading, fe = K(
|
|
1771
1771
|
async (w) => {
|
|
1772
1772
|
const T = C.current;
|
|
1773
1773
|
if (!y || !T || N.current || R().isPaused())
|
|
1774
1774
|
return !1;
|
|
1775
1775
|
let D, L, G = !0;
|
|
1776
|
-
const ue = w || {}, z = !b[y] || !ue.dedupe,
|
|
1776
|
+
const ue = w || {}, z = !b[y] || !ue.dedupe, V = () => Qt ? !N.current && y === k.current && S.current : y === k.current, Y = {
|
|
1777
1777
|
isValidating: !1,
|
|
1778
1778
|
isLoading: !1
|
|
1779
1779
|
}, Bt = () => {
|
|
@@ -1787,25 +1787,25 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1787
1787
|
E(F().data) && (zt.isLoading = !0);
|
|
1788
1788
|
try {
|
|
1789
1789
|
if (z && (ee(zt), r.loadingTimeout && E(F().data) && setTimeout(() => {
|
|
1790
|
-
G &&
|
|
1790
|
+
G && V() && R().onLoadingSlow(y, r);
|
|
1791
1791
|
}, r.loadingTimeout), b[y] = [
|
|
1792
1792
|
T(_),
|
|
1793
1793
|
dt()
|
|
1794
1794
|
]), [D, L] = b[y], D = await D, z && setTimeout(Mt, r.dedupingInterval), !b[y] || b[y][1] !== L)
|
|
1795
|
-
return z &&
|
|
1796
|
-
Y.error =
|
|
1795
|
+
return z && V() && R().onDiscarded(y), !1;
|
|
1796
|
+
Y.error = P;
|
|
1797
1797
|
const H = p[y];
|
|
1798
1798
|
if (!E(H) && // case 1
|
|
1799
1799
|
(L <= H[0] || // case 2
|
|
1800
1800
|
L <= H[1] || // case 3
|
|
1801
1801
|
H[1] === 0))
|
|
1802
|
-
return Bt(), z &&
|
|
1802
|
+
return Bt(), z && V() && R().onDiscarded(y), !1;
|
|
1803
1803
|
const Z = F().data;
|
|
1804
|
-
Y.data = n(Z, D) ? Z : D, z &&
|
|
1804
|
+
Y.data = n(Z, D) ? Z : D, z && V() && R().onSuccess(D, y, r);
|
|
1805
1805
|
} catch (H) {
|
|
1806
1806
|
Mt();
|
|
1807
|
-
const Z = R(), { shouldRetryOnError:
|
|
1808
|
-
Z.isPaused() || (Y.error = H, z &&
|
|
1807
|
+
const Z = R(), { shouldRetryOnError: Pe } = Z;
|
|
1808
|
+
Z.isPaused() || (Y.error = H, z && V() && (Z.onError(H, y, Z), (Pe === !0 || q(Pe) && Pe(H)) && (!R().revalidateOnFocus || !R().revalidateOnReconnect || Q()) && Z.onErrorRetry(H, y, Z, (qr) => {
|
|
1809
1809
|
const Ue = f[y];
|
|
1810
1810
|
Ue && Ue[0] && Ue[0](pe.ERROR_REVALIDATE_EVENT, qr);
|
|
1811
1811
|
}, {
|
|
@@ -1830,7 +1830,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1830
1830
|
y,
|
|
1831
1831
|
a
|
|
1832
1832
|
]
|
|
1833
|
-
),
|
|
1833
|
+
), Ot = K(
|
|
1834
1834
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
1835
1835
|
(...w) => Nr(a, k.current, ...w),
|
|
1836
1836
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -1840,7 +1840,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1840
1840
|
C.current = t, I.current = r, E(le) || (It.current = le);
|
|
1841
1841
|
}), Ke(() => {
|
|
1842
1842
|
if (!y) return;
|
|
1843
|
-
const w = fe.bind(
|
|
1843
|
+
const w = fe.bind(P, Xe);
|
|
1844
1844
|
let T = 0;
|
|
1845
1845
|
const L = to(y, f, (G, ue = {}) => {
|
|
1846
1846
|
if (G == pe.FOCUS_EVENT) {
|
|
@@ -1885,7 +1885,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1885
1885
|
C.current = t, I.current = r, N.current = !1;
|
|
1886
1886
|
const w = v[y];
|
|
1887
1887
|
if (!E(w)) {
|
|
1888
|
-
const T =
|
|
1888
|
+
const T = Ot(w);
|
|
1889
1889
|
Ze(T);
|
|
1890
1890
|
}
|
|
1891
1891
|
if (E(Te)) {
|
|
@@ -1895,7 +1895,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1895
1895
|
throw Te;
|
|
1896
1896
|
}
|
|
1897
1897
|
return {
|
|
1898
|
-
mutate:
|
|
1898
|
+
mutate: Ot,
|
|
1899
1899
|
get data() {
|
|
1900
1900
|
return te.data = !0, Ne;
|
|
1901
1901
|
},
|
|
@@ -2122,7 +2122,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2122
2122
|
params: {
|
|
2123
2123
|
user: t
|
|
2124
2124
|
}
|
|
2125
|
-
}),
|
|
2125
|
+
}), Ar = ({
|
|
2126
2126
|
keys: e,
|
|
2127
2127
|
getAccessToken: t
|
|
2128
2128
|
}) => ze({
|
|
@@ -2153,7 +2153,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2153
2153
|
scope: "/stats",
|
|
2154
2154
|
keys: e,
|
|
2155
2155
|
getAccessToken: t
|
|
2156
|
-
}),
|
|
2156
|
+
}), Or = async ([e, t, r, a], n) => $e({
|
|
2157
2157
|
getAccessToken: n,
|
|
2158
2158
|
type: Se.GET_CHATS,
|
|
2159
2159
|
params: {
|
|
@@ -2167,7 +2167,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2167
2167
|
keys: e,
|
|
2168
2168
|
getAccessToken: t
|
|
2169
2169
|
}) => ze({
|
|
2170
|
-
fetcher:
|
|
2170
|
+
fetcher: Or,
|
|
2171
2171
|
scope: "/history",
|
|
2172
2172
|
keys: e,
|
|
2173
2173
|
getAccessToken: t,
|
|
@@ -2179,7 +2179,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2179
2179
|
keys: e,
|
|
2180
2180
|
getAccessToken: t
|
|
2181
2181
|
}) => {
|
|
2182
|
-
St(["/history", ...e], (r) =>
|
|
2182
|
+
St(["/history", ...e], (r) => Or(r, t));
|
|
2183
2183
|
}, Br = async ([e], t) => $e({
|
|
2184
2184
|
getAccessToken: t,
|
|
2185
2185
|
type: Se.GET_SERVER_CAPABILITIES
|
|
@@ -2223,12 +2223,12 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2223
2223
|
}), ho = ({
|
|
2224
2224
|
className: e
|
|
2225
2225
|
}) => {
|
|
2226
|
-
const { state: t, dispatch: r } = B(X), a =
|
|
2226
|
+
const { state: t, dispatch: r } = B(X), a = O(null), n = O(!1), o = (s) => {
|
|
2227
2227
|
s.preventDefault(), r({
|
|
2228
2228
|
type: ft
|
|
2229
2229
|
});
|
|
2230
2230
|
};
|
|
2231
|
-
return
|
|
2231
|
+
return A(() => {
|
|
2232
2232
|
var s;
|
|
2233
2233
|
(t == null ? void 0 : t.streaming) === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (n.current = !1, (s = a.current) == null || s.blur());
|
|
2234
2234
|
}, [t]), /* @__PURE__ */ i(
|
|
@@ -2242,7 +2242,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2242
2242
|
label: "New Chat",
|
|
2243
2243
|
ref: a,
|
|
2244
2244
|
onClick: o,
|
|
2245
|
-
children: t != null && t.streaming ? /* @__PURE__ */ i(
|
|
2245
|
+
children: t != null && t.streaming ? /* @__PURE__ */ i(Oa, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ i(La, { size: "size-4", monotone: !0 })
|
|
2246
2246
|
}
|
|
2247
2247
|
);
|
|
2248
2248
|
}, ut = et.createContext({
|
|
@@ -2276,7 +2276,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2276
2276
|
focusMode: s = "system",
|
|
2277
2277
|
...c
|
|
2278
2278
|
}, g) => {
|
|
2279
|
-
const [d, h] = W(!1), [m, u] = W(!1), [f, p] = W(null), b =
|
|
2279
|
+
const [d, h] = W(!1), [m, u] = W(!1), [f, p] = W(null), b = O([]), v = O([]), y = B(ut), _ = fr(), S = ha(), N = pr(), { floatingStyles: k, refs: C, context: I } = fa({
|
|
2280
2280
|
nodeId: S,
|
|
2281
2281
|
open: d,
|
|
2282
2282
|
onOpenChange: (ae) => {
|
|
@@ -2319,7 +2319,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2319
2319
|
)
|
|
2320
2320
|
}
|
|
2321
2321
|
);
|
|
2322
|
-
return
|
|
2322
|
+
return A(() => {
|
|
2323
2323
|
if (!_)
|
|
2324
2324
|
return;
|
|
2325
2325
|
function ae() {
|
|
@@ -2328,7 +2328,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2328
2328
|
return _.events.on("click", ae), () => {
|
|
2329
2329
|
_.events.off("click", ae);
|
|
2330
2330
|
};
|
|
2331
|
-
}, [_, n]),
|
|
2331
|
+
}, [_, n]), A(() => {
|
|
2332
2332
|
d && _ && _.events.emit("menuopen", { nodeId: S });
|
|
2333
2333
|
}, [_, d, S]), /* @__PURE__ */ x(Ta, { id: S, children: [
|
|
2334
2334
|
re,
|
|
@@ -2368,7 +2368,7 @@ const Ze = M.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2368
2368
|
), wt = gr((e, t) => /* @__PURE__ */ i(Ia, { children: /* @__PURE__ */ i(Mr, { ...e, ref: t }) }));
|
|
2369
2369
|
wt.displayName = "Menu";
|
|
2370
2370
|
Mr.displayName = "MenuComponent";
|
|
2371
|
-
const
|
|
2371
|
+
const Ae = et.forwardRef(
|
|
2372
2372
|
({
|
|
2373
2373
|
label: e,
|
|
2374
2374
|
disabled: t,
|
|
@@ -2431,7 +2431,7 @@ const Oe = et.forwardRef(
|
|
|
2431
2431
|
);
|
|
2432
2432
|
}
|
|
2433
2433
|
);
|
|
2434
|
-
|
|
2434
|
+
Ae.displayName = "MenuItem";
|
|
2435
2435
|
const Ss = ({ className: e, ...t }) => {
|
|
2436
2436
|
const r = l(e, "my-1 border-t border-border-medium");
|
|
2437
2437
|
return /* @__PURE__ */ i("div", { className: r, ...t });
|
|
@@ -2443,13 +2443,13 @@ const Ss = ({ className: e, ...t }) => {
|
|
|
2443
2443
|
return /* @__PURE__ */ i("div", { className: r, ...t });
|
|
2444
2444
|
};
|
|
2445
2445
|
/*!
|
|
2446
|
-
@versini/ui-menu v3.2.
|
|
2446
|
+
@versini/ui-menu v3.2.5
|
|
2447
2447
|
© 2025 gizmette.com
|
|
2448
2448
|
*/
|
|
2449
2449
|
try {
|
|
2450
2450
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
2451
|
-
version: "3.2.
|
|
2452
|
-
buildTime: "01/
|
|
2451
|
+
version: "3.2.5",
|
|
2452
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
2453
2453
|
homepage: "https://github.com/aversini/ui-components",
|
|
2454
2454
|
license: "MIT"
|
|
2455
2455
|
});
|
|
@@ -2468,7 +2468,7 @@ const fo = (e) => {
|
|
|
2468
2468
|
data: o,
|
|
2469
2469
|
error: s,
|
|
2470
2470
|
isLoading: c
|
|
2471
|
-
} =
|
|
2471
|
+
} = Ar({
|
|
2472
2472
|
keys: [n == null ? void 0 : n.username],
|
|
2473
2473
|
getAccessToken: a
|
|
2474
2474
|
}), g = (d, h) => {
|
|
@@ -2484,12 +2484,12 @@ const fo = (e) => {
|
|
|
2484
2484
|
{
|
|
2485
2485
|
mode: "dark",
|
|
2486
2486
|
focusMode: "light",
|
|
2487
|
-
trigger: /* @__PURE__ */ i(Ee, { className: e, noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(
|
|
2487
|
+
trigger: /* @__PURE__ */ i(Ee, { className: e, noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Aa, { size: "size-4" }) }),
|
|
2488
2488
|
defaultPlacement: t,
|
|
2489
2489
|
children: [
|
|
2490
2490
|
/* @__PURE__ */ i(zr, { children: "Prompts" }),
|
|
2491
2491
|
o && o.tags && o.tags.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ i(
|
|
2492
|
-
|
|
2492
|
+
Ae,
|
|
2493
2493
|
{
|
|
2494
2494
|
label: d.label,
|
|
2495
2495
|
onClick: (h) => g(h, d.content)
|
|
@@ -2524,7 +2524,7 @@ const fo = (e) => {
|
|
|
2524
2524
|
error: s,
|
|
2525
2525
|
isLoading: c,
|
|
2526
2526
|
mutate: g
|
|
2527
|
-
} =
|
|
2527
|
+
} = Ar({
|
|
2528
2528
|
keys: [n == null ? void 0 : n.username],
|
|
2529
2529
|
getAccessToken: a
|
|
2530
2530
|
}), d = async (h) => {
|
|
@@ -2552,7 +2552,7 @@ const fo = (e) => {
|
|
|
2552
2552
|
children: [
|
|
2553
2553
|
/* @__PURE__ */ i(zr, { children: "Engines" }),
|
|
2554
2554
|
/* @__PURE__ */ i(
|
|
2555
|
-
|
|
2555
|
+
Ae,
|
|
2556
2556
|
{
|
|
2557
2557
|
selected: o && o.engine === $t,
|
|
2558
2558
|
label: "OpenAI",
|
|
@@ -2561,7 +2561,7 @@ const fo = (e) => {
|
|
|
2561
2561
|
}
|
|
2562
2562
|
),
|
|
2563
2563
|
/* @__PURE__ */ i(
|
|
2564
|
-
|
|
2564
|
+
Ae,
|
|
2565
2565
|
{
|
|
2566
2566
|
selected: o && o.engine === Fe,
|
|
2567
2567
|
label: "Anthropic",
|
|
@@ -2610,7 +2610,7 @@ const fo = (e) => {
|
|
|
2610
2610
|
ref: s,
|
|
2611
2611
|
...c
|
|
2612
2612
|
}) => {
|
|
2613
|
-
const { state: m } = B(X), { state: u } = B(De), f =
|
|
2613
|
+
const { state: m } = B(X), { state: u } = B(De), f = O(null), p = O(null), b = Ga([s, p]), v = Ja(), y = xo({
|
|
2614
2614
|
className: e
|
|
2615
2615
|
}), [_, S] = Ka({
|
|
2616
2616
|
value: r,
|
|
@@ -2638,9 +2638,9 @@ const fo = (e) => {
|
|
|
2638
2638
|
}, C = (I) => {
|
|
2639
2639
|
S(I.target.value), N();
|
|
2640
2640
|
};
|
|
2641
|
-
return
|
|
2641
|
+
return A(() => {
|
|
2642
2642
|
m && m.usage === 0 && m.messages.length === 0 && p.current && (p.current.style.height = "24px");
|
|
2643
|
-
}, [m]),
|
|
2643
|
+
}, [m]), A(() => {
|
|
2644
2644
|
u.lastTriggeredTimestamp && setTimeout(() => {
|
|
2645
2645
|
N();
|
|
2646
2646
|
}, 100);
|
|
@@ -2694,10 +2694,10 @@ const fo = (e) => {
|
|
|
2694
2694
|
}
|
|
2695
2695
|
});
|
|
2696
2696
|
}, wo = () => {
|
|
2697
|
-
const { state: e, dispatch: t } = B(X), { state: r, dispatch: a } = B(De), [n, o] = W(""), { getAccessToken: s, user: c } = xe(), g =
|
|
2697
|
+
const { state: e, dispatch: t } = B(X), { state: r, dispatch: a } = B(De), [n, o] = W(""), { getAccessToken: s, user: c } = xe(), g = O(null), d = O(
|
|
2698
2698
|
null
|
|
2699
2699
|
);
|
|
2700
|
-
|
|
2700
|
+
A(() => {
|
|
2701
2701
|
(async () => {
|
|
2702
2702
|
var u;
|
|
2703
2703
|
if (!e || e.messages.length === 0) {
|
|
@@ -2783,18 +2783,18 @@ const fo = (e) => {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
}), o("");
|
|
2785
2785
|
};
|
|
2786
|
-
return
|
|
2786
|
+
return A(() => {
|
|
2787
2787
|
if (r.prompt !== "") {
|
|
2788
2788
|
const m = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
|
|
2789
|
-
m.indexOf(
|
|
2790
|
-
o(m.replace(
|
|
2789
|
+
m.indexOf(Vt) !== -1 ? navigator.clipboard.readText().then((f) => {
|
|
2790
|
+
o(m.replace(Vt, f));
|
|
2791
2791
|
}) : o(m), g.current && g.current.focus(), a({
|
|
2792
2792
|
type: dr
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
|
-
}, [r, a]),
|
|
2795
|
+
}, [r, a]), A(() => {
|
|
2796
2796
|
e && e.usage === 0 && e.messages.length === 0 && (o(""), g.current && g.current.focus());
|
|
2797
|
-
}, [e]),
|
|
2797
|
+
}, [e]), A(() => {
|
|
2798
2798
|
(e == null ? void 0 : e.streaming) === !1 && g.current && g.current.focus();
|
|
2799
2799
|
}, [e]), /* @__PURE__ */ i(ht, { children: /* @__PURE__ */ i(
|
|
2800
2800
|
So,
|
|
@@ -2807,12 +2807,12 @@ const fo = (e) => {
|
|
|
2807
2807
|
}
|
|
2808
2808
|
) });
|
|
2809
2809
|
}, To = () => {
|
|
2810
|
-
const { state: e } = B(X), t =
|
|
2810
|
+
const { state: e } = B(X), t = O(!1), r = window.innerWidth < 403, [a, n] = W(
|
|
2811
2811
|
r ? "bottom-4" : "top-[245px]"
|
|
2812
2812
|
);
|
|
2813
|
-
return
|
|
2813
|
+
return A(() => {
|
|
2814
2814
|
r || e && (!t.current && e.streaming && n("bottom-4"), t.current = !!e.streaming);
|
|
2815
|
-
}, [e, r]),
|
|
2815
|
+
}, [e, r]), A(() => {
|
|
2816
2816
|
r || (e && e.messages.length === 0 && n("top-[245px]"), e && !e.streaming && e.messages.length > 0 && n("bottom-4"));
|
|
2817
2817
|
}, [e, r]), /* @__PURE__ */ x(
|
|
2818
2818
|
"footer",
|
|
@@ -2830,19 +2830,19 @@ const fo = (e) => {
|
|
|
2830
2830
|
);
|
|
2831
2831
|
};
|
|
2832
2832
|
/*!
|
|
2833
|
-
@versini/ui-bubble v3.1.
|
|
2833
|
+
@versini/ui-bubble v3.1.7
|
|
2834
2834
|
© 2025 gizmette.com
|
|
2835
2835
|
*/
|
|
2836
2836
|
try {
|
|
2837
2837
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
2838
|
-
version: "3.1.
|
|
2839
|
-
buildTime: "01/
|
|
2838
|
+
version: "3.1.7",
|
|
2839
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
2840
2840
|
homepage: "https://github.com/aversini/ui-components",
|
|
2841
2841
|
license: "MIT"
|
|
2842
2842
|
});
|
|
2843
2843
|
} catch {
|
|
2844
2844
|
}
|
|
2845
|
-
const No = "av-bubble", or = "av-button",
|
|
2845
|
+
const No = "av-bubble", or = "av-button", Ve = "icon", $r = "button", mt = "link", Co = ({
|
|
2846
2846
|
type: e,
|
|
2847
2847
|
size: t,
|
|
2848
2848
|
labelRight: r,
|
|
@@ -2858,7 +2858,7 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
2858
2858
|
[s]: t === "medium",
|
|
2859
2859
|
[c]: t === "large"
|
|
2860
2860
|
});
|
|
2861
|
-
case
|
|
2861
|
+
case Ve:
|
|
2862
2862
|
return l("inline-flex items-center", {
|
|
2863
2863
|
"justify-center": n === "center",
|
|
2864
2864
|
"justify-start": n === "left",
|
|
@@ -2887,7 +2887,7 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
2887
2887
|
[o]: t === "medium",
|
|
2888
2888
|
[s]: t === "large"
|
|
2889
2889
|
});
|
|
2890
|
-
case
|
|
2890
|
+
case Ve:
|
|
2891
2891
|
return l({
|
|
2892
2892
|
[n]: t === "small" && (r || a),
|
|
2893
2893
|
[o]: t === "medium" && (r || a),
|
|
@@ -2960,13 +2960,13 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
2960
2960
|
if (r === "selected")
|
|
2961
2961
|
return "bg-action-selected-dark";
|
|
2962
2962
|
}
|
|
2963
|
-
},
|
|
2963
|
+
}, Ao = ({
|
|
2964
2964
|
radius: e
|
|
2965
2965
|
}) => l({
|
|
2966
2966
|
"rounded-full": e === "large",
|
|
2967
2967
|
"rounded-md": e === "medium",
|
|
2968
2968
|
"rounded-sm": e === "small"
|
|
2969
|
-
}),
|
|
2969
|
+
}), Oo = ({
|
|
2970
2970
|
mode: e,
|
|
2971
2971
|
disabled: t,
|
|
2972
2972
|
variant: r
|
|
@@ -3089,7 +3089,7 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
3089
3089
|
noTruncate: f
|
|
3090
3090
|
}),
|
|
3091
3091
|
Lo({ mode: a, noBackground: m, variant: u }),
|
|
3092
|
-
|
|
3092
|
+
Ao({ radius: b }),
|
|
3093
3093
|
Co({
|
|
3094
3094
|
type: e,
|
|
3095
3095
|
size: c,
|
|
@@ -3100,7 +3100,7 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
3100
3100
|
Ro({ type: e, size: c, labelRight: d, labelLeft: h }),
|
|
3101
3101
|
Mo({ mode: a, variant: u, noBorder: g }),
|
|
3102
3102
|
zo({ focusMode: n }),
|
|
3103
|
-
|
|
3103
|
+
Oo({ mode: a, variant: u, disabled: o }),
|
|
3104
3104
|
Bo({ mode: a, variant: u, disabled: o }),
|
|
3105
3105
|
{
|
|
3106
3106
|
"w-full": s,
|
|
@@ -3124,7 +3124,7 @@ const No = "av-bubble", or = "av-button", Pe = "icon", $r = "button", mt = "link
|
|
|
3124
3124
|
);
|
|
3125
3125
|
});
|
|
3126
3126
|
Tt.displayName = "BaseButton";
|
|
3127
|
-
const
|
|
3127
|
+
const Vr = M.forwardRef(
|
|
3128
3128
|
({
|
|
3129
3129
|
children: e,
|
|
3130
3130
|
disabled: t = !1,
|
|
@@ -3147,7 +3147,7 @@ const Pr = M.forwardRef(
|
|
|
3147
3147
|
..._
|
|
3148
3148
|
}, S) => {
|
|
3149
3149
|
const N = Dr({
|
|
3150
|
-
type:
|
|
3150
|
+
type: Ve,
|
|
3151
3151
|
mode: r,
|
|
3152
3152
|
focusMode: a,
|
|
3153
3153
|
fullWidth: n,
|
|
@@ -3186,15 +3186,15 @@ const Pr = M.forwardRef(
|
|
|
3186
3186
|
);
|
|
3187
3187
|
}
|
|
3188
3188
|
);
|
|
3189
|
-
|
|
3189
|
+
Vr.displayName = "ButtonIcon";
|
|
3190
3190
|
/*!
|
|
3191
|
-
@versini/ui-button v4.0.
|
|
3191
|
+
@versini/ui-button v4.0.10
|
|
3192
3192
|
© 2025 gizmette.com
|
|
3193
3193
|
*/
|
|
3194
3194
|
try {
|
|
3195
3195
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3196
|
-
version: "4.0.
|
|
3197
|
-
buildTime: "01/
|
|
3196
|
+
version: "4.0.10",
|
|
3197
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
3198
3198
|
homepage: "https://github.com/aversini/ui-components",
|
|
3199
3199
|
license: "MIT"
|
|
3200
3200
|
});
|
|
@@ -3223,7 +3223,7 @@ const Do = M.forwardRef(
|
|
|
3223
3223
|
..._
|
|
3224
3224
|
}, S) => {
|
|
3225
3225
|
const N = Dr({
|
|
3226
|
-
type:
|
|
3226
|
+
type: Ve,
|
|
3227
3227
|
mode: r,
|
|
3228
3228
|
focusMode: a,
|
|
3229
3229
|
fullWidth: n,
|
|
@@ -3278,7 +3278,7 @@ const Do = M.forwardRef(
|
|
|
3278
3278
|
}
|
|
3279
3279
|
);
|
|
3280
3280
|
Do.displayName = "ButtonSort";
|
|
3281
|
-
const
|
|
3281
|
+
const Pr = ({
|
|
3282
3282
|
children: e,
|
|
3283
3283
|
fill: t,
|
|
3284
3284
|
viewBox: r,
|
|
@@ -3309,26 +3309,26 @@ const Vr = ({
|
|
|
3309
3309
|
] });
|
|
3310
3310
|
};
|
|
3311
3311
|
/*!
|
|
3312
|
-
@versini/ui-svgicon v4.0.
|
|
3312
|
+
@versini/ui-svgicon v4.0.3
|
|
3313
3313
|
© 2025 gizmette.com
|
|
3314
3314
|
*/
|
|
3315
3315
|
try {
|
|
3316
3316
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
3317
|
-
version: "4.0.
|
|
3318
|
-
buildTime: "01/
|
|
3317
|
+
version: "4.0.3",
|
|
3318
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
3319
3319
|
homepage: "https://github.com/aversini/ui-components",
|
|
3320
3320
|
license: "MIT"
|
|
3321
3321
|
});
|
|
3322
3322
|
} catch {
|
|
3323
3323
|
}
|
|
3324
|
-
const
|
|
3324
|
+
const Vo = ({
|
|
3325
3325
|
className: e,
|
|
3326
3326
|
viewBox: t,
|
|
3327
3327
|
title: r,
|
|
3328
3328
|
monotone: a,
|
|
3329
3329
|
...n
|
|
3330
3330
|
}) => /* @__PURE__ */ x(
|
|
3331
|
-
|
|
3331
|
+
Pr,
|
|
3332
3332
|
{
|
|
3333
3333
|
defaultViewBox: "0 0 448 512",
|
|
3334
3334
|
size: "size-5",
|
|
@@ -3354,14 +3354,14 @@ const Po = ({
|
|
|
3354
3354
|
)
|
|
3355
3355
|
]
|
|
3356
3356
|
}
|
|
3357
|
-
),
|
|
3357
|
+
), Po = ({
|
|
3358
3358
|
className: e,
|
|
3359
3359
|
viewBox: t,
|
|
3360
3360
|
title: r,
|
|
3361
3361
|
monotone: a,
|
|
3362
3362
|
...n
|
|
3363
3363
|
}) => /* @__PURE__ */ i(
|
|
3364
|
-
|
|
3364
|
+
Pr,
|
|
3365
3365
|
{
|
|
3366
3366
|
defaultViewBox: "0 0 512 512",
|
|
3367
3367
|
size: "size-5",
|
|
@@ -3373,13 +3373,13 @@ const Po = ({
|
|
|
3373
3373
|
}
|
|
3374
3374
|
);
|
|
3375
3375
|
/*!
|
|
3376
|
-
@versini/ui-icons v4.4.
|
|
3376
|
+
@versini/ui-icons v4.4.2
|
|
3377
3377
|
© 2025 gizmette.com
|
|
3378
3378
|
*/
|
|
3379
3379
|
try {
|
|
3380
3380
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
3381
|
-
version: "4.4.
|
|
3382
|
-
buildTime: "01/
|
|
3381
|
+
version: "4.4.2",
|
|
3382
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
3383
3383
|
homepage: "https://github.com/aversini/ui-components",
|
|
3384
3384
|
license: "MIT"
|
|
3385
3385
|
});
|
|
@@ -3444,7 +3444,7 @@ const Uo = ({
|
|
|
3444
3444
|
const [d, h] = W(!1), m = Go({ kind: t, className: r, noMaxWidth: g }), u = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), f = () => {
|
|
3445
3445
|
h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
3446
3446
|
};
|
|
3447
|
-
return
|
|
3447
|
+
return A(() => {
|
|
3448
3448
|
let p;
|
|
3449
3449
|
return d && (p = window.setTimeout(() => {
|
|
3450
3450
|
h(!1);
|
|
@@ -3462,7 +3462,7 @@ const Uo = ({
|
|
|
3462
3462
|
n && n
|
|
3463
3463
|
] }),
|
|
3464
3464
|
u && /* @__PURE__ */ i("div", { className: m.copyButton, children: /* @__PURE__ */ i(
|
|
3465
|
-
|
|
3465
|
+
Vr,
|
|
3466
3466
|
{
|
|
3467
3467
|
noBorder: !0,
|
|
3468
3468
|
noBackground: !0,
|
|
@@ -3472,7 +3472,7 @@ const Uo = ({
|
|
|
3472
3472
|
label: d ? "Copied to clipboard" : "Copy to clipboard",
|
|
3473
3473
|
onClick: f,
|
|
3474
3474
|
disabled: d,
|
|
3475
|
-
children: d ? /* @__PURE__ */ i(
|
|
3475
|
+
children: d ? /* @__PURE__ */ i(Vo, { size: "size-3" }) : /* @__PURE__ */ i(Po, { size: "size-3" })
|
|
3476
3476
|
}
|
|
3477
3477
|
) })
|
|
3478
3478
|
] });
|
|
@@ -3802,13 +3802,13 @@ const Fr = M.forwardRef(
|
|
|
3802
3802
|
);
|
|
3803
3803
|
Fr.displayName = "Button";
|
|
3804
3804
|
/*!
|
|
3805
|
-
@versini/ui-button v4.0.
|
|
3805
|
+
@versini/ui-button v4.0.10
|
|
3806
3806
|
© 2025 gizmette.com
|
|
3807
3807
|
*/
|
|
3808
3808
|
try {
|
|
3809
3809
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3810
|
-
version: "4.0.
|
|
3811
|
-
buildTime: "01/
|
|
3810
|
+
version: "4.0.10",
|
|
3811
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
3812
3812
|
homepage: "https://github.com/aversini/ui-components",
|
|
3813
3813
|
license: "MIT"
|
|
3814
3814
|
});
|
|
@@ -3936,13 +3936,13 @@ const ns = 200, os = ({
|
|
|
3936
3936
|
] });
|
|
3937
3937
|
};
|
|
3938
3938
|
/*!
|
|
3939
|
-
@versini/ui-truncate v3.0.
|
|
3939
|
+
@versini/ui-truncate v3.0.10
|
|
3940
3940
|
© 2025 gizmette.com
|
|
3941
3941
|
*/
|
|
3942
3942
|
try {
|
|
3943
3943
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
3944
|
-
version: "3.0.
|
|
3945
|
-
buildTime: "01/
|
|
3944
|
+
version: "3.0.10",
|
|
3945
|
+
buildTime: "01/14/2025 10:39 AM EST",
|
|
3946
3946
|
homepage: "https://github.com/aversini/ui-components",
|
|
3947
3947
|
license: "MIT"
|
|
3948
3948
|
});
|
|
@@ -3951,7 +3951,7 @@ try {
|
|
|
3951
3951
|
const ir = hr(
|
|
3952
3952
|
() => import(
|
|
3953
3953
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
3954
|
-
"./MessageAssistant.
|
|
3954
|
+
"./MessageAssistant.wYO5jy_g.js"
|
|
3955
3955
|
).then((e) => e.MessageAssistant)
|
|
3956
3956
|
), is = () => {
|
|
3957
3957
|
const { state: e } = B(X);
|
|
@@ -3975,7 +3975,7 @@ const ir = hr(
|
|
|
3975
3975
|
const { isAuthenticated: e } = xe(), { state: t } = B(X), [r, a] = W(!1), [n, o] = qa(), s = oa({
|
|
3976
3976
|
isAuthenticated: e,
|
|
3977
3977
|
extraClass: "rounded-b-md"
|
|
3978
|
-
}), c =
|
|
3978
|
+
}), c = O(!1), g = K(() => {
|
|
3979
3979
|
const h = n.current;
|
|
3980
3980
|
if (h) {
|
|
3981
3981
|
const { scrollHeight: m, clientHeight: u, scrollTop: f } = h, p = m - u - f;
|
|
@@ -3993,13 +3993,13 @@ const ir = hr(
|
|
|
3993
3993
|
}, [n]);
|
|
3994
3994
|
return mr(() => {
|
|
3995
3995
|
o && o.width && t && !t.streaming && d();
|
|
3996
|
-
}, [o, t, d]),
|
|
3996
|
+
}, [o, t, d]), A(() => {
|
|
3997
3997
|
const h = n.current;
|
|
3998
3998
|
if (h)
|
|
3999
3999
|
return h.addEventListener("scroll", d), () => h.removeEventListener("scroll", d);
|
|
4000
|
-
}, [d, n]),
|
|
4000
|
+
}, [d, n]), A(() => {
|
|
4001
4001
|
t && t.streaming && d();
|
|
4002
|
-
}, [t, d]),
|
|
4002
|
+
}, [t, d]), A(() => {
|
|
4003
4003
|
t && (!c.current && t.streaming && g(), c.current = !!t.streaming);
|
|
4004
4004
|
}, [t, g]), /* @__PURE__ */ x("div", { className: s, ref: n, children: [
|
|
4005
4005
|
r && /* @__PURE__ */ i(
|
|
@@ -4039,7 +4039,7 @@ const ir = hr(
|
|
|
4039
4039
|
}, ls = hr(
|
|
4040
4040
|
() => import(
|
|
4041
4041
|
/* webpackChunkName: "LazyHeader" */
|
|
4042
|
-
"./HeaderToolbar.
|
|
4042
|
+
"./HeaderToolbar.qJtZsjJJ.js"
|
|
4043
4043
|
)
|
|
4044
4044
|
);
|
|
4045
4045
|
function Hr({ isComponent: e = !1 }) {
|
|
@@ -4072,7 +4072,7 @@ function Hr({ isComponent: e = !1 }) {
|
|
|
4072
4072
|
c.sortDirection
|
|
4073
4073
|
],
|
|
4074
4074
|
getAccessToken: r
|
|
4075
|
-
}), lo({ getAccessToken: r }), so({ keys: [t == null ? void 0 : t.username], getAccessToken: r }),
|
|
4075
|
+
}), lo({ getAccessToken: r }), so({ keys: [t == null ? void 0 : t.username], getAccessToken: r }), A(() => {
|
|
4076
4076
|
var u;
|
|
4077
4077
|
(u = document.getElementById("logo")) == null || u.classList.add("fadeOut"), setTimeout(() => {
|
|
4078
4078
|
var f;
|
|
@@ -4097,7 +4097,7 @@ function Hr({ isComponent: e = !1 }) {
|
|
|
4097
4097
|
noMargin: !0,
|
|
4098
4098
|
noPadding: !0,
|
|
4099
4099
|
noBorder: !0,
|
|
4100
|
-
className:
|
|
4100
|
+
className: Pt({
|
|
4101
4101
|
extraClass: "mt-5"
|
|
4102
4102
|
}),
|
|
4103
4103
|
children: /* @__PURE__ */ i(tt, { fallback: /* @__PURE__ */ i("div", {}), children: /* @__PURE__ */ i(ls, {}) })
|
|
@@ -4106,7 +4106,7 @@ function Hr({ isComponent: e = !1 }) {
|
|
|
4106
4106
|
/* @__PURE__ */ i(
|
|
4107
4107
|
ia,
|
|
4108
4108
|
{
|
|
4109
|
-
className:
|
|
4109
|
+
className: Pt({
|
|
4110
4110
|
extraClass: "max-h-[calc(100svh_-_250px)]"
|
|
4111
4111
|
}),
|
|
4112
4112
|
noMargin: !0,
|
|
@@ -4129,7 +4129,7 @@ export {
|
|
|
4129
4129
|
jt as E,
|
|
4130
4130
|
go as HistoryContext,
|
|
4131
4131
|
Ss as P,
|
|
4132
|
-
|
|
4132
|
+
Ae as R,
|
|
4133
4133
|
Se as SERVICE_TYPES,
|
|
4134
4134
|
bs as be,
|
|
4135
4135
|
be as f,
|
|
@@ -4147,6 +4147,6 @@ export {
|
|
|
4147
4147
|
Es as useChatsHistory,
|
|
4148
4148
|
xs as useServerCapabilities,
|
|
4149
4149
|
_s as useUserChatStats,
|
|
4150
|
-
|
|
4150
|
+
Ar as useUserPreferences,
|
|
4151
4151
|
ks as ye
|
|
4152
4152
|
};
|