@versini/sassysaint 5.5.39 → 5.5.40
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.VcTEMlv1.js → App.KvoRl0qM.js} +1459 -1459
- package/dist/chunks/{HeaderToolbar.bZEPHk17.js → HeaderToolbar.EoYyozba.js} +178 -178
- package/dist/chunks/{MarkdownWithExtra.CAhDtGFi.js → MarkdownWithExtra.DWBQeZuP.js} +98 -98
- package/dist/chunks/{MessageAssistant.YS3qhBfd.js → MessageAssistant.CV-glDKZ.js} +3 -3
- package/dist/chunks/{index.C73CRI-0.js → index.DOk7PA6L.js} +250 -250
- 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 h, jsx as a, Fragment as B } from "react/jsx-runtime";
|
|
2
|
-
import { g as F, un as G, R as H, CARDS as T, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as R, C as U, INFINITE_SCROLL_LIMIT as Oe, INFINITE_SCROLL_THRESHOLD as Pe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, Y as le, ACTION_RESET as
|
|
3
|
-
import { i as
|
|
2
|
+
import { g as F, un as G, R as H, CARDS as T, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as ht, L as X, j as R, C as U, INFINITE_SCROLL_LIMIT as Oe, INFINITE_SCROLL_THRESHOLD as Pe, LOCAL_STORAGE_PREFIX as _e, LOCAL_STORAGE_SORT as gt, Y as le, ACTION_RESET as ft, ACTION_RESTORE as pt, ACTION_SORT as ze, LOCAL_STORAGE_SEARCH as bt, HISTORY_TITLE as yt, ye as Ee, ACTION_SEARCH as kt, debounce as vt, M as xt, l as $e, durationFormatter as Nt, PROFILE_TITLE as wt, PROMPTS_DESCRIPTION as Et, DEFAULT_AI_ENGINE as Tt, LOCAL_STORAGE_CHAT_DETAILS as Ct, SETTINGS_TITLE as _t, ENGINE_OPENAI as Q, ENGINE_ANTHROPIC as re, APP_NAME as It, getCurrentGeoLocation as St, LOG_OUT as He } from "./index.DOk7PA6L.js";
|
|
3
|
+
import { i as fe, useServerCapabilities as At, HistoryContext as je, E as Ie, ge as Rt, he as Lt, ue as Ne, le as $, ye as Mt, me as Bt, p as Ot, z as Pt, be as zt, serviceCall as ie, SERVICE_TYPES as ce, f as ae, AppContext as Ye, useChatsHistory as $t, useUserChatStats as Ht, useUserPreferences as We, m as Dt, _e as Vt, me$1 as Ut, R as oe, P as Ft } from "./App.KvoRl0qM.js";
|
|
4
4
|
import * as S from "react";
|
|
5
|
-
import be, { useId as Se, useRef as _, useEffect as D, useState as w, useContext as
|
|
5
|
+
import be, { useId as Se, useRef as _, useEffect as D, useState as w, useContext as pe, useCallback as Ke, Fragment as Gt, useLayoutEffect as ne, useMemo as Xe, useReducer as jt } from "react";
|
|
6
6
|
import d from "clsx";
|
|
7
7
|
import { useMergeRefs as Yt, FloatingPortal as Wt, FloatingOverlay as Kt, FloatingFocusManager as Xt, useFloating as qt, useClick as Qt, useDismiss as Jt, useRole as Zt, useInteractions as er } from "@floating-ui/react";
|
|
8
8
|
const tr = ({
|
|
@@ -270,7 +270,7 @@ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
270
270
|
[s]: r === "large" && (t || o)
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, ur = ({
|
|
274
274
|
mode: e,
|
|
275
275
|
noBackground: r,
|
|
276
276
|
noTruncate: t,
|
|
@@ -306,7 +306,7 @@ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
306
306
|
return d("not-prose text-copy-lighter", {
|
|
307
307
|
truncate: !t
|
|
308
308
|
});
|
|
309
|
-
},
|
|
309
|
+
}, mr = ({
|
|
310
310
|
mode: e,
|
|
311
311
|
noBackground: r,
|
|
312
312
|
variant: t
|
|
@@ -372,7 +372,7 @@ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
372
372
|
});
|
|
373
373
|
if (t === "selected")
|
|
374
374
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
375
|
-
},
|
|
375
|
+
}, fr = ({
|
|
376
376
|
mode: e,
|
|
377
377
|
disabled: r,
|
|
378
378
|
variant: t
|
|
@@ -402,7 +402,7 @@ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
402
402
|
});
|
|
403
403
|
if (t === "selected")
|
|
404
404
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
405
|
-
},
|
|
405
|
+
}, pr = ({
|
|
406
406
|
mode: e,
|
|
407
407
|
noBorder: r,
|
|
408
408
|
variant: t
|
|
@@ -460,36 +460,36 @@ const De = "av-messagebox", Ve = "av-panel", Ue = "av-button", ye = "icon", qe =
|
|
|
460
460
|
disabled: l,
|
|
461
461
|
fullWidth: s,
|
|
462
462
|
size: i,
|
|
463
|
-
noBorder:
|
|
464
|
-
labelRight:
|
|
463
|
+
noBorder: m,
|
|
464
|
+
labelRight: u,
|
|
465
465
|
labelLeft: g,
|
|
466
466
|
noBackground: y,
|
|
467
|
-
variant:
|
|
467
|
+
variant: f,
|
|
468
468
|
noTruncate: c,
|
|
469
|
-
align:
|
|
469
|
+
align: p,
|
|
470
470
|
radius: v
|
|
471
|
-
}) => (
|
|
471
|
+
}) => (f || (f = "primary"), t ? d(Ue, r) : d(
|
|
472
472
|
Ue,
|
|
473
|
-
|
|
473
|
+
ur({
|
|
474
474
|
mode: o,
|
|
475
|
-
variant:
|
|
475
|
+
variant: f,
|
|
476
476
|
noBackground: y,
|
|
477
477
|
noTruncate: c
|
|
478
478
|
}),
|
|
479
|
-
|
|
479
|
+
mr({ mode: o, noBackground: y, variant: f }),
|
|
480
480
|
hr({ radius: v }),
|
|
481
481
|
cr({
|
|
482
482
|
type: e,
|
|
483
483
|
size: i,
|
|
484
|
-
labelRight:
|
|
484
|
+
labelRight: u,
|
|
485
485
|
labelLeft: g,
|
|
486
|
-
align:
|
|
486
|
+
align: p
|
|
487
487
|
}),
|
|
488
|
-
dr({ type: e, size: i, labelRight:
|
|
489
|
-
|
|
488
|
+
dr({ type: e, size: i, labelRight: u, labelLeft: g }),
|
|
489
|
+
pr({ mode: o, variant: f, noBorder: m }),
|
|
490
490
|
br({ focusMode: n }),
|
|
491
|
-
gr({ mode: o, variant:
|
|
492
|
-
|
|
491
|
+
gr({ mode: o, variant: f, disabled: l }),
|
|
492
|
+
fr({ mode: o, variant: f, disabled: l }),
|
|
493
493
|
{
|
|
494
494
|
"w-full": s,
|
|
495
495
|
"disabled:cursor-not-allowed disabled:opacity-50": l
|
|
@@ -522,13 +522,13 @@ const Je = be.forwardRef(
|
|
|
522
522
|
className: l,
|
|
523
523
|
type: s = "button",
|
|
524
524
|
raw: i = !1,
|
|
525
|
-
noBorder:
|
|
526
|
-
"aria-label":
|
|
525
|
+
noBorder: m = !1,
|
|
526
|
+
"aria-label": u,
|
|
527
527
|
label: g,
|
|
528
528
|
size: y = "medium",
|
|
529
|
-
labelRight:
|
|
529
|
+
labelRight: f,
|
|
530
530
|
labelLeft: c,
|
|
531
|
-
noBackground:
|
|
531
|
+
noBackground: p = !1,
|
|
532
532
|
align: v = "center",
|
|
533
533
|
radius: x = "large",
|
|
534
534
|
variant: k = "primary",
|
|
@@ -543,11 +543,11 @@ const Je = be.forwardRef(
|
|
|
543
543
|
disabled: r,
|
|
544
544
|
raw: i,
|
|
545
545
|
className: l,
|
|
546
|
-
noBorder:
|
|
546
|
+
noBorder: m,
|
|
547
547
|
size: y,
|
|
548
|
-
labelRight:
|
|
548
|
+
labelRight: f,
|
|
549
549
|
labelLeft: c,
|
|
550
|
-
noBackground:
|
|
550
|
+
noBackground: p,
|
|
551
551
|
align: v,
|
|
552
552
|
radius: x,
|
|
553
553
|
variant: k
|
|
@@ -559,12 +559,12 @@ const Je = be.forwardRef(
|
|
|
559
559
|
className: I,
|
|
560
560
|
disabled: r,
|
|
561
561
|
type: s,
|
|
562
|
-
"aria-label":
|
|
562
|
+
"aria-label": u || g,
|
|
563
563
|
...b,
|
|
564
564
|
children: [
|
|
565
565
|
c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
|
|
566
566
|
/* @__PURE__ */ a("div", { className: O, children: e }),
|
|
567
|
-
|
|
567
|
+
f && /* @__PURE__ */ a("span", { className: "pl-2", children: f })
|
|
568
568
|
]
|
|
569
569
|
}
|
|
570
570
|
);
|
|
@@ -594,13 +594,13 @@ const vr = be.forwardRef(
|
|
|
594
594
|
className: l,
|
|
595
595
|
type: s = "button",
|
|
596
596
|
raw: i = !1,
|
|
597
|
-
noBorder:
|
|
598
|
-
"aria-label":
|
|
597
|
+
noBorder: m = !1,
|
|
598
|
+
"aria-label": u,
|
|
599
599
|
label: g,
|
|
600
600
|
size: y = "medium",
|
|
601
|
-
labelRight:
|
|
601
|
+
labelRight: f,
|
|
602
602
|
labelLeft: c,
|
|
603
|
-
noBackground:
|
|
603
|
+
noBackground: p = !1,
|
|
604
604
|
align: v = "center",
|
|
605
605
|
active: x = !1,
|
|
606
606
|
radius: k = "large",
|
|
@@ -614,11 +614,11 @@ const vr = be.forwardRef(
|
|
|
614
614
|
disabled: r,
|
|
615
615
|
raw: i,
|
|
616
616
|
className: l,
|
|
617
|
-
noBorder:
|
|
617
|
+
noBorder: m,
|
|
618
618
|
size: y,
|
|
619
|
-
labelRight:
|
|
619
|
+
labelRight: f,
|
|
620
620
|
labelLeft: c,
|
|
621
|
-
noBackground:
|
|
621
|
+
noBackground: p,
|
|
622
622
|
align: v,
|
|
623
623
|
radius: k
|
|
624
624
|
}), I = d({
|
|
@@ -650,12 +650,12 @@ const vr = be.forwardRef(
|
|
|
650
650
|
className: E,
|
|
651
651
|
disabled: r,
|
|
652
652
|
type: s,
|
|
653
|
-
"aria-label":
|
|
653
|
+
"aria-label": u || g,
|
|
654
654
|
...C,
|
|
655
655
|
children: [
|
|
656
656
|
c && /* @__PURE__ */ a("span", { className: "pr-2", children: c }),
|
|
657
657
|
/* @__PURE__ */ a("div", { className: I, children: e }),
|
|
658
|
-
|
|
658
|
+
f && /* @__PURE__ */ a("span", { className: "pl-2", children: f })
|
|
659
659
|
]
|
|
660
660
|
}
|
|
661
661
|
) });
|
|
@@ -671,21 +671,21 @@ const xr = ({
|
|
|
671
671
|
size: l,
|
|
672
672
|
title: s,
|
|
673
673
|
semantic: i = !1,
|
|
674
|
-
...
|
|
674
|
+
...m
|
|
675
675
|
}) => {
|
|
676
|
-
const
|
|
676
|
+
const u = d(l, o);
|
|
677
677
|
return /* @__PURE__ */ h(B, { children: [
|
|
678
678
|
/* @__PURE__ */ a(
|
|
679
679
|
"svg",
|
|
680
680
|
{
|
|
681
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
682
|
-
className:
|
|
682
|
+
className: u,
|
|
683
683
|
viewBox: t || n,
|
|
684
684
|
fill: r || "currentColor",
|
|
685
685
|
role: "img",
|
|
686
686
|
"aria-hidden": !i,
|
|
687
687
|
focusable: !1,
|
|
688
|
-
...
|
|
688
|
+
...m,
|
|
689
689
|
children: e
|
|
690
690
|
}
|
|
691
691
|
),
|
|
@@ -748,27 +748,27 @@ function wr({
|
|
|
748
748
|
open: r,
|
|
749
749
|
onOpenChange: t
|
|
750
750
|
} = {}) {
|
|
751
|
-
const [o, n] = S.useState(e), [l, s] = S.useState(), [i,
|
|
752
|
-
open:
|
|
751
|
+
const [o, n] = S.useState(e), [l, s] = S.useState(), [i, m] = S.useState(), u = r ?? o, g = t ?? n, y = qt({
|
|
752
|
+
open: u,
|
|
753
753
|
onOpenChange: g
|
|
754
|
-
}),
|
|
754
|
+
}), f = y.context, c = Qt(f, {
|
|
755
755
|
enabled: r == null
|
|
756
|
-
}),
|
|
756
|
+
}), p = Jt(f, {
|
|
757
757
|
outsidePress: !1,
|
|
758
758
|
outsidePressEvent: "mousedown"
|
|
759
|
-
}), v = Zt(
|
|
759
|
+
}), v = Zt(f), x = er([c, p, v]);
|
|
760
760
|
return S.useMemo(
|
|
761
761
|
() => ({
|
|
762
|
-
open:
|
|
762
|
+
open: u,
|
|
763
763
|
setOpen: g,
|
|
764
764
|
...x,
|
|
765
765
|
...y,
|
|
766
766
|
labelId: l,
|
|
767
767
|
descriptionId: i,
|
|
768
768
|
setLabelId: s,
|
|
769
|
-
setDescriptionId:
|
|
769
|
+
setDescriptionId: m
|
|
770
770
|
}),
|
|
771
|
-
[
|
|
771
|
+
[u, g, x, y, l, i]
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
774
|
const ke = () => {
|
|
@@ -829,7 +829,7 @@ try {
|
|
|
829
829
|
});
|
|
830
830
|
} catch {
|
|
831
831
|
}
|
|
832
|
-
const se = "panel",
|
|
832
|
+
const se = "panel", ue = "messagebox", Sr = ({
|
|
833
833
|
className: e,
|
|
834
834
|
kind: r,
|
|
835
835
|
borderMode: t
|
|
@@ -837,13 +837,13 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
837
837
|
main: d("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
838
838
|
[`${Ve} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: r === se,
|
|
839
839
|
[`${Ve} w-full sm:w-[95%] md:max-w-2xl`]: r === se && !e,
|
|
840
|
-
[`${De} rounded-lg border-2`]: r ===
|
|
841
|
-
[`${De} w-[95%] sm:w-[50%] md:max-w-2xl`]: r ===
|
|
840
|
+
[`${De} rounded-lg border-2`]: r === ue,
|
|
841
|
+
[`${De} w-[95%] sm:w-[50%] md:max-w-2xl`]: r === ue && !e,
|
|
842
842
|
[`${e}`]: !!e,
|
|
843
843
|
"sm:border-border-dark": t === "dark" && r === se,
|
|
844
844
|
"sm:border-border-accent": t === "light" && r === se,
|
|
845
|
-
"border-border-dark": t === "dark" && r ===
|
|
846
|
-
"border-border-accent": t === "light" && r ===
|
|
845
|
+
"border-border-dark": t === "dark" && r === ue,
|
|
846
|
+
"border-border-accent": t === "light" && r === ue
|
|
847
847
|
}),
|
|
848
848
|
content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
|
|
849
849
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
@@ -859,15 +859,15 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
859
859
|
kind: s = se,
|
|
860
860
|
className: i
|
|
861
861
|
}) => {
|
|
862
|
-
const
|
|
863
|
-
return D(() => (e && (
|
|
864
|
-
e && (document.title =
|
|
865
|
-
}), [t, e]), /* @__PURE__ */ a(B, { children: e && /* @__PURE__ */ a(Er, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(Tr, { className:
|
|
862
|
+
const m = _(""), u = Sr({ className: i, kind: s, borderMode: l });
|
|
863
|
+
return D(() => (e && (m.current = document.title, document.title = `${t} | ${m.current}`), () => {
|
|
864
|
+
e && (document.title = m.current);
|
|
865
|
+
}), [t, e]), /* @__PURE__ */ a(B, { children: e && /* @__PURE__ */ a(Er, { open: e, onOpenChange: r, children: /* @__PURE__ */ h(Tr, { className: u.main, children: [
|
|
866
866
|
/* @__PURE__ */ h("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
867
867
|
/* @__PURE__ */ a(
|
|
868
868
|
Ir,
|
|
869
869
|
{
|
|
870
|
-
className:
|
|
870
|
+
className: u.close,
|
|
871
871
|
trigger: /* @__PURE__ */ a(
|
|
872
872
|
Je,
|
|
873
873
|
{
|
|
@@ -880,19 +880,19 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
880
880
|
)
|
|
881
881
|
}
|
|
882
882
|
),
|
|
883
|
-
/* @__PURE__ */ a(Cr, { className:
|
|
883
|
+
/* @__PURE__ */ a(Cr, { className: u.header, children: t })
|
|
884
884
|
] }),
|
|
885
|
-
/* @__PURE__ */ a(_r, { className:
|
|
886
|
-
n && /* @__PURE__ */ a("div", { className:
|
|
885
|
+
/* @__PURE__ */ a(_r, { className: u.content, children: o }),
|
|
886
|
+
n && /* @__PURE__ */ a("div", { className: u.footer, children: n })
|
|
887
887
|
] }) }) });
|
|
888
888
|
}, Ar = () => {
|
|
889
|
-
const { getAccessToken: e } = G(), r =
|
|
889
|
+
const { getAccessToken: e } = G(), r = fe(), t = fe(), {
|
|
890
890
|
data: o,
|
|
891
891
|
error: n,
|
|
892
892
|
isLoading: l
|
|
893
893
|
} = At({
|
|
894
894
|
getAccessToken: e
|
|
895
|
-
}), s = (o == null ? void 0 : o.plugins) || [], i = (o == null ? void 0 : o.version) || "",
|
|
895
|
+
}), s = (o == null ? void 0 : o.plugins) || [], i = (o == null ? void 0 : o.version) || "", m = (o == null ? void 0 : o.models) || [];
|
|
896
896
|
return /* @__PURE__ */ h(B, { children: [
|
|
897
897
|
/* @__PURE__ */ a("div", { className: "mb-4", children: /* @__PURE__ */ a(
|
|
898
898
|
H,
|
|
@@ -900,8 +900,8 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
900
900
|
header: T.ABOUT.TITLE_CLIENT,
|
|
901
901
|
className: "prose-dark dark:prose-lighter",
|
|
902
902
|
children: he(r, {
|
|
903
|
-
[T.ABOUT.VERSION]: "5.21.
|
|
904
|
-
[T.ABOUT.BUILD_TIMESTAMP]: "01/21/2025
|
|
903
|
+
[T.ABOUT.VERSION]: "5.21.2",
|
|
904
|
+
[T.ABOUT.BUILD_TIMESTAMP]: "01/21/2025 11:09 AM EST"
|
|
905
905
|
})
|
|
906
906
|
}
|
|
907
907
|
) }),
|
|
@@ -912,8 +912,8 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
912
912
|
className: "prose-dark dark:prose-lighter",
|
|
913
913
|
children: he(t, {
|
|
914
914
|
[T.ABOUT.VERSION]: i,
|
|
915
|
-
[ge(T.ABOUT.ENGINE,
|
|
916
|
-
[ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(B, { children: s.map((
|
|
915
|
+
[ge(T.ABOUT.ENGINE, m.length)]: /* @__PURE__ */ a(B, { children: m.map((u) => /* @__PURE__ */ a("div", { className: "text-right", children: u }, u)) }),
|
|
916
|
+
[ge(T.ABOUT.PLUGIN, s.length)]: /* @__PURE__ */ a(B, { children: s.map((u) => /* @__PURE__ */ a("div", { className: "text-right", children: u }, u)) })
|
|
917
917
|
})
|
|
918
918
|
}
|
|
919
919
|
)
|
|
@@ -972,9 +972,9 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
972
972
|
}
|
|
973
973
|
});
|
|
974
974
|
n.status === 200 && (r({
|
|
975
|
-
type:
|
|
975
|
+
type: ft
|
|
976
976
|
}), r({
|
|
977
|
-
type:
|
|
977
|
+
type: pt,
|
|
978
978
|
payload: {
|
|
979
979
|
id: e.id,
|
|
980
980
|
model: n.data.model,
|
|
@@ -995,15 +995,15 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
995
995
|
id: 0,
|
|
996
996
|
timestamp: "",
|
|
997
997
|
message: ""
|
|
998
|
-
}), [
|
|
998
|
+
}), [m, u] = w(!1), [g, y] = w(
|
|
999
999
|
Oe + Pe
|
|
1000
|
-
), { state:
|
|
1000
|
+
), { state: f, dispatch: c } = pe(je), [, p] = Ie({
|
|
1001
1001
|
key: _e + gt,
|
|
1002
|
-
initialValue:
|
|
1002
|
+
initialValue: f.sortDirection
|
|
1003
1003
|
}), v = (b) => {
|
|
1004
|
-
switch (
|
|
1004
|
+
switch (f.sortDirection) {
|
|
1005
1005
|
case ae.ASC:
|
|
1006
|
-
|
|
1006
|
+
p(ae.DESC), c({
|
|
1007
1007
|
type: ze,
|
|
1008
1008
|
payload: {
|
|
1009
1009
|
sortedCell: b,
|
|
@@ -1012,7 +1012,7 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1012
1012
|
});
|
|
1013
1013
|
break;
|
|
1014
1014
|
default:
|
|
1015
|
-
|
|
1015
|
+
p(ae.ASC), c({
|
|
1016
1016
|
type: ze,
|
|
1017
1017
|
payload: {
|
|
1018
1018
|
sortedCell: b,
|
|
@@ -1047,8 +1047,8 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1047
1047
|
/* @__PURE__ */ h(
|
|
1048
1048
|
et,
|
|
1049
1049
|
{
|
|
1050
|
-
showConfirmation:
|
|
1051
|
-
setShowConfirmation:
|
|
1050
|
+
showConfirmation: m,
|
|
1051
|
+
setShowConfirmation: u,
|
|
1052
1052
|
action: x,
|
|
1053
1053
|
customStrings: {
|
|
1054
1054
|
confirmAction: "Delete",
|
|
@@ -1081,8 +1081,8 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1081
1081
|
buttonClassName: "text-xs sm:text-sm",
|
|
1082
1082
|
cellId: "timestamp",
|
|
1083
1083
|
align: "left",
|
|
1084
|
-
sortDirection:
|
|
1085
|
-
sortedCell:
|
|
1084
|
+
sortDirection: f.sortDirection,
|
|
1085
|
+
sortedCell: f.sortedCell,
|
|
1086
1086
|
onClick: () => {
|
|
1087
1087
|
v("timestamp");
|
|
1088
1088
|
},
|
|
@@ -1163,7 +1163,7 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1163
1163
|
id: b.id,
|
|
1164
1164
|
timestamp: b.timestamp,
|
|
1165
1165
|
message: b.messages.length > 0 ? (P = b.messages[0]) == null ? void 0 : P.content : ""
|
|
1166
|
-
},
|
|
1166
|
+
}, u(!m);
|
|
1167
1167
|
},
|
|
1168
1168
|
children: /* @__PURE__ */ a("div", { className: "text-red-400", children: /* @__PURE__ */ a(rr, { size: "size-3", monotone: !0 }) })
|
|
1169
1169
|
}
|
|
@@ -1182,7 +1182,7 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1182
1182
|
open: e,
|
|
1183
1183
|
onOpenChange: r
|
|
1184
1184
|
}) => {
|
|
1185
|
-
const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } =
|
|
1185
|
+
const { getAccessToken: t, user: o } = G(), { state: n, dispatch: l } = pe(Ye), { state: s, dispatch: i } = pe(je), { data: m, mutate: u } = $t({
|
|
1186
1186
|
keys: [
|
|
1187
1187
|
o == null ? void 0 : o.username,
|
|
1188
1188
|
s.searchString,
|
|
@@ -1193,17 +1193,17 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1193
1193
|
}), g = _(null), [, y] = Ie({
|
|
1194
1194
|
key: _e + bt,
|
|
1195
1195
|
initialValue: s.searchString
|
|
1196
|
-
}), [
|
|
1196
|
+
}), [f, c] = w([]);
|
|
1197
1197
|
D(() => {
|
|
1198
|
-
|
|
1199
|
-
}, [
|
|
1200
|
-
const
|
|
1198
|
+
m && c(m);
|
|
1199
|
+
}, [m]);
|
|
1200
|
+
const p = async (k) => {
|
|
1201
1201
|
y(k), i({
|
|
1202
1202
|
type: kt,
|
|
1203
1203
|
payload: { searchString: k }
|
|
1204
1204
|
});
|
|
1205
1205
|
}, v = vt((k) => {
|
|
1206
|
-
|
|
1206
|
+
p(k.target.value.trim());
|
|
1207
1207
|
}, 500);
|
|
1208
1208
|
return /* @__PURE__ */ a(J, { open: e, onOpenChange: r, title: yt, children: /* @__PURE__ */ h(B, { children: [
|
|
1209
1209
|
/* @__PURE__ */ a("form", { autoComplete: "off", onSubmit: async (k) => {
|
|
@@ -1234,7 +1234,7 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1234
1234
|
size: "small",
|
|
1235
1235
|
onClick: () => {
|
|
1236
1236
|
var k;
|
|
1237
|
-
|
|
1237
|
+
p(""), (k = g.current) != null && k.value && (g.current.value = "", g.current.focus());
|
|
1238
1238
|
},
|
|
1239
1239
|
children: "Reset"
|
|
1240
1240
|
}
|
|
@@ -1245,15 +1245,15 @@ const se = "panel", me = "messagebox", Sr = ({
|
|
|
1245
1245
|
/* @__PURE__ */ a("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ a(
|
|
1246
1246
|
Mr,
|
|
1247
1247
|
{
|
|
1248
|
-
mutate:
|
|
1249
|
-
filteredHistory:
|
|
1248
|
+
mutate: u,
|
|
1249
|
+
filteredHistory: f,
|
|
1250
1250
|
dispatch: l,
|
|
1251
1251
|
onOpenChange: r
|
|
1252
1252
|
}
|
|
1253
1253
|
) })
|
|
1254
1254
|
] }) });
|
|
1255
1255
|
}, Or = ({ stats: e }) => {
|
|
1256
|
-
const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l =
|
|
1256
|
+
const { isAuthenticated: r, user: t, registeringForPasskey: o, authenticationType: n } = G(), l = fe(), s = fe(), i = (t == null ? void 0 : t.username) || "";
|
|
1257
1257
|
return r && i ? /* @__PURE__ */ h(B, { children: [
|
|
1258
1258
|
/* @__PURE__ */ a(
|
|
1259
1259
|
H,
|
|
@@ -1357,9 +1357,9 @@ const Ur = {
|
|
|
1357
1357
|
};
|
|
1358
1358
|
function Fe(e) {
|
|
1359
1359
|
const r = Dr(), t = _(0), o = _(null), [n, l] = w(Ur), s = Xe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
|
|
1360
|
-
const
|
|
1361
|
-
|
|
1362
|
-
o.current && r() && l(
|
|
1360
|
+
const m = i[0];
|
|
1361
|
+
m && (cancelAnimationFrame(t.current), t.current = requestAnimationFrame(() => {
|
|
1362
|
+
o.current && r() && l(m.contentRect);
|
|
1363
1363
|
}));
|
|
1364
1364
|
}), [r]);
|
|
1365
1365
|
return D(() => (o.current && (s == null || s.observe(o.current, e)), () => {
|
|
@@ -1374,16 +1374,16 @@ function Fr({
|
|
|
1374
1374
|
},
|
|
1375
1375
|
initialControlledDelay: n = 0
|
|
1376
1376
|
}) {
|
|
1377
|
-
const [l, s] = w(!1), [i,
|
|
1377
|
+
const [l, s] = w(!1), [i, m] = w(
|
|
1378
1378
|
r !== void 0 ? r : t
|
|
1379
|
-
),
|
|
1380
|
-
|
|
1379
|
+
), u = (g) => {
|
|
1380
|
+
m(g), o == null || o(g);
|
|
1381
1381
|
};
|
|
1382
1382
|
return D(() => {
|
|
1383
1383
|
(async () => e !== void 0 && !l && n > 0 && (await new Promise(
|
|
1384
1384
|
(g) => setTimeout(g, n)
|
|
1385
1385
|
), s(!0)))();
|
|
1386
|
-
}, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [i,
|
|
1386
|
+
}, [e, n, l]), e !== void 0 ? !l && n > 0 ? ["", o, !0] : [e, o, !0] : [i, u, !1];
|
|
1387
1387
|
}
|
|
1388
1388
|
function Gr(e) {
|
|
1389
1389
|
const r = Se();
|
|
@@ -1475,21 +1475,21 @@ function Xr({
|
|
|
1475
1475
|
clearAnnouncementDelay: l,
|
|
1476
1476
|
onAnnouncementClear: s,
|
|
1477
1477
|
visible: i,
|
|
1478
|
-
...
|
|
1478
|
+
...m
|
|
1479
1479
|
}) {
|
|
1480
|
-
const
|
|
1480
|
+
const u = _(null), g = _(null), [y, f] = jt(Yr, {
|
|
1481
1481
|
announcement: null
|
|
1482
1482
|
});
|
|
1483
1483
|
let c = t;
|
|
1484
1484
|
typeof c > "u" && (c = o ? jr[o] : "assertive"), D(() => {
|
|
1485
1485
|
Kr({
|
|
1486
|
-
announcementTimeoutRef:
|
|
1486
|
+
announcementTimeoutRef: u,
|
|
1487
1487
|
announcementDelay: n,
|
|
1488
1488
|
children: e,
|
|
1489
1489
|
clearAnnouncementDelay: l,
|
|
1490
1490
|
clearAnnouncementTimeoutRef: g,
|
|
1491
1491
|
onAnnouncementClear: s,
|
|
1492
|
-
dispatch:
|
|
1492
|
+
dispatch: f
|
|
1493
1493
|
});
|
|
1494
1494
|
}, [
|
|
1495
1495
|
e,
|
|
@@ -1497,7 +1497,7 @@ function Xr({
|
|
|
1497
1497
|
l,
|
|
1498
1498
|
s
|
|
1499
1499
|
]);
|
|
1500
|
-
const
|
|
1500
|
+
const p = d(r, {
|
|
1501
1501
|
"sr-only": !i
|
|
1502
1502
|
});
|
|
1503
1503
|
return /* @__PURE__ */ a(
|
|
@@ -1505,8 +1505,8 @@ function Xr({
|
|
|
1505
1505
|
{
|
|
1506
1506
|
"aria-live": c,
|
|
1507
1507
|
...o && { role: o },
|
|
1508
|
-
className:
|
|
1509
|
-
...
|
|
1508
|
+
className: p,
|
|
1509
|
+
...m,
|
|
1510
1510
|
children: y.announcement
|
|
1511
1511
|
}
|
|
1512
1512
|
);
|
|
@@ -1619,8 +1619,8 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1619
1619
|
noBorder: l,
|
|
1620
1620
|
error: s,
|
|
1621
1621
|
mode: i,
|
|
1622
|
-
leftElement:
|
|
1623
|
-
rightElement:
|
|
1622
|
+
leftElement: m,
|
|
1623
|
+
rightElement: u
|
|
1624
1624
|
}) => {
|
|
1625
1625
|
const g = t ? e : d(
|
|
1626
1626
|
"relative flex w-full flex-col justify-center",
|
|
@@ -1639,14 +1639,14 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1639
1639
|
{
|
|
1640
1640
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
1641
1641
|
}
|
|
1642
|
-
),
|
|
1642
|
+
), f = t ? void 0 : "sr-only", c = ea({
|
|
1643
1643
|
disabled: n,
|
|
1644
1644
|
raw: t,
|
|
1645
1645
|
error: s,
|
|
1646
1646
|
mode: i,
|
|
1647
|
-
rightElement:
|
|
1648
|
-
leftElement:
|
|
1649
|
-
}),
|
|
1647
|
+
rightElement: u,
|
|
1648
|
+
leftElement: m
|
|
1649
|
+
}), p = ta({
|
|
1650
1650
|
error: s,
|
|
1651
1651
|
raw: t,
|
|
1652
1652
|
mode: i,
|
|
@@ -1655,9 +1655,9 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1655
1655
|
return {
|
|
1656
1656
|
wrapper: g,
|
|
1657
1657
|
textArea: y,
|
|
1658
|
-
accessibleLabel:
|
|
1658
|
+
accessibleLabel: f,
|
|
1659
1659
|
visibleLabel: c,
|
|
1660
|
-
helperText:
|
|
1660
|
+
helperText: p,
|
|
1661
1661
|
rightElement: v,
|
|
1662
1662
|
leftElement: x
|
|
1663
1663
|
};
|
|
@@ -1687,13 +1687,13 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1687
1687
|
className: l,
|
|
1688
1688
|
textAreaClassName: s,
|
|
1689
1689
|
mode: i = "system",
|
|
1690
|
-
focusMode:
|
|
1691
|
-
value:
|
|
1690
|
+
focusMode: m = "system",
|
|
1691
|
+
value: u,
|
|
1692
1692
|
defaultValue: g,
|
|
1693
1693
|
disabled: y = !1,
|
|
1694
|
-
noBorder:
|
|
1694
|
+
noBorder: f = !1,
|
|
1695
1695
|
labelId: c,
|
|
1696
|
-
helperText:
|
|
1696
|
+
helperText: p = "",
|
|
1697
1697
|
helperTextOnFocus: v = !1,
|
|
1698
1698
|
rightElement: x,
|
|
1699
1699
|
leftElement: k,
|
|
@@ -1704,20 +1704,20 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1704
1704
|
}, O) => {
|
|
1705
1705
|
var P;
|
|
1706
1706
|
const L = _(null), de = Vr([O, L]), [N, M] = Fe(), [Z, j] = Fe(), q = _(80), Y = _(-25), z = _(null), ee = _(30), te = _(null), W = Gr({ id: e, prefix: `${tt}-` }), [Re, ot] = w(0), [Le, nt] = w(0), [st, Me] = w(
|
|
1707
|
-
!!(!v &&
|
|
1708
|
-
), lt = `${r} error, ${
|
|
1707
|
+
!!(!v && p)
|
|
1708
|
+
), lt = `${r} error, ${p}`, K = ra({
|
|
1709
1709
|
className: l,
|
|
1710
1710
|
textAreaClassName: s,
|
|
1711
1711
|
error: o,
|
|
1712
1712
|
raw: n,
|
|
1713
|
-
focusMode:
|
|
1713
|
+
focusMode: m,
|
|
1714
1714
|
disabled: y,
|
|
1715
|
-
noBorder:
|
|
1715
|
+
noBorder: f,
|
|
1716
1716
|
mode: i,
|
|
1717
1717
|
rightElement: !!x,
|
|
1718
1718
|
leftElement: !!k
|
|
1719
1719
|
}), [V, it] = Fr({
|
|
1720
|
-
value:
|
|
1720
|
+
value: u,
|
|
1721
1721
|
initialControlledDelay: 20,
|
|
1722
1722
|
defaultValue: g,
|
|
1723
1723
|
onChange: (A) => {
|
|
@@ -1730,9 +1730,9 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1730
1730
|
}), ct = (A) => {
|
|
1731
1731
|
it(A.target.value);
|
|
1732
1732
|
}, dt = (A) => {
|
|
1733
|
-
v &&
|
|
1734
|
-
},
|
|
1735
|
-
v &&
|
|
1733
|
+
v && p && Me(!0), b && b(A);
|
|
1734
|
+
}, ut = (A) => {
|
|
1735
|
+
v && p && !V && Me(!1), E && E(A);
|
|
1736
1736
|
};
|
|
1737
1737
|
return ne(() => {
|
|
1738
1738
|
M && M.width && ot(M.width + 18 + 10);
|
|
@@ -1751,7 +1751,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1751
1751
|
}, [V, n]), ne(() => {
|
|
1752
1752
|
var A, Be;
|
|
1753
1753
|
if (!n && L && L.current && V !== void 0) {
|
|
1754
|
-
const { labelOffset: ve, helperTextOffset: xe, scrollHeight:
|
|
1754
|
+
const { labelOffset: ve, helperTextOffset: xe, scrollHeight: mt } = aa({
|
|
1755
1755
|
scrollHeight: L.current.scrollHeight,
|
|
1756
1756
|
currentHeight: q.current,
|
|
1757
1757
|
currentLabelOffset: Y.current,
|
|
@@ -1763,7 +1763,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1763
1763
|
)), xe && (ee.current = xe, (Be = te == null ? void 0 : te.current) == null || Be.style.setProperty(
|
|
1764
1764
|
"--av-text-area-helper-text",
|
|
1765
1765
|
`${xe}px`
|
|
1766
|
-
)), q.current =
|
|
1766
|
+
)), q.current = mt || q.current;
|
|
1767
1767
|
}
|
|
1768
1768
|
}, [V, n]), j.width > 0 && ((P = z == null ? void 0 : z.current) == null || P.style.setProperty(
|
|
1769
1769
|
"--tw-translate-x",
|
|
@@ -1796,7 +1796,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1796
1796
|
placeholder: n ? void 0 : " ",
|
|
1797
1797
|
className: K.textArea,
|
|
1798
1798
|
rows: 1,
|
|
1799
|
-
...
|
|
1799
|
+
...p && { "aria-describedby": `${W}-helper` },
|
|
1800
1800
|
...o && { "aria-invalid": "true" },
|
|
1801
1801
|
...x && !k && !n && { style: { paddingRight: Re } },
|
|
1802
1802
|
...k && !x && !n && { style: { paddingLeft: Le } },
|
|
@@ -1809,7 +1809,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1809
1809
|
value: V,
|
|
1810
1810
|
onChange: ct,
|
|
1811
1811
|
onFocus: dt,
|
|
1812
|
-
onBlur:
|
|
1812
|
+
onBlur: ut,
|
|
1813
1813
|
...I
|
|
1814
1814
|
}
|
|
1815
1815
|
),
|
|
@@ -1829,7 +1829,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1829
1829
|
ref: te,
|
|
1830
1830
|
id: `${W}-helper`,
|
|
1831
1831
|
className: K.helperText,
|
|
1832
|
-
children:
|
|
1832
|
+
children: p
|
|
1833
1833
|
}
|
|
1834
1834
|
),
|
|
1835
1835
|
x && /* @__PURE__ */ a(
|
|
@@ -1840,7 +1840,7 @@ const qr = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1840
1840
|
children: x
|
|
1841
1841
|
}
|
|
1842
1842
|
),
|
|
1843
|
-
o &&
|
|
1843
|
+
o && p && /* @__PURE__ */ a(Xr, { politeness: "polite", clearAnnouncementDelay: 500, children: lt })
|
|
1844
1844
|
] });
|
|
1845
1845
|
}
|
|
1846
1846
|
);
|
|
@@ -1906,11 +1906,11 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
1906
1906
|
"text-copy-lighter": e === "dark",
|
|
1907
1907
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
1908
1908
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
1909
|
-
}),
|
|
1909
|
+
}), ua = ({ className: e }) => d(
|
|
1910
1910
|
oa,
|
|
1911
1911
|
"relative flex cursor-pointer items-center",
|
|
1912
1912
|
e
|
|
1913
|
-
),
|
|
1913
|
+
), ma = ({
|
|
1914
1914
|
mode: e,
|
|
1915
1915
|
focusMode: r,
|
|
1916
1916
|
labelHidden: t,
|
|
@@ -1926,8 +1926,8 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
1926
1926
|
),
|
|
1927
1927
|
label: da({ mode: e, labelHidden: t }),
|
|
1928
1928
|
input: "peer sr-only",
|
|
1929
|
-
wrapper:
|
|
1930
|
-
}),
|
|
1929
|
+
wrapper: ua({ className: o })
|
|
1930
|
+
}), me = ({
|
|
1931
1931
|
checked: e = !1,
|
|
1932
1932
|
onChange: r,
|
|
1933
1933
|
label: t,
|
|
@@ -1936,30 +1936,30 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
1936
1936
|
mode: l = "system",
|
|
1937
1937
|
focusMode: s = "system",
|
|
1938
1938
|
className: i,
|
|
1939
|
-
noBorder:
|
|
1939
|
+
noBorder: m = !1
|
|
1940
1940
|
}) => {
|
|
1941
|
-
const
|
|
1941
|
+
const u = ma({
|
|
1942
1942
|
mode: l,
|
|
1943
1943
|
focusMode: s,
|
|
1944
1944
|
labelHidden: o,
|
|
1945
1945
|
className: i,
|
|
1946
|
-
noBorder:
|
|
1946
|
+
noBorder: m
|
|
1947
1947
|
}), g = (y) => {
|
|
1948
1948
|
r == null || r(y.target.checked);
|
|
1949
1949
|
};
|
|
1950
|
-
return /* @__PURE__ */ h("label", { className:
|
|
1950
|
+
return /* @__PURE__ */ h("label", { className: u.wrapper, children: [
|
|
1951
1951
|
/* @__PURE__ */ a(
|
|
1952
1952
|
"input",
|
|
1953
1953
|
{
|
|
1954
1954
|
name: n,
|
|
1955
1955
|
checked: e,
|
|
1956
1956
|
type: "checkbox",
|
|
1957
|
-
className:
|
|
1957
|
+
className: u.input,
|
|
1958
1958
|
onChange: g
|
|
1959
1959
|
}
|
|
1960
1960
|
),
|
|
1961
|
-
/* @__PURE__ */ a("div", { className:
|
|
1962
|
-
/* @__PURE__ */ a("span", { className:
|
|
1961
|
+
/* @__PURE__ */ a("div", { className: u.toggle }),
|
|
1962
|
+
/* @__PURE__ */ a("span", { className: u.label, children: t })
|
|
1963
1963
|
] });
|
|
1964
1964
|
}, ha = ({
|
|
1965
1965
|
open: e,
|
|
@@ -1973,20 +1973,20 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
1973
1973
|
} = We({
|
|
1974
1974
|
keys: [o == null ? void 0 : o.username],
|
|
1975
1975
|
getAccessToken: t
|
|
1976
|
-
}), [
|
|
1976
|
+
}), [m, u] = w({
|
|
1977
1977
|
prompts: []
|
|
1978
1978
|
}), g = ({
|
|
1979
1979
|
slot: c,
|
|
1980
|
-
checked:
|
|
1980
|
+
checked: p,
|
|
1981
1981
|
label: v,
|
|
1982
1982
|
content: x
|
|
1983
1983
|
}) => {
|
|
1984
|
-
|
|
1984
|
+
u((k) => {
|
|
1985
1985
|
const C = k.prompts, b = {
|
|
1986
1986
|
slot: c,
|
|
1987
1987
|
label: v,
|
|
1988
1988
|
content: x,
|
|
1989
|
-
enabled:
|
|
1989
|
+
enabled: p
|
|
1990
1990
|
}, E = C.findIndex((I) => I.slot === c);
|
|
1991
1991
|
return E === -1 ? {
|
|
1992
1992
|
...k,
|
|
@@ -2004,21 +2004,21 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2004
2004
|
type: ce.SET_USER_PREFERENCES,
|
|
2005
2005
|
params: {
|
|
2006
2006
|
user: o == null ? void 0 : o.username,
|
|
2007
|
-
tags:
|
|
2007
|
+
tags: m.prompts
|
|
2008
2008
|
}
|
|
2009
2009
|
});
|
|
2010
2010
|
} catch {
|
|
2011
2011
|
}
|
|
2012
|
-
},
|
|
2012
|
+
}, f = () => {
|
|
2013
2013
|
i({ ...n }), r(!1);
|
|
2014
2014
|
};
|
|
2015
2015
|
return D(() => {
|
|
2016
|
-
n != null && n.tags &&
|
|
2016
|
+
n != null && n.tags && u({ prompts: n.tags });
|
|
2017
2017
|
}, [n]), l || s ? null : /* @__PURE__ */ h(
|
|
2018
2018
|
J,
|
|
2019
2019
|
{
|
|
2020
2020
|
open: e,
|
|
2021
|
-
onOpenChange:
|
|
2021
|
+
onOpenChange: f,
|
|
2022
2022
|
title: "Prompts",
|
|
2023
2023
|
footer: /* @__PURE__ */ h(
|
|
2024
2024
|
X,
|
|
@@ -2033,7 +2033,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2033
2033
|
mode: "dark",
|
|
2034
2034
|
variant: "secondary",
|
|
2035
2035
|
focusMode: "light",
|
|
2036
|
-
onClick:
|
|
2036
|
+
onClick: f,
|
|
2037
2037
|
children: "Cancel"
|
|
2038
2038
|
}
|
|
2039
2039
|
) }),
|
|
@@ -2054,7 +2054,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2054
2054
|
),
|
|
2055
2055
|
children: [
|
|
2056
2056
|
/* @__PURE__ */ a("p", { children: Et }),
|
|
2057
|
-
|
|
2057
|
+
m.prompts && m.prompts.map((c) => /* @__PURE__ */ h(
|
|
2058
2058
|
H,
|
|
2059
2059
|
{
|
|
2060
2060
|
header: `Prompt ${c.slot + 1}`,
|
|
@@ -2067,11 +2067,11 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2067
2067
|
label: "Label",
|
|
2068
2068
|
name: `prompt${c.slot}-label`,
|
|
2069
2069
|
value: c.label,
|
|
2070
|
-
onChange: (
|
|
2070
|
+
onChange: (p) => {
|
|
2071
2071
|
g({
|
|
2072
2072
|
slot: c.slot,
|
|
2073
2073
|
checked: c.enabled,
|
|
2074
|
-
label:
|
|
2074
|
+
label: p.target.value,
|
|
2075
2075
|
content: c.content
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
@@ -2083,28 +2083,28 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2083
2083
|
label: "Content",
|
|
2084
2084
|
name: `prompt${c.slot}-content`,
|
|
2085
2085
|
value: c.content,
|
|
2086
|
-
onChange: (
|
|
2086
|
+
onChange: (p) => {
|
|
2087
2087
|
g({
|
|
2088
2088
|
slot: c.slot,
|
|
2089
2089
|
checked: c.enabled,
|
|
2090
2090
|
label: c.label,
|
|
2091
|
-
content:
|
|
2091
|
+
content: p.target.value
|
|
2092
2092
|
});
|
|
2093
2093
|
}
|
|
2094
2094
|
}
|
|
2095
2095
|
) })
|
|
2096
2096
|
] }),
|
|
2097
2097
|
/* @__PURE__ */ a(
|
|
2098
|
-
|
|
2098
|
+
me,
|
|
2099
2099
|
{
|
|
2100
2100
|
className: "mt-2",
|
|
2101
2101
|
noBorder: !0,
|
|
2102
2102
|
label: "Enabled",
|
|
2103
2103
|
name: c.slot.toString(),
|
|
2104
|
-
onChange: (
|
|
2104
|
+
onChange: (p) => {
|
|
2105
2105
|
g({
|
|
2106
2106
|
slot: c.slot,
|
|
2107
|
-
checked:
|
|
2107
|
+
checked: p,
|
|
2108
2108
|
label: c.label,
|
|
2109
2109
|
content: c.content
|
|
2110
2110
|
});
|
|
@@ -2131,9 +2131,9 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2131
2131
|
} = We({
|
|
2132
2132
|
keys: [o == null ? void 0 : o.username],
|
|
2133
2133
|
getAccessToken: t
|
|
2134
|
-
}), [
|
|
2134
|
+
}), [m, u] = w(!1), [g, y] = w({
|
|
2135
2135
|
loadingLocation: !1
|
|
2136
|
-
}), [
|
|
2136
|
+
}), [f, c] = w(""), [p, v] = w(""), [x, k] = w(Tt), [C, b] = Ie({
|
|
2137
2137
|
key: _e + Ct,
|
|
2138
2138
|
initialValue: !1
|
|
2139
2139
|
}), E = (N) => {
|
|
@@ -2146,8 +2146,8 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2146
2146
|
type: ce.SET_USER_PREFERENCES,
|
|
2147
2147
|
params: {
|
|
2148
2148
|
user: o == null ? void 0 : o.username,
|
|
2149
|
-
instructions:
|
|
2150
|
-
location:
|
|
2149
|
+
instructions: f,
|
|
2150
|
+
location: p,
|
|
2151
2151
|
engine: x
|
|
2152
2152
|
}
|
|
2153
2153
|
}), i(), y({
|
|
@@ -2182,7 +2182,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2182
2182
|
}, P = (N, M) => {
|
|
2183
2183
|
k(N ? M : M === Q ? re : Q);
|
|
2184
2184
|
}, L = () => {
|
|
2185
|
-
|
|
2185
|
+
u(!m);
|
|
2186
2186
|
}, de = () => {
|
|
2187
2187
|
i({ ...n }), r(!1);
|
|
2188
2188
|
};
|
|
@@ -2227,7 +2227,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2227
2227
|
}
|
|
2228
2228
|
),
|
|
2229
2229
|
children: /* @__PURE__ */ h(B, { children: [
|
|
2230
|
-
|
|
2230
|
+
m && /* @__PURE__ */ a(ha, { open: m, onOpenChange: u }),
|
|
2231
2231
|
/* @__PURE__ */ h(
|
|
2232
2232
|
H,
|
|
2233
2233
|
{
|
|
@@ -2236,7 +2236,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2236
2236
|
children: [
|
|
2237
2237
|
/* @__PURE__ */ a("p", { className: "text-sm", children: "Select the AI engine that will be used to generate responses." }),
|
|
2238
2238
|
/* @__PURE__ */ a(
|
|
2239
|
-
|
|
2239
|
+
me,
|
|
2240
2240
|
{
|
|
2241
2241
|
noBorder: !0,
|
|
2242
2242
|
label: Q,
|
|
@@ -2246,7 +2246,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2246
2246
|
}
|
|
2247
2247
|
),
|
|
2248
2248
|
/* @__PURE__ */ a(
|
|
2249
|
-
|
|
2249
|
+
me,
|
|
2250
2250
|
{
|
|
2251
2251
|
className: "mt-2",
|
|
2252
2252
|
noBorder: !0,
|
|
@@ -2258,7 +2258,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2258
2258
|
),
|
|
2259
2259
|
/* @__PURE__ */ a("p", { className: "text-sm", children: 'This "Show Message Statistics" option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more.' }),
|
|
2260
2260
|
/* @__PURE__ */ a(
|
|
2261
|
-
|
|
2261
|
+
me,
|
|
2262
2262
|
{
|
|
2263
2263
|
className: "mt-2",
|
|
2264
2264
|
noBorder: !0,
|
|
@@ -2302,7 +2302,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2302
2302
|
autoCorrect: "off",
|
|
2303
2303
|
name: "customInstructions",
|
|
2304
2304
|
label: "Custom Instructions",
|
|
2305
|
-
value:
|
|
2305
|
+
value: f,
|
|
2306
2306
|
onChange: (N) => {
|
|
2307
2307
|
c(N.target.value);
|
|
2308
2308
|
},
|
|
@@ -2325,7 +2325,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2325
2325
|
mode: "alt-system",
|
|
2326
2326
|
name: "location",
|
|
2327
2327
|
label: "Location",
|
|
2328
|
-
value:
|
|
2328
|
+
value: p,
|
|
2329
2329
|
onChange: (N) => {
|
|
2330
2330
|
v(N.target.value);
|
|
2331
2331
|
},
|
|
@@ -2350,14 +2350,14 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2350
2350
|
}
|
|
2351
2351
|
);
|
|
2352
2352
|
}, xa = () => {
|
|
2353
|
-
const { logout: e } = G(), { state: r } =
|
|
2353
|
+
const { logout: e } = G(), { state: r } = pe(Ye), [t, o] = w(!1), [n, l] = w(!1), [s, i] = w(!1), [m, u] = w(!1), [g, y] = w(!1), f = () => {
|
|
2354
2354
|
o(!t);
|
|
2355
2355
|
}, c = () => {
|
|
2356
2356
|
l(!n);
|
|
2357
|
-
},
|
|
2357
|
+
}, p = () => {
|
|
2358
2358
|
i(!s);
|
|
2359
2359
|
}, v = () => {
|
|
2360
|
-
|
|
2360
|
+
u(!m);
|
|
2361
2361
|
}, x = () => {
|
|
2362
2362
|
y(!g);
|
|
2363
2363
|
};
|
|
@@ -2379,7 +2379,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2379
2379
|
/* @__PURE__ */ a(Pr, { open: t, onOpenChange: o }),
|
|
2380
2380
|
/* @__PURE__ */ a(ga, { open: n, onOpenChange: l }),
|
|
2381
2381
|
s && /* @__PURE__ */ a(Br, { open: s, onOpenChange: i }),
|
|
2382
|
-
/* @__PURE__ */ a(Rr, { open:
|
|
2382
|
+
/* @__PURE__ */ a(Rr, { open: m, onOpenChange: u }),
|
|
2383
2383
|
/* @__PURE__ */ a("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ a(X, { alignHorizontal: "flex-end", alignVertical: "center", children: /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(X, { children: /* @__PURE__ */ a(R, { children: /* @__PURE__ */ a(
|
|
2384
2384
|
Vt,
|
|
2385
2385
|
{
|
|
@@ -2398,7 +2398,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2398
2398
|
oe,
|
|
2399
2399
|
{
|
|
2400
2400
|
label: "Profile",
|
|
2401
|
-
onClick:
|
|
2401
|
+
onClick: f,
|
|
2402
2402
|
icon: /* @__PURE__ */ a(nr, {})
|
|
2403
2403
|
}
|
|
2404
2404
|
),
|
|
@@ -2414,7 +2414,7 @@ const oa = "av-toggle", na = () => d("peer", "h-6", "w-11", "rounded-full"), sa
|
|
|
2414
2414
|
oe,
|
|
2415
2415
|
{
|
|
2416
2416
|
label: "History",
|
|
2417
|
-
onClick:
|
|
2417
|
+
onClick: p,
|
|
2418
2418
|
icon: /* @__PURE__ */ a(ar, {})
|
|
2419
2419
|
}
|
|
2420
2420
|
),
|