@versini/sassysaint 5.4.11 → 5.4.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{LazyApp.C5Vf8cqv.js → LazyApp.DNOGYuzJ.js} +219 -219
- package/dist/chunks/{LazyHeader.DxU2fU2U.js → LazyHeader.oCAx75zT.js} +408 -407
- package/dist/chunks/{LazyMarkdownWithExtra.7DWWF22e.js → LazyMarkdownWithExtra.F2tZ4gOI.js} +13 -13
- package/dist/chunks/{LazyMessageAssistant.Dtgl0qF0.js → LazyMessageAssistant.L4L_m5nw.js} +7 -7
- package/dist/chunks/{index.C-b6HJz9.js → index.Ck3nAtox.js} +142 -142
- package/dist/chunks/{index.BawXN3eR.js → index.CxzLMGVa.js} +148 -149
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
3
|
-
import { serviceCall as D, SERVICE_TYPES as
|
|
2
|
+
import { g as O, R as L, CARDS as N, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as z, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Te, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, z as $e, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.CxzLMGVa.js";
|
|
3
|
+
import { serviceCall as D, SERVICE_TYPES as V, E as ce, ce as ar, se as nr, he as we, be as sr, oe as $, ge as ir, ne as cr, f as U, Le as He, h as Ge } from "./index.Ck3nAtox.js";
|
|
4
4
|
import * as f from "react";
|
|
5
|
-
import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as
|
|
5
|
+
import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as P, useEffect as H } from "react";
|
|
6
6
|
import k from "clsx";
|
|
7
|
-
import { useFloatingTree as at, useFloatingNodeId as
|
|
7
|
+
import { useFloatingTree as at, useFloatingNodeId as lr, useListItem as nt, useFloating as st, offset as dr, flip as ur, shift as mr, autoUpdate as hr, useClick as it, useRole as ct, useDismiss as lt, useListNavigation as gr, useTypeahead as fr, useInteractions as dt, useMergeRefs as Me, FloatingNode as pr, FloatingList as br, FloatingPortal as ut, FloatingFocusManager as mt, FloatingTree as vr, FloatingOverlay as yr } from "@floating-ui/react";
|
|
8
8
|
const ht = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
@@ -12,10 +12,10 @@ const ht = ({
|
|
|
12
12
|
monotone: a,
|
|
13
13
|
...n
|
|
14
14
|
}) => /* @__PURE__ */ o(
|
|
15
|
-
|
|
15
|
+
O,
|
|
16
16
|
{
|
|
17
17
|
defaultViewBox: "0 0 256 176",
|
|
18
|
-
|
|
18
|
+
size: "size-5",
|
|
19
19
|
viewBox: t,
|
|
20
20
|
className: e,
|
|
21
21
|
title: r || "Anthropic",
|
|
@@ -29,10 +29,10 @@ const ht = ({
|
|
|
29
29
|
monotone: a,
|
|
30
30
|
...n
|
|
31
31
|
}) => /* @__PURE__ */ y(
|
|
32
|
-
|
|
32
|
+
O,
|
|
33
33
|
{
|
|
34
34
|
defaultViewBox: "0 0 512 512",
|
|
35
|
-
|
|
35
|
+
size: "size-5",
|
|
36
36
|
viewBox: t,
|
|
37
37
|
className: e,
|
|
38
38
|
title: r || "Back",
|
|
@@ -55,10 +55,10 @@ const ht = ({
|
|
|
55
55
|
monotone: a,
|
|
56
56
|
...n
|
|
57
57
|
}) => /* @__PURE__ */ y(
|
|
58
|
-
|
|
58
|
+
O,
|
|
59
59
|
{
|
|
60
60
|
defaultViewBox: "0 0 448 512",
|
|
61
|
-
|
|
61
|
+
size: "size-5",
|
|
62
62
|
viewBox: t,
|
|
63
63
|
className: e,
|
|
64
64
|
title: r || "Chart",
|
|
@@ -74,17 +74,17 @@ const ht = ({
|
|
|
74
74
|
/* @__PURE__ */ o("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" })
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
|
-
),
|
|
77
|
+
), Tr = ({
|
|
78
78
|
className: e,
|
|
79
79
|
viewBox: t,
|
|
80
80
|
title: r,
|
|
81
81
|
monotone: a,
|
|
82
82
|
...n
|
|
83
83
|
}) => /* @__PURE__ */ y(
|
|
84
|
-
|
|
84
|
+
O,
|
|
85
85
|
{
|
|
86
86
|
defaultViewBox: "0 0 448 512",
|
|
87
|
-
|
|
87
|
+
size: "size-5",
|
|
88
88
|
viewBox: t,
|
|
89
89
|
className: e,
|
|
90
90
|
title: r || "Delete",
|
|
@@ -107,10 +107,10 @@ const ht = ({
|
|
|
107
107
|
monotone: a,
|
|
108
108
|
...n
|
|
109
109
|
}) => /* @__PURE__ */ y(
|
|
110
|
-
|
|
110
|
+
O,
|
|
111
111
|
{
|
|
112
112
|
defaultViewBox: "0 0 512 512",
|
|
113
|
-
|
|
113
|
+
size: "size-5",
|
|
114
114
|
viewBox: t,
|
|
115
115
|
className: e,
|
|
116
116
|
title: r || "History",
|
|
@@ -126,17 +126,17 @@ const ht = ({
|
|
|
126
126
|
/* @__PURE__ */ o("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" })
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
|
-
),
|
|
129
|
+
), Nr = ({
|
|
130
130
|
className: e,
|
|
131
131
|
viewBox: t,
|
|
132
132
|
title: r,
|
|
133
133
|
monotone: a,
|
|
134
134
|
...n
|
|
135
135
|
}) => /* @__PURE__ */ y(
|
|
136
|
-
|
|
136
|
+
O,
|
|
137
137
|
{
|
|
138
138
|
defaultViewBox: "0 0 512 512",
|
|
139
|
-
|
|
139
|
+
size: "size-5",
|
|
140
140
|
viewBox: t,
|
|
141
141
|
className: e,
|
|
142
142
|
title: r || "Info",
|
|
@@ -159,10 +159,10 @@ const ht = ({
|
|
|
159
159
|
monotone: a,
|
|
160
160
|
...n
|
|
161
161
|
}) => /* @__PURE__ */ o(
|
|
162
|
-
|
|
162
|
+
O,
|
|
163
163
|
{
|
|
164
164
|
defaultViewBox: "0 0 24 24",
|
|
165
|
-
|
|
165
|
+
size: "size-5",
|
|
166
166
|
viewBox: t,
|
|
167
167
|
className: e,
|
|
168
168
|
title: r || "OpenAI",
|
|
@@ -182,10 +182,10 @@ const ht = ({
|
|
|
182
182
|
monotone: a,
|
|
183
183
|
...n
|
|
184
184
|
}) => /* @__PURE__ */ y(
|
|
185
|
-
|
|
185
|
+
O,
|
|
186
186
|
{
|
|
187
187
|
defaultViewBox: "0 0 576 512",
|
|
188
|
-
|
|
188
|
+
size: "size-5",
|
|
189
189
|
viewBox: t,
|
|
190
190
|
className: e,
|
|
191
191
|
title: r || "Profile",
|
|
@@ -208,10 +208,10 @@ const ht = ({
|
|
|
208
208
|
monotone: a,
|
|
209
209
|
...n
|
|
210
210
|
}) => /* @__PURE__ */ y(
|
|
211
|
-
|
|
211
|
+
O,
|
|
212
212
|
{
|
|
213
213
|
defaultViewBox: "0 0 512 512",
|
|
214
|
-
|
|
214
|
+
size: "size-5",
|
|
215
215
|
viewBox: t,
|
|
216
216
|
className: e,
|
|
217
217
|
title: r || "Restore",
|
|
@@ -234,10 +234,10 @@ const ht = ({
|
|
|
234
234
|
monotone: a,
|
|
235
235
|
...n
|
|
236
236
|
}) => /* @__PURE__ */ o(
|
|
237
|
-
|
|
237
|
+
O,
|
|
238
238
|
{
|
|
239
239
|
defaultViewBox: "0 0 448 512",
|
|
240
|
-
|
|
240
|
+
size: "size-5",
|
|
241
241
|
viewBox: t,
|
|
242
242
|
className: e,
|
|
243
243
|
title: r || "Settings",
|
|
@@ -277,11 +277,11 @@ const Ee = f.createContext({
|
|
|
277
277
|
onOpenChange: n,
|
|
278
278
|
mode: i = "system",
|
|
279
279
|
focusMode: s = "system",
|
|
280
|
-
...
|
|
280
|
+
...c
|
|
281
281
|
}, g) => {
|
|
282
|
-
const [
|
|
282
|
+
const [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), T = P(Ee), C = at(), w = lr(), S = nt(), { floatingStyles: A, refs: M, context: R } = st({
|
|
283
283
|
nodeId: w,
|
|
284
|
-
open:
|
|
284
|
+
open: l,
|
|
285
285
|
onOpenChange: (J) => {
|
|
286
286
|
u(J), n == null || n(J);
|
|
287
287
|
},
|
|
@@ -293,7 +293,7 @@ const Ee = f.createContext({
|
|
|
293
293
|
event: "mousedown",
|
|
294
294
|
toggle: !0,
|
|
295
295
|
ignoreMouse: !1
|
|
296
|
-
}),
|
|
296
|
+
}), le = ct(R, { role: "menu" }), de = lt(R, { bubbles: !0 }), X = gr(R, {
|
|
297
297
|
listRef: d,
|
|
298
298
|
activeIndex: h,
|
|
299
299
|
nested: !1,
|
|
@@ -301,23 +301,23 @@ const Ee = f.createContext({
|
|
|
301
301
|
loop: !0
|
|
302
302
|
}), ye = fr(R, {
|
|
303
303
|
listRef: v,
|
|
304
|
-
onMatch:
|
|
304
|
+
onMatch: l ? m : void 0,
|
|
305
305
|
activeIndex: h
|
|
306
|
-
}), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps:
|
|
306
|
+
}), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: B } = dt([x, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Ot = De ? {
|
|
307
307
|
noInternalClick: De,
|
|
308
308
|
focusMode: s,
|
|
309
309
|
mode: i
|
|
310
|
-
} : {},
|
|
310
|
+
} : {}, Bt = E.cloneElement(
|
|
311
311
|
e,
|
|
312
312
|
{
|
|
313
|
-
...
|
|
313
|
+
...Ot,
|
|
314
314
|
"aria-label": r,
|
|
315
|
-
"data-open":
|
|
315
|
+
"data-open": l ? "" : void 0,
|
|
316
316
|
"data-focus-inside": p ? "" : void 0,
|
|
317
317
|
ref: Me([M.setReference, S.ref, g]),
|
|
318
318
|
...ke(
|
|
319
|
-
|
|
320
|
-
...
|
|
319
|
+
T.getItemProps({
|
|
320
|
+
...c
|
|
321
321
|
})
|
|
322
322
|
)
|
|
323
323
|
}
|
|
@@ -332,20 +332,20 @@ const Ee = f.createContext({
|
|
|
332
332
|
C.events.off("click", J);
|
|
333
333
|
};
|
|
334
334
|
}, [C, n]), H(() => {
|
|
335
|
-
|
|
336
|
-
}, [C,
|
|
337
|
-
|
|
335
|
+
l && C && C.events.emit("menuopen", { nodeId: w });
|
|
336
|
+
}, [C, l, w]), /* @__PURE__ */ y(pr, { id: w, children: [
|
|
337
|
+
Bt,
|
|
338
338
|
/* @__PURE__ */ o(
|
|
339
339
|
Ee.Provider,
|
|
340
340
|
{
|
|
341
341
|
value: {
|
|
342
342
|
activeIndex: h,
|
|
343
343
|
setActiveIndex: m,
|
|
344
|
-
getItemProps:
|
|
344
|
+
getItemProps: B,
|
|
345
345
|
setHasFocusInside: b,
|
|
346
|
-
isOpen:
|
|
346
|
+
isOpen: l
|
|
347
347
|
},
|
|
348
|
-
children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children:
|
|
348
|
+
children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children: l && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
|
|
349
349
|
mt,
|
|
350
350
|
{
|
|
351
351
|
context: R,
|
|
@@ -380,14 +380,14 @@ const G = f.forwardRef(
|
|
|
380
380
|
children: n,
|
|
381
381
|
ignoreClick: i = !1,
|
|
382
382
|
...s
|
|
383
|
-
},
|
|
383
|
+
}, c) => {
|
|
384
384
|
let g = "";
|
|
385
|
-
const
|
|
385
|
+
const l = f.useContext(Ee), u = nt({ label: t ? null : e }), p = at(), b = Me([u.ref, c]);
|
|
386
386
|
return a && n ? /* @__PURE__ */ o(
|
|
387
387
|
"div",
|
|
388
388
|
{
|
|
389
389
|
role: "menuitem",
|
|
390
|
-
...
|
|
390
|
+
...l.getItemProps({
|
|
391
391
|
onClick(h) {
|
|
392
392
|
var m;
|
|
393
393
|
i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
|
|
@@ -404,14 +404,14 @@ const G = f.forwardRef(
|
|
|
404
404
|
className: "m-0 flex w-full rounded-md border border-transparent bg-none px-2 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
|
|
405
405
|
tabIndex: 0,
|
|
406
406
|
disabled: t,
|
|
407
|
-
...
|
|
407
|
+
...l.getItemProps({
|
|
408
408
|
onClick(h) {
|
|
409
409
|
var m;
|
|
410
410
|
i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
|
|
411
411
|
},
|
|
412
412
|
onFocus(h) {
|
|
413
413
|
var m;
|
|
414
|
-
(m = s.onFocus) == null || m.call(s, h),
|
|
414
|
+
(m = s.onFocus) == null || m.call(s, h), l.setHasFocusInside(!0);
|
|
415
415
|
}
|
|
416
416
|
}),
|
|
417
417
|
children: [
|
|
@@ -428,59 +428,59 @@ const Sr = ({ className: e, ...t }) => {
|
|
|
428
428
|
return /* @__PURE__ */ o("div", { className: r, ...t });
|
|
429
429
|
};
|
|
430
430
|
/*!
|
|
431
|
-
@versini/ui-menu v2.0.
|
|
431
|
+
@versini/ui-menu v2.0.5
|
|
432
432
|
© 2024 gizmette.com
|
|
433
433
|
*/
|
|
434
434
|
try {
|
|
435
435
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
436
|
-
version: "2.0.
|
|
437
|
-
buildTime: "12/30/2024
|
|
436
|
+
version: "2.0.5",
|
|
437
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
438
438
|
homepage: "https://github.com/aversini/ui-components",
|
|
439
439
|
license: "MIT"
|
|
440
440
|
});
|
|
441
441
|
} catch {
|
|
442
442
|
}
|
|
443
443
|
/*!
|
|
444
|
-
@versini/ui-togglegroup v2.0.
|
|
444
|
+
@versini/ui-togglegroup v2.0.4
|
|
445
445
|
© 2024 gizmette.com
|
|
446
446
|
*/
|
|
447
447
|
try {
|
|
448
448
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
449
|
-
version: "2.0.
|
|
450
|
-
buildTime: "12/30/2024
|
|
449
|
+
version: "2.0.4",
|
|
450
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
451
451
|
homepage: "https://github.com/aversini/ui-components",
|
|
452
452
|
license: "MIT"
|
|
453
453
|
});
|
|
454
454
|
} catch {
|
|
455
455
|
}
|
|
456
456
|
const _r = "av-togglegroup", Rr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
|
|
457
|
-
function
|
|
457
|
+
function ze(e, t = []) {
|
|
458
458
|
let r = [];
|
|
459
459
|
function a(i, s) {
|
|
460
|
-
const
|
|
460
|
+
const c = f.createContext(s), g = r.length;
|
|
461
461
|
r = [...r, s];
|
|
462
|
-
const
|
|
462
|
+
const l = (p) => {
|
|
463
463
|
var b;
|
|
464
|
-
const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) ||
|
|
465
|
-
return /* @__PURE__ */ o(v.Provider, { value:
|
|
464
|
+
const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || c, T = f.useMemo(() => d, Object.values(d));
|
|
465
|
+
return /* @__PURE__ */ o(v.Provider, { value: T, children: m });
|
|
466
466
|
};
|
|
467
|
-
|
|
467
|
+
l.displayName = i + "Provider";
|
|
468
468
|
function u(p, b) {
|
|
469
469
|
var h;
|
|
470
|
-
const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) ||
|
|
470
|
+
const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) || c, d = f.useContext(m);
|
|
471
471
|
if (d) return d;
|
|
472
472
|
if (s !== void 0) return s;
|
|
473
473
|
throw new Error(`\`${p}\` must be used within \`${i}\``);
|
|
474
474
|
}
|
|
475
|
-
return [
|
|
475
|
+
return [l, u];
|
|
476
476
|
}
|
|
477
477
|
const n = () => {
|
|
478
478
|
const i = r.map((s) => f.createContext(s));
|
|
479
479
|
return function(s) {
|
|
480
|
-
const
|
|
480
|
+
const c = (s == null ? void 0 : s[e]) || i;
|
|
481
481
|
return f.useMemo(
|
|
482
|
-
() => ({ [`__scope${e}`]: { ...s, [e]:
|
|
483
|
-
[s,
|
|
482
|
+
() => ({ [`__scope${e}`]: { ...s, [e]: c } }),
|
|
483
|
+
[s, c]
|
|
484
484
|
);
|
|
485
485
|
};
|
|
486
486
|
};
|
|
@@ -495,9 +495,9 @@ function Mr(...e) {
|
|
|
495
495
|
scopeName: n.scopeName
|
|
496
496
|
}));
|
|
497
497
|
return function(n) {
|
|
498
|
-
const i = a.reduce((s, { useScope:
|
|
499
|
-
const
|
|
500
|
-
return { ...s, ...
|
|
498
|
+
const i = a.reduce((s, { useScope: c, scopeName: g }) => {
|
|
499
|
+
const l = c(n)[`__scope${g}`];
|
|
500
|
+
return { ...s, ...l };
|
|
501
501
|
}, {});
|
|
502
502
|
return f.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
503
503
|
};
|
|
@@ -529,10 +529,10 @@ function Se(...e) {
|
|
|
529
529
|
return f.useCallback(pt(...e), e);
|
|
530
530
|
}
|
|
531
531
|
var ge = f.forwardRef((e, t) => {
|
|
532
|
-
const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(
|
|
532
|
+
const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Lr);
|
|
533
533
|
if (i) {
|
|
534
|
-
const s = i.props.children,
|
|
535
|
-
return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0,
|
|
534
|
+
const s = i.props.children, c = n.map((g) => g === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : g);
|
|
535
|
+
return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
|
|
536
536
|
}
|
|
537
537
|
return /* @__PURE__ */ o(_e, { ...a, ref: t, children: r });
|
|
538
538
|
});
|
|
@@ -540,9 +540,9 @@ ge.displayName = "Slot";
|
|
|
540
540
|
var _e = f.forwardRef((e, t) => {
|
|
541
541
|
const { children: r, ...a } = e;
|
|
542
542
|
if (f.isValidElement(r)) {
|
|
543
|
-
const n =
|
|
543
|
+
const n = Or(r);
|
|
544
544
|
return f.cloneElement(r, {
|
|
545
|
-
...
|
|
545
|
+
...Pr(a, r.props),
|
|
546
546
|
// @ts-ignore
|
|
547
547
|
ref: t ? pt(t, n) : n
|
|
548
548
|
});
|
|
@@ -550,11 +550,11 @@ var _e = f.forwardRef((e, t) => {
|
|
|
550
550
|
return f.Children.count(r) > 1 ? f.Children.only(null) : null;
|
|
551
551
|
});
|
|
552
552
|
_e.displayName = "SlotClone";
|
|
553
|
-
var
|
|
554
|
-
function
|
|
555
|
-
return f.isValidElement(e) && e.type ===
|
|
553
|
+
var zr = ({ children: e }) => /* @__PURE__ */ o(_, { children: e });
|
|
554
|
+
function Lr(e) {
|
|
555
|
+
return f.isValidElement(e) && e.type === zr;
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function Pr(e, t) {
|
|
558
558
|
const r = { ...t };
|
|
559
559
|
for (const a in t) {
|
|
560
560
|
const n = e[a], i = t[a];
|
|
@@ -564,12 +564,12 @@ function Or(e, t) {
|
|
|
564
564
|
}
|
|
565
565
|
return { ...e, ...r };
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function Or(e) {
|
|
568
568
|
var t, r;
|
|
569
569
|
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
570
570
|
return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var Br = [
|
|
573
573
|
"a",
|
|
574
574
|
"button",
|
|
575
575
|
"div",
|
|
@@ -586,10 +586,10 @@ var zr = [
|
|
|
586
586
|
"span",
|
|
587
587
|
"svg",
|
|
588
588
|
"ul"
|
|
589
|
-
], ne =
|
|
589
|
+
], ne = Br.reduce((e, t) => {
|
|
590
590
|
const r = f.forwardRef((a, n) => {
|
|
591
|
-
const { asChild: i, ...s } = a,
|
|
592
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(
|
|
591
|
+
const { asChild: i, ...s } = a, c = i ? ge : t;
|
|
592
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...s, ref: n });
|
|
593
593
|
});
|
|
594
594
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
595
595
|
}, {});
|
|
@@ -600,28 +600,28 @@ function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
function Dr(e) {
|
|
603
|
-
const t = e + "CollectionProvider", [r, a] =
|
|
603
|
+
const t = e + "CollectionProvider", [r, a] = ze(t), [n, i] = r(
|
|
604
604
|
t,
|
|
605
605
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
606
606
|
), s = (h) => {
|
|
607
|
-
const { scope: m, children: d } = h, v = E.useRef(null),
|
|
608
|
-
return /* @__PURE__ */ o(n, { scope: m, itemMap:
|
|
607
|
+
const { scope: m, children: d } = h, v = E.useRef(null), T = E.useRef(/* @__PURE__ */ new Map()).current;
|
|
608
|
+
return /* @__PURE__ */ o(n, { scope: m, itemMap: T, collectionRef: v, children: d });
|
|
609
609
|
};
|
|
610
610
|
s.displayName = t;
|
|
611
|
-
const
|
|
611
|
+
const c = e + "CollectionSlot", g = E.forwardRef(
|
|
612
612
|
(h, m) => {
|
|
613
|
-
const { scope: d, children: v } = h,
|
|
613
|
+
const { scope: d, children: v } = h, T = i(c, d), C = Se(m, T.collectionRef);
|
|
614
614
|
return /* @__PURE__ */ o(ge, { ref: C, children: v });
|
|
615
615
|
}
|
|
616
616
|
);
|
|
617
|
-
g.displayName =
|
|
618
|
-
const
|
|
617
|
+
g.displayName = c;
|
|
618
|
+
const l = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
|
|
619
619
|
(h, m) => {
|
|
620
|
-
const { scope: d, children: v, ...
|
|
621
|
-
return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...
|
|
620
|
+
const { scope: d, children: v, ...T } = h, C = E.useRef(null), w = Se(m, C), S = i(l, d);
|
|
621
|
+
return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...T }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: w, children: v });
|
|
622
622
|
}
|
|
623
623
|
);
|
|
624
|
-
p.displayName =
|
|
624
|
+
p.displayName = l;
|
|
625
625
|
function b(h) {
|
|
626
626
|
const m = i(e + "CollectionConsumer", h);
|
|
627
627
|
return E.useCallback(() => {
|
|
@@ -629,7 +629,7 @@ function Dr(e) {
|
|
|
629
629
|
if (!d) return [];
|
|
630
630
|
const v = Array.from(d.querySelectorAll(`[${u}]`));
|
|
631
631
|
return Array.from(m.itemMap.values()).sort(
|
|
632
|
-
(
|
|
632
|
+
(T, C) => v.indexOf(T.ref.current) - v.indexOf(C.ref.current)
|
|
633
633
|
);
|
|
634
634
|
}, [m.collectionRef, m.itemMap]);
|
|
635
635
|
}
|
|
@@ -639,16 +639,16 @@ function Dr(e) {
|
|
|
639
639
|
a
|
|
640
640
|
];
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
},
|
|
642
|
+
var Vr = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
|
|
643
|
+
}, $r = f.useId || (() => {
|
|
644
644
|
}), Fr = 0;
|
|
645
645
|
function Hr(e) {
|
|
646
|
-
const [t, r] = f.useState(
|
|
647
|
-
return
|
|
646
|
+
const [t, r] = f.useState($r());
|
|
647
|
+
return Vr(() => {
|
|
648
648
|
r((a) => a ?? String(Fr++));
|
|
649
649
|
}, [e]), t ? `radix-${t}` : "";
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Le(e) {
|
|
652
652
|
const t = f.useRef(e);
|
|
653
653
|
return f.useEffect(() => {
|
|
654
654
|
t.current = e;
|
|
@@ -663,15 +663,15 @@ function pe({
|
|
|
663
663
|
onChange: r = () => {
|
|
664
664
|
}
|
|
665
665
|
}) {
|
|
666
|
-
const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a,
|
|
667
|
-
(
|
|
666
|
+
const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c = Le(r), g = f.useCallback(
|
|
667
|
+
(l) => {
|
|
668
668
|
if (i) {
|
|
669
|
-
const u = typeof
|
|
670
|
-
u !== e &&
|
|
669
|
+
const u = typeof l == "function" ? l(e) : l;
|
|
670
|
+
u !== e && c(u);
|
|
671
671
|
} else
|
|
672
|
-
n(
|
|
672
|
+
n(l);
|
|
673
673
|
},
|
|
674
|
-
[i, e, n,
|
|
674
|
+
[i, e, n, c]
|
|
675
675
|
);
|
|
676
676
|
return [s, g];
|
|
677
677
|
}
|
|
@@ -679,7 +679,7 @@ function Gr({
|
|
|
679
679
|
defaultProp: e,
|
|
680
680
|
onChange: t
|
|
681
681
|
}) {
|
|
682
|
-
const r = f.useState(e), [a] = r, n = f.useRef(a), i =
|
|
682
|
+
const r = f.useState(e), [a] = r, n = f.useRef(a), i = Le(t);
|
|
683
683
|
return f.useEffect(() => {
|
|
684
684
|
n.current !== a && (i(a), n.current = a);
|
|
685
685
|
}, [a, n, i]), r;
|
|
@@ -689,7 +689,7 @@ function bt(e) {
|
|
|
689
689
|
const t = f.useContext(Ur);
|
|
690
690
|
return e || t || "ltr";
|
|
691
691
|
}
|
|
692
|
-
var
|
|
692
|
+
var Ne = "rovingFocusGroup.onEntryFocus", jr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Kr] = Dr(be), [Wr, yt] = ze(
|
|
693
693
|
be,
|
|
694
694
|
[Kr]
|
|
695
695
|
), [Yr, qr] = Wr(be), kt = f.forwardRef(
|
|
@@ -703,20 +703,20 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
703
703
|
loop: n = !1,
|
|
704
704
|
dir: i,
|
|
705
705
|
currentTabStopId: s,
|
|
706
|
-
defaultCurrentTabStopId:
|
|
706
|
+
defaultCurrentTabStopId: c,
|
|
707
707
|
onCurrentTabStopIdChange: g,
|
|
708
|
-
onEntryFocus:
|
|
708
|
+
onEntryFocus: l,
|
|
709
709
|
preventScrollOnEntryFocus: u = !1,
|
|
710
710
|
...p
|
|
711
711
|
} = e, b = f.useRef(null), h = Se(t, b), m = bt(i), [d = null, v] = pe({
|
|
712
712
|
prop: s,
|
|
713
|
-
defaultProp:
|
|
713
|
+
defaultProp: c,
|
|
714
714
|
onChange: g
|
|
715
|
-
}), [
|
|
715
|
+
}), [T, C] = f.useState(!1), w = Le(l), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
|
|
716
716
|
return f.useEffect(() => {
|
|
717
717
|
const x = b.current;
|
|
718
718
|
if (x)
|
|
719
|
-
return x.addEventListener(
|
|
719
|
+
return x.addEventListener(Ne, w), () => x.removeEventListener(Ne, w);
|
|
720
720
|
}, [w]), /* @__PURE__ */ o(
|
|
721
721
|
Yr,
|
|
722
722
|
{
|
|
@@ -741,7 +741,7 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
741
741
|
children: /* @__PURE__ */ o(
|
|
742
742
|
ne.div,
|
|
743
743
|
{
|
|
744
|
-
tabIndex:
|
|
744
|
+
tabIndex: T || M === 0 ? -1 : 0,
|
|
745
745
|
"data-orientation": a,
|
|
746
746
|
...p,
|
|
747
747
|
ref: h,
|
|
@@ -750,13 +750,13 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
750
750
|
A.current = !0;
|
|
751
751
|
}),
|
|
752
752
|
onFocus: K(e.onFocus, (x) => {
|
|
753
|
-
const
|
|
754
|
-
if (x.target === x.currentTarget &&
|
|
755
|
-
const de = new CustomEvent(
|
|
753
|
+
const le = !A.current;
|
|
754
|
+
if (x.target === x.currentTarget && le && !T) {
|
|
755
|
+
const de = new CustomEvent(Ne, jr);
|
|
756
756
|
if (x.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
|
|
757
|
-
const X = S().filter((
|
|
757
|
+
const X = S().filter((B) => B.focusable), ye = X.find((B) => B.active), ke = X.find((B) => B.id === d), Ce = [ye, ke, ...X].filter(
|
|
758
758
|
Boolean
|
|
759
|
-
).map((
|
|
759
|
+
).map((B) => B.ref.current);
|
|
760
760
|
wt(Ce, u);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
@@ -767,7 +767,7 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
767
767
|
)
|
|
768
768
|
}
|
|
769
769
|
);
|
|
770
|
-
}), Ct = "RovingFocusGroupItem",
|
|
770
|
+
}), Ct = "RovingFocusGroupItem", Tt = f.forwardRef(
|
|
771
771
|
(e, t) => {
|
|
772
772
|
const {
|
|
773
773
|
__scopeRovingFocusGroup: r,
|
|
@@ -775,7 +775,7 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
775
775
|
active: n = !1,
|
|
776
776
|
tabStopId: i,
|
|
777
777
|
...s
|
|
778
|
-
} = e,
|
|
778
|
+
} = e, c = Hr(), g = i || c, l = qr(Ct, r), u = l.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = l;
|
|
779
779
|
return f.useEffect(() => {
|
|
780
780
|
if (a)
|
|
781
781
|
return b(), () => h();
|
|
@@ -790,29 +790,29 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
790
790
|
ne.span,
|
|
791
791
|
{
|
|
792
792
|
tabIndex: u ? 0 : -1,
|
|
793
|
-
"data-orientation":
|
|
793
|
+
"data-orientation": l.orientation,
|
|
794
794
|
...s,
|
|
795
795
|
ref: t,
|
|
796
796
|
onMouseDown: K(e.onMouseDown, (m) => {
|
|
797
|
-
a ?
|
|
797
|
+
a ? l.onItemFocus(g) : m.preventDefault();
|
|
798
798
|
}),
|
|
799
|
-
onFocus: K(e.onFocus, () =>
|
|
799
|
+
onFocus: K(e.onFocus, () => l.onItemFocus(g)),
|
|
800
800
|
onKeyDown: K(e.onKeyDown, (m) => {
|
|
801
801
|
if (m.key === "Tab" && m.shiftKey) {
|
|
802
|
-
|
|
802
|
+
l.onItemShiftTab();
|
|
803
803
|
return;
|
|
804
804
|
}
|
|
805
805
|
if (m.target !== m.currentTarget) return;
|
|
806
|
-
const d = Jr(m,
|
|
806
|
+
const d = Jr(m, l.orientation, l.dir);
|
|
807
807
|
if (d !== void 0) {
|
|
808
808
|
if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
|
|
809
809
|
m.preventDefault();
|
|
810
|
-
let v = p().filter((
|
|
810
|
+
let v = p().filter((T) => T.focusable).map((T) => T.ref.current);
|
|
811
811
|
if (d === "last") v.reverse();
|
|
812
812
|
else if (d === "prev" || d === "next") {
|
|
813
813
|
d === "prev" && v.reverse();
|
|
814
|
-
const
|
|
815
|
-
v =
|
|
814
|
+
const T = v.indexOf(m.currentTarget);
|
|
815
|
+
v = l.loop ? eo(v, T + 1) : v.slice(T + 1);
|
|
816
816
|
}
|
|
817
817
|
setTimeout(() => wt(v));
|
|
818
818
|
}
|
|
@@ -823,7 +823,7 @@ var Zr = f.forwardRef((e, t) => {
|
|
|
823
823
|
);
|
|
824
824
|
}
|
|
825
825
|
);
|
|
826
|
-
|
|
826
|
+
Tt.displayName = Ct;
|
|
827
827
|
var Qr = {
|
|
828
828
|
ArrowLeft: "prev",
|
|
829
829
|
ArrowUp: "prev",
|
|
@@ -850,8 +850,8 @@ function wt(e, t = !1) {
|
|
|
850
850
|
function eo(e, t) {
|
|
851
851
|
return e.map((r, a) => e[(t + a) % e.length]);
|
|
852
852
|
}
|
|
853
|
-
var to = kt, ro =
|
|
854
|
-
const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1,
|
|
853
|
+
var to = kt, ro = Tt, oo = "Toggle", Nt = f.forwardRef((e, t) => {
|
|
854
|
+
const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, c] = pe({
|
|
855
855
|
prop: r,
|
|
856
856
|
onChange: n,
|
|
857
857
|
defaultProp: a
|
|
@@ -866,15 +866,15 @@ var to = kt, ro = Nt, oo = "Toggle", Tt = f.forwardRef((e, t) => {
|
|
|
866
866
|
...i,
|
|
867
867
|
ref: t,
|
|
868
868
|
onClick: K(e.onClick, () => {
|
|
869
|
-
e.disabled ||
|
|
869
|
+
e.disabled || c(!s);
|
|
870
870
|
})
|
|
871
871
|
}
|
|
872
872
|
);
|
|
873
873
|
});
|
|
874
|
-
|
|
875
|
-
var Q = "ToggleGroup", [xt, ha] =
|
|
874
|
+
Nt.displayName = oo;
|
|
875
|
+
var Q = "ToggleGroup", [xt, ha] = ze(Q, [
|
|
876
876
|
yt
|
|
877
|
-
]), Et = yt(),
|
|
877
|
+
]), Et = yt(), Pe = E.forwardRef((e, t) => {
|
|
878
878
|
const { type: r, ...a } = e;
|
|
879
879
|
if (r === "single")
|
|
880
880
|
return /* @__PURE__ */ o(ao, { ...a, ref: t });
|
|
@@ -882,7 +882,7 @@ var Q = "ToggleGroup", [xt, ha] = Le(Q, [
|
|
|
882
882
|
return /* @__PURE__ */ o(no, { ...a, ref: t });
|
|
883
883
|
throw new Error(`Missing prop \`type\` expected on \`${Q}\``);
|
|
884
884
|
});
|
|
885
|
-
|
|
885
|
+
Pe.displayName = Q;
|
|
886
886
|
var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
887
887
|
const {
|
|
888
888
|
value: r,
|
|
@@ -890,7 +890,7 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
|
890
890
|
onValueChange: n = () => {
|
|
891
891
|
},
|
|
892
892
|
...i
|
|
893
|
-
} = e, [s,
|
|
893
|
+
} = e, [s, c] = pe({
|
|
894
894
|
prop: r,
|
|
895
895
|
defaultProp: a,
|
|
896
896
|
onChange: n
|
|
@@ -901,8 +901,8 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
|
901
901
|
scope: e.__scopeToggleGroup,
|
|
902
902
|
type: "single",
|
|
903
903
|
value: s ? [s] : [],
|
|
904
|
-
onItemActivate:
|
|
905
|
-
onItemDeactivate: E.useCallback(() =>
|
|
904
|
+
onItemActivate: c,
|
|
905
|
+
onItemDeactivate: E.useCallback(() => c(""), [c]),
|
|
906
906
|
children: /* @__PURE__ */ o(_t, { ...i, ref: t })
|
|
907
907
|
}
|
|
908
908
|
);
|
|
@@ -913,16 +913,16 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
|
913
913
|
onValueChange: n = () => {
|
|
914
914
|
},
|
|
915
915
|
...i
|
|
916
|
-
} = e, [s = [],
|
|
916
|
+
} = e, [s = [], c] = pe({
|
|
917
917
|
prop: r,
|
|
918
918
|
defaultProp: a,
|
|
919
919
|
onChange: n
|
|
920
920
|
}), g = E.useCallback(
|
|
921
|
-
(u) =>
|
|
922
|
-
[
|
|
923
|
-
),
|
|
924
|
-
(u) =>
|
|
925
|
-
[
|
|
921
|
+
(u) => c((p = []) => [...p, u]),
|
|
922
|
+
[c]
|
|
923
|
+
), l = E.useCallback(
|
|
924
|
+
(u) => c((p = []) => p.filter((b) => b !== u)),
|
|
925
|
+
[c]
|
|
926
926
|
);
|
|
927
927
|
return /* @__PURE__ */ o(
|
|
928
928
|
It,
|
|
@@ -931,12 +931,12 @@ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
|
|
|
931
931
|
type: "multiple",
|
|
932
932
|
value: s,
|
|
933
933
|
onItemActivate: g,
|
|
934
|
-
onItemDeactivate:
|
|
934
|
+
onItemDeactivate: l,
|
|
935
935
|
children: /* @__PURE__ */ o(_t, { ...i, ref: t })
|
|
936
936
|
}
|
|
937
937
|
);
|
|
938
938
|
});
|
|
939
|
-
|
|
939
|
+
Pe.displayName = Q;
|
|
940
940
|
var [so, io] = xt(Q), _t = E.forwardRef(
|
|
941
941
|
(e, t) => {
|
|
942
942
|
const {
|
|
@@ -945,24 +945,24 @@ var [so, io] = xt(Q), _t = E.forwardRef(
|
|
|
945
945
|
rovingFocus: n = !0,
|
|
946
946
|
orientation: i,
|
|
947
947
|
dir: s,
|
|
948
|
-
loop:
|
|
948
|
+
loop: c = !0,
|
|
949
949
|
...g
|
|
950
|
-
} = e,
|
|
950
|
+
} = e, l = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
|
|
951
951
|
return /* @__PURE__ */ o(so, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
|
|
952
952
|
to,
|
|
953
953
|
{
|
|
954
954
|
asChild: !0,
|
|
955
|
-
...
|
|
955
|
+
...l,
|
|
956
956
|
orientation: i,
|
|
957
957
|
dir: u,
|
|
958
|
-
loop:
|
|
958
|
+
loop: c,
|
|
959
959
|
children: /* @__PURE__ */ o(ne.div, { ...p, ref: t })
|
|
960
960
|
}
|
|
961
961
|
) : /* @__PURE__ */ o(ne.div, { ...p, ref: t }) });
|
|
962
962
|
}
|
|
963
963
|
), fe = "ToggleGroupItem", Rt = E.forwardRef(
|
|
964
964
|
(e, t) => {
|
|
965
|
-
const r = St(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled,
|
|
965
|
+
const r = St(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, c = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
|
|
966
966
|
return a.rovingFocus ? /* @__PURE__ */ o(
|
|
967
967
|
ro,
|
|
968
968
|
{
|
|
@@ -971,19 +971,19 @@ var [so, io] = xt(Q), _t = E.forwardRef(
|
|
|
971
971
|
focusable: !s,
|
|
972
972
|
active: i,
|
|
973
973
|
ref: g,
|
|
974
|
-
children: /* @__PURE__ */ o(Ke, { ...
|
|
974
|
+
children: /* @__PURE__ */ o(Ke, { ...c, ref: t })
|
|
975
975
|
}
|
|
976
|
-
) : /* @__PURE__ */ o(Ke, { ...
|
|
976
|
+
) : /* @__PURE__ */ o(Ke, { ...c, ref: t });
|
|
977
977
|
}
|
|
978
978
|
);
|
|
979
979
|
Rt.displayName = fe;
|
|
980
980
|
var Ke = E.forwardRef(
|
|
981
981
|
(e, t) => {
|
|
982
|
-
const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 },
|
|
982
|
+
const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = i.type === "single" ? s : void 0;
|
|
983
983
|
return /* @__PURE__ */ o(
|
|
984
|
-
|
|
984
|
+
Nt,
|
|
985
985
|
{
|
|
986
|
-
...
|
|
986
|
+
...c,
|
|
987
987
|
...n,
|
|
988
988
|
ref: t,
|
|
989
989
|
onPressedChange: (g) => {
|
|
@@ -992,7 +992,7 @@ var Ke = E.forwardRef(
|
|
|
992
992
|
}
|
|
993
993
|
);
|
|
994
994
|
}
|
|
995
|
-
),
|
|
995
|
+
), co = Pe, lo = Rt;
|
|
996
996
|
const At = E.createContext({
|
|
997
997
|
size: "medium",
|
|
998
998
|
focusMode: "system",
|
|
@@ -1062,32 +1062,32 @@ const At = E.createContext({
|
|
|
1062
1062
|
mode: n = "system",
|
|
1063
1063
|
focusMode: i = "system",
|
|
1064
1064
|
size: s = "medium",
|
|
1065
|
-
defaultValue:
|
|
1065
|
+
defaultValue: c,
|
|
1066
1066
|
className: g,
|
|
1067
|
-
...
|
|
1067
|
+
...l
|
|
1068
1068
|
}) => {
|
|
1069
1069
|
const u = po({ mode: n, className: g }), p = { size: s, focusMode: i, mode: n };
|
|
1070
1070
|
return /* @__PURE__ */ o(At.Provider, { value: p, children: /* @__PURE__ */ o(
|
|
1071
|
-
|
|
1071
|
+
co,
|
|
1072
1072
|
{
|
|
1073
1073
|
disabled: a,
|
|
1074
1074
|
className: u,
|
|
1075
1075
|
value: t,
|
|
1076
|
-
defaultValue:
|
|
1076
|
+
defaultValue: c,
|
|
1077
1077
|
onValueChange: r,
|
|
1078
|
-
...
|
|
1078
|
+
...l,
|
|
1079
1079
|
type: "single",
|
|
1080
1080
|
children: e
|
|
1081
1081
|
}
|
|
1082
1082
|
) });
|
|
1083
1083
|
}, vo = ({ value: e, disabled: t }) => {
|
|
1084
|
-
const { size: r, focusMode: a, mode: n } =
|
|
1084
|
+
const { size: r, focusMode: a, mode: n } = P(At), { itemClass: i, wrapperClass: s } = fo({
|
|
1085
1085
|
focusMode: a,
|
|
1086
1086
|
mode: n,
|
|
1087
1087
|
size: r
|
|
1088
1088
|
});
|
|
1089
1089
|
return /* @__PURE__ */ o("div", { className: s, children: /* @__PURE__ */ o(
|
|
1090
|
-
|
|
1090
|
+
lo,
|
|
1091
1091
|
{
|
|
1092
1092
|
disabled: t,
|
|
1093
1093
|
className: i,
|
|
@@ -1097,40 +1097,40 @@ const At = E.createContext({
|
|
|
1097
1097
|
) });
|
|
1098
1098
|
};
|
|
1099
1099
|
/*!
|
|
1100
|
-
@versini/ui-panel v1.2.
|
|
1100
|
+
@versini/ui-panel v1.2.10
|
|
1101
1101
|
© 2024 gizmette.com
|
|
1102
1102
|
*/
|
|
1103
1103
|
try {
|
|
1104
1104
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1105
|
-
version: "1.2.
|
|
1106
|
-
buildTime: "12/30/2024
|
|
1105
|
+
version: "1.2.10",
|
|
1106
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
1107
1107
|
homepage: "https://github.com/aversini/ui-components",
|
|
1108
1108
|
license: "MIT"
|
|
1109
1109
|
});
|
|
1110
1110
|
} catch {
|
|
1111
1111
|
}
|
|
1112
|
-
const We = "av-messagebox", Ye = "av-panel", qe = "av-button",
|
|
1112
|
+
const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Oe = "icon", yo = "button", ko = "link", Co = ({
|
|
1113
1113
|
type: e,
|
|
1114
1114
|
size: t,
|
|
1115
1115
|
labelRight: r,
|
|
1116
1116
|
labelLeft: a,
|
|
1117
1117
|
align: n
|
|
1118
1118
|
}) => {
|
|
1119
|
-
const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1",
|
|
1119
|
+
const i = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", c = "text-lg font-medium max-h-12 py-2";
|
|
1120
1120
|
switch (e) {
|
|
1121
1121
|
case yo:
|
|
1122
1122
|
return k("px-4", {
|
|
1123
1123
|
[i]: t === "small",
|
|
1124
1124
|
[s]: t === "medium",
|
|
1125
|
-
[
|
|
1125
|
+
[c]: t === "large"
|
|
1126
1126
|
});
|
|
1127
1127
|
case ko:
|
|
1128
1128
|
return k("px-4 text-center", {
|
|
1129
1129
|
[i]: t === "small",
|
|
1130
1130
|
[s]: t === "medium",
|
|
1131
|
-
[
|
|
1131
|
+
[c]: t === "large"
|
|
1132
1132
|
});
|
|
1133
|
-
case
|
|
1133
|
+
case Oe:
|
|
1134
1134
|
return k("inline-flex items-center", {
|
|
1135
1135
|
"justify-center": n === "center",
|
|
1136
1136
|
"justify-start": n === "left",
|
|
@@ -1143,7 +1143,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1143
1143
|
"h-12 px-4 text-lg font-medium": t === "large" && (r || a)
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
},
|
|
1146
|
+
}, To = ({
|
|
1147
1147
|
mode: e,
|
|
1148
1148
|
noBackground: t,
|
|
1149
1149
|
noTruncate: r,
|
|
@@ -1235,7 +1235,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1235
1235
|
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
1236
1236
|
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
1237
1237
|
});
|
|
1238
|
-
},
|
|
1238
|
+
}, No = ({
|
|
1239
1239
|
mode: e,
|
|
1240
1240
|
disabled: t,
|
|
1241
1241
|
variant: r
|
|
@@ -1320,9 +1320,9 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1320
1320
|
focusMode: n,
|
|
1321
1321
|
disabled: i,
|
|
1322
1322
|
fullWidth: s,
|
|
1323
|
-
size:
|
|
1323
|
+
size: c,
|
|
1324
1324
|
noBorder: g,
|
|
1325
|
-
labelRight:
|
|
1325
|
+
labelRight: l,
|
|
1326
1326
|
labelLeft: u,
|
|
1327
1327
|
noBackground: p,
|
|
1328
1328
|
variant: b,
|
|
@@ -1331,18 +1331,18 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1331
1331
|
radius: d
|
|
1332
1332
|
}) => (b || (b = "primary"), r ? k(qe, t) : k(
|
|
1333
1333
|
qe,
|
|
1334
|
-
|
|
1334
|
+
To({
|
|
1335
1335
|
mode: a,
|
|
1336
1336
|
variant: b,
|
|
1337
1337
|
noBackground: p,
|
|
1338
1338
|
noTruncate: h,
|
|
1339
1339
|
radius: d
|
|
1340
1340
|
}),
|
|
1341
|
-
Co({ type: e, size:
|
|
1341
|
+
Co({ type: e, size: c, labelRight: l, labelLeft: u, align: m }),
|
|
1342
1342
|
xo({ mode: a, variant: b, noBorder: g }),
|
|
1343
1343
|
Eo({ focusMode: n }),
|
|
1344
1344
|
wo({ mode: a, variant: b, disabled: i }),
|
|
1345
|
-
|
|
1345
|
+
No({ mode: a, variant: b, disabled: i }),
|
|
1346
1346
|
{
|
|
1347
1347
|
"w-full": s,
|
|
1348
1348
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
@@ -1351,7 +1351,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1351
1351
|
)), Io = (e, t, r) => {
|
|
1352
1352
|
var a;
|
|
1353
1353
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
1354
|
-
},
|
|
1354
|
+
}, Be = E.forwardRef((e, t) => {
|
|
1355
1355
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
1356
1356
|
return /* @__PURE__ */ o(
|
|
1357
1357
|
"button",
|
|
@@ -1364,8 +1364,8 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
|
|
|
1364
1364
|
}
|
|
1365
1365
|
);
|
|
1366
1366
|
});
|
|
1367
|
-
|
|
1368
|
-
const
|
|
1367
|
+
Be.displayName = "BaseButton";
|
|
1368
|
+
const zt = E.forwardRef(
|
|
1369
1369
|
({
|
|
1370
1370
|
children: e,
|
|
1371
1371
|
disabled: t = !1,
|
|
@@ -1374,9 +1374,9 @@ const Lt = E.forwardRef(
|
|
|
1374
1374
|
fullWidth: n = !1,
|
|
1375
1375
|
className: i,
|
|
1376
1376
|
type: s = "button",
|
|
1377
|
-
raw:
|
|
1377
|
+
raw: c = !1,
|
|
1378
1378
|
noBorder: g = !1,
|
|
1379
|
-
"aria-label":
|
|
1379
|
+
"aria-label": l,
|
|
1380
1380
|
label: u,
|
|
1381
1381
|
size: p = "medium",
|
|
1382
1382
|
labelRight: b,
|
|
@@ -1384,15 +1384,15 @@ const Lt = E.forwardRef(
|
|
|
1384
1384
|
noBackground: m = !1,
|
|
1385
1385
|
align: d = "center",
|
|
1386
1386
|
radius: v = "large",
|
|
1387
|
-
...
|
|
1387
|
+
...T
|
|
1388
1388
|
}, C) => {
|
|
1389
1389
|
const w = Mt({
|
|
1390
|
-
type:
|
|
1390
|
+
type: Oe,
|
|
1391
1391
|
mode: r,
|
|
1392
1392
|
focusMode: a,
|
|
1393
1393
|
fullWidth: n,
|
|
1394
1394
|
disabled: t,
|
|
1395
|
-
raw:
|
|
1395
|
+
raw: c,
|
|
1396
1396
|
className: i,
|
|
1397
1397
|
noBorder: g,
|
|
1398
1398
|
size: p,
|
|
@@ -1402,20 +1402,20 @@ const Lt = E.forwardRef(
|
|
|
1402
1402
|
align: d,
|
|
1403
1403
|
radius: v
|
|
1404
1404
|
}), S = k({
|
|
1405
|
-
"text-copy-accent-dark": r === "light" && !
|
|
1406
|
-
"text-copy-light": r === "dark" && !
|
|
1407
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !
|
|
1408
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !
|
|
1405
|
+
"text-copy-accent-dark": r === "light" && !c,
|
|
1406
|
+
"text-copy-light": r === "dark" && !c,
|
|
1407
|
+
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1408
|
+
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1409
1409
|
});
|
|
1410
1410
|
return /* @__PURE__ */ y(
|
|
1411
|
-
|
|
1411
|
+
Be,
|
|
1412
1412
|
{
|
|
1413
1413
|
ref: C,
|
|
1414
1414
|
className: w,
|
|
1415
1415
|
disabled: t,
|
|
1416
1416
|
type: s,
|
|
1417
|
-
"aria-label":
|
|
1418
|
-
...
|
|
1417
|
+
"aria-label": l || u,
|
|
1418
|
+
...T,
|
|
1419
1419
|
children: [
|
|
1420
1420
|
h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
|
|
1421
1421
|
/* @__PURE__ */ o("div", { className: S, children: e }),
|
|
@@ -1425,15 +1425,15 @@ const Lt = E.forwardRef(
|
|
|
1425
1425
|
);
|
|
1426
1426
|
}
|
|
1427
1427
|
);
|
|
1428
|
-
|
|
1428
|
+
zt.displayName = "ButtonIcon";
|
|
1429
1429
|
/*!
|
|
1430
|
-
@versini/ui-button
|
|
1430
|
+
@versini/ui-button v3.0.1
|
|
1431
1431
|
© 2024 gizmette.com
|
|
1432
1432
|
*/
|
|
1433
1433
|
try {
|
|
1434
1434
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1435
|
-
version: "
|
|
1436
|
-
buildTime: "12/30/2024
|
|
1435
|
+
version: "3.0.1",
|
|
1436
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
1437
1437
|
homepage: "https://github.com/aversini/ui-components",
|
|
1438
1438
|
license: "MIT"
|
|
1439
1439
|
});
|
|
@@ -1448,9 +1448,9 @@ const So = E.forwardRef(
|
|
|
1448
1448
|
fullWidth: n = !1,
|
|
1449
1449
|
className: i,
|
|
1450
1450
|
type: s = "button",
|
|
1451
|
-
raw:
|
|
1451
|
+
raw: c = !1,
|
|
1452
1452
|
noBorder: g = !1,
|
|
1453
|
-
"aria-label":
|
|
1453
|
+
"aria-label": l,
|
|
1454
1454
|
label: u,
|
|
1455
1455
|
size: p = "medium",
|
|
1456
1456
|
labelRight: b,
|
|
@@ -1458,16 +1458,16 @@ const So = E.forwardRef(
|
|
|
1458
1458
|
noBackground: m = !1,
|
|
1459
1459
|
align: d = "center",
|
|
1460
1460
|
active: v = !1,
|
|
1461
|
-
radius:
|
|
1461
|
+
radius: T = "large",
|
|
1462
1462
|
...C
|
|
1463
1463
|
}, w) => {
|
|
1464
1464
|
const S = Mt({
|
|
1465
|
-
type:
|
|
1465
|
+
type: Oe,
|
|
1466
1466
|
mode: r,
|
|
1467
1467
|
focusMode: a,
|
|
1468
1468
|
fullWidth: n,
|
|
1469
1469
|
disabled: t,
|
|
1470
|
-
raw:
|
|
1470
|
+
raw: c,
|
|
1471
1471
|
className: i,
|
|
1472
1472
|
noBorder: g,
|
|
1473
1473
|
size: p,
|
|
@@ -1475,12 +1475,12 @@ const So = E.forwardRef(
|
|
|
1475
1475
|
labelLeft: h,
|
|
1476
1476
|
noBackground: m,
|
|
1477
1477
|
align: d,
|
|
1478
|
-
radius:
|
|
1478
|
+
radius: T
|
|
1479
1479
|
}), A = k({
|
|
1480
|
-
"text-copy-accent-dark": r === "light" && !
|
|
1481
|
-
"text-copy-light": r === "dark" && !
|
|
1482
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !
|
|
1483
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !
|
|
1480
|
+
"text-copy-accent-dark": r === "light" && !c,
|
|
1481
|
+
"text-copy-light": r === "dark" && !c,
|
|
1482
|
+
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1483
|
+
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1484
1484
|
}), M = v ? k(
|
|
1485
1485
|
"relative",
|
|
1486
1486
|
"focus-within:static",
|
|
@@ -1499,13 +1499,13 @@ const So = E.forwardRef(
|
|
|
1499
1499
|
}
|
|
1500
1500
|
) : "";
|
|
1501
1501
|
return /* @__PURE__ */ o("div", { className: M, children: /* @__PURE__ */ y(
|
|
1502
|
-
|
|
1502
|
+
Be,
|
|
1503
1503
|
{
|
|
1504
1504
|
ref: w,
|
|
1505
1505
|
className: S,
|
|
1506
1506
|
disabled: t,
|
|
1507
1507
|
type: s,
|
|
1508
|
-
"aria-label":
|
|
1508
|
+
"aria-label": l || u,
|
|
1509
1509
|
...C,
|
|
1510
1510
|
children: [
|
|
1511
1511
|
h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
|
|
@@ -1523,38 +1523,38 @@ const _o = ({
|
|
|
1523
1523
|
viewBox: r,
|
|
1524
1524
|
className: a,
|
|
1525
1525
|
defaultViewBox: n,
|
|
1526
|
-
|
|
1526
|
+
size: i,
|
|
1527
1527
|
title: s,
|
|
1528
|
-
semantic:
|
|
1528
|
+
semantic: c = !1,
|
|
1529
1529
|
...g
|
|
1530
1530
|
}) => {
|
|
1531
|
-
const
|
|
1531
|
+
const l = k(i, a);
|
|
1532
1532
|
return /* @__PURE__ */ y(_, { children: [
|
|
1533
1533
|
/* @__PURE__ */ o(
|
|
1534
1534
|
"svg",
|
|
1535
1535
|
{
|
|
1536
1536
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1537
|
-
className:
|
|
1537
|
+
className: l,
|
|
1538
1538
|
viewBox: r || n,
|
|
1539
1539
|
fill: t || "currentColor",
|
|
1540
1540
|
role: "img",
|
|
1541
|
-
"aria-hidden": !
|
|
1541
|
+
"aria-hidden": !c,
|
|
1542
1542
|
focusable: !1,
|
|
1543
1543
|
...g,
|
|
1544
1544
|
children: e
|
|
1545
1545
|
}
|
|
1546
1546
|
),
|
|
1547
|
-
s &&
|
|
1547
|
+
s && c && /* @__PURE__ */ o("span", { className: "sr-only", children: s })
|
|
1548
1548
|
] });
|
|
1549
1549
|
};
|
|
1550
1550
|
/*!
|
|
1551
|
-
@versini/ui-svgicon
|
|
1551
|
+
@versini/ui-svgicon v3.0.1
|
|
1552
1552
|
© 2024 gizmette.com
|
|
1553
1553
|
*/
|
|
1554
1554
|
try {
|
|
1555
1555
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1556
|
-
version: "
|
|
1557
|
-
buildTime: "12/30/2024
|
|
1556
|
+
version: "3.0.1",
|
|
1557
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
1558
1558
|
homepage: "https://github.com/aversini/ui-components",
|
|
1559
1559
|
license: "MIT"
|
|
1560
1560
|
});
|
|
@@ -1570,7 +1570,7 @@ const Ro = ({
|
|
|
1570
1570
|
_o,
|
|
1571
1571
|
{
|
|
1572
1572
|
defaultViewBox: "0 0 384 512",
|
|
1573
|
-
|
|
1573
|
+
size: "size-5",
|
|
1574
1574
|
viewBox: t,
|
|
1575
1575
|
className: e,
|
|
1576
1576
|
title: r || "Close",
|
|
@@ -1579,49 +1579,49 @@ const Ro = ({
|
|
|
1579
1579
|
}
|
|
1580
1580
|
);
|
|
1581
1581
|
/*!
|
|
1582
|
-
@versini/ui-icons
|
|
1582
|
+
@versini/ui-icons v3.0.1
|
|
1583
1583
|
© 2024 gizmette.com
|
|
1584
1584
|
*/
|
|
1585
1585
|
try {
|
|
1586
1586
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1587
|
-
version: "
|
|
1588
|
-
buildTime: "12/30/2024
|
|
1587
|
+
version: "3.0.1",
|
|
1588
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
1589
1589
|
homepage: "https://github.com/aversini/ui-components",
|
|
1590
1590
|
license: "MIT"
|
|
1591
1591
|
});
|
|
1592
1592
|
} catch {
|
|
1593
1593
|
}
|
|
1594
|
-
const
|
|
1594
|
+
const Lt = f.createContext(null);
|
|
1595
1595
|
function Ao({
|
|
1596
1596
|
initialOpen: e = !1,
|
|
1597
1597
|
open: t,
|
|
1598
1598
|
onOpenChange: r
|
|
1599
1599
|
} = {}) {
|
|
1600
|
-
const [a, n] = f.useState(e), [i, s] = f.useState(), [
|
|
1601
|
-
open:
|
|
1600
|
+
const [a, n] = f.useState(e), [i, s] = f.useState(), [c, g] = f.useState(), l = t ?? a, u = r ?? n, p = st({
|
|
1601
|
+
open: l,
|
|
1602
1602
|
onOpenChange: u
|
|
1603
1603
|
}), b = p.context, h = it(b, {
|
|
1604
1604
|
enabled: t == null
|
|
1605
|
-
}), m =
|
|
1605
|
+
}), m = lt(b, {
|
|
1606
1606
|
outsidePress: !1,
|
|
1607
1607
|
outsidePressEvent: "mousedown"
|
|
1608
|
-
}), d =
|
|
1608
|
+
}), d = ct(b), v = dt([h, m, d]);
|
|
1609
1609
|
return f.useMemo(
|
|
1610
1610
|
() => ({
|
|
1611
|
-
open:
|
|
1611
|
+
open: l,
|
|
1612
1612
|
setOpen: u,
|
|
1613
1613
|
...v,
|
|
1614
1614
|
...p,
|
|
1615
1615
|
labelId: i,
|
|
1616
|
-
descriptionId:
|
|
1616
|
+
descriptionId: c,
|
|
1617
1617
|
setLabelId: s,
|
|
1618
1618
|
setDescriptionId: g
|
|
1619
1619
|
}),
|
|
1620
|
-
[
|
|
1620
|
+
[l, u, v, p, i, c]
|
|
1621
1621
|
);
|
|
1622
1622
|
}
|
|
1623
1623
|
const ve = () => {
|
|
1624
|
-
const e = f.useContext(
|
|
1624
|
+
const e = f.useContext(Lt);
|
|
1625
1625
|
if (e == null)
|
|
1626
1626
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1627
1627
|
return e;
|
|
@@ -1631,17 +1631,17 @@ function Mo({
|
|
|
1631
1631
|
...t
|
|
1632
1632
|
}) {
|
|
1633
1633
|
const r = Ao(t);
|
|
1634
|
-
return /* @__PURE__ */ o(
|
|
1634
|
+
return /* @__PURE__ */ o(Lt.Provider, { value: r, children: e });
|
|
1635
1635
|
}
|
|
1636
|
-
const
|
|
1636
|
+
const zo = f.forwardRef(function(e, t) {
|
|
1637
1637
|
const { context: r, ...a } = ve(), n = Me([a.refs.setFloating, t]);
|
|
1638
1638
|
if (!r.open)
|
|
1639
1639
|
return null;
|
|
1640
|
-
const { overlayBackground: i, ...s } = e,
|
|
1640
|
+
const { overlayBackground: i, ...s } = e, c = k("grid place-items-center", {
|
|
1641
1641
|
[`${i}`]: i,
|
|
1642
1642
|
"bg-black sm:bg-black/[.8]": !i
|
|
1643
1643
|
});
|
|
1644
|
-
return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(yr, { className:
|
|
1644
|
+
return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(yr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(mt, { context: r, children: /* @__PURE__ */ o(
|
|
1645
1645
|
"div",
|
|
1646
1646
|
{
|
|
1647
1647
|
ref: n,
|
|
@@ -1651,13 +1651,13 @@ const Lo = f.forwardRef(function(e, t) {
|
|
|
1651
1651
|
children: s.children
|
|
1652
1652
|
}
|
|
1653
1653
|
) }) }) });
|
|
1654
|
-
}),
|
|
1654
|
+
}), Lo = f.forwardRef(function({ children: e, ...t }, r) {
|
|
1655
1655
|
const { setLabelId: a } = ve(), n = Ae();
|
|
1656
1656
|
return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
|
|
1657
|
-
}),
|
|
1657
|
+
}), Po = f.forwardRef(function({ children: e, ...t }, r) {
|
|
1658
1658
|
const { setDescriptionId: a } = ve(), n = Ae();
|
|
1659
1659
|
return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
|
|
1660
|
-
}),
|
|
1660
|
+
}), Oo = f.forwardRef(function(e, t) {
|
|
1661
1661
|
const { setOpen: r } = ve(), { trigger: a, className: n, ...i } = e, s = f.useCallback(() => r(!1), [r]);
|
|
1662
1662
|
return /* @__PURE__ */ o("div", { className: n, children: f.cloneElement(a, {
|
|
1663
1663
|
ref: t,
|
|
@@ -1666,19 +1666,19 @@ const Lo = f.forwardRef(function(e, t) {
|
|
|
1666
1666
|
}) });
|
|
1667
1667
|
});
|
|
1668
1668
|
/*!
|
|
1669
|
-
@versini/ui-modal v1.1.
|
|
1669
|
+
@versini/ui-modal v1.1.6
|
|
1670
1670
|
© 2024 gizmette.com
|
|
1671
1671
|
*/
|
|
1672
1672
|
try {
|
|
1673
1673
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1674
|
-
version: "1.1.
|
|
1675
|
-
buildTime: "12/30/2024
|
|
1674
|
+
version: "1.1.6",
|
|
1675
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
1676
1676
|
homepage: "https://github.com/aversini/ui-components",
|
|
1677
1677
|
license: "MIT"
|
|
1678
1678
|
});
|
|
1679
1679
|
} catch {
|
|
1680
1680
|
}
|
|
1681
|
-
const ee = "panel", ue = "messagebox",
|
|
1681
|
+
const ee = "panel", ue = "messagebox", Bo = ({
|
|
1682
1682
|
className: e,
|
|
1683
1683
|
kind: t,
|
|
1684
1684
|
borderMode: r
|
|
@@ -1706,19 +1706,19 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1706
1706
|
footer: n,
|
|
1707
1707
|
borderMode: i = "light",
|
|
1708
1708
|
kind: s = ee,
|
|
1709
|
-
className:
|
|
1709
|
+
className: c
|
|
1710
1710
|
}) => {
|
|
1711
|
-
const g = Z(""),
|
|
1711
|
+
const g = Z(""), l = Bo({ className: c, kind: s, borderMode: i });
|
|
1712
1712
|
return H(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
|
|
1713
1713
|
e && (document.title = g.current);
|
|
1714
|
-
}), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(
|
|
1714
|
+
}), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(zo, { className: l.main, children: [
|
|
1715
1715
|
/* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1716
1716
|
/* @__PURE__ */ o(
|
|
1717
|
-
|
|
1717
|
+
Oo,
|
|
1718
1718
|
{
|
|
1719
|
-
className:
|
|
1719
|
+
className: l.close,
|
|
1720
1720
|
trigger: /* @__PURE__ */ o(
|
|
1721
|
-
|
|
1721
|
+
zt,
|
|
1722
1722
|
{
|
|
1723
1723
|
mode: "dark",
|
|
1724
1724
|
focusMode: "light",
|
|
@@ -1729,47 +1729,47 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1729
1729
|
)
|
|
1730
1730
|
}
|
|
1731
1731
|
),
|
|
1732
|
-
/* @__PURE__ */ o(
|
|
1732
|
+
/* @__PURE__ */ o(Lo, { className: l.header, children: r })
|
|
1733
1733
|
] }),
|
|
1734
|
-
/* @__PURE__ */ o(
|
|
1735
|
-
n && /* @__PURE__ */ o("div", { className:
|
|
1734
|
+
/* @__PURE__ */ o(Po, { className: l.content, children: a }),
|
|
1735
|
+
n && /* @__PURE__ */ o("div", { className: l.footer, children: n })
|
|
1736
1736
|
] }) }) });
|
|
1737
1737
|
}, Do = ({ stats: e }) => {
|
|
1738
1738
|
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = ae(), i = ae();
|
|
1739
1739
|
return /* @__PURE__ */ y(_, { children: [
|
|
1740
1740
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1741
|
-
|
|
1741
|
+
L,
|
|
1742
1742
|
{
|
|
1743
|
-
header:
|
|
1743
|
+
header: N.ABOUT.TITLE_CLIENT,
|
|
1744
1744
|
className: "prose-dark dark:prose-lighter",
|
|
1745
1745
|
children: oe(n, {
|
|
1746
|
-
[
|
|
1747
|
-
[
|
|
1746
|
+
[N.ABOUT.VERSION]: "5.11.3",
|
|
1747
|
+
[N.ABOUT.BUILD_TIMESTAMP]: "12/30/2024 07:23 PM EST"
|
|
1748
1748
|
})
|
|
1749
1749
|
}
|
|
1750
1750
|
) }),
|
|
1751
1751
|
/* @__PURE__ */ o(
|
|
1752
|
-
|
|
1752
|
+
L,
|
|
1753
1753
|
{
|
|
1754
|
-
header:
|
|
1754
|
+
header: N.ABOUT.TITLE_SERVER,
|
|
1755
1755
|
className: "prose-dark dark:prose-lighter",
|
|
1756
1756
|
children: oe(i, {
|
|
1757
|
-
[
|
|
1758
|
-
[he(
|
|
1759
|
-
[he(
|
|
1757
|
+
[N.ABOUT.VERSION]: r,
|
|
1758
|
+
[he(N.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
|
|
1759
|
+
[he(N.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
|
|
1760
1760
|
})
|
|
1761
1761
|
}
|
|
1762
1762
|
)
|
|
1763
1763
|
] });
|
|
1764
|
-
},
|
|
1764
|
+
}, Vo = ({
|
|
1765
1765
|
open: e,
|
|
1766
1766
|
onOpenChange: t
|
|
1767
1767
|
}) => {
|
|
1768
|
-
const { serverStats: r } =
|
|
1768
|
+
const { serverStats: r } = P(se);
|
|
1769
1769
|
return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
|
|
1770
|
-
},
|
|
1770
|
+
}, $o = (e) => Qe(e), Fo = (e) => {
|
|
1771
1771
|
if (!e || e.length === 0)
|
|
1772
|
-
return
|
|
1772
|
+
return $t;
|
|
1773
1773
|
const t = e.filter(
|
|
1774
1774
|
(r) => {
|
|
1775
1775
|
var a, n;
|
|
@@ -1778,35 +1778,35 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1778
1778
|
).map((r) => r.message.processingTime);
|
|
1779
1779
|
return Ht({
|
|
1780
1780
|
data: t,
|
|
1781
|
-
formatter:
|
|
1781
|
+
formatter: $o
|
|
1782
1782
|
});
|
|
1783
1783
|
}, Ho = ({
|
|
1784
1784
|
isAuthenticated: e,
|
|
1785
1785
|
stats: t
|
|
1786
1786
|
}) => {
|
|
1787
|
-
const { state: r } =
|
|
1787
|
+
const { state: r } = P(se), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
|
|
1788
1788
|
return e ? /* @__PURE__ */ y(_, { children: [
|
|
1789
1789
|
r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1790
|
-
|
|
1790
|
+
L,
|
|
1791
1791
|
{
|
|
1792
|
-
header:
|
|
1792
|
+
header: N.CURRENT_STATISTICS.TITLE,
|
|
1793
1793
|
className: "prose-dark dark:prose-lighter",
|
|
1794
1794
|
children: oe(n, {
|
|
1795
|
-
[
|
|
1796
|
-
[
|
|
1797
|
-
[
|
|
1798
|
-
[
|
|
1795
|
+
[N.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
|
|
1796
|
+
[N.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
|
|
1797
|
+
[N.CURRENT_STATISTICS.REMAINING_TOKENS]: Vt.format(a),
|
|
1798
|
+
[N.CURRENT_STATISTICS.PROCESSING_TIME]: Fo(r == null ? void 0 : r.messages)
|
|
1799
1799
|
})
|
|
1800
1800
|
}
|
|
1801
1801
|
) }),
|
|
1802
1802
|
/* @__PURE__ */ o(
|
|
1803
|
-
|
|
1803
|
+
L,
|
|
1804
1804
|
{
|
|
1805
|
-
header:
|
|
1805
|
+
header: N.MAIN_STATISTICS.TITLE,
|
|
1806
1806
|
className: "prose-dark dark:prose-lighter",
|
|
1807
1807
|
children: oe(i, {
|
|
1808
|
-
[he(
|
|
1809
|
-
[
|
|
1808
|
+
[he(N.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
1809
|
+
[N.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
|
|
1810
1810
|
t.averageProcessingTimes
|
|
1811
1811
|
)
|
|
1812
1812
|
})
|
|
@@ -1824,19 +1824,19 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1824
1824
|
return H(() => {
|
|
1825
1825
|
!e || !s || (async () => {
|
|
1826
1826
|
try {
|
|
1827
|
-
const
|
|
1827
|
+
const c = await D({
|
|
1828
1828
|
accessToken: await i(),
|
|
1829
|
-
type:
|
|
1829
|
+
type: V.GET_CHATS_STATS,
|
|
1830
1830
|
params: {
|
|
1831
1831
|
userId: s.username
|
|
1832
1832
|
}
|
|
1833
1833
|
});
|
|
1834
|
-
|
|
1834
|
+
c.status === 200 && a(c.data);
|
|
1835
1835
|
} catch {
|
|
1836
1836
|
}
|
|
1837
1837
|
})();
|
|
1838
1838
|
}, [e, i, s]), /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Xe, children: /* @__PURE__ */ o(Ho, { isAuthenticated: n, stats: r }) });
|
|
1839
|
-
},
|
|
1839
|
+
}, Pt = ({
|
|
1840
1840
|
showConfirmation: e,
|
|
1841
1841
|
setShowConfirmation: t,
|
|
1842
1842
|
action: r,
|
|
@@ -1850,7 +1850,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1850
1850
|
onOpenChange: t,
|
|
1851
1851
|
title: n.title,
|
|
1852
1852
|
footer: /* @__PURE__ */ y(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1853
|
-
/* @__PURE__ */ o(
|
|
1853
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
1854
1854
|
F,
|
|
1855
1855
|
{
|
|
1856
1856
|
mode: "dark",
|
|
@@ -1862,7 +1862,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1862
1862
|
children: n.cancelAction
|
|
1863
1863
|
}
|
|
1864
1864
|
) }),
|
|
1865
|
-
/* @__PURE__ */ o(
|
|
1865
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
1866
1866
|
F,
|
|
1867
1867
|
{
|
|
1868
1868
|
mode: "dark",
|
|
@@ -1881,7 +1881,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1881
1881
|
try {
|
|
1882
1882
|
const n = await D({
|
|
1883
1883
|
accessToken: a,
|
|
1884
|
-
type:
|
|
1884
|
+
type: V.GET_CHAT,
|
|
1885
1885
|
params: {
|
|
1886
1886
|
id: e.id
|
|
1887
1887
|
}
|
|
@@ -1910,14 +1910,14 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1910
1910
|
id: 0,
|
|
1911
1911
|
timestamp: "",
|
|
1912
1912
|
message: ""
|
|
1913
|
-
}), [
|
|
1913
|
+
}), [c, g] = I(!1), { state: l, dispatch: u } = P(Je), [, p] = ce({
|
|
1914
1914
|
key: ie + Ut,
|
|
1915
|
-
initialValue:
|
|
1915
|
+
initialValue: l.sortDirection
|
|
1916
1916
|
}), b = (d) => {
|
|
1917
|
-
switch (
|
|
1917
|
+
switch (l.sortDirection) {
|
|
1918
1918
|
case U.ASC:
|
|
1919
1919
|
p(U.DESC), u({
|
|
1920
|
-
type:
|
|
1920
|
+
type: Ve,
|
|
1921
1921
|
payload: {
|
|
1922
1922
|
sortedCell: d,
|
|
1923
1923
|
sortDirection: U.DESC
|
|
@@ -1926,7 +1926,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1926
1926
|
break;
|
|
1927
1927
|
default:
|
|
1928
1928
|
p(U.ASC), u({
|
|
1929
|
-
type:
|
|
1929
|
+
type: Ve,
|
|
1930
1930
|
payload: {
|
|
1931
1931
|
sortedCell: d,
|
|
1932
1932
|
sortDirection: U.ASC
|
|
@@ -1937,22 +1937,22 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1937
1937
|
};
|
|
1938
1938
|
return /* @__PURE__ */ y(_, { children: [
|
|
1939
1939
|
/* @__PURE__ */ y(
|
|
1940
|
-
|
|
1940
|
+
Pt,
|
|
1941
1941
|
{
|
|
1942
|
-
showConfirmation:
|
|
1942
|
+
showConfirmation: c,
|
|
1943
1943
|
setShowConfirmation: g,
|
|
1944
1944
|
action: async () => {
|
|
1945
1945
|
const d = s.current;
|
|
1946
1946
|
try {
|
|
1947
1947
|
const v = await D({
|
|
1948
1948
|
accessToken: await i(),
|
|
1949
|
-
type:
|
|
1949
|
+
type: V.DELETE_CHAT,
|
|
1950
1950
|
params: {
|
|
1951
1951
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1952
1952
|
id: d.id,
|
|
1953
1953
|
limit: 1,
|
|
1954
|
-
searchString:
|
|
1955
|
-
direction:
|
|
1954
|
+
searchString: l.searchString,
|
|
1955
|
+
direction: l.sortDirection,
|
|
1956
1956
|
truncateSize: 100
|
|
1957
1957
|
}
|
|
1958
1958
|
});
|
|
@@ -1997,23 +1997,23 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
1997
1997
|
buttonClassName: "text-xs sm:text-sm",
|
|
1998
1998
|
cellId: "timestamp",
|
|
1999
1999
|
align: "left",
|
|
2000
|
-
sortDirection:
|
|
2001
|
-
sortedCell:
|
|
2000
|
+
sortDirection: l.sortDirection,
|
|
2001
|
+
sortedCell: l.sortedCell,
|
|
2002
2002
|
onClick: () => {
|
|
2003
2003
|
b("timestamp");
|
|
2004
2004
|
},
|
|
2005
2005
|
children: "Date"
|
|
2006
2006
|
}
|
|
2007
2007
|
),
|
|
2008
|
-
/* @__PURE__ */ o(
|
|
2009
|
-
/* @__PURE__ */ o(
|
|
2010
|
-
/* @__PURE__ */ o(
|
|
2008
|
+
/* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
2009
|
+
/* @__PURE__ */ o($, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2010
|
+
/* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
2011
2011
|
] }) }),
|
|
2012
2012
|
/* @__PURE__ */ o(ir, { children: e.data.map((d, v) => {
|
|
2013
|
-
var
|
|
2014
|
-
return ((
|
|
2013
|
+
var T, C;
|
|
2014
|
+
return ((T = d == null ? void 0 : d.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ y(we, { children: [
|
|
2015
2015
|
/* @__PURE__ */ o(
|
|
2016
|
-
|
|
2016
|
+
$,
|
|
2017
2017
|
{
|
|
2018
2018
|
component: "th",
|
|
2019
2019
|
scope: "row",
|
|
@@ -2022,7 +2022,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2022
2022
|
}
|
|
2023
2023
|
),
|
|
2024
2024
|
/* @__PURE__ */ o(
|
|
2025
|
-
|
|
2025
|
+
$,
|
|
2026
2026
|
{
|
|
2027
2027
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
2028
2028
|
style: {
|
|
@@ -2031,11 +2031,11 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2031
2031
|
children: d.messages.length > 0 ? (C = d.messages[0]) == null ? void 0 : C.content : ""
|
|
2032
2032
|
}
|
|
2033
2033
|
),
|
|
2034
|
-
/* @__PURE__ */ o(
|
|
2035
|
-
d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, {
|
|
2036
|
-
d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, {
|
|
2034
|
+
/* @__PURE__ */ o($, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(q, { alignHorizontal: "center", children: [
|
|
2035
|
+
d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, { size: "size-4 sm:size-5" }),
|
|
2036
|
+
d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" })
|
|
2037
2037
|
] }) }),
|
|
2038
|
-
/* @__PURE__ */ o(
|
|
2038
|
+
/* @__PURE__ */ o($, { className: "px-2", children: /* @__PURE__ */ y("div", { className: "flex justify-end gap-2", children: [
|
|
2039
2039
|
/* @__PURE__ */ o(
|
|
2040
2040
|
j,
|
|
2041
2041
|
{
|
|
@@ -2051,7 +2051,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2051
2051
|
w
|
|
2052
2052
|
);
|
|
2053
2053
|
},
|
|
2054
|
-
children: /* @__PURE__ */ o(Er, {
|
|
2054
|
+
children: /* @__PURE__ */ o(Er, { size: "size-3", monotone: !0 })
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
2057
2057
|
/* @__PURE__ */ o(
|
|
@@ -2066,15 +2066,15 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2066
2066
|
id: d.id,
|
|
2067
2067
|
timestamp: d.timestamp,
|
|
2068
2068
|
message: d.messages.length > 0 ? (w = d.messages[0]) == null ? void 0 : w.content : ""
|
|
2069
|
-
}, g(!
|
|
2069
|
+
}, g(!c);
|
|
2070
2070
|
},
|
|
2071
|
-
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(
|
|
2071
|
+
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Tr, { size: "size-3", monotone: !0 }) })
|
|
2072
2072
|
}
|
|
2073
2073
|
)
|
|
2074
2074
|
] }) })
|
|
2075
|
-
] }, `${
|
|
2075
|
+
] }, `${N.HISTORY.TITLE}-${d.id}-${v}`) : null;
|
|
2076
2076
|
}) }),
|
|
2077
|
-
/* @__PURE__ */ o(
|
|
2077
|
+
/* @__PURE__ */ o(cr, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
|
|
2078
2078
|
`${e.data.length} chat`,
|
|
2079
2079
|
e.data.length
|
|
2080
2080
|
) }) }) }) })
|
|
@@ -2093,7 +2093,7 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2093
2093
|
try {
|
|
2094
2094
|
const n = await D({
|
|
2095
2095
|
accessToken: r,
|
|
2096
|
-
type:
|
|
2096
|
+
type: V.GET_CHATS,
|
|
2097
2097
|
params: {
|
|
2098
2098
|
userId: t,
|
|
2099
2099
|
searchString: e,
|
|
@@ -2109,23 +2109,23 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2109
2109
|
}
|
|
2110
2110
|
return [];
|
|
2111
2111
|
}, Ko = ({ onOpenChange: e }) => {
|
|
2112
|
-
const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } =
|
|
2112
|
+
const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = P(se), { state: c, dispatch: g } = P(Je), [, l] = ce({
|
|
2113
2113
|
key: ie + Kt,
|
|
2114
|
-
initialValue:
|
|
2114
|
+
initialValue: c.searchString
|
|
2115
2115
|
}), [u, p] = I({
|
|
2116
2116
|
data: [],
|
|
2117
|
-
sortedDirection:
|
|
2117
|
+
sortedDirection: c.sortDirection
|
|
2118
2118
|
}), b = async (d) => {
|
|
2119
|
-
const v = await r(),
|
|
2119
|
+
const v = await r(), T = await Ze({
|
|
2120
2120
|
searchString: d,
|
|
2121
2121
|
username: a == null ? void 0 : a.username,
|
|
2122
2122
|
accessToken: v,
|
|
2123
|
-
direction:
|
|
2123
|
+
direction: c.sortDirection
|
|
2124
2124
|
});
|
|
2125
2125
|
p({
|
|
2126
|
-
data:
|
|
2127
|
-
sortedDirection:
|
|
2128
|
-
}),
|
|
2126
|
+
data: T,
|
|
2127
|
+
sortedDirection: c.sortDirection
|
|
2128
|
+
}), l(d), g({
|
|
2129
2129
|
type: Wt,
|
|
2130
2130
|
payload: { searchString: d }
|
|
2131
2131
|
});
|
|
@@ -2138,50 +2138,51 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2138
2138
|
i.current || (async () => {
|
|
2139
2139
|
i.current = !0;
|
|
2140
2140
|
const d = await r(), v = await Ze({
|
|
2141
|
-
searchString:
|
|
2141
|
+
searchString: c.searchString,
|
|
2142
2142
|
username: a == null ? void 0 : a.username,
|
|
2143
2143
|
accessToken: d,
|
|
2144
|
-
direction:
|
|
2144
|
+
direction: c.sortDirection
|
|
2145
2145
|
});
|
|
2146
2146
|
p({
|
|
2147
2147
|
data: v,
|
|
2148
|
-
sortedDirection:
|
|
2148
|
+
sortedDirection: c.sortDirection
|
|
2149
2149
|
});
|
|
2150
2150
|
})();
|
|
2151
2151
|
}), H(() => {
|
|
2152
|
-
if (
|
|
2153
|
-
const d = [...u.data].sort((v,
|
|
2154
|
-
if (
|
|
2155
|
-
const C = new Date(v[
|
|
2156
|
-
return
|
|
2152
|
+
if (c.sortDirection !== u.sortedDirection) {
|
|
2153
|
+
const d = [...u.data].sort((v, T) => {
|
|
2154
|
+
if (c.sortedCell === "timestamp") {
|
|
2155
|
+
const C = new Date(v[c.sortedCell]).getTime(), w = new Date(T[c.sortedCell]).getTime();
|
|
2156
|
+
return c.sortDirection === U.ASC ? C - w : w - C;
|
|
2157
2157
|
}
|
|
2158
2158
|
return 0;
|
|
2159
2159
|
});
|
|
2160
2160
|
p({
|
|
2161
2161
|
data: d,
|
|
2162
|
-
sortedDirection:
|
|
2162
|
+
sortedDirection: c.sortDirection
|
|
2163
2163
|
});
|
|
2164
2164
|
}
|
|
2165
|
-
}, [u,
|
|
2165
|
+
}, [u, c]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
|
|
2166
2166
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: m, children: /* @__PURE__ */ o(
|
|
2167
2167
|
xe,
|
|
2168
2168
|
{
|
|
2169
|
+
autoCapitalize: "off",
|
|
2169
2170
|
autoComplete: "off",
|
|
2170
2171
|
autoCorrect: "off",
|
|
2171
2172
|
ref: n,
|
|
2172
|
-
defaultValue:
|
|
2173
|
+
defaultValue: c.searchString,
|
|
2173
2174
|
focusMode: "light",
|
|
2174
2175
|
mode: "dark",
|
|
2175
2176
|
name: "Search",
|
|
2176
2177
|
label: "Search",
|
|
2177
2178
|
onChange: h,
|
|
2178
2179
|
className: "mt-2 mb-2",
|
|
2179
|
-
...
|
|
2180
|
+
...c.searchString && {
|
|
2180
2181
|
rightElement: /* @__PURE__ */ o(
|
|
2181
2182
|
F,
|
|
2182
2183
|
{
|
|
2183
2184
|
type: "button",
|
|
2184
|
-
disabled: !
|
|
2185
|
+
disabled: !c.searchString,
|
|
2185
2186
|
mode: "light",
|
|
2186
2187
|
focusMode: "light",
|
|
2187
2188
|
noBorder: !0,
|
|
@@ -2211,13 +2212,13 @@ const ee = "panel", ue = "messagebox", zo = ({
|
|
|
2211
2212
|
onOpenChange: t
|
|
2212
2213
|
}) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { onOpenChange: t }) });
|
|
2213
2214
|
/*!
|
|
2214
|
-
@versini/ui-toggle v2.0.
|
|
2215
|
+
@versini/ui-toggle v2.0.4
|
|
2215
2216
|
© 2024 gizmette.com
|
|
2216
2217
|
*/
|
|
2217
2218
|
try {
|
|
2218
2219
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
2219
|
-
version: "2.0.
|
|
2220
|
-
buildTime: "12/30/2024
|
|
2220
|
+
version: "2.0.4",
|
|
2221
|
+
buildTime: "12/30/2024 05:27 PM EST",
|
|
2221
2222
|
homepage: "https://github.com/aversini/ui-components",
|
|
2222
2223
|
license: "MIT"
|
|
2223
2224
|
});
|
|
@@ -2300,51 +2301,51 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2300
2301
|
name: n,
|
|
2301
2302
|
mode: i = "system",
|
|
2302
2303
|
focusMode: s = "system",
|
|
2303
|
-
className:
|
|
2304
|
+
className: c,
|
|
2304
2305
|
noBorder: g = !1
|
|
2305
2306
|
}) => {
|
|
2306
|
-
const
|
|
2307
|
+
const l = ra({
|
|
2307
2308
|
mode: i,
|
|
2308
2309
|
focusMode: s,
|
|
2309
2310
|
labelHidden: a,
|
|
2310
|
-
className:
|
|
2311
|
+
className: c,
|
|
2311
2312
|
noBorder: g
|
|
2312
2313
|
}), u = (p) => {
|
|
2313
2314
|
t == null || t(p.target.checked);
|
|
2314
2315
|
};
|
|
2315
|
-
return /* @__PURE__ */ y("label", { className:
|
|
2316
|
+
return /* @__PURE__ */ y("label", { className: l.wrapper, children: [
|
|
2316
2317
|
/* @__PURE__ */ o(
|
|
2317
2318
|
"input",
|
|
2318
2319
|
{
|
|
2319
2320
|
name: n,
|
|
2320
2321
|
checked: e,
|
|
2321
2322
|
type: "checkbox",
|
|
2322
|
-
className:
|
|
2323
|
+
className: l.input,
|
|
2323
2324
|
onChange: u
|
|
2324
2325
|
}
|
|
2325
2326
|
),
|
|
2326
|
-
/* @__PURE__ */ o("div", { className:
|
|
2327
|
-
/* @__PURE__ */ o("span", { className:
|
|
2327
|
+
/* @__PURE__ */ o("div", { className: l.toggle }),
|
|
2328
|
+
/* @__PURE__ */ o("span", { className: l.label, children: r })
|
|
2328
2329
|
] });
|
|
2329
2330
|
}, oa = ({
|
|
2330
2331
|
open: e,
|
|
2331
2332
|
onOpenChange: t
|
|
2332
2333
|
}) => {
|
|
2333
|
-
const { dispatch: r } =
|
|
2334
|
+
const { dispatch: r } = P(se), { getAccessToken: a, user: n } = W(), [i, s] = I({
|
|
2334
2335
|
loaded: !1,
|
|
2335
2336
|
instructions: "",
|
|
2336
2337
|
loadingLocation: !1,
|
|
2337
2338
|
location: "",
|
|
2338
2339
|
engine: te
|
|
2339
|
-
}), [
|
|
2340
|
+
}), [c, g] = ce({
|
|
2340
2341
|
key: ie + tt,
|
|
2341
2342
|
initialValue: !1
|
|
2342
|
-
}),
|
|
2343
|
+
}), l = async (h) => {
|
|
2343
2344
|
h.preventDefault();
|
|
2344
2345
|
try {
|
|
2345
2346
|
await D({
|
|
2346
2347
|
accessToken: await a(),
|
|
2347
|
-
type:
|
|
2348
|
+
type: V.SET_USER_PREFERENCES,
|
|
2348
2349
|
params: {
|
|
2349
2350
|
user: n == null ? void 0 : n.username,
|
|
2350
2351
|
instructions: i.instructions,
|
|
@@ -2368,13 +2369,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2368
2369
|
try {
|
|
2369
2370
|
const h = Date.now(), m = await Qt(), d = await D({
|
|
2370
2371
|
accessToken: await a(),
|
|
2371
|
-
type:
|
|
2372
|
+
type: V.GET_LOCATION,
|
|
2372
2373
|
params: {
|
|
2373
2374
|
latitude: m.latitude,
|
|
2374
2375
|
longitude: m.longitude
|
|
2375
2376
|
}
|
|
2376
|
-
}),
|
|
2377
|
-
if (
|
|
2377
|
+
}), T = Date.now() - h;
|
|
2378
|
+
if (T < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - T)), d.status === 200) {
|
|
2378
2379
|
const { city: C, state: w, country: S, displayName: A } = d.data, M = C && w && S ? `${C}, ${w}, ${S}` : A;
|
|
2379
2380
|
s((R) => ({
|
|
2380
2381
|
...R,
|
|
@@ -2394,12 +2395,12 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2394
2395
|
}, p = (h) => {
|
|
2395
2396
|
s((m) => ({
|
|
2396
2397
|
...m,
|
|
2397
|
-
engine: h ?
|
|
2398
|
+
engine: h ? Te : me
|
|
2398
2399
|
}));
|
|
2399
2400
|
}, b = (h) => {
|
|
2400
2401
|
s((m) => ({
|
|
2401
2402
|
...m,
|
|
2402
|
-
engine: h ? me :
|
|
2403
|
+
engine: h ? me : Te
|
|
2403
2404
|
}));
|
|
2404
2405
|
};
|
|
2405
2406
|
return H(() => {
|
|
@@ -2417,7 +2418,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2417
2418
|
try {
|
|
2418
2419
|
const h = await D({
|
|
2419
2420
|
accessToken: await a(),
|
|
2420
|
-
type:
|
|
2421
|
+
type: V.GET_USER_PREFERENCES,
|
|
2421
2422
|
params: {
|
|
2422
2423
|
user: n.username
|
|
2423
2424
|
}
|
|
@@ -2445,7 +2446,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2445
2446
|
alignHorizontal: "flex-end",
|
|
2446
2447
|
className: "pb-8 sm:pb-0",
|
|
2447
2448
|
children: [
|
|
2448
|
-
/* @__PURE__ */ o(
|
|
2449
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
2449
2450
|
F,
|
|
2450
2451
|
{
|
|
2451
2452
|
mode: "dark",
|
|
@@ -2457,14 +2458,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2457
2458
|
children: "Cancel"
|
|
2458
2459
|
}
|
|
2459
2460
|
) }),
|
|
2460
|
-
/* @__PURE__ */ o(
|
|
2461
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
2461
2462
|
F,
|
|
2462
2463
|
{
|
|
2463
2464
|
mode: "dark",
|
|
2464
2465
|
variant: "danger",
|
|
2465
2466
|
focusMode: "light",
|
|
2466
2467
|
onClick: async (h) => {
|
|
2467
|
-
t(!1), await
|
|
2468
|
+
t(!1), await l(h);
|
|
2468
2469
|
},
|
|
2469
2470
|
children: "Save"
|
|
2470
2471
|
}
|
|
@@ -2474,7 +2475,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2474
2475
|
),
|
|
2475
2476
|
children: /* @__PURE__ */ y(_, { children: [
|
|
2476
2477
|
/* @__PURE__ */ y(
|
|
2477
|
-
|
|
2478
|
+
L,
|
|
2478
2479
|
{
|
|
2479
2480
|
header: "AI Engine",
|
|
2480
2481
|
className: "prose-dark dark:prose-lighter",
|
|
@@ -2487,7 +2488,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2487
2488
|
label: "OpenAI",
|
|
2488
2489
|
name: "OpenAI",
|
|
2489
2490
|
onChange: p,
|
|
2490
|
-
checked: i.engine ===
|
|
2491
|
+
checked: i.engine === Te
|
|
2491
2492
|
}
|
|
2492
2493
|
),
|
|
2493
2494
|
/* @__PURE__ */ o(
|
|
@@ -2510,7 +2511,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2510
2511
|
label: "Show Quick Engine Toggle",
|
|
2511
2512
|
name: "show-toggle-engine-menu",
|
|
2512
2513
|
onChange: g,
|
|
2513
|
-
checked:
|
|
2514
|
+
checked: c
|
|
2514
2515
|
}
|
|
2515
2516
|
),
|
|
2516
2517
|
/* @__PURE__ */ o("p", { className: "text-xs", children: "This option introduces a new menu on the left side of the screen, enabling you to quickly switch between engines." })
|
|
@@ -2518,7 +2519,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2518
2519
|
}
|
|
2519
2520
|
),
|
|
2520
2521
|
/* @__PURE__ */ y(
|
|
2521
|
-
|
|
2522
|
+
L,
|
|
2522
2523
|
{
|
|
2523
2524
|
header: "Custom Instructions",
|
|
2524
2525
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2552,7 +2553,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2552
2553
|
}
|
|
2553
2554
|
),
|
|
2554
2555
|
/* @__PURE__ */ y(
|
|
2555
|
-
|
|
2556
|
+
L,
|
|
2556
2557
|
{
|
|
2557
2558
|
header: "Location",
|
|
2558
2559
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
@@ -2596,7 +2597,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2596
2597
|
open: e,
|
|
2597
2598
|
onOpenChange: t
|
|
2598
2599
|
}) => {
|
|
2599
|
-
const { state: r, dispatch: a } =
|
|
2600
|
+
const { state: r, dispatch: a } = P(Xt), { getAccessToken: n, user: i } = W(), [s, c] = I({
|
|
2600
2601
|
tags: [...r.tags]
|
|
2601
2602
|
}), g = ({
|
|
2602
2603
|
slot: u,
|
|
@@ -2604,27 +2605,27 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2604
2605
|
label: b,
|
|
2605
2606
|
content: h
|
|
2606
2607
|
}) => {
|
|
2607
|
-
|
|
2608
|
+
c((m) => {
|
|
2608
2609
|
const d = m.tags, v = {
|
|
2609
2610
|
slot: u,
|
|
2610
2611
|
label: b,
|
|
2611
2612
|
content: h,
|
|
2612
2613
|
enabled: p
|
|
2613
|
-
},
|
|
2614
|
-
return
|
|
2614
|
+
}, T = d.findIndex((C) => C.slot === u);
|
|
2615
|
+
return T === -1 ? {
|
|
2615
2616
|
...m,
|
|
2616
2617
|
tags: [...d, { ...v, slot: u }]
|
|
2617
|
-
} : (d[
|
|
2618
|
+
} : (d[T] = v, {
|
|
2618
2619
|
...m,
|
|
2619
2620
|
tags: [...d]
|
|
2620
2621
|
});
|
|
2621
2622
|
});
|
|
2622
|
-
},
|
|
2623
|
+
}, l = async (u) => {
|
|
2623
2624
|
u.preventDefault();
|
|
2624
2625
|
try {
|
|
2625
2626
|
await D({
|
|
2626
2627
|
accessToken: await n(),
|
|
2627
|
-
type:
|
|
2628
|
+
type: V.SET_USER_PREFERENCES,
|
|
2628
2629
|
params: {
|
|
2629
2630
|
user: i == null ? void 0 : i.username,
|
|
2630
2631
|
tags: s.tags
|
|
@@ -2651,7 +2652,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2651
2652
|
alignHorizontal: "flex-end",
|
|
2652
2653
|
className: "pb-8 sm:pb-0",
|
|
2653
2654
|
children: [
|
|
2654
|
-
/* @__PURE__ */ o(
|
|
2655
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
2655
2656
|
F,
|
|
2656
2657
|
{
|
|
2657
2658
|
mode: "dark",
|
|
@@ -2663,14 +2664,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2663
2664
|
children: "Cancel"
|
|
2664
2665
|
}
|
|
2665
2666
|
) }),
|
|
2666
|
-
/* @__PURE__ */ o(
|
|
2667
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o(
|
|
2667
2668
|
F,
|
|
2668
2669
|
{
|
|
2669
2670
|
mode: "dark",
|
|
2670
2671
|
variant: "danger",
|
|
2671
2672
|
focusMode: "light",
|
|
2672
2673
|
onClick: async (u) => {
|
|
2673
|
-
t(!1), await
|
|
2674
|
+
t(!1), await l(u);
|
|
2674
2675
|
},
|
|
2675
2676
|
children: "Save"
|
|
2676
2677
|
}
|
|
@@ -2681,13 +2682,13 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2681
2682
|
children: [
|
|
2682
2683
|
/* @__PURE__ */ o("p", { children: Jt }),
|
|
2683
2684
|
s.tags && s.tags.map((u) => /* @__PURE__ */ y(
|
|
2684
|
-
|
|
2685
|
+
L,
|
|
2685
2686
|
{
|
|
2686
2687
|
header: `Tag ${u.slot + 1}`,
|
|
2687
2688
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2688
2689
|
children: [
|
|
2689
2690
|
/* @__PURE__ */ y(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2690
|
-
/* @__PURE__ */ o(
|
|
2691
|
+
/* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2691
2692
|
xe,
|
|
2692
2693
|
{
|
|
2693
2694
|
label: "Label",
|
|
@@ -2703,7 +2704,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2703
2704
|
}
|
|
2704
2705
|
}
|
|
2705
2706
|
) }),
|
|
2706
|
-
/* @__PURE__ */ o(
|
|
2707
|
+
/* @__PURE__ */ o(z, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2707
2708
|
xe,
|
|
2708
2709
|
{
|
|
2709
2710
|
label: "Content",
|
|
@@ -2746,41 +2747,41 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2746
2747
|
}
|
|
2747
2748
|
);
|
|
2748
2749
|
}, na = () => {
|
|
2749
|
-
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] =
|
|
2750
|
+
const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = ce({
|
|
2750
2751
|
key: ie + tr,
|
|
2751
2752
|
initialValue: !1
|
|
2752
|
-
}), [s,
|
|
2753
|
+
}), [s, c] = I(!1), [g, l] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
|
|
2753
2754
|
i(d);
|
|
2754
2755
|
}, h = () => {
|
|
2755
|
-
|
|
2756
|
+
c(!s);
|
|
2756
2757
|
}, m = () => {
|
|
2757
|
-
|
|
2758
|
+
l(!g);
|
|
2758
2759
|
};
|
|
2759
2760
|
return e && p ? /* @__PURE__ */ y(_, { children: [
|
|
2760
2761
|
s && /* @__PURE__ */ o(
|
|
2761
2762
|
oa,
|
|
2762
2763
|
{
|
|
2763
2764
|
open: s,
|
|
2764
|
-
onOpenChange:
|
|
2765
|
+
onOpenChange: c
|
|
2765
2766
|
}
|
|
2766
2767
|
),
|
|
2767
|
-
g && /* @__PURE__ */ o(aa, { open: g, onOpenChange:
|
|
2768
|
+
g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: l }),
|
|
2768
2769
|
/* @__PURE__ */ y(
|
|
2769
|
-
|
|
2770
|
+
L,
|
|
2770
2771
|
{
|
|
2771
|
-
header:
|
|
2772
|
+
header: N.PREFERENCES.TITLE,
|
|
2772
2773
|
className: "prose-dark dark:prose-lighter",
|
|
2773
2774
|
children: [
|
|
2774
2775
|
oe(u, {
|
|
2775
|
-
[
|
|
2776
|
-
[
|
|
2777
|
-
[
|
|
2776
|
+
[N.PREFERENCES.NAME]: p,
|
|
2777
|
+
[N.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
|
|
2778
|
+
[N.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
|
|
2778
2779
|
re,
|
|
2779
2780
|
{
|
|
2780
2781
|
noBorder: !0,
|
|
2781
2782
|
labelHidden: !0,
|
|
2782
|
-
label:
|
|
2783
|
-
name:
|
|
2783
|
+
label: N.PREFERENCES.ENGINE_DETAILS,
|
|
2784
|
+
name: N.PREFERENCES.ENGINE_DETAILS,
|
|
2784
2785
|
onChange: b,
|
|
2785
2786
|
checked: n
|
|
2786
2787
|
}
|
|
@@ -2793,7 +2794,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2793
2794
|
size: "small",
|
|
2794
2795
|
onClick: h,
|
|
2795
2796
|
labelLeft: "Engine Fine Tuning",
|
|
2796
|
-
children: /* @__PURE__ */ o(Ge, {
|
|
2797
|
+
children: /* @__PURE__ */ o(Ge, { size: "size-3", monotone: !0 })
|
|
2797
2798
|
}
|
|
2798
2799
|
),
|
|
2799
2800
|
/* @__PURE__ */ o(
|
|
@@ -2803,30 +2804,30 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2803
2804
|
size: "small",
|
|
2804
2805
|
onClick: m,
|
|
2805
2806
|
labelLeft: "Tags",
|
|
2806
|
-
children: /* @__PURE__ */ o(Ge, {
|
|
2807
|
+
children: /* @__PURE__ */ o(Ge, { size: "size-3", monotone: !0 })
|
|
2807
2808
|
}
|
|
2808
2809
|
)
|
|
2809
2810
|
]
|
|
2810
2811
|
}
|
|
2811
2812
|
),
|
|
2812
2813
|
a !== rr.PASSKEY && /* @__PURE__ */ y(
|
|
2813
|
-
|
|
2814
|
+
L,
|
|
2814
2815
|
{
|
|
2815
2816
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2816
2817
|
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(q, { columnGap: 3, alignVertical: "center", children: [
|
|
2817
|
-
/* @__PURE__ */ o(
|
|
2818
|
-
/* @__PURE__ */ o(
|
|
2818
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
|
|
2819
|
+
/* @__PURE__ */ o(z, { children: /* @__PURE__ */ o("div", { children: N.PREFERENCES.PASSKEY_TITLE }) })
|
|
2819
2820
|
] }) }),
|
|
2820
2821
|
children: [
|
|
2821
|
-
/* @__PURE__ */ o("p", { children:
|
|
2822
|
+
/* @__PURE__ */ o("p", { children: N.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2822
2823
|
/* @__PURE__ */ o(
|
|
2823
2824
|
j,
|
|
2824
2825
|
{
|
|
2825
2826
|
size: "small",
|
|
2826
2827
|
className: "mt-2",
|
|
2827
2828
|
onClick: r,
|
|
2828
|
-
labelLeft:
|
|
2829
|
-
children: /* @__PURE__ */ o(
|
|
2829
|
+
labelLeft: N.PREFERENCES.PASSKEY_BUTTON,
|
|
2830
|
+
children: /* @__PURE__ */ o($e, { size: "size-5", monotone: !0 })
|
|
2830
2831
|
}
|
|
2831
2832
|
)
|
|
2832
2833
|
]
|
|
@@ -2837,15 +2838,15 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2837
2838
|
open: e,
|
|
2838
2839
|
onOpenChange: t
|
|
2839
2840
|
}) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: or, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
|
|
2840
|
-
const { state: e, dispatch: t, serverStats: r } =
|
|
2841
|
+
const { state: e, dispatch: t, serverStats: r } = P(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
|
|
2841
2842
|
key: ie + tt,
|
|
2842
2843
|
initialValue: !1
|
|
2843
|
-
}), { logout: v, getAccessToken:
|
|
2844
|
+
}), { logout: v, getAccessToken: T, user: C } = W(), w = () => {
|
|
2844
2845
|
s(!i);
|
|
2845
2846
|
}, S = () => {
|
|
2846
|
-
g(!
|
|
2847
|
+
g(!c);
|
|
2847
2848
|
}, A = () => {
|
|
2848
|
-
u(!
|
|
2849
|
+
u(!l);
|
|
2849
2850
|
}, M = () => {
|
|
2850
2851
|
b(!p);
|
|
2851
2852
|
}, R = () => {
|
|
@@ -2855,7 +2856,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2855
2856
|
e && e.engine && e.engine !== a && n(e.engine);
|
|
2856
2857
|
}, [e, a]), /* @__PURE__ */ y(_, { children: [
|
|
2857
2858
|
/* @__PURE__ */ o(
|
|
2858
|
-
|
|
2859
|
+
Pt,
|
|
2859
2860
|
{
|
|
2860
2861
|
showConfirmation: h,
|
|
2861
2862
|
setShowConfirmation: m,
|
|
@@ -2869,9 +2870,9 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2869
2870
|
}
|
|
2870
2871
|
),
|
|
2871
2872
|
/* @__PURE__ */ o(sa, { open: i, onOpenChange: s }),
|
|
2872
|
-
/* @__PURE__ */ o(Go, { open:
|
|
2873
|
-
/* @__PURE__ */ o(Wo, { open:
|
|
2874
|
-
/* @__PURE__ */ o(
|
|
2873
|
+
/* @__PURE__ */ o(Go, { open: c, onOpenChange: g }),
|
|
2874
|
+
/* @__PURE__ */ o(Wo, { open: l, onOpenChange: u }),
|
|
2875
|
+
/* @__PURE__ */ o(Vo, { open: p, onOpenChange: b }),
|
|
2875
2876
|
/* @__PURE__ */ y("div", { className: "relative", children: [
|
|
2876
2877
|
d && r && /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ o(
|
|
2877
2878
|
Ie,
|
|
@@ -2891,8 +2892,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2891
2892
|
if (x)
|
|
2892
2893
|
try {
|
|
2893
2894
|
await D({
|
|
2894
|
-
accessToken: await
|
|
2895
|
-
type:
|
|
2895
|
+
accessToken: await T(),
|
|
2896
|
+
type: V.SET_USER_PREFERENCES,
|
|
2896
2897
|
params: {
|
|
2897
2898
|
user: C == null ? void 0 : C.username,
|
|
2898
2899
|
engine: x
|
|
@@ -2950,7 +2951,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
|
|
|
2950
2951
|
{
|
|
2951
2952
|
label: "About",
|
|
2952
2953
|
onClick: M,
|
|
2953
|
-
icon: /* @__PURE__ */ o(
|
|
2954
|
+
icon: /* @__PURE__ */ o(Nr, {})
|
|
2954
2955
|
}
|
|
2955
2956
|
),
|
|
2956
2957
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(_, { children: [
|