@versini/sassysaint 5.5.14 → 5.5.16
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.BXK1QFQt.js → App.8ppM3BRY.js} +3 -3
- package/dist/chunks/{HeaderToolbar.CtdlihAx.js → HeaderToolbar.Dl0oFeb8.js} +582 -582
- package/dist/chunks/{MarkdownWithExtra.Cc0-hpHV.js → MarkdownWithExtra.BzlFywBK.js} +2 -2
- package/dist/chunks/{MessageAssistant.DsLk7_4F.js → MessageAssistant.MGR6z7w8.js} +3 -3
- package/dist/chunks/{index.Dx036nZH.js → index.DzbWJbnE.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as o, jsxs as y, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { g as L, R as O, CARDS as S, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as
|
|
3
|
-
import { AppContext as ve, HistoryContext as
|
|
2
|
+
import { g as L, R as O, CARDS as S, renderDataAsList as he, pluralize as ge, ABOUT_TITLE as Dt, L as Y, j as M, C as F, un as Q, INFINITE_SCROLL_LIMIT as De, INFINITE_SCROLL_THRESHOLD as Fe, LOCAL_STORAGE_PREFIX as ce, LOCAL_STORAGE_SORT as Ft, P as J, ACTION_RESET as et, ACTION_RESTORE as Ht, ACTION_SORT as He, LOCAL_STORAGE_SEARCH as Gt, HISTORY_TITLE as Ut, ye as Ie, ACTION_SEARCH as jt, debounce as Wt, M as Kt, z as Ge, durationFormatter as Yt, PROFILE_TITLE as qt, TAGS_DESCRIPTION as Zt, ACTION_SET_TAGS as Qt, DEFAULT_AI_ENGINE as me, LOCAL_STORAGE_ENGINE_TOGGLE as tt, LOCAL_STORAGE_CHAT_DETAILS as Xt, SETTINGS_TITLE as Jt, ENGINE_OPENAI as ne, ENGINE_ANTHROPIC as X, APP_NAME as er, ACTION_ENGINE as rt, getCurrentGeoLocation as tr, LOG_OUT as Ue } from "./index.DzbWJbnE.js";
|
|
3
|
+
import { AppContext as ve, HistoryContext as ot, E as le, ge as rr, he as or, ue as Ne, le as B, ye as ar, me as nr, be as sr, serviceCall as $, SERVICE_TYPES as V, f as W, TagsContext as ir, Pe as je, NewChatButton as cr } from "./App.8ppM3BRY.js";
|
|
4
4
|
import * as g from "react";
|
|
5
|
-
import I, { useId as ze, forwardRef as
|
|
5
|
+
import I, { useId as ze, forwardRef as at, useState as R, useRef as q, useContext as D, useEffect as Z, useCallback as lr, Fragment as dr, useLayoutEffect as We } from "react";
|
|
6
6
|
import w from "clsx";
|
|
7
|
-
import { useFloatingTree as
|
|
8
|
-
const
|
|
7
|
+
import { useFloatingTree as nt, useFloatingNodeId as ur, useListItem as st, useFloating as it, offset as mr, flip as hr, shift as gr, autoUpdate as fr, useClick as ct, useRole as lt, useDismiss as dt, useListNavigation as pr, useTypeahead as br, useInteractions as ut, useMergeRefs as Le, FloatingNode as vr, FloatingList as yr, FloatingPortal as mt, FloatingFocusManager as ht, FloatingTree as kr, FloatingOverlay as wr } from "@floating-ui/react";
|
|
8
|
+
const gt = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
title: r,
|
|
@@ -22,7 +22,7 @@ const ht = ({
|
|
|
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
|
+
), xr = ({
|
|
26
26
|
className: e,
|
|
27
27
|
viewBox: t,
|
|
28
28
|
title: r,
|
|
@@ -48,7 +48,7 @@ const ht = ({
|
|
|
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
|
+
), Cr = ({
|
|
52
52
|
className: e,
|
|
53
53
|
viewBox: t,
|
|
54
54
|
title: r,
|
|
@@ -74,7 +74,7 @@ const ht = ({
|
|
|
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
|
+
), Nr = ({
|
|
78
78
|
className: e,
|
|
79
79
|
viewBox: t,
|
|
80
80
|
title: r,
|
|
@@ -100,7 +100,7 @@ const ht = ({
|
|
|
100
100
|
/* @__PURE__ */ o("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
|
-
),
|
|
103
|
+
), Tr = ({
|
|
104
104
|
className: e,
|
|
105
105
|
viewBox: t,
|
|
106
106
|
title: r,
|
|
@@ -126,7 +126,7 @@ const ht = ({
|
|
|
126
126
|
/* @__PURE__ */ o("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
|
|
127
127
|
]
|
|
128
128
|
}
|
|
129
|
-
),
|
|
129
|
+
), Ir = ({
|
|
130
130
|
className: e,
|
|
131
131
|
viewBox: t,
|
|
132
132
|
title: r,
|
|
@@ -152,7 +152,7 @@ const ht = ({
|
|
|
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
|
+
), ft = ({
|
|
156
156
|
className: e,
|
|
157
157
|
viewBox: t,
|
|
158
158
|
title: r,
|
|
@@ -175,7 +175,7 @@ const ht = ({
|
|
|
175
175
|
}
|
|
176
176
|
)
|
|
177
177
|
}
|
|
178
|
-
),
|
|
178
|
+
), Er = ({
|
|
179
179
|
className: e,
|
|
180
180
|
viewBox: t,
|
|
181
181
|
title: r,
|
|
@@ -201,7 +201,7 @@ const ht = ({
|
|
|
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
|
+
), _r = ({
|
|
205
205
|
className: e,
|
|
206
206
|
viewBox: t,
|
|
207
207
|
title: r,
|
|
@@ -227,7 +227,7 @@ const ht = ({
|
|
|
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
|
+
), Sr = ({
|
|
231
231
|
className: e,
|
|
232
232
|
viewBox: t,
|
|
233
233
|
title: r,
|
|
@@ -244,7 +244,7 @@ const ht = ({
|
|
|
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,
|
|
@@ -290,7 +290,7 @@ const Ee = g.createContext({
|
|
|
290
290
|
setHasFocusInside: () => {
|
|
291
291
|
},
|
|
292
292
|
isOpen: !1
|
|
293
|
-
}),
|
|
293
|
+
}), Ke = (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
|
+
}, pt = at(
|
|
305
305
|
({
|
|
306
306
|
trigger: e,
|
|
307
307
|
children: t,
|
|
@@ -311,43 +311,43 @@ const Ee = g.createContext({
|
|
|
311
311
|
mode: s = "system",
|
|
312
312
|
focusMode: i = "system",
|
|
313
313
|
...c
|
|
314
|
-
},
|
|
315
|
-
const [d,
|
|
314
|
+
}, l) => {
|
|
315
|
+
const [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(null), k = q([]), b = q([]), x = D(Ee), N = nt(), m = ur(), C = st(), { floatingStyles: E, refs: A, context: _ } = it({
|
|
316
316
|
nodeId: m,
|
|
317
317
|
open: d,
|
|
318
318
|
onOpenChange: (ae) => {
|
|
319
|
-
|
|
319
|
+
u(ae), n == null || n(ae);
|
|
320
320
|
},
|
|
321
321
|
placement: a,
|
|
322
322
|
strategy: "fixed",
|
|
323
|
-
middleware: [
|
|
324
|
-
whileElementsMounted:
|
|
325
|
-
}), T =
|
|
323
|
+
middleware: [mr({ mainAxis: 10 }), hr(), gr()],
|
|
324
|
+
whileElementsMounted: fr
|
|
325
|
+
}), T = ct(_, {
|
|
326
326
|
event: "mousedown",
|
|
327
327
|
toggle: !0,
|
|
328
328
|
ignoreMouse: !1
|
|
329
|
-
}),
|
|
330
|
-
listRef:
|
|
329
|
+
}), H = lt(_, { role: "menu" }), G = dt(_, { bubbles: !0 }), U = pr(_, {
|
|
330
|
+
listRef: k,
|
|
331
331
|
activeIndex: v,
|
|
332
332
|
nested: !1,
|
|
333
333
|
onNavigate: h,
|
|
334
334
|
loop: !0
|
|
335
|
-
}), re =
|
|
336
|
-
listRef:
|
|
335
|
+
}), re = br(_, {
|
|
336
|
+
listRef: b,
|
|
337
337
|
onMatch: d ? h : void 0,
|
|
338
338
|
activeIndex: v
|
|
339
|
-
}), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: P } =
|
|
339
|
+
}), { getReferenceProps: oe, getFloatingProps: Ce, getItemProps: P } = ut([T, H, G, U, re]), Ve = Ke(e) === "Button" || Ke(e) === "ButtonIcon", $t = Ve ? {
|
|
340
340
|
noInternalClick: Ve,
|
|
341
341
|
focusMode: i,
|
|
342
342
|
mode: s
|
|
343
|
-
} : {},
|
|
343
|
+
} : {}, Vt = I.cloneElement(
|
|
344
344
|
e,
|
|
345
345
|
{
|
|
346
|
-
|
|
346
|
+
...$t,
|
|
347
347
|
"aria-label": r,
|
|
348
348
|
"data-open": d ? "" : void 0,
|
|
349
349
|
"data-focus-inside": f ? "" : void 0,
|
|
350
|
-
ref: Le([A.setReference,
|
|
350
|
+
ref: Le([A.setReference, C.ref, l]),
|
|
351
351
|
...oe(
|
|
352
352
|
x.getItemProps({
|
|
353
353
|
...c
|
|
@@ -355,19 +355,19 @@ const Ee = g.createContext({
|
|
|
355
355
|
)
|
|
356
356
|
}
|
|
357
357
|
);
|
|
358
|
-
return
|
|
359
|
-
if (!
|
|
358
|
+
return Z(() => {
|
|
359
|
+
if (!N)
|
|
360
360
|
return;
|
|
361
361
|
function ae() {
|
|
362
|
-
|
|
362
|
+
u(!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
|
-
d &&
|
|
369
|
-
}, [
|
|
370
|
-
|
|
367
|
+
}, [N, n]), Z(() => {
|
|
368
|
+
d && N && N.events.emit("menuopen", { nodeId: m });
|
|
369
|
+
}, [N, d, m]), /* @__PURE__ */ y(vr, { id: m, children: [
|
|
370
|
+
Vt,
|
|
371
371
|
/* @__PURE__ */ o(
|
|
372
372
|
Ee.Provider,
|
|
373
373
|
{
|
|
@@ -375,11 +375,11 @@ const Ee = g.createContext({
|
|
|
375
375
|
activeIndex: v,
|
|
376
376
|
setActiveIndex: h,
|
|
377
377
|
getItemProps: P,
|
|
378
|
-
setHasFocusInside:
|
|
378
|
+
setHasFocusInside: p,
|
|
379
379
|
isOpen: d
|
|
380
380
|
},
|
|
381
|
-
children: /* @__PURE__ */ o(
|
|
382
|
-
|
|
381
|
+
children: /* @__PURE__ */ o(yr, { elementsRef: k, labelsRef: b, children: d && /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(
|
|
382
|
+
ht,
|
|
383
383
|
{
|
|
384
384
|
context: _,
|
|
385
385
|
modal: !1,
|
|
@@ -401,10 +401,10 @@ const Ee = g.createContext({
|
|
|
401
401
|
)
|
|
402
402
|
] });
|
|
403
403
|
}
|
|
404
|
-
), _e =
|
|
404
|
+
), _e = at((e, t) => /* @__PURE__ */ o(kr, { children: /* @__PURE__ */ o(pt, { ...e, ref: t }) }));
|
|
405
405
|
_e.displayName = "Menu";
|
|
406
|
-
|
|
407
|
-
const
|
|
406
|
+
pt.displayName = "MenuComponent";
|
|
407
|
+
const j = g.forwardRef(
|
|
408
408
|
({
|
|
409
409
|
label: e,
|
|
410
410
|
disabled: t,
|
|
@@ -414,8 +414,8 @@ const W = g.forwardRef(
|
|
|
414
414
|
ignoreClick: s = !1,
|
|
415
415
|
...i
|
|
416
416
|
}, c) => {
|
|
417
|
-
let
|
|
418
|
-
const d = g.useContext(Ee),
|
|
417
|
+
let l = "";
|
|
418
|
+
const d = g.useContext(Ee), u = st({ label: t ? null : e }), f = nt(), p = Le([u.ref, c]);
|
|
419
419
|
return a && n ? /* @__PURE__ */ o(
|
|
420
420
|
"div",
|
|
421
421
|
{
|
|
@@ -428,11 +428,11 @@ const W = g.forwardRef(
|
|
|
428
428
|
}),
|
|
429
429
|
children: n
|
|
430
430
|
}
|
|
431
|
-
) : (r && (
|
|
431
|
+
) : (r && (l = "pl-2"), /* @__PURE__ */ y(
|
|
432
432
|
"button",
|
|
433
433
|
{
|
|
434
434
|
...i,
|
|
435
|
-
ref:
|
|
435
|
+
ref: p,
|
|
436
436
|
role: "menuitem",
|
|
437
437
|
className: "m-0 flex w-full rounded-md border border-transparent bg-none px-2 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
|
|
438
438
|
tabIndex: 0,
|
|
@@ -449,14 +449,14 @@ const W = g.forwardRef(
|
|
|
449
449
|
}),
|
|
450
450
|
children: [
|
|
451
451
|
r,
|
|
452
|
-
e && /* @__PURE__ */ o("span", { className:
|
|
452
|
+
e && /* @__PURE__ */ o("span", { className: l, children: e })
|
|
453
453
|
]
|
|
454
454
|
}
|
|
455
455
|
));
|
|
456
456
|
}
|
|
457
457
|
);
|
|
458
|
-
|
|
459
|
-
const
|
|
458
|
+
j.displayName = "MenuItem";
|
|
459
|
+
const Mr = ({ 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
|
};
|
|
@@ -486,26 +486,26 @@ try {
|
|
|
486
486
|
});
|
|
487
487
|
} catch {
|
|
488
488
|
}
|
|
489
|
-
const
|
|
489
|
+
const Ar = "av-togglegroup", zr = "av-togglegroup-item-wrapper", Lr = "av-togglegroup-item";
|
|
490
490
|
function Be(e, t = []) {
|
|
491
491
|
let r = [];
|
|
492
492
|
function a(s, i) {
|
|
493
|
-
const c = g.createContext(i),
|
|
493
|
+
const c = g.createContext(i), l = r.length;
|
|
494
494
|
r = [...r, i];
|
|
495
495
|
const d = (f) => {
|
|
496
|
-
var
|
|
497
|
-
const { scope: v, children: h, ...
|
|
498
|
-
return /* @__PURE__ */ o(
|
|
496
|
+
var p;
|
|
497
|
+
const { scope: v, children: h, ...k } = f, b = ((p = v == null ? void 0 : v[e]) == null ? void 0 : p[l]) || c, x = g.useMemo(() => k, Object.values(k));
|
|
498
|
+
return /* @__PURE__ */ o(b.Provider, { value: x, children: h });
|
|
499
499
|
};
|
|
500
500
|
d.displayName = s + "Provider";
|
|
501
|
-
function
|
|
501
|
+
function u(f, p) {
|
|
502
502
|
var v;
|
|
503
|
-
const h = ((v =
|
|
504
|
-
if (
|
|
503
|
+
const h = ((v = p == null ? void 0 : p[e]) == null ? void 0 : v[l]) || c, k = g.useContext(h);
|
|
504
|
+
if (k) return k;
|
|
505
505
|
if (i !== void 0) return i;
|
|
506
506
|
throw new Error(`\`${f}\` must be used within \`${s}\``);
|
|
507
507
|
}
|
|
508
|
-
return [d,
|
|
508
|
+
return [d, u];
|
|
509
509
|
}
|
|
510
510
|
const n = () => {
|
|
511
511
|
const s = r.map((i) => g.createContext(i));
|
|
@@ -517,9 +517,9 @@ function Be(e, t = []) {
|
|
|
517
517
|
);
|
|
518
518
|
};
|
|
519
519
|
};
|
|
520
|
-
return n.scopeName = e, [a,
|
|
520
|
+
return n.scopeName = e, [a, Br(n, ...t)];
|
|
521
521
|
}
|
|
522
|
-
function
|
|
522
|
+
function Br(...e) {
|
|
523
523
|
const t = e[0];
|
|
524
524
|
if (e.length === 1) return t;
|
|
525
525
|
const r = () => {
|
|
@@ -528,8 +528,8 @@ function Lr(...e) {
|
|
|
528
528
|
scopeName: n.scopeName
|
|
529
529
|
}));
|
|
530
530
|
return function(n) {
|
|
531
|
-
const s = a.reduce((i, { useScope: c, scopeName:
|
|
532
|
-
const d = c(n)[`__scope${
|
|
531
|
+
const s = a.reduce((i, { useScope: c, scopeName: l }) => {
|
|
532
|
+
const d = c(n)[`__scope${l}`];
|
|
533
533
|
return { ...i, ...d };
|
|
534
534
|
}, {});
|
|
535
535
|
return g.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
@@ -537,34 +537,34 @@ function Lr(...e) {
|
|
|
537
537
|
};
|
|
538
538
|
return r.scopeName = t.scopeName, r;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Ye(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 bt(...e) {
|
|
546
546
|
return (t) => {
|
|
547
547
|
let r = !1;
|
|
548
548
|
const a = e.map((n) => {
|
|
549
|
-
const s =
|
|
549
|
+
const s = Ye(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() : Ye(e[n], null);
|
|
557
557
|
}
|
|
558
558
|
};
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
561
|
function Se(...e) {
|
|
562
|
-
return g.useCallback(
|
|
562
|
+
return g.useCallback(bt(...e), e);
|
|
563
563
|
}
|
|
564
564
|
var pe = 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
|
-
const i = s.props.children, c = n.map((
|
|
567
|
+
const i = s.props.children, c = n.map((l) => l === s ? g.Children.count(i) > 1 ? g.Children.only(null) : g.isValidElement(i) ? i.props.children : null : l);
|
|
568
568
|
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: g.isValidElement(i) ? g.cloneElement(i, void 0, c) : null });
|
|
569
569
|
}
|
|
570
570
|
return /* @__PURE__ */ o(Re, { ...a, ref: t, children: r });
|
|
@@ -573,21 +573,21 @@ pe.displayName = "Slot";
|
|
|
573
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 = Vr(r);
|
|
577
577
|
return g.cloneElement(r, {
|
|
578
|
-
|
|
578
|
+
...$r(a, r.props),
|
|
579
579
|
// @ts-ignore
|
|
580
|
-
ref: t ?
|
|
580
|
+
ref: t ? bt(t, n) : n
|
|
581
581
|
});
|
|
582
582
|
}
|
|
583
583
|
return g.Children.count(r) > 1 ? g.Children.only(null) : null;
|
|
584
584
|
});
|
|
585
585
|
Re.displayName = "SlotClone";
|
|
586
|
-
var
|
|
587
|
-
function
|
|
588
|
-
return g.isValidElement(e) && e.type ===
|
|
586
|
+
var Pr = ({ children: e }) => /* @__PURE__ */ o(z, { children: e });
|
|
587
|
+
function Or(e) {
|
|
588
|
+
return g.isValidElement(e) && e.type === Pr;
|
|
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,12 +597,12 @@ function Or(e, t) {
|
|
|
597
597
|
}
|
|
598
598
|
return { ...e, ...r };
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Vr(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);
|
|
604
604
|
}
|
|
605
|
-
var
|
|
605
|
+
var Dr = [
|
|
606
606
|
"a",
|
|
607
607
|
"button",
|
|
608
608
|
"div",
|
|
@@ -619,66 +619,66 @@ var Vr = [
|
|
|
619
619
|
"span",
|
|
620
620
|
"svg",
|
|
621
621
|
"ul"
|
|
622
|
-
], de =
|
|
622
|
+
], de = Dr.reduce((e, t) => {
|
|
623
623
|
const r = g.forwardRef((a, n) => {
|
|
624
624
|
const { asChild: s, ...i } = a, c = s ? pe : t;
|
|
625
625
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...i, ref: n });
|
|
626
626
|
});
|
|
627
627
|
return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
|
|
628
628
|
}, {});
|
|
629
|
-
function
|
|
629
|
+
function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
|
|
630
630
|
return function(a) {
|
|
631
631
|
if (e == null || e(a), r === !1 || !a.defaultPrevented)
|
|
632
632
|
return t == null ? void 0 : t(a);
|
|
633
633
|
};
|
|
634
634
|
}
|
|
635
|
-
function
|
|
635
|
+
function Fr(e) {
|
|
636
636
|
const t = e + "CollectionProvider", [r, a] = Be(t), [n, s] = r(
|
|
637
637
|
t,
|
|
638
638
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
639
639
|
), i = (v) => {
|
|
640
|
-
const { scope: h, children:
|
|
641
|
-
return /* @__PURE__ */ o(n, { scope: h, itemMap: x, collectionRef:
|
|
640
|
+
const { scope: h, children: k } = v, b = I.useRef(null), x = I.useRef(/* @__PURE__ */ new Map()).current;
|
|
641
|
+
return /* @__PURE__ */ o(n, { scope: h, itemMap: x, collectionRef: b, children: k });
|
|
642
642
|
};
|
|
643
643
|
i.displayName = t;
|
|
644
|
-
const c = e + "CollectionSlot",
|
|
644
|
+
const c = e + "CollectionSlot", l = I.forwardRef(
|
|
645
645
|
(v, h) => {
|
|
646
|
-
const { scope:
|
|
647
|
-
return /* @__PURE__ */ o(pe, { ref:
|
|
646
|
+
const { scope: k, children: b } = v, x = s(c, k), N = Se(h, x.collectionRef);
|
|
647
|
+
return /* @__PURE__ */ o(pe, { ref: N, children: b });
|
|
648
648
|
}
|
|
649
649
|
);
|
|
650
|
-
|
|
651
|
-
const d = e + "CollectionItemSlot",
|
|
650
|
+
l.displayName = c;
|
|
651
|
+
const d = e + "CollectionItemSlot", u = "data-radix-collection-item", f = I.forwardRef(
|
|
652
652
|
(v, h) => {
|
|
653
|
-
const { scope:
|
|
654
|
-
return I.useEffect(() => (
|
|
653
|
+
const { scope: k, children: b, ...x } = v, N = I.useRef(null), m = Se(h, N), C = s(d, k);
|
|
654
|
+
return I.useEffect(() => (C.itemMap.set(N, { ref: N, ...x }), () => void C.itemMap.delete(N))), /* @__PURE__ */ o(pe, { [u]: "", ref: m, children: b });
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
657
|
f.displayName = d;
|
|
658
|
-
function
|
|
658
|
+
function p(v) {
|
|
659
659
|
const h = s(e + "CollectionConsumer", v);
|
|
660
660
|
return I.useCallback(() => {
|
|
661
|
-
const
|
|
662
|
-
if (!
|
|
663
|
-
const
|
|
661
|
+
const k = h.collectionRef.current;
|
|
662
|
+
if (!k) return [];
|
|
663
|
+
const b = Array.from(k.querySelectorAll(`[${u}]`));
|
|
664
664
|
return Array.from(h.itemMap.values()).sort(
|
|
665
|
-
(x,
|
|
665
|
+
(x, N) => b.indexOf(x.ref.current) - b.indexOf(N.ref.current)
|
|
666
666
|
);
|
|
667
667
|
}, [h.collectionRef, h.itemMap]);
|
|
668
668
|
}
|
|
669
669
|
return [
|
|
670
|
-
{ Provider: i, Slot:
|
|
671
|
-
|
|
670
|
+
{ Provider: i, Slot: l, ItemSlot: f },
|
|
671
|
+
p,
|
|
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
684
|
function Pe(e) {
|
|
@@ -696,19 +696,19 @@ function ye({
|
|
|
696
696
|
onChange: r = () => {
|
|
697
697
|
}
|
|
698
698
|
}) {
|
|
699
|
-
const [a, n] =
|
|
699
|
+
const [a, n] = Wr({ defaultProp: t, onChange: r }), s = e !== void 0, i = s ? e : a, c = Pe(r), l = g.useCallback(
|
|
700
700
|
(d) => {
|
|
701
701
|
if (s) {
|
|
702
|
-
const
|
|
703
|
-
|
|
702
|
+
const u = typeof d == "function" ? d(e) : d;
|
|
703
|
+
u !== e && c(u);
|
|
704
704
|
} else
|
|
705
705
|
n(d);
|
|
706
706
|
},
|
|
707
707
|
[s, e, n, c]
|
|
708
708
|
);
|
|
709
|
-
return [i,
|
|
709
|
+
return [i, l];
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Wr({
|
|
712
712
|
defaultProp: e,
|
|
713
713
|
onChange: t
|
|
714
714
|
}) {
|
|
@@ -717,19 +717,19 @@ function jr({
|
|
|
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 Kr = g.createContext(void 0);
|
|
721
|
+
function vt(e) {
|
|
722
|
+
const t = g.useContext(Kr);
|
|
723
723
|
return e || t || "ltr";
|
|
724
724
|
}
|
|
725
|
-
var Te = "rovingFocusGroup.onEntryFocus",
|
|
725
|
+
var Te = "rovingFocusGroup.onEntryFocus", Yr = { bubbles: !1, cancelable: !0 }, ke = "RovingFocusGroup", [Me, yt, qr] = Fr(ke), [Zr, kt] = Be(
|
|
726
726
|
ke,
|
|
727
|
-
[
|
|
728
|
-
), [
|
|
729
|
-
(e, t) => /* @__PURE__ */ o(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(
|
|
727
|
+
[qr]
|
|
728
|
+
), [Qr, Xr] = Zr(ke), wt = g.forwardRef(
|
|
729
|
+
(e, t) => /* @__PURE__ */ o(Me.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Me.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Jr, { ...e, ref: t }) }) })
|
|
730
730
|
);
|
|
731
|
-
|
|
732
|
-
var
|
|
731
|
+
wt.displayName = ke;
|
|
732
|
+
var Jr = g.forwardRef((e, t) => {
|
|
733
733
|
const {
|
|
734
734
|
__scopeRovingFocusGroup: r,
|
|
735
735
|
orientation: a,
|
|
@@ -737,32 +737,32 @@ var Xr = g.forwardRef((e, t) => {
|
|
|
737
737
|
dir: s,
|
|
738
738
|
currentTabStopId: i,
|
|
739
739
|
defaultCurrentTabStopId: c,
|
|
740
|
-
onCurrentTabStopIdChange:
|
|
740
|
+
onCurrentTabStopIdChange: l,
|
|
741
741
|
onEntryFocus: d,
|
|
742
|
-
preventScrollOnEntryFocus:
|
|
742
|
+
preventScrollOnEntryFocus: u = !1,
|
|
743
743
|
...f
|
|
744
|
-
} = e,
|
|
744
|
+
} = e, p = g.useRef(null), v = Se(t, p), h = vt(s), [k = null, b] = ye({
|
|
745
745
|
prop: i,
|
|
746
746
|
defaultProp: c,
|
|
747
|
-
onChange:
|
|
748
|
-
}), [x,
|
|
747
|
+
onChange: l
|
|
748
|
+
}), [x, N] = g.useState(!1), m = Pe(d), C = yt(r), E = g.useRef(!1), [A, _] = g.useState(0);
|
|
749
749
|
return g.useEffect(() => {
|
|
750
|
-
const T =
|
|
750
|
+
const T = p.current;
|
|
751
751
|
if (T)
|
|
752
752
|
return T.addEventListener(Te, m), () => T.removeEventListener(Te, m);
|
|
753
753
|
}, [m]), /* @__PURE__ */ o(
|
|
754
|
-
|
|
754
|
+
Qr,
|
|
755
755
|
{
|
|
756
756
|
scope: r,
|
|
757
757
|
orientation: a,
|
|
758
758
|
dir: h,
|
|
759
759
|
loop: n,
|
|
760
|
-
currentTabStopId:
|
|
760
|
+
currentTabStopId: k,
|
|
761
761
|
onItemFocus: g.useCallback(
|
|
762
|
-
(T) =>
|
|
763
|
-
[
|
|
762
|
+
(T) => b(T),
|
|
763
|
+
[b]
|
|
764
764
|
),
|
|
765
|
-
onItemShiftTab: g.useCallback(() =>
|
|
765
|
+
onItemShiftTab: g.useCallback(() => N(!0), []),
|
|
766
766
|
onFocusableItemAdd: g.useCallback(
|
|
767
767
|
() => _((T) => T + 1),
|
|
768
768
|
[]
|
|
@@ -779,28 +779,28 @@ var Xr = g.forwardRef((e, t) => {
|
|
|
779
779
|
...f,
|
|
780
780
|
ref: v,
|
|
781
781
|
style: { outline: "none", ...e.style },
|
|
782
|
-
onMouseDown:
|
|
782
|
+
onMouseDown: K(e.onMouseDown, () => {
|
|
783
783
|
E.current = !0;
|
|
784
784
|
}),
|
|
785
|
-
onFocus:
|
|
786
|
-
const
|
|
787
|
-
if (T.target === T.currentTarget &&
|
|
788
|
-
const
|
|
789
|
-
if (T.currentTarget.dispatchEvent(
|
|
790
|
-
const
|
|
785
|
+
onFocus: K(e.onFocus, (T) => {
|
|
786
|
+
const H = !E.current;
|
|
787
|
+
if (T.target === T.currentTarget && H && !x) {
|
|
788
|
+
const G = new CustomEvent(Te, Yr);
|
|
789
|
+
if (T.currentTarget.dispatchEvent(G), !G.defaultPrevented) {
|
|
790
|
+
const U = C().filter((P) => P.focusable), re = U.find((P) => P.active), oe = U.find((P) => P.id === k), Ce = [re, oe, ...U].filter(
|
|
791
791
|
Boolean
|
|
792
792
|
).map((P) => P.ref.current);
|
|
793
|
-
|
|
793
|
+
Nt(Ce, u);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
E.current = !1;
|
|
797
797
|
}),
|
|
798
|
-
onBlur:
|
|
798
|
+
onBlur: K(e.onBlur, () => N(!1))
|
|
799
799
|
}
|
|
800
800
|
)
|
|
801
801
|
}
|
|
802
802
|
);
|
|
803
|
-
}),
|
|
803
|
+
}), xt = "RovingFocusGroupItem", Ct = g.forwardRef(
|
|
804
804
|
(e, t) => {
|
|
805
805
|
const {
|
|
806
806
|
__scopeRovingFocusGroup: r,
|
|
@@ -808,46 +808,46 @@ var Xr = g.forwardRef((e, t) => {
|
|
|
808
808
|
active: n = !1,
|
|
809
809
|
tabStopId: s,
|
|
810
810
|
...i
|
|
811
|
-
} = e, c =
|
|
811
|
+
} = e, c = jr(), l = s || c, d = Xr(xt, r), u = d.currentTabStopId === l, f = yt(r), { onFocusableItemAdd: p, onFocusableItemRemove: v } = d;
|
|
812
812
|
return g.useEffect(() => {
|
|
813
813
|
if (a)
|
|
814
|
-
return
|
|
815
|
-
}, [a,
|
|
814
|
+
return p(), () => v();
|
|
815
|
+
}, [a, p, v]), /* @__PURE__ */ o(
|
|
816
816
|
Me.ItemSlot,
|
|
817
817
|
{
|
|
818
818
|
scope: r,
|
|
819
|
-
id:
|
|
819
|
+
id: l,
|
|
820
820
|
focusable: a,
|
|
821
821
|
active: n,
|
|
822
822
|
children: /* @__PURE__ */ o(
|
|
823
823
|
de.span,
|
|
824
824
|
{
|
|
825
|
-
tabIndex:
|
|
825
|
+
tabIndex: u ? 0 : -1,
|
|
826
826
|
"data-orientation": d.orientation,
|
|
827
827
|
...i,
|
|
828
828
|
ref: t,
|
|
829
|
-
onMouseDown:
|
|
830
|
-
a ? d.onItemFocus(
|
|
829
|
+
onMouseDown: K(e.onMouseDown, (h) => {
|
|
830
|
+
a ? d.onItemFocus(l) : h.preventDefault();
|
|
831
831
|
}),
|
|
832
|
-
onFocus:
|
|
833
|
-
onKeyDown:
|
|
832
|
+
onFocus: K(e.onFocus, () => d.onItemFocus(l)),
|
|
833
|
+
onKeyDown: K(e.onKeyDown, (h) => {
|
|
834
834
|
if (h.key === "Tab" && h.shiftKey) {
|
|
835
835
|
d.onItemShiftTab();
|
|
836
836
|
return;
|
|
837
837
|
}
|
|
838
838
|
if (h.target !== h.currentTarget) return;
|
|
839
|
-
const
|
|
840
|
-
if (
|
|
839
|
+
const k = ro(h, d.orientation, d.dir);
|
|
840
|
+
if (k !== void 0) {
|
|
841
841
|
if (h.metaKey || h.ctrlKey || h.altKey || h.shiftKey) return;
|
|
842
842
|
h.preventDefault();
|
|
843
|
-
let
|
|
844
|
-
if (
|
|
845
|
-
else if (
|
|
846
|
-
|
|
847
|
-
const x =
|
|
848
|
-
|
|
843
|
+
let b = f().filter((x) => x.focusable).map((x) => x.ref.current);
|
|
844
|
+
if (k === "last") b.reverse();
|
|
845
|
+
else if (k === "prev" || k === "next") {
|
|
846
|
+
k === "prev" && b.reverse();
|
|
847
|
+
const x = b.indexOf(h.currentTarget);
|
|
848
|
+
b = d.loop ? oo(b, x + 1) : b.slice(x + 1);
|
|
849
849
|
}
|
|
850
|
-
setTimeout(() =>
|
|
850
|
+
setTimeout(() => Nt(b));
|
|
851
851
|
}
|
|
852
852
|
})
|
|
853
853
|
}
|
|
@@ -856,8 +856,8 @@ var Xr = g.forwardRef((e, t) => {
|
|
|
856
856
|
);
|
|
857
857
|
}
|
|
858
858
|
);
|
|
859
|
-
|
|
860
|
-
var
|
|
859
|
+
Ct.displayName = xt;
|
|
860
|
+
var eo = {
|
|
861
861
|
ArrowLeft: "prev",
|
|
862
862
|
ArrowUp: "prev",
|
|
863
863
|
ArrowRight: "next",
|
|
@@ -867,23 +867,23 @@ var Jr = {
|
|
|
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 Nt(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 = wt, no = Ct, so = "Toggle", Tt = 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,
|
|
@@ -898,25 +898,25 @@ var oo = kt, ao = xt, no = "Toggle", Nt = g.forwardRef((e, t) => {
|
|
|
898
898
|
"data-disabled": e.disabled ? "" : void 0,
|
|
899
899
|
...s,
|
|
900
900
|
ref: t,
|
|
901
|
-
onClick:
|
|
901
|
+
onClick: K(e.onClick, () => {
|
|
902
902
|
e.disabled || c(!i);
|
|
903
903
|
})
|
|
904
904
|
}
|
|
905
905
|
);
|
|
906
906
|
});
|
|
907
|
-
|
|
908
|
-
var ee = "ToggleGroup", [
|
|
909
|
-
|
|
910
|
-
]),
|
|
907
|
+
Tt.displayName = so;
|
|
908
|
+
var ee = "ToggleGroup", [It, ma] = Be(ee, [
|
|
909
|
+
kt
|
|
910
|
+
]), Et = kt(), Oe = I.forwardRef((e, t) => {
|
|
911
911
|
const { type: r, ...a } = e;
|
|
912
912
|
if (r === "single")
|
|
913
|
-
return /* @__PURE__ */ o(so, { ...a, ref: t });
|
|
914
|
-
if (r === "multiple")
|
|
915
913
|
return /* @__PURE__ */ o(io, { ...a, ref: t });
|
|
914
|
+
if (r === "multiple")
|
|
915
|
+
return /* @__PURE__ */ o(co, { ...a, ref: t });
|
|
916
916
|
throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
|
|
917
917
|
});
|
|
918
918
|
Oe.displayName = ee;
|
|
919
|
-
var [
|
|
919
|
+
var [_t, St] = It(ee), io = I.forwardRef((e, t) => {
|
|
920
920
|
const {
|
|
921
921
|
value: r,
|
|
922
922
|
defaultValue: a,
|
|
@@ -929,17 +929,17 @@ var [Et, _t] = Tt(ee), so = I.forwardRef((e, t) => {
|
|
|
929
929
|
onChange: n
|
|
930
930
|
});
|
|
931
931
|
return /* @__PURE__ */ o(
|
|
932
|
-
|
|
932
|
+
_t,
|
|
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(Rt, { ...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,
|
|
@@ -950,27 +950,27 @@ var [Et, _t] = Tt(ee), so = I.forwardRef((e, t) => {
|
|
|
950
950
|
prop: r,
|
|
951
951
|
defaultProp: a,
|
|
952
952
|
onChange: n
|
|
953
|
-
}),
|
|
954
|
-
(
|
|
953
|
+
}), l = I.useCallback(
|
|
954
|
+
(u) => c((f = []) => [...f, u]),
|
|
955
955
|
[c]
|
|
956
956
|
), d = I.useCallback(
|
|
957
|
-
(
|
|
957
|
+
(u) => c((f = []) => f.filter((p) => p !== u)),
|
|
958
958
|
[c]
|
|
959
959
|
);
|
|
960
960
|
return /* @__PURE__ */ o(
|
|
961
|
-
|
|
961
|
+
_t,
|
|
962
962
|
{
|
|
963
963
|
scope: e.__scopeToggleGroup,
|
|
964
964
|
type: "multiple",
|
|
965
965
|
value: i,
|
|
966
|
-
onItemActivate:
|
|
966
|
+
onItemActivate: l,
|
|
967
967
|
onItemDeactivate: d,
|
|
968
|
-
children: /* @__PURE__ */ o(
|
|
968
|
+
children: /* @__PURE__ */ o(Rt, { ...s, ref: t })
|
|
969
969
|
}
|
|
970
970
|
);
|
|
971
971
|
});
|
|
972
972
|
Oe.displayName = ee;
|
|
973
|
-
var [
|
|
973
|
+
var [lo, uo] = It(ee), Rt = I.forwardRef(
|
|
974
974
|
(e, t) => {
|
|
975
975
|
const {
|
|
976
976
|
__scopeToggleGroup: r,
|
|
@@ -979,73 +979,73 @@ var [co, lo] = Tt(ee), St = I.forwardRef(
|
|
|
979
979
|
orientation: s,
|
|
980
980
|
dir: i,
|
|
981
981
|
loop: c = !0,
|
|
982
|
-
...
|
|
983
|
-
} = e, d =
|
|
984
|
-
return /* @__PURE__ */ o(
|
|
985
|
-
|
|
982
|
+
...l
|
|
983
|
+
} = e, d = Et(r), u = vt(i), f = { role: "group", dir: u, ...l };
|
|
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
|
...d,
|
|
989
989
|
orientation: s,
|
|
990
|
-
dir:
|
|
990
|
+
dir: u,
|
|
991
991
|
loop: c,
|
|
992
992
|
children: /* @__PURE__ */ o(de.div, { ...f, ref: t })
|
|
993
993
|
}
|
|
994
994
|
) : /* @__PURE__ */ o(de.div, { ...f, ref: t }) });
|
|
995
995
|
}
|
|
996
|
-
), be = "ToggleGroupItem",
|
|
996
|
+
), be = "ToggleGroupItem", Mt = I.forwardRef(
|
|
997
997
|
(e, t) => {
|
|
998
|
-
const r =
|
|
998
|
+
const r = St(be, e.__scopeToggleGroup), a = uo(be, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), s = r.value.includes(e.value), i = a.disabled || e.disabled, c = { ...e, pressed: s, disabled: i }, l = 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
|
-
ref:
|
|
1007
|
-
children: /* @__PURE__ */ o(
|
|
1006
|
+
ref: l,
|
|
1007
|
+
children: /* @__PURE__ */ o(qe, { ...c, ref: t })
|
|
1008
1008
|
}
|
|
1009
|
-
) : /* @__PURE__ */ o(
|
|
1009
|
+
) : /* @__PURE__ */ o(qe, { ...c, ref: t });
|
|
1010
1010
|
}
|
|
1011
1011
|
);
|
|
1012
|
-
|
|
1013
|
-
var
|
|
1012
|
+
Mt.displayName = be;
|
|
1013
|
+
var qe = I.forwardRef(
|
|
1014
1014
|
(e, t) => {
|
|
1015
|
-
const { __scopeToggleGroup: r, value: a, ...n } = e, s =
|
|
1015
|
+
const { __scopeToggleGroup: r, value: a, ...n } = e, s = St(be, 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
|
+
Tt,
|
|
1018
1018
|
{
|
|
1019
1019
|
...c,
|
|
1020
1020
|
...n,
|
|
1021
1021
|
ref: t,
|
|
1022
|
-
onPressedChange: (
|
|
1023
|
-
|
|
1022
|
+
onPressedChange: (l) => {
|
|
1023
|
+
l ? s.onItemActivate(a) : s.onItemDeactivate(a);
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
1028
|
-
),
|
|
1029
|
-
const
|
|
1028
|
+
), mo = Oe, ho = Mt;
|
|
1029
|
+
const At = 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 Mt = 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
|
+
Ar,
|
|
1081
1081
|
"inline-flex p-1",
|
|
1082
1082
|
"rounded-sm",
|
|
1083
1083
|
{
|
|
@@ -1087,7 +1087,7 @@ const Mt = 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,
|
|
@@ -1096,15 +1096,15 @@ const Mt = I.createContext({
|
|
|
1096
1096
|
focusMode: s = "system",
|
|
1097
1097
|
size: i = "medium",
|
|
1098
1098
|
defaultValue: c,
|
|
1099
|
-
className:
|
|
1099
|
+
className: l,
|
|
1100
1100
|
...d
|
|
1101
1101
|
}) => {
|
|
1102
|
-
const
|
|
1103
|
-
return /* @__PURE__ */ o(
|
|
1104
|
-
|
|
1102
|
+
const u = yo({ mode: n, className: l }), f = { size: i, focusMode: s, mode: n };
|
|
1103
|
+
return /* @__PURE__ */ o(At.Provider, { value: f, children: /* @__PURE__ */ o(
|
|
1104
|
+
mo,
|
|
1105
1105
|
{
|
|
1106
1106
|
disabled: a,
|
|
1107
|
-
className:
|
|
1107
|
+
className: u,
|
|
1108
1108
|
value: t,
|
|
1109
1109
|
defaultValue: c,
|
|
1110
1110
|
onValueChange: r,
|
|
@@ -1113,14 +1113,14 @@ const Mt = I.createContext({
|
|
|
1113
1113
|
children: e
|
|
1114
1114
|
}
|
|
1115
1115
|
) });
|
|
1116
|
-
},
|
|
1117
|
-
const { size: r, focusMode: a, mode: n } = D(
|
|
1116
|
+
}, wo = ({ value: e, disabled: t }) => {
|
|
1117
|
+
const { size: r, focusMode: a, mode: n } = D(At), { 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,
|
|
@@ -1142,7 +1142,7 @@ try {
|
|
|
1142
1142
|
});
|
|
1143
1143
|
} catch {
|
|
1144
1144
|
}
|
|
1145
|
-
const
|
|
1145
|
+
const Ze = "av-messagebox", Qe = "av-panel", Xe = "av-button", we = "icon", zt = "button", Ae = "link", xo = ({
|
|
1146
1146
|
type: e,
|
|
1147
1147
|
size: t,
|
|
1148
1148
|
labelRight: r,
|
|
@@ -1151,7 +1151,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1151
1151
|
}) => {
|
|
1152
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 zt:
|
|
1155
1155
|
case Ae:
|
|
1156
1156
|
return w({
|
|
1157
1157
|
[s]: t === "small",
|
|
@@ -1171,7 +1171,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1171
1171
|
"h-12 px-4": t === "large" && (r || a)
|
|
1172
1172
|
});
|
|
1173
1173
|
}
|
|
1174
|
-
},
|
|
1174
|
+
}, Co = ({
|
|
1175
1175
|
type: e,
|
|
1176
1176
|
size: t,
|
|
1177
1177
|
labelRight: r,
|
|
@@ -1179,7 +1179,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1179
1179
|
}) => {
|
|
1180
1180
|
const n = "text-sm font-medium", s = "text-base font-medium", i = "text-lg font-medium";
|
|
1181
1181
|
switch (e) {
|
|
1182
|
-
case
|
|
1182
|
+
case zt:
|
|
1183
1183
|
case Ae:
|
|
1184
1184
|
return w({
|
|
1185
1185
|
"text-center": e === Ae,
|
|
@@ -1194,7 +1194,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1194
1194
|
[i]: t === "large" && (r || a)
|
|
1195
1195
|
});
|
|
1196
1196
|
}
|
|
1197
|
-
},
|
|
1197
|
+
}, No = ({
|
|
1198
1198
|
mode: e,
|
|
1199
1199
|
noBackground: t,
|
|
1200
1200
|
noTruncate: r,
|
|
@@ -1234,7 +1234,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1234
1234
|
"text-copy-light dark:text-copy-lighter": e === "system",
|
|
1235
1235
|
"text-copy-lighter dark:text-copy-light": e === "alt-system"
|
|
1236
1236
|
});
|
|
1237
|
-
},
|
|
1237
|
+
}, To = ({
|
|
1238
1238
|
mode: e,
|
|
1239
1239
|
noBackground: t,
|
|
1240
1240
|
variant: r
|
|
@@ -1264,13 +1264,13 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1264
1264
|
if (r === "selected")
|
|
1265
1265
|
return "bg-action-selected-dark";
|
|
1266
1266
|
}
|
|
1267
|
-
},
|
|
1267
|
+
}, Io = ({
|
|
1268
1268
|
radius: e
|
|
1269
1269
|
}) => w({
|
|
1270
1270
|
"rounded-full": e === "large",
|
|
1271
1271
|
"rounded-md": e === "medium",
|
|
1272
1272
|
"rounded-sm": e === "small"
|
|
1273
|
-
}),
|
|
1273
|
+
}), Eo = ({
|
|
1274
1274
|
mode: e,
|
|
1275
1275
|
disabled: t,
|
|
1276
1276
|
variant: r
|
|
@@ -1300,7 +1300,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1300
1300
|
});
|
|
1301
1301
|
if (r === "selected")
|
|
1302
1302
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
1303
|
-
},
|
|
1303
|
+
}, _o = ({
|
|
1304
1304
|
mode: e,
|
|
1305
1305
|
disabled: t,
|
|
1306
1306
|
variant: r
|
|
@@ -1330,7 +1330,7 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1330
1330
|
});
|
|
1331
1331
|
if (r === "selected")
|
|
1332
1332
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
1333
|
-
},
|
|
1333
|
+
}, So = ({
|
|
1334
1334
|
mode: e,
|
|
1335
1335
|
noBorder: t,
|
|
1336
1336
|
variant: r
|
|
@@ -1360,14 +1360,14 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1360
1360
|
});
|
|
1361
1361
|
if (r === "selected")
|
|
1362
1362
|
return "border border-border-selected-dark";
|
|
1363
|
-
},
|
|
1363
|
+
}, Ro = ({
|
|
1364
1364
|
focusMode: e
|
|
1365
1365
|
}) => w("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
1366
1366
|
"focus:outline-focus-dark": e === "dark",
|
|
1367
1367
|
"focus:outline-focus-light": e === "light",
|
|
1368
1368
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1369
1369
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1370
|
-
}),
|
|
1370
|
+
}), Lt = ({
|
|
1371
1371
|
type: e,
|
|
1372
1372
|
className: t,
|
|
1373
1373
|
raw: r,
|
|
@@ -1376,42 +1376,42 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1376
1376
|
disabled: s,
|
|
1377
1377
|
fullWidth: i,
|
|
1378
1378
|
size: c,
|
|
1379
|
-
noBorder:
|
|
1379
|
+
noBorder: l,
|
|
1380
1380
|
labelRight: d,
|
|
1381
|
-
labelLeft:
|
|
1381
|
+
labelLeft: u,
|
|
1382
1382
|
noBackground: f,
|
|
1383
|
-
variant:
|
|
1383
|
+
variant: p,
|
|
1384
1384
|
noTruncate: v,
|
|
1385
1385
|
align: h,
|
|
1386
|
-
radius:
|
|
1387
|
-
}) => (
|
|
1388
|
-
|
|
1389
|
-
|
|
1386
|
+
radius: k
|
|
1387
|
+
}) => (p || (p = "primary"), r ? w(Xe, t) : w(
|
|
1388
|
+
Xe,
|
|
1389
|
+
No({
|
|
1390
1390
|
mode: a,
|
|
1391
|
-
variant:
|
|
1391
|
+
variant: p,
|
|
1392
1392
|
noBackground: f,
|
|
1393
1393
|
noTruncate: v
|
|
1394
1394
|
}),
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1395
|
+
To({ mode: a, noBackground: f, variant: p }),
|
|
1396
|
+
Io({ radius: k }),
|
|
1397
|
+
xo({
|
|
1398
1398
|
type: e,
|
|
1399
1399
|
size: c,
|
|
1400
1400
|
labelRight: d,
|
|
1401
|
-
labelLeft:
|
|
1401
|
+
labelLeft: u,
|
|
1402
1402
|
align: h
|
|
1403
1403
|
}),
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1404
|
+
Co({ type: e, size: c, labelRight: d, labelLeft: u }),
|
|
1405
|
+
So({ mode: a, variant: p, noBorder: l }),
|
|
1406
|
+
Ro({ focusMode: n }),
|
|
1407
|
+
Eo({ mode: a, variant: p, disabled: s }),
|
|
1408
|
+
_o({ mode: a, variant: p, disabled: s }),
|
|
1409
1409
|
{
|
|
1410
1410
|
"w-full": i,
|
|
1411
1411
|
"disabled:cursor-not-allowed disabled:opacity-50": s
|
|
1412
1412
|
},
|
|
1413
1413
|
t
|
|
1414
|
-
)),
|
|
1414
|
+
)), Mo = (e, t, r) => {
|
|
1415
1415
|
var a;
|
|
1416
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);
|
|
1417
1417
|
}, $e = I.forwardRef((e, t) => {
|
|
@@ -1421,14 +1421,14 @@ const qe = "av-messagebox", Ze = "av-panel", Qe = "av-button", we = "icon", At =
|
|
|
1421
1421
|
{
|
|
1422
1422
|
ref: t,
|
|
1423
1423
|
onClick: (s) => {
|
|
1424
|
-
|
|
1424
|
+
Mo(s, a, r);
|
|
1425
1425
|
},
|
|
1426
1426
|
...n
|
|
1427
1427
|
}
|
|
1428
1428
|
);
|
|
1429
1429
|
});
|
|
1430
1430
|
$e.displayName = "BaseButton";
|
|
1431
|
-
const
|
|
1431
|
+
const Bt = I.forwardRef(
|
|
1432
1432
|
({
|
|
1433
1433
|
children: e,
|
|
1434
1434
|
disabled: t = !1,
|
|
@@ -1438,19 +1438,19 @@ const Lt = I.forwardRef(
|
|
|
1438
1438
|
className: s,
|
|
1439
1439
|
type: i = "button",
|
|
1440
1440
|
raw: c = !1,
|
|
1441
|
-
noBorder:
|
|
1441
|
+
noBorder: l = !1,
|
|
1442
1442
|
"aria-label": d,
|
|
1443
|
-
label:
|
|
1443
|
+
label: u,
|
|
1444
1444
|
size: f = "medium",
|
|
1445
|
-
labelRight:
|
|
1445
|
+
labelRight: p,
|
|
1446
1446
|
labelLeft: v,
|
|
1447
1447
|
noBackground: h = !1,
|
|
1448
|
-
align:
|
|
1449
|
-
radius:
|
|
1448
|
+
align: k = "center",
|
|
1449
|
+
radius: b = "large",
|
|
1450
1450
|
variant: x = "primary",
|
|
1451
|
-
...
|
|
1451
|
+
...N
|
|
1452
1452
|
}, m) => {
|
|
1453
|
-
const
|
|
1453
|
+
const C = Lt({
|
|
1454
1454
|
type: we,
|
|
1455
1455
|
mode: r,
|
|
1456
1456
|
focusMode: a,
|
|
@@ -1458,13 +1458,13 @@ const Lt = I.forwardRef(
|
|
|
1458
1458
|
disabled: t,
|
|
1459
1459
|
raw: c,
|
|
1460
1460
|
className: s,
|
|
1461
|
-
noBorder:
|
|
1461
|
+
noBorder: l,
|
|
1462
1462
|
size: f,
|
|
1463
|
-
labelRight:
|
|
1463
|
+
labelRight: p,
|
|
1464
1464
|
labelLeft: v,
|
|
1465
1465
|
noBackground: h,
|
|
1466
|
-
align:
|
|
1467
|
-
radius:
|
|
1466
|
+
align: k,
|
|
1467
|
+
radius: b,
|
|
1468
1468
|
variant: x
|
|
1469
1469
|
}), E = w({
|
|
1470
1470
|
"text-copy-accent-dark": r === "light" && !c,
|
|
@@ -1476,21 +1476,21 @@ const Lt = I.forwardRef(
|
|
|
1476
1476
|
$e,
|
|
1477
1477
|
{
|
|
1478
1478
|
ref: m,
|
|
1479
|
-
className:
|
|
1479
|
+
className: C,
|
|
1480
1480
|
disabled: t,
|
|
1481
1481
|
type: i,
|
|
1482
|
-
"aria-label": d ||
|
|
1483
|
-
...
|
|
1482
|
+
"aria-label": d || u,
|
|
1483
|
+
...N,
|
|
1484
1484
|
children: [
|
|
1485
1485
|
v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
|
|
1486
1486
|
/* @__PURE__ */ o("div", { className: E, children: e }),
|
|
1487
|
-
|
|
1487
|
+
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1488
1488
|
]
|
|
1489
1489
|
}
|
|
1490
1490
|
);
|
|
1491
1491
|
}
|
|
1492
1492
|
);
|
|
1493
|
-
|
|
1493
|
+
Bt.displayName = "ButtonIcon";
|
|
1494
1494
|
/*!
|
|
1495
1495
|
@versini/ui-button v4.0.0
|
|
1496
1496
|
© 2025 gizmette.com
|
|
@@ -1504,7 +1504,7 @@ try {
|
|
|
1504
1504
|
});
|
|
1505
1505
|
} catch {
|
|
1506
1506
|
}
|
|
1507
|
-
const
|
|
1507
|
+
const Ao = I.forwardRef(
|
|
1508
1508
|
({
|
|
1509
1509
|
children: e,
|
|
1510
1510
|
disabled: t = !1,
|
|
@@ -1514,19 +1514,19 @@ const Mo = I.forwardRef(
|
|
|
1514
1514
|
className: s,
|
|
1515
1515
|
type: i = "button",
|
|
1516
1516
|
raw: c = !1,
|
|
1517
|
-
noBorder:
|
|
1517
|
+
noBorder: l = !1,
|
|
1518
1518
|
"aria-label": d,
|
|
1519
|
-
label:
|
|
1519
|
+
label: u,
|
|
1520
1520
|
size: f = "medium",
|
|
1521
|
-
labelRight:
|
|
1521
|
+
labelRight: p,
|
|
1522
1522
|
labelLeft: v,
|
|
1523
1523
|
noBackground: h = !1,
|
|
1524
|
-
align:
|
|
1525
|
-
active:
|
|
1524
|
+
align: k = "center",
|
|
1525
|
+
active: b = !1,
|
|
1526
1526
|
radius: x = "large",
|
|
1527
|
-
...
|
|
1527
|
+
...N
|
|
1528
1528
|
}, m) => {
|
|
1529
|
-
const
|
|
1529
|
+
const C = Lt({
|
|
1530
1530
|
type: we,
|
|
1531
1531
|
mode: r,
|
|
1532
1532
|
focusMode: a,
|
|
@@ -1534,19 +1534,19 @@ const Mo = I.forwardRef(
|
|
|
1534
1534
|
disabled: t,
|
|
1535
1535
|
raw: c,
|
|
1536
1536
|
className: s,
|
|
1537
|
-
noBorder:
|
|
1537
|
+
noBorder: l,
|
|
1538
1538
|
size: f,
|
|
1539
|
-
labelRight:
|
|
1539
|
+
labelRight: p,
|
|
1540
1540
|
labelLeft: v,
|
|
1541
1541
|
noBackground: h,
|
|
1542
|
-
align:
|
|
1542
|
+
align: k,
|
|
1543
1543
|
radius: x
|
|
1544
1544
|
}), E = w({
|
|
1545
1545
|
"text-copy-accent-dark": r === "light" && !c,
|
|
1546
1546
|
"text-copy-light": r === "dark" && !c,
|
|
1547
1547
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
1548
1548
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
1549
|
-
}), A =
|
|
1549
|
+
}), A = b ? w(
|
|
1550
1550
|
"relative",
|
|
1551
1551
|
"focus-within:static",
|
|
1552
1552
|
"focus-within:after:border-transparent",
|
|
@@ -1567,22 +1567,22 @@ const Mo = I.forwardRef(
|
|
|
1567
1567
|
$e,
|
|
1568
1568
|
{
|
|
1569
1569
|
ref: m,
|
|
1570
|
-
className:
|
|
1570
|
+
className: C,
|
|
1571
1571
|
disabled: t,
|
|
1572
1572
|
type: i,
|
|
1573
|
-
"aria-label": d ||
|
|
1574
|
-
...
|
|
1573
|
+
"aria-label": d || u,
|
|
1574
|
+
...N,
|
|
1575
1575
|
children: [
|
|
1576
1576
|
v && /* @__PURE__ */ o("span", { className: "pr-2", children: v }),
|
|
1577
1577
|
/* @__PURE__ */ o("div", { className: E, children: e }),
|
|
1578
|
-
|
|
1578
|
+
p && /* @__PURE__ */ o("span", { className: "pl-2", children: p })
|
|
1579
1579
|
]
|
|
1580
1580
|
}
|
|
1581
1581
|
) });
|
|
1582
1582
|
}
|
|
1583
1583
|
);
|
|
1584
|
-
|
|
1585
|
-
const
|
|
1584
|
+
Ao.displayName = "ButtonSort";
|
|
1585
|
+
const zo = ({
|
|
1586
1586
|
children: e,
|
|
1587
1587
|
fill: t,
|
|
1588
1588
|
viewBox: r,
|
|
@@ -1591,7 +1591,7 @@ const Ao = ({
|
|
|
1591
1591
|
size: s,
|
|
1592
1592
|
title: i,
|
|
1593
1593
|
semantic: c = !1,
|
|
1594
|
-
...
|
|
1594
|
+
...l
|
|
1595
1595
|
}) => {
|
|
1596
1596
|
const d = w(s, a);
|
|
1597
1597
|
return /* @__PURE__ */ y(z, { children: [
|
|
@@ -1605,7 +1605,7 @@ const Ao = ({
|
|
|
1605
1605
|
role: "img",
|
|
1606
1606
|
"aria-hidden": !c,
|
|
1607
1607
|
focusable: !1,
|
|
1608
|
-
...
|
|
1608
|
+
...l,
|
|
1609
1609
|
children: e
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
@@ -1625,14 +1625,14 @@ try {
|
|
|
1625
1625
|
});
|
|
1626
1626
|
} catch {
|
|
1627
1627
|
}
|
|
1628
|
-
const
|
|
1628
|
+
const Lo = ({
|
|
1629
1629
|
className: e,
|
|
1630
1630
|
viewBox: t,
|
|
1631
1631
|
title: r,
|
|
1632
1632
|
monotone: a,
|
|
1633
1633
|
...n
|
|
1634
1634
|
}) => /* @__PURE__ */ o(
|
|
1635
|
-
|
|
1635
|
+
zo,
|
|
1636
1636
|
{
|
|
1637
1637
|
defaultViewBox: "0 0 384 512",
|
|
1638
1638
|
size: "size-5",
|
|
@@ -1656,49 +1656,49 @@ try {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
} catch {
|
|
1658
1658
|
}
|
|
1659
|
-
const
|
|
1660
|
-
function
|
|
1659
|
+
const Pt = g.createContext(null);
|
|
1660
|
+
function Bo({
|
|
1661
1661
|
initialOpen: e = !1,
|
|
1662
1662
|
open: t,
|
|
1663
1663
|
onOpenChange: r
|
|
1664
1664
|
} = {}) {
|
|
1665
|
-
const [a, n] = g.useState(e), [s, i] = g.useState(), [c,
|
|
1665
|
+
const [a, n] = g.useState(e), [s, i] = g.useState(), [c, l] = g.useState(), d = t ?? a, u = r ?? n, f = it({
|
|
1666
1666
|
open: d,
|
|
1667
|
-
onOpenChange:
|
|
1668
|
-
}),
|
|
1667
|
+
onOpenChange: u
|
|
1668
|
+
}), p = f.context, v = ct(p, {
|
|
1669
1669
|
enabled: t == null
|
|
1670
|
-
}), h =
|
|
1670
|
+
}), h = dt(p, {
|
|
1671
1671
|
outsidePress: !1,
|
|
1672
1672
|
outsidePressEvent: "mousedown"
|
|
1673
|
-
}),
|
|
1673
|
+
}), k = lt(p), b = ut([v, h, k]);
|
|
1674
1674
|
return g.useMemo(
|
|
1675
1675
|
() => ({
|
|
1676
1676
|
open: d,
|
|
1677
|
-
setOpen:
|
|
1678
|
-
...
|
|
1677
|
+
setOpen: u,
|
|
1678
|
+
...b,
|
|
1679
1679
|
...f,
|
|
1680
1680
|
labelId: s,
|
|
1681
1681
|
descriptionId: c,
|
|
1682
1682
|
setLabelId: i,
|
|
1683
|
-
setDescriptionId:
|
|
1683
|
+
setDescriptionId: l
|
|
1684
1684
|
}),
|
|
1685
|
-
[d,
|
|
1685
|
+
[d, u, b, f, s, c]
|
|
1686
1686
|
);
|
|
1687
1687
|
}
|
|
1688
1688
|
const xe = () => {
|
|
1689
|
-
const e = g.useContext(
|
|
1689
|
+
const e = g.useContext(Pt);
|
|
1690
1690
|
if (e == null)
|
|
1691
1691
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
1692
1692
|
return e;
|
|
1693
1693
|
};
|
|
1694
|
-
function
|
|
1694
|
+
function Po({
|
|
1695
1695
|
children: e,
|
|
1696
1696
|
...t
|
|
1697
1697
|
}) {
|
|
1698
|
-
const r =
|
|
1699
|
-
return /* @__PURE__ */ o(
|
|
1698
|
+
const r = Bo(t);
|
|
1699
|
+
return /* @__PURE__ */ o(Pt.Provider, { value: r, children: e });
|
|
1700
1700
|
}
|
|
1701
|
-
const
|
|
1701
|
+
const Oo = g.forwardRef(function(e, t) {
|
|
1702
1702
|
const { context: r, ...a } = xe(), n = Le([a.refs.setFloating, t]);
|
|
1703
1703
|
if (!r.open)
|
|
1704
1704
|
return null;
|
|
@@ -1706,7 +1706,7 @@ const Po = g.forwardRef(function(e, t) {
|
|
|
1706
1706
|
[`${s}`]: s,
|
|
1707
1707
|
"bg-black sm:bg-black/[.8]": !s
|
|
1708
1708
|
});
|
|
1709
|
-
return /* @__PURE__ */ o(
|
|
1709
|
+
return /* @__PURE__ */ o(mt, { children: /* @__PURE__ */ o(wr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(ht, { context: r, children: /* @__PURE__ */ o(
|
|
1710
1710
|
"div",
|
|
1711
1711
|
{
|
|
1712
1712
|
ref: n,
|
|
@@ -1716,13 +1716,13 @@ const Po = g.forwardRef(function(e, t) {
|
|
|
1716
1716
|
children: i.children
|
|
1717
1717
|
}
|
|
1718
1718
|
) }) }) });
|
|
1719
|
-
}),
|
|
1719
|
+
}), $o = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1720
1720
|
const { setLabelId: a } = xe(), n = ze();
|
|
1721
1721
|
return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
|
|
1722
|
-
}),
|
|
1722
|
+
}), Vo = g.forwardRef(function({ children: e, ...t }, r) {
|
|
1723
1723
|
const { setDescriptionId: a } = xe(), n = ze();
|
|
1724
1724
|
return g.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
|
|
1725
|
-
}),
|
|
1725
|
+
}), Do = g.forwardRef(function(e, t) {
|
|
1726
1726
|
const { setOpen: r } = xe(), { trigger: a, className: n, ...s } = e, i = g.useCallback(() => r(!1), [r]);
|
|
1727
1727
|
return /* @__PURE__ */ o("div", { className: n, children: g.cloneElement(a, {
|
|
1728
1728
|
ref: t,
|
|
@@ -1743,16 +1743,16 @@ try {
|
|
|
1743
1743
|
});
|
|
1744
1744
|
} catch {
|
|
1745
1745
|
}
|
|
1746
|
-
const se = "panel", ue = "messagebox",
|
|
1746
|
+
const se = "panel", ue = "messagebox", Fo = ({
|
|
1747
1747
|
className: e,
|
|
1748
1748
|
kind: t,
|
|
1749
1749
|
borderMode: r
|
|
1750
1750
|
}) => ({
|
|
1751
1751
|
main: w("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
1752
|
-
[`${
|
|
1753
|
-
[`${
|
|
1754
|
-
[`${
|
|
1755
|
-
[`${
|
|
1752
|
+
[`${Qe} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === se,
|
|
1753
|
+
[`${Qe} w-full sm:w-[95%] md:max-w-2xl`]: t === se && !e,
|
|
1754
|
+
[`${Ze} rounded-lg border-2`]: t === ue,
|
|
1755
|
+
[`${Ze} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === ue && !e,
|
|
1756
1756
|
[`${e}`]: !!e,
|
|
1757
1757
|
"sm:border-border-dark": r === "dark" && t === se,
|
|
1758
1758
|
"sm:border-border-accent": r === "light" && t === se,
|
|
@@ -1773,33 +1773,33 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1773
1773
|
kind: i = se,
|
|
1774
1774
|
className: c
|
|
1775
1775
|
}) => {
|
|
1776
|
-
const
|
|
1777
|
-
return
|
|
1778
|
-
e && (document.title =
|
|
1779
|
-
}), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(
|
|
1776
|
+
const l = q(""), d = Fo({ className: c, kind: i, borderMode: s });
|
|
1777
|
+
return Z(() => (e && (l.current = document.title, document.title = `${r} | ${l.current}`), () => {
|
|
1778
|
+
e && (document.title = l.current);
|
|
1779
|
+
}), [r, e]), /* @__PURE__ */ o(z, { children: e && /* @__PURE__ */ o(Po, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Oo, { className: d.main, children: [
|
|
1780
1780
|
/* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
1781
1781
|
/* @__PURE__ */ o(
|
|
1782
|
-
|
|
1782
|
+
Do,
|
|
1783
1783
|
{
|
|
1784
1784
|
className: d.close,
|
|
1785
1785
|
trigger: /* @__PURE__ */ o(
|
|
1786
|
-
|
|
1786
|
+
Bt,
|
|
1787
1787
|
{
|
|
1788
1788
|
mode: "dark",
|
|
1789
1789
|
focusMode: "light",
|
|
1790
1790
|
noBorder: !0,
|
|
1791
1791
|
label: "Close",
|
|
1792
|
-
children: /* @__PURE__ */ o(
|
|
1792
|
+
children: /* @__PURE__ */ o(Lo, {})
|
|
1793
1793
|
}
|
|
1794
1794
|
)
|
|
1795
1795
|
}
|
|
1796
1796
|
),
|
|
1797
|
-
/* @__PURE__ */ o(
|
|
1797
|
+
/* @__PURE__ */ o($o, { className: d.header, children: r })
|
|
1798
1798
|
] }),
|
|
1799
|
-
/* @__PURE__ */ o(
|
|
1799
|
+
/* @__PURE__ */ o(Vo, { className: d.content, children: a }),
|
|
1800
1800
|
n && /* @__PURE__ */ o("div", { className: d.footer, children: n })
|
|
1801
1801
|
] }) }) });
|
|
1802
|
-
},
|
|
1802
|
+
}, Ho = ({ stats: e }) => {
|
|
1803
1803
|
const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = fe(), s = fe();
|
|
1804
1804
|
return /* @__PURE__ */ y(z, { children: [
|
|
1805
1805
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
@@ -1808,8 +1808,8 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1808
1808
|
header: S.ABOUT.TITLE_CLIENT,
|
|
1809
1809
|
className: "prose-dark dark:prose-lighter",
|
|
1810
1810
|
children: he(n, {
|
|
1811
|
-
[S.ABOUT.VERSION]: "5.19.
|
|
1812
|
-
[S.ABOUT.BUILD_TIMESTAMP]: "01/03/2025
|
|
1811
|
+
[S.ABOUT.VERSION]: "5.19.2",
|
|
1812
|
+
[S.ABOUT.BUILD_TIMESTAMP]: "01/03/2025 08:18 PM EST"
|
|
1813
1813
|
})
|
|
1814
1814
|
}
|
|
1815
1815
|
) }),
|
|
@@ -1826,13 +1826,13 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1826
1826
|
}
|
|
1827
1827
|
)
|
|
1828
1828
|
] });
|
|
1829
|
-
},
|
|
1829
|
+
}, Go = ({
|
|
1830
1830
|
open: e,
|
|
1831
1831
|
onOpenChange: t
|
|
1832
1832
|
}) => {
|
|
1833
1833
|
const { serverStats: r } = D(ve);
|
|
1834
|
-
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
1835
|
-
},
|
|
1834
|
+
return /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Ho, { stats: r }) });
|
|
1835
|
+
}, Ot = ({
|
|
1836
1836
|
showConfirmation: e,
|
|
1837
1837
|
setShowConfirmation: t,
|
|
1838
1838
|
action: r,
|
|
@@ -1845,9 +1845,9 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1845
1845
|
open: e,
|
|
1846
1846
|
onOpenChange: t,
|
|
1847
1847
|
title: n.title,
|
|
1848
|
-
footer: /* @__PURE__ */ y(
|
|
1848
|
+
footer: /* @__PURE__ */ y(Y, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1849
1849
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
1850
|
-
|
|
1850
|
+
F,
|
|
1851
1851
|
{
|
|
1852
1852
|
mode: "dark",
|
|
1853
1853
|
variant: "secondary",
|
|
@@ -1859,7 +1859,7 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1859
1859
|
}
|
|
1860
1860
|
) }),
|
|
1861
1861
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
1862
|
-
|
|
1862
|
+
F,
|
|
1863
1863
|
{
|
|
1864
1864
|
mode: "dark",
|
|
1865
1865
|
variant: "danger",
|
|
@@ -1873,7 +1873,7 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1873
1873
|
] }),
|
|
1874
1874
|
children: a
|
|
1875
1875
|
}
|
|
1876
|
-
),
|
|
1876
|
+
), Uo = async (e, t, r, a) => {
|
|
1877
1877
|
try {
|
|
1878
1878
|
const n = await $({
|
|
1879
1879
|
accessToken: a,
|
|
@@ -1883,9 +1883,9 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1883
1883
|
}
|
|
1884
1884
|
});
|
|
1885
1885
|
n.status === 200 && (t({
|
|
1886
|
-
type:
|
|
1886
|
+
type: et
|
|
1887
1887
|
}), t({
|
|
1888
|
-
type:
|
|
1888
|
+
type: Ht,
|
|
1889
1889
|
payload: {
|
|
1890
1890
|
id: e.id,
|
|
1891
1891
|
model: n.data.model,
|
|
@@ -1895,77 +1895,77 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1895
1895
|
}), r(!1));
|
|
1896
1896
|
} catch {
|
|
1897
1897
|
}
|
|
1898
|
-
},
|
|
1898
|
+
}, jo = ({
|
|
1899
1899
|
filteredHistory: e,
|
|
1900
1900
|
setFilteredHistory: t,
|
|
1901
1901
|
dispatch: r,
|
|
1902
1902
|
onOpenChange: a
|
|
1903
1903
|
}) => {
|
|
1904
|
-
var
|
|
1905
|
-
const { user: n, getAccessToken: s } = Q(), i =
|
|
1904
|
+
var N;
|
|
1905
|
+
const { user: n, getAccessToken: s } = Q(), i = q(null), c = q({
|
|
1906
1906
|
id: 0,
|
|
1907
1907
|
timestamp: "",
|
|
1908
1908
|
message: ""
|
|
1909
|
-
}), [
|
|
1909
|
+
}), [l, d] = R(!1), [u, f] = R(
|
|
1910
1910
|
De + Fe
|
|
1911
|
-
), { state:
|
|
1912
|
-
key: ce +
|
|
1913
|
-
initialValue:
|
|
1914
|
-
}),
|
|
1915
|
-
switch (
|
|
1916
|
-
case
|
|
1917
|
-
h(
|
|
1911
|
+
), { state: p, dispatch: v } = D(ot), [, h] = le({
|
|
1912
|
+
key: ce + Ft,
|
|
1913
|
+
initialValue: p.sortDirection
|
|
1914
|
+
}), k = (m) => {
|
|
1915
|
+
switch (p.sortDirection) {
|
|
1916
|
+
case W.ASC:
|
|
1917
|
+
h(W.DESC), v({
|
|
1918
1918
|
type: He,
|
|
1919
1919
|
payload: {
|
|
1920
1920
|
sortedCell: m,
|
|
1921
|
-
sortDirection:
|
|
1921
|
+
sortDirection: W.DESC
|
|
1922
1922
|
}
|
|
1923
1923
|
});
|
|
1924
1924
|
break;
|
|
1925
1925
|
default:
|
|
1926
|
-
h(
|
|
1926
|
+
h(W.ASC), v({
|
|
1927
1927
|
type: He,
|
|
1928
1928
|
payload: {
|
|
1929
1929
|
sortedCell: m,
|
|
1930
|
-
sortDirection:
|
|
1930
|
+
sortDirection: W.ASC
|
|
1931
1931
|
}
|
|
1932
1932
|
});
|
|
1933
1933
|
break;
|
|
1934
1934
|
}
|
|
1935
|
-
},
|
|
1935
|
+
}, b = async () => {
|
|
1936
1936
|
const m = c.current;
|
|
1937
1937
|
try {
|
|
1938
|
-
const
|
|
1938
|
+
const C = await $({
|
|
1939
1939
|
accessToken: await s(),
|
|
1940
1940
|
type: V.DELETE_CHAT,
|
|
1941
1941
|
params: {
|
|
1942
1942
|
userId: (n == null ? void 0 : n.username) || "",
|
|
1943
1943
|
id: m.id,
|
|
1944
1944
|
limit: 1,
|
|
1945
|
-
searchString:
|
|
1946
|
-
direction:
|
|
1945
|
+
searchString: p.searchString,
|
|
1946
|
+
direction: p.sortDirection,
|
|
1947
1947
|
truncateSize: 100
|
|
1948
1948
|
}
|
|
1949
1949
|
});
|
|
1950
|
-
|
|
1950
|
+
C.status === 200 && t({ data: C.data });
|
|
1951
1951
|
} catch {
|
|
1952
1952
|
}
|
|
1953
|
-
}, x =
|
|
1953
|
+
}, x = lr((m) => {
|
|
1954
1954
|
m[0].isIntersecting && f((E) => E + De);
|
|
1955
1955
|
}, []);
|
|
1956
|
-
return
|
|
1956
|
+
return Z(() => {
|
|
1957
1957
|
const m = {
|
|
1958
1958
|
// root: null,
|
|
1959
1959
|
rootMargin: "20px"
|
|
1960
|
-
},
|
|
1961
|
-
i.current &&
|
|
1960
|
+
}, C = new IntersectionObserver(x, m);
|
|
1961
|
+
i.current && C.observe(i.current);
|
|
1962
1962
|
}), /* @__PURE__ */ y(z, { children: [
|
|
1963
1963
|
/* @__PURE__ */ y(
|
|
1964
|
-
|
|
1964
|
+
Ot,
|
|
1965
1965
|
{
|
|
1966
|
-
showConfirmation:
|
|
1966
|
+
showConfirmation: l,
|
|
1967
1967
|
setShowConfirmation: d,
|
|
1968
|
-
action:
|
|
1968
|
+
action: b,
|
|
1969
1969
|
customStrings: {
|
|
1970
1970
|
confirmAction: "Delete",
|
|
1971
1971
|
cancelAction: "Cancel",
|
|
@@ -1982,32 +1982,32 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
1982
1982
|
/* @__PURE__ */ y("li", { children: [
|
|
1983
1983
|
"First message:",
|
|
1984
1984
|
" ",
|
|
1985
|
-
/* @__PURE__ */ o("span", { className: "text-lg", children: (
|
|
1985
|
+
/* @__PURE__ */ o("span", { className: "text-lg", children: (N = c.current) == null ? void 0 : N.message })
|
|
1986
1986
|
] })
|
|
1987
1987
|
] })
|
|
1988
1988
|
]
|
|
1989
1989
|
}
|
|
1990
1990
|
),
|
|
1991
1991
|
/* @__PURE__ */ y(
|
|
1992
|
-
|
|
1992
|
+
rr,
|
|
1993
1993
|
{
|
|
1994
1994
|
stickyHeader: !0,
|
|
1995
1995
|
stickyFooter: !0,
|
|
1996
1996
|
compact: !0,
|
|
1997
1997
|
wrapperClassName: "max-h-[60vh] min-h-[60vh]",
|
|
1998
1998
|
children: [
|
|
1999
|
-
/* @__PURE__ */ o(
|
|
1999
|
+
/* @__PURE__ */ o(or, { children: /* @__PURE__ */ y(Ne, { children: [
|
|
2000
2000
|
/* @__PURE__ */ o(B, { className: "sr-only", children: "Row" }),
|
|
2001
2001
|
/* @__PURE__ */ o(
|
|
2002
|
-
|
|
2002
|
+
ar,
|
|
2003
2003
|
{
|
|
2004
2004
|
buttonClassName: "text-xs sm:text-sm",
|
|
2005
2005
|
cellId: "timestamp",
|
|
2006
2006
|
align: "left",
|
|
2007
|
-
sortDirection:
|
|
2008
|
-
sortedCell:
|
|
2007
|
+
sortDirection: p.sortDirection,
|
|
2008
|
+
sortedCell: p.sortedCell,
|
|
2009
2009
|
onClick: () => {
|
|
2010
|
-
|
|
2010
|
+
k("timestamp");
|
|
2011
2011
|
},
|
|
2012
2012
|
children: "Date"
|
|
2013
2013
|
}
|
|
@@ -2016,12 +2016,12 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2016
2016
|
/* @__PURE__ */ o(B, { className: "text-xs sm:text-sm", children: "Model" }),
|
|
2017
2017
|
/* @__PURE__ */ o(B, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
2018
2018
|
] }) }),
|
|
2019
|
-
/* @__PURE__ */ o(
|
|
2019
|
+
/* @__PURE__ */ o(nr, { children: e.data.slice(0, u).map((m, C) => {
|
|
2020
2020
|
var E, A;
|
|
2021
|
-
return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(
|
|
2022
|
-
|
|
2021
|
+
return ((E = m == null ? void 0 : m.messages) == null ? void 0 : E.length) > 0 ? /* @__PURE__ */ y(dr, { children: [
|
|
2022
|
+
C === u - Fe && /* @__PURE__ */ o("tr", { ref: i }),
|
|
2023
2023
|
/* @__PURE__ */ y(Ne, { children: [
|
|
2024
|
-
/* @__PURE__ */ o(B, { children:
|
|
2024
|
+
/* @__PURE__ */ o(B, { children: C + 1 }),
|
|
2025
2025
|
/* @__PURE__ */ o(
|
|
2026
2026
|
B,
|
|
2027
2027
|
{
|
|
@@ -2049,8 +2049,8 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2049
2049
|
className: "text-gray-400",
|
|
2050
2050
|
align: "center",
|
|
2051
2051
|
children: [
|
|
2052
|
-
m.model && m.model.startsWith("claude") && /* @__PURE__ */ o(
|
|
2053
|
-
m.model && m.model.startsWith("gpt") && /* @__PURE__ */ o(
|
|
2052
|
+
m.model && m.model.startsWith("claude") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" }),
|
|
2053
|
+
m.model && m.model.startsWith("gpt") && /* @__PURE__ */ o(ft, { size: "size-4 sm:size-5" })
|
|
2054
2054
|
]
|
|
2055
2055
|
}
|
|
2056
2056
|
),
|
|
@@ -2064,14 +2064,14 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2064
2064
|
label: "Restore chat",
|
|
2065
2065
|
onClick: async () => {
|
|
2066
2066
|
const _ = await s();
|
|
2067
|
-
|
|
2067
|
+
Uo(
|
|
2068
2068
|
m,
|
|
2069
2069
|
r,
|
|
2070
2070
|
a,
|
|
2071
2071
|
_
|
|
2072
2072
|
);
|
|
2073
2073
|
},
|
|
2074
|
-
children: /* @__PURE__ */ o(
|
|
2074
|
+
children: /* @__PURE__ */ o(_r, { size: "size-3", monotone: !0 })
|
|
2075
2075
|
}
|
|
2076
2076
|
),
|
|
2077
2077
|
/* @__PURE__ */ o(
|
|
@@ -2086,16 +2086,16 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2086
2086
|
id: m.id,
|
|
2087
2087
|
timestamp: m.timestamp,
|
|
2088
2088
|
message: m.messages.length > 0 ? (_ = m.messages[0]) == null ? void 0 : _.content : ""
|
|
2089
|
-
}, d(!
|
|
2089
|
+
}, d(!l);
|
|
2090
2090
|
},
|
|
2091
|
-
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(
|
|
2091
|
+
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Cr, { size: "size-3", monotone: !0 }) })
|
|
2092
2092
|
}
|
|
2093
2093
|
)
|
|
2094
2094
|
] })
|
|
2095
2095
|
] })
|
|
2096
|
-
] }, `${S.HISTORY.TITLE}-${m.id}-${
|
|
2096
|
+
] }, `${S.HISTORY.TITLE}-${m.id}-${C}`) : null;
|
|
2097
2097
|
}) }),
|
|
2098
|
-
/* @__PURE__ */ o(
|
|
2098
|
+
/* @__PURE__ */ o(sr, { children: /* @__PURE__ */ o(Ne, { children: /* @__PURE__ */ o(B, { colSpan: 1e3, children: /* @__PURE__ */ o("div", { children: ge(
|
|
2099
2099
|
`${e.data.length} chat`,
|
|
2100
2100
|
e.data.length
|
|
2101
2101
|
) }) }) }) })
|
|
@@ -2103,11 +2103,11 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2103
2103
|
}
|
|
2104
2104
|
)
|
|
2105
2105
|
] });
|
|
2106
|
-
},
|
|
2106
|
+
}, Je = async ({
|
|
2107
2107
|
searchString: e,
|
|
2108
2108
|
username: t,
|
|
2109
2109
|
accessToken: r,
|
|
2110
|
-
direction: a =
|
|
2110
|
+
direction: a = W.ASC
|
|
2111
2111
|
}) => {
|
|
2112
2112
|
if (!t)
|
|
2113
2113
|
return [];
|
|
@@ -2129,88 +2129,91 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2129
2129
|
return [];
|
|
2130
2130
|
}
|
|
2131
2131
|
return [];
|
|
2132
|
-
},
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
}),
|
|
2132
|
+
}, Wo = ({
|
|
2133
|
+
open: e,
|
|
2134
|
+
onOpenChange: t
|
|
2135
|
+
}) => {
|
|
2136
|
+
const { isAuthenticated: r, getAccessToken: a, user: n } = Q(), s = q(null), i = q(!1), { dispatch: c } = D(ve), { state: l, dispatch: d } = D(ot), [, u] = le({
|
|
2137
|
+
key: ce + Gt,
|
|
2138
|
+
initialValue: l.searchString
|
|
2139
|
+
}), [f, p] = R({
|
|
2137
2140
|
data: [],
|
|
2138
|
-
sortedDirection:
|
|
2139
|
-
}),
|
|
2140
|
-
const
|
|
2141
|
-
searchString:
|
|
2142
|
-
username:
|
|
2143
|
-
accessToken:
|
|
2144
|
-
direction:
|
|
2141
|
+
sortedDirection: l.sortDirection
|
|
2142
|
+
}), v = async (b) => {
|
|
2143
|
+
const x = await a(), N = await Je({
|
|
2144
|
+
searchString: b,
|
|
2145
|
+
username: n == null ? void 0 : n.username,
|
|
2146
|
+
accessToken: x,
|
|
2147
|
+
direction: l.sortDirection
|
|
2145
2148
|
});
|
|
2146
|
-
|
|
2147
|
-
data:
|
|
2148
|
-
sortedDirection:
|
|
2149
|
-
}),
|
|
2150
|
-
type:
|
|
2151
|
-
payload: { searchString:
|
|
2149
|
+
p({
|
|
2150
|
+
data: N,
|
|
2151
|
+
sortedDirection: l.sortDirection
|
|
2152
|
+
}), u(b), d({
|
|
2153
|
+
type: jt,
|
|
2154
|
+
payload: { searchString: b }
|
|
2152
2155
|
});
|
|
2153
|
-
},
|
|
2154
|
-
b
|
|
2155
|
-
}, 500),
|
|
2156
|
-
|
|
2156
|
+
}, h = Wt((b) => {
|
|
2157
|
+
v(b.target.value);
|
|
2158
|
+
}, 500), k = async (b) => {
|
|
2159
|
+
b.preventDefault();
|
|
2157
2160
|
};
|
|
2158
|
-
return
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
const
|
|
2162
|
-
searchString:
|
|
2163
|
-
username:
|
|
2164
|
-
accessToken:
|
|
2165
|
-
direction:
|
|
2161
|
+
return We(() => {
|
|
2162
|
+
i.current || (async () => {
|
|
2163
|
+
i.current = !0;
|
|
2164
|
+
const b = await a(), x = await Je({
|
|
2165
|
+
searchString: l.searchString,
|
|
2166
|
+
username: n == null ? void 0 : n.username,
|
|
2167
|
+
accessToken: b,
|
|
2168
|
+
direction: l.sortDirection
|
|
2166
2169
|
});
|
|
2167
|
-
|
|
2168
|
-
data:
|
|
2169
|
-
sortedDirection:
|
|
2170
|
+
p({
|
|
2171
|
+
data: x,
|
|
2172
|
+
sortedDirection: l.sortDirection
|
|
2170
2173
|
});
|
|
2171
2174
|
})();
|
|
2172
|
-
}),
|
|
2173
|
-
if (
|
|
2174
|
-
const
|
|
2175
|
-
if (
|
|
2176
|
-
const
|
|
2177
|
-
return
|
|
2175
|
+
}), We(() => {
|
|
2176
|
+
if (l.sortDirection !== f.sortedDirection) {
|
|
2177
|
+
const b = [...f.data].sort((x, N) => {
|
|
2178
|
+
if (l.sortedCell === "timestamp") {
|
|
2179
|
+
const m = new Date(x[l.sortedCell]).getTime(), C = new Date(N[l.sortedCell]).getTime();
|
|
2180
|
+
return l.sortDirection === W.ASC ? m - C : C - m;
|
|
2178
2181
|
}
|
|
2179
2182
|
return 0;
|
|
2180
2183
|
});
|
|
2181
|
-
|
|
2182
|
-
data:
|
|
2183
|
-
sortedDirection:
|
|
2184
|
+
p({
|
|
2185
|
+
data: b,
|
|
2186
|
+
sortedDirection: l.sortDirection
|
|
2184
2187
|
});
|
|
2185
2188
|
}
|
|
2186
|
-
}, [
|
|
2187
|
-
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit:
|
|
2189
|
+
}, [f, l]), r ? f && f.data && /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: Ut, children: /* @__PURE__ */ y(z, { children: [
|
|
2190
|
+
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: k, children: /* @__PURE__ */ o(
|
|
2188
2191
|
Ie,
|
|
2189
2192
|
{
|
|
2190
2193
|
autoCapitalize: "off",
|
|
2191
2194
|
autoComplete: "off",
|
|
2192
2195
|
autoCorrect: "off",
|
|
2193
|
-
ref:
|
|
2194
|
-
defaultValue:
|
|
2196
|
+
ref: s,
|
|
2197
|
+
defaultValue: l.searchString,
|
|
2195
2198
|
focusMode: "light",
|
|
2196
2199
|
mode: "dark",
|
|
2197
2200
|
name: "Search",
|
|
2198
2201
|
label: "Search",
|
|
2199
|
-
onChange:
|
|
2202
|
+
onChange: h,
|
|
2200
2203
|
className: "mt-2 mb-2",
|
|
2201
|
-
...
|
|
2204
|
+
...l.searchString && {
|
|
2202
2205
|
rightElement: /* @__PURE__ */ o(
|
|
2203
|
-
|
|
2206
|
+
F,
|
|
2204
2207
|
{
|
|
2205
2208
|
type: "button",
|
|
2206
|
-
disabled: !
|
|
2209
|
+
disabled: !l.searchString,
|
|
2207
2210
|
mode: "light",
|
|
2208
2211
|
focusMode: "light",
|
|
2209
2212
|
noBorder: !0,
|
|
2210
2213
|
size: "small",
|
|
2211
2214
|
onClick: () => {
|
|
2212
|
-
var
|
|
2213
|
-
|
|
2215
|
+
var b;
|
|
2216
|
+
v(""), (b = s.current) != null && b.value && (s.current.value = "", s.current.focus());
|
|
2214
2217
|
},
|
|
2215
2218
|
children: "Reset"
|
|
2216
2219
|
}
|
|
@@ -2219,19 +2222,16 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2219
2222
|
}
|
|
2220
2223
|
) }),
|
|
2221
2224
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
|
|
2222
|
-
|
|
2225
|
+
jo,
|
|
2223
2226
|
{
|
|
2224
|
-
filteredHistory:
|
|
2225
|
-
setFilteredHistory:
|
|
2226
|
-
dispatch:
|
|
2227
|
-
onOpenChange:
|
|
2227
|
+
filteredHistory: f,
|
|
2228
|
+
setFilteredHistory: p,
|
|
2229
|
+
dispatch: c,
|
|
2230
|
+
onOpenChange: t
|
|
2228
2231
|
}
|
|
2229
2232
|
) })
|
|
2230
|
-
] }) : null;
|
|
2231
|
-
},
|
|
2232
|
-
open: e,
|
|
2233
|
-
onOpenChange: t
|
|
2234
|
-
}) => /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: jt, children: /* @__PURE__ */ o(jo, { onOpenChange: t }) }), Ko = ({ stats: e }) => {
|
|
2233
|
+
] }) }) : null;
|
|
2234
|
+
}, Ko = ({ stats: e }) => {
|
|
2235
2235
|
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Q(), s = fe(), i = fe(), c = (r == null ? void 0 : r.username) || "";
|
|
2236
2236
|
return t && c ? /* @__PURE__ */ y(z, { children: [
|
|
2237
2237
|
/* @__PURE__ */ o(
|
|
@@ -2245,11 +2245,11 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2245
2245
|
})
|
|
2246
2246
|
}
|
|
2247
2247
|
),
|
|
2248
|
-
n !==
|
|
2248
|
+
n !== Kt.PASSKEY && /* @__PURE__ */ y(
|
|
2249
2249
|
O,
|
|
2250
2250
|
{
|
|
2251
2251
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2252
|
-
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(
|
|
2252
|
+
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(Y, { columnGap: 3, alignVertical: "center", children: [
|
|
2253
2253
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(Ge, { size: "size-8" }) }),
|
|
2254
2254
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o("div", { children: S.PREFERENCES.PASSKEY_TITLE }) })
|
|
2255
2255
|
] }) }),
|
|
@@ -2275,7 +2275,7 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2275
2275
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
2276
2276
|
children: he(i, {
|
|
2277
2277
|
[ge(S.MAIN_STATISTICS.TOTAL, e.totalChats)]: e.totalChats,
|
|
2278
|
-
[S.MAIN_STATISTICS.PROCESSING_TIME]:
|
|
2278
|
+
[S.MAIN_STATISTICS.PROCESSING_TIME]: Yt(
|
|
2279
2279
|
e.averageProcessingTimes
|
|
2280
2280
|
)
|
|
2281
2281
|
})
|
|
@@ -2290,7 +2290,7 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2290
2290
|
averageProcessingTimes: 0,
|
|
2291
2291
|
totalChats: 0
|
|
2292
2292
|
}), { getAccessToken: n, user: s } = Q();
|
|
2293
|
-
return
|
|
2293
|
+
return Z(() => {
|
|
2294
2294
|
!e || !s || (async () => {
|
|
2295
2295
|
try {
|
|
2296
2296
|
const i = await $({
|
|
@@ -2304,7 +2304,7 @@ const se = "panel", ue = "messagebox", Do = ({
|
|
|
2304
2304
|
} catch {
|
|
2305
2305
|
}
|
|
2306
2306
|
})();
|
|
2307
|
-
}, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title:
|
|
2307
|
+
}, [e, n, s]), /* @__PURE__ */ o(te, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { stats: r }) });
|
|
2308
2308
|
};
|
|
2309
2309
|
/*!
|
|
2310
2310
|
@versini/ui-toggle v3.0.0
|
|
@@ -2397,15 +2397,15 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2397
2397
|
mode: s = "system",
|
|
2398
2398
|
focusMode: i = "system",
|
|
2399
2399
|
className: c,
|
|
2400
|
-
noBorder:
|
|
2400
|
+
noBorder: l = !1
|
|
2401
2401
|
}) => {
|
|
2402
2402
|
const d = oa({
|
|
2403
2403
|
mode: s,
|
|
2404
2404
|
focusMode: i,
|
|
2405
2405
|
labelHidden: a,
|
|
2406
2406
|
className: c,
|
|
2407
|
-
noBorder:
|
|
2408
|
-
}),
|
|
2407
|
+
noBorder: l
|
|
2408
|
+
}), u = (f) => {
|
|
2409
2409
|
t == null || t(f.target.checked);
|
|
2410
2410
|
};
|
|
2411
2411
|
return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
|
|
@@ -2416,7 +2416,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2416
2416
|
checked: e,
|
|
2417
2417
|
type: "checkbox",
|
|
2418
2418
|
className: d.input,
|
|
2419
|
-
onChange:
|
|
2419
|
+
onChange: u
|
|
2420
2420
|
}
|
|
2421
2421
|
),
|
|
2422
2422
|
/* @__PURE__ */ o("div", { className: d.toggle }),
|
|
@@ -2426,31 +2426,31 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2426
2426
|
open: e,
|
|
2427
2427
|
onOpenChange: t
|
|
2428
2428
|
}) => {
|
|
2429
|
-
const { state: r, dispatch: a } = D(
|
|
2429
|
+
const { state: r, dispatch: a } = D(ir), { getAccessToken: n, user: s } = Q(), [i, c] = R({
|
|
2430
2430
|
tags: [...r.tags]
|
|
2431
|
-
}),
|
|
2432
|
-
slot:
|
|
2431
|
+
}), l = ({
|
|
2432
|
+
slot: u,
|
|
2433
2433
|
checked: f,
|
|
2434
|
-
label:
|
|
2434
|
+
label: p,
|
|
2435
2435
|
content: v
|
|
2436
2436
|
}) => {
|
|
2437
2437
|
c((h) => {
|
|
2438
|
-
const
|
|
2439
|
-
slot:
|
|
2440
|
-
label:
|
|
2438
|
+
const k = h.tags, b = {
|
|
2439
|
+
slot: u,
|
|
2440
|
+
label: p,
|
|
2441
2441
|
content: v,
|
|
2442
2442
|
enabled: f
|
|
2443
|
-
}, x =
|
|
2443
|
+
}, x = k.findIndex((N) => N.slot === u);
|
|
2444
2444
|
return x === -1 ? {
|
|
2445
2445
|
...h,
|
|
2446
|
-
tags: [...
|
|
2447
|
-
} : (
|
|
2446
|
+
tags: [...k, { ...b, slot: u }]
|
|
2447
|
+
} : (k[x] = b, {
|
|
2448
2448
|
...h,
|
|
2449
|
-
tags: [...
|
|
2449
|
+
tags: [...k]
|
|
2450
2450
|
});
|
|
2451
2451
|
});
|
|
2452
|
-
}, d = async (
|
|
2453
|
-
|
|
2452
|
+
}, d = async (u) => {
|
|
2453
|
+
u.preventDefault();
|
|
2454
2454
|
try {
|
|
2455
2455
|
await $({
|
|
2456
2456
|
accessToken: await n(),
|
|
@@ -2460,7 +2460,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2460
2460
|
tags: i.tags
|
|
2461
2461
|
}
|
|
2462
2462
|
}), a({
|
|
2463
|
-
type:
|
|
2463
|
+
type: Qt,
|
|
2464
2464
|
payload: {
|
|
2465
2465
|
tags: i.tags
|
|
2466
2466
|
}
|
|
@@ -2475,14 +2475,14 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2475
2475
|
onOpenChange: t,
|
|
2476
2476
|
title: "Tags",
|
|
2477
2477
|
footer: /* @__PURE__ */ y(
|
|
2478
|
-
|
|
2478
|
+
Y,
|
|
2479
2479
|
{
|
|
2480
2480
|
columnGap: 2,
|
|
2481
2481
|
alignHorizontal: "flex-end",
|
|
2482
2482
|
className: "pb-8 sm:pb-0",
|
|
2483
2483
|
children: [
|
|
2484
2484
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2485
|
-
|
|
2485
|
+
F,
|
|
2486
2486
|
{
|
|
2487
2487
|
mode: "dark",
|
|
2488
2488
|
variant: "secondary",
|
|
@@ -2494,13 +2494,13 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2494
2494
|
}
|
|
2495
2495
|
) }),
|
|
2496
2496
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2497
|
-
|
|
2497
|
+
F,
|
|
2498
2498
|
{
|
|
2499
2499
|
mode: "dark",
|
|
2500
2500
|
variant: "danger",
|
|
2501
2501
|
focusMode: "light",
|
|
2502
|
-
onClick: async (
|
|
2503
|
-
t(!1), await d(
|
|
2502
|
+
onClick: async (u) => {
|
|
2503
|
+
t(!1), await d(u);
|
|
2504
2504
|
},
|
|
2505
2505
|
children: "Save"
|
|
2506
2506
|
}
|
|
@@ -2509,26 +2509,26 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2509
2509
|
}
|
|
2510
2510
|
),
|
|
2511
2511
|
children: [
|
|
2512
|
-
/* @__PURE__ */ o("p", { children:
|
|
2513
|
-
i.tags && i.tags.map((
|
|
2512
|
+
/* @__PURE__ */ o("p", { children: Zt }),
|
|
2513
|
+
i.tags && i.tags.map((u) => /* @__PURE__ */ y(
|
|
2514
2514
|
O,
|
|
2515
2515
|
{
|
|
2516
|
-
header: `Tag ${
|
|
2516
|
+
header: `Tag ${u.slot + 1}`,
|
|
2517
2517
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
2518
2518
|
children: [
|
|
2519
|
-
/* @__PURE__ */ y(
|
|
2519
|
+
/* @__PURE__ */ y(Y, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
2520
2520
|
/* @__PURE__ */ o(M, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
|
|
2521
2521
|
Ie,
|
|
2522
2522
|
{
|
|
2523
2523
|
label: "Label",
|
|
2524
|
-
name: `tag${
|
|
2525
|
-
value:
|
|
2524
|
+
name: `tag${u.slot}-label`,
|
|
2525
|
+
value: u.label,
|
|
2526
2526
|
onChange: (f) => {
|
|
2527
|
-
|
|
2528
|
-
slot:
|
|
2529
|
-
checked:
|
|
2527
|
+
l({
|
|
2528
|
+
slot: u.slot,
|
|
2529
|
+
checked: u.enabled,
|
|
2530
2530
|
label: f.target.value,
|
|
2531
|
-
content:
|
|
2531
|
+
content: u.content
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
@@ -2537,13 +2537,13 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2537
2537
|
Ie,
|
|
2538
2538
|
{
|
|
2539
2539
|
label: "Content",
|
|
2540
|
-
name: `tag${
|
|
2541
|
-
value:
|
|
2540
|
+
name: `tag${u.slot}-content`,
|
|
2541
|
+
value: u.content,
|
|
2542
2542
|
onChange: (f) => {
|
|
2543
|
-
|
|
2544
|
-
slot:
|
|
2545
|
-
checked:
|
|
2546
|
-
label:
|
|
2543
|
+
l({
|
|
2544
|
+
slot: u.slot,
|
|
2545
|
+
checked: u.enabled,
|
|
2546
|
+
label: u.label,
|
|
2547
2547
|
content: f.target.value
|
|
2548
2548
|
});
|
|
2549
2549
|
}
|
|
@@ -2556,21 +2556,21 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2556
2556
|
className: "mt-2",
|
|
2557
2557
|
noBorder: !0,
|
|
2558
2558
|
label: "Enabled",
|
|
2559
|
-
name:
|
|
2559
|
+
name: u.slot.toString(),
|
|
2560
2560
|
onChange: (f) => {
|
|
2561
|
-
|
|
2562
|
-
slot:
|
|
2561
|
+
l({
|
|
2562
|
+
slot: u.slot,
|
|
2563
2563
|
checked: f,
|
|
2564
|
-
label:
|
|
2565
|
-
content:
|
|
2564
|
+
label: u.label,
|
|
2565
|
+
content: u.content
|
|
2566
2566
|
});
|
|
2567
2567
|
},
|
|
2568
|
-
checked:
|
|
2568
|
+
checked: u.enabled
|
|
2569
2569
|
}
|
|
2570
2570
|
)
|
|
2571
2571
|
]
|
|
2572
2572
|
},
|
|
2573
|
-
`tag-slot-${
|
|
2573
|
+
`tag-slot-${u.slot}`
|
|
2574
2574
|
))
|
|
2575
2575
|
]
|
|
2576
2576
|
}
|
|
@@ -2579,20 +2579,20 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2579
2579
|
open: e,
|
|
2580
2580
|
onOpenChange: t
|
|
2581
2581
|
}) => {
|
|
2582
|
-
const { dispatch: r } = D(ve), { getAccessToken: a, user: n } = Q(), [s, i] = R(!1), [c,
|
|
2582
|
+
const { dispatch: r } = D(ve), { getAccessToken: a, user: n } = Q(), [s, i] = R(!1), [c, l] = R({
|
|
2583
2583
|
loaded: !1,
|
|
2584
2584
|
instructions: "",
|
|
2585
2585
|
loadingLocation: !1,
|
|
2586
2586
|
location: "",
|
|
2587
2587
|
engine: me
|
|
2588
|
-
}), [d,
|
|
2589
|
-
key: ce +
|
|
2588
|
+
}), [d, u] = le({
|
|
2589
|
+
key: ce + tt,
|
|
2590
2590
|
initialValue: !1
|
|
2591
|
-
}), [f,
|
|
2592
|
-
key: ce +
|
|
2591
|
+
}), [f, p] = le({
|
|
2592
|
+
key: ce + Xt,
|
|
2593
2593
|
initialValue: !1
|
|
2594
2594
|
}), v = (m) => {
|
|
2595
|
-
|
|
2595
|
+
p(m);
|
|
2596
2596
|
}, h = async (m) => {
|
|
2597
2597
|
m.preventDefault();
|
|
2598
2598
|
try {
|
|
@@ -2606,38 +2606,38 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2606
2606
|
engine: c.engine
|
|
2607
2607
|
}
|
|
2608
2608
|
}), r({
|
|
2609
|
-
type:
|
|
2609
|
+
type: rt,
|
|
2610
2610
|
payload: {
|
|
2611
2611
|
engine: c.engine
|
|
2612
2612
|
}
|
|
2613
2613
|
});
|
|
2614
2614
|
} catch {
|
|
2615
2615
|
}
|
|
2616
|
-
},
|
|
2617
|
-
|
|
2616
|
+
}, k = async () => {
|
|
2617
|
+
l((m) => ({
|
|
2618
2618
|
...m,
|
|
2619
2619
|
location: "...",
|
|
2620
2620
|
loadingLocation: !0
|
|
2621
2621
|
}));
|
|
2622
2622
|
try {
|
|
2623
|
-
const m = Date.now(),
|
|
2623
|
+
const m = Date.now(), C = await tr(), E = await $({
|
|
2624
2624
|
accessToken: await a(),
|
|
2625
2625
|
type: V.GET_LOCATION,
|
|
2626
2626
|
params: {
|
|
2627
|
-
latitude:
|
|
2628
|
-
longitude:
|
|
2627
|
+
latitude: C.latitude,
|
|
2628
|
+
longitude: C.longitude
|
|
2629
2629
|
}
|
|
2630
2630
|
}), _ = Date.now() - m;
|
|
2631
2631
|
if (_ < 2e3 && await new Promise((T) => setTimeout(T, 2e3 - _)), E.status === 200) {
|
|
2632
|
-
const { city: T, state:
|
|
2633
|
-
|
|
2632
|
+
const { city: T, state: H, country: G, displayName: U } = E.data, re = T && H && G ? `${T}, ${H}, ${G}` : U;
|
|
2633
|
+
l((oe) => ({
|
|
2634
2634
|
...oe,
|
|
2635
2635
|
loaded: !0,
|
|
2636
2636
|
location: re,
|
|
2637
2637
|
loadingLocation: !1
|
|
2638
2638
|
}));
|
|
2639
2639
|
} else
|
|
2640
|
-
|
|
2640
|
+
l((T) => ({
|
|
2641
2641
|
...T,
|
|
2642
2642
|
loaded: !0,
|
|
2643
2643
|
location: "",
|
|
@@ -2645,22 +2645,22 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2645
2645
|
}));
|
|
2646
2646
|
} catch {
|
|
2647
2647
|
}
|
|
2648
|
-
},
|
|
2649
|
-
|
|
2650
|
-
...
|
|
2648
|
+
}, b = (m) => {
|
|
2649
|
+
l((C) => ({
|
|
2650
|
+
...C,
|
|
2651
2651
|
engine: m ? ne : X
|
|
2652
2652
|
}));
|
|
2653
2653
|
}, x = (m) => {
|
|
2654
|
-
|
|
2655
|
-
...
|
|
2654
|
+
l((C) => ({
|
|
2655
|
+
...C,
|
|
2656
2656
|
engine: m ? X : ne
|
|
2657
2657
|
}));
|
|
2658
|
-
},
|
|
2658
|
+
}, N = () => {
|
|
2659
2659
|
i(!s);
|
|
2660
2660
|
};
|
|
2661
|
-
return
|
|
2661
|
+
return Z(() => {
|
|
2662
2662
|
if (!e || !n) {
|
|
2663
|
-
|
|
2663
|
+
l({
|
|
2664
2664
|
loaded: !1,
|
|
2665
2665
|
loadingLocation: !1,
|
|
2666
2666
|
instructions: "",
|
|
@@ -2678,8 +2678,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2678
2678
|
user: n.username
|
|
2679
2679
|
}
|
|
2680
2680
|
});
|
|
2681
|
-
m.status === 200 &&
|
|
2682
|
-
...
|
|
2681
|
+
m.status === 200 && l((C) => ({
|
|
2682
|
+
...C,
|
|
2683
2683
|
loaded: !0,
|
|
2684
2684
|
instructions: m.data.instructions || "",
|
|
2685
2685
|
location: m.data.location || "",
|
|
@@ -2693,16 +2693,16 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2693
2693
|
{
|
|
2694
2694
|
open: e,
|
|
2695
2695
|
onOpenChange: t,
|
|
2696
|
-
title:
|
|
2696
|
+
title: Jt,
|
|
2697
2697
|
footer: /* @__PURE__ */ y(
|
|
2698
|
-
|
|
2698
|
+
Y,
|
|
2699
2699
|
{
|
|
2700
2700
|
columnGap: 2,
|
|
2701
2701
|
alignHorizontal: "flex-end",
|
|
2702
2702
|
className: "pb-8 sm:pb-0",
|
|
2703
2703
|
children: [
|
|
2704
2704
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2705
|
-
|
|
2705
|
+
F,
|
|
2706
2706
|
{
|
|
2707
2707
|
mode: "dark",
|
|
2708
2708
|
variant: "secondary",
|
|
@@ -2714,7 +2714,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2714
2714
|
}
|
|
2715
2715
|
) }),
|
|
2716
2716
|
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2717
|
-
|
|
2717
|
+
F,
|
|
2718
2718
|
{
|
|
2719
2719
|
mode: "dark",
|
|
2720
2720
|
variant: "danger",
|
|
@@ -2743,7 +2743,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2743
2743
|
noBorder: !0,
|
|
2744
2744
|
label: ne,
|
|
2745
2745
|
name: ne,
|
|
2746
|
-
onChange:
|
|
2746
|
+
onChange: b,
|
|
2747
2747
|
checked: c.engine === ne
|
|
2748
2748
|
}
|
|
2749
2749
|
),
|
|
@@ -2766,7 +2766,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2766
2766
|
noBorder: !0,
|
|
2767
2767
|
label: "Show Quick Engine Toggle Menu",
|
|
2768
2768
|
name: "show-toggle-engine-menu",
|
|
2769
|
-
onChange:
|
|
2769
|
+
onChange: u,
|
|
2770
2770
|
checked: d
|
|
2771
2771
|
}
|
|
2772
2772
|
),
|
|
@@ -2788,9 +2788,9 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2788
2788
|
{
|
|
2789
2789
|
className: "mt-2",
|
|
2790
2790
|
size: "small",
|
|
2791
|
-
onClick:
|
|
2791
|
+
onClick: N,
|
|
2792
2792
|
labelLeft: "Edit Custom Tags",
|
|
2793
|
-
children: /* @__PURE__ */ o(
|
|
2793
|
+
children: /* @__PURE__ */ o(Nr, { size: "size-3", monotone: !0 })
|
|
2794
2794
|
}
|
|
2795
2795
|
)
|
|
2796
2796
|
]
|
|
@@ -2804,7 +2804,7 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2804
2804
|
children: [
|
|
2805
2805
|
/* @__PURE__ */ y("p", { children: [
|
|
2806
2806
|
"What would you like ",
|
|
2807
|
-
/* @__PURE__ */ o("em", { children:
|
|
2807
|
+
/* @__PURE__ */ o("em", { children: er }),
|
|
2808
2808
|
" to know about you to provide better responses?"
|
|
2809
2809
|
] }),
|
|
2810
2810
|
/* @__PURE__ */ o(
|
|
@@ -2818,8 +2818,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2818
2818
|
label: "Custom Instructions",
|
|
2819
2819
|
value: c.instructions,
|
|
2820
2820
|
onChange: (m) => {
|
|
2821
|
-
|
|
2822
|
-
...
|
|
2821
|
+
l((C) => ({
|
|
2822
|
+
...C,
|
|
2823
2823
|
loaded: !0,
|
|
2824
2824
|
instructions: m.target.value
|
|
2825
2825
|
}));
|
|
@@ -2845,8 +2845,8 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2845
2845
|
label: "Location",
|
|
2846
2846
|
value: c.location,
|
|
2847
2847
|
onChange: (m) => {
|
|
2848
|
-
|
|
2849
|
-
...
|
|
2848
|
+
l((C) => ({
|
|
2849
|
+
...C,
|
|
2850
2850
|
loaded: !0,
|
|
2851
2851
|
location: m.target.value
|
|
2852
2852
|
}));
|
|
@@ -2855,13 +2855,13 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2855
2855
|
}
|
|
2856
2856
|
),
|
|
2857
2857
|
/* @__PURE__ */ o(
|
|
2858
|
-
|
|
2858
|
+
F,
|
|
2859
2859
|
{
|
|
2860
2860
|
className: "mt-2",
|
|
2861
2861
|
size: "small",
|
|
2862
2862
|
noBorder: !0,
|
|
2863
2863
|
disabled: c.loadingLocation,
|
|
2864
|
-
onClick:
|
|
2864
|
+
onClick: k,
|
|
2865
2865
|
children: c.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
2866
2866
|
}
|
|
2867
2867
|
)
|
|
@@ -2872,29 +2872,29 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2872
2872
|
}
|
|
2873
2873
|
);
|
|
2874
2874
|
}, ha = () => {
|
|
2875
|
-
const { state: e, dispatch: t, serverStats: r } = D(ve), [a, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c,
|
|
2876
|
-
key: ce +
|
|
2875
|
+
const { state: e, dispatch: t, serverStats: r } = D(ve), [a, n] = R((e == null ? void 0 : e.engine) || me), [s, i] = R(!1), [c, l] = R(!1), [d, u] = R(!1), [f, p] = R(!1), [v, h] = R(!1), [k] = le({
|
|
2876
|
+
key: ce + tt,
|
|
2877
2877
|
initialValue: !1
|
|
2878
|
-
}), { logout:
|
|
2878
|
+
}), { logout: b, getAccessToken: x, user: N } = Q(), m = () => {
|
|
2879
2879
|
i(!s);
|
|
2880
|
-
},
|
|
2881
|
-
|
|
2880
|
+
}, C = () => {
|
|
2881
|
+
l(!c);
|
|
2882
2882
|
}, E = () => {
|
|
2883
|
-
|
|
2883
|
+
u(!d);
|
|
2884
2884
|
}, A = () => {
|
|
2885
|
-
|
|
2885
|
+
p(!f);
|
|
2886
2886
|
}, _ = () => {
|
|
2887
2887
|
h(!v);
|
|
2888
2888
|
};
|
|
2889
|
-
return
|
|
2889
|
+
return Z(() => {
|
|
2890
2890
|
e && e.engine && e.engine !== a && n(e.engine);
|
|
2891
2891
|
}, [e, a]), /* @__PURE__ */ y(z, { children: [
|
|
2892
2892
|
/* @__PURE__ */ o(
|
|
2893
|
-
|
|
2893
|
+
Ot,
|
|
2894
2894
|
{
|
|
2895
2895
|
showConfirmation: v,
|
|
2896
2896
|
setShowConfirmation: h,
|
|
2897
|
-
action:
|
|
2897
|
+
action: b,
|
|
2898
2898
|
customStrings: {
|
|
2899
2899
|
confirmAction: Ue,
|
|
2900
2900
|
cancelAction: "Cancel",
|
|
@@ -2904,21 +2904,21 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2904
2904
|
}
|
|
2905
2905
|
),
|
|
2906
2906
|
/* @__PURE__ */ o(Yo, { open: s, onOpenChange: i }),
|
|
2907
|
-
/* @__PURE__ */ o(na, { open: c, onOpenChange:
|
|
2908
|
-
/* @__PURE__ */ o(Wo, { open: d, onOpenChange:
|
|
2909
|
-
/* @__PURE__ */ o(
|
|
2910
|
-
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ y(
|
|
2911
|
-
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2912
|
-
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ y(
|
|
2913
|
-
|
|
2907
|
+
/* @__PURE__ */ o(na, { open: c, onOpenChange: l }),
|
|
2908
|
+
/* @__PURE__ */ o(Wo, { open: d, onOpenChange: u }),
|
|
2909
|
+
/* @__PURE__ */ o(Go, { open: f, onOpenChange: p }),
|
|
2910
|
+
/* @__PURE__ */ o("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ y(Y, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
2911
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(cr, { mode: "dark", radius: "large" }) }),
|
|
2912
|
+
/* @__PURE__ */ o(M, { children: /* @__PURE__ */ y(Y, { children: [
|
|
2913
|
+
k && r && /* @__PURE__ */ o(M, { children: /* @__PURE__ */ o(
|
|
2914
2914
|
_e,
|
|
2915
2915
|
{
|
|
2916
2916
|
mode: "dark",
|
|
2917
2917
|
focusMode: "light",
|
|
2918
|
-
trigger: /* @__PURE__ */ o(J, { className: "mr-2", children: e && e.engine === X ? /* @__PURE__ */ o(
|
|
2918
|
+
trigger: /* @__PURE__ */ o(J, { className: "mr-2", children: e && e.engine === X ? /* @__PURE__ */ o(gt, {}) : /* @__PURE__ */ o(ft, {}) }),
|
|
2919
2919
|
defaultPlacement: "bottom-start",
|
|
2920
|
-
children: /* @__PURE__ */ o(
|
|
2921
|
-
|
|
2920
|
+
children: /* @__PURE__ */ o(j, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
|
|
2921
|
+
ko,
|
|
2922
2922
|
{
|
|
2923
2923
|
size: "small",
|
|
2924
2924
|
mode: "dark",
|
|
@@ -2931,21 +2931,21 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2931
2931
|
accessToken: await x(),
|
|
2932
2932
|
type: V.SET_USER_PREFERENCES,
|
|
2933
2933
|
params: {
|
|
2934
|
-
user:
|
|
2934
|
+
user: N == null ? void 0 : N.username,
|
|
2935
2935
|
engine: T
|
|
2936
2936
|
}
|
|
2937
2937
|
}), t({
|
|
2938
|
-
type:
|
|
2938
|
+
type: rt,
|
|
2939
2939
|
payload: {
|
|
2940
2940
|
engine: T
|
|
2941
2941
|
}
|
|
2942
2942
|
}), t({
|
|
2943
|
-
type:
|
|
2943
|
+
type: et
|
|
2944
2944
|
});
|
|
2945
2945
|
} catch {
|
|
2946
2946
|
}
|
|
2947
2947
|
},
|
|
2948
|
-
children: r && r.engines.map((T) => /* @__PURE__ */ o(
|
|
2948
|
+
children: r && r.engines.map((T) => /* @__PURE__ */ o(wo, { value: T }, T))
|
|
2949
2949
|
}
|
|
2950
2950
|
) })
|
|
2951
2951
|
}
|
|
@@ -2955,49 +2955,49 @@ const qo = "av-toggle", Zo = () => w("peer", "h-6", "w-11", "rounded-full"), Qo
|
|
|
2955
2955
|
{
|
|
2956
2956
|
mode: "dark",
|
|
2957
2957
|
focusMode: "light",
|
|
2958
|
-
trigger: /* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(
|
|
2958
|
+
trigger: /* @__PURE__ */ o(J, { children: /* @__PURE__ */ o(Sr, {}) }),
|
|
2959
2959
|
defaultPlacement: "bottom-end",
|
|
2960
2960
|
children: [
|
|
2961
2961
|
/* @__PURE__ */ o(
|
|
2962
|
-
|
|
2962
|
+
j,
|
|
2963
2963
|
{
|
|
2964
2964
|
label: "Profile",
|
|
2965
2965
|
onClick: m,
|
|
2966
|
-
icon: /* @__PURE__ */ o(
|
|
2966
|
+
icon: /* @__PURE__ */ o(Er, {})
|
|
2967
2967
|
}
|
|
2968
2968
|
),
|
|
2969
2969
|
/* @__PURE__ */ o(
|
|
2970
|
-
|
|
2970
|
+
j,
|
|
2971
2971
|
{
|
|
2972
2972
|
label: "Settings",
|
|
2973
|
-
onClick:
|
|
2974
|
-
icon: /* @__PURE__ */ o(
|
|
2973
|
+
onClick: C,
|
|
2974
|
+
icon: /* @__PURE__ */ o(Rr, {})
|
|
2975
2975
|
}
|
|
2976
2976
|
),
|
|
2977
2977
|
/* @__PURE__ */ o(
|
|
2978
|
-
|
|
2978
|
+
j,
|
|
2979
2979
|
{
|
|
2980
2980
|
label: "History",
|
|
2981
2981
|
onClick: E,
|
|
2982
|
-
icon: /* @__PURE__ */ o(
|
|
2982
|
+
icon: /* @__PURE__ */ o(Tr, {})
|
|
2983
2983
|
}
|
|
2984
2984
|
),
|
|
2985
2985
|
/* @__PURE__ */ o(
|
|
2986
|
-
|
|
2986
|
+
j,
|
|
2987
2987
|
{
|
|
2988
2988
|
label: "About",
|
|
2989
2989
|
onClick: A,
|
|
2990
|
-
icon: /* @__PURE__ */ o(
|
|
2990
|
+
icon: /* @__PURE__ */ o(Ir, {})
|
|
2991
2991
|
}
|
|
2992
2992
|
),
|
|
2993
2993
|
e && e.id && !e.isComponent && /* @__PURE__ */ y(z, { children: [
|
|
2994
|
-
/* @__PURE__ */ o(
|
|
2994
|
+
/* @__PURE__ */ o(Mr, {}),
|
|
2995
2995
|
/* @__PURE__ */ o(
|
|
2996
|
-
|
|
2996
|
+
j,
|
|
2997
2997
|
{
|
|
2998
2998
|
label: "Log out",
|
|
2999
2999
|
onClick: _,
|
|
3000
|
-
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(
|
|
3000
|
+
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(xr, { monotone: !0 }) })
|
|
3001
3001
|
}
|
|
3002
3002
|
)
|
|
3003
3003
|
] })
|