@versini/sassysaint 5.5.12 → 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.CNyYloEL.js → App.CgE9Asbd.js} +213 -199
- package/dist/chunks/{HeaderToolbar.Bq1bArQC.js → HeaderToolbar.C26uPJv0.js} +212 -207
- package/dist/chunks/{MarkdownWithExtra.CFyPsO_C.js → MarkdownWithExtra.wbV_UGsm.js} +8 -8
- package/dist/chunks/{MessageAssistant.BihILyCE.js → MessageAssistant.CKmbS3S7.js} +6 -6
- package/dist/chunks/{index.B7w6LJPp.js → index.UQ480MwW.js} +25 -25
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { jsx as o, jsxs as k, Fragment as
|
|
2
|
-
import { g as z, R as
|
|
3
|
-
import { AppContext as ve, HistoryContext as et, E as le, ge as Jt, he as er, ue as Ne,
|
|
1
|
+
import { jsx as o, jsxs as k, Fragment as M } from "react/jsx-runtime";
|
|
2
|
+
import { g as z, R as P, CARDS as I, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as Ot, L as q, j as A, C as H, un as Z, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Vt, P as X, ACTION_RESET as Qe, ACTION_RESTORE as $t, ACTION_SORT as De, LOCAL_STORAGE_SEARCH as Dt, ye as Ee, ACTION_SEARCH as Ht, debounce as Ft, HISTORY_TITLE as Gt, M as Ut, z as He, durationFormatter as jt, PROFILE_TITLE as Wt, TAGS_DESCRIPTION as Kt, ACTION_SET_TAGS as Yt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as Xe, LOCAL_STORAGE_CHAT_DETAILS as qt, SETTINGS_TITLE as Zt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as Q, APP_NAME as Qt, ACTION_ENGINE as Je, getCurrentGeoLocation as Xt, LOG_OUT as Fe } from "./index.UQ480MwW.js";
|
|
3
|
+
import { AppContext as ve, HistoryContext as et, E as le, ge as Jt, he as er, ue as Ne, ye as tr, le as D, me as rr, be as or, serviceCall as O, SERVICE_TYPES as V, f as K, TagsContext as ar, Pe as Ge, NewChatButton as nr } from "./App.CgE9Asbd.js";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import E, { useId as ze, forwardRef as tt, useState as _, useRef as J, useContext as
|
|
5
|
+
import E, { useId as ze, forwardRef as tt, useState as _, useRef as J, useContext as $, useEffect as F } from "react";
|
|
6
6
|
import w from "clsx";
|
|
7
7
|
import { useFloatingTree as rt, useFloatingNodeId as sr, useListItem as ot, useFloating as at, offset as ir, flip as cr, shift as lr, autoUpdate as dr, useClick as nt, useRole as st, useDismiss as it, useListNavigation as ur, useTypeahead as mr, useInteractions as ct, useMergeRefs as Le, FloatingNode as hr, FloatingList as gr, FloatingPortal as lt, FloatingFocusManager as dt, FloatingTree as fr, FloatingOverlay as pr } from "@floating-ui/react";
|
|
8
8
|
const ut = ({
|
|
@@ -312,7 +312,7 @@ const Ie = g.createContext({
|
|
|
312
312
|
focusMode: s = "system",
|
|
313
313
|
...c
|
|
314
314
|
}, m) => {
|
|
315
|
-
const [l, u] = _(!1), [f, p] = _(!1), [b, h] = _(null), d = J([]), v = J([]), x =
|
|
315
|
+
const [l, u] = _(!1), [f, p] = _(!1), [b, h] = _(null), d = J([]), v = J([]), x = $(Ie), C = rt(), y = sr(), T = ot(), { floatingStyles: S, refs: L, context: R } = at({
|
|
316
316
|
nodeId: y,
|
|
317
317
|
open: l,
|
|
318
318
|
onOpenChange: (ae) => {
|
|
@@ -326,7 +326,7 @@ const Ie = g.createContext({
|
|
|
326
326
|
event: "mousedown",
|
|
327
327
|
toggle: !0,
|
|
328
328
|
ignoreMouse: !1
|
|
329
|
-
}),
|
|
329
|
+
}), G = st(R, { role: "menu" }), U = it(R, { bubbles: !0 }), j = ur(R, {
|
|
330
330
|
listRef: d,
|
|
331
331
|
activeIndex: b,
|
|
332
332
|
nested: !1,
|
|
@@ -336,14 +336,14 @@ const Ie = g.createContext({
|
|
|
336
336
|
listRef: v,
|
|
337
337
|
onMatch: l ? h : void 0,
|
|
338
338
|
activeIndex: b
|
|
339
|
-
}), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps:
|
|
340
|
-
noInternalClick:
|
|
339
|
+
}), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: B } = ct([N, G, U, j, re]), $e = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = $e ? {
|
|
340
|
+
noInternalClick: $e,
|
|
341
341
|
focusMode: s,
|
|
342
342
|
mode: i
|
|
343
|
-
} : {},
|
|
343
|
+
} : {}, Pt = E.cloneElement(
|
|
344
344
|
e,
|
|
345
345
|
{
|
|
346
|
-
...
|
|
346
|
+
...Bt,
|
|
347
347
|
"aria-label": r,
|
|
348
348
|
"data-open": l ? "" : void 0,
|
|
349
349
|
"data-focus-inside": f ? "" : void 0,
|
|
@@ -355,7 +355,7 @@ const Ie = g.createContext({
|
|
|
355
355
|
)
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
|
-
return
|
|
358
|
+
return F(() => {
|
|
359
359
|
if (!C)
|
|
360
360
|
return;
|
|
361
361
|
function ae() {
|
|
@@ -364,17 +364,17 @@ const Ie = g.createContext({
|
|
|
364
364
|
return C.events.on("click", ae), () => {
|
|
365
365
|
C.events.off("click", ae);
|
|
366
366
|
};
|
|
367
|
-
}, [C, n]),
|
|
367
|
+
}, [C, n]), F(() => {
|
|
368
368
|
l && C && C.events.emit("menuopen", { nodeId: y });
|
|
369
369
|
}, [C, l, y]), /* @__PURE__ */ k(hr, { id: y, children: [
|
|
370
|
-
|
|
370
|
+
Pt,
|
|
371
371
|
/* @__PURE__ */ o(
|
|
372
372
|
Ie.Provider,
|
|
373
373
|
{
|
|
374
374
|
value: {
|
|
375
375
|
activeIndex: b,
|
|
376
376
|
setActiveIndex: h,
|
|
377
|
-
getItemProps:
|
|
377
|
+
getItemProps: B,
|
|
378
378
|
setHasFocusInside: p,
|
|
379
379
|
isOpen: l
|
|
380
380
|
},
|
|
@@ -404,7 +404,7 @@ const Ie = g.createContext({
|
|
|
404
404
|
), _e = tt((e, t) => /* @__PURE__ */ o(fr, { children: /* @__PURE__ */ o(ht, { ...e, ref: t }) }));
|
|
405
405
|
_e.displayName = "Menu";
|
|
406
406
|
ht.displayName = "MenuComponent";
|
|
407
|
-
const
|
|
407
|
+
const W = g.forwardRef(
|
|
408
408
|
({
|
|
409
409
|
label: e,
|
|
410
410
|
disabled: t,
|
|
@@ -455,39 +455,39 @@ const K = g.forwardRef(
|
|
|
455
455
|
));
|
|
456
456
|
}
|
|
457
457
|
);
|
|
458
|
-
|
|
458
|
+
W.displayName = "MenuItem";
|
|
459
459
|
const Er = ({ className: e, ...t }) => {
|
|
460
460
|
const r = w(e, "my-1 border-t border-border-medium");
|
|
461
461
|
return /* @__PURE__ */ o("div", { className: r, ...t });
|
|
462
462
|
};
|
|
463
463
|
/*!
|
|
464
|
-
@versini/ui-menu
|
|
464
|
+
@versini/ui-menu v3.0.0
|
|
465
465
|
© 2025 gizmette.com
|
|
466
466
|
*/
|
|
467
467
|
try {
|
|
468
468
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
469
|
-
version: "
|
|
470
|
-
buildTime: "01/
|
|
469
|
+
version: "3.0.0",
|
|
470
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
471
471
|
homepage: "https://github.com/aversini/ui-components",
|
|
472
472
|
license: "MIT"
|
|
473
473
|
});
|
|
474
474
|
} catch {
|
|
475
475
|
}
|
|
476
476
|
/*!
|
|
477
|
-
@versini/ui-togglegroup
|
|
477
|
+
@versini/ui-togglegroup v3.0.0
|
|
478
478
|
© 2025 gizmette.com
|
|
479
479
|
*/
|
|
480
480
|
try {
|
|
481
481
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
482
|
-
version: "
|
|
483
|
-
buildTime: "01/
|
|
482
|
+
version: "3.0.0",
|
|
483
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
484
484
|
homepage: "https://github.com/aversini/ui-components",
|
|
485
485
|
license: "MIT"
|
|
486
486
|
});
|
|
487
487
|
} catch {
|
|
488
488
|
}
|
|
489
489
|
const Ir = "av-togglegroup", _r = "av-togglegroup-item-wrapper", Sr = "av-togglegroup-item";
|
|
490
|
-
function
|
|
490
|
+
function Be(e, t = []) {
|
|
491
491
|
let r = [];
|
|
492
492
|
function a(i, s) {
|
|
493
493
|
const c = g.createContext(s), m = r.length;
|
|
@@ -562,7 +562,7 @@ function Se(...e) {
|
|
|
562
562
|
return g.useCallback(gt(...e), e);
|
|
563
563
|
}
|
|
564
564
|
var pe = g.forwardRef((e, t) => {
|
|
565
|
-
const { children: r, ...a } = e, n = g.Children.toArray(r), i = n.find(
|
|
565
|
+
const { children: r, ...a } = e, n = g.Children.toArray(r), i = n.find(Mr);
|
|
566
566
|
if (i) {
|
|
567
567
|
const s = i.props.children, c = n.map((m) => m === i ? g.Children.count(s) > 1 ? g.Children.only(null) : g.isValidElement(s) ? s.props.children : null : m);
|
|
568
568
|
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: g.isValidElement(s) ? g.cloneElement(s, void 0, c) : null });
|
|
@@ -583,9 +583,9 @@ var Re = g.forwardRef((e, t) => {
|
|
|
583
583
|
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
584
584
|
});
|
|
585
585
|
Re.displayName = "SlotClone";
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return g.isValidElement(e) && e.type ===
|
|
586
|
+
var Ar = ({ children: e }) => /* @__PURE__ */ o(M, { children: e });
|
|
587
|
+
function Mr(e) {
|
|
588
|
+
return g.isValidElement(e) && e.type === Ar;
|
|
589
589
|
}
|
|
590
590
|
function zr(e, t) {
|
|
591
591
|
const r = { ...t };
|
|
@@ -602,7 +602,7 @@ function Lr(e) {
|
|
|
602
602
|
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
603
603
|
return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
605
|
+
var Br = [
|
|
606
606
|
"a",
|
|
607
607
|
"button",
|
|
608
608
|
"div",
|
|
@@ -619,21 +619,21 @@ var Pr = [
|
|
|
619
619
|
"span",
|
|
620
620
|
"svg",
|
|
621
621
|
"ul"
|
|
622
|
-
], de =
|
|
622
|
+
], de = Br.reduce((e, t) => {
|
|
623
623
|
const r = g.forwardRef((a, n) => {
|
|
624
624
|
const { asChild: i, ...s } = a, c = i ? pe : t;
|
|
625
625
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...s, ref: n });
|
|
626
626
|
});
|
|
627
627
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
628
628
|
}, {});
|
|
629
|
-
function
|
|
629
|
+
function Y(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
630
630
|
return function(a) {
|
|
631
631
|
if (e == null || e(a), r === !1 || !a.defaultPrevented)
|
|
632
632
|
return t == null ? void 0 : t(a);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
const t = e + "CollectionProvider", [r, a] =
|
|
635
|
+
function Pr(e) {
|
|
636
|
+
const t = e + "CollectionProvider", [r, a] = Be(t), [n, i] = r(
|
|
637
637
|
t,
|
|
638
638
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
639
639
|
), s = (b) => {
|
|
@@ -672,16 +672,16 @@ function Br(e) {
|
|
|
672
672
|
a
|
|
673
673
|
];
|
|
674
674
|
}
|
|
675
|
-
var
|
|
676
|
-
},
|
|
677
|
-
}),
|
|
675
|
+
var Or = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
|
|
676
|
+
}, Vr = g.useId || (() => {
|
|
677
|
+
}), $r = 0;
|
|
678
678
|
function Dr(e) {
|
|
679
|
-
const [t, r] = g.useState(
|
|
680
|
-
return
|
|
681
|
-
r((a) => a ?? String(
|
|
679
|
+
const [t, r] = g.useState(Vr());
|
|
680
|
+
return Or(() => {
|
|
681
|
+
r((a) => a ?? String($r++));
|
|
682
682
|
}, [e]), t ? `radix-${t}` : "";
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Pe(e) {
|
|
685
685
|
const t = g.useRef(e);
|
|
686
686
|
return g.useEffect(() => {
|
|
687
687
|
t.current = e;
|
|
@@ -696,7 +696,7 @@ function ye({
|
|
|
696
696
|
onChange: r = () => {
|
|
697
697
|
}
|
|
698
698
|
}) {
|
|
699
|
-
const [a, n] = Hr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c =
|
|
699
|
+
const [a, n] = Hr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c = Pe(r), m = g.useCallback(
|
|
700
700
|
(l) => {
|
|
701
701
|
if (i) {
|
|
702
702
|
const u = typeof l == "function" ? l(e) : l;
|
|
@@ -712,7 +712,7 @@ function Hr({
|
|
|
712
712
|
defaultProp: e,
|
|
713
713
|
onChange: t
|
|
714
714
|
}) {
|
|
715
|
-
const r = g.useState(e), [a] = r, n = g.useRef(a), i =
|
|
715
|
+
const r = g.useState(e), [a] = r, n = g.useRef(a), i = Pe(t);
|
|
716
716
|
return g.useEffect(() => {
|
|
717
717
|
n.current !== a && (i(a), n.current = a);
|
|
718
718
|
}, [a, n, i]), r;
|
|
@@ -722,11 +722,11 @@ function ft(e) {
|
|
|
722
722
|
const t = g.useContext(Fr);
|
|
723
723
|
return e || t || "ltr";
|
|
724
724
|
}
|
|
725
|
-
var Te = "rovingFocusGroup.onEntryFocus", Gr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [
|
|
725
|
+
var Te = "rovingFocusGroup.onEntryFocus", Gr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Ae, pt, Ur] = Pr(ke), [jr, bt] = Be(
|
|
726
726
|
ke,
|
|
727
727
|
[Ur]
|
|
728
728
|
), [Wr, Kr] = jr(ke), vt = g.forwardRef(
|
|
729
|
-
(e, t) => /* @__PURE__ */ o(
|
|
729
|
+
(e, t) => /* @__PURE__ */ o(Ae.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Ae.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Yr, { ...e, ref: t }) }) })
|
|
730
730
|
);
|
|
731
731
|
vt.displayName = ke;
|
|
732
732
|
var Yr = g.forwardRef((e, t) => {
|
|
@@ -745,7 +745,7 @@ var Yr = g.forwardRef((e, t) => {
|
|
|
745
745
|
prop: s,
|
|
746
746
|
defaultProp: c,
|
|
747
747
|
onChange: m
|
|
748
|
-
}), [x, C] = g.useState(!1), y =
|
|
748
|
+
}), [x, C] = g.useState(!1), y = Pe(l), T = pt(r), S = g.useRef(!1), [L, R] = g.useState(0);
|
|
749
749
|
return g.useEffect(() => {
|
|
750
750
|
const N = p.current;
|
|
751
751
|
if (N)
|
|
@@ -779,23 +779,23 @@ var Yr = g.forwardRef((e, t) => {
|
|
|
779
779
|
...f,
|
|
780
780
|
ref: b,
|
|
781
781
|
style: { outline: "none", ...e.style },
|
|
782
|
-
onMouseDown:
|
|
782
|
+
onMouseDown: Y(e.onMouseDown, () => {
|
|
783
783
|
S.current = !0;
|
|
784
784
|
}),
|
|
785
|
-
onFocus:
|
|
786
|
-
const
|
|
787
|
-
if (N.target === N.currentTarget &&
|
|
788
|
-
const
|
|
789
|
-
if (N.currentTarget.dispatchEvent(
|
|
790
|
-
const
|
|
785
|
+
onFocus: Y(e.onFocus, (N) => {
|
|
786
|
+
const G = !S.current;
|
|
787
|
+
if (N.target === N.currentTarget && G && !x) {
|
|
788
|
+
const U = new CustomEvent(Te, Gr);
|
|
789
|
+
if (N.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
790
|
+
const j = T().filter((B) => B.focusable), re = j.find((B) => B.active), oe = j.find((B) => B.id === d), Ce = [re, oe, ...j].filter(
|
|
791
791
|
Boolean
|
|
792
|
-
).map((
|
|
792
|
+
).map((B) => B.ref.current);
|
|
793
793
|
wt(Ce, u);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
S.current = !1;
|
|
797
797
|
}),
|
|
798
|
-
onBlur:
|
|
798
|
+
onBlur: Y(e.onBlur, () => C(!1))
|
|
799
799
|
}
|
|
800
800
|
)
|
|
801
801
|
}
|
|
@@ -813,7 +813,7 @@ var Yr = g.forwardRef((e, t) => {
|
|
|
813
813
|
if (a)
|
|
814
814
|
return p(), () => b();
|
|
815
815
|
}, [a, p, b]), /* @__PURE__ */ o(
|
|
816
|
-
|
|
816
|
+
Ae.ItemSlot,
|
|
817
817
|
{
|
|
818
818
|
scope: r,
|
|
819
819
|
id: m,
|
|
@@ -826,11 +826,11 @@ var Yr = g.forwardRef((e, t) => {
|
|
|
826
826
|
"data-orientation": l.orientation,
|
|
827
827
|
...s,
|
|
828
828
|
ref: t,
|
|
829
|
-
onMouseDown:
|
|
829
|
+
onMouseDown: Y(e.onMouseDown, (h) => {
|
|
830
830
|
a ? l.onItemFocus(m) : h.preventDefault();
|
|
831
831
|
}),
|
|
832
|
-
onFocus:
|
|
833
|
-
onKeyDown:
|
|
832
|
+
onFocus: Y(e.onFocus, () => l.onItemFocus(m)),
|
|
833
|
+
onKeyDown: Y(e.onKeyDown, (h) => {
|
|
834
834
|
if (h.key === "Tab" && h.shiftKey) {
|
|
835
835
|
l.onItemShiftTab();
|
|
836
836
|
return;
|
|
@@ -898,16 +898,16 @@ var Jr = vt, eo = kt, to = "Toggle", xt = g.forwardRef((e, t) => {
|
|
|
898
898
|
"data-disabled": e.disabled ? "" : void 0,
|
|
899
899
|
...i,
|
|
900
900
|
ref: t,
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: Y(e.onClick, () => {
|
|
902
902
|
e.disabled || c(!s);
|
|
903
903
|
})
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
906
|
});
|
|
907
907
|
xt.displayName = to;
|
|
908
|
-
var ee = "ToggleGroup", [Ct, ca] =
|
|
908
|
+
var ee = "ToggleGroup", [Ct, ca] = Be(ee, [
|
|
909
909
|
bt
|
|
910
|
-
]), Nt = bt(),
|
|
910
|
+
]), Nt = bt(), Oe = E.forwardRef((e, t) => {
|
|
911
911
|
const { type: r, ...a } = e;
|
|
912
912
|
if (r === "single")
|
|
913
913
|
return /* @__PURE__ */ o(ro, { ...a, ref: t });
|
|
@@ -915,7 +915,7 @@ var ee = "ToggleGroup", [Ct, ca] = Pe(ee, [
|
|
|
915
915
|
return /* @__PURE__ */ o(oo, { ...a, ref: t });
|
|
916
916
|
throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
|
|
917
917
|
});
|
|
918
|
-
|
|
918
|
+
Oe.displayName = ee;
|
|
919
919
|
var [Tt, Et] = Ct(ee), ro = E.forwardRef((e, t) => {
|
|
920
920
|
const {
|
|
921
921
|
value: r,
|
|
@@ -969,7 +969,7 @@ var [Tt, Et] = Ct(ee), ro = E.forwardRef((e, t) => {
|
|
|
969
969
|
}
|
|
970
970
|
);
|
|
971
971
|
});
|
|
972
|
-
|
|
972
|
+
Oe.displayName = ee;
|
|
973
973
|
var [ao, no] = Ct(ee), It = E.forwardRef(
|
|
974
974
|
(e, t) => {
|
|
975
975
|
const {
|
|
@@ -1025,7 +1025,7 @@ var We = E.forwardRef(
|
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
), so =
|
|
1028
|
+
), so = Oe, io = _t;
|
|
1029
1029
|
const St = E.createContext({
|
|
1030
1030
|
size: "medium",
|
|
1031
1031
|
focusMode: "system",
|
|
@@ -1114,7 +1114,7 @@ const St = E.createContext({
|
|
|
1114
1114
|
}
|
|
1115
1115
|
) });
|
|
1116
1116
|
}, po = ({ value: e, disabled: t }) => {
|
|
1117
|
-
const { size: r, focusMode: a, mode: n } =
|
|
1117
|
+
const { size: r, focusMode: a, mode: n } = $(St), { itemClass: i, wrapperClass: s } = ho({
|
|
1118
1118
|
focusMode: a,
|
|
1119
1119
|
mode: n,
|
|
1120
1120
|
size: r
|
|
@@ -1130,19 +1130,19 @@ const St = E.createContext({
|
|
|
1130
1130
|
) });
|
|
1131
1131
|
};
|
|
1132
1132
|
/*!
|
|
1133
|
-
@versini/ui-panel v1.
|
|
1133
|
+
@versini/ui-panel v1.3.0
|
|
1134
1134
|
© 2025 gizmette.com
|
|
1135
1135
|
*/
|
|
1136
1136
|
try {
|
|
1137
1137
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1138
|
-
version: "1.
|
|
1139
|
-
buildTime: "01/
|
|
1138
|
+
version: "1.3.0",
|
|
1139
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1140
1140
|
homepage: "https://github.com/aversini/ui-components",
|
|
1141
1141
|
license: "MIT"
|
|
1142
1142
|
});
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt = "button",
|
|
1145
|
+
const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt = "button", Me = "link", bo = ({
|
|
1146
1146
|
type: e,
|
|
1147
1147
|
size: t,
|
|
1148
1148
|
labelRight: r,
|
|
@@ -1152,7 +1152,7 @@ const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt =
|
|
|
1152
1152
|
const i = "max-h-8 py-0 px-2", s = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
1153
1153
|
switch (e) {
|
|
1154
1154
|
case Rt:
|
|
1155
|
-
case
|
|
1155
|
+
case Me:
|
|
1156
1156
|
return w({
|
|
1157
1157
|
[i]: t === "small",
|
|
1158
1158
|
[s]: t === "medium",
|
|
@@ -1180,9 +1180,9 @@ const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt =
|
|
|
1180
1180
|
const n = "text-sm font-medium", i = "text-base font-medium", s = "text-lg font-medium";
|
|
1181
1181
|
switch (e) {
|
|
1182
1182
|
case Rt:
|
|
1183
|
-
case
|
|
1183
|
+
case Me:
|
|
1184
1184
|
return w({
|
|
1185
|
-
"text-center": e ===
|
|
1185
|
+
"text-center": e === Me,
|
|
1186
1186
|
[n]: t === "small",
|
|
1187
1187
|
[i]: t === "medium",
|
|
1188
1188
|
[s]: t === "large"
|
|
@@ -1367,7 +1367,7 @@ const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt =
|
|
|
1367
1367
|
"focus:outline-focus-light": e === "light",
|
|
1368
1368
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1369
1369
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1370
|
-
}),
|
|
1370
|
+
}), At = ({
|
|
1371
1371
|
type: e,
|
|
1372
1372
|
className: t,
|
|
1373
1373
|
raw: r,
|
|
@@ -1414,7 +1414,7 @@ const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt =
|
|
|
1414
1414
|
)), Eo = (e, t, r) => {
|
|
1415
1415
|
var a;
|
|
1416
1416
|
!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);
|
|
1417
|
-
},
|
|
1417
|
+
}, Ve = E.forwardRef((e, t) => {
|
|
1418
1418
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
1419
1419
|
return /* @__PURE__ */ o(
|
|
1420
1420
|
"button",
|
|
@@ -1427,8 +1427,8 @@ const Ke = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", Rt =
|
|
|
1427
1427
|
}
|
|
1428
1428
|
);
|
|
1429
1429
|
});
|
|
1430
|
-
|
|
1431
|
-
const
|
|
1430
|
+
Ve.displayName = "BaseButton";
|
|
1431
|
+
const Mt = E.forwardRef(
|
|
1432
1432
|
({
|
|
1433
1433
|
children: e,
|
|
1434
1434
|
disabled: t = !1,
|
|
@@ -1450,7 +1450,7 @@ const At = E.forwardRef(
|
|
|
1450
1450
|
variant: x = "primary",
|
|
1451
1451
|
...C
|
|
1452
1452
|
}, y) => {
|
|
1453
|
-
const T =
|
|
1453
|
+
const T = At({
|
|
1454
1454
|
type: we,
|
|
1455
1455
|
mode: r,
|
|
1456
1456
|
focusMode: a,
|
|
@@ -1473,7 +1473,7 @@ const At = E.forwardRef(
|
|
|
1473
1473
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1474
1474
|
});
|
|
1475
1475
|
return /* @__PURE__ */ k(
|
|
1476
|
-
|
|
1476
|
+
Ve,
|
|
1477
1477
|
{
|
|
1478
1478
|
ref: y,
|
|
1479
1479
|
className: T,
|
|
@@ -1490,15 +1490,15 @@ const At = E.forwardRef(
|
|
|
1490
1490
|
);
|
|
1491
1491
|
}
|
|
1492
1492
|
);
|
|
1493
|
-
|
|
1493
|
+
Mt.displayName = "ButtonIcon";
|
|
1494
1494
|
/*!
|
|
1495
|
-
@versini/ui-button
|
|
1495
|
+
@versini/ui-button v4.0.0
|
|
1496
1496
|
© 2025 gizmette.com
|
|
1497
1497
|
*/
|
|
1498
1498
|
try {
|
|
1499
1499
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1500
|
-
version: "
|
|
1501
|
-
buildTime: "01/
|
|
1500
|
+
version: "4.0.0",
|
|
1501
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1502
1502
|
homepage: "https://github.com/aversini/ui-components",
|
|
1503
1503
|
license: "MIT"
|
|
1504
1504
|
});
|
|
@@ -1526,7 +1526,7 @@ const Io = E.forwardRef(
|
|
|
1526
1526
|
radius: x = "large",
|
|
1527
1527
|
...C
|
|
1528
1528
|
}, y) => {
|
|
1529
|
-
const T =
|
|
1529
|
+
const T = At({
|
|
1530
1530
|
type: we,
|
|
1531
1531
|
mode: r,
|
|
1532
1532
|
focusMode: a,
|
|
@@ -1564,7 +1564,7 @@ const Io = E.forwardRef(
|
|
|
1564
1564
|
}
|
|
1565
1565
|
) : "";
|
|
1566
1566
|
return /* @__PURE__ */ o("div", { className: L, children: /* @__PURE__ */ k(
|
|
1567
|
-
|
|
1567
|
+
Ve,
|
|
1568
1568
|
{
|
|
1569
1569
|
ref: y,
|
|
1570
1570
|
className: T,
|
|
@@ -1594,7 +1594,7 @@ const _o = ({
|
|
|
1594
1594
|
...m
|
|
1595
1595
|
}) => {
|
|
1596
1596
|
const l = w(i, a);
|
|
1597
|
-
return /* @__PURE__ */ k(
|
|
1597
|
+
return /* @__PURE__ */ k(M, { children: [
|
|
1598
1598
|
/* @__PURE__ */ o(
|
|
1599
1599
|
"svg",
|
|
1600
1600
|
{
|
|
@@ -1613,13 +1613,13 @@ const _o = ({
|
|
|
1613
1613
|
] });
|
|
1614
1614
|
};
|
|
1615
1615
|
/*!
|
|
1616
|
-
@versini/ui-svgicon
|
|
1616
|
+
@versini/ui-svgicon v4.0.0
|
|
1617
1617
|
© 2025 gizmette.com
|
|
1618
1618
|
*/
|
|
1619
1619
|
try {
|
|
1620
1620
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1621
|
-
version: "
|
|
1622
|
-
buildTime: "01/
|
|
1621
|
+
version: "4.0.0",
|
|
1622
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1623
1623
|
homepage: "https://github.com/aversini/ui-components",
|
|
1624
1624
|
license: "MIT"
|
|
1625
1625
|
});
|
|
@@ -1644,13 +1644,13 @@ const So = ({
|
|
|
1644
1644
|
}
|
|
1645
1645
|
);
|
|
1646
1646
|
/*!
|
|
1647
|
-
@versini/ui-icons
|
|
1647
|
+
@versini/ui-icons v4.0.0
|
|
1648
1648
|
© 2025 gizmette.com
|
|
1649
1649
|
*/
|
|
1650
1650
|
try {
|
|
1651
1651
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1652
|
-
version: "
|
|
1653
|
-
buildTime: "01/
|
|
1652
|
+
version: "4.0.0",
|
|
1653
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1654
1654
|
homepage: "https://github.com/aversini/ui-components",
|
|
1655
1655
|
license: "MIT"
|
|
1656
1656
|
});
|
|
@@ -1691,14 +1691,14 @@ const xe = () => {
|
|
|
1691
1691
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1692
1692
|
return e;
|
|
1693
1693
|
};
|
|
1694
|
-
function
|
|
1694
|
+
function Ao({
|
|
1695
1695
|
children: e,
|
|
1696
1696
|
...t
|
|
1697
1697
|
}) {
|
|
1698
1698
|
const r = Ro(t);
|
|
1699
1699
|
return /* @__PURE__ */ o(zt.Provider, { value: r, children: e });
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1701
|
+
const Mo = g.forwardRef(function(e, t) {
|
|
1702
1702
|
const { context: r, ...a } = xe(), n = Le([a.refs.setFloating, t]);
|
|
1703
1703
|
if (!r.open)
|
|
1704
1704
|
return null;
|
|
@@ -1722,7 +1722,7 @@ const Ao = g.forwardRef(function(e, t) {
|
|
|
1722
1722
|
}), Lo = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1723
1723
|
const { setDescriptionId: a } = xe(), n = ze();
|
|
1724
1724
|
return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
|
|
1725
|
-
}),
|
|
1725
|
+
}), Bo = g.forwardRef(function(e, t) {
|
|
1726
1726
|
const { setOpen: r } = xe(), { trigger: a, className: n, ...i } = e, s = g.useCallback(() => r(!1), [r]);
|
|
1727
1727
|
return /* @__PURE__ */ o("div", { className: n, children: g.cloneElement(a, {
|
|
1728
1728
|
ref: t,
|
|
@@ -1731,19 +1731,19 @@ const Ao = g.forwardRef(function(e, t) {
|
|
|
1731
1731
|
}) });
|
|
1732
1732
|
});
|
|
1733
1733
|
/*!
|
|
1734
|
-
@versini/ui-modal v1.
|
|
1734
|
+
@versini/ui-modal v1.2.0
|
|
1735
1735
|
© 2025 gizmette.com
|
|
1736
1736
|
*/
|
|
1737
1737
|
try {
|
|
1738
1738
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1739
|
-
version: "1.
|
|
1740
|
-
buildTime: "01/
|
|
1739
|
+
version: "1.2.0",
|
|
1740
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
1741
1741
|
homepage: "https://github.com/aversini/ui-components",
|
|
1742
1742
|
license: "MIT"
|
|
1743
1743
|
});
|
|
1744
1744
|
} catch {
|
|
1745
1745
|
}
|
|
1746
|
-
const se = "panel", ue = "messagebox",
|
|
1746
|
+
const se = "panel", ue = "messagebox", Po = ({
|
|
1747
1747
|
className: e,
|
|
1748
1748
|
kind: t,
|
|
1749
1749
|
borderMode: r
|
|
@@ -1773,17 +1773,17 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1773
1773
|
kind: s = se,
|
|
1774
1774
|
className: c
|
|
1775
1775
|
}) => {
|
|
1776
|
-
const m = J(""), l =
|
|
1777
|
-
return
|
|
1776
|
+
const m = J(""), l = Po({ className: c, kind: s, borderMode: i });
|
|
1777
|
+
return F(() => (e && (m.current = document.title, document.title = `${r} | ${m.current}`), () => {
|
|
1778
1778
|
e && (document.title = m.current);
|
|
1779
|
-
}), [r, e]), /* @__PURE__ */ o(
|
|
1779
|
+
}), [r, e]), /* @__PURE__ */ o(M, { children: e && /* @__PURE__ */ o(Ao, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(Mo, { className: l.main, children: [
|
|
1780
1780
|
/* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1781
1781
|
/* @__PURE__ */ o(
|
|
1782
|
-
|
|
1782
|
+
Bo,
|
|
1783
1783
|
{
|
|
1784
1784
|
className: l.close,
|
|
1785
1785
|
trigger: /* @__PURE__ */ o(
|
|
1786
|
-
|
|
1786
|
+
Mt,
|
|
1787
1787
|
{
|
|
1788
1788
|
mode: "dark",
|
|
1789
1789
|
focusMode: "light",
|
|
@@ -1799,39 +1799,39 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1799
1799
|
/* @__PURE__ */ o(Lo, { className: l.content, children: a }),
|
|
1800
1800
|
n && /* @__PURE__ */ o("div", { className: l.footer, children: n })
|
|
1801
1801
|
] }) }) });
|
|
1802
|
-
},
|
|
1802
|
+
}, Oo = ({ stats: e }) => {
|
|
1803
1803
|
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = fe(), i = fe();
|
|
1804
|
-
return /* @__PURE__ */ k(
|
|
1804
|
+
return /* @__PURE__ */ k(M, { children: [
|
|
1805
1805
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1806
|
-
|
|
1806
|
+
P,
|
|
1807
1807
|
{
|
|
1808
1808
|
header: I.ABOUT.TITLE_CLIENT,
|
|
1809
1809
|
className: "prose-dark dark:prose-lighter",
|
|
1810
1810
|
children: he(n, {
|
|
1811
|
-
[I.ABOUT.VERSION]: "5.18.
|
|
1812
|
-
[I.ABOUT.BUILD_TIMESTAMP]: "01/
|
|
1811
|
+
[I.ABOUT.VERSION]: "5.18.4",
|
|
1812
|
+
[I.ABOUT.BUILD_TIMESTAMP]: "01/03/2025 03:03 PM EST"
|
|
1813
1813
|
})
|
|
1814
1814
|
}
|
|
1815
1815
|
) }),
|
|
1816
1816
|
/* @__PURE__ */ o(
|
|
1817
|
-
|
|
1817
|
+
P,
|
|
1818
1818
|
{
|
|
1819
1819
|
header: I.ABOUT.TITLE_SERVER,
|
|
1820
1820
|
className: "prose-dark dark:prose-lighter",
|
|
1821
1821
|
children: he(i, {
|
|
1822
1822
|
[I.ABOUT.VERSION]: r,
|
|
1823
|
-
[ge(I.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(
|
|
1824
|
-
[ge(I.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(
|
|
1823
|
+
[ge(I.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(M, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
|
|
1824
|
+
[ge(I.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(M, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
|
|
1825
1825
|
})
|
|
1826
1826
|
}
|
|
1827
1827
|
)
|
|
1828
1828
|
] });
|
|
1829
|
-
},
|
|
1829
|
+
}, Vo = ({
|
|
1830
1830
|
open: e,
|
|
1831
1831
|
onOpenChange: t
|
|
1832
1832
|
}) => {
|
|
1833
|
-
const { serverStats: r } =
|
|
1834
|
-
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
1833
|
+
const { serverStats: r } = $(ve);
|
|
1834
|
+
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ot, children: /* @__PURE__ */ o(Oo, { stats: r }) });
|
|
1835
1835
|
}, Lt = ({
|
|
1836
1836
|
showConfirmation: e,
|
|
1837
1837
|
setShowConfirmation: t,
|
|
@@ -1845,8 +1845,8 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1845
1845
|
open: e,
|
|
1846
1846
|
onOpenChange: t,
|
|
1847
1847
|
title: n.title,
|
|
1848
|
-
footer: /* @__PURE__ */ k(
|
|
1849
|
-
/* @__PURE__ */ o(
|
|
1848
|
+
footer: /* @__PURE__ */ k(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1849
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
1850
1850
|
H,
|
|
1851
1851
|
{
|
|
1852
1852
|
mode: "dark",
|
|
@@ -1858,7 +1858,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1858
1858
|
children: n.cancelAction
|
|
1859
1859
|
}
|
|
1860
1860
|
) }),
|
|
1861
|
-
/* @__PURE__ */ o(
|
|
1861
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
1862
1862
|
H,
|
|
1863
1863
|
{
|
|
1864
1864
|
mode: "dark",
|
|
@@ -1873,11 +1873,11 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1873
1873
|
] }),
|
|
1874
1874
|
children: a
|
|
1875
1875
|
}
|
|
1876
|
-
),
|
|
1876
|
+
), $o = async (e, t, r, a) => {
|
|
1877
1877
|
try {
|
|
1878
|
-
const n = await
|
|
1878
|
+
const n = await O({
|
|
1879
1879
|
accessToken: a,
|
|
1880
|
-
type:
|
|
1880
|
+
type: V.GET_CHAT,
|
|
1881
1881
|
params: {
|
|
1882
1882
|
id: e.id
|
|
1883
1883
|
}
|
|
@@ -1885,7 +1885,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1885
1885
|
n.status === 200 && (t({
|
|
1886
1886
|
type: Qe
|
|
1887
1887
|
}), t({
|
|
1888
|
-
type:
|
|
1888
|
+
type: $t,
|
|
1889
1889
|
payload: {
|
|
1890
1890
|
id: e.id,
|
|
1891
1891
|
model: n.data.model,
|
|
@@ -1906,32 +1906,32 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1906
1906
|
id: 0,
|
|
1907
1907
|
timestamp: "",
|
|
1908
1908
|
message: ""
|
|
1909
|
-
}), [c, m] = _(!1), { state: l, dispatch: u } =
|
|
1910
|
-
key: ce +
|
|
1909
|
+
}), [c, m] = _(!1), { state: l, dispatch: u } = $(et), [, f] = le({
|
|
1910
|
+
key: ce + Vt,
|
|
1911
1911
|
initialValue: l.sortDirection
|
|
1912
1912
|
}), p = (d) => {
|
|
1913
1913
|
switch (l.sortDirection) {
|
|
1914
|
-
case
|
|
1915
|
-
f(
|
|
1914
|
+
case K.ASC:
|
|
1915
|
+
f(K.DESC), u({
|
|
1916
1916
|
type: De,
|
|
1917
1917
|
payload: {
|
|
1918
1918
|
sortedCell: d,
|
|
1919
|
-
sortDirection:
|
|
1919
|
+
sortDirection: K.DESC
|
|
1920
1920
|
}
|
|
1921
1921
|
});
|
|
1922
1922
|
break;
|
|
1923
1923
|
default:
|
|
1924
|
-
f(
|
|
1924
|
+
f(K.ASC), u({
|
|
1925
1925
|
type: De,
|
|
1926
1926
|
payload: {
|
|
1927
1927
|
sortedCell: d,
|
|
1928
|
-
sortDirection:
|
|
1928
|
+
sortDirection: K.ASC
|
|
1929
1929
|
}
|
|
1930
1930
|
});
|
|
1931
1931
|
break;
|
|
1932
1932
|
}
|
|
1933
1933
|
};
|
|
1934
|
-
return /* @__PURE__ */ k(
|
|
1934
|
+
return /* @__PURE__ */ k(M, { children: [
|
|
1935
1935
|
/* @__PURE__ */ k(
|
|
1936
1936
|
Lt,
|
|
1937
1937
|
{
|
|
@@ -1940,9 +1940,9 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
1940
1940
|
action: async () => {
|
|
1941
1941
|
const d = s.current;
|
|
1942
1942
|
try {
|
|
1943
|
-
const v = await
|
|
1943
|
+
const v = await O({
|
|
1944
1944
|
accessToken: await i(),
|
|
1945
|
-
type:
|
|
1945
|
+
type: V.DELETE_CHAT,
|
|
1946
1946
|
params: {
|
|
1947
1947
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1948
1948
|
id: d.id,
|
|
@@ -2027,25 +2027,30 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2027
2027
|
children: d.messages.length > 0 ? (C = d.messages[0]) == null ? void 0 : C.content : ""
|
|
2028
2028
|
}
|
|
2029
2029
|
),
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2030
|
+
/* @__PURE__ */ k(
|
|
2031
|
+
D,
|
|
2032
|
+
{
|
|
2033
|
+
component: "th",
|
|
2034
|
+
scope: "row",
|
|
2035
|
+
className: "text-gray-400",
|
|
2036
|
+
align: "center",
|
|
2037
|
+
children: [
|
|
2038
|
+
d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ut, { size: "size-4 sm:size-5" }),
|
|
2039
|
+
d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(mt, { size: "size-4 sm:size-5" })
|
|
2040
|
+
]
|
|
2041
|
+
}
|
|
2042
|
+
),
|
|
2043
|
+
/* @__PURE__ */ k(D, { align: "right", children: [
|
|
2035
2044
|
/* @__PURE__ */ o(
|
|
2036
2045
|
X,
|
|
2037
2046
|
{
|
|
2047
|
+
className: "mr-2",
|
|
2038
2048
|
focusMode: "alt-system",
|
|
2039
2049
|
noBorder: !0,
|
|
2040
2050
|
label: "Restore chat",
|
|
2041
2051
|
onClick: async () => {
|
|
2042
2052
|
const y = await i();
|
|
2043
|
-
|
|
2044
|
-
d,
|
|
2045
|
-
r,
|
|
2046
|
-
a,
|
|
2047
|
-
y
|
|
2048
|
-
);
|
|
2053
|
+
$o(d, r, a, y);
|
|
2049
2054
|
},
|
|
2050
2055
|
children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 })
|
|
2051
2056
|
}
|
|
@@ -2067,7 +2072,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2067
2072
|
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(vr, { size: "size-3", monotone: !0 }) })
|
|
2068
2073
|
}
|
|
2069
2074
|
)
|
|
2070
|
-
] })
|
|
2075
|
+
] })
|
|
2071
2076
|
] }, `${I.HISTORY.TITLE}-${d.id}-${v}`) : null;
|
|
2072
2077
|
}) }),
|
|
2073
2078
|
/* @__PURE__ */ o(or, { children: /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(D, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: ge(
|
|
@@ -2082,14 +2087,14 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2082
2087
|
searchString: e,
|
|
2083
2088
|
username: t,
|
|
2084
2089
|
accessToken: r,
|
|
2085
|
-
direction: a =
|
|
2090
|
+
direction: a = K.ASC
|
|
2086
2091
|
}) => {
|
|
2087
2092
|
if (!t)
|
|
2088
2093
|
return [];
|
|
2089
2094
|
try {
|
|
2090
|
-
const n = await
|
|
2095
|
+
const n = await O({
|
|
2091
2096
|
accessToken: r,
|
|
2092
|
-
type:
|
|
2097
|
+
type: V.GET_CHATS,
|
|
2093
2098
|
params: {
|
|
2094
2099
|
userId: t,
|
|
2095
2100
|
searchString: e,
|
|
@@ -2105,7 +2110,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2105
2110
|
}
|
|
2106
2111
|
return [];
|
|
2107
2112
|
}, Ho = ({ onOpenChange: e }) => {
|
|
2108
|
-
const { isAuthenticated: t, getAccessToken: r, user: a } = Z(), n = J(null), i = J(!1), { dispatch: s } =
|
|
2113
|
+
const { isAuthenticated: t, getAccessToken: r, user: a } = Z(), n = J(null), i = J(!1), { dispatch: s } = $(ve), { state: c, dispatch: m } = $(et), [, l] = le({
|
|
2109
2114
|
key: ce + Dt,
|
|
2110
2115
|
initialValue: c.searchString
|
|
2111
2116
|
}), [u, f] = _({
|
|
@@ -2130,7 +2135,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2130
2135
|
}, 500), h = async (d) => {
|
|
2131
2136
|
d.preventDefault();
|
|
2132
2137
|
};
|
|
2133
|
-
return
|
|
2138
|
+
return F(() => {
|
|
2134
2139
|
i.current || (async () => {
|
|
2135
2140
|
i.current = !0;
|
|
2136
2141
|
const d = await r(), v = await Ze({
|
|
@@ -2144,12 +2149,12 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2144
2149
|
sortedDirection: c.sortDirection
|
|
2145
2150
|
});
|
|
2146
2151
|
})();
|
|
2147
|
-
}),
|
|
2152
|
+
}), F(() => {
|
|
2148
2153
|
if (c.sortDirection !== u.sortedDirection) {
|
|
2149
2154
|
const d = [...u.data].sort((v, x) => {
|
|
2150
2155
|
if (c.sortedCell === "timestamp") {
|
|
2151
2156
|
const C = new Date(v[c.sortedCell]).getTime(), y = new Date(x[c.sortedCell]).getTime();
|
|
2152
|
-
return c.sortDirection ===
|
|
2157
|
+
return c.sortDirection === K.ASC ? C - y : y - C;
|
|
2153
2158
|
}
|
|
2154
2159
|
return 0;
|
|
2155
2160
|
});
|
|
@@ -2158,7 +2163,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2158
2163
|
sortedDirection: c.sortDirection
|
|
2159
2164
|
});
|
|
2160
2165
|
}
|
|
2161
|
-
}, [u, c]), t ? u && u.data && /* @__PURE__ */ k(
|
|
2166
|
+
}, [u, c]), t ? u && u.data && /* @__PURE__ */ k(M, { children: [
|
|
2162
2167
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: h, children: /* @__PURE__ */ o(
|
|
2163
2168
|
Ee,
|
|
2164
2169
|
{
|
|
@@ -2208,9 +2213,9 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2208
2213
|
onOpenChange: t
|
|
2209
2214
|
}) => /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Gt, children: /* @__PURE__ */ o(Ho, { onOpenChange: t }) }), Go = ({ stats: e }) => {
|
|
2210
2215
|
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Z(), i = fe(), s = fe(), c = (r == null ? void 0 : r.username) || "";
|
|
2211
|
-
return t && c ? /* @__PURE__ */ k(
|
|
2216
|
+
return t && c ? /* @__PURE__ */ k(M, { children: [
|
|
2212
2217
|
/* @__PURE__ */ o(
|
|
2213
|
-
|
|
2218
|
+
P,
|
|
2214
2219
|
{
|
|
2215
2220
|
header: I.PREFERENCES.TITLE,
|
|
2216
2221
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2221,12 +2226,12 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2221
2226
|
}
|
|
2222
2227
|
),
|
|
2223
2228
|
n !== Ut.PASSKEY && /* @__PURE__ */ k(
|
|
2224
|
-
|
|
2229
|
+
P,
|
|
2225
2230
|
{
|
|
2226
2231
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2227
|
-
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ k(
|
|
2228
|
-
/* @__PURE__ */ o(
|
|
2229
|
-
/* @__PURE__ */ o(
|
|
2232
|
+
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ k(q, { columnGap: 3, alignVertical: "center", children: [
|
|
2233
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(He, { size: "size-8" }) }),
|
|
2234
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o("div", { children: I.PREFERENCES.PASSKEY_TITLE }) })
|
|
2230
2235
|
] }) }),
|
|
2231
2236
|
children: [
|
|
2232
2237
|
/* @__PURE__ */ o("p", { children: I.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
@@ -2244,7 +2249,7 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2244
2249
|
}
|
|
2245
2250
|
),
|
|
2246
2251
|
/* @__PURE__ */ o(
|
|
2247
|
-
|
|
2252
|
+
P,
|
|
2248
2253
|
{
|
|
2249
2254
|
header: I.MAIN_STATISTICS.TITLE,
|
|
2250
2255
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2265,12 +2270,12 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2265
2270
|
averageProcessingTimes: 0,
|
|
2266
2271
|
totalChats: 0
|
|
2267
2272
|
}), { getAccessToken: n, user: i } = Z();
|
|
2268
|
-
return
|
|
2273
|
+
return F(() => {
|
|
2269
2274
|
!e || !i || (async () => {
|
|
2270
2275
|
try {
|
|
2271
|
-
const s = await
|
|
2276
|
+
const s = await O({
|
|
2272
2277
|
accessToken: await n(),
|
|
2273
|
-
type:
|
|
2278
|
+
type: V.GET_CHATS_STATS,
|
|
2274
2279
|
params: {
|
|
2275
2280
|
userId: i.username
|
|
2276
2281
|
}
|
|
@@ -2282,13 +2287,13 @@ const se = "panel", ue = "messagebox", Bo = ({
|
|
|
2282
2287
|
}, [e, n, i]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Wt, children: /* @__PURE__ */ o(Go, { stats: r }) });
|
|
2283
2288
|
};
|
|
2284
2289
|
/*!
|
|
2285
|
-
@versini/ui-toggle
|
|
2290
|
+
@versini/ui-toggle v3.0.0
|
|
2286
2291
|
© 2025 gizmette.com
|
|
2287
2292
|
*/
|
|
2288
2293
|
try {
|
|
2289
2294
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
2290
|
-
version: "
|
|
2291
|
-
buildTime: "01/
|
|
2295
|
+
version: "3.0.0",
|
|
2296
|
+
buildTime: "01/03/2025 10:45 AM EST",
|
|
2292
2297
|
homepage: "https://github.com/aversini/ui-components",
|
|
2293
2298
|
license: "MIT"
|
|
2294
2299
|
});
|
|
@@ -2401,7 +2406,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2401
2406
|
open: e,
|
|
2402
2407
|
onOpenChange: t
|
|
2403
2408
|
}) => {
|
|
2404
|
-
const { state: r, dispatch: a } =
|
|
2409
|
+
const { state: r, dispatch: a } = $(ar), { getAccessToken: n, user: i } = Z(), [s, c] = _({
|
|
2405
2410
|
tags: [...r.tags]
|
|
2406
2411
|
}), m = ({
|
|
2407
2412
|
slot: u,
|
|
@@ -2427,9 +2432,9 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2427
2432
|
}, l = async (u) => {
|
|
2428
2433
|
u.preventDefault();
|
|
2429
2434
|
try {
|
|
2430
|
-
await
|
|
2435
|
+
await O({
|
|
2431
2436
|
accessToken: await n(),
|
|
2432
|
-
type:
|
|
2437
|
+
type: V.SET_USER_PREFERENCES,
|
|
2433
2438
|
params: {
|
|
2434
2439
|
user: i == null ? void 0 : i.username,
|
|
2435
2440
|
tags: s.tags
|
|
@@ -2450,13 +2455,13 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2450
2455
|
onOpenChange: t,
|
|
2451
2456
|
title: "Tags",
|
|
2452
2457
|
footer: /* @__PURE__ */ k(
|
|
2453
|
-
|
|
2458
|
+
q,
|
|
2454
2459
|
{
|
|
2455
2460
|
columnGap: 2,
|
|
2456
2461
|
alignHorizontal: "flex-end",
|
|
2457
2462
|
className: "pb-8 sm:pb-0",
|
|
2458
2463
|
children: [
|
|
2459
|
-
/* @__PURE__ */ o(
|
|
2464
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2460
2465
|
H,
|
|
2461
2466
|
{
|
|
2462
2467
|
mode: "dark",
|
|
@@ -2468,7 +2473,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2468
2473
|
children: "Cancel"
|
|
2469
2474
|
}
|
|
2470
2475
|
) }),
|
|
2471
|
-
/* @__PURE__ */ o(
|
|
2476
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2472
2477
|
H,
|
|
2473
2478
|
{
|
|
2474
2479
|
mode: "dark",
|
|
@@ -2486,13 +2491,13 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2486
2491
|
children: [
|
|
2487
2492
|
/* @__PURE__ */ o("p", { children: Kt }),
|
|
2488
2493
|
s.tags && s.tags.map((u) => /* @__PURE__ */ k(
|
|
2489
|
-
|
|
2494
|
+
P,
|
|
2490
2495
|
{
|
|
2491
2496
|
header: `Tag ${u.slot + 1}`,
|
|
2492
2497
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2493
2498
|
children: [
|
|
2494
|
-
/* @__PURE__ */ k(
|
|
2495
|
-
/* @__PURE__ */ o(
|
|
2499
|
+
/* @__PURE__ */ k(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2500
|
+
/* @__PURE__ */ o(A, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2496
2501
|
Ee,
|
|
2497
2502
|
{
|
|
2498
2503
|
label: "Label",
|
|
@@ -2508,7 +2513,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2508
2513
|
}
|
|
2509
2514
|
}
|
|
2510
2515
|
) }),
|
|
2511
|
-
/* @__PURE__ */ o(
|
|
2516
|
+
/* @__PURE__ */ o(A, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2512
2517
|
Ee,
|
|
2513
2518
|
{
|
|
2514
2519
|
label: "Content",
|
|
@@ -2554,7 +2559,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2554
2559
|
open: e,
|
|
2555
2560
|
onOpenChange: t
|
|
2556
2561
|
}) => {
|
|
2557
|
-
const { dispatch: r } =
|
|
2562
|
+
const { dispatch: r } = $(ve), { getAccessToken: a, user: n } = Z(), [i, s] = _(!1), [c, m] = _({
|
|
2558
2563
|
loaded: !1,
|
|
2559
2564
|
instructions: "",
|
|
2560
2565
|
loadingLocation: !1,
|
|
@@ -2571,9 +2576,9 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2571
2576
|
}, h = async (y) => {
|
|
2572
2577
|
y.preventDefault();
|
|
2573
2578
|
try {
|
|
2574
|
-
await
|
|
2579
|
+
await O({
|
|
2575
2580
|
accessToken: await a(),
|
|
2576
|
-
type:
|
|
2581
|
+
type: V.SET_USER_PREFERENCES,
|
|
2577
2582
|
params: {
|
|
2578
2583
|
user: n == null ? void 0 : n.username,
|
|
2579
2584
|
instructions: c.instructions,
|
|
@@ -2595,16 +2600,16 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2595
2600
|
loadingLocation: !0
|
|
2596
2601
|
}));
|
|
2597
2602
|
try {
|
|
2598
|
-
const y = Date.now(), T = await Xt(), S = await
|
|
2603
|
+
const y = Date.now(), T = await Xt(), S = await O({
|
|
2599
2604
|
accessToken: await a(),
|
|
2600
|
-
type:
|
|
2605
|
+
type: V.GET_LOCATION,
|
|
2601
2606
|
params: {
|
|
2602
2607
|
latitude: T.latitude,
|
|
2603
2608
|
longitude: T.longitude
|
|
2604
2609
|
}
|
|
2605
2610
|
}), R = Date.now() - y;
|
|
2606
2611
|
if (R < 2e3 && await new Promise((N) => setTimeout(N, 2e3 - R)), S.status === 200) {
|
|
2607
|
-
const { city: N, state:
|
|
2612
|
+
const { city: N, state: G, country: U, displayName: j } = S.data, re = N && G && U ? `${N}, ${G}, ${U}` : j;
|
|
2608
2613
|
m((oe) => ({
|
|
2609
2614
|
...oe,
|
|
2610
2615
|
loaded: !0,
|
|
@@ -2633,7 +2638,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2633
2638
|
}, C = () => {
|
|
2634
2639
|
s(!i);
|
|
2635
2640
|
};
|
|
2636
|
-
return
|
|
2641
|
+
return F(() => {
|
|
2637
2642
|
if (!e || !n) {
|
|
2638
2643
|
m({
|
|
2639
2644
|
loaded: !1,
|
|
@@ -2646,9 +2651,9 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2646
2651
|
}
|
|
2647
2652
|
(async () => {
|
|
2648
2653
|
try {
|
|
2649
|
-
const y = await
|
|
2654
|
+
const y = await O({
|
|
2650
2655
|
accessToken: await a(),
|
|
2651
|
-
type:
|
|
2656
|
+
type: V.GET_USER_PREFERENCES,
|
|
2652
2657
|
params: {
|
|
2653
2658
|
user: n.username
|
|
2654
2659
|
}
|
|
@@ -2670,13 +2675,13 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2670
2675
|
onOpenChange: t,
|
|
2671
2676
|
title: Zt,
|
|
2672
2677
|
footer: /* @__PURE__ */ k(
|
|
2673
|
-
|
|
2678
|
+
q,
|
|
2674
2679
|
{
|
|
2675
2680
|
columnGap: 2,
|
|
2676
2681
|
alignHorizontal: "flex-end",
|
|
2677
2682
|
className: "pb-8 sm:pb-0",
|
|
2678
2683
|
children: [
|
|
2679
|
-
/* @__PURE__ */ o(
|
|
2684
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2680
2685
|
H,
|
|
2681
2686
|
{
|
|
2682
2687
|
mode: "dark",
|
|
@@ -2688,7 +2693,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2688
2693
|
children: "Cancel"
|
|
2689
2694
|
}
|
|
2690
2695
|
) }),
|
|
2691
|
-
/* @__PURE__ */ o(
|
|
2696
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2692
2697
|
H,
|
|
2693
2698
|
{
|
|
2694
2699
|
mode: "dark",
|
|
@@ -2703,10 +2708,10 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2703
2708
|
]
|
|
2704
2709
|
}
|
|
2705
2710
|
),
|
|
2706
|
-
children: /* @__PURE__ */ k(
|
|
2711
|
+
children: /* @__PURE__ */ k(M, { children: [
|
|
2707
2712
|
i && /* @__PURE__ */ o(ea, { open: i, onOpenChange: s }),
|
|
2708
2713
|
/* @__PURE__ */ k(
|
|
2709
|
-
|
|
2714
|
+
P,
|
|
2710
2715
|
{
|
|
2711
2716
|
header: I.SETTINGS_ENGINE.TITLE,
|
|
2712
2717
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2772,7 +2777,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2772
2777
|
}
|
|
2773
2778
|
),
|
|
2774
2779
|
/* @__PURE__ */ k(
|
|
2775
|
-
|
|
2780
|
+
P,
|
|
2776
2781
|
{
|
|
2777
2782
|
header: "Custom Instructions",
|
|
2778
2783
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2806,7 +2811,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2806
2811
|
}
|
|
2807
2812
|
),
|
|
2808
2813
|
/* @__PURE__ */ k(
|
|
2809
|
-
|
|
2814
|
+
P,
|
|
2810
2815
|
{
|
|
2811
2816
|
header: "Location",
|
|
2812
2817
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2847,7 +2852,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2847
2852
|
}
|
|
2848
2853
|
);
|
|
2849
2854
|
}, la = () => {
|
|
2850
|
-
const { state: e, dispatch: t, serverStats: r } =
|
|
2855
|
+
const { state: e, dispatch: t, serverStats: r } = $(ve), [a, n] = _((e == null ? void 0 : e.engine) || me), [i, s] = _(!1), [c, m] = _(!1), [l, u] = _(!1), [f, p] = _(!1), [b, h] = _(!1), [d] = le({
|
|
2851
2856
|
key: ce + Xe,
|
|
2852
2857
|
initialValue: !1
|
|
2853
2858
|
}), { logout: v, getAccessToken: x, user: C } = Z(), y = () => {
|
|
@@ -2861,9 +2866,9 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2861
2866
|
}, R = () => {
|
|
2862
2867
|
h(!b);
|
|
2863
2868
|
};
|
|
2864
|
-
return
|
|
2869
|
+
return F(() => {
|
|
2865
2870
|
e && e.engine && e.engine !== a && n(e.engine);
|
|
2866
|
-
}, [e, a]), /* @__PURE__ */ k(
|
|
2871
|
+
}, [e, a]), /* @__PURE__ */ k(M, { children: [
|
|
2867
2872
|
/* @__PURE__ */ o(
|
|
2868
2873
|
Lt,
|
|
2869
2874
|
{
|
|
@@ -2881,18 +2886,18 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2881
2886
|
/* @__PURE__ */ o(Uo, { open: i, onOpenChange: s }),
|
|
2882
2887
|
/* @__PURE__ */ o(ta, { open: c, onOpenChange: m }),
|
|
2883
2888
|
/* @__PURE__ */ o(Fo, { open: l, onOpenChange: u }),
|
|
2884
|
-
/* @__PURE__ */ o(
|
|
2885
|
-
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(
|
|
2886
|
-
/* @__PURE__ */ o(
|
|
2887
|
-
/* @__PURE__ */ o(
|
|
2888
|
-
d && r && /* @__PURE__ */ o(
|
|
2889
|
+
/* @__PURE__ */ o(Vo, { open: f, onOpenChange: p }),
|
|
2890
|
+
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(q, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
2891
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(nr, { mode: "dark", radius: "large" }) }),
|
|
2892
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ k(q, { children: [
|
|
2893
|
+
d && r && /* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2889
2894
|
_e,
|
|
2890
2895
|
{
|
|
2891
2896
|
mode: "dark",
|
|
2892
2897
|
focusMode: "light",
|
|
2893
2898
|
trigger: /* @__PURE__ */ o(X, { className: "mr-2", children: e && e.engine === Q ? /* @__PURE__ */ o(ut, {}) : /* @__PURE__ */ o(mt, {}) }),
|
|
2894
2899
|
defaultPlacement: "bottom-start",
|
|
2895
|
-
children: /* @__PURE__ */ o(
|
|
2900
|
+
children: /* @__PURE__ */ o(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
|
|
2896
2901
|
fo,
|
|
2897
2902
|
{
|
|
2898
2903
|
size: "small",
|
|
@@ -2902,9 +2907,9 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2902
2907
|
onValueChange: async (N) => {
|
|
2903
2908
|
if (N)
|
|
2904
2909
|
try {
|
|
2905
|
-
await
|
|
2910
|
+
await O({
|
|
2906
2911
|
accessToken: await x(),
|
|
2907
|
-
type:
|
|
2912
|
+
type: V.SET_USER_PREFERENCES,
|
|
2908
2913
|
params: {
|
|
2909
2914
|
user: C == null ? void 0 : C.username,
|
|
2910
2915
|
engine: N
|
|
@@ -2925,7 +2930,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2925
2930
|
) })
|
|
2926
2931
|
}
|
|
2927
2932
|
) }),
|
|
2928
|
-
/* @__PURE__ */ o(
|
|
2933
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ k(
|
|
2929
2934
|
_e,
|
|
2930
2935
|
{
|
|
2931
2936
|
mode: "dark",
|
|
@@ -2934,7 +2939,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2934
2939
|
defaultPlacement: "bottom-end",
|
|
2935
2940
|
children: [
|
|
2936
2941
|
/* @__PURE__ */ o(
|
|
2937
|
-
|
|
2942
|
+
W,
|
|
2938
2943
|
{
|
|
2939
2944
|
label: "Profile",
|
|
2940
2945
|
onClick: y,
|
|
@@ -2942,7 +2947,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2942
2947
|
}
|
|
2943
2948
|
),
|
|
2944
2949
|
/* @__PURE__ */ o(
|
|
2945
|
-
|
|
2950
|
+
W,
|
|
2946
2951
|
{
|
|
2947
2952
|
label: "Settings",
|
|
2948
2953
|
onClick: T,
|
|
@@ -2950,7 +2955,7 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2950
2955
|
}
|
|
2951
2956
|
),
|
|
2952
2957
|
/* @__PURE__ */ o(
|
|
2953
|
-
|
|
2958
|
+
W,
|
|
2954
2959
|
{
|
|
2955
2960
|
label: "History",
|
|
2956
2961
|
onClick: S,
|
|
@@ -2958,17 +2963,17 @@ const jo = "av-toggle", Wo = () => w("peer", "h-6", "w-11", "rounded-full"), Ko
|
|
|
2958
2963
|
}
|
|
2959
2964
|
),
|
|
2960
2965
|
/* @__PURE__ */ o(
|
|
2961
|
-
|
|
2966
|
+
W,
|
|
2962
2967
|
{
|
|
2963
2968
|
label: "About",
|
|
2964
2969
|
onClick: L,
|
|
2965
2970
|
icon: /* @__PURE__ */ o(wr, {})
|
|
2966
2971
|
}
|
|
2967
2972
|
),
|
|
2968
|
-
e && e.id && !e.isComponent && /* @__PURE__ */ k(
|
|
2973
|
+
e && e.id && !e.isComponent && /* @__PURE__ */ k(M, { children: [
|
|
2969
2974
|
/* @__PURE__ */ o(Er, {}),
|
|
2970
2975
|
/* @__PURE__ */ o(
|
|
2971
|
-
|
|
2976
|
+
W,
|
|
2972
2977
|
{
|
|
2973
2978
|
label: "Log out",
|
|
2974
2979
|
onClick: R,
|