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