@versini/sassysaint 5.3.2 → 5.3.4
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.o0UC51P4.js → App.DFqF-wQM.js} +3 -3
- package/dist/chunks/{LazyHeader.C4UL45BA.js → LazyHeader.Dw2gvADU.js} +228 -207
- package/dist/chunks/{LazyMarkdownWithExtra.BuZU_57S.js → LazyMarkdownWithExtra.BogZ-y3A.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.CAO3F6im.js → LazyMessageAssistant.BBZLMOq5.js} +4 -4
- package/dist/chunks/{index.DeDXpl8g.js → index.0OaSd9kZ.js} +3 -3
- package/dist/chunks/{index.DcfOXJ8N.js → index.B3_1eKgu.js} +1 -0
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as v, Fragment as R } from "react/jsx-runtime";
|
|
2
|
-
import { g as O, D as
|
|
3
|
-
import { serviceCall as H, SERVICE_TYPES as F, E as G, f as
|
|
2
|
+
import { g as O, D as B, CARDS as T, renderDataAsList as le, pluralize as fe, AppContext as me, ABOUT_TITLE as Rt, DEFAULT_AI_ENGINE as ie, numberFormatter as Mt, durationFormatter as Qe, NA as Lt, ROLE_ASSISTANT as Ot, extractAverage as Pt, GPT4_MAX_TOKENS as Bt, rn as te, STATS as et, b as Me, j as ee, R as Q, HistoryContext as tt, LOCAL_STORAGE_PREFIX as $, LOCAL_STORAGE_SORT as Dt, O as Y, ACTION_RESET as Vt, ACTION_RESTORE as zt, truncate as $t, ACTION_SORT as Ce, LOCAL_STORAGE_SEARCH as Ht, me as Ft, ACTION_SEARCH as Gt, HISTORY_TITLE as Ut, LOCAL_STORAGE_ENGINE_TOGGLE as ot, ENGINE_OPENAI as we, ENGINE_ANTHROPIC as pe, ACTION_ENGINE as rt, getCurrentGeoLocation as jt, LOCAL_STORAGE_TAG_SUMMARIZE as ze, LOCAL_STORAGE_TAG_PROOFREAD as $e, LOCAL_STORAGE_TAG_REPHRASE as He, TAG_CONTENT as Te, TAGS as Ne, LOCAL_STORAGE_CHAT_DETAILS as Kt, G as Wt, v as Fe, PROFILE_TITLE as Yt, LOG_OUT as Ge } from "./index.0OaSd9kZ.js";
|
|
3
|
+
import { serviceCall as H, SERVICE_TYPES as F, E as G, f as V, ce as Zt, ge as qt, me as Ee, ie as P, ue as Xt, be as Jt, he as Qt, we as Ue } from "./index.B3_1eKgu.js";
|
|
4
4
|
import * as f from "react";
|
|
5
|
-
import
|
|
5
|
+
import x, { useId as eo, forwardRef as nt, useState as S, useRef as ce, useContext as z, useEffect as U, Suspense as to, lazy as oo, useMemo as ro } from "react";
|
|
6
6
|
import C from "clsx";
|
|
7
7
|
import { useFloatingTree as at, useFloatingNodeId as no, useListItem as st, useFloating as ao, offset as so, flip as io, shift as lo, autoUpdate as co, useClick as uo, useRole as mo, useDismiss as ho, useListNavigation as go, useTypeahead as po, useInteractions as fo, useMergeRefs as it, FloatingNode as bo, FloatingList as vo, FloatingPortal as yo, FloatingFocusManager as ko, FloatingTree as Co } from "@floating-ui/react";
|
|
8
|
-
const
|
|
8
|
+
const wo = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
spacing: o,
|
|
@@ -24,7 +24,7 @@ const To = ({
|
|
|
24
24
|
...s,
|
|
25
25
|
children: /* @__PURE__ */ r("path", { d: "m147.487 0l70.081 175.78H256L185.919 0zM66.183 106.221l23.98-61.774l23.98 61.774zM70.07 0L0 175.78h39.18l14.33-36.914h73.308l14.328 36.914h39.179L110.255 0z" })
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), To = ({
|
|
28
28
|
className: e,
|
|
29
29
|
viewBox: t,
|
|
30
30
|
spacing: o,
|
|
@@ -52,7 +52,7 @@ const To = ({
|
|
|
52
52
|
/* @__PURE__ */ r("path", { d: "M32 0H192c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z" })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
|
-
),
|
|
55
|
+
), No = ({
|
|
56
56
|
className: e,
|
|
57
57
|
viewBox: t,
|
|
58
58
|
spacing: o,
|
|
@@ -80,7 +80,7 @@ const To = ({
|
|
|
80
80
|
/* @__PURE__ */ r("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
|
|
81
81
|
]
|
|
82
82
|
}
|
|
83
|
-
),
|
|
83
|
+
), Eo = ({
|
|
84
84
|
className: e,
|
|
85
85
|
viewBox: t,
|
|
86
86
|
spacing: o,
|
|
@@ -136,7 +136,7 @@ const To = ({
|
|
|
136
136
|
/* @__PURE__ */ r("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
|
-
),
|
|
139
|
+
), xo = ({
|
|
140
140
|
className: e,
|
|
141
141
|
viewBox: t,
|
|
142
142
|
spacing: o,
|
|
@@ -164,7 +164,7 @@ const To = ({
|
|
|
164
164
|
/* @__PURE__ */ r("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
165
165
|
]
|
|
166
166
|
}
|
|
167
|
-
),
|
|
167
|
+
), Io = ({
|
|
168
168
|
className: e,
|
|
169
169
|
viewBox: t,
|
|
170
170
|
spacing: o,
|
|
@@ -296,7 +296,7 @@ const To = ({
|
|
|
296
296
|
function de(e) {
|
|
297
297
|
return eo();
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const Ie = f.createContext({
|
|
300
300
|
getItemProps: () => ({}),
|
|
301
301
|
activeIndex: null,
|
|
302
302
|
/* v8 ignore next 2 */
|
|
@@ -328,8 +328,8 @@ const xe = f.createContext({
|
|
|
328
328
|
focusMode: l = "system",
|
|
329
329
|
...h
|
|
330
330
|
}, u) => {
|
|
331
|
-
const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null),
|
|
332
|
-
nodeId:
|
|
331
|
+
const [m, g] = S(!1), [b, d] = S(!1), [c, y] = S(null), w = ce([]), p = ce([]), k = z(Ie), N = at(), I = no(), M = st(), { floatingStyles: _, refs: D, context: E } = ao({
|
|
332
|
+
nodeId: I,
|
|
333
333
|
open: m,
|
|
334
334
|
onOpenChange: (ae) => {
|
|
335
335
|
g(ae), a == null || a(ae);
|
|
@@ -338,17 +338,17 @@ const xe = f.createContext({
|
|
|
338
338
|
strategy: "fixed",
|
|
339
339
|
middleware: [so({ mainAxis: 10 }), io(), lo()],
|
|
340
340
|
whileElementsMounted: co
|
|
341
|
-
}), re = uo(
|
|
341
|
+
}), re = uo(E, {
|
|
342
342
|
event: "mousedown",
|
|
343
343
|
toggle: !0,
|
|
344
344
|
ignoreMouse: !1
|
|
345
|
-
}), J = mo(
|
|
346
|
-
listRef:
|
|
345
|
+
}), J = mo(E, { role: "menu" }), j = ho(E, { bubbles: !0 }), ne = go(E, {
|
|
346
|
+
listRef: w,
|
|
347
347
|
activeIndex: c,
|
|
348
348
|
nested: !1,
|
|
349
349
|
onNavigate: y,
|
|
350
350
|
loop: !0
|
|
351
|
-
}), L = po(
|
|
351
|
+
}), L = po(E, {
|
|
352
352
|
listRef: p,
|
|
353
353
|
onMatch: m ? y : void 0,
|
|
354
354
|
activeIndex: c
|
|
@@ -357,12 +357,12 @@ const xe = f.createContext({
|
|
|
357
357
|
focusMode: l,
|
|
358
358
|
mode: i,
|
|
359
359
|
spacing: s
|
|
360
|
-
} : {}, At =
|
|
360
|
+
} : {}, At = x.cloneElement(e, {
|
|
361
361
|
..._t,
|
|
362
362
|
"aria-label": o,
|
|
363
363
|
"data-open": m ? "" : void 0,
|
|
364
364
|
"data-focus-inside": b ? "" : void 0,
|
|
365
|
-
ref: it([
|
|
365
|
+
ref: it([D.setReference, M.ref, u]),
|
|
366
366
|
...K(
|
|
367
367
|
k.getItemProps({
|
|
368
368
|
...h
|
|
@@ -370,20 +370,20 @@ const xe = f.createContext({
|
|
|
370
370
|
)
|
|
371
371
|
});
|
|
372
372
|
return U(() => {
|
|
373
|
-
if (!
|
|
373
|
+
if (!N)
|
|
374
374
|
return;
|
|
375
375
|
function ae() {
|
|
376
376
|
g(!1), a == null || a(!1);
|
|
377
377
|
}
|
|
378
|
-
return
|
|
379
|
-
|
|
378
|
+
return N.events.on("click", ae), () => {
|
|
379
|
+
N.events.off("click", ae);
|
|
380
380
|
};
|
|
381
|
-
}, [
|
|
382
|
-
m &&
|
|
383
|
-
}, [
|
|
381
|
+
}, [N, a]), U(() => {
|
|
382
|
+
m && N && N.events.emit("menuopen", { nodeId: I });
|
|
383
|
+
}, [N, m, I]), /* @__PURE__ */ v(bo, { id: I, children: [
|
|
384
384
|
At,
|
|
385
385
|
/* @__PURE__ */ r(
|
|
386
|
-
|
|
386
|
+
Ie.Provider,
|
|
387
387
|
{
|
|
388
388
|
value: {
|
|
389
389
|
activeIndex: c,
|
|
@@ -392,17 +392,17 @@ const xe = f.createContext({
|
|
|
392
392
|
setHasFocusInside: d,
|
|
393
393
|
isOpen: m
|
|
394
394
|
},
|
|
395
|
-
children: /* @__PURE__ */ r(vo, { elementsRef:
|
|
395
|
+
children: /* @__PURE__ */ r(vo, { elementsRef: w, labelsRef: p, children: m && /* @__PURE__ */ r(yo, { children: /* @__PURE__ */ r(
|
|
396
396
|
ko,
|
|
397
397
|
{
|
|
398
|
-
context:
|
|
398
|
+
context: E,
|
|
399
399
|
modal: !1,
|
|
400
400
|
initialFocus: 0,
|
|
401
401
|
returnFocus: !0,
|
|
402
402
|
children: /* @__PURE__ */ r(
|
|
403
403
|
"div",
|
|
404
404
|
{
|
|
405
|
-
ref:
|
|
405
|
+
ref: D.setFloating,
|
|
406
406
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
407
407
|
style: _,
|
|
408
408
|
...A(),
|
|
@@ -428,7 +428,7 @@ const W = f.forwardRef(
|
|
|
428
428
|
ignoreClick: s = !1,
|
|
429
429
|
...i
|
|
430
430
|
}, l) => {
|
|
431
|
-
const h = f.useContext(
|
|
431
|
+
const h = f.useContext(Ie), u = st({ label: t ? null : e }), m = at(), g = it([u.ref, l]);
|
|
432
432
|
return n && a ? /* @__PURE__ */ r(
|
|
433
433
|
"div",
|
|
434
434
|
{
|
|
@@ -506,8 +506,8 @@ function Le(e, t = []) {
|
|
|
506
506
|
const l = f.createContext(i), h = o.length;
|
|
507
507
|
o = [...o, i];
|
|
508
508
|
function u(g) {
|
|
509
|
-
const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l,
|
|
510
|
-
return /* @__PURE__ */ r(y.Provider, { value:
|
|
509
|
+
const { scope: b, children: d, ...c } = g, y = (b == null ? void 0 : b[e][h]) || l, w = f.useMemo(() => c, Object.values(c));
|
|
510
|
+
return /* @__PURE__ */ r(y.Provider, { value: w, children: d });
|
|
511
511
|
}
|
|
512
512
|
function m(g, b) {
|
|
513
513
|
const d = (b == null ? void 0 : b[e][h]) || l, c = f.useContext(d);
|
|
@@ -632,32 +632,32 @@ function Go(e) {
|
|
|
632
632
|
t,
|
|
633
633
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
634
634
|
), i = (d) => {
|
|
635
|
-
const { scope: c, children: y } = d,
|
|
636
|
-
return /* @__PURE__ */ r(a, { scope: c, itemMap: p, collectionRef:
|
|
635
|
+
const { scope: c, children: y } = d, w = x.useRef(null), p = x.useRef(/* @__PURE__ */ new Map()).current;
|
|
636
|
+
return /* @__PURE__ */ r(a, { scope: c, itemMap: p, collectionRef: w, children: y });
|
|
637
637
|
};
|
|
638
638
|
i.displayName = t;
|
|
639
|
-
const l = e + "CollectionSlot", h =
|
|
639
|
+
const l = e + "CollectionSlot", h = x.forwardRef(
|
|
640
640
|
(d, c) => {
|
|
641
|
-
const { scope: y, children:
|
|
642
|
-
return /* @__PURE__ */ r(be, { ref: k, children:
|
|
641
|
+
const { scope: y, children: w } = d, p = s(l, y), k = _e(c, p.collectionRef);
|
|
642
|
+
return /* @__PURE__ */ r(be, { ref: k, children: w });
|
|
643
643
|
}
|
|
644
644
|
);
|
|
645
645
|
h.displayName = l;
|
|
646
|
-
const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g =
|
|
646
|
+
const u = e + "CollectionItemSlot", m = "data-radix-collection-item", g = x.forwardRef(
|
|
647
647
|
(d, c) => {
|
|
648
|
-
const { scope: y, children:
|
|
649
|
-
return
|
|
648
|
+
const { scope: y, children: w, ...p } = d, k = x.useRef(null), N = _e(c, k), I = s(u, y);
|
|
649
|
+
return x.useEffect(() => (I.itemMap.set(k, { ref: k, ...p }), () => void I.itemMap.delete(k))), /* @__PURE__ */ r(be, { [m]: "", ref: N, children: w });
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
g.displayName = u;
|
|
653
653
|
function b(d) {
|
|
654
654
|
const c = s(e + "CollectionConsumer", d);
|
|
655
|
-
return
|
|
655
|
+
return x.useCallback(() => {
|
|
656
656
|
const y = c.collectionRef.current;
|
|
657
657
|
if (!y) return [];
|
|
658
|
-
const
|
|
658
|
+
const w = Array.from(y.querySelectorAll(`[${m}]`));
|
|
659
659
|
return Array.from(c.itemMap.values()).sort(
|
|
660
|
-
(p, k) =>
|
|
660
|
+
(p, k) => w.indexOf(p.ref.current) - w.indexOf(k.ref.current)
|
|
661
661
|
);
|
|
662
662
|
}, [c.collectionRef, c.itemMap]);
|
|
663
663
|
}
|
|
@@ -717,7 +717,7 @@ function dt(e) {
|
|
|
717
717
|
const t = f.useContext(Zo);
|
|
718
718
|
return e || t || "ltr";
|
|
719
719
|
}
|
|
720
|
-
var
|
|
720
|
+
var xe = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Re, ut, Xo] = Go(ke), [Jo, mt] = Le(
|
|
721
721
|
ke,
|
|
722
722
|
[Xo]
|
|
723
723
|
), [Qo, er] = Jo(ke), ht = f.forwardRef(
|
|
@@ -736,16 +736,16 @@ var tr = f.forwardRef((e, t) => {
|
|
|
736
736
|
onEntryFocus: u,
|
|
737
737
|
preventScrollOnEntryFocus: m = !1,
|
|
738
738
|
...g
|
|
739
|
-
} = e, b = f.useRef(null), d = _e(t, b), c = dt(s), [y = null,
|
|
739
|
+
} = e, b = f.useRef(null), d = _e(t, b), c = dt(s), [y = null, w] = ye({
|
|
740
740
|
prop: i,
|
|
741
741
|
defaultProp: l,
|
|
742
742
|
onChange: h
|
|
743
|
-
}), [p, k] = f.useState(!1),
|
|
743
|
+
}), [p, k] = f.useState(!1), N = Oe(u), I = ut(o), M = f.useRef(!1), [_, D] = f.useState(0);
|
|
744
744
|
return f.useEffect(() => {
|
|
745
|
-
const
|
|
746
|
-
if (
|
|
747
|
-
return
|
|
748
|
-
}, [
|
|
745
|
+
const E = b.current;
|
|
746
|
+
if (E)
|
|
747
|
+
return E.addEventListener(xe, N), () => E.removeEventListener(xe, N);
|
|
748
|
+
}, [N]), /* @__PURE__ */ r(
|
|
749
749
|
Qo,
|
|
750
750
|
{
|
|
751
751
|
scope: o,
|
|
@@ -754,16 +754,16 @@ var tr = f.forwardRef((e, t) => {
|
|
|
754
754
|
loop: a,
|
|
755
755
|
currentTabStopId: y,
|
|
756
756
|
onItemFocus: f.useCallback(
|
|
757
|
-
(
|
|
758
|
-
[
|
|
757
|
+
(E) => w(E),
|
|
758
|
+
[w]
|
|
759
759
|
),
|
|
760
760
|
onItemShiftTab: f.useCallback(() => k(!0), []),
|
|
761
761
|
onFocusableItemAdd: f.useCallback(
|
|
762
|
-
() =>
|
|
762
|
+
() => D((E) => E + 1),
|
|
763
763
|
[]
|
|
764
764
|
),
|
|
765
765
|
onFocusableItemRemove: f.useCallback(
|
|
766
|
-
() =>
|
|
766
|
+
() => D((E) => E - 1),
|
|
767
767
|
[]
|
|
768
768
|
),
|
|
769
769
|
children: /* @__PURE__ */ r(
|
|
@@ -777,12 +777,12 @@ var tr = f.forwardRef((e, t) => {
|
|
|
777
777
|
onMouseDown: Z(e.onMouseDown, () => {
|
|
778
778
|
M.current = !0;
|
|
779
779
|
}),
|
|
780
|
-
onFocus: Z(e.onFocus, (
|
|
780
|
+
onFocus: Z(e.onFocus, (E) => {
|
|
781
781
|
const re = !M.current;
|
|
782
|
-
if (
|
|
783
|
-
const J = new CustomEvent(
|
|
784
|
-
if (
|
|
785
|
-
const j =
|
|
782
|
+
if (E.target === E.currentTarget && re && !p) {
|
|
783
|
+
const J = new CustomEvent(xe, qo);
|
|
784
|
+
if (E.currentTarget.dispatchEvent(J), !J.defaultPrevented) {
|
|
785
|
+
const j = I().filter((A) => A.focusable), ne = j.find((A) => A.active), L = j.find((A) => A.id === y), K = [ne, L, ...j].filter(
|
|
786
786
|
Boolean
|
|
787
787
|
).map((A) => A.ref.current);
|
|
788
788
|
ft(K, m);
|
|
@@ -835,14 +835,14 @@ var tr = f.forwardRef((e, t) => {
|
|
|
835
835
|
if (y !== void 0) {
|
|
836
836
|
if (c.metaKey || c.ctrlKey || c.altKey || c.shiftKey) return;
|
|
837
837
|
c.preventDefault();
|
|
838
|
-
let
|
|
839
|
-
if (y === "last")
|
|
838
|
+
let w = g().filter((p) => p.focusable).map((p) => p.ref.current);
|
|
839
|
+
if (y === "last") w.reverse();
|
|
840
840
|
else if (y === "prev" || y === "next") {
|
|
841
|
-
y === "prev" &&
|
|
842
|
-
const p =
|
|
843
|
-
|
|
841
|
+
y === "prev" && w.reverse();
|
|
842
|
+
const p = w.indexOf(c.currentTarget);
|
|
843
|
+
w = u.loop ? ar(w, p + 1) : w.slice(p + 1);
|
|
844
844
|
}
|
|
845
|
-
setTimeout(() => ft(
|
|
845
|
+
setTimeout(() => ft(w));
|
|
846
846
|
}
|
|
847
847
|
})
|
|
848
848
|
}
|
|
@@ -900,9 +900,9 @@ var sr = ht, ir = pt, lr = "Toggle", bt = f.forwardRef((e, t) => {
|
|
|
900
900
|
);
|
|
901
901
|
});
|
|
902
902
|
bt.displayName = lr;
|
|
903
|
-
var oe = "ToggleGroup", [vt,
|
|
903
|
+
var oe = "ToggleGroup", [vt, Nn] = Le(oe, [
|
|
904
904
|
mt
|
|
905
|
-
]), yt = mt(), Pe =
|
|
905
|
+
]), yt = mt(), Pe = x.forwardRef((e, t) => {
|
|
906
906
|
const { type: o, ...n } = e;
|
|
907
907
|
if (o === "single")
|
|
908
908
|
return /* @__PURE__ */ r(cr, { ...n, ref: t });
|
|
@@ -911,7 +911,7 @@ var oe = "ToggleGroup", [vt, En] = Le(oe, [
|
|
|
911
911
|
throw new Error(`Missing prop \`type\` expected on \`${oe}\``);
|
|
912
912
|
});
|
|
913
913
|
Pe.displayName = oe;
|
|
914
|
-
var [kt, Ct] = vt(oe), cr =
|
|
914
|
+
var [kt, Ct] = vt(oe), cr = x.forwardRef((e, t) => {
|
|
915
915
|
const {
|
|
916
916
|
value: o,
|
|
917
917
|
defaultValue: n,
|
|
@@ -930,11 +930,11 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
|
|
|
930
930
|
type: "single",
|
|
931
931
|
value: i ? [i] : [],
|
|
932
932
|
onItemActivate: l,
|
|
933
|
-
onItemDeactivate:
|
|
934
|
-
children: /* @__PURE__ */ r(
|
|
933
|
+
onItemDeactivate: x.useCallback(() => l(""), [l]),
|
|
934
|
+
children: /* @__PURE__ */ r(wt, { ...s, ref: t })
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
|
-
}), dr =
|
|
937
|
+
}), dr = x.forwardRef((e, t) => {
|
|
938
938
|
const {
|
|
939
939
|
value: o,
|
|
940
940
|
defaultValue: n,
|
|
@@ -945,10 +945,10 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
|
|
|
945
945
|
prop: o,
|
|
946
946
|
defaultProp: n,
|
|
947
947
|
onChange: a
|
|
948
|
-
}), h =
|
|
948
|
+
}), h = x.useCallback(
|
|
949
949
|
(m) => l((g = []) => [...g, m]),
|
|
950
950
|
[l]
|
|
951
|
-
), u =
|
|
951
|
+
), u = x.useCallback(
|
|
952
952
|
(m) => l((g = []) => g.filter((b) => b !== m)),
|
|
953
953
|
[l]
|
|
954
954
|
);
|
|
@@ -960,12 +960,12 @@ var [kt, Ct] = vt(oe), cr = I.forwardRef((e, t) => {
|
|
|
960
960
|
value: i,
|
|
961
961
|
onItemActivate: h,
|
|
962
962
|
onItemDeactivate: u,
|
|
963
|
-
children: /* @__PURE__ */ r(
|
|
963
|
+
children: /* @__PURE__ */ r(wt, { ...s, ref: t })
|
|
964
964
|
}
|
|
965
965
|
);
|
|
966
966
|
});
|
|
967
967
|
Pe.displayName = oe;
|
|
968
|
-
var [ur, mr] = vt(oe),
|
|
968
|
+
var [ur, mr] = vt(oe), wt = x.forwardRef(
|
|
969
969
|
(e, t) => {
|
|
970
970
|
const {
|
|
971
971
|
__scopeToggleGroup: o,
|
|
@@ -988,9 +988,9 @@ var [ur, mr] = vt(oe), Tt = I.forwardRef(
|
|
|
988
988
|
}
|
|
989
989
|
) : /* @__PURE__ */ r(ue.div, { ...g, ref: t }) });
|
|
990
990
|
}
|
|
991
|
-
), ve = "ToggleGroupItem",
|
|
991
|
+
), ve = "ToggleGroupItem", Tt = x.forwardRef(
|
|
992
992
|
(e, t) => {
|
|
993
|
-
const o = Ct(ve, e.__scopeToggleGroup), n = mr(ve, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h =
|
|
993
|
+
const o = Ct(ve, e.__scopeToggleGroup), n = mr(ve, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = x.useRef(null);
|
|
994
994
|
return n.rovingFocus ? /* @__PURE__ */ r(
|
|
995
995
|
ir,
|
|
996
996
|
{
|
|
@@ -1004,8 +1004,8 @@ var [ur, mr] = vt(oe), Tt = I.forwardRef(
|
|
|
1004
1004
|
) : /* @__PURE__ */ r(We, { ...l, ref: t });
|
|
1005
1005
|
}
|
|
1006
1006
|
);
|
|
1007
|
-
|
|
1008
|
-
var We =
|
|
1007
|
+
Tt.displayName = ve;
|
|
1008
|
+
var We = x.forwardRef(
|
|
1009
1009
|
(e, t) => {
|
|
1010
1010
|
const { __scopeToggleGroup: o, value: n, ...a } = e, s = Ct(ve, o), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = s.type === "single" ? i : void 0;
|
|
1011
1011
|
return /* @__PURE__ */ r(
|
|
@@ -1020,8 +1020,8 @@ var We = I.forwardRef(
|
|
|
1020
1020
|
}
|
|
1021
1021
|
);
|
|
1022
1022
|
}
|
|
1023
|
-
), hr = Pe, gr =
|
|
1024
|
-
const
|
|
1023
|
+
), hr = Pe, gr = Tt;
|
|
1024
|
+
const Nt = x.createContext({
|
|
1025
1025
|
size: "medium",
|
|
1026
1026
|
focusMode: "system",
|
|
1027
1027
|
mode: "system"
|
|
@@ -1091,7 +1091,7 @@ const Et = I.createContext({
|
|
|
1091
1091
|
"bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
|
|
1092
1092
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
1093
1093
|
}
|
|
1094
|
-
),
|
|
1094
|
+
), wr = ({
|
|
1095
1095
|
children: e,
|
|
1096
1096
|
value: t,
|
|
1097
1097
|
onValueChange: o,
|
|
@@ -1104,7 +1104,7 @@ const Et = I.createContext({
|
|
|
1104
1104
|
...u
|
|
1105
1105
|
}) => {
|
|
1106
1106
|
const m = Cr({ mode: a, spacing: h }), g = { size: i, focusMode: s, mode: a };
|
|
1107
|
-
return /* @__PURE__ */ r(
|
|
1107
|
+
return /* @__PURE__ */ r(Nt.Provider, { value: g, children: /* @__PURE__ */ r(
|
|
1108
1108
|
hr,
|
|
1109
1109
|
{
|
|
1110
1110
|
disabled: n,
|
|
@@ -1117,8 +1117,8 @@ const Et = I.createContext({
|
|
|
1117
1117
|
children: e
|
|
1118
1118
|
}
|
|
1119
1119
|
) });
|
|
1120
|
-
},
|
|
1121
|
-
const { size: o, focusMode: n, mode: a } =
|
|
1120
|
+
}, Tr = ({ value: e, disabled: t }) => {
|
|
1121
|
+
const { size: o, focusMode: n, mode: a } = z(Nt), { itemClass: s, wrapperClass: i } = kr({
|
|
1122
1122
|
focusMode: n,
|
|
1123
1123
|
mode: a,
|
|
1124
1124
|
size: o
|
|
@@ -1146,7 +1146,7 @@ try {
|
|
|
1146
1146
|
});
|
|
1147
1147
|
} catch {
|
|
1148
1148
|
}
|
|
1149
|
-
const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button",
|
|
1149
|
+
const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Nr = (e) => {
|
|
1150
1150
|
let t = "";
|
|
1151
1151
|
if (typeof e == "number" || typeof e == "string")
|
|
1152
1152
|
t = "m-" + e;
|
|
@@ -1155,7 +1155,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1155
1155
|
(e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
|
|
1156
1156
|
}
|
|
1157
1157
|
return t;
|
|
1158
|
-
}, Be = "icon",
|
|
1158
|
+
}, Be = "icon", Er = "button", xr = "link", Ir = ({
|
|
1159
1159
|
type: e,
|
|
1160
1160
|
size: t,
|
|
1161
1161
|
labelRight: o,
|
|
@@ -1164,13 +1164,13 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1164
1164
|
}) => {
|
|
1165
1165
|
const s = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
|
|
1166
1166
|
switch (e) {
|
|
1167
|
-
case
|
|
1167
|
+
case Er:
|
|
1168
1168
|
return C("px-4", {
|
|
1169
1169
|
[s]: t === "small",
|
|
1170
1170
|
[i]: t === "medium",
|
|
1171
1171
|
[l]: t === "large"
|
|
1172
1172
|
});
|
|
1173
|
-
case
|
|
1173
|
+
case xr:
|
|
1174
1174
|
return C("px-4 text-center", {
|
|
1175
1175
|
[s]: t === "small",
|
|
1176
1176
|
[i]: t === "medium",
|
|
@@ -1310,7 +1310,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1310
1310
|
"focus:outline-focus-light": e === "light",
|
|
1311
1311
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1312
1312
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1313
|
-
}),
|
|
1313
|
+
}), Et = ({
|
|
1314
1314
|
type: e,
|
|
1315
1315
|
className: t,
|
|
1316
1316
|
raw: o,
|
|
@@ -1330,9 +1330,9 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1330
1330
|
}) => (d || (d = "primary"), o ? C(qe, t) : C(
|
|
1331
1331
|
qe,
|
|
1332
1332
|
t,
|
|
1333
|
-
|
|
1333
|
+
Nr(g),
|
|
1334
1334
|
Sr({ mode: n, variant: d, noBackground: b, noTruncate: c }),
|
|
1335
|
-
|
|
1335
|
+
Ir({ type: e, size: l, labelRight: u, labelLeft: m, align: y }),
|
|
1336
1336
|
Rr({ mode: n, variant: d, noBorder: h }),
|
|
1337
1337
|
Mr({ focusMode: a }),
|
|
1338
1338
|
_r({ mode: n, variant: d, disabled: s }),
|
|
@@ -1344,7 +1344,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1344
1344
|
)), Lr = (e, t, o) => {
|
|
1345
1345
|
var n;
|
|
1346
1346
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof o == "function" && o(e);
|
|
1347
|
-
}, De =
|
|
1347
|
+
}, De = x.forwardRef((e, t) => {
|
|
1348
1348
|
const { onClick: o, noInternalClick: n = !1, ...a } = e;
|
|
1349
1349
|
return /* @__PURE__ */ r(
|
|
1350
1350
|
"button",
|
|
@@ -1358,7 +1358,7 @@ const Ye = "av-messagebox", Ze = "av-panel", qe = "av-button", Er = (e) => {
|
|
|
1358
1358
|
);
|
|
1359
1359
|
});
|
|
1360
1360
|
De.displayName = "BaseButton";
|
|
1361
|
-
const
|
|
1361
|
+
const xt = x.forwardRef(
|
|
1362
1362
|
({
|
|
1363
1363
|
children: e,
|
|
1364
1364
|
disabled: t = !1,
|
|
@@ -1376,10 +1376,10 @@ const It = I.forwardRef(
|
|
|
1376
1376
|
labelLeft: d,
|
|
1377
1377
|
spacing: c,
|
|
1378
1378
|
noBackground: y = !1,
|
|
1379
|
-
align:
|
|
1379
|
+
align: w = "center",
|
|
1380
1380
|
...p
|
|
1381
1381
|
}, k) => {
|
|
1382
|
-
const
|
|
1382
|
+
const N = Et({
|
|
1383
1383
|
type: Be,
|
|
1384
1384
|
mode: o,
|
|
1385
1385
|
focusMode: n,
|
|
@@ -1393,8 +1393,8 @@ const It = I.forwardRef(
|
|
|
1393
1393
|
labelLeft: d,
|
|
1394
1394
|
spacing: c,
|
|
1395
1395
|
noBackground: y,
|
|
1396
|
-
align:
|
|
1397
|
-
}),
|
|
1396
|
+
align: w
|
|
1397
|
+
}), I = C({
|
|
1398
1398
|
"text-copy-accent-dark": o === "light" && !l,
|
|
1399
1399
|
"text-copy-light": o === "dark" && !l,
|
|
1400
1400
|
"text-copy-accent-dark dark:text-copy-light": o === "alt-system" && !l,
|
|
@@ -1404,21 +1404,21 @@ const It = I.forwardRef(
|
|
|
1404
1404
|
De,
|
|
1405
1405
|
{
|
|
1406
1406
|
ref: k,
|
|
1407
|
-
className:
|
|
1407
|
+
className: N,
|
|
1408
1408
|
disabled: t,
|
|
1409
1409
|
type: i,
|
|
1410
1410
|
"aria-label": u || m,
|
|
1411
1411
|
...p,
|
|
1412
1412
|
children: [
|
|
1413
1413
|
d && /* @__PURE__ */ r("span", { className: "pr-2", children: d }),
|
|
1414
|
-
/* @__PURE__ */ r("div", { className:
|
|
1414
|
+
/* @__PURE__ */ r("div", { className: I, children: e }),
|
|
1415
1415
|
b && /* @__PURE__ */ r("span", { className: "pl-2", children: b })
|
|
1416
1416
|
]
|
|
1417
1417
|
}
|
|
1418
1418
|
);
|
|
1419
1419
|
}
|
|
1420
1420
|
);
|
|
1421
|
-
|
|
1421
|
+
xt.displayName = "ButtonIcon";
|
|
1422
1422
|
/*!
|
|
1423
1423
|
@versini/ui-button v1.1.10
|
|
1424
1424
|
© 2024 gizmette.com
|
|
@@ -1432,7 +1432,7 @@ try {
|
|
|
1432
1432
|
});
|
|
1433
1433
|
} catch {
|
|
1434
1434
|
}
|
|
1435
|
-
const Or =
|
|
1435
|
+
const Or = x.forwardRef(
|
|
1436
1436
|
({
|
|
1437
1437
|
children: e,
|
|
1438
1438
|
disabled: t = !1,
|
|
@@ -1450,11 +1450,11 @@ const Or = I.forwardRef(
|
|
|
1450
1450
|
labelLeft: d,
|
|
1451
1451
|
spacing: c,
|
|
1452
1452
|
noBackground: y = !1,
|
|
1453
|
-
align:
|
|
1453
|
+
align: w = "center",
|
|
1454
1454
|
active: p = !1,
|
|
1455
1455
|
...k
|
|
1456
|
-
},
|
|
1457
|
-
const
|
|
1456
|
+
}, N) => {
|
|
1457
|
+
const I = Et({
|
|
1458
1458
|
type: Be,
|
|
1459
1459
|
mode: o,
|
|
1460
1460
|
focusMode: n,
|
|
@@ -1468,7 +1468,7 @@ const Or = I.forwardRef(
|
|
|
1468
1468
|
labelLeft: d,
|
|
1469
1469
|
spacing: c,
|
|
1470
1470
|
noBackground: y,
|
|
1471
|
-
align:
|
|
1471
|
+
align: w
|
|
1472
1472
|
}), M = C({
|
|
1473
1473
|
"text-copy-accent-dark": o === "light" && !l,
|
|
1474
1474
|
"text-copy-light": o === "dark" && !l,
|
|
@@ -1494,8 +1494,8 @@ const Or = I.forwardRef(
|
|
|
1494
1494
|
return /* @__PURE__ */ r("div", { className: _, children: /* @__PURE__ */ v(
|
|
1495
1495
|
De,
|
|
1496
1496
|
{
|
|
1497
|
-
ref:
|
|
1498
|
-
className:
|
|
1497
|
+
ref: N,
|
|
1498
|
+
className: I,
|
|
1499
1499
|
disabled: t,
|
|
1500
1500
|
type: i,
|
|
1501
1501
|
"aria-label": u || m,
|
|
@@ -1643,7 +1643,7 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1643
1643
|
{
|
|
1644
1644
|
className: u.close,
|
|
1645
1645
|
trigger: /* @__PURE__ */ r(
|
|
1646
|
-
|
|
1646
|
+
xt,
|
|
1647
1647
|
{
|
|
1648
1648
|
mode: "dark",
|
|
1649
1649
|
focusMode: "light",
|
|
@@ -1663,25 +1663,25 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1663
1663
|
const t = (e == null ? void 0 : e.plugins) || [], o = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], a = de(), s = de();
|
|
1664
1664
|
return /* @__PURE__ */ v(R, { children: [
|
|
1665
1665
|
/* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
1666
|
-
|
|
1666
|
+
B,
|
|
1667
1667
|
{
|
|
1668
|
-
header:
|
|
1668
|
+
header: T.ABOUT.TITLE_CLIENT,
|
|
1669
1669
|
className: "prose-dark dark:prose-lighter",
|
|
1670
1670
|
children: le(a, {
|
|
1671
|
-
[
|
|
1672
|
-
[
|
|
1671
|
+
[T.ABOUT.VERSION]: "5.4.1",
|
|
1672
|
+
[T.ABOUT.BUILD_TIMESTAMP]: "10/20/2024 03:27 PM EDT"
|
|
1673
1673
|
})
|
|
1674
1674
|
}
|
|
1675
1675
|
) }),
|
|
1676
1676
|
/* @__PURE__ */ r(
|
|
1677
|
-
|
|
1677
|
+
B,
|
|
1678
1678
|
{
|
|
1679
|
-
header:
|
|
1679
|
+
header: T.ABOUT.TITLE_SERVER,
|
|
1680
1680
|
className: "prose-dark dark:prose-lighter",
|
|
1681
1681
|
children: le(s, {
|
|
1682
|
-
[
|
|
1683
|
-
[fe(
|
|
1684
|
-
[fe(
|
|
1682
|
+
[T.ABOUT.VERSION]: o,
|
|
1683
|
+
[fe(T.ABOUT.ENGINE, n.length)]: /* @__PURE__ */ r(R, { children: n.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) }),
|
|
1684
|
+
[fe(T.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ r(R, { children: t.map((i) => /* @__PURE__ */ r("div", { className: "text-right", children: i }, i)) })
|
|
1685
1685
|
})
|
|
1686
1686
|
}
|
|
1687
1687
|
)
|
|
@@ -1690,7 +1690,7 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1690
1690
|
open: e,
|
|
1691
1691
|
onOpenChange: t
|
|
1692
1692
|
}) => {
|
|
1693
|
-
const { serverStats: o } =
|
|
1693
|
+
const { serverStats: o } = z(me);
|
|
1694
1694
|
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Rt, children: /* @__PURE__ */ r(Ur, { stats: o }) });
|
|
1695
1695
|
}, Kr = (e) => Qe(e), Wr = (e) => {
|
|
1696
1696
|
if (!e || e.length === 0)
|
|
@@ -1709,29 +1709,29 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1709
1709
|
isAuthenticated: e,
|
|
1710
1710
|
stats: t
|
|
1711
1711
|
}) => {
|
|
1712
|
-
const { state: o } =
|
|
1712
|
+
const { state: o } = z(me), n = Bt - Number(o == null ? void 0 : o.usage), a = de(), s = de();
|
|
1713
1713
|
return e ? /* @__PURE__ */ v(R, { children: [
|
|
1714
1714
|
o && o.messages.length > 0 && /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
1715
|
-
|
|
1715
|
+
B,
|
|
1716
1716
|
{
|
|
1717
|
-
header:
|
|
1717
|
+
header: T.CURRENT_STATISTICS.TITLE,
|
|
1718
1718
|
className: "prose-dark dark:prose-lighter",
|
|
1719
1719
|
children: le(a, {
|
|
1720
|
-
[
|
|
1721
|
-
[
|
|
1722
|
-
[
|
|
1723
|
-
[
|
|
1720
|
+
[T.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ie,
|
|
1721
|
+
[T.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
|
|
1722
|
+
[T.CURRENT_STATISTICS.REMAINING_TOKENS]: Mt.format(n),
|
|
1723
|
+
[T.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
|
|
1724
1724
|
})
|
|
1725
1725
|
}
|
|
1726
1726
|
) }),
|
|
1727
1727
|
/* @__PURE__ */ r(
|
|
1728
|
-
|
|
1728
|
+
B,
|
|
1729
1729
|
{
|
|
1730
|
-
header:
|
|
1730
|
+
header: T.MAIN_STATISTICS.TITLE,
|
|
1731
1731
|
className: "prose-dark dark:prose-lighter",
|
|
1732
1732
|
children: le(s, {
|
|
1733
|
-
[fe(
|
|
1734
|
-
[
|
|
1733
|
+
[fe(T.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
1734
|
+
[T.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
|
|
1735
1735
|
t.averageProcessingTimes
|
|
1736
1736
|
)
|
|
1737
1737
|
})
|
|
@@ -1761,7 +1761,7 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1761
1761
|
}
|
|
1762
1762
|
})();
|
|
1763
1763
|
}, [e, s, i]), /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: et, children: /* @__PURE__ */ r(Yr, { isAuthenticated: a, stats: o }) });
|
|
1764
|
-
},
|
|
1764
|
+
}, It = ({
|
|
1765
1765
|
showConfirmation: e,
|
|
1766
1766
|
setShowConfirmation: t,
|
|
1767
1767
|
action: o,
|
|
@@ -1847,21 +1847,21 @@ const Qr = async (e, t, o, n) => {
|
|
|
1847
1847
|
dispatch: o,
|
|
1848
1848
|
onOpenChange: n
|
|
1849
1849
|
}) => {
|
|
1850
|
-
var
|
|
1850
|
+
var w;
|
|
1851
1851
|
const { user: a, getAccessToken: s } = te(), i = ce({
|
|
1852
1852
|
id: 0,
|
|
1853
1853
|
timestamp: "",
|
|
1854
1854
|
message: ""
|
|
1855
|
-
}), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } =
|
|
1855
|
+
}), [l, h] = S(!1), u = Jr("(min-width: 480px)"), { state: m, dispatch: g } = z(tt), [, b] = G({
|
|
1856
1856
|
key: $ + Dt,
|
|
1857
1857
|
initialValue: m.sortDirection
|
|
1858
1858
|
}), d = e.data.sort(
|
|
1859
1859
|
(p, k) => {
|
|
1860
1860
|
switch (m.sortedCell) {
|
|
1861
1861
|
case "timestamp":
|
|
1862
|
-
if (m.sortDirection ===
|
|
1862
|
+
if (m.sortDirection === V.ASC)
|
|
1863
1863
|
return new Date(p[m.sortedCell]).getTime() - new Date(k[m.sortedCell]).getTime();
|
|
1864
|
-
if (m.sortDirection ===
|
|
1864
|
+
if (m.sortDirection === V.DESC)
|
|
1865
1865
|
return new Date(k[m.sortedCell]).getTime() - new Date(p[m.sortedCell]).getTime();
|
|
1866
1866
|
break;
|
|
1867
1867
|
default:
|
|
@@ -1872,29 +1872,29 @@ const Qr = async (e, t, o, n) => {
|
|
|
1872
1872
|
), c = (p) => {
|
|
1873
1873
|
switch (m.sortDirection) {
|
|
1874
1874
|
case !1:
|
|
1875
|
-
b(
|
|
1875
|
+
b(V.ASC), g({
|
|
1876
1876
|
type: Ce,
|
|
1877
1877
|
payload: {
|
|
1878
1878
|
sortedCell: p,
|
|
1879
|
-
sortDirection:
|
|
1879
|
+
sortDirection: V.ASC
|
|
1880
1880
|
}
|
|
1881
1881
|
});
|
|
1882
1882
|
break;
|
|
1883
|
-
case
|
|
1884
|
-
b(
|
|
1883
|
+
case V.ASC:
|
|
1884
|
+
b(V.DESC), g({
|
|
1885
1885
|
type: Ce,
|
|
1886
1886
|
payload: {
|
|
1887
1887
|
sortedCell: p,
|
|
1888
|
-
sortDirection:
|
|
1888
|
+
sortDirection: V.DESC
|
|
1889
1889
|
}
|
|
1890
1890
|
});
|
|
1891
1891
|
break;
|
|
1892
1892
|
default:
|
|
1893
|
-
b(
|
|
1893
|
+
b(V.ASC), g({
|
|
1894
1894
|
type: Ce,
|
|
1895
1895
|
payload: {
|
|
1896
1896
|
sortedCell: p,
|
|
1897
|
-
sortDirection:
|
|
1897
|
+
sortDirection: V.ASC
|
|
1898
1898
|
}
|
|
1899
1899
|
});
|
|
1900
1900
|
break;
|
|
@@ -1902,7 +1902,7 @@ const Qr = async (e, t, o, n) => {
|
|
|
1902
1902
|
};
|
|
1903
1903
|
return /* @__PURE__ */ v(R, { children: [
|
|
1904
1904
|
/* @__PURE__ */ v(
|
|
1905
|
-
|
|
1905
|
+
It,
|
|
1906
1906
|
{
|
|
1907
1907
|
showConfirmation: l,
|
|
1908
1908
|
setShowConfirmation: h,
|
|
@@ -1937,15 +1937,15 @@ const Qr = async (e, t, o, n) => {
|
|
|
1937
1937
|
/* @__PURE__ */ v("li", { children: [
|
|
1938
1938
|
"First message:",
|
|
1939
1939
|
" ",
|
|
1940
|
-
/* @__PURE__ */ r("span", { className: "text-lg", children: (
|
|
1940
|
+
/* @__PURE__ */ r("span", { className: "text-lg", children: (w = i.current) == null ? void 0 : w.message })
|
|
1941
1941
|
] })
|
|
1942
1942
|
] })
|
|
1943
1943
|
]
|
|
1944
1944
|
}
|
|
1945
1945
|
),
|
|
1946
1946
|
/* @__PURE__ */ v(Zt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
|
|
1947
|
-
/* @__PURE__ */ r(qt, { children: /* @__PURE__ */ v(
|
|
1948
|
-
u && /* @__PURE__ */ r(
|
|
1947
|
+
/* @__PURE__ */ r(qt, { children: /* @__PURE__ */ v(Ee, { children: [
|
|
1948
|
+
u && /* @__PURE__ */ r(P, { className: "sr-only", children: "Row" }),
|
|
1949
1949
|
/* @__PURE__ */ r(
|
|
1950
1950
|
Xt,
|
|
1951
1951
|
{
|
|
@@ -1959,15 +1959,16 @@ const Qr = async (e, t, o, n) => {
|
|
|
1959
1959
|
children: "Date"
|
|
1960
1960
|
}
|
|
1961
1961
|
),
|
|
1962
|
-
/* @__PURE__ */ r(
|
|
1963
|
-
/* @__PURE__ */ r(
|
|
1962
|
+
/* @__PURE__ */ r(P, { children: "First message" }),
|
|
1963
|
+
/* @__PURE__ */ r(P, { className: "hidden md:table-cell", children: "Model" }),
|
|
1964
|
+
/* @__PURE__ */ r(P, { className: "text-right", children: "Actions" })
|
|
1964
1965
|
] }) }),
|
|
1965
1966
|
/* @__PURE__ */ r(Jt, { children: d.map((p, k) => {
|
|
1966
|
-
var
|
|
1967
|
-
return ((
|
|
1968
|
-
u && /* @__PURE__ */ r(
|
|
1967
|
+
var N;
|
|
1968
|
+
return ((N = p == null ? void 0 : p.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ v(Ee, { children: [
|
|
1969
|
+
u && /* @__PURE__ */ r(P, { children: k + 1 }),
|
|
1969
1970
|
/* @__PURE__ */ r(
|
|
1970
|
-
|
|
1971
|
+
P,
|
|
1971
1972
|
{
|
|
1972
1973
|
component: "th",
|
|
1973
1974
|
scope: "row",
|
|
@@ -1975,8 +1976,17 @@ const Qr = async (e, t, o, n) => {
|
|
|
1975
1976
|
children: p.timestamp
|
|
1976
1977
|
}
|
|
1977
1978
|
),
|
|
1978
|
-
/* @__PURE__ */ r(
|
|
1979
|
-
/* @__PURE__ */ r(
|
|
1979
|
+
/* @__PURE__ */ r(P, { className: "max-w-[100px] text-white sm:max-w-full", children: Xe(p.messages) }),
|
|
1980
|
+
/* @__PURE__ */ r(
|
|
1981
|
+
P,
|
|
1982
|
+
{
|
|
1983
|
+
component: "th",
|
|
1984
|
+
scope: "row",
|
|
1985
|
+
className: "hidden md:table-cell font-medium text-gray-400 sm:whitespace-nowrap",
|
|
1986
|
+
children: p.model
|
|
1987
|
+
}
|
|
1988
|
+
),
|
|
1989
|
+
/* @__PURE__ */ r(P, { children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
|
|
1980
1990
|
/* @__PURE__ */ r(
|
|
1981
1991
|
Y,
|
|
1982
1992
|
{
|
|
@@ -1984,12 +1994,12 @@ const Qr = async (e, t, o, n) => {
|
|
|
1984
1994
|
noBorder: !0,
|
|
1985
1995
|
label: "Restore chat",
|
|
1986
1996
|
onClick: async () => {
|
|
1987
|
-
const
|
|
1997
|
+
const I = await s();
|
|
1988
1998
|
Qr(
|
|
1989
1999
|
p,
|
|
1990
2000
|
o,
|
|
1991
2001
|
n,
|
|
1992
|
-
|
|
2002
|
+
I
|
|
1993
2003
|
);
|
|
1994
2004
|
},
|
|
1995
2005
|
children: /* @__PURE__ */ r(Ao, { className: "h-3 w-3", monotone: !0 })
|
|
@@ -2008,13 +2018,13 @@ const Qr = async (e, t, o, n) => {
|
|
|
2008
2018
|
message: Xe(p.messages)
|
|
2009
2019
|
}, h(!l);
|
|
2010
2020
|
},
|
|
2011
|
-
children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(
|
|
2021
|
+
children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(Eo, { className: "h-3 w-3", monotone: !0 }) })
|
|
2012
2022
|
}
|
|
2013
2023
|
)
|
|
2014
2024
|
] }) })
|
|
2015
|
-
] }, `${
|
|
2025
|
+
] }, `${T.HISTORY.TITLE}-${p.id}-${k}`) : null;
|
|
2016
2026
|
}) }),
|
|
2017
|
-
/* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(
|
|
2027
|
+
/* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ r(Ee, { children: /* @__PURE__ */ r(P, { colSpan: 5, children: /* @__PURE__ */ r("div", { children: fe(
|
|
2018
2028
|
`${e.data.length} chat`,
|
|
2019
2029
|
e.data.length
|
|
2020
2030
|
) }) }) }) })
|
|
@@ -2032,7 +2042,7 @@ const tn = ({
|
|
|
2032
2042
|
onOpenChange: e,
|
|
2033
2043
|
historyData: t
|
|
2034
2044
|
}) => {
|
|
2035
|
-
const { isAuthenticated: o } = te(), n = ce(null), { dispatch: a } =
|
|
2045
|
+
const { isAuthenticated: o } = te(), n = ce(null), { dispatch: a } = z(me), { state: s, dispatch: i } = z(tt), [, l] = G({
|
|
2036
2046
|
key: $ + Ht,
|
|
2037
2047
|
initialValue: s.searchString
|
|
2038
2048
|
}), h = ro(() => t, [t]), [u, m] = S({
|
|
@@ -2062,6 +2072,8 @@ const tn = ({
|
|
|
2062
2072
|
/* @__PURE__ */ r("form", { autoComplete: "off", onSubmit: d, children: /* @__PURE__ */ r(
|
|
2063
2073
|
Ft,
|
|
2064
2074
|
{
|
|
2075
|
+
autoComplete: "off",
|
|
2076
|
+
autoCorrect: "off",
|
|
2065
2077
|
ref: n,
|
|
2066
2078
|
defaultValue: s.searchString,
|
|
2067
2079
|
focusMode: "light",
|
|
@@ -2101,7 +2113,16 @@ const tn = ({
|
|
|
2101
2113
|
open: e,
|
|
2102
2114
|
onOpenChange: t,
|
|
2103
2115
|
historyData: o
|
|
2104
|
-
}) => /* @__PURE__ */ r(
|
|
2116
|
+
}) => /* @__PURE__ */ r(
|
|
2117
|
+
X,
|
|
2118
|
+
{
|
|
2119
|
+
open: e,
|
|
2120
|
+
onOpenChange: t,
|
|
2121
|
+
title: Ut,
|
|
2122
|
+
className: "max-2-xl sm:max-w-4xl xl:max-w-5xl",
|
|
2123
|
+
children: /* @__PURE__ */ r(tn, { onOpenChange: t, historyData: o })
|
|
2124
|
+
}
|
|
2125
|
+
);
|
|
2105
2126
|
/*!
|
|
2106
2127
|
@versini/ui-toggle v1.0.7
|
|
2107
2128
|
© 2024 gizmette.com
|
|
@@ -2231,7 +2252,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2231
2252
|
open: e,
|
|
2232
2253
|
onOpenChange: t
|
|
2233
2254
|
}) => {
|
|
2234
|
-
const { dispatch: o } =
|
|
2255
|
+
const { dispatch: o } = z(me), { getAccessToken: n, user: a } = te(), [s, i] = S({
|
|
2235
2256
|
loaded: !1,
|
|
2236
2257
|
instructions: "",
|
|
2237
2258
|
loadingLocation: !1,
|
|
@@ -2276,9 +2297,9 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2276
2297
|
}
|
|
2277
2298
|
}), p = Date.now() - d;
|
|
2278
2299
|
if (p < 2e3 && await new Promise((k) => setTimeout(k, 2e3 - p)), y.status === 200) {
|
|
2279
|
-
const { city: k, state:
|
|
2280
|
-
i((
|
|
2281
|
-
...
|
|
2300
|
+
const { city: k, state: N, country: I, displayName: M } = y.data, _ = k && N && I ? `${k}, ${N}, ${I}` : M;
|
|
2301
|
+
i((D) => ({
|
|
2302
|
+
...D,
|
|
2282
2303
|
loaded: !0,
|
|
2283
2304
|
location: _,
|
|
2284
2305
|
loadingLocation: !1
|
|
@@ -2295,12 +2316,12 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2295
2316
|
}, g = (d) => {
|
|
2296
2317
|
i((c) => ({
|
|
2297
2318
|
...c,
|
|
2298
|
-
engine: d ?
|
|
2319
|
+
engine: d ? we : pe
|
|
2299
2320
|
}));
|
|
2300
2321
|
}, b = (d) => {
|
|
2301
2322
|
i((c) => ({
|
|
2302
2323
|
...c,
|
|
2303
|
-
engine: d ? pe :
|
|
2324
|
+
engine: d ? pe : we
|
|
2304
2325
|
}));
|
|
2305
2326
|
};
|
|
2306
2327
|
return U(() => {
|
|
@@ -2375,7 +2396,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2375
2396
|
),
|
|
2376
2397
|
children: /* @__PURE__ */ v(R, { children: [
|
|
2377
2398
|
/* @__PURE__ */ v(
|
|
2378
|
-
|
|
2399
|
+
B,
|
|
2379
2400
|
{
|
|
2380
2401
|
header: "AI Engine",
|
|
2381
2402
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2388,7 +2409,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2388
2409
|
label: "OpenAI",
|
|
2389
2410
|
name: "OpenAI",
|
|
2390
2411
|
onChange: g,
|
|
2391
|
-
checked: s.engine ===
|
|
2412
|
+
checked: s.engine === we
|
|
2392
2413
|
}
|
|
2393
2414
|
),
|
|
2394
2415
|
/* @__PURE__ */ r(
|
|
@@ -2402,7 +2423,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2402
2423
|
checked: s.engine === pe
|
|
2403
2424
|
}
|
|
2404
2425
|
),
|
|
2405
|
-
/* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI.
|
|
2426
|
+
/* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI." }),
|
|
2406
2427
|
/* @__PURE__ */ r(
|
|
2407
2428
|
q,
|
|
2408
2429
|
{
|
|
@@ -2419,7 +2440,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2419
2440
|
}
|
|
2420
2441
|
),
|
|
2421
2442
|
/* @__PURE__ */ v(
|
|
2422
|
-
|
|
2443
|
+
B,
|
|
2423
2444
|
{
|
|
2424
2445
|
spacing: { t: 4 },
|
|
2425
2446
|
header: "Custom Instructions",
|
|
@@ -2450,7 +2471,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2450
2471
|
}
|
|
2451
2472
|
),
|
|
2452
2473
|
/* @__PURE__ */ v(
|
|
2453
|
-
|
|
2474
|
+
B,
|
|
2454
2475
|
{
|
|
2455
2476
|
header: "Location",
|
|
2456
2477
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2511,13 +2532,13 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2511
2532
|
}, m = (g) => {
|
|
2512
2533
|
l(g);
|
|
2513
2534
|
};
|
|
2514
|
-
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(
|
|
2515
|
-
/* @__PURE__ */ r("p", { children:
|
|
2535
|
+
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(B, { header: T.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
|
|
2536
|
+
/* @__PURE__ */ r("p", { children: T.TAGS.DESCRIPTION }),
|
|
2516
2537
|
/* @__PURE__ */ r(
|
|
2517
2538
|
q,
|
|
2518
2539
|
{
|
|
2519
2540
|
noBorder: !0,
|
|
2520
|
-
label:
|
|
2541
|
+
label: Te[Ne.SUMMARIZE_ARTICLE].label,
|
|
2521
2542
|
name: ze,
|
|
2522
2543
|
onChange: h,
|
|
2523
2544
|
checked: o
|
|
@@ -2528,7 +2549,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2528
2549
|
{
|
|
2529
2550
|
spacing: { t: 2 },
|
|
2530
2551
|
noBorder: !0,
|
|
2531
|
-
label:
|
|
2552
|
+
label: Te[Ne.PROOFREAD_CONTENT].label,
|
|
2532
2553
|
name: $e,
|
|
2533
2554
|
onChange: u,
|
|
2534
2555
|
checked: a
|
|
@@ -2539,7 +2560,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2539
2560
|
{
|
|
2540
2561
|
spacing: { t: 2 },
|
|
2541
2562
|
noBorder: !0,
|
|
2542
|
-
label:
|
|
2563
|
+
label: Te[Ne.REPHRASE_CONTENT].label,
|
|
2543
2564
|
name: He,
|
|
2544
2565
|
onChange: m,
|
|
2545
2566
|
checked: i
|
|
@@ -2567,21 +2588,21 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2567
2588
|
),
|
|
2568
2589
|
h && /* @__PURE__ */ r(pn, { open: h, onOpenChange: u }),
|
|
2569
2590
|
/* @__PURE__ */ v(
|
|
2570
|
-
|
|
2591
|
+
B,
|
|
2571
2592
|
{
|
|
2572
|
-
header:
|
|
2593
|
+
header: T.PREFERENCES.TITLE,
|
|
2573
2594
|
className: "prose-dark dark:prose-lighter",
|
|
2574
2595
|
children: [
|
|
2575
2596
|
le(m, {
|
|
2576
|
-
[
|
|
2577
|
-
[
|
|
2578
|
-
[
|
|
2597
|
+
[T.PREFERENCES.NAME]: g,
|
|
2598
|
+
[T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
|
|
2599
|
+
[T.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
|
|
2579
2600
|
q,
|
|
2580
2601
|
{
|
|
2581
2602
|
noBorder: !0,
|
|
2582
2603
|
labelHidden: !0,
|
|
2583
|
-
label:
|
|
2584
|
-
name:
|
|
2604
|
+
label: T.PREFERENCES.ENGINE_DETAILS,
|
|
2605
|
+
name: T.PREFERENCES.ENGINE_DETAILS,
|
|
2585
2606
|
onChange: b,
|
|
2586
2607
|
checked: a
|
|
2587
2608
|
}
|
|
@@ -2611,23 +2632,23 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2611
2632
|
}
|
|
2612
2633
|
),
|
|
2613
2634
|
n !== Wt.PASSKEY && /* @__PURE__ */ v(
|
|
2614
|
-
|
|
2635
|
+
B,
|
|
2615
2636
|
{
|
|
2616
2637
|
spacing: { t: 4 },
|
|
2617
2638
|
className: "prose-dark dark:prose-lighter",
|
|
2618
2639
|
header: /* @__PURE__ */ r("h2", { className: "m-0", children: /* @__PURE__ */ v(Me, { columnGap: 3, alignVertical: "center", children: [
|
|
2619
2640
|
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(Fe, { className: "size-8" }) }),
|
|
2620
|
-
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children:
|
|
2641
|
+
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
|
|
2621
2642
|
] }) }),
|
|
2622
2643
|
children: [
|
|
2623
|
-
/* @__PURE__ */ r("p", { children:
|
|
2644
|
+
/* @__PURE__ */ r("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2624
2645
|
/* @__PURE__ */ r(
|
|
2625
2646
|
Y,
|
|
2626
2647
|
{
|
|
2627
2648
|
size: "small",
|
|
2628
2649
|
spacing: { t: 2 },
|
|
2629
2650
|
onClick: o,
|
|
2630
|
-
labelLeft:
|
|
2651
|
+
labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
|
|
2631
2652
|
children: /* @__PURE__ */ r(Fe, { className: "size-5", monotone: !0 })
|
|
2632
2653
|
}
|
|
2633
2654
|
)
|
|
@@ -2638,17 +2659,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2638
2659
|
}, bn = ({
|
|
2639
2660
|
open: e,
|
|
2640
2661
|
onOpenChange: t
|
|
2641
|
-
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }),
|
|
2642
|
-
const { state: e, dispatch: t, serverStats: o } =
|
|
2662
|
+
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }), En = () => {
|
|
2663
|
+
const { state: e, dispatch: t, serverStats: o } = z(me), [n, a] = S((e == null ? void 0 : e.engine) || ie), [s, i] = S(!1), [l, h] = S(!1), [u, m] = S(!1), [g, b] = S(!1), [d, c] = S([]), [y, w] = S(!1), [p, k] = S({
|
|
2643
2664
|
done: !1,
|
|
2644
2665
|
progress: !1,
|
|
2645
2666
|
timestamp: Date.now()
|
|
2646
|
-
}), [
|
|
2667
|
+
}), [N] = G({
|
|
2647
2668
|
key: $ + ot,
|
|
2648
2669
|
initialValue: !1
|
|
2649
|
-
}), { logout:
|
|
2670
|
+
}), { logout: I, getAccessToken: M, user: _ } = te(), D = () => {
|
|
2650
2671
|
i(!s);
|
|
2651
|
-
},
|
|
2672
|
+
}, E = () => {
|
|
2652
2673
|
h(!l);
|
|
2653
2674
|
}, re = () => {
|
|
2654
2675
|
m(!u);
|
|
@@ -2684,17 +2705,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2684
2705
|
}
|
|
2685
2706
|
}
|
|
2686
2707
|
}, ne = () => {
|
|
2687
|
-
|
|
2708
|
+
w(!y);
|
|
2688
2709
|
};
|
|
2689
2710
|
return U(() => {
|
|
2690
2711
|
e && e.engine && e.engine !== n && a(e.engine);
|
|
2691
2712
|
}, [e, n]), /* @__PURE__ */ v(R, { children: [
|
|
2692
2713
|
/* @__PURE__ */ r(
|
|
2693
|
-
|
|
2714
|
+
It,
|
|
2694
2715
|
{
|
|
2695
2716
|
showConfirmation: y,
|
|
2696
|
-
setShowConfirmation:
|
|
2697
|
-
action:
|
|
2717
|
+
setShowConfirmation: w,
|
|
2718
|
+
action: I,
|
|
2698
2719
|
customStrings: {
|
|
2699
2720
|
confirmAction: Ge,
|
|
2700
2721
|
cancelAction: "Cancel",
|
|
@@ -2715,15 +2736,15 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2715
2736
|
),
|
|
2716
2737
|
/* @__PURE__ */ r(jr, { open: g, onOpenChange: b }),
|
|
2717
2738
|
/* @__PURE__ */ v("div", { className: "relative", children: [
|
|
2718
|
-
|
|
2739
|
+
N && o && /* @__PURE__ */ r("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ r(
|
|
2719
2740
|
Se,
|
|
2720
2741
|
{
|
|
2721
2742
|
mode: "dark",
|
|
2722
2743
|
focusMode: "light",
|
|
2723
|
-
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(
|
|
2744
|
+
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(wo, {}) : /* @__PURE__ */ r(So, {}) }),
|
|
2724
2745
|
defaultPlacement: "bottom-start",
|
|
2725
2746
|
children: /* @__PURE__ */ r(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
|
|
2726
|
-
|
|
2747
|
+
wr,
|
|
2727
2748
|
{
|
|
2728
2749
|
size: "small",
|
|
2729
2750
|
mode: "dark",
|
|
@@ -2748,7 +2769,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2748
2769
|
} catch {
|
|
2749
2770
|
}
|
|
2750
2771
|
},
|
|
2751
|
-
children: o && o.engines.map((L) => /* @__PURE__ */ r(
|
|
2772
|
+
children: o && o.engines.map((L) => /* @__PURE__ */ r(Tr, { value: L }, L))
|
|
2752
2773
|
}
|
|
2753
2774
|
) })
|
|
2754
2775
|
}
|
|
@@ -2766,7 +2787,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2766
2787
|
W,
|
|
2767
2788
|
{
|
|
2768
2789
|
label: "Profile",
|
|
2769
|
-
onClick:
|
|
2790
|
+
onClick: D,
|
|
2770
2791
|
icon: /* @__PURE__ */ r(_o, {})
|
|
2771
2792
|
}
|
|
2772
2793
|
),
|
|
@@ -2774,8 +2795,8 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2774
2795
|
W,
|
|
2775
2796
|
{
|
|
2776
2797
|
label: et,
|
|
2777
|
-
onClick:
|
|
2778
|
-
icon: /* @__PURE__ */ r(
|
|
2798
|
+
onClick: E,
|
|
2799
|
+
icon: /* @__PURE__ */ r(No, {})
|
|
2779
2800
|
}
|
|
2780
2801
|
),
|
|
2781
2802
|
/* @__PURE__ */ r(
|
|
@@ -2783,7 +2804,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2783
2804
|
{
|
|
2784
2805
|
label: "History",
|
|
2785
2806
|
onClick: re,
|
|
2786
|
-
icon: /* @__PURE__ */ r(
|
|
2807
|
+
icon: /* @__PURE__ */ r(xo, {})
|
|
2787
2808
|
}
|
|
2788
2809
|
),
|
|
2789
2810
|
/* @__PURE__ */ r(
|
|
@@ -2791,7 +2812,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2791
2812
|
{
|
|
2792
2813
|
label: "About",
|
|
2793
2814
|
onClick: J,
|
|
2794
|
-
icon: /* @__PURE__ */ r(
|
|
2815
|
+
icon: /* @__PURE__ */ r(Io, {})
|
|
2795
2816
|
}
|
|
2796
2817
|
),
|
|
2797
2818
|
e && e.id && !e.isComponent && /* @__PURE__ */ v(R, { children: [
|
|
@@ -2801,7 +2822,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2801
2822
|
{
|
|
2802
2823
|
label: "Log out",
|
|
2803
2824
|
onClick: ne,
|
|
2804
|
-
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(
|
|
2825
|
+
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(To, { monotone: !0 }) })
|
|
2805
2826
|
}
|
|
2806
2827
|
)
|
|
2807
2828
|
] })
|
|
@@ -2812,5 +2833,5 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2812
2833
|
] });
|
|
2813
2834
|
};
|
|
2814
2835
|
export {
|
|
2815
|
-
|
|
2836
|
+
En as default
|
|
2816
2837
|
};
|