@versini/sassysaint 5.5.9 → 5.5.10
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.niFY4VeQ.js +3438 -0
- package/dist/chunks/{LazyHeader.DmyF2sJC.js → HeaderToolbar.C1WmgiON.js} +553 -527
- package/dist/chunks/{LazyMarkdownWithExtra.8KBaWeLe.js → MarkdownWithExtra.Cw9h4M2_.js} +8 -8
- package/dist/chunks/{LazyMessageAssistant.DLY895fQ.js → MessageAssistant.BhHWTODt.js} +13 -14
- package/dist/chunks/{index.CFKzlMOQ.js → index.ooLgUBkm.js} +691 -645
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +4 -4
- package/dist/chunks/LazyApp.CFM3xjO9.js +0 -1680
- package/dist/chunks/index.DPKX3b_X.js +0 -1623
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as k, Fragment as M } from "react/jsx-runtime";
|
|
2
|
-
import { g as z, R as L, CARDS as E, renderDataAsList as ce, pluralize as pe, ABOUT_TITLE as
|
|
3
|
-
import { AppContext as ge, HistoryContext as
|
|
2
|
+
import { g as z, R as L, CARDS as E, renderDataAsList as ce, pluralize as pe, ABOUT_TITLE as $t, L as H, j as A, C as F, un as X, LOCAL_STORAGE_PREFIX as ue, LOCAL_STORAGE_SORT as Dt, P as Q, ACTION_RESET as Ze, ACTION_RESTORE as Vt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Ft, ye as Ee, ACTION_SEARCH as Ht, debounce as Gt, HISTORY_TITLE as Ut, M as jt, z as Fe, DEFAULT_AI_ENGINE as le, numberFormatter as Kt, durationFormatter as Qe, NA as Wt, ROLE_ASSISTANT as Yt, extractAverage as qt, GPT4_MAX_TOKENS as Xt, PROFILE_TITLE as Zt, TAGS_DESCRIPTION as Qt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_ENGINE_TOGGLE as Je, LOCAL_STORAGE_CHAT_DETAILS as er, SETTINGS_TITLE as tr, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as Z, APP_NAME as rr, ACTION_ENGINE as et, getCurrentGeoLocation as or, LOG_OUT as He } from "./index.ooLgUBkm.js";
|
|
3
|
+
import { AppContext as ge, HistoryContext as tt, E as me, ge as ar, he as nr, ue as Ce, ke as sr, de as V, me as ir, be as cr, serviceCall as $, SERVICE_TYPES as D, _ as Y, TagsContext as lr, Fe as Ge, NewChatButton as dr } from "./App.niFY4VeQ.js";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import I, { useId as
|
|
5
|
+
import I, { useId as ze, forwardRef as rt, useState as S, useRef as J, useContext as P, useEffect as G } from "react";
|
|
6
6
|
import w from "clsx";
|
|
7
|
-
import { useFloatingTree as
|
|
8
|
-
const
|
|
7
|
+
import { useFloatingTree as ot, useFloatingNodeId as ur, useListItem as at, useFloating as nt, offset as mr, flip as hr, shift as gr, autoUpdate as fr, useClick as st, useRole as it, useDismiss as ct, useListNavigation as pr, useTypeahead as br, useInteractions as lt, useMergeRefs as Le, FloatingNode as vr, FloatingList as yr, FloatingPortal as dt, FloatingFocusManager as ut, FloatingTree as kr, FloatingOverlay as wr } from "@floating-ui/react";
|
|
8
|
+
const mt = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
title: r,
|
|
@@ -22,7 +22,7 @@ const ut = ({
|
|
|
22
22
|
...n,
|
|
23
23
|
children: /* @__PURE__ */ o("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" })
|
|
24
24
|
}
|
|
25
|
-
),
|
|
25
|
+
), Tr = ({
|
|
26
26
|
className: e,
|
|
27
27
|
viewBox: t,
|
|
28
28
|
title: r,
|
|
@@ -48,7 +48,7 @@ const ut = ({
|
|
|
48
48
|
/* @__PURE__ */ o("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" })
|
|
49
49
|
]
|
|
50
50
|
}
|
|
51
|
-
),
|
|
51
|
+
), Nr = ({
|
|
52
52
|
className: e,
|
|
53
53
|
viewBox: t,
|
|
54
54
|
title: r,
|
|
@@ -74,7 +74,7 @@ const ut = ({
|
|
|
74
74
|
/* @__PURE__ */ o("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8z" })
|
|
75
75
|
]
|
|
76
76
|
}
|
|
77
|
-
),
|
|
77
|
+
), Cr = ({
|
|
78
78
|
className: e,
|
|
79
79
|
viewBox: t,
|
|
80
80
|
title: r,
|
|
@@ -126,7 +126,7 @@ const ut = ({
|
|
|
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
|
+
), Er = ({
|
|
130
130
|
className: e,
|
|
131
131
|
viewBox: t,
|
|
132
132
|
title: r,
|
|
@@ -152,7 +152,7 @@ const ut = ({
|
|
|
152
152
|
/* @__PURE__ */ o("path", { d: "M256 128a32 32 0 1 1 0 64 32 32 0 1 1 0-64zM192 248c0-13.3 10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h24V272H216c-13.3 0-24-10.7-24-24z" })
|
|
153
153
|
]
|
|
154
154
|
}
|
|
155
|
-
),
|
|
155
|
+
), ht = ({
|
|
156
156
|
className: e,
|
|
157
157
|
viewBox: t,
|
|
158
158
|
title: r,
|
|
@@ -175,7 +175,7 @@ const ut = ({
|
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
177
|
}
|
|
178
|
-
),
|
|
178
|
+
), Ir = ({
|
|
179
179
|
className: e,
|
|
180
180
|
viewBox: t,
|
|
181
181
|
title: r,
|
|
@@ -201,7 +201,7 @@ const ut = ({
|
|
|
201
201
|
/* @__PURE__ */ o("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16H272c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80H144z" })
|
|
202
202
|
]
|
|
203
203
|
}
|
|
204
|
-
),
|
|
204
|
+
), Sr = ({
|
|
205
205
|
className: e,
|
|
206
206
|
viewBox: t,
|
|
207
207
|
title: r,
|
|
@@ -227,7 +227,7 @@ const ut = ({
|
|
|
227
227
|
/* @__PURE__ */ o("path", { d: "M64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H64zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32z" })
|
|
228
228
|
]
|
|
229
229
|
}
|
|
230
|
-
),
|
|
230
|
+
), _r = ({
|
|
231
231
|
className: e,
|
|
232
232
|
viewBox: t,
|
|
233
233
|
title: r,
|
|
@@ -244,7 +244,7 @@ const ut = ({
|
|
|
244
244
|
...n,
|
|
245
245
|
children: /* @__PURE__ */ o("path", { d: "M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z" })
|
|
246
246
|
}
|
|
247
|
-
),
|
|
247
|
+
), Rr = ({
|
|
248
248
|
className: e,
|
|
249
249
|
viewBox: t,
|
|
250
250
|
title: r,
|
|
@@ -279,9 +279,9 @@ const ut = ({
|
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
281
|
function de(e) {
|
|
282
|
-
return
|
|
282
|
+
return ze();
|
|
283
283
|
}
|
|
284
|
-
const
|
|
284
|
+
const Ie = g.createContext({
|
|
285
285
|
getItemProps: () => ({}),
|
|
286
286
|
activeIndex: null,
|
|
287
287
|
/* v8 ignore next 2 */
|
|
@@ -290,7 +290,7 @@ const Ee = g.createContext({
|
|
|
290
290
|
setHasFocusInside: () => {
|
|
291
291
|
},
|
|
292
292
|
isOpen: !1
|
|
293
|
-
}),
|
|
293
|
+
}), Ue = (e) => {
|
|
294
294
|
if (typeof e == "string")
|
|
295
295
|
return e;
|
|
296
296
|
if (typeof e == "function")
|
|
@@ -301,7 +301,7 @@ const Ee = g.createContext({
|
|
|
301
301
|
return t.displayName || t.name || "Component";
|
|
302
302
|
}
|
|
303
303
|
return "Element";
|
|
304
|
-
},
|
|
304
|
+
}, gt = rt(
|
|
305
305
|
({
|
|
306
306
|
trigger: e,
|
|
307
307
|
children: t,
|
|
@@ -312,7 +312,7 @@ const Ee = g.createContext({
|
|
|
312
312
|
focusMode: i = "system",
|
|
313
313
|
...c
|
|
314
314
|
}, m) => {
|
|
315
|
-
const [l, d] = S(!1), [f, p] = S(!1), [b, h] = S(null), u = J([]), v = J([]), T = P(
|
|
315
|
+
const [l, d] = S(!1), [f, p] = S(!1), [b, h] = S(null), u = J([]), v = J([]), T = P(Ie), N = ot(), y = ur(), x = at(), { floatingStyles: _, refs: B, context: R } = nt({
|
|
316
316
|
nodeId: y,
|
|
317
317
|
open: l,
|
|
318
318
|
onOpenChange: (ae) => {
|
|
@@ -320,34 +320,34 @@ const Ee = g.createContext({
|
|
|
320
320
|
},
|
|
321
321
|
placement: a,
|
|
322
322
|
strategy: "fixed",
|
|
323
|
-
middleware: [
|
|
324
|
-
whileElementsMounted:
|
|
325
|
-
}), C =
|
|
323
|
+
middleware: [mr({ mainAxis: 10 }), hr(), gr()],
|
|
324
|
+
whileElementsMounted: fr
|
|
325
|
+
}), C = st(R, {
|
|
326
326
|
event: "mousedown",
|
|
327
327
|
toggle: !0,
|
|
328
328
|
ignoreMouse: !1
|
|
329
|
-
}), U =
|
|
329
|
+
}), U = it(R, { role: "menu" }), j = ct(R, { bubbles: !0 }), K = pr(R, {
|
|
330
330
|
listRef: u,
|
|
331
331
|
activeIndex: b,
|
|
332
332
|
nested: !1,
|
|
333
333
|
onNavigate: h,
|
|
334
334
|
loop: !0
|
|
335
|
-
}), re =
|
|
335
|
+
}), re = br(R, {
|
|
336
336
|
listRef: v,
|
|
337
337
|
onMatch: l ? h : void 0,
|
|
338
338
|
activeIndex: b
|
|
339
|
-
}), { getReferenceProps: oe, getFloatingProps:
|
|
340
|
-
noInternalClick:
|
|
339
|
+
}), { getReferenceProps: oe, getFloatingProps: Ne, getItemProps: O } = lt([C, U, j, K, re]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
|
|
340
|
+
noInternalClick: De,
|
|
341
341
|
focusMode: i,
|
|
342
342
|
mode: s
|
|
343
|
-
} : {},
|
|
343
|
+
} : {}, Ot = I.cloneElement(
|
|
344
344
|
e,
|
|
345
345
|
{
|
|
346
|
-
...
|
|
346
|
+
...Bt,
|
|
347
347
|
"aria-label": r,
|
|
348
348
|
"data-open": l ? "" : void 0,
|
|
349
349
|
"data-focus-inside": f ? "" : void 0,
|
|
350
|
-
ref:
|
|
350
|
+
ref: Le([B.setReference, x.ref, m]),
|
|
351
351
|
...oe(
|
|
352
352
|
T.getItemProps({
|
|
353
353
|
...c
|
|
@@ -356,20 +356,20 @@ const Ee = g.createContext({
|
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
358
|
return G(() => {
|
|
359
|
-
if (!
|
|
359
|
+
if (!N)
|
|
360
360
|
return;
|
|
361
361
|
function ae() {
|
|
362
362
|
d(!1), n == null || n(!1);
|
|
363
363
|
}
|
|
364
|
-
return
|
|
365
|
-
|
|
364
|
+
return N.events.on("click", ae), () => {
|
|
365
|
+
N.events.off("click", ae);
|
|
366
366
|
};
|
|
367
|
-
}, [
|
|
368
|
-
l &&
|
|
369
|
-
}, [
|
|
370
|
-
|
|
367
|
+
}, [N, n]), G(() => {
|
|
368
|
+
l && N && N.events.emit("menuopen", { nodeId: y });
|
|
369
|
+
}, [N, l, y]), /* @__PURE__ */ k(vr, { id: y, children: [
|
|
370
|
+
Ot,
|
|
371
371
|
/* @__PURE__ */ o(
|
|
372
|
-
|
|
372
|
+
Ie.Provider,
|
|
373
373
|
{
|
|
374
374
|
value: {
|
|
375
375
|
activeIndex: b,
|
|
@@ -378,10 +378,10 @@ const Ee = g.createContext({
|
|
|
378
378
|
setHasFocusInside: p,
|
|
379
379
|
isOpen: l
|
|
380
380
|
},
|
|
381
|
-
children: /* @__PURE__ */ o(
|
|
382
|
-
|
|
381
|
+
children: /* @__PURE__ */ o(yr, { elementsRef: u, labelsRef: v, children: l && /* @__PURE__ */ o(dt, { children: /* @__PURE__ */ o(
|
|
382
|
+
ut,
|
|
383
383
|
{
|
|
384
|
-
context:
|
|
384
|
+
context: R,
|
|
385
385
|
modal: !1,
|
|
386
386
|
initialFocus: 0,
|
|
387
387
|
returnFocus: !0,
|
|
@@ -390,8 +390,8 @@ const Ee = g.createContext({
|
|
|
390
390
|
{
|
|
391
391
|
ref: B.setFloating,
|
|
392
392
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
393
|
-
style:
|
|
394
|
-
...
|
|
393
|
+
style: _,
|
|
394
|
+
...Ne(),
|
|
395
395
|
children: t
|
|
396
396
|
}
|
|
397
397
|
)
|
|
@@ -401,9 +401,9 @@ const Ee = g.createContext({
|
|
|
401
401
|
)
|
|
402
402
|
] });
|
|
403
403
|
}
|
|
404
|
-
),
|
|
405
|
-
|
|
406
|
-
|
|
404
|
+
), Se = rt((e, t) => /* @__PURE__ */ o(kr, { children: /* @__PURE__ */ o(gt, { ...e, ref: t }) }));
|
|
405
|
+
Se.displayName = "Menu";
|
|
406
|
+
gt.displayName = "MenuComponent";
|
|
407
407
|
const W = g.forwardRef(
|
|
408
408
|
({
|
|
409
409
|
label: e,
|
|
@@ -415,7 +415,7 @@ const W = g.forwardRef(
|
|
|
415
415
|
...i
|
|
416
416
|
}, c) => {
|
|
417
417
|
let m = "";
|
|
418
|
-
const l = g.useContext(
|
|
418
|
+
const l = g.useContext(Ie), d = at({ label: t ? null : e }), f = ot(), p = Le([d.ref, c]);
|
|
419
419
|
return a && n ? /* @__PURE__ */ o(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
@@ -456,38 +456,38 @@ const W = g.forwardRef(
|
|
|
456
456
|
}
|
|
457
457
|
);
|
|
458
458
|
W.displayName = "MenuItem";
|
|
459
|
-
const
|
|
459
|
+
const Ar = ({ className: e, ...t }) => {
|
|
460
460
|
const r = w(e, "my-1 border-t border-border-medium");
|
|
461
461
|
return /* @__PURE__ */ o("div", { className: r, ...t });
|
|
462
462
|
};
|
|
463
463
|
/*!
|
|
464
|
-
@versini/ui-menu v2.0.
|
|
464
|
+
@versini/ui-menu v2.0.8
|
|
465
465
|
© 2025 gizmette.com
|
|
466
466
|
*/
|
|
467
467
|
try {
|
|
468
468
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
469
|
-
version: "2.0.
|
|
470
|
-
buildTime: "01/
|
|
469
|
+
version: "2.0.8",
|
|
470
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
471
471
|
homepage: "https://github.com/aversini/ui-components",
|
|
472
472
|
license: "MIT"
|
|
473
473
|
});
|
|
474
474
|
} catch {
|
|
475
475
|
}
|
|
476
476
|
/*!
|
|
477
|
-
@versini/ui-togglegroup v2.0.
|
|
478
|
-
©
|
|
477
|
+
@versini/ui-togglegroup v2.0.6
|
|
478
|
+
© 2025 gizmette.com
|
|
479
479
|
*/
|
|
480
480
|
try {
|
|
481
481
|
window.__VERSINI_UI_TOGGLEGROUP__ || (window.__VERSINI_UI_TOGGLEGROUP__ = {
|
|
482
|
-
version: "2.0.
|
|
483
|
-
buildTime: "
|
|
482
|
+
version: "2.0.6",
|
|
483
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
484
484
|
homepage: "https://github.com/aversini/ui-components",
|
|
485
485
|
license: "MIT"
|
|
486
486
|
});
|
|
487
487
|
} catch {
|
|
488
488
|
}
|
|
489
|
-
const
|
|
490
|
-
function
|
|
489
|
+
const Mr = "av-togglegroup", zr = "av-togglegroup-item-wrapper", Lr = "av-togglegroup-item";
|
|
490
|
+
function Pe(e, t = []) {
|
|
491
491
|
let r = [];
|
|
492
492
|
function a(s, i) {
|
|
493
493
|
const c = g.createContext(i), m = r.length;
|
|
@@ -517,9 +517,9 @@ function ze(e, t = []) {
|
|
|
517
517
|
);
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
|
-
return n.scopeName = e, [a,
|
|
520
|
+
return n.scopeName = e, [a, Pr(n, ...t)];
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Pr(...e) {
|
|
523
523
|
const t = e[0];
|
|
524
524
|
if (e.length === 1) return t;
|
|
525
525
|
const r = () => {
|
|
@@ -537,57 +537,57 @@ function zr(...e) {
|
|
|
537
537
|
};
|
|
538
538
|
return r.scopeName = t.scopeName, r;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function je(e, t) {
|
|
541
541
|
if (typeof e == "function")
|
|
542
542
|
return e(t);
|
|
543
543
|
e != null && (e.current = t);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ft(...e) {
|
|
546
546
|
return (t) => {
|
|
547
547
|
let r = !1;
|
|
548
548
|
const a = e.map((n) => {
|
|
549
|
-
const s =
|
|
549
|
+
const s = je(n, t);
|
|
550
550
|
return !r && typeof s == "function" && (r = !0), s;
|
|
551
551
|
});
|
|
552
552
|
if (r)
|
|
553
553
|
return () => {
|
|
554
554
|
for (let n = 0; n < a.length; n++) {
|
|
555
555
|
const s = a[n];
|
|
556
|
-
typeof s == "function" ? s() :
|
|
556
|
+
typeof s == "function" ? s() : je(e[n], null);
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return g.useCallback(
|
|
561
|
+
function _e(...e) {
|
|
562
|
+
return g.useCallback(ft(...e), e);
|
|
563
563
|
}
|
|
564
564
|
var be = g.forwardRef((e, t) => {
|
|
565
|
-
const { children: r, ...a } = e, n = g.Children.toArray(r), s = n.find(
|
|
565
|
+
const { children: r, ...a } = e, n = g.Children.toArray(r), s = n.find(Or);
|
|
566
566
|
if (s) {
|
|
567
567
|
const i = s.props.children, c = n.map((m) => m === s ? g.Children.count(i) > 1 ? g.Children.only(null) : g.isValidElement(i) ? i.props.children : null : m);
|
|
568
|
-
return /* @__PURE__ */ o(
|
|
568
|
+
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: g.isValidElement(i) ? g.cloneElement(i, void 0, c) : null });
|
|
569
569
|
}
|
|
570
|
-
return /* @__PURE__ */ o(
|
|
570
|
+
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: r });
|
|
571
571
|
});
|
|
572
572
|
be.displayName = "Slot";
|
|
573
|
-
var
|
|
573
|
+
var Re = g.forwardRef((e, t) => {
|
|
574
574
|
const { children: r, ...a } = e;
|
|
575
575
|
if (g.isValidElement(r)) {
|
|
576
|
-
const n =
|
|
576
|
+
const n = Dr(r);
|
|
577
577
|
return g.cloneElement(r, {
|
|
578
|
-
|
|
578
|
+
...$r(a, r.props),
|
|
579
579
|
// @ts-ignore
|
|
580
|
-
ref: t ?
|
|
580
|
+
ref: t ? ft(t, n) : n
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
584
584
|
});
|
|
585
|
-
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return g.isValidElement(e) && e.type ===
|
|
585
|
+
Re.displayName = "SlotClone";
|
|
586
|
+
var Br = ({ children: e }) => /* @__PURE__ */ o(M, { children: e });
|
|
587
|
+
function Or(e) {
|
|
588
|
+
return g.isValidElement(e) && e.type === Br;
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function $r(e, t) {
|
|
591
591
|
const r = { ...t };
|
|
592
592
|
for (const a in t) {
|
|
593
593
|
const n = e[a], s = t[a];
|
|
@@ -597,7 +597,7 @@ function Br(e, t) {
|
|
|
597
597
|
}
|
|
598
598
|
return { ...e, ...r };
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Dr(e) {
|
|
601
601
|
var t, r;
|
|
602
602
|
let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
|
|
603
603
|
return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
@@ -632,8 +632,8 @@ function q(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
|
632
632
|
return t == null ? void 0 : t(a);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
function
|
|
636
|
-
const t = e + "CollectionProvider", [r, a] =
|
|
635
|
+
function Fr(e) {
|
|
636
|
+
const t = e + "CollectionProvider", [r, a] = Pe(t), [n, s] = r(
|
|
637
637
|
t,
|
|
638
638
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
639
639
|
), i = (b) => {
|
|
@@ -643,15 +643,15 @@ function $r(e) {
|
|
|
643
643
|
i.displayName = t;
|
|
644
644
|
const c = e + "CollectionSlot", m = I.forwardRef(
|
|
645
645
|
(b, h) => {
|
|
646
|
-
const { scope: u, children: v } = b, T = s(c, u),
|
|
647
|
-
return /* @__PURE__ */ o(be, { ref:
|
|
646
|
+
const { scope: u, children: v } = b, T = s(c, u), N = _e(h, T.collectionRef);
|
|
647
|
+
return /* @__PURE__ */ o(be, { ref: N, children: v });
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
650
|
m.displayName = c;
|
|
651
651
|
const l = e + "CollectionItemSlot", d = "data-radix-collection-item", f = I.forwardRef(
|
|
652
652
|
(b, h) => {
|
|
653
|
-
const { scope: u, children: v, ...T } = b,
|
|
654
|
-
return I.useEffect(() => (
|
|
653
|
+
const { scope: u, children: v, ...T } = b, N = I.useRef(null), y = _e(h, N), x = s(l, u);
|
|
654
|
+
return I.useEffect(() => (x.itemMap.set(N, { ref: N, ...T }), () => void x.itemMap.delete(N))), /* @__PURE__ */ o(be, { [d]: "", ref: y, children: v });
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
657
|
f.displayName = l;
|
|
@@ -662,7 +662,7 @@ function $r(e) {
|
|
|
662
662
|
if (!u) return [];
|
|
663
663
|
const v = Array.from(u.querySelectorAll(`[${d}]`));
|
|
664
664
|
return Array.from(h.itemMap.values()).sort(
|
|
665
|
-
(T,
|
|
665
|
+
(T, N) => v.indexOf(T.ref.current) - v.indexOf(N.ref.current)
|
|
666
666
|
);
|
|
667
667
|
}, [h.collectionRef, h.itemMap]);
|
|
668
668
|
}
|
|
@@ -672,16 +672,16 @@ function $r(e) {
|
|
|
672
672
|
a
|
|
673
673
|
];
|
|
674
674
|
}
|
|
675
|
-
var
|
|
676
|
-
},
|
|
677
|
-
}),
|
|
678
|
-
function
|
|
679
|
-
const [t, r] = g.useState(
|
|
680
|
-
return
|
|
681
|
-
r((a) => a ?? String(
|
|
675
|
+
var Hr = globalThis != null && globalThis.document ? g.useLayoutEffect : () => {
|
|
676
|
+
}, Gr = g.useId || (() => {
|
|
677
|
+
}), Ur = 0;
|
|
678
|
+
function jr(e) {
|
|
679
|
+
const [t, r] = g.useState(Gr());
|
|
680
|
+
return Hr(() => {
|
|
681
|
+
r((a) => a ?? String(Ur++));
|
|
682
682
|
}, [e]), t ? `radix-${t}` : "";
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Be(e) {
|
|
685
685
|
const t = g.useRef(e);
|
|
686
686
|
return g.useEffect(() => {
|
|
687
687
|
t.current = e;
|
|
@@ -696,7 +696,7 @@ function ye({
|
|
|
696
696
|
onChange: r = () => {
|
|
697
697
|
}
|
|
698
698
|
}) {
|
|
699
|
-
const [a, n] =
|
|
699
|
+
const [a, n] = Kr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : a, c = Be(r), m = g.useCallback(
|
|
700
700
|
(l) => {
|
|
701
701
|
if (s) {
|
|
702
702
|
const d = typeof l == "function" ? l(e) : l;
|
|
@@ -708,28 +708,28 @@ function ye({
|
|
|
708
708
|
);
|
|
709
709
|
return [i, m];
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Kr({
|
|
712
712
|
defaultProp: e,
|
|
713
713
|
onChange: t
|
|
714
714
|
}) {
|
|
715
|
-
const r = g.useState(e), [a] = r, n = g.useRef(a), s =
|
|
715
|
+
const r = g.useState(e), [a] = r, n = g.useRef(a), s = Be(t);
|
|
716
716
|
return g.useEffect(() => {
|
|
717
717
|
n.current !== a && (s(a), n.current = a);
|
|
718
718
|
}, [a, n, s]), r;
|
|
719
719
|
}
|
|
720
|
-
var
|
|
721
|
-
function
|
|
722
|
-
const t = g.useContext(
|
|
720
|
+
var Wr = g.createContext(void 0);
|
|
721
|
+
function pt(e) {
|
|
722
|
+
const t = g.useContext(Wr);
|
|
723
723
|
return e || t || "ltr";
|
|
724
724
|
}
|
|
725
|
-
var
|
|
725
|
+
var xe = "rovingFocusGroup.onEntryFocus", Yr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Ae, bt, qr] = Fr(ke), [Xr, vt] = Pe(
|
|
726
726
|
ke,
|
|
727
|
-
[
|
|
728
|
-
), [
|
|
729
|
-
(e, t) => /* @__PURE__ */ o(
|
|
727
|
+
[qr]
|
|
728
|
+
), [Zr, Qr] = Xr(ke), yt = g.forwardRef(
|
|
729
|
+
(e, t) => /* @__PURE__ */ o(Ae.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Ae.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Jr, { ...e, ref: t }) }) })
|
|
730
730
|
);
|
|
731
|
-
|
|
732
|
-
var
|
|
731
|
+
yt.displayName = ke;
|
|
732
|
+
var Jr = g.forwardRef((e, t) => {
|
|
733
733
|
const {
|
|
734
734
|
__scopeRovingFocusGroup: r,
|
|
735
735
|
orientation: a,
|
|
@@ -741,17 +741,17 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
741
741
|
onEntryFocus: l,
|
|
742
742
|
preventScrollOnEntryFocus: d = !1,
|
|
743
743
|
...f
|
|
744
|
-
} = e, p = g.useRef(null), b =
|
|
744
|
+
} = e, p = g.useRef(null), b = _e(t, p), h = pt(s), [u = null, v] = ye({
|
|
745
745
|
prop: i,
|
|
746
746
|
defaultProp: c,
|
|
747
747
|
onChange: m
|
|
748
|
-
}), [T,
|
|
748
|
+
}), [T, N] = g.useState(!1), y = Be(l), x = bt(r), _ = g.useRef(!1), [B, R] = g.useState(0);
|
|
749
749
|
return g.useEffect(() => {
|
|
750
750
|
const C = p.current;
|
|
751
751
|
if (C)
|
|
752
|
-
return C.addEventListener(
|
|
752
|
+
return C.addEventListener(xe, y), () => C.removeEventListener(xe, y);
|
|
753
753
|
}, [y]), /* @__PURE__ */ o(
|
|
754
|
-
|
|
754
|
+
Zr,
|
|
755
755
|
{
|
|
756
756
|
scope: r,
|
|
757
757
|
orientation: a,
|
|
@@ -762,13 +762,13 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
762
762
|
(C) => v(C),
|
|
763
763
|
[v]
|
|
764
764
|
),
|
|
765
|
-
onItemShiftTab: g.useCallback(() =>
|
|
765
|
+
onItemShiftTab: g.useCallback(() => N(!0), []),
|
|
766
766
|
onFocusableItemAdd: g.useCallback(
|
|
767
|
-
() =>
|
|
767
|
+
() => R((C) => C + 1),
|
|
768
768
|
[]
|
|
769
769
|
),
|
|
770
770
|
onFocusableItemRemove: g.useCallback(
|
|
771
|
-
() =>
|
|
771
|
+
() => R((C) => C - 1),
|
|
772
772
|
[]
|
|
773
773
|
),
|
|
774
774
|
children: /* @__PURE__ */ o(
|
|
@@ -780,27 +780,27 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
780
780
|
ref: b,
|
|
781
781
|
style: { outline: "none", ...e.style },
|
|
782
782
|
onMouseDown: q(e.onMouseDown, () => {
|
|
783
|
-
|
|
783
|
+
_.current = !0;
|
|
784
784
|
}),
|
|
785
785
|
onFocus: q(e.onFocus, (C) => {
|
|
786
|
-
const U = !
|
|
786
|
+
const U = !_.current;
|
|
787
787
|
if (C.target === C.currentTarget && U && !T) {
|
|
788
|
-
const j = new CustomEvent(
|
|
788
|
+
const j = new CustomEvent(xe, Yr);
|
|
789
789
|
if (C.currentTarget.dispatchEvent(j), !j.defaultPrevented) {
|
|
790
|
-
const K =
|
|
790
|
+
const K = x().filter((O) => O.focusable), re = K.find((O) => O.active), oe = K.find((O) => O.id === u), Ne = [re, oe, ...K].filter(
|
|
791
791
|
Boolean
|
|
792
792
|
).map((O) => O.ref.current);
|
|
793
|
-
|
|
793
|
+
Tt(Ne, d);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
|
-
|
|
796
|
+
_.current = !1;
|
|
797
797
|
}),
|
|
798
|
-
onBlur: q(e.onBlur, () =>
|
|
798
|
+
onBlur: q(e.onBlur, () => N(!1))
|
|
799
799
|
}
|
|
800
800
|
)
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
|
-
}),
|
|
803
|
+
}), kt = "RovingFocusGroupItem", wt = g.forwardRef(
|
|
804
804
|
(e, t) => {
|
|
805
805
|
const {
|
|
806
806
|
__scopeRovingFocusGroup: r,
|
|
@@ -808,12 +808,12 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
808
808
|
active: n = !1,
|
|
809
809
|
tabStopId: s,
|
|
810
810
|
...i
|
|
811
|
-
} = e, c =
|
|
811
|
+
} = e, c = jr(), m = s || c, l = Qr(kt, r), d = l.currentTabStopId === m, f = bt(r), { onFocusableItemAdd: p, onFocusableItemRemove: b } = l;
|
|
812
812
|
return g.useEffect(() => {
|
|
813
813
|
if (a)
|
|
814
814
|
return p(), () => b();
|
|
815
815
|
}, [a, p, b]), /* @__PURE__ */ o(
|
|
816
|
-
|
|
816
|
+
Ae.ItemSlot,
|
|
817
817
|
{
|
|
818
818
|
scope: r,
|
|
819
819
|
id: m,
|
|
@@ -836,7 +836,7 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
if (h.target !== h.currentTarget) return;
|
|
839
|
-
const u =
|
|
839
|
+
const u = ro(h, l.orientation, l.dir);
|
|
840
840
|
if (u !== void 0) {
|
|
841
841
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
842
842
|
h.preventDefault();
|
|
@@ -845,9 +845,9 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
845
845
|
else if (u === "prev" || u === "next") {
|
|
846
846
|
u === "prev" && v.reverse();
|
|
847
847
|
const T = v.indexOf(h.currentTarget);
|
|
848
|
-
v = l.loop ?
|
|
848
|
+
v = l.loop ? oo(v, T + 1) : v.slice(T + 1);
|
|
849
849
|
}
|
|
850
|
-
setTimeout(() =>
|
|
850
|
+
setTimeout(() => Tt(v));
|
|
851
851
|
}
|
|
852
852
|
})
|
|
853
853
|
}
|
|
@@ -856,8 +856,8 @@ var Qr = g.forwardRef((e, t) => {
|
|
|
856
856
|
);
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
|
|
860
|
-
var
|
|
859
|
+
wt.displayName = kt;
|
|
860
|
+
var eo = {
|
|
861
861
|
ArrowLeft: "prev",
|
|
862
862
|
ArrowUp: "prev",
|
|
863
863
|
ArrowRight: "next",
|
|
@@ -867,23 +867,23 @@ var Xr = {
|
|
|
867
867
|
PageDown: "last",
|
|
868
868
|
End: "last"
|
|
869
869
|
};
|
|
870
|
-
function
|
|
870
|
+
function to(e, t) {
|
|
871
871
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
872
872
|
}
|
|
873
|
-
function
|
|
874
|
-
const a =
|
|
873
|
+
function ro(e, t, r) {
|
|
874
|
+
const a = to(e.key, r);
|
|
875
875
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
|
|
876
|
-
return
|
|
876
|
+
return eo[a];
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function Tt(e, t = !1) {
|
|
879
879
|
const r = document.activeElement;
|
|
880
880
|
for (const a of e)
|
|
881
881
|
if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function oo(e, t) {
|
|
884
884
|
return e.map((r, a) => e[(t + a) % e.length]);
|
|
885
885
|
}
|
|
886
|
-
var
|
|
886
|
+
var ao = yt, no = wt, so = "Toggle", Nt = g.forwardRef((e, t) => {
|
|
887
887
|
const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...s } = e, [i = !1, c] = ye({
|
|
888
888
|
prop: r,
|
|
889
889
|
onChange: n,
|
|
@@ -904,19 +904,19 @@ var ro = vt, oo = kt, ao = "Toggle", Tt = g.forwardRef((e, t) => {
|
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
906
|
});
|
|
907
|
-
|
|
908
|
-
var ee = "ToggleGroup", [
|
|
909
|
-
|
|
910
|
-
]),
|
|
907
|
+
Nt.displayName = so;
|
|
908
|
+
var ee = "ToggleGroup", [Ct, fa] = Pe(ee, [
|
|
909
|
+
vt
|
|
910
|
+
]), xt = vt(), Oe = I.forwardRef((e, t) => {
|
|
911
911
|
const { type: r, ...a } = e;
|
|
912
912
|
if (r === "single")
|
|
913
|
-
return /* @__PURE__ */ o(
|
|
913
|
+
return /* @__PURE__ */ o(io, { ...a, ref: t });
|
|
914
914
|
if (r === "multiple")
|
|
915
|
-
return /* @__PURE__ */ o(
|
|
915
|
+
return /* @__PURE__ */ o(co, { ...a, ref: t });
|
|
916
916
|
throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
|
|
917
917
|
});
|
|
918
|
-
|
|
919
|
-
var [
|
|
918
|
+
Oe.displayName = ee;
|
|
919
|
+
var [Et, It] = Ct(ee), io = I.forwardRef((e, t) => {
|
|
920
920
|
const {
|
|
921
921
|
value: r,
|
|
922
922
|
defaultValue: a,
|
|
@@ -929,17 +929,17 @@ var [Nt, Et] = xt(ee), no = I.forwardRef((e, t) => {
|
|
|
929
929
|
onChange: n
|
|
930
930
|
});
|
|
931
931
|
return /* @__PURE__ */ o(
|
|
932
|
-
|
|
932
|
+
Et,
|
|
933
933
|
{
|
|
934
934
|
scope: e.__scopeToggleGroup,
|
|
935
935
|
type: "single",
|
|
936
936
|
value: i ? [i] : [],
|
|
937
937
|
onItemActivate: c,
|
|
938
938
|
onItemDeactivate: I.useCallback(() => c(""), [c]),
|
|
939
|
-
children: /* @__PURE__ */ o(
|
|
939
|
+
children: /* @__PURE__ */ o(St, { ...s, ref: t })
|
|
940
940
|
}
|
|
941
941
|
);
|
|
942
|
-
}),
|
|
942
|
+
}), co = I.forwardRef((e, t) => {
|
|
943
943
|
const {
|
|
944
944
|
value: r,
|
|
945
945
|
defaultValue: a,
|
|
@@ -958,19 +958,19 @@ var [Nt, Et] = xt(ee), no = I.forwardRef((e, t) => {
|
|
|
958
958
|
[c]
|
|
959
959
|
);
|
|
960
960
|
return /* @__PURE__ */ o(
|
|
961
|
-
|
|
961
|
+
Et,
|
|
962
962
|
{
|
|
963
963
|
scope: e.__scopeToggleGroup,
|
|
964
964
|
type: "multiple",
|
|
965
965
|
value: i,
|
|
966
966
|
onItemActivate: m,
|
|
967
967
|
onItemDeactivate: l,
|
|
968
|
-
children: /* @__PURE__ */ o(
|
|
968
|
+
children: /* @__PURE__ */ o(St, { ...s, ref: t })
|
|
969
969
|
}
|
|
970
970
|
);
|
|
971
971
|
});
|
|
972
|
-
|
|
973
|
-
var [
|
|
972
|
+
Oe.displayName = ee;
|
|
973
|
+
var [lo, uo] = Ct(ee), St = I.forwardRef(
|
|
974
974
|
(e, t) => {
|
|
975
975
|
const {
|
|
976
976
|
__scopeToggleGroup: r,
|
|
@@ -980,9 +980,9 @@ var [io, co] = xt(ee), It = I.forwardRef(
|
|
|
980
980
|
dir: i,
|
|
981
981
|
loop: c = !0,
|
|
982
982
|
...m
|
|
983
|
-
} = e, l =
|
|
984
|
-
return /* @__PURE__ */ o(
|
|
985
|
-
|
|
983
|
+
} = e, l = xt(r), d = pt(i), f = { role: "group", dir: d, ...m };
|
|
984
|
+
return /* @__PURE__ */ o(lo, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
|
|
985
|
+
ao,
|
|
986
986
|
{
|
|
987
987
|
asChild: !0,
|
|
988
988
|
...l,
|
|
@@ -993,28 +993,28 @@ var [io, co] = xt(ee), It = I.forwardRef(
|
|
|
993
993
|
}
|
|
994
994
|
) : /* @__PURE__ */ o(he.div, { ...f, ref: t }) });
|
|
995
995
|
}
|
|
996
|
-
), ve = "ToggleGroupItem",
|
|
996
|
+
), ve = "ToggleGroupItem", _t = I.forwardRef(
|
|
997
997
|
(e, t) => {
|
|
998
|
-
const r =
|
|
998
|
+
const r = It(ve, e.__scopeToggleGroup), a = uo(ve, e.__scopeToggleGroup), n = xt(e.__scopeToggleGroup), s = r.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, m = I.useRef(null);
|
|
999
999
|
return a.rovingFocus ? /* @__PURE__ */ o(
|
|
1000
|
-
|
|
1000
|
+
no,
|
|
1001
1001
|
{
|
|
1002
1002
|
asChild: !0,
|
|
1003
1003
|
...n,
|
|
1004
1004
|
focusable: !i,
|
|
1005
1005
|
active: s,
|
|
1006
1006
|
ref: m,
|
|
1007
|
-
children: /* @__PURE__ */ o(
|
|
1007
|
+
children: /* @__PURE__ */ o(Ke, { ...c, ref: t })
|
|
1008
1008
|
}
|
|
1009
|
-
) : /* @__PURE__ */ o(
|
|
1009
|
+
) : /* @__PURE__ */ o(Ke, { ...c, ref: t });
|
|
1010
1010
|
}
|
|
1011
1011
|
);
|
|
1012
|
-
|
|
1013
|
-
var
|
|
1012
|
+
_t.displayName = ve;
|
|
1013
|
+
var Ke = I.forwardRef(
|
|
1014
1014
|
(e, t) => {
|
|
1015
|
-
const { __scopeToggleGroup: r, value: a, ...n } = e, s =
|
|
1015
|
+
const { __scopeToggleGroup: r, value: a, ...n } = e, s = It(ve, r), i = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = s.type === "single" ? i : void 0;
|
|
1016
1016
|
return /* @__PURE__ */ o(
|
|
1017
|
-
|
|
1017
|
+
Nt,
|
|
1018
1018
|
{
|
|
1019
1019
|
...c,
|
|
1020
1020
|
...n,
|
|
@@ -1025,27 +1025,27 @@ var je = I.forwardRef(
|
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
),
|
|
1029
|
-
const
|
|
1028
|
+
), mo = Oe, ho = _t;
|
|
1029
|
+
const Rt = I.createContext({
|
|
1030
1030
|
size: "medium",
|
|
1031
1031
|
focusMode: "system",
|
|
1032
1032
|
mode: "system"
|
|
1033
|
-
}),
|
|
1033
|
+
}), go = ({ focusMode: e }) => w("focus:outline", "focus:outline-2", "focus:outline-offset", {
|
|
1034
1034
|
"focus:outline-focus-light": e === "light",
|
|
1035
1035
|
"focus:outline-focus-dark": e === "dark",
|
|
1036
1036
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1037
1037
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1038
|
-
}),
|
|
1038
|
+
}), fo = ({ mode: e }) => w({
|
|
1039
1039
|
"data-[state=on]:bg-surface-medium": e === "dark",
|
|
1040
1040
|
"data-[state=on]:bg-surface-lightest": e === "light",
|
|
1041
1041
|
"data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
|
|
1042
1042
|
"data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
|
|
1043
|
-
}),
|
|
1043
|
+
}), po = ({ size: e }) => w({
|
|
1044
1044
|
"h-5 px-2": e === "small",
|
|
1045
1045
|
"h-6 px-3": e === "medium",
|
|
1046
1046
|
"h-7 px-4": e === "large"
|
|
1047
|
-
}),
|
|
1048
|
-
|
|
1047
|
+
}), bo = ({ mode: e }) => w(
|
|
1048
|
+
zr,
|
|
1049
1049
|
"px-1",
|
|
1050
1050
|
"relative",
|
|
1051
1051
|
"border-r",
|
|
@@ -1058,26 +1058,26 @@ const _t = I.createContext({
|
|
|
1058
1058
|
"border-surface-light dark:border-surface-darker": e === "system",
|
|
1059
1059
|
"border-surface-darker dark:border-surface-light": e === "alt-system"
|
|
1060
1060
|
}
|
|
1061
|
-
),
|
|
1061
|
+
), vo = ({
|
|
1062
1062
|
focusMode: e,
|
|
1063
1063
|
mode: t,
|
|
1064
1064
|
size: r
|
|
1065
1065
|
}) => ({
|
|
1066
|
-
wrapperClass:
|
|
1066
|
+
wrapperClass: bo({ mode: t }),
|
|
1067
1067
|
itemClass: w(
|
|
1068
|
-
|
|
1068
|
+
Lr,
|
|
1069
1069
|
"flex items-center justify-center bg-transparent",
|
|
1070
1070
|
"rounded-sm",
|
|
1071
1071
|
"transition duration-200 ease",
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1072
|
+
po({ size: r }),
|
|
1073
|
+
go({ focusMode: e }),
|
|
1074
|
+
fo({ mode: t })
|
|
1075
1075
|
)
|
|
1076
|
-
}),
|
|
1076
|
+
}), yo = ({
|
|
1077
1077
|
mode: e,
|
|
1078
1078
|
className: t
|
|
1079
1079
|
}) => w(
|
|
1080
|
-
|
|
1080
|
+
Mr,
|
|
1081
1081
|
"inline-flex p-1",
|
|
1082
1082
|
"rounded-sm",
|
|
1083
1083
|
{
|
|
@@ -1087,7 +1087,7 @@ const _t = I.createContext({
|
|
|
1087
1087
|
"bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
|
|
1088
1088
|
},
|
|
1089
1089
|
t
|
|
1090
|
-
),
|
|
1090
|
+
), ko = ({
|
|
1091
1091
|
children: e,
|
|
1092
1092
|
value: t,
|
|
1093
1093
|
onValueChange: r,
|
|
@@ -1099,9 +1099,9 @@ const _t = I.createContext({
|
|
|
1099
1099
|
className: m,
|
|
1100
1100
|
...l
|
|
1101
1101
|
}) => {
|
|
1102
|
-
const d =
|
|
1103
|
-
return /* @__PURE__ */ o(
|
|
1104
|
-
|
|
1102
|
+
const d = yo({ mode: n, className: m }), f = { size: i, focusMode: s, mode: n };
|
|
1103
|
+
return /* @__PURE__ */ o(Rt.Provider, { value: f, children: /* @__PURE__ */ o(
|
|
1104
|
+
mo,
|
|
1105
1105
|
{
|
|
1106
1106
|
disabled: a,
|
|
1107
1107
|
className: d,
|
|
@@ -1113,14 +1113,14 @@ const _t = I.createContext({
|
|
|
1113
1113
|
children: e
|
|
1114
1114
|
}
|
|
1115
1115
|
) });
|
|
1116
|
-
},
|
|
1117
|
-
const { size: r, focusMode: a, mode: n } = P(
|
|
1116
|
+
}, wo = ({ value: e, disabled: t }) => {
|
|
1117
|
+
const { size: r, focusMode: a, mode: n } = P(Rt), { itemClass: s, wrapperClass: i } = vo({
|
|
1118
1118
|
focusMode: a,
|
|
1119
1119
|
mode: n,
|
|
1120
1120
|
size: r
|
|
1121
1121
|
});
|
|
1122
1122
|
return /* @__PURE__ */ o("div", { className: i, children: /* @__PURE__ */ o(
|
|
1123
|
-
|
|
1123
|
+
ho,
|
|
1124
1124
|
{
|
|
1125
1125
|
disabled: t,
|
|
1126
1126
|
className: s,
|
|
@@ -1130,110 +1130,147 @@ const _t = I.createContext({
|
|
|
1130
1130
|
) });
|
|
1131
1131
|
};
|
|
1132
1132
|
/*!
|
|
1133
|
-
@versini/ui-panel v1.2.
|
|
1133
|
+
@versini/ui-panel v1.2.15
|
|
1134
1134
|
© 2025 gizmette.com
|
|
1135
1135
|
*/
|
|
1136
1136
|
try {
|
|
1137
1137
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
1138
|
-
version: "1.2.
|
|
1139
|
-
buildTime: "01/
|
|
1138
|
+
version: "1.2.15",
|
|
1139
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
1140
1140
|
homepage: "https://github.com/aversini/ui-components",
|
|
1141
1141
|
license: "MIT"
|
|
1142
1142
|
});
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const We = "av-messagebox", Ye = "av-panel", qe = "av-button", we = "icon", At = "button", Me = "link", To = ({
|
|
1146
1146
|
type: e,
|
|
1147
1147
|
size: t,
|
|
1148
1148
|
labelRight: r,
|
|
1149
1149
|
labelLeft: a,
|
|
1150
1150
|
align: n
|
|
1151
1151
|
}) => {
|
|
1152
|
-
const s = "
|
|
1152
|
+
const s = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
1153
1153
|
switch (e) {
|
|
1154
|
-
case
|
|
1154
|
+
case At:
|
|
1155
|
+
case Me:
|
|
1155
1156
|
return w({
|
|
1156
1157
|
[s]: t === "small",
|
|
1157
1158
|
[i]: t === "medium",
|
|
1158
1159
|
[c]: t === "large"
|
|
1159
1160
|
});
|
|
1160
|
-
case
|
|
1161
|
-
return w("text-center", {
|
|
1162
|
-
[s]: t === "small",
|
|
1163
|
-
[i]: t === "medium",
|
|
1164
|
-
[c]: t === "large"
|
|
1165
|
-
});
|
|
1166
|
-
case Be:
|
|
1161
|
+
case we:
|
|
1167
1162
|
return w("inline-flex items-center", {
|
|
1168
1163
|
"justify-center": n === "center",
|
|
1169
1164
|
"justify-start": n === "left",
|
|
1170
1165
|
"justify-end": n === "right",
|
|
1171
1166
|
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
1172
|
-
"h-6 px-2
|
|
1167
|
+
"h-6 px-2": t === "small" && (r || a),
|
|
1173
1168
|
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
1174
|
-
"h-8 px-3
|
|
1169
|
+
"h-8 px-3": t === "medium" && (r || a),
|
|
1175
1170
|
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
1176
|
-
"h-12 px-4
|
|
1171
|
+
"h-12 px-4": t === "large" && (r || a)
|
|
1177
1172
|
});
|
|
1178
1173
|
}
|
|
1179
|
-
},
|
|
1174
|
+
}, No = ({
|
|
1175
|
+
type: e,
|
|
1176
|
+
size: t,
|
|
1177
|
+
labelRight: r,
|
|
1178
|
+
labelLeft: a
|
|
1179
|
+
}) => {
|
|
1180
|
+
const n = "text-sm font-medium", s = "text-base font-medium", i = "text-lg font-medium";
|
|
1181
|
+
switch (e) {
|
|
1182
|
+
case At:
|
|
1183
|
+
case Me:
|
|
1184
|
+
return w({
|
|
1185
|
+
"text-center": e === Me,
|
|
1186
|
+
[n]: t === "small",
|
|
1187
|
+
[s]: t === "medium",
|
|
1188
|
+
[i]: t === "large"
|
|
1189
|
+
});
|
|
1190
|
+
case we:
|
|
1191
|
+
return w({
|
|
1192
|
+
[n]: t === "small" && (r || a),
|
|
1193
|
+
[s]: t === "medium" && (r || a),
|
|
1194
|
+
[i]: t === "large" && (r || a)
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
}, Co = ({
|
|
1180
1198
|
mode: e,
|
|
1181
1199
|
noBackground: t,
|
|
1182
1200
|
noTruncate: r,
|
|
1183
|
-
variant: a
|
|
1184
|
-
radius: n
|
|
1201
|
+
variant: a
|
|
1185
1202
|
}) => {
|
|
1186
1203
|
if (t)
|
|
1187
|
-
return
|
|
1188
|
-
"rounded-full": n === "large",
|
|
1189
|
-
"rounded-md": n === "medium",
|
|
1190
|
-
"rounded-sm": n === "small"
|
|
1191
|
-
});
|
|
1204
|
+
return "not-prose";
|
|
1192
1205
|
if (a === "primary")
|
|
1193
1206
|
return w("not-prose", {
|
|
1194
|
-
"rounded-full": n === "large",
|
|
1195
|
-
"rounded-md": n === "medium",
|
|
1196
|
-
"rounded-sm": n === "small",
|
|
1197
1207
|
truncate: !r,
|
|
1198
|
-
"
|
|
1199
|
-
"
|
|
1200
|
-
"
|
|
1201
|
-
"
|
|
1208
|
+
"text-copy-light": e === "dark",
|
|
1209
|
+
"text-copy-lighter": e === "light",
|
|
1210
|
+
"text-copy-light dark:text-copy-lighter": e === "system",
|
|
1211
|
+
"text-copy-lighter dark:text-copy-light": e === "alt-system"
|
|
1202
1212
|
});
|
|
1203
1213
|
if (a === "secondary")
|
|
1204
1214
|
return w("not-prose", {
|
|
1205
|
-
"rounded-full": n === "large",
|
|
1206
|
-
"rounded-md": n === "medium",
|
|
1207
|
-
"rounded-sm": n === "small",
|
|
1208
1215
|
truncate: !r,
|
|
1209
|
-
"
|
|
1210
|
-
"
|
|
1211
|
-
"
|
|
1212
|
-
"
|
|
1216
|
+
"text-copy-light": e === "light",
|
|
1217
|
+
"text-copy-lighter": e === "dark",
|
|
1218
|
+
"text-copy-light dark:text-copy-lighter": e === "alt-system",
|
|
1219
|
+
"text-copy-lighter dark:text-copy-light": e === "system"
|
|
1213
1220
|
});
|
|
1214
1221
|
if (a === "danger")
|
|
1215
1222
|
return w("not-prose", {
|
|
1216
|
-
"rounded-full": n === "large",
|
|
1217
|
-
"rounded-md": n === "medium",
|
|
1218
|
-
"rounded-sm": n === "small",
|
|
1219
1223
|
truncate: !r,
|
|
1220
|
-
"
|
|
1221
|
-
"
|
|
1222
|
-
"
|
|
1223
|
-
"
|
|
1224
|
+
"text-copy-light": e === "dark",
|
|
1225
|
+
"text-copy-lighter": e === "light",
|
|
1226
|
+
"text-copy-light dark:text-copy-lighter": e === "system",
|
|
1227
|
+
"text-copy-lighter dark:text-copy-light": e === "alt-system"
|
|
1224
1228
|
});
|
|
1225
1229
|
if (a === "selected")
|
|
1226
1230
|
return w("not-prose", {
|
|
1227
|
-
"rounded-full": n === "large",
|
|
1228
|
-
"rounded-md": n === "medium",
|
|
1229
|
-
"rounded-sm": n === "small",
|
|
1230
1231
|
truncate: !r,
|
|
1231
|
-
"
|
|
1232
|
-
"
|
|
1233
|
-
"
|
|
1234
|
-
"
|
|
1232
|
+
"text-copy-light": e === "dark",
|
|
1233
|
+
"text-copy-lighter": e === "light",
|
|
1234
|
+
"text-copy-light dark:text-copy-lighter": e === "system",
|
|
1235
|
+
"text-copy-lighter dark:text-copy-light": e === "alt-system"
|
|
1235
1236
|
});
|
|
1236
|
-
},
|
|
1237
|
+
}, xo = ({
|
|
1238
|
+
mode: e,
|
|
1239
|
+
noBackground: t,
|
|
1240
|
+
variant: r
|
|
1241
|
+
}) => {
|
|
1242
|
+
if (!t) {
|
|
1243
|
+
if (r === "primary")
|
|
1244
|
+
return w({
|
|
1245
|
+
"bg-action-dark": e === "dark",
|
|
1246
|
+
"bg-action-light": e === "light",
|
|
1247
|
+
"bg-action-dark dark:bg-action-light": e === "system",
|
|
1248
|
+
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
1249
|
+
});
|
|
1250
|
+
if (r === "secondary")
|
|
1251
|
+
return w({
|
|
1252
|
+
"bg-action-dark": e === "light",
|
|
1253
|
+
"bg-action-light": e === "dark",
|
|
1254
|
+
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
1255
|
+
"bg-action-light dark:bg-action-dark": e === "system"
|
|
1256
|
+
});
|
|
1257
|
+
if (r === "danger")
|
|
1258
|
+
return w({
|
|
1259
|
+
"bg-action-danger-dark": e === "dark",
|
|
1260
|
+
"bg-action-danger-light": e === "light",
|
|
1261
|
+
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
1262
|
+
"bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
|
|
1263
|
+
});
|
|
1264
|
+
if (r === "selected")
|
|
1265
|
+
return "bg-action-selected-dark";
|
|
1266
|
+
}
|
|
1267
|
+
}, Eo = ({
|
|
1268
|
+
radius: e
|
|
1269
|
+
}) => w({
|
|
1270
|
+
"rounded-full": e === "large",
|
|
1271
|
+
"rounded-md": e === "medium",
|
|
1272
|
+
"rounded-sm": e === "small"
|
|
1273
|
+
}), Io = ({
|
|
1237
1274
|
mode: e,
|
|
1238
1275
|
disabled: t,
|
|
1239
1276
|
variant: r
|
|
@@ -1262,13 +1299,8 @@ const Ke = "av-messagebox", We = "av-panel", Ye = "av-button", Be = "icon", ko =
|
|
|
1262
1299
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
1263
1300
|
});
|
|
1264
1301
|
if (r === "selected")
|
|
1265
|
-
return
|
|
1266
|
-
|
|
1267
|
-
"hover:bg-action-selected-light-hover": e === "light",
|
|
1268
|
-
"hover:bg-action-selected-dark-hover dark:hover:bg-action-selected-light-hover": e === "system",
|
|
1269
|
-
"hover:bg-action-selected-light-hover dark:hover:bg-action-selected-dark-hover": e === "alt-system"
|
|
1270
|
-
});
|
|
1271
|
-
}, No = ({
|
|
1302
|
+
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
1303
|
+
}, So = ({
|
|
1272
1304
|
mode: e,
|
|
1273
1305
|
disabled: t,
|
|
1274
1306
|
variant: r
|
|
@@ -1297,13 +1329,8 @@ const Ke = "av-messagebox", We = "av-panel", Ye = "av-button", Be = "icon", ko =
|
|
|
1297
1329
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
1298
1330
|
});
|
|
1299
1331
|
if (r === "selected")
|
|
1300
|
-
return
|
|
1301
|
-
|
|
1302
|
-
"active:bg-action-selected-light-active": e === "light",
|
|
1303
|
-
"active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
|
|
1304
|
-
"active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
|
|
1305
|
-
});
|
|
1306
|
-
}, Eo = ({
|
|
1332
|
+
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
1333
|
+
}, _o = ({
|
|
1307
1334
|
mode: e,
|
|
1308
1335
|
noBorder: t,
|
|
1309
1336
|
variant: r
|
|
@@ -1332,20 +1359,15 @@ const Ke = "av-messagebox", We = "av-panel", Ye = "av-button", Be = "icon", ko =
|
|
|
1332
1359
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
1333
1360
|
});
|
|
1334
1361
|
if (r === "selected")
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1337
|
-
"border-border-selected-medium": e === "light",
|
|
1338
|
-
"border-border-selected-dark dark:border-border-selected-medium": e === "system",
|
|
1339
|
-
"border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
|
|
1340
|
-
});
|
|
1341
|
-
}, Io = ({
|
|
1362
|
+
return "border border-border-selected-dark";
|
|
1363
|
+
}, Ro = ({
|
|
1342
1364
|
focusMode: e
|
|
1343
1365
|
}) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1344
1366
|
"focus:outline-focus-dark": e === "dark",
|
|
1345
1367
|
"focus:outline-focus-light": e === "light",
|
|
1346
1368
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1347
1369
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1348
|
-
}),
|
|
1370
|
+
}), Mt = ({
|
|
1349
1371
|
type: e,
|
|
1350
1372
|
className: t,
|
|
1351
1373
|
raw: r,
|
|
@@ -1362,15 +1384,16 @@ const Ke = "av-messagebox", We = "av-panel", Ye = "av-button", Be = "icon", ko =
|
|
|
1362
1384
|
noTruncate: b,
|
|
1363
1385
|
align: h,
|
|
1364
1386
|
radius: u
|
|
1365
|
-
}) => (p || (p = "primary"), r ? w(
|
|
1366
|
-
|
|
1367
|
-
|
|
1387
|
+
}) => (p || (p = "primary"), r ? w(qe, t) : w(
|
|
1388
|
+
qe,
|
|
1389
|
+
Co({
|
|
1368
1390
|
mode: a,
|
|
1369
1391
|
variant: p,
|
|
1370
1392
|
noBackground: f,
|
|
1371
|
-
noTruncate: b
|
|
1372
|
-
radius: u
|
|
1393
|
+
noTruncate: b
|
|
1373
1394
|
}),
|
|
1395
|
+
xo({ mode: a, noBackground: f, variant: p }),
|
|
1396
|
+
Eo({ radius: u }),
|
|
1374
1397
|
To({
|
|
1375
1398
|
type: e,
|
|
1376
1399
|
size: c,
|
|
@@ -1378,33 +1401,34 @@ const Ke = "av-messagebox", We = "av-panel", Ye = "av-button", Be = "icon", ko =
|
|
|
1378
1401
|
labelLeft: d,
|
|
1379
1402
|
align: h
|
|
1380
1403
|
}),
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1404
|
+
No({ type: e, size: c, labelRight: l, labelLeft: d }),
|
|
1405
|
+
_o({ mode: a, variant: p, noBorder: m }),
|
|
1406
|
+
Ro({ focusMode: n }),
|
|
1407
|
+
Io({ mode: a, variant: p, disabled: s }),
|
|
1408
|
+
So({ mode: a, variant: p, disabled: s }),
|
|
1385
1409
|
{
|
|
1386
1410
|
"w-full": i,
|
|
1387
1411
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1388
1412
|
},
|
|
1389
1413
|
t
|
|
1390
|
-
)),
|
|
1414
|
+
)), Ao = (e, t, r) => {
|
|
1391
1415
|
var a;
|
|
1392
1416
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
1393
|
-
},
|
|
1417
|
+
}, $e = I.forwardRef((e, t) => {
|
|
1394
1418
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
1395
1419
|
return /* @__PURE__ */ o(
|
|
1396
1420
|
"button",
|
|
1397
1421
|
{
|
|
1398
1422
|
ref: t,
|
|
1399
1423
|
onClick: (s) => {
|
|
1400
|
-
|
|
1424
|
+
Ao(s, a, r);
|
|
1401
1425
|
},
|
|
1402
1426
|
...n
|
|
1403
1427
|
}
|
|
1404
1428
|
);
|
|
1405
1429
|
});
|
|
1406
|
-
|
|
1407
|
-
const
|
|
1430
|
+
$e.displayName = "BaseButton";
|
|
1431
|
+
const zt = I.forwardRef(
|
|
1408
1432
|
({
|
|
1409
1433
|
children: e,
|
|
1410
1434
|
disabled: t = !1,
|
|
@@ -1423,10 +1447,11 @@ const At = I.forwardRef(
|
|
|
1423
1447
|
noBackground: h = !1,
|
|
1424
1448
|
align: u = "center",
|
|
1425
1449
|
radius: v = "large",
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1450
|
+
variant: T = "primary",
|
|
1451
|
+
...N
|
|
1452
|
+
}, y) => {
|
|
1453
|
+
const x = Mt({
|
|
1454
|
+
type: we,
|
|
1430
1455
|
mode: r,
|
|
1431
1456
|
focusMode: a,
|
|
1432
1457
|
fullWidth: n,
|
|
@@ -1439,46 +1464,47 @@ const At = I.forwardRef(
|
|
|
1439
1464
|
labelLeft: b,
|
|
1440
1465
|
noBackground: h,
|
|
1441
1466
|
align: u,
|
|
1442
|
-
radius: v
|
|
1443
|
-
|
|
1467
|
+
radius: v,
|
|
1468
|
+
variant: T
|
|
1469
|
+
}), _ = w({
|
|
1444
1470
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1445
1471
|
"text-copy-light": r === "dark" && !c,
|
|
1446
1472
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1447
1473
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1448
1474
|
});
|
|
1449
1475
|
return /* @__PURE__ */ k(
|
|
1450
|
-
|
|
1476
|
+
$e,
|
|
1451
1477
|
{
|
|
1452
|
-
ref:
|
|
1453
|
-
className:
|
|
1478
|
+
ref: y,
|
|
1479
|
+
className: x,
|
|
1454
1480
|
disabled: t,
|
|
1455
1481
|
type: i,
|
|
1456
1482
|
"aria-label": l || d,
|
|
1457
|
-
...
|
|
1483
|
+
...N,
|
|
1458
1484
|
children: [
|
|
1459
1485
|
b && /* @__PURE__ */ o("span", { className: "pr-2", children: b }),
|
|
1460
|
-
/* @__PURE__ */ o("div", { className:
|
|
1486
|
+
/* @__PURE__ */ o("div", { className: _, children: e }),
|
|
1461
1487
|
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1462
1488
|
]
|
|
1463
1489
|
}
|
|
1464
1490
|
);
|
|
1465
1491
|
}
|
|
1466
1492
|
);
|
|
1467
|
-
|
|
1493
|
+
zt.displayName = "ButtonIcon";
|
|
1468
1494
|
/*!
|
|
1469
|
-
@versini/ui-button v3.2.
|
|
1495
|
+
@versini/ui-button v3.2.2
|
|
1470
1496
|
© 2025 gizmette.com
|
|
1471
1497
|
*/
|
|
1472
1498
|
try {
|
|
1473
1499
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
1474
|
-
version: "3.2.
|
|
1475
|
-
buildTime: "01/
|
|
1500
|
+
version: "3.2.2",
|
|
1501
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
1476
1502
|
homepage: "https://github.com/aversini/ui-components",
|
|
1477
1503
|
license: "MIT"
|
|
1478
1504
|
});
|
|
1479
1505
|
} catch {
|
|
1480
1506
|
}
|
|
1481
|
-
const
|
|
1507
|
+
const Mo = I.forwardRef(
|
|
1482
1508
|
({
|
|
1483
1509
|
children: e,
|
|
1484
1510
|
disabled: t = !1,
|
|
@@ -1498,10 +1524,10 @@ const _o = I.forwardRef(
|
|
|
1498
1524
|
align: u = "center",
|
|
1499
1525
|
active: v = !1,
|
|
1500
1526
|
radius: T = "large",
|
|
1501
|
-
...
|
|
1527
|
+
...N
|
|
1502
1528
|
}, y) => {
|
|
1503
|
-
const
|
|
1504
|
-
type:
|
|
1529
|
+
const x = Mt({
|
|
1530
|
+
type: we,
|
|
1505
1531
|
mode: r,
|
|
1506
1532
|
focusMode: a,
|
|
1507
1533
|
fullWidth: n,
|
|
@@ -1515,7 +1541,7 @@ const _o = I.forwardRef(
|
|
|
1515
1541
|
noBackground: h,
|
|
1516
1542
|
align: u,
|
|
1517
1543
|
radius: T
|
|
1518
|
-
}),
|
|
1544
|
+
}), _ = w({
|
|
1519
1545
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1520
1546
|
"text-copy-light": r === "dark" && !c,
|
|
1521
1547
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
@@ -1538,25 +1564,25 @@ const _o = I.forwardRef(
|
|
|
1538
1564
|
}
|
|
1539
1565
|
) : "";
|
|
1540
1566
|
return /* @__PURE__ */ o("div", { className: B, children: /* @__PURE__ */ k(
|
|
1541
|
-
|
|
1567
|
+
$e,
|
|
1542
1568
|
{
|
|
1543
1569
|
ref: y,
|
|
1544
|
-
className:
|
|
1570
|
+
className: x,
|
|
1545
1571
|
disabled: t,
|
|
1546
1572
|
type: i,
|
|
1547
1573
|
"aria-label": l || d,
|
|
1548
|
-
...
|
|
1574
|
+
...N,
|
|
1549
1575
|
children: [
|
|
1550
1576
|
b && /* @__PURE__ */ o("span", { className: "pr-2", children: b }),
|
|
1551
|
-
/* @__PURE__ */ o("div", { className:
|
|
1577
|
+
/* @__PURE__ */ o("div", { className: _, children: e }),
|
|
1552
1578
|
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1553
1579
|
]
|
|
1554
1580
|
}
|
|
1555
1581
|
) });
|
|
1556
1582
|
}
|
|
1557
1583
|
);
|
|
1558
|
-
|
|
1559
|
-
const
|
|
1584
|
+
Mo.displayName = "ButtonSort";
|
|
1585
|
+
const zo = ({
|
|
1560
1586
|
children: e,
|
|
1561
1587
|
fill: t,
|
|
1562
1588
|
viewBox: r,
|
|
@@ -1587,26 +1613,26 @@ const Ro = ({
|
|
|
1587
1613
|
] });
|
|
1588
1614
|
};
|
|
1589
1615
|
/*!
|
|
1590
|
-
@versini/ui-svgicon v3.0.
|
|
1616
|
+
@versini/ui-svgicon v3.0.3
|
|
1591
1617
|
© 2025 gizmette.com
|
|
1592
1618
|
*/
|
|
1593
1619
|
try {
|
|
1594
1620
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
1595
|
-
version: "3.0.
|
|
1596
|
-
buildTime: "01/
|
|
1621
|
+
version: "3.0.3",
|
|
1622
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
1597
1623
|
homepage: "https://github.com/aversini/ui-components",
|
|
1598
1624
|
license: "MIT"
|
|
1599
1625
|
});
|
|
1600
1626
|
} catch {
|
|
1601
1627
|
}
|
|
1602
|
-
const
|
|
1628
|
+
const Lo = ({
|
|
1603
1629
|
className: e,
|
|
1604
1630
|
viewBox: t,
|
|
1605
1631
|
title: r,
|
|
1606
1632
|
monotone: a,
|
|
1607
1633
|
...n
|
|
1608
1634
|
}) => /* @__PURE__ */ o(
|
|
1609
|
-
|
|
1635
|
+
zo,
|
|
1610
1636
|
{
|
|
1611
1637
|
defaultViewBox: "0 0 384 512",
|
|
1612
1638
|
size: "size-5",
|
|
@@ -1618,33 +1644,33 @@ const Ao = ({
|
|
|
1618
1644
|
}
|
|
1619
1645
|
);
|
|
1620
1646
|
/*!
|
|
1621
|
-
@versini/ui-icons v3.1.
|
|
1647
|
+
@versini/ui-icons v3.1.1
|
|
1622
1648
|
© 2025 gizmette.com
|
|
1623
1649
|
*/
|
|
1624
1650
|
try {
|
|
1625
1651
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
1626
|
-
version: "3.1.
|
|
1627
|
-
buildTime: "01/
|
|
1652
|
+
version: "3.1.1",
|
|
1653
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
1628
1654
|
homepage: "https://github.com/aversini/ui-components",
|
|
1629
1655
|
license: "MIT"
|
|
1630
1656
|
});
|
|
1631
1657
|
} catch {
|
|
1632
1658
|
}
|
|
1633
|
-
const
|
|
1634
|
-
function
|
|
1659
|
+
const Lt = g.createContext(null);
|
|
1660
|
+
function Po({
|
|
1635
1661
|
initialOpen: e = !1,
|
|
1636
1662
|
open: t,
|
|
1637
1663
|
onOpenChange: r
|
|
1638
1664
|
} = {}) {
|
|
1639
|
-
const [a, n] = g.useState(e), [s, i] = g.useState(), [c, m] = g.useState(), l = t ?? a, d = r ?? n, f =
|
|
1665
|
+
const [a, n] = g.useState(e), [s, i] = g.useState(), [c, m] = g.useState(), l = t ?? a, d = r ?? n, f = nt({
|
|
1640
1666
|
open: l,
|
|
1641
1667
|
onOpenChange: d
|
|
1642
|
-
}), p = f.context, b =
|
|
1668
|
+
}), p = f.context, b = st(p, {
|
|
1643
1669
|
enabled: t == null
|
|
1644
|
-
}), h =
|
|
1670
|
+
}), h = ct(p, {
|
|
1645
1671
|
outsidePress: !1,
|
|
1646
1672
|
outsidePressEvent: "mousedown"
|
|
1647
|
-
}), u =
|
|
1673
|
+
}), u = it(p), v = lt([b, h, u]);
|
|
1648
1674
|
return g.useMemo(
|
|
1649
1675
|
() => ({
|
|
1650
1676
|
open: l,
|
|
@@ -1659,28 +1685,28 @@ function Mo({
|
|
|
1659
1685
|
[l, d, v, f, s, c]
|
|
1660
1686
|
);
|
|
1661
1687
|
}
|
|
1662
|
-
const
|
|
1663
|
-
const e = g.useContext(
|
|
1688
|
+
const Te = () => {
|
|
1689
|
+
const e = g.useContext(Lt);
|
|
1664
1690
|
if (e == null)
|
|
1665
1691
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1666
1692
|
return e;
|
|
1667
1693
|
};
|
|
1668
|
-
function
|
|
1694
|
+
function Bo({
|
|
1669
1695
|
children: e,
|
|
1670
1696
|
...t
|
|
1671
1697
|
}) {
|
|
1672
|
-
const r =
|
|
1673
|
-
return /* @__PURE__ */ o(
|
|
1698
|
+
const r = Po(t);
|
|
1699
|
+
return /* @__PURE__ */ o(Lt.Provider, { value: r, children: e });
|
|
1674
1700
|
}
|
|
1675
|
-
const
|
|
1676
|
-
const { context: r, ...a } =
|
|
1701
|
+
const Oo = g.forwardRef(function(e, t) {
|
|
1702
|
+
const { context: r, ...a } = Te(), n = Le([a.refs.setFloating, t]);
|
|
1677
1703
|
if (!r.open)
|
|
1678
1704
|
return null;
|
|
1679
1705
|
const { overlayBackground: s, ...i } = e, c = w("grid place-items-center", {
|
|
1680
1706
|
[`${s}`]: s,
|
|
1681
1707
|
"bg-black sm:bg-black/[.8]": !s
|
|
1682
1708
|
});
|
|
1683
|
-
return /* @__PURE__ */ o(
|
|
1709
|
+
return /* @__PURE__ */ o(dt, { children: /* @__PURE__ */ o(wr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(ut, { context: r, children: /* @__PURE__ */ o(
|
|
1684
1710
|
"div",
|
|
1685
1711
|
{
|
|
1686
1712
|
ref: n,
|
|
@@ -1690,14 +1716,14 @@ const Lo = g.forwardRef(function(e, t) {
|
|
|
1690
1716
|
children: i.children
|
|
1691
1717
|
}
|
|
1692
1718
|
) }) }) });
|
|
1693
|
-
}),
|
|
1694
|
-
const { setLabelId: a } =
|
|
1719
|
+
}), $o = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1720
|
+
const { setLabelId: a } = Te(), n = ze();
|
|
1695
1721
|
return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
|
|
1696
|
-
}),
|
|
1697
|
-
const { setDescriptionId: a } =
|
|
1722
|
+
}), Do = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1723
|
+
const { setDescriptionId: a } = Te(), n = ze();
|
|
1698
1724
|
return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
|
|
1699
|
-
}),
|
|
1700
|
-
const { setOpen: r } =
|
|
1725
|
+
}), Vo = g.forwardRef(function(e, t) {
|
|
1726
|
+
const { setOpen: r } = Te(), { trigger: a, className: n, ...s } = e, i = g.useCallback(() => r(!1), [r]);
|
|
1701
1727
|
return /* @__PURE__ */ o("div", { className: n, children: g.cloneElement(a, {
|
|
1702
1728
|
ref: t,
|
|
1703
1729
|
onClick: i,
|
|
@@ -1705,28 +1731,28 @@ const Lo = g.forwardRef(function(e, t) {
|
|
|
1705
1731
|
}) });
|
|
1706
1732
|
});
|
|
1707
1733
|
/*!
|
|
1708
|
-
@versini/ui-modal v1.1.
|
|
1734
|
+
@versini/ui-modal v1.1.8
|
|
1709
1735
|
© 2025 gizmette.com
|
|
1710
1736
|
*/
|
|
1711
1737
|
try {
|
|
1712
1738
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
1713
|
-
version: "1.1.
|
|
1714
|
-
buildTime: "01/
|
|
1739
|
+
version: "1.1.8",
|
|
1740
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
1715
1741
|
homepage: "https://github.com/aversini/ui-components",
|
|
1716
1742
|
license: "MIT"
|
|
1717
1743
|
});
|
|
1718
1744
|
} catch {
|
|
1719
1745
|
}
|
|
1720
|
-
const se = "panel", fe = "messagebox",
|
|
1746
|
+
const se = "panel", fe = "messagebox", Fo = ({
|
|
1721
1747
|
className: e,
|
|
1722
1748
|
kind: t,
|
|
1723
1749
|
borderMode: r
|
|
1724
1750
|
}) => ({
|
|
1725
1751
|
main: w("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
1726
|
-
[`${
|
|
1727
|
-
[`${
|
|
1728
|
-
[`${
|
|
1729
|
-
[`${
|
|
1752
|
+
[`${Ye} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === se,
|
|
1753
|
+
[`${Ye} w-full sm:w-[95%] md:max-w-2xl`]: t === se && !e,
|
|
1754
|
+
[`${We} rounded-lg border-2`]: t === fe,
|
|
1755
|
+
[`${We} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === fe && !e,
|
|
1730
1756
|
[`${e}`]: !!e,
|
|
1731
1757
|
"sm:border-border-dark": r === "dark" && t === se,
|
|
1732
1758
|
"sm:border-border-accent": r === "light" && t === se,
|
|
@@ -1747,33 +1773,33 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1747
1773
|
kind: i = se,
|
|
1748
1774
|
className: c
|
|
1749
1775
|
}) => {
|
|
1750
|
-
const m = J(""), l =
|
|
1776
|
+
const m = J(""), l = Fo({ className: c, kind: i, borderMode: s });
|
|
1751
1777
|
return G(() => (e && (m.current = document.title, document.title = `${r} | ${m.current}`), () => {
|
|
1752
1778
|
e && (document.title = m.current);
|
|
1753
|
-
}), [r, e]), /* @__PURE__ */ o(M, { children: e && /* @__PURE__ */ o(
|
|
1779
|
+
}), [r, e]), /* @__PURE__ */ o(M, { children: e && /* @__PURE__ */ o(Bo, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(Oo, { className: l.main, children: [
|
|
1754
1780
|
/* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1755
1781
|
/* @__PURE__ */ o(
|
|
1756
|
-
|
|
1782
|
+
Vo,
|
|
1757
1783
|
{
|
|
1758
1784
|
className: l.close,
|
|
1759
1785
|
trigger: /* @__PURE__ */ o(
|
|
1760
|
-
|
|
1786
|
+
zt,
|
|
1761
1787
|
{
|
|
1762
1788
|
mode: "dark",
|
|
1763
1789
|
focusMode: "light",
|
|
1764
1790
|
noBorder: !0,
|
|
1765
1791
|
label: "Close",
|
|
1766
|
-
children: /* @__PURE__ */ o(
|
|
1792
|
+
children: /* @__PURE__ */ o(Lo, {})
|
|
1767
1793
|
}
|
|
1768
1794
|
)
|
|
1769
1795
|
}
|
|
1770
1796
|
),
|
|
1771
|
-
/* @__PURE__ */ o(
|
|
1797
|
+
/* @__PURE__ */ o($o, { className: l.header, children: r })
|
|
1772
1798
|
] }),
|
|
1773
|
-
/* @__PURE__ */ o(
|
|
1799
|
+
/* @__PURE__ */ o(Do, { className: l.content, children: a }),
|
|
1774
1800
|
n && /* @__PURE__ */ o("div", { className: l.footer, children: n })
|
|
1775
1801
|
] }) }) });
|
|
1776
|
-
},
|
|
1802
|
+
}, Ho = ({ stats: e }) => {
|
|
1777
1803
|
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = de(), s = de();
|
|
1778
1804
|
return /* @__PURE__ */ k(M, { children: [
|
|
1779
1805
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
@@ -1782,8 +1808,8 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1782
1808
|
header: E.ABOUT.TITLE_CLIENT,
|
|
1783
1809
|
className: "prose-dark dark:prose-lighter",
|
|
1784
1810
|
children: ce(n, {
|
|
1785
|
-
[E.ABOUT.VERSION]: "5.18.
|
|
1786
|
-
[E.ABOUT.BUILD_TIMESTAMP]: "01/02/2025
|
|
1811
|
+
[E.ABOUT.VERSION]: "5.18.1",
|
|
1812
|
+
[E.ABOUT.BUILD_TIMESTAMP]: "01/02/2025 06:07 PM EST"
|
|
1787
1813
|
})
|
|
1788
1814
|
}
|
|
1789
1815
|
) }),
|
|
@@ -1800,13 +1826,13 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1800
1826
|
}
|
|
1801
1827
|
)
|
|
1802
1828
|
] });
|
|
1803
|
-
},
|
|
1829
|
+
}, Go = ({
|
|
1804
1830
|
open: e,
|
|
1805
1831
|
onOpenChange: t
|
|
1806
1832
|
}) => {
|
|
1807
1833
|
const { serverStats: r } = P(ge);
|
|
1808
|
-
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
1809
|
-
},
|
|
1834
|
+
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: $t, children: /* @__PURE__ */ o(Ho, { stats: r }) });
|
|
1835
|
+
}, Pt = ({
|
|
1810
1836
|
showConfirmation: e,
|
|
1811
1837
|
setShowConfirmation: t,
|
|
1812
1838
|
action: r,
|
|
@@ -1820,7 +1846,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1820
1846
|
onOpenChange: t,
|
|
1821
1847
|
title: n.title,
|
|
1822
1848
|
footer: /* @__PURE__ */ k(H, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1823
|
-
/* @__PURE__ */ o(
|
|
1849
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
1824
1850
|
F,
|
|
1825
1851
|
{
|
|
1826
1852
|
mode: "dark",
|
|
@@ -1832,7 +1858,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1832
1858
|
children: n.cancelAction
|
|
1833
1859
|
}
|
|
1834
1860
|
) }),
|
|
1835
|
-
/* @__PURE__ */ o(
|
|
1861
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
1836
1862
|
F,
|
|
1837
1863
|
{
|
|
1838
1864
|
mode: "dark",
|
|
@@ -1847,11 +1873,11 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1847
1873
|
] }),
|
|
1848
1874
|
children: a
|
|
1849
1875
|
}
|
|
1850
|
-
),
|
|
1876
|
+
), Uo = async (e, t, r, a) => {
|
|
1851
1877
|
try {
|
|
1852
|
-
const n = await
|
|
1878
|
+
const n = await $({
|
|
1853
1879
|
accessToken: a,
|
|
1854
|
-
type:
|
|
1880
|
+
type: D.GET_CHAT,
|
|
1855
1881
|
params: {
|
|
1856
1882
|
id: e.id
|
|
1857
1883
|
}
|
|
@@ -1869,25 +1895,25 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1869
1895
|
}), r(!1));
|
|
1870
1896
|
} catch {
|
|
1871
1897
|
}
|
|
1872
|
-
},
|
|
1898
|
+
}, jo = ({
|
|
1873
1899
|
filteredHistory: e,
|
|
1874
1900
|
setFilteredHistory: t,
|
|
1875
1901
|
dispatch: r,
|
|
1876
1902
|
onOpenChange: a
|
|
1877
1903
|
}) => {
|
|
1878
1904
|
var h;
|
|
1879
|
-
const { user: n, getAccessToken: s } =
|
|
1905
|
+
const { user: n, getAccessToken: s } = X(), i = J({
|
|
1880
1906
|
id: 0,
|
|
1881
1907
|
timestamp: "",
|
|
1882
1908
|
message: ""
|
|
1883
|
-
}), [c, m] = S(!1), { state: l, dispatch: d } = P(
|
|
1884
|
-
key: ue +
|
|
1909
|
+
}), [c, m] = S(!1), { state: l, dispatch: d } = P(tt), [, f] = me({
|
|
1910
|
+
key: ue + Dt,
|
|
1885
1911
|
initialValue: l.sortDirection
|
|
1886
1912
|
}), p = (u) => {
|
|
1887
1913
|
switch (l.sortDirection) {
|
|
1888
1914
|
case Y.ASC:
|
|
1889
1915
|
f(Y.DESC), d({
|
|
1890
|
-
type:
|
|
1916
|
+
type: Ve,
|
|
1891
1917
|
payload: {
|
|
1892
1918
|
sortedCell: u,
|
|
1893
1919
|
sortDirection: Y.DESC
|
|
@@ -1896,7 +1922,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1896
1922
|
break;
|
|
1897
1923
|
default:
|
|
1898
1924
|
f(Y.ASC), d({
|
|
1899
|
-
type:
|
|
1925
|
+
type: Ve,
|
|
1900
1926
|
payload: {
|
|
1901
1927
|
sortedCell: u,
|
|
1902
1928
|
sortDirection: Y.ASC
|
|
@@ -1907,16 +1933,16 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1907
1933
|
};
|
|
1908
1934
|
return /* @__PURE__ */ k(M, { children: [
|
|
1909
1935
|
/* @__PURE__ */ k(
|
|
1910
|
-
|
|
1936
|
+
Pt,
|
|
1911
1937
|
{
|
|
1912
1938
|
showConfirmation: c,
|
|
1913
1939
|
setShowConfirmation: m,
|
|
1914
1940
|
action: async () => {
|
|
1915
1941
|
const u = i.current;
|
|
1916
1942
|
try {
|
|
1917
|
-
const v = await
|
|
1943
|
+
const v = await $({
|
|
1918
1944
|
accessToken: await s(),
|
|
1919
|
-
type:
|
|
1945
|
+
type: D.DELETE_CHAT,
|
|
1920
1946
|
params: {
|
|
1921
1947
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1922
1948
|
id: u.id,
|
|
@@ -1953,16 +1979,16 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1953
1979
|
}
|
|
1954
1980
|
),
|
|
1955
1981
|
/* @__PURE__ */ k(
|
|
1956
|
-
|
|
1982
|
+
ar,
|
|
1957
1983
|
{
|
|
1958
1984
|
stickyHeader: !0,
|
|
1959
1985
|
stickyFooter: !0,
|
|
1960
1986
|
compact: !0,
|
|
1961
1987
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
1962
1988
|
children: [
|
|
1963
|
-
/* @__PURE__ */ o(
|
|
1989
|
+
/* @__PURE__ */ o(nr, { children: /* @__PURE__ */ k(Ce, { children: [
|
|
1964
1990
|
/* @__PURE__ */ o(
|
|
1965
|
-
|
|
1991
|
+
sr,
|
|
1966
1992
|
{
|
|
1967
1993
|
buttonClassName: "text-xs sm:text-sm",
|
|
1968
1994
|
cellId: "timestamp",
|
|
@@ -1975,15 +2001,15 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1975
2001
|
children: "Date"
|
|
1976
2002
|
}
|
|
1977
2003
|
),
|
|
1978
|
-
/* @__PURE__ */ o(
|
|
1979
|
-
/* @__PURE__ */ o(
|
|
1980
|
-
/* @__PURE__ */ o(
|
|
2004
|
+
/* @__PURE__ */ o(V, { className: "text-xs sm:text-sm", children: "First message" }),
|
|
2005
|
+
/* @__PURE__ */ o(V, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2006
|
+
/* @__PURE__ */ o(V, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
1981
2007
|
] }) }),
|
|
1982
|
-
/* @__PURE__ */ o(
|
|
1983
|
-
var T,
|
|
1984
|
-
return ((T = u == null ? void 0 : u.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ k(
|
|
2008
|
+
/* @__PURE__ */ o(ir, { children: e.data.map((u, v) => {
|
|
2009
|
+
var T, N;
|
|
2010
|
+
return ((T = u == null ? void 0 : u.messages) == null ? void 0 : T.length) > 0 ? /* @__PURE__ */ k(Ce, { children: [
|
|
1985
2011
|
/* @__PURE__ */ o(
|
|
1986
|
-
|
|
2012
|
+
V,
|
|
1987
2013
|
{
|
|
1988
2014
|
component: "th",
|
|
1989
2015
|
scope: "row",
|
|
@@ -1992,40 +2018,40 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
1992
2018
|
}
|
|
1993
2019
|
),
|
|
1994
2020
|
/* @__PURE__ */ o(
|
|
1995
|
-
|
|
2021
|
+
V,
|
|
1996
2022
|
{
|
|
1997
2023
|
className: "max-w-[100px] text-white sm:max-w-full text-xs sm:text-sm",
|
|
1998
2024
|
style: {
|
|
1999
2025
|
wordBreak: "break-word"
|
|
2000
2026
|
},
|
|
2001
|
-
children: u.messages.length > 0 ? (
|
|
2027
|
+
children: u.messages.length > 0 ? (N = u.messages[0]) == null ? void 0 : N.content : ""
|
|
2002
2028
|
}
|
|
2003
2029
|
),
|
|
2004
|
-
/* @__PURE__ */ o(
|
|
2005
|
-
u.model && u.model.startsWith("claude") && /* @__PURE__ */ o(
|
|
2006
|
-
u.model && u.model.startsWith("gpt") && /* @__PURE__ */ o(
|
|
2030
|
+
/* @__PURE__ */ o(V, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ k(H, { alignHorizontal: "center", children: [
|
|
2031
|
+
u.model && u.model.startsWith("claude") && /* @__PURE__ */ o(mt, { size: "size-4 sm:size-5" }),
|
|
2032
|
+
u.model && u.model.startsWith("gpt") && /* @__PURE__ */ o(ht, { size: "size-4 sm:size-5" })
|
|
2007
2033
|
] }) }),
|
|
2008
|
-
/* @__PURE__ */ o(
|
|
2034
|
+
/* @__PURE__ */ o(V, { className: "px-2", children: /* @__PURE__ */ k("div", { className: "flex justify-end gap-2", children: [
|
|
2009
2035
|
/* @__PURE__ */ o(
|
|
2010
|
-
|
|
2036
|
+
Q,
|
|
2011
2037
|
{
|
|
2012
2038
|
focusMode: "alt-system",
|
|
2013
2039
|
noBorder: !0,
|
|
2014
2040
|
label: "Restore chat",
|
|
2015
2041
|
onClick: async () => {
|
|
2016
2042
|
const y = await s();
|
|
2017
|
-
|
|
2043
|
+
Uo(
|
|
2018
2044
|
u,
|
|
2019
2045
|
r,
|
|
2020
2046
|
a,
|
|
2021
2047
|
y
|
|
2022
2048
|
);
|
|
2023
2049
|
},
|
|
2024
|
-
children: /* @__PURE__ */ o(
|
|
2050
|
+
children: /* @__PURE__ */ o(Sr, { size: "size-3", monotone: !0 })
|
|
2025
2051
|
}
|
|
2026
2052
|
),
|
|
2027
2053
|
/* @__PURE__ */ o(
|
|
2028
|
-
|
|
2054
|
+
Q,
|
|
2029
2055
|
{
|
|
2030
2056
|
focusMode: "alt-system",
|
|
2031
2057
|
noBorder: !0,
|
|
@@ -2038,13 +2064,13 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2038
2064
|
message: u.messages.length > 0 ? (y = u.messages[0]) == null ? void 0 : y.content : ""
|
|
2039
2065
|
}, m(!c);
|
|
2040
2066
|
},
|
|
2041
|
-
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(
|
|
2067
|
+
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Nr, { size: "size-3", monotone: !0 }) })
|
|
2042
2068
|
}
|
|
2043
2069
|
)
|
|
2044
2070
|
] }) })
|
|
2045
2071
|
] }, `${E.HISTORY.TITLE}-${u.id}-${v}`) : null;
|
|
2046
2072
|
}) }),
|
|
2047
|
-
/* @__PURE__ */ o(
|
|
2073
|
+
/* @__PURE__ */ o(cr, { children: /* @__PURE__ */ o(Ce, { children: /* @__PURE__ */ o(V, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: pe(
|
|
2048
2074
|
`${e.data.length} chat`,
|
|
2049
2075
|
e.data.length
|
|
2050
2076
|
) }) }) }) })
|
|
@@ -2052,7 +2078,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2052
2078
|
}
|
|
2053
2079
|
)
|
|
2054
2080
|
] });
|
|
2055
|
-
},
|
|
2081
|
+
}, Xe = async ({
|
|
2056
2082
|
searchString: e,
|
|
2057
2083
|
username: t,
|
|
2058
2084
|
accessToken: r,
|
|
@@ -2061,9 +2087,9 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2061
2087
|
if (!t)
|
|
2062
2088
|
return [];
|
|
2063
2089
|
try {
|
|
2064
|
-
const n = await
|
|
2090
|
+
const n = await $({
|
|
2065
2091
|
accessToken: r,
|
|
2066
|
-
type:
|
|
2092
|
+
type: D.GET_CHATS,
|
|
2067
2093
|
params: {
|
|
2068
2094
|
userId: t,
|
|
2069
2095
|
searchString: e,
|
|
@@ -2078,15 +2104,15 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2078
2104
|
return [];
|
|
2079
2105
|
}
|
|
2080
2106
|
return [];
|
|
2081
|
-
},
|
|
2082
|
-
const { isAuthenticated: t, getAccessToken: r, user: a } =
|
|
2083
|
-
key: ue +
|
|
2107
|
+
}, Ko = ({ onOpenChange: e }) => {
|
|
2108
|
+
const { isAuthenticated: t, getAccessToken: r, user: a } = X(), n = J(null), s = J(!1), { dispatch: i } = P(ge), { state: c, dispatch: m } = P(tt), [, l] = me({
|
|
2109
|
+
key: ue + Ft,
|
|
2084
2110
|
initialValue: c.searchString
|
|
2085
2111
|
}), [d, f] = S({
|
|
2086
2112
|
data: [],
|
|
2087
2113
|
sortedDirection: c.sortDirection
|
|
2088
2114
|
}), p = async (u) => {
|
|
2089
|
-
const v = await r(), T = await
|
|
2115
|
+
const v = await r(), T = await Xe({
|
|
2090
2116
|
searchString: u,
|
|
2091
2117
|
username: a == null ? void 0 : a.username,
|
|
2092
2118
|
accessToken: v,
|
|
@@ -2096,10 +2122,10 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2096
2122
|
data: T,
|
|
2097
2123
|
sortedDirection: c.sortDirection
|
|
2098
2124
|
}), l(u), m({
|
|
2099
|
-
type:
|
|
2125
|
+
type: Ht,
|
|
2100
2126
|
payload: { searchString: u }
|
|
2101
2127
|
});
|
|
2102
|
-
}, b =
|
|
2128
|
+
}, b = Gt((u) => {
|
|
2103
2129
|
p(u.target.value);
|
|
2104
2130
|
}, 500), h = async (u) => {
|
|
2105
2131
|
u.preventDefault();
|
|
@@ -2107,7 +2133,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2107
2133
|
return G(() => {
|
|
2108
2134
|
s.current || (async () => {
|
|
2109
2135
|
s.current = !0;
|
|
2110
|
-
const u = await r(), v = await
|
|
2136
|
+
const u = await r(), v = await Xe({
|
|
2111
2137
|
searchString: c.searchString,
|
|
2112
2138
|
username: a == null ? void 0 : a.username,
|
|
2113
2139
|
accessToken: u,
|
|
@@ -2122,8 +2148,8 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2122
2148
|
if (c.sortDirection !== d.sortedDirection) {
|
|
2123
2149
|
const u = [...d.data].sort((v, T) => {
|
|
2124
2150
|
if (c.sortedCell === "timestamp") {
|
|
2125
|
-
const
|
|
2126
|
-
return c.sortDirection === Y.ASC ?
|
|
2151
|
+
const N = new Date(v[c.sortedCell]).getTime(), y = new Date(T[c.sortedCell]).getTime();
|
|
2152
|
+
return c.sortDirection === Y.ASC ? N - y : y - N;
|
|
2127
2153
|
}
|
|
2128
2154
|
return 0;
|
|
2129
2155
|
});
|
|
@@ -2134,7 +2160,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2134
2160
|
}
|
|
2135
2161
|
}, [d, c]), t ? d && d.data && /* @__PURE__ */ k(M, { children: [
|
|
2136
2162
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: h, children: /* @__PURE__ */ o(
|
|
2137
|
-
|
|
2163
|
+
Ee,
|
|
2138
2164
|
{
|
|
2139
2165
|
autoCapitalize: "off",
|
|
2140
2166
|
autoComplete: "off",
|
|
@@ -2168,7 +2194,7 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2168
2194
|
}
|
|
2169
2195
|
) }),
|
|
2170
2196
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
|
|
2171
|
-
|
|
2197
|
+
jo,
|
|
2172
2198
|
{
|
|
2173
2199
|
filteredHistory: d,
|
|
2174
2200
|
setFilteredHistory: f,
|
|
@@ -2177,24 +2203,24 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2177
2203
|
}
|
|
2178
2204
|
) })
|
|
2179
2205
|
] }) : null;
|
|
2180
|
-
},
|
|
2206
|
+
}, Wo = ({
|
|
2181
2207
|
open: e,
|
|
2182
2208
|
onOpenChange: t
|
|
2183
|
-
}) => /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
2209
|
+
}) => /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ut, children: /* @__PURE__ */ o(Ko, { onOpenChange: t }) }), Yo = (e) => Qe(e), qo = (e) => {
|
|
2184
2210
|
if (!e || e.length === 0)
|
|
2185
|
-
return
|
|
2211
|
+
return Wt;
|
|
2186
2212
|
const t = e.filter(
|
|
2187
2213
|
(r) => {
|
|
2188
2214
|
var a, n;
|
|
2189
|
-
return ((a = r == null ? void 0 : r.message) == null ? void 0 : a.role) ===
|
|
2215
|
+
return ((a = r == null ? void 0 : r.message) == null ? void 0 : a.role) === Yt && typeof ((n = r == null ? void 0 : r.message) == null ? void 0 : n.processingTime) == "number";
|
|
2190
2216
|
}
|
|
2191
2217
|
).map((r) => r.message.processingTime);
|
|
2192
|
-
return
|
|
2218
|
+
return qt({
|
|
2193
2219
|
data: t,
|
|
2194
|
-
formatter:
|
|
2220
|
+
formatter: Yo
|
|
2195
2221
|
});
|
|
2196
|
-
},
|
|
2197
|
-
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } =
|
|
2222
|
+
}, Xo = ({ stats: e }) => {
|
|
2223
|
+
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = X(), { state: s } = P(ge), i = Xt - Number(s == null ? void 0 : s.usage), c = de(), m = de(), l = de(), d = (r == null ? void 0 : r.username) || "";
|
|
2198
2224
|
return t && d ? /* @__PURE__ */ k(M, { children: [
|
|
2199
2225
|
/* @__PURE__ */ o(
|
|
2200
2226
|
L,
|
|
@@ -2207,24 +2233,24 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2207
2233
|
})
|
|
2208
2234
|
}
|
|
2209
2235
|
),
|
|
2210
|
-
n !==
|
|
2236
|
+
n !== jt.PASSKEY && /* @__PURE__ */ k(
|
|
2211
2237
|
L,
|
|
2212
2238
|
{
|
|
2213
2239
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2214
2240
|
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ k(H, { columnGap: 3, alignVertical: "center", children: [
|
|
2215
|
-
/* @__PURE__ */ o(
|
|
2216
|
-
/* @__PURE__ */ o(
|
|
2241
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(Fe, { size: "size-8" }) }),
|
|
2242
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o("div", { children: E.PREFERENCES.PASSKEY_TITLE }) })
|
|
2217
2243
|
] }) }),
|
|
2218
2244
|
children: [
|
|
2219
2245
|
/* @__PURE__ */ o("p", { children: E.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
2220
2246
|
/* @__PURE__ */ o(
|
|
2221
|
-
|
|
2247
|
+
Q,
|
|
2222
2248
|
{
|
|
2223
2249
|
size: "small",
|
|
2224
2250
|
className: "mt-2",
|
|
2225
2251
|
onClick: a,
|
|
2226
2252
|
labelLeft: E.PREFERENCES.PASSKEY_BUTTON,
|
|
2227
|
-
children: /* @__PURE__ */ o(
|
|
2253
|
+
children: /* @__PURE__ */ o(Fe, { size: "size-5", monotone: !0 })
|
|
2228
2254
|
}
|
|
2229
2255
|
)
|
|
2230
2256
|
]
|
|
@@ -2238,8 +2264,8 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2238
2264
|
children: ce(m, {
|
|
2239
2265
|
[E.CURRENT_STATISTICS.MODEL_NAME]: (s == null ? void 0 : s.model) || le,
|
|
2240
2266
|
[E.CURRENT_STATISTICS.TOKENS_USED]: s == null ? void 0 : s.usage,
|
|
2241
|
-
[E.CURRENT_STATISTICS.REMAINING_TOKENS]:
|
|
2242
|
-
[E.CURRENT_STATISTICS.PROCESSING_TIME]:
|
|
2267
|
+
[E.CURRENT_STATISTICS.REMAINING_TOKENS]: Kt.format(i),
|
|
2268
|
+
[E.CURRENT_STATISTICS.PROCESSING_TIME]: qo(s == null ? void 0 : s.messages)
|
|
2243
2269
|
})
|
|
2244
2270
|
}
|
|
2245
2271
|
),
|
|
@@ -2257,20 +2283,20 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2257
2283
|
}
|
|
2258
2284
|
)
|
|
2259
2285
|
] }) : null;
|
|
2260
|
-
},
|
|
2286
|
+
}, Zo = ({
|
|
2261
2287
|
open: e,
|
|
2262
2288
|
onOpenChange: t
|
|
2263
2289
|
}) => {
|
|
2264
2290
|
const [r, a] = S({
|
|
2265
2291
|
averageProcessingTimes: 0,
|
|
2266
2292
|
totalChats: 0
|
|
2267
|
-
}), { getAccessToken: n, user: s } =
|
|
2293
|
+
}), { getAccessToken: n, user: s } = X();
|
|
2268
2294
|
return G(() => {
|
|
2269
2295
|
!e || !s || (async () => {
|
|
2270
2296
|
try {
|
|
2271
|
-
const i = await
|
|
2297
|
+
const i = await $({
|
|
2272
2298
|
accessToken: await n(),
|
|
2273
|
-
type:
|
|
2299
|
+
type: D.GET_CHATS_STATS,
|
|
2274
2300
|
params: {
|
|
2275
2301
|
userId: s.username
|
|
2276
2302
|
}
|
|
@@ -2279,22 +2305,22 @@ const se = "panel", fe = "messagebox", Vo = ({
|
|
|
2279
2305
|
} catch {
|
|
2280
2306
|
}
|
|
2281
2307
|
})();
|
|
2282
|
-
}, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
2308
|
+
}, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ o(Xo, { stats: r }) });
|
|
2283
2309
|
};
|
|
2284
2310
|
/*!
|
|
2285
|
-
@versini/ui-toggle v2.0.
|
|
2286
|
-
©
|
|
2311
|
+
@versini/ui-toggle v2.0.6
|
|
2312
|
+
© 2025 gizmette.com
|
|
2287
2313
|
*/
|
|
2288
2314
|
try {
|
|
2289
2315
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
2290
|
-
version: "2.0.
|
|
2291
|
-
buildTime: "
|
|
2316
|
+
version: "2.0.6",
|
|
2317
|
+
buildTime: "01/02/2025 05:13 PM EST",
|
|
2292
2318
|
homepage: "https://github.com/aversini/ui-components",
|
|
2293
2319
|
license: "MIT"
|
|
2294
2320
|
});
|
|
2295
2321
|
} catch {
|
|
2296
2322
|
}
|
|
2297
|
-
const
|
|
2323
|
+
const Qo = "av-toggle", Jo = () => w("peer", "h-6", "w-11", "rounded-full"), ea = ({
|
|
2298
2324
|
focusMode: e
|
|
2299
2325
|
}) => w(
|
|
2300
2326
|
"peer-focus:outline",
|
|
@@ -2306,14 +2332,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2306
2332
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
2307
2333
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
2308
2334
|
}
|
|
2309
|
-
),
|
|
2335
|
+
), ta = () => w(
|
|
2310
2336
|
"peer-checked:after:translate-x-full",
|
|
2311
2337
|
// background color when checked
|
|
2312
2338
|
"peer-checked:bg-violet-500",
|
|
2313
2339
|
// knob circle and border color when checked
|
|
2314
2340
|
"peer-checked:after:bg-white",
|
|
2315
2341
|
"peer-checked:after:border-white"
|
|
2316
|
-
),
|
|
2342
|
+
), ra = () => w(
|
|
2317
2343
|
"after:left-[2px]",
|
|
2318
2344
|
"after:top-[2px]",
|
|
2319
2345
|
"after:border",
|
|
@@ -2325,7 +2351,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2325
2351
|
"after:rounded-full",
|
|
2326
2352
|
"after:transition-all",
|
|
2327
2353
|
"after:content-['']"
|
|
2328
|
-
),
|
|
2354
|
+
), oa = ({
|
|
2329
2355
|
mode: e,
|
|
2330
2356
|
noBorder: t
|
|
2331
2357
|
}) => w({
|
|
@@ -2334,7 +2360,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2334
2360
|
"border-border-light bg-surface-darker": e === "dark",
|
|
2335
2361
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
2336
2362
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
2337
|
-
}),
|
|
2363
|
+
}), aa = ({
|
|
2338
2364
|
mode: e,
|
|
2339
2365
|
labelHidden: t
|
|
2340
2366
|
}) => t ? "sr-only" : w("ml-2 text-sm", {
|
|
@@ -2342,11 +2368,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2342
2368
|
"text-copy-lighter": e === "dark",
|
|
2343
2369
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
2344
2370
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
2345
|
-
}),
|
|
2346
|
-
|
|
2371
|
+
}), na = ({ className: e }) => w(
|
|
2372
|
+
Qo,
|
|
2347
2373
|
"relative flex cursor-pointer items-center",
|
|
2348
2374
|
e
|
|
2349
|
-
),
|
|
2375
|
+
), sa = ({
|
|
2350
2376
|
mode: e,
|
|
2351
2377
|
focusMode: t,
|
|
2352
2378
|
labelHidden: r,
|
|
@@ -2354,15 +2380,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2354
2380
|
noBorder: n
|
|
2355
2381
|
}) => ({
|
|
2356
2382
|
toggle: w(
|
|
2357
|
-
Zo(),
|
|
2358
|
-
ea({ mode: e, noBorder: n }),
|
|
2359
|
-
Qo({ focusMode: t }),
|
|
2360
2383
|
Jo(),
|
|
2361
|
-
|
|
2384
|
+
oa({ mode: e, noBorder: n }),
|
|
2385
|
+
ea({ focusMode: t }),
|
|
2386
|
+
ra(),
|
|
2387
|
+
ta()
|
|
2362
2388
|
),
|
|
2363
|
-
label:
|
|
2389
|
+
label: aa({ mode: e, labelHidden: r }),
|
|
2364
2390
|
input: "peer sr-only",
|
|
2365
|
-
wrapper:
|
|
2391
|
+
wrapper: na({ className: a })
|
|
2366
2392
|
}), ie = ({
|
|
2367
2393
|
checked: e = !1,
|
|
2368
2394
|
onChange: t,
|
|
@@ -2374,7 +2400,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2374
2400
|
className: c,
|
|
2375
2401
|
noBorder: m = !1
|
|
2376
2402
|
}) => {
|
|
2377
|
-
const l =
|
|
2403
|
+
const l = sa({
|
|
2378
2404
|
mode: s,
|
|
2379
2405
|
focusMode: i,
|
|
2380
2406
|
labelHidden: a,
|
|
@@ -2397,11 +2423,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2397
2423
|
/* @__PURE__ */ o("div", { className: l.toggle }),
|
|
2398
2424
|
/* @__PURE__ */ o("span", { className: l.label, children: r })
|
|
2399
2425
|
] });
|
|
2400
|
-
},
|
|
2426
|
+
}, ia = ({
|
|
2401
2427
|
open: e,
|
|
2402
2428
|
onOpenChange: t
|
|
2403
2429
|
}) => {
|
|
2404
|
-
const { state: r, dispatch: a } = P(
|
|
2430
|
+
const { state: r, dispatch: a } = P(lr), { getAccessToken: n, user: s } = X(), [i, c] = S({
|
|
2405
2431
|
tags: [...r.tags]
|
|
2406
2432
|
}), m = ({
|
|
2407
2433
|
slot: d,
|
|
@@ -2415,7 +2441,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2415
2441
|
label: p,
|
|
2416
2442
|
content: b,
|
|
2417
2443
|
enabled: f
|
|
2418
|
-
}, T = u.findIndex((
|
|
2444
|
+
}, T = u.findIndex((N) => N.slot === d);
|
|
2419
2445
|
return T === -1 ? {
|
|
2420
2446
|
...h,
|
|
2421
2447
|
tags: [...u, { ...v, slot: d }]
|
|
@@ -2427,15 +2453,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2427
2453
|
}, l = async (d) => {
|
|
2428
2454
|
d.preventDefault();
|
|
2429
2455
|
try {
|
|
2430
|
-
await
|
|
2456
|
+
await $({
|
|
2431
2457
|
accessToken: await n(),
|
|
2432
|
-
type:
|
|
2458
|
+
type: D.SET_USER_PREFERENCES,
|
|
2433
2459
|
params: {
|
|
2434
2460
|
user: s == null ? void 0 : s.username,
|
|
2435
2461
|
tags: i.tags
|
|
2436
2462
|
}
|
|
2437
2463
|
}), a({
|
|
2438
|
-
type:
|
|
2464
|
+
type: Jt,
|
|
2439
2465
|
payload: {
|
|
2440
2466
|
tags: i.tags
|
|
2441
2467
|
}
|
|
@@ -2456,7 +2482,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2456
2482
|
alignHorizontal: "flex-end",
|
|
2457
2483
|
className: "pb-8 sm:pb-0",
|
|
2458
2484
|
children: [
|
|
2459
|
-
/* @__PURE__ */ o(
|
|
2485
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2460
2486
|
F,
|
|
2461
2487
|
{
|
|
2462
2488
|
mode: "dark",
|
|
@@ -2468,7 +2494,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2468
2494
|
children: "Cancel"
|
|
2469
2495
|
}
|
|
2470
2496
|
) }),
|
|
2471
|
-
/* @__PURE__ */ o(
|
|
2497
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2472
2498
|
F,
|
|
2473
2499
|
{
|
|
2474
2500
|
mode: "dark",
|
|
@@ -2484,7 +2510,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2484
2510
|
}
|
|
2485
2511
|
),
|
|
2486
2512
|
children: [
|
|
2487
|
-
/* @__PURE__ */ o("p", { children:
|
|
2513
|
+
/* @__PURE__ */ o("p", { children: Qt }),
|
|
2488
2514
|
i.tags && i.tags.map((d) => /* @__PURE__ */ k(
|
|
2489
2515
|
L,
|
|
2490
2516
|
{
|
|
@@ -2492,8 +2518,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2492
2518
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2493
2519
|
children: [
|
|
2494
2520
|
/* @__PURE__ */ k(H, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2495
|
-
/* @__PURE__ */ o(
|
|
2496
|
-
|
|
2521
|
+
/* @__PURE__ */ o(A, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2522
|
+
Ee,
|
|
2497
2523
|
{
|
|
2498
2524
|
label: "Label",
|
|
2499
2525
|
name: `tag${d.slot}-label`,
|
|
@@ -2508,8 +2534,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2508
2534
|
}
|
|
2509
2535
|
}
|
|
2510
2536
|
) }),
|
|
2511
|
-
/* @__PURE__ */ o(
|
|
2512
|
-
|
|
2537
|
+
/* @__PURE__ */ o(A, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2538
|
+
Ee,
|
|
2513
2539
|
{
|
|
2514
2540
|
label: "Content",
|
|
2515
2541
|
name: `tag${d.slot}-content`,
|
|
@@ -2550,30 +2576,30 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2550
2576
|
]
|
|
2551
2577
|
}
|
|
2552
2578
|
);
|
|
2553
|
-
},
|
|
2579
|
+
}, ca = ({
|
|
2554
2580
|
open: e,
|
|
2555
2581
|
onOpenChange: t
|
|
2556
2582
|
}) => {
|
|
2557
|
-
const { dispatch: r } = P(ge), { getAccessToken: a, user: n } =
|
|
2583
|
+
const { dispatch: r } = P(ge), { getAccessToken: a, user: n } = X(), [s, i] = S(!1), [c, m] = S({
|
|
2558
2584
|
loaded: !1,
|
|
2559
2585
|
instructions: "",
|
|
2560
2586
|
loadingLocation: !1,
|
|
2561
2587
|
location: "",
|
|
2562
2588
|
engine: le
|
|
2563
2589
|
}), [l, d] = me({
|
|
2564
|
-
key: ue +
|
|
2590
|
+
key: ue + Je,
|
|
2565
2591
|
initialValue: !1
|
|
2566
2592
|
}), [f, p] = me({
|
|
2567
|
-
key: ue +
|
|
2593
|
+
key: ue + er,
|
|
2568
2594
|
initialValue: !1
|
|
2569
2595
|
}), b = (y) => {
|
|
2570
2596
|
p(y);
|
|
2571
2597
|
}, h = async (y) => {
|
|
2572
2598
|
y.preventDefault();
|
|
2573
2599
|
try {
|
|
2574
|
-
await
|
|
2600
|
+
await $({
|
|
2575
2601
|
accessToken: await a(),
|
|
2576
|
-
type:
|
|
2602
|
+
type: D.SET_USER_PREFERENCES,
|
|
2577
2603
|
params: {
|
|
2578
2604
|
user: n == null ? void 0 : n.username,
|
|
2579
2605
|
instructions: c.instructions,
|
|
@@ -2581,7 +2607,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2581
2607
|
engine: c.engine
|
|
2582
2608
|
}
|
|
2583
2609
|
}), r({
|
|
2584
|
-
type:
|
|
2610
|
+
type: et,
|
|
2585
2611
|
payload: {
|
|
2586
2612
|
engine: c.engine
|
|
2587
2613
|
}
|
|
@@ -2595,16 +2621,16 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2595
2621
|
loadingLocation: !0
|
|
2596
2622
|
}));
|
|
2597
2623
|
try {
|
|
2598
|
-
const y = Date.now(),
|
|
2624
|
+
const y = Date.now(), x = await or(), _ = await $({
|
|
2599
2625
|
accessToken: await a(),
|
|
2600
|
-
type:
|
|
2626
|
+
type: D.GET_LOCATION,
|
|
2601
2627
|
params: {
|
|
2602
|
-
latitude:
|
|
2603
|
-
longitude:
|
|
2628
|
+
latitude: x.latitude,
|
|
2629
|
+
longitude: x.longitude
|
|
2604
2630
|
}
|
|
2605
|
-
}),
|
|
2606
|
-
if (
|
|
2607
|
-
const { city: C, state: U, country: j, displayName: K } =
|
|
2631
|
+
}), R = Date.now() - y;
|
|
2632
|
+
if (R < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - R)), _.status === 200) {
|
|
2633
|
+
const { city: C, state: U, country: j, displayName: K } = _.data, re = C && U && j ? `${C}, ${U}, ${j}` : K;
|
|
2608
2634
|
m((oe) => ({
|
|
2609
2635
|
...oe,
|
|
2610
2636
|
loaded: !0,
|
|
@@ -2621,16 +2647,16 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2621
2647
|
} catch {
|
|
2622
2648
|
}
|
|
2623
2649
|
}, v = (y) => {
|
|
2624
|
-
m((
|
|
2625
|
-
...
|
|
2626
|
-
engine: y ? ne :
|
|
2650
|
+
m((x) => ({
|
|
2651
|
+
...x,
|
|
2652
|
+
engine: y ? ne : Z
|
|
2627
2653
|
}));
|
|
2628
2654
|
}, T = (y) => {
|
|
2629
|
-
m((
|
|
2630
|
-
...
|
|
2631
|
-
engine: y ?
|
|
2655
|
+
m((x) => ({
|
|
2656
|
+
...x,
|
|
2657
|
+
engine: y ? Z : ne
|
|
2632
2658
|
}));
|
|
2633
|
-
},
|
|
2659
|
+
}, N = () => {
|
|
2634
2660
|
i(!s);
|
|
2635
2661
|
};
|
|
2636
2662
|
return G(() => {
|
|
@@ -2646,15 +2672,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2646
2672
|
}
|
|
2647
2673
|
(async () => {
|
|
2648
2674
|
try {
|
|
2649
|
-
const y = await
|
|
2675
|
+
const y = await $({
|
|
2650
2676
|
accessToken: await a(),
|
|
2651
|
-
type:
|
|
2677
|
+
type: D.GET_USER_PREFERENCES,
|
|
2652
2678
|
params: {
|
|
2653
2679
|
user: n.username
|
|
2654
2680
|
}
|
|
2655
2681
|
});
|
|
2656
|
-
y.status === 200 && m((
|
|
2657
|
-
...
|
|
2682
|
+
y.status === 200 && m((x) => ({
|
|
2683
|
+
...x,
|
|
2658
2684
|
loaded: !0,
|
|
2659
2685
|
instructions: y.data.instructions || "",
|
|
2660
2686
|
location: y.data.location || "",
|
|
@@ -2668,7 +2694,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2668
2694
|
{
|
|
2669
2695
|
open: e,
|
|
2670
2696
|
onOpenChange: t,
|
|
2671
|
-
title:
|
|
2697
|
+
title: tr,
|
|
2672
2698
|
footer: /* @__PURE__ */ k(
|
|
2673
2699
|
H,
|
|
2674
2700
|
{
|
|
@@ -2676,7 +2702,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2676
2702
|
alignHorizontal: "flex-end",
|
|
2677
2703
|
className: "pb-8 sm:pb-0",
|
|
2678
2704
|
children: [
|
|
2679
|
-
/* @__PURE__ */ o(
|
|
2705
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2680
2706
|
F,
|
|
2681
2707
|
{
|
|
2682
2708
|
mode: "dark",
|
|
@@ -2688,7 +2714,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2688
2714
|
children: "Cancel"
|
|
2689
2715
|
}
|
|
2690
2716
|
) }),
|
|
2691
|
-
/* @__PURE__ */ o(
|
|
2717
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2692
2718
|
F,
|
|
2693
2719
|
{
|
|
2694
2720
|
mode: "dark",
|
|
@@ -2704,7 +2730,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2704
2730
|
}
|
|
2705
2731
|
),
|
|
2706
2732
|
children: /* @__PURE__ */ k(M, { children: [
|
|
2707
|
-
s && /* @__PURE__ */ o(
|
|
2733
|
+
s && /* @__PURE__ */ o(ia, { open: s, onOpenChange: i }),
|
|
2708
2734
|
/* @__PURE__ */ k(
|
|
2709
2735
|
L,
|
|
2710
2736
|
{
|
|
@@ -2727,10 +2753,10 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2727
2753
|
{
|
|
2728
2754
|
className: "mt-2",
|
|
2729
2755
|
noBorder: !0,
|
|
2730
|
-
label:
|
|
2731
|
-
name:
|
|
2756
|
+
label: Z,
|
|
2757
|
+
name: Z,
|
|
2732
2758
|
onChange: T,
|
|
2733
|
-
checked: c.engine ===
|
|
2759
|
+
checked: c.engine === Z
|
|
2734
2760
|
}
|
|
2735
2761
|
),
|
|
2736
2762
|
/* @__PURE__ */ o("p", { className: "text-xs", children: "This option introduces a new menu at the top of the screen, enabling you to quickly switch between engines." }),
|
|
@@ -2759,13 +2785,13 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2759
2785
|
),
|
|
2760
2786
|
/* @__PURE__ */ o("h3", { className: "border-b-2 border-slate-400", children: "Tags" }),
|
|
2761
2787
|
/* @__PURE__ */ o(
|
|
2762
|
-
|
|
2788
|
+
Q,
|
|
2763
2789
|
{
|
|
2764
2790
|
className: "mt-2",
|
|
2765
2791
|
size: "small",
|
|
2766
|
-
onClick:
|
|
2792
|
+
onClick: N,
|
|
2767
2793
|
labelLeft: "Edit Custom Tags",
|
|
2768
|
-
children: /* @__PURE__ */ o(
|
|
2794
|
+
children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 })
|
|
2769
2795
|
}
|
|
2770
2796
|
)
|
|
2771
2797
|
]
|
|
@@ -2779,11 +2805,11 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2779
2805
|
children: [
|
|
2780
2806
|
/* @__PURE__ */ k("p", { children: [
|
|
2781
2807
|
"What would you like ",
|
|
2782
|
-
/* @__PURE__ */ o("em", { children:
|
|
2808
|
+
/* @__PURE__ */ o("em", { children: rr }),
|
|
2783
2809
|
" to know about you to provide better responses?"
|
|
2784
2810
|
] }),
|
|
2785
2811
|
/* @__PURE__ */ o(
|
|
2786
|
-
|
|
2812
|
+
Ge,
|
|
2787
2813
|
{
|
|
2788
2814
|
mode: "alt-system",
|
|
2789
2815
|
autoCapitalize: "off",
|
|
@@ -2793,8 +2819,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2793
2819
|
label: "Custom Instructions",
|
|
2794
2820
|
value: c.instructions,
|
|
2795
2821
|
onChange: (y) => {
|
|
2796
|
-
m((
|
|
2797
|
-
...
|
|
2822
|
+
m((x) => ({
|
|
2823
|
+
...x,
|
|
2798
2824
|
loaded: !0,
|
|
2799
2825
|
instructions: y.target.value
|
|
2800
2826
|
}));
|
|
@@ -2813,15 +2839,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2813
2839
|
children: [
|
|
2814
2840
|
/* @__PURE__ */ o("p", { children: "You can share your location to receive customized responses based on your area." }),
|
|
2815
2841
|
/* @__PURE__ */ o(
|
|
2816
|
-
|
|
2842
|
+
Ge,
|
|
2817
2843
|
{
|
|
2818
2844
|
mode: "alt-system",
|
|
2819
2845
|
name: "location",
|
|
2820
2846
|
label: "Location",
|
|
2821
2847
|
value: c.location,
|
|
2822
2848
|
onChange: (y) => {
|
|
2823
|
-
m((
|
|
2824
|
-
...
|
|
2849
|
+
m((x) => ({
|
|
2850
|
+
...x,
|
|
2825
2851
|
loaded: !0,
|
|
2826
2852
|
location: y.target.value
|
|
2827
2853
|
}));
|
|
@@ -2846,54 +2872,54 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2846
2872
|
] })
|
|
2847
2873
|
}
|
|
2848
2874
|
);
|
|
2849
|
-
},
|
|
2875
|
+
}, pa = () => {
|
|
2850
2876
|
const { state: e, dispatch: t, serverStats: r } = P(ge), [a, n] = S((e == null ? void 0 : e.engine) || le), [s, i] = S(!1), [c, m] = S(!1), [l, d] = S(!1), [f, p] = S(!1), [b, h] = S(!1), [u] = me({
|
|
2851
|
-
key: ue +
|
|
2877
|
+
key: ue + Je,
|
|
2852
2878
|
initialValue: !1
|
|
2853
|
-
}), { logout: v, getAccessToken: T, user:
|
|
2879
|
+
}), { logout: v, getAccessToken: T, user: N } = X(), y = () => {
|
|
2854
2880
|
i(!s);
|
|
2855
|
-
},
|
|
2881
|
+
}, x = () => {
|
|
2856
2882
|
m(!c);
|
|
2857
|
-
},
|
|
2883
|
+
}, _ = () => {
|
|
2858
2884
|
d(!l);
|
|
2859
2885
|
}, B = () => {
|
|
2860
2886
|
p(!f);
|
|
2861
|
-
},
|
|
2887
|
+
}, R = () => {
|
|
2862
2888
|
h(!b);
|
|
2863
2889
|
};
|
|
2864
2890
|
return G(() => {
|
|
2865
2891
|
e && e.engine && e.engine !== a && n(e.engine);
|
|
2866
2892
|
}, [e, a]), /* @__PURE__ */ k(M, { children: [
|
|
2867
2893
|
/* @__PURE__ */ o(
|
|
2868
|
-
|
|
2894
|
+
Pt,
|
|
2869
2895
|
{
|
|
2870
2896
|
showConfirmation: b,
|
|
2871
2897
|
setShowConfirmation: h,
|
|
2872
2898
|
action: v,
|
|
2873
2899
|
customStrings: {
|
|
2874
|
-
confirmAction:
|
|
2900
|
+
confirmAction: He,
|
|
2875
2901
|
cancelAction: "Cancel",
|
|
2876
|
-
title:
|
|
2902
|
+
title: He
|
|
2877
2903
|
},
|
|
2878
2904
|
children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
|
|
2879
2905
|
}
|
|
2880
2906
|
),
|
|
2881
|
-
/* @__PURE__ */ o(
|
|
2882
|
-
/* @__PURE__ */ o(
|
|
2883
|
-
/* @__PURE__ */ o(
|
|
2884
|
-
/* @__PURE__ */ o(
|
|
2885
|
-
/* @__PURE__ */ o("div", { className: "
|
|
2886
|
-
/* @__PURE__ */ o(
|
|
2887
|
-
/* @__PURE__ */ o(
|
|
2888
|
-
u && r && /* @__PURE__ */ o(
|
|
2889
|
-
|
|
2907
|
+
/* @__PURE__ */ o(Zo, { open: s, onOpenChange: i }),
|
|
2908
|
+
/* @__PURE__ */ o(ca, { open: c, onOpenChange: m }),
|
|
2909
|
+
/* @__PURE__ */ o(Wo, { open: l, onOpenChange: d }),
|
|
2910
|
+
/* @__PURE__ */ o(Go, { open: f, onOpenChange: p }),
|
|
2911
|
+
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(H, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
2912
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(dr, { mode: "dark", radius: "large" }) }),
|
|
2913
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ k(H, { children: [
|
|
2914
|
+
u && r && /* @__PURE__ */ o(A, { children: /* @__PURE__ */ o(
|
|
2915
|
+
Se,
|
|
2890
2916
|
{
|
|
2891
2917
|
mode: "dark",
|
|
2892
2918
|
focusMode: "light",
|
|
2893
|
-
trigger: /* @__PURE__ */ o(
|
|
2919
|
+
trigger: /* @__PURE__ */ o(Q, { className: "mr-2", children: e && e.engine === Z ? /* @__PURE__ */ o(mt, {}) : /* @__PURE__ */ o(ht, {}) }),
|
|
2894
2920
|
defaultPlacement: "bottom-start",
|
|
2895
2921
|
children: /* @__PURE__ */ o(W, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
|
|
2896
|
-
|
|
2922
|
+
ko,
|
|
2897
2923
|
{
|
|
2898
2924
|
size: "small",
|
|
2899
2925
|
mode: "dark",
|
|
@@ -2902,15 +2928,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2902
2928
|
onValueChange: async (C) => {
|
|
2903
2929
|
if (C)
|
|
2904
2930
|
try {
|
|
2905
|
-
await
|
|
2931
|
+
await $({
|
|
2906
2932
|
accessToken: await T(),
|
|
2907
|
-
type:
|
|
2933
|
+
type: D.SET_USER_PREFERENCES,
|
|
2908
2934
|
params: {
|
|
2909
|
-
user:
|
|
2935
|
+
user: N == null ? void 0 : N.username,
|
|
2910
2936
|
engine: C
|
|
2911
2937
|
}
|
|
2912
2938
|
}), t({
|
|
2913
|
-
type:
|
|
2939
|
+
type: et,
|
|
2914
2940
|
payload: {
|
|
2915
2941
|
engine: C
|
|
2916
2942
|
}
|
|
@@ -2920,17 +2946,17 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2920
2946
|
} catch {
|
|
2921
2947
|
}
|
|
2922
2948
|
},
|
|
2923
|
-
children: r && r.engines.map((C) => /* @__PURE__ */ o(
|
|
2949
|
+
children: r && r.engines.map((C) => /* @__PURE__ */ o(wo, { value: C }, C))
|
|
2924
2950
|
}
|
|
2925
2951
|
) })
|
|
2926
2952
|
}
|
|
2927
2953
|
) }),
|
|
2928
|
-
/* @__PURE__ */ o(
|
|
2929
|
-
|
|
2954
|
+
/* @__PURE__ */ o(A, { children: /* @__PURE__ */ k(
|
|
2955
|
+
Se,
|
|
2930
2956
|
{
|
|
2931
2957
|
mode: "dark",
|
|
2932
2958
|
focusMode: "light",
|
|
2933
|
-
trigger: /* @__PURE__ */ o(
|
|
2959
|
+
trigger: /* @__PURE__ */ o(Q, { children: /* @__PURE__ */ o(_r, {}) }),
|
|
2934
2960
|
defaultPlacement: "bottom-end",
|
|
2935
2961
|
children: [
|
|
2936
2962
|
/* @__PURE__ */ o(
|
|
@@ -2938,22 +2964,22 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2938
2964
|
{
|
|
2939
2965
|
label: "Profile",
|
|
2940
2966
|
onClick: y,
|
|
2941
|
-
icon: /* @__PURE__ */ o(
|
|
2967
|
+
icon: /* @__PURE__ */ o(Ir, {})
|
|
2942
2968
|
}
|
|
2943
2969
|
),
|
|
2944
2970
|
/* @__PURE__ */ o(
|
|
2945
2971
|
W,
|
|
2946
2972
|
{
|
|
2947
2973
|
label: "Settings",
|
|
2948
|
-
onClick:
|
|
2949
|
-
icon: /* @__PURE__ */ o(
|
|
2974
|
+
onClick: x,
|
|
2975
|
+
icon: /* @__PURE__ */ o(Rr, {})
|
|
2950
2976
|
}
|
|
2951
2977
|
),
|
|
2952
2978
|
/* @__PURE__ */ o(
|
|
2953
2979
|
W,
|
|
2954
2980
|
{
|
|
2955
2981
|
label: "History",
|
|
2956
|
-
onClick:
|
|
2982
|
+
onClick: _,
|
|
2957
2983
|
icon: /* @__PURE__ */ o(xr, {})
|
|
2958
2984
|
}
|
|
2959
2985
|
),
|
|
@@ -2962,17 +2988,17 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2962
2988
|
{
|
|
2963
2989
|
label: "About",
|
|
2964
2990
|
onClick: B,
|
|
2965
|
-
icon: /* @__PURE__ */ o(
|
|
2991
|
+
icon: /* @__PURE__ */ o(Er, {})
|
|
2966
2992
|
}
|
|
2967
2993
|
),
|
|
2968
2994
|
e && e.id && !e.isComponent && /* @__PURE__ */ k(M, { children: [
|
|
2969
|
-
/* @__PURE__ */ o(
|
|
2995
|
+
/* @__PURE__ */ o(Ar, {}),
|
|
2970
2996
|
/* @__PURE__ */ o(
|
|
2971
2997
|
W,
|
|
2972
2998
|
{
|
|
2973
2999
|
label: "Log out",
|
|
2974
|
-
onClick:
|
|
2975
|
-
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(
|
|
3000
|
+
onClick: R,
|
|
3001
|
+
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(Tr, { monotone: !0 }) })
|
|
2976
3002
|
}
|
|
2977
3003
|
)
|
|
2978
3004
|
] })
|
|
@@ -2984,5 +3010,5 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2984
3010
|
] });
|
|
2985
3011
|
};
|
|
2986
3012
|
export {
|
|
2987
|
-
|
|
3013
|
+
pa as default
|
|
2988
3014
|
};
|