@versini/sassysaint 5.1.2 → 5.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.Doru-B7k.js → App.DVd22A7h.js} +45 -45
- package/dist/chunks/{LazyHeader.DClUfXqp.js → LazyHeader.ChGYAocD.js} +299 -297
- package/dist/chunks/{LazyMarkdownWithExtra.CxcZ95uu.js → LazyMarkdownWithExtra.oW3Pc5wQ.js} +1 -1
- package/dist/chunks/{LazyMessageAssistant.KLzNh6WV.js → LazyMessageAssistant.BcING2GM.js} +306 -306
- package/dist/chunks/{index.DY3Gz5Cp.DIHttQr7.js → index.BV7w1tBT.B-qjwzFk.js} +51 -54
- package/dist/chunks/{index.B5nDJSgt.js → index.DuOyoYqm.js} +19 -19
- package/dist/chunks/{index.B5Wp8y85.js → index.QOymzv8v.js} +856 -815
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as m, jsx as o, Fragment as S } from "react/jsx-runtime";
|
|
2
|
-
import { g as _, D as I, CARDS as v, renderDataAsList as X, pluralize as oe, ABOUT_TITLE as
|
|
2
|
+
import { g as _, D as I, CARDS as v, renderDataAsList as X, pluralize as oe, ABOUT_TITLE as Xe, MODEL_GPT4 as Ze, numberFormatter as Je, durationFormatter as _e, NA as qe, ROLE_ASSISTANT as Qe, extractAverage as et, GPT4_MAX_TOKENS as tt, rn as $, STATS as Ae, b as me, j as U, R as z, LOCAL_STORAGE_PREFIX as P, LOCAL_STORAGE_SORT as at, O as V, ACTION_RESET as ot, ACTION_RESTORE as rt, truncate as nt, ACTION_SORT as ie, LOCAL_STORAGE_SEARCH as it, me as st, ACTION_SEARCH as ct, HISTORY_TITLE as lt, getCurrentGeoLocation as dt, LOCAL_STORAGE_TAG_SUMMARIZE as fe, LOCAL_STORAGE_TAG_PROOFREAD as be, LOCAL_STORAGE_TAG_REPHRASE as ve, TAG_CONTENT as se, TAGS as ce, LOCAL_STORAGE_CHAT_DETAILS as ut, G as mt, v as ye, PROFILE_TITLE as ht, LOG_OUT as ke } from "./index.QOymzv8v.js";
|
|
3
3
|
import * as de from "react";
|
|
4
|
-
import re, { forwardRef as
|
|
5
|
-
import { AppContext as ne, serviceCall as M, SERVICE_TYPES as L, HistoryContext as
|
|
4
|
+
import re, { forwardRef as Re, useState as C, useRef as Z, useContext as B, useEffect as O, Suspense as gt, lazy as pt, useId as ft, useMemo as bt } from "react";
|
|
5
|
+
import { AppContext as ne, serviceCall as M, SERVICE_TYPES as L, HistoryContext as Me, E as F, f as x, ce as vt, ge as yt, me as le, ie as R, ue as kt, be as Tt, he as Ct, we as Te } from "./index.DuOyoYqm.js";
|
|
6
6
|
import f from "clsx";
|
|
7
|
-
import { useFloatingTree as
|
|
8
|
-
const
|
|
7
|
+
import { useFloatingTree as Le, useFloatingNodeId as Nt, useListItem as Be, useFloating as wt, offset as Et, flip as St, shift as xt, autoUpdate as It, useClick as _t, useRole as At, useDismiss as Rt, useListNavigation as Mt, useTypeahead as Lt, useInteractions as Bt, useMergeRefs as Oe, FloatingNode as Ot, FloatingList as Ht, FloatingPortal as Dt, FloatingFocusManager as zt, FloatingTree as Pt } from "@floating-ui/react";
|
|
8
|
+
const Vt = ({
|
|
9
9
|
className: e,
|
|
10
10
|
viewBox: t,
|
|
11
11
|
spacing: a,
|
|
@@ -33,7 +33,7 @@ const Pt = ({
|
|
|
33
33
|
/* @__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" })
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
|
-
),
|
|
36
|
+
), Ft = ({
|
|
37
37
|
className: e,
|
|
38
38
|
viewBox: t,
|
|
39
39
|
spacing: a,
|
|
@@ -61,7 +61,7 @@ const Pt = ({
|
|
|
61
61
|
/* @__PURE__ */ o("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
|
-
),
|
|
64
|
+
), Ut = ({
|
|
65
65
|
className: e,
|
|
66
66
|
viewBox: t,
|
|
67
67
|
spacing: a,
|
|
@@ -89,7 +89,7 @@ const Pt = ({
|
|
|
89
89
|
/* @__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" })
|
|
90
90
|
]
|
|
91
91
|
}
|
|
92
|
-
),
|
|
92
|
+
), Ce = ({
|
|
93
93
|
className: e,
|
|
94
94
|
viewBox: t,
|
|
95
95
|
spacing: a,
|
|
@@ -145,7 +145,7 @@ const Pt = ({
|
|
|
145
145
|
/* @__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" })
|
|
146
146
|
]
|
|
147
147
|
}
|
|
148
|
-
),
|
|
148
|
+
), Gt = ({
|
|
149
149
|
className: e,
|
|
150
150
|
viewBox: t,
|
|
151
151
|
spacing: a,
|
|
@@ -173,7 +173,7 @@ const Pt = ({
|
|
|
173
173
|
/* @__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" })
|
|
174
174
|
]
|
|
175
175
|
}
|
|
176
|
-
),
|
|
176
|
+
), jt = ({
|
|
177
177
|
className: e,
|
|
178
178
|
viewBox: t,
|
|
179
179
|
spacing: a,
|
|
@@ -201,7 +201,7 @@ const Pt = ({
|
|
|
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
|
+
), Wt = ({
|
|
205
205
|
className: e,
|
|
206
206
|
viewBox: t,
|
|
207
207
|
spacing: a,
|
|
@@ -229,7 +229,7 @@ const Pt = ({
|
|
|
229
229
|
/* @__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" })
|
|
230
230
|
]
|
|
231
231
|
}
|
|
232
|
-
),
|
|
232
|
+
), Yt = ({
|
|
233
233
|
className: e,
|
|
234
234
|
viewBox: t,
|
|
235
235
|
spacing: a,
|
|
@@ -257,7 +257,7 @@ const Pt = ({
|
|
|
257
257
|
setHasFocusInside: () => {
|
|
258
258
|
},
|
|
259
259
|
isOpen: !1
|
|
260
|
-
}),
|
|
260
|
+
}), Ne = (e) => {
|
|
261
261
|
if (typeof e == "string")
|
|
262
262
|
return e;
|
|
263
263
|
if (typeof e == "function")
|
|
@@ -268,7 +268,7 @@ const Pt = ({
|
|
|
268
268
|
return t.displayName || t.name || "Component";
|
|
269
269
|
}
|
|
270
270
|
return "Element";
|
|
271
|
-
},
|
|
271
|
+
}, He = Re(
|
|
272
272
|
({
|
|
273
273
|
trigger: e,
|
|
274
274
|
children: t,
|
|
@@ -276,11 +276,11 @@ const Pt = ({
|
|
|
276
276
|
defaultPlacement: r = "bottom-start",
|
|
277
277
|
onOpenChange: n,
|
|
278
278
|
spacing: i,
|
|
279
|
-
mode:
|
|
280
|
-
focusMode:
|
|
279
|
+
mode: c = "system",
|
|
280
|
+
focusMode: l = "system",
|
|
281
281
|
...s
|
|
282
282
|
}, d) => {
|
|
283
|
-
const [u, p] = C(!1), [y, h] = C(!1), [g, k] = C(null), w = Z([]), b = Z([]), T = B(ue), N =
|
|
283
|
+
const [u, p] = C(!1), [y, h] = C(!1), [g, k] = C(null), w = Z([]), b = Z([]), T = B(ue), N = Le(), E = Nt(), G = Be(), { floatingStyles: j, refs: Q, context: A } = wt({
|
|
284
284
|
nodeId: E,
|
|
285
285
|
open: u,
|
|
286
286
|
onOpenChange: (Y) => {
|
|
@@ -288,32 +288,34 @@ const Pt = ({
|
|
|
288
288
|
},
|
|
289
289
|
placement: r,
|
|
290
290
|
strategy: "fixed",
|
|
291
|
-
middleware: [
|
|
292
|
-
whileElementsMounted:
|
|
293
|
-
}), ee =
|
|
291
|
+
middleware: [Et({ mainAxis: 10 }), St(), xt()],
|
|
292
|
+
whileElementsMounted: It
|
|
293
|
+
}), ee = _t(A, {
|
|
294
294
|
event: "mousedown",
|
|
295
295
|
toggle: !0,
|
|
296
296
|
ignoreMouse: !1
|
|
297
|
-
}), W =
|
|
297
|
+
}), W = At(A, { role: "menu" }), Fe = Rt(A, { bubbles: !0 }), Ue = Mt(A, {
|
|
298
298
|
listRef: w,
|
|
299
299
|
activeIndex: g,
|
|
300
300
|
nested: !1,
|
|
301
301
|
onNavigate: k,
|
|
302
302
|
loop: !0
|
|
303
|
-
}), $e =
|
|
303
|
+
}), $e = Lt(A, {
|
|
304
304
|
listRef: b,
|
|
305
305
|
onMatch: u ? k : void 0,
|
|
306
306
|
activeIndex: g
|
|
307
|
-
}), { getReferenceProps:
|
|
308
|
-
|
|
309
|
-
focusMode:
|
|
310
|
-
|
|
311
|
-
|
|
307
|
+
}), { getReferenceProps: Ge, getFloatingProps: je, getItemProps: We } = Bt([ee, W, Fe, Ue, $e]), pe = Ne(e) === "Button" || Ne(e) === "ButtonIcon", Ye = pe ? {
|
|
308
|
+
noInternalClick: pe,
|
|
309
|
+
focusMode: l,
|
|
310
|
+
mode: c,
|
|
311
|
+
spacing: i
|
|
312
|
+
} : {}, Ke = re.cloneElement(e, {
|
|
313
|
+
...Ye,
|
|
312
314
|
"aria-label": a,
|
|
313
315
|
"data-open": u ? "" : void 0,
|
|
314
316
|
"data-focus-inside": y ? "" : void 0,
|
|
315
|
-
ref:
|
|
316
|
-
...
|
|
317
|
+
ref: Oe([Q.setReference, G.ref, d]),
|
|
318
|
+
...Ge(
|
|
317
319
|
T.getItemProps({
|
|
318
320
|
...s
|
|
319
321
|
})
|
|
@@ -330,20 +332,20 @@ const Pt = ({
|
|
|
330
332
|
};
|
|
331
333
|
}, [N, n]), O(() => {
|
|
332
334
|
u && N && N.events.emit("menuopen", { nodeId: E });
|
|
333
|
-
}, [N, u, E]), /* @__PURE__ */ m(
|
|
334
|
-
|
|
335
|
+
}, [N, u, E]), /* @__PURE__ */ m(Ot, { id: E, children: [
|
|
336
|
+
Ke,
|
|
335
337
|
/* @__PURE__ */ o(
|
|
336
338
|
ue.Provider,
|
|
337
339
|
{
|
|
338
340
|
value: {
|
|
339
341
|
activeIndex: g,
|
|
340
342
|
setActiveIndex: k,
|
|
341
|
-
getItemProps:
|
|
343
|
+
getItemProps: We,
|
|
342
344
|
setHasFocusInside: h,
|
|
343
345
|
isOpen: u
|
|
344
346
|
},
|
|
345
|
-
children: /* @__PURE__ */ o(
|
|
346
|
-
|
|
347
|
+
children: /* @__PURE__ */ o(Ht, { elementsRef: w, labelsRef: b, children: u && /* @__PURE__ */ o(Dt, { children: /* @__PURE__ */ o(
|
|
348
|
+
zt,
|
|
347
349
|
{
|
|
348
350
|
context: A,
|
|
349
351
|
modal: !1,
|
|
@@ -355,7 +357,7 @@ const Pt = ({
|
|
|
355
357
|
ref: Q.setFloating,
|
|
356
358
|
className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
|
|
357
359
|
style: j,
|
|
358
|
-
...
|
|
360
|
+
...je(),
|
|
359
361
|
children: t
|
|
360
362
|
}
|
|
361
363
|
)
|
|
@@ -365,16 +367,16 @@ const Pt = ({
|
|
|
365
367
|
)
|
|
366
368
|
] });
|
|
367
369
|
}
|
|
368
|
-
),
|
|
369
|
-
|
|
370
|
-
|
|
370
|
+
), De = Re((e, t) => /* @__PURE__ */ o(Pt, { children: /* @__PURE__ */ o(He, { ...e, ref: t }) }));
|
|
371
|
+
De.displayName = "Menu";
|
|
372
|
+
He.displayName = "MenuComponent";
|
|
371
373
|
const D = de.forwardRef(({ label: e, disabled: t, icon: a, ...r }, n) => {
|
|
372
|
-
const i = de.useContext(ue),
|
|
374
|
+
const i = de.useContext(ue), c = Be({ label: t ? null : e }), l = Le();
|
|
373
375
|
return /* @__PURE__ */ m(
|
|
374
376
|
"button",
|
|
375
377
|
{
|
|
376
378
|
...r,
|
|
377
|
-
ref:
|
|
379
|
+
ref: Oe([c.ref, n]),
|
|
378
380
|
role: "menuitem",
|
|
379
381
|
className: "m-0 flex w-full rounded-md border border-transparent bg-none px-3 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",
|
|
380
382
|
tabIndex: 0,
|
|
@@ -382,7 +384,7 @@ const D = de.forwardRef(({ label: e, disabled: t, icon: a, ...r }, n) => {
|
|
|
382
384
|
...i.getItemProps({
|
|
383
385
|
onClick(s) {
|
|
384
386
|
var d;
|
|
385
|
-
(d = r.onClick) == null || d.call(r, s),
|
|
387
|
+
(d = r.onClick) == null || d.call(r, s), l == null || l.events.emit("click");
|
|
386
388
|
},
|
|
387
389
|
onFocus(s) {
|
|
388
390
|
var d;
|
|
@@ -397,37 +399,37 @@ const D = de.forwardRef(({ label: e, disabled: t, icon: a, ...r }, n) => {
|
|
|
397
399
|
);
|
|
398
400
|
});
|
|
399
401
|
D.displayName = "MenuItem";
|
|
400
|
-
const
|
|
402
|
+
const Kt = ({ className: e, ...t }) => {
|
|
401
403
|
const a = f(e, "my-1 border-t border-border-medium");
|
|
402
404
|
return /* @__PURE__ */ o("div", { className: a, ...t });
|
|
403
405
|
};
|
|
404
406
|
/*!
|
|
405
|
-
@versini/ui-menu v1.0.
|
|
407
|
+
@versini/ui-menu v1.0.11
|
|
406
408
|
© 2024 gizmette.com
|
|
407
409
|
*/
|
|
408
410
|
try {
|
|
409
411
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
410
|
-
version: "1.0.
|
|
411
|
-
buildTime: "09/
|
|
412
|
+
version: "1.0.11",
|
|
413
|
+
buildTime: "09/28/2024 06:57 PM EDT",
|
|
412
414
|
homepage: "https://github.com/aversini/ui-components",
|
|
413
415
|
license: "MIT"
|
|
414
416
|
});
|
|
415
417
|
} catch {
|
|
416
418
|
}
|
|
417
419
|
/*!
|
|
418
|
-
@versini/ui-panel v1.0.
|
|
420
|
+
@versini/ui-panel v1.0.10
|
|
419
421
|
© 2024 gizmette.com
|
|
420
422
|
*/
|
|
421
423
|
try {
|
|
422
424
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
423
|
-
version: "1.0.
|
|
424
|
-
buildTime: "09/
|
|
425
|
+
version: "1.0.10",
|
|
426
|
+
buildTime: "09/28/2024 06:29 PM EDT",
|
|
425
427
|
homepage: "https://github.com/aversini/ui-components",
|
|
426
428
|
license: "MIT"
|
|
427
429
|
});
|
|
428
430
|
} catch {
|
|
429
431
|
}
|
|
430
|
-
const
|
|
432
|
+
const we = "av-messagebox", Ee = "av-panel", Se = "av-button", Xt = (e) => {
|
|
431
433
|
let t = "";
|
|
432
434
|
if (typeof e == "number" || typeof e == "string")
|
|
433
435
|
t = "m-" + e;
|
|
@@ -436,26 +438,26 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
436
438
|
(e == null ? void 0 : e.t) !== void 0 && a.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && a.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && a.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && a.push(`ml-${e.l}`), t = a.join(" ");
|
|
437
439
|
}
|
|
438
440
|
return t;
|
|
439
|
-
}, he = "icon",
|
|
441
|
+
}, he = "icon", Zt = "button", Jt = "link", qt = ({
|
|
440
442
|
type: e,
|
|
441
443
|
size: t,
|
|
442
444
|
labelRight: a,
|
|
443
445
|
labelLeft: r,
|
|
444
446
|
align: n
|
|
445
447
|
}) => {
|
|
446
|
-
const i = "text-sm font-medium max-h-8 py-0",
|
|
448
|
+
const i = "text-sm font-medium max-h-8 py-0", c = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
|
|
447
449
|
switch (e) {
|
|
448
|
-
case
|
|
450
|
+
case Zt:
|
|
449
451
|
return f("px-4", {
|
|
450
452
|
[i]: t === "small",
|
|
451
|
-
[
|
|
452
|
-
[
|
|
453
|
+
[c]: t === "medium",
|
|
454
|
+
[l]: t === "large"
|
|
453
455
|
});
|
|
454
|
-
case
|
|
456
|
+
case Jt:
|
|
455
457
|
return f("px-4 text-center", {
|
|
456
458
|
[i]: t === "small",
|
|
457
|
-
[
|
|
458
|
-
[
|
|
459
|
+
[c]: t === "medium",
|
|
460
|
+
[l]: t === "large"
|
|
459
461
|
});
|
|
460
462
|
case he:
|
|
461
463
|
return f("inline-flex items-center", {
|
|
@@ -470,7 +472,7 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
470
472
|
"h-12 px-4 text-lg font-medium": t === "large" && (a || r)
|
|
471
473
|
});
|
|
472
474
|
}
|
|
473
|
-
},
|
|
475
|
+
}, Qt = ({
|
|
474
476
|
mode: e,
|
|
475
477
|
noBackground: t,
|
|
476
478
|
noTruncate: a,
|
|
@@ -502,7 +504,7 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
502
504
|
"bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
|
|
503
505
|
"bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
|
|
504
506
|
});
|
|
505
|
-
},
|
|
507
|
+
}, ea = ({
|
|
506
508
|
mode: e,
|
|
507
509
|
disabled: t,
|
|
508
510
|
variant: a
|
|
@@ -530,7 +532,7 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
530
532
|
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
531
533
|
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
532
534
|
});
|
|
533
|
-
},
|
|
535
|
+
}, ta = ({
|
|
534
536
|
mode: e,
|
|
535
537
|
disabled: t,
|
|
536
538
|
variant: a
|
|
@@ -558,7 +560,7 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
558
560
|
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
559
561
|
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
560
562
|
});
|
|
561
|
-
},
|
|
563
|
+
}, aa = ({
|
|
562
564
|
mode: e,
|
|
563
565
|
noBorder: t,
|
|
564
566
|
variant: a
|
|
@@ -586,20 +588,20 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
586
588
|
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
587
589
|
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
588
590
|
});
|
|
589
|
-
},
|
|
591
|
+
}, oa = ({ focusMode: e }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
590
592
|
"focus:outline-focus-dark": e === "dark",
|
|
591
593
|
"focus:outline-focus-light": e === "light",
|
|
592
594
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
593
595
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
594
|
-
}),
|
|
596
|
+
}), ze = ({
|
|
595
597
|
type: e,
|
|
596
598
|
className: t,
|
|
597
599
|
raw: a,
|
|
598
600
|
mode: r,
|
|
599
601
|
focusMode: n,
|
|
600
602
|
disabled: i,
|
|
601
|
-
fullWidth:
|
|
602
|
-
size:
|
|
603
|
+
fullWidth: c,
|
|
604
|
+
size: l,
|
|
603
605
|
noBorder: s,
|
|
604
606
|
labelRight: d,
|
|
605
607
|
labelLeft: u,
|
|
@@ -608,21 +610,21 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
608
610
|
variant: h,
|
|
609
611
|
noTruncate: g,
|
|
610
612
|
align: k
|
|
611
|
-
}) => (h || (h = "primary"), a ? f(
|
|
612
|
-
|
|
613
|
+
}) => (h || (h = "primary"), a ? f(Se, t) : f(
|
|
614
|
+
Se,
|
|
613
615
|
t,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
qt({ type: e, size:
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
Qt({ mode: r, variant: h, disabled: i }),
|
|
616
|
+
Xt(p),
|
|
617
|
+
Qt({ mode: r, variant: h, noBackground: y, noTruncate: g }),
|
|
618
|
+
qt({ type: e, size: l, labelRight: d, labelLeft: u, align: k }),
|
|
619
|
+
aa({ mode: r, variant: h, noBorder: s }),
|
|
620
|
+
oa({ focusMode: n }),
|
|
620
621
|
ea({ mode: r, variant: h, disabled: i }),
|
|
622
|
+
ta({ mode: r, variant: h, disabled: i }),
|
|
621
623
|
{
|
|
622
|
-
"w-full":
|
|
624
|
+
"w-full": c,
|
|
623
625
|
"disabled:cursor-not-allowed disabled:opacity-50": i
|
|
624
626
|
}
|
|
625
|
-
)),
|
|
627
|
+
)), ra = (e, t, a) => {
|
|
626
628
|
var r;
|
|
627
629
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((r = e == null ? void 0 : e.currentTarget) == null ? void 0 : r.focus) == "function" && e.currentTarget.focus(), typeof a == "function" && a(e);
|
|
628
630
|
}, ge = re.forwardRef((e, t) => {
|
|
@@ -632,14 +634,14 @@ const Ne = "av-messagebox", we = "av-panel", Ee = "av-button", Kt = (e) => {
|
|
|
632
634
|
{
|
|
633
635
|
ref: t,
|
|
634
636
|
onClick: (i) => {
|
|
635
|
-
|
|
637
|
+
ra(i, r, a);
|
|
636
638
|
},
|
|
637
639
|
...n
|
|
638
640
|
}
|
|
639
641
|
);
|
|
640
642
|
});
|
|
641
643
|
ge.displayName = "BaseButton";
|
|
642
|
-
const
|
|
644
|
+
const Pe = re.forwardRef(
|
|
643
645
|
({
|
|
644
646
|
children: e,
|
|
645
647
|
disabled: t = !1,
|
|
@@ -647,8 +649,8 @@ const ze = re.forwardRef(
|
|
|
647
649
|
focusMode: r = "system",
|
|
648
650
|
fullWidth: n = !1,
|
|
649
651
|
className: i,
|
|
650
|
-
type:
|
|
651
|
-
raw:
|
|
652
|
+
type: c = "button",
|
|
653
|
+
raw: l = !1,
|
|
652
654
|
noBorder: s = !1,
|
|
653
655
|
"aria-label": d,
|
|
654
656
|
label: u,
|
|
@@ -660,13 +662,13 @@ const ze = re.forwardRef(
|
|
|
660
662
|
align: w = "center",
|
|
661
663
|
...b
|
|
662
664
|
}, T) => {
|
|
663
|
-
const N =
|
|
665
|
+
const N = ze({
|
|
664
666
|
type: he,
|
|
665
667
|
mode: a,
|
|
666
668
|
focusMode: r,
|
|
667
669
|
fullWidth: n,
|
|
668
670
|
disabled: t,
|
|
669
|
-
raw:
|
|
671
|
+
raw: l,
|
|
670
672
|
className: i,
|
|
671
673
|
noBorder: s,
|
|
672
674
|
size: p,
|
|
@@ -676,10 +678,10 @@ const ze = re.forwardRef(
|
|
|
676
678
|
noBackground: k,
|
|
677
679
|
align: w
|
|
678
680
|
}), E = f({
|
|
679
|
-
"text-copy-accent-dark": a === "light" && !
|
|
680
|
-
"text-copy-light": a === "dark" && !
|
|
681
|
-
"text-copy-accent-dark dark:text-copy-light": a === "alt-system" && !
|
|
682
|
-
"text-copy-light dark:text-copy-accent-dark": a === "system" && !
|
|
681
|
+
"text-copy-accent-dark": a === "light" && !l,
|
|
682
|
+
"text-copy-light": a === "dark" && !l,
|
|
683
|
+
"text-copy-accent-dark dark:text-copy-light": a === "alt-system" && !l,
|
|
684
|
+
"text-copy-light dark:text-copy-accent-dark": a === "system" && !l
|
|
683
685
|
});
|
|
684
686
|
return /* @__PURE__ */ m(
|
|
685
687
|
ge,
|
|
@@ -687,7 +689,7 @@ const ze = re.forwardRef(
|
|
|
687
689
|
ref: T,
|
|
688
690
|
className: N,
|
|
689
691
|
disabled: t,
|
|
690
|
-
type:
|
|
692
|
+
type: c,
|
|
691
693
|
"aria-label": d || u,
|
|
692
694
|
...b,
|
|
693
695
|
children: [
|
|
@@ -699,21 +701,21 @@ const ze = re.forwardRef(
|
|
|
699
701
|
);
|
|
700
702
|
}
|
|
701
703
|
);
|
|
702
|
-
|
|
704
|
+
Pe.displayName = "ButtonIcon";
|
|
703
705
|
/*!
|
|
704
|
-
@versini/ui-button v1.1.
|
|
706
|
+
@versini/ui-button v1.1.10
|
|
705
707
|
© 2024 gizmette.com
|
|
706
708
|
*/
|
|
707
709
|
try {
|
|
708
710
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
709
|
-
version: "1.1.
|
|
710
|
-
buildTime: "09/
|
|
711
|
+
version: "1.1.10",
|
|
712
|
+
buildTime: "09/28/2024 06:29 PM EDT",
|
|
711
713
|
homepage: "https://github.com/aversini/ui-components",
|
|
712
714
|
license: "MIT"
|
|
713
715
|
});
|
|
714
716
|
} catch {
|
|
715
717
|
}
|
|
716
|
-
const
|
|
718
|
+
const na = re.forwardRef(
|
|
717
719
|
({
|
|
718
720
|
children: e,
|
|
719
721
|
disabled: t = !1,
|
|
@@ -721,8 +723,8 @@ const ra = re.forwardRef(
|
|
|
721
723
|
focusMode: r = "system",
|
|
722
724
|
fullWidth: n = !1,
|
|
723
725
|
className: i,
|
|
724
|
-
type:
|
|
725
|
-
raw:
|
|
726
|
+
type: c = "button",
|
|
727
|
+
raw: l = !1,
|
|
726
728
|
noBorder: s = !1,
|
|
727
729
|
"aria-label": d,
|
|
728
730
|
label: u,
|
|
@@ -735,13 +737,13 @@ const ra = re.forwardRef(
|
|
|
735
737
|
active: b = !1,
|
|
736
738
|
...T
|
|
737
739
|
}, N) => {
|
|
738
|
-
const E =
|
|
740
|
+
const E = ze({
|
|
739
741
|
type: he,
|
|
740
742
|
mode: a,
|
|
741
743
|
focusMode: r,
|
|
742
744
|
fullWidth: n,
|
|
743
745
|
disabled: t,
|
|
744
|
-
raw:
|
|
746
|
+
raw: l,
|
|
745
747
|
className: i,
|
|
746
748
|
noBorder: s,
|
|
747
749
|
size: p,
|
|
@@ -751,10 +753,10 @@ const ra = re.forwardRef(
|
|
|
751
753
|
noBackground: k,
|
|
752
754
|
align: w
|
|
753
755
|
}), G = f({
|
|
754
|
-
"text-copy-accent-dark": a === "light" && !
|
|
755
|
-
"text-copy-light": a === "dark" && !
|
|
756
|
-
"text-copy-accent-dark dark:text-copy-light": a === "alt-system" && !
|
|
757
|
-
"text-copy-light dark:text-copy-accent-dark": a === "system" && !
|
|
756
|
+
"text-copy-accent-dark": a === "light" && !l,
|
|
757
|
+
"text-copy-light": a === "dark" && !l,
|
|
758
|
+
"text-copy-accent-dark dark:text-copy-light": a === "alt-system" && !l,
|
|
759
|
+
"text-copy-light dark:text-copy-accent-dark": a === "system" && !l
|
|
758
760
|
}), j = b ? f(
|
|
759
761
|
"relative",
|
|
760
762
|
"focus-within:static",
|
|
@@ -778,7 +780,7 @@ const ra = re.forwardRef(
|
|
|
778
780
|
ref: N,
|
|
779
781
|
className: E,
|
|
780
782
|
disabled: t,
|
|
781
|
-
type:
|
|
783
|
+
type: c,
|
|
782
784
|
"aria-label": d || u,
|
|
783
785
|
...T,
|
|
784
786
|
children: [
|
|
@@ -790,8 +792,8 @@ const ra = re.forwardRef(
|
|
|
790
792
|
) });
|
|
791
793
|
}
|
|
792
794
|
);
|
|
793
|
-
|
|
794
|
-
const
|
|
795
|
+
na.displayName = "ButtonSort";
|
|
796
|
+
const ia = (e) => {
|
|
795
797
|
let t = "";
|
|
796
798
|
if (typeof e == "number" || typeof e == "string")
|
|
797
799
|
t = "m-" + e;
|
|
@@ -800,19 +802,19 @@ const na = (e) => {
|
|
|
800
802
|
(e == null ? void 0 : e.t) !== void 0 && a.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && a.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && a.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && a.push(`ml-${e.l}`), t = a.join(" ");
|
|
801
803
|
}
|
|
802
804
|
return t;
|
|
803
|
-
},
|
|
805
|
+
}, sa = ({
|
|
804
806
|
children: e,
|
|
805
807
|
fill: t,
|
|
806
808
|
viewBox: a,
|
|
807
809
|
className: r,
|
|
808
810
|
defaultViewBox: n,
|
|
809
811
|
defaultClassName: i,
|
|
810
|
-
spacing:
|
|
811
|
-
title:
|
|
812
|
+
spacing: c,
|
|
813
|
+
title: l,
|
|
812
814
|
semantic: s = !1,
|
|
813
815
|
...d
|
|
814
816
|
}) => {
|
|
815
|
-
const u =
|
|
817
|
+
const u = ia(c), p = f(
|
|
816
818
|
u,
|
|
817
819
|
r || i
|
|
818
820
|
);
|
|
@@ -831,23 +833,23 @@ const na = (e) => {
|
|
|
831
833
|
children: e
|
|
832
834
|
}
|
|
833
835
|
),
|
|
834
|
-
|
|
836
|
+
l && s && /* @__PURE__ */ o("span", { className: "sr-only", children: l })
|
|
835
837
|
] });
|
|
836
838
|
};
|
|
837
839
|
/*!
|
|
838
|
-
@versini/ui-private v1.4.
|
|
840
|
+
@versini/ui-private v1.4.17
|
|
839
841
|
© 2024 gizmette.com
|
|
840
842
|
*/
|
|
841
843
|
try {
|
|
842
844
|
window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
|
|
843
|
-
version: "1.4.
|
|
844
|
-
buildTime: "09/
|
|
845
|
+
version: "1.4.17",
|
|
846
|
+
buildTime: "09/28/2024 06:29 PM EDT",
|
|
845
847
|
homepage: "https://github.com/aversini/ui-components",
|
|
846
848
|
license: "MIT"
|
|
847
849
|
});
|
|
848
850
|
} catch {
|
|
849
851
|
}
|
|
850
|
-
const
|
|
852
|
+
const ca = ({
|
|
851
853
|
className: e,
|
|
852
854
|
viewBox: t,
|
|
853
855
|
spacing: a,
|
|
@@ -855,7 +857,7 @@ const sa = ({
|
|
|
855
857
|
monotone: n,
|
|
856
858
|
...i
|
|
857
859
|
}) => /* @__PURE__ */ o(
|
|
858
|
-
|
|
860
|
+
sa,
|
|
859
861
|
{
|
|
860
862
|
defaultViewBox: "0 0 384 512",
|
|
861
863
|
defaultClassName: "size-5",
|
|
@@ -868,13 +870,13 @@ const sa = ({
|
|
|
868
870
|
}
|
|
869
871
|
);
|
|
870
872
|
/*!
|
|
871
|
-
@versini/ui-icons v1.
|
|
873
|
+
@versini/ui-icons v1.13.1
|
|
872
874
|
© 2024 gizmette.com
|
|
873
875
|
*/
|
|
874
876
|
try {
|
|
875
877
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
876
|
-
version: "1.
|
|
877
|
-
buildTime: "09/
|
|
878
|
+
version: "1.13.1",
|
|
879
|
+
buildTime: "09/28/2024 06:29 PM EDT",
|
|
878
880
|
homepage: "https://github.com/aversini/ui-components",
|
|
879
881
|
license: "MIT"
|
|
880
882
|
});
|
|
@@ -886,10 +888,10 @@ const K = "panel", te = "messagebox", la = ({
|
|
|
886
888
|
borderMode: a
|
|
887
889
|
}) => ({
|
|
888
890
|
main: f("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
889
|
-
[`${
|
|
890
|
-
[`${
|
|
891
|
-
[`${
|
|
892
|
-
[`${
|
|
891
|
+
[`${Ee} h-full min-h-[95%] sm:h-auto sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === K,
|
|
892
|
+
[`${Ee} w-full sm:w-[95%] md:max-w-2xl`]: t === K && !e,
|
|
893
|
+
[`${we} rounded-lg border-2`]: t === te,
|
|
894
|
+
[`${we} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === te && !e,
|
|
893
895
|
[`${e}`]: !!e,
|
|
894
896
|
"sm:border-border-dark": a === "dark" && t === K,
|
|
895
897
|
"sm:border-border-accent": a === "light" && t === K,
|
|
@@ -900,52 +902,52 @@ const K = "panel", te = "messagebox", la = ({
|
|
|
900
902
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
901
903
|
header: "sm:p-4 mb-0 p-2",
|
|
902
904
|
close: "sm:p-4 p-2"
|
|
903
|
-
}),
|
|
904
|
-
() => import("./index.
|
|
905
|
+
}), q = (e) => pt(
|
|
906
|
+
() => import("./index.BV7w1tBT.B-qjwzFk.js").then((t) => ({
|
|
905
907
|
default: t[e]
|
|
906
908
|
}))
|
|
907
|
-
),
|
|
909
|
+
), da = q("Modal"), ua = q("ModalClose"), ma = q("ModalContent"), ha = q("ModalDescription"), ga = q("ModalHeading"), H = ({
|
|
908
910
|
open: e,
|
|
909
911
|
onOpenChange: t,
|
|
910
912
|
title: a,
|
|
911
913
|
children: r,
|
|
912
914
|
footer: n,
|
|
913
915
|
borderMode: i = "light",
|
|
914
|
-
kind:
|
|
915
|
-
className:
|
|
916
|
+
kind: c = K,
|
|
917
|
+
className: l
|
|
916
918
|
}) => {
|
|
917
|
-
const s = Z(""), d = la({ className:
|
|
919
|
+
const s = Z(""), d = la({ className: l, kind: c, borderMode: i });
|
|
918
920
|
return O(() => (e && (s.current = document.title, document.title = `${a} | ${s.current}`), () => {
|
|
919
921
|
e && (document.title = s.current);
|
|
920
|
-
}), [a, e]), /* @__PURE__ */ o(
|
|
922
|
+
}), [a, e]), /* @__PURE__ */ o(gt, { fallback: /* @__PURE__ */ o("div", {}), children: e && /* @__PURE__ */ o(da, { open: e, onOpenChange: t, children: /* @__PURE__ */ m(ma, { className: d.main, children: [
|
|
921
923
|
/* @__PURE__ */ m("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
922
924
|
/* @__PURE__ */ o(
|
|
923
|
-
|
|
925
|
+
ua,
|
|
924
926
|
{
|
|
925
927
|
className: d.close,
|
|
926
928
|
trigger: /* @__PURE__ */ o(
|
|
927
|
-
|
|
929
|
+
Pe,
|
|
928
930
|
{
|
|
929
931
|
mode: "dark",
|
|
930
932
|
focusMode: "light",
|
|
931
933
|
noBorder: !0,
|
|
932
934
|
label: "Close",
|
|
933
|
-
children: /* @__PURE__ */ o(
|
|
935
|
+
children: /* @__PURE__ */ o(ca, {})
|
|
934
936
|
}
|
|
935
937
|
)
|
|
936
938
|
}
|
|
937
939
|
),
|
|
938
|
-
/* @__PURE__ */ o(
|
|
940
|
+
/* @__PURE__ */ o(ga, { className: d.header, children: a })
|
|
939
941
|
] }),
|
|
940
|
-
/* @__PURE__ */ o(
|
|
942
|
+
/* @__PURE__ */ o(ha, { className: d.content, children: r }),
|
|
941
943
|
n && /* @__PURE__ */ o("div", { className: d.footer, children: n })
|
|
942
944
|
] }) }) });
|
|
943
945
|
};
|
|
944
|
-
function
|
|
945
|
-
return
|
|
946
|
+
function J(e) {
|
|
947
|
+
return ft();
|
|
946
948
|
}
|
|
947
|
-
const
|
|
948
|
-
const t = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", r = (e == null ? void 0 : e.models) || [], n =
|
|
949
|
+
const pa = ({ stats: e }) => {
|
|
950
|
+
const t = (e == null ? void 0 : e.plugins) || [], a = (e == null ? void 0 : e.version) || "", r = (e == null ? void 0 : e.models) || [], n = J(), i = J();
|
|
949
951
|
return /* @__PURE__ */ m(S, { children: [
|
|
950
952
|
/* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
951
953
|
I,
|
|
@@ -953,8 +955,8 @@ const ga = ({ stats: e }) => {
|
|
|
953
955
|
header: v.ABOUT.TITLE_CLIENT,
|
|
954
956
|
className: "prose-dark dark:prose-lighter",
|
|
955
957
|
children: X(n, {
|
|
956
|
-
[v.ABOUT.VERSION]: "4.5.
|
|
957
|
-
[v.ABOUT.BUILD_TIMESTAMP]: "09/
|
|
958
|
+
[v.ABOUT.VERSION]: "4.5.3",
|
|
959
|
+
[v.ABOUT.BUILD_TIMESTAMP]: "09/30/2024 05:26 PM EDT"
|
|
958
960
|
})
|
|
959
961
|
}
|
|
960
962
|
) }),
|
|
@@ -965,36 +967,36 @@ const ga = ({ stats: e }) => {
|
|
|
965
967
|
className: "prose-dark dark:prose-lighter",
|
|
966
968
|
children: X(i, {
|
|
967
969
|
[v.ABOUT.VERSION]: a,
|
|
968
|
-
[oe(v.ABOUT.ENGINE, r.length)]: /* @__PURE__ */ o(S, { children: r.map((
|
|
969
|
-
[oe(v.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(S, { children: t.map((
|
|
970
|
+
[oe(v.ABOUT.ENGINE, r.length)]: /* @__PURE__ */ o(S, { children: r.map((c) => /* @__PURE__ */ o("div", { className: "text-right", children: c }, c)) }),
|
|
971
|
+
[oe(v.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(S, { children: t.map((c) => /* @__PURE__ */ o("div", { className: "text-right", children: c }, c)) })
|
|
970
972
|
})
|
|
971
973
|
}
|
|
972
974
|
)
|
|
973
975
|
] });
|
|
974
|
-
},
|
|
976
|
+
}, fa = ({
|
|
975
977
|
open: e,
|
|
976
978
|
onOpenChange: t
|
|
977
979
|
}) => {
|
|
978
980
|
const { serverStats: a } = B(ne);
|
|
979
|
-
return /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title:
|
|
980
|
-
},
|
|
981
|
+
return /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: Xe, children: /* @__PURE__ */ o(pa, { stats: a }) });
|
|
982
|
+
}, ba = (e) => _e(e), va = (e) => {
|
|
981
983
|
if (!e || e.length === 0)
|
|
982
984
|
return qe;
|
|
983
985
|
const t = e.filter(
|
|
984
986
|
(a) => {
|
|
985
987
|
var r, n;
|
|
986
|
-
return ((r = a == null ? void 0 : a.message) == null ? void 0 : r.role) ===
|
|
988
|
+
return ((r = a == null ? void 0 : a.message) == null ? void 0 : r.role) === Qe && typeof ((n = a == null ? void 0 : a.message) == null ? void 0 : n.processingTime) == "number";
|
|
987
989
|
}
|
|
988
990
|
).map((a) => a.message.processingTime);
|
|
989
|
-
return
|
|
991
|
+
return et({
|
|
990
992
|
data: t,
|
|
991
|
-
formatter:
|
|
993
|
+
formatter: ba
|
|
992
994
|
});
|
|
993
|
-
},
|
|
995
|
+
}, ya = ({
|
|
994
996
|
isAuthenticated: e,
|
|
995
997
|
stats: t
|
|
996
998
|
}) => {
|
|
997
|
-
const { state: a } = B(ne), r =
|
|
999
|
+
const { state: a } = B(ne), r = tt - Number(a == null ? void 0 : a.usage), n = J(), i = J();
|
|
998
1000
|
return e ? /* @__PURE__ */ m(S, { children: [
|
|
999
1001
|
a && a.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
|
|
1000
1002
|
I,
|
|
@@ -1002,10 +1004,10 @@ const ga = ({ stats: e }) => {
|
|
|
1002
1004
|
header: v.CURRENT_STATISTICS.TITLE,
|
|
1003
1005
|
className: "prose-dark dark:prose-lighter",
|
|
1004
1006
|
children: X(n, {
|
|
1005
|
-
[v.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) ||
|
|
1007
|
+
[v.CURRENT_STATISTICS.MODEL_NAME]: (a == null ? void 0 : a.model) || Ze,
|
|
1006
1008
|
[v.CURRENT_STATISTICS.TOKENS_USED]: a == null ? void 0 : a.usage,
|
|
1007
|
-
[v.CURRENT_STATISTICS.REMAINING_TOKENS]:
|
|
1008
|
-
[v.CURRENT_STATISTICS.PROCESSING_TIME]:
|
|
1009
|
+
[v.CURRENT_STATISTICS.REMAINING_TOKENS]: Je.format(r),
|
|
1010
|
+
[v.CURRENT_STATISTICS.PROCESSING_TIME]: va(a == null ? void 0 : a.messages)
|
|
1009
1011
|
})
|
|
1010
1012
|
}
|
|
1011
1013
|
) }),
|
|
@@ -1016,37 +1018,37 @@ const ga = ({ stats: e }) => {
|
|
|
1016
1018
|
className: "prose-dark dark:prose-lighter",
|
|
1017
1019
|
children: X(i, {
|
|
1018
1020
|
[oe(v.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
|
|
1019
|
-
[v.MAIN_STATISTICS.PROCESSING_TIME]:
|
|
1021
|
+
[v.MAIN_STATISTICS.PROCESSING_TIME]: _e(
|
|
1020
1022
|
t.averageProcessingTimes
|
|
1021
1023
|
)
|
|
1022
1024
|
})
|
|
1023
1025
|
}
|
|
1024
1026
|
)
|
|
1025
1027
|
] }) : null;
|
|
1026
|
-
},
|
|
1028
|
+
}, ka = ({
|
|
1027
1029
|
open: e,
|
|
1028
1030
|
onOpenChange: t
|
|
1029
1031
|
}) => {
|
|
1030
1032
|
const [a, r] = C({
|
|
1031
1033
|
averageProcessingTimes: 0,
|
|
1032
1034
|
totalChats: 0
|
|
1033
|
-
}), { isAuthenticated: n, getAccessToken: i, user:
|
|
1035
|
+
}), { isAuthenticated: n, getAccessToken: i, user: c } = $();
|
|
1034
1036
|
return O(() => {
|
|
1035
|
-
!e || !
|
|
1037
|
+
!e || !c || (async () => {
|
|
1036
1038
|
try {
|
|
1037
|
-
const
|
|
1039
|
+
const l = await M({
|
|
1038
1040
|
accessToken: await i(),
|
|
1039
1041
|
type: L.GET_CHATS_STATS,
|
|
1040
1042
|
params: {
|
|
1041
|
-
userId:
|
|
1043
|
+
userId: c.username
|
|
1042
1044
|
}
|
|
1043
1045
|
});
|
|
1044
|
-
|
|
1046
|
+
l.status === 200 && r(l.data);
|
|
1045
1047
|
} catch {
|
|
1046
1048
|
}
|
|
1047
1049
|
})();
|
|
1048
|
-
}, [e, i,
|
|
1049
|
-
},
|
|
1050
|
+
}, [e, i, c]), /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: Ae, children: /* @__PURE__ */ o(ya, { isAuthenticated: n, stats: a }) });
|
|
1051
|
+
}, Ve = ({
|
|
1050
1052
|
showConfirmation: e,
|
|
1051
1053
|
setShowConfirmation: t,
|
|
1052
1054
|
action: a,
|
|
@@ -1060,7 +1062,7 @@ const ga = ({ stats: e }) => {
|
|
|
1060
1062
|
onOpenChange: t,
|
|
1061
1063
|
title: n.title,
|
|
1062
1064
|
footer: /* @__PURE__ */ m(me, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1063
|
-
/* @__PURE__ */ o(
|
|
1065
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
|
|
1064
1066
|
z,
|
|
1065
1067
|
{
|
|
1066
1068
|
mode: "dark",
|
|
@@ -1072,7 +1074,7 @@ const ga = ({ stats: e }) => {
|
|
|
1072
1074
|
children: n.cancelAction
|
|
1073
1075
|
}
|
|
1074
1076
|
) }),
|
|
1075
|
-
/* @__PURE__ */ o(
|
|
1077
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
|
|
1076
1078
|
z,
|
|
1077
1079
|
{
|
|
1078
1080
|
mode: "dark",
|
|
@@ -1088,20 +1090,20 @@ const ga = ({ stats: e }) => {
|
|
|
1088
1090
|
children: r
|
|
1089
1091
|
}
|
|
1090
1092
|
);
|
|
1091
|
-
var
|
|
1092
|
-
return
|
|
1093
|
-
},
|
|
1094
|
-
var a = C(
|
|
1093
|
+
var Ta = typeof window < "u", Ca = function(e, t) {
|
|
1094
|
+
return Ta ? window.matchMedia(e).matches : (process.env.NODE_ENV !== "production" && console.warn("`useMedia` When server side rendering, defaultState should be defined to prevent a hydration mismatches."), !1);
|
|
1095
|
+
}, Na = function(e, t) {
|
|
1096
|
+
var a = C(Ca(e)), r = a[0], n = a[1];
|
|
1095
1097
|
return O(function() {
|
|
1096
|
-
var i = !0,
|
|
1097
|
-
i && n(!!
|
|
1098
|
+
var i = !0, c = window.matchMedia(e), l = function() {
|
|
1099
|
+
i && n(!!c.matches);
|
|
1098
1100
|
};
|
|
1099
|
-
return
|
|
1100
|
-
i = !1,
|
|
1101
|
+
return c.addEventListener("change", l), n(c.matches), function() {
|
|
1102
|
+
i = !1, c.removeEventListener("change", l);
|
|
1101
1103
|
};
|
|
1102
1104
|
}, [e]), r;
|
|
1103
1105
|
};
|
|
1104
|
-
const
|
|
1106
|
+
const wa = async (e, t, a, r) => {
|
|
1105
1107
|
try {
|
|
1106
1108
|
const n = await M({
|
|
1107
1109
|
accessToken: r,
|
|
@@ -1111,9 +1113,9 @@ const Na = async (e, t, a, r) => {
|
|
|
1111
1113
|
}
|
|
1112
1114
|
});
|
|
1113
1115
|
n.status === 200 && (t({
|
|
1114
|
-
type:
|
|
1116
|
+
type: ot
|
|
1115
1117
|
}), t({
|
|
1116
|
-
type:
|
|
1118
|
+
type: rt,
|
|
1117
1119
|
payload: {
|
|
1118
1120
|
id: e.id,
|
|
1119
1121
|
model: n.data.model,
|
|
@@ -1123,22 +1125,22 @@ const Na = async (e, t, a, r) => {
|
|
|
1123
1125
|
}), a(!1));
|
|
1124
1126
|
} catch {
|
|
1125
1127
|
}
|
|
1126
|
-
},
|
|
1128
|
+
}, xe = (e) => {
|
|
1127
1129
|
const t = e[0];
|
|
1128
|
-
return
|
|
1129
|
-
},
|
|
1130
|
+
return nt(t == null ? void 0 : t.content, 100);
|
|
1131
|
+
}, Ea = ({
|
|
1130
1132
|
filteredHistory: e,
|
|
1131
1133
|
setFilteredHistory: t,
|
|
1132
1134
|
dispatch: a,
|
|
1133
1135
|
onOpenChange: r
|
|
1134
1136
|
}) => {
|
|
1135
1137
|
var w;
|
|
1136
|
-
const { user: n, getAccessToken: i } =
|
|
1138
|
+
const { user: n, getAccessToken: i } = $(), c = Z({
|
|
1137
1139
|
id: 0,
|
|
1138
1140
|
timestamp: "",
|
|
1139
1141
|
message: ""
|
|
1140
|
-
}), [
|
|
1141
|
-
key: P +
|
|
1142
|
+
}), [l, s] = C(!1), d = Na("(min-width: 480px)"), { state: u, dispatch: p } = B(Me), [, y] = F({
|
|
1143
|
+
key: P + at,
|
|
1142
1144
|
initialValue: u.sortDirection
|
|
1143
1145
|
}), h = e.data.sort(
|
|
1144
1146
|
(b, T) => {
|
|
@@ -1187,12 +1189,12 @@ const Na = async (e, t, a, r) => {
|
|
|
1187
1189
|
};
|
|
1188
1190
|
return /* @__PURE__ */ m(S, { children: [
|
|
1189
1191
|
/* @__PURE__ */ m(
|
|
1190
|
-
|
|
1192
|
+
Ve,
|
|
1191
1193
|
{
|
|
1192
|
-
showConfirmation:
|
|
1194
|
+
showConfirmation: l,
|
|
1193
1195
|
setShowConfirmation: s,
|
|
1194
1196
|
action: async () => {
|
|
1195
|
-
const b =
|
|
1197
|
+
const b = c.current;
|
|
1196
1198
|
try {
|
|
1197
1199
|
const T = await M({
|
|
1198
1200
|
accessToken: await i(),
|
|
@@ -1217,22 +1219,22 @@ const Na = async (e, t, a, r) => {
|
|
|
1217
1219
|
/* @__PURE__ */ m("li", { children: [
|
|
1218
1220
|
"Timestamp:",
|
|
1219
1221
|
" ",
|
|
1220
|
-
/* @__PURE__ */ o("span", { className: "text-lg", children:
|
|
1222
|
+
/* @__PURE__ */ o("span", { className: "text-lg", children: c.current && c.current.timestamp })
|
|
1221
1223
|
] }),
|
|
1222
1224
|
/* @__PURE__ */ m("li", { children: [
|
|
1223
1225
|
"First message:",
|
|
1224
1226
|
" ",
|
|
1225
|
-
/* @__PURE__ */ o("span", { className: "text-lg", children: (w =
|
|
1227
|
+
/* @__PURE__ */ o("span", { className: "text-lg", children: (w = c.current) == null ? void 0 : w.message })
|
|
1226
1228
|
] })
|
|
1227
1229
|
] })
|
|
1228
1230
|
]
|
|
1229
1231
|
}
|
|
1230
1232
|
),
|
|
1231
|
-
/* @__PURE__ */ m(
|
|
1232
|
-
/* @__PURE__ */ o(
|
|
1233
|
+
/* @__PURE__ */ m(vt, { stickyHeader: !0, stickyFooter: !0, wrapperClassName: "max-h-[60vh]", children: [
|
|
1234
|
+
/* @__PURE__ */ o(yt, { children: /* @__PURE__ */ m(le, { children: [
|
|
1233
1235
|
d && /* @__PURE__ */ o(R, { className: "sr-only", children: "Row" }),
|
|
1234
1236
|
/* @__PURE__ */ o(
|
|
1235
|
-
|
|
1237
|
+
kt,
|
|
1236
1238
|
{
|
|
1237
1239
|
cellId: "timestamp",
|
|
1238
1240
|
align: "left",
|
|
@@ -1247,9 +1249,9 @@ const Na = async (e, t, a, r) => {
|
|
|
1247
1249
|
/* @__PURE__ */ o(R, { children: "First message" }),
|
|
1248
1250
|
/* @__PURE__ */ o(R, { className: "text-right", children: "Actions" })
|
|
1249
1251
|
] }) }),
|
|
1250
|
-
/* @__PURE__ */ o(
|
|
1252
|
+
/* @__PURE__ */ o(Tt, { children: h.map((b, T) => {
|
|
1251
1253
|
var N;
|
|
1252
|
-
return ((N = b == null ? void 0 : b.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ m(
|
|
1254
|
+
return ((N = b == null ? void 0 : b.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ m(le, { children: [
|
|
1253
1255
|
d && /* @__PURE__ */ o(R, { children: T + 1 }),
|
|
1254
1256
|
/* @__PURE__ */ o(
|
|
1255
1257
|
R,
|
|
@@ -1260,7 +1262,7 @@ const Na = async (e, t, a, r) => {
|
|
|
1260
1262
|
children: b.timestamp
|
|
1261
1263
|
}
|
|
1262
1264
|
),
|
|
1263
|
-
/* @__PURE__ */ o(R, { className: "max-w-[100px] text-white sm:max-w-full", children:
|
|
1265
|
+
/* @__PURE__ */ o(R, { className: "max-w-[100px] text-white sm:max-w-full", children: xe(b.messages) }),
|
|
1264
1266
|
/* @__PURE__ */ o(R, { children: /* @__PURE__ */ m("div", { className: "flex justify-end gap-2", children: [
|
|
1265
1267
|
/* @__PURE__ */ o(
|
|
1266
1268
|
V,
|
|
@@ -1270,14 +1272,14 @@ const Na = async (e, t, a, r) => {
|
|
|
1270
1272
|
label: "Restore chat",
|
|
1271
1273
|
onClick: async () => {
|
|
1272
1274
|
const E = await i();
|
|
1273
|
-
|
|
1275
|
+
wa(
|
|
1274
1276
|
b,
|
|
1275
1277
|
a,
|
|
1276
1278
|
r,
|
|
1277
1279
|
E
|
|
1278
1280
|
);
|
|
1279
1281
|
},
|
|
1280
|
-
children: /* @__PURE__ */ o(
|
|
1282
|
+
children: /* @__PURE__ */ o(Wt, { className: "h-3 w-3", monotone: !0 })
|
|
1281
1283
|
}
|
|
1282
1284
|
),
|
|
1283
1285
|
/* @__PURE__ */ o(
|
|
@@ -1287,47 +1289,47 @@ const Na = async (e, t, a, r) => {
|
|
|
1287
1289
|
noBorder: !0,
|
|
1288
1290
|
label: "Delete chat",
|
|
1289
1291
|
onClick: () => {
|
|
1290
|
-
|
|
1292
|
+
c.current = {
|
|
1291
1293
|
id: b.id,
|
|
1292
1294
|
timestamp: b.timestamp,
|
|
1293
|
-
message:
|
|
1294
|
-
}, s(!
|
|
1295
|
+
message: xe(b.messages)
|
|
1296
|
+
}, s(!l);
|
|
1295
1297
|
},
|
|
1296
|
-
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(
|
|
1298
|
+
children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Ut, { className: "h-3 w-3", monotone: !0 }) })
|
|
1297
1299
|
}
|
|
1298
1300
|
)
|
|
1299
1301
|
] }) })
|
|
1300
1302
|
] }, `${v.HISTORY.TITLE}-${b.id}-${T}`) : null;
|
|
1301
1303
|
}) }),
|
|
1302
|
-
/* @__PURE__ */ o(
|
|
1304
|
+
/* @__PURE__ */ o(Ct, { children: /* @__PURE__ */ o(le, { children: /* @__PURE__ */ o(R, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: oe(
|
|
1303
1305
|
`${e.data.length} chat`,
|
|
1304
1306
|
e.data.length
|
|
1305
1307
|
) }) }) }) })
|
|
1306
1308
|
] })
|
|
1307
1309
|
] });
|
|
1308
1310
|
};
|
|
1309
|
-
function
|
|
1311
|
+
function Ie(e, t) {
|
|
1310
1312
|
return t ? e.filter(
|
|
1311
1313
|
(a) => a.messages.some(
|
|
1312
1314
|
(r) => r.content !== null && r.content.toLowerCase().includes(t.toLowerCase())
|
|
1313
1315
|
)
|
|
1314
1316
|
) : e;
|
|
1315
1317
|
}
|
|
1316
|
-
const
|
|
1318
|
+
const Sa = ({
|
|
1317
1319
|
onOpenChange: e,
|
|
1318
1320
|
historyData: t
|
|
1319
1321
|
}) => {
|
|
1320
|
-
const { isAuthenticated: a } =
|
|
1321
|
-
key: P +
|
|
1322
|
+
const { isAuthenticated: a } = $(), r = Z(null), { dispatch: n } = B(ne), { state: i, dispatch: c } = B(Me), [, l] = F({
|
|
1323
|
+
key: P + it,
|
|
1322
1324
|
initialValue: i.searchString
|
|
1323
|
-
}), s =
|
|
1325
|
+
}), s = bt(() => t, [t]), [d, u] = C({
|
|
1324
1326
|
data: s
|
|
1325
1327
|
}), p = (g) => {
|
|
1326
|
-
const k =
|
|
1328
|
+
const k = Ie(s, g);
|
|
1327
1329
|
u({
|
|
1328
1330
|
data: k
|
|
1329
|
-
}),
|
|
1330
|
-
type:
|
|
1331
|
+
}), l(g), c({
|
|
1332
|
+
type: ct,
|
|
1331
1333
|
payload: { searchString: g }
|
|
1332
1334
|
});
|
|
1333
1335
|
}, y = (g) => {
|
|
@@ -1336,7 +1338,7 @@ const Ea = ({
|
|
|
1336
1338
|
g.preventDefault();
|
|
1337
1339
|
};
|
|
1338
1340
|
return O(() => {
|
|
1339
|
-
const g =
|
|
1341
|
+
const g = Ie(
|
|
1340
1342
|
t,
|
|
1341
1343
|
i.searchString
|
|
1342
1344
|
);
|
|
@@ -1345,7 +1347,7 @@ const Ea = ({
|
|
|
1345
1347
|
});
|
|
1346
1348
|
}, [t, i.searchString]), a ? d && d.data && /* @__PURE__ */ m(S, { children: [
|
|
1347
1349
|
/* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: h, children: /* @__PURE__ */ o(
|
|
1348
|
-
|
|
1350
|
+
st,
|
|
1349
1351
|
{
|
|
1350
1352
|
ref: r,
|
|
1351
1353
|
defaultValue: i.searchString,
|
|
@@ -1373,7 +1375,7 @@ const Ea = ({
|
|
|
1373
1375
|
}
|
|
1374
1376
|
) }),
|
|
1375
1377
|
/* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
|
|
1376
|
-
|
|
1378
|
+
Ea,
|
|
1377
1379
|
{
|
|
1378
1380
|
filteredHistory: d,
|
|
1379
1381
|
setFilteredHistory: u,
|
|
@@ -1382,25 +1384,25 @@ const Ea = ({
|
|
|
1382
1384
|
}
|
|
1383
1385
|
) })
|
|
1384
1386
|
] }) : null;
|
|
1385
|
-
},
|
|
1387
|
+
}, xa = ({
|
|
1386
1388
|
open: e,
|
|
1387
1389
|
onOpenChange: t,
|
|
1388
1390
|
historyData: a
|
|
1389
|
-
}) => /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: lt, children: /* @__PURE__ */ o(
|
|
1391
|
+
}) => /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: lt, children: /* @__PURE__ */ o(Sa, { onOpenChange: t, historyData: a }) });
|
|
1390
1392
|
/*!
|
|
1391
|
-
@versini/ui-toggle v1.0.
|
|
1393
|
+
@versini/ui-toggle v1.0.7
|
|
1392
1394
|
© 2024 gizmette.com
|
|
1393
1395
|
*/
|
|
1394
1396
|
try {
|
|
1395
1397
|
window.__VERSINI_UI_TOGGLE__ || (window.__VERSINI_UI_TOGGLE__ = {
|
|
1396
|
-
version: "1.0.
|
|
1397
|
-
buildTime: "09/
|
|
1398
|
+
version: "1.0.7",
|
|
1399
|
+
buildTime: "09/27/2024 11:56 AM EDT",
|
|
1398
1400
|
homepage: "https://github.com/aversini/ui-components",
|
|
1399
1401
|
license: "MIT"
|
|
1400
1402
|
});
|
|
1401
1403
|
} catch {
|
|
1402
1404
|
}
|
|
1403
|
-
const
|
|
1405
|
+
const Ia = "av-toggle", _a = (e) => {
|
|
1404
1406
|
let t = "";
|
|
1405
1407
|
if (typeof e == "number" || typeof e == "string")
|
|
1406
1408
|
t = "m-" + e;
|
|
@@ -1409,7 +1411,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1409
1411
|
(e == null ? void 0 : e.t) !== void 0 && a.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && a.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && a.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && a.push(`ml-${e.l}`), t = a.join(" ");
|
|
1410
1412
|
}
|
|
1411
1413
|
return t;
|
|
1412
|
-
},
|
|
1414
|
+
}, Aa = () => f("peer", "h-6", "w-11", "rounded-full"), Ra = ({
|
|
1413
1415
|
focusMode: e
|
|
1414
1416
|
}) => f(
|
|
1415
1417
|
"peer-focus:outline",
|
|
@@ -1421,14 +1423,14 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1421
1423
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
1422
1424
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
1423
1425
|
}
|
|
1424
|
-
),
|
|
1426
|
+
), Ma = () => f(
|
|
1425
1427
|
"peer-checked:after:translate-x-full",
|
|
1426
1428
|
// background color when checked
|
|
1427
1429
|
"peer-checked:bg-violet-500",
|
|
1428
1430
|
// knob circle and border color when checked
|
|
1429
1431
|
"peer-checked:after:bg-white",
|
|
1430
1432
|
"peer-checked:after:border-white"
|
|
1431
|
-
),
|
|
1433
|
+
), La = () => f(
|
|
1432
1434
|
"after:left-[2px]",
|
|
1433
1435
|
"after:top-[2px]",
|
|
1434
1436
|
"after:border",
|
|
@@ -1440,7 +1442,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1440
1442
|
"after:rounded-full",
|
|
1441
1443
|
"after:transition-all",
|
|
1442
1444
|
"after:content-['']"
|
|
1443
|
-
),
|
|
1445
|
+
), Ba = ({
|
|
1444
1446
|
mode: e,
|
|
1445
1447
|
noBorder: t
|
|
1446
1448
|
}) => f({
|
|
@@ -1449,7 +1451,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1449
1451
|
"border-border-light bg-surface-darker": e === "dark",
|
|
1450
1452
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
1451
1453
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
1452
|
-
}),
|
|
1454
|
+
}), Oa = ({
|
|
1453
1455
|
mode: e,
|
|
1454
1456
|
labelHidden: t
|
|
1455
1457
|
}) => t ? "sr-only" : f("ml-2 text-sm", {
|
|
@@ -1457,11 +1459,11 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1457
1459
|
"text-copy-lighter": e === "dark",
|
|
1458
1460
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
1459
1461
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
1460
|
-
}),
|
|
1461
|
-
|
|
1462
|
+
}), Ha = ({ spacing: e }) => f(
|
|
1463
|
+
Ia,
|
|
1462
1464
|
"relative flex cursor-pointer items-center",
|
|
1463
|
-
|
|
1464
|
-
),
|
|
1465
|
+
_a(e)
|
|
1466
|
+
), Da = ({
|
|
1465
1467
|
mode: e,
|
|
1466
1468
|
focusMode: t,
|
|
1467
1469
|
labelHidden: a,
|
|
@@ -1469,15 +1471,15 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1469
1471
|
noBorder: n
|
|
1470
1472
|
}) => ({
|
|
1471
1473
|
toggle: f(
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1474
|
+
Aa(),
|
|
1475
|
+
Ba({ mode: e, noBorder: n }),
|
|
1476
|
+
Ra({ focusMode: t }),
|
|
1477
|
+
La(),
|
|
1478
|
+
Ma()
|
|
1477
1479
|
),
|
|
1478
|
-
label:
|
|
1480
|
+
label: Oa({ mode: e, labelHidden: a }),
|
|
1479
1481
|
input: "peer sr-only",
|
|
1480
|
-
wrapper:
|
|
1482
|
+
wrapper: Ha({ spacing: r })
|
|
1481
1483
|
}), ae = ({
|
|
1482
1484
|
checked: e = !1,
|
|
1483
1485
|
onChange: t,
|
|
@@ -1485,15 +1487,15 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1485
1487
|
labelHidden: r = !1,
|
|
1486
1488
|
name: n,
|
|
1487
1489
|
mode: i = "system",
|
|
1488
|
-
focusMode:
|
|
1489
|
-
spacing:
|
|
1490
|
+
focusMode: c = "system",
|
|
1491
|
+
spacing: l,
|
|
1490
1492
|
noBorder: s = !1
|
|
1491
1493
|
}) => {
|
|
1492
|
-
const d =
|
|
1494
|
+
const d = Da({
|
|
1493
1495
|
mode: i,
|
|
1494
|
-
focusMode:
|
|
1496
|
+
focusMode: c,
|
|
1495
1497
|
labelHidden: r,
|
|
1496
|
-
spacing:
|
|
1498
|
+
spacing: l,
|
|
1497
1499
|
noBorder: s
|
|
1498
1500
|
}), u = (p) => {
|
|
1499
1501
|
t == null || t(p.target.checked);
|
|
@@ -1512,16 +1514,16 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1512
1514
|
/* @__PURE__ */ o("div", { className: d.toggle }),
|
|
1513
1515
|
/* @__PURE__ */ o("span", { className: d.label, children: a })
|
|
1514
1516
|
] });
|
|
1515
|
-
},
|
|
1517
|
+
}, za = ({
|
|
1516
1518
|
open: e,
|
|
1517
1519
|
onOpenChange: t
|
|
1518
1520
|
}) => {
|
|
1519
|
-
const { getAccessToken: a, user: r } =
|
|
1521
|
+
const { getAccessToken: a, user: r } = $(), [n, i] = C({
|
|
1520
1522
|
loaded: !1,
|
|
1521
1523
|
content: "",
|
|
1522
1524
|
loadingLocation: !1,
|
|
1523
1525
|
location: ""
|
|
1524
|
-
}),
|
|
1526
|
+
}), c = async (s) => {
|
|
1525
1527
|
s.preventDefault();
|
|
1526
1528
|
try {
|
|
1527
1529
|
await M({
|
|
@@ -1535,14 +1537,14 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1535
1537
|
});
|
|
1536
1538
|
} catch {
|
|
1537
1539
|
}
|
|
1538
|
-
},
|
|
1540
|
+
}, l = async () => {
|
|
1539
1541
|
i((s) => ({
|
|
1540
1542
|
...s,
|
|
1541
1543
|
location: "...",
|
|
1542
1544
|
loadingLocation: !0
|
|
1543
1545
|
}));
|
|
1544
1546
|
try {
|
|
1545
|
-
const s = Date.now(), d = await
|
|
1547
|
+
const s = Date.now(), d = await dt(), u = await M({
|
|
1546
1548
|
accessToken: await a(),
|
|
1547
1549
|
type: L.GET_LOCATION,
|
|
1548
1550
|
params: {
|
|
@@ -1603,7 +1605,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1603
1605
|
onOpenChange: t,
|
|
1604
1606
|
title: "Engine Fine Tuning",
|
|
1605
1607
|
footer: /* @__PURE__ */ m(me, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
1606
|
-
/* @__PURE__ */ o(
|
|
1608
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
|
|
1607
1609
|
z,
|
|
1608
1610
|
{
|
|
1609
1611
|
mode: "dark",
|
|
@@ -1615,14 +1617,14 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1615
1617
|
children: "Cancel"
|
|
1616
1618
|
}
|
|
1617
1619
|
) }),
|
|
1618
|
-
/* @__PURE__ */ o(
|
|
1620
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(
|
|
1619
1621
|
z,
|
|
1620
1622
|
{
|
|
1621
1623
|
mode: "dark",
|
|
1622
1624
|
variant: "danger",
|
|
1623
1625
|
focusMode: "light",
|
|
1624
1626
|
onClick: async (s) => {
|
|
1625
|
-
t(!1), await
|
|
1627
|
+
t(!1), await c(s);
|
|
1626
1628
|
},
|
|
1627
1629
|
children: "Save"
|
|
1628
1630
|
}
|
|
@@ -1637,7 +1639,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1637
1639
|
children: [
|
|
1638
1640
|
/* @__PURE__ */ o("p", { children: "What would you like Sassy Saint to know about you to provide better responses?" }),
|
|
1639
1641
|
/* @__PURE__ */ o(
|
|
1640
|
-
|
|
1642
|
+
Te,
|
|
1641
1643
|
{
|
|
1642
1644
|
mode: "alt-system",
|
|
1643
1645
|
autoCapitalize: "off",
|
|
@@ -1668,7 +1670,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1668
1670
|
children: [
|
|
1669
1671
|
/* @__PURE__ */ o("p", { children: "You can share your location to receive customized responses based on your area." }),
|
|
1670
1672
|
/* @__PURE__ */ o(
|
|
1671
|
-
|
|
1673
|
+
Te,
|
|
1672
1674
|
{
|
|
1673
1675
|
mode: "alt-system",
|
|
1674
1676
|
name: "location",
|
|
@@ -1691,7 +1693,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1691
1693
|
size: "small",
|
|
1692
1694
|
noBorder: !0,
|
|
1693
1695
|
disabled: n.loadingLocation,
|
|
1694
|
-
onClick:
|
|
1696
|
+
onClick: l,
|
|
1695
1697
|
children: n.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
1696
1698
|
}
|
|
1697
1699
|
)
|
|
@@ -1701,25 +1703,25 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1701
1703
|
]
|
|
1702
1704
|
}
|
|
1703
1705
|
) });
|
|
1704
|
-
},
|
|
1706
|
+
}, Pa = ({
|
|
1705
1707
|
open: e,
|
|
1706
1708
|
onOpenChange: t
|
|
1707
1709
|
}) => {
|
|
1708
1710
|
const [a, r] = F({
|
|
1709
|
-
key: P + pe,
|
|
1710
|
-
initialValue: !1
|
|
1711
|
-
}), [n, i] = F({
|
|
1712
1711
|
key: P + fe,
|
|
1713
1712
|
initialValue: !1
|
|
1714
|
-
}), [
|
|
1713
|
+
}), [n, i] = F({
|
|
1715
1714
|
key: P + be,
|
|
1716
1715
|
initialValue: !1
|
|
1716
|
+
}), [c, l] = F({
|
|
1717
|
+
key: P + ve,
|
|
1718
|
+
initialValue: !1
|
|
1717
1719
|
}), s = (p) => {
|
|
1718
1720
|
r(p);
|
|
1719
1721
|
}, d = (p) => {
|
|
1720
1722
|
i(p);
|
|
1721
1723
|
}, u = (p) => {
|
|
1722
|
-
|
|
1724
|
+
l(p);
|
|
1723
1725
|
};
|
|
1724
1726
|
return /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: "Tags", children: /* @__PURE__ */ m(I, { header: v.TAGS.TITLE, className: "prose-dark dark:prose-lighter", children: [
|
|
1725
1727
|
/* @__PURE__ */ o("p", { children: v.TAGS.DESCRIPTION }),
|
|
@@ -1727,8 +1729,8 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1727
1729
|
ae,
|
|
1728
1730
|
{
|
|
1729
1731
|
noBorder: !0,
|
|
1730
|
-
label: se[
|
|
1731
|
-
name:
|
|
1732
|
+
label: se[ce.SUMMARIZE_ARTICLE].label,
|
|
1733
|
+
name: fe,
|
|
1732
1734
|
onChange: s,
|
|
1733
1735
|
checked: a
|
|
1734
1736
|
}
|
|
@@ -1738,8 +1740,8 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1738
1740
|
{
|
|
1739
1741
|
spacing: { t: 2 },
|
|
1740
1742
|
noBorder: !0,
|
|
1741
|
-
label: se[
|
|
1742
|
-
name:
|
|
1743
|
+
label: se[ce.PROOFREAD_CONTENT].label,
|
|
1744
|
+
name: be,
|
|
1743
1745
|
onChange: d,
|
|
1744
1746
|
checked: n
|
|
1745
1747
|
}
|
|
@@ -1749,33 +1751,33 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1749
1751
|
{
|
|
1750
1752
|
spacing: { t: 2 },
|
|
1751
1753
|
noBorder: !0,
|
|
1752
|
-
label: se[
|
|
1753
|
-
name:
|
|
1754
|
+
label: se[ce.REPHRASE_CONTENT].label,
|
|
1755
|
+
name: ve,
|
|
1754
1756
|
onChange: u,
|
|
1755
|
-
checked:
|
|
1757
|
+
checked: c
|
|
1756
1758
|
}
|
|
1757
1759
|
)
|
|
1758
1760
|
] }) });
|
|
1759
|
-
},
|
|
1760
|
-
const { isAuthenticated: e, user: t, registeringForPasskey: a, authenticationType: r } =
|
|
1761
|
-
key: P +
|
|
1761
|
+
}, Va = () => {
|
|
1762
|
+
const { isAuthenticated: e, user: t, registeringForPasskey: a, authenticationType: r } = $(), [n, i] = F({
|
|
1763
|
+
key: P + ut,
|
|
1762
1764
|
initialValue: !1
|
|
1763
|
-
}), [
|
|
1765
|
+
}), [c, l] = C(!1), [s, d] = C(!1), u = J(), p = (t == null ? void 0 : t.username) || "", y = (k) => {
|
|
1764
1766
|
i(k);
|
|
1765
1767
|
}, h = () => {
|
|
1766
|
-
|
|
1768
|
+
l(!c);
|
|
1767
1769
|
}, g = () => {
|
|
1768
1770
|
d(!s);
|
|
1769
1771
|
};
|
|
1770
1772
|
return e && p ? /* @__PURE__ */ m(S, { children: [
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
+
c && /* @__PURE__ */ o(
|
|
1774
|
+
za,
|
|
1773
1775
|
{
|
|
1774
|
-
open:
|
|
1775
|
-
onOpenChange:
|
|
1776
|
+
open: c,
|
|
1777
|
+
onOpenChange: l
|
|
1776
1778
|
}
|
|
1777
1779
|
),
|
|
1778
|
-
s && /* @__PURE__ */ o(
|
|
1780
|
+
s && /* @__PURE__ */ o(Pa, { open: s, onOpenChange: d }),
|
|
1779
1781
|
/* @__PURE__ */ m(
|
|
1780
1782
|
I,
|
|
1781
1783
|
{
|
|
@@ -1804,7 +1806,7 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1804
1806
|
size: "small",
|
|
1805
1807
|
onClick: h,
|
|
1806
1808
|
labelLeft: "Engine Fine Tuning",
|
|
1807
|
-
children: /* @__PURE__ */ o(
|
|
1809
|
+
children: /* @__PURE__ */ o(Ce, { className: "size-3", monotone: !0 })
|
|
1808
1810
|
}
|
|
1809
1811
|
),
|
|
1810
1812
|
/* @__PURE__ */ o(
|
|
@@ -1814,20 +1816,20 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1814
1816
|
size: "small",
|
|
1815
1817
|
onClick: g,
|
|
1816
1818
|
labelLeft: "Tags",
|
|
1817
|
-
children: /* @__PURE__ */ o(
|
|
1819
|
+
children: /* @__PURE__ */ o(Ce, { className: "size-3", monotone: !0 })
|
|
1818
1820
|
}
|
|
1819
1821
|
)
|
|
1820
1822
|
]
|
|
1821
1823
|
}
|
|
1822
1824
|
),
|
|
1823
|
-
r !==
|
|
1825
|
+
r !== mt.PASSKEY && /* @__PURE__ */ m(
|
|
1824
1826
|
I,
|
|
1825
1827
|
{
|
|
1826
1828
|
spacing: { t: 4 },
|
|
1827
1829
|
className: "prose-dark dark:prose-lighter",
|
|
1828
1830
|
header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ m(me, { columnGap: 3, alignVertical: "center", children: [
|
|
1829
|
-
/* @__PURE__ */ o(
|
|
1830
|
-
/* @__PURE__ */ o(
|
|
1831
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o(ye, { className: "size-8" }) }),
|
|
1832
|
+
/* @__PURE__ */ o(U, { children: /* @__PURE__ */ o("div", { children: v.PREFERENCES.PASSKEY_TITLE }) })
|
|
1831
1833
|
] }) }),
|
|
1832
1834
|
children: [
|
|
1833
1835
|
/* @__PURE__ */ o("p", { children: v.PREFERENCES.PASSKEY_INSTRUCTIONS }),
|
|
@@ -1838,29 +1840,29 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1838
1840
|
spacing: { t: 2 },
|
|
1839
1841
|
onClick: a,
|
|
1840
1842
|
labelLeft: v.PREFERENCES.PASSKEY_BUTTON,
|
|
1841
|
-
children: /* @__PURE__ */ o(
|
|
1843
|
+
children: /* @__PURE__ */ o(ye, { className: "size-5", monotone: !0 })
|
|
1842
1844
|
}
|
|
1843
1845
|
)
|
|
1844
1846
|
]
|
|
1845
1847
|
}
|
|
1846
1848
|
)
|
|
1847
1849
|
] }) : null;
|
|
1848
|
-
},
|
|
1850
|
+
}, Fa = ({
|
|
1849
1851
|
open: e,
|
|
1850
1852
|
onOpenChange: t
|
|
1851
|
-
}) => /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title:
|
|
1852
|
-
const { state: e } = B(ne), [t, a] = C(!1), [r, n] = C(!1), [i,
|
|
1853
|
+
}) => /* @__PURE__ */ o(H, { open: e, onOpenChange: t, title: ht, children: /* @__PURE__ */ o(Va, {}) }), Ka = () => {
|
|
1854
|
+
const { state: e } = B(ne), [t, a] = C(!1), [r, n] = C(!1), [i, c] = C(!1), [l, s] = C(!1), [d, u] = C([]), [p, y] = C(!1), [h, g] = C({
|
|
1853
1855
|
done: !1,
|
|
1854
1856
|
progress: !1,
|
|
1855
1857
|
timestamp: Date.now()
|
|
1856
|
-
}), { logout: k, getAccessToken: w, user: b } =
|
|
1858
|
+
}), { logout: k, getAccessToken: w, user: b } = $(), T = () => {
|
|
1857
1859
|
a(!t);
|
|
1858
1860
|
}, N = () => {
|
|
1859
1861
|
n(!r);
|
|
1860
1862
|
}, E = () => {
|
|
1861
|
-
|
|
1863
|
+
c(!i);
|
|
1862
1864
|
}, G = () => {
|
|
1863
|
-
s(!
|
|
1865
|
+
s(!l);
|
|
1864
1866
|
}, j = async (A) => {
|
|
1865
1867
|
const ee = Date.now();
|
|
1866
1868
|
if (A && !(!b || !e || h.progress || h.done === !0 && ee - h.timestamp < 5e3)) {
|
|
@@ -1895,36 +1897,36 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1895
1897
|
};
|
|
1896
1898
|
return /* @__PURE__ */ m(S, { children: [
|
|
1897
1899
|
/* @__PURE__ */ o(
|
|
1898
|
-
|
|
1900
|
+
Ve,
|
|
1899
1901
|
{
|
|
1900
1902
|
showConfirmation: p,
|
|
1901
1903
|
setShowConfirmation: y,
|
|
1902
1904
|
action: k,
|
|
1903
1905
|
customStrings: {
|
|
1904
|
-
confirmAction:
|
|
1906
|
+
confirmAction: ke,
|
|
1905
1907
|
cancelAction: "Cancel",
|
|
1906
|
-
title:
|
|
1908
|
+
title: ke
|
|
1907
1909
|
},
|
|
1908
1910
|
children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
|
|
1909
1911
|
}
|
|
1910
1912
|
),
|
|
1911
|
-
/* @__PURE__ */ o(
|
|
1912
|
-
/* @__PURE__ */ o(
|
|
1913
|
+
/* @__PURE__ */ o(Fa, { open: t, onOpenChange: a }),
|
|
1914
|
+
/* @__PURE__ */ o(ka, { open: r, onOpenChange: n }),
|
|
1913
1915
|
/* @__PURE__ */ o(
|
|
1914
|
-
|
|
1916
|
+
xa,
|
|
1915
1917
|
{
|
|
1916
1918
|
open: i,
|
|
1917
|
-
onOpenChange:
|
|
1919
|
+
onOpenChange: c,
|
|
1918
1920
|
historyData: d
|
|
1919
1921
|
}
|
|
1920
1922
|
),
|
|
1921
|
-
/* @__PURE__ */ o(
|
|
1923
|
+
/* @__PURE__ */ o(fa, { open: l, onOpenChange: s }),
|
|
1922
1924
|
/* @__PURE__ */ o("div", { className: "relative", children: /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] right-[-7px]", children: /* @__PURE__ */ m(
|
|
1923
|
-
|
|
1925
|
+
De,
|
|
1924
1926
|
{
|
|
1925
1927
|
mode: "dark",
|
|
1926
1928
|
focusMode: "light",
|
|
1927
|
-
trigger: /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(
|
|
1929
|
+
trigger: /* @__PURE__ */ o(V, { children: /* @__PURE__ */ o(Yt, {}) }),
|
|
1928
1930
|
defaultPlacement: "bottom-end",
|
|
1929
1931
|
onOpenChange: j,
|
|
1930
1932
|
children: [
|
|
@@ -1933,15 +1935,15 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1933
1935
|
{
|
|
1934
1936
|
label: "Profile",
|
|
1935
1937
|
onClick: T,
|
|
1936
|
-
icon: /* @__PURE__ */ o(
|
|
1938
|
+
icon: /* @__PURE__ */ o(jt, {})
|
|
1937
1939
|
}
|
|
1938
1940
|
),
|
|
1939
1941
|
/* @__PURE__ */ o(
|
|
1940
1942
|
D,
|
|
1941
1943
|
{
|
|
1942
|
-
label:
|
|
1944
|
+
label: Ae,
|
|
1943
1945
|
onClick: N,
|
|
1944
|
-
icon: /* @__PURE__ */ o(
|
|
1946
|
+
icon: /* @__PURE__ */ o(Ft, {})
|
|
1945
1947
|
}
|
|
1946
1948
|
),
|
|
1947
1949
|
/* @__PURE__ */ o(
|
|
@@ -1957,17 +1959,17 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1957
1959
|
{
|
|
1958
1960
|
label: "About",
|
|
1959
1961
|
onClick: G,
|
|
1960
|
-
icon: /* @__PURE__ */ o(
|
|
1962
|
+
icon: /* @__PURE__ */ o(Gt, {})
|
|
1961
1963
|
}
|
|
1962
1964
|
),
|
|
1963
1965
|
e && e.id && !e.isComponent && /* @__PURE__ */ m(S, { children: [
|
|
1964
|
-
/* @__PURE__ */ o(
|
|
1966
|
+
/* @__PURE__ */ o(Kt, {}),
|
|
1965
1967
|
/* @__PURE__ */ o(
|
|
1966
1968
|
D,
|
|
1967
1969
|
{
|
|
1968
1970
|
label: "Log out",
|
|
1969
1971
|
onClick: Q,
|
|
1970
|
-
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(
|
|
1972
|
+
icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(Vt, { monotone: !0 }) })
|
|
1971
1973
|
}
|
|
1972
1974
|
)
|
|
1973
1975
|
] })
|
|
@@ -1977,5 +1979,5 @@ const xa = "av-toggle", Ia = (e) => {
|
|
|
1977
1979
|
] });
|
|
1978
1980
|
};
|
|
1979
1981
|
export {
|
|
1980
|
-
|
|
1982
|
+
Ka as default
|
|
1981
1983
|
};
|