@versini/sassysaint 7.3.0 → 7.3.1
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.BUk7F0B0.js → App.CbvqOF_7.js} +771 -688
- package/dist/chunks/{ChatBubbleAssistant.fCIbp1pk.js → ChatBubbleAssistant.d-GReNse.js} +3 -3
- package/dist/chunks/{MarkdownWithExtra.C2N2fPAY.js → MarkdownWithExtra.C_rQMH95.js} +2 -2
- package/dist/chunks/{index.B9zWQOKe.js → index.D-2VRIC7.js} +4 -4
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { f as Y, ACTION_SORT as
|
|
1
|
+
import { jsx as s, jsxs as k, Fragment as K } from "react/jsx-runtime";
|
|
2
|
+
import { f as Y, ACTION_SORT as It, ACTION_SEARCH as ea, ACTION_RESET_PROMPT as ta, ACTION_TOGGLE_PROMPT as ra, ROLE_ASSISTANT as ze, ROLE_INTERNAL as ge, DEFAULT_AI_PROVIDER as Je, isProbablyiPhone as Et, re as ne, DEFAULT_ICON_ACTION_SIZE as me, L as Ne, j as te, C as pe, LOCAL_STORAGE_PREFIX as Te, LOCAL_STORAGE_PRIVATE_DISCLOSURE as un, un as Q, useUserPreferences as Fe, serviceCall as Ce, SERVICE_TYPES as Ie, PROVIDER_ANTHROPIC as bt, PROVIDER_OPENAI as ur, setNewProvider as aa, PROMPT_CLASSNAME as mn, PROMPT_EDITABLE_AREA_CLASSNAME as hn, ROLE_SYSTEM as fn, ROLE_HIDDEN as gn, restCall as pn, STATS_SEPARATOR as mr, WAIT_SEPARATOR as hr, ERROR_MESSAGE as fr, CLIPBOARD_PROMPT as gr, TYPE_QUESTION as yn, ROLE_USER as Gt, FOOTER_DISCLAIMER as bn, useServerCapabilities as vn, R as le, CARDS as F, renderDataAsList as Qe, pluralize as jt, ABOUT_TITLE as kn, INFINITE_SCROLL_LIMIT as pr, INFINITE_SCROLL_THRESHOLD as yr, LOCAL_STORAGE_SORT as na, useChatsHistory as xn, LOCAL_STORAGE_SEARCH as oa, HISTORY_TITLE as wn, fe as St, debounce as _n, M as Nn, isElectron as Tn, l as br, durationFormatter as Cn, useUserChatStats as In, PROFILE_TITLE as En, PROMPTS_DESCRIPTION as Sn, LOCAL_STORAGE_CHAT_DETAILS as Rn, SETTINGS_TITLE as $n, APP_NAME as An, getCurrentGeoLocation as Ln, LOG_OUT as vr, getMessageContaintWrapperClass as Bn, UI_FOOTER_BUFFER as ia, UI_BUTTON_SCROLL_BUFFER as Mn, Logo as On, UI_DEFAULT_MAIN_HEIGHT as kr, usePreloadChatsHistory as Pn, getMainPaddingClass as xr, I as zn } from "./index.D-2VRIC7.js";
|
|
3
3
|
import d from "clsx";
|
|
4
4
|
import * as G from "react";
|
|
5
5
|
import H, { useEffect as $, useRef as T, useState as L, useCallback as j, useSyncExternalStore as Vn, useMemo as re, useId as nt, useLayoutEffect as Z, useContext as V, forwardRef as sa, Fragment as Dn, useReducer as Me, lazy as Hn, Suspense as wr } from "react";
|
|
@@ -27,7 +27,7 @@ const Rt = ({
|
|
|
27
27
|
title: r,
|
|
28
28
|
monotone: a,
|
|
29
29
|
...n
|
|
30
|
-
}) => /* @__PURE__ */
|
|
30
|
+
}) => /* @__PURE__ */ k(
|
|
31
31
|
Y,
|
|
32
32
|
{
|
|
33
33
|
defaultViewBox: "0 0 512 512",
|
|
@@ -53,7 +53,7 @@ const Rt = ({
|
|
|
53
53
|
title: r,
|
|
54
54
|
monotone: a,
|
|
55
55
|
...n
|
|
56
|
-
}) => /* @__PURE__ */
|
|
56
|
+
}) => /* @__PURE__ */ k(
|
|
57
57
|
Y,
|
|
58
58
|
{
|
|
59
59
|
defaultViewBox: "0 0 448 512",
|
|
@@ -102,7 +102,7 @@ const Rt = ({
|
|
|
102
102
|
title: r,
|
|
103
103
|
monotone: a,
|
|
104
104
|
...n
|
|
105
|
-
}) => /* @__PURE__ */
|
|
105
|
+
}) => /* @__PURE__ */ k(
|
|
106
106
|
Y,
|
|
107
107
|
{
|
|
108
108
|
defaultViewBox: "0 0 448 512",
|
|
@@ -128,7 +128,7 @@ const Rt = ({
|
|
|
128
128
|
title: r,
|
|
129
129
|
monotone: a,
|
|
130
130
|
...n
|
|
131
|
-
}) => /* @__PURE__ */
|
|
131
|
+
}) => /* @__PURE__ */ k(
|
|
132
132
|
Y,
|
|
133
133
|
{
|
|
134
134
|
defaultViewBox: "0 0 384 512",
|
|
@@ -154,7 +154,7 @@ const Rt = ({
|
|
|
154
154
|
title: r,
|
|
155
155
|
monotone: a,
|
|
156
156
|
...n
|
|
157
|
-
}) => /* @__PURE__ */
|
|
157
|
+
}) => /* @__PURE__ */ k(
|
|
158
158
|
Y,
|
|
159
159
|
{
|
|
160
160
|
defaultViewBox: "0 0 512 512",
|
|
@@ -180,7 +180,7 @@ const Rt = ({
|
|
|
180
180
|
title: r,
|
|
181
181
|
monotone: a,
|
|
182
182
|
...n
|
|
183
|
-
}) => /* @__PURE__ */
|
|
183
|
+
}) => /* @__PURE__ */ k(
|
|
184
184
|
Y,
|
|
185
185
|
{
|
|
186
186
|
defaultViewBox: "0 0 512 512",
|
|
@@ -206,7 +206,7 @@ const Rt = ({
|
|
|
206
206
|
title: r,
|
|
207
207
|
monotone: a,
|
|
208
208
|
...n
|
|
209
|
-
}) => /* @__PURE__ */
|
|
209
|
+
}) => /* @__PURE__ */ k(
|
|
210
210
|
Y,
|
|
211
211
|
{
|
|
212
212
|
defaultViewBox: "0 0 512 512",
|
|
@@ -232,7 +232,7 @@ const Rt = ({
|
|
|
232
232
|
title: r,
|
|
233
233
|
monotone: a,
|
|
234
234
|
...n
|
|
235
|
-
}) => /* @__PURE__ */
|
|
235
|
+
}) => /* @__PURE__ */ k(
|
|
236
236
|
Y,
|
|
237
237
|
{
|
|
238
238
|
defaultViewBox: "0 0 448 512",
|
|
@@ -275,7 +275,7 @@ const Rt = ({
|
|
|
275
275
|
title: r,
|
|
276
276
|
monotone: a,
|
|
277
277
|
...n
|
|
278
|
-
}) => /* @__PURE__ */
|
|
278
|
+
}) => /* @__PURE__ */ k(
|
|
279
279
|
Y,
|
|
280
280
|
{
|
|
281
281
|
defaultViewBox: "0 0 576 512",
|
|
@@ -301,7 +301,7 @@ const Rt = ({
|
|
|
301
301
|
title: r,
|
|
302
302
|
monotone: a,
|
|
303
303
|
...n
|
|
304
|
-
}) => /* @__PURE__ */
|
|
304
|
+
}) => /* @__PURE__ */ k(
|
|
305
305
|
Y,
|
|
306
306
|
{
|
|
307
307
|
defaultViewBox: "0 0 512 512",
|
|
@@ -327,7 +327,7 @@ const Rt = ({
|
|
|
327
327
|
title: r,
|
|
328
328
|
monotone: a,
|
|
329
329
|
...n
|
|
330
|
-
}) => /* @__PURE__ */
|
|
330
|
+
}) => /* @__PURE__ */ k(
|
|
331
331
|
Y,
|
|
332
332
|
{
|
|
333
333
|
defaultViewBox: "0 0 512 512",
|
|
@@ -370,7 +370,7 @@ const Rt = ({
|
|
|
370
370
|
title: r,
|
|
371
371
|
monotone: a,
|
|
372
372
|
...n
|
|
373
|
-
}) => /* @__PURE__ */
|
|
373
|
+
}) => /* @__PURE__ */ k(
|
|
374
374
|
Y,
|
|
375
375
|
{
|
|
376
376
|
defaultViewBox: "0 0 512 512",
|
|
@@ -396,7 +396,7 @@ const Rt = ({
|
|
|
396
396
|
title: r,
|
|
397
397
|
monotone: a,
|
|
398
398
|
...n
|
|
399
|
-
}) => /* @__PURE__ */
|
|
399
|
+
}) => /* @__PURE__ */ k(
|
|
400
400
|
Y,
|
|
401
401
|
{
|
|
402
402
|
defaultViewBox: "0 0 448 512",
|
|
@@ -440,9 +440,9 @@ const fo = "av-header", go = ({
|
|
|
440
440
|
noBorder: i = !1,
|
|
441
441
|
noMargin: l = !1,
|
|
442
442
|
noPadding: c = !1,
|
|
443
|
-
...
|
|
443
|
+
...u
|
|
444
444
|
}) => {
|
|
445
|
-
const
|
|
445
|
+
const m = d(
|
|
446
446
|
fo,
|
|
447
447
|
{
|
|
448
448
|
"border-border-accent": a === "dark" && !r && !n && !i,
|
|
@@ -463,7 +463,7 @@ const fo = "av-header", go = ({
|
|
|
463
463
|
"p-2": !c,
|
|
464
464
|
"flex flex-col w-full md:mx-auto md:max-w-4xl": !r
|
|
465
465
|
});
|
|
466
|
-
return /* @__PURE__ */ s("header", { className:
|
|
466
|
+
return /* @__PURE__ */ s("header", { className: m, ...u, children: /* @__PURE__ */ s("div", { className: h, children: e }) });
|
|
467
467
|
};
|
|
468
468
|
function po(e) {
|
|
469
469
|
const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
|
|
@@ -479,13 +479,13 @@ function po(e) {
|
|
|
479
479
|
};
|
|
480
480
|
}
|
|
481
481
|
function yo(e, t) {
|
|
482
|
-
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: l } = e, { altKey: c, ctrlKey:
|
|
482
|
+
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: l } = e, { altKey: c, ctrlKey: u, metaKey: m, shiftKey: h, key: g } = t;
|
|
483
483
|
if (r !== c)
|
|
484
484
|
return !1;
|
|
485
485
|
if (o) {
|
|
486
|
-
if (!
|
|
486
|
+
if (!u && !m)
|
|
487
487
|
return !1;
|
|
488
|
-
} else if (a !==
|
|
488
|
+
} else if (a !== u || n !== m)
|
|
489
489
|
return !1;
|
|
490
490
|
return i !== h ? !1 : !!(l && (g.toLowerCase() === l.toLowerCase() || t.code.replace("Key", "").toLowerCase() === l.toLowerCase()));
|
|
491
491
|
}
|
|
@@ -541,7 +541,7 @@ const _r = (e, t) => {
|
|
|
541
541
|
}, _o = (e) => {
|
|
542
542
|
window.localStorage.removeItem(e), va(e, null);
|
|
543
543
|
}, Nr = (e) => window.localStorage.getItem(e), No = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
544
|
-
function
|
|
544
|
+
function Ee({
|
|
545
545
|
key: e,
|
|
546
546
|
initialValue: t
|
|
547
547
|
}) {
|
|
@@ -597,7 +597,7 @@ function ka(e) {
|
|
|
597
597
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
598
598
|
}), [i, e]), [a, n];
|
|
599
599
|
}
|
|
600
|
-
function
|
|
600
|
+
function Io({
|
|
601
601
|
value: e,
|
|
602
602
|
defaultValue: t,
|
|
603
603
|
finalValue: r,
|
|
@@ -607,14 +607,14 @@ function Eo({
|
|
|
607
607
|
}) {
|
|
608
608
|
const [o, i] = L(!1), [l, c] = L(
|
|
609
609
|
t !== void 0 ? t : r
|
|
610
|
-
),
|
|
611
|
-
c(
|
|
610
|
+
), u = (m) => {
|
|
611
|
+
c(m), a == null || a(m);
|
|
612
612
|
};
|
|
613
613
|
return $(() => {
|
|
614
614
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
|
615
|
-
(
|
|
615
|
+
(m) => setTimeout(m, n)
|
|
616
616
|
), i(!0)))();
|
|
617
|
-
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [l,
|
|
617
|
+
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [l, u, !1];
|
|
618
618
|
}
|
|
619
619
|
function De(e) {
|
|
620
620
|
return nt();
|
|
@@ -624,7 +624,7 @@ function Tr(e, t) {
|
|
|
624
624
|
passive: !0
|
|
625
625
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function Eo() {
|
|
628
628
|
const [e, t] = L({
|
|
629
629
|
width: 0,
|
|
630
630
|
height: 0
|
|
@@ -784,7 +784,7 @@ const ot = "thead", Kt = "tfoot", xe = "tbody", se = {
|
|
|
784
784
|
)
|
|
785
785
|
}), Mo = ({
|
|
786
786
|
buttonClassName: e
|
|
787
|
-
}) => d("rounded-none text-sm", e),
|
|
787
|
+
}) => d("rounded-none text-sm", e), Ir = "av-button", it = "icon", xa = "button", At = "link", Oo = ({
|
|
788
788
|
type: e,
|
|
789
789
|
size: t,
|
|
790
790
|
labelRight: r,
|
|
@@ -1038,16 +1038,16 @@ const ot = "thead", Kt = "tfoot", xe = "tbody", se = {
|
|
|
1038
1038
|
fullWidth: i,
|
|
1039
1039
|
size: l,
|
|
1040
1040
|
noBorder: c,
|
|
1041
|
-
labelRight:
|
|
1042
|
-
labelLeft:
|
|
1041
|
+
labelRight: u,
|
|
1042
|
+
labelLeft: m,
|
|
1043
1043
|
noBackground: h,
|
|
1044
1044
|
variant: g,
|
|
1045
1045
|
noTruncate: f,
|
|
1046
1046
|
align: p,
|
|
1047
1047
|
radius: b,
|
|
1048
1048
|
animated: y
|
|
1049
|
-
}) => (g || (g = "primary"), r ? d(
|
|
1050
|
-
|
|
1049
|
+
}) => (g || (g = "primary"), r ? d(Ir, t) : d(
|
|
1050
|
+
Ir,
|
|
1051
1051
|
zo({
|
|
1052
1052
|
mode: a,
|
|
1053
1053
|
variant: g,
|
|
@@ -1059,12 +1059,12 @@ const ot = "thead", Kt = "tfoot", xe = "tbody", se = {
|
|
|
1059
1059
|
Oo({
|
|
1060
1060
|
type: e,
|
|
1061
1061
|
size: l,
|
|
1062
|
-
labelRight:
|
|
1063
|
-
labelLeft:
|
|
1062
|
+
labelRight: u,
|
|
1063
|
+
labelLeft: m,
|
|
1064
1064
|
align: p,
|
|
1065
1065
|
animated: y
|
|
1066
1066
|
}),
|
|
1067
|
-
Po({ type: e, size: l, labelRight:
|
|
1067
|
+
Po({ type: e, size: l, labelRight: u, labelLeft: m }),
|
|
1068
1068
|
Fo({ mode: a, variant: g, noBorder: c }),
|
|
1069
1069
|
Wo({ focusMode: n }),
|
|
1070
1070
|
Ho({ mode: a, variant: g, disabled: o }),
|
|
@@ -1154,8 +1154,8 @@ const Jo = {
|
|
|
1154
1154
|
type: i = "button",
|
|
1155
1155
|
raw: l = !1,
|
|
1156
1156
|
noBorder: c = !1,
|
|
1157
|
-
"aria-label":
|
|
1158
|
-
label:
|
|
1157
|
+
"aria-label": u,
|
|
1158
|
+
label: m,
|
|
1159
1159
|
size: h = "medium",
|
|
1160
1160
|
labelRight: g,
|
|
1161
1161
|
labelLeft: f,
|
|
@@ -1164,7 +1164,7 @@ const Jo = {
|
|
|
1164
1164
|
radius: y = "large",
|
|
1165
1165
|
variant: v = "primary",
|
|
1166
1166
|
iconClassName: w,
|
|
1167
|
-
animated:
|
|
1167
|
+
animated: x = !1,
|
|
1168
1168
|
..._
|
|
1169
1169
|
}, R) => {
|
|
1170
1170
|
const A = Yo({
|
|
@@ -1183,12 +1183,12 @@ const Jo = {
|
|
|
1183
1183
|
align: b,
|
|
1184
1184
|
radius: y,
|
|
1185
1185
|
variant: v,
|
|
1186
|
-
animated:
|
|
1187
|
-
}), C = Go({ mode: r, raw: l, iconClassName: w }),
|
|
1186
|
+
animated: x
|
|
1187
|
+
}), C = Go({ mode: r, raw: l, iconClassName: w }), I = jo({ animated: x }), [N, P] = vt(), [S, B] = vt(), [M, O] = vt(), z = T(0), E = T(null), D = Xo([R, E]);
|
|
1188
1188
|
return Z(() => {
|
|
1189
|
-
M && M.current &&
|
|
1190
|
-
}, [O, M, h, c,
|
|
1191
|
-
|
|
1189
|
+
M && M.current && x && (z.current = O.width + Qo[h] + (c ? 0 : ei));
|
|
1190
|
+
}, [O, M, h, c, x]), Z(() => {
|
|
1191
|
+
E && E.current && x && (g && N && P.width > 0 ? (N.current && (N.current.style.opacity = "100"), E.current.style.width = `${P.width + z.current}px`) : f && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), E.current.style.width = `${B.width + z.current}px`) : (N.current && (N.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), E.current.style.width = `${Jo[h]}px`));
|
|
1192
1192
|
}, [
|
|
1193
1193
|
P,
|
|
1194
1194
|
g,
|
|
@@ -1197,33 +1197,33 @@ const Jo = {
|
|
|
1197
1197
|
f,
|
|
1198
1198
|
S,
|
|
1199
1199
|
h,
|
|
1200
|
-
|
|
1201
|
-
]), /* @__PURE__ */
|
|
1200
|
+
x
|
|
1201
|
+
]), /* @__PURE__ */ k(
|
|
1202
1202
|
wa,
|
|
1203
1203
|
{
|
|
1204
1204
|
ref: D,
|
|
1205
1205
|
className: A,
|
|
1206
1206
|
disabled: t,
|
|
1207
1207
|
type: i,
|
|
1208
|
-
"aria-label":
|
|
1208
|
+
"aria-label": u || m,
|
|
1209
1209
|
..._,
|
|
1210
1210
|
children: [
|
|
1211
1211
|
/* @__PURE__ */ s(
|
|
1212
|
-
|
|
1212
|
+
Er,
|
|
1213
1213
|
{
|
|
1214
1214
|
label: f,
|
|
1215
1215
|
labelRef: S,
|
|
1216
|
-
labelClass:
|
|
1216
|
+
labelClass: I,
|
|
1217
1217
|
labelInnerClass: "pr-2"
|
|
1218
1218
|
}
|
|
1219
1219
|
),
|
|
1220
1220
|
/* @__PURE__ */ s("span", { ref: M, className: C, children: e }),
|
|
1221
1221
|
/* @__PURE__ */ s(
|
|
1222
|
-
|
|
1222
|
+
Er,
|
|
1223
1223
|
{
|
|
1224
1224
|
label: g,
|
|
1225
1225
|
labelRef: N,
|
|
1226
|
-
labelClass:
|
|
1226
|
+
labelClass: I,
|
|
1227
1227
|
labelInnerClass: "pl-2"
|
|
1228
1228
|
}
|
|
1229
1229
|
)
|
|
@@ -1231,7 +1231,7 @@ const Jo = {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
);
|
|
1233
1233
|
}
|
|
1234
|
-
),
|
|
1234
|
+
), Er = ({
|
|
1235
1235
|
labelRef: e,
|
|
1236
1236
|
labelClass: t,
|
|
1237
1237
|
label: r,
|
|
@@ -1301,13 +1301,13 @@ const qt = ({
|
|
|
1301
1301
|
semantic: l = !1,
|
|
1302
1302
|
...c
|
|
1303
1303
|
}) => {
|
|
1304
|
-
const
|
|
1305
|
-
return /* @__PURE__ */
|
|
1304
|
+
const u = d(o, a);
|
|
1305
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
1306
1306
|
/* @__PURE__ */ s(
|
|
1307
1307
|
"svg",
|
|
1308
1308
|
{
|
|
1309
1309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1310
|
-
className:
|
|
1310
|
+
className: u,
|
|
1311
1311
|
viewBox: r || n,
|
|
1312
1312
|
fill: t || "currentColor",
|
|
1313
1313
|
role: "img",
|
|
@@ -1339,7 +1339,7 @@ const ti = ({
|
|
|
1339
1339
|
title: r,
|
|
1340
1340
|
monotone: a,
|
|
1341
1341
|
...n
|
|
1342
|
-
}) => /* @__PURE__ */
|
|
1342
|
+
}) => /* @__PURE__ */ k(
|
|
1343
1343
|
qt,
|
|
1344
1344
|
{
|
|
1345
1345
|
defaultViewBox: "0 0 576 512",
|
|
@@ -1365,7 +1365,7 @@ const ti = ({
|
|
|
1365
1365
|
title: r,
|
|
1366
1366
|
monotone: a,
|
|
1367
1367
|
...n
|
|
1368
|
-
}) => /* @__PURE__ */
|
|
1368
|
+
}) => /* @__PURE__ */ k(
|
|
1369
1369
|
qt,
|
|
1370
1370
|
{
|
|
1371
1371
|
defaultViewBox: "0 0 576 512",
|
|
@@ -1391,7 +1391,7 @@ const ti = ({
|
|
|
1391
1391
|
title: r,
|
|
1392
1392
|
monotone: a,
|
|
1393
1393
|
...n
|
|
1394
|
-
}) => /* @__PURE__ */
|
|
1394
|
+
}) => /* @__PURE__ */ k(
|
|
1395
1395
|
qt,
|
|
1396
1396
|
{
|
|
1397
1397
|
defaultViewBox: "0 0 576 512",
|
|
@@ -1441,20 +1441,20 @@ const $e = H.createContext({
|
|
|
1441
1441
|
wrapperClassName: i,
|
|
1442
1442
|
maxHeight: l,
|
|
1443
1443
|
stickyHeader: c,
|
|
1444
|
-
stickyFooter:
|
|
1445
|
-
...
|
|
1444
|
+
stickyFooter: u,
|
|
1445
|
+
...m
|
|
1446
1446
|
}) => {
|
|
1447
1447
|
const h = Ro({
|
|
1448
1448
|
mode: t,
|
|
1449
1449
|
className: o,
|
|
1450
1450
|
wrapperClassName: i,
|
|
1451
1451
|
stickyHeader: c,
|
|
1452
|
-
stickyFooter:
|
|
1452
|
+
stickyFooter: u
|
|
1453
1453
|
});
|
|
1454
1454
|
return /* @__PURE__ */ s(
|
|
1455
1455
|
$e.Provider,
|
|
1456
1456
|
{
|
|
1457
|
-
value: { mode: t, stickyHeader: c, stickyFooter:
|
|
1457
|
+
value: { mode: t, stickyHeader: c, stickyFooter: u, compact: a },
|
|
1458
1458
|
children: /* @__PURE__ */ s(
|
|
1459
1459
|
"div",
|
|
1460
1460
|
{
|
|
@@ -1462,7 +1462,7 @@ const $e = H.createContext({
|
|
|
1462
1462
|
...l && {
|
|
1463
1463
|
style: { maxHeight: l }
|
|
1464
1464
|
},
|
|
1465
|
-
children: /* @__PURE__ */
|
|
1465
|
+
children: /* @__PURE__ */ k("table", { className: h.table, summary: n, ...m, children: [
|
|
1466
1466
|
r && /* @__PURE__ */ s("caption", { className: h.caption, children: r }),
|
|
1467
1467
|
e
|
|
1468
1468
|
] })
|
|
@@ -1535,8 +1535,8 @@ const $e = H.createContext({
|
|
|
1535
1535
|
mode: i = "alt-system",
|
|
1536
1536
|
onClick: l,
|
|
1537
1537
|
sortDirection: c,
|
|
1538
|
-
sortedCell:
|
|
1539
|
-
cellId:
|
|
1538
|
+
sortedCell: u,
|
|
1539
|
+
cellId: m,
|
|
1540
1540
|
...h
|
|
1541
1541
|
}) => {
|
|
1542
1542
|
const g = Mo({ buttonClassName: r });
|
|
@@ -1546,12 +1546,12 @@ const $e = H.createContext({
|
|
|
1546
1546
|
component: n,
|
|
1547
1547
|
className: a,
|
|
1548
1548
|
role: "columnheader",
|
|
1549
|
-
"aria-sort": c === se.ASC &&
|
|
1549
|
+
"aria-sort": c === se.ASC && u === m ? "ascending" : c === se.DESC && u === m ? "descending" : "other",
|
|
1550
1550
|
...h,
|
|
1551
1551
|
children: /* @__PURE__ */ s(
|
|
1552
1552
|
Na,
|
|
1553
1553
|
{
|
|
1554
|
-
active:
|
|
1554
|
+
active: u === m,
|
|
1555
1555
|
className: g,
|
|
1556
1556
|
onClick: l,
|
|
1557
1557
|
align: e,
|
|
@@ -1560,7 +1560,7 @@ const $e = H.createContext({
|
|
|
1560
1560
|
mode: i,
|
|
1561
1561
|
fullWidth: !0,
|
|
1562
1562
|
labelRight: t,
|
|
1563
|
-
children: c === se.ASC &&
|
|
1563
|
+
children: c === se.ASC && u === m ? /* @__PURE__ */ s(ai, { className: "size-4", monotone: !0 }) : c === se.DESC && u === m ? /* @__PURE__ */ s(ri, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ s(ti, { className: "size-4", monotone: !0 })
|
|
1564
1564
|
}
|
|
1565
1565
|
)
|
|
1566
1566
|
}
|
|
@@ -1600,7 +1600,7 @@ const hi = (e, t) => {
|
|
|
1600
1600
|
sortedCell: e.sortedCell,
|
|
1601
1601
|
sortDirection: e.sortDirection
|
|
1602
1602
|
};
|
|
1603
|
-
case
|
|
1603
|
+
case It:
|
|
1604
1604
|
return {
|
|
1605
1605
|
searchString: e.searchString,
|
|
1606
1606
|
sortedCell: t.payload.sortedCell,
|
|
@@ -1641,21 +1641,21 @@ const hi = (e, t) => {
|
|
|
1641
1641
|
return e;
|
|
1642
1642
|
}
|
|
1643
1643
|
}, Oe = "CHAT_ADD_MESSAGE", Bt = "CHAT_ADD_INTERNAL_MESSAGE", Mt = "CHAT_SET_LOADING", Ot = "CHAT_SET_STREAMING", Ae = "CHAT_RESET", Ca = "CHAT_RESTORE", pi = (e, t) => {
|
|
1644
|
-
var r, a, n, o, i, l, c,
|
|
1644
|
+
var r, a, n, o, i, l, c, u, m, h, g, f;
|
|
1645
1645
|
switch (t.type) {
|
|
1646
1646
|
case Oe: {
|
|
1647
|
-
const p = (r = t.payload) == null ? void 0 : r.role, b = (a = t.payload) == null ? void 0 : a.messageId, y = (n = t.payload) == null ? void 0 : n.content, v = (o = t.payload) == null ? void 0 : o.name, w = (i = t.payload) == null ? void 0 : i.processingTime,
|
|
1647
|
+
const p = (r = t.payload) == null ? void 0 : r.role, b = (a = t.payload) == null ? void 0 : a.messageId, y = (n = t.payload) == null ? void 0 : n.content, v = (o = t.payload) == null ? void 0 : o.name, w = (i = t.payload) == null ? void 0 : i.processingTime, x = (l = t.payload) == null ? void 0 : l.usage, _ = ((c = t.payload) == null ? void 0 : c.model) || e.model;
|
|
1648
1648
|
if ((p === ze || p === ge) && b) {
|
|
1649
1649
|
const R = e.messages.findIndex(
|
|
1650
1650
|
(A) => A.messageId === b
|
|
1651
1651
|
);
|
|
1652
1652
|
if (R !== -1) {
|
|
1653
|
-
const A = e.messages.map((C,
|
|
1653
|
+
const A = e.messages.map((C, I) => I === R ? {
|
|
1654
1654
|
...C,
|
|
1655
1655
|
content: `${C.content}${y}`,
|
|
1656
1656
|
processingTime: w,
|
|
1657
1657
|
name: v,
|
|
1658
|
-
usage:
|
|
1658
|
+
usage: x
|
|
1659
1659
|
} : C);
|
|
1660
1660
|
return {
|
|
1661
1661
|
...e,
|
|
@@ -1666,7 +1666,7 @@ const hi = (e, t) => {
|
|
|
1666
1666
|
}
|
|
1667
1667
|
return {
|
|
1668
1668
|
...e,
|
|
1669
|
-
model: ((
|
|
1669
|
+
model: ((u = t.payload) == null ? void 0 : u.model) || e.model,
|
|
1670
1670
|
messages: [
|
|
1671
1671
|
...e.messages,
|
|
1672
1672
|
{
|
|
@@ -1674,14 +1674,14 @@ const hi = (e, t) => {
|
|
|
1674
1674
|
content: y,
|
|
1675
1675
|
name: v,
|
|
1676
1676
|
processingTime: w,
|
|
1677
|
-
usage:
|
|
1677
|
+
usage: x,
|
|
1678
1678
|
messageId: b
|
|
1679
1679
|
}
|
|
1680
1680
|
]
|
|
1681
1681
|
};
|
|
1682
1682
|
}
|
|
1683
1683
|
case Bt: {
|
|
1684
|
-
const p = (
|
|
1684
|
+
const p = (m = t.payload) == null ? void 0 : m.role, b = (h = t.payload) == null ? void 0 : h.content;
|
|
1685
1685
|
return {
|
|
1686
1686
|
...e,
|
|
1687
1687
|
streaming: !1,
|
|
@@ -1811,7 +1811,7 @@ function ve(e) {
|
|
|
1811
1811
|
function Ge(e) {
|
|
1812
1812
|
return e.split("-")[1];
|
|
1813
1813
|
}
|
|
1814
|
-
function
|
|
1814
|
+
function Ia(e) {
|
|
1815
1815
|
return e === "x" ? "y" : "x";
|
|
1816
1816
|
}
|
|
1817
1817
|
function Jt(e) {
|
|
@@ -1821,7 +1821,7 @@ function Se(e) {
|
|
|
1821
1821
|
return ["top", "bottom"].includes(ve(e)) ? "y" : "x";
|
|
1822
1822
|
}
|
|
1823
1823
|
function Qt(e) {
|
|
1824
|
-
return
|
|
1824
|
+
return Ia(Se(e));
|
|
1825
1825
|
}
|
|
1826
1826
|
function _i(e, t, r) {
|
|
1827
1827
|
r === void 0 && (r = !1);
|
|
@@ -1857,7 +1857,7 @@ function Ci(e, t, r, a) {
|
|
|
1857
1857
|
function rt(e) {
|
|
1858
1858
|
return e.replace(/left|right|bottom|top/g, (t) => xi[t]);
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function Ii(e) {
|
|
1861
1861
|
return {
|
|
1862
1862
|
top: 0,
|
|
1863
1863
|
right: 0,
|
|
@@ -1866,8 +1866,8 @@ function Ei(e) {
|
|
|
1866
1866
|
...e
|
|
1867
1867
|
};
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1870
|
-
return typeof e != "number" ?
|
|
1869
|
+
function Ea(e) {
|
|
1870
|
+
return typeof e != "number" ? Ii(e) : {
|
|
1871
1871
|
top: e,
|
|
1872
1872
|
right: e,
|
|
1873
1873
|
bottom: e,
|
|
@@ -1897,18 +1897,18 @@ function Rr(e, t, r) {
|
|
|
1897
1897
|
reference: a,
|
|
1898
1898
|
floating: n
|
|
1899
1899
|
} = e;
|
|
1900
|
-
const o = Se(t), i = Qt(t), l = Jt(i), c = ve(t),
|
|
1900
|
+
const o = Se(t), i = Qt(t), l = Jt(i), c = ve(t), u = o === "y", m = a.x + a.width / 2 - n.width / 2, h = a.y + a.height / 2 - n.height / 2, g = a[l] / 2 - n[l] / 2;
|
|
1901
1901
|
let f;
|
|
1902
1902
|
switch (c) {
|
|
1903
1903
|
case "top":
|
|
1904
1904
|
f = {
|
|
1905
|
-
x:
|
|
1905
|
+
x: m,
|
|
1906
1906
|
y: a.y - n.height
|
|
1907
1907
|
};
|
|
1908
1908
|
break;
|
|
1909
1909
|
case "bottom":
|
|
1910
1910
|
f = {
|
|
1911
|
-
x:
|
|
1911
|
+
x: m,
|
|
1912
1912
|
y: a.y + a.height
|
|
1913
1913
|
};
|
|
1914
1914
|
break;
|
|
@@ -1932,69 +1932,69 @@ function Rr(e, t, r) {
|
|
|
1932
1932
|
}
|
|
1933
1933
|
switch (Ge(t)) {
|
|
1934
1934
|
case "start":
|
|
1935
|
-
f[i] -= g * (r &&
|
|
1935
|
+
f[i] -= g * (r && u ? -1 : 1);
|
|
1936
1936
|
break;
|
|
1937
1937
|
case "end":
|
|
1938
|
-
f[i] += g * (r &&
|
|
1938
|
+
f[i] += g * (r && u ? -1 : 1);
|
|
1939
1939
|
break;
|
|
1940
1940
|
}
|
|
1941
1941
|
return f;
|
|
1942
1942
|
}
|
|
1943
|
-
const
|
|
1943
|
+
const Ei = async (e, t, r) => {
|
|
1944
1944
|
const {
|
|
1945
1945
|
placement: a = "bottom",
|
|
1946
1946
|
strategy: n = "absolute",
|
|
1947
1947
|
middleware: o = [],
|
|
1948
1948
|
platform: i
|
|
1949
1949
|
} = r, l = o.filter(Boolean), c = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
1950
|
-
let
|
|
1950
|
+
let u = await i.getElementRects({
|
|
1951
1951
|
reference: e,
|
|
1952
1952
|
floating: t,
|
|
1953
1953
|
strategy: n
|
|
1954
1954
|
}), {
|
|
1955
|
-
x:
|
|
1955
|
+
x: m,
|
|
1956
1956
|
y: h
|
|
1957
|
-
} = Rr(
|
|
1957
|
+
} = Rr(u, a, c), g = a, f = {}, p = 0;
|
|
1958
1958
|
for (let b = 0; b < l.length; b++) {
|
|
1959
1959
|
const {
|
|
1960
1960
|
name: y,
|
|
1961
1961
|
fn: v
|
|
1962
1962
|
} = l[b], {
|
|
1963
1963
|
x: w,
|
|
1964
|
-
y:
|
|
1964
|
+
y: x,
|
|
1965
1965
|
data: _,
|
|
1966
1966
|
reset: R
|
|
1967
1967
|
} = await v({
|
|
1968
|
-
x:
|
|
1968
|
+
x: m,
|
|
1969
1969
|
y: h,
|
|
1970
1970
|
initialPlacement: a,
|
|
1971
1971
|
placement: g,
|
|
1972
1972
|
strategy: n,
|
|
1973
1973
|
middlewareData: f,
|
|
1974
|
-
rects:
|
|
1974
|
+
rects: u,
|
|
1975
1975
|
platform: i,
|
|
1976
1976
|
elements: {
|
|
1977
1977
|
reference: e,
|
|
1978
1978
|
floating: t
|
|
1979
1979
|
}
|
|
1980
1980
|
});
|
|
1981
|
-
|
|
1981
|
+
m = w ?? m, h = x ?? h, f = {
|
|
1982
1982
|
...f,
|
|
1983
1983
|
[y]: {
|
|
1984
1984
|
...f[y],
|
|
1985
1985
|
..._
|
|
1986
1986
|
}
|
|
1987
|
-
}, R && p <= 50 && (p++, typeof R == "object" && (R.placement && (g = R.placement), R.rects && (
|
|
1987
|
+
}, R && p <= 50 && (p++, typeof R == "object" && (R.placement && (g = R.placement), R.rects && (u = R.rects === !0 ? await i.getElementRects({
|
|
1988
1988
|
reference: e,
|
|
1989
1989
|
floating: t,
|
|
1990
1990
|
strategy: n
|
|
1991
1991
|
}) : R.rects), {
|
|
1992
|
-
x:
|
|
1992
|
+
x: m,
|
|
1993
1993
|
y: h
|
|
1994
|
-
} = Rr(
|
|
1994
|
+
} = Rr(u, g, c)), b = -1);
|
|
1995
1995
|
}
|
|
1996
1996
|
return {
|
|
1997
|
-
x:
|
|
1997
|
+
x: m,
|
|
1998
1998
|
y: h,
|
|
1999
1999
|
placement: g,
|
|
2000
2000
|
strategy: n,
|
|
@@ -2012,22 +2012,22 @@ async function Sa(e, t) {
|
|
|
2012
2012
|
elements: l,
|
|
2013
2013
|
strategy: c
|
|
2014
2014
|
} = e, {
|
|
2015
|
-
boundary:
|
|
2016
|
-
rootBoundary:
|
|
2015
|
+
boundary: u = "clippingAncestors",
|
|
2016
|
+
rootBoundary: m = "viewport",
|
|
2017
2017
|
elementContext: h = "floating",
|
|
2018
2018
|
altBoundary: g = !1,
|
|
2019
2019
|
padding: f = 0
|
|
2020
|
-
} = We(t, e), p =
|
|
2020
|
+
} = We(t, e), p = Ea(f), b = l[g ? h === "floating" ? "reference" : "floating" : h], y = at(await o.getClippingRect({
|
|
2021
2021
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(l.floating)),
|
|
2022
|
-
boundary:
|
|
2023
|
-
rootBoundary:
|
|
2022
|
+
boundary: u,
|
|
2023
|
+
rootBoundary: m,
|
|
2024
2024
|
strategy: c
|
|
2025
2025
|
})), v = h === "floating" ? {
|
|
2026
2026
|
x: a,
|
|
2027
2027
|
y: n,
|
|
2028
2028
|
width: i.floating.width,
|
|
2029
2029
|
height: i.floating.height
|
|
2030
|
-
} : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)),
|
|
2030
|
+
} : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l.floating)), x = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
|
|
2031
2031
|
x: 1,
|
|
2032
2032
|
y: 1
|
|
2033
2033
|
} : {
|
|
@@ -2040,10 +2040,10 @@ async function Sa(e, t) {
|
|
|
2040
2040
|
strategy: c
|
|
2041
2041
|
}) : v);
|
|
2042
2042
|
return {
|
|
2043
|
-
top: (y.top - _.top + p.top) /
|
|
2044
|
-
bottom: (_.bottom - y.bottom + p.bottom) /
|
|
2045
|
-
left: (y.left - _.left + p.left) /
|
|
2046
|
-
right: (_.right - y.right + p.right) /
|
|
2043
|
+
top: (y.top - _.top + p.top) / x.y,
|
|
2044
|
+
bottom: (_.bottom - y.bottom + p.bottom) / x.y,
|
|
2045
|
+
left: (y.left - _.left + p.left) / x.x,
|
|
2046
|
+
right: (_.right - y.right + p.right) / x.x
|
|
2047
2047
|
};
|
|
2048
2048
|
}
|
|
2049
2049
|
const Si = (e) => ({
|
|
@@ -2059,28 +2059,28 @@ const Si = (e) => ({
|
|
|
2059
2059
|
elements: l,
|
|
2060
2060
|
middlewareData: c
|
|
2061
2061
|
} = t, {
|
|
2062
|
-
element:
|
|
2063
|
-
padding:
|
|
2062
|
+
element: u,
|
|
2063
|
+
padding: m = 0
|
|
2064
2064
|
} = We(e, t) || {};
|
|
2065
|
-
if (
|
|
2065
|
+
if (u == null)
|
|
2066
2066
|
return {};
|
|
2067
|
-
const h =
|
|
2067
|
+
const h = Ea(m), g = {
|
|
2068
2068
|
x: r,
|
|
2069
2069
|
y: a
|
|
2070
|
-
}, f = Qt(n), p = Jt(f), b = await i.getDimensions(
|
|
2071
|
-
let C = A ? A[
|
|
2072
|
-
(!C || !await (i.isElement == null ? void 0 : i.isElement(A))) && (C = l.floating[
|
|
2073
|
-
const
|
|
2070
|
+
}, f = Qt(n), p = Jt(f), b = await i.getDimensions(u), y = f === "y", v = y ? "top" : "left", w = y ? "bottom" : "right", x = y ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[f] - g[f] - o.floating[p], R = g[f] - o.reference[f], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
2071
|
+
let C = A ? A[x] : 0;
|
|
2072
|
+
(!C || !await (i.isElement == null ? void 0 : i.isElement(A))) && (C = l.floating[x] || o.floating[p]);
|
|
2073
|
+
const I = _ / 2 - R / 2, N = C / 2 - b[p] / 2 - 1, P = He(h[v], N), S = He(h[w], N), B = P, M = C - b[p] - S, O = C / 2 - b[p] / 2 + I, z = Pt(B, O, M), E = !c.arrow && Ge(n) != null && O !== z && o.reference[p] / 2 - (O < B ? P : S) - b[p] / 2 < 0, D = E ? O < B ? O - B : O - M : 0;
|
|
2074
2074
|
return {
|
|
2075
2075
|
[f]: g[f] + D,
|
|
2076
2076
|
data: {
|
|
2077
2077
|
[f]: z,
|
|
2078
2078
|
centerOffset: O - z - D,
|
|
2079
|
-
...
|
|
2079
|
+
...E && {
|
|
2080
2080
|
alignmentOffset: D
|
|
2081
2081
|
}
|
|
2082
2082
|
},
|
|
2083
|
-
reset:
|
|
2083
|
+
reset: E
|
|
2084
2084
|
};
|
|
2085
2085
|
}
|
|
2086
2086
|
}), Ri = function(e) {
|
|
@@ -2095,9 +2095,9 @@ const Si = (e) => ({
|
|
|
2095
2095
|
rects: i,
|
|
2096
2096
|
initialPlacement: l,
|
|
2097
2097
|
platform: c,
|
|
2098
|
-
elements:
|
|
2098
|
+
elements: u
|
|
2099
2099
|
} = t, {
|
|
2100
|
-
mainAxis:
|
|
2100
|
+
mainAxis: m = !0,
|
|
2101
2101
|
crossAxis: h = !0,
|
|
2102
2102
|
fallbackPlacements: g,
|
|
2103
2103
|
fallbackStrategy: f = "bestFit",
|
|
@@ -2107,13 +2107,13 @@ const Si = (e) => ({
|
|
|
2107
2107
|
} = We(e, t);
|
|
2108
2108
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2109
2109
|
return {};
|
|
2110
|
-
const v = ve(n), w = Se(l),
|
|
2110
|
+
const v = ve(n), w = Se(l), x = ve(l) === l, _ = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), R = g || (x || !b ? [rt(l)] : Ni(l)), A = p !== "none";
|
|
2111
2111
|
!g && A && R.push(...Ci(l, b, p, _));
|
|
2112
|
-
const C = [l, ...R],
|
|
2112
|
+
const C = [l, ...R], I = await Sa(t, y), N = [];
|
|
2113
2113
|
let P = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
2114
|
-
if (
|
|
2114
|
+
if (m && N.push(I[v]), h) {
|
|
2115
2115
|
const O = _i(n, i, _);
|
|
2116
|
-
N.push(
|
|
2116
|
+
N.push(I[O[0]], I[O[1]]);
|
|
2117
2117
|
}
|
|
2118
2118
|
if (P = [...P, {
|
|
2119
2119
|
placement: n,
|
|
@@ -2131,8 +2131,8 @@ const Si = (e) => ({
|
|
|
2131
2131
|
placement: z
|
|
2132
2132
|
}
|
|
2133
2133
|
};
|
|
2134
|
-
let
|
|
2135
|
-
if (!
|
|
2134
|
+
let E = (B = P.filter((D) => D.overflows[0] <= 0).sort((D, q) => D.overflows[1] - q.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
2135
|
+
if (!E)
|
|
2136
2136
|
switch (f) {
|
|
2137
2137
|
case "bestFit": {
|
|
2138
2138
|
var M;
|
|
@@ -2145,17 +2145,17 @@ const Si = (e) => ({
|
|
|
2145
2145
|
}
|
|
2146
2146
|
return !0;
|
|
2147
2147
|
}).map((q) => [q.placement, q.overflows.filter((U) => U > 0).reduce((U, Ye) => U + Ye, 0)]).sort((q, U) => q[1] - U[1])[0]) == null ? void 0 : M[0];
|
|
2148
|
-
D && (
|
|
2148
|
+
D && (E = D);
|
|
2149
2149
|
break;
|
|
2150
2150
|
}
|
|
2151
2151
|
case "initialPlacement":
|
|
2152
|
-
|
|
2152
|
+
E = l;
|
|
2153
2153
|
break;
|
|
2154
2154
|
}
|
|
2155
|
-
if (n !==
|
|
2155
|
+
if (n !== E)
|
|
2156
2156
|
return {
|
|
2157
2157
|
reset: {
|
|
2158
|
-
placement:
|
|
2158
|
+
placement: E
|
|
2159
2159
|
}
|
|
2160
2160
|
};
|
|
2161
2161
|
}
|
|
@@ -2168,7 +2168,7 @@ async function $i(e, t) {
|
|
|
2168
2168
|
placement: r,
|
|
2169
2169
|
platform: a,
|
|
2170
2170
|
elements: n
|
|
2171
|
-
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), l = Ge(r), c = Se(r) === "y",
|
|
2171
|
+
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), l = Ge(r), c = Se(r) === "y", u = ["left", "top"].includes(i) ? -1 : 1, m = o && c ? -1 : 1, h = We(t, e);
|
|
2172
2172
|
let {
|
|
2173
2173
|
mainAxis: g,
|
|
2174
2174
|
crossAxis: f,
|
|
@@ -2183,11 +2183,11 @@ async function $i(e, t) {
|
|
|
2183
2183
|
alignmentAxis: h.alignmentAxis
|
|
2184
2184
|
};
|
|
2185
2185
|
return l && typeof p == "number" && (f = l === "end" ? p * -1 : p), c ? {
|
|
2186
|
-
x: f *
|
|
2187
|
-
y: g *
|
|
2186
|
+
x: f * m,
|
|
2187
|
+
y: g * u
|
|
2188
2188
|
} : {
|
|
2189
|
-
x: g *
|
|
2190
|
-
y: f *
|
|
2189
|
+
x: g * u,
|
|
2190
|
+
y: f * m
|
|
2191
2191
|
};
|
|
2192
2192
|
}
|
|
2193
2193
|
const Ai = function(e) {
|
|
@@ -2237,18 +2237,18 @@ const Ai = function(e) {
|
|
|
2237
2237
|
}
|
|
2238
2238
|
},
|
|
2239
2239
|
...c
|
|
2240
|
-
} = We(e, t),
|
|
2240
|
+
} = We(e, t), u = {
|
|
2241
2241
|
x: r,
|
|
2242
2242
|
y: a
|
|
2243
|
-
},
|
|
2244
|
-
let f =
|
|
2243
|
+
}, m = await Sa(t, c), h = Se(ve(n)), g = Ia(h);
|
|
2244
|
+
let f = u[g], p = u[h];
|
|
2245
2245
|
if (o) {
|
|
2246
|
-
const y = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", w = f +
|
|
2247
|
-
f = Pt(w, f,
|
|
2246
|
+
const y = g === "y" ? "top" : "left", v = g === "y" ? "bottom" : "right", w = f + m[y], x = f - m[v];
|
|
2247
|
+
f = Pt(w, f, x);
|
|
2248
2248
|
}
|
|
2249
2249
|
if (i) {
|
|
2250
|
-
const y = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = p +
|
|
2251
|
-
p = Pt(w, p,
|
|
2250
|
+
const y = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", w = p + m[y], x = p - m[v];
|
|
2251
|
+
p = Pt(w, p, x);
|
|
2252
2252
|
}
|
|
2253
2253
|
const b = l.fn({
|
|
2254
2254
|
...t,
|
|
@@ -2419,20 +2419,20 @@ function Ue(e, t, r, a) {
|
|
|
2419
2419
|
let i = ce(1);
|
|
2420
2420
|
t && (a ? oe(a) && (i = _e(a)) : i = _e(e));
|
|
2421
2421
|
const l = Pi(o, r, a) ? Ma(o) : ce(0);
|
|
2422
|
-
let c = (n.left + l.x) / i.x,
|
|
2422
|
+
let c = (n.left + l.x) / i.x, u = (n.top + l.y) / i.y, m = n.width / i.x, h = n.height / i.y;
|
|
2423
2423
|
if (o) {
|
|
2424
2424
|
const g = J(o), f = a && oe(a) ? J(a) : a;
|
|
2425
2425
|
let p = g, b = Ar(p);
|
|
2426
2426
|
for (; b && a && f !== p; ) {
|
|
2427
|
-
const y = _e(b), v = b.getBoundingClientRect(), w = ie(b),
|
|
2428
|
-
c *= y.x,
|
|
2427
|
+
const y = _e(b), v = b.getBoundingClientRect(), w = ie(b), x = v.left + (b.clientLeft + parseFloat(w.paddingLeft)) * y.x, _ = v.top + (b.clientTop + parseFloat(w.paddingTop)) * y.y;
|
|
2428
|
+
c *= y.x, u *= y.y, m *= y.x, h *= y.y, c += x, u += _, p = J(b), b = Ar(p);
|
|
2429
2429
|
}
|
|
2430
2430
|
}
|
|
2431
2431
|
return at({
|
|
2432
|
-
width:
|
|
2432
|
+
width: m,
|
|
2433
2433
|
height: h,
|
|
2434
2434
|
x: c,
|
|
2435
|
-
y:
|
|
2435
|
+
y: u
|
|
2436
2436
|
});
|
|
2437
2437
|
}
|
|
2438
2438
|
function rr(e, t) {
|
|
@@ -2463,18 +2463,18 @@ function zi(e) {
|
|
|
2463
2463
|
let c = {
|
|
2464
2464
|
scrollLeft: 0,
|
|
2465
2465
|
scrollTop: 0
|
|
2466
|
-
},
|
|
2467
|
-
const
|
|
2466
|
+
}, u = ce(1);
|
|
2467
|
+
const m = ce(0), h = de(a);
|
|
2468
2468
|
if ((h || !h && !o) && ((Le(a) !== "body" || je(i)) && (c = dt(a)), de(a))) {
|
|
2469
2469
|
const f = Ue(a);
|
|
2470
|
-
|
|
2470
|
+
u = _e(a), m.x = f.x + a.clientLeft, m.y = f.y + a.clientTop;
|
|
2471
2471
|
}
|
|
2472
2472
|
const g = i && !h && !o ? Oa(i, c, !0) : ce(0);
|
|
2473
2473
|
return {
|
|
2474
|
-
width: r.width *
|
|
2475
|
-
height: r.height *
|
|
2476
|
-
x: r.x *
|
|
2477
|
-
y: r.y *
|
|
2474
|
+
width: r.width * u.x,
|
|
2475
|
+
height: r.height * u.y,
|
|
2476
|
+
x: r.x * u.x - c.scrollLeft * u.x + m.x + g.x,
|
|
2477
|
+
y: r.y * u.y - c.scrollTop * u.y + m.y + g.y
|
|
2478
2478
|
};
|
|
2479
2479
|
}
|
|
2480
2480
|
function Vi(e) {
|
|
@@ -2496,8 +2496,8 @@ function Hi(e, t) {
|
|
|
2496
2496
|
let o = a.clientWidth, i = a.clientHeight, l = 0, c = 0;
|
|
2497
2497
|
if (n) {
|
|
2498
2498
|
o = n.width, i = n.height;
|
|
2499
|
-
const
|
|
2500
|
-
(!
|
|
2499
|
+
const u = tr();
|
|
2500
|
+
(!u || u && t === "fixed") && (l = n.offsetLeft, c = n.offsetTop);
|
|
2501
2501
|
}
|
|
2502
2502
|
return {
|
|
2503
2503
|
width: o,
|
|
@@ -2507,12 +2507,12 @@ function Hi(e, t) {
|
|
|
2507
2507
|
};
|
|
2508
2508
|
}
|
|
2509
2509
|
function Ui(e, t) {
|
|
2510
|
-
const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = de(e) ? _e(e) : ce(1), i = e.clientWidth * o.x, l = e.clientHeight * o.y, c = n * o.x,
|
|
2510
|
+
const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = de(e) ? _e(e) : ce(1), i = e.clientWidth * o.x, l = e.clientHeight * o.y, c = n * o.x, u = a * o.y;
|
|
2511
2511
|
return {
|
|
2512
2512
|
width: i,
|
|
2513
2513
|
height: l,
|
|
2514
2514
|
x: c,
|
|
2515
|
-
y:
|
|
2515
|
+
y: u
|
|
2516
2516
|
};
|
|
2517
2517
|
}
|
|
2518
2518
|
function Lr(e, t, r) {
|
|
@@ -2547,7 +2547,7 @@ function Fi(e, t) {
|
|
|
2547
2547
|
let i = o ? ye(e) : e;
|
|
2548
2548
|
for (; oe(i) && !Re(i); ) {
|
|
2549
2549
|
const l = ie(i), c = er(i);
|
|
2550
|
-
!c && l.position === "fixed" && (n = null), (o ? !c && !n : !c && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || je(i) && !c && Pa(e, i)) ? a = a.filter((
|
|
2550
|
+
!c && l.position === "fixed" && (n = null), (o ? !c && !n : !c && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || je(i) && !c && Pa(e, i)) ? a = a.filter((u) => u !== i) : n = l, i = ye(i);
|
|
2551
2551
|
}
|
|
2552
2552
|
return t.set(e, a), a;
|
|
2553
2553
|
}
|
|
@@ -2558,9 +2558,9 @@ function Wi(e) {
|
|
|
2558
2558
|
rootBoundary: a,
|
|
2559
2559
|
strategy: n
|
|
2560
2560
|
} = e;
|
|
2561
|
-
const o = [...r === "clippingAncestors" ? ct(t) ? [] : Fi(t, this._c) : [].concat(r), a], i = o[0], l = o.reduce((c,
|
|
2562
|
-
const
|
|
2563
|
-
return c.top = we(
|
|
2561
|
+
const o = [...r === "clippingAncestors" ? ct(t) ? [] : Fi(t, this._c) : [].concat(r), a], i = o[0], l = o.reduce((c, u) => {
|
|
2562
|
+
const m = Lr(t, u, n);
|
|
2563
|
+
return c.top = we(m.top, c.top), c.right = He(m.right, c.right), c.bottom = He(m.bottom, c.bottom), c.left = we(m.left, c.left), c;
|
|
2564
2564
|
}, Lr(t, i, n));
|
|
2565
2565
|
return {
|
|
2566
2566
|
width: l.right - l.left,
|
|
@@ -2591,9 +2591,9 @@ function ji(e, t, r) {
|
|
|
2591
2591
|
const g = Ue(t, !0, o, t);
|
|
2592
2592
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
2593
2593
|
} else n && (c.x = rr(n));
|
|
2594
|
-
const
|
|
2594
|
+
const u = n && !a && !o ? Oa(n, l) : ce(0), m = i.left + l.scrollLeft - c.x - u.x, h = i.top + l.scrollTop - c.y - u.y;
|
|
2595
2595
|
return {
|
|
2596
|
-
x:
|
|
2596
|
+
x: m,
|
|
2597
2597
|
y: h,
|
|
2598
2598
|
width: i.width,
|
|
2599
2599
|
height: i.height
|
|
@@ -2662,7 +2662,7 @@ const qi = {
|
|
|
2662
2662
|
...n.platform,
|
|
2663
2663
|
_c: a
|
|
2664
2664
|
};
|
|
2665
|
-
return
|
|
2665
|
+
return Ei(e, t, {
|
|
2666
2666
|
...n,
|
|
2667
2667
|
platform: o
|
|
2668
2668
|
});
|
|
@@ -2743,7 +2743,7 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2743
2743
|
}) => {
|
|
2744
2744
|
const c = ts(() => {
|
|
2745
2745
|
b.stop(), p(!1);
|
|
2746
|
-
}),
|
|
2746
|
+
}), u = T(null), m = T(null), [h, g] = L(!1), [f, p] = L(!1), b = rs(() => {
|
|
2747
2747
|
p(!1);
|
|
2748
2748
|
}, ls), y = is({
|
|
2749
2749
|
mode: a,
|
|
@@ -2751,14 +2751,14 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2751
2751
|
tooltipClassName: i,
|
|
2752
2752
|
arrowClassName: l
|
|
2753
2753
|
}), v = ss({ delay: n }), w = j(async () => {
|
|
2754
|
-
var A, C,
|
|
2755
|
-
if (c.current &&
|
|
2754
|
+
var A, C, I, N;
|
|
2755
|
+
if (c.current && u.current && m.current) {
|
|
2756
2756
|
const {
|
|
2757
2757
|
x: P,
|
|
2758
2758
|
y: S,
|
|
2759
2759
|
middlewareData: B,
|
|
2760
2760
|
placement: M
|
|
2761
|
-
} = await es(c.current,
|
|
2761
|
+
} = await es(c.current, u.current, {
|
|
2762
2762
|
placement: r,
|
|
2763
2763
|
middleware: [
|
|
2764
2764
|
Xi(10),
|
|
@@ -2767,10 +2767,10 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2767
2767
|
fallbackAxisSideDirection: "start"
|
|
2768
2768
|
}),
|
|
2769
2769
|
Zi({ padding: 5 }),
|
|
2770
|
-
Qi({ element:
|
|
2770
|
+
Qi({ element: m.current })
|
|
2771
2771
|
]
|
|
2772
2772
|
});
|
|
2773
|
-
(A =
|
|
2773
|
+
(A = u == null ? void 0 : u.current) != null && A.style && Object.assign(u.current.style, {
|
|
2774
2774
|
left: Ke(P),
|
|
2775
2775
|
top: Ke(S),
|
|
2776
2776
|
...v
|
|
@@ -2781,8 +2781,8 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2781
2781
|
bottom: "top",
|
|
2782
2782
|
left: "right"
|
|
2783
2783
|
}[M.split("-")[0]];
|
|
2784
|
-
(C =
|
|
2785
|
-
left: Ke((
|
|
2784
|
+
(C = m == null ? void 0 : m.current) != null && C.style && Object.assign(m.current.style, {
|
|
2785
|
+
left: Ke((I = B.arrow) == null ? void 0 : I.x),
|
|
2786
2786
|
top: Ke((N = B.arrow) == null ? void 0 : N.y),
|
|
2787
2787
|
right: "",
|
|
2788
2788
|
bottom: "",
|
|
@@ -2793,32 +2793,32 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2793
2793
|
$(() => {
|
|
2794
2794
|
(async () => h && await w())();
|
|
2795
2795
|
}, [w, h]);
|
|
2796
|
-
const
|
|
2796
|
+
const x = () => {
|
|
2797
2797
|
g(!1), p(!0), b.start();
|
|
2798
2798
|
}, _ = () => {
|
|
2799
2799
|
f || g(!0);
|
|
2800
2800
|
}, R = () => {
|
|
2801
2801
|
f || g(!1);
|
|
2802
2802
|
};
|
|
2803
|
-
return /* @__PURE__ */
|
|
2803
|
+
return /* @__PURE__ */ k(
|
|
2804
2804
|
"div",
|
|
2805
2805
|
{
|
|
2806
2806
|
className: y.wrapper,
|
|
2807
2807
|
ref: c,
|
|
2808
2808
|
onMouseEnter: _,
|
|
2809
2809
|
onMouseLeave: R,
|
|
2810
|
-
onClick:
|
|
2810
|
+
onClick: x,
|
|
2811
2811
|
children: [
|
|
2812
2812
|
e,
|
|
2813
|
-
h && /* @__PURE__ */
|
|
2813
|
+
h && /* @__PURE__ */ k(
|
|
2814
2814
|
"div",
|
|
2815
2815
|
{
|
|
2816
2816
|
role: "tooltip",
|
|
2817
|
-
ref:
|
|
2817
|
+
ref: u,
|
|
2818
2818
|
className: y.tooltip,
|
|
2819
2819
|
children: [
|
|
2820
2820
|
t,
|
|
2821
|
-
/* @__PURE__ */ s("div", { ref:
|
|
2821
|
+
/* @__PURE__ */ s("div", { ref: m, className: y.arrow })
|
|
2822
2822
|
]
|
|
2823
2823
|
}
|
|
2824
2824
|
)
|
|
@@ -2840,7 +2840,7 @@ const Ke = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, as = (
|
|
|
2840
2840
|
});
|
|
2841
2841
|
};
|
|
2842
2842
|
return $(() => {
|
|
2843
|
-
|
|
2843
|
+
Et() || (t === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), t === !1 && n.current && (n.current = !1));
|
|
2844
2844
|
}, [t]), /* @__PURE__ */ s(
|
|
2845
2845
|
ke,
|
|
2846
2846
|
{
|
|
@@ -3130,8 +3130,8 @@ const Pr = "av-messagebox", zr = "av-panel", Vr = "av-button", ut = "icon", Va =
|
|
|
3130
3130
|
fullWidth: i,
|
|
3131
3131
|
size: l,
|
|
3132
3132
|
noBorder: c,
|
|
3133
|
-
labelRight:
|
|
3134
|
-
labelLeft:
|
|
3133
|
+
labelRight: u,
|
|
3134
|
+
labelLeft: m,
|
|
3135
3135
|
noBackground: h,
|
|
3136
3136
|
variant: g,
|
|
3137
3137
|
noTruncate: f,
|
|
@@ -3151,12 +3151,12 @@ const Pr = "av-messagebox", zr = "av-panel", Vr = "av-button", ut = "icon", Va =
|
|
|
3151
3151
|
ds({
|
|
3152
3152
|
type: e,
|
|
3153
3153
|
size: l,
|
|
3154
|
-
labelRight:
|
|
3155
|
-
labelLeft:
|
|
3154
|
+
labelRight: u,
|
|
3155
|
+
labelLeft: m,
|
|
3156
3156
|
align: p,
|
|
3157
3157
|
animated: y
|
|
3158
3158
|
}),
|
|
3159
|
-
us({ type: e, size: l, labelRight:
|
|
3159
|
+
us({ type: e, size: l, labelRight: u, labelLeft: m }),
|
|
3160
3160
|
ys({ mode: a, variant: g, noBorder: c }),
|
|
3161
3161
|
bs({ focusMode: n }),
|
|
3162
3162
|
gs({ mode: a, variant: g, disabled: o }),
|
|
@@ -3228,14 +3228,14 @@ const Cs = {
|
|
|
3228
3228
|
// w-8
|
|
3229
3229
|
large: 48
|
|
3230
3230
|
// w-12
|
|
3231
|
-
},
|
|
3231
|
+
}, Is = {
|
|
3232
3232
|
small: 8 * 2,
|
|
3233
3233
|
// px-2 x 2
|
|
3234
3234
|
medium: 12 * 2,
|
|
3235
3235
|
// px-3 x 2
|
|
3236
3236
|
large: 16 * 2
|
|
3237
3237
|
// px-4 x 2
|
|
3238
|
-
},
|
|
3238
|
+
}, Es = 2, ar = H.forwardRef(
|
|
3239
3239
|
({
|
|
3240
3240
|
children: e,
|
|
3241
3241
|
disabled: t = !1,
|
|
@@ -3246,8 +3246,8 @@ const Cs = {
|
|
|
3246
3246
|
type: i = "button",
|
|
3247
3247
|
raw: l = !1,
|
|
3248
3248
|
noBorder: c = !1,
|
|
3249
|
-
"aria-label":
|
|
3250
|
-
label:
|
|
3249
|
+
"aria-label": u,
|
|
3250
|
+
label: m,
|
|
3251
3251
|
size: h = "medium",
|
|
3252
3252
|
labelRight: g,
|
|
3253
3253
|
labelLeft: f,
|
|
@@ -3256,7 +3256,7 @@ const Cs = {
|
|
|
3256
3256
|
radius: y = "large",
|
|
3257
3257
|
variant: v = "primary",
|
|
3258
3258
|
iconClassName: w,
|
|
3259
|
-
animated:
|
|
3259
|
+
animated: x = !1,
|
|
3260
3260
|
..._
|
|
3261
3261
|
}, R) => {
|
|
3262
3262
|
const A = xs({
|
|
@@ -3275,12 +3275,12 @@ const Cs = {
|
|
|
3275
3275
|
align: b,
|
|
3276
3276
|
radius: y,
|
|
3277
3277
|
variant: v,
|
|
3278
|
-
animated:
|
|
3279
|
-
}), C = vs({ mode: r, raw: l, iconClassName: w }),
|
|
3278
|
+
animated: x
|
|
3279
|
+
}), C = vs({ mode: r, raw: l, iconClassName: w }), I = ks({ animated: x }), [N, P] = _t(), [S, B] = _t(), [M, O] = _t(), z = T(0), E = T(null), D = Ns([R, E]);
|
|
3280
3280
|
return Z(() => {
|
|
3281
|
-
M && M.current &&
|
|
3282
|
-
}, [O, M, h, c,
|
|
3283
|
-
|
|
3281
|
+
M && M.current && x && (z.current = O.width + Is[h] + (c ? 0 : Es));
|
|
3282
|
+
}, [O, M, h, c, x]), Z(() => {
|
|
3283
|
+
E && E.current && x && (g && N && P.width > 0 ? (N.current && (N.current.style.opacity = "100"), E.current.style.width = `${P.width + z.current}px`) : f && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), E.current.style.width = `${B.width + z.current}px`) : (N.current && (N.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), E.current.style.width = `${Cs[h]}px`));
|
|
3284
3284
|
}, [
|
|
3285
3285
|
P,
|
|
3286
3286
|
g,
|
|
@@ -3289,15 +3289,15 @@ const Cs = {
|
|
|
3289
3289
|
f,
|
|
3290
3290
|
S,
|
|
3291
3291
|
h,
|
|
3292
|
-
|
|
3293
|
-
]), /* @__PURE__ */
|
|
3292
|
+
x
|
|
3293
|
+
]), /* @__PURE__ */ k(
|
|
3294
3294
|
Da,
|
|
3295
3295
|
{
|
|
3296
3296
|
ref: D,
|
|
3297
3297
|
className: A,
|
|
3298
3298
|
disabled: t,
|
|
3299
3299
|
type: i,
|
|
3300
|
-
"aria-label":
|
|
3300
|
+
"aria-label": u || m,
|
|
3301
3301
|
..._,
|
|
3302
3302
|
children: [
|
|
3303
3303
|
/* @__PURE__ */ s(
|
|
@@ -3305,7 +3305,7 @@ const Cs = {
|
|
|
3305
3305
|
{
|
|
3306
3306
|
label: f,
|
|
3307
3307
|
labelRef: S,
|
|
3308
|
-
labelClass:
|
|
3308
|
+
labelClass: I,
|
|
3309
3309
|
labelInnerClass: "pr-2"
|
|
3310
3310
|
}
|
|
3311
3311
|
),
|
|
@@ -3315,7 +3315,7 @@ const Cs = {
|
|
|
3315
3315
|
{
|
|
3316
3316
|
label: g,
|
|
3317
3317
|
labelRef: N,
|
|
3318
|
-
labelClass:
|
|
3318
|
+
labelClass: I,
|
|
3319
3319
|
labelInnerClass: "pl-2"
|
|
3320
3320
|
}
|
|
3321
3321
|
)
|
|
@@ -3393,13 +3393,13 @@ const Rs = ({
|
|
|
3393
3393
|
semantic: l = !1,
|
|
3394
3394
|
...c
|
|
3395
3395
|
}) => {
|
|
3396
|
-
const
|
|
3397
|
-
return /* @__PURE__ */
|
|
3396
|
+
const u = d(o, a);
|
|
3397
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
3398
3398
|
/* @__PURE__ */ s(
|
|
3399
3399
|
"svg",
|
|
3400
3400
|
{
|
|
3401
3401
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3402
|
-
className:
|
|
3402
|
+
className: u,
|
|
3403
3403
|
viewBox: r || n,
|
|
3404
3404
|
fill: t || "currentColor",
|
|
3405
3405
|
role: "img",
|
|
@@ -3468,9 +3468,9 @@ function As({
|
|
|
3468
3468
|
open: t,
|
|
3469
3469
|
onOpenChange: r
|
|
3470
3470
|
} = {}) {
|
|
3471
|
-
const [a, n] = G.useState(e), [o, i] = G.useState(), [l, c] = G.useState(),
|
|
3472
|
-
open:
|
|
3473
|
-
onOpenChange:
|
|
3471
|
+
const [a, n] = G.useState(e), [o, i] = G.useState(), [l, c] = G.useState(), u = t ?? a, m = r ?? n, h = da({
|
|
3472
|
+
open: u,
|
|
3473
|
+
onOpenChange: m
|
|
3474
3474
|
}), g = h.context, f = ua(g, {
|
|
3475
3475
|
enabled: t == null
|
|
3476
3476
|
}), p = ma(g, {
|
|
@@ -3479,8 +3479,8 @@ function As({
|
|
|
3479
3479
|
}), b = ha(g), y = fa([f, p, b]);
|
|
3480
3480
|
return G.useMemo(
|
|
3481
3481
|
() => ({
|
|
3482
|
-
open:
|
|
3483
|
-
setOpen:
|
|
3482
|
+
open: u,
|
|
3483
|
+
setOpen: m,
|
|
3484
3484
|
...y,
|
|
3485
3485
|
...h,
|
|
3486
3486
|
labelId: o,
|
|
@@ -3488,7 +3488,7 @@ function As({
|
|
|
3488
3488
|
setLabelId: i,
|
|
3489
3489
|
setDescriptionId: c
|
|
3490
3490
|
}),
|
|
3491
|
-
[
|
|
3491
|
+
[u, m, y, h, o, l]
|
|
3492
3492
|
);
|
|
3493
3493
|
}
|
|
3494
3494
|
const mt = () => {
|
|
@@ -3579,15 +3579,15 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3579
3579
|
kind: i = Pe,
|
|
3580
3580
|
className: l
|
|
3581
3581
|
}) => {
|
|
3582
|
-
const c = T(""),
|
|
3582
|
+
const c = T(""), u = zs({ className: l, kind: i, borderMode: o });
|
|
3583
3583
|
return $(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
|
|
3584
3584
|
e && (document.title = c.current);
|
|
3585
|
-
}), [r, e]), /* @__PURE__ */ s(K, { children: e && /* @__PURE__ */ s(Ls, { open: e, onOpenChange: t, children: /* @__PURE__ */
|
|
3586
|
-
/* @__PURE__ */
|
|
3585
|
+
}), [r, e]), /* @__PURE__ */ s(K, { children: e && /* @__PURE__ */ s(Ls, { open: e, onOpenChange: t, children: /* @__PURE__ */ k(Bs, { className: u.main, children: [
|
|
3586
|
+
/* @__PURE__ */ k("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
3587
3587
|
/* @__PURE__ */ s(
|
|
3588
3588
|
Ps,
|
|
3589
3589
|
{
|
|
3590
|
-
className:
|
|
3590
|
+
className: u.close,
|
|
3591
3591
|
trigger: /* @__PURE__ */ s(
|
|
3592
3592
|
ar,
|
|
3593
3593
|
{
|
|
@@ -3600,10 +3600,10 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3600
3600
|
)
|
|
3601
3601
|
}
|
|
3602
3602
|
),
|
|
3603
|
-
/* @__PURE__ */ s(Ms, { className:
|
|
3603
|
+
/* @__PURE__ */ s(Ms, { className: u.header, children: r })
|
|
3604
3604
|
] }),
|
|
3605
|
-
/* @__PURE__ */ s(Os, { className:
|
|
3606
|
-
n && /* @__PURE__ */ s("div", { className:
|
|
3605
|
+
/* @__PURE__ */ s(Os, { className: u.content, children: a }),
|
|
3606
|
+
n && /* @__PURE__ */ s("div", { className: u.footer, children: n })
|
|
3607
3607
|
] }) }) });
|
|
3608
3608
|
}, nr = ({
|
|
3609
3609
|
showConfirmation: e,
|
|
@@ -3618,7 +3618,7 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3618
3618
|
open: e,
|
|
3619
3619
|
onOpenChange: t,
|
|
3620
3620
|
title: n.title,
|
|
3621
|
-
footer: /* @__PURE__ */
|
|
3621
|
+
footer: /* @__PURE__ */ k(Ne, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
3622
3622
|
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
|
|
3623
3623
|
pe,
|
|
3624
3624
|
{
|
|
@@ -3652,7 +3652,7 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3652
3652
|
const {
|
|
3653
3653
|
state: { privateChat: t },
|
|
3654
3654
|
dispatch: r
|
|
3655
|
-
} = V(ee), [a, n] = L(!1), [o, i] =
|
|
3655
|
+
} = V(ee), [a, n] = L(!1), [o, i] = Ee({
|
|
3656
3656
|
key: Te + un,
|
|
3657
3657
|
initialValue: ""
|
|
3658
3658
|
}), l = () => {
|
|
@@ -3663,7 +3663,7 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3663
3663
|
}
|
|
3664
3664
|
});
|
|
3665
3665
|
};
|
|
3666
|
-
return /* @__PURE__ */
|
|
3666
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
3667
3667
|
/* @__PURE__ */ s(
|
|
3668
3668
|
nr,
|
|
3669
3669
|
{
|
|
@@ -3675,7 +3675,7 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3675
3675
|
cancelAction: "Cancel",
|
|
3676
3676
|
title: "Temporary Chat"
|
|
3677
3677
|
},
|
|
3678
|
-
children: /* @__PURE__ */
|
|
3678
|
+
children: /* @__PURE__ */ k("ul", { children: [
|
|
3679
3679
|
/* @__PURE__ */ s("li", { children: "Your chat sessions will not be saved to your chat history." }),
|
|
3680
3680
|
/* @__PURE__ */ s("li", { children: "If you refresh your browser, the setting will revert to the default (non-private) chat." })
|
|
3681
3681
|
] })
|
|
@@ -3698,8 +3698,8 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3698
3698
|
label: "Temporary Chat",
|
|
3699
3699
|
labelRight: t ? "temporary" : "",
|
|
3700
3700
|
variant: t ? "danger" : "primary",
|
|
3701
|
-
onClick: (
|
|
3702
|
-
|
|
3701
|
+
onClick: (u) => {
|
|
3702
|
+
u.preventDefault(), o ? l() : (i("true"), n(!a));
|
|
3703
3703
|
},
|
|
3704
3704
|
className: "text-sm",
|
|
3705
3705
|
children: t ? /* @__PURE__ */ s(io, { size: me }) : /* @__PURE__ */ s(ho, { size: me })
|
|
@@ -3739,17 +3739,17 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3739
3739
|
focusMode: i = "system",
|
|
3740
3740
|
...l
|
|
3741
3741
|
}, c) => {
|
|
3742
|
-
const [
|
|
3743
|
-
nodeId:
|
|
3744
|
-
open:
|
|
3742
|
+
const [u, m] = L(!1), [h, g] = L(!1), [f, p] = L(null), b = T([]), y = T([]), v = V(Dt), w = ga(), x = Fn(), _ = pa(), { floatingStyles: R, refs: A, context: C } = da({
|
|
3743
|
+
nodeId: x,
|
|
3744
|
+
open: u,
|
|
3745
3745
|
onOpenChange: (U) => {
|
|
3746
|
-
|
|
3746
|
+
m(U), n == null || n(U);
|
|
3747
3747
|
},
|
|
3748
3748
|
placement: a,
|
|
3749
3749
|
strategy: "fixed",
|
|
3750
3750
|
middleware: [Wn({ mainAxis: 10 }), Gn(), jn()],
|
|
3751
3751
|
whileElementsMounted: Yn
|
|
3752
|
-
}),
|
|
3752
|
+
}), I = ua(C, {
|
|
3753
3753
|
event: "mousedown",
|
|
3754
3754
|
toggle: !0,
|
|
3755
3755
|
ignoreMouse: !1
|
|
@@ -3761,10 +3761,10 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3761
3761
|
loop: !0
|
|
3762
3762
|
}), B = qn(C, {
|
|
3763
3763
|
listRef: y,
|
|
3764
|
-
onMatch:
|
|
3764
|
+
onMatch: u ? p : void 0,
|
|
3765
3765
|
activeIndex: f
|
|
3766
|
-
}), { getReferenceProps: M, getFloatingProps: O, getItemProps: z } = fa([
|
|
3767
|
-
noInternalClick:
|
|
3766
|
+
}), { getReferenceProps: M, getFloatingProps: O, getItemProps: z } = fa([I, N, P, S, B]), E = Hr(e) === "Button" || Hr(e) === "ButtonIcon", D = E ? {
|
|
3767
|
+
noInternalClick: E,
|
|
3768
3768
|
focusMode: i,
|
|
3769
3769
|
mode: o
|
|
3770
3770
|
} : {}, q = H.cloneElement(
|
|
@@ -3772,7 +3772,7 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3772
3772
|
{
|
|
3773
3773
|
...D,
|
|
3774
3774
|
"aria-label": r,
|
|
3775
|
-
"data-open":
|
|
3775
|
+
"data-open": u ? "" : void 0,
|
|
3776
3776
|
"data-focus-inside": h ? "" : void 0,
|
|
3777
3777
|
ref: Yt([A.setReference, _.ref, c]),
|
|
3778
3778
|
...M(
|
|
@@ -3786,14 +3786,14 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3786
3786
|
if (!w)
|
|
3787
3787
|
return;
|
|
3788
3788
|
function U() {
|
|
3789
|
-
|
|
3789
|
+
m(!1), n == null || n(!1);
|
|
3790
3790
|
}
|
|
3791
3791
|
return w.events.on("click", U), () => {
|
|
3792
3792
|
w.events.off("click", U);
|
|
3793
3793
|
};
|
|
3794
3794
|
}, [w, n]), $(() => {
|
|
3795
|
-
|
|
3796
|
-
}, [w,
|
|
3795
|
+
u && w && w.events.emit("menuopen", { nodeId: x });
|
|
3796
|
+
}, [w, u, x]), /* @__PURE__ */ k(Xn, { id: x, children: [
|
|
3797
3797
|
q,
|
|
3798
3798
|
/* @__PURE__ */ s(
|
|
3799
3799
|
Dt.Provider,
|
|
@@ -3803,9 +3803,9 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3803
3803
|
setActiveIndex: p,
|
|
3804
3804
|
getItemProps: z,
|
|
3805
3805
|
setHasFocusInside: g,
|
|
3806
|
-
isOpen:
|
|
3806
|
+
isOpen: u
|
|
3807
3807
|
},
|
|
3808
|
-
children: /* @__PURE__ */ s(Zn, { elementsRef: b, labelsRef: y, children:
|
|
3808
|
+
children: /* @__PURE__ */ s(Zn, { elementsRef: b, labelsRef: y, children: u && /* @__PURE__ */ s(la, { children: /* @__PURE__ */ s(
|
|
3809
3809
|
ca,
|
|
3810
3810
|
{
|
|
3811
3811
|
context: C,
|
|
@@ -3831,6 +3831,89 @@ const Pe = "panel", qe = "messagebox", zs = ({
|
|
|
3831
3831
|
), ht = sa((e, t) => /* @__PURE__ */ s(Jn, { children: /* @__PURE__ */ s(Ua, { ...e, ref: t }) }));
|
|
3832
3832
|
ht.displayName = "Menu";
|
|
3833
3833
|
Ua.displayName = "MenuComponent";
|
|
3834
|
+
const Ds = ({
|
|
3835
|
+
children: e,
|
|
3836
|
+
fill: t,
|
|
3837
|
+
viewBox: r,
|
|
3838
|
+
className: a,
|
|
3839
|
+
defaultViewBox: n,
|
|
3840
|
+
size: o,
|
|
3841
|
+
title: i,
|
|
3842
|
+
semantic: l = !1,
|
|
3843
|
+
...c
|
|
3844
|
+
}) => {
|
|
3845
|
+
const u = d(o, a);
|
|
3846
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
3847
|
+
/* @__PURE__ */ s(
|
|
3848
|
+
"svg",
|
|
3849
|
+
{
|
|
3850
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3851
|
+
className: u,
|
|
3852
|
+
viewBox: r || n,
|
|
3853
|
+
fill: t || "currentColor",
|
|
3854
|
+
role: "img",
|
|
3855
|
+
"aria-hidden": !l,
|
|
3856
|
+
focusable: !1,
|
|
3857
|
+
...c,
|
|
3858
|
+
children: e
|
|
3859
|
+
}
|
|
3860
|
+
),
|
|
3861
|
+
i && l && /* @__PURE__ */ s("span", { className: "sr-only", children: i })
|
|
3862
|
+
] });
|
|
3863
|
+
};
|
|
3864
|
+
/*!
|
|
3865
|
+
@versini/ui-svgicon v4.0.7
|
|
3866
|
+
© 2025 gizmette.com
|
|
3867
|
+
*/
|
|
3868
|
+
try {
|
|
3869
|
+
window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
|
|
3870
|
+
version: "4.0.7",
|
|
3871
|
+
buildTime: "01/20/2025 01:49 PM EST",
|
|
3872
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
3873
|
+
license: "MIT"
|
|
3874
|
+
});
|
|
3875
|
+
} catch {
|
|
3876
|
+
}
|
|
3877
|
+
const Hs = ({
|
|
3878
|
+
className: e,
|
|
3879
|
+
viewBox: t,
|
|
3880
|
+
title: r,
|
|
3881
|
+
monotone: a,
|
|
3882
|
+
...n
|
|
3883
|
+
}) => /* @__PURE__ */ k(
|
|
3884
|
+
Ds,
|
|
3885
|
+
{
|
|
3886
|
+
defaultViewBox: "0 0 448 512",
|
|
3887
|
+
size: "size-5",
|
|
3888
|
+
viewBox: t,
|
|
3889
|
+
className: e,
|
|
3890
|
+
title: r || "Copied",
|
|
3891
|
+
...n,
|
|
3892
|
+
children: [
|
|
3893
|
+
/* @__PURE__ */ s(
|
|
3894
|
+
"path",
|
|
3895
|
+
{
|
|
3896
|
+
d: "M0 96v320c0 35.3 28.7 64 64 64h320c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96m104 160c0-6.1 2.3-12.3 7-17 9.4-9.4 24.6-9.4 33.9 0l47 47 111-111c4.7-4.7 10.8-7 17-7s12.3 2.3 17 7c2.3 2.3 4.1 5 5.3 7.9.6 1.5 1 2.9 1.3 4.4.2 1.1.3 2.2.3 2.2.1 1.2.1 1.2.1 2.5-.1 1.5-.1 1.9-.1 2.3-.1.7-.2 1.5-.3 2.2-.3 1.5-.7 3-1.3 4.4-1.2 2.9-2.9 5.6-5.3 7.9l-128 128c-4.7 4.7-10.8 7-17 7s-12.3-2.3-17-7l-64-64c-4.7-4.7-7-10.8-7-17z",
|
|
3897
|
+
opacity: ".4"
|
|
3898
|
+
}
|
|
3899
|
+
),
|
|
3900
|
+
/* @__PURE__ */ s("path", { 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" })
|
|
3901
|
+
]
|
|
3902
|
+
}
|
|
3903
|
+
);
|
|
3904
|
+
/*!
|
|
3905
|
+
@versini/ui-icons v4.6.1
|
|
3906
|
+
© 2025 gizmette.com
|
|
3907
|
+
*/
|
|
3908
|
+
try {
|
|
3909
|
+
window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
|
|
3910
|
+
version: "4.6.1",
|
|
3911
|
+
buildTime: "01/21/2025 01:33 PM EST",
|
|
3912
|
+
homepage: "https://github.com/aversini/ui-components",
|
|
3913
|
+
license: "MIT"
|
|
3914
|
+
});
|
|
3915
|
+
} catch {
|
|
3916
|
+
}
|
|
3834
3917
|
const ue = G.forwardRef(
|
|
3835
3918
|
({
|
|
3836
3919
|
label: e,
|
|
@@ -3842,14 +3925,14 @@ const ue = G.forwardRef(
|
|
|
3842
3925
|
selected: i = !1,
|
|
3843
3926
|
...l
|
|
3844
3927
|
}, c) => {
|
|
3845
|
-
let
|
|
3846
|
-
const
|
|
3928
|
+
let u = "";
|
|
3929
|
+
const m = G.useContext(Dt), h = pa({ label: t ? null : e }), g = ga(), f = Yt([h.ref, c]);
|
|
3847
3930
|
if (a && n)
|
|
3848
3931
|
return /* @__PURE__ */ s(
|
|
3849
3932
|
"div",
|
|
3850
3933
|
{
|
|
3851
3934
|
role: "menuitem",
|
|
3852
|
-
...
|
|
3935
|
+
...m.getItemProps({
|
|
3853
3936
|
onClick(b) {
|
|
3854
3937
|
var y;
|
|
3855
3938
|
o || ((y = l.onClick) == null || y.call(l, b), g == null || g.events.emit("click"));
|
|
@@ -3858,16 +3941,15 @@ const ue = G.forwardRef(
|
|
|
3858
3941
|
children: n
|
|
3859
3942
|
}
|
|
3860
3943
|
);
|
|
3861
|
-
r && (
|
|
3944
|
+
r && (u = "pl-2");
|
|
3862
3945
|
const p = d(
|
|
3946
|
+
"items-center flex-row",
|
|
3863
3947
|
"m-0 first:mt-0 mt-2 sm:mt-1 px-2 py-1 flex w-full rounded-md border border-transparent text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium",
|
|
3864
3948
|
{
|
|
3865
|
-
"bg-
|
|
3866
|
-
"bg-none": !t && !i,
|
|
3867
|
-
"focus:text-copy-dark": i
|
|
3949
|
+
"bg-none": !t && !i
|
|
3868
3950
|
}
|
|
3869
3951
|
);
|
|
3870
|
-
return /* @__PURE__ */
|
|
3952
|
+
return /* @__PURE__ */ k(
|
|
3871
3953
|
"button",
|
|
3872
3954
|
{
|
|
3873
3955
|
...l,
|
|
@@ -3876,26 +3958,27 @@ const ue = G.forwardRef(
|
|
|
3876
3958
|
className: p,
|
|
3877
3959
|
tabIndex: 0,
|
|
3878
3960
|
disabled: t,
|
|
3879
|
-
...
|
|
3961
|
+
...m.getItemProps({
|
|
3880
3962
|
onClick(b) {
|
|
3881
3963
|
var y;
|
|
3882
3964
|
o || ((y = l.onClick) == null || y.call(l, b), g == null || g.events.emit("click"));
|
|
3883
3965
|
},
|
|
3884
3966
|
onFocus(b) {
|
|
3885
3967
|
var y;
|
|
3886
|
-
(y = l.onFocus) == null || y.call(l, b),
|
|
3968
|
+
(y = l.onFocus) == null || y.call(l, b), m.setHasFocusInside(!0);
|
|
3887
3969
|
}
|
|
3888
3970
|
}),
|
|
3889
3971
|
children: [
|
|
3972
|
+
i && /* @__PURE__ */ s(Hs, { className: "mr-2", size: "size-4" }),
|
|
3890
3973
|
r,
|
|
3891
|
-
e && /* @__PURE__ */ s("span", { className:
|
|
3974
|
+
e && /* @__PURE__ */ s("span", { className: u, children: e })
|
|
3892
3975
|
]
|
|
3893
3976
|
}
|
|
3894
3977
|
);
|
|
3895
3978
|
}
|
|
3896
3979
|
);
|
|
3897
3980
|
ue.displayName = "MenuItem";
|
|
3898
|
-
const
|
|
3981
|
+
const Us = ({ className: e, ...t }) => {
|
|
3899
3982
|
const r = d(e, "my-1 border-t border-border-medium");
|
|
3900
3983
|
return /* @__PURE__ */ s("div", { className: r, ...t });
|
|
3901
3984
|
}, Fa = ({
|
|
@@ -3909,24 +3992,24 @@ const Ds = ({ className: e, ...t }) => {
|
|
|
3909
3992
|
return /* @__PURE__ */ s("div", { className: r, ...t });
|
|
3910
3993
|
};
|
|
3911
3994
|
/*!
|
|
3912
|
-
@versini/ui-menu v3.
|
|
3995
|
+
@versini/ui-menu v3.3.0
|
|
3913
3996
|
© 2025 gizmette.com
|
|
3914
3997
|
*/
|
|
3915
3998
|
try {
|
|
3916
3999
|
window.__VERSINI_UI_MENU__ || (window.__VERSINI_UI_MENU__ = {
|
|
3917
|
-
version: "3.
|
|
3918
|
-
buildTime: "02/
|
|
4000
|
+
version: "3.3.0",
|
|
4001
|
+
buildTime: "02/18/2025 11:57 AM EST",
|
|
3919
4002
|
homepage: "https://github.com/aversini/ui-components",
|
|
3920
4003
|
license: "MIT"
|
|
3921
4004
|
});
|
|
3922
4005
|
} catch {
|
|
3923
4006
|
}
|
|
3924
|
-
const
|
|
4007
|
+
const Fs = (e) => {
|
|
3925
4008
|
for (let t = 0; t < e.length; t++)
|
|
3926
4009
|
if (e[t].enabled)
|
|
3927
4010
|
return !0;
|
|
3928
4011
|
return !1;
|
|
3929
|
-
},
|
|
4012
|
+
}, Ws = ({
|
|
3930
4013
|
className: e,
|
|
3931
4014
|
defaultPlacement: t = "top-start"
|
|
3932
4015
|
}) => {
|
|
@@ -3937,8 +4020,8 @@ const Hs = (e) => {
|
|
|
3937
4020
|
} = Fe({
|
|
3938
4021
|
keys: [o == null ? void 0 : o.username],
|
|
3939
4022
|
getAccessToken: n
|
|
3940
|
-
}),
|
|
3941
|
-
|
|
4023
|
+
}), u = (m, h, g) => {
|
|
4024
|
+
m.preventDefault(), g && r({
|
|
3942
4025
|
type: Ae,
|
|
3943
4026
|
payload: {
|
|
3944
4027
|
privateChat: !0
|
|
@@ -3950,13 +4033,13 @@ const Hs = (e) => {
|
|
|
3950
4033
|
}
|
|
3951
4034
|
});
|
|
3952
4035
|
};
|
|
3953
|
-
return l || c ? null : i && i.tags &&
|
|
4036
|
+
return l || c ? null : i && i.tags && Fs(i.tags) && /* @__PURE__ */ s(
|
|
3954
4037
|
ke,
|
|
3955
4038
|
{
|
|
3956
4039
|
label: "Custom Prompts",
|
|
3957
4040
|
mode: "light",
|
|
3958
4041
|
className: e,
|
|
3959
|
-
trigger: /* @__PURE__ */
|
|
4042
|
+
trigger: /* @__PURE__ */ k(
|
|
3960
4043
|
ht,
|
|
3961
4044
|
{
|
|
3962
4045
|
mode: "dark",
|
|
@@ -3965,34 +4048,34 @@ const Hs = (e) => {
|
|
|
3965
4048
|
defaultPlacement: t,
|
|
3966
4049
|
children: [
|
|
3967
4050
|
/* @__PURE__ */ s(Fa, { children: "Prompts" }),
|
|
3968
|
-
i && i.tags && i.tags.map((
|
|
4051
|
+
i && i.tags && i.tags.map((m) => m.enabled && m.label && m.content && /* @__PURE__ */ s(
|
|
3969
4052
|
ue,
|
|
3970
4053
|
{
|
|
3971
|
-
label:
|
|
3972
|
-
onClick: (h) =>
|
|
4054
|
+
label: m.label,
|
|
4055
|
+
onClick: (h) => u(
|
|
3973
4056
|
h,
|
|
3974
|
-
|
|
3975
|
-
|
|
4057
|
+
m.content,
|
|
4058
|
+
m == null ? void 0 : m.privateChat
|
|
3976
4059
|
)
|
|
3977
4060
|
},
|
|
3978
|
-
`prompt-button-${
|
|
4061
|
+
`prompt-button-${m.slot}`
|
|
3979
4062
|
))
|
|
3980
4063
|
]
|
|
3981
4064
|
}
|
|
3982
4065
|
)
|
|
3983
4066
|
}
|
|
3984
4067
|
);
|
|
3985
|
-
},
|
|
4068
|
+
}, Gs = ({
|
|
3986
4069
|
className: e
|
|
3987
4070
|
}) => {
|
|
3988
4071
|
const { user: t, getAccessToken: r } = Q(), {
|
|
3989
4072
|
state: { messages: a, usage: n, provider: o, id: i, privateChat: l }
|
|
3990
|
-
} = V(ee), [c,
|
|
4073
|
+
} = V(ee), [c, u] = L(!1), m = async (h) => {
|
|
3991
4074
|
h.preventDefault();
|
|
3992
4075
|
try {
|
|
3993
4076
|
i && a && o && await Ce({
|
|
3994
4077
|
accessToken: await r(),
|
|
3995
|
-
type:
|
|
4078
|
+
type: Ie.SAVE_CHAT,
|
|
3996
4079
|
params: {
|
|
3997
4080
|
userId: (t == null ? void 0 : t.username) || "",
|
|
3998
4081
|
id: i,
|
|
@@ -4005,7 +4088,7 @@ const Hs = (e) => {
|
|
|
4005
4088
|
}
|
|
4006
4089
|
};
|
|
4007
4090
|
return $(() => {
|
|
4008
|
-
l && (a == null ? void 0 : a.length) > 0 ?
|
|
4091
|
+
l && (a == null ? void 0 : a.length) > 0 ? u(!0) : u(!1);
|
|
4009
4092
|
}, [l, a]), c && /* @__PURE__ */ s(
|
|
4010
4093
|
ke,
|
|
4011
4094
|
{
|
|
@@ -4020,13 +4103,13 @@ const Hs = (e) => {
|
|
|
4020
4103
|
mode: "dark",
|
|
4021
4104
|
focusMode: "light",
|
|
4022
4105
|
label: "Save Private Chat",
|
|
4023
|
-
onClick:
|
|
4106
|
+
onClick: m,
|
|
4024
4107
|
children: /* @__PURE__ */ s(ao, { size: me, monotone: !0 })
|
|
4025
4108
|
}
|
|
4026
4109
|
)
|
|
4027
4110
|
}
|
|
4028
4111
|
);
|
|
4029
|
-
},
|
|
4112
|
+
}, js = ({
|
|
4030
4113
|
show: e,
|
|
4031
4114
|
bottom: t
|
|
4032
4115
|
}) => e ? /* @__PURE__ */ s(
|
|
@@ -4060,7 +4143,7 @@ const Hs = (e) => {
|
|
|
4060
4143
|
}
|
|
4061
4144
|
)
|
|
4062
4145
|
}
|
|
4063
|
-
) : null,
|
|
4146
|
+
) : null, Ys = ({
|
|
4064
4147
|
className: e
|
|
4065
4148
|
}) => {
|
|
4066
4149
|
const {
|
|
@@ -4088,7 +4171,7 @@ const Hs = (e) => {
|
|
|
4088
4171
|
)
|
|
4089
4172
|
}
|
|
4090
4173
|
);
|
|
4091
|
-
},
|
|
4174
|
+
}, Ks = ({
|
|
4092
4175
|
className: e
|
|
4093
4176
|
}) => {
|
|
4094
4177
|
const {
|
|
@@ -4102,16 +4185,16 @@ const Hs = (e) => {
|
|
|
4102
4185
|
} = Fe({
|
|
4103
4186
|
keys: [n == null ? void 0 : n.username],
|
|
4104
4187
|
getAccessToken: a
|
|
4105
|
-
}),
|
|
4188
|
+
}), u = async (m) => {
|
|
4106
4189
|
try {
|
|
4107
4190
|
await aa({
|
|
4108
|
-
provider:
|
|
4191
|
+
provider: m,
|
|
4109
4192
|
accessToken: await a(),
|
|
4110
4193
|
username: (n == null ? void 0 : n.username) || ""
|
|
4111
4194
|
}), c({ ...o }), r({
|
|
4112
4195
|
type: Ae,
|
|
4113
4196
|
payload: {
|
|
4114
|
-
provider:
|
|
4197
|
+
provider: m
|
|
4115
4198
|
}
|
|
4116
4199
|
});
|
|
4117
4200
|
} catch {
|
|
@@ -4124,7 +4207,7 @@ const Hs = (e) => {
|
|
|
4124
4207
|
mode: "light",
|
|
4125
4208
|
placement: "right",
|
|
4126
4209
|
className: e,
|
|
4127
|
-
trigger: /* @__PURE__ */
|
|
4210
|
+
trigger: /* @__PURE__ */ k(
|
|
4128
4211
|
ht,
|
|
4129
4212
|
{
|
|
4130
4213
|
mode: "dark",
|
|
@@ -4139,7 +4222,7 @@ const Hs = (e) => {
|
|
|
4139
4222
|
selected: t === bt,
|
|
4140
4223
|
label: "Anthropic",
|
|
4141
4224
|
icon: /* @__PURE__ */ s(Rt, {}),
|
|
4142
|
-
onClick: () =>
|
|
4225
|
+
onClick: () => u(bt)
|
|
4143
4226
|
}
|
|
4144
4227
|
),
|
|
4145
4228
|
/* @__PURE__ */ s(
|
|
@@ -4148,7 +4231,7 @@ const Hs = (e) => {
|
|
|
4148
4231
|
selected: t === ur,
|
|
4149
4232
|
label: "OpenAI",
|
|
4150
4233
|
icon: /* @__PURE__ */ s($t, {}),
|
|
4151
|
-
onClick: () =>
|
|
4234
|
+
onClick: () => u(ur)
|
|
4152
4235
|
}
|
|
4153
4236
|
)
|
|
4154
4237
|
]
|
|
@@ -4156,35 +4239,35 @@ const Hs = (e) => {
|
|
|
4156
4239
|
)
|
|
4157
4240
|
}
|
|
4158
4241
|
);
|
|
4159
|
-
},
|
|
4242
|
+
}, qs = () => d(
|
|
4160
4243
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
|
4161
|
-
), Ur = () => d("bg-surface-darker"),
|
|
4244
|
+
), Ur = () => d("bg-surface-darker"), Xs = () => d("text-copy-lighter caret-copy-light"), Zs = () => d(
|
|
4162
4245
|
"has-[.av-prompt-editable:focus]:outline",
|
|
4163
4246
|
"has-[.av-prompt-editable:focus]:outline-2",
|
|
4164
4247
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
|
4165
4248
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
|
4166
|
-
),
|
|
4249
|
+
), Js = () => d(
|
|
4167
4250
|
"peer",
|
|
4168
4251
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
|
4169
4252
|
"h-6 pr-2 pl-4"
|
|
4170
|
-
),
|
|
4253
|
+
), Qs = ({ className: e }) => {
|
|
4171
4254
|
const t = d(
|
|
4172
4255
|
mn,
|
|
4173
|
-
Ys(),
|
|
4174
|
-
Ur(),
|
|
4175
|
-
Ks(),
|
|
4176
4256
|
qs(),
|
|
4257
|
+
Ur(),
|
|
4258
|
+
Xs(),
|
|
4259
|
+
Zs(),
|
|
4177
4260
|
e
|
|
4178
4261
|
), r = d(
|
|
4179
4262
|
hn,
|
|
4180
|
-
|
|
4263
|
+
Js(),
|
|
4181
4264
|
Ur()
|
|
4182
4265
|
);
|
|
4183
4266
|
return {
|
|
4184
4267
|
wrapper: t,
|
|
4185
4268
|
textArea: r
|
|
4186
4269
|
};
|
|
4187
|
-
}, Fr = 24,
|
|
4270
|
+
}, Fr = 24, el = ({
|
|
4188
4271
|
className: e,
|
|
4189
4272
|
label: t,
|
|
4190
4273
|
value: r,
|
|
@@ -4194,11 +4277,11 @@ const Hs = (e) => {
|
|
|
4194
4277
|
ref: i,
|
|
4195
4278
|
...l
|
|
4196
4279
|
}) => {
|
|
4197
|
-
const
|
|
4280
|
+
const m = Fr * 2, h = 5 * Fr, {
|
|
4198
4281
|
state: { usage: g, messages: f }
|
|
4199
|
-
} = V(ee), { state: p } = V(st), b = T(null), y = T(null), v = To([i, y]), w = De(),
|
|
4282
|
+
} = V(ee), { state: p } = V(st), b = T(null), y = T(null), v = To([i, y]), w = De(), x = Qs({
|
|
4200
4283
|
className: e
|
|
4201
|
-
}), [_, R] =
|
|
4284
|
+
}), [_, R] = Io({
|
|
4202
4285
|
value: r,
|
|
4203
4286
|
initialControlledDelay: 20,
|
|
4204
4287
|
defaultValue: a,
|
|
@@ -4220,23 +4303,23 @@ const Hs = (e) => {
|
|
|
4220
4303
|
}
|
|
4221
4304
|
y.current.style.height = `${N}px`, y.current.style.overflowY = "hidden";
|
|
4222
4305
|
}, [h]), C = (N) => {
|
|
4223
|
-
R(""), y.current && (y.current.style.height = `${
|
|
4224
|
-
},
|
|
4306
|
+
R(""), y.current && (y.current.style.height = `${m}px`), o(N, _);
|
|
4307
|
+
}, I = (N) => {
|
|
4225
4308
|
R(N.target.value), A();
|
|
4226
4309
|
};
|
|
4227
4310
|
return $(() => {
|
|
4228
|
-
g === 0 && (f == null ? void 0 : f.length) === 0 && y.current && (y.current.style.height = `${
|
|
4229
|
-
}, [g, f,
|
|
4311
|
+
g === 0 && (f == null ? void 0 : f.length) === 0 && y.current && (y.current.style.height = `${m}px`);
|
|
4312
|
+
}, [g, f, m]), $(() => {
|
|
4230
4313
|
p.lastTriggeredTimestamp && setTimeout(() => {
|
|
4231
4314
|
A();
|
|
4232
4315
|
}, 100);
|
|
4233
4316
|
}, [p.lastTriggeredTimestamp, A]), /* @__PURE__ */ s(
|
|
4234
4317
|
"div",
|
|
4235
4318
|
{
|
|
4236
|
-
className:
|
|
4319
|
+
className: x.wrapper,
|
|
4237
4320
|
ref: b,
|
|
4238
4321
|
...l,
|
|
4239
|
-
children: /* @__PURE__ */
|
|
4322
|
+
children: /* @__PURE__ */ k("form", { onSubmit: C, children: [
|
|
4240
4323
|
/* @__PURE__ */ s("div", { id: w, className: "sr-only", children: t }),
|
|
4241
4324
|
/* @__PURE__ */ s("div", { className: "relative", children: /* @__PURE__ */ s(
|
|
4242
4325
|
"textarea",
|
|
@@ -4246,35 +4329,35 @@ const Hs = (e) => {
|
|
|
4246
4329
|
ref: v,
|
|
4247
4330
|
placeholder: "Type your question here.",
|
|
4248
4331
|
translate: "no",
|
|
4249
|
-
onChange:
|
|
4332
|
+
onChange: I,
|
|
4250
4333
|
value: _,
|
|
4251
4334
|
onKeyDown: bo([["mod+Enter", C]]),
|
|
4252
|
-
className:
|
|
4335
|
+
className: x.textArea,
|
|
4253
4336
|
"aria-labelledby": w
|
|
4254
4337
|
}
|
|
4255
4338
|
) }),
|
|
4256
|
-
/* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */ s(
|
|
4339
|
+
/* @__PURE__ */ k("div", { className: "p-2 flex items-center", children: [
|
|
4340
|
+
/* @__PURE__ */ s(Ys, { className: "order-5 ml-auto" }),
|
|
4258
4341
|
/* @__PURE__ */ s(cs, { className: "order-1 mr-4 sm:mr-2" }),
|
|
4259
|
-
/* @__PURE__ */ s(
|
|
4342
|
+
/* @__PURE__ */ s(Ws, { className: "order-2 mr-4 sm:mr-2" }),
|
|
4260
4343
|
/* @__PURE__ */ s(Vs, { className: "order-3 mr-4 sm:mr-2" }),
|
|
4261
|
-
/* @__PURE__ */ s(
|
|
4344
|
+
/* @__PURE__ */ s(Gs, { className: "order-4" })
|
|
4262
4345
|
] })
|
|
4263
4346
|
] })
|
|
4264
4347
|
}
|
|
4265
4348
|
);
|
|
4266
|
-
},
|
|
4349
|
+
}, tl = 500, rl = () => {
|
|
4267
4350
|
const {
|
|
4268
4351
|
state: { messages: e, provider: t, id: r, usage: a, privateChat: n, streaming: o },
|
|
4269
4352
|
dispatch: i
|
|
4270
|
-
} = V(ee), { state: l, dispatch: c } = V(st), [
|
|
4353
|
+
} = V(ee), { state: l, dispatch: c } = V(st), [u, m] = L(""), { getAccessToken: h, user: g } = Q(), f = T(!1), p = T(null), b = T(
|
|
4271
4354
|
null
|
|
4272
4355
|
);
|
|
4273
4356
|
ko([
|
|
4274
4357
|
[
|
|
4275
4358
|
"mod+K",
|
|
4276
4359
|
() => {
|
|
4277
|
-
p && p.current && !
|
|
4360
|
+
p && p.current && !Et() && p.current.focus();
|
|
4278
4361
|
}
|
|
4279
4362
|
]
|
|
4280
4363
|
]);
|
|
@@ -4282,7 +4365,7 @@ const Hs = (e) => {
|
|
|
4282
4365
|
v.preventDefault(), i({
|
|
4283
4366
|
type: Oe,
|
|
4284
4367
|
payload: {
|
|
4285
|
-
content:
|
|
4368
|
+
content: u,
|
|
4286
4369
|
role: Gt
|
|
4287
4370
|
}
|
|
4288
4371
|
});
|
|
@@ -4301,7 +4384,7 @@ const Hs = (e) => {
|
|
|
4301
4384
|
payload: !0
|
|
4302
4385
|
});
|
|
4303
4386
|
try {
|
|
4304
|
-
const
|
|
4387
|
+
const x = await pn({
|
|
4305
4388
|
accessToken: await h(),
|
|
4306
4389
|
name: "generate",
|
|
4307
4390
|
data: {
|
|
@@ -4313,7 +4396,7 @@ const Hs = (e) => {
|
|
|
4313
4396
|
private: n
|
|
4314
4397
|
}
|
|
4315
4398
|
});
|
|
4316
|
-
if (
|
|
4399
|
+
if (x && x.ok) {
|
|
4317
4400
|
i({
|
|
4318
4401
|
type: Mt,
|
|
4319
4402
|
payload: !1
|
|
@@ -4322,16 +4405,16 @@ const Hs = (e) => {
|
|
|
4322
4405
|
payload: !0
|
|
4323
4406
|
});
|
|
4324
4407
|
const _ = et();
|
|
4325
|
-
b.current =
|
|
4408
|
+
b.current = x.body.getReader();
|
|
4326
4409
|
const R = new TextDecoder();
|
|
4327
4410
|
for (; ; ) {
|
|
4328
4411
|
const { done: A, value: C } = await b.current.read();
|
|
4329
4412
|
if (A)
|
|
4330
4413
|
break;
|
|
4331
|
-
const
|
|
4414
|
+
const I = R.decode(C, { stream: !0 }), N = I.indexOf(mr), P = I.indexOf(hr);
|
|
4332
4415
|
if (P !== -1) {
|
|
4333
4416
|
const S = JSON.parse(
|
|
4334
|
-
|
|
4417
|
+
I.substring(P + hr.length)
|
|
4335
4418
|
);
|
|
4336
4419
|
i({
|
|
4337
4420
|
type: Oe,
|
|
@@ -4342,8 +4425,8 @@ const Hs = (e) => {
|
|
|
4342
4425
|
}
|
|
4343
4426
|
});
|
|
4344
4427
|
} else if (N !== -1) {
|
|
4345
|
-
const S =
|
|
4346
|
-
|
|
4428
|
+
const S = I.substring(0, N), B = JSON.parse(
|
|
4429
|
+
I.substring(N + mr.length)
|
|
4347
4430
|
);
|
|
4348
4431
|
i({
|
|
4349
4432
|
type: Oe,
|
|
@@ -4362,7 +4445,7 @@ const Hs = (e) => {
|
|
|
4362
4445
|
i({
|
|
4363
4446
|
type: Oe,
|
|
4364
4447
|
payload: {
|
|
4365
|
-
content:
|
|
4448
|
+
content: I,
|
|
4366
4449
|
role: ze,
|
|
4367
4450
|
messageId: _
|
|
4368
4451
|
}
|
|
@@ -4380,8 +4463,8 @@ const Hs = (e) => {
|
|
|
4380
4463
|
role: ge
|
|
4381
4464
|
}
|
|
4382
4465
|
});
|
|
4383
|
-
} catch (
|
|
4384
|
-
console.error(
|
|
4466
|
+
} catch (x) {
|
|
4467
|
+
console.error(x), i({
|
|
4385
4468
|
type: Bt,
|
|
4386
4469
|
payload: {
|
|
4387
4470
|
content: fr,
|
|
@@ -4394,9 +4477,9 @@ const Hs = (e) => {
|
|
|
4394
4477
|
}, [e]), $(() => {
|
|
4395
4478
|
if (l.prompt !== "") {
|
|
4396
4479
|
const v = l.prompt.endsWith(":") && !l.prompt.endsWith(": ") ? l.prompt + " " : l.prompt;
|
|
4397
|
-
v.indexOf(gr) !== -1 ? navigator.clipboard.readText().then((
|
|
4398
|
-
|
|
4399
|
-
}) :
|
|
4480
|
+
v.indexOf(gr) !== -1 ? navigator.clipboard.readText().then((x) => {
|
|
4481
|
+
m(v.replace(gr, x));
|
|
4482
|
+
}) : m(v), !Et() && p.current && p.current.focus(), c({
|
|
4400
4483
|
type: ta
|
|
4401
4484
|
});
|
|
4402
4485
|
}
|
|
@@ -4405,28 +4488,28 @@ const Hs = (e) => {
|
|
|
4405
4488
|
f.current = !0;
|
|
4406
4489
|
return;
|
|
4407
4490
|
}
|
|
4408
|
-
a === 0 && (e == null ? void 0 : e.length) === 0 && (
|
|
4491
|
+
a === 0 && (e == null ? void 0 : e.length) === 0 && (m(""), setTimeout(() => {
|
|
4409
4492
|
p.current && p.current.focus();
|
|
4410
|
-
},
|
|
4493
|
+
}, tl));
|
|
4411
4494
|
}, [a, e]), $(() => {
|
|
4412
4495
|
o === !1 && p.current && p.current.focus();
|
|
4413
4496
|
}, [o]), /* @__PURE__ */ s(K, { children: /* @__PURE__ */ s(
|
|
4414
|
-
|
|
4497
|
+
el,
|
|
4415
4498
|
{
|
|
4416
4499
|
label: yn,
|
|
4417
4500
|
onSubmit: y,
|
|
4418
4501
|
ref: p,
|
|
4419
|
-
value:
|
|
4420
|
-
onChange: (v) =>
|
|
4502
|
+
value: u,
|
|
4503
|
+
onChange: (v) => m(v.target.value)
|
|
4421
4504
|
}
|
|
4422
4505
|
) });
|
|
4423
|
-
}, Xe = "--sassy-bottom", Wr = 16, Gr = 76,
|
|
4506
|
+
}, Xe = "--sassy-bottom", Wr = 16, Gr = 76, al = ({ isComponent: e }) => {
|
|
4424
4507
|
const {
|
|
4425
4508
|
state: { loading: t, streaming: r, restoring: a, messages: n }
|
|
4426
4509
|
} = V(ee), {
|
|
4427
4510
|
state: { footerHeight: o, footerPosition: i },
|
|
4428
4511
|
dispatch: l
|
|
4429
|
-
} = V(Zt), { height: c } =
|
|
4512
|
+
} = V(Zt), { height: c } = Eo(), { height: u } = So(), [m, h] = ka();
|
|
4430
4513
|
return $(() => {
|
|
4431
4514
|
o !== h.height && l({
|
|
4432
4515
|
type: Ta,
|
|
@@ -4436,9 +4519,9 @@ const Hs = (e) => {
|
|
|
4436
4519
|
});
|
|
4437
4520
|
}, [h.height, o, l]), $(() => {
|
|
4438
4521
|
var p, b, y, v;
|
|
4439
|
-
if (!
|
|
4522
|
+
if (!m || !m.current)
|
|
4440
4523
|
return;
|
|
4441
|
-
const g = c -
|
|
4524
|
+
const g = c - u, f = (p = m == null ? void 0 : m.current) == null ? void 0 : p.style.getPropertyValue(Xe);
|
|
4442
4525
|
if (i === Lt && (t && !r || a)) {
|
|
4443
4526
|
const w = g > 0 && g < 100 ? Gr : Wr;
|
|
4444
4527
|
f !== `${w}px` && (l({
|
|
@@ -4447,7 +4530,7 @@ const Hs = (e) => {
|
|
|
4447
4530
|
footerPosition: Ve,
|
|
4448
4531
|
footerOffset: w
|
|
4449
4532
|
}
|
|
4450
|
-
}), (b =
|
|
4533
|
+
}), (b = m == null ? void 0 : m.current) == null || b.style.setProperty(Xe, `${w}px`));
|
|
4451
4534
|
}
|
|
4452
4535
|
if (i === Ve) {
|
|
4453
4536
|
const w = g > 0 && g < 100 ? Gr : Wr;
|
|
@@ -4457,7 +4540,7 @@ const Hs = (e) => {
|
|
|
4457
4540
|
footerPosition: Ve,
|
|
4458
4541
|
footerOffset: w
|
|
4459
4542
|
}
|
|
4460
|
-
}), (y =
|
|
4543
|
+
}), (y = m == null ? void 0 : m.current) == null || y.style.setProperty(Xe, `${w}px`));
|
|
4461
4544
|
}
|
|
4462
4545
|
if (!t && !r && n.length === 0 && c > 0 && h.height > 0) {
|
|
4463
4546
|
const w = `${c - h.height - (e ? 300 : 245)}`;
|
|
@@ -4467,13 +4550,13 @@ const Hs = (e) => {
|
|
|
4467
4550
|
footerPosition: Lt,
|
|
4468
4551
|
footerOffset: Number(w)
|
|
4469
4552
|
}
|
|
4470
|
-
}), (v =
|
|
4553
|
+
}), (v = m == null ? void 0 : m.current) == null || v.style.setProperty(
|
|
4471
4554
|
Xe,
|
|
4472
4555
|
`${w}px`
|
|
4473
4556
|
));
|
|
4474
4557
|
}
|
|
4475
4558
|
}, [
|
|
4476
|
-
|
|
4559
|
+
m,
|
|
4477
4560
|
t,
|
|
4478
4561
|
r,
|
|
4479
4562
|
a,
|
|
@@ -4482,12 +4565,12 @@ const Hs = (e) => {
|
|
|
4482
4565
|
c,
|
|
4483
4566
|
h.height,
|
|
4484
4567
|
i,
|
|
4485
|
-
|
|
4568
|
+
u,
|
|
4486
4569
|
l
|
|
4487
|
-
]), /* @__PURE__ */
|
|
4570
|
+
]), /* @__PURE__ */ k(
|
|
4488
4571
|
"footer",
|
|
4489
4572
|
{
|
|
4490
|
-
ref:
|
|
4573
|
+
ref: m,
|
|
4491
4574
|
className: d(
|
|
4492
4575
|
"px-2 sm:px-0 md:mx-auto md:max-w-4xl w-full",
|
|
4493
4576
|
"fixed left-1/2 transform -translate-x-1/2",
|
|
@@ -4496,22 +4579,22 @@ const Hs = (e) => {
|
|
|
4496
4579
|
yi
|
|
4497
4580
|
),
|
|
4498
4581
|
children: [
|
|
4499
|
-
/* @__PURE__ */ s(
|
|
4582
|
+
/* @__PURE__ */ s(rl, {}),
|
|
4500
4583
|
/* @__PURE__ */ s("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: bn })
|
|
4501
4584
|
]
|
|
4502
4585
|
}
|
|
4503
4586
|
);
|
|
4504
|
-
},
|
|
4587
|
+
}, nl = () => {
|
|
4505
4588
|
const e = De(), t = De(), { data: r, error: a, isLoading: n } = vn(), o = (r == null ? void 0 : r.version) || "", i = (r == null ? void 0 : r.models) || [];
|
|
4506
|
-
return /* @__PURE__ */
|
|
4589
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
4507
4590
|
/* @__PURE__ */ s("div", { className: "mb-4", children: /* @__PURE__ */ s(
|
|
4508
4591
|
le,
|
|
4509
4592
|
{
|
|
4510
4593
|
header: F.ABOUT.TITLE_CLIENT,
|
|
4511
4594
|
className: "prose-dark dark:prose-lighter",
|
|
4512
4595
|
children: Qe(e, {
|
|
4513
|
-
[F.ABOUT.VERSION]: "7.3.
|
|
4514
|
-
[F.ABOUT.BUILD_TIMESTAMP]: "02/
|
|
4596
|
+
[F.ABOUT.VERSION]: "7.3.1",
|
|
4597
|
+
[F.ABOUT.BUILD_TIMESTAMP]: "02/18/2025 12:25 PM EST"
|
|
4515
4598
|
})
|
|
4516
4599
|
}
|
|
4517
4600
|
) }),
|
|
@@ -4527,14 +4610,14 @@ const Hs = (e) => {
|
|
|
4527
4610
|
}
|
|
4528
4611
|
)
|
|
4529
4612
|
] });
|
|
4530
|
-
},
|
|
4613
|
+
}, ol = ({
|
|
4531
4614
|
open: e,
|
|
4532
4615
|
onOpenChange: t
|
|
4533
|
-
}) => /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title: kn, children: /* @__PURE__ */ s(
|
|
4616
|
+
}) => /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title: kn, children: /* @__PURE__ */ s(nl, {}) }), il = async (e, t, r, a, n, o) => {
|
|
4534
4617
|
try {
|
|
4535
4618
|
const i = await Ce({
|
|
4536
4619
|
accessToken: a,
|
|
4537
|
-
type:
|
|
4620
|
+
type: Ie.GET_CHAT,
|
|
4538
4621
|
params: {
|
|
4539
4622
|
id: e.id
|
|
4540
4623
|
}
|
|
@@ -4555,29 +4638,29 @@ const Hs = (e) => {
|
|
|
4555
4638
|
}), r(!1));
|
|
4556
4639
|
} catch {
|
|
4557
4640
|
}
|
|
4558
|
-
},
|
|
4641
|
+
}, sl = ({
|
|
4559
4642
|
filteredHistory: e,
|
|
4560
4643
|
dispatch: t,
|
|
4561
4644
|
onOpenChange: r,
|
|
4562
4645
|
mutate: a
|
|
4563
4646
|
}) => {
|
|
4564
|
-
var
|
|
4647
|
+
var x;
|
|
4565
4648
|
const { user: n, getAccessToken: o } = Q(), i = T(null), l = T({
|
|
4566
4649
|
id: 0,
|
|
4567
4650
|
timestamp: "",
|
|
4568
4651
|
message: ""
|
|
4569
|
-
}), [c,
|
|
4652
|
+
}), [c, u] = L(!1), [m, h] = L(
|
|
4570
4653
|
pr + yr
|
|
4571
4654
|
), { state: g, dispatch: f } = V(Xt), {
|
|
4572
4655
|
state: { provider: p }
|
|
4573
|
-
} = V(ee), [, b] =
|
|
4656
|
+
} = V(ee), [, b] = Ee({
|
|
4574
4657
|
key: Te + na,
|
|
4575
4658
|
initialValue: g.sortDirection
|
|
4576
4659
|
}), y = (_) => {
|
|
4577
4660
|
switch (g.sortDirection) {
|
|
4578
4661
|
case se.ASC:
|
|
4579
4662
|
b(se.DESC), f({
|
|
4580
|
-
type:
|
|
4663
|
+
type: It,
|
|
4581
4664
|
payload: {
|
|
4582
4665
|
sortedCell: _,
|
|
4583
4666
|
sortDirection: se.DESC
|
|
@@ -4586,7 +4669,7 @@ const Hs = (e) => {
|
|
|
4586
4669
|
break;
|
|
4587
4670
|
default:
|
|
4588
4671
|
b(se.ASC), f({
|
|
4589
|
-
type:
|
|
4672
|
+
type: It,
|
|
4590
4673
|
payload: {
|
|
4591
4674
|
sortedCell: _,
|
|
4592
4675
|
sortDirection: se.ASC
|
|
@@ -4599,7 +4682,7 @@ const Hs = (e) => {
|
|
|
4599
4682
|
try {
|
|
4600
4683
|
await Ce({
|
|
4601
4684
|
accessToken: await o(),
|
|
4602
|
-
type:
|
|
4685
|
+
type: Ie.DELETE_CHAT,
|
|
4603
4686
|
params: {
|
|
4604
4687
|
userId: (n == null ? void 0 : n.username) || "",
|
|
4605
4688
|
id: _.id
|
|
@@ -4616,12 +4699,12 @@ const Hs = (e) => {
|
|
|
4616
4699
|
rootMargin: "20px"
|
|
4617
4700
|
}, R = new IntersectionObserver(w, _);
|
|
4618
4701
|
i.current && R.observe(i.current);
|
|
4619
|
-
}), /* @__PURE__ */
|
|
4620
|
-
/* @__PURE__ */
|
|
4702
|
+
}), /* @__PURE__ */ k(K, { children: [
|
|
4703
|
+
/* @__PURE__ */ k(
|
|
4621
4704
|
nr,
|
|
4622
4705
|
{
|
|
4623
4706
|
showConfirmation: c,
|
|
4624
|
-
setShowConfirmation:
|
|
4707
|
+
setShowConfirmation: u,
|
|
4625
4708
|
action: v,
|
|
4626
4709
|
customStrings: {
|
|
4627
4710
|
confirmAction: "Delete",
|
|
@@ -4630,23 +4713,23 @@ const Hs = (e) => {
|
|
|
4630
4713
|
},
|
|
4631
4714
|
children: [
|
|
4632
4715
|
/* @__PURE__ */ s("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
|
|
4633
|
-
/* @__PURE__ */
|
|
4634
|
-
/* @__PURE__ */
|
|
4716
|
+
/* @__PURE__ */ k("ul", { className: "m-0", children: [
|
|
4717
|
+
/* @__PURE__ */ k("li", { children: [
|
|
4635
4718
|
"Timestamp:",
|
|
4636
4719
|
" ",
|
|
4637
4720
|
/* @__PURE__ */ s("span", { className: "text-lg", children: l.current && l.current.timestamp })
|
|
4638
4721
|
] }),
|
|
4639
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ k("li", { children: [
|
|
4640
4723
|
"First message:",
|
|
4641
4724
|
" ",
|
|
4642
|
-
/* @__PURE__ */ s("span", { className: "text-lg", children: (
|
|
4725
|
+
/* @__PURE__ */ s("span", { className: "text-lg", children: (x = l.current) == null ? void 0 : x.message })
|
|
4643
4726
|
] })
|
|
4644
4727
|
] })
|
|
4645
4728
|
]
|
|
4646
4729
|
}
|
|
4647
4730
|
),
|
|
4648
|
-
/* @__PURE__ */
|
|
4649
|
-
/* @__PURE__ */ s(oi, { children: /* @__PURE__ */
|
|
4731
|
+
/* @__PURE__ */ k(ni, { stickyHeader: !0, stickyFooter: !0, compact: !0, children: [
|
|
4732
|
+
/* @__PURE__ */ s(oi, { children: /* @__PURE__ */ k(kt, { children: [
|
|
4650
4733
|
/* @__PURE__ */ s(ae, { className: "sr-only", children: "Row" }),
|
|
4651
4734
|
/* @__PURE__ */ s(
|
|
4652
4735
|
li,
|
|
@@ -4666,12 +4749,12 @@ const Hs = (e) => {
|
|
|
4666
4749
|
/* @__PURE__ */ s(ae, { className: "text-xs sm:text-sm", children: "Provider" }),
|
|
4667
4750
|
/* @__PURE__ */ s(ae, { className: "text-xs sm:text-sm text-right", children: "Actions" })
|
|
4668
4751
|
] }) }),
|
|
4669
|
-
/* @__PURE__ */ s(si, { children: e.slice(0,
|
|
4670
|
-
var C,
|
|
4752
|
+
/* @__PURE__ */ s(si, { children: e.slice(0, m).map((_, R) => {
|
|
4753
|
+
var C, I;
|
|
4671
4754
|
const A = _.summary || (_.messages.length > 0 ? (C = _.messages[0]) == null ? void 0 : C.content : "");
|
|
4672
|
-
return ((
|
|
4673
|
-
R ===
|
|
4674
|
-
/* @__PURE__ */
|
|
4755
|
+
return ((I = _ == null ? void 0 : _.messages) == null ? void 0 : I.length) > 0 ? /* @__PURE__ */ k(Dn, { children: [
|
|
4756
|
+
R === m - yr && /* @__PURE__ */ s("tr", { ref: i }),
|
|
4757
|
+
/* @__PURE__ */ k(kt, { children: [
|
|
4675
4758
|
/* @__PURE__ */ s(ae, { children: R + 1 }),
|
|
4676
4759
|
/* @__PURE__ */ s(
|
|
4677
4760
|
ae,
|
|
@@ -4692,7 +4775,7 @@ const Hs = (e) => {
|
|
|
4692
4775
|
children: A
|
|
4693
4776
|
}
|
|
4694
4777
|
),
|
|
4695
|
-
/* @__PURE__ */
|
|
4778
|
+
/* @__PURE__ */ k(
|
|
4696
4779
|
ae,
|
|
4697
4780
|
{
|
|
4698
4781
|
component: "th",
|
|
@@ -4705,7 +4788,7 @@ const Hs = (e) => {
|
|
|
4705
4788
|
]
|
|
4706
4789
|
}
|
|
4707
4790
|
),
|
|
4708
|
-
/* @__PURE__ */
|
|
4791
|
+
/* @__PURE__ */ k(ae, { align: "right", children: [
|
|
4709
4792
|
/* @__PURE__ */ s(
|
|
4710
4793
|
ne,
|
|
4711
4794
|
{
|
|
@@ -4715,7 +4798,7 @@ const Hs = (e) => {
|
|
|
4715
4798
|
label: "Restore chat",
|
|
4716
4799
|
onClick: async () => {
|
|
4717
4800
|
const N = await o();
|
|
4718
|
-
|
|
4801
|
+
il(
|
|
4719
4802
|
_,
|
|
4720
4803
|
t,
|
|
4721
4804
|
r,
|
|
@@ -4739,7 +4822,7 @@ const Hs = (e) => {
|
|
|
4739
4822
|
id: _.id,
|
|
4740
4823
|
timestamp: _.timestamp,
|
|
4741
4824
|
message: _.messages.length > 0 ? (N = _.messages[0]) == null ? void 0 : N.content : ""
|
|
4742
|
-
},
|
|
4825
|
+
}, u(!c);
|
|
4743
4826
|
},
|
|
4744
4827
|
children: /* @__PURE__ */ s("div", { className: "text-red-400", children: /* @__PURE__ */ s(ro, { size: "size-3", monotone: !0 }) })
|
|
4745
4828
|
}
|
|
@@ -4754,14 +4837,14 @@ const Hs = (e) => {
|
|
|
4754
4837
|
) }) }) }) })
|
|
4755
4838
|
] })
|
|
4756
4839
|
] });
|
|
4757
|
-
},
|
|
4840
|
+
}, ll = ({
|
|
4758
4841
|
open: e,
|
|
4759
4842
|
onOpenChange: t
|
|
4760
4843
|
}) => {
|
|
4761
4844
|
const { getAccessToken: r, user: a } = Q(), {
|
|
4762
4845
|
state: { lastTriggeredTimestamp: n },
|
|
4763
4846
|
dispatch: o
|
|
4764
|
-
} = V(ee), { state: i, dispatch: l } = V(Xt), { data: c, mutate:
|
|
4847
|
+
} = V(ee), { state: i, dispatch: l } = V(Xt), { data: c, mutate: u } = xn({
|
|
4765
4848
|
keys: [
|
|
4766
4849
|
a == null ? void 0 : a.username,
|
|
4767
4850
|
i.searchString,
|
|
@@ -4769,7 +4852,7 @@ const Hs = (e) => {
|
|
|
4769
4852
|
n || 0
|
|
4770
4853
|
],
|
|
4771
4854
|
getAccessToken: r
|
|
4772
|
-
}),
|
|
4855
|
+
}), m = T(null), [, h] = Ee({
|
|
4773
4856
|
key: Te + oa,
|
|
4774
4857
|
initialValue: i.searchString
|
|
4775
4858
|
}), [g, f] = L([]);
|
|
@@ -4784,7 +4867,7 @@ const Hs = (e) => {
|
|
|
4784
4867
|
}, b = _n((v) => {
|
|
4785
4868
|
p(v.target.value.trim());
|
|
4786
4869
|
}, 500);
|
|
4787
|
-
return /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title: wn, children: /* @__PURE__ */
|
|
4870
|
+
return /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title: wn, children: /* @__PURE__ */ k(K, { children: [
|
|
4788
4871
|
/* @__PURE__ */ s("form", { autoComplete: "off", onSubmit: async (v) => {
|
|
4789
4872
|
v.preventDefault();
|
|
4790
4873
|
}, children: /* @__PURE__ */ s(
|
|
@@ -4793,7 +4876,7 @@ const Hs = (e) => {
|
|
|
4793
4876
|
autoCapitalize: "off",
|
|
4794
4877
|
autoComplete: "off",
|
|
4795
4878
|
autoCorrect: "off",
|
|
4796
|
-
ref:
|
|
4879
|
+
ref: m,
|
|
4797
4880
|
defaultValue: i.searchString,
|
|
4798
4881
|
focusMode: "light",
|
|
4799
4882
|
mode: "dark",
|
|
@@ -4813,7 +4896,7 @@ const Hs = (e) => {
|
|
|
4813
4896
|
size: "small",
|
|
4814
4897
|
onClick: () => {
|
|
4815
4898
|
var v;
|
|
4816
|
-
p(""), (v =
|
|
4899
|
+
p(""), (v = m.current) != null && v.value && (m.current.value = "", m.current.focus());
|
|
4817
4900
|
},
|
|
4818
4901
|
children: "Reset"
|
|
4819
4902
|
}
|
|
@@ -4822,18 +4905,18 @@ const Hs = (e) => {
|
|
|
4822
4905
|
}
|
|
4823
4906
|
) }),
|
|
4824
4907
|
/* @__PURE__ */ s("div", { className: "flex flex-col gap-2 sm:flex-row max-h-[60vh] min-h-[60vh]", children: /* @__PURE__ */ s(
|
|
4825
|
-
|
|
4908
|
+
sl,
|
|
4826
4909
|
{
|
|
4827
|
-
mutate:
|
|
4910
|
+
mutate: u,
|
|
4828
4911
|
filteredHistory: g,
|
|
4829
4912
|
dispatch: o,
|
|
4830
4913
|
onOpenChange: t
|
|
4831
4914
|
}
|
|
4832
4915
|
) })
|
|
4833
4916
|
] }) });
|
|
4834
|
-
},
|
|
4917
|
+
}, cl = ({ stats: e }) => {
|
|
4835
4918
|
const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = Q(), o = De(), i = De(), l = (r == null ? void 0 : r.username) || "";
|
|
4836
|
-
return t && l ? /* @__PURE__ */
|
|
4919
|
+
return t && l ? /* @__PURE__ */ k(K, { children: [
|
|
4837
4920
|
/* @__PURE__ */ s(
|
|
4838
4921
|
le,
|
|
4839
4922
|
{
|
|
@@ -4845,11 +4928,11 @@ const Hs = (e) => {
|
|
|
4845
4928
|
})
|
|
4846
4929
|
}
|
|
4847
4930
|
),
|
|
4848
|
-
n !== Nn.PASSKEY && !Tn() && /* @__PURE__ */
|
|
4931
|
+
n !== Nn.PASSKEY && !Tn() && /* @__PURE__ */ k(
|
|
4849
4932
|
le,
|
|
4850
4933
|
{
|
|
4851
4934
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
4852
|
-
header: /* @__PURE__ */ s("h2", { className: "m-0", children: /* @__PURE__ */
|
|
4935
|
+
header: /* @__PURE__ */ s("h2", { className: "m-0", children: /* @__PURE__ */ k(Ne, { columnGap: 3, alignVertical: "center", children: [
|
|
4853
4936
|
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(br, { size: "size-8" }) }),
|
|
4854
4937
|
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s("div", { children: F.PREFERENCES.PASSKEY_TITLE }) })
|
|
4855
4938
|
] }) }),
|
|
@@ -4882,7 +4965,7 @@ const Hs = (e) => {
|
|
|
4882
4965
|
}
|
|
4883
4966
|
)
|
|
4884
4967
|
] }) : null;
|
|
4885
|
-
},
|
|
4968
|
+
}, dl = ({
|
|
4886
4969
|
open: e,
|
|
4887
4970
|
onOpenChange: t
|
|
4888
4971
|
}) => {
|
|
@@ -4890,11 +4973,11 @@ const Hs = (e) => {
|
|
|
4890
4973
|
data: n,
|
|
4891
4974
|
error: o,
|
|
4892
4975
|
isLoading: i
|
|
4893
|
-
} =
|
|
4976
|
+
} = In({
|
|
4894
4977
|
keys: [a == null ? void 0 : a.username],
|
|
4895
4978
|
getAccessToken: r
|
|
4896
4979
|
});
|
|
4897
|
-
return o || i ? null : /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title:
|
|
4980
|
+
return o || i ? null : /* @__PURE__ */ s(Be, { open: e, onOpenChange: t, title: En, children: /* @__PURE__ */ s(cl, { stats: n }) });
|
|
4898
4981
|
};
|
|
4899
4982
|
/*!
|
|
4900
4983
|
@versini/ui-textarea v3.0.17
|
|
@@ -4909,14 +4992,14 @@ try {
|
|
|
4909
4992
|
});
|
|
4910
4993
|
} catch {
|
|
4911
4994
|
}
|
|
4912
|
-
const Wa = "av-text-area",
|
|
4913
|
-
function
|
|
4995
|
+
const Wa = "av-text-area", ul = "av-text-area-wrapper", Nt = "av-text-area-helper-text", ml = "av-text-area__control--right", hl = "av-text-area__control--left";
|
|
4996
|
+
function fl() {
|
|
4914
4997
|
const e = T(!1);
|
|
4915
4998
|
return $(() => (e.current = !0, () => {
|
|
4916
4999
|
e.current = !1;
|
|
4917
5000
|
}), []), j(() => e.current, []);
|
|
4918
5001
|
}
|
|
4919
|
-
function
|
|
5002
|
+
function gl(e) {
|
|
4920
5003
|
return re(() => e.every((t) => t == null) ? () => {
|
|
4921
5004
|
} : (t) => {
|
|
4922
5005
|
e.forEach((r) => {
|
|
@@ -4924,7 +5007,7 @@ function hl(e) {
|
|
|
4924
5007
|
});
|
|
4925
5008
|
}, e);
|
|
4926
5009
|
}
|
|
4927
|
-
const
|
|
5010
|
+
const pl = {
|
|
4928
5011
|
x: 0,
|
|
4929
5012
|
y: 0,
|
|
4930
5013
|
width: 0,
|
|
@@ -4935,7 +5018,7 @@ const fl = {
|
|
|
4935
5018
|
right: 0
|
|
4936
5019
|
};
|
|
4937
5020
|
function jr(e) {
|
|
4938
|
-
const t =
|
|
5021
|
+
const t = fl(), r = T(0), a = T(null), [n, o] = L(pl), i = re(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
|
4939
5022
|
const c = l[0];
|
|
4940
5023
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
4941
5024
|
a.current && t() && o(c.contentRect);
|
|
@@ -4945,7 +5028,7 @@ function jr(e) {
|
|
|
4945
5028
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
4946
5029
|
}), [i, e]), [a, n];
|
|
4947
5030
|
}
|
|
4948
|
-
function
|
|
5031
|
+
function yl({
|
|
4949
5032
|
value: e,
|
|
4950
5033
|
defaultValue: t,
|
|
4951
5034
|
finalValue: r,
|
|
@@ -4955,16 +5038,16 @@ function gl({
|
|
|
4955
5038
|
}) {
|
|
4956
5039
|
const [o, i] = L(!1), [l, c] = L(
|
|
4957
5040
|
t !== void 0 ? t : r
|
|
4958
|
-
),
|
|
4959
|
-
c(
|
|
5041
|
+
), u = (m) => {
|
|
5042
|
+
c(m), a == null || a(m);
|
|
4960
5043
|
};
|
|
4961
5044
|
return $(() => {
|
|
4962
5045
|
(async () => e !== void 0 && !o && n > 0 && (await new Promise(
|
|
4963
|
-
(
|
|
5046
|
+
(m) => setTimeout(m, n)
|
|
4964
5047
|
), i(!0)))();
|
|
4965
|
-
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [l,
|
|
5048
|
+
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [l, u, !1];
|
|
4966
5049
|
}
|
|
4967
|
-
function
|
|
5050
|
+
function bl(e) {
|
|
4968
5051
|
const t = nt();
|
|
4969
5052
|
if (!e)
|
|
4970
5053
|
return t;
|
|
@@ -4975,7 +5058,7 @@ function pl(e) {
|
|
|
4975
5058
|
return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
|
|
4976
5059
|
}
|
|
4977
5060
|
}
|
|
4978
|
-
const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT",
|
|
5061
|
+
const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT", vl = {
|
|
4979
5062
|
alert: null,
|
|
4980
5063
|
alertdialog: null,
|
|
4981
5064
|
log: "polite",
|
|
@@ -4983,7 +5066,7 @@ const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT", yl = {
|
|
|
4983
5066
|
progressbar: null,
|
|
4984
5067
|
status: "polite",
|
|
4985
5068
|
timer: "assertive"
|
|
4986
|
-
},
|
|
5069
|
+
}, kl = (e, t) => {
|
|
4987
5070
|
switch (t == null ? void 0 : t.type) {
|
|
4988
5071
|
case Ga:
|
|
4989
5072
|
return {
|
|
@@ -4998,7 +5081,7 @@ const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT", yl = {
|
|
|
4998
5081
|
default:
|
|
4999
5082
|
return e;
|
|
5000
5083
|
}
|
|
5001
|
-
},
|
|
5084
|
+
}, xl = ({
|
|
5002
5085
|
onAnnouncementClear: e,
|
|
5003
5086
|
dispatch: t
|
|
5004
5087
|
}) => {
|
|
@@ -5016,13 +5099,13 @@ const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT", yl = {
|
|
|
5016
5099
|
type: Ga,
|
|
5017
5100
|
payload: e
|
|
5018
5101
|
}), t && (r.current = setTimeout(
|
|
5019
|
-
() =>
|
|
5102
|
+
() => xl({
|
|
5020
5103
|
onAnnouncementClear: a,
|
|
5021
5104
|
dispatch: n
|
|
5022
5105
|
}),
|
|
5023
5106
|
t
|
|
5024
5107
|
));
|
|
5025
|
-
},
|
|
5108
|
+
}, wl = ({
|
|
5026
5109
|
children: e,
|
|
5027
5110
|
announcementTimeoutRef: t,
|
|
5028
5111
|
announcementDelay: r,
|
|
@@ -5045,7 +5128,7 @@ const Ga = "SET_ANNOUNCEMENT", ja = "CLEAR_ANNOUNCEMENT", yl = {
|
|
|
5045
5128
|
dispatch: i
|
|
5046
5129
|
});
|
|
5047
5130
|
};
|
|
5048
|
-
function
|
|
5131
|
+
function _l({
|
|
5049
5132
|
children: e,
|
|
5050
5133
|
className: t,
|
|
5051
5134
|
politeness: r,
|
|
@@ -5056,17 +5139,17 @@ function xl({
|
|
|
5056
5139
|
visible: l,
|
|
5057
5140
|
...c
|
|
5058
5141
|
}) {
|
|
5059
|
-
const
|
|
5142
|
+
const u = T(null), m = T(null), [h, g] = Me(kl, {
|
|
5060
5143
|
announcement: null
|
|
5061
5144
|
});
|
|
5062
5145
|
let f = r;
|
|
5063
|
-
typeof f > "u" && (f = a ?
|
|
5064
|
-
|
|
5065
|
-
announcementTimeoutRef:
|
|
5146
|
+
typeof f > "u" && (f = a ? vl[a] : "assertive"), $(() => {
|
|
5147
|
+
wl({
|
|
5148
|
+
announcementTimeoutRef: u,
|
|
5066
5149
|
announcementDelay: n,
|
|
5067
5150
|
children: e,
|
|
5068
5151
|
clearAnnouncementDelay: o,
|
|
5069
|
-
clearAnnouncementTimeoutRef:
|
|
5152
|
+
clearAnnouncementTimeoutRef: m,
|
|
5070
5153
|
onAnnouncementClear: i,
|
|
5071
5154
|
dispatch: g
|
|
5072
5155
|
});
|
|
@@ -5103,19 +5186,19 @@ try {
|
|
|
5103
5186
|
});
|
|
5104
5187
|
} catch {
|
|
5105
5188
|
}
|
|
5106
|
-
const
|
|
5189
|
+
const Nl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hidden px-4 py-7", Tl = ({ mode: e }) => d({
|
|
5107
5190
|
"bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
|
|
5108
5191
|
"bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
|
|
5109
5192
|
"bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
|
|
5110
5193
|
"bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
|
|
5111
|
-
}),
|
|
5194
|
+
}), Cl = ({
|
|
5112
5195
|
focusMode: e
|
|
5113
5196
|
}) => d("focus:outline focus:outline-2 focus:outline-offset-2", {
|
|
5114
5197
|
"focus:outline-focus-dark": e === "dark",
|
|
5115
5198
|
"focus:outline-focus-light": e === "light",
|
|
5116
5199
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
5117
5200
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
5118
|
-
}),
|
|
5201
|
+
}), Il = ({
|
|
5119
5202
|
noBorder: e,
|
|
5120
5203
|
error: t
|
|
5121
5204
|
}) => d("border-2", {
|
|
@@ -5123,7 +5206,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5123
5206
|
"focus:border-border-dark": !e && t,
|
|
5124
5207
|
"border-border-error-dark": !e && t,
|
|
5125
5208
|
"border-transparent": e
|
|
5126
|
-
}),
|
|
5209
|
+
}), El = ({
|
|
5127
5210
|
disabled: e,
|
|
5128
5211
|
raw: t,
|
|
5129
5212
|
error: r,
|
|
@@ -5162,7 +5245,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5162
5245
|
"text-copy-medium dark:text-copy-error-dark": a === "alt-system"
|
|
5163
5246
|
}
|
|
5164
5247
|
);
|
|
5165
|
-
},
|
|
5248
|
+
}, Sl = ({
|
|
5166
5249
|
error: e,
|
|
5167
5250
|
raw: t,
|
|
5168
5251
|
mode: r,
|
|
@@ -5189,7 +5272,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5189
5272
|
"text-copy-error-dark dark:text-copy-error-light": r === "system",
|
|
5190
5273
|
"dark:text-copy-error-dark text-copy-error-light": r === "alt-system"
|
|
5191
5274
|
});
|
|
5192
|
-
},
|
|
5275
|
+
}, Rl = ({
|
|
5193
5276
|
className: e,
|
|
5194
5277
|
textAreaClassName: t,
|
|
5195
5278
|
raw: r,
|
|
@@ -5199,40 +5282,40 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5199
5282
|
error: i,
|
|
5200
5283
|
mode: l,
|
|
5201
5284
|
leftElement: c,
|
|
5202
|
-
rightElement:
|
|
5285
|
+
rightElement: u
|
|
5203
5286
|
}) => {
|
|
5204
|
-
const
|
|
5287
|
+
const m = r ? e : d(
|
|
5205
5288
|
"relative flex w-full flex-col justify-center",
|
|
5206
|
-
|
|
5289
|
+
ul,
|
|
5207
5290
|
e
|
|
5208
5291
|
), h = r ? d(t) : d(
|
|
5209
5292
|
Wa,
|
|
5210
5293
|
t,
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5294
|
+
Nl(),
|
|
5295
|
+
Tl({ mode: l }),
|
|
5296
|
+
Cl({ focusMode: a }),
|
|
5297
|
+
Il({
|
|
5215
5298
|
noBorder: o,
|
|
5216
5299
|
error: i
|
|
5217
5300
|
}),
|
|
5218
5301
|
{
|
|
5219
5302
|
"disabled:cursor-not-allowed disabled:opacity-50": n
|
|
5220
5303
|
}
|
|
5221
|
-
), g = r ? void 0 : "sr-only", f =
|
|
5304
|
+
), g = r ? void 0 : "sr-only", f = El({
|
|
5222
5305
|
disabled: n,
|
|
5223
5306
|
raw: r,
|
|
5224
5307
|
error: i,
|
|
5225
5308
|
mode: l,
|
|
5226
|
-
rightElement:
|
|
5309
|
+
rightElement: u,
|
|
5227
5310
|
leftElement: c
|
|
5228
|
-
}), p =
|
|
5311
|
+
}), p = Sl({
|
|
5229
5312
|
error: i,
|
|
5230
5313
|
raw: r,
|
|
5231
5314
|
mode: l,
|
|
5232
5315
|
disabled: n
|
|
5233
|
-
}), b = r ? void 0 : d(
|
|
5316
|
+
}), b = r ? void 0 : d(ml, "absolute"), y = r ? void 0 : d(hl, "absolute");
|
|
5234
5317
|
return {
|
|
5235
|
-
wrapper:
|
|
5318
|
+
wrapper: m,
|
|
5236
5319
|
textArea: h,
|
|
5237
5320
|
accessibleLabel: g,
|
|
5238
5321
|
visibleLabel: f,
|
|
@@ -5240,7 +5323,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5240
5323
|
rightElement: b,
|
|
5241
5324
|
leftElement: y
|
|
5242
5325
|
};
|
|
5243
|
-
},
|
|
5326
|
+
}, $l = ({
|
|
5244
5327
|
scrollHeight: e,
|
|
5245
5328
|
currentHeight: t,
|
|
5246
5329
|
currentLabelOffset: r = 0,
|
|
@@ -5267,8 +5350,8 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5267
5350
|
textAreaClassName: i,
|
|
5268
5351
|
mode: l = "system",
|
|
5269
5352
|
focusMode: c = "system",
|
|
5270
|
-
value:
|
|
5271
|
-
defaultValue:
|
|
5353
|
+
value: u,
|
|
5354
|
+
defaultValue: m,
|
|
5272
5355
|
disabled: h = !1,
|
|
5273
5356
|
noBorder: g = !1,
|
|
5274
5357
|
labelId: f,
|
|
@@ -5277,14 +5360,14 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5277
5360
|
rightElement: y,
|
|
5278
5361
|
leftElement: v,
|
|
5279
5362
|
onChange: w,
|
|
5280
|
-
onFocus:
|
|
5363
|
+
onFocus: x,
|
|
5281
5364
|
onBlur: _,
|
|
5282
5365
|
...R
|
|
5283
5366
|
}, A) => {
|
|
5284
5367
|
var C;
|
|
5285
|
-
const
|
|
5368
|
+
const I = T(null), N = gl([A, I]), [P, S] = jr(), [B, M] = jr(), O = T(80), z = T(-25), E = T(null), D = T(30), q = T(null), U = bl({ id: e, prefix: `${Wa}-` }), [Ye, tn] = L(0), [lr, rn] = L(0), [an, cr] = L(
|
|
5286
5369
|
!!(!b && p)
|
|
5287
|
-
), nn = `${t} error, ${p}`, be =
|
|
5370
|
+
), nn = `${t} error, ${p}`, be = Rl({
|
|
5288
5371
|
className: o,
|
|
5289
5372
|
textAreaClassName: i,
|
|
5290
5373
|
error: a,
|
|
@@ -5295,10 +5378,10 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5295
5378
|
mode: l,
|
|
5296
5379
|
rightElement: !!y,
|
|
5297
5380
|
leftElement: !!v
|
|
5298
|
-
}), [fe, on] =
|
|
5299
|
-
value:
|
|
5381
|
+
}), [fe, on] = yl({
|
|
5382
|
+
value: u,
|
|
5300
5383
|
initialControlledDelay: 20,
|
|
5301
|
-
defaultValue:
|
|
5384
|
+
defaultValue: m,
|
|
5302
5385
|
onChange: (X) => {
|
|
5303
5386
|
w && w({
|
|
5304
5387
|
target: {
|
|
@@ -5309,7 +5392,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5309
5392
|
}), sn = (X) => {
|
|
5310
5393
|
on(X.target.value);
|
|
5311
5394
|
}, ln = (X) => {
|
|
5312
|
-
b && p && cr(!0),
|
|
5395
|
+
b && p && cr(!0), x && x(X);
|
|
5313
5396
|
}, cn = (X) => {
|
|
5314
5397
|
b && p && !fe && cr(!1), _ && _(X);
|
|
5315
5398
|
};
|
|
@@ -5318,25 +5401,25 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5318
5401
|
}, [S]), Z(() => {
|
|
5319
5402
|
M && M.width && rn(M.width + 18 + 10);
|
|
5320
5403
|
}, [M]), Z(() => {
|
|
5321
|
-
n ||
|
|
5404
|
+
n || I && I.current && fe !== void 0 && (I.current.style.height = "inherit", I.current.style.height = I.current.scrollHeight + "px");
|
|
5322
5405
|
}, [fe, n]), Z(() => {
|
|
5323
5406
|
n || setTimeout(() => {
|
|
5324
5407
|
var X;
|
|
5325
|
-
(X =
|
|
5408
|
+
(X = E == null ? void 0 : E.current) == null || X.style.setProperty(
|
|
5326
5409
|
"--av-text-area-wrapper-transition",
|
|
5327
5410
|
fe ? "none" : "all 0.2s ease-out"
|
|
5328
5411
|
);
|
|
5329
5412
|
}, 0);
|
|
5330
5413
|
}, [fe, n]), Z(() => {
|
|
5331
5414
|
var X, dr;
|
|
5332
|
-
if (!n &&
|
|
5333
|
-
const { labelOffset: pt, helperTextOffset: yt, scrollHeight: dn } =
|
|
5334
|
-
scrollHeight:
|
|
5415
|
+
if (!n && I && I.current && fe !== void 0) {
|
|
5416
|
+
const { labelOffset: pt, helperTextOffset: yt, scrollHeight: dn } = $l({
|
|
5417
|
+
scrollHeight: I.current.scrollHeight,
|
|
5335
5418
|
currentHeight: O.current,
|
|
5336
5419
|
currentLabelOffset: z.current,
|
|
5337
5420
|
currentHelperTextOffset: D.current
|
|
5338
5421
|
});
|
|
5339
|
-
pt && (z.current = pt, (X =
|
|
5422
|
+
pt && (z.current = pt, (X = E == null ? void 0 : E.current) == null || X.style.setProperty(
|
|
5340
5423
|
"--av-text-area-label",
|
|
5341
5424
|
`${pt}px`
|
|
5342
5425
|
)), yt && (D.current = yt, (dr = q == null ? void 0 : q.current) == null || dr.style.setProperty(
|
|
@@ -5344,10 +5427,10 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5344
5427
|
`${yt}px`
|
|
5345
5428
|
)), O.current = dn || O.current;
|
|
5346
5429
|
}
|
|
5347
|
-
}, [fe, n]), M.width > 0 && ((C =
|
|
5430
|
+
}, [fe, n]), M.width > 0 && ((C = E == null ? void 0 : E.current) == null || C.style.setProperty(
|
|
5348
5431
|
"--tw-translate-x",
|
|
5349
5432
|
`${12 + M.width + 5}px`
|
|
5350
|
-
)), /* @__PURE__ */
|
|
5433
|
+
)), /* @__PURE__ */ k("div", { className: be.wrapper, children: [
|
|
5351
5434
|
/* @__PURE__ */ s(
|
|
5352
5435
|
"label",
|
|
5353
5436
|
{
|
|
@@ -5395,7 +5478,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5395
5478
|
!n && /* @__PURE__ */ s(
|
|
5396
5479
|
"label",
|
|
5397
5480
|
{
|
|
5398
|
-
ref:
|
|
5481
|
+
ref: E,
|
|
5399
5482
|
"aria-hidden": !0,
|
|
5400
5483
|
htmlFor: U,
|
|
5401
5484
|
className: `${be.visibleLabel}`,
|
|
@@ -5419,7 +5502,7 @@ const wl = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
|
|
|
5419
5502
|
children: y
|
|
5420
5503
|
}
|
|
5421
5504
|
),
|
|
5422
|
-
a && p && /* @__PURE__ */ s(
|
|
5505
|
+
a && p && /* @__PURE__ */ s(_l, { politeness: "polite", clearAnnouncementDelay: 500, children: nn })
|
|
5423
5506
|
] });
|
|
5424
5507
|
}
|
|
5425
5508
|
);
|
|
@@ -5437,7 +5520,7 @@ try {
|
|
|
5437
5520
|
});
|
|
5438
5521
|
} catch {
|
|
5439
5522
|
}
|
|
5440
|
-
const
|
|
5523
|
+
const Al = "av-toggle", Ll = () => d("peer", "h-6", "w-11", "rounded-full"), Bl = ({
|
|
5441
5524
|
focusMode: e
|
|
5442
5525
|
}) => d(
|
|
5443
5526
|
"peer-focus:outline",
|
|
@@ -5449,14 +5532,14 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5449
5532
|
"peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
|
|
5450
5533
|
"peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
|
|
5451
5534
|
}
|
|
5452
|
-
),
|
|
5535
|
+
), Ml = () => d(
|
|
5453
5536
|
"peer-checked:after:translate-x-full",
|
|
5454
5537
|
// background color when checked
|
|
5455
5538
|
"peer-checked:bg-violet-500",
|
|
5456
5539
|
// knob circle and border color when checked
|
|
5457
5540
|
"peer-checked:after:bg-white",
|
|
5458
5541
|
"peer-checked:after:border-white"
|
|
5459
|
-
),
|
|
5542
|
+
), Ol = () => d(
|
|
5460
5543
|
"after:left-[2px]",
|
|
5461
5544
|
"after:top-[2px]",
|
|
5462
5545
|
"after:border",
|
|
@@ -5468,7 +5551,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5468
5551
|
"after:rounded-full",
|
|
5469
5552
|
"after:transition-all",
|
|
5470
5553
|
"after:content-['']"
|
|
5471
|
-
),
|
|
5554
|
+
), Pl = ({
|
|
5472
5555
|
mode: e,
|
|
5473
5556
|
noBorder: t
|
|
5474
5557
|
}) => d({
|
|
@@ -5477,7 +5560,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5477
5560
|
"border-border-light bg-surface-darker": e === "dark",
|
|
5478
5561
|
"border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
|
|
5479
5562
|
"border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
|
|
5480
|
-
}),
|
|
5563
|
+
}), zl = ({
|
|
5481
5564
|
mode: e,
|
|
5482
5565
|
labelHidden: t
|
|
5483
5566
|
}) => t ? "sr-only" : d("ml-2 text-sm", {
|
|
@@ -5485,11 +5568,11 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5485
5568
|
"text-copy-lighter": e === "dark",
|
|
5486
5569
|
"text-copy-lighter dark:text-copy-dark": e === "alt-system",
|
|
5487
5570
|
"text-copy-dark dark:text-copy-lighter": e === "system"
|
|
5488
|
-
}),
|
|
5489
|
-
|
|
5571
|
+
}), Vl = ({ className: e }) => d(
|
|
5572
|
+
Al,
|
|
5490
5573
|
"relative flex cursor-pointer items-center",
|
|
5491
5574
|
e
|
|
5492
|
-
),
|
|
5575
|
+
), Dl = ({
|
|
5493
5576
|
mode: e,
|
|
5494
5577
|
focusMode: t,
|
|
5495
5578
|
labelHidden: r,
|
|
@@ -5497,15 +5580,15 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5497
5580
|
noBorder: n
|
|
5498
5581
|
}) => ({
|
|
5499
5582
|
toggle: d(
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5583
|
+
Ll(),
|
|
5584
|
+
Pl({ mode: e, noBorder: n }),
|
|
5585
|
+
Bl({ focusMode: t }),
|
|
5586
|
+
Ol(),
|
|
5587
|
+
Ml()
|
|
5505
5588
|
),
|
|
5506
|
-
label:
|
|
5589
|
+
label: zl({ mode: e, labelHidden: r }),
|
|
5507
5590
|
input: "peer sr-only",
|
|
5508
|
-
wrapper:
|
|
5591
|
+
wrapper: Vl({ className: a })
|
|
5509
5592
|
}), Ut = ({
|
|
5510
5593
|
checked: e = !1,
|
|
5511
5594
|
onChange: t,
|
|
@@ -5517,30 +5600,30 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5517
5600
|
className: l,
|
|
5518
5601
|
noBorder: c = !1
|
|
5519
5602
|
}) => {
|
|
5520
|
-
const
|
|
5603
|
+
const u = Dl({
|
|
5521
5604
|
mode: o,
|
|
5522
5605
|
focusMode: i,
|
|
5523
5606
|
labelHidden: a,
|
|
5524
5607
|
className: l,
|
|
5525
5608
|
noBorder: c
|
|
5526
|
-
}),
|
|
5609
|
+
}), m = (h) => {
|
|
5527
5610
|
t == null || t(h.target.checked);
|
|
5528
5611
|
};
|
|
5529
|
-
return /* @__PURE__ */
|
|
5612
|
+
return /* @__PURE__ */ k("label", { className: u.wrapper, children: [
|
|
5530
5613
|
/* @__PURE__ */ s(
|
|
5531
5614
|
"input",
|
|
5532
5615
|
{
|
|
5533
5616
|
name: n,
|
|
5534
5617
|
checked: e,
|
|
5535
5618
|
type: "checkbox",
|
|
5536
|
-
className:
|
|
5537
|
-
onChange:
|
|
5619
|
+
className: u.input,
|
|
5620
|
+
onChange: m
|
|
5538
5621
|
}
|
|
5539
5622
|
),
|
|
5540
|
-
/* @__PURE__ */ s("div", { className:
|
|
5541
|
-
/* @__PURE__ */ s("span", { className:
|
|
5623
|
+
/* @__PURE__ */ s("div", { className: u.toggle }),
|
|
5624
|
+
/* @__PURE__ */ s("span", { className: u.label, children: r })
|
|
5542
5625
|
] });
|
|
5543
|
-
},
|
|
5626
|
+
}, Hl = ({
|
|
5544
5627
|
open: e,
|
|
5545
5628
|
onOpenChange: t
|
|
5546
5629
|
}) => {
|
|
@@ -5553,29 +5636,29 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5553
5636
|
keys: [a == null ? void 0 : a.username],
|
|
5554
5637
|
getAccessToken: r,
|
|
5555
5638
|
isPaused: !0
|
|
5556
|
-
}), [c,
|
|
5639
|
+
}), [c, u] = L({
|
|
5557
5640
|
prompts: []
|
|
5558
|
-
}),
|
|
5641
|
+
}), m = ({
|
|
5559
5642
|
slot: f,
|
|
5560
5643
|
checked: p,
|
|
5561
5644
|
label: b,
|
|
5562
5645
|
content: y,
|
|
5563
5646
|
privateChat: v = !1
|
|
5564
5647
|
}) => {
|
|
5565
|
-
|
|
5566
|
-
const
|
|
5648
|
+
u((w) => {
|
|
5649
|
+
const x = w.prompts, _ = {
|
|
5567
5650
|
slot: f,
|
|
5568
5651
|
label: b,
|
|
5569
5652
|
content: y,
|
|
5570
5653
|
enabled: p,
|
|
5571
5654
|
privateChat: v
|
|
5572
|
-
}, R =
|
|
5655
|
+
}, R = x.findIndex((A) => A.slot === f);
|
|
5573
5656
|
return R === -1 ? {
|
|
5574
5657
|
...w,
|
|
5575
|
-
prompts: [...
|
|
5576
|
-
} : (
|
|
5658
|
+
prompts: [...x, { ..._, slot: f }]
|
|
5659
|
+
} : (x[R] = _, {
|
|
5577
5660
|
...w,
|
|
5578
|
-
prompts: [...
|
|
5661
|
+
prompts: [...x]
|
|
5579
5662
|
});
|
|
5580
5663
|
});
|
|
5581
5664
|
}, h = async (f) => {
|
|
@@ -5583,7 +5666,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5583
5666
|
try {
|
|
5584
5667
|
await Ce({
|
|
5585
5668
|
accessToken: await r(),
|
|
5586
|
-
type:
|
|
5669
|
+
type: Ie.SET_USER_PREFERENCES,
|
|
5587
5670
|
params: {
|
|
5588
5671
|
user: a == null ? void 0 : a.username,
|
|
5589
5672
|
tags: c.prompts
|
|
@@ -5595,14 +5678,14 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5595
5678
|
l({ ...n }), t(!1);
|
|
5596
5679
|
};
|
|
5597
5680
|
return $(() => {
|
|
5598
|
-
n != null && n.tags &&
|
|
5599
|
-
}, [n]), o || i ? null : /* @__PURE__ */
|
|
5681
|
+
n != null && n.tags && u({ prompts: n.tags });
|
|
5682
|
+
}, [n]), o || i ? null : /* @__PURE__ */ k(
|
|
5600
5683
|
Be,
|
|
5601
5684
|
{
|
|
5602
5685
|
open: e,
|
|
5603
5686
|
onOpenChange: g,
|
|
5604
5687
|
title: "Prompts",
|
|
5605
|
-
footer: /* @__PURE__ */
|
|
5688
|
+
footer: /* @__PURE__ */ k(
|
|
5606
5689
|
Ne,
|
|
5607
5690
|
{
|
|
5608
5691
|
columnGap: 2,
|
|
@@ -5636,13 +5719,13 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5636
5719
|
),
|
|
5637
5720
|
children: [
|
|
5638
5721
|
/* @__PURE__ */ s("p", { children: Sn }),
|
|
5639
|
-
c.prompts && c.prompts.map((f) => /* @__PURE__ */
|
|
5722
|
+
c.prompts && c.prompts.map((f) => /* @__PURE__ */ k(
|
|
5640
5723
|
le,
|
|
5641
5724
|
{
|
|
5642
5725
|
header: `Prompt ${f.slot + 1}`,
|
|
5643
5726
|
className: "prose-dark dark:prose-lighter mb-2",
|
|
5644
5727
|
children: [
|
|
5645
|
-
/* @__PURE__ */
|
|
5728
|
+
/* @__PURE__ */ k(Ne, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
|
|
5646
5729
|
/* @__PURE__ */ s(te, { span: 12, children: /* @__PURE__ */ s(
|
|
5647
5730
|
St,
|
|
5648
5731
|
{
|
|
@@ -5650,7 +5733,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5650
5733
|
name: `prompt${f.slot}-label`,
|
|
5651
5734
|
value: f.label,
|
|
5652
5735
|
onChange: (p) => {
|
|
5653
|
-
|
|
5736
|
+
m({
|
|
5654
5737
|
slot: f.slot,
|
|
5655
5738
|
checked: f.enabled,
|
|
5656
5739
|
label: p.target.value,
|
|
@@ -5666,7 +5749,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5666
5749
|
name: `prompt${f.slot}-content`,
|
|
5667
5750
|
value: f.content,
|
|
5668
5751
|
onChange: (p) => {
|
|
5669
|
-
|
|
5752
|
+
m({
|
|
5670
5753
|
slot: f.slot,
|
|
5671
5754
|
checked: f.enabled,
|
|
5672
5755
|
label: f.label,
|
|
@@ -5684,7 +5767,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5684
5767
|
label: "Enabled",
|
|
5685
5768
|
name: f.slot.toString(),
|
|
5686
5769
|
onChange: (p) => {
|
|
5687
|
-
|
|
5770
|
+
m({
|
|
5688
5771
|
slot: f.slot,
|
|
5689
5772
|
checked: p,
|
|
5690
5773
|
label: f.label,
|
|
@@ -5702,7 +5785,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5702
5785
|
label: "Temporary Chat",
|
|
5703
5786
|
name: `private-${f.slot.toString()}`,
|
|
5704
5787
|
onChange: (p) => {
|
|
5705
|
-
|
|
5788
|
+
m({
|
|
5706
5789
|
slot: f.slot,
|
|
5707
5790
|
checked: f.enabled,
|
|
5708
5791
|
label: f.label,
|
|
@@ -5720,7 +5803,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5720
5803
|
]
|
|
5721
5804
|
}
|
|
5722
5805
|
);
|
|
5723
|
-
},
|
|
5806
|
+
}, Ul = ({
|
|
5724
5807
|
open: e,
|
|
5725
5808
|
onOpenChange: t
|
|
5726
5809
|
}) => {
|
|
@@ -5732,19 +5815,19 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5732
5815
|
} = Fe({
|
|
5733
5816
|
keys: [a == null ? void 0 : a.username],
|
|
5734
5817
|
getAccessToken: r
|
|
5735
|
-
}), [c,
|
|
5818
|
+
}), [c, u] = L(!1), [m, h] = L({
|
|
5736
5819
|
loadingLocation: !1
|
|
5737
|
-
}), [g, f] = L(""), [p, b] = L(""), [y, v] =
|
|
5820
|
+
}), [g, f] = L(""), [p, b] = L(""), [y, v] = Ee({
|
|
5738
5821
|
key: Te + Rn,
|
|
5739
5822
|
initialValue: !1
|
|
5740
5823
|
}), w = (C) => {
|
|
5741
5824
|
v(C);
|
|
5742
|
-
},
|
|
5825
|
+
}, x = async (C) => {
|
|
5743
5826
|
C.preventDefault();
|
|
5744
5827
|
try {
|
|
5745
5828
|
await Ce({
|
|
5746
5829
|
accessToken: await r(),
|
|
5747
|
-
type:
|
|
5830
|
+
type: Ie.SET_USER_PREFERENCES,
|
|
5748
5831
|
params: {
|
|
5749
5832
|
user: a == null ? void 0 : a.username,
|
|
5750
5833
|
instructions: g,
|
|
@@ -5761,19 +5844,19 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5761
5844
|
loadingLocation: !0
|
|
5762
5845
|
}), b("...");
|
|
5763
5846
|
try {
|
|
5764
|
-
const C = Date.now(),
|
|
5847
|
+
const C = Date.now(), I = await Ln(), N = await Ce({
|
|
5765
5848
|
accessToken: await r(),
|
|
5766
|
-
type:
|
|
5849
|
+
type: Ie.GET_LOCATION,
|
|
5767
5850
|
params: {
|
|
5768
|
-
latitude:
|
|
5769
|
-
longitude:
|
|
5851
|
+
latitude: I.latitude,
|
|
5852
|
+
longitude: I.longitude
|
|
5770
5853
|
}
|
|
5771
5854
|
}), S = Date.now() - C;
|
|
5772
5855
|
if (S < 2e3 && await new Promise((B) => setTimeout(B, 2e3 - S)), N.status === 200) {
|
|
5773
|
-
const { city: B, state: M, country: O, displayName: z } = N.data,
|
|
5856
|
+
const { city: B, state: M, country: O, displayName: z } = N.data, E = B && M && O ? `${B}, ${M}, ${O}` : z;
|
|
5774
5857
|
h({
|
|
5775
5858
|
loadingLocation: !1
|
|
5776
|
-
}), b(
|
|
5859
|
+
}), b(E);
|
|
5777
5860
|
} else
|
|
5778
5861
|
h({
|
|
5779
5862
|
loadingLocation: !1
|
|
@@ -5781,7 +5864,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5781
5864
|
} catch {
|
|
5782
5865
|
}
|
|
5783
5866
|
}, R = () => {
|
|
5784
|
-
|
|
5867
|
+
u(!c);
|
|
5785
5868
|
}, A = () => {
|
|
5786
5869
|
l({ ...n }), t(!1);
|
|
5787
5870
|
};
|
|
@@ -5793,7 +5876,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5793
5876
|
open: e,
|
|
5794
5877
|
onOpenChange: A,
|
|
5795
5878
|
title: $n,
|
|
5796
|
-
footer: /* @__PURE__ */
|
|
5879
|
+
footer: /* @__PURE__ */ k(
|
|
5797
5880
|
Ne,
|
|
5798
5881
|
{
|
|
5799
5882
|
columnGap: 2,
|
|
@@ -5817,7 +5900,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5817
5900
|
variant: "danger",
|
|
5818
5901
|
focusMode: "light",
|
|
5819
5902
|
onClick: async (C) => {
|
|
5820
|
-
t(!1), await
|
|
5903
|
+
t(!1), await x(C);
|
|
5821
5904
|
},
|
|
5822
5905
|
children: "Save"
|
|
5823
5906
|
}
|
|
@@ -5825,9 +5908,9 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5825
5908
|
]
|
|
5826
5909
|
}
|
|
5827
5910
|
),
|
|
5828
|
-
children: /* @__PURE__ */
|
|
5829
|
-
c && /* @__PURE__ */ s(
|
|
5830
|
-
/* @__PURE__ */
|
|
5911
|
+
children: /* @__PURE__ */ k(K, { children: [
|
|
5912
|
+
c && /* @__PURE__ */ s(Hl, { open: c, onOpenChange: u }),
|
|
5913
|
+
/* @__PURE__ */ k(
|
|
5831
5914
|
le,
|
|
5832
5915
|
{
|
|
5833
5916
|
header: F.SETTINGS_DETAILS.TITLE,
|
|
@@ -5865,13 +5948,13 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5865
5948
|
)
|
|
5866
5949
|
}
|
|
5867
5950
|
),
|
|
5868
|
-
/* @__PURE__ */
|
|
5951
|
+
/* @__PURE__ */ k(
|
|
5869
5952
|
le,
|
|
5870
5953
|
{
|
|
5871
5954
|
header: "Custom Instructions",
|
|
5872
5955
|
className: "prose-dark dark:prose-lighter mt-4",
|
|
5873
5956
|
children: [
|
|
5874
|
-
/* @__PURE__ */
|
|
5957
|
+
/* @__PURE__ */ k("p", { className: "text-sm", children: [
|
|
5875
5958
|
"What would you like ",
|
|
5876
5959
|
/* @__PURE__ */ s("em", { children: An }),
|
|
5877
5960
|
" to know about you to provide better responses?"
|
|
@@ -5895,7 +5978,7 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5895
5978
|
]
|
|
5896
5979
|
}
|
|
5897
5980
|
),
|
|
5898
|
-
/* @__PURE__ */
|
|
5981
|
+
/* @__PURE__ */ k(
|
|
5899
5982
|
le,
|
|
5900
5983
|
{
|
|
5901
5984
|
header: "Location",
|
|
@@ -5921,9 +6004,9 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5921
6004
|
className: "mt-2",
|
|
5922
6005
|
size: "small",
|
|
5923
6006
|
noBorder: !0,
|
|
5924
|
-
disabled:
|
|
6007
|
+
disabled: m.loadingLocation,
|
|
5925
6008
|
onClick: _,
|
|
5926
|
-
children:
|
|
6009
|
+
children: m.loadingLocation ? "Detecting..." : "Auto-detect"
|
|
5927
6010
|
}
|
|
5928
6011
|
)
|
|
5929
6012
|
]
|
|
@@ -5932,15 +6015,15 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5932
6015
|
] })
|
|
5933
6016
|
}
|
|
5934
6017
|
);
|
|
5935
|
-
},
|
|
6018
|
+
}, Fl = ({
|
|
5936
6019
|
isComponent: e = !1
|
|
5937
6020
|
}) => {
|
|
5938
|
-
const { logout: t } = Q(), [r, a] = L(!1), [n, o] = L(!1), [i, l] = L(!1), [c,
|
|
5939
|
-
return /* @__PURE__ */
|
|
6021
|
+
const { logout: t } = Q(), [r, a] = L(!1), [n, o] = L(!1), [i, l] = L(!1), [c, u] = L(!1), [m, h] = L(!1);
|
|
6022
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
5940
6023
|
/* @__PURE__ */ s(
|
|
5941
6024
|
nr,
|
|
5942
6025
|
{
|
|
5943
|
-
showConfirmation:
|
|
6026
|
+
showConfirmation: m,
|
|
5944
6027
|
setShowConfirmation: h,
|
|
5945
6028
|
action: t,
|
|
5946
6029
|
customStrings: {
|
|
@@ -5951,19 +6034,19 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
5951
6034
|
children: /* @__PURE__ */ s("p", { children: "Are you sure you want to log out?" })
|
|
5952
6035
|
}
|
|
5953
6036
|
),
|
|
5954
|
-
/* @__PURE__ */ s(
|
|
5955
|
-
/* @__PURE__ */ s(
|
|
5956
|
-
i && /* @__PURE__ */ s(
|
|
5957
|
-
/* @__PURE__ */ s(
|
|
5958
|
-
/* @__PURE__ */ s("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */
|
|
5959
|
-
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
|
|
6037
|
+
/* @__PURE__ */ s(dl, { open: r, onOpenChange: a }),
|
|
6038
|
+
/* @__PURE__ */ s(Ul, { open: n, onOpenChange: o }),
|
|
6039
|
+
i && /* @__PURE__ */ s(ll, { open: i, onOpenChange: l }),
|
|
6040
|
+
/* @__PURE__ */ s(ol, { open: c, onOpenChange: u }),
|
|
6041
|
+
/* @__PURE__ */ s("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ k(Ne, { alignHorizontal: "space-between", alignVertical: "center", children: [
|
|
6042
|
+
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(Ks, {}) }),
|
|
5960
6043
|
/* @__PURE__ */ s(te, { children: /* @__PURE__ */ s(
|
|
5961
6044
|
ke,
|
|
5962
6045
|
{
|
|
5963
6046
|
label: "Profile, Settings, etc.",
|
|
5964
6047
|
mode: "light",
|
|
5965
6048
|
placement: "left",
|
|
5966
|
-
trigger: /* @__PURE__ */
|
|
6049
|
+
trigger: /* @__PURE__ */ k(
|
|
5967
6050
|
ht,
|
|
5968
6051
|
{
|
|
5969
6052
|
mode: "dark",
|
|
@@ -6006,19 +6089,19 @@ const Rl = "av-toggle", $l = () => d("peer", "h-6", "w-11", "rounded-full"), Al
|
|
|
6006
6089
|
{
|
|
6007
6090
|
label: "About",
|
|
6008
6091
|
onClick: () => {
|
|
6009
|
-
|
|
6092
|
+
u(!c);
|
|
6010
6093
|
},
|
|
6011
6094
|
icon: /* @__PURE__ */ s(oo, {})
|
|
6012
6095
|
}
|
|
6013
6096
|
),
|
|
6014
|
-
!e && /* @__PURE__ */
|
|
6015
|
-
/* @__PURE__ */ s(
|
|
6097
|
+
!e && /* @__PURE__ */ k(K, { children: [
|
|
6098
|
+
/* @__PURE__ */ s(Us, {}),
|
|
6016
6099
|
/* @__PURE__ */ s(
|
|
6017
6100
|
ue,
|
|
6018
6101
|
{
|
|
6019
6102
|
label: "Log out",
|
|
6020
6103
|
onClick: () => {
|
|
6021
|
-
h(!
|
|
6104
|
+
h(!m);
|
|
6022
6105
|
},
|
|
6023
6106
|
icon: /* @__PURE__ */ s("div", { className: "text-red-700", children: /* @__PURE__ */ s(Qn, { monotone: !0 }) })
|
|
6024
6107
|
}
|
|
@@ -6045,7 +6128,7 @@ try {
|
|
|
6045
6128
|
});
|
|
6046
6129
|
} catch {
|
|
6047
6130
|
}
|
|
6048
|
-
const
|
|
6131
|
+
const Wl = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link", Gl = ({
|
|
6049
6132
|
type: e,
|
|
6050
6133
|
size: t,
|
|
6051
6134
|
labelRight: r,
|
|
@@ -6081,7 +6164,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6081
6164
|
"h-12": t === "large" && o && (r || a)
|
|
6082
6165
|
});
|
|
6083
6166
|
}
|
|
6084
|
-
},
|
|
6167
|
+
}, jl = ({
|
|
6085
6168
|
type: e,
|
|
6086
6169
|
size: t,
|
|
6087
6170
|
labelRight: r,
|
|
@@ -6104,7 +6187,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6104
6187
|
[i]: t === "large" && (r || a)
|
|
6105
6188
|
});
|
|
6106
6189
|
}
|
|
6107
|
-
},
|
|
6190
|
+
}, Yl = ({
|
|
6108
6191
|
mode: e,
|
|
6109
6192
|
noBackground: t,
|
|
6110
6193
|
noTruncate: r,
|
|
@@ -6140,7 +6223,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6140
6223
|
return d("not-prose text-copy-lighter", {
|
|
6141
6224
|
truncate: !r
|
|
6142
6225
|
});
|
|
6143
|
-
},
|
|
6226
|
+
}, Kl = ({
|
|
6144
6227
|
mode: e,
|
|
6145
6228
|
noBackground: t,
|
|
6146
6229
|
variant: r
|
|
@@ -6170,13 +6253,13 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6170
6253
|
if (r === "selected")
|
|
6171
6254
|
return "bg-action-selected-dark";
|
|
6172
6255
|
}
|
|
6173
|
-
},
|
|
6256
|
+
}, ql = ({
|
|
6174
6257
|
radius: e
|
|
6175
6258
|
}) => d({
|
|
6176
6259
|
"rounded-full": e === "large",
|
|
6177
6260
|
"rounded-md": e === "medium",
|
|
6178
6261
|
"rounded-sm": e === "small"
|
|
6179
|
-
}),
|
|
6262
|
+
}), Xl = ({
|
|
6180
6263
|
mode: e,
|
|
6181
6264
|
disabled: t,
|
|
6182
6265
|
variant: r
|
|
@@ -6206,7 +6289,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6206
6289
|
});
|
|
6207
6290
|
if (r === "selected")
|
|
6208
6291
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
6209
|
-
},
|
|
6292
|
+
}, Zl = ({
|
|
6210
6293
|
mode: e,
|
|
6211
6294
|
disabled: t,
|
|
6212
6295
|
variant: r
|
|
@@ -6236,7 +6319,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6236
6319
|
});
|
|
6237
6320
|
if (r === "selected")
|
|
6238
6321
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
6239
|
-
},
|
|
6322
|
+
}, Jl = ({
|
|
6240
6323
|
mode: e,
|
|
6241
6324
|
noBorder: t,
|
|
6242
6325
|
variant: r
|
|
@@ -6266,14 +6349,14 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6266
6349
|
});
|
|
6267
6350
|
if (r === "selected")
|
|
6268
6351
|
return "border border-border-selected-dark";
|
|
6269
|
-
},
|
|
6352
|
+
}, Ql = ({
|
|
6270
6353
|
focusMode: e
|
|
6271
6354
|
}) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
6272
6355
|
"focus:outline-focus-dark": e === "dark",
|
|
6273
6356
|
"focus:outline-focus-light": e === "light",
|
|
6274
6357
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
6275
6358
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
6276
|
-
}),
|
|
6359
|
+
}), ec = ({
|
|
6277
6360
|
mode: e,
|
|
6278
6361
|
raw: t,
|
|
6279
6362
|
iconClassName: r
|
|
@@ -6285,11 +6368,11 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6285
6368
|
"dark:text-copy-accent-dark": e === "system"
|
|
6286
6369
|
},
|
|
6287
6370
|
r
|
|
6288
|
-
),
|
|
6371
|
+
), tc = ({
|
|
6289
6372
|
animated: e
|
|
6290
6373
|
}) => d({
|
|
6291
6374
|
"transition-opacity duration-300 ease-in": e
|
|
6292
|
-
}),
|
|
6375
|
+
}), rc = ({
|
|
6293
6376
|
type: e,
|
|
6294
6377
|
className: t,
|
|
6295
6378
|
raw: r,
|
|
@@ -6299,8 +6382,8 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6299
6382
|
fullWidth: i,
|
|
6300
6383
|
size: l,
|
|
6301
6384
|
noBorder: c,
|
|
6302
|
-
labelRight:
|
|
6303
|
-
labelLeft:
|
|
6385
|
+
labelRight: u,
|
|
6386
|
+
labelLeft: m,
|
|
6304
6387
|
noBackground: h,
|
|
6305
6388
|
variant: g,
|
|
6306
6389
|
noTruncate: f,
|
|
@@ -6309,27 +6392,27 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6309
6392
|
animated: y
|
|
6310
6393
|
}) => (g || (g = "primary"), r ? d(Kr, t) : d(
|
|
6311
6394
|
Kr,
|
|
6312
|
-
|
|
6395
|
+
Yl({
|
|
6313
6396
|
mode: a,
|
|
6314
6397
|
variant: g,
|
|
6315
6398
|
noBackground: h,
|
|
6316
6399
|
noTruncate: f
|
|
6317
6400
|
}),
|
|
6318
|
-
|
|
6319
|
-
|
|
6320
|
-
|
|
6401
|
+
Kl({ mode: a, noBackground: h, variant: g }),
|
|
6402
|
+
ql({ radius: b }),
|
|
6403
|
+
Gl({
|
|
6321
6404
|
type: e,
|
|
6322
6405
|
size: l,
|
|
6323
|
-
labelRight:
|
|
6324
|
-
labelLeft:
|
|
6406
|
+
labelRight: u,
|
|
6407
|
+
labelLeft: m,
|
|
6325
6408
|
align: p,
|
|
6326
6409
|
animated: y
|
|
6327
6410
|
}),
|
|
6328
|
-
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6411
|
+
jl({ type: e, size: l, labelRight: u, labelLeft: m }),
|
|
6412
|
+
Jl({ mode: a, variant: g, noBorder: c }),
|
|
6413
|
+
Ql({ focusMode: n }),
|
|
6414
|
+
Xl({ mode: a, variant: g, disabled: o }),
|
|
6415
|
+
Zl({ mode: a, variant: g, disabled: o }),
|
|
6333
6416
|
{
|
|
6334
6417
|
"w-full": i,
|
|
6335
6418
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -6338,7 +6421,7 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6338
6421
|
"transition-[width] duration-300 ease-in-out": e === ft && y
|
|
6339
6422
|
}),
|
|
6340
6423
|
t
|
|
6341
|
-
)),
|
|
6424
|
+
)), ac = (e, t, r) => {
|
|
6342
6425
|
var a;
|
|
6343
6426
|
!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);
|
|
6344
6427
|
}, Ka = H.forwardRef((e, t) => {
|
|
@@ -6348,20 +6431,20 @@ const Ul = "av-bubble", Kr = "av-button", ft = "icon", Ya = "button", Ft = "link
|
|
|
6348
6431
|
{
|
|
6349
6432
|
ref: t,
|
|
6350
6433
|
onClick: (o) => {
|
|
6351
|
-
|
|
6434
|
+
ac(o, a, r);
|
|
6352
6435
|
},
|
|
6353
6436
|
...n
|
|
6354
6437
|
}
|
|
6355
6438
|
);
|
|
6356
6439
|
});
|
|
6357
6440
|
Ka.displayName = "BaseButton";
|
|
6358
|
-
function
|
|
6441
|
+
function nc() {
|
|
6359
6442
|
const e = T(!1);
|
|
6360
6443
|
return $(() => (e.current = !0, () => {
|
|
6361
6444
|
e.current = !1;
|
|
6362
6445
|
}), []), j(() => e.current, []);
|
|
6363
6446
|
}
|
|
6364
|
-
function
|
|
6447
|
+
function oc(e) {
|
|
6365
6448
|
return re(() => e.every((t) => t == null) ? () => {
|
|
6366
6449
|
} : (t) => {
|
|
6367
6450
|
e.forEach((r) => {
|
|
@@ -6369,7 +6452,7 @@ function ac(e) {
|
|
|
6369
6452
|
});
|
|
6370
6453
|
}, e);
|
|
6371
6454
|
}
|
|
6372
|
-
const
|
|
6455
|
+
const ic = {
|
|
6373
6456
|
x: 0,
|
|
6374
6457
|
y: 0,
|
|
6375
6458
|
width: 0,
|
|
@@ -6380,7 +6463,7 @@ const nc = {
|
|
|
6380
6463
|
right: 0
|
|
6381
6464
|
};
|
|
6382
6465
|
function Tt(e) {
|
|
6383
|
-
const t =
|
|
6466
|
+
const t = nc(), r = T(0), a = T(null), [n, o] = L(ic), i = re(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
|
6384
6467
|
const c = l[0];
|
|
6385
6468
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
6386
6469
|
a.current && t() && o(c.contentRect);
|
|
@@ -6390,21 +6473,21 @@ function Tt(e) {
|
|
|
6390
6473
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
6391
6474
|
}), [i, e]), [a, n];
|
|
6392
6475
|
}
|
|
6393
|
-
const
|
|
6476
|
+
const sc = {
|
|
6394
6477
|
small: 24,
|
|
6395
6478
|
// w-6
|
|
6396
6479
|
medium: 32,
|
|
6397
6480
|
// w-8
|
|
6398
6481
|
large: 48
|
|
6399
6482
|
// w-12
|
|
6400
|
-
},
|
|
6483
|
+
}, lc = {
|
|
6401
6484
|
small: 8 * 2,
|
|
6402
6485
|
// px-2 x 2
|
|
6403
6486
|
medium: 12 * 2,
|
|
6404
6487
|
// px-3 x 2
|
|
6405
6488
|
large: 16 * 2
|
|
6406
6489
|
// px-4 x 2
|
|
6407
|
-
},
|
|
6490
|
+
}, cc = 2, or = H.forwardRef(
|
|
6408
6491
|
({
|
|
6409
6492
|
children: e,
|
|
6410
6493
|
disabled: t = !1,
|
|
@@ -6415,8 +6498,8 @@ const oc = {
|
|
|
6415
6498
|
type: i = "button",
|
|
6416
6499
|
raw: l = !1,
|
|
6417
6500
|
noBorder: c = !1,
|
|
6418
|
-
"aria-label":
|
|
6419
|
-
label:
|
|
6501
|
+
"aria-label": u,
|
|
6502
|
+
label: m,
|
|
6420
6503
|
size: h = "medium",
|
|
6421
6504
|
labelRight: g,
|
|
6422
6505
|
labelLeft: f,
|
|
@@ -6425,10 +6508,10 @@ const oc = {
|
|
|
6425
6508
|
radius: y = "large",
|
|
6426
6509
|
variant: v = "primary",
|
|
6427
6510
|
iconClassName: w,
|
|
6428
|
-
animated:
|
|
6511
|
+
animated: x = !1,
|
|
6429
6512
|
..._
|
|
6430
6513
|
}, R) => {
|
|
6431
|
-
const A =
|
|
6514
|
+
const A = rc({
|
|
6432
6515
|
type: ft,
|
|
6433
6516
|
mode: r,
|
|
6434
6517
|
focusMode: a,
|
|
@@ -6444,12 +6527,12 @@ const oc = {
|
|
|
6444
6527
|
align: b,
|
|
6445
6528
|
radius: y,
|
|
6446
6529
|
variant: v,
|
|
6447
|
-
animated:
|
|
6448
|
-
}), C =
|
|
6530
|
+
animated: x
|
|
6531
|
+
}), C = ec({ mode: r, raw: l, iconClassName: w }), I = tc({ animated: x }), [N, P] = Tt(), [S, B] = Tt(), [M, O] = Tt(), z = T(0), E = T(null), D = oc([R, E]);
|
|
6449
6532
|
return Z(() => {
|
|
6450
|
-
M && M.current &&
|
|
6451
|
-
}, [O, M, h, c,
|
|
6452
|
-
|
|
6533
|
+
M && M.current && x && (z.current = O.width + lc[h] + (c ? 0 : cc));
|
|
6534
|
+
}, [O, M, h, c, x]), Z(() => {
|
|
6535
|
+
E && E.current && x && (g && N && P.width > 0 ? (N.current && (N.current.style.opacity = "100"), E.current.style.width = `${P.width + z.current}px`) : f && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), E.current.style.width = `${B.width + z.current}px`) : (N.current && (N.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), E.current.style.width = `${sc[h]}px`));
|
|
6453
6536
|
}, [
|
|
6454
6537
|
P,
|
|
6455
6538
|
g,
|
|
@@ -6458,15 +6541,15 @@ const oc = {
|
|
|
6458
6541
|
f,
|
|
6459
6542
|
S,
|
|
6460
6543
|
h,
|
|
6461
|
-
|
|
6462
|
-
]), /* @__PURE__ */
|
|
6544
|
+
x
|
|
6545
|
+
]), /* @__PURE__ */ k(
|
|
6463
6546
|
Ka,
|
|
6464
6547
|
{
|
|
6465
6548
|
ref: D,
|
|
6466
6549
|
className: A,
|
|
6467
6550
|
disabled: t,
|
|
6468
6551
|
type: i,
|
|
6469
|
-
"aria-label":
|
|
6552
|
+
"aria-label": u || m,
|
|
6470
6553
|
..._,
|
|
6471
6554
|
children: [
|
|
6472
6555
|
/* @__PURE__ */ s(
|
|
@@ -6474,7 +6557,7 @@ const oc = {
|
|
|
6474
6557
|
{
|
|
6475
6558
|
label: f,
|
|
6476
6559
|
labelRef: S,
|
|
6477
|
-
labelClass:
|
|
6560
|
+
labelClass: I,
|
|
6478
6561
|
labelInnerClass: "pr-2"
|
|
6479
6562
|
}
|
|
6480
6563
|
),
|
|
@@ -6484,7 +6567,7 @@ const oc = {
|
|
|
6484
6567
|
{
|
|
6485
6568
|
label: g,
|
|
6486
6569
|
labelRef: N,
|
|
6487
|
-
labelClass:
|
|
6570
|
+
labelClass: I,
|
|
6488
6571
|
labelInnerClass: "pl-2"
|
|
6489
6572
|
}
|
|
6490
6573
|
)
|
|
@@ -6512,7 +6595,7 @@ try {
|
|
|
6512
6595
|
});
|
|
6513
6596
|
} catch {
|
|
6514
6597
|
}
|
|
6515
|
-
const
|
|
6598
|
+
const dc = H.forwardRef(
|
|
6516
6599
|
({
|
|
6517
6600
|
children: e,
|
|
6518
6601
|
mode: t = "system",
|
|
@@ -6550,7 +6633,7 @@ const lc = H.forwardRef(
|
|
|
6550
6633
|
) });
|
|
6551
6634
|
}
|
|
6552
6635
|
);
|
|
6553
|
-
|
|
6636
|
+
dc.displayName = "ButtonSort";
|
|
6554
6637
|
const qa = ({
|
|
6555
6638
|
children: e,
|
|
6556
6639
|
fill: t,
|
|
@@ -6562,13 +6645,13 @@ const qa = ({
|
|
|
6562
6645
|
semantic: l = !1,
|
|
6563
6646
|
...c
|
|
6564
6647
|
}) => {
|
|
6565
|
-
const
|
|
6566
|
-
return /* @__PURE__ */
|
|
6648
|
+
const u = d(o, a);
|
|
6649
|
+
return /* @__PURE__ */ k(K, { children: [
|
|
6567
6650
|
/* @__PURE__ */ s(
|
|
6568
6651
|
"svg",
|
|
6569
6652
|
{
|
|
6570
6653
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6571
|
-
className:
|
|
6654
|
+
className: u,
|
|
6572
6655
|
viewBox: r || n,
|
|
6573
6656
|
fill: t || "currentColor",
|
|
6574
6657
|
role: "img",
|
|
@@ -6594,13 +6677,13 @@ try {
|
|
|
6594
6677
|
});
|
|
6595
6678
|
} catch {
|
|
6596
6679
|
}
|
|
6597
|
-
const
|
|
6680
|
+
const uc = ({
|
|
6598
6681
|
className: e,
|
|
6599
6682
|
viewBox: t,
|
|
6600
6683
|
title: r,
|
|
6601
6684
|
monotone: a,
|
|
6602
6685
|
...n
|
|
6603
|
-
}) => /* @__PURE__ */
|
|
6686
|
+
}) => /* @__PURE__ */ k(
|
|
6604
6687
|
qa,
|
|
6605
6688
|
{
|
|
6606
6689
|
defaultViewBox: "0 0 448 512",
|
|
@@ -6620,7 +6703,7 @@ const cc = ({
|
|
|
6620
6703
|
/* @__PURE__ */ s("path", { 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" })
|
|
6621
6704
|
]
|
|
6622
6705
|
}
|
|
6623
|
-
),
|
|
6706
|
+
), mc = ({
|
|
6624
6707
|
className: e,
|
|
6625
6708
|
viewBox: t,
|
|
6626
6709
|
title: r,
|
|
@@ -6651,30 +6734,30 @@ try {
|
|
|
6651
6734
|
});
|
|
6652
6735
|
} catch {
|
|
6653
6736
|
}
|
|
6654
|
-
const
|
|
6737
|
+
const hc = ({
|
|
6655
6738
|
kind: e,
|
|
6656
6739
|
noMaxWidth: t
|
|
6657
6740
|
}) => d("p-4", {
|
|
6658
6741
|
"max-w-xs sm:max-w-md md:max-w-2xl": !t,
|
|
6659
6742
|
"lg:max-w-3xl": e === "left" && !t
|
|
6660
|
-
}),
|
|
6743
|
+
}), fc = ({ kind: e }) => d({
|
|
6661
6744
|
"bg-surface-lighter dark:bg-surface-dark": e === "left",
|
|
6662
6745
|
"bg-surface-accent": e === "right"
|
|
6663
|
-
}),
|
|
6746
|
+
}), gc = ({ kind: e }) => d(
|
|
6664
6747
|
"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",
|
|
6665
6748
|
{
|
|
6666
6749
|
"text-copy-lighter": e === "right"
|
|
6667
6750
|
}
|
|
6668
|
-
),
|
|
6751
|
+
), pc = ({ kind: e }) => d("rounded-b-xl", {
|
|
6669
6752
|
"rounded-tr-xl": e === "left",
|
|
6670
6753
|
"rounded-tl-xl": e === "right"
|
|
6671
|
-
}),
|
|
6754
|
+
}), yc = ({
|
|
6672
6755
|
kind: e,
|
|
6673
6756
|
className: t,
|
|
6674
6757
|
noMaxWidth: r
|
|
6675
6758
|
}) => {
|
|
6676
6759
|
const a = d(
|
|
6677
|
-
|
|
6760
|
+
Wl,
|
|
6678
6761
|
"flex items-start",
|
|
6679
6762
|
{
|
|
6680
6763
|
"flex-row-reverse": e === "right"
|
|
@@ -6682,10 +6765,10 @@ const uc = ({
|
|
|
6682
6765
|
t
|
|
6683
6766
|
), n = d(
|
|
6684
6767
|
"flex flex-col empty:hidden",
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6768
|
+
hc({ kind: e, noMaxWidth: r }),
|
|
6769
|
+
gc({ kind: e }),
|
|
6770
|
+
fc({ kind: e }),
|
|
6771
|
+
pc({ kind: e })
|
|
6689
6772
|
), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = d("flex flex-col-reverse gap-2 sm:flex-row", {
|
|
6690
6773
|
"ml-2": e === "left",
|
|
6691
6774
|
"mr-2": e === "right"
|
|
@@ -6707,20 +6790,20 @@ const uc = ({
|
|
|
6707
6790
|
copyToClipboardMode: l = "system",
|
|
6708
6791
|
noMaxWidth: c = !1
|
|
6709
6792
|
}) => {
|
|
6710
|
-
const [
|
|
6711
|
-
|
|
6793
|
+
const [u, m] = L(!1), h = yc({ kind: t, className: r, noMaxWidth: c }), g = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), f = () => {
|
|
6794
|
+
m(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
|
|
6712
6795
|
};
|
|
6713
6796
|
return $(() => {
|
|
6714
6797
|
let p;
|
|
6715
|
-
return
|
|
6716
|
-
|
|
6798
|
+
return u && (p = window.setTimeout(() => {
|
|
6799
|
+
m(!1);
|
|
6717
6800
|
}, 3e3)), () => {
|
|
6718
6801
|
clearTimeout(p);
|
|
6719
6802
|
};
|
|
6720
|
-
}, [
|
|
6721
|
-
/* @__PURE__ */
|
|
6803
|
+
}, [u]), /* @__PURE__ */ k("div", { className: h.wrapper, children: [
|
|
6804
|
+
/* @__PURE__ */ k("div", { children: [
|
|
6722
6805
|
/* @__PURE__ */ s("div", { className: h.main, children: e }),
|
|
6723
|
-
a && Object.keys(a).map((p, b) => a[p] ? /* @__PURE__ */ s("div", { className: "prose-p:m-0", children: /* @__PURE__ */
|
|
6806
|
+
a && Object.keys(a).map((p, b) => a[p] ? /* @__PURE__ */ s("div", { className: "prose-p:m-0", children: /* @__PURE__ */ k("p", { className: h.footer, children: [
|
|
6724
6807
|
p,
|
|
6725
6808
|
": ",
|
|
6726
6809
|
a[p]
|
|
@@ -6735,10 +6818,10 @@ const uc = ({
|
|
|
6735
6818
|
size: "small",
|
|
6736
6819
|
mode: l,
|
|
6737
6820
|
focusMode: i,
|
|
6738
|
-
label:
|
|
6821
|
+
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
|
6739
6822
|
onClick: f,
|
|
6740
|
-
disabled:
|
|
6741
|
-
children:
|
|
6823
|
+
disabled: u,
|
|
6824
|
+
children: u ? /* @__PURE__ */ s(uc, { size: "size-3" }) : /* @__PURE__ */ s(mc, { size: "size-3" })
|
|
6742
6825
|
}
|
|
6743
6826
|
) })
|
|
6744
6827
|
] });
|
|
@@ -6756,7 +6839,7 @@ try {
|
|
|
6756
6839
|
});
|
|
6757
6840
|
} catch {
|
|
6758
6841
|
}
|
|
6759
|
-
const Xr = "av-spinner",
|
|
6842
|
+
const Xr = "av-spinner", bc = ({
|
|
6760
6843
|
spinnerRef: e,
|
|
6761
6844
|
mode: t = "system",
|
|
6762
6845
|
type: r = "circle",
|
|
@@ -6781,15 +6864,15 @@ const Xr = "av-spinner", pc = ({
|
|
|
6781
6864
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
6782
6865
|
"fill-copy-accent dark:fill-copy-dark": t === "alt-system"
|
|
6783
6866
|
});
|
|
6784
|
-
return /* @__PURE__ */
|
|
6785
|
-
r === "dots" && /* @__PURE__ */
|
|
6867
|
+
return /* @__PURE__ */ k("div", { ref: e, className: n, role: "status", children: [
|
|
6868
|
+
r === "dots" && /* @__PURE__ */ k("svg", { className: "h-8 w-8", children: [
|
|
6786
6869
|
/* @__PURE__ */ s("circle", { className: o, cx: "6", cy: "50%", r: "3" }),
|
|
6787
6870
|
/* @__PURE__ */ s("circle", { className: o, cx: "50%", cy: "50%", r: "3" }),
|
|
6788
6871
|
/* @__PURE__ */ s("circle", { className: o, cx: "80%", cy: "50%", r: "3" })
|
|
6789
6872
|
] }),
|
|
6790
6873
|
/* @__PURE__ */ s("span", { className: "sr-only", children: "Loading..." })
|
|
6791
6874
|
] });
|
|
6792
|
-
}, Zr = "av-button", gt = "icon", ir = "button", Wt = "link",
|
|
6875
|
+
}, Zr = "av-button", gt = "icon", ir = "button", Wt = "link", vc = ({
|
|
6793
6876
|
type: e,
|
|
6794
6877
|
size: t,
|
|
6795
6878
|
labelRight: r,
|
|
@@ -6825,7 +6908,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
6825
6908
|
"h-12": t === "large" && o && (r || a)
|
|
6826
6909
|
});
|
|
6827
6910
|
}
|
|
6828
|
-
},
|
|
6911
|
+
}, kc = ({
|
|
6829
6912
|
type: e,
|
|
6830
6913
|
size: t,
|
|
6831
6914
|
labelRight: r,
|
|
@@ -6848,7 +6931,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
6848
6931
|
[i]: t === "large" && (r || a)
|
|
6849
6932
|
});
|
|
6850
6933
|
}
|
|
6851
|
-
},
|
|
6934
|
+
}, xc = ({
|
|
6852
6935
|
mode: e,
|
|
6853
6936
|
noBackground: t,
|
|
6854
6937
|
noTruncate: r,
|
|
@@ -6884,7 +6967,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
6884
6967
|
return d("not-prose text-copy-lighter", {
|
|
6885
6968
|
truncate: !r
|
|
6886
6969
|
});
|
|
6887
|
-
},
|
|
6970
|
+
}, wc = ({
|
|
6888
6971
|
mode: e,
|
|
6889
6972
|
noBackground: t,
|
|
6890
6973
|
variant: r
|
|
@@ -6914,13 +6997,13 @@ const Xr = "av-spinner", pc = ({
|
|
|
6914
6997
|
if (r === "selected")
|
|
6915
6998
|
return "bg-action-selected-dark";
|
|
6916
6999
|
}
|
|
6917
|
-
},
|
|
7000
|
+
}, _c = ({
|
|
6918
7001
|
radius: e
|
|
6919
7002
|
}) => d({
|
|
6920
7003
|
"rounded-full": e === "large",
|
|
6921
7004
|
"rounded-md": e === "medium",
|
|
6922
7005
|
"rounded-sm": e === "small"
|
|
6923
|
-
}),
|
|
7006
|
+
}), Nc = ({
|
|
6924
7007
|
mode: e,
|
|
6925
7008
|
disabled: t,
|
|
6926
7009
|
variant: r
|
|
@@ -6950,7 +7033,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
6950
7033
|
});
|
|
6951
7034
|
if (r === "selected")
|
|
6952
7035
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
6953
|
-
},
|
|
7036
|
+
}, Tc = ({
|
|
6954
7037
|
mode: e,
|
|
6955
7038
|
disabled: t,
|
|
6956
7039
|
variant: r
|
|
@@ -6980,7 +7063,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
6980
7063
|
});
|
|
6981
7064
|
if (r === "selected")
|
|
6982
7065
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
6983
|
-
},
|
|
7066
|
+
}, Cc = ({
|
|
6984
7067
|
mode: e,
|
|
6985
7068
|
noBorder: t,
|
|
6986
7069
|
variant: r
|
|
@@ -7010,14 +7093,14 @@ const Xr = "av-spinner", pc = ({
|
|
|
7010
7093
|
});
|
|
7011
7094
|
if (r === "selected")
|
|
7012
7095
|
return "border border-border-selected-dark";
|
|
7013
|
-
},
|
|
7096
|
+
}, Ic = ({
|
|
7014
7097
|
focusMode: e
|
|
7015
7098
|
}) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
7016
7099
|
"focus:outline-focus-dark": e === "dark",
|
|
7017
7100
|
"focus:outline-focus-light": e === "light",
|
|
7018
7101
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
7019
7102
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
7020
|
-
}),
|
|
7103
|
+
}), Ec = ({
|
|
7021
7104
|
mode: e,
|
|
7022
7105
|
raw: t,
|
|
7023
7106
|
iconClassName: r
|
|
@@ -7029,7 +7112,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
7029
7112
|
"dark:text-copy-accent-dark": e === "system"
|
|
7030
7113
|
},
|
|
7031
7114
|
r
|
|
7032
|
-
),
|
|
7115
|
+
), Sc = ({
|
|
7033
7116
|
animated: e
|
|
7034
7117
|
}) => d({
|
|
7035
7118
|
"transition-opacity duration-300 ease-in": e
|
|
@@ -7043,8 +7126,8 @@ const Xr = "av-spinner", pc = ({
|
|
|
7043
7126
|
fullWidth: i,
|
|
7044
7127
|
size: l,
|
|
7045
7128
|
noBorder: c,
|
|
7046
|
-
labelRight:
|
|
7047
|
-
labelLeft:
|
|
7129
|
+
labelRight: u,
|
|
7130
|
+
labelLeft: m,
|
|
7048
7131
|
noBackground: h,
|
|
7049
7132
|
variant: g,
|
|
7050
7133
|
noTruncate: f,
|
|
@@ -7053,27 +7136,27 @@ const Xr = "av-spinner", pc = ({
|
|
|
7053
7136
|
animated: y
|
|
7054
7137
|
}) => (g || (g = "primary"), r ? d(Zr, t) : d(
|
|
7055
7138
|
Zr,
|
|
7056
|
-
|
|
7139
|
+
xc({
|
|
7057
7140
|
mode: a,
|
|
7058
7141
|
variant: g,
|
|
7059
7142
|
noBackground: h,
|
|
7060
7143
|
noTruncate: f
|
|
7061
7144
|
}),
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7145
|
+
wc({ mode: a, noBackground: h, variant: g }),
|
|
7146
|
+
_c({ radius: b }),
|
|
7147
|
+
vc({
|
|
7065
7148
|
type: e,
|
|
7066
7149
|
size: l,
|
|
7067
|
-
labelRight:
|
|
7068
|
-
labelLeft:
|
|
7150
|
+
labelRight: u,
|
|
7151
|
+
labelLeft: m,
|
|
7069
7152
|
align: p,
|
|
7070
7153
|
animated: y
|
|
7071
7154
|
}),
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7155
|
+
kc({ type: e, size: l, labelRight: u, labelLeft: m }),
|
|
7156
|
+
Cc({ mode: a, variant: g, noBorder: c }),
|
|
7157
|
+
Ic({ focusMode: n }),
|
|
7158
|
+
Nc({ mode: a, variant: g, disabled: o }),
|
|
7159
|
+
Tc({ mode: a, variant: g, disabled: o }),
|
|
7077
7160
|
{
|
|
7078
7161
|
"w-full": i,
|
|
7079
7162
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
@@ -7082,7 +7165,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
7082
7165
|
"transition-[width] duration-300 ease-in-out": e === gt && y
|
|
7083
7166
|
}),
|
|
7084
7167
|
t
|
|
7085
|
-
)),
|
|
7168
|
+
)), Rc = (e, t, r) => {
|
|
7086
7169
|
var a;
|
|
7087
7170
|
!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);
|
|
7088
7171
|
}, sr = H.forwardRef((e, t) => {
|
|
@@ -7092,7 +7175,7 @@ const Xr = "av-spinner", pc = ({
|
|
|
7092
7175
|
{
|
|
7093
7176
|
ref: t,
|
|
7094
7177
|
onClick: (o) => {
|
|
7095
|
-
|
|
7178
|
+
Rc(o, a, r);
|
|
7096
7179
|
},
|
|
7097
7180
|
...n
|
|
7098
7181
|
}
|
|
@@ -7110,8 +7193,8 @@ const Ja = H.forwardRef(
|
|
|
7110
7193
|
size: i = "medium",
|
|
7111
7194
|
raw: l = !1,
|
|
7112
7195
|
noBorder: c = !1,
|
|
7113
|
-
variant:
|
|
7114
|
-
noTruncate:
|
|
7196
|
+
variant: u = "primary",
|
|
7197
|
+
noTruncate: m = !1,
|
|
7115
7198
|
radius: h = "large",
|
|
7116
7199
|
...g
|
|
7117
7200
|
}, f) => {
|
|
@@ -7125,8 +7208,8 @@ const Ja = H.forwardRef(
|
|
|
7125
7208
|
className: o,
|
|
7126
7209
|
size: i,
|
|
7127
7210
|
noBorder: c,
|
|
7128
|
-
variant:
|
|
7129
|
-
noTruncate:
|
|
7211
|
+
variant: u,
|
|
7212
|
+
noTruncate: m,
|
|
7130
7213
|
radius: h
|
|
7131
7214
|
});
|
|
7132
7215
|
return /* @__PURE__ */ s(
|
|
@@ -7142,13 +7225,13 @@ const Ja = H.forwardRef(
|
|
|
7142
7225
|
}
|
|
7143
7226
|
);
|
|
7144
7227
|
Ja.displayName = "Button";
|
|
7145
|
-
function
|
|
7228
|
+
function $c() {
|
|
7146
7229
|
const e = T(!1);
|
|
7147
7230
|
return $(() => (e.current = !0, () => {
|
|
7148
7231
|
e.current = !1;
|
|
7149
7232
|
}), []), j(() => e.current, []);
|
|
7150
7233
|
}
|
|
7151
|
-
function
|
|
7234
|
+
function Ac(e) {
|
|
7152
7235
|
return re(() => e.every((t) => t == null) ? () => {
|
|
7153
7236
|
} : (t) => {
|
|
7154
7237
|
e.forEach((r) => {
|
|
@@ -7156,7 +7239,7 @@ function Rc(e) {
|
|
|
7156
7239
|
});
|
|
7157
7240
|
}, e);
|
|
7158
7241
|
}
|
|
7159
|
-
const
|
|
7242
|
+
const Lc = {
|
|
7160
7243
|
x: 0,
|
|
7161
7244
|
y: 0,
|
|
7162
7245
|
width: 0,
|
|
@@ -7167,7 +7250,7 @@ const $c = {
|
|
|
7167
7250
|
right: 0
|
|
7168
7251
|
};
|
|
7169
7252
|
function Ct(e) {
|
|
7170
|
-
const t =
|
|
7253
|
+
const t = $c(), r = T(0), a = T(null), [n, o] = L(Lc), i = re(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((l) => {
|
|
7171
7254
|
const c = l[0];
|
|
7172
7255
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
7173
7256
|
a.current && t() && o(c.contentRect);
|
|
@@ -7177,21 +7260,21 @@ function Ct(e) {
|
|
|
7177
7260
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
7178
7261
|
}), [i, e]), [a, n];
|
|
7179
7262
|
}
|
|
7180
|
-
const
|
|
7263
|
+
const Bc = {
|
|
7181
7264
|
small: 24,
|
|
7182
7265
|
// w-6
|
|
7183
7266
|
medium: 32,
|
|
7184
7267
|
// w-8
|
|
7185
7268
|
large: 48
|
|
7186
7269
|
// w-12
|
|
7187
|
-
},
|
|
7270
|
+
}, Mc = {
|
|
7188
7271
|
small: 8 * 2,
|
|
7189
7272
|
// px-2 x 2
|
|
7190
7273
|
medium: 12 * 2,
|
|
7191
7274
|
// px-3 x 2
|
|
7192
7275
|
large: 16 * 2
|
|
7193
7276
|
// px-4 x 2
|
|
7194
|
-
},
|
|
7277
|
+
}, Oc = 2, Qa = H.forwardRef(
|
|
7195
7278
|
({
|
|
7196
7279
|
children: e,
|
|
7197
7280
|
disabled: t = !1,
|
|
@@ -7202,8 +7285,8 @@ const Ac = {
|
|
|
7202
7285
|
type: i = "button",
|
|
7203
7286
|
raw: l = !1,
|
|
7204
7287
|
noBorder: c = !1,
|
|
7205
|
-
"aria-label":
|
|
7206
|
-
label:
|
|
7288
|
+
"aria-label": u,
|
|
7289
|
+
label: m,
|
|
7207
7290
|
size: h = "medium",
|
|
7208
7291
|
labelRight: g,
|
|
7209
7292
|
labelLeft: f,
|
|
@@ -7212,7 +7295,7 @@ const Ac = {
|
|
|
7212
7295
|
radius: y = "large",
|
|
7213
7296
|
variant: v = "primary",
|
|
7214
7297
|
iconClassName: w,
|
|
7215
|
-
animated:
|
|
7298
|
+
animated: x = !1,
|
|
7216
7299
|
..._
|
|
7217
7300
|
}, R) => {
|
|
7218
7301
|
const A = Za({
|
|
@@ -7231,12 +7314,12 @@ const Ac = {
|
|
|
7231
7314
|
align: b,
|
|
7232
7315
|
radius: y,
|
|
7233
7316
|
variant: v,
|
|
7234
|
-
animated:
|
|
7235
|
-
}), C =
|
|
7317
|
+
animated: x
|
|
7318
|
+
}), C = Ec({ mode: r, raw: l, iconClassName: w }), I = Sc({ animated: x }), [N, P] = Ct(), [S, B] = Ct(), [M, O] = Ct(), z = T(0), E = T(null), D = Ac([R, E]);
|
|
7236
7319
|
return Z(() => {
|
|
7237
|
-
M && M.current &&
|
|
7238
|
-
}, [O, M, h, c,
|
|
7239
|
-
|
|
7320
|
+
M && M.current && x && (z.current = O.width + Mc[h] + (c ? 0 : Oc));
|
|
7321
|
+
}, [O, M, h, c, x]), Z(() => {
|
|
7322
|
+
E && E.current && x && (g && N && P.width > 0 ? (N.current && (N.current.style.opacity = "100"), E.current.style.width = `${P.width + z.current}px`) : f && B.width > 0 ? (S.current && (S.current.style.opacity = "100"), E.current.style.width = `${B.width + z.current}px`) : (N.current && (N.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), E.current.style.width = `${Bc[h]}px`));
|
|
7240
7323
|
}, [
|
|
7241
7324
|
P,
|
|
7242
7325
|
g,
|
|
@@ -7245,15 +7328,15 @@ const Ac = {
|
|
|
7245
7328
|
f,
|
|
7246
7329
|
S,
|
|
7247
7330
|
h,
|
|
7248
|
-
|
|
7249
|
-
]), /* @__PURE__ */
|
|
7331
|
+
x
|
|
7332
|
+
]), /* @__PURE__ */ k(
|
|
7250
7333
|
sr,
|
|
7251
7334
|
{
|
|
7252
7335
|
ref: D,
|
|
7253
7336
|
className: A,
|
|
7254
7337
|
disabled: t,
|
|
7255
7338
|
type: i,
|
|
7256
|
-
"aria-label":
|
|
7339
|
+
"aria-label": u || m,
|
|
7257
7340
|
..._,
|
|
7258
7341
|
children: [
|
|
7259
7342
|
/* @__PURE__ */ s(
|
|
@@ -7261,7 +7344,7 @@ const Ac = {
|
|
|
7261
7344
|
{
|
|
7262
7345
|
label: f,
|
|
7263
7346
|
labelRef: S,
|
|
7264
|
-
labelClass:
|
|
7347
|
+
labelClass: I,
|
|
7265
7348
|
labelInnerClass: "pr-2"
|
|
7266
7349
|
}
|
|
7267
7350
|
),
|
|
@@ -7271,7 +7354,7 @@ const Ac = {
|
|
|
7271
7354
|
{
|
|
7272
7355
|
label: g,
|
|
7273
7356
|
labelRef: N,
|
|
7274
|
-
labelClass:
|
|
7357
|
+
labelClass: I,
|
|
7275
7358
|
labelInnerClass: "pl-2"
|
|
7276
7359
|
}
|
|
7277
7360
|
)
|
|
@@ -7299,7 +7382,7 @@ try {
|
|
|
7299
7382
|
});
|
|
7300
7383
|
} catch {
|
|
7301
7384
|
}
|
|
7302
|
-
const
|
|
7385
|
+
const Pc = H.forwardRef(
|
|
7303
7386
|
({
|
|
7304
7387
|
children: e,
|
|
7305
7388
|
mode: t = "system",
|
|
@@ -7337,10 +7420,10 @@ const Mc = H.forwardRef(
|
|
|
7337
7420
|
) });
|
|
7338
7421
|
}
|
|
7339
7422
|
);
|
|
7340
|
-
|
|
7341
|
-
const
|
|
7423
|
+
Pc.displayName = "ButtonSort";
|
|
7424
|
+
const zc = 200, Vc = ({
|
|
7342
7425
|
string: e,
|
|
7343
|
-
idealLength: t =
|
|
7426
|
+
idealLength: t = zc
|
|
7344
7427
|
}) => {
|
|
7345
7428
|
if (e.length <= t)
|
|
7346
7429
|
return { string: e, isTruncated: !1 };
|
|
@@ -7351,7 +7434,7 @@ const Oc = 200, Pc = ({
|
|
|
7351
7434
|
string: e.slice(0, t + r),
|
|
7352
7435
|
isTruncated: !0
|
|
7353
7436
|
};
|
|
7354
|
-
},
|
|
7437
|
+
}, Dc = ({
|
|
7355
7438
|
children: e,
|
|
7356
7439
|
length: t = 200,
|
|
7357
7440
|
mode: r = "system",
|
|
@@ -7360,11 +7443,11 @@ const Oc = 200, Pc = ({
|
|
|
7360
7443
|
const [n, o] = L(!1);
|
|
7361
7444
|
if (typeof e != "string")
|
|
7362
7445
|
return e;
|
|
7363
|
-
const { string: i, isTruncated: l } =
|
|
7446
|
+
const { string: i, isTruncated: l } = Vc({
|
|
7364
7447
|
string: e,
|
|
7365
7448
|
idealLength: t
|
|
7366
7449
|
});
|
|
7367
|
-
return /* @__PURE__ */
|
|
7450
|
+
return /* @__PURE__ */ k("span", { style: { wordBreak: "break-word" }, children: [
|
|
7368
7451
|
n ? e : i,
|
|
7369
7452
|
l && /* @__PURE__ */ s(
|
|
7370
7453
|
Ja,
|
|
@@ -7394,21 +7477,21 @@ try {
|
|
|
7394
7477
|
});
|
|
7395
7478
|
} catch {
|
|
7396
7479
|
}
|
|
7397
|
-
const
|
|
7480
|
+
const Hc = ({ content: e }) => /* @__PURE__ */ s(
|
|
7398
7481
|
Xa,
|
|
7399
7482
|
{
|
|
7400
7483
|
kind: "right",
|
|
7401
7484
|
copyToClipboard: e,
|
|
7402
7485
|
copyToClipboardFocusMode: "light",
|
|
7403
7486
|
className: "mt-3",
|
|
7404
|
-
children: /* @__PURE__ */ s(
|
|
7487
|
+
children: /* @__PURE__ */ s(Dc, { mode: "light", focusMode: "light", children: e })
|
|
7405
7488
|
}
|
|
7406
7489
|
), Qr = Hn(
|
|
7407
7490
|
() => import(
|
|
7408
7491
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
7409
|
-
"./ChatBubbleAssistant.
|
|
7492
|
+
"./ChatBubbleAssistant.d-GReNse.js"
|
|
7410
7493
|
).then((e) => e.ChatBubbleAssistant)
|
|
7411
|
-
),
|
|
7494
|
+
), Uc = H.memo(
|
|
7412
7495
|
({
|
|
7413
7496
|
role: e,
|
|
7414
7497
|
content: t,
|
|
@@ -7423,30 +7506,30 @@ const Vc = ({ content: e }) => /* @__PURE__ */ s(
|
|
|
7423
7506
|
usage: n,
|
|
7424
7507
|
content: t
|
|
7425
7508
|
}
|
|
7426
|
-
) }) : e === ge && t ? /* @__PURE__ */ s(wr, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(Qr, { content: t, role: ge }) }) : e === Gt && t ? /* @__PURE__ */ s(
|
|
7427
|
-
),
|
|
7509
|
+
) }) : e === ge && t ? /* @__PURE__ */ s(wr, { fallback: /* @__PURE__ */ s("span", {}), children: /* @__PURE__ */ s(Qr, { content: t, role: ge }) }) : e === Gt && t ? /* @__PURE__ */ s(Hc, { content: t }) : null
|
|
7510
|
+
), Fc = () => {
|
|
7428
7511
|
var n;
|
|
7429
7512
|
const {
|
|
7430
7513
|
state: { messages: e, loading: t, streaming: r }
|
|
7431
7514
|
} = V(ee), a = (n = e == null ? void 0 : e.at(-1)) == null ? void 0 : n.role;
|
|
7432
|
-
return e && e.length > 0 ? /* @__PURE__ */
|
|
7515
|
+
return e && e.length > 0 ? /* @__PURE__ */ k("div", { className: "space-y-6 mt-2 @container", children: [
|
|
7433
7516
|
e && e.length > 0 && e.map((o, i) => {
|
|
7434
|
-
const { role: l, content: c, messageId:
|
|
7517
|
+
const { role: l, content: c, messageId: u, name: m, processingTime: h, usage: g } = o, f = u ? `${u}-${l}` : `${i}-${l}`;
|
|
7435
7518
|
return /* @__PURE__ */ s(
|
|
7436
|
-
|
|
7519
|
+
Uc,
|
|
7437
7520
|
{
|
|
7438
7521
|
role: l,
|
|
7439
7522
|
content: c,
|
|
7440
|
-
name:
|
|
7523
|
+
name: m,
|
|
7441
7524
|
processingTime: h,
|
|
7442
7525
|
usage: g
|
|
7443
7526
|
},
|
|
7444
7527
|
f
|
|
7445
7528
|
);
|
|
7446
7529
|
}),
|
|
7447
|
-
(t && a === Gt || r && a === ge) && /* @__PURE__ */ s(Xa, { children: /* @__PURE__ */ s(
|
|
7530
|
+
(t && a === Gt || r && a === ge) && /* @__PURE__ */ s(Xa, { children: /* @__PURE__ */ s(bc, { type: "dots" }) })
|
|
7448
7531
|
] }) : null;
|
|
7449
|
-
},
|
|
7532
|
+
}, Wc = () => {
|
|
7450
7533
|
const { isAuthenticated: e } = Q(), { ref: t, inViewport: r } = xo(), {
|
|
7451
7534
|
state: { footerPosition: a, footerHeight: n, footerOffset: o }
|
|
7452
7535
|
} = V(Zt), i = T(0), l = Bn({
|
|
@@ -7455,14 +7538,14 @@ const Vc = ({ content: e }) => /* @__PURE__ */ s(
|
|
|
7455
7538
|
});
|
|
7456
7539
|
return $(() => {
|
|
7457
7540
|
i.current = a === Ve ? n + o + ia + Mn : 0;
|
|
7458
|
-
}, [a, n, o]), /* @__PURE__ */
|
|
7459
|
-
/* @__PURE__ */
|
|
7541
|
+
}, [a, n, o]), /* @__PURE__ */ k(K, { children: [
|
|
7542
|
+
/* @__PURE__ */ k("div", { className: l, children: [
|
|
7460
7543
|
/* @__PURE__ */ s(On, {}),
|
|
7461
|
-
/* @__PURE__ */ s(
|
|
7544
|
+
/* @__PURE__ */ s(Fc, {}),
|
|
7462
7545
|
/* @__PURE__ */ s("div", { ref: t, className: "scroll-marker" })
|
|
7463
7546
|
] }),
|
|
7464
7547
|
/* @__PURE__ */ s(
|
|
7465
|
-
|
|
7548
|
+
js,
|
|
7466
7549
|
{
|
|
7467
7550
|
show: !r && a === Ve,
|
|
7468
7551
|
bottom: i.current
|
|
@@ -7471,13 +7554,13 @@ const Vc = ({ content: e }) => /* @__PURE__ */ s(
|
|
|
7471
7554
|
] });
|
|
7472
7555
|
};
|
|
7473
7556
|
function en({ isComponent: e = !1 }) {
|
|
7474
|
-
const { user: t, getAccessToken: r } = Q(), [a, n] = L(`${kr}px`), [o, i] = ka(), [l] =
|
|
7557
|
+
const { user: t, getAccessToken: r } = Q(), [a, n] = L(`${kr}px`), [o, i] = ka(), [l] = Ee({
|
|
7475
7558
|
key: Te + oa,
|
|
7476
7559
|
initialValue: ""
|
|
7477
|
-
}), [c] =
|
|
7560
|
+
}), [c] = Ee({
|
|
7478
7561
|
key: Te + na,
|
|
7479
7562
|
initialValue: se.ASC
|
|
7480
|
-
}), [
|
|
7563
|
+
}), [u, m] = Me(gi, {
|
|
7481
7564
|
footerPosition: "FOOTER_TOP",
|
|
7482
7565
|
footerHeight: 0,
|
|
7483
7566
|
footerOffset: 0
|
|
@@ -7516,8 +7599,8 @@ function en({ isComponent: e = !1 }) {
|
|
|
7516
7599
|
return $(() => {
|
|
7517
7600
|
var w;
|
|
7518
7601
|
(w = document.getElementById("logo")) == null || w.classList.add("fadeOut"), setTimeout(() => {
|
|
7519
|
-
var
|
|
7520
|
-
(
|
|
7602
|
+
var x;
|
|
7603
|
+
(x = document.getElementById("root")) == null || x.classList.replace("app-hidden", "fadeIn");
|
|
7521
7604
|
}, 500);
|
|
7522
7605
|
}), $(() => {
|
|
7523
7606
|
v && y({
|
|
@@ -7527,25 +7610,25 @@ function en({ isComponent: e = !1 }) {
|
|
|
7527
7610
|
}
|
|
7528
7611
|
});
|
|
7529
7612
|
}, [v]), $(() => {
|
|
7530
|
-
if (
|
|
7613
|
+
if (u.footerPosition === "FOOTER_BOTTOM") {
|
|
7531
7614
|
const w = `calc(${i.height}px + 20px)`;
|
|
7532
7615
|
n(
|
|
7533
|
-
`calc(100svh - ${w} - ${
|
|
7616
|
+
`calc(100svh - ${w} - ${u.footerHeight}px - ${u.footerOffset}px - ${ia}px)`
|
|
7534
7617
|
);
|
|
7535
7618
|
} else
|
|
7536
7619
|
n(`${kr}px`);
|
|
7537
|
-
}, [
|
|
7620
|
+
}, [u, i]), /* @__PURE__ */ s(
|
|
7538
7621
|
Xt.Provider,
|
|
7539
7622
|
{
|
|
7540
7623
|
value: {
|
|
7541
7624
|
state: h,
|
|
7542
7625
|
dispatch: g
|
|
7543
7626
|
},
|
|
7544
|
-
children: /* @__PURE__ */ s(Zt.Provider, { value: { state:
|
|
7627
|
+
children: /* @__PURE__ */ s(Zt.Provider, { value: { state: u, dispatch: m }, children: /* @__PURE__ */ s(
|
|
7545
7628
|
st.Provider,
|
|
7546
7629
|
{
|
|
7547
7630
|
value: { state: f, dispatch: p },
|
|
7548
|
-
children: /* @__PURE__ */
|
|
7631
|
+
children: /* @__PURE__ */ k(
|
|
7549
7632
|
ee.Provider,
|
|
7550
7633
|
{
|
|
7551
7634
|
value: { state: b, dispatch: y },
|
|
@@ -7561,7 +7644,7 @@ function en({ isComponent: e = !1 }) {
|
|
|
7561
7644
|
className: xr({
|
|
7562
7645
|
extraClass: "mt-5"
|
|
7563
7646
|
}),
|
|
7564
|
-
children: /* @__PURE__ */ s(
|
|
7647
|
+
children: /* @__PURE__ */ s(Fl, { isComponent: e })
|
|
7565
7648
|
}
|
|
7566
7649
|
),
|
|
7567
7650
|
/* @__PURE__ */ s(
|
|
@@ -7575,10 +7658,10 @@ function en({ isComponent: e = !1 }) {
|
|
|
7575
7658
|
style: {
|
|
7576
7659
|
height: a
|
|
7577
7660
|
},
|
|
7578
|
-
children: /* @__PURE__ */ s(
|
|
7661
|
+
children: /* @__PURE__ */ s(Wc, {})
|
|
7579
7662
|
}
|
|
7580
7663
|
),
|
|
7581
|
-
/* @__PURE__ */ s(
|
|
7664
|
+
/* @__PURE__ */ s(al, { isComponent: e })
|
|
7582
7665
|
]
|
|
7583
7666
|
}
|
|
7584
7667
|
)
|
|
@@ -7588,10 +7671,10 @@ function en({ isComponent: e = !1 }) {
|
|
|
7588
7671
|
);
|
|
7589
7672
|
}
|
|
7590
7673
|
en.displayName = "App";
|
|
7591
|
-
const
|
|
7674
|
+
const Xc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: en }, Symbol.toStringTag, { value: "Module" }));
|
|
7592
7675
|
export {
|
|
7593
|
-
|
|
7676
|
+
Xc as App,
|
|
7594
7677
|
ee as ChatContext,
|
|
7595
|
-
|
|
7678
|
+
Ee as E,
|
|
7596
7679
|
Xa as Re
|
|
7597
7680
|
};
|