@versini/sassysaint 5.3.1 → 5.3.3
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.BsbkcIiP.js → App.x6AGUrQG.js} +3 -3
- package/dist/chunks/{LazyHeader.eROXpLy0.js → LazyHeader.yKgehp34.js} +265 -238
- package/dist/chunks/{LazyMarkdownWithExtra.u8cRarRr.js → LazyMarkdownWithExtra.DzW2bKpK.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.Dx3oqsDG.js → LazyMessageAssistant.CJg56GGS.js} +4 -4
- package/dist/chunks/{index.DcfOXJ8N.js → index.B3_1eKgu.js} +1 -0
- package/dist/chunks/{index.y_5fBKAi.js → index.BmoN5joz.js} +3 -3
- 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 P, CARDS as
|
|
3
|
-
import { serviceCall as H, SERVICE_TYPES as F, E as G, f as
|
|
2
|
+
import { g as O, D as P, 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 Bt, GPT4_MAX_TOKENS as Pt, 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.BmoN5joz.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 B, 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
|
{
|
|
@@ -499,15 +499,15 @@ try {
|
|
|
499
499
|
});
|
|
500
500
|
} catch {
|
|
501
501
|
}
|
|
502
|
-
const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper",
|
|
502
|
+
const Lo = "av-togglegroup", Oo = "av-togglegroup-item-wrapper", Bo = "av-togglegroup-item";
|
|
503
503
|
function Le(e, t = []) {
|
|
504
504
|
let o = [];
|
|
505
505
|
function n(s, i) {
|
|
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);
|
|
@@ -527,9 +527,9 @@ function Le(e, t = []) {
|
|
|
527
527
|
);
|
|
528
528
|
};
|
|
529
529
|
};
|
|
530
|
-
return a.scopeName = e, [n,
|
|
530
|
+
return a.scopeName = e, [n, Po(a, ...t)];
|
|
531
531
|
}
|
|
532
|
-
function
|
|
532
|
+
function Po(...e) {
|
|
533
533
|
const t = e[0];
|
|
534
534
|
if (e.length === 1) return t;
|
|
535
535
|
const o = () => {
|
|
@@ -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(),
|
|
905
|
+
]), yt = mt(), Be = 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 });
|
|
@@ -910,8 +910,8 @@ var oe = "ToggleGroup", [vt, En] = Le(oe, [
|
|
|
910
910
|
return /* @__PURE__ */ r(dr, { ...n, ref: t });
|
|
911
911
|
throw new Error(`Missing prop \`type\` expected on \`${oe}\``);
|
|
912
912
|
});
|
|
913
|
-
|
|
914
|
-
var [kt, Ct] = vt(oe), cr =
|
|
913
|
+
Be.displayName = oe;
|
|
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
|
-
|
|
968
|
-
var [ur, mr] = vt(oe),
|
|
967
|
+
Be.displayName = 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 =
|
|
1024
|
-
const
|
|
1023
|
+
), hr = Be, gr = Tt;
|
|
1024
|
+
const Nt = x.createContext({
|
|
1025
1025
|
size: "medium",
|
|
1026
1026
|
focusMode: "system",
|
|
1027
1027
|
mode: "system"
|
|
@@ -1069,7 +1069,7 @@ const Et = I.createContext({
|
|
|
1069
1069
|
}) => ({
|
|
1070
1070
|
wrapperClass: yr({ mode: t }),
|
|
1071
1071
|
itemClass: C(
|
|
1072
|
-
|
|
1072
|
+
Bo,
|
|
1073
1073
|
"flex items-center justify-center bg-transparent",
|
|
1074
1074
|
"rounded-sm",
|
|
1075
1075
|
"transition duration-200 ease",
|
|
@@ -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
|
-
},
|
|
1158
|
+
}, Pe = "icon", Er = "button", xr = "link", Ir = ({
|
|
1159
1159
|
type: e,
|
|
1160
1160
|
size: t,
|
|
1161
1161
|
labelRight: o,
|
|
@@ -1164,19 +1164,19 @@ 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",
|
|
1177
1177
|
[l]: t === "large"
|
|
1178
1178
|
});
|
|
1179
|
-
case
|
|
1179
|
+
case Pe:
|
|
1180
1180
|
return C("inline-flex items-center", {
|
|
1181
1181
|
"justify-center": a === "center",
|
|
1182
1182
|
"justify-start": a === "left",
|
|
@@ -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,11 +1376,11 @@ 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
|
|
1383
|
-
type:
|
|
1382
|
+
const N = Et({
|
|
1383
|
+
type: Pe,
|
|
1384
1384
|
mode: o,
|
|
1385
1385
|
focusMode: n,
|
|
1386
1386
|
fullWidth: a,
|
|
@@ -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,12 +1450,12 @@ 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
|
|
1458
|
-
type:
|
|
1456
|
+
}, N) => {
|
|
1457
|
+
const I = Et({
|
|
1458
|
+
type: Pe,
|
|
1459
1459
|
mode: o,
|
|
1460
1460
|
focusMode: n,
|
|
1461
1461
|
fullWidth: a,
|
|
@@ -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,
|
|
@@ -1510,7 +1510,7 @@ const Or = I.forwardRef(
|
|
|
1510
1510
|
}
|
|
1511
1511
|
);
|
|
1512
1512
|
Or.displayName = "ButtonSort";
|
|
1513
|
-
const
|
|
1513
|
+
const Br = (e) => {
|
|
1514
1514
|
let t = "";
|
|
1515
1515
|
if (typeof e == "number" || typeof e == "string")
|
|
1516
1516
|
t = "m-" + e;
|
|
@@ -1519,7 +1519,7 @@ const Pr = (e) => {
|
|
|
1519
1519
|
(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(" ");
|
|
1520
1520
|
}
|
|
1521
1521
|
return t;
|
|
1522
|
-
},
|
|
1522
|
+
}, Pr = ({
|
|
1523
1523
|
children: e,
|
|
1524
1524
|
fill: t,
|
|
1525
1525
|
viewBox: o,
|
|
@@ -1531,7 +1531,7 @@ const Pr = (e) => {
|
|
|
1531
1531
|
semantic: h = !1,
|
|
1532
1532
|
...u
|
|
1533
1533
|
}) => {
|
|
1534
|
-
const m =
|
|
1534
|
+
const m = Br(i), g = C(
|
|
1535
1535
|
m,
|
|
1536
1536
|
n || s
|
|
1537
1537
|
);
|
|
@@ -1574,7 +1574,7 @@ const Dr = ({
|
|
|
1574
1574
|
monotone: a,
|
|
1575
1575
|
...s
|
|
1576
1576
|
}) => /* @__PURE__ */ r(
|
|
1577
|
-
|
|
1577
|
+
Pr,
|
|
1578
1578
|
{
|
|
1579
1579
|
defaultViewBox: "0 0 384 512",
|
|
1580
1580
|
defaultClassName: "size-5",
|
|
@@ -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",
|
|
@@ -1665,23 +1665,23 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1665
1665
|
/* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
|
|
1666
1666
|
P,
|
|
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.0",
|
|
1672
|
+
[T.ABOUT.BUILD_TIMESTAMP]: "10/09/2024 08:51 AM EDT"
|
|
1673
1673
|
})
|
|
1674
1674
|
}
|
|
1675
1675
|
) }),
|
|
1676
1676
|
/* @__PURE__ */ r(
|
|
1677
1677
|
P,
|
|
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)
|
|
@@ -1701,7 +1701,7 @@ const se = "panel", ge = "messagebox", Vr = ({
|
|
|
1701
1701
|
return ((n = o == null ? void 0 : o.message) == null ? void 0 : n.role) === Ot && typeof ((a = o == null ? void 0 : o.message) == null ? void 0 : a.processingTime) == "number";
|
|
1702
1702
|
}
|
|
1703
1703
|
).map((o) => o.message.processingTime);
|
|
1704
|
-
return
|
|
1704
|
+
return Bt({
|
|
1705
1705
|
data: t,
|
|
1706
1706
|
formatter: Kr
|
|
1707
1707
|
});
|
|
@@ -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 = Pt - 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
|
P,
|
|
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
|
P,
|
|
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(B, { 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(B, { children: "First message" }),
|
|
1963
|
+
/* @__PURE__ */ r(B, { className: "hidden md:table-cell", children: "Model" }),
|
|
1964
|
+
/* @__PURE__ */ r(B, { 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(B, { children: k + 1 }),
|
|
1969
1970
|
/* @__PURE__ */ r(
|
|
1970
|
-
|
|
1971
|
+
B,
|
|
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(B, { className: "max-w-[100px] text-white sm:max-w-full", children: Xe(p.messages) }),
|
|
1980
|
+
/* @__PURE__ */ r(
|
|
1981
|
+
B,
|
|
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(B, { 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(B, { 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({
|
|
@@ -2101,7 +2111,16 @@ const tn = ({
|
|
|
2101
2111
|
open: e,
|
|
2102
2112
|
onOpenChange: t,
|
|
2103
2113
|
historyData: o
|
|
2104
|
-
}) => /* @__PURE__ */ r(
|
|
2114
|
+
}) => /* @__PURE__ */ r(
|
|
2115
|
+
X,
|
|
2116
|
+
{
|
|
2117
|
+
open: e,
|
|
2118
|
+
onOpenChange: t,
|
|
2119
|
+
title: Ut,
|
|
2120
|
+
className: "max-2-xl sm:max-w-4xl xl:max-w-5xl",
|
|
2121
|
+
children: /* @__PURE__ */ r(tn, { onOpenChange: t, historyData: o })
|
|
2122
|
+
}
|
|
2123
|
+
);
|
|
2105
2124
|
/*!
|
|
2106
2125
|
@versini/ui-toggle v1.0.7
|
|
2107
2126
|
© 2024 gizmette.com
|
|
@@ -2231,7 +2250,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2231
2250
|
open: e,
|
|
2232
2251
|
onOpenChange: t
|
|
2233
2252
|
}) => {
|
|
2234
|
-
const { dispatch: o } =
|
|
2253
|
+
const { dispatch: o } = z(me), { getAccessToken: n, user: a } = te(), [s, i] = S({
|
|
2235
2254
|
loaded: !1,
|
|
2236
2255
|
instructions: "",
|
|
2237
2256
|
loadingLocation: !1,
|
|
@@ -2276,9 +2295,9 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2276
2295
|
}
|
|
2277
2296
|
}), p = Date.now() - d;
|
|
2278
2297
|
if (p < 2e3 && await new Promise((k) => setTimeout(k, 2e3 - p)), y.status === 200) {
|
|
2279
|
-
const { city: k, state:
|
|
2280
|
-
i((
|
|
2281
|
-
...
|
|
2298
|
+
const { city: k, state: N, country: I, displayName: M } = y.data, _ = k && N && I ? `${k}, ${N}, ${I}` : M;
|
|
2299
|
+
i((D) => ({
|
|
2300
|
+
...D,
|
|
2282
2301
|
loaded: !0,
|
|
2283
2302
|
location: _,
|
|
2284
2303
|
loadingLocation: !1
|
|
@@ -2295,12 +2314,12 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2295
2314
|
}, g = (d) => {
|
|
2296
2315
|
i((c) => ({
|
|
2297
2316
|
...c,
|
|
2298
|
-
engine: d ?
|
|
2317
|
+
engine: d ? we : pe
|
|
2299
2318
|
}));
|
|
2300
2319
|
}, b = (d) => {
|
|
2301
2320
|
i((c) => ({
|
|
2302
2321
|
...c,
|
|
2303
|
-
engine: d ? pe :
|
|
2322
|
+
engine: d ? pe : we
|
|
2304
2323
|
}));
|
|
2305
2324
|
};
|
|
2306
2325
|
return U(() => {
|
|
@@ -2339,32 +2358,40 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2339
2358
|
open: e,
|
|
2340
2359
|
onOpenChange: t,
|
|
2341
2360
|
title: "Engine Fine Tuning",
|
|
2342
|
-
footer: /* @__PURE__ */ v(
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2361
|
+
footer: /* @__PURE__ */ v(
|
|
2362
|
+
Me,
|
|
2363
|
+
{
|
|
2364
|
+
columnGap: 2,
|
|
2365
|
+
alignHorizontal: "flex-end",
|
|
2366
|
+
className: "pb-8 sm:pb-0",
|
|
2367
|
+
children: [
|
|
2368
|
+
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
|
|
2369
|
+
Q,
|
|
2370
|
+
{
|
|
2371
|
+
mode: "dark",
|
|
2372
|
+
variant: "secondary",
|
|
2373
|
+
focusMode: "light",
|
|
2374
|
+
onClick: () => {
|
|
2375
|
+
t(!1);
|
|
2376
|
+
},
|
|
2377
|
+
children: "Cancel"
|
|
2378
|
+
}
|
|
2379
|
+
) }),
|
|
2380
|
+
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(
|
|
2381
|
+
Q,
|
|
2382
|
+
{
|
|
2383
|
+
mode: "dark",
|
|
2384
|
+
variant: "danger",
|
|
2385
|
+
focusMode: "light",
|
|
2386
|
+
onClick: async (d) => {
|
|
2387
|
+
t(!1), await u(d);
|
|
2388
|
+
},
|
|
2389
|
+
children: "Save"
|
|
2390
|
+
}
|
|
2391
|
+
) })
|
|
2392
|
+
]
|
|
2393
|
+
}
|
|
2394
|
+
),
|
|
2368
2395
|
children: /* @__PURE__ */ v(R, { children: [
|
|
2369
2396
|
/* @__PURE__ */ v(
|
|
2370
2397
|
P,
|
|
@@ -2380,7 +2407,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2380
2407
|
label: "OpenAI",
|
|
2381
2408
|
name: "OpenAI",
|
|
2382
2409
|
onChange: g,
|
|
2383
|
-
checked: s.engine ===
|
|
2410
|
+
checked: s.engine === we
|
|
2384
2411
|
}
|
|
2385
2412
|
),
|
|
2386
2413
|
/* @__PURE__ */ r(
|
|
@@ -2394,7 +2421,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2394
2421
|
checked: s.engine === pe
|
|
2395
2422
|
}
|
|
2396
2423
|
),
|
|
2397
|
-
/* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI.
|
|
2424
|
+
/* @__PURE__ */ r("p", { className: "text-xs", children: "NOTE: Anthropic is currently in beta and may not be as accurate as OpenAI." }),
|
|
2398
2425
|
/* @__PURE__ */ r(
|
|
2399
2426
|
q,
|
|
2400
2427
|
{
|
|
@@ -2503,13 +2530,13 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2503
2530
|
}, m = (g) => {
|
|
2504
2531
|
l(g);
|
|
2505
2532
|
};
|
|
2506
|
-
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(P, { header:
|
|
2507
|
-
/* @__PURE__ */ r("p", { children:
|
|
2533
|
+
return /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ v(P, { header: T.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
|
|
2534
|
+
/* @__PURE__ */ r("p", { children: T.TAGS.DESCRIPTION }),
|
|
2508
2535
|
/* @__PURE__ */ r(
|
|
2509
2536
|
q,
|
|
2510
2537
|
{
|
|
2511
2538
|
noBorder: !0,
|
|
2512
|
-
label:
|
|
2539
|
+
label: Te[Ne.SUMMARIZE_ARTICLE].label,
|
|
2513
2540
|
name: ze,
|
|
2514
2541
|
onChange: h,
|
|
2515
2542
|
checked: o
|
|
@@ -2520,7 +2547,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2520
2547
|
{
|
|
2521
2548
|
spacing: { t: 2 },
|
|
2522
2549
|
noBorder: !0,
|
|
2523
|
-
label:
|
|
2550
|
+
label: Te[Ne.PROOFREAD_CONTENT].label,
|
|
2524
2551
|
name: $e,
|
|
2525
2552
|
onChange: u,
|
|
2526
2553
|
checked: a
|
|
@@ -2531,7 +2558,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2531
2558
|
{
|
|
2532
2559
|
spacing: { t: 2 },
|
|
2533
2560
|
noBorder: !0,
|
|
2534
|
-
label:
|
|
2561
|
+
label: Te[Ne.REPHRASE_CONTENT].label,
|
|
2535
2562
|
name: He,
|
|
2536
2563
|
onChange: m,
|
|
2537
2564
|
checked: i
|
|
@@ -2561,19 +2588,19 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2561
2588
|
/* @__PURE__ */ v(
|
|
2562
2589
|
P,
|
|
2563
2590
|
{
|
|
2564
|
-
header:
|
|
2591
|
+
header: T.PREFERENCES.TITLE,
|
|
2565
2592
|
className: "prose-dark dark:prose-lighter",
|
|
2566
2593
|
children: [
|
|
2567
2594
|
le(m, {
|
|
2568
|
-
[
|
|
2569
|
-
[
|
|
2570
|
-
[
|
|
2595
|
+
[T.PREFERENCES.NAME]: g,
|
|
2596
|
+
[T.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
|
|
2597
|
+
[T.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
|
|
2571
2598
|
q,
|
|
2572
2599
|
{
|
|
2573
2600
|
noBorder: !0,
|
|
2574
2601
|
labelHidden: !0,
|
|
2575
|
-
label:
|
|
2576
|
-
name:
|
|
2602
|
+
label: T.PREFERENCES.ENGINE_DETAILS,
|
|
2603
|
+
name: T.PREFERENCES.ENGINE_DETAILS,
|
|
2577
2604
|
onChange: b,
|
|
2578
2605
|
checked: a
|
|
2579
2606
|
}
|
|
@@ -2609,17 +2636,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2609
2636
|
className: "prose-dark dark:prose-lighter",
|
|
2610
2637
|
header: /* @__PURE__ */ r("h2", { className: "m-0", children: /* @__PURE__ */ v(Me, { columnGap: 3, alignVertical: "center", children: [
|
|
2611
2638
|
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r(Fe, { className: "size-8" }) }),
|
|
2612
|
-
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children:
|
|
2639
|
+
/* @__PURE__ */ r(ee, { children: /* @__PURE__ */ r("div", { children: T.PREFERENCES.PASSKEY_TITLE }) })
|
|
2613
2640
|
] }) }),
|
|
2614
2641
|
children: [
|
|
2615
|
-
/* @__PURE__ */ r("p", { children:
|
|
2642
|
+
/* @__PURE__ */ r("p", { children: T.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2616
2643
|
/* @__PURE__ */ r(
|
|
2617
2644
|
Y,
|
|
2618
2645
|
{
|
|
2619
2646
|
size: "small",
|
|
2620
2647
|
spacing: { t: 2 },
|
|
2621
2648
|
onClick: o,
|
|
2622
|
-
labelLeft:
|
|
2649
|
+
labelLeft: T.PREFERENCES.PASSKEY_BUTTON,
|
|
2623
2650
|
children: /* @__PURE__ */ r(Fe, { className: "size-5", monotone: !0 })
|
|
2624
2651
|
}
|
|
2625
2652
|
)
|
|
@@ -2630,17 +2657,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2630
2657
|
}, bn = ({
|
|
2631
2658
|
open: e,
|
|
2632
2659
|
onOpenChange: t
|
|
2633
|
-
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }),
|
|
2634
|
-
const { state: e, dispatch: t, serverStats: o } =
|
|
2660
|
+
}) => /* @__PURE__ */ r(X, { open: e, onOpenChange: t, title: Yt, children: /* @__PURE__ */ r(fn, {}) }), En = () => {
|
|
2661
|
+
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({
|
|
2635
2662
|
done: !1,
|
|
2636
2663
|
progress: !1,
|
|
2637
2664
|
timestamp: Date.now()
|
|
2638
|
-
}), [
|
|
2665
|
+
}), [N] = G({
|
|
2639
2666
|
key: $ + ot,
|
|
2640
2667
|
initialValue: !1
|
|
2641
|
-
}), { logout:
|
|
2668
|
+
}), { logout: I, getAccessToken: M, user: _ } = te(), D = () => {
|
|
2642
2669
|
i(!s);
|
|
2643
|
-
},
|
|
2670
|
+
}, E = () => {
|
|
2644
2671
|
h(!l);
|
|
2645
2672
|
}, re = () => {
|
|
2646
2673
|
m(!u);
|
|
@@ -2676,17 +2703,17 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2676
2703
|
}
|
|
2677
2704
|
}
|
|
2678
2705
|
}, ne = () => {
|
|
2679
|
-
|
|
2706
|
+
w(!y);
|
|
2680
2707
|
};
|
|
2681
2708
|
return U(() => {
|
|
2682
2709
|
e && e.engine && e.engine !== n && a(e.engine);
|
|
2683
2710
|
}, [e, n]), /* @__PURE__ */ v(R, { children: [
|
|
2684
2711
|
/* @__PURE__ */ r(
|
|
2685
|
-
|
|
2712
|
+
It,
|
|
2686
2713
|
{
|
|
2687
2714
|
showConfirmation: y,
|
|
2688
|
-
setShowConfirmation:
|
|
2689
|
-
action:
|
|
2715
|
+
setShowConfirmation: w,
|
|
2716
|
+
action: I,
|
|
2690
2717
|
customStrings: {
|
|
2691
2718
|
confirmAction: Ge,
|
|
2692
2719
|
cancelAction: "Cancel",
|
|
@@ -2707,15 +2734,15 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2707
2734
|
),
|
|
2708
2735
|
/* @__PURE__ */ r(jr, { open: g, onOpenChange: b }),
|
|
2709
2736
|
/* @__PURE__ */ v("div", { className: "relative", children: [
|
|
2710
|
-
|
|
2737
|
+
N && o && /* @__PURE__ */ r("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ r(
|
|
2711
2738
|
Se,
|
|
2712
2739
|
{
|
|
2713
2740
|
mode: "dark",
|
|
2714
2741
|
focusMode: "light",
|
|
2715
|
-
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(
|
|
2742
|
+
trigger: /* @__PURE__ */ r(Y, { children: e && e.engine === pe ? /* @__PURE__ */ r(wo, {}) : /* @__PURE__ */ r(So, {}) }),
|
|
2716
2743
|
defaultPlacement: "bottom-start",
|
|
2717
2744
|
children: /* @__PURE__ */ r(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
|
|
2718
|
-
|
|
2745
|
+
wr,
|
|
2719
2746
|
{
|
|
2720
2747
|
size: "small",
|
|
2721
2748
|
mode: "dark",
|
|
@@ -2740,7 +2767,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2740
2767
|
} catch {
|
|
2741
2768
|
}
|
|
2742
2769
|
},
|
|
2743
|
-
children: o && o.engines.map((L) => /* @__PURE__ */ r(
|
|
2770
|
+
children: o && o.engines.map((L) => /* @__PURE__ */ r(Tr, { value: L }, L))
|
|
2744
2771
|
}
|
|
2745
2772
|
) })
|
|
2746
2773
|
}
|
|
@@ -2758,7 +2785,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2758
2785
|
W,
|
|
2759
2786
|
{
|
|
2760
2787
|
label: "Profile",
|
|
2761
|
-
onClick:
|
|
2788
|
+
onClick: D,
|
|
2762
2789
|
icon: /* @__PURE__ */ r(_o, {})
|
|
2763
2790
|
}
|
|
2764
2791
|
),
|
|
@@ -2766,8 +2793,8 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2766
2793
|
W,
|
|
2767
2794
|
{
|
|
2768
2795
|
label: et,
|
|
2769
|
-
onClick:
|
|
2770
|
-
icon: /* @__PURE__ */ r(
|
|
2796
|
+
onClick: E,
|
|
2797
|
+
icon: /* @__PURE__ */ r(No, {})
|
|
2771
2798
|
}
|
|
2772
2799
|
),
|
|
2773
2800
|
/* @__PURE__ */ r(
|
|
@@ -2775,7 +2802,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2775
2802
|
{
|
|
2776
2803
|
label: "History",
|
|
2777
2804
|
onClick: re,
|
|
2778
|
-
icon: /* @__PURE__ */ r(
|
|
2805
|
+
icon: /* @__PURE__ */ r(xo, {})
|
|
2779
2806
|
}
|
|
2780
2807
|
),
|
|
2781
2808
|
/* @__PURE__ */ r(
|
|
@@ -2783,7 +2810,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2783
2810
|
{
|
|
2784
2811
|
label: "About",
|
|
2785
2812
|
onClick: J,
|
|
2786
|
-
icon: /* @__PURE__ */ r(
|
|
2813
|
+
icon: /* @__PURE__ */ r(Io, {})
|
|
2787
2814
|
}
|
|
2788
2815
|
),
|
|
2789
2816
|
e && e.id && !e.isComponent && /* @__PURE__ */ v(R, { children: [
|
|
@@ -2793,7 +2820,7 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2793
2820
|
{
|
|
2794
2821
|
label: "Log out",
|
|
2795
2822
|
onClick: ne,
|
|
2796
|
-
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(
|
|
2823
|
+
icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(To, { monotone: !0 }) })
|
|
2797
2824
|
}
|
|
2798
2825
|
)
|
|
2799
2826
|
] })
|
|
@@ -2804,5 +2831,5 @@ const rn = "av-toggle", nn = (e) => {
|
|
|
2804
2831
|
] });
|
|
2805
2832
|
};
|
|
2806
2833
|
export {
|
|
2807
|
-
|
|
2834
|
+
En as default
|
|
2808
2835
|
};
|