@versini/sassysaint 5.5.18 → 5.5.20
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.oZoXeHpk.js → App.BCrssLN1.js} +443 -424
- package/dist/chunks/{HeaderToolbar.BS7wgkaB.js → HeaderToolbar.Dcsv3jhf.js} +500 -457
- package/dist/chunks/{MarkdownWithExtra.D6_F01Wo.js → MarkdownWithExtra.Dx_iSGfx.js} +283 -276
- package/dist/chunks/{MessageAssistant.D9gVxi35.js → MessageAssistant.PRne9DXL.js} +3 -3
- package/dist/chunks/{index.Dc-g6Ljy.js → index.D4jSn1Cz.js} +249 -235
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as v, jsx as l, Fragment as Y } from "react/jsx-runtime";
|
|
2
|
-
import { g as
|
|
2
|
+
import { g as ge, ACTION_RESTORE as At, ACTION_MESSAGE as q, ROLE_ASSISTANT as K, ACTION_RESET as qe, ACTION_MODEL as Ke, ACTION_ENGINE as Je, ACTION_STREAMING as Qe, ACTION_SORT as Lt, ACTION_SEARCH as Mt, ACTION_SET_PROMPTS as Xe, ACTION_RESET_PROMPTS as Ye, ACTION_TOGGLE_PROMPT as Ze, DEFAULT_AI_ENGINE as U, P as et, un as Z, ROLE_SYSTEM as zt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_PROMPT as Ae, TYPE_QUESTION as Ut, C as tt, SEND as Pt, ERROR_MESSAGE as Dt, ROLE_USER as le, L as Vt, j as Ht, isLastMessageFromRole as Ft, getMessageContaintWrapperClass as Gt, Logo as Wt, getMainPaddingClass as Le, r as jt, LOCAL_STORAGE_PREFIX as Me, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Kt } from "./index.D4jSn1Cz.js";
|
|
3
3
|
import s from "clsx";
|
|
4
|
-
import I, { useRef as k, useEffect as x, useCallback as
|
|
4
|
+
import I, { useRef as k, useEffect as x, useCallback as P, useSyncExternalStore as Jt, useState as S, useMemo as pe, useContext as $, useLayoutEffect as V, useId as Qt, useReducer as Q, lazy as rt, Suspense as ce } from "react";
|
|
5
5
|
const Xt = ({
|
|
6
6
|
className: e,
|
|
7
7
|
viewBox: t,
|
|
@@ -9,7 +9,7 @@ const Xt = ({
|
|
|
9
9
|
monotone: a,
|
|
10
10
|
...o
|
|
11
11
|
}) => /* @__PURE__ */ v(
|
|
12
|
-
|
|
12
|
+
ge,
|
|
13
13
|
{
|
|
14
14
|
defaultViewBox: "0 0 448 512",
|
|
15
15
|
size: "size-5",
|
|
@@ -18,14 +18,14 @@ const Xt = ({
|
|
|
18
18
|
title: r || "Add",
|
|
19
19
|
...o,
|
|
20
20
|
children: [
|
|
21
|
+
/* @__PURE__ */ l("path", { className: "fa-secondary", opacity: a ? "1" : "0.4", d: "" }),
|
|
21
22
|
/* @__PURE__ */ l(
|
|
22
23
|
"path",
|
|
23
24
|
{
|
|
24
|
-
|
|
25
|
-
d: "
|
|
25
|
+
className: "fa-primary",
|
|
26
|
+
d: "M248 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 160L40 232c-13.3 0-24 10.7-24 24s10.7 24 24 24l160 0 0 160c0 13.3 10.7 24 24 24s24-10.7 24-24l0-160 160 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-160 0 0-160z"
|
|
26
27
|
}
|
|
27
|
-
)
|
|
28
|
-
/* @__PURE__ */ l("path", { d: "" })
|
|
28
|
+
)
|
|
29
29
|
]
|
|
30
30
|
}
|
|
31
31
|
), Yt = ({
|
|
@@ -35,7 +35,7 @@ const Xt = ({
|
|
|
35
35
|
monotone: a,
|
|
36
36
|
...o
|
|
37
37
|
}) => /* @__PURE__ */ l(
|
|
38
|
-
|
|
38
|
+
ge,
|
|
39
39
|
{
|
|
40
40
|
defaultViewBox: "0 0 384 512",
|
|
41
41
|
size: "size-5",
|
|
@@ -43,7 +43,7 @@ const Xt = ({
|
|
|
43
43
|
className: e,
|
|
44
44
|
title: r || "Close",
|
|
45
45
|
...o,
|
|
46
|
-
children: /* @__PURE__ */ l("path", { d: "
|
|
46
|
+
children: /* @__PURE__ */ l("path", { d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z" })
|
|
47
47
|
}
|
|
48
48
|
), Zt = ({
|
|
49
49
|
className: e,
|
|
@@ -51,8 +51,8 @@ const Xt = ({
|
|
|
51
51
|
title: r,
|
|
52
52
|
monotone: a,
|
|
53
53
|
...o
|
|
54
|
-
}) => /* @__PURE__ */
|
|
55
|
-
|
|
54
|
+
}) => /* @__PURE__ */ l(
|
|
55
|
+
ge,
|
|
56
56
|
{
|
|
57
57
|
defaultViewBox: "0 0 384 512",
|
|
58
58
|
size: "size-5",
|
|
@@ -60,16 +60,7 @@ const Xt = ({
|
|
|
60
60
|
className: e,
|
|
61
61
|
title: r || "Down",
|
|
62
62
|
...o,
|
|
63
|
-
children:
|
|
64
|
-
/* @__PURE__ */ l(
|
|
65
|
-
"path",
|
|
66
|
-
{
|
|
67
|
-
opacity: a ? "1" : "0.4",
|
|
68
|
-
d: "M160 370.7V64c0-17.7 14.3-32 32-32s32 14.3 32 32V370.7l-32 32-32-32z"
|
|
69
|
-
}
|
|
70
|
-
),
|
|
71
|
-
/* @__PURE__ */ l("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
|
|
72
|
-
]
|
|
63
|
+
children: /* @__PURE__ */ l("path", { d: "M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z" })
|
|
73
64
|
}
|
|
74
65
|
);
|
|
75
66
|
/*!
|
|
@@ -96,7 +87,7 @@ const er = "av-header", tr = ({
|
|
|
96
87
|
noMargin: c = !1,
|
|
97
88
|
noPadding: d = !1
|
|
98
89
|
}) => {
|
|
99
|
-
const
|
|
90
|
+
const m = s(
|
|
100
91
|
er,
|
|
101
92
|
{
|
|
102
93
|
"border-border-accent": a === "dark" && !r && !o && !i,
|
|
@@ -117,7 +108,7 @@ const er = "av-header", tr = ({
|
|
|
117
108
|
"p-2": !d,
|
|
118
109
|
"flex flex-col w-full md:mx-auto md:max-w-4xl": !r
|
|
119
110
|
});
|
|
120
|
-
return /* @__PURE__ */ l("header", { className:
|
|
111
|
+
return /* @__PURE__ */ l("header", { className: m, children: /* @__PURE__ */ l("div", { className: u, children: e }) });
|
|
121
112
|
};
|
|
122
113
|
function rr(e) {
|
|
123
114
|
const t = e.toLowerCase().split("+").map((n) => n.trim()), r = {
|
|
@@ -133,15 +124,15 @@ function rr(e) {
|
|
|
133
124
|
};
|
|
134
125
|
}
|
|
135
126
|
function ar(e, t) {
|
|
136
|
-
const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey:
|
|
127
|
+
const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey: m, metaKey: u, shiftKey: h, key: g } = t;
|
|
137
128
|
if (r !== d)
|
|
138
129
|
return !1;
|
|
139
130
|
if (n) {
|
|
140
|
-
if (!
|
|
131
|
+
if (!m && !u)
|
|
141
132
|
return !1;
|
|
142
|
-
} else if (a !==
|
|
133
|
+
} else if (a !== m || o !== u)
|
|
143
134
|
return !1;
|
|
144
|
-
return i !== h ? !1 : !!(c && (
|
|
135
|
+
return i !== h ? !1 : !!(c && (g.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
|
|
145
136
|
}
|
|
146
137
|
function or(e) {
|
|
147
138
|
return (t) => ar(rr(e), t);
|
|
@@ -158,12 +149,12 @@ function sr() {
|
|
|
158
149
|
const e = k(!1);
|
|
159
150
|
return x(() => (e.current = !0, () => {
|
|
160
151
|
e.current = !1;
|
|
161
|
-
}), []),
|
|
152
|
+
}), []), P(() => e.current, []);
|
|
162
153
|
}
|
|
163
154
|
function at(e, t) {
|
|
164
155
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
165
156
|
}
|
|
166
|
-
const
|
|
157
|
+
const ze = (e, t) => {
|
|
167
158
|
const r = JSON.stringify(
|
|
168
159
|
typeof t == "function" ? t() : t
|
|
169
160
|
);
|
|
@@ -171,28 +162,28 @@ const Le = (e, t) => {
|
|
|
171
162
|
}, ir = (e) => {
|
|
172
163
|
window.localStorage.removeItem(e), at(e, null);
|
|
173
164
|
}, Oe = (e) => window.localStorage.getItem(e), lr = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
174
|
-
function
|
|
165
|
+
function Ue({
|
|
175
166
|
key: e,
|
|
176
167
|
initialValue: t
|
|
177
168
|
}) {
|
|
178
|
-
const r =
|
|
169
|
+
const r = Jt(lr, () => Oe(e)), a = P(
|
|
179
170
|
(i) => {
|
|
180
171
|
try {
|
|
181
172
|
const c = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
182
|
-
c == null ? ir(e) :
|
|
173
|
+
c == null ? ir(e) : ze(e, c);
|
|
183
174
|
} catch (c) {
|
|
184
175
|
console.warn(c);
|
|
185
176
|
}
|
|
186
177
|
},
|
|
187
178
|
[e, r]
|
|
188
|
-
), o =
|
|
179
|
+
), o = P(() => {
|
|
189
180
|
a(t);
|
|
190
|
-
}, [t, a]), n =
|
|
181
|
+
}, [t, a]), n = P(() => {
|
|
191
182
|
a(null);
|
|
192
183
|
}, [a]);
|
|
193
184
|
return x(() => {
|
|
194
185
|
try {
|
|
195
|
-
Oe(e) === null && typeof t < "u" &&
|
|
186
|
+
Oe(e) === null && typeof t < "u" && ze(e, t);
|
|
196
187
|
} catch (i) {
|
|
197
188
|
console.warn(i);
|
|
198
189
|
}
|
|
@@ -220,22 +211,22 @@ function dr(e) {
|
|
|
220
211
|
}), [i, e]), [a, o];
|
|
221
212
|
}
|
|
222
213
|
/*!
|
|
223
|
-
@versini/ui-table v3.0.
|
|
214
|
+
@versini/ui-table v3.0.4
|
|
224
215
|
© 2025 gizmette.com
|
|
225
216
|
*/
|
|
226
217
|
try {
|
|
227
218
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
228
|
-
version: "3.0.
|
|
229
|
-
buildTime: "01/04/2025
|
|
219
|
+
version: "3.0.4",
|
|
220
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
230
221
|
homepage: "https://github.com/aversini/ui-components",
|
|
231
222
|
license: "MIT"
|
|
232
223
|
});
|
|
233
224
|
} catch {
|
|
234
225
|
}
|
|
235
|
-
const ee = "thead", be = "tfoot",
|
|
226
|
+
const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
236
227
|
ASC: "asc",
|
|
237
228
|
DESC: "desc"
|
|
238
|
-
},
|
|
229
|
+
}, mr = ({
|
|
239
230
|
mode: e,
|
|
240
231
|
className: t,
|
|
241
232
|
wrapperClassName: r,
|
|
@@ -283,7 +274,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
283
274
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
|
|
284
275
|
},
|
|
285
276
|
e
|
|
286
|
-
),
|
|
277
|
+
), gr = ({
|
|
287
278
|
className: e,
|
|
288
279
|
stickyFooter: t,
|
|
289
280
|
mode: r
|
|
@@ -312,13 +303,13 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
312
303
|
"border-b last:border-0",
|
|
313
304
|
{
|
|
314
305
|
"border-table-dark": e === "dark" || e === "system",
|
|
315
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": r ===
|
|
306
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": r === H && e === "dark",
|
|
316
307
|
"border-table-light": e === "light" || e === "alt-system",
|
|
317
|
-
"odd:bg-table-light-odd even:bg-table-light-even": r ===
|
|
308
|
+
"odd:bg-table-light-odd even:bg-table-light-even": r === H && e === "light",
|
|
318
309
|
"dark:border-table-light": e === "system",
|
|
319
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r ===
|
|
310
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r === H && e === "system",
|
|
320
311
|
"dark:border-table-dark": e === "alt-system",
|
|
321
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r ===
|
|
312
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === H && e === "alt-system"
|
|
322
313
|
},
|
|
323
314
|
t
|
|
324
315
|
), pr = ({
|
|
@@ -340,14 +331,14 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
340
331
|
"dark:text-copy-dark": a === "system",
|
|
341
332
|
"dark:text-copy-light": a === "alt-system",
|
|
342
333
|
"px-4 py-3": !r && (e === ee || e === be),
|
|
343
|
-
"p-4": !r && e ===
|
|
334
|
+
"p-4": !r && e === H,
|
|
344
335
|
"px-2 py-1.5": r
|
|
345
336
|
},
|
|
346
337
|
t
|
|
347
338
|
)
|
|
348
339
|
}), br = ({
|
|
349
340
|
buttonClassName: e
|
|
350
|
-
}) => s("rounded-none text-sm", e),
|
|
341
|
+
}) => s("rounded-none text-sm", e), Pe = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
|
|
351
342
|
type: e,
|
|
352
343
|
size: t,
|
|
353
344
|
labelRight: r,
|
|
@@ -399,7 +390,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
399
390
|
[i]: t === "large" && (r || a)
|
|
400
391
|
});
|
|
401
392
|
}
|
|
402
|
-
},
|
|
393
|
+
}, kr = ({
|
|
403
394
|
mode: e,
|
|
404
395
|
noBackground: t,
|
|
405
396
|
noTruncate: r,
|
|
@@ -435,7 +426,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
435
426
|
return s("not-prose text-copy-lighter", {
|
|
436
427
|
truncate: !r
|
|
437
428
|
});
|
|
438
|
-
},
|
|
429
|
+
}, vr = ({
|
|
439
430
|
mode: e,
|
|
440
431
|
noBackground: t,
|
|
441
432
|
variant: r
|
|
@@ -531,7 +522,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
531
522
|
});
|
|
532
523
|
if (r === "selected")
|
|
533
524
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
534
|
-
},
|
|
525
|
+
}, Nr = ({
|
|
535
526
|
mode: e,
|
|
536
527
|
noBorder: t,
|
|
537
528
|
variant: r
|
|
@@ -561,7 +552,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
561
552
|
});
|
|
562
553
|
if (r === "selected")
|
|
563
554
|
return "border border-border-selected-dark";
|
|
564
|
-
},
|
|
555
|
+
}, Tr = ({
|
|
565
556
|
focusMode: e
|
|
566
557
|
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
567
558
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -578,35 +569,35 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
578
569
|
fullWidth: i,
|
|
579
570
|
size: c,
|
|
580
571
|
noBorder: d,
|
|
581
|
-
labelRight:
|
|
572
|
+
labelRight: m,
|
|
582
573
|
labelLeft: u,
|
|
583
574
|
noBackground: h,
|
|
584
|
-
variant:
|
|
575
|
+
variant: g,
|
|
585
576
|
noTruncate: p,
|
|
586
577
|
align: b,
|
|
587
578
|
radius: f
|
|
588
|
-
}) => (
|
|
589
|
-
|
|
590
|
-
|
|
579
|
+
}) => (g || (g = "primary"), r ? s(Pe, t) : s(
|
|
580
|
+
Pe,
|
|
581
|
+
kr({
|
|
591
582
|
mode: a,
|
|
592
|
-
variant:
|
|
583
|
+
variant: g,
|
|
593
584
|
noBackground: h,
|
|
594
585
|
noTruncate: p
|
|
595
586
|
}),
|
|
596
|
-
|
|
587
|
+
vr({ mode: a, noBackground: h, variant: g }),
|
|
597
588
|
xr({ radius: f }),
|
|
598
589
|
yr({
|
|
599
590
|
type: e,
|
|
600
591
|
size: c,
|
|
601
|
-
labelRight:
|
|
592
|
+
labelRight: m,
|
|
602
593
|
labelLeft: u,
|
|
603
594
|
align: b
|
|
604
595
|
}),
|
|
605
|
-
fr({ type: e, size: c, labelRight:
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
_r({ mode: a, variant:
|
|
609
|
-
wr({ mode: a, variant:
|
|
596
|
+
fr({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
597
|
+
Nr({ mode: a, variant: g, noBorder: d }),
|
|
598
|
+
Tr({ focusMode: o }),
|
|
599
|
+
_r({ mode: a, variant: g, disabled: n }),
|
|
600
|
+
wr({ mode: a, variant: g, disabled: n }),
|
|
610
601
|
{
|
|
611
602
|
"w-full": i,
|
|
612
603
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -630,13 +621,13 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
630
621
|
});
|
|
631
622
|
nt.displayName = "BaseButton";
|
|
632
623
|
/*!
|
|
633
|
-
@versini/ui-button v4.0.
|
|
624
|
+
@versini/ui-button v4.0.3
|
|
634
625
|
© 2025 gizmette.com
|
|
635
626
|
*/
|
|
636
627
|
try {
|
|
637
628
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
638
|
-
version: "4.0.
|
|
639
|
-
buildTime: "01/04/2025
|
|
629
|
+
version: "4.0.3",
|
|
630
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
640
631
|
homepage: "https://github.com/aversini/ui-components",
|
|
641
632
|
license: "MIT"
|
|
642
633
|
});
|
|
@@ -653,17 +644,17 @@ const st = I.forwardRef(
|
|
|
653
644
|
type: i = "button",
|
|
654
645
|
raw: c = !1,
|
|
655
646
|
noBorder: d = !1,
|
|
656
|
-
"aria-label":
|
|
647
|
+
"aria-label": m,
|
|
657
648
|
label: u,
|
|
658
649
|
size: h = "medium",
|
|
659
|
-
labelRight:
|
|
650
|
+
labelRight: g,
|
|
660
651
|
labelLeft: p,
|
|
661
652
|
noBackground: b = !1,
|
|
662
653
|
align: f = "center",
|
|
663
654
|
active: y = !1,
|
|
664
655
|
radius: _ = "large",
|
|
665
|
-
...
|
|
666
|
-
},
|
|
656
|
+
...N
|
|
657
|
+
}, T) => {
|
|
667
658
|
const R = Er({
|
|
668
659
|
type: ye,
|
|
669
660
|
mode: r,
|
|
@@ -674,7 +665,7 @@ const st = I.forwardRef(
|
|
|
674
665
|
className: n,
|
|
675
666
|
noBorder: d,
|
|
676
667
|
size: h,
|
|
677
|
-
labelRight:
|
|
668
|
+
labelRight: g,
|
|
678
669
|
labelLeft: p,
|
|
679
670
|
noBackground: b,
|
|
680
671
|
align: f,
|
|
@@ -704,16 +695,16 @@ const st = I.forwardRef(
|
|
|
704
695
|
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
705
696
|
nt,
|
|
706
697
|
{
|
|
707
|
-
ref:
|
|
698
|
+
ref: T,
|
|
708
699
|
className: R,
|
|
709
700
|
disabled: t,
|
|
710
701
|
type: i,
|
|
711
|
-
"aria-label":
|
|
712
|
-
...
|
|
702
|
+
"aria-label": m || u,
|
|
703
|
+
...N,
|
|
713
704
|
children: [
|
|
714
705
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
715
706
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
716
|
-
|
|
707
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
717
708
|
]
|
|
718
709
|
}
|
|
719
710
|
) });
|
|
@@ -731,13 +722,13 @@ const fe = ({
|
|
|
731
722
|
semantic: c = !1,
|
|
732
723
|
...d
|
|
733
724
|
}) => {
|
|
734
|
-
const
|
|
725
|
+
const m = s(n, a);
|
|
735
726
|
return /* @__PURE__ */ v(Y, { children: [
|
|
736
727
|
/* @__PURE__ */ l(
|
|
737
728
|
"svg",
|
|
738
729
|
{
|
|
739
730
|
xmlns: "http://www.w3.org/2000/svg",
|
|
740
|
-
className:
|
|
731
|
+
className: m,
|
|
741
732
|
viewBox: r || o,
|
|
742
733
|
fill: t || "currentColor",
|
|
743
734
|
role: "img",
|
|
@@ -757,7 +748,7 @@ const fe = ({
|
|
|
757
748
|
try {
|
|
758
749
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
759
750
|
version: "4.0.0",
|
|
760
|
-
buildTime: "01/04/2025
|
|
751
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
761
752
|
homepage: "https://github.com/aversini/ui-components",
|
|
762
753
|
license: "MIT"
|
|
763
754
|
});
|
|
@@ -782,11 +773,18 @@ const Cr = ({
|
|
|
782
773
|
/* @__PURE__ */ l(
|
|
783
774
|
"path",
|
|
784
775
|
{
|
|
776
|
+
className: "fa-secondary",
|
|
785
777
|
opacity: a ? "1" : "0.4",
|
|
786
|
-
d: "
|
|
778
|
+
d: "M297.4 137.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L384 141.3 384 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0c6.2-6.2 9.4-14.4 9.4-22.6s-3.1-16.4-9.4-22.6l-96-96C432.4 35.1 424.2 32 416 32s-16.4 3.1-22.6 9.4l-96 96z"
|
|
787
779
|
}
|
|
788
780
|
),
|
|
789
|
-
/* @__PURE__ */ l(
|
|
781
|
+
/* @__PURE__ */ l(
|
|
782
|
+
"path",
|
|
783
|
+
{
|
|
784
|
+
className: "fa-primary",
|
|
785
|
+
d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7 192 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L86.6 329.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z"
|
|
786
|
+
}
|
|
787
|
+
)
|
|
790
788
|
]
|
|
791
789
|
}
|
|
792
790
|
), Ir = ({
|
|
@@ -808,11 +806,18 @@ const Cr = ({
|
|
|
808
806
|
/* @__PURE__ */ l(
|
|
809
807
|
"path",
|
|
810
808
|
{
|
|
809
|
+
className: "fa-secondary",
|
|
811
810
|
opacity: a ? "1" : "0.4",
|
|
812
|
-
d: "M288
|
|
811
|
+
d: "M288 64c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32z"
|
|
813
812
|
}
|
|
814
813
|
),
|
|
815
|
-
/* @__PURE__ */ l(
|
|
814
|
+
/* @__PURE__ */ l(
|
|
815
|
+
"path",
|
|
816
|
+
{
|
|
817
|
+
className: "fa-primary",
|
|
818
|
+
d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7 160 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 301.7L63.6 330.4c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96C110.5 476.2 119 480 128 480z"
|
|
819
|
+
}
|
|
820
|
+
)
|
|
816
821
|
]
|
|
817
822
|
}
|
|
818
823
|
), Rr = ({
|
|
@@ -834,28 +839,35 @@ const Cr = ({
|
|
|
834
839
|
/* @__PURE__ */ l(
|
|
835
840
|
"path",
|
|
836
841
|
{
|
|
842
|
+
className: "fa-secondary",
|
|
837
843
|
opacity: a ? "1" : "0.4",
|
|
838
|
-
d: "M288 64c0-17.7 14.3-32 32-
|
|
844
|
+
d: "M288 64c0-17.7 14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0c-17.7 0-32-14.3-32-32zm0 128c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32z"
|
|
839
845
|
}
|
|
840
846
|
),
|
|
841
|
-
/* @__PURE__ */ l(
|
|
847
|
+
/* @__PURE__ */ l(
|
|
848
|
+
"path",
|
|
849
|
+
{
|
|
850
|
+
className: "fa-primary",
|
|
851
|
+
d: "M128 32c9 0 17.5 3.8 23.6 10.4l88 96c11.9 13 11.1 33.3-2 45.2s-33.3 11.1-45.2-2L160 146.3 160 448c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-301.7L63.6 181.6c-11.9 13-32.2 13.9-45.2 2s-13.9-32.2-2-45.2l88-96C110.5 35.8 119 32 128 32z"
|
|
852
|
+
}
|
|
853
|
+
)
|
|
842
854
|
]
|
|
843
855
|
}
|
|
844
856
|
);
|
|
845
857
|
/*!
|
|
846
|
-
@versini/ui-icons v4.
|
|
858
|
+
@versini/ui-icons v4.2.0
|
|
847
859
|
© 2025 gizmette.com
|
|
848
860
|
*/
|
|
849
861
|
try {
|
|
850
862
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
851
|
-
version: "4.
|
|
852
|
-
buildTime: "01/04/2025
|
|
863
|
+
version: "4.2.0",
|
|
864
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
853
865
|
homepage: "https://github.com/aversini/ui-components",
|
|
854
866
|
license: "MIT"
|
|
855
867
|
});
|
|
856
868
|
} catch {
|
|
857
869
|
}
|
|
858
|
-
const
|
|
870
|
+
const F = I.createContext({
|
|
859
871
|
mode: "light",
|
|
860
872
|
cellWrapper: "thead",
|
|
861
873
|
stickyHeader: !1,
|
|
@@ -871,20 +883,20 @@ const P = I.createContext({
|
|
|
871
883
|
wrapperClassName: i,
|
|
872
884
|
maxHeight: c,
|
|
873
885
|
stickyHeader: d,
|
|
874
|
-
stickyFooter:
|
|
886
|
+
stickyFooter: m,
|
|
875
887
|
...u
|
|
876
888
|
}) => {
|
|
877
|
-
const h =
|
|
889
|
+
const h = mr({
|
|
878
890
|
mode: t,
|
|
879
891
|
className: n,
|
|
880
892
|
wrapperClassName: i,
|
|
881
893
|
stickyHeader: d,
|
|
882
|
-
stickyFooter:
|
|
894
|
+
stickyFooter: m
|
|
883
895
|
});
|
|
884
896
|
return /* @__PURE__ */ l(
|
|
885
|
-
|
|
897
|
+
F.Provider,
|
|
886
898
|
{
|
|
887
|
-
value: { mode: t, stickyHeader: d, stickyFooter:
|
|
899
|
+
value: { mode: t, stickyHeader: d, stickyFooter: m, compact: a },
|
|
888
900
|
children: /* @__PURE__ */ l(
|
|
889
901
|
"div",
|
|
890
902
|
{
|
|
@@ -905,7 +917,7 @@ const P = I.createContext({
|
|
|
905
917
|
className: t,
|
|
906
918
|
...r
|
|
907
919
|
}) => {
|
|
908
|
-
const a =
|
|
920
|
+
const a = $(F);
|
|
909
921
|
a.cellWrapper = ee;
|
|
910
922
|
const o = ur({
|
|
911
923
|
className: t,
|
|
@@ -918,36 +930,36 @@ const P = I.createContext({
|
|
|
918
930
|
className: t,
|
|
919
931
|
...r
|
|
920
932
|
}) => {
|
|
921
|
-
const a =
|
|
933
|
+
const a = $(F);
|
|
922
934
|
a.cellWrapper = be;
|
|
923
|
-
const o =
|
|
935
|
+
const o = gr({
|
|
924
936
|
className: t,
|
|
925
937
|
mode: a.mode,
|
|
926
938
|
stickyFooter: a.stickyFooter
|
|
927
939
|
});
|
|
928
940
|
return /* @__PURE__ */ l("tfoot", { className: o, ...r, children: e });
|
|
929
941
|
}, ao = ({ children: e, ...t }) => {
|
|
930
|
-
const r =
|
|
931
|
-
return r.cellWrapper =
|
|
942
|
+
const r = $(F);
|
|
943
|
+
return r.cellWrapper = H, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
932
944
|
}, oo = ({
|
|
933
945
|
children: e,
|
|
934
946
|
className: t,
|
|
935
947
|
...r
|
|
936
948
|
}) => {
|
|
937
|
-
const a =
|
|
949
|
+
const a = $(F), o = hr({
|
|
938
950
|
mode: a.mode,
|
|
939
951
|
cellWrapper: a.cellWrapper,
|
|
940
952
|
className: t
|
|
941
953
|
});
|
|
942
954
|
return /* @__PURE__ */ l("tr", { className: o, ...r, children: e });
|
|
943
|
-
},
|
|
955
|
+
}, $r = ({
|
|
944
956
|
children: e,
|
|
945
957
|
component: t,
|
|
946
958
|
className: r,
|
|
947
959
|
align: a,
|
|
948
960
|
...o
|
|
949
961
|
}) => {
|
|
950
|
-
const n =
|
|
962
|
+
const n = $(F), i = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
|
|
951
963
|
cellWrapper: n.cellWrapper,
|
|
952
964
|
className: r,
|
|
953
965
|
mode: n.mode,
|
|
@@ -965,24 +977,24 @@ const P = I.createContext({
|
|
|
965
977
|
mode: i = "alt-system",
|
|
966
978
|
onClick: c,
|
|
967
979
|
sortDirection: d,
|
|
968
|
-
sortedCell:
|
|
980
|
+
sortedCell: m,
|
|
969
981
|
cellId: u,
|
|
970
982
|
...h
|
|
971
983
|
}) => {
|
|
972
|
-
const
|
|
984
|
+
const g = br({ buttonClassName: r });
|
|
973
985
|
return /* @__PURE__ */ l(
|
|
974
|
-
|
|
986
|
+
$r,
|
|
975
987
|
{
|
|
976
988
|
component: o,
|
|
977
989
|
className: a,
|
|
978
990
|
role: "columnheader",
|
|
979
|
-
"aria-sort": d === j.ASC &&
|
|
991
|
+
"aria-sort": d === j.ASC && m === u ? "ascending" : d === j.DESC && m === u ? "descending" : "other",
|
|
980
992
|
...h,
|
|
981
993
|
children: /* @__PURE__ */ l(
|
|
982
994
|
st,
|
|
983
995
|
{
|
|
984
|
-
active:
|
|
985
|
-
className:
|
|
996
|
+
active: m === u,
|
|
997
|
+
className: g,
|
|
986
998
|
onClick: c,
|
|
987
999
|
align: e,
|
|
988
1000
|
noBorder: !0,
|
|
@@ -990,7 +1002,7 @@ const P = I.createContext({
|
|
|
990
1002
|
mode: i,
|
|
991
1003
|
fullWidth: !0,
|
|
992
1004
|
labelRight: t,
|
|
993
|
-
children: d === j.ASC &&
|
|
1005
|
+
children: d === j.ASC && m === u ? /* @__PURE__ */ l(Rr, { className: "size-4", monotone: !0 }) : d === j.DESC && m === u ? /* @__PURE__ */ l(Ir, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Cr, { className: "size-4", monotone: !0 })
|
|
994
1006
|
}
|
|
995
1007
|
)
|
|
996
1008
|
}
|
|
@@ -998,29 +1010,29 @@ const P = I.createContext({
|
|
|
998
1010
|
}, w = [];
|
|
999
1011
|
for (let e = 0; e < 256; ++e)
|
|
1000
1012
|
w.push((e + 256).toString(16).slice(1));
|
|
1001
|
-
function
|
|
1013
|
+
function Br(e, t = 0) {
|
|
1002
1014
|
return (w[e[t + 0]] + w[e[t + 1]] + w[e[t + 2]] + w[e[t + 3]] + "-" + w[e[t + 4]] + w[e[t + 5]] + "-" + w[e[t + 6]] + w[e[t + 7]] + "-" + w[e[t + 8]] + w[e[t + 9]] + "-" + w[e[t + 10]] + w[e[t + 11]] + w[e[t + 12]] + w[e[t + 13]] + w[e[t + 14]] + w[e[t + 15]]).toLowerCase();
|
|
1003
1015
|
}
|
|
1004
1016
|
let se;
|
|
1005
|
-
const
|
|
1006
|
-
function
|
|
1017
|
+
const Ar = new Uint8Array(16);
|
|
1018
|
+
function Lr() {
|
|
1007
1019
|
if (!se) {
|
|
1008
1020
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1009
1021
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1010
1022
|
se = crypto.getRandomValues.bind(crypto);
|
|
1011
1023
|
}
|
|
1012
|
-
return se(
|
|
1024
|
+
return se(Ar);
|
|
1013
1025
|
}
|
|
1014
|
-
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
1015
|
-
function
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1026
|
+
const Mr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), De = { randomUUID: Mr };
|
|
1027
|
+
function ke(e, t, r) {
|
|
1028
|
+
if (De.randomUUID && !t && !e)
|
|
1029
|
+
return De.randomUUID();
|
|
1018
1030
|
e = e || {};
|
|
1019
|
-
const a = e.random || (e.rng ||
|
|
1020
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1031
|
+
const a = e.random || (e.rng || Lr)();
|
|
1032
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Br(a);
|
|
1021
1033
|
}
|
|
1022
|
-
const
|
|
1023
|
-
if ((t == null ? void 0 : t.type) ===
|
|
1034
|
+
const zr = (e, t) => {
|
|
1035
|
+
if ((t == null ? void 0 : t.type) === At) {
|
|
1024
1036
|
const r = t.payload.messages.map((a) => ({
|
|
1025
1037
|
message: {
|
|
1026
1038
|
role: a.role,
|
|
@@ -1036,7 +1048,7 @@ const Lr = (e, t) => {
|
|
|
1036
1048
|
isComponent: e.isComponent,
|
|
1037
1049
|
messages: r,
|
|
1038
1050
|
engine: e.engine,
|
|
1039
|
-
|
|
1051
|
+
prompts: e.prompts
|
|
1040
1052
|
};
|
|
1041
1053
|
}
|
|
1042
1054
|
if ((t == null ? void 0 : t.type) === q) {
|
|
@@ -1049,12 +1061,12 @@ const Lr = (e, t) => {
|
|
|
1049
1061
|
processingTime: n,
|
|
1050
1062
|
messageId: i
|
|
1051
1063
|
};
|
|
1052
|
-
if (r ===
|
|
1064
|
+
if (r === K) {
|
|
1053
1065
|
const d = e.messages.findIndex(
|
|
1054
|
-
(
|
|
1066
|
+
(m) => m.message.messageId === i
|
|
1055
1067
|
);
|
|
1056
1068
|
if (d !== -1) {
|
|
1057
|
-
const
|
|
1069
|
+
const m = e.messages.map((u, h) => h === d ? {
|
|
1058
1070
|
message: {
|
|
1059
1071
|
...u.message,
|
|
1060
1072
|
content: `${u.message.content}${a}`,
|
|
@@ -1067,9 +1079,9 @@ const Lr = (e, t) => {
|
|
|
1067
1079
|
model: e.model,
|
|
1068
1080
|
usage: e.usage,
|
|
1069
1081
|
isComponent: e.isComponent,
|
|
1070
|
-
messages:
|
|
1082
|
+
messages: m,
|
|
1071
1083
|
engine: e.engine,
|
|
1072
|
-
|
|
1084
|
+
prompts: e.prompts
|
|
1073
1085
|
};
|
|
1074
1086
|
}
|
|
1075
1087
|
}
|
|
@@ -1077,7 +1089,7 @@ const Lr = (e, t) => {
|
|
|
1077
1089
|
id: e.id,
|
|
1078
1090
|
model: e.model,
|
|
1079
1091
|
engine: e.engine,
|
|
1080
|
-
|
|
1092
|
+
prompts: e.prompts,
|
|
1081
1093
|
usage: e.usage,
|
|
1082
1094
|
isComponent: e.isComponent,
|
|
1083
1095
|
messages: [
|
|
@@ -1090,22 +1102,22 @@ const Lr = (e, t) => {
|
|
|
1090
1102
|
}
|
|
1091
1103
|
}
|
|
1092
1104
|
return (t == null ? void 0 : t.type) === qe ? {
|
|
1093
|
-
id:
|
|
1105
|
+
id: ke(),
|
|
1094
1106
|
model: e.model,
|
|
1095
1107
|
engine: e.engine,
|
|
1096
1108
|
usage: 0,
|
|
1097
1109
|
messages: [],
|
|
1098
1110
|
isComponent: e.isComponent,
|
|
1099
|
-
|
|
1100
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1111
|
+
prompts: e.prompts
|
|
1112
|
+
} : (t == null ? void 0 : t.type) === Ke ? {
|
|
1101
1113
|
id: e.id,
|
|
1102
1114
|
model: t.payload.model,
|
|
1103
1115
|
engine: e.engine,
|
|
1104
|
-
|
|
1116
|
+
prompts: e.prompts,
|
|
1105
1117
|
usage: t.payload.usage,
|
|
1106
1118
|
messages: e.messages,
|
|
1107
1119
|
isComponent: e.isComponent
|
|
1108
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1120
|
+
} : (t == null ? void 0 : t.type) === Je ? {
|
|
1109
1121
|
...e,
|
|
1110
1122
|
engine: t.payload.engine
|
|
1111
1123
|
} : (t == null ? void 0 : t.type) === Qe ? {
|
|
@@ -1120,7 +1132,7 @@ const Lr = (e, t) => {
|
|
|
1120
1132
|
sortedCell: e.sortedCell,
|
|
1121
1133
|
sortDirection: e.sortDirection
|
|
1122
1134
|
};
|
|
1123
|
-
case
|
|
1135
|
+
case Lt:
|
|
1124
1136
|
return {
|
|
1125
1137
|
searchString: e.searchString,
|
|
1126
1138
|
sortedCell: t.payload.sortedCell,
|
|
@@ -1129,27 +1141,27 @@ const Lr = (e, t) => {
|
|
|
1129
1141
|
default:
|
|
1130
1142
|
return e;
|
|
1131
1143
|
}
|
|
1132
|
-
},
|
|
1144
|
+
}, Ur = (e, t) => {
|
|
1133
1145
|
switch (t == null ? void 0 : t.type) {
|
|
1134
1146
|
case Ze:
|
|
1135
1147
|
return {
|
|
1136
|
-
|
|
1137
|
-
|
|
1148
|
+
prompts: e.prompts,
|
|
1149
|
+
prompt: t.payload.prompt
|
|
1138
1150
|
};
|
|
1139
1151
|
case Ye:
|
|
1140
1152
|
return {
|
|
1141
|
-
|
|
1142
|
-
|
|
1153
|
+
prompts: e.prompts,
|
|
1154
|
+
prompt: ""
|
|
1143
1155
|
};
|
|
1144
1156
|
case Xe:
|
|
1145
1157
|
return {
|
|
1146
|
-
|
|
1147
|
-
|
|
1158
|
+
prompts: t.payload.prompts,
|
|
1159
|
+
prompt: ""
|
|
1148
1160
|
};
|
|
1149
1161
|
default:
|
|
1150
1162
|
return e;
|
|
1151
1163
|
}
|
|
1152
|
-
},
|
|
1164
|
+
}, L = {
|
|
1153
1165
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
1154
1166
|
location(latitude: $latitude, longitude: $longitude) {
|
|
1155
1167
|
country
|
|
@@ -1255,38 +1267,38 @@ const Lr = (e, t) => {
|
|
|
1255
1267
|
}`
|
|
1256
1268
|
}, it = {
|
|
1257
1269
|
GET_LOCATION: {
|
|
1258
|
-
schema:
|
|
1270
|
+
schema: L.GET_LOCATION,
|
|
1259
1271
|
method: "location"
|
|
1260
1272
|
},
|
|
1261
1273
|
GET_CHATS: {
|
|
1262
|
-
schema:
|
|
1274
|
+
schema: L.GET_CHATS,
|
|
1263
1275
|
method: "chats"
|
|
1264
1276
|
},
|
|
1265
1277
|
GET_CHATS_STATS: {
|
|
1266
|
-
schema:
|
|
1278
|
+
schema: L.GET_CHATS_STATS,
|
|
1267
1279
|
method: "chatsStats"
|
|
1268
1280
|
},
|
|
1269
1281
|
GET_CHAT: {
|
|
1270
|
-
schema:
|
|
1282
|
+
schema: L.GET_CHAT,
|
|
1271
1283
|
method: "chatById"
|
|
1272
1284
|
},
|
|
1273
1285
|
DELETE_CHAT: {
|
|
1274
|
-
schema:
|
|
1286
|
+
schema: L.DELETE_CHAT,
|
|
1275
1287
|
method: "deleteChat"
|
|
1276
1288
|
},
|
|
1277
1289
|
ABOUT: {
|
|
1278
|
-
schema:
|
|
1290
|
+
schema: L.ABOUT,
|
|
1279
1291
|
method: "about"
|
|
1280
1292
|
},
|
|
1281
1293
|
GET_USER_PREFERENCES: {
|
|
1282
|
-
schema:
|
|
1294
|
+
schema: L.GET_USER_PREFERENCES,
|
|
1283
1295
|
method: "getUserPreferences"
|
|
1284
1296
|
},
|
|
1285
1297
|
SET_USER_PREFERENCES: {
|
|
1286
|
-
schema:
|
|
1298
|
+
schema: L.SET_USER_PREFERENCES,
|
|
1287
1299
|
method: "setUserPreferences"
|
|
1288
1300
|
}
|
|
1289
|
-
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
1301
|
+
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Pr = async ({
|
|
1290
1302
|
query: e,
|
|
1291
1303
|
data: t,
|
|
1292
1304
|
headers: r = {}
|
|
@@ -1309,7 +1321,7 @@ const Lr = (e, t) => {
|
|
|
1309
1321
|
}) => {
|
|
1310
1322
|
const a = t != null && t.data ? t.data(r) : r;
|
|
1311
1323
|
try {
|
|
1312
|
-
const o = `Bearer ${e}`, n = await
|
|
1324
|
+
const o = `Bearer ${e}`, n = await Pr({
|
|
1313
1325
|
headers: {
|
|
1314
1326
|
authorization: o
|
|
1315
1327
|
},
|
|
@@ -1327,7 +1339,7 @@ const Lr = (e, t) => {
|
|
|
1327
1339
|
} catch (o) {
|
|
1328
1340
|
return console.error(o), { status: 500, data: [] };
|
|
1329
1341
|
}
|
|
1330
|
-
},
|
|
1342
|
+
}, Dr = async ({
|
|
1331
1343
|
accessToken: e,
|
|
1332
1344
|
name: t,
|
|
1333
1345
|
data: r,
|
|
@@ -1343,15 +1355,15 @@ const Lr = (e, t) => {
|
|
|
1343
1355
|
},
|
|
1344
1356
|
body: JSON.stringify(r)
|
|
1345
1357
|
});
|
|
1346
|
-
},
|
|
1358
|
+
}, G = I.createContext({
|
|
1347
1359
|
state: {
|
|
1348
1360
|
id: "",
|
|
1349
|
-
model:
|
|
1350
|
-
engine:
|
|
1361
|
+
model: U,
|
|
1362
|
+
engine: U,
|
|
1351
1363
|
usage: 0,
|
|
1352
1364
|
messages: [],
|
|
1353
1365
|
isComponent: !1,
|
|
1354
|
-
|
|
1366
|
+
prompts: []
|
|
1355
1367
|
},
|
|
1356
1368
|
dispatch: () => {
|
|
1357
1369
|
},
|
|
@@ -1359,15 +1371,15 @@ const Lr = (e, t) => {
|
|
|
1359
1371
|
version: "",
|
|
1360
1372
|
models: [],
|
|
1361
1373
|
plugins: [],
|
|
1362
|
-
engine:
|
|
1374
|
+
engine: U,
|
|
1363
1375
|
engines: []
|
|
1364
1376
|
}
|
|
1365
|
-
}),
|
|
1377
|
+
}), Vr = I.createContext({
|
|
1366
1378
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1367
1379
|
dispatch: () => {
|
|
1368
1380
|
}
|
|
1369
|
-
}),
|
|
1370
|
-
state: {
|
|
1381
|
+
}), ve = I.createContext({
|
|
1382
|
+
state: { prompt: "" },
|
|
1371
1383
|
dispatch: () => {
|
|
1372
1384
|
}
|
|
1373
1385
|
});
|
|
@@ -1384,12 +1396,12 @@ try {
|
|
|
1384
1396
|
});
|
|
1385
1397
|
} catch {
|
|
1386
1398
|
}
|
|
1387
|
-
const dt = "av-text-area",
|
|
1399
|
+
const dt = "av-text-area", Hr = "av-text-area-wrapper", ie = "av-text-area-helper-text", Fr = "av-text-area__control--right", Gr = "av-text-area__control--left";
|
|
1388
1400
|
function Wr() {
|
|
1389
1401
|
const e = k(!1);
|
|
1390
1402
|
return x(() => (e.current = !0, () => {
|
|
1391
1403
|
e.current = !1;
|
|
1392
|
-
}), []),
|
|
1404
|
+
}), []), P(() => e.current, []);
|
|
1393
1405
|
}
|
|
1394
1406
|
function jr(e) {
|
|
1395
1407
|
return pe(() => e.every((t) => t == null) ? () => {
|
|
@@ -1409,7 +1421,7 @@ const qr = {
|
|
|
1409
1421
|
bottom: 0,
|
|
1410
1422
|
right: 0
|
|
1411
1423
|
};
|
|
1412
|
-
function
|
|
1424
|
+
function Ve(e) {
|
|
1413
1425
|
const t = Wr(), r = k(0), a = k(null), [o, n] = S(qr), i = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
1414
1426
|
const d = c[0];
|
|
1415
1427
|
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -1420,7 +1432,7 @@ function De(e) {
|
|
|
1420
1432
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
1421
1433
|
}), [i, e]), [a, o];
|
|
1422
1434
|
}
|
|
1423
|
-
function
|
|
1435
|
+
function Kr({
|
|
1424
1436
|
value: e,
|
|
1425
1437
|
defaultValue: t,
|
|
1426
1438
|
finalValue: r,
|
|
@@ -1430,16 +1442,16 @@ function Jr({
|
|
|
1430
1442
|
}) {
|
|
1431
1443
|
const [n, i] = S(!1), [c, d] = S(
|
|
1432
1444
|
t !== void 0 ? t : r
|
|
1433
|
-
),
|
|
1445
|
+
), m = (u) => {
|
|
1434
1446
|
d(u), a == null || a(u);
|
|
1435
1447
|
};
|
|
1436
1448
|
return x(() => {
|
|
1437
1449
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1438
1450
|
(u) => setTimeout(u, o)
|
|
1439
1451
|
), i(!0)))();
|
|
1440
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c,
|
|
1452
|
+
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, m, !1];
|
|
1441
1453
|
}
|
|
1442
|
-
function
|
|
1454
|
+
function Jr(e) {
|
|
1443
1455
|
const t = Qt();
|
|
1444
1456
|
if (!e)
|
|
1445
1457
|
return t;
|
|
@@ -1450,7 +1462,7 @@ function Kr(e) {
|
|
|
1450
1462
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
1451
1463
|
}
|
|
1452
1464
|
}
|
|
1453
|
-
const
|
|
1465
|
+
const mt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
1454
1466
|
alert: null,
|
|
1455
1467
|
alertdialog: null,
|
|
1456
1468
|
log: "polite",
|
|
@@ -1460,7 +1472,7 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1460
1472
|
timer: "assertive"
|
|
1461
1473
|
}, Xr = (e, t) => {
|
|
1462
1474
|
switch (t == null ? void 0 : t.type) {
|
|
1463
|
-
case
|
|
1475
|
+
case mt:
|
|
1464
1476
|
return {
|
|
1465
1477
|
...e,
|
|
1466
1478
|
announcement: t.payload
|
|
@@ -1480,7 +1492,7 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1480
1492
|
t({
|
|
1481
1493
|
type: ut
|
|
1482
1494
|
}), typeof e == "function" && e();
|
|
1483
|
-
},
|
|
1495
|
+
}, He = ({
|
|
1484
1496
|
children: e,
|
|
1485
1497
|
clearAnnouncementDelay: t,
|
|
1486
1498
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -1488,7 +1500,7 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1488
1500
|
dispatch: o
|
|
1489
1501
|
}) => {
|
|
1490
1502
|
clearTimeout(r.current), e !== null && o({
|
|
1491
|
-
type:
|
|
1503
|
+
type: mt,
|
|
1492
1504
|
payload: e
|
|
1493
1505
|
}), t && (r.current = setTimeout(
|
|
1494
1506
|
() => Yr({
|
|
@@ -1506,13 +1518,13 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1506
1518
|
onAnnouncementClear: n,
|
|
1507
1519
|
dispatch: i
|
|
1508
1520
|
}) => {
|
|
1509
|
-
clearTimeout(t.current), r ? t.current = setTimeout(
|
|
1521
|
+
clearTimeout(t.current), r ? t.current = setTimeout(He, r, {
|
|
1510
1522
|
children: e,
|
|
1511
1523
|
clearAnnouncementDelay: a,
|
|
1512
1524
|
clearAnnouncementTimeoutRef: o,
|
|
1513
1525
|
onAnnouncementClear: n,
|
|
1514
1526
|
dispatch: i
|
|
1515
|
-
}) :
|
|
1527
|
+
}) : He({
|
|
1516
1528
|
children: e,
|
|
1517
1529
|
clearAnnouncementDelay: a,
|
|
1518
1530
|
clearAnnouncementTimeoutRef: o,
|
|
@@ -1531,19 +1543,19 @@ function ea({
|
|
|
1531
1543
|
visible: c,
|
|
1532
1544
|
...d
|
|
1533
1545
|
}) {
|
|
1534
|
-
const
|
|
1546
|
+
const m = k(null), u = k(null), [h, g] = Q(Xr, {
|
|
1535
1547
|
announcement: null
|
|
1536
1548
|
});
|
|
1537
1549
|
let p = r;
|
|
1538
1550
|
typeof p > "u" && (p = a ? Qr[a] : "assertive"), x(() => {
|
|
1539
1551
|
Zr({
|
|
1540
|
-
announcementTimeoutRef:
|
|
1552
|
+
announcementTimeoutRef: m,
|
|
1541
1553
|
announcementDelay: o,
|
|
1542
1554
|
children: e,
|
|
1543
1555
|
clearAnnouncementDelay: n,
|
|
1544
1556
|
clearAnnouncementTimeoutRef: u,
|
|
1545
1557
|
onAnnouncementClear: i,
|
|
1546
|
-
dispatch:
|
|
1558
|
+
dispatch: g
|
|
1547
1559
|
});
|
|
1548
1560
|
}, [
|
|
1549
1561
|
e,
|
|
@@ -1674,11 +1686,11 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1674
1686
|
error: i,
|
|
1675
1687
|
mode: c,
|
|
1676
1688
|
leftElement: d,
|
|
1677
|
-
rightElement:
|
|
1689
|
+
rightElement: m
|
|
1678
1690
|
}) => {
|
|
1679
1691
|
const u = r ? e : s(
|
|
1680
1692
|
"relative flex w-full flex-col justify-center",
|
|
1681
|
-
|
|
1693
|
+
Hr,
|
|
1682
1694
|
e
|
|
1683
1695
|
), h = r ? s(t) : s(
|
|
1684
1696
|
dt,
|
|
@@ -1693,23 +1705,23 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1693
1705
|
{
|
|
1694
1706
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1695
1707
|
}
|
|
1696
|
-
),
|
|
1708
|
+
), g = r ? void 0 : "sr-only", p = na({
|
|
1697
1709
|
disabled: o,
|
|
1698
1710
|
raw: r,
|
|
1699
1711
|
error: i,
|
|
1700
1712
|
mode: c,
|
|
1701
|
-
rightElement:
|
|
1713
|
+
rightElement: m,
|
|
1702
1714
|
leftElement: d
|
|
1703
1715
|
}), b = sa({
|
|
1704
1716
|
error: i,
|
|
1705
1717
|
raw: r,
|
|
1706
1718
|
mode: c,
|
|
1707
1719
|
disabled: o
|
|
1708
|
-
}), f = r ? void 0 : s(
|
|
1720
|
+
}), f = r ? void 0 : s(Fr, "absolute"), y = r ? void 0 : s(Gr, "absolute");
|
|
1709
1721
|
return {
|
|
1710
1722
|
wrapper: u,
|
|
1711
1723
|
textArea: h,
|
|
1712
|
-
accessibleLabel:
|
|
1724
|
+
accessibleLabel: g,
|
|
1713
1725
|
visibleLabel: p,
|
|
1714
1726
|
helperText: b,
|
|
1715
1727
|
rightElement: f,
|
|
@@ -1731,7 +1743,7 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1731
1743
|
helperTextOffset: n,
|
|
1732
1744
|
scrollHeight: e
|
|
1733
1745
|
};
|
|
1734
|
-
},
|
|
1746
|
+
}, gt = I.forwardRef(
|
|
1735
1747
|
({
|
|
1736
1748
|
id: e,
|
|
1737
1749
|
name: t,
|
|
@@ -1742,22 +1754,22 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1742
1754
|
textAreaClassName: i,
|
|
1743
1755
|
mode: c = "system",
|
|
1744
1756
|
focusMode: d = "system",
|
|
1745
|
-
value:
|
|
1757
|
+
value: m,
|
|
1746
1758
|
defaultValue: u,
|
|
1747
1759
|
disabled: h = !1,
|
|
1748
|
-
noBorder:
|
|
1760
|
+
noBorder: g = !1,
|
|
1749
1761
|
labelId: p,
|
|
1750
1762
|
helperText: b = "",
|
|
1751
1763
|
helperTextOnFocus: f = !1,
|
|
1752
1764
|
rightElement: y,
|
|
1753
1765
|
leftElement: _,
|
|
1754
|
-
onChange:
|
|
1755
|
-
onFocus:
|
|
1766
|
+
onChange: N,
|
|
1767
|
+
onFocus: T,
|
|
1756
1768
|
onBlur: R,
|
|
1757
1769
|
...E
|
|
1758
1770
|
}, M) => {
|
|
1759
|
-
var
|
|
1760
|
-
const
|
|
1771
|
+
var Te;
|
|
1772
|
+
const B = k(null), xt = jr([M, B]), [_t, J] = Ve(), [wt, D] = Ve(), re = k(80), Ee = k(-25), z = k(null), Se = k(30), ae = k(null), W = Jr({ id: e, prefix: `${dt}-` }), [Ce, Nt] = S(0), [Ie, Tt] = S(0), [Et, Re] = S(
|
|
1761
1773
|
!!(!f && b)
|
|
1762
1774
|
), St = `${t} error, ${b}`, O = ia({
|
|
1763
1775
|
className: n,
|
|
@@ -1766,16 +1778,16 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1766
1778
|
raw: o,
|
|
1767
1779
|
focusMode: d,
|
|
1768
1780
|
disabled: h,
|
|
1769
|
-
noBorder:
|
|
1781
|
+
noBorder: g,
|
|
1770
1782
|
mode: c,
|
|
1771
1783
|
rightElement: !!y,
|
|
1772
1784
|
leftElement: !!_
|
|
1773
|
-
}), [
|
|
1774
|
-
value:
|
|
1785
|
+
}), [A, Ct] = Kr({
|
|
1786
|
+
value: m,
|
|
1775
1787
|
initialControlledDelay: 20,
|
|
1776
1788
|
defaultValue: u,
|
|
1777
1789
|
onChange: (C) => {
|
|
1778
|
-
|
|
1790
|
+
N && N({
|
|
1779
1791
|
target: {
|
|
1780
1792
|
value: C
|
|
1781
1793
|
}
|
|
@@ -1784,44 +1796,44 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1784
1796
|
}), It = (C) => {
|
|
1785
1797
|
Ct(C.target.value);
|
|
1786
1798
|
}, Rt = (C) => {
|
|
1787
|
-
f && b && Re(!0),
|
|
1788
|
-
},
|
|
1789
|
-
f && b && !
|
|
1799
|
+
f && b && Re(!0), T && T(C);
|
|
1800
|
+
}, $t = (C) => {
|
|
1801
|
+
f && b && !A && Re(!1), R && R(C);
|
|
1790
1802
|
};
|
|
1791
|
-
return
|
|
1792
|
-
|
|
1793
|
-
}, [
|
|
1794
|
-
|
|
1795
|
-
}, [
|
|
1796
|
-
o ||
|
|
1797
|
-
}, [
|
|
1803
|
+
return V(() => {
|
|
1804
|
+
J && J.width && Nt(J.width + 18 + 10);
|
|
1805
|
+
}, [J]), V(() => {
|
|
1806
|
+
D && D.width && Tt(D.width + 18 + 10);
|
|
1807
|
+
}, [D]), V(() => {
|
|
1808
|
+
o || B && B.current && A !== void 0 && (B.current.style.height = "inherit", B.current.style.height = B.current.scrollHeight + "px");
|
|
1809
|
+
}, [A, o]), V(() => {
|
|
1798
1810
|
o || setTimeout(() => {
|
|
1799
1811
|
var C;
|
|
1800
|
-
(C =
|
|
1812
|
+
(C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1801
1813
|
"--av-text-area-wrapper-transition",
|
|
1802
|
-
|
|
1814
|
+
A ? "none" : "all 0.2s ease-out"
|
|
1803
1815
|
);
|
|
1804
1816
|
}, 0);
|
|
1805
|
-
}, [
|
|
1806
|
-
var C,
|
|
1807
|
-
if (!o &&
|
|
1808
|
-
const { labelOffset: oe, helperTextOffset: ne, scrollHeight:
|
|
1809
|
-
scrollHeight:
|
|
1817
|
+
}, [A, o]), V(() => {
|
|
1818
|
+
var C, $e;
|
|
1819
|
+
if (!o && B && B.current && A !== void 0) {
|
|
1820
|
+
const { labelOffset: oe, helperTextOffset: ne, scrollHeight: Bt } = la({
|
|
1821
|
+
scrollHeight: B.current.scrollHeight,
|
|
1810
1822
|
currentHeight: re.current,
|
|
1811
1823
|
currentLabelOffset: Ee.current,
|
|
1812
1824
|
currentHelperTextOffset: Se.current
|
|
1813
1825
|
});
|
|
1814
|
-
oe && (Ee.current = oe, (C =
|
|
1826
|
+
oe && (Ee.current = oe, (C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1815
1827
|
"--av-text-area-label",
|
|
1816
1828
|
`${oe}px`
|
|
1817
|
-
)), ne && (Se.current = ne, (
|
|
1829
|
+
)), ne && (Se.current = ne, ($e = ae == null ? void 0 : ae.current) == null || $e.style.setProperty(
|
|
1818
1830
|
"--av-text-area-helper-text",
|
|
1819
1831
|
`${ne}px`
|
|
1820
|
-
)), re.current =
|
|
1832
|
+
)), re.current = Bt || re.current;
|
|
1821
1833
|
}
|
|
1822
|
-
}, [
|
|
1834
|
+
}, [A, o]), D.width > 0 && ((Te = z == null ? void 0 : z.current) == null || Te.style.setProperty(
|
|
1823
1835
|
"--tw-translate-x",
|
|
1824
|
-
`${12 +
|
|
1836
|
+
`${12 + D.width + 5}px`
|
|
1825
1837
|
)), /* @__PURE__ */ v("div", { className: O.wrapper, children: [
|
|
1826
1838
|
/* @__PURE__ */ l(
|
|
1827
1839
|
"label",
|
|
@@ -1860,17 +1872,17 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1860
1872
|
paddingLeft: Ie
|
|
1861
1873
|
}
|
|
1862
1874
|
},
|
|
1863
|
-
value:
|
|
1875
|
+
value: A,
|
|
1864
1876
|
onChange: It,
|
|
1865
1877
|
onFocus: Rt,
|
|
1866
|
-
onBlur:
|
|
1878
|
+
onBlur: $t,
|
|
1867
1879
|
...E
|
|
1868
1880
|
}
|
|
1869
1881
|
),
|
|
1870
1882
|
!o && /* @__PURE__ */ l(
|
|
1871
1883
|
"label",
|
|
1872
1884
|
{
|
|
1873
|
-
ref:
|
|
1885
|
+
ref: z,
|
|
1874
1886
|
"aria-hidden": !0,
|
|
1875
1887
|
htmlFor: W,
|
|
1876
1888
|
className: `${O.visibleLabel}`,
|
|
@@ -1898,13 +1910,13 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1898
1910
|
] });
|
|
1899
1911
|
}
|
|
1900
1912
|
);
|
|
1901
|
-
|
|
1913
|
+
gt.displayName = "TextArea";
|
|
1902
1914
|
const ca = ({
|
|
1903
1915
|
mode: e = "light",
|
|
1904
1916
|
focusMode: t = "light",
|
|
1905
1917
|
radius: r = "small"
|
|
1906
1918
|
}) => {
|
|
1907
|
-
const { state: a, dispatch: o } =
|
|
1919
|
+
const { state: a, dispatch: o } = $(G), n = k(null), i = k(!1), c = (d) => {
|
|
1908
1920
|
d.preventDefault(), o({
|
|
1909
1921
|
type: qe
|
|
1910
1922
|
});
|
|
@@ -1931,59 +1943,59 @@ const ca = ({
|
|
|
1931
1943
|
streaming: t
|
|
1932
1944
|
}
|
|
1933
1945
|
});
|
|
1934
|
-
},
|
|
1946
|
+
}, Fe = (e) => {
|
|
1935
1947
|
X(e, !1), e({
|
|
1936
1948
|
type: q,
|
|
1937
1949
|
payload: {
|
|
1938
1950
|
message: {
|
|
1939
1951
|
role: he,
|
|
1940
|
-
content:
|
|
1952
|
+
content: Dt
|
|
1941
1953
|
}
|
|
1942
1954
|
}
|
|
1943
1955
|
});
|
|
1944
1956
|
}, da = () => {
|
|
1945
|
-
const { state: e, dispatch: t } =
|
|
1957
|
+
const { state: e, dispatch: t } = $(G), { state: r, dispatch: a } = $(ve), [o, n] = S(""), { getAccessToken: i, user: c } = Z(), d = k(null), m = k(
|
|
1946
1958
|
null
|
|
1947
1959
|
);
|
|
1948
1960
|
x(() => {
|
|
1949
1961
|
(async () => {
|
|
1950
|
-
var
|
|
1962
|
+
var g;
|
|
1951
1963
|
if (!e || e.messages.length === 0) {
|
|
1952
|
-
(
|
|
1964
|
+
(g = m == null ? void 0 : m.current) == null || g.cancel();
|
|
1953
1965
|
return;
|
|
1954
1966
|
}
|
|
1955
1967
|
const h = e.messages[e.messages.length - 1];
|
|
1956
|
-
if (!(e.messages.length === 0 || h.message.role ===
|
|
1968
|
+
if (!(e.messages.length === 0 || h.message.role === K || h.message.role === zt || h.message.role === he || h.message.role === Ot))
|
|
1957
1969
|
try {
|
|
1958
|
-
const p = await
|
|
1970
|
+
const p = await Dr({
|
|
1959
1971
|
accessToken: await i(),
|
|
1960
1972
|
name: "generate",
|
|
1961
1973
|
data: {
|
|
1962
1974
|
messages: e.messages,
|
|
1963
|
-
model: e.engine ||
|
|
1975
|
+
model: e.engine || U,
|
|
1964
1976
|
user: (c == null ? void 0 : c.username) || "",
|
|
1965
1977
|
id: e.id,
|
|
1966
1978
|
usage: e.usage
|
|
1967
1979
|
}
|
|
1968
1980
|
});
|
|
1969
1981
|
if (p && p.ok) {
|
|
1970
|
-
const b =
|
|
1971
|
-
|
|
1982
|
+
const b = ke();
|
|
1983
|
+
m.current = p.body.getReader();
|
|
1972
1984
|
const f = new TextDecoder();
|
|
1973
1985
|
for (; ; ) {
|
|
1974
1986
|
X(t, !0);
|
|
1975
|
-
const { done: y, value: _ } = await
|
|
1987
|
+
const { done: y, value: _ } = await m.current.read();
|
|
1976
1988
|
if (y) {
|
|
1977
1989
|
X(t, !1);
|
|
1978
1990
|
break;
|
|
1979
1991
|
}
|
|
1980
|
-
const
|
|
1981
|
-
if (
|
|
1982
|
-
const R =
|
|
1983
|
-
|
|
1992
|
+
const N = f.decode(_, { stream: !0 }), T = N.indexOf(Be);
|
|
1993
|
+
if (T !== -1) {
|
|
1994
|
+
const R = N.substring(0, T), E = JSON.parse(
|
|
1995
|
+
N.substring(T + Be.length)
|
|
1984
1996
|
);
|
|
1985
1997
|
t({
|
|
1986
|
-
type:
|
|
1998
|
+
type: Ke,
|
|
1987
1999
|
payload: {
|
|
1988
2000
|
model: E.model,
|
|
1989
2001
|
usage: E.usage
|
|
@@ -1993,7 +2005,7 @@ const ca = ({
|
|
|
1993
2005
|
payload: {
|
|
1994
2006
|
message: {
|
|
1995
2007
|
content: R,
|
|
1996
|
-
role:
|
|
2008
|
+
role: K,
|
|
1997
2009
|
messageId: b,
|
|
1998
2010
|
processingTime: E.processingTime,
|
|
1999
2011
|
name: E.name
|
|
@@ -2006,17 +2018,17 @@ const ca = ({
|
|
|
2006
2018
|
type: q,
|
|
2007
2019
|
payload: {
|
|
2008
2020
|
message: {
|
|
2009
|
-
content:
|
|
2010
|
-
role:
|
|
2021
|
+
content: N,
|
|
2022
|
+
role: K,
|
|
2011
2023
|
messageId: b
|
|
2012
2024
|
}
|
|
2013
2025
|
}
|
|
2014
2026
|
});
|
|
2015
2027
|
}
|
|
2016
2028
|
} else
|
|
2017
|
-
|
|
2029
|
+
Fe(t);
|
|
2018
2030
|
} catch (p) {
|
|
2019
|
-
console.error(p),
|
|
2031
|
+
console.error(p), Fe(t);
|
|
2020
2032
|
}
|
|
2021
2033
|
})();
|
|
2022
2034
|
}, [e == null ? void 0 : e.messages]);
|
|
@@ -2032,10 +2044,10 @@ const ca = ({
|
|
|
2032
2044
|
}), n("");
|
|
2033
2045
|
};
|
|
2034
2046
|
return x(() => {
|
|
2035
|
-
if (r.
|
|
2036
|
-
const h = r.
|
|
2037
|
-
h.indexOf(
|
|
2038
|
-
n(h.replace(
|
|
2047
|
+
if (r.prompt !== "") {
|
|
2048
|
+
const h = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
|
|
2049
|
+
h.indexOf(Ae) !== -1 ? navigator.clipboard.readText().then((p) => {
|
|
2050
|
+
n(h.replace(Ae, p));
|
|
2039
2051
|
}) : n(h), d.current && d.current.focus(), a({
|
|
2040
2052
|
type: Ye
|
|
2041
2053
|
});
|
|
@@ -2043,13 +2055,13 @@ const ca = ({
|
|
|
2043
2055
|
}, [r, a]), x(() => {
|
|
2044
2056
|
e && e.usage === 0 && e.messages.length === 0 && d.current && d.current.focus();
|
|
2045
2057
|
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ l(
|
|
2046
|
-
|
|
2058
|
+
gt,
|
|
2047
2059
|
{
|
|
2048
2060
|
mode: "dark",
|
|
2049
2061
|
focusMode: "light",
|
|
2050
2062
|
ref: d,
|
|
2051
2063
|
name: "chat-input",
|
|
2052
|
-
label:
|
|
2064
|
+
label: Ut,
|
|
2053
2065
|
helperText: "Press ENTER to add a new line",
|
|
2054
2066
|
helperTextOnFocus: !0,
|
|
2055
2067
|
required: !0,
|
|
@@ -2065,19 +2077,19 @@ const ca = ({
|
|
|
2065
2077
|
type: "submit",
|
|
2066
2078
|
mode: "light",
|
|
2067
2079
|
focusMode: "light",
|
|
2068
|
-
children:
|
|
2080
|
+
children: Pt
|
|
2069
2081
|
}
|
|
2070
2082
|
)
|
|
2071
2083
|
}
|
|
2072
2084
|
) }) });
|
|
2073
|
-
},
|
|
2074
|
-
const { dispatch: e, state: t } =
|
|
2085
|
+
}, ma = () => {
|
|
2086
|
+
const { dispatch: e, state: t } = $(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
|
|
2075
2087
|
loaded: !1
|
|
2076
|
-
}), i = "mt-2 flex justify-center rounded-md", c = (d,
|
|
2088
|
+
}), i = "mt-2 flex justify-center rounded-md", c = (d, m) => {
|
|
2077
2089
|
d.preventDefault(), e({
|
|
2078
2090
|
type: Ze,
|
|
2079
2091
|
payload: {
|
|
2080
|
-
|
|
2092
|
+
prompt: m
|
|
2081
2093
|
}
|
|
2082
2094
|
});
|
|
2083
2095
|
};
|
|
@@ -2100,7 +2112,7 @@ const ca = ({
|
|
|
2100
2112
|
d.status === 200 && (e({
|
|
2101
2113
|
type: Xe,
|
|
2102
2114
|
payload: {
|
|
2103
|
-
|
|
2115
|
+
prompts: d.data.tags || []
|
|
2104
2116
|
}
|
|
2105
2117
|
}), n({
|
|
2106
2118
|
loaded: !0
|
|
@@ -2108,19 +2120,19 @@ const ca = ({
|
|
|
2108
2120
|
} catch {
|
|
2109
2121
|
}
|
|
2110
2122
|
})();
|
|
2111
|
-
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(
|
|
2123
|
+
}, [a]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l(Vt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.prompts && t.prompts.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(Ht, { children: /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
|
|
2112
2124
|
tt,
|
|
2113
2125
|
{
|
|
2114
2126
|
noBorder: !0,
|
|
2115
2127
|
mode: "dark",
|
|
2116
2128
|
focusMode: "light",
|
|
2117
2129
|
size: "small",
|
|
2118
|
-
onClick: (
|
|
2130
|
+
onClick: (m) => c(m, d.content),
|
|
2119
2131
|
children: d.label
|
|
2120
2132
|
}
|
|
2121
|
-
) }) }, `
|
|
2133
|
+
) }) }, `prompt-button-${d.slot}`)) }) });
|
|
2122
2134
|
}, ua = () => {
|
|
2123
|
-
const { state: e } =
|
|
2135
|
+
const { state: e } = $(G), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
|
|
2124
2136
|
r ? "bottom-10" : "top-[245px]"
|
|
2125
2137
|
);
|
|
2126
2138
|
return x(() => {
|
|
@@ -2135,26 +2147,26 @@ const ca = ({
|
|
|
2135
2147
|
a
|
|
2136
2148
|
),
|
|
2137
2149
|
children: [
|
|
2138
|
-
/* @__PURE__ */ l(
|
|
2150
|
+
/* @__PURE__ */ l(ma, {}),
|
|
2139
2151
|
/* @__PURE__ */ l(da, {})
|
|
2140
2152
|
]
|
|
2141
2153
|
}
|
|
2142
2154
|
);
|
|
2143
2155
|
};
|
|
2144
2156
|
/*!
|
|
2145
|
-
@versini/ui-bubble v3.0.
|
|
2157
|
+
@versini/ui-bubble v3.0.3
|
|
2146
2158
|
© 2025 gizmette.com
|
|
2147
2159
|
*/
|
|
2148
2160
|
try {
|
|
2149
2161
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
2150
|
-
version: "3.0.
|
|
2151
|
-
buildTime: "01/04/2025
|
|
2162
|
+
version: "3.0.3",
|
|
2163
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2152
2164
|
homepage: "https://github.com/aversini/ui-components",
|
|
2153
2165
|
license: "MIT"
|
|
2154
2166
|
});
|
|
2155
2167
|
} catch {
|
|
2156
2168
|
}
|
|
2157
|
-
const
|
|
2169
|
+
const ga = "av-bubble", Ge = "av-button", te = "icon", ht = "button", me = "link", ha = ({
|
|
2158
2170
|
type: e,
|
|
2159
2171
|
size: t,
|
|
2160
2172
|
labelRight: r,
|
|
@@ -2164,7 +2176,7 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2164
2176
|
const n = "max-h-8 py-0 px-2", i = "max-h-9 py-1 px-3", c = "max-h-12 py-2 px-4";
|
|
2165
2177
|
switch (e) {
|
|
2166
2178
|
case ht:
|
|
2167
|
-
case
|
|
2179
|
+
case me:
|
|
2168
2180
|
return s({
|
|
2169
2181
|
[n]: t === "small",
|
|
2170
2182
|
[i]: t === "medium",
|
|
@@ -2192,9 +2204,9 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2192
2204
|
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2193
2205
|
switch (e) {
|
|
2194
2206
|
case ht:
|
|
2195
|
-
case
|
|
2207
|
+
case me:
|
|
2196
2208
|
return s({
|
|
2197
|
-
"text-center": e ===
|
|
2209
|
+
"text-center": e === me,
|
|
2198
2210
|
[o]: t === "small",
|
|
2199
2211
|
[n]: t === "medium",
|
|
2200
2212
|
[i]: t === "large"
|
|
@@ -2278,7 +2290,7 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2278
2290
|
"rounded-full": e === "large",
|
|
2279
2291
|
"rounded-md": e === "medium",
|
|
2280
2292
|
"rounded-sm": e === "small"
|
|
2281
|
-
}),
|
|
2293
|
+
}), ka = ({
|
|
2282
2294
|
mode: e,
|
|
2283
2295
|
disabled: t,
|
|
2284
2296
|
variant: r
|
|
@@ -2308,7 +2320,7 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2308
2320
|
});
|
|
2309
2321
|
if (r === "selected")
|
|
2310
2322
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2311
|
-
},
|
|
2323
|
+
}, va = ({
|
|
2312
2324
|
mode: e,
|
|
2313
2325
|
disabled: t,
|
|
2314
2326
|
variant: r
|
|
@@ -2385,35 +2397,35 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2385
2397
|
fullWidth: i,
|
|
2386
2398
|
size: c,
|
|
2387
2399
|
noBorder: d,
|
|
2388
|
-
labelRight:
|
|
2400
|
+
labelRight: m,
|
|
2389
2401
|
labelLeft: u,
|
|
2390
2402
|
noBackground: h,
|
|
2391
|
-
variant:
|
|
2403
|
+
variant: g,
|
|
2392
2404
|
noTruncate: p,
|
|
2393
2405
|
align: b,
|
|
2394
2406
|
radius: f
|
|
2395
|
-
}) => (
|
|
2396
|
-
|
|
2407
|
+
}) => (g || (g = "primary"), r ? s(Ge, t) : s(
|
|
2408
|
+
Ge,
|
|
2397
2409
|
ba({
|
|
2398
2410
|
mode: a,
|
|
2399
|
-
variant:
|
|
2411
|
+
variant: g,
|
|
2400
2412
|
noBackground: h,
|
|
2401
2413
|
noTruncate: p
|
|
2402
2414
|
}),
|
|
2403
|
-
ya({ mode: a, noBackground: h, variant:
|
|
2415
|
+
ya({ mode: a, noBackground: h, variant: g }),
|
|
2404
2416
|
fa({ radius: f }),
|
|
2405
2417
|
ha({
|
|
2406
2418
|
type: e,
|
|
2407
2419
|
size: c,
|
|
2408
|
-
labelRight:
|
|
2420
|
+
labelRight: m,
|
|
2409
2421
|
labelLeft: u,
|
|
2410
2422
|
align: b
|
|
2411
2423
|
}),
|
|
2412
|
-
pa({ type: e, size: c, labelRight:
|
|
2413
|
-
xa({ mode: a, variant:
|
|
2424
|
+
pa({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
2425
|
+
xa({ mode: a, variant: g, noBorder: d }),
|
|
2414
2426
|
_a({ focusMode: o }),
|
|
2415
|
-
|
|
2416
|
-
|
|
2427
|
+
ka({ mode: a, variant: g, disabled: n }),
|
|
2428
|
+
va({ mode: a, variant: g, disabled: n }),
|
|
2417
2429
|
{
|
|
2418
2430
|
"w-full": i,
|
|
2419
2431
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -2447,17 +2459,17 @@ const bt = I.forwardRef(
|
|
|
2447
2459
|
type: i = "button",
|
|
2448
2460
|
raw: c = !1,
|
|
2449
2461
|
noBorder: d = !1,
|
|
2450
|
-
"aria-label":
|
|
2462
|
+
"aria-label": m,
|
|
2451
2463
|
label: u,
|
|
2452
2464
|
size: h = "medium",
|
|
2453
|
-
labelRight:
|
|
2465
|
+
labelRight: g,
|
|
2454
2466
|
labelLeft: p,
|
|
2455
2467
|
noBackground: b = !1,
|
|
2456
2468
|
align: f = "center",
|
|
2457
2469
|
radius: y = "large",
|
|
2458
2470
|
variant: _ = "primary",
|
|
2459
|
-
...
|
|
2460
|
-
},
|
|
2471
|
+
...N
|
|
2472
|
+
}, T) => {
|
|
2461
2473
|
const R = pt({
|
|
2462
2474
|
type: te,
|
|
2463
2475
|
mode: r,
|
|
@@ -2468,7 +2480,7 @@ const bt = I.forwardRef(
|
|
|
2468
2480
|
className: n,
|
|
2469
2481
|
noBorder: d,
|
|
2470
2482
|
size: h,
|
|
2471
|
-
labelRight:
|
|
2483
|
+
labelRight: g,
|
|
2472
2484
|
labelLeft: p,
|
|
2473
2485
|
noBackground: b,
|
|
2474
2486
|
align: f,
|
|
@@ -2483,16 +2495,16 @@ const bt = I.forwardRef(
|
|
|
2483
2495
|
return /* @__PURE__ */ v(
|
|
2484
2496
|
xe,
|
|
2485
2497
|
{
|
|
2486
|
-
ref:
|
|
2498
|
+
ref: T,
|
|
2487
2499
|
className: R,
|
|
2488
2500
|
disabled: t,
|
|
2489
2501
|
type: i,
|
|
2490
|
-
"aria-label":
|
|
2491
|
-
...
|
|
2502
|
+
"aria-label": m || u,
|
|
2503
|
+
...N,
|
|
2492
2504
|
children: [
|
|
2493
2505
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2494
2506
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2495
|
-
|
|
2507
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2496
2508
|
]
|
|
2497
2509
|
}
|
|
2498
2510
|
);
|
|
@@ -2500,19 +2512,19 @@ const bt = I.forwardRef(
|
|
|
2500
2512
|
);
|
|
2501
2513
|
bt.displayName = "ButtonIcon";
|
|
2502
2514
|
/*!
|
|
2503
|
-
@versini/ui-button v4.0.
|
|
2515
|
+
@versini/ui-button v4.0.3
|
|
2504
2516
|
© 2025 gizmette.com
|
|
2505
2517
|
*/
|
|
2506
2518
|
try {
|
|
2507
2519
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2508
|
-
version: "4.0.
|
|
2509
|
-
buildTime: "01/04/2025
|
|
2520
|
+
version: "4.0.3",
|
|
2521
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2510
2522
|
homepage: "https://github.com/aversini/ui-components",
|
|
2511
2523
|
license: "MIT"
|
|
2512
2524
|
});
|
|
2513
2525
|
} catch {
|
|
2514
2526
|
}
|
|
2515
|
-
const
|
|
2527
|
+
const Na = I.forwardRef(
|
|
2516
2528
|
({
|
|
2517
2529
|
children: e,
|
|
2518
2530
|
disabled: t = !1,
|
|
@@ -2523,17 +2535,17 @@ const Ta = I.forwardRef(
|
|
|
2523
2535
|
type: i = "button",
|
|
2524
2536
|
raw: c = !1,
|
|
2525
2537
|
noBorder: d = !1,
|
|
2526
|
-
"aria-label":
|
|
2538
|
+
"aria-label": m,
|
|
2527
2539
|
label: u,
|
|
2528
2540
|
size: h = "medium",
|
|
2529
|
-
labelRight:
|
|
2541
|
+
labelRight: g,
|
|
2530
2542
|
labelLeft: p,
|
|
2531
2543
|
noBackground: b = !1,
|
|
2532
2544
|
align: f = "center",
|
|
2533
2545
|
active: y = !1,
|
|
2534
2546
|
radius: _ = "large",
|
|
2535
|
-
...
|
|
2536
|
-
},
|
|
2547
|
+
...N
|
|
2548
|
+
}, T) => {
|
|
2537
2549
|
const R = pt({
|
|
2538
2550
|
type: te,
|
|
2539
2551
|
mode: r,
|
|
@@ -2544,7 +2556,7 @@ const Ta = I.forwardRef(
|
|
|
2544
2556
|
className: n,
|
|
2545
2557
|
noBorder: d,
|
|
2546
2558
|
size: h,
|
|
2547
|
-
labelRight:
|
|
2559
|
+
labelRight: g,
|
|
2548
2560
|
labelLeft: p,
|
|
2549
2561
|
noBackground: b,
|
|
2550
2562
|
align: f,
|
|
@@ -2574,22 +2586,22 @@ const Ta = I.forwardRef(
|
|
|
2574
2586
|
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
2575
2587
|
xe,
|
|
2576
2588
|
{
|
|
2577
|
-
ref:
|
|
2589
|
+
ref: T,
|
|
2578
2590
|
className: R,
|
|
2579
2591
|
disabled: t,
|
|
2580
2592
|
type: i,
|
|
2581
|
-
"aria-label":
|
|
2582
|
-
...
|
|
2593
|
+
"aria-label": m || u,
|
|
2594
|
+
...N,
|
|
2583
2595
|
children: [
|
|
2584
2596
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2585
2597
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2586
|
-
|
|
2598
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2587
2599
|
]
|
|
2588
2600
|
}
|
|
2589
2601
|
) });
|
|
2590
2602
|
}
|
|
2591
2603
|
);
|
|
2592
|
-
|
|
2604
|
+
Na.displayName = "ButtonSort";
|
|
2593
2605
|
const yt = ({
|
|
2594
2606
|
children: e,
|
|
2595
2607
|
fill: t,
|
|
@@ -2601,13 +2613,13 @@ const yt = ({
|
|
|
2601
2613
|
semantic: c = !1,
|
|
2602
2614
|
...d
|
|
2603
2615
|
}) => {
|
|
2604
|
-
const
|
|
2616
|
+
const m = s(n, a);
|
|
2605
2617
|
return /* @__PURE__ */ v(Y, { children: [
|
|
2606
2618
|
/* @__PURE__ */ l(
|
|
2607
2619
|
"svg",
|
|
2608
2620
|
{
|
|
2609
2621
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2610
|
-
className:
|
|
2622
|
+
className: m,
|
|
2611
2623
|
viewBox: r || o,
|
|
2612
2624
|
fill: t || "currentColor",
|
|
2613
2625
|
role: "img",
|
|
@@ -2627,13 +2639,13 @@ const yt = ({
|
|
|
2627
2639
|
try {
|
|
2628
2640
|
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2629
2641
|
version: "4.0.0",
|
|
2630
|
-
buildTime: "01/04/2025
|
|
2642
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2631
2643
|
homepage: "https://github.com/aversini/ui-components",
|
|
2632
2644
|
license: "MIT"
|
|
2633
2645
|
});
|
|
2634
2646
|
} catch {
|
|
2635
2647
|
}
|
|
2636
|
-
const
|
|
2648
|
+
const Ta = ({
|
|
2637
2649
|
className: e,
|
|
2638
2650
|
viewBox: t,
|
|
2639
2651
|
title: r,
|
|
@@ -2652,11 +2664,18 @@ const Na = ({
|
|
|
2652
2664
|
/* @__PURE__ */ l(
|
|
2653
2665
|
"path",
|
|
2654
2666
|
{
|
|
2667
|
+
className: "fa-secondary",
|
|
2655
2668
|
opacity: "0.4",
|
|
2656
|
-
d: "
|
|
2669
|
+
d: "M0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96zM104 256c0-6.1 2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l47 47c37-37 74-74 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9c.6 1.5 1 2.9 1.3 4.4c.2 1.1 .3 2.2 .3 2.2c.1 1.2 .1 1.2 .1 2.5c-.1 1.5-.1 1.9-.1 2.3c-.1 .7-.2 1.5-.3 2.2c-.3 1.5-.7 3-1.3 4.4c-1.2 2.9-2.9 5.6-5.3 7.9c-42.7 42.7-85.3 85.3-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7c-21.3-21.3-42.7-42.7-64-64c-4.7-4.7-7-10.8-7-17z"
|
|
2657
2670
|
}
|
|
2658
2671
|
),
|
|
2659
|
-
/* @__PURE__ */ l(
|
|
2672
|
+
/* @__PURE__ */ l(
|
|
2673
|
+
"path",
|
|
2674
|
+
{
|
|
2675
|
+
className: "fa-primary",
|
|
2676
|
+
d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z"
|
|
2677
|
+
}
|
|
2678
|
+
)
|
|
2660
2679
|
]
|
|
2661
2680
|
}
|
|
2662
2681
|
), Ea = ({
|
|
@@ -2674,17 +2693,17 @@ const Na = ({
|
|
|
2674
2693
|
className: e,
|
|
2675
2694
|
title: r || "Copy",
|
|
2676
2695
|
...o,
|
|
2677
|
-
children: /* @__PURE__ */ l("path", { d: "M64
|
|
2696
|
+
children: /* @__PURE__ */ l("path", { d: "M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z" })
|
|
2678
2697
|
}
|
|
2679
2698
|
);
|
|
2680
2699
|
/*!
|
|
2681
|
-
@versini/ui-icons v4.
|
|
2700
|
+
@versini/ui-icons v4.2.0
|
|
2682
2701
|
© 2025 gizmette.com
|
|
2683
2702
|
*/
|
|
2684
2703
|
try {
|
|
2685
2704
|
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2686
|
-
version: "4.
|
|
2687
|
-
buildTime: "01/04/2025
|
|
2705
|
+
version: "4.2.0",
|
|
2706
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
2688
2707
|
homepage: "https://github.com/aversini/ui-components",
|
|
2689
2708
|
license: "MIT"
|
|
2690
2709
|
});
|
|
@@ -2701,12 +2720,12 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2701
2720
|
), Ra = ({ kind: e }) => s("rounded-b-xl", {
|
|
2702
2721
|
"rounded-tr-xl": e === "left",
|
|
2703
2722
|
"rounded-tl-xl": e === "right"
|
|
2704
|
-
}),
|
|
2723
|
+
}), $a = ({
|
|
2705
2724
|
kind: e,
|
|
2706
2725
|
className: t
|
|
2707
2726
|
}) => {
|
|
2708
2727
|
const r = s(
|
|
2709
|
-
|
|
2728
|
+
ga,
|
|
2710
2729
|
"flex items-start",
|
|
2711
2730
|
{
|
|
2712
2731
|
"flex-row-reverse": e === "right"
|
|
@@ -2728,7 +2747,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2728
2747
|
footer: o,
|
|
2729
2748
|
copyButton: n
|
|
2730
2749
|
};
|
|
2731
|
-
},
|
|
2750
|
+
}, Ba = ({
|
|
2732
2751
|
children: e,
|
|
2733
2752
|
kind: t = "left",
|
|
2734
2753
|
className: r,
|
|
@@ -2738,13 +2757,13 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2738
2757
|
copyToClipboardFocusMode: i = "system",
|
|
2739
2758
|
copyToClipboardMode: c = "system"
|
|
2740
2759
|
}) => {
|
|
2741
|
-
const [d,
|
|
2742
|
-
|
|
2760
|
+
const [d, m] = S(!1), u = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), g = () => {
|
|
2761
|
+
m(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
2743
2762
|
};
|
|
2744
2763
|
return x(() => {
|
|
2745
2764
|
let p;
|
|
2746
2765
|
return d && (p = window.setTimeout(() => {
|
|
2747
|
-
|
|
2766
|
+
m(!1);
|
|
2748
2767
|
}, 3e3)), () => {
|
|
2749
2768
|
clearTimeout(p);
|
|
2750
2769
|
};
|
|
@@ -2767,13 +2786,13 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2767
2786
|
mode: c,
|
|
2768
2787
|
focusMode: i,
|
|
2769
2788
|
label: d ? "Copied to clipboard" : "Copy to clipboard",
|
|
2770
|
-
onClick:
|
|
2789
|
+
onClick: g,
|
|
2771
2790
|
disabled: d,
|
|
2772
|
-
children: d ? /* @__PURE__ */ l(
|
|
2791
|
+
children: d ? /* @__PURE__ */ l(Ta, { size: "size-3" }) : /* @__PURE__ */ l(Ea, { size: "size-3" })
|
|
2773
2792
|
}
|
|
2774
2793
|
) })
|
|
2775
2794
|
] });
|
|
2776
|
-
}, We = "av-button", _e = "icon", we = "button", ue = "link",
|
|
2795
|
+
}, We = "av-button", _e = "icon", we = "button", ue = "link", Aa = ({
|
|
2777
2796
|
type: e,
|
|
2778
2797
|
size: t,
|
|
2779
2798
|
labelRight: r,
|
|
@@ -2802,7 +2821,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2802
2821
|
"h-12 px-4": t === "large" && (r || a)
|
|
2803
2822
|
});
|
|
2804
2823
|
}
|
|
2805
|
-
},
|
|
2824
|
+
}, La = ({
|
|
2806
2825
|
type: e,
|
|
2807
2826
|
size: t,
|
|
2808
2827
|
labelRight: r,
|
|
@@ -2861,7 +2880,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2861
2880
|
return s("not-prose text-copy-lighter", {
|
|
2862
2881
|
truncate: !r
|
|
2863
2882
|
});
|
|
2864
|
-
},
|
|
2883
|
+
}, za = ({
|
|
2865
2884
|
mode: e,
|
|
2866
2885
|
noBackground: t,
|
|
2867
2886
|
variant: r
|
|
@@ -2897,7 +2916,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2897
2916
|
"rounded-full": e === "large",
|
|
2898
2917
|
"rounded-md": e === "medium",
|
|
2899
2918
|
"rounded-sm": e === "small"
|
|
2900
|
-
}),
|
|
2919
|
+
}), Ua = ({
|
|
2901
2920
|
mode: e,
|
|
2902
2921
|
disabled: t,
|
|
2903
2922
|
variant: r
|
|
@@ -2927,7 +2946,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2927
2946
|
});
|
|
2928
2947
|
if (r === "selected")
|
|
2929
2948
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2930
|
-
},
|
|
2949
|
+
}, Pa = ({
|
|
2931
2950
|
mode: e,
|
|
2932
2951
|
disabled: t,
|
|
2933
2952
|
variant: r
|
|
@@ -2957,7 +2976,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2957
2976
|
});
|
|
2958
2977
|
if (r === "selected")
|
|
2959
2978
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2960
|
-
},
|
|
2979
|
+
}, Da = ({
|
|
2961
2980
|
mode: e,
|
|
2962
2981
|
noBorder: t,
|
|
2963
2982
|
variant: r
|
|
@@ -2987,7 +3006,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2987
3006
|
});
|
|
2988
3007
|
if (r === "selected")
|
|
2989
3008
|
return "border border-border-selected-dark";
|
|
2990
|
-
},
|
|
3009
|
+
}, Va = ({
|
|
2991
3010
|
focusMode: e
|
|
2992
3011
|
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2993
3012
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -3004,58 +3023,58 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3004
3023
|
fullWidth: i,
|
|
3005
3024
|
size: c,
|
|
3006
3025
|
noBorder: d,
|
|
3007
|
-
labelRight:
|
|
3026
|
+
labelRight: m,
|
|
3008
3027
|
labelLeft: u,
|
|
3009
3028
|
noBackground: h,
|
|
3010
|
-
variant:
|
|
3029
|
+
variant: g,
|
|
3011
3030
|
noTruncate: p,
|
|
3012
3031
|
align: b,
|
|
3013
3032
|
radius: f
|
|
3014
|
-
}) => (
|
|
3033
|
+
}) => (g || (g = "primary"), r ? s(We, t) : s(
|
|
3015
3034
|
We,
|
|
3016
3035
|
Ma({
|
|
3017
3036
|
mode: a,
|
|
3018
|
-
variant:
|
|
3037
|
+
variant: g,
|
|
3019
3038
|
noBackground: h,
|
|
3020
3039
|
noTruncate: p
|
|
3021
3040
|
}),
|
|
3022
|
-
|
|
3041
|
+
za({ mode: a, noBackground: h, variant: g }),
|
|
3023
3042
|
Oa({ radius: f }),
|
|
3024
|
-
|
|
3043
|
+
Aa({
|
|
3025
3044
|
type: e,
|
|
3026
3045
|
size: c,
|
|
3027
|
-
labelRight:
|
|
3046
|
+
labelRight: m,
|
|
3028
3047
|
labelLeft: u,
|
|
3029
3048
|
align: b
|
|
3030
3049
|
}),
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3050
|
+
La({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
3051
|
+
Da({ mode: a, variant: g, noBorder: d }),
|
|
3052
|
+
Va({ focusMode: o }),
|
|
3053
|
+
Ua({ mode: a, variant: g, disabled: n }),
|
|
3054
|
+
Pa({ mode: a, variant: g, disabled: n }),
|
|
3036
3055
|
{
|
|
3037
3056
|
"w-full": i,
|
|
3038
3057
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
3039
3058
|
},
|
|
3040
3059
|
t
|
|
3041
|
-
)),
|
|
3060
|
+
)), Ha = (e, t, r) => {
|
|
3042
3061
|
var a;
|
|
3043
3062
|
!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);
|
|
3044
|
-
},
|
|
3063
|
+
}, Ne = I.forwardRef((e, t) => {
|
|
3045
3064
|
const { onClick: r, noInternalClick: a = !1, ...o } = e;
|
|
3046
3065
|
return /* @__PURE__ */ l(
|
|
3047
3066
|
"button",
|
|
3048
3067
|
{
|
|
3049
3068
|
ref: t,
|
|
3050
3069
|
onClick: (n) => {
|
|
3051
|
-
|
|
3070
|
+
Ha(n, a, r);
|
|
3052
3071
|
},
|
|
3053
3072
|
...o
|
|
3054
3073
|
}
|
|
3055
3074
|
);
|
|
3056
3075
|
});
|
|
3057
|
-
|
|
3058
|
-
const
|
|
3076
|
+
Ne.displayName = "BaseButton";
|
|
3077
|
+
const kt = I.forwardRef(
|
|
3059
3078
|
({
|
|
3060
3079
|
children: e,
|
|
3061
3080
|
disabled: t = !1,
|
|
@@ -3066,10 +3085,10 @@ const vt = I.forwardRef(
|
|
|
3066
3085
|
size: i = "medium",
|
|
3067
3086
|
raw: c = !1,
|
|
3068
3087
|
noBorder: d = !1,
|
|
3069
|
-
variant:
|
|
3088
|
+
variant: m = "primary",
|
|
3070
3089
|
noTruncate: u = !1,
|
|
3071
3090
|
radius: h = "large",
|
|
3072
|
-
...
|
|
3091
|
+
...g
|
|
3073
3092
|
}, p) => {
|
|
3074
3093
|
const b = ft({
|
|
3075
3094
|
type: we,
|
|
@@ -3081,37 +3100,37 @@ const vt = I.forwardRef(
|
|
|
3081
3100
|
className: n,
|
|
3082
3101
|
size: i,
|
|
3083
3102
|
noBorder: d,
|
|
3084
|
-
variant:
|
|
3103
|
+
variant: m,
|
|
3085
3104
|
noTruncate: u,
|
|
3086
3105
|
radius: h
|
|
3087
3106
|
});
|
|
3088
3107
|
return /* @__PURE__ */ l(
|
|
3089
|
-
|
|
3108
|
+
Ne,
|
|
3090
3109
|
{
|
|
3091
3110
|
ref: p,
|
|
3092
3111
|
className: b,
|
|
3093
3112
|
disabled: t,
|
|
3094
|
-
...
|
|
3113
|
+
...g,
|
|
3095
3114
|
children: e
|
|
3096
3115
|
}
|
|
3097
3116
|
);
|
|
3098
3117
|
}
|
|
3099
3118
|
);
|
|
3100
|
-
|
|
3119
|
+
kt.displayName = "Button";
|
|
3101
3120
|
/*!
|
|
3102
|
-
@versini/ui-button v4.0.
|
|
3121
|
+
@versini/ui-button v4.0.3
|
|
3103
3122
|
© 2025 gizmette.com
|
|
3104
3123
|
*/
|
|
3105
3124
|
try {
|
|
3106
3125
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3107
|
-
version: "4.0.
|
|
3108
|
-
buildTime: "01/04/2025
|
|
3126
|
+
version: "4.0.3",
|
|
3127
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
3109
3128
|
homepage: "https://github.com/aversini/ui-components",
|
|
3110
3129
|
license: "MIT"
|
|
3111
3130
|
});
|
|
3112
3131
|
} catch {
|
|
3113
3132
|
}
|
|
3114
|
-
const
|
|
3133
|
+
const Fa = I.forwardRef(
|
|
3115
3134
|
({
|
|
3116
3135
|
children: e,
|
|
3117
3136
|
disabled: t = !1,
|
|
@@ -3122,17 +3141,17 @@ const Pa = I.forwardRef(
|
|
|
3122
3141
|
type: i = "button",
|
|
3123
3142
|
raw: c = !1,
|
|
3124
3143
|
noBorder: d = !1,
|
|
3125
|
-
"aria-label":
|
|
3144
|
+
"aria-label": m,
|
|
3126
3145
|
label: u,
|
|
3127
3146
|
size: h = "medium",
|
|
3128
|
-
labelRight:
|
|
3147
|
+
labelRight: g,
|
|
3129
3148
|
labelLeft: p,
|
|
3130
3149
|
noBackground: b = !1,
|
|
3131
3150
|
align: f = "center",
|
|
3132
3151
|
active: y = !1,
|
|
3133
3152
|
radius: _ = "large",
|
|
3134
|
-
...
|
|
3135
|
-
},
|
|
3153
|
+
...N
|
|
3154
|
+
}, T) => {
|
|
3136
3155
|
const R = ft({
|
|
3137
3156
|
type: _e,
|
|
3138
3157
|
mode: r,
|
|
@@ -3143,7 +3162,7 @@ const Pa = I.forwardRef(
|
|
|
3143
3162
|
className: n,
|
|
3144
3163
|
noBorder: d,
|
|
3145
3164
|
size: h,
|
|
3146
|
-
labelRight:
|
|
3165
|
+
labelRight: g,
|
|
3147
3166
|
labelLeft: p,
|
|
3148
3167
|
noBackground: b,
|
|
3149
3168
|
align: f,
|
|
@@ -3171,27 +3190,27 @@ const Pa = I.forwardRef(
|
|
|
3171
3190
|
}
|
|
3172
3191
|
) : "";
|
|
3173
3192
|
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
3174
|
-
|
|
3193
|
+
Ne,
|
|
3175
3194
|
{
|
|
3176
|
-
ref:
|
|
3195
|
+
ref: T,
|
|
3177
3196
|
className: R,
|
|
3178
3197
|
disabled: t,
|
|
3179
3198
|
type: i,
|
|
3180
|
-
"aria-label":
|
|
3181
|
-
...
|
|
3199
|
+
"aria-label": m || u,
|
|
3200
|
+
...N,
|
|
3182
3201
|
children: [
|
|
3183
3202
|
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
3184
3203
|
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
3185
|
-
|
|
3204
|
+
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
3186
3205
|
]
|
|
3187
3206
|
}
|
|
3188
3207
|
) });
|
|
3189
3208
|
}
|
|
3190
3209
|
);
|
|
3191
|
-
|
|
3192
|
-
const
|
|
3210
|
+
Fa.displayName = "ButtonSort";
|
|
3211
|
+
const Ga = 200, Wa = ({
|
|
3193
3212
|
string: e,
|
|
3194
|
-
idealLength: t =
|
|
3213
|
+
idealLength: t = Ga
|
|
3195
3214
|
}) => {
|
|
3196
3215
|
if (e.length <= t)
|
|
3197
3216
|
return { string: e, isTruncated: !1 };
|
|
@@ -3218,7 +3237,7 @@ const Fa = 200, Wa = ({
|
|
|
3218
3237
|
return /* @__PURE__ */ v("span", { style: { wordBreak: "break-word" }, children: [
|
|
3219
3238
|
o ? e : i,
|
|
3220
3239
|
c && /* @__PURE__ */ l(
|
|
3221
|
-
|
|
3240
|
+
kt,
|
|
3222
3241
|
{
|
|
3223
3242
|
mode: r,
|
|
3224
3243
|
focusMode: a,
|
|
@@ -3233,13 +3252,13 @@ const Fa = 200, Wa = ({
|
|
|
3233
3252
|
] });
|
|
3234
3253
|
};
|
|
3235
3254
|
/*!
|
|
3236
|
-
@versini/ui-truncate v3.0.
|
|
3255
|
+
@versini/ui-truncate v3.0.3
|
|
3237
3256
|
© 2025 gizmette.com
|
|
3238
3257
|
*/
|
|
3239
3258
|
try {
|
|
3240
3259
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
3241
|
-
version: "3.0.
|
|
3242
|
-
buildTime: "01/04/2025
|
|
3260
|
+
version: "3.0.3",
|
|
3261
|
+
buildTime: "01/04/2025 04:09 PM EST",
|
|
3243
3262
|
homepage: "https://github.com/aversini/ui-components",
|
|
3244
3263
|
license: "MIT"
|
|
3245
3264
|
});
|
|
@@ -3248,15 +3267,15 @@ try {
|
|
|
3248
3267
|
const je = rt(
|
|
3249
3268
|
() => import(
|
|
3250
3269
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
3251
|
-
"./MessageAssistant.
|
|
3270
|
+
"./MessageAssistant.PRne9DXL.js"
|
|
3252
3271
|
).then((e) => e.MessageAssistant)
|
|
3253
3272
|
), qa = () => {
|
|
3254
|
-
const { state: e } =
|
|
3273
|
+
const { state: e } = $(G);
|
|
3255
3274
|
return /* @__PURE__ */ v("div", { className: "space-y-6 mt-2", children: [
|
|
3256
3275
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
3257
3276
|
const { role: a, content: o, name: n, processingTime: i } = t.message;
|
|
3258
|
-
return (a ===
|
|
3259
|
-
|
|
3277
|
+
return (a === K || a === he) && o ? /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { name: n, processingTime: i, children: o }) }, `${r}-${a}`) : a === le && o ? /* @__PURE__ */ l(
|
|
3278
|
+
Ba,
|
|
3260
3279
|
{
|
|
3261
3280
|
kind: "right",
|
|
3262
3281
|
copyToClipboard: o,
|
|
@@ -3266,37 +3285,37 @@ const je = rt(
|
|
|
3266
3285
|
`${r}-${a}`
|
|
3267
3286
|
) : null;
|
|
3268
3287
|
}),
|
|
3269
|
-
|
|
3288
|
+
Ft(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
|
|
3270
3289
|
] });
|
|
3271
|
-
},
|
|
3272
|
-
const { isAuthenticated: e } = Z(), { state: t } =
|
|
3290
|
+
}, Ka = () => {
|
|
3291
|
+
const { isAuthenticated: e } = Z(), { state: t } = $(G), [r, a] = S(!1), [o, n] = dr(), i = Gt({
|
|
3273
3292
|
isAuthenticated: e,
|
|
3274
3293
|
extraClass: "rounded-b-md"
|
|
3275
|
-
}), c = k(!1), d =
|
|
3294
|
+
}), c = k(!1), d = P(() => {
|
|
3276
3295
|
const u = o.current;
|
|
3277
3296
|
if (u) {
|
|
3278
|
-
const { scrollHeight: h, clientHeight:
|
|
3297
|
+
const { scrollHeight: h, clientHeight: g, scrollTop: p } = u, b = h - g - p;
|
|
3279
3298
|
u.scrollBy({
|
|
3280
3299
|
top: b,
|
|
3281
3300
|
behavior: "smooth"
|
|
3282
3301
|
});
|
|
3283
3302
|
}
|
|
3284
|
-
}, [o]),
|
|
3303
|
+
}, [o]), m = P(() => {
|
|
3285
3304
|
const u = o.current;
|
|
3286
3305
|
if (u) {
|
|
3287
|
-
const { scrollTop: h, scrollHeight:
|
|
3306
|
+
const { scrollTop: h, scrollHeight: g, clientHeight: p } = u, b = g > p, f = h + p >= g - 1;
|
|
3288
3307
|
a(b && !f);
|
|
3289
3308
|
}
|
|
3290
3309
|
}, [o]);
|
|
3291
|
-
return
|
|
3292
|
-
n && n.width && t && !t.streaming &&
|
|
3293
|
-
}, [n, t,
|
|
3310
|
+
return V(() => {
|
|
3311
|
+
n && n.width && t && !t.streaming && m();
|
|
3312
|
+
}, [n, t, m]), x(() => {
|
|
3294
3313
|
const u = o.current;
|
|
3295
3314
|
if (u)
|
|
3296
|
-
return u.addEventListener("scroll",
|
|
3297
|
-
}, [
|
|
3298
|
-
t && t.streaming &&
|
|
3299
|
-
}, [t,
|
|
3315
|
+
return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
|
|
3316
|
+
}, [m, o]), x(() => {
|
|
3317
|
+
t && t.streaming && m();
|
|
3318
|
+
}, [t, m]), x(() => {
|
|
3300
3319
|
t && (!c.current && t.streaming && d(), c.current = !!t.streaming);
|
|
3301
3320
|
}, [t, d]), /* @__PURE__ */ v("div", { className: i, ref: o, children: [
|
|
3302
3321
|
r && /* @__PURE__ */ l("div", { className: "bottom-44 z-40 fixed left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ l(
|
|
@@ -3323,39 +3342,39 @@ const je = rt(
|
|
|
3323
3342
|
/* @__PURE__ */ l(Wt, {}),
|
|
3324
3343
|
e && /* @__PURE__ */ l(qa, {})
|
|
3325
3344
|
] });
|
|
3326
|
-
},
|
|
3345
|
+
}, Ja = rt(
|
|
3327
3346
|
() => import(
|
|
3328
3347
|
/* webpackChunkName: "LazyHeader" */
|
|
3329
|
-
"./HeaderToolbar.
|
|
3348
|
+
"./HeaderToolbar.Dcsv3jhf.js"
|
|
3330
3349
|
)
|
|
3331
3350
|
);
|
|
3332
|
-
function
|
|
3333
|
-
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] =
|
|
3351
|
+
function vt({ isComponent: e = !1 }) {
|
|
3352
|
+
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] = Ue({
|
|
3334
3353
|
key: Me + qt,
|
|
3335
3354
|
initialValue: ""
|
|
3336
|
-
}), [i] =
|
|
3337
|
-
key: Me +
|
|
3355
|
+
}), [i] = Ue({
|
|
3356
|
+
key: Me + Kt,
|
|
3338
3357
|
initialValue: j.ASC
|
|
3339
|
-
}), [c, d] = Q(
|
|
3340
|
-
id:
|
|
3341
|
-
model:
|
|
3342
|
-
engine:
|
|
3358
|
+
}), [c, d] = Q(zr, {
|
|
3359
|
+
id: ke(),
|
|
3360
|
+
model: U,
|
|
3361
|
+
engine: U,
|
|
3343
3362
|
usage: 0,
|
|
3344
3363
|
messages: [],
|
|
3345
|
-
|
|
3364
|
+
prompts: [],
|
|
3346
3365
|
isComponent: e
|
|
3347
|
-
}), [
|
|
3366
|
+
}), [m, u] = Q(Or, {
|
|
3348
3367
|
searchString: n,
|
|
3349
3368
|
sortedCell: "timestamp",
|
|
3350
3369
|
sortDirection: i
|
|
3351
|
-
}), [h,
|
|
3352
|
-
|
|
3353
|
-
|
|
3370
|
+
}), [h, g] = Q(Ur, {
|
|
3371
|
+
prompt: "",
|
|
3372
|
+
prompts: []
|
|
3354
3373
|
}), [p, b] = S({
|
|
3355
3374
|
version: "",
|
|
3356
3375
|
models: [],
|
|
3357
3376
|
plugins: [],
|
|
3358
|
-
engine:
|
|
3377
|
+
engine: U,
|
|
3359
3378
|
engines: []
|
|
3360
3379
|
});
|
|
3361
3380
|
return x(() => {
|
|
@@ -3370,7 +3389,7 @@ function kt({ isComponent: e = !1 }) {
|
|
|
3370
3389
|
}
|
|
3371
3390
|
});
|
|
3372
3391
|
t.current = !1, y.status === 200 && (b(y.data), d({
|
|
3373
|
-
type:
|
|
3392
|
+
type: Je,
|
|
3374
3393
|
payload: {
|
|
3375
3394
|
engine: y.data.engine
|
|
3376
3395
|
}
|
|
@@ -3384,17 +3403,17 @@ function kt({ isComponent: e = !1 }) {
|
|
|
3384
3403
|
var _;
|
|
3385
3404
|
(_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
|
|
3386
3405
|
}, 500);
|
|
3387
|
-
}), /* @__PURE__ */ l(
|
|
3388
|
-
|
|
3406
|
+
}), /* @__PURE__ */ l(G.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
|
|
3407
|
+
Vr.Provider,
|
|
3389
3408
|
{
|
|
3390
3409
|
value: {
|
|
3391
|
-
state:
|
|
3410
|
+
state: m,
|
|
3392
3411
|
dispatch: u
|
|
3393
3412
|
},
|
|
3394
3413
|
children: /* @__PURE__ */ v(
|
|
3395
|
-
|
|
3414
|
+
ve.Provider,
|
|
3396
3415
|
{
|
|
3397
|
-
value: { state: h, dispatch:
|
|
3416
|
+
value: { state: h, dispatch: g },
|
|
3398
3417
|
children: [
|
|
3399
3418
|
/* @__PURE__ */ l(
|
|
3400
3419
|
tr,
|
|
@@ -3403,21 +3422,21 @@ function kt({ isComponent: e = !1 }) {
|
|
|
3403
3422
|
noMargin: !0,
|
|
3404
3423
|
noPadding: !0,
|
|
3405
3424
|
noBorder: !0,
|
|
3406
|
-
className:
|
|
3425
|
+
className: Le({
|
|
3407
3426
|
extraClass: "mt-5"
|
|
3408
3427
|
}),
|
|
3409
|
-
children: o && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(
|
|
3428
|
+
children: o && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Ja, {}) })
|
|
3410
3429
|
}
|
|
3411
3430
|
),
|
|
3412
3431
|
/* @__PURE__ */ l(
|
|
3413
3432
|
jt,
|
|
3414
3433
|
{
|
|
3415
|
-
className:
|
|
3434
|
+
className: Le({
|
|
3416
3435
|
extraClass: "max-h-[calc(100svh_-_250px)]"
|
|
3417
3436
|
}),
|
|
3418
3437
|
noMargin: !0,
|
|
3419
3438
|
noPadding: !0,
|
|
3420
|
-
children: /* @__PURE__ */ l(
|
|
3439
|
+
children: /* @__PURE__ */ l(Ka, {})
|
|
3421
3440
|
}
|
|
3422
3441
|
),
|
|
3423
3442
|
/* @__PURE__ */ l(ua, {})
|
|
@@ -3427,23 +3446,23 @@ function kt({ isComponent: e = !1 }) {
|
|
|
3427
3446
|
}
|
|
3428
3447
|
) });
|
|
3429
3448
|
}
|
|
3430
|
-
|
|
3431
|
-
const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default:
|
|
3449
|
+
vt.displayName = "App";
|
|
3450
|
+
const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: vt }, Symbol.toStringTag, { value: "Module" }));
|
|
3432
3451
|
export {
|
|
3433
3452
|
so as App,
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3453
|
+
G as AppContext,
|
|
3454
|
+
Ue as E,
|
|
3455
|
+
Vr as HistoryContext,
|
|
3437
3456
|
ca as NewChatButton,
|
|
3438
|
-
|
|
3457
|
+
gt as Pe,
|
|
3458
|
+
ve as PromptsContext,
|
|
3439
3459
|
it as SERVICE_TYPES,
|
|
3440
|
-
ke as TagsContext,
|
|
3441
3460
|
ro as be,
|
|
3442
3461
|
j as f,
|
|
3443
3462
|
eo as ge,
|
|
3444
3463
|
to as he,
|
|
3445
|
-
|
|
3446
|
-
|
|
3464
|
+
$r as ie,
|
|
3465
|
+
Ba as le,
|
|
3447
3466
|
ao as me,
|
|
3448
3467
|
ct as serviceCall,
|
|
3449
3468
|
oo as ue,
|