@versini/sassysaint 5.5.18 → 5.5.19
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.CN26Vdes.js} +427 -408
- package/dist/chunks/{HeaderToolbar.BS7wgkaB.js → HeaderToolbar.RG5VcCoN.js} +671 -628
- package/dist/chunks/{MarkdownWithExtra.D6_F01Wo.js → MarkdownWithExtra.D9aZRrcd.js} +283 -276
- package/dist/chunks/{MessageAssistant.D9gVxi35.js → MessageAssistant.DpLJVr9t.js} +3 -3
- package/dist/chunks/{index.Dc-g6Ljy.js → index.DaKlCgCU.js} +86 -72
- 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 ue, 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 zt, ACTION_SET_TAGS as Xe, ACTION_RESET_TAGS as Ye, ACTION_TOGGLE_TAG as Ze, DEFAULT_AI_ENGINE as U, P as et, un as Z, ROLE_SYSTEM as Mt, ROLE_INTERNAL as he, ROLE_HIDDEN as Ot, STATS_SEPARATOR as Be, CLIPBOARD_TAG as Ae, TYPE_QUESTION as Ut, C as tt, SEND as Dt, ERROR_MESSAGE as Vt, ROLE_USER as le, L as Pt, j as Ht, isLastMessageFromRole as Gt, getMessageContaintWrapperClass as Ft, Logo as Wt, getMainPaddingClass as Le, r as jt, LOCAL_STORAGE_PREFIX as ze, LOCAL_STORAGE_SEARCH as qt, LOCAL_STORAGE_SORT as Kt } from "./index.DaKlCgCU.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 D, useSyncExternalStore as Jt, useState as S, useMemo as pe, useContext as $, useLayoutEffect as P, 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
|
+
ue,
|
|
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
|
+
ue,
|
|
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
|
+
ue,
|
|
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
|
/*!
|
|
@@ -112,12 +103,12 @@ const er = "av-header", tr = ({
|
|
|
112
103
|
"sticky top-0 z-50": n
|
|
113
104
|
},
|
|
114
105
|
t
|
|
115
|
-
),
|
|
106
|
+
), m = s({
|
|
116
107
|
"mt-0": !c,
|
|
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: g, children: /* @__PURE__ */ l("div", { className:
|
|
111
|
+
return /* @__PURE__ */ l("header", { className: g, children: /* @__PURE__ */ l("div", { className: m, 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: g, metaKey:
|
|
127
|
+
const { alt: r, ctrl: a, meta: o, mod: n, shift: i, key: c } = e, { altKey: d, ctrlKey: g, metaKey: m, shiftKey: h, key: u } = t;
|
|
137
128
|
if (r !== d)
|
|
138
129
|
return !1;
|
|
139
130
|
if (n) {
|
|
140
|
-
if (!g && !
|
|
131
|
+
if (!g && !m)
|
|
141
132
|
return !1;
|
|
142
|
-
} else if (a !== g || o !==
|
|
133
|
+
} else if (a !== g || o !== m)
|
|
143
134
|
return !1;
|
|
144
|
-
return i !== h ? !1 : !!(c && (
|
|
135
|
+
return i !== h ? !1 : !!(c && (u.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
|
+
}), []), D(() => 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 Me = (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 = D(
|
|
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) : Me(e, c);
|
|
183
174
|
} catch (c) {
|
|
184
175
|
console.warn(c);
|
|
185
176
|
}
|
|
186
177
|
},
|
|
187
178
|
[e, r]
|
|
188
|
-
), o =
|
|
179
|
+
), o = D(() => {
|
|
189
180
|
a(t);
|
|
190
|
-
}, [t, a]), n =
|
|
181
|
+
}, [t, a]), n = D(() => {
|
|
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" && Me(e, t);
|
|
196
187
|
} catch (i) {
|
|
197
188
|
console.warn(i);
|
|
198
189
|
}
|
|
@@ -220,19 +211,19 @@ 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
|
}, gr = ({
|
|
@@ -270,7 +261,7 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
270
261
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
271
262
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
272
263
|
})
|
|
273
|
-
}),
|
|
264
|
+
}), mr = ({
|
|
274
265
|
className: e,
|
|
275
266
|
stickyHeader: t,
|
|
276
267
|
mode: 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
|
+
), ur = ({
|
|
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), De = "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",
|
|
@@ -579,34 +570,34 @@ const ee = "thead", be = "tfoot", G = "tbody", j = {
|
|
|
579
570
|
size: c,
|
|
580
571
|
noBorder: d,
|
|
581
572
|
labelRight: g,
|
|
582
|
-
labelLeft:
|
|
573
|
+
labelLeft: m,
|
|
583
574
|
noBackground: h,
|
|
584
|
-
variant:
|
|
575
|
+
variant: u,
|
|
585
576
|
noTruncate: p,
|
|
586
577
|
align: b,
|
|
587
578
|
radius: f
|
|
588
|
-
}) => (
|
|
589
|
-
|
|
590
|
-
|
|
579
|
+
}) => (u || (u = "primary"), r ? s(De, t) : s(
|
|
580
|
+
De,
|
|
581
|
+
kr({
|
|
591
582
|
mode: a,
|
|
592
|
-
variant:
|
|
583
|
+
variant: u,
|
|
593
584
|
noBackground: h,
|
|
594
585
|
noTruncate: p
|
|
595
586
|
}),
|
|
596
|
-
|
|
587
|
+
vr({ mode: a, noBackground: h, variant: u }),
|
|
597
588
|
xr({ radius: f }),
|
|
598
589
|
yr({
|
|
599
590
|
type: e,
|
|
600
591
|
size: c,
|
|
601
592
|
labelRight: g,
|
|
602
|
-
labelLeft:
|
|
593
|
+
labelLeft: m,
|
|
603
594
|
align: b
|
|
604
595
|
}),
|
|
605
|
-
fr({ type: e, size: c, labelRight: g, labelLeft:
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
_r({ mode: a, variant:
|
|
609
|
-
wr({ mode: a, variant:
|
|
596
|
+
fr({ type: e, size: c, labelRight: g, labelLeft: m }),
|
|
597
|
+
Nr({ mode: a, variant: u, noBorder: d }),
|
|
598
|
+
Tr({ focusMode: o }),
|
|
599
|
+
_r({ mode: a, variant: u, disabled: n }),
|
|
600
|
+
wr({ mode: a, variant: u, 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
|
});
|
|
@@ -654,16 +645,16 @@ const st = I.forwardRef(
|
|
|
654
645
|
raw: c = !1,
|
|
655
646
|
noBorder: d = !1,
|
|
656
647
|
"aria-label": g,
|
|
657
|
-
label:
|
|
648
|
+
label: m,
|
|
658
649
|
size: h = "medium",
|
|
659
|
-
labelRight:
|
|
650
|
+
labelRight: u,
|
|
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: u,
|
|
678
669
|
labelLeft: p,
|
|
679
670
|
noBackground: b,
|
|
680
671
|
align: f,
|
|
@@ -684,7 +675,7 @@ const st = I.forwardRef(
|
|
|
684
675
|
"text-copy-light": r === "dark" && !c,
|
|
685
676
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
686
677
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
687
|
-
}),
|
|
678
|
+
}), z = y ? s(
|
|
688
679
|
"relative",
|
|
689
680
|
"focus-within:static",
|
|
690
681
|
"focus-within:after:border-transparent",
|
|
@@ -701,19 +692,19 @@ const st = I.forwardRef(
|
|
|
701
692
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
702
693
|
}
|
|
703
694
|
) : "";
|
|
704
|
-
return /* @__PURE__ */ l("div", { className:
|
|
695
|
+
return /* @__PURE__ */ l("div", { className: z, 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": g ||
|
|
712
|
-
...
|
|
702
|
+
"aria-label": g || m,
|
|
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
|
+
u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
|
|
717
708
|
]
|
|
718
709
|
}
|
|
719
710
|
) });
|
|
@@ -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 G = I.createContext({
|
|
859
871
|
mode: "light",
|
|
860
872
|
cellWrapper: "thead",
|
|
861
873
|
stickyHeader: !1,
|
|
@@ -872,7 +884,7 @@ const P = I.createContext({
|
|
|
872
884
|
maxHeight: c,
|
|
873
885
|
stickyHeader: d,
|
|
874
886
|
stickyFooter: g,
|
|
875
|
-
...
|
|
887
|
+
...m
|
|
876
888
|
}) => {
|
|
877
889
|
const h = gr({
|
|
878
890
|
mode: t,
|
|
@@ -882,7 +894,7 @@ const P = I.createContext({
|
|
|
882
894
|
stickyFooter: g
|
|
883
895
|
});
|
|
884
896
|
return /* @__PURE__ */ l(
|
|
885
|
-
|
|
897
|
+
G.Provider,
|
|
886
898
|
{
|
|
887
899
|
value: { mode: t, stickyHeader: d, stickyFooter: g, compact: a },
|
|
888
900
|
children: /* @__PURE__ */ l(
|
|
@@ -892,7 +904,7 @@ const P = I.createContext({
|
|
|
892
904
|
...c && {
|
|
893
905
|
style: { maxHeight: c }
|
|
894
906
|
},
|
|
895
|
-
children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...
|
|
907
|
+
children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...m, children: [
|
|
896
908
|
r && /* @__PURE__ */ l("caption", { className: h.caption, children: r }),
|
|
897
909
|
e
|
|
898
910
|
] })
|
|
@@ -905,9 +917,9 @@ const P = I.createContext({
|
|
|
905
917
|
className: t,
|
|
906
918
|
...r
|
|
907
919
|
}) => {
|
|
908
|
-
const a =
|
|
920
|
+
const a = $(G);
|
|
909
921
|
a.cellWrapper = ee;
|
|
910
|
-
const o =
|
|
922
|
+
const o = mr({
|
|
911
923
|
className: t,
|
|
912
924
|
mode: a.mode,
|
|
913
925
|
stickyHeader: a.stickyHeader
|
|
@@ -918,36 +930,36 @@ const P = I.createContext({
|
|
|
918
930
|
className: t,
|
|
919
931
|
...r
|
|
920
932
|
}) => {
|
|
921
|
-
const a =
|
|
933
|
+
const a = $(G);
|
|
922
934
|
a.cellWrapper = be;
|
|
923
|
-
const o =
|
|
935
|
+
const o = ur({
|
|
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 = $(G);
|
|
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 = $(G), 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 = $(G), 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,
|
|
@@ -966,23 +978,23 @@ const P = I.createContext({
|
|
|
966
978
|
onClick: c,
|
|
967
979
|
sortDirection: d,
|
|
968
980
|
sortedCell: g,
|
|
969
|
-
cellId:
|
|
981
|
+
cellId: m,
|
|
970
982
|
...h
|
|
971
983
|
}) => {
|
|
972
|
-
const
|
|
984
|
+
const u = 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 && g ===
|
|
991
|
+
"aria-sort": d === j.ASC && g === m ? "ascending" : d === j.DESC && g === m ? "descending" : "other",
|
|
980
992
|
...h,
|
|
981
993
|
children: /* @__PURE__ */ l(
|
|
982
994
|
st,
|
|
983
995
|
{
|
|
984
|
-
active: g ===
|
|
985
|
-
className:
|
|
996
|
+
active: g === m,
|
|
997
|
+
className: u,
|
|
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 && g ===
|
|
1005
|
+
children: d === j.ASC && g === m ? /* @__PURE__ */ l(Rr, { className: "size-4", monotone: !0 }) : d === j.DESC && g === m ? /* @__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
|
|
1015
|
-
function
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
1026
|
+
const zr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ve = { randomUUID: zr };
|
|
1027
|
+
function ke(e, t, r) {
|
|
1028
|
+
if (Ve.randomUUID && !t && !e)
|
|
1029
|
+
return Ve.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 Mr = (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,
|
|
@@ -1049,19 +1061,19 @@ 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
|
(g) => g.message.messageId === i
|
|
1055
1067
|
);
|
|
1056
1068
|
if (d !== -1) {
|
|
1057
|
-
const g = e.messages.map((
|
|
1069
|
+
const g = e.messages.map((m, h) => h === d ? {
|
|
1058
1070
|
message: {
|
|
1059
|
-
...
|
|
1060
|
-
content: `${
|
|
1071
|
+
...m.message,
|
|
1072
|
+
content: `${m.message.content}${a}`,
|
|
1061
1073
|
processingTime: n,
|
|
1062
1074
|
name: o
|
|
1063
1075
|
}
|
|
1064
|
-
} :
|
|
1076
|
+
} : m);
|
|
1065
1077
|
return {
|
|
1066
1078
|
id: e.id,
|
|
1067
1079
|
model: e.model,
|
|
@@ -1090,14 +1102,14 @@ 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
1111
|
tags: e.tags
|
|
1100
|
-
} : (t == null ? void 0 : t.type) ===
|
|
1112
|
+
} : (t == null ? void 0 : t.type) === Ke ? {
|
|
1101
1113
|
id: e.id,
|
|
1102
1114
|
model: t.payload.model,
|
|
1103
1115
|
engine: e.engine,
|
|
@@ -1105,7 +1117,7 @@ const Lr = (e, t) => {
|
|
|
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 ? {
|
|
@@ -1114,13 +1126,13 @@ const Lr = (e, t) => {
|
|
|
1114
1126
|
} : e;
|
|
1115
1127
|
}, Or = (e, t) => {
|
|
1116
1128
|
switch (t == null ? void 0 : t.type) {
|
|
1117
|
-
case
|
|
1129
|
+
case zt:
|
|
1118
1130
|
return {
|
|
1119
1131
|
searchString: t.payload.searchString,
|
|
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,7 +1141,7 @@ 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 {
|
|
@@ -1149,7 +1161,7 @@ const Lr = (e, t) => {
|
|
|
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, Dr = 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 Dr({
|
|
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
|
+
}, Vr = async ({
|
|
1331
1343
|
accessToken: e,
|
|
1332
1344
|
name: t,
|
|
1333
1345
|
data: r,
|
|
@@ -1346,8 +1358,8 @@ const Lr = (e, t) => {
|
|
|
1346
1358
|
}, F = 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,
|
|
@@ -1359,14 +1371,14 @@ 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
|
+
}), Pr = I.createContext({
|
|
1366
1378
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1367
1379
|
dispatch: () => {
|
|
1368
1380
|
}
|
|
1369
|
-
}),
|
|
1381
|
+
}), ve = I.createContext({
|
|
1370
1382
|
state: { tag: "" },
|
|
1371
1383
|
dispatch: () => {
|
|
1372
1384
|
}
|
|
@@ -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", Gr = "av-text-area__control--right", Fr = "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
|
+
}), []), D(() => 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 Pe(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
|
-
), g = (
|
|
1434
|
-
d(
|
|
1445
|
+
), g = (m) => {
|
|
1446
|
+
d(m), a == null || a(m);
|
|
1435
1447
|
};
|
|
1436
1448
|
return x(() => {
|
|
1437
1449
|
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1438
|
-
(
|
|
1450
|
+
(m) => setTimeout(m, o)
|
|
1439
1451
|
), i(!0)))();
|
|
1440
1452
|
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, g, !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 gt = "SET_ANNOUNCEMENT",
|
|
1465
|
+
const gt = "SET_ANNOUNCEMENT", mt = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
1454
1466
|
alert: null,
|
|
1455
1467
|
alertdialog: null,
|
|
1456
1468
|
log: "polite",
|
|
@@ -1465,7 +1477,7 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1465
1477
|
...e,
|
|
1466
1478
|
announcement: t.payload
|
|
1467
1479
|
};
|
|
1468
|
-
case
|
|
1480
|
+
case mt:
|
|
1469
1481
|
return {
|
|
1470
1482
|
...e,
|
|
1471
1483
|
announcement: null
|
|
@@ -1478,9 +1490,9 @@ const gt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
|
1478
1490
|
dispatch: t
|
|
1479
1491
|
}) => {
|
|
1480
1492
|
t({
|
|
1481
|
-
type:
|
|
1493
|
+
type: mt
|
|
1482
1494
|
}), typeof e == "function" && e();
|
|
1483
|
-
},
|
|
1495
|
+
}, He = ({
|
|
1484
1496
|
children: e,
|
|
1485
1497
|
clearAnnouncementDelay: t,
|
|
1486
1498
|
clearAnnouncementTimeoutRef: r,
|
|
@@ -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,7 +1543,7 @@ function ea({
|
|
|
1531
1543
|
visible: c,
|
|
1532
1544
|
...d
|
|
1533
1545
|
}) {
|
|
1534
|
-
const g = k(null),
|
|
1546
|
+
const g = k(null), m = k(null), [h, u] = Q(Xr, {
|
|
1535
1547
|
announcement: null
|
|
1536
1548
|
});
|
|
1537
1549
|
let p = r;
|
|
@@ -1541,9 +1553,9 @@ function ea({
|
|
|
1541
1553
|
announcementDelay: o,
|
|
1542
1554
|
children: e,
|
|
1543
1555
|
clearAnnouncementDelay: n,
|
|
1544
|
-
clearAnnouncementTimeoutRef:
|
|
1556
|
+
clearAnnouncementTimeoutRef: m,
|
|
1545
1557
|
onAnnouncementClear: i,
|
|
1546
|
-
dispatch:
|
|
1558
|
+
dispatch: u
|
|
1547
1559
|
});
|
|
1548
1560
|
}, [
|
|
1549
1561
|
e,
|
|
@@ -1676,9 +1688,9 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1676
1688
|
leftElement: d,
|
|
1677
1689
|
rightElement: g
|
|
1678
1690
|
}) => {
|
|
1679
|
-
const
|
|
1691
|
+
const m = 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,7 +1705,7 @@ 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
|
+
), u = r ? void 0 : "sr-only", p = na({
|
|
1697
1709
|
disabled: o,
|
|
1698
1710
|
raw: r,
|
|
1699
1711
|
error: i,
|
|
@@ -1705,11 +1717,11 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1705
1717
|
raw: r,
|
|
1706
1718
|
mode: c,
|
|
1707
1719
|
disabled: o
|
|
1708
|
-
}), f = r ? void 0 : s(
|
|
1720
|
+
}), f = r ? void 0 : s(Gr, "absolute"), y = r ? void 0 : s(Fr, "absolute");
|
|
1709
1721
|
return {
|
|
1710
|
-
wrapper:
|
|
1722
|
+
wrapper: m,
|
|
1711
1723
|
textArea: h,
|
|
1712
|
-
accessibleLabel:
|
|
1724
|
+
accessibleLabel: u,
|
|
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
|
+
}, ut = I.forwardRef(
|
|
1735
1747
|
({
|
|
1736
1748
|
id: e,
|
|
1737
1749
|
name: t,
|
|
@@ -1743,21 +1755,21 @@ const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
1743
1755
|
mode: c = "system",
|
|
1744
1756
|
focusMode: d = "system",
|
|
1745
1757
|
value: g,
|
|
1746
|
-
defaultValue:
|
|
1758
|
+
defaultValue: m,
|
|
1747
1759
|
disabled: h = !1,
|
|
1748
|
-
noBorder:
|
|
1760
|
+
noBorder: u = !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
|
-
},
|
|
1759
|
-
var
|
|
1760
|
-
const
|
|
1770
|
+
}, z) => {
|
|
1771
|
+
var Te;
|
|
1772
|
+
const B = k(null), xt = jr([z, B]), [_t, J] = Pe(), [wt, V] = Pe(), re = k(80), Ee = k(-25), M = 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: u,
|
|
1770
1782
|
mode: c,
|
|
1771
1783
|
rightElement: !!y,
|
|
1772
1784
|
leftElement: !!_
|
|
1773
|
-
}), [
|
|
1785
|
+
}), [A, Ct] = Kr({
|
|
1774
1786
|
value: g,
|
|
1775
1787
|
initialControlledDelay: 20,
|
|
1776
|
-
defaultValue:
|
|
1788
|
+
defaultValue: m,
|
|
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 P(() => {
|
|
1804
|
+
J && J.width && Nt(J.width + 18 + 10);
|
|
1805
|
+
}, [J]), P(() => {
|
|
1806
|
+
V && V.width && Tt(V.width + 18 + 10);
|
|
1807
|
+
}, [V]), P(() => {
|
|
1808
|
+
o || B && B.current && A !== void 0 && (B.current.style.height = "inherit", B.current.style.height = B.current.scrollHeight + "px");
|
|
1809
|
+
}, [A, o]), P(() => {
|
|
1798
1810
|
o || setTimeout(() => {
|
|
1799
1811
|
var C;
|
|
1800
|
-
(C =
|
|
1812
|
+
(C = M == null ? void 0 : M.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]), P(() => {
|
|
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 = M == null ? void 0 : M.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]), V.width > 0 && ((Te = M == null ? void 0 : M.current) == null || Te.style.setProperty(
|
|
1823
1835
|
"--tw-translate-x",
|
|
1824
|
-
`${12 +
|
|
1836
|
+
`${12 + V.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: M,
|
|
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
|
+
ut.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 } = $(F), n = k(null), i = k(!1), c = (d) => {
|
|
1908
1920
|
d.preventDefault(), o({
|
|
1909
1921
|
type: qe
|
|
1910
1922
|
});
|
|
@@ -1931,43 +1943,43 @@ const ca = ({
|
|
|
1931
1943
|
streaming: t
|
|
1932
1944
|
}
|
|
1933
1945
|
});
|
|
1934
|
-
},
|
|
1946
|
+
}, Ge = (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: Vt
|
|
1941
1953
|
}
|
|
1942
1954
|
}
|
|
1943
1955
|
});
|
|
1944
1956
|
}, da = () => {
|
|
1945
|
-
const { state: e, dispatch: t } =
|
|
1957
|
+
const { state: e, dispatch: t } = $(F), { state: r, dispatch: a } = $(ve), [o, n] = S(""), { getAccessToken: i, user: c } = Z(), d = k(null), g = k(
|
|
1946
1958
|
null
|
|
1947
1959
|
);
|
|
1948
1960
|
x(() => {
|
|
1949
1961
|
(async () => {
|
|
1950
|
-
var
|
|
1962
|
+
var u;
|
|
1951
1963
|
if (!e || e.messages.length === 0) {
|
|
1952
|
-
(
|
|
1964
|
+
(u = g == null ? void 0 : g.current) == null || u.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 === Mt || h.message.role === he || h.message.role === Ot))
|
|
1957
1969
|
try {
|
|
1958
|
-
const p = await
|
|
1970
|
+
const p = await Vr({
|
|
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 =
|
|
1982
|
+
const b = ke();
|
|
1971
1983
|
g.current = p.body.getReader();
|
|
1972
1984
|
const f = new TextDecoder();
|
|
1973
1985
|
for (; ; ) {
|
|
@@ -1977,13 +1989,13 @@ const ca = ({
|
|
|
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,21 +2018,21 @@ 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
|
+
Ge(t);
|
|
2018
2030
|
} catch (p) {
|
|
2019
|
-
console.error(p),
|
|
2031
|
+
console.error(p), Ge(t);
|
|
2020
2032
|
}
|
|
2021
2033
|
})();
|
|
2022
2034
|
}, [e == null ? void 0 : e.messages]);
|
|
2023
|
-
const
|
|
2035
|
+
const m = async (h) => {
|
|
2024
2036
|
h.preventDefault(), t({
|
|
2025
2037
|
type: q,
|
|
2026
2038
|
payload: {
|
|
@@ -2034,28 +2046,28 @@ const ca = ({
|
|
|
2034
2046
|
return x(() => {
|
|
2035
2047
|
if (r.tag !== "") {
|
|
2036
2048
|
const h = r.tag.endsWith(":") && !r.tag.endsWith(": ") ? r.tag + " " : r.tag;
|
|
2037
|
-
h.indexOf(
|
|
2038
|
-
n(h.replace(
|
|
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
|
});
|
|
2042
2054
|
}
|
|
2043
2055
|
}, [r, a]), x(() => {
|
|
2044
2056
|
e && e.usage === 0 && e.messages.length === 0 && d.current && d.current.focus();
|
|
2045
|
-
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit:
|
|
2046
|
-
|
|
2057
|
+
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: m, children: /* @__PURE__ */ l(
|
|
2058
|
+
ut,
|
|
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,
|
|
2056
2068
|
value: o,
|
|
2057
2069
|
onChange: (h) => n(h.target.value),
|
|
2058
|
-
onKeyDown: nr([["mod+Enter",
|
|
2070
|
+
onKeyDown: nr([["mod+Enter", m]]),
|
|
2059
2071
|
leftElement: /* @__PURE__ */ l(ca, {}),
|
|
2060
2072
|
rightElement: /* @__PURE__ */ l(
|
|
2061
2073
|
tt,
|
|
@@ -2065,13 +2077,13 @@ const ca = ({
|
|
|
2065
2077
|
type: "submit",
|
|
2066
2078
|
mode: "light",
|
|
2067
2079
|
focusMode: "light",
|
|
2068
|
-
children:
|
|
2080
|
+
children: Dt
|
|
2069
2081
|
}
|
|
2070
2082
|
)
|
|
2071
2083
|
}
|
|
2072
2084
|
) }) });
|
|
2073
2085
|
}, ga = () => {
|
|
2074
|
-
const { dispatch: e, state: t } =
|
|
2086
|
+
const { dispatch: e, state: t } = $(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
|
|
2075
2087
|
loaded: !1
|
|
2076
2088
|
}), i = "mt-2 flex justify-center rounded-md", c = (d, g) => {
|
|
2077
2089
|
d.preventDefault(), e({
|
|
@@ -2108,7 +2120,7 @@ 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(Pt, { alignHorizontal: "center", columnGap: 2, children: o && o.loaded && t.tags && t.tags.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,
|
|
@@ -2119,8 +2131,8 @@ const ca = ({
|
|
|
2119
2131
|
children: d.label
|
|
2120
2132
|
}
|
|
2121
2133
|
) }) }, `tag-button-${d.slot}`)) }) });
|
|
2122
|
-
},
|
|
2123
|
-
const { state: e } =
|
|
2134
|
+
}, ma = () => {
|
|
2135
|
+
const { state: e } = $(F), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
|
|
2124
2136
|
r ? "bottom-10" : "top-[245px]"
|
|
2125
2137
|
);
|
|
2126
2138
|
return x(() => {
|
|
@@ -2142,19 +2154,19 @@ const ca = ({
|
|
|
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 ua = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link", ha = ({
|
|
2158
2170
|
type: e,
|
|
2159
2171
|
size: t,
|
|
2160
2172
|
labelRight: r,
|
|
@@ -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
|
|
@@ -2386,34 +2398,34 @@ const ma = "av-bubble", Fe = "av-button", te = "icon", ht = "button", ge = "link
|
|
|
2386
2398
|
size: c,
|
|
2387
2399
|
noBorder: d,
|
|
2388
2400
|
labelRight: g,
|
|
2389
|
-
labelLeft:
|
|
2401
|
+
labelLeft: m,
|
|
2390
2402
|
noBackground: h,
|
|
2391
|
-
variant:
|
|
2403
|
+
variant: u,
|
|
2392
2404
|
noTruncate: p,
|
|
2393
2405
|
align: b,
|
|
2394
2406
|
radius: f
|
|
2395
|
-
}) => (
|
|
2407
|
+
}) => (u || (u = "primary"), r ? s(Fe, t) : s(
|
|
2396
2408
|
Fe,
|
|
2397
2409
|
ba({
|
|
2398
2410
|
mode: a,
|
|
2399
|
-
variant:
|
|
2411
|
+
variant: u,
|
|
2400
2412
|
noBackground: h,
|
|
2401
2413
|
noTruncate: p
|
|
2402
2414
|
}),
|
|
2403
|
-
ya({ mode: a, noBackground: h, variant:
|
|
2415
|
+
ya({ mode: a, noBackground: h, variant: u }),
|
|
2404
2416
|
fa({ radius: f }),
|
|
2405
2417
|
ha({
|
|
2406
2418
|
type: e,
|
|
2407
2419
|
size: c,
|
|
2408
2420
|
labelRight: g,
|
|
2409
|
-
labelLeft:
|
|
2421
|
+
labelLeft: m,
|
|
2410
2422
|
align: b
|
|
2411
2423
|
}),
|
|
2412
|
-
pa({ type: e, size: c, labelRight: g, labelLeft:
|
|
2413
|
-
xa({ mode: a, variant:
|
|
2424
|
+
pa({ type: e, size: c, labelRight: g, labelLeft: m }),
|
|
2425
|
+
xa({ mode: a, variant: u, noBorder: d }),
|
|
2414
2426
|
_a({ focusMode: o }),
|
|
2415
|
-
|
|
2416
|
-
|
|
2427
|
+
ka({ mode: a, variant: u, disabled: n }),
|
|
2428
|
+
va({ mode: a, variant: u, disabled: n }),
|
|
2417
2429
|
{
|
|
2418
2430
|
"w-full": i,
|
|
2419
2431
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
@@ -2448,16 +2460,16 @@ const bt = I.forwardRef(
|
|
|
2448
2460
|
raw: c = !1,
|
|
2449
2461
|
noBorder: d = !1,
|
|
2450
2462
|
"aria-label": g,
|
|
2451
|
-
label:
|
|
2463
|
+
label: m,
|
|
2452
2464
|
size: h = "medium",
|
|
2453
|
-
labelRight:
|
|
2465
|
+
labelRight: u,
|
|
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: u,
|
|
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": g ||
|
|
2491
|
-
...
|
|
2502
|
+
"aria-label": g || m,
|
|
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
|
+
u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
|
|
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,
|
|
@@ -2524,16 +2536,16 @@ const Ta = I.forwardRef(
|
|
|
2524
2536
|
raw: c = !1,
|
|
2525
2537
|
noBorder: d = !1,
|
|
2526
2538
|
"aria-label": g,
|
|
2527
|
-
label:
|
|
2539
|
+
label: m,
|
|
2528
2540
|
size: h = "medium",
|
|
2529
|
-
labelRight:
|
|
2541
|
+
labelRight: u,
|
|
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: u,
|
|
2548
2560
|
labelLeft: p,
|
|
2549
2561
|
noBackground: b,
|
|
2550
2562
|
align: f,
|
|
@@ -2554,7 +2566,7 @@ const Ta = I.forwardRef(
|
|
|
2554
2566
|
"text-copy-light": r === "dark" && !c,
|
|
2555
2567
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
2556
2568
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
2557
|
-
}),
|
|
2569
|
+
}), z = y ? s(
|
|
2558
2570
|
"relative",
|
|
2559
2571
|
"focus-within:static",
|
|
2560
2572
|
"focus-within:after:border-transparent",
|
|
@@ -2571,25 +2583,25 @@ const Ta = I.forwardRef(
|
|
|
2571
2583
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
2572
2584
|
}
|
|
2573
2585
|
) : "";
|
|
2574
|
-
return /* @__PURE__ */ l("div", { className:
|
|
2586
|
+
return /* @__PURE__ */ l("div", { className: z, 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": g ||
|
|
2582
|
-
...
|
|
2593
|
+
"aria-label": g || m,
|
|
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
|
+
u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
|
|
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,
|
|
@@ -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
|
+
ua,
|
|
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,7 +2757,7 @@ 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, g] = S(!1),
|
|
2760
|
+
const [d, g] = S(!1), m = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), u = () => {
|
|
2742
2761
|
g(!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(() => {
|
|
@@ -2748,17 +2767,17 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2748
2767
|
}, 3e3)), () => {
|
|
2749
2768
|
clearTimeout(p);
|
|
2750
2769
|
};
|
|
2751
|
-
}, [d]), /* @__PURE__ */ v("div", { className:
|
|
2770
|
+
}, [d]), /* @__PURE__ */ v("div", { className: m.wrapper, children: [
|
|
2752
2771
|
/* @__PURE__ */ v("div", { children: [
|
|
2753
|
-
/* @__PURE__ */ l("div", { className:
|
|
2754
|
-
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className:
|
|
2772
|
+
/* @__PURE__ */ l("div", { className: m.main, children: e }),
|
|
2773
|
+
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: m.footer, children: [
|
|
2755
2774
|
p,
|
|
2756
2775
|
": ",
|
|
2757
2776
|
a[p]
|
|
2758
2777
|
] }) }, `-${p}`) : null),
|
|
2759
2778
|
o && o
|
|
2760
2779
|
] }),
|
|
2761
|
-
h && /* @__PURE__ */ l("div", { className:
|
|
2780
|
+
h && /* @__PURE__ */ l("div", { className: m.copyButton, children: /* @__PURE__ */ l(
|
|
2762
2781
|
bt,
|
|
2763
2782
|
{
|
|
2764
2783
|
noBorder: !0,
|
|
@@ -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: u,
|
|
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",
|
|
2795
|
+
}, We = "av-button", _e = "icon", we = "button", me = "link", Aa = ({
|
|
2777
2796
|
type: e,
|
|
2778
2797
|
size: t,
|
|
2779
2798
|
labelRight: r,
|
|
@@ -2783,7 +2802,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2783
2802
|
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";
|
|
2784
2803
|
switch (e) {
|
|
2785
2804
|
case we:
|
|
2786
|
-
case
|
|
2805
|
+
case me:
|
|
2787
2806
|
return s({
|
|
2788
2807
|
[n]: t === "small",
|
|
2789
2808
|
[i]: t === "medium",
|
|
@@ -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,
|
|
@@ -2811,9 +2830,9 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2811
2830
|
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2812
2831
|
switch (e) {
|
|
2813
2832
|
case we:
|
|
2814
|
-
case
|
|
2833
|
+
case me:
|
|
2815
2834
|
return s({
|
|
2816
|
-
"text-center": e ===
|
|
2835
|
+
"text-center": e === me,
|
|
2817
2836
|
[o]: t === "small",
|
|
2818
2837
|
[n]: t === "medium",
|
|
2819
2838
|
[i]: t === "large"
|
|
@@ -2825,7 +2844,7 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
2825
2844
|
[i]: t === "large" && (r || a)
|
|
2826
2845
|
});
|
|
2827
2846
|
}
|
|
2828
|
-
},
|
|
2847
|
+
}, za = ({
|
|
2829
2848
|
mode: e,
|
|
2830
2849
|
noBackground: t,
|
|
2831
2850
|
noTruncate: 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
|
+
}, Ma = ({
|
|
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
|
+
}, Da = ({
|
|
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
|
+
}, Va = ({
|
|
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
|
+
}, Pa = ({
|
|
2991
3010
|
focusMode: e
|
|
2992
3011
|
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2993
3012
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -3005,57 +3024,57 @@ const Sa = () => "p-4 max-w-xs sm:max-w-md md:max-w-2xl", Ca = ({ kind: e }) =>
|
|
|
3005
3024
|
size: c,
|
|
3006
3025
|
noBorder: d,
|
|
3007
3026
|
labelRight: g,
|
|
3008
|
-
labelLeft:
|
|
3027
|
+
labelLeft: m,
|
|
3009
3028
|
noBackground: h,
|
|
3010
|
-
variant:
|
|
3029
|
+
variant: u,
|
|
3011
3030
|
noTruncate: p,
|
|
3012
3031
|
align: b,
|
|
3013
3032
|
radius: f
|
|
3014
|
-
}) => (
|
|
3033
|
+
}) => (u || (u = "primary"), r ? s(We, t) : s(
|
|
3015
3034
|
We,
|
|
3016
|
-
|
|
3035
|
+
za({
|
|
3017
3036
|
mode: a,
|
|
3018
|
-
variant:
|
|
3037
|
+
variant: u,
|
|
3019
3038
|
noBackground: h,
|
|
3020
3039
|
noTruncate: p
|
|
3021
3040
|
}),
|
|
3022
|
-
|
|
3041
|
+
Ma({ mode: a, noBackground: h, variant: u }),
|
|
3023
3042
|
Oa({ radius: f }),
|
|
3024
|
-
|
|
3043
|
+
Aa({
|
|
3025
3044
|
type: e,
|
|
3026
3045
|
size: c,
|
|
3027
3046
|
labelRight: g,
|
|
3028
|
-
labelLeft:
|
|
3047
|
+
labelLeft: m,
|
|
3029
3048
|
align: b
|
|
3030
3049
|
}),
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3050
|
+
La({ type: e, size: c, labelRight: g, labelLeft: m }),
|
|
3051
|
+
Va({ mode: a, variant: u, noBorder: d }),
|
|
3052
|
+
Pa({ focusMode: o }),
|
|
3053
|
+
Ua({ mode: a, variant: u, disabled: n }),
|
|
3054
|
+
Da({ mode: a, variant: u, 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,
|
|
@@ -3067,9 +3086,9 @@ const vt = I.forwardRef(
|
|
|
3067
3086
|
raw: c = !1,
|
|
3068
3087
|
noBorder: d = !1,
|
|
3069
3088
|
variant: g = "primary",
|
|
3070
|
-
noTruncate:
|
|
3089
|
+
noTruncate: m = !1,
|
|
3071
3090
|
radius: h = "large",
|
|
3072
|
-
...
|
|
3091
|
+
...u
|
|
3073
3092
|
}, p) => {
|
|
3074
3093
|
const b = ft({
|
|
3075
3094
|
type: we,
|
|
@@ -3082,36 +3101,36 @@ const vt = I.forwardRef(
|
|
|
3082
3101
|
size: i,
|
|
3083
3102
|
noBorder: d,
|
|
3084
3103
|
variant: g,
|
|
3085
|
-
noTruncate:
|
|
3104
|
+
noTruncate: m,
|
|
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
|
+
...u,
|
|
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 Ga = I.forwardRef(
|
|
3115
3134
|
({
|
|
3116
3135
|
children: e,
|
|
3117
3136
|
disabled: t = !1,
|
|
@@ -3123,16 +3142,16 @@ const Pa = I.forwardRef(
|
|
|
3123
3142
|
raw: c = !1,
|
|
3124
3143
|
noBorder: d = !1,
|
|
3125
3144
|
"aria-label": g,
|
|
3126
|
-
label:
|
|
3145
|
+
label: m,
|
|
3127
3146
|
size: h = "medium",
|
|
3128
|
-
labelRight:
|
|
3147
|
+
labelRight: u,
|
|
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: u,
|
|
3147
3166
|
labelLeft: p,
|
|
3148
3167
|
noBackground: b,
|
|
3149
3168
|
align: f,
|
|
@@ -3153,7 +3172,7 @@ const Pa = I.forwardRef(
|
|
|
3153
3172
|
"text-copy-light": r === "dark" && !c,
|
|
3154
3173
|
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
3155
3174
|
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
3156
|
-
}),
|
|
3175
|
+
}), z = y ? s(
|
|
3157
3176
|
"relative",
|
|
3158
3177
|
"focus-within:static",
|
|
3159
3178
|
"focus-within:after:border-transparent",
|
|
@@ -3170,25 +3189,25 @@ const Pa = I.forwardRef(
|
|
|
3170
3189
|
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
3171
3190
|
}
|
|
3172
3191
|
) : "";
|
|
3173
|
-
return /* @__PURE__ */ l("div", { className:
|
|
3174
|
-
|
|
3192
|
+
return /* @__PURE__ */ l("div", { className: z, children: /* @__PURE__ */ v(
|
|
3193
|
+
Ne,
|
|
3175
3194
|
{
|
|
3176
|
-
ref:
|
|
3195
|
+
ref: T,
|
|
3177
3196
|
className: R,
|
|
3178
3197
|
disabled: t,
|
|
3179
3198
|
type: i,
|
|
3180
|
-
"aria-label": g ||
|
|
3181
|
-
...
|
|
3199
|
+
"aria-label": g || m,
|
|
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
|
+
u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
|
|
3186
3205
|
]
|
|
3187
3206
|
}
|
|
3188
3207
|
) });
|
|
3189
3208
|
}
|
|
3190
3209
|
);
|
|
3191
|
-
|
|
3210
|
+
Ga.displayName = "ButtonSort";
|
|
3192
3211
|
const Fa = 200, Wa = ({
|
|
3193
3212
|
string: e,
|
|
3194
3213
|
idealLength: t = Fa
|
|
@@ -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.DpLJVr9t.js"
|
|
3252
3271
|
).then((e) => e.MessageAssistant)
|
|
3253
3272
|
), qa = () => {
|
|
3254
|
-
const { state: e } =
|
|
3273
|
+
const { state: e } = $(F);
|
|
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,34 +3285,34 @@ const je = rt(
|
|
|
3266
3285
|
`${r}-${a}`
|
|
3267
3286
|
) : null;
|
|
3268
3287
|
}),
|
|
3269
|
-
|
|
3288
|
+
Gt(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 } = $(F), [r, a] = S(!1), [o, n] = dr(), i = Ft({
|
|
3273
3292
|
isAuthenticated: e,
|
|
3274
3293
|
extraClass: "rounded-b-md"
|
|
3275
|
-
}), c = k(!1), d =
|
|
3276
|
-
const
|
|
3277
|
-
if (
|
|
3278
|
-
const { scrollHeight: h, clientHeight:
|
|
3279
|
-
|
|
3294
|
+
}), c = k(!1), d = D(() => {
|
|
3295
|
+
const m = o.current;
|
|
3296
|
+
if (m) {
|
|
3297
|
+
const { scrollHeight: h, clientHeight: u, scrollTop: p } = m, b = h - u - p;
|
|
3298
|
+
m.scrollBy({
|
|
3280
3299
|
top: b,
|
|
3281
3300
|
behavior: "smooth"
|
|
3282
3301
|
});
|
|
3283
3302
|
}
|
|
3284
|
-
}, [o]), g =
|
|
3285
|
-
const
|
|
3286
|
-
if (
|
|
3287
|
-
const { scrollTop: h, scrollHeight:
|
|
3303
|
+
}, [o]), g = D(() => {
|
|
3304
|
+
const m = o.current;
|
|
3305
|
+
if (m) {
|
|
3306
|
+
const { scrollTop: h, scrollHeight: u, clientHeight: p } = m, b = u > p, f = h + p >= u - 1;
|
|
3288
3307
|
a(b && !f);
|
|
3289
3308
|
}
|
|
3290
3309
|
}, [o]);
|
|
3291
|
-
return
|
|
3310
|
+
return P(() => {
|
|
3292
3311
|
n && n.width && t && !t.streaming && g();
|
|
3293
3312
|
}, [n, t, g]), x(() => {
|
|
3294
|
-
const
|
|
3295
|
-
if (
|
|
3296
|
-
return
|
|
3313
|
+
const m = o.current;
|
|
3314
|
+
if (m)
|
|
3315
|
+
return m.addEventListener("scroll", g), () => m.removeEventListener("scroll", g);
|
|
3297
3316
|
}, [g, o]), x(() => {
|
|
3298
3317
|
t && t.streaming && g();
|
|
3299
3318
|
}, [t, g]), x(() => {
|
|
@@ -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.RG5VcCoN.js"
|
|
3330
3349
|
)
|
|
3331
3350
|
);
|
|
3332
|
-
function
|
|
3333
|
-
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] =
|
|
3334
|
-
key:
|
|
3351
|
+
function vt({ isComponent: e = !1 }) {
|
|
3352
|
+
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] = Ue({
|
|
3353
|
+
key: ze + qt,
|
|
3335
3354
|
initialValue: ""
|
|
3336
|
-
}), [i] =
|
|
3337
|
-
key:
|
|
3355
|
+
}), [i] = Ue({
|
|
3356
|
+
key: ze + Kt,
|
|
3338
3357
|
initialValue: j.ASC
|
|
3339
|
-
}), [c, d] = Q(
|
|
3340
|
-
id:
|
|
3341
|
-
model:
|
|
3342
|
-
engine:
|
|
3358
|
+
}), [c, d] = Q(Mr, {
|
|
3359
|
+
id: ke(),
|
|
3360
|
+
model: U,
|
|
3361
|
+
engine: U,
|
|
3343
3362
|
usage: 0,
|
|
3344
3363
|
messages: [],
|
|
3345
3364
|
tags: [],
|
|
3346
3365
|
isComponent: e
|
|
3347
|
-
}), [g,
|
|
3366
|
+
}), [g, m] = Q(Or, {
|
|
3348
3367
|
searchString: n,
|
|
3349
3368
|
sortedCell: "timestamp",
|
|
3350
3369
|
sortDirection: i
|
|
3351
|
-
}), [h,
|
|
3370
|
+
}), [h, u] = Q(Ur, {
|
|
3352
3371
|
tag: "",
|
|
3353
3372
|
tags: []
|
|
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
|
}
|
|
@@ -3385,16 +3404,16 @@ function kt({ isComponent: e = !1 }) {
|
|
|
3385
3404
|
(_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
|
|
3386
3405
|
}, 500);
|
|
3387
3406
|
}), /* @__PURE__ */ l(F.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
|
|
3388
|
-
|
|
3407
|
+
Pr.Provider,
|
|
3389
3408
|
{
|
|
3390
3409
|
value: {
|
|
3391
3410
|
state: g,
|
|
3392
|
-
dispatch:
|
|
3411
|
+
dispatch: m
|
|
3393
3412
|
},
|
|
3394
3413
|
children: /* @__PURE__ */ v(
|
|
3395
|
-
|
|
3414
|
+
ve.Provider,
|
|
3396
3415
|
{
|
|
3397
|
-
value: { state: h, dispatch:
|
|
3416
|
+
value: { state: h, dispatch: u },
|
|
3398
3417
|
children: [
|
|
3399
3418
|
/* @__PURE__ */ l(
|
|
3400
3419
|
tr,
|
|
@@ -3403,47 +3422,47 @@ 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
|
-
/* @__PURE__ */ l(
|
|
3442
|
+
/* @__PURE__ */ l(ma, {})
|
|
3424
3443
|
]
|
|
3425
3444
|
}
|
|
3426
3445
|
)
|
|
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
3453
|
F as AppContext,
|
|
3435
|
-
|
|
3436
|
-
|
|
3454
|
+
Ue as E,
|
|
3455
|
+
Pr as HistoryContext,
|
|
3437
3456
|
ca as NewChatButton,
|
|
3438
|
-
|
|
3457
|
+
ut as Pe,
|
|
3439
3458
|
it as SERVICE_TYPES,
|
|
3440
|
-
|
|
3459
|
+
ve 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,
|