@versini/sassysaint 5.5.21 → 5.5.23
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.CpMFbCku.js +4133 -0
- package/dist/chunks/{HeaderToolbar.B4yR6iL0.js → HeaderToolbar.BlpFAHv2.js} +2385 -2486
- package/dist/chunks/{MarkdownWithExtra.BV7XoKnH.js → MarkdownWithExtra.8drtC5Zg.js} +2 -2
- package/dist/chunks/{MessageAssistant.Dv5-gw8Q.js → MessageAssistant.TBLReeCB.js} +24 -24
- package/dist/chunks/{index.CEwE7VpW.js → index.-EILV3b7.js} +37 -39
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
- package/dist/chunks/App.DhOL7eGv.js +0 -3472
|
@@ -1,3472 +0,0 @@
|
|
|
1
|
-
import { jsxs as v, jsx as l, Fragment as Y } from "react/jsx-runtime";
|
|
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.CEwE7VpW.js";
|
|
3
|
-
import s from "clsx";
|
|
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
|
-
const Xt = ({
|
|
6
|
-
className: e,
|
|
7
|
-
viewBox: t,
|
|
8
|
-
title: r,
|
|
9
|
-
monotone: a,
|
|
10
|
-
...o
|
|
11
|
-
}) => /* @__PURE__ */ v(
|
|
12
|
-
ge,
|
|
13
|
-
{
|
|
14
|
-
defaultViewBox: "0 0 448 512",
|
|
15
|
-
size: "size-5",
|
|
16
|
-
viewBox: t,
|
|
17
|
-
className: e,
|
|
18
|
-
title: r || "Add",
|
|
19
|
-
...o,
|
|
20
|
-
children: [
|
|
21
|
-
/* @__PURE__ */ l("path", { className: "fa-secondary", opacity: a ? "1" : "0.4", d: "" }),
|
|
22
|
-
/* @__PURE__ */ l(
|
|
23
|
-
"path",
|
|
24
|
-
{
|
|
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"
|
|
27
|
-
}
|
|
28
|
-
)
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
), Yt = ({
|
|
32
|
-
className: e,
|
|
33
|
-
viewBox: t,
|
|
34
|
-
title: r,
|
|
35
|
-
monotone: a,
|
|
36
|
-
...o
|
|
37
|
-
}) => /* @__PURE__ */ l(
|
|
38
|
-
ge,
|
|
39
|
-
{
|
|
40
|
-
defaultViewBox: "0 0 384 512",
|
|
41
|
-
size: "size-5",
|
|
42
|
-
viewBox: t,
|
|
43
|
-
className: e,
|
|
44
|
-
title: r || "Close",
|
|
45
|
-
...o,
|
|
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
|
-
}
|
|
48
|
-
), Zt = ({
|
|
49
|
-
className: e,
|
|
50
|
-
viewBox: t,
|
|
51
|
-
title: r,
|
|
52
|
-
monotone: a,
|
|
53
|
-
...o
|
|
54
|
-
}) => /* @__PURE__ */ l(
|
|
55
|
-
ge,
|
|
56
|
-
{
|
|
57
|
-
defaultViewBox: "0 0 384 512",
|
|
58
|
-
size: "size-5",
|
|
59
|
-
viewBox: t,
|
|
60
|
-
className: e,
|
|
61
|
-
title: r || "Down",
|
|
62
|
-
...o,
|
|
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" })
|
|
64
|
-
}
|
|
65
|
-
);
|
|
66
|
-
/*!
|
|
67
|
-
@versini/ui-header v3.0.0
|
|
68
|
-
© 2025 gizmette.com
|
|
69
|
-
*/
|
|
70
|
-
try {
|
|
71
|
-
window.__VERSINI_UI_HEADER__ || (window.__VERSINI_UI_HEADER__ = {
|
|
72
|
-
version: "3.0.0",
|
|
73
|
-
buildTime: "01/03/2025 10:45 AM EST",
|
|
74
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
75
|
-
license: "MIT"
|
|
76
|
-
});
|
|
77
|
-
} catch {
|
|
78
|
-
}
|
|
79
|
-
const er = "av-header", tr = ({
|
|
80
|
-
children: e,
|
|
81
|
-
className: t,
|
|
82
|
-
raw: r = !1,
|
|
83
|
-
mode: a = "system",
|
|
84
|
-
noColors: o = !1,
|
|
85
|
-
sticky: n = !1,
|
|
86
|
-
noBorder: i = !1,
|
|
87
|
-
noMargin: c = !1,
|
|
88
|
-
noPadding: d = !1
|
|
89
|
-
}) => {
|
|
90
|
-
const m = s(
|
|
91
|
-
er,
|
|
92
|
-
{
|
|
93
|
-
"border-border-accent": a === "dark" && !r && !o && !i,
|
|
94
|
-
"border-border-medium": a === "light" && !r && !o && !i,
|
|
95
|
-
"border-border-accent dark:border-border-medium": a === "alt-system" && !r && !o && !i,
|
|
96
|
-
"border-border-medium dark:border-border-accent": a === "system" && !r && !o && !i,
|
|
97
|
-
"border-b-4": !r && !i,
|
|
98
|
-
"border-transparent": !r && o,
|
|
99
|
-
"bg-surface-dark": a === "dark" && !r && !o,
|
|
100
|
-
"bg-surface-light": a === "light" && !r && !o,
|
|
101
|
-
"bg-surface-dark dark:bg-surface-light": a === "alt-system" && !r && !o,
|
|
102
|
-
"bg-surface-light dark:bg-surface-dark": a === "system" && !r && !o,
|
|
103
|
-
"sticky top-0 z-50": n
|
|
104
|
-
},
|
|
105
|
-
t
|
|
106
|
-
), u = s({
|
|
107
|
-
"mt-0": !c,
|
|
108
|
-
"p-2": !d,
|
|
109
|
-
"flex flex-col w-full md:mx-auto md:max-w-4xl": !r
|
|
110
|
-
});
|
|
111
|
-
return /* @__PURE__ */ l("header", { className: m, children: /* @__PURE__ */ l("div", { className: u, children: e }) });
|
|
112
|
-
};
|
|
113
|
-
function rr(e) {
|
|
114
|
-
const t = e.toLowerCase().split("+").map((n) => n.trim()), r = {
|
|
115
|
-
alt: t.includes("alt"),
|
|
116
|
-
ctrl: t.includes("ctrl"),
|
|
117
|
-
meta: t.includes("meta"),
|
|
118
|
-
mod: t.includes("mod"),
|
|
119
|
-
shift: t.includes("shift")
|
|
120
|
-
}, a = ["alt", "ctrl", "meta", "shift", "mod"], o = t.find((n) => !a.includes(n));
|
|
121
|
-
return {
|
|
122
|
-
...r,
|
|
123
|
-
key: o
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
function ar(e, t) {
|
|
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;
|
|
128
|
-
if (r !== d)
|
|
129
|
-
return !1;
|
|
130
|
-
if (n) {
|
|
131
|
-
if (!m && !u)
|
|
132
|
-
return !1;
|
|
133
|
-
} else if (a !== m || o !== u)
|
|
134
|
-
return !1;
|
|
135
|
-
return i !== h ? !1 : !!(c && (g.toLowerCase() === c.toLowerCase() || t.code.replace("Key", "").toLowerCase() === c.toLowerCase()));
|
|
136
|
-
}
|
|
137
|
-
function or(e) {
|
|
138
|
-
return (t) => ar(rr(e), t);
|
|
139
|
-
}
|
|
140
|
-
function nr(e) {
|
|
141
|
-
return (t) => {
|
|
142
|
-
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
143
|
-
e.forEach(([a, o, n = { preventDefault: !0 }]) => {
|
|
144
|
-
or(a)(r) && (n.preventDefault && t.preventDefault(), o(r));
|
|
145
|
-
});
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
function sr() {
|
|
149
|
-
const e = k(!1);
|
|
150
|
-
return x(() => (e.current = !0, () => {
|
|
151
|
-
e.current = !1;
|
|
152
|
-
}), []), P(() => e.current, []);
|
|
153
|
-
}
|
|
154
|
-
function at(e, t) {
|
|
155
|
-
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
156
|
-
}
|
|
157
|
-
const ze = (e, t) => {
|
|
158
|
-
const r = JSON.stringify(
|
|
159
|
-
typeof t == "function" ? t() : t
|
|
160
|
-
);
|
|
161
|
-
window.localStorage.setItem(e, r), at(e, r);
|
|
162
|
-
}, ir = (e) => {
|
|
163
|
-
window.localStorage.removeItem(e), at(e, null);
|
|
164
|
-
}, Oe = (e) => window.localStorage.getItem(e), lr = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
165
|
-
function Ue({
|
|
166
|
-
key: e,
|
|
167
|
-
initialValue: t
|
|
168
|
-
}) {
|
|
169
|
-
const r = Jt(lr, () => Oe(e)), a = P(
|
|
170
|
-
(i) => {
|
|
171
|
-
try {
|
|
172
|
-
const c = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
173
|
-
c == null ? ir(e) : ze(e, c);
|
|
174
|
-
} catch (c) {
|
|
175
|
-
console.warn(c);
|
|
176
|
-
}
|
|
177
|
-
},
|
|
178
|
-
[e, r]
|
|
179
|
-
), o = P(() => {
|
|
180
|
-
a(t);
|
|
181
|
-
}, [t, a]), n = P(() => {
|
|
182
|
-
a(null);
|
|
183
|
-
}, [a]);
|
|
184
|
-
return x(() => {
|
|
185
|
-
try {
|
|
186
|
-
Oe(e) === null && typeof t < "u" && ze(e, t);
|
|
187
|
-
} catch (i) {
|
|
188
|
-
console.warn(i);
|
|
189
|
-
}
|
|
190
|
-
}, [e, t]), [r ? JSON.parse(r) : null, a, o, n];
|
|
191
|
-
}
|
|
192
|
-
const cr = {
|
|
193
|
-
x: 0,
|
|
194
|
-
y: 0,
|
|
195
|
-
width: 0,
|
|
196
|
-
height: 0,
|
|
197
|
-
top: 0,
|
|
198
|
-
left: 0,
|
|
199
|
-
bottom: 0,
|
|
200
|
-
right: 0
|
|
201
|
-
};
|
|
202
|
-
function dr(e) {
|
|
203
|
-
const t = sr(), r = k(0), a = k(null), [o, n] = S(cr), i = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
204
|
-
const d = c[0];
|
|
205
|
-
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
206
|
-
a.current && t() && n(d.contentRect);
|
|
207
|
-
}));
|
|
208
|
-
}), [t]);
|
|
209
|
-
return x(() => (a.current && (i == null || i.observe(a.current, e)), () => {
|
|
210
|
-
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
211
|
-
}), [i, e]), [a, o];
|
|
212
|
-
}
|
|
213
|
-
/*!
|
|
214
|
-
@versini/ui-table v3.0.4
|
|
215
|
-
© 2025 gizmette.com
|
|
216
|
-
*/
|
|
217
|
-
try {
|
|
218
|
-
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
219
|
-
version: "3.0.4",
|
|
220
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
221
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
222
|
-
license: "MIT"
|
|
223
|
-
});
|
|
224
|
-
} catch {
|
|
225
|
-
}
|
|
226
|
-
const ee = "thead", be = "tfoot", H = "tbody", j = {
|
|
227
|
-
ASC: "asc",
|
|
228
|
-
DESC: "desc"
|
|
229
|
-
}, mr = ({
|
|
230
|
-
mode: e,
|
|
231
|
-
className: t,
|
|
232
|
-
wrapperClassName: r,
|
|
233
|
-
stickyHeader: a,
|
|
234
|
-
stickyFooter: o
|
|
235
|
-
}) => ({
|
|
236
|
-
wrapper: s(
|
|
237
|
-
"not-prose relative w-full rounded-lg shadow-md",
|
|
238
|
-
{
|
|
239
|
-
"overflow-x-auto": !a && !o,
|
|
240
|
-
"overflow-y-scroll": a || o,
|
|
241
|
-
"bg-surface-darker": e === "dark" || e === "system",
|
|
242
|
-
"bg-surface-light": e === "light" || e === "alt-system",
|
|
243
|
-
"dark:bg-surface-light": e === "system",
|
|
244
|
-
"dark:bg-surface-darker": e === "alt-system",
|
|
245
|
-
"text-copy-light": e === "dark",
|
|
246
|
-
"text-copy-dark": e === "light",
|
|
247
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
248
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
249
|
-
},
|
|
250
|
-
r
|
|
251
|
-
),
|
|
252
|
-
table: s("my-0 w-full text-left text-sm", t, {
|
|
253
|
-
"text-copy-light": e === "dark",
|
|
254
|
-
"text-copy-dark": e === "light",
|
|
255
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
256
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
257
|
-
}),
|
|
258
|
-
caption: s("py-2 text-sm font-bold", {
|
|
259
|
-
"text-copy-light": e === "dark",
|
|
260
|
-
"text-copy-dark": e === "light",
|
|
261
|
-
"text-copy-light dark:text-copy-dark": e === "system",
|
|
262
|
-
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
263
|
-
})
|
|
264
|
-
}), ur = ({
|
|
265
|
-
className: e,
|
|
266
|
-
stickyHeader: t,
|
|
267
|
-
mode: r
|
|
268
|
-
}) => s(
|
|
269
|
-
{
|
|
270
|
-
"sticky top-0 z-10": t,
|
|
271
|
-
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "dark",
|
|
272
|
-
"shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": t && r === "system",
|
|
273
|
-
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem]": t && r === "light",
|
|
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"
|
|
275
|
-
},
|
|
276
|
-
e
|
|
277
|
-
), gr = ({
|
|
278
|
-
className: e,
|
|
279
|
-
stickyFooter: t,
|
|
280
|
-
mode: r
|
|
281
|
-
}) => s(
|
|
282
|
-
{
|
|
283
|
-
"sticky bottom-0 z-10": t,
|
|
284
|
-
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "dark",
|
|
285
|
-
"shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem] dark:shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": t && r === "system",
|
|
286
|
-
"shadow-[rgb(65_65_65_/30%)_0_-0.5rem_1rem]": t && r === "light",
|
|
287
|
-
"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"
|
|
288
|
-
},
|
|
289
|
-
e
|
|
290
|
-
), hr = ({
|
|
291
|
-
mode: e,
|
|
292
|
-
className: t,
|
|
293
|
-
cellWrapper: r
|
|
294
|
-
}) => r === ee || r === be ? s(
|
|
295
|
-
{
|
|
296
|
-
"bg-table-head-dark": e === "dark" || e === "system",
|
|
297
|
-
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
298
|
-
"dark:bg-table-head-light": e === "system",
|
|
299
|
-
"dark:bg-table-head-dark": e === "alt-system"
|
|
300
|
-
},
|
|
301
|
-
t
|
|
302
|
-
) : s(
|
|
303
|
-
"border-b last:border-0",
|
|
304
|
-
{
|
|
305
|
-
"border-table-dark": e === "dark" || e === "system",
|
|
306
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": r === H && e === "dark",
|
|
307
|
-
"border-table-light": e === "light" || e === "alt-system",
|
|
308
|
-
"odd:bg-table-light-odd even:bg-table-light-even": r === H && e === "light",
|
|
309
|
-
"dark:border-table-light": e === "system",
|
|
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",
|
|
311
|
-
"dark:border-table-dark": e === "alt-system",
|
|
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"
|
|
313
|
-
},
|
|
314
|
-
t
|
|
315
|
-
), pr = ({
|
|
316
|
-
cellWrapper: e,
|
|
317
|
-
className: t,
|
|
318
|
-
compact: r,
|
|
319
|
-
mode: a,
|
|
320
|
-
align: o
|
|
321
|
-
}) => ({
|
|
322
|
-
alignClasses: s({
|
|
323
|
-
"flex justify-start text-left": o === "left",
|
|
324
|
-
"flex justify-center text-center": o === "center",
|
|
325
|
-
"flex justify-end text-right": o === "right"
|
|
326
|
-
}),
|
|
327
|
-
mainClasses: s(
|
|
328
|
-
{
|
|
329
|
-
"text-copy-light": a === "dark" || a === "system",
|
|
330
|
-
"text-copy-dark": a === "light" || a === "alt-system",
|
|
331
|
-
"dark:text-copy-dark": a === "system",
|
|
332
|
-
"dark:text-copy-light": a === "alt-system",
|
|
333
|
-
"px-4 py-3": !r && (e === ee || e === be),
|
|
334
|
-
"p-4": !r && e === H,
|
|
335
|
-
"px-2 py-1.5": r
|
|
336
|
-
},
|
|
337
|
-
t
|
|
338
|
-
)
|
|
339
|
-
}), br = ({
|
|
340
|
-
buttonClassName: e
|
|
341
|
-
}) => s("rounded-none text-sm", e), Pe = "av-button", ye = "icon", ot = "button", de = "link", yr = ({
|
|
342
|
-
type: e,
|
|
343
|
-
size: t,
|
|
344
|
-
labelRight: r,
|
|
345
|
-
labelLeft: a,
|
|
346
|
-
align: o
|
|
347
|
-
}) => {
|
|
348
|
-
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";
|
|
349
|
-
switch (e) {
|
|
350
|
-
case ot:
|
|
351
|
-
case de:
|
|
352
|
-
return s({
|
|
353
|
-
[n]: t === "small",
|
|
354
|
-
[i]: t === "medium",
|
|
355
|
-
[c]: t === "large"
|
|
356
|
-
});
|
|
357
|
-
case ye:
|
|
358
|
-
return s("inline-flex items-center", {
|
|
359
|
-
"justify-center": o === "center",
|
|
360
|
-
"justify-start": o === "left",
|
|
361
|
-
"justify-end": o === "right",
|
|
362
|
-
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
363
|
-
"h-6 px-2": t === "small" && (r || a),
|
|
364
|
-
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
365
|
-
"h-8 px-3": t === "medium" && (r || a),
|
|
366
|
-
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
367
|
-
"h-12 px-4": t === "large" && (r || a)
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
}, fr = ({
|
|
371
|
-
type: e,
|
|
372
|
-
size: t,
|
|
373
|
-
labelRight: r,
|
|
374
|
-
labelLeft: a
|
|
375
|
-
}) => {
|
|
376
|
-
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
377
|
-
switch (e) {
|
|
378
|
-
case ot:
|
|
379
|
-
case de:
|
|
380
|
-
return s({
|
|
381
|
-
"text-center": e === de,
|
|
382
|
-
[o]: t === "small",
|
|
383
|
-
[n]: t === "medium",
|
|
384
|
-
[i]: t === "large"
|
|
385
|
-
});
|
|
386
|
-
case ye:
|
|
387
|
-
return s({
|
|
388
|
-
[o]: t === "small" && (r || a),
|
|
389
|
-
[n]: t === "medium" && (r || a),
|
|
390
|
-
[i]: t === "large" && (r || a)
|
|
391
|
-
});
|
|
392
|
-
}
|
|
393
|
-
}, kr = ({
|
|
394
|
-
mode: e,
|
|
395
|
-
noBackground: t,
|
|
396
|
-
noTruncate: r,
|
|
397
|
-
variant: a
|
|
398
|
-
}) => {
|
|
399
|
-
if (t)
|
|
400
|
-
return "not-prose";
|
|
401
|
-
if (a === "primary")
|
|
402
|
-
return s("not-prose", {
|
|
403
|
-
truncate: !r,
|
|
404
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
405
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
406
|
-
"dark:text-copy-lighter": e === "system",
|
|
407
|
-
"dark:text-copy-light": e === "alt-system"
|
|
408
|
-
});
|
|
409
|
-
if (a === "secondary")
|
|
410
|
-
return s("not-prose", {
|
|
411
|
-
truncate: !r,
|
|
412
|
-
"text-copy-light": e === "light" || e === "system",
|
|
413
|
-
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
414
|
-
"dark:text-copy-lighter": e === "alt-system",
|
|
415
|
-
"dark:text-copy-light": e === "system"
|
|
416
|
-
});
|
|
417
|
-
if (a === "danger")
|
|
418
|
-
return s("not-prose", {
|
|
419
|
-
truncate: !r,
|
|
420
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
421
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
422
|
-
"dark:text-copy-lighter": e === "system",
|
|
423
|
-
"dark:text-copy-light": e === "alt-system"
|
|
424
|
-
});
|
|
425
|
-
if (a === "selected")
|
|
426
|
-
return s("not-prose text-copy-lighter", {
|
|
427
|
-
truncate: !r
|
|
428
|
-
});
|
|
429
|
-
}, vr = ({
|
|
430
|
-
mode: e,
|
|
431
|
-
noBackground: t,
|
|
432
|
-
variant: r
|
|
433
|
-
}) => {
|
|
434
|
-
if (!t) {
|
|
435
|
-
if (r === "primary")
|
|
436
|
-
return s({
|
|
437
|
-
"bg-action-dark": e === "dark",
|
|
438
|
-
"bg-action-light": e === "light",
|
|
439
|
-
"bg-action-dark dark:bg-action-light": e === "system",
|
|
440
|
-
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
441
|
-
});
|
|
442
|
-
if (r === "secondary")
|
|
443
|
-
return s({
|
|
444
|
-
"bg-action-dark": e === "light",
|
|
445
|
-
"bg-action-light": e === "dark",
|
|
446
|
-
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
447
|
-
"bg-action-light dark:bg-action-dark": e === "system"
|
|
448
|
-
});
|
|
449
|
-
if (r === "danger")
|
|
450
|
-
return s({
|
|
451
|
-
"bg-action-danger-dark": e === "dark",
|
|
452
|
-
"bg-action-danger-light": e === "light",
|
|
453
|
-
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
454
|
-
"bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
|
|
455
|
-
});
|
|
456
|
-
if (r === "selected")
|
|
457
|
-
return "bg-action-selected-dark";
|
|
458
|
-
}
|
|
459
|
-
}, xr = ({
|
|
460
|
-
radius: e
|
|
461
|
-
}) => s({
|
|
462
|
-
"rounded-full": e === "large",
|
|
463
|
-
"rounded-md": e === "medium",
|
|
464
|
-
"rounded-sm": e === "small"
|
|
465
|
-
}), _r = ({
|
|
466
|
-
mode: e,
|
|
467
|
-
disabled: t,
|
|
468
|
-
variant: r
|
|
469
|
-
}) => {
|
|
470
|
-
if (t)
|
|
471
|
-
return "";
|
|
472
|
-
if (r === "primary")
|
|
473
|
-
return s("hover:text-copy-light-hover", {
|
|
474
|
-
"hover:bg-action-dark-hover": e === "dark",
|
|
475
|
-
"hover:bg-action-light-hover": e === "light",
|
|
476
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
477
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
478
|
-
});
|
|
479
|
-
if (r === "secondary")
|
|
480
|
-
return s("hover:text-copy-light-hover", {
|
|
481
|
-
"hover:bg-action-dark-hover": e === "light",
|
|
482
|
-
"hover:bg-action-light-hover": e === "dark",
|
|
483
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
484
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
485
|
-
});
|
|
486
|
-
if (r === "danger")
|
|
487
|
-
return s("hover:text-copy-light-hover", {
|
|
488
|
-
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
489
|
-
"hover:bg-action-danger-light-hover": e === "light",
|
|
490
|
-
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
491
|
-
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
492
|
-
});
|
|
493
|
-
if (r === "selected")
|
|
494
|
-
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
495
|
-
}, wr = ({
|
|
496
|
-
mode: e,
|
|
497
|
-
disabled: t,
|
|
498
|
-
variant: r
|
|
499
|
-
}) => {
|
|
500
|
-
if (t)
|
|
501
|
-
return "";
|
|
502
|
-
if (r === "primary")
|
|
503
|
-
return s("active:text-copy-light-active", {
|
|
504
|
-
"active:bg-action-dark-active": e === "dark",
|
|
505
|
-
"active:bg-action-light-active": e === "light",
|
|
506
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
507
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
508
|
-
});
|
|
509
|
-
if (r === "secondary")
|
|
510
|
-
return s("active:text-copy-light-active", {
|
|
511
|
-
"active:bg-action-dark-active": e === "light",
|
|
512
|
-
"active:bg-action-light-active": e === "dark",
|
|
513
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
514
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
515
|
-
});
|
|
516
|
-
if (r === "danger")
|
|
517
|
-
return s("active:text-copy-lighter-active", {
|
|
518
|
-
"active:bg-action-danger-dark-active": e === "dark",
|
|
519
|
-
"active:bg-action-danger-light-active": e === "light",
|
|
520
|
-
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
521
|
-
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
522
|
-
});
|
|
523
|
-
if (r === "selected")
|
|
524
|
-
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
525
|
-
}, Nr = ({
|
|
526
|
-
mode: e,
|
|
527
|
-
noBorder: t,
|
|
528
|
-
variant: r
|
|
529
|
-
}) => {
|
|
530
|
-
if (t)
|
|
531
|
-
return "border border-transparent";
|
|
532
|
-
if (r === "primary")
|
|
533
|
-
return s("border", {
|
|
534
|
-
"border-border-dark": e === "dark",
|
|
535
|
-
"border-border-accent": e === "light",
|
|
536
|
-
"border-border-dark dark:border-border-accent": e === "system",
|
|
537
|
-
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
538
|
-
});
|
|
539
|
-
if (r === "secondary")
|
|
540
|
-
return s("border", {
|
|
541
|
-
"border-border-dark": e === "light",
|
|
542
|
-
"border-border-accent": e === "dark",
|
|
543
|
-
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
544
|
-
"border-border-accent dark:border-border-dark": e === "system"
|
|
545
|
-
});
|
|
546
|
-
if (r === "danger")
|
|
547
|
-
return s("border", {
|
|
548
|
-
"border-border-danger-dark": e === "dark",
|
|
549
|
-
"border-border-danger-medium": e === "light",
|
|
550
|
-
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
551
|
-
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
552
|
-
});
|
|
553
|
-
if (r === "selected")
|
|
554
|
-
return "border border-border-selected-dark";
|
|
555
|
-
}, Tr = ({
|
|
556
|
-
focusMode: e
|
|
557
|
-
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
558
|
-
"focus:outline-focus-dark": e === "dark",
|
|
559
|
-
"focus:outline-focus-light": e === "light",
|
|
560
|
-
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
561
|
-
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
562
|
-
}), Er = ({
|
|
563
|
-
type: e,
|
|
564
|
-
className: t,
|
|
565
|
-
raw: r,
|
|
566
|
-
mode: a,
|
|
567
|
-
focusMode: o,
|
|
568
|
-
disabled: n,
|
|
569
|
-
fullWidth: i,
|
|
570
|
-
size: c,
|
|
571
|
-
noBorder: d,
|
|
572
|
-
labelRight: m,
|
|
573
|
-
labelLeft: u,
|
|
574
|
-
noBackground: h,
|
|
575
|
-
variant: g,
|
|
576
|
-
noTruncate: p,
|
|
577
|
-
align: b,
|
|
578
|
-
radius: f
|
|
579
|
-
}) => (g || (g = "primary"), r ? s(Pe, t) : s(
|
|
580
|
-
Pe,
|
|
581
|
-
kr({
|
|
582
|
-
mode: a,
|
|
583
|
-
variant: g,
|
|
584
|
-
noBackground: h,
|
|
585
|
-
noTruncate: p
|
|
586
|
-
}),
|
|
587
|
-
vr({ mode: a, noBackground: h, variant: g }),
|
|
588
|
-
xr({ radius: f }),
|
|
589
|
-
yr({
|
|
590
|
-
type: e,
|
|
591
|
-
size: c,
|
|
592
|
-
labelRight: m,
|
|
593
|
-
labelLeft: u,
|
|
594
|
-
align: b
|
|
595
|
-
}),
|
|
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 }),
|
|
601
|
-
{
|
|
602
|
-
"w-full": i,
|
|
603
|
-
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
604
|
-
},
|
|
605
|
-
t
|
|
606
|
-
)), Sr = (e, t, r) => {
|
|
607
|
-
var a;
|
|
608
|
-
!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);
|
|
609
|
-
}, nt = I.forwardRef((e, t) => {
|
|
610
|
-
const { onClick: r, noInternalClick: a = !1, ...o } = e;
|
|
611
|
-
return /* @__PURE__ */ l(
|
|
612
|
-
"button",
|
|
613
|
-
{
|
|
614
|
-
ref: t,
|
|
615
|
-
onClick: (n) => {
|
|
616
|
-
Sr(n, a, r);
|
|
617
|
-
},
|
|
618
|
-
...o
|
|
619
|
-
}
|
|
620
|
-
);
|
|
621
|
-
});
|
|
622
|
-
nt.displayName = "BaseButton";
|
|
623
|
-
/*!
|
|
624
|
-
@versini/ui-button v4.0.3
|
|
625
|
-
© 2025 gizmette.com
|
|
626
|
-
*/
|
|
627
|
-
try {
|
|
628
|
-
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
629
|
-
version: "4.0.3",
|
|
630
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
631
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
632
|
-
license: "MIT"
|
|
633
|
-
});
|
|
634
|
-
} catch {
|
|
635
|
-
}
|
|
636
|
-
const st = I.forwardRef(
|
|
637
|
-
({
|
|
638
|
-
children: e,
|
|
639
|
-
disabled: t = !1,
|
|
640
|
-
mode: r = "system",
|
|
641
|
-
focusMode: a = "system",
|
|
642
|
-
fullWidth: o = !1,
|
|
643
|
-
className: n,
|
|
644
|
-
type: i = "button",
|
|
645
|
-
raw: c = !1,
|
|
646
|
-
noBorder: d = !1,
|
|
647
|
-
"aria-label": m,
|
|
648
|
-
label: u,
|
|
649
|
-
size: h = "medium",
|
|
650
|
-
labelRight: g,
|
|
651
|
-
labelLeft: p,
|
|
652
|
-
noBackground: b = !1,
|
|
653
|
-
align: f = "center",
|
|
654
|
-
active: y = !1,
|
|
655
|
-
radius: _ = "large",
|
|
656
|
-
...N
|
|
657
|
-
}, T) => {
|
|
658
|
-
const R = Er({
|
|
659
|
-
type: ye,
|
|
660
|
-
mode: r,
|
|
661
|
-
focusMode: a,
|
|
662
|
-
fullWidth: o,
|
|
663
|
-
disabled: t,
|
|
664
|
-
raw: c,
|
|
665
|
-
className: n,
|
|
666
|
-
noBorder: d,
|
|
667
|
-
size: h,
|
|
668
|
-
labelRight: g,
|
|
669
|
-
labelLeft: p,
|
|
670
|
-
noBackground: b,
|
|
671
|
-
align: f,
|
|
672
|
-
radius: _
|
|
673
|
-
}), E = s({
|
|
674
|
-
"text-copy-accent-dark": r === "light" && !c,
|
|
675
|
-
"text-copy-light": r === "dark" && !c,
|
|
676
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
677
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
678
|
-
}), M = y ? s(
|
|
679
|
-
"relative",
|
|
680
|
-
"focus-within:static",
|
|
681
|
-
"focus-within:after:border-transparent",
|
|
682
|
-
"after:absolute",
|
|
683
|
-
"after:content-['']",
|
|
684
|
-
"after:border-b-2",
|
|
685
|
-
"after:bottom-[-4px]",
|
|
686
|
-
"after:left-0",
|
|
687
|
-
"after:right-0",
|
|
688
|
-
{
|
|
689
|
-
"after:border-table-dark": r === "dark",
|
|
690
|
-
"after:border-table-light": r === "light",
|
|
691
|
-
"after:border-table-dark dark:after:border-table-light": r === "system",
|
|
692
|
-
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
693
|
-
}
|
|
694
|
-
) : "";
|
|
695
|
-
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
696
|
-
nt,
|
|
697
|
-
{
|
|
698
|
-
ref: T,
|
|
699
|
-
className: R,
|
|
700
|
-
disabled: t,
|
|
701
|
-
type: i,
|
|
702
|
-
"aria-label": m || u,
|
|
703
|
-
...N,
|
|
704
|
-
children: [
|
|
705
|
-
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
706
|
-
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
707
|
-
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
708
|
-
]
|
|
709
|
-
}
|
|
710
|
-
) });
|
|
711
|
-
}
|
|
712
|
-
);
|
|
713
|
-
st.displayName = "ButtonSort";
|
|
714
|
-
const fe = ({
|
|
715
|
-
children: e,
|
|
716
|
-
fill: t,
|
|
717
|
-
viewBox: r,
|
|
718
|
-
className: a,
|
|
719
|
-
defaultViewBox: o,
|
|
720
|
-
size: n,
|
|
721
|
-
title: i,
|
|
722
|
-
semantic: c = !1,
|
|
723
|
-
...d
|
|
724
|
-
}) => {
|
|
725
|
-
const m = s(n, a);
|
|
726
|
-
return /* @__PURE__ */ v(Y, { children: [
|
|
727
|
-
/* @__PURE__ */ l(
|
|
728
|
-
"svg",
|
|
729
|
-
{
|
|
730
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
731
|
-
className: m,
|
|
732
|
-
viewBox: r || o,
|
|
733
|
-
fill: t || "currentColor",
|
|
734
|
-
role: "img",
|
|
735
|
-
"aria-hidden": !c,
|
|
736
|
-
focusable: !1,
|
|
737
|
-
...d,
|
|
738
|
-
children: e
|
|
739
|
-
}
|
|
740
|
-
),
|
|
741
|
-
i && c && /* @__PURE__ */ l("span", { className: "sr-only", children: i })
|
|
742
|
-
] });
|
|
743
|
-
};
|
|
744
|
-
/*!
|
|
745
|
-
@versini/ui-svgicon v4.0.0
|
|
746
|
-
© 2025 gizmette.com
|
|
747
|
-
*/
|
|
748
|
-
try {
|
|
749
|
-
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
750
|
-
version: "4.0.0",
|
|
751
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
752
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
753
|
-
license: "MIT"
|
|
754
|
-
});
|
|
755
|
-
} catch {
|
|
756
|
-
}
|
|
757
|
-
const Cr = ({
|
|
758
|
-
className: e,
|
|
759
|
-
viewBox: t,
|
|
760
|
-
title: r,
|
|
761
|
-
monotone: a,
|
|
762
|
-
...o
|
|
763
|
-
}) => /* @__PURE__ */ v(
|
|
764
|
-
fe,
|
|
765
|
-
{
|
|
766
|
-
defaultViewBox: "0 0 576 512",
|
|
767
|
-
size: "size-5",
|
|
768
|
-
viewBox: t,
|
|
769
|
-
className: e,
|
|
770
|
-
title: r || "Sort",
|
|
771
|
-
...o,
|
|
772
|
-
children: [
|
|
773
|
-
/* @__PURE__ */ l(
|
|
774
|
-
"path",
|
|
775
|
-
{
|
|
776
|
-
className: "fa-secondary",
|
|
777
|
-
opacity: a ? "1" : "0.4",
|
|
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"
|
|
779
|
-
}
|
|
780
|
-
),
|
|
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
|
-
)
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
), Ir = ({
|
|
791
|
-
className: e,
|
|
792
|
-
viewBox: t,
|
|
793
|
-
title: r,
|
|
794
|
-
monotone: a,
|
|
795
|
-
...o
|
|
796
|
-
}) => /* @__PURE__ */ v(
|
|
797
|
-
fe,
|
|
798
|
-
{
|
|
799
|
-
defaultViewBox: "0 0 576 512",
|
|
800
|
-
size: "size-5",
|
|
801
|
-
viewBox: t,
|
|
802
|
-
className: e,
|
|
803
|
-
title: r || "Sort Down",
|
|
804
|
-
...o,
|
|
805
|
-
children: [
|
|
806
|
-
/* @__PURE__ */ l(
|
|
807
|
-
"path",
|
|
808
|
-
{
|
|
809
|
-
className: "fa-secondary",
|
|
810
|
-
opacity: a ? "1" : "0.4",
|
|
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"
|
|
812
|
-
}
|
|
813
|
-
),
|
|
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
|
-
)
|
|
821
|
-
]
|
|
822
|
-
}
|
|
823
|
-
), Rr = ({
|
|
824
|
-
className: e,
|
|
825
|
-
viewBox: t,
|
|
826
|
-
title: r,
|
|
827
|
-
monotone: a,
|
|
828
|
-
...o
|
|
829
|
-
}) => /* @__PURE__ */ v(
|
|
830
|
-
fe,
|
|
831
|
-
{
|
|
832
|
-
defaultViewBox: "0 0 576 512",
|
|
833
|
-
size: "size-5",
|
|
834
|
-
viewBox: t,
|
|
835
|
-
className: e,
|
|
836
|
-
title: r || "Sort Up",
|
|
837
|
-
...o,
|
|
838
|
-
children: [
|
|
839
|
-
/* @__PURE__ */ l(
|
|
840
|
-
"path",
|
|
841
|
-
{
|
|
842
|
-
className: "fa-secondary",
|
|
843
|
-
opacity: a ? "1" : "0.4",
|
|
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"
|
|
845
|
-
}
|
|
846
|
-
),
|
|
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
|
-
)
|
|
854
|
-
]
|
|
855
|
-
}
|
|
856
|
-
);
|
|
857
|
-
/*!
|
|
858
|
-
@versini/ui-icons v4.2.0
|
|
859
|
-
© 2025 gizmette.com
|
|
860
|
-
*/
|
|
861
|
-
try {
|
|
862
|
-
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
863
|
-
version: "4.2.0",
|
|
864
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
865
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
866
|
-
license: "MIT"
|
|
867
|
-
});
|
|
868
|
-
} catch {
|
|
869
|
-
}
|
|
870
|
-
const F = I.createContext({
|
|
871
|
-
mode: "light",
|
|
872
|
-
cellWrapper: "thead",
|
|
873
|
-
stickyHeader: !1,
|
|
874
|
-
stickyFooter: !1,
|
|
875
|
-
compact: !1
|
|
876
|
-
}), eo = ({
|
|
877
|
-
children: e,
|
|
878
|
-
mode: t = "system",
|
|
879
|
-
caption: r,
|
|
880
|
-
compact: a,
|
|
881
|
-
summary: o,
|
|
882
|
-
className: n,
|
|
883
|
-
wrapperClassName: i,
|
|
884
|
-
maxHeight: c,
|
|
885
|
-
stickyHeader: d,
|
|
886
|
-
stickyFooter: m,
|
|
887
|
-
...u
|
|
888
|
-
}) => {
|
|
889
|
-
const h = mr({
|
|
890
|
-
mode: t,
|
|
891
|
-
className: n,
|
|
892
|
-
wrapperClassName: i,
|
|
893
|
-
stickyHeader: d,
|
|
894
|
-
stickyFooter: m
|
|
895
|
-
});
|
|
896
|
-
return /* @__PURE__ */ l(
|
|
897
|
-
F.Provider,
|
|
898
|
-
{
|
|
899
|
-
value: { mode: t, stickyHeader: d, stickyFooter: m, compact: a },
|
|
900
|
-
children: /* @__PURE__ */ l(
|
|
901
|
-
"div",
|
|
902
|
-
{
|
|
903
|
-
className: h.wrapper,
|
|
904
|
-
...c && {
|
|
905
|
-
style: { maxHeight: c }
|
|
906
|
-
},
|
|
907
|
-
children: /* @__PURE__ */ v("table", { className: h.table, summary: o, ...u, children: [
|
|
908
|
-
r && /* @__PURE__ */ l("caption", { className: h.caption, children: r }),
|
|
909
|
-
e
|
|
910
|
-
] })
|
|
911
|
-
}
|
|
912
|
-
)
|
|
913
|
-
}
|
|
914
|
-
);
|
|
915
|
-
}, to = ({
|
|
916
|
-
children: e,
|
|
917
|
-
className: t,
|
|
918
|
-
...r
|
|
919
|
-
}) => {
|
|
920
|
-
const a = $(F);
|
|
921
|
-
a.cellWrapper = ee;
|
|
922
|
-
const o = ur({
|
|
923
|
-
className: t,
|
|
924
|
-
mode: a.mode,
|
|
925
|
-
stickyHeader: a.stickyHeader
|
|
926
|
-
});
|
|
927
|
-
return /* @__PURE__ */ l("thead", { className: o, ...r, children: e });
|
|
928
|
-
}, ro = ({
|
|
929
|
-
children: e,
|
|
930
|
-
className: t,
|
|
931
|
-
...r
|
|
932
|
-
}) => {
|
|
933
|
-
const a = $(F);
|
|
934
|
-
a.cellWrapper = be;
|
|
935
|
-
const o = gr({
|
|
936
|
-
className: t,
|
|
937
|
-
mode: a.mode,
|
|
938
|
-
stickyFooter: a.stickyFooter
|
|
939
|
-
});
|
|
940
|
-
return /* @__PURE__ */ l("tfoot", { className: o, ...r, children: e });
|
|
941
|
-
}, ao = ({ children: e, ...t }) => {
|
|
942
|
-
const r = $(F);
|
|
943
|
-
return r.cellWrapper = H, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
944
|
-
}, oo = ({
|
|
945
|
-
children: e,
|
|
946
|
-
className: t,
|
|
947
|
-
...r
|
|
948
|
-
}) => {
|
|
949
|
-
const a = $(F), o = hr({
|
|
950
|
-
mode: a.mode,
|
|
951
|
-
cellWrapper: a.cellWrapper,
|
|
952
|
-
className: t
|
|
953
|
-
});
|
|
954
|
-
return /* @__PURE__ */ l("tr", { className: o, ...r, children: e });
|
|
955
|
-
}, $r = ({
|
|
956
|
-
children: e,
|
|
957
|
-
component: t,
|
|
958
|
-
className: r,
|
|
959
|
-
align: a,
|
|
960
|
-
...o
|
|
961
|
-
}) => {
|
|
962
|
-
const n = $(F), i = t || (n.cellWrapper === ee ? "th" : "td"), { mainClasses: c, alignClasses: d } = pr({
|
|
963
|
-
cellWrapper: n.cellWrapper,
|
|
964
|
-
className: r,
|
|
965
|
-
mode: n.mode,
|
|
966
|
-
compact: n.compact,
|
|
967
|
-
align: a
|
|
968
|
-
});
|
|
969
|
-
return a ? /* @__PURE__ */ l(i, { className: c, ...o, children: /* @__PURE__ */ l("div", { className: d, children: e }) }) : /* @__PURE__ */ l(i, { className: c, ...o, children: e });
|
|
970
|
-
}, no = ({
|
|
971
|
-
align: e,
|
|
972
|
-
children: t,
|
|
973
|
-
buttonClassName: r,
|
|
974
|
-
className: a,
|
|
975
|
-
component: o,
|
|
976
|
-
focusMode: n = "alt-system",
|
|
977
|
-
mode: i = "alt-system",
|
|
978
|
-
onClick: c,
|
|
979
|
-
sortDirection: d,
|
|
980
|
-
sortedCell: m,
|
|
981
|
-
cellId: u,
|
|
982
|
-
...h
|
|
983
|
-
}) => {
|
|
984
|
-
const g = br({ buttonClassName: r });
|
|
985
|
-
return /* @__PURE__ */ l(
|
|
986
|
-
$r,
|
|
987
|
-
{
|
|
988
|
-
component: o,
|
|
989
|
-
className: a,
|
|
990
|
-
role: "columnheader",
|
|
991
|
-
"aria-sort": d === j.ASC && m === u ? "ascending" : d === j.DESC && m === u ? "descending" : "other",
|
|
992
|
-
...h,
|
|
993
|
-
children: /* @__PURE__ */ l(
|
|
994
|
-
st,
|
|
995
|
-
{
|
|
996
|
-
active: m === u,
|
|
997
|
-
className: g,
|
|
998
|
-
onClick: c,
|
|
999
|
-
align: e,
|
|
1000
|
-
noBorder: !0,
|
|
1001
|
-
focusMode: n,
|
|
1002
|
-
mode: i,
|
|
1003
|
-
fullWidth: !0,
|
|
1004
|
-
labelRight: t,
|
|
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 })
|
|
1006
|
-
}
|
|
1007
|
-
)
|
|
1008
|
-
}
|
|
1009
|
-
);
|
|
1010
|
-
}, w = [];
|
|
1011
|
-
for (let e = 0; e < 256; ++e)
|
|
1012
|
-
w.push((e + 256).toString(16).slice(1));
|
|
1013
|
-
function Br(e, t = 0) {
|
|
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();
|
|
1015
|
-
}
|
|
1016
|
-
let se;
|
|
1017
|
-
const Ar = new Uint8Array(16);
|
|
1018
|
-
function Lr() {
|
|
1019
|
-
if (!se) {
|
|
1020
|
-
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1021
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1022
|
-
se = crypto.getRandomValues.bind(crypto);
|
|
1023
|
-
}
|
|
1024
|
-
return se(Ar);
|
|
1025
|
-
}
|
|
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();
|
|
1030
|
-
e = e || {};
|
|
1031
|
-
const a = e.random || (e.rng || Lr)();
|
|
1032
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Br(a);
|
|
1033
|
-
}
|
|
1034
|
-
const zr = (e, t) => {
|
|
1035
|
-
if ((t == null ? void 0 : t.type) === At) {
|
|
1036
|
-
const r = t.payload.messages.map((a) => ({
|
|
1037
|
-
message: {
|
|
1038
|
-
role: a.role,
|
|
1039
|
-
content: a.content,
|
|
1040
|
-
name: a.name,
|
|
1041
|
-
processingTime: a.processingTime
|
|
1042
|
-
}
|
|
1043
|
-
}));
|
|
1044
|
-
return {
|
|
1045
|
-
id: t.payload.id,
|
|
1046
|
-
model: t.payload.model,
|
|
1047
|
-
usage: t.payload.usage,
|
|
1048
|
-
isComponent: e.isComponent,
|
|
1049
|
-
messages: r,
|
|
1050
|
-
engine: e.engine,
|
|
1051
|
-
prompts: e.prompts
|
|
1052
|
-
};
|
|
1053
|
-
}
|
|
1054
|
-
if ((t == null ? void 0 : t.type) === q) {
|
|
1055
|
-
const r = t.payload.message.role, a = t.payload.message.content, o = t.payload.message.name, n = t.payload.message.processingTime, i = t.payload.message.messageId;
|
|
1056
|
-
if (r !== "") {
|
|
1057
|
-
const c = {
|
|
1058
|
-
role: r,
|
|
1059
|
-
content: a,
|
|
1060
|
-
name: o,
|
|
1061
|
-
processingTime: n,
|
|
1062
|
-
messageId: i
|
|
1063
|
-
};
|
|
1064
|
-
if (r === K) {
|
|
1065
|
-
const d = e.messages.findIndex(
|
|
1066
|
-
(m) => m.message.messageId === i
|
|
1067
|
-
);
|
|
1068
|
-
if (d !== -1) {
|
|
1069
|
-
const m = e.messages.map((u, h) => h === d ? {
|
|
1070
|
-
message: {
|
|
1071
|
-
...u.message,
|
|
1072
|
-
content: `${u.message.content}${a}`,
|
|
1073
|
-
processingTime: n,
|
|
1074
|
-
name: o
|
|
1075
|
-
}
|
|
1076
|
-
} : u);
|
|
1077
|
-
return {
|
|
1078
|
-
id: e.id,
|
|
1079
|
-
model: e.model,
|
|
1080
|
-
usage: e.usage,
|
|
1081
|
-
isComponent: e.isComponent,
|
|
1082
|
-
messages: m,
|
|
1083
|
-
engine: e.engine,
|
|
1084
|
-
prompts: e.prompts
|
|
1085
|
-
};
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return {
|
|
1089
|
-
id: e.id,
|
|
1090
|
-
model: e.model,
|
|
1091
|
-
engine: e.engine,
|
|
1092
|
-
prompts: e.prompts,
|
|
1093
|
-
usage: e.usage,
|
|
1094
|
-
isComponent: e.isComponent,
|
|
1095
|
-
messages: [
|
|
1096
|
-
...e.messages,
|
|
1097
|
-
{
|
|
1098
|
-
message: c
|
|
1099
|
-
}
|
|
1100
|
-
]
|
|
1101
|
-
};
|
|
1102
|
-
}
|
|
1103
|
-
}
|
|
1104
|
-
return (t == null ? void 0 : t.type) === qe ? {
|
|
1105
|
-
id: ke(),
|
|
1106
|
-
model: e.model,
|
|
1107
|
-
engine: e.engine,
|
|
1108
|
-
usage: 0,
|
|
1109
|
-
messages: [],
|
|
1110
|
-
isComponent: e.isComponent,
|
|
1111
|
-
prompts: e.prompts
|
|
1112
|
-
} : (t == null ? void 0 : t.type) === Ke ? {
|
|
1113
|
-
id: e.id,
|
|
1114
|
-
model: t.payload.model,
|
|
1115
|
-
engine: e.engine,
|
|
1116
|
-
prompts: e.prompts,
|
|
1117
|
-
usage: t.payload.usage,
|
|
1118
|
-
messages: e.messages,
|
|
1119
|
-
isComponent: e.isComponent
|
|
1120
|
-
} : (t == null ? void 0 : t.type) === Je ? {
|
|
1121
|
-
...e,
|
|
1122
|
-
engine: t.payload.engine
|
|
1123
|
-
} : (t == null ? void 0 : t.type) === Qe ? {
|
|
1124
|
-
...e,
|
|
1125
|
-
streaming: t.payload.streaming
|
|
1126
|
-
} : e;
|
|
1127
|
-
}, Or = (e, t) => {
|
|
1128
|
-
switch (t == null ? void 0 : t.type) {
|
|
1129
|
-
case Mt:
|
|
1130
|
-
return {
|
|
1131
|
-
searchString: t.payload.searchString,
|
|
1132
|
-
sortedCell: e.sortedCell,
|
|
1133
|
-
sortDirection: e.sortDirection
|
|
1134
|
-
};
|
|
1135
|
-
case Lt:
|
|
1136
|
-
return {
|
|
1137
|
-
searchString: e.searchString,
|
|
1138
|
-
sortedCell: t.payload.sortedCell,
|
|
1139
|
-
sortDirection: t.payload.sortDirection
|
|
1140
|
-
};
|
|
1141
|
-
default:
|
|
1142
|
-
return e;
|
|
1143
|
-
}
|
|
1144
|
-
}, Ur = (e, t) => {
|
|
1145
|
-
switch (t == null ? void 0 : t.type) {
|
|
1146
|
-
case Ze:
|
|
1147
|
-
return {
|
|
1148
|
-
prompts: e.prompts,
|
|
1149
|
-
prompt: t.payload.prompt
|
|
1150
|
-
};
|
|
1151
|
-
case Ye:
|
|
1152
|
-
return {
|
|
1153
|
-
prompts: e.prompts,
|
|
1154
|
-
prompt: ""
|
|
1155
|
-
};
|
|
1156
|
-
case Xe:
|
|
1157
|
-
return {
|
|
1158
|
-
prompts: t.payload.prompts,
|
|
1159
|
-
prompt: ""
|
|
1160
|
-
};
|
|
1161
|
-
default:
|
|
1162
|
-
return e;
|
|
1163
|
-
}
|
|
1164
|
-
}, L = {
|
|
1165
|
-
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
1166
|
-
location(latitude: $latitude, longitude: $longitude) {
|
|
1167
|
-
country
|
|
1168
|
-
state
|
|
1169
|
-
city
|
|
1170
|
-
displayName
|
|
1171
|
-
}
|
|
1172
|
-
}`,
|
|
1173
|
-
GET_CHATS: `query GetChats(
|
|
1174
|
-
$userId: String!,
|
|
1175
|
-
$searchString: String,
|
|
1176
|
-
$limit: Float,
|
|
1177
|
-
$direction: String,
|
|
1178
|
-
$truncateSize: Float) {
|
|
1179
|
-
chats(
|
|
1180
|
-
user: $userId,
|
|
1181
|
-
searchString: $searchString,
|
|
1182
|
-
limit: $limit,
|
|
1183
|
-
direction: $direction,
|
|
1184
|
-
truncateSize: $truncateSize) {
|
|
1185
|
-
timestamp
|
|
1186
|
-
id
|
|
1187
|
-
model
|
|
1188
|
-
messages {
|
|
1189
|
-
content
|
|
1190
|
-
}
|
|
1191
|
-
}
|
|
1192
|
-
}`,
|
|
1193
|
-
GET_CHATS_STATS: `query GetChatsStats($userId: String!) {
|
|
1194
|
-
chatsStats(user: $userId) {
|
|
1195
|
-
totalChats
|
|
1196
|
-
averageProcessingTimes
|
|
1197
|
-
}
|
|
1198
|
-
}`,
|
|
1199
|
-
GET_CHAT: `query GetChatById($id: String!) {
|
|
1200
|
-
chatById(id: $id) {
|
|
1201
|
-
model
|
|
1202
|
-
usage
|
|
1203
|
-
messages {
|
|
1204
|
-
content
|
|
1205
|
-
role
|
|
1206
|
-
name
|
|
1207
|
-
processingTime
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
}`,
|
|
1211
|
-
DELETE_CHAT: `mutation DeleteChat(
|
|
1212
|
-
$id: String!,
|
|
1213
|
-
$userId: String!,
|
|
1214
|
-
$searchString: String,
|
|
1215
|
-
$limit: Float,
|
|
1216
|
-
$direction: String,
|
|
1217
|
-
$truncateSize: Float) {
|
|
1218
|
-
deleteChat(
|
|
1219
|
-
id: $id,
|
|
1220
|
-
user: $userId,
|
|
1221
|
-
searchString: $searchString,
|
|
1222
|
-
limit: $limit,
|
|
1223
|
-
direction: $direction,
|
|
1224
|
-
truncateSize: $truncateSize) {
|
|
1225
|
-
timestamp
|
|
1226
|
-
id
|
|
1227
|
-
model
|
|
1228
|
-
messages {
|
|
1229
|
-
content
|
|
1230
|
-
}
|
|
1231
|
-
}
|
|
1232
|
-
}`,
|
|
1233
|
-
ABOUT: `query About($user: String!) {
|
|
1234
|
-
about(user: $user) {
|
|
1235
|
-
version
|
|
1236
|
-
models
|
|
1237
|
-
plugins
|
|
1238
|
-
engine
|
|
1239
|
-
engines
|
|
1240
|
-
}
|
|
1241
|
-
}`,
|
|
1242
|
-
GET_USER_PREFERENCES: `query GetUserPreferences($user: String!) {
|
|
1243
|
-
getUserPreferences(user: $user) {
|
|
1244
|
-
instructions
|
|
1245
|
-
location
|
|
1246
|
-
engine
|
|
1247
|
-
tags {
|
|
1248
|
-
enabled
|
|
1249
|
-
slot
|
|
1250
|
-
label
|
|
1251
|
-
content
|
|
1252
|
-
}
|
|
1253
|
-
}
|
|
1254
|
-
}`,
|
|
1255
|
-
SET_USER_PREFERENCES: `mutation SetUserPreferences(
|
|
1256
|
-
$user: String!,
|
|
1257
|
-
$instructions: String,
|
|
1258
|
-
$location: String,
|
|
1259
|
-
$engine: String,
|
|
1260
|
-
$tags: [TagIn]) {
|
|
1261
|
-
setUserPreferences(
|
|
1262
|
-
user: $user,
|
|
1263
|
-
instructions: $instructions,
|
|
1264
|
-
location: $location,
|
|
1265
|
-
engine: $engine,
|
|
1266
|
-
tags: $tags)
|
|
1267
|
-
}`
|
|
1268
|
-
}, it = {
|
|
1269
|
-
GET_LOCATION: {
|
|
1270
|
-
schema: L.GET_LOCATION,
|
|
1271
|
-
method: "location"
|
|
1272
|
-
},
|
|
1273
|
-
GET_CHATS: {
|
|
1274
|
-
schema: L.GET_CHATS,
|
|
1275
|
-
method: "chats"
|
|
1276
|
-
},
|
|
1277
|
-
GET_CHATS_STATS: {
|
|
1278
|
-
schema: L.GET_CHATS_STATS,
|
|
1279
|
-
method: "chatsStats"
|
|
1280
|
-
},
|
|
1281
|
-
GET_CHAT: {
|
|
1282
|
-
schema: L.GET_CHAT,
|
|
1283
|
-
method: "chatById"
|
|
1284
|
-
},
|
|
1285
|
-
DELETE_CHAT: {
|
|
1286
|
-
schema: L.DELETE_CHAT,
|
|
1287
|
-
method: "deleteChat"
|
|
1288
|
-
},
|
|
1289
|
-
ABOUT: {
|
|
1290
|
-
schema: L.ABOUT,
|
|
1291
|
-
method: "about"
|
|
1292
|
-
},
|
|
1293
|
-
GET_USER_PREFERENCES: {
|
|
1294
|
-
schema: L.GET_USER_PREFERENCES,
|
|
1295
|
-
method: "getUserPreferences"
|
|
1296
|
-
},
|
|
1297
|
-
SET_USER_PREFERENCES: {
|
|
1298
|
-
schema: L.SET_USER_PREFERENCES,
|
|
1299
|
-
method: "setUserPreferences"
|
|
1300
|
-
}
|
|
1301
|
-
}, lt = process.env.PUBLIC_SASSY_API_SERVER_URL, Pr = async ({
|
|
1302
|
-
query: e,
|
|
1303
|
-
data: t,
|
|
1304
|
-
headers: r = {}
|
|
1305
|
-
}) => await fetch(`${lt}/graphql`, {
|
|
1306
|
-
method: "POST",
|
|
1307
|
-
credentials: "include",
|
|
1308
|
-
headers: {
|
|
1309
|
-
...r,
|
|
1310
|
-
"Content-Type": "application/json",
|
|
1311
|
-
Accept: "application/json"
|
|
1312
|
-
},
|
|
1313
|
-
body: JSON.stringify({
|
|
1314
|
-
query: e,
|
|
1315
|
-
variables: t
|
|
1316
|
-
})
|
|
1317
|
-
}), ct = async ({
|
|
1318
|
-
accessToken: e,
|
|
1319
|
-
type: t,
|
|
1320
|
-
params: r = {}
|
|
1321
|
-
}) => {
|
|
1322
|
-
const a = t != null && t.data ? t.data(r) : r;
|
|
1323
|
-
try {
|
|
1324
|
-
const o = `Bearer ${e}`, n = await Pr({
|
|
1325
|
-
headers: {
|
|
1326
|
-
authorization: o
|
|
1327
|
-
},
|
|
1328
|
-
query: t.schema,
|
|
1329
|
-
data: a
|
|
1330
|
-
});
|
|
1331
|
-
if (n.status !== 200)
|
|
1332
|
-
return { status: n.status, data: [] };
|
|
1333
|
-
const { data: i, errors: c } = await n.json();
|
|
1334
|
-
return {
|
|
1335
|
-
status: n.status,
|
|
1336
|
-
data: i[t.method],
|
|
1337
|
-
errors: c
|
|
1338
|
-
};
|
|
1339
|
-
} catch (o) {
|
|
1340
|
-
return console.error(o), { status: 500, data: [] };
|
|
1341
|
-
}
|
|
1342
|
-
}, Dr = async ({
|
|
1343
|
-
accessToken: e,
|
|
1344
|
-
name: t,
|
|
1345
|
-
data: r,
|
|
1346
|
-
method: a = "POST"
|
|
1347
|
-
}) => {
|
|
1348
|
-
const o = `Bearer ${e}`;
|
|
1349
|
-
return await fetch(`${lt}/api/${t}`, {
|
|
1350
|
-
method: a,
|
|
1351
|
-
credentials: "include",
|
|
1352
|
-
headers: {
|
|
1353
|
-
"Content-Type": "application/json",
|
|
1354
|
-
authorization: o
|
|
1355
|
-
},
|
|
1356
|
-
body: JSON.stringify(r)
|
|
1357
|
-
});
|
|
1358
|
-
}, G = I.createContext({
|
|
1359
|
-
state: {
|
|
1360
|
-
id: "",
|
|
1361
|
-
model: U,
|
|
1362
|
-
engine: U,
|
|
1363
|
-
usage: 0,
|
|
1364
|
-
messages: [],
|
|
1365
|
-
isComponent: !1,
|
|
1366
|
-
prompts: []
|
|
1367
|
-
},
|
|
1368
|
-
dispatch: () => {
|
|
1369
|
-
},
|
|
1370
|
-
serverStats: {
|
|
1371
|
-
version: "",
|
|
1372
|
-
models: [],
|
|
1373
|
-
plugins: [],
|
|
1374
|
-
engine: U,
|
|
1375
|
-
engines: []
|
|
1376
|
-
}
|
|
1377
|
-
}), Vr = I.createContext({
|
|
1378
|
-
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1379
|
-
dispatch: () => {
|
|
1380
|
-
}
|
|
1381
|
-
}), ve = I.createContext({
|
|
1382
|
-
state: { prompt: "" },
|
|
1383
|
-
dispatch: () => {
|
|
1384
|
-
}
|
|
1385
|
-
});
|
|
1386
|
-
/*!
|
|
1387
|
-
@versini/ui-textarea v3.0.0
|
|
1388
|
-
© 2025 gizmette.com
|
|
1389
|
-
*/
|
|
1390
|
-
try {
|
|
1391
|
-
window.__VERSINI_UI_TEXTAREA__ || (window.__VERSINI_UI_TEXTAREA__ = {
|
|
1392
|
-
version: "3.0.0",
|
|
1393
|
-
buildTime: "01/03/2025 10:45 AM EST",
|
|
1394
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
1395
|
-
license: "MIT"
|
|
1396
|
-
});
|
|
1397
|
-
} catch {
|
|
1398
|
-
}
|
|
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";
|
|
1400
|
-
function Wr() {
|
|
1401
|
-
const e = k(!1);
|
|
1402
|
-
return x(() => (e.current = !0, () => {
|
|
1403
|
-
e.current = !1;
|
|
1404
|
-
}), []), P(() => e.current, []);
|
|
1405
|
-
}
|
|
1406
|
-
function jr(e) {
|
|
1407
|
-
return pe(() => e.every((t) => t == null) ? () => {
|
|
1408
|
-
} : (t) => {
|
|
1409
|
-
e.forEach((r) => {
|
|
1410
|
-
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1411
|
-
});
|
|
1412
|
-
}, e);
|
|
1413
|
-
}
|
|
1414
|
-
const qr = {
|
|
1415
|
-
x: 0,
|
|
1416
|
-
y: 0,
|
|
1417
|
-
width: 0,
|
|
1418
|
-
height: 0,
|
|
1419
|
-
top: 0,
|
|
1420
|
-
left: 0,
|
|
1421
|
-
bottom: 0,
|
|
1422
|
-
right: 0
|
|
1423
|
-
};
|
|
1424
|
-
function Ve(e) {
|
|
1425
|
-
const t = Wr(), r = k(0), a = k(null), [o, n] = S(qr), i = pe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
|
|
1426
|
-
const d = c[0];
|
|
1427
|
-
d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
1428
|
-
a.current && t() && n(d.contentRect);
|
|
1429
|
-
}));
|
|
1430
|
-
}), [t]);
|
|
1431
|
-
return x(() => (a.current && (i == null || i.observe(a.current, e)), () => {
|
|
1432
|
-
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
1433
|
-
}), [i, e]), [a, o];
|
|
1434
|
-
}
|
|
1435
|
-
function Kr({
|
|
1436
|
-
value: e,
|
|
1437
|
-
defaultValue: t,
|
|
1438
|
-
finalValue: r,
|
|
1439
|
-
onChange: a = () => {
|
|
1440
|
-
},
|
|
1441
|
-
initialControlledDelay: o = 0
|
|
1442
|
-
}) {
|
|
1443
|
-
const [n, i] = S(!1), [c, d] = S(
|
|
1444
|
-
t !== void 0 ? t : r
|
|
1445
|
-
), m = (u) => {
|
|
1446
|
-
d(u), a == null || a(u);
|
|
1447
|
-
};
|
|
1448
|
-
return x(() => {
|
|
1449
|
-
(async () => e !== void 0 && !n && o > 0 && (await new Promise(
|
|
1450
|
-
(u) => setTimeout(u, o)
|
|
1451
|
-
), i(!0)))();
|
|
1452
|
-
}, [e, o, n]), e !== void 0 ? !n && o > 0 ? ["", a, !0] : [e, a, !0] : [c, m, !1];
|
|
1453
|
-
}
|
|
1454
|
-
function Jr(e) {
|
|
1455
|
-
const t = Qt();
|
|
1456
|
-
if (!e)
|
|
1457
|
-
return t;
|
|
1458
|
-
if (typeof e == "number" || typeof e == "string")
|
|
1459
|
-
return `${e}${t}`;
|
|
1460
|
-
if (typeof e == "object") {
|
|
1461
|
-
const { id: r, prefix: a = "" } = e;
|
|
1462
|
-
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
1463
|
-
}
|
|
1464
|
-
}
|
|
1465
|
-
const mt = "SET_ANNOUNCEMENT", ut = "CLEAR_ANNOUNCEMENT", Qr = {
|
|
1466
|
-
alert: null,
|
|
1467
|
-
alertdialog: null,
|
|
1468
|
-
log: "polite",
|
|
1469
|
-
marquee: null,
|
|
1470
|
-
progressbar: null,
|
|
1471
|
-
status: "polite",
|
|
1472
|
-
timer: "assertive"
|
|
1473
|
-
}, Xr = (e, t) => {
|
|
1474
|
-
switch (t == null ? void 0 : t.type) {
|
|
1475
|
-
case mt:
|
|
1476
|
-
return {
|
|
1477
|
-
...e,
|
|
1478
|
-
announcement: t.payload
|
|
1479
|
-
};
|
|
1480
|
-
case ut:
|
|
1481
|
-
return {
|
|
1482
|
-
...e,
|
|
1483
|
-
announcement: null
|
|
1484
|
-
};
|
|
1485
|
-
default:
|
|
1486
|
-
return e;
|
|
1487
|
-
}
|
|
1488
|
-
}, Yr = ({
|
|
1489
|
-
onAnnouncementClear: e,
|
|
1490
|
-
dispatch: t
|
|
1491
|
-
}) => {
|
|
1492
|
-
t({
|
|
1493
|
-
type: ut
|
|
1494
|
-
}), typeof e == "function" && e();
|
|
1495
|
-
}, He = ({
|
|
1496
|
-
children: e,
|
|
1497
|
-
clearAnnouncementDelay: t,
|
|
1498
|
-
clearAnnouncementTimeoutRef: r,
|
|
1499
|
-
onAnnouncementClear: a,
|
|
1500
|
-
dispatch: o
|
|
1501
|
-
}) => {
|
|
1502
|
-
clearTimeout(r.current), e !== null && o({
|
|
1503
|
-
type: mt,
|
|
1504
|
-
payload: e
|
|
1505
|
-
}), t && (r.current = setTimeout(
|
|
1506
|
-
() => Yr({
|
|
1507
|
-
onAnnouncementClear: a,
|
|
1508
|
-
dispatch: o
|
|
1509
|
-
}),
|
|
1510
|
-
t
|
|
1511
|
-
));
|
|
1512
|
-
}, Zr = ({
|
|
1513
|
-
children: e,
|
|
1514
|
-
announcementTimeoutRef: t,
|
|
1515
|
-
announcementDelay: r,
|
|
1516
|
-
clearAnnouncementDelay: a,
|
|
1517
|
-
clearAnnouncementTimeoutRef: o,
|
|
1518
|
-
onAnnouncementClear: n,
|
|
1519
|
-
dispatch: i
|
|
1520
|
-
}) => {
|
|
1521
|
-
clearTimeout(t.current), r ? t.current = setTimeout(He, r, {
|
|
1522
|
-
children: e,
|
|
1523
|
-
clearAnnouncementDelay: a,
|
|
1524
|
-
clearAnnouncementTimeoutRef: o,
|
|
1525
|
-
onAnnouncementClear: n,
|
|
1526
|
-
dispatch: i
|
|
1527
|
-
}) : He({
|
|
1528
|
-
children: e,
|
|
1529
|
-
clearAnnouncementDelay: a,
|
|
1530
|
-
clearAnnouncementTimeoutRef: o,
|
|
1531
|
-
onAnnouncementClear: n,
|
|
1532
|
-
dispatch: i
|
|
1533
|
-
});
|
|
1534
|
-
};
|
|
1535
|
-
function ea({
|
|
1536
|
-
children: e,
|
|
1537
|
-
className: t,
|
|
1538
|
-
politeness: r,
|
|
1539
|
-
role: a = null,
|
|
1540
|
-
announcementDelay: o,
|
|
1541
|
-
clearAnnouncementDelay: n,
|
|
1542
|
-
onAnnouncementClear: i,
|
|
1543
|
-
visible: c,
|
|
1544
|
-
...d
|
|
1545
|
-
}) {
|
|
1546
|
-
const m = k(null), u = k(null), [h, g] = Q(Xr, {
|
|
1547
|
-
announcement: null
|
|
1548
|
-
});
|
|
1549
|
-
let p = r;
|
|
1550
|
-
typeof p > "u" && (p = a ? Qr[a] : "assertive"), x(() => {
|
|
1551
|
-
Zr({
|
|
1552
|
-
announcementTimeoutRef: m,
|
|
1553
|
-
announcementDelay: o,
|
|
1554
|
-
children: e,
|
|
1555
|
-
clearAnnouncementDelay: n,
|
|
1556
|
-
clearAnnouncementTimeoutRef: u,
|
|
1557
|
-
onAnnouncementClear: i,
|
|
1558
|
-
dispatch: g
|
|
1559
|
-
});
|
|
1560
|
-
}, [
|
|
1561
|
-
e,
|
|
1562
|
-
o,
|
|
1563
|
-
n,
|
|
1564
|
-
i
|
|
1565
|
-
]);
|
|
1566
|
-
const b = s(t, {
|
|
1567
|
-
"sr-only": !c
|
|
1568
|
-
});
|
|
1569
|
-
return /* @__PURE__ */ l(
|
|
1570
|
-
"div",
|
|
1571
|
-
{
|
|
1572
|
-
"aria-live": p,
|
|
1573
|
-
...a && { role: a },
|
|
1574
|
-
className: b,
|
|
1575
|
-
...d,
|
|
1576
|
-
children: h.announcement
|
|
1577
|
-
}
|
|
1578
|
-
);
|
|
1579
|
-
}
|
|
1580
|
-
/*!
|
|
1581
|
-
@versini/ui-liveregion v1.3.0
|
|
1582
|
-
© 2025 gizmette.com
|
|
1583
|
-
*/
|
|
1584
|
-
try {
|
|
1585
|
-
window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
|
|
1586
|
-
version: "1.3.0",
|
|
1587
|
-
buildTime: "01/03/2025 10:45 AM EST",
|
|
1588
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
1589
|
-
license: "MIT"
|
|
1590
|
-
});
|
|
1591
|
-
} catch {
|
|
1592
|
-
}
|
|
1593
|
-
const ta = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", ra = ({ mode: e }) => s({
|
|
1594
|
-
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
1595
|
-
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
1596
|
-
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
1597
|
-
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
1598
|
-
}), aa = ({
|
|
1599
|
-
focusMode: e
|
|
1600
|
-
}) => s("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
1601
|
-
"focus:outline-focus-dark": e === "dark",
|
|
1602
|
-
"focus:outline-focus-light": e === "light",
|
|
1603
|
-
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
1604
|
-
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
1605
|
-
}), oa = ({
|
|
1606
|
-
noBorder: e,
|
|
1607
|
-
error: t
|
|
1608
|
-
}) => s("border-2", {
|
|
1609
|
-
"border-border-dark": !e && !t,
|
|
1610
|
-
"focus:border-border-dark": !e && t,
|
|
1611
|
-
"border-border-error-dark": !e && t,
|
|
1612
|
-
"border-transparent": e
|
|
1613
|
-
}), na = ({
|
|
1614
|
-
disabled: e,
|
|
1615
|
-
raw: t,
|
|
1616
|
-
error: r,
|
|
1617
|
-
mode: a,
|
|
1618
|
-
leftElement: o,
|
|
1619
|
-
rightElement: n
|
|
1620
|
-
}) => {
|
|
1621
|
-
if (t)
|
|
1622
|
-
return "";
|
|
1623
|
-
if (e)
|
|
1624
|
-
return s(
|
|
1625
|
-
"transform translate-y-0 scale-100 absolute px-2 cursor-not-allowed opacity-50 font-medium",
|
|
1626
|
-
{
|
|
1627
|
-
"translate-x-[12px]": n === !0 && !o || !n && !o
|
|
1628
|
-
}
|
|
1629
|
-
);
|
|
1630
|
-
if (!r)
|
|
1631
|
-
return s(
|
|
1632
|
-
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
|
1633
|
-
{
|
|
1634
|
-
"translate-x-[12px]": n === !0 && !o || !n && !o,
|
|
1635
|
-
"text-copy-medium": a === "dark",
|
|
1636
|
-
"text-copy-dark": a === "light",
|
|
1637
|
-
"text-copy-dark dark:text-copy-medium": a === "system",
|
|
1638
|
-
"text-copy-medium dark:text-copy-dark": a === "alt-system"
|
|
1639
|
-
}
|
|
1640
|
-
);
|
|
1641
|
-
if (r)
|
|
1642
|
-
return s(
|
|
1643
|
-
"absolute px-2 cursor-text font-medium transform translate-y-0 scale-100",
|
|
1644
|
-
{
|
|
1645
|
-
"translate-x-[12px]": n === !0 && !o || !n && !o,
|
|
1646
|
-
"text-copy-medium": a === "dark",
|
|
1647
|
-
"text-copy-error-dark": a === "light",
|
|
1648
|
-
"text-copy-error-dark dark:text-copy-error-light": a === "system",
|
|
1649
|
-
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
1650
|
-
}
|
|
1651
|
-
);
|
|
1652
|
-
}, sa = ({
|
|
1653
|
-
error: e,
|
|
1654
|
-
raw: t,
|
|
1655
|
-
mode: r,
|
|
1656
|
-
disabled: a
|
|
1657
|
-
}) => {
|
|
1658
|
-
if (t)
|
|
1659
|
-
return "";
|
|
1660
|
-
if (a)
|
|
1661
|
-
return s(
|
|
1662
|
-
ie,
|
|
1663
|
-
"absolute px-2 cursor-not-allowed opacity-50 font-medium"
|
|
1664
|
-
);
|
|
1665
|
-
if (!e)
|
|
1666
|
-
return s(ie, "absolute px-2 font-medium", {
|
|
1667
|
-
"text-copy-medium": r === "dark",
|
|
1668
|
-
"text-copy-dark": r === "light",
|
|
1669
|
-
"text-copy-dark dark:text-copy-medium": r === "system",
|
|
1670
|
-
"text-copy-medium dark:text-copy-dark": r === "alt-system"
|
|
1671
|
-
});
|
|
1672
|
-
if (e)
|
|
1673
|
-
return s(ie, "absolute px-2 font-medium", {
|
|
1674
|
-
"text-copy-error-light": r === "dark",
|
|
1675
|
-
"text-copy-error-dark": r === "light",
|
|
1676
|
-
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
|
1677
|
-
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
|
1678
|
-
});
|
|
1679
|
-
}, ia = ({
|
|
1680
|
-
className: e,
|
|
1681
|
-
textAreaClassName: t,
|
|
1682
|
-
raw: r,
|
|
1683
|
-
focusMode: a,
|
|
1684
|
-
disabled: o,
|
|
1685
|
-
noBorder: n,
|
|
1686
|
-
error: i,
|
|
1687
|
-
mode: c,
|
|
1688
|
-
leftElement: d,
|
|
1689
|
-
rightElement: m
|
|
1690
|
-
}) => {
|
|
1691
|
-
const u = r ? e : s(
|
|
1692
|
-
"relative flex w-full flex-col justify-center",
|
|
1693
|
-
Hr,
|
|
1694
|
-
e
|
|
1695
|
-
), h = r ? s(t) : s(
|
|
1696
|
-
dt,
|
|
1697
|
-
t,
|
|
1698
|
-
ta(),
|
|
1699
|
-
ra({ mode: c }),
|
|
1700
|
-
aa({ focusMode: a }),
|
|
1701
|
-
oa({
|
|
1702
|
-
noBorder: n,
|
|
1703
|
-
error: i
|
|
1704
|
-
}),
|
|
1705
|
-
{
|
|
1706
|
-
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
1707
|
-
}
|
|
1708
|
-
), g = r ? void 0 : "sr-only", p = na({
|
|
1709
|
-
disabled: o,
|
|
1710
|
-
raw: r,
|
|
1711
|
-
error: i,
|
|
1712
|
-
mode: c,
|
|
1713
|
-
rightElement: m,
|
|
1714
|
-
leftElement: d
|
|
1715
|
-
}), b = sa({
|
|
1716
|
-
error: i,
|
|
1717
|
-
raw: r,
|
|
1718
|
-
mode: c,
|
|
1719
|
-
disabled: o
|
|
1720
|
-
}), f = r ? void 0 : s(Fr, "absolute"), y = r ? void 0 : s(Gr, "absolute");
|
|
1721
|
-
return {
|
|
1722
|
-
wrapper: u,
|
|
1723
|
-
textArea: h,
|
|
1724
|
-
accessibleLabel: g,
|
|
1725
|
-
visibleLabel: p,
|
|
1726
|
-
helperText: b,
|
|
1727
|
-
rightElement: f,
|
|
1728
|
-
leftElement: y
|
|
1729
|
-
};
|
|
1730
|
-
}, la = ({
|
|
1731
|
-
scrollHeight: e,
|
|
1732
|
-
currentHeight: t,
|
|
1733
|
-
currentLabelOffset: r = 0,
|
|
1734
|
-
currentHelperTextOffset: a = 0
|
|
1735
|
-
}) => {
|
|
1736
|
-
let o, n;
|
|
1737
|
-
if (e > 0 && e !== t) {
|
|
1738
|
-
const i = e - t, c = Math.abs(i / 24);
|
|
1739
|
-
o = r + -1 * Math.sign(i) * (12 * c), n = a + Math.sign(i) * (12 * c);
|
|
1740
|
-
}
|
|
1741
|
-
return {
|
|
1742
|
-
labelOffset: o,
|
|
1743
|
-
helperTextOffset: n,
|
|
1744
|
-
scrollHeight: e
|
|
1745
|
-
};
|
|
1746
|
-
}, gt = I.forwardRef(
|
|
1747
|
-
({
|
|
1748
|
-
id: e,
|
|
1749
|
-
name: t,
|
|
1750
|
-
label: r,
|
|
1751
|
-
error: a = !1,
|
|
1752
|
-
raw: o = !1,
|
|
1753
|
-
className: n,
|
|
1754
|
-
textAreaClassName: i,
|
|
1755
|
-
mode: c = "system",
|
|
1756
|
-
focusMode: d = "system",
|
|
1757
|
-
value: m,
|
|
1758
|
-
defaultValue: u,
|
|
1759
|
-
disabled: h = !1,
|
|
1760
|
-
noBorder: g = !1,
|
|
1761
|
-
labelId: p,
|
|
1762
|
-
helperText: b = "",
|
|
1763
|
-
helperTextOnFocus: f = !1,
|
|
1764
|
-
rightElement: y,
|
|
1765
|
-
leftElement: _,
|
|
1766
|
-
onChange: N,
|
|
1767
|
-
onFocus: T,
|
|
1768
|
-
onBlur: R,
|
|
1769
|
-
...E
|
|
1770
|
-
}, M) => {
|
|
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(
|
|
1773
|
-
!!(!f && b)
|
|
1774
|
-
), St = `${t} error, ${b}`, O = ia({
|
|
1775
|
-
className: n,
|
|
1776
|
-
textAreaClassName: i,
|
|
1777
|
-
error: a,
|
|
1778
|
-
raw: o,
|
|
1779
|
-
focusMode: d,
|
|
1780
|
-
disabled: h,
|
|
1781
|
-
noBorder: g,
|
|
1782
|
-
mode: c,
|
|
1783
|
-
rightElement: !!y,
|
|
1784
|
-
leftElement: !!_
|
|
1785
|
-
}), [A, Ct] = Kr({
|
|
1786
|
-
value: m,
|
|
1787
|
-
initialControlledDelay: 20,
|
|
1788
|
-
defaultValue: u,
|
|
1789
|
-
onChange: (C) => {
|
|
1790
|
-
N && N({
|
|
1791
|
-
target: {
|
|
1792
|
-
value: C
|
|
1793
|
-
}
|
|
1794
|
-
});
|
|
1795
|
-
}
|
|
1796
|
-
}), It = (C) => {
|
|
1797
|
-
Ct(C.target.value);
|
|
1798
|
-
}, Rt = (C) => {
|
|
1799
|
-
f && b && Re(!0), T && T(C);
|
|
1800
|
-
}, $t = (C) => {
|
|
1801
|
-
f && b && !A && Re(!1), R && R(C);
|
|
1802
|
-
};
|
|
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(() => {
|
|
1810
|
-
o || setTimeout(() => {
|
|
1811
|
-
var C;
|
|
1812
|
-
(C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1813
|
-
"--av-text-area-wrapper-transition",
|
|
1814
|
-
A ? "none" : "all 0.2s ease-out"
|
|
1815
|
-
);
|
|
1816
|
-
}, 0);
|
|
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,
|
|
1822
|
-
currentHeight: re.current,
|
|
1823
|
-
currentLabelOffset: Ee.current,
|
|
1824
|
-
currentHelperTextOffset: Se.current
|
|
1825
|
-
});
|
|
1826
|
-
oe && (Ee.current = oe, (C = z == null ? void 0 : z.current) == null || C.style.setProperty(
|
|
1827
|
-
"--av-text-area-label",
|
|
1828
|
-
`${oe}px`
|
|
1829
|
-
)), ne && (Se.current = ne, ($e = ae == null ? void 0 : ae.current) == null || $e.style.setProperty(
|
|
1830
|
-
"--av-text-area-helper-text",
|
|
1831
|
-
`${ne}px`
|
|
1832
|
-
)), re.current = Bt || re.current;
|
|
1833
|
-
}
|
|
1834
|
-
}, [A, o]), D.width > 0 && ((Te = z == null ? void 0 : z.current) == null || Te.style.setProperty(
|
|
1835
|
-
"--tw-translate-x",
|
|
1836
|
-
`${12 + D.width + 5}px`
|
|
1837
|
-
)), /* @__PURE__ */ v("div", { className: O.wrapper, children: [
|
|
1838
|
-
/* @__PURE__ */ l(
|
|
1839
|
-
"label",
|
|
1840
|
-
{
|
|
1841
|
-
htmlFor: W,
|
|
1842
|
-
id: p,
|
|
1843
|
-
className: O.accessibleLabel,
|
|
1844
|
-
children: r
|
|
1845
|
-
}
|
|
1846
|
-
),
|
|
1847
|
-
_ && /* @__PURE__ */ l(
|
|
1848
|
-
"div",
|
|
1849
|
-
{
|
|
1850
|
-
ref: wt,
|
|
1851
|
-
className: O.leftElement,
|
|
1852
|
-
children: _
|
|
1853
|
-
}
|
|
1854
|
-
),
|
|
1855
|
-
/* @__PURE__ */ l(
|
|
1856
|
-
"textarea",
|
|
1857
|
-
{
|
|
1858
|
-
ref: xt,
|
|
1859
|
-
id: W,
|
|
1860
|
-
name: t,
|
|
1861
|
-
disabled: h,
|
|
1862
|
-
placeholder: o ? void 0 : " ",
|
|
1863
|
-
className: O.textArea,
|
|
1864
|
-
rows: 1,
|
|
1865
|
-
...b && { "aria-describedby": `${W}-helper` },
|
|
1866
|
-
...a && { "aria-invalid": "true" },
|
|
1867
|
-
...y && !_ && !o && { style: { paddingRight: Ce } },
|
|
1868
|
-
..._ && !y && !o && { style: { paddingLeft: Ie } },
|
|
1869
|
-
...y && _ && !o && {
|
|
1870
|
-
style: {
|
|
1871
|
-
paddingRight: Ce,
|
|
1872
|
-
paddingLeft: Ie
|
|
1873
|
-
}
|
|
1874
|
-
},
|
|
1875
|
-
value: A,
|
|
1876
|
-
onChange: It,
|
|
1877
|
-
onFocus: Rt,
|
|
1878
|
-
onBlur: $t,
|
|
1879
|
-
...E
|
|
1880
|
-
}
|
|
1881
|
-
),
|
|
1882
|
-
!o && /* @__PURE__ */ l(
|
|
1883
|
-
"label",
|
|
1884
|
-
{
|
|
1885
|
-
ref: z,
|
|
1886
|
-
"aria-hidden": !0,
|
|
1887
|
-
htmlFor: W,
|
|
1888
|
-
className: `${O.visibleLabel}`,
|
|
1889
|
-
children: r
|
|
1890
|
-
}
|
|
1891
|
-
),
|
|
1892
|
-
Et && /* @__PURE__ */ l(
|
|
1893
|
-
"div",
|
|
1894
|
-
{
|
|
1895
|
-
ref: ae,
|
|
1896
|
-
id: `${W}-helper`,
|
|
1897
|
-
className: O.helperText,
|
|
1898
|
-
children: b
|
|
1899
|
-
}
|
|
1900
|
-
),
|
|
1901
|
-
y && /* @__PURE__ */ l(
|
|
1902
|
-
"div",
|
|
1903
|
-
{
|
|
1904
|
-
ref: _t,
|
|
1905
|
-
className: O.rightElement,
|
|
1906
|
-
children: y
|
|
1907
|
-
}
|
|
1908
|
-
),
|
|
1909
|
-
a && b && /* @__PURE__ */ l(ea, { politeness: "polite", clearAnnouncementDelay: 500, children: St })
|
|
1910
|
-
] });
|
|
1911
|
-
}
|
|
1912
|
-
);
|
|
1913
|
-
gt.displayName = "TextArea";
|
|
1914
|
-
const ca = ({
|
|
1915
|
-
mode: e = "light",
|
|
1916
|
-
focusMode: t = "light",
|
|
1917
|
-
radius: r = "small"
|
|
1918
|
-
}) => {
|
|
1919
|
-
const { state: a, dispatch: o } = $(G), n = k(null), i = k(!1), c = (d) => {
|
|
1920
|
-
d.preventDefault(), o({
|
|
1921
|
-
type: qe
|
|
1922
|
-
});
|
|
1923
|
-
};
|
|
1924
|
-
return x(() => {
|
|
1925
|
-
var d;
|
|
1926
|
-
(a == null ? void 0 : a.streaming) === !0 && !i.current && n.current && (i.current = !0, n.current.focus()), (a == null ? void 0 : a.streaming) === !1 && (i.current = !1, (d = n.current) == null || d.blur());
|
|
1927
|
-
}, [a]), /* @__PURE__ */ l(
|
|
1928
|
-
et,
|
|
1929
|
-
{
|
|
1930
|
-
noBorder: !0,
|
|
1931
|
-
radius: r,
|
|
1932
|
-
mode: e,
|
|
1933
|
-
focusMode: t,
|
|
1934
|
-
ref: n,
|
|
1935
|
-
onClick: c,
|
|
1936
|
-
children: a != null && a.streaming ? /* @__PURE__ */ l(Yt, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xt, { size: "size-4", monotone: !0 })
|
|
1937
|
-
}
|
|
1938
|
-
);
|
|
1939
|
-
}, X = (e, t) => {
|
|
1940
|
-
e({
|
|
1941
|
-
type: Qe,
|
|
1942
|
-
payload: {
|
|
1943
|
-
streaming: t
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
}, Fe = (e) => {
|
|
1947
|
-
X(e, !1), e({
|
|
1948
|
-
type: q,
|
|
1949
|
-
payload: {
|
|
1950
|
-
message: {
|
|
1951
|
-
role: he,
|
|
1952
|
-
content: Dt
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
|
-
});
|
|
1956
|
-
}, da = () => {
|
|
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(
|
|
1958
|
-
null
|
|
1959
|
-
);
|
|
1960
|
-
x(() => {
|
|
1961
|
-
(async () => {
|
|
1962
|
-
var g;
|
|
1963
|
-
if (!e || e.messages.length === 0) {
|
|
1964
|
-
(g = m == null ? void 0 : m.current) == null || g.cancel();
|
|
1965
|
-
return;
|
|
1966
|
-
}
|
|
1967
|
-
const h = e.messages[e.messages.length - 1];
|
|
1968
|
-
if (!(e.messages.length === 0 || h.message.role === K || h.message.role === zt || h.message.role === he || h.message.role === Ot))
|
|
1969
|
-
try {
|
|
1970
|
-
const p = await Dr({
|
|
1971
|
-
accessToken: await i(),
|
|
1972
|
-
name: "generate",
|
|
1973
|
-
data: {
|
|
1974
|
-
messages: e.messages,
|
|
1975
|
-
model: e.engine || U,
|
|
1976
|
-
user: (c == null ? void 0 : c.username) || "",
|
|
1977
|
-
id: e.id,
|
|
1978
|
-
usage: e.usage
|
|
1979
|
-
}
|
|
1980
|
-
});
|
|
1981
|
-
if (p && p.ok) {
|
|
1982
|
-
const b = ke();
|
|
1983
|
-
m.current = p.body.getReader();
|
|
1984
|
-
const f = new TextDecoder();
|
|
1985
|
-
for (; ; ) {
|
|
1986
|
-
X(t, !0);
|
|
1987
|
-
const { done: y, value: _ } = await m.current.read();
|
|
1988
|
-
if (y) {
|
|
1989
|
-
X(t, !1);
|
|
1990
|
-
break;
|
|
1991
|
-
}
|
|
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)
|
|
1996
|
-
);
|
|
1997
|
-
t({
|
|
1998
|
-
type: Ke,
|
|
1999
|
-
payload: {
|
|
2000
|
-
model: E.model,
|
|
2001
|
-
usage: E.usage
|
|
2002
|
-
}
|
|
2003
|
-
}), t({
|
|
2004
|
-
type: q,
|
|
2005
|
-
payload: {
|
|
2006
|
-
message: {
|
|
2007
|
-
content: R,
|
|
2008
|
-
role: K,
|
|
2009
|
-
messageId: b,
|
|
2010
|
-
processingTime: E.processingTime,
|
|
2011
|
-
name: E.name
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
}), X(t, !1);
|
|
2015
|
-
break;
|
|
2016
|
-
} else
|
|
2017
|
-
t({
|
|
2018
|
-
type: q,
|
|
2019
|
-
payload: {
|
|
2020
|
-
message: {
|
|
2021
|
-
content: N,
|
|
2022
|
-
role: K,
|
|
2023
|
-
messageId: b
|
|
2024
|
-
}
|
|
2025
|
-
}
|
|
2026
|
-
});
|
|
2027
|
-
}
|
|
2028
|
-
} else
|
|
2029
|
-
Fe(t);
|
|
2030
|
-
} catch (p) {
|
|
2031
|
-
console.error(p), Fe(t);
|
|
2032
|
-
}
|
|
2033
|
-
})();
|
|
2034
|
-
}, [e == null ? void 0 : e.messages]);
|
|
2035
|
-
const u = async (h) => {
|
|
2036
|
-
h.preventDefault(), t({
|
|
2037
|
-
type: q,
|
|
2038
|
-
payload: {
|
|
2039
|
-
message: {
|
|
2040
|
-
role: le,
|
|
2041
|
-
content: o
|
|
2042
|
-
}
|
|
2043
|
-
}
|
|
2044
|
-
}), n("");
|
|
2045
|
-
};
|
|
2046
|
-
return x(() => {
|
|
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));
|
|
2051
|
-
}) : n(h), d.current && d.current.focus(), a({
|
|
2052
|
-
type: Ye
|
|
2053
|
-
});
|
|
2054
|
-
}
|
|
2055
|
-
}, [r, a]), x(() => {
|
|
2056
|
-
e && e.usage === 0 && e.messages.length === 0 && d.current && d.current.focus();
|
|
2057
|
-
}, [e]), /* @__PURE__ */ l(Y, { children: /* @__PURE__ */ l("form", { className: "mt-2", onSubmit: u, children: /* @__PURE__ */ l(
|
|
2058
|
-
gt,
|
|
2059
|
-
{
|
|
2060
|
-
mode: "dark",
|
|
2061
|
-
focusMode: "light",
|
|
2062
|
-
ref: d,
|
|
2063
|
-
name: "chat-input",
|
|
2064
|
-
label: Ut,
|
|
2065
|
-
helperText: "Press ENTER to add a new line",
|
|
2066
|
-
helperTextOnFocus: !0,
|
|
2067
|
-
required: !0,
|
|
2068
|
-
value: o,
|
|
2069
|
-
onChange: (h) => n(h.target.value),
|
|
2070
|
-
onKeyDown: nr([["mod+Enter", u]]),
|
|
2071
|
-
leftElement: /* @__PURE__ */ l(ca, {}),
|
|
2072
|
-
rightElement: /* @__PURE__ */ l(
|
|
2073
|
-
tt,
|
|
2074
|
-
{
|
|
2075
|
-
disabled: e == null ? void 0 : e.streaming,
|
|
2076
|
-
noBorder: !0,
|
|
2077
|
-
type: "submit",
|
|
2078
|
-
mode: "light",
|
|
2079
|
-
focusMode: "light",
|
|
2080
|
-
children: Pt
|
|
2081
|
-
}
|
|
2082
|
-
)
|
|
2083
|
-
}
|
|
2084
|
-
) }) });
|
|
2085
|
-
}, ma = () => {
|
|
2086
|
-
const { dispatch: e, state: t } = $(ve), { getAccessToken: r, user: a } = Z(), [o, n] = S({
|
|
2087
|
-
loaded: !1
|
|
2088
|
-
}), i = "mt-2 flex justify-center rounded-md", c = (d, m) => {
|
|
2089
|
-
d.preventDefault(), e({
|
|
2090
|
-
type: Ze,
|
|
2091
|
-
payload: {
|
|
2092
|
-
prompt: m
|
|
2093
|
-
}
|
|
2094
|
-
});
|
|
2095
|
-
};
|
|
2096
|
-
return x(() => {
|
|
2097
|
-
if (!a) {
|
|
2098
|
-
n({
|
|
2099
|
-
loaded: !1
|
|
2100
|
-
});
|
|
2101
|
-
return;
|
|
2102
|
-
}
|
|
2103
|
-
o.loaded || (async () => {
|
|
2104
|
-
try {
|
|
2105
|
-
const d = await ct({
|
|
2106
|
-
accessToken: await r(),
|
|
2107
|
-
type: it.GET_USER_PREFERENCES,
|
|
2108
|
-
params: {
|
|
2109
|
-
user: a.username
|
|
2110
|
-
}
|
|
2111
|
-
});
|
|
2112
|
-
d.status === 200 && (e({
|
|
2113
|
-
type: Xe,
|
|
2114
|
-
payload: {
|
|
2115
|
-
prompts: d.data.tags || []
|
|
2116
|
-
}
|
|
2117
|
-
}), n({
|
|
2118
|
-
loaded: !0
|
|
2119
|
-
}));
|
|
2120
|
-
} catch {
|
|
2121
|
-
}
|
|
2122
|
-
})();
|
|
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(
|
|
2124
|
-
tt,
|
|
2125
|
-
{
|
|
2126
|
-
noBorder: !0,
|
|
2127
|
-
mode: "dark",
|
|
2128
|
-
focusMode: "light",
|
|
2129
|
-
size: "small",
|
|
2130
|
-
onClick: (m) => c(m, d.content),
|
|
2131
|
-
children: d.label
|
|
2132
|
-
}
|
|
2133
|
-
) }) }, `prompt-button-${d.slot}`)) }) });
|
|
2134
|
-
}, ua = () => {
|
|
2135
|
-
const { state: e } = $(G), t = k(!1), r = window.innerWidth < 403, [a, o] = S(
|
|
2136
|
-
r ? "bottom-10" : "top-[245px]"
|
|
2137
|
-
);
|
|
2138
|
-
return x(() => {
|
|
2139
|
-
r || e && (!t.current && e.streaming && o("bottom-10"), t.current = !!e.streaming);
|
|
2140
|
-
}, [e, r]), x(() => {
|
|
2141
|
-
r || (e && e.messages.length === 0 && o("top-[245px]"), e && !e.streaming && e.messages.length > 0 && o("bottom-10"));
|
|
2142
|
-
}, [e, r]), /* @__PURE__ */ v(
|
|
2143
|
-
"footer",
|
|
2144
|
-
{
|
|
2145
|
-
className: s(
|
|
2146
|
-
"md:mx-auto md:max-w-4xl w-11/12 fixed left-1/2 transform -translate-x-1/2 z-1000",
|
|
2147
|
-
a
|
|
2148
|
-
),
|
|
2149
|
-
children: [
|
|
2150
|
-
/* @__PURE__ */ l(ma, {}),
|
|
2151
|
-
/* @__PURE__ */ l(da, {})
|
|
2152
|
-
]
|
|
2153
|
-
}
|
|
2154
|
-
);
|
|
2155
|
-
};
|
|
2156
|
-
/*!
|
|
2157
|
-
@versini/ui-bubble v3.0.4
|
|
2158
|
-
© 2025 gizmette.com
|
|
2159
|
-
*/
|
|
2160
|
-
try {
|
|
2161
|
-
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
2162
|
-
version: "3.0.4",
|
|
2163
|
-
buildTime: "01/04/2025 07:31 PM EST",
|
|
2164
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
2165
|
-
license: "MIT"
|
|
2166
|
-
});
|
|
2167
|
-
} catch {
|
|
2168
|
-
}
|
|
2169
|
-
const ga = "av-bubble", Ge = "av-button", te = "icon", ht = "button", me = "link", ha = ({
|
|
2170
|
-
type: e,
|
|
2171
|
-
size: t,
|
|
2172
|
-
labelRight: r,
|
|
2173
|
-
labelLeft: a,
|
|
2174
|
-
align: o
|
|
2175
|
-
}) => {
|
|
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";
|
|
2177
|
-
switch (e) {
|
|
2178
|
-
case ht:
|
|
2179
|
-
case me:
|
|
2180
|
-
return s({
|
|
2181
|
-
[n]: t === "small",
|
|
2182
|
-
[i]: t === "medium",
|
|
2183
|
-
[c]: t === "large"
|
|
2184
|
-
});
|
|
2185
|
-
case te:
|
|
2186
|
-
return s("inline-flex items-center", {
|
|
2187
|
-
"justify-center": o === "center",
|
|
2188
|
-
"justify-start": o === "left",
|
|
2189
|
-
"justify-end": o === "right",
|
|
2190
|
-
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
2191
|
-
"h-6 px-2": t === "small" && (r || a),
|
|
2192
|
-
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
2193
|
-
"h-8 px-3": t === "medium" && (r || a),
|
|
2194
|
-
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
2195
|
-
"h-12 px-4": t === "large" && (r || a)
|
|
2196
|
-
});
|
|
2197
|
-
}
|
|
2198
|
-
}, pa = ({
|
|
2199
|
-
type: e,
|
|
2200
|
-
size: t,
|
|
2201
|
-
labelRight: r,
|
|
2202
|
-
labelLeft: a
|
|
2203
|
-
}) => {
|
|
2204
|
-
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2205
|
-
switch (e) {
|
|
2206
|
-
case ht:
|
|
2207
|
-
case me:
|
|
2208
|
-
return s({
|
|
2209
|
-
"text-center": e === me,
|
|
2210
|
-
[o]: t === "small",
|
|
2211
|
-
[n]: t === "medium",
|
|
2212
|
-
[i]: t === "large"
|
|
2213
|
-
});
|
|
2214
|
-
case te:
|
|
2215
|
-
return s({
|
|
2216
|
-
[o]: t === "small" && (r || a),
|
|
2217
|
-
[n]: t === "medium" && (r || a),
|
|
2218
|
-
[i]: t === "large" && (r || a)
|
|
2219
|
-
});
|
|
2220
|
-
}
|
|
2221
|
-
}, ba = ({
|
|
2222
|
-
mode: e,
|
|
2223
|
-
noBackground: t,
|
|
2224
|
-
noTruncate: r,
|
|
2225
|
-
variant: a
|
|
2226
|
-
}) => {
|
|
2227
|
-
if (t)
|
|
2228
|
-
return "not-prose";
|
|
2229
|
-
if (a === "primary")
|
|
2230
|
-
return s("not-prose", {
|
|
2231
|
-
truncate: !r,
|
|
2232
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
2233
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
2234
|
-
"dark:text-copy-lighter": e === "system",
|
|
2235
|
-
"dark:text-copy-light": e === "alt-system"
|
|
2236
|
-
});
|
|
2237
|
-
if (a === "secondary")
|
|
2238
|
-
return s("not-prose", {
|
|
2239
|
-
truncate: !r,
|
|
2240
|
-
"text-copy-light": e === "light" || e === "system",
|
|
2241
|
-
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
2242
|
-
"dark:text-copy-lighter": e === "alt-system",
|
|
2243
|
-
"dark:text-copy-light": e === "system"
|
|
2244
|
-
});
|
|
2245
|
-
if (a === "danger")
|
|
2246
|
-
return s("not-prose", {
|
|
2247
|
-
truncate: !r,
|
|
2248
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
2249
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
2250
|
-
"dark:text-copy-lighter": e === "system",
|
|
2251
|
-
"dark:text-copy-light": e === "alt-system"
|
|
2252
|
-
});
|
|
2253
|
-
if (a === "selected")
|
|
2254
|
-
return s("not-prose text-copy-lighter", {
|
|
2255
|
-
truncate: !r
|
|
2256
|
-
});
|
|
2257
|
-
}, ya = ({
|
|
2258
|
-
mode: e,
|
|
2259
|
-
noBackground: t,
|
|
2260
|
-
variant: r
|
|
2261
|
-
}) => {
|
|
2262
|
-
if (!t) {
|
|
2263
|
-
if (r === "primary")
|
|
2264
|
-
return s({
|
|
2265
|
-
"bg-action-dark": e === "dark",
|
|
2266
|
-
"bg-action-light": e === "light",
|
|
2267
|
-
"bg-action-dark dark:bg-action-light": e === "system",
|
|
2268
|
-
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
2269
|
-
});
|
|
2270
|
-
if (r === "secondary")
|
|
2271
|
-
return s({
|
|
2272
|
-
"bg-action-dark": e === "light",
|
|
2273
|
-
"bg-action-light": e === "dark",
|
|
2274
|
-
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
2275
|
-
"bg-action-light dark:bg-action-dark": e === "system"
|
|
2276
|
-
});
|
|
2277
|
-
if (r === "danger")
|
|
2278
|
-
return s({
|
|
2279
|
-
"bg-action-danger-dark": e === "dark",
|
|
2280
|
-
"bg-action-danger-light": e === "light",
|
|
2281
|
-
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
2282
|
-
"bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
|
|
2283
|
-
});
|
|
2284
|
-
if (r === "selected")
|
|
2285
|
-
return "bg-action-selected-dark";
|
|
2286
|
-
}
|
|
2287
|
-
}, fa = ({
|
|
2288
|
-
radius: e
|
|
2289
|
-
}) => s({
|
|
2290
|
-
"rounded-full": e === "large",
|
|
2291
|
-
"rounded-md": e === "medium",
|
|
2292
|
-
"rounded-sm": e === "small"
|
|
2293
|
-
}), ka = ({
|
|
2294
|
-
mode: e,
|
|
2295
|
-
disabled: t,
|
|
2296
|
-
variant: r
|
|
2297
|
-
}) => {
|
|
2298
|
-
if (t)
|
|
2299
|
-
return "";
|
|
2300
|
-
if (r === "primary")
|
|
2301
|
-
return s("hover:text-copy-light-hover", {
|
|
2302
|
-
"hover:bg-action-dark-hover": e === "dark",
|
|
2303
|
-
"hover:bg-action-light-hover": e === "light",
|
|
2304
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
2305
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
2306
|
-
});
|
|
2307
|
-
if (r === "secondary")
|
|
2308
|
-
return s("hover:text-copy-light-hover", {
|
|
2309
|
-
"hover:bg-action-dark-hover": e === "light",
|
|
2310
|
-
"hover:bg-action-light-hover": e === "dark",
|
|
2311
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
2312
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
2313
|
-
});
|
|
2314
|
-
if (r === "danger")
|
|
2315
|
-
return s("hover:text-copy-light-hover", {
|
|
2316
|
-
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
2317
|
-
"hover:bg-action-danger-light-hover": e === "light",
|
|
2318
|
-
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
2319
|
-
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
2320
|
-
});
|
|
2321
|
-
if (r === "selected")
|
|
2322
|
-
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2323
|
-
}, va = ({
|
|
2324
|
-
mode: e,
|
|
2325
|
-
disabled: t,
|
|
2326
|
-
variant: r
|
|
2327
|
-
}) => {
|
|
2328
|
-
if (t)
|
|
2329
|
-
return "";
|
|
2330
|
-
if (r === "primary")
|
|
2331
|
-
return s("active:text-copy-light-active", {
|
|
2332
|
-
"active:bg-action-dark-active": e === "dark",
|
|
2333
|
-
"active:bg-action-light-active": e === "light",
|
|
2334
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
2335
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
2336
|
-
});
|
|
2337
|
-
if (r === "secondary")
|
|
2338
|
-
return s("active:text-copy-light-active", {
|
|
2339
|
-
"active:bg-action-dark-active": e === "light",
|
|
2340
|
-
"active:bg-action-light-active": e === "dark",
|
|
2341
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
2342
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
2343
|
-
});
|
|
2344
|
-
if (r === "danger")
|
|
2345
|
-
return s("active:text-copy-lighter-active", {
|
|
2346
|
-
"active:bg-action-danger-dark-active": e === "dark",
|
|
2347
|
-
"active:bg-action-danger-light-active": e === "light",
|
|
2348
|
-
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
2349
|
-
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
2350
|
-
});
|
|
2351
|
-
if (r === "selected")
|
|
2352
|
-
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2353
|
-
}, xa = ({
|
|
2354
|
-
mode: e,
|
|
2355
|
-
noBorder: t,
|
|
2356
|
-
variant: r
|
|
2357
|
-
}) => {
|
|
2358
|
-
if (t)
|
|
2359
|
-
return "border border-transparent";
|
|
2360
|
-
if (r === "primary")
|
|
2361
|
-
return s("border", {
|
|
2362
|
-
"border-border-dark": e === "dark",
|
|
2363
|
-
"border-border-accent": e === "light",
|
|
2364
|
-
"border-border-dark dark:border-border-accent": e === "system",
|
|
2365
|
-
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
2366
|
-
});
|
|
2367
|
-
if (r === "secondary")
|
|
2368
|
-
return s("border", {
|
|
2369
|
-
"border-border-dark": e === "light",
|
|
2370
|
-
"border-border-accent": e === "dark",
|
|
2371
|
-
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
2372
|
-
"border-border-accent dark:border-border-dark": e === "system"
|
|
2373
|
-
});
|
|
2374
|
-
if (r === "danger")
|
|
2375
|
-
return s("border", {
|
|
2376
|
-
"border-border-danger-dark": e === "dark",
|
|
2377
|
-
"border-border-danger-medium": e === "light",
|
|
2378
|
-
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
2379
|
-
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
2380
|
-
});
|
|
2381
|
-
if (r === "selected")
|
|
2382
|
-
return "border border-border-selected-dark";
|
|
2383
|
-
}, _a = ({
|
|
2384
|
-
focusMode: e
|
|
2385
|
-
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2386
|
-
"focus:outline-focus-dark": e === "dark",
|
|
2387
|
-
"focus:outline-focus-light": e === "light",
|
|
2388
|
-
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
2389
|
-
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
2390
|
-
}), pt = ({
|
|
2391
|
-
type: e,
|
|
2392
|
-
className: t,
|
|
2393
|
-
raw: r,
|
|
2394
|
-
mode: a,
|
|
2395
|
-
focusMode: o,
|
|
2396
|
-
disabled: n,
|
|
2397
|
-
fullWidth: i,
|
|
2398
|
-
size: c,
|
|
2399
|
-
noBorder: d,
|
|
2400
|
-
labelRight: m,
|
|
2401
|
-
labelLeft: u,
|
|
2402
|
-
noBackground: h,
|
|
2403
|
-
variant: g,
|
|
2404
|
-
noTruncate: p,
|
|
2405
|
-
align: b,
|
|
2406
|
-
radius: f
|
|
2407
|
-
}) => (g || (g = "primary"), r ? s(Ge, t) : s(
|
|
2408
|
-
Ge,
|
|
2409
|
-
ba({
|
|
2410
|
-
mode: a,
|
|
2411
|
-
variant: g,
|
|
2412
|
-
noBackground: h,
|
|
2413
|
-
noTruncate: p
|
|
2414
|
-
}),
|
|
2415
|
-
ya({ mode: a, noBackground: h, variant: g }),
|
|
2416
|
-
fa({ radius: f }),
|
|
2417
|
-
ha({
|
|
2418
|
-
type: e,
|
|
2419
|
-
size: c,
|
|
2420
|
-
labelRight: m,
|
|
2421
|
-
labelLeft: u,
|
|
2422
|
-
align: b
|
|
2423
|
-
}),
|
|
2424
|
-
pa({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
2425
|
-
xa({ mode: a, variant: g, noBorder: d }),
|
|
2426
|
-
_a({ focusMode: o }),
|
|
2427
|
-
ka({ mode: a, variant: g, disabled: n }),
|
|
2428
|
-
va({ mode: a, variant: g, disabled: n }),
|
|
2429
|
-
{
|
|
2430
|
-
"w-full": i,
|
|
2431
|
-
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
2432
|
-
},
|
|
2433
|
-
t
|
|
2434
|
-
)), wa = (e, t, r) => {
|
|
2435
|
-
var a;
|
|
2436
|
-
!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);
|
|
2437
|
-
}, xe = I.forwardRef((e, t) => {
|
|
2438
|
-
const { onClick: r, noInternalClick: a = !1, ...o } = e;
|
|
2439
|
-
return /* @__PURE__ */ l(
|
|
2440
|
-
"button",
|
|
2441
|
-
{
|
|
2442
|
-
ref: t,
|
|
2443
|
-
onClick: (n) => {
|
|
2444
|
-
wa(n, a, r);
|
|
2445
|
-
},
|
|
2446
|
-
...o
|
|
2447
|
-
}
|
|
2448
|
-
);
|
|
2449
|
-
});
|
|
2450
|
-
xe.displayName = "BaseButton";
|
|
2451
|
-
const bt = I.forwardRef(
|
|
2452
|
-
({
|
|
2453
|
-
children: e,
|
|
2454
|
-
disabled: t = !1,
|
|
2455
|
-
mode: r = "system",
|
|
2456
|
-
focusMode: a = "system",
|
|
2457
|
-
fullWidth: o = !1,
|
|
2458
|
-
className: n,
|
|
2459
|
-
type: i = "button",
|
|
2460
|
-
raw: c = !1,
|
|
2461
|
-
noBorder: d = !1,
|
|
2462
|
-
"aria-label": m,
|
|
2463
|
-
label: u,
|
|
2464
|
-
size: h = "medium",
|
|
2465
|
-
labelRight: g,
|
|
2466
|
-
labelLeft: p,
|
|
2467
|
-
noBackground: b = !1,
|
|
2468
|
-
align: f = "center",
|
|
2469
|
-
radius: y = "large",
|
|
2470
|
-
variant: _ = "primary",
|
|
2471
|
-
...N
|
|
2472
|
-
}, T) => {
|
|
2473
|
-
const R = pt({
|
|
2474
|
-
type: te,
|
|
2475
|
-
mode: r,
|
|
2476
|
-
focusMode: a,
|
|
2477
|
-
fullWidth: o,
|
|
2478
|
-
disabled: t,
|
|
2479
|
-
raw: c,
|
|
2480
|
-
className: n,
|
|
2481
|
-
noBorder: d,
|
|
2482
|
-
size: h,
|
|
2483
|
-
labelRight: g,
|
|
2484
|
-
labelLeft: p,
|
|
2485
|
-
noBackground: b,
|
|
2486
|
-
align: f,
|
|
2487
|
-
radius: y,
|
|
2488
|
-
variant: _
|
|
2489
|
-
}), E = s({
|
|
2490
|
-
"text-copy-accent-dark": r === "light" && !c,
|
|
2491
|
-
"text-copy-light": r === "dark" && !c,
|
|
2492
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
2493
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
2494
|
-
});
|
|
2495
|
-
return /* @__PURE__ */ v(
|
|
2496
|
-
xe,
|
|
2497
|
-
{
|
|
2498
|
-
ref: T,
|
|
2499
|
-
className: R,
|
|
2500
|
-
disabled: t,
|
|
2501
|
-
type: i,
|
|
2502
|
-
"aria-label": m || u,
|
|
2503
|
-
...N,
|
|
2504
|
-
children: [
|
|
2505
|
-
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2506
|
-
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2507
|
-
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2508
|
-
]
|
|
2509
|
-
}
|
|
2510
|
-
);
|
|
2511
|
-
}
|
|
2512
|
-
);
|
|
2513
|
-
bt.displayName = "ButtonIcon";
|
|
2514
|
-
/*!
|
|
2515
|
-
@versini/ui-button v4.0.3
|
|
2516
|
-
© 2025 gizmette.com
|
|
2517
|
-
*/
|
|
2518
|
-
try {
|
|
2519
|
-
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
2520
|
-
version: "4.0.3",
|
|
2521
|
-
buildTime: "01/04/2025 07:31 PM EST",
|
|
2522
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
2523
|
-
license: "MIT"
|
|
2524
|
-
});
|
|
2525
|
-
} catch {
|
|
2526
|
-
}
|
|
2527
|
-
const Na = I.forwardRef(
|
|
2528
|
-
({
|
|
2529
|
-
children: e,
|
|
2530
|
-
disabled: t = !1,
|
|
2531
|
-
mode: r = "system",
|
|
2532
|
-
focusMode: a = "system",
|
|
2533
|
-
fullWidth: o = !1,
|
|
2534
|
-
className: n,
|
|
2535
|
-
type: i = "button",
|
|
2536
|
-
raw: c = !1,
|
|
2537
|
-
noBorder: d = !1,
|
|
2538
|
-
"aria-label": m,
|
|
2539
|
-
label: u,
|
|
2540
|
-
size: h = "medium",
|
|
2541
|
-
labelRight: g,
|
|
2542
|
-
labelLeft: p,
|
|
2543
|
-
noBackground: b = !1,
|
|
2544
|
-
align: f = "center",
|
|
2545
|
-
active: y = !1,
|
|
2546
|
-
radius: _ = "large",
|
|
2547
|
-
...N
|
|
2548
|
-
}, T) => {
|
|
2549
|
-
const R = pt({
|
|
2550
|
-
type: te,
|
|
2551
|
-
mode: r,
|
|
2552
|
-
focusMode: a,
|
|
2553
|
-
fullWidth: o,
|
|
2554
|
-
disabled: t,
|
|
2555
|
-
raw: c,
|
|
2556
|
-
className: n,
|
|
2557
|
-
noBorder: d,
|
|
2558
|
-
size: h,
|
|
2559
|
-
labelRight: g,
|
|
2560
|
-
labelLeft: p,
|
|
2561
|
-
noBackground: b,
|
|
2562
|
-
align: f,
|
|
2563
|
-
radius: _
|
|
2564
|
-
}), E = s({
|
|
2565
|
-
"text-copy-accent-dark": r === "light" && !c,
|
|
2566
|
-
"text-copy-light": r === "dark" && !c,
|
|
2567
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
2568
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
2569
|
-
}), M = y ? s(
|
|
2570
|
-
"relative",
|
|
2571
|
-
"focus-within:static",
|
|
2572
|
-
"focus-within:after:border-transparent",
|
|
2573
|
-
"after:absolute",
|
|
2574
|
-
"after:content-['']",
|
|
2575
|
-
"after:border-b-2",
|
|
2576
|
-
"after:bottom-[-4px]",
|
|
2577
|
-
"after:left-0",
|
|
2578
|
-
"after:right-0",
|
|
2579
|
-
{
|
|
2580
|
-
"after:border-table-dark": r === "dark",
|
|
2581
|
-
"after:border-table-light": r === "light",
|
|
2582
|
-
"after:border-table-dark dark:after:border-table-light": r === "system",
|
|
2583
|
-
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
2584
|
-
}
|
|
2585
|
-
) : "";
|
|
2586
|
-
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
2587
|
-
xe,
|
|
2588
|
-
{
|
|
2589
|
-
ref: T,
|
|
2590
|
-
className: R,
|
|
2591
|
-
disabled: t,
|
|
2592
|
-
type: i,
|
|
2593
|
-
"aria-label": m || u,
|
|
2594
|
-
...N,
|
|
2595
|
-
children: [
|
|
2596
|
-
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
2597
|
-
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
2598
|
-
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
2599
|
-
]
|
|
2600
|
-
}
|
|
2601
|
-
) });
|
|
2602
|
-
}
|
|
2603
|
-
);
|
|
2604
|
-
Na.displayName = "ButtonSort";
|
|
2605
|
-
const yt = ({
|
|
2606
|
-
children: e,
|
|
2607
|
-
fill: t,
|
|
2608
|
-
viewBox: r,
|
|
2609
|
-
className: a,
|
|
2610
|
-
defaultViewBox: o,
|
|
2611
|
-
size: n,
|
|
2612
|
-
title: i,
|
|
2613
|
-
semantic: c = !1,
|
|
2614
|
-
...d
|
|
2615
|
-
}) => {
|
|
2616
|
-
const m = s(n, a);
|
|
2617
|
-
return /* @__PURE__ */ v(Y, { children: [
|
|
2618
|
-
/* @__PURE__ */ l(
|
|
2619
|
-
"svg",
|
|
2620
|
-
{
|
|
2621
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2622
|
-
className: m,
|
|
2623
|
-
viewBox: r || o,
|
|
2624
|
-
fill: t || "currentColor",
|
|
2625
|
-
role: "img",
|
|
2626
|
-
"aria-hidden": !c,
|
|
2627
|
-
focusable: !1,
|
|
2628
|
-
...d,
|
|
2629
|
-
children: e
|
|
2630
|
-
}
|
|
2631
|
-
),
|
|
2632
|
-
i && c && /* @__PURE__ */ l("span", { className: "sr-only", children: i })
|
|
2633
|
-
] });
|
|
2634
|
-
};
|
|
2635
|
-
/*!
|
|
2636
|
-
@versini/ui-svgicon v4.0.0
|
|
2637
|
-
© 2025 gizmette.com
|
|
2638
|
-
*/
|
|
2639
|
-
try {
|
|
2640
|
-
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
2641
|
-
version: "4.0.0",
|
|
2642
|
-
buildTime: "01/04/2025 07:31 PM EST",
|
|
2643
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
2644
|
-
license: "MIT"
|
|
2645
|
-
});
|
|
2646
|
-
} catch {
|
|
2647
|
-
}
|
|
2648
|
-
const Ta = ({
|
|
2649
|
-
className: e,
|
|
2650
|
-
viewBox: t,
|
|
2651
|
-
title: r,
|
|
2652
|
-
monotone: a,
|
|
2653
|
-
...o
|
|
2654
|
-
}) => /* @__PURE__ */ v(
|
|
2655
|
-
yt,
|
|
2656
|
-
{
|
|
2657
|
-
defaultViewBox: "0 0 448 512",
|
|
2658
|
-
size: "size-5",
|
|
2659
|
-
viewBox: t,
|
|
2660
|
-
className: e,
|
|
2661
|
-
title: r || "Copied",
|
|
2662
|
-
...o,
|
|
2663
|
-
children: [
|
|
2664
|
-
/* @__PURE__ */ l(
|
|
2665
|
-
"path",
|
|
2666
|
-
{
|
|
2667
|
-
className: "fa-secondary",
|
|
2668
|
-
opacity: "0.4",
|
|
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"
|
|
2670
|
-
}
|
|
2671
|
-
),
|
|
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
|
-
)
|
|
2679
|
-
]
|
|
2680
|
-
}
|
|
2681
|
-
), Ea = ({
|
|
2682
|
-
className: e,
|
|
2683
|
-
viewBox: t,
|
|
2684
|
-
title: r,
|
|
2685
|
-
monotone: a,
|
|
2686
|
-
...o
|
|
2687
|
-
}) => /* @__PURE__ */ l(
|
|
2688
|
-
yt,
|
|
2689
|
-
{
|
|
2690
|
-
defaultViewBox: "0 0 512 512",
|
|
2691
|
-
size: "size-5",
|
|
2692
|
-
viewBox: t,
|
|
2693
|
-
className: e,
|
|
2694
|
-
title: r || "Copy",
|
|
2695
|
-
...o,
|
|
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" })
|
|
2697
|
-
}
|
|
2698
|
-
);
|
|
2699
|
-
/*!
|
|
2700
|
-
@versini/ui-icons v4.2.0
|
|
2701
|
-
© 2025 gizmette.com
|
|
2702
|
-
*/
|
|
2703
|
-
try {
|
|
2704
|
-
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
2705
|
-
version: "4.2.0",
|
|
2706
|
-
buildTime: "01/04/2025 07:31 PM EST",
|
|
2707
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
2708
|
-
license: "MIT"
|
|
2709
|
-
});
|
|
2710
|
-
} catch {
|
|
2711
|
-
}
|
|
2712
|
-
const Sa = ({ kind: e }) => s("p-4 max-w-xs sm:max-w-md md:max-w-2xl", {
|
|
2713
|
-
"lg:max-w-3xl": e === "left"
|
|
2714
|
-
}), Ca = ({ kind: e }) => s({
|
|
2715
|
-
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
2716
|
-
"bg-surface-accent": e === "right"
|
|
2717
|
-
}), Ia = ({ kind: e }) => s(
|
|
2718
|
-
"prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
|
|
2719
|
-
{
|
|
2720
|
-
"text-copy-lighter": e === "right"
|
|
2721
|
-
}
|
|
2722
|
-
), Ra = ({ kind: e }) => s("rounded-b-xl", {
|
|
2723
|
-
"rounded-tr-xl": e === "left",
|
|
2724
|
-
"rounded-tl-xl": e === "right"
|
|
2725
|
-
}), $a = ({
|
|
2726
|
-
kind: e,
|
|
2727
|
-
className: t
|
|
2728
|
-
}) => {
|
|
2729
|
-
const r = s(
|
|
2730
|
-
ga,
|
|
2731
|
-
"flex items-start",
|
|
2732
|
-
{
|
|
2733
|
-
"flex-row-reverse": e === "right"
|
|
2734
|
-
},
|
|
2735
|
-
t
|
|
2736
|
-
), a = s(
|
|
2737
|
-
"flex flex-col empty:hidden",
|
|
2738
|
-
Sa({ kind: e }),
|
|
2739
|
-
Ia({ kind: e }),
|
|
2740
|
-
Ca({ kind: e }),
|
|
2741
|
-
Ra({ kind: e })
|
|
2742
|
-
), o = "pr-2 pt-1 text-end text-xs text-copy-light", n = s("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
2743
|
-
"ml-2": e === "left",
|
|
2744
|
-
"mr-2": e === "right"
|
|
2745
|
-
});
|
|
2746
|
-
return {
|
|
2747
|
-
wrapper: r,
|
|
2748
|
-
main: a,
|
|
2749
|
-
footer: o,
|
|
2750
|
-
copyButton: n
|
|
2751
|
-
};
|
|
2752
|
-
}, Ba = ({
|
|
2753
|
-
children: e,
|
|
2754
|
-
kind: t = "left",
|
|
2755
|
-
className: r,
|
|
2756
|
-
footer: a,
|
|
2757
|
-
rawFooter: o,
|
|
2758
|
-
copyToClipboard: n,
|
|
2759
|
-
copyToClipboardFocusMode: i = "system",
|
|
2760
|
-
copyToClipboardMode: c = "system"
|
|
2761
|
-
}) => {
|
|
2762
|
-
const [d, m] = S(!1), u = $a({ kind: t, className: r }), h = !!n && (typeof n == "function" || typeof n == "string" || typeof e == "string"), g = () => {
|
|
2763
|
-
m(!0), typeof n == "function" ? n(e) : typeof n == "string" ? navigator.clipboard.writeText(n) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
2764
|
-
};
|
|
2765
|
-
return x(() => {
|
|
2766
|
-
let p;
|
|
2767
|
-
return d && (p = window.setTimeout(() => {
|
|
2768
|
-
m(!1);
|
|
2769
|
-
}, 3e3)), () => {
|
|
2770
|
-
clearTimeout(p);
|
|
2771
|
-
};
|
|
2772
|
-
}, [d]), /* @__PURE__ */ v("div", { className: u.wrapper, children: [
|
|
2773
|
-
/* @__PURE__ */ v("div", { children: [
|
|
2774
|
-
/* @__PURE__ */ l("div", { className: u.main, children: e }),
|
|
2775
|
-
a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ v("p", { className: u.footer, children: [
|
|
2776
|
-
p,
|
|
2777
|
-
": ",
|
|
2778
|
-
a[p]
|
|
2779
|
-
] }) }, `-${p}`) : null),
|
|
2780
|
-
o && o
|
|
2781
|
-
] }),
|
|
2782
|
-
h && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
|
|
2783
|
-
bt,
|
|
2784
|
-
{
|
|
2785
|
-
noBorder: !0,
|
|
2786
|
-
noBackground: !0,
|
|
2787
|
-
size: "small",
|
|
2788
|
-
mode: c,
|
|
2789
|
-
focusMode: i,
|
|
2790
|
-
label: d ? "Copied to clipboard" : "Copy to clipboard",
|
|
2791
|
-
onClick: g,
|
|
2792
|
-
disabled: d,
|
|
2793
|
-
children: d ? /* @__PURE__ */ l(Ta, { size: "size-3" }) : /* @__PURE__ */ l(Ea, { size: "size-3" })
|
|
2794
|
-
}
|
|
2795
|
-
) })
|
|
2796
|
-
] });
|
|
2797
|
-
}, We = "av-button", _e = "icon", we = "button", ue = "link", Aa = ({
|
|
2798
|
-
type: e,
|
|
2799
|
-
size: t,
|
|
2800
|
-
labelRight: r,
|
|
2801
|
-
labelLeft: a,
|
|
2802
|
-
align: o
|
|
2803
|
-
}) => {
|
|
2804
|
-
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";
|
|
2805
|
-
switch (e) {
|
|
2806
|
-
case we:
|
|
2807
|
-
case ue:
|
|
2808
|
-
return s({
|
|
2809
|
-
[n]: t === "small",
|
|
2810
|
-
[i]: t === "medium",
|
|
2811
|
-
[c]: t === "large"
|
|
2812
|
-
});
|
|
2813
|
-
case _e:
|
|
2814
|
-
return s("inline-flex items-center", {
|
|
2815
|
-
"justify-center": o === "center",
|
|
2816
|
-
"justify-start": o === "left",
|
|
2817
|
-
"justify-end": o === "right",
|
|
2818
|
-
"h-6 w-6 p-0": t === "small" && !(r || a),
|
|
2819
|
-
"h-6 px-2": t === "small" && (r || a),
|
|
2820
|
-
"h-8 w-8 p-1": t === "medium" && !(r || a),
|
|
2821
|
-
"h-8 px-3": t === "medium" && (r || a),
|
|
2822
|
-
"h-12 w-12 p-2": t === "large" && !(r || a),
|
|
2823
|
-
"h-12 px-4": t === "large" && (r || a)
|
|
2824
|
-
});
|
|
2825
|
-
}
|
|
2826
|
-
}, La = ({
|
|
2827
|
-
type: e,
|
|
2828
|
-
size: t,
|
|
2829
|
-
labelRight: r,
|
|
2830
|
-
labelLeft: a
|
|
2831
|
-
}) => {
|
|
2832
|
-
const o = "text-sm font-medium", n = "text-base font-medium", i = "text-lg font-medium";
|
|
2833
|
-
switch (e) {
|
|
2834
|
-
case we:
|
|
2835
|
-
case ue:
|
|
2836
|
-
return s({
|
|
2837
|
-
"text-center": e === ue,
|
|
2838
|
-
[o]: t === "small",
|
|
2839
|
-
[n]: t === "medium",
|
|
2840
|
-
[i]: t === "large"
|
|
2841
|
-
});
|
|
2842
|
-
case _e:
|
|
2843
|
-
return s({
|
|
2844
|
-
[o]: t === "small" && (r || a),
|
|
2845
|
-
[n]: t === "medium" && (r || a),
|
|
2846
|
-
[i]: t === "large" && (r || a)
|
|
2847
|
-
});
|
|
2848
|
-
}
|
|
2849
|
-
}, Ma = ({
|
|
2850
|
-
mode: e,
|
|
2851
|
-
noBackground: t,
|
|
2852
|
-
noTruncate: r,
|
|
2853
|
-
variant: a
|
|
2854
|
-
}) => {
|
|
2855
|
-
if (t)
|
|
2856
|
-
return "not-prose";
|
|
2857
|
-
if (a === "primary")
|
|
2858
|
-
return s("not-prose", {
|
|
2859
|
-
truncate: !r,
|
|
2860
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
2861
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
2862
|
-
"dark:text-copy-lighter": e === "system",
|
|
2863
|
-
"dark:text-copy-light": e === "alt-system"
|
|
2864
|
-
});
|
|
2865
|
-
if (a === "secondary")
|
|
2866
|
-
return s("not-prose", {
|
|
2867
|
-
truncate: !r,
|
|
2868
|
-
"text-copy-light": e === "light" || e === "system",
|
|
2869
|
-
"text-copy-lighter": e === "dark" || e === "alt-system",
|
|
2870
|
-
"dark:text-copy-lighter": e === "alt-system",
|
|
2871
|
-
"dark:text-copy-light": e === "system"
|
|
2872
|
-
});
|
|
2873
|
-
if (a === "danger")
|
|
2874
|
-
return s("not-prose", {
|
|
2875
|
-
truncate: !r,
|
|
2876
|
-
"text-copy-light": e === "dark" || e === "system",
|
|
2877
|
-
"text-copy-lighter": e === "light" || e === "alt-system",
|
|
2878
|
-
"dark:text-copy-lighter": e === "system",
|
|
2879
|
-
"dark:text-copy-light": e === "alt-system"
|
|
2880
|
-
});
|
|
2881
|
-
if (a === "selected")
|
|
2882
|
-
return s("not-prose text-copy-lighter", {
|
|
2883
|
-
truncate: !r
|
|
2884
|
-
});
|
|
2885
|
-
}, za = ({
|
|
2886
|
-
mode: e,
|
|
2887
|
-
noBackground: t,
|
|
2888
|
-
variant: r
|
|
2889
|
-
}) => {
|
|
2890
|
-
if (!t) {
|
|
2891
|
-
if (r === "primary")
|
|
2892
|
-
return s({
|
|
2893
|
-
"bg-action-dark": e === "dark",
|
|
2894
|
-
"bg-action-light": e === "light",
|
|
2895
|
-
"bg-action-dark dark:bg-action-light": e === "system",
|
|
2896
|
-
"bg-action-light dark:bg-action-dark": e === "alt-system"
|
|
2897
|
-
});
|
|
2898
|
-
if (r === "secondary")
|
|
2899
|
-
return s({
|
|
2900
|
-
"bg-action-dark": e === "light",
|
|
2901
|
-
"bg-action-light": e === "dark",
|
|
2902
|
-
"bg-action-dark dark:bg-action-light": e === "alt-system",
|
|
2903
|
-
"bg-action-light dark:bg-action-dark": e === "system"
|
|
2904
|
-
});
|
|
2905
|
-
if (r === "danger")
|
|
2906
|
-
return s({
|
|
2907
|
-
"bg-action-danger-dark": e === "dark",
|
|
2908
|
-
"bg-action-danger-light": e === "light",
|
|
2909
|
-
"bg-action-danger-dark dark:bg-action-danger-light": e === "system",
|
|
2910
|
-
"bg-action-danger-light dark:bg-action-danger-dark": e === "alt-system"
|
|
2911
|
-
});
|
|
2912
|
-
if (r === "selected")
|
|
2913
|
-
return "bg-action-selected-dark";
|
|
2914
|
-
}
|
|
2915
|
-
}, Oa = ({
|
|
2916
|
-
radius: e
|
|
2917
|
-
}) => s({
|
|
2918
|
-
"rounded-full": e === "large",
|
|
2919
|
-
"rounded-md": e === "medium",
|
|
2920
|
-
"rounded-sm": e === "small"
|
|
2921
|
-
}), Ua = ({
|
|
2922
|
-
mode: e,
|
|
2923
|
-
disabled: t,
|
|
2924
|
-
variant: r
|
|
2925
|
-
}) => {
|
|
2926
|
-
if (t)
|
|
2927
|
-
return "";
|
|
2928
|
-
if (r === "primary")
|
|
2929
|
-
return s("hover:text-copy-light-hover", {
|
|
2930
|
-
"hover:bg-action-dark-hover": e === "dark",
|
|
2931
|
-
"hover:bg-action-light-hover": e === "light",
|
|
2932
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
|
|
2933
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
|
|
2934
|
-
});
|
|
2935
|
-
if (r === "secondary")
|
|
2936
|
-
return s("hover:text-copy-light-hover", {
|
|
2937
|
-
"hover:bg-action-dark-hover": e === "light",
|
|
2938
|
-
"hover:bg-action-light-hover": e === "dark",
|
|
2939
|
-
"hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
|
|
2940
|
-
"hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
|
|
2941
|
-
});
|
|
2942
|
-
if (r === "danger")
|
|
2943
|
-
return s("hover:text-copy-light-hover", {
|
|
2944
|
-
"hover:bg-action-danger-dark-hover": e === "dark",
|
|
2945
|
-
"hover:bg-action-danger-light-hover": e === "light",
|
|
2946
|
-
"hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
|
|
2947
|
-
"hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
|
|
2948
|
-
});
|
|
2949
|
-
if (r === "selected")
|
|
2950
|
-
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2951
|
-
}, Pa = ({
|
|
2952
|
-
mode: e,
|
|
2953
|
-
disabled: t,
|
|
2954
|
-
variant: r
|
|
2955
|
-
}) => {
|
|
2956
|
-
if (t)
|
|
2957
|
-
return "";
|
|
2958
|
-
if (r === "primary")
|
|
2959
|
-
return s("active:text-copy-light-active", {
|
|
2960
|
-
"active:bg-action-dark-active": e === "dark",
|
|
2961
|
-
"active:bg-action-light-active": e === "light",
|
|
2962
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
|
|
2963
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
|
|
2964
|
-
});
|
|
2965
|
-
if (r === "secondary")
|
|
2966
|
-
return s("active:text-copy-light-active", {
|
|
2967
|
-
"active:bg-action-dark-active": e === "light",
|
|
2968
|
-
"active:bg-action-light-active": e === "dark",
|
|
2969
|
-
"active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
|
|
2970
|
-
"active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
|
|
2971
|
-
});
|
|
2972
|
-
if (r === "danger")
|
|
2973
|
-
return s("active:text-copy-lighter-active", {
|
|
2974
|
-
"active:bg-action-danger-dark-active": e === "dark",
|
|
2975
|
-
"active:bg-action-danger-light-active": e === "light",
|
|
2976
|
-
"active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
|
|
2977
|
-
"active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
|
|
2978
|
-
});
|
|
2979
|
-
if (r === "selected")
|
|
2980
|
-
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2981
|
-
}, Da = ({
|
|
2982
|
-
mode: e,
|
|
2983
|
-
noBorder: t,
|
|
2984
|
-
variant: r
|
|
2985
|
-
}) => {
|
|
2986
|
-
if (t)
|
|
2987
|
-
return "border border-transparent";
|
|
2988
|
-
if (r === "primary")
|
|
2989
|
-
return s("border", {
|
|
2990
|
-
"border-border-dark": e === "dark",
|
|
2991
|
-
"border-border-accent": e === "light",
|
|
2992
|
-
"border-border-dark dark:border-border-accent": e === "system",
|
|
2993
|
-
"border-border-accent dark:border-border-dark": e === "alt-system"
|
|
2994
|
-
});
|
|
2995
|
-
if (r === "secondary")
|
|
2996
|
-
return s("border", {
|
|
2997
|
-
"border-border-dark": e === "light",
|
|
2998
|
-
"border-border-accent": e === "dark",
|
|
2999
|
-
"border-border-dark dark:border-border-accent": e === "alt-system",
|
|
3000
|
-
"border-border-accent dark:border-border-dark": e === "system"
|
|
3001
|
-
});
|
|
3002
|
-
if (r === "danger")
|
|
3003
|
-
return s("border", {
|
|
3004
|
-
"border-border-danger-dark": e === "dark",
|
|
3005
|
-
"border-border-danger-medium": e === "light",
|
|
3006
|
-
"border-border-danger-dark dark:border-border-danger-medium": e === "system",
|
|
3007
|
-
"border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
|
|
3008
|
-
});
|
|
3009
|
-
if (r === "selected")
|
|
3010
|
-
return "border border-border-selected-dark";
|
|
3011
|
-
}, Va = ({
|
|
3012
|
-
focusMode: e
|
|
3013
|
-
}) => s("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
3014
|
-
"focus:outline-focus-dark": e === "dark",
|
|
3015
|
-
"focus:outline-focus-light": e === "light",
|
|
3016
|
-
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
3017
|
-
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
3018
|
-
}), ft = ({
|
|
3019
|
-
type: e,
|
|
3020
|
-
className: t,
|
|
3021
|
-
raw: r,
|
|
3022
|
-
mode: a,
|
|
3023
|
-
focusMode: o,
|
|
3024
|
-
disabled: n,
|
|
3025
|
-
fullWidth: i,
|
|
3026
|
-
size: c,
|
|
3027
|
-
noBorder: d,
|
|
3028
|
-
labelRight: m,
|
|
3029
|
-
labelLeft: u,
|
|
3030
|
-
noBackground: h,
|
|
3031
|
-
variant: g,
|
|
3032
|
-
noTruncate: p,
|
|
3033
|
-
align: b,
|
|
3034
|
-
radius: f
|
|
3035
|
-
}) => (g || (g = "primary"), r ? s(We, t) : s(
|
|
3036
|
-
We,
|
|
3037
|
-
Ma({
|
|
3038
|
-
mode: a,
|
|
3039
|
-
variant: g,
|
|
3040
|
-
noBackground: h,
|
|
3041
|
-
noTruncate: p
|
|
3042
|
-
}),
|
|
3043
|
-
za({ mode: a, noBackground: h, variant: g }),
|
|
3044
|
-
Oa({ radius: f }),
|
|
3045
|
-
Aa({
|
|
3046
|
-
type: e,
|
|
3047
|
-
size: c,
|
|
3048
|
-
labelRight: m,
|
|
3049
|
-
labelLeft: u,
|
|
3050
|
-
align: b
|
|
3051
|
-
}),
|
|
3052
|
-
La({ type: e, size: c, labelRight: m, labelLeft: u }),
|
|
3053
|
-
Da({ mode: a, variant: g, noBorder: d }),
|
|
3054
|
-
Va({ focusMode: o }),
|
|
3055
|
-
Ua({ mode: a, variant: g, disabled: n }),
|
|
3056
|
-
Pa({ mode: a, variant: g, disabled: n }),
|
|
3057
|
-
{
|
|
3058
|
-
"w-full": i,
|
|
3059
|
-
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
3060
|
-
},
|
|
3061
|
-
t
|
|
3062
|
-
)), Ha = (e, t, r) => {
|
|
3063
|
-
var a;
|
|
3064
|
-
!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);
|
|
3065
|
-
}, Ne = I.forwardRef((e, t) => {
|
|
3066
|
-
const { onClick: r, noInternalClick: a = !1, ...o } = e;
|
|
3067
|
-
return /* @__PURE__ */ l(
|
|
3068
|
-
"button",
|
|
3069
|
-
{
|
|
3070
|
-
ref: t,
|
|
3071
|
-
onClick: (n) => {
|
|
3072
|
-
Ha(n, a, r);
|
|
3073
|
-
},
|
|
3074
|
-
...o
|
|
3075
|
-
}
|
|
3076
|
-
);
|
|
3077
|
-
});
|
|
3078
|
-
Ne.displayName = "BaseButton";
|
|
3079
|
-
const kt = I.forwardRef(
|
|
3080
|
-
({
|
|
3081
|
-
children: e,
|
|
3082
|
-
disabled: t = !1,
|
|
3083
|
-
mode: r = "system",
|
|
3084
|
-
focusMode: a = "system",
|
|
3085
|
-
fullWidth: o = !1,
|
|
3086
|
-
className: n,
|
|
3087
|
-
size: i = "medium",
|
|
3088
|
-
raw: c = !1,
|
|
3089
|
-
noBorder: d = !1,
|
|
3090
|
-
variant: m = "primary",
|
|
3091
|
-
noTruncate: u = !1,
|
|
3092
|
-
radius: h = "large",
|
|
3093
|
-
...g
|
|
3094
|
-
}, p) => {
|
|
3095
|
-
const b = ft({
|
|
3096
|
-
type: we,
|
|
3097
|
-
mode: r,
|
|
3098
|
-
focusMode: a,
|
|
3099
|
-
fullWidth: o,
|
|
3100
|
-
disabled: t,
|
|
3101
|
-
raw: c,
|
|
3102
|
-
className: n,
|
|
3103
|
-
size: i,
|
|
3104
|
-
noBorder: d,
|
|
3105
|
-
variant: m,
|
|
3106
|
-
noTruncate: u,
|
|
3107
|
-
radius: h
|
|
3108
|
-
});
|
|
3109
|
-
return /* @__PURE__ */ l(
|
|
3110
|
-
Ne,
|
|
3111
|
-
{
|
|
3112
|
-
ref: p,
|
|
3113
|
-
className: b,
|
|
3114
|
-
disabled: t,
|
|
3115
|
-
...g,
|
|
3116
|
-
children: e
|
|
3117
|
-
}
|
|
3118
|
-
);
|
|
3119
|
-
}
|
|
3120
|
-
);
|
|
3121
|
-
kt.displayName = "Button";
|
|
3122
|
-
/*!
|
|
3123
|
-
@versini/ui-button v4.0.3
|
|
3124
|
-
© 2025 gizmette.com
|
|
3125
|
-
*/
|
|
3126
|
-
try {
|
|
3127
|
-
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3128
|
-
version: "4.0.3",
|
|
3129
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
3130
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
3131
|
-
license: "MIT"
|
|
3132
|
-
});
|
|
3133
|
-
} catch {
|
|
3134
|
-
}
|
|
3135
|
-
const Fa = I.forwardRef(
|
|
3136
|
-
({
|
|
3137
|
-
children: e,
|
|
3138
|
-
disabled: t = !1,
|
|
3139
|
-
mode: r = "system",
|
|
3140
|
-
focusMode: a = "system",
|
|
3141
|
-
fullWidth: o = !1,
|
|
3142
|
-
className: n,
|
|
3143
|
-
type: i = "button",
|
|
3144
|
-
raw: c = !1,
|
|
3145
|
-
noBorder: d = !1,
|
|
3146
|
-
"aria-label": m,
|
|
3147
|
-
label: u,
|
|
3148
|
-
size: h = "medium",
|
|
3149
|
-
labelRight: g,
|
|
3150
|
-
labelLeft: p,
|
|
3151
|
-
noBackground: b = !1,
|
|
3152
|
-
align: f = "center",
|
|
3153
|
-
active: y = !1,
|
|
3154
|
-
radius: _ = "large",
|
|
3155
|
-
...N
|
|
3156
|
-
}, T) => {
|
|
3157
|
-
const R = ft({
|
|
3158
|
-
type: _e,
|
|
3159
|
-
mode: r,
|
|
3160
|
-
focusMode: a,
|
|
3161
|
-
fullWidth: o,
|
|
3162
|
-
disabled: t,
|
|
3163
|
-
raw: c,
|
|
3164
|
-
className: n,
|
|
3165
|
-
noBorder: d,
|
|
3166
|
-
size: h,
|
|
3167
|
-
labelRight: g,
|
|
3168
|
-
labelLeft: p,
|
|
3169
|
-
noBackground: b,
|
|
3170
|
-
align: f,
|
|
3171
|
-
radius: _
|
|
3172
|
-
}), E = s({
|
|
3173
|
-
"text-copy-accent-dark": r === "light" && !c,
|
|
3174
|
-
"text-copy-light": r === "dark" && !c,
|
|
3175
|
-
"text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
|
|
3176
|
-
"text-copy-light dark:text-copy-accent-dark": r === "system" && !c
|
|
3177
|
-
}), M = y ? s(
|
|
3178
|
-
"relative",
|
|
3179
|
-
"focus-within:static",
|
|
3180
|
-
"focus-within:after:border-transparent",
|
|
3181
|
-
"after:absolute",
|
|
3182
|
-
"after:content-['']",
|
|
3183
|
-
"after:border-b-2",
|
|
3184
|
-
"after:bottom-[-4px]",
|
|
3185
|
-
"after:left-0",
|
|
3186
|
-
"after:right-0",
|
|
3187
|
-
{
|
|
3188
|
-
"after:border-table-dark": r === "dark",
|
|
3189
|
-
"after:border-table-light": r === "light",
|
|
3190
|
-
"after:border-table-dark dark:after:border-table-light": r === "system",
|
|
3191
|
-
"after:border-table-light dark:after:border-table-dark": r === "alt-system"
|
|
3192
|
-
}
|
|
3193
|
-
) : "";
|
|
3194
|
-
return /* @__PURE__ */ l("div", { className: M, children: /* @__PURE__ */ v(
|
|
3195
|
-
Ne,
|
|
3196
|
-
{
|
|
3197
|
-
ref: T,
|
|
3198
|
-
className: R,
|
|
3199
|
-
disabled: t,
|
|
3200
|
-
type: i,
|
|
3201
|
-
"aria-label": m || u,
|
|
3202
|
-
...N,
|
|
3203
|
-
children: [
|
|
3204
|
-
p && /* @__PURE__ */ l("span", { className: "pr-2", children: p }),
|
|
3205
|
-
/* @__PURE__ */ l("div", { className: E, children: e }),
|
|
3206
|
-
g && /* @__PURE__ */ l("span", { className: "pl-2", children: g })
|
|
3207
|
-
]
|
|
3208
|
-
}
|
|
3209
|
-
) });
|
|
3210
|
-
}
|
|
3211
|
-
);
|
|
3212
|
-
Fa.displayName = "ButtonSort";
|
|
3213
|
-
const Ga = 200, Wa = ({
|
|
3214
|
-
string: e,
|
|
3215
|
-
idealLength: t = Ga
|
|
3216
|
-
}) => {
|
|
3217
|
-
if (e.length <= t)
|
|
3218
|
-
return { string: e, isTruncated: !1 };
|
|
3219
|
-
if (e.charAt(t) === " ")
|
|
3220
|
-
return { string: e.slice(0, t), isTruncated: !0 };
|
|
3221
|
-
const r = e.slice(t).search(" ");
|
|
3222
|
-
return {
|
|
3223
|
-
string: e.slice(0, t + r),
|
|
3224
|
-
isTruncated: !0
|
|
3225
|
-
};
|
|
3226
|
-
}, ja = ({
|
|
3227
|
-
children: e,
|
|
3228
|
-
length: t = 200,
|
|
3229
|
-
mode: r = "system",
|
|
3230
|
-
focusMode: a = "system"
|
|
3231
|
-
}) => {
|
|
3232
|
-
const [o, n] = S(!1);
|
|
3233
|
-
if (typeof e != "string")
|
|
3234
|
-
return e;
|
|
3235
|
-
const { string: i, isTruncated: c } = Wa({
|
|
3236
|
-
string: e,
|
|
3237
|
-
idealLength: t
|
|
3238
|
-
});
|
|
3239
|
-
return /* @__PURE__ */ v("span", { style: { wordBreak: "break-word" }, children: [
|
|
3240
|
-
o ? e : i,
|
|
3241
|
-
c && /* @__PURE__ */ l(
|
|
3242
|
-
kt,
|
|
3243
|
-
{
|
|
3244
|
-
mode: r,
|
|
3245
|
-
focusMode: a,
|
|
3246
|
-
className: "ml-2",
|
|
3247
|
-
size: "small",
|
|
3248
|
-
onClick: (d) => {
|
|
3249
|
-
d.preventDefault(), n(!o);
|
|
3250
|
-
},
|
|
3251
|
-
children: o ? "less..." : "more..."
|
|
3252
|
-
}
|
|
3253
|
-
)
|
|
3254
|
-
] });
|
|
3255
|
-
};
|
|
3256
|
-
/*!
|
|
3257
|
-
@versini/ui-truncate v3.0.3
|
|
3258
|
-
© 2025 gizmette.com
|
|
3259
|
-
*/
|
|
3260
|
-
try {
|
|
3261
|
-
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
3262
|
-
version: "3.0.3",
|
|
3263
|
-
buildTime: "01/04/2025 04:09 PM EST",
|
|
3264
|
-
homepage: "https://github.com/aversini/ui-components",
|
|
3265
|
-
license: "MIT"
|
|
3266
|
-
});
|
|
3267
|
-
} catch {
|
|
3268
|
-
}
|
|
3269
|
-
const je = rt(
|
|
3270
|
-
() => import(
|
|
3271
|
-
/* webpackChunkName: "LazyMessageAssistant" */
|
|
3272
|
-
"./MessageAssistant.Dv5-gw8Q.js"
|
|
3273
|
-
).then((e) => e.MessageAssistant)
|
|
3274
|
-
), qa = () => {
|
|
3275
|
-
const { state: e } = $(G);
|
|
3276
|
-
return /* @__PURE__ */ v("div", { className: "space-y-6 mt-2", children: [
|
|
3277
|
-
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
3278
|
-
const { role: a, content: o, name: n, processingTime: i } = t.message;
|
|
3279
|
-
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(
|
|
3280
|
-
Ba,
|
|
3281
|
-
{
|
|
3282
|
-
kind: "right",
|
|
3283
|
-
copyToClipboard: o,
|
|
3284
|
-
copyToClipboardFocusMode: "light",
|
|
3285
|
-
children: /* @__PURE__ */ l(ja, { mode: "light", focusMode: "light", children: o })
|
|
3286
|
-
},
|
|
3287
|
-
`${r}-${a}`
|
|
3288
|
-
) : null;
|
|
3289
|
-
}),
|
|
3290
|
-
Ft(le, e) && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(je, { loading: !0 }) })
|
|
3291
|
-
] });
|
|
3292
|
-
}, Ka = () => {
|
|
3293
|
-
const { isAuthenticated: e } = Z(), { state: t } = $(G), [r, a] = S(!1), [o, n] = dr(), i = Gt({
|
|
3294
|
-
isAuthenticated: e,
|
|
3295
|
-
extraClass: "rounded-b-md"
|
|
3296
|
-
}), c = k(!1), d = P(() => {
|
|
3297
|
-
const u = o.current;
|
|
3298
|
-
if (u) {
|
|
3299
|
-
const { scrollHeight: h, clientHeight: g, scrollTop: p } = u, b = h - g - p;
|
|
3300
|
-
u.scrollBy({
|
|
3301
|
-
top: b,
|
|
3302
|
-
behavior: "smooth"
|
|
3303
|
-
});
|
|
3304
|
-
}
|
|
3305
|
-
}, [o]), m = P(() => {
|
|
3306
|
-
const u = o.current;
|
|
3307
|
-
if (u) {
|
|
3308
|
-
const { scrollTop: h, scrollHeight: g, clientHeight: p } = u, b = g > p, f = h + p >= g - 1;
|
|
3309
|
-
a(b && !f);
|
|
3310
|
-
}
|
|
3311
|
-
}, [o]);
|
|
3312
|
-
return V(() => {
|
|
3313
|
-
n && n.width && t && !t.streaming && m();
|
|
3314
|
-
}, [n, t, m]), x(() => {
|
|
3315
|
-
const u = o.current;
|
|
3316
|
-
if (u)
|
|
3317
|
-
return u.addEventListener("scroll", m), () => u.removeEventListener("scroll", m);
|
|
3318
|
-
}, [m, o]), x(() => {
|
|
3319
|
-
t && t.streaming && m();
|
|
3320
|
-
}, [t, m]), x(() => {
|
|
3321
|
-
t && (!c.current && t.streaming && d(), c.current = !!t.streaming);
|
|
3322
|
-
}, [t, d]), /* @__PURE__ */ v("div", { className: i, ref: o, children: [
|
|
3323
|
-
r && /* @__PURE__ */ l("div", { className: "bottom-44 z-40 fixed left-1/2 transform -translate-x-1/2", children: /* @__PURE__ */ l(
|
|
3324
|
-
et,
|
|
3325
|
-
{
|
|
3326
|
-
className: s(
|
|
3327
|
-
"dark:bg-slate-50 dark:hover:bg-slate-300 dark:active:bg-slate-400",
|
|
3328
|
-
"bg-slate-500 hover:bg-slate-600 active:bg-slate-700"
|
|
3329
|
-
),
|
|
3330
|
-
noBorder: !0,
|
|
3331
|
-
size: "medium",
|
|
3332
|
-
mode: "dark",
|
|
3333
|
-
onClick: d,
|
|
3334
|
-
children: /* @__PURE__ */ l(
|
|
3335
|
-
Zt,
|
|
3336
|
-
{
|
|
3337
|
-
monotone: !0,
|
|
3338
|
-
size: "size-4",
|
|
3339
|
-
className: "dark:text-copy-dark text-copy-lighter"
|
|
3340
|
-
}
|
|
3341
|
-
)
|
|
3342
|
-
}
|
|
3343
|
-
) }),
|
|
3344
|
-
/* @__PURE__ */ l(Wt, {}),
|
|
3345
|
-
e && /* @__PURE__ */ l(qa, {})
|
|
3346
|
-
] });
|
|
3347
|
-
}, Ja = rt(
|
|
3348
|
-
() => import(
|
|
3349
|
-
/* webpackChunkName: "LazyHeader" */
|
|
3350
|
-
"./HeaderToolbar.B4yR6iL0.js"
|
|
3351
|
-
)
|
|
3352
|
-
);
|
|
3353
|
-
function vt({ isComponent: e = !1 }) {
|
|
3354
|
-
const t = k(!1), { getAccessToken: r, user: a, isAuthenticated: o } = Z(), [n] = Ue({
|
|
3355
|
-
key: Me + qt,
|
|
3356
|
-
initialValue: ""
|
|
3357
|
-
}), [i] = Ue({
|
|
3358
|
-
key: Me + Kt,
|
|
3359
|
-
initialValue: j.ASC
|
|
3360
|
-
}), [c, d] = Q(zr, {
|
|
3361
|
-
id: ke(),
|
|
3362
|
-
model: U,
|
|
3363
|
-
engine: U,
|
|
3364
|
-
usage: 0,
|
|
3365
|
-
messages: [],
|
|
3366
|
-
prompts: [],
|
|
3367
|
-
isComponent: e
|
|
3368
|
-
}), [m, u] = Q(Or, {
|
|
3369
|
-
searchString: n,
|
|
3370
|
-
sortedCell: "timestamp",
|
|
3371
|
-
sortDirection: i
|
|
3372
|
-
}), [h, g] = Q(Ur, {
|
|
3373
|
-
prompt: "",
|
|
3374
|
-
prompts: []
|
|
3375
|
-
}), [p, b] = S({
|
|
3376
|
-
version: "",
|
|
3377
|
-
models: [],
|
|
3378
|
-
plugins: [],
|
|
3379
|
-
engine: U,
|
|
3380
|
-
engines: []
|
|
3381
|
-
});
|
|
3382
|
-
return x(() => {
|
|
3383
|
-
p.version !== "" || t.current || (async () => {
|
|
3384
|
-
try {
|
|
3385
|
-
t.current = !0;
|
|
3386
|
-
const y = await ct({
|
|
3387
|
-
accessToken: await r(),
|
|
3388
|
-
type: it.ABOUT,
|
|
3389
|
-
params: {
|
|
3390
|
-
user: a == null ? void 0 : a.username
|
|
3391
|
-
}
|
|
3392
|
-
});
|
|
3393
|
-
t.current = !1, y.status === 200 && (b(y.data), d({
|
|
3394
|
-
type: Je,
|
|
3395
|
-
payload: {
|
|
3396
|
-
engine: y.data.engine
|
|
3397
|
-
}
|
|
3398
|
-
}));
|
|
3399
|
-
} catch {
|
|
3400
|
-
}
|
|
3401
|
-
})();
|
|
3402
|
-
}, [p, r, a]), x(() => {
|
|
3403
|
-
var y;
|
|
3404
|
-
(y = document.getElementById("logo")) == null || y.classList.add("fadeOut"), setTimeout(() => {
|
|
3405
|
-
var _;
|
|
3406
|
-
(_ = document.getElementById("root")) == null || _.classList.replace("app-hidden", "fadeIn");
|
|
3407
|
-
}, 500);
|
|
3408
|
-
}), /* @__PURE__ */ l(G.Provider, { value: { state: c, dispatch: d, serverStats: p }, children: /* @__PURE__ */ l(
|
|
3409
|
-
Vr.Provider,
|
|
3410
|
-
{
|
|
3411
|
-
value: {
|
|
3412
|
-
state: m,
|
|
3413
|
-
dispatch: u
|
|
3414
|
-
},
|
|
3415
|
-
children: /* @__PURE__ */ v(
|
|
3416
|
-
ve.Provider,
|
|
3417
|
-
{
|
|
3418
|
-
value: { state: h, dispatch: g },
|
|
3419
|
-
children: [
|
|
3420
|
-
/* @__PURE__ */ l(
|
|
3421
|
-
tr,
|
|
3422
|
-
{
|
|
3423
|
-
noColors: !0,
|
|
3424
|
-
noMargin: !0,
|
|
3425
|
-
noPadding: !0,
|
|
3426
|
-
noBorder: !0,
|
|
3427
|
-
className: Le({
|
|
3428
|
-
extraClass: "mt-5"
|
|
3429
|
-
}),
|
|
3430
|
-
children: o && /* @__PURE__ */ l(ce, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Ja, {}) })
|
|
3431
|
-
}
|
|
3432
|
-
),
|
|
3433
|
-
/* @__PURE__ */ l(
|
|
3434
|
-
jt,
|
|
3435
|
-
{
|
|
3436
|
-
className: Le({
|
|
3437
|
-
extraClass: "max-h-[calc(100svh_-_250px)]"
|
|
3438
|
-
}),
|
|
3439
|
-
noMargin: !0,
|
|
3440
|
-
noPadding: !0,
|
|
3441
|
-
children: /* @__PURE__ */ l(Ka, {})
|
|
3442
|
-
}
|
|
3443
|
-
),
|
|
3444
|
-
/* @__PURE__ */ l(ua, {})
|
|
3445
|
-
]
|
|
3446
|
-
}
|
|
3447
|
-
)
|
|
3448
|
-
}
|
|
3449
|
-
) });
|
|
3450
|
-
}
|
|
3451
|
-
vt.displayName = "App";
|
|
3452
|
-
const so = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: vt }, Symbol.toStringTag, { value: "Module" }));
|
|
3453
|
-
export {
|
|
3454
|
-
so as App,
|
|
3455
|
-
G as AppContext,
|
|
3456
|
-
Ue as E,
|
|
3457
|
-
Vr as HistoryContext,
|
|
3458
|
-
ca as NewChatButton,
|
|
3459
|
-
gt as Pe,
|
|
3460
|
-
ve as PromptsContext,
|
|
3461
|
-
it as SERVICE_TYPES,
|
|
3462
|
-
ro as be,
|
|
3463
|
-
j as f,
|
|
3464
|
-
eo as ge,
|
|
3465
|
-
to as he,
|
|
3466
|
-
$r as ie,
|
|
3467
|
-
Ba as le,
|
|
3468
|
-
ao as me,
|
|
3469
|
-
ct as serviceCall,
|
|
3470
|
-
oo as ue,
|
|
3471
|
-
no as ye
|
|
3472
|
-
};
|