@versini/sassysaint 7.2.3 → 7.2.4
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.BDqQnTrq.js → App.Bvwfu_LF.js} +721 -709
- package/dist/chunks/{ChatBubbleAssistant.CxsRdmRy.js → ChatBubbleAssistant.BfHYzXjt.js} +3 -3
- package/dist/chunks/{HeaderEntry.BUIe93Ji.js → HeaderEntry.lXhWh2KT.js} +4 -4
- package/dist/chunks/{MarkdownWithExtra.CnQvPHyI.js → MarkdownWithExtra.B7mInZQZ.js} +2 -2
- package/dist/chunks/{index.haIFTOhR.js → index.CEGm_qGg.js} +1 -1
- package/dist/components/SassySaint/SassySaint.js +1 -1
- package/dist/index.js +4 -4
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as l, jsxs as _, Fragment as se } from "react/jsx-runtime";
|
|
2
|
-
import { f as te, ACTION_SORT as
|
|
2
|
+
import { f as te, ACTION_SORT as ga, ACTION_SEARCH as fa, ACTION_RESET_PROMPT as wr, ACTION_TOGGLE_PROMPT as xr, ROLE_ASSISTANT as xe, ROLE_INTERNAL as ae, DEFAULT_AI_PROVIDER as Oe, isProbablyiPhone as at, re as he, DEFAULT_ICON_ACTION_SIZE as ee, L as pa, j as At, C as Mt, LOCAL_STORAGE_PREFIX as nt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as ba, un as ge, useUserPreferences as yt, serviceCall as ya, SERVICE_TYPES as va, PROVIDER_ANTHROPIC as Ke, PROVIDER_OPENAI as Pt, setNewProvider as ka, PROMPT_CLASSNAME as wa, PROMPT_EDITABLE_AREA_CLASSNAME as xa, ROLE_SYSTEM as _a, ROLE_HIDDEN as Na, restCall as Ta, STATS_SEPARATOR as zt, WAIT_SEPARATOR as Vt, ERROR_MESSAGE as Dt, CLIPBOARD_PROMPT as Ht, TYPE_QUESTION as Ia, ROLE_USER as vt, FOOTER_DISCLAIMER as Ca, getMessageContaintWrapperClass as Ea, UI_FOOTER_BUFFER as _r, UI_BUTTON_SCROLL_BUFFER as Ra, Logo as Sa, UI_DEFAULT_MAIN_HEIGHT as Ut, usePreloadChatsHistory as $a, getMainPaddingClass as Ft, I as Ba, LOCAL_STORAGE_SEARCH as La, LOCAL_STORAGE_SORT as Oa } from "./index.CEGm_qGg.js";
|
|
3
3
|
import d from "clsx";
|
|
4
4
|
import * as F from "react";
|
|
5
|
-
import H, { useEffect as C, useRef as I, useState as z, useCallback as W, useSyncExternalStore as
|
|
6
|
-
import { useMergeRefs as wt, FloatingPortal as
|
|
5
|
+
import H, { useEffect as C, useRef as I, useState as z, useCallback as W, useSyncExternalStore as Aa, useMemo as Q, useId as kt, useLayoutEffect as ne, useContext as V, forwardRef as Nr, lazy as Tr, Suspense as ot, useReducer as Re } from "react";
|
|
6
|
+
import { useMergeRefs as wt, FloatingPortal as Ir, FloatingOverlay as Ma, FloatingFocusManager as Cr, useFloating as Er, useClick as Rr, useDismiss as Sr, useRole as $r, useInteractions as Br, useFloatingTree as Lr, useFloatingNodeId as Pa, useListItem as Or, offset as za, flip as Va, shift as Da, autoUpdate as Ha, useListNavigation as Ua, useTypeahead as Fa, FloatingNode as Wa, FloatingList as ja, FloatingTree as Ga } from "@floating-ui/react";
|
|
7
7
|
const Wt = ({
|
|
8
8
|
className: e,
|
|
9
9
|
viewBox: t,
|
|
@@ -21,7 +21,7 @@ const Wt = ({
|
|
|
21
21
|
...n,
|
|
22
22
|
children: /* @__PURE__ */ l("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
|
|
23
23
|
}
|
|
24
|
-
),
|
|
24
|
+
), Ya = ({
|
|
25
25
|
className: e,
|
|
26
26
|
viewBox: t,
|
|
27
27
|
title: r,
|
|
@@ -47,7 +47,7 @@ const Wt = ({
|
|
|
47
47
|
/* @__PURE__ */ l("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
|
-
),
|
|
50
|
+
), qa = ({
|
|
51
51
|
className: e,
|
|
52
52
|
viewBox: t,
|
|
53
53
|
title: r,
|
|
@@ -70,7 +70,7 @@ const Wt = ({
|
|
|
70
70
|
}
|
|
71
71
|
)
|
|
72
72
|
}
|
|
73
|
-
),
|
|
73
|
+
), Za = ({
|
|
74
74
|
className: e,
|
|
75
75
|
viewBox: t,
|
|
76
76
|
title: r,
|
|
@@ -96,7 +96,7 @@ const Wt = ({
|
|
|
96
96
|
/* @__PURE__ */ l("path", { d: "M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 402.7 54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z" })
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
|
-
),
|
|
99
|
+
), Ka = ({
|
|
100
100
|
className: e,
|
|
101
101
|
viewBox: t,
|
|
102
102
|
title: r,
|
|
@@ -122,7 +122,7 @@ const Wt = ({
|
|
|
122
122
|
/* @__PURE__ */ l("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5l167.3-167.4z" })
|
|
123
123
|
]
|
|
124
124
|
}
|
|
125
|
-
),
|
|
125
|
+
), Xa = ({
|
|
126
126
|
className: e,
|
|
127
127
|
viewBox: t,
|
|
128
128
|
title: r,
|
|
@@ -165,7 +165,7 @@ const Wt = ({
|
|
|
165
165
|
...n,
|
|
166
166
|
children: /* @__PURE__ */ l("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
|
|
167
167
|
}
|
|
168
|
-
),
|
|
168
|
+
), Ja = ({
|
|
169
169
|
className: e,
|
|
170
170
|
viewBox: t,
|
|
171
171
|
title: r,
|
|
@@ -191,7 +191,7 @@ const Wt = ({
|
|
|
191
191
|
/* @__PURE__ */ l("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
|
-
),
|
|
194
|
+
), Qa = ({
|
|
195
195
|
className: e,
|
|
196
196
|
viewBox: t,
|
|
197
197
|
title: r,
|
|
@@ -231,7 +231,7 @@ try {
|
|
|
231
231
|
});
|
|
232
232
|
} catch {
|
|
233
233
|
}
|
|
234
|
-
const
|
|
234
|
+
const en = "av-header", tn = ({
|
|
235
235
|
children: e,
|
|
236
236
|
className: t,
|
|
237
237
|
raw: r = !1,
|
|
@@ -244,7 +244,7 @@ const Ja = "av-header", Qa = ({
|
|
|
244
244
|
...u
|
|
245
245
|
}) => {
|
|
246
246
|
const m = d(
|
|
247
|
-
|
|
247
|
+
en,
|
|
248
248
|
{
|
|
249
249
|
"border-border-accent": a === "dark" && !r && !n && !i,
|
|
250
250
|
"border-border-medium": a === "light" && !r && !n && !i,
|
|
@@ -266,7 +266,7 @@ const Ja = "av-header", Qa = ({
|
|
|
266
266
|
});
|
|
267
267
|
return /* @__PURE__ */ l("header", { className: m, ...u, children: /* @__PURE__ */ l("div", { className: h, children: e }) });
|
|
268
268
|
};
|
|
269
|
-
function
|
|
269
|
+
function rn(e) {
|
|
270
270
|
const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
|
|
271
271
|
alt: t.includes("alt"),
|
|
272
272
|
ctrl: t.includes("ctrl"),
|
|
@@ -279,7 +279,7 @@ function en(e) {
|
|
|
279
279
|
key: n
|
|
280
280
|
};
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function an(e, t) {
|
|
283
283
|
const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: u, metaKey: m, shiftKey: h, key: g } = t;
|
|
284
284
|
if (r !== c)
|
|
285
285
|
return !1;
|
|
@@ -290,33 +290,33 @@ function tn(e, t) {
|
|
|
290
290
|
return !1;
|
|
291
291
|
return i !== h ? !1 : !!(s && (g.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
|
|
292
292
|
}
|
|
293
|
-
function
|
|
294
|
-
return (t) =>
|
|
293
|
+
function Ar(e) {
|
|
294
|
+
return (t) => an(rn(e), t);
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function nn(e) {
|
|
297
297
|
return (t) => {
|
|
298
298
|
const r = "nativeEvent" in t ? t.nativeEvent : t;
|
|
299
299
|
e.forEach(([a, n, o = { preventDefault: !0 }]) => {
|
|
300
|
-
|
|
300
|
+
Ar(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function on(e, t, r = !1) {
|
|
305
305
|
return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function sn(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
308
308
|
C(() => {
|
|
309
309
|
const a = (n) => {
|
|
310
310
|
e.forEach(
|
|
311
311
|
([o, i, s = { preventDefault: !0 }]) => {
|
|
312
|
-
|
|
312
|
+
Ar(o)(n) && on(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
|
|
313
313
|
}
|
|
314
314
|
);
|
|
315
315
|
};
|
|
316
316
|
return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
|
|
317
317
|
}, [e, t, r]);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function ln() {
|
|
320
320
|
const e = I(null), [t, r] = z(!1);
|
|
321
321
|
return { ref: W((a) => {
|
|
322
322
|
var n, o;
|
|
@@ -325,32 +325,32 @@ function on() {
|
|
|
325
325
|
) : (n = e.current) == null || n.disconnect(), a ? (o = e.current) == null || o.observe(a) : r(!1));
|
|
326
326
|
}, []), inViewport: t };
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function cn() {
|
|
329
329
|
const e = I(!1);
|
|
330
330
|
return C(() => (e.current = !0, () => {
|
|
331
331
|
e.current = !1;
|
|
332
332
|
}), []), W(() => e.current, []);
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function Mr(e, t) {
|
|
335
335
|
window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
|
|
336
336
|
}
|
|
337
337
|
const Gt = (e, t) => {
|
|
338
338
|
const r = JSON.stringify(
|
|
339
339
|
typeof t == "function" ? t() : t
|
|
340
340
|
);
|
|
341
|
-
window.localStorage.setItem(e, r),
|
|
342
|
-
},
|
|
343
|
-
window.localStorage.removeItem(e),
|
|
344
|
-
}, Yt = (e) => window.localStorage.getItem(e),
|
|
345
|
-
function
|
|
341
|
+
window.localStorage.setItem(e, r), Mr(e, r);
|
|
342
|
+
}, dn = (e) => {
|
|
343
|
+
window.localStorage.removeItem(e), Mr(e, null);
|
|
344
|
+
}, Yt = (e) => window.localStorage.getItem(e), un = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
|
|
345
|
+
function it({
|
|
346
346
|
key: e,
|
|
347
347
|
initialValue: t
|
|
348
348
|
}) {
|
|
349
|
-
const r =
|
|
349
|
+
const r = Aa(un, () => Yt(e)), a = W(
|
|
350
350
|
(i) => {
|
|
351
351
|
try {
|
|
352
352
|
const s = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
353
|
-
s == null ?
|
|
353
|
+
s == null ? dn(e) : Gt(e, s);
|
|
354
354
|
} catch (s) {
|
|
355
355
|
console.warn(s);
|
|
356
356
|
}
|
|
@@ -369,7 +369,7 @@ function nt({
|
|
|
369
369
|
}
|
|
370
370
|
}, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function mn(e) {
|
|
373
373
|
return Q(() => e.every((t) => t == null) ? () => {
|
|
374
374
|
} : (t) => {
|
|
375
375
|
e.forEach((r) => {
|
|
@@ -377,7 +377,7 @@ function dn(e) {
|
|
|
377
377
|
});
|
|
378
378
|
}, e);
|
|
379
379
|
}
|
|
380
|
-
const
|
|
380
|
+
const hn = {
|
|
381
381
|
x: 0,
|
|
382
382
|
y: 0,
|
|
383
383
|
width: 0,
|
|
@@ -387,8 +387,8 @@ const un = {
|
|
|
387
387
|
bottom: 0,
|
|
388
388
|
right: 0
|
|
389
389
|
};
|
|
390
|
-
function
|
|
391
|
-
const t =
|
|
390
|
+
function gn(e) {
|
|
391
|
+
const t = cn(), r = I(0), a = I(null), [n, o] = z(hn), i = Q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
392
392
|
const c = s[0];
|
|
393
393
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
394
394
|
a.current && t() && o(c.contentRect);
|
|
@@ -398,7 +398,7 @@ function mn(e) {
|
|
|
398
398
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
399
399
|
}), [i, e]), [a, n];
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function fn({
|
|
402
402
|
value: e,
|
|
403
403
|
defaultValue: t,
|
|
404
404
|
finalValue: r,
|
|
@@ -417,7 +417,7 @@ function hn({
|
|
|
417
417
|
), i(!0)))();
|
|
418
418
|
}, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [s, u, !1];
|
|
419
419
|
}
|
|
420
|
-
function
|
|
420
|
+
function pn(e) {
|
|
421
421
|
return kt();
|
|
422
422
|
}
|
|
423
423
|
function qt(e, t) {
|
|
@@ -425,7 +425,7 @@ function qt(e, t) {
|
|
|
425
425
|
passive: !0
|
|
426
426
|
}), () => window.removeEventListener(e, t)), [e, t]);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function bn() {
|
|
429
429
|
const [e, t] = z({
|
|
430
430
|
width: 0,
|
|
431
431
|
height: 0
|
|
@@ -444,7 +444,7 @@ function Zt(e, t) {
|
|
|
444
444
|
window.visualViewport && window.visualViewport.removeEventListener(e, t);
|
|
445
445
|
}), [e, t]);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function yn() {
|
|
448
448
|
const [e, t] = z({
|
|
449
449
|
width: 0,
|
|
450
450
|
height: 0
|
|
@@ -470,10 +470,10 @@ try {
|
|
|
470
470
|
});
|
|
471
471
|
} catch {
|
|
472
472
|
}
|
|
473
|
-
const
|
|
473
|
+
const De = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
474
474
|
ASC: "asc",
|
|
475
475
|
DESC: "desc"
|
|
476
|
-
},
|
|
476
|
+
}, vn = ({
|
|
477
477
|
mode: e,
|
|
478
478
|
className: t,
|
|
479
479
|
wrapperClassName: r,
|
|
@@ -508,7 +508,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
508
508
|
"text-copy-light dark:text-copy-dark": e === "system",
|
|
509
509
|
"text-copy-dark dark:text-copy-light": e === "alt-system"
|
|
510
510
|
})
|
|
511
|
-
}),
|
|
511
|
+
}), kn = ({
|
|
512
512
|
className: e,
|
|
513
513
|
stickyHeader: t,
|
|
514
514
|
mode: r
|
|
@@ -521,7 +521,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
521
521
|
"shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
|
|
522
522
|
},
|
|
523
523
|
e
|
|
524
|
-
),
|
|
524
|
+
), wn = ({
|
|
525
525
|
className: e,
|
|
526
526
|
stickyFooter: t,
|
|
527
527
|
mode: r
|
|
@@ -534,11 +534,11 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
534
534
|
"shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "alt-system"
|
|
535
535
|
},
|
|
536
536
|
e
|
|
537
|
-
),
|
|
537
|
+
), xn = ({
|
|
538
538
|
mode: e,
|
|
539
539
|
className: t,
|
|
540
540
|
cellWrapper: r
|
|
541
|
-
}) => r ===
|
|
541
|
+
}) => r === De || r === xt ? d(
|
|
542
542
|
{
|
|
543
543
|
"bg-table-head-dark": e === "dark" || e === "system",
|
|
544
544
|
"bg-table-head-light": e === "light" || e === "alt-system",
|
|
@@ -559,7 +559,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
559
559
|
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === le && e === "alt-system"
|
|
560
560
|
},
|
|
561
561
|
t
|
|
562
|
-
),
|
|
562
|
+
), _n = ({
|
|
563
563
|
cellWrapper: e,
|
|
564
564
|
className: t,
|
|
565
565
|
compact: r,
|
|
@@ -577,15 +577,15 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
577
577
|
"text-copy-dark": a === "light" || a === "alt-system",
|
|
578
578
|
"dark:text-copy-dark": a === "system",
|
|
579
579
|
"dark:text-copy-light": a === "alt-system",
|
|
580
|
-
"px-4 py-3": !r && (e ===
|
|
580
|
+
"px-4 py-3": !r && (e === De || e === xt),
|
|
581
581
|
"p-4": !r && e === le,
|
|
582
582
|
"px-2 py-1.5": r
|
|
583
583
|
},
|
|
584
584
|
t
|
|
585
585
|
)
|
|
586
|
-
}),
|
|
586
|
+
}), Nn = ({
|
|
587
587
|
buttonClassName: e
|
|
588
|
-
}) => d("rounded-none text-sm", e), Kt = "av-button",
|
|
588
|
+
}) => d("rounded-none text-sm", e), Kt = "av-button", He = "icon", Pr = "button", st = "link", Tn = ({
|
|
589
589
|
type: e,
|
|
590
590
|
size: t,
|
|
591
591
|
labelRight: r,
|
|
@@ -595,14 +595,14 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
595
595
|
}) => {
|
|
596
596
|
const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
597
597
|
switch (e) {
|
|
598
|
-
case
|
|
599
|
-
case
|
|
598
|
+
case Pr:
|
|
599
|
+
case st:
|
|
600
600
|
return d({
|
|
601
601
|
[i]: t === "small",
|
|
602
602
|
[s]: t === "medium",
|
|
603
603
|
[c]: t === "large"
|
|
604
604
|
});
|
|
605
|
-
case
|
|
605
|
+
case He:
|
|
606
606
|
return d("flex items-center", {
|
|
607
607
|
"justify-center": n === "center",
|
|
608
608
|
"justify-start": n === "left",
|
|
@@ -621,7 +621,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
621
621
|
"h-12": t === "large" && o && (r || a)
|
|
622
622
|
});
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, In = ({
|
|
625
625
|
type: e,
|
|
626
626
|
size: t,
|
|
627
627
|
labelRight: r,
|
|
@@ -629,22 +629,22 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
629
629
|
}) => {
|
|
630
630
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
631
631
|
switch (e) {
|
|
632
|
-
case
|
|
633
|
-
case
|
|
632
|
+
case Pr:
|
|
633
|
+
case st:
|
|
634
634
|
return d({
|
|
635
|
-
"text-center": e ===
|
|
635
|
+
"text-center": e === st,
|
|
636
636
|
[n]: t === "small",
|
|
637
637
|
[o]: t === "medium",
|
|
638
638
|
[i]: t === "large"
|
|
639
639
|
});
|
|
640
|
-
case
|
|
640
|
+
case He:
|
|
641
641
|
return d({
|
|
642
642
|
[n]: t === "small" && (r || a),
|
|
643
643
|
[o]: t === "medium" && (r || a),
|
|
644
644
|
[i]: t === "large" && (r || a)
|
|
645
645
|
});
|
|
646
646
|
}
|
|
647
|
-
},
|
|
647
|
+
}, Cn = ({
|
|
648
648
|
mode: e,
|
|
649
649
|
noBackground: t,
|
|
650
650
|
noTruncate: r,
|
|
@@ -680,7 +680,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
680
680
|
return d("not-prose text-copy-lighter", {
|
|
681
681
|
truncate: !r
|
|
682
682
|
});
|
|
683
|
-
},
|
|
683
|
+
}, En = ({
|
|
684
684
|
mode: e,
|
|
685
685
|
noBackground: t,
|
|
686
686
|
variant: r
|
|
@@ -710,13 +710,13 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
710
710
|
if (r === "selected")
|
|
711
711
|
return "bg-action-selected-dark";
|
|
712
712
|
}
|
|
713
|
-
},
|
|
713
|
+
}, Rn = ({
|
|
714
714
|
radius: e
|
|
715
715
|
}) => d({
|
|
716
716
|
"rounded-full": e === "large",
|
|
717
717
|
"rounded-md": e === "medium",
|
|
718
718
|
"rounded-sm": e === "small"
|
|
719
|
-
}),
|
|
719
|
+
}), Sn = ({
|
|
720
720
|
mode: e,
|
|
721
721
|
disabled: t,
|
|
722
722
|
variant: r
|
|
@@ -746,7 +746,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
746
746
|
});
|
|
747
747
|
if (r === "selected")
|
|
748
748
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
749
|
-
},
|
|
749
|
+
}, $n = ({
|
|
750
750
|
mode: e,
|
|
751
751
|
disabled: t,
|
|
752
752
|
variant: r
|
|
@@ -776,7 +776,7 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
776
776
|
});
|
|
777
777
|
if (r === "selected")
|
|
778
778
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
779
|
-
},
|
|
779
|
+
}, Bn = ({
|
|
780
780
|
mode: e,
|
|
781
781
|
noBorder: t,
|
|
782
782
|
variant: r
|
|
@@ -806,14 +806,14 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
806
806
|
});
|
|
807
807
|
if (r === "selected")
|
|
808
808
|
return "border border-border-selected-dark";
|
|
809
|
-
},
|
|
809
|
+
}, Ln = ({
|
|
810
810
|
focusMode: e
|
|
811
811
|
}) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
812
812
|
"focus:outline-focus-dark": e === "dark",
|
|
813
813
|
"focus:outline-focus-light": e === "light",
|
|
814
814
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
815
815
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
816
|
-
}),
|
|
816
|
+
}), On = ({
|
|
817
817
|
mode: e,
|
|
818
818
|
raw: t,
|
|
819
819
|
iconClassName: r
|
|
@@ -825,11 +825,11 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
825
825
|
"dark:text-copy-accent-dark": e === "system"
|
|
826
826
|
},
|
|
827
827
|
r
|
|
828
|
-
),
|
|
828
|
+
), An = ({
|
|
829
829
|
animated: e
|
|
830
830
|
}) => d({
|
|
831
831
|
"transition-opacity duration-300 ease-in": e
|
|
832
|
-
}),
|
|
832
|
+
}), Mn = ({
|
|
833
833
|
type: e,
|
|
834
834
|
className: t,
|
|
835
835
|
raw: r,
|
|
@@ -849,15 +849,15 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
849
849
|
animated: b
|
|
850
850
|
}) => (g || (g = "primary"), r ? d(Kt, t) : d(
|
|
851
851
|
Kt,
|
|
852
|
-
|
|
852
|
+
Cn({
|
|
853
853
|
mode: a,
|
|
854
854
|
variant: g,
|
|
855
855
|
noBackground: h,
|
|
856
856
|
noTruncate: p
|
|
857
857
|
}),
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
858
|
+
En({ mode: a, noBackground: h, variant: g }),
|
|
859
|
+
Rn({ radius: y }),
|
|
860
|
+
Tn({
|
|
861
861
|
type: e,
|
|
862
862
|
size: s,
|
|
863
863
|
labelRight: u,
|
|
@@ -865,43 +865,43 @@ const Pe = "thead", xt = "tfoot", le = "tbody", ve = {
|
|
|
865
865
|
align: f,
|
|
866
866
|
animated: b
|
|
867
867
|
}),
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
868
|
+
In({ type: e, size: s, labelRight: u, labelLeft: m }),
|
|
869
|
+
Bn({ mode: a, variant: g, noBorder: c }),
|
|
870
|
+
Ln({ focusMode: n }),
|
|
871
|
+
Sn({ mode: a, variant: g, disabled: o }),
|
|
872
|
+
$n({ mode: a, variant: g, disabled: o }),
|
|
873
873
|
{
|
|
874
874
|
"w-full": i,
|
|
875
875
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
876
876
|
},
|
|
877
877
|
d({
|
|
878
|
-
"transition-[width] duration-300 ease-in-out": e ===
|
|
878
|
+
"transition-[width] duration-300 ease-in-out": e === He && b
|
|
879
879
|
}),
|
|
880
880
|
t
|
|
881
|
-
)),
|
|
881
|
+
)), Pn = (e, t, r) => {
|
|
882
882
|
var a;
|
|
883
883
|
!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);
|
|
884
|
-
},
|
|
884
|
+
}, zr = H.forwardRef((e, t) => {
|
|
885
885
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
886
886
|
return /* @__PURE__ */ l(
|
|
887
887
|
"button",
|
|
888
888
|
{
|
|
889
889
|
ref: t,
|
|
890
890
|
onClick: (o) => {
|
|
891
|
-
|
|
891
|
+
Pn(o, a, r);
|
|
892
892
|
},
|
|
893
893
|
...n
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
896
|
});
|
|
897
|
-
|
|
898
|
-
function
|
|
897
|
+
zr.displayName = "BaseButton";
|
|
898
|
+
function zn() {
|
|
899
899
|
const e = I(!1);
|
|
900
900
|
return C(() => (e.current = !0, () => {
|
|
901
901
|
e.current = !1;
|
|
902
902
|
}), []), W(() => e.current, []);
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Vn(e) {
|
|
905
905
|
return Q(() => e.every((t) => t == null) ? () => {
|
|
906
906
|
} : (t) => {
|
|
907
907
|
e.forEach((r) => {
|
|
@@ -909,7 +909,7 @@ function Pn(e) {
|
|
|
909
909
|
});
|
|
910
910
|
}, e);
|
|
911
911
|
}
|
|
912
|
-
const
|
|
912
|
+
const Dn = {
|
|
913
913
|
x: 0,
|
|
914
914
|
y: 0,
|
|
915
915
|
width: 0,
|
|
@@ -919,8 +919,8 @@ const zn = {
|
|
|
919
919
|
bottom: 0,
|
|
920
920
|
right: 0
|
|
921
921
|
};
|
|
922
|
-
function
|
|
923
|
-
const t =
|
|
922
|
+
function Xe(e) {
|
|
923
|
+
const t = zn(), r = I(0), a = I(null), [n, o] = z(Dn), i = Q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
924
924
|
const c = s[0];
|
|
925
925
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
926
926
|
a.current && t() && o(c.contentRect);
|
|
@@ -930,21 +930,21 @@ function qe(e) {
|
|
|
930
930
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
931
931
|
}), [i, e]), [a, n];
|
|
932
932
|
}
|
|
933
|
-
const
|
|
933
|
+
const Hn = {
|
|
934
934
|
small: 24,
|
|
935
935
|
// w-6
|
|
936
936
|
medium: 32,
|
|
937
937
|
// w-8
|
|
938
938
|
large: 48
|
|
939
939
|
// w-12
|
|
940
|
-
},
|
|
940
|
+
}, Un = {
|
|
941
941
|
small: 8 * 2,
|
|
942
942
|
// px-2 x 2
|
|
943
943
|
medium: 12 * 2,
|
|
944
944
|
// px-3 x 2
|
|
945
945
|
large: 16 * 2
|
|
946
946
|
// px-4 x 2
|
|
947
|
-
},
|
|
947
|
+
}, Fn = 2, Vr = H.forwardRef(
|
|
948
948
|
({
|
|
949
949
|
children: e,
|
|
950
950
|
disabled: t = !1,
|
|
@@ -963,13 +963,13 @@ const Vn = {
|
|
|
963
963
|
noBackground: f = !1,
|
|
964
964
|
align: y = "center",
|
|
965
965
|
radius: b = "large",
|
|
966
|
-
variant:
|
|
967
|
-
iconClassName:
|
|
968
|
-
animated:
|
|
966
|
+
variant: k = "primary",
|
|
967
|
+
iconClassName: w,
|
|
968
|
+
animated: v = !1,
|
|
969
969
|
...R
|
|
970
970
|
}, B) => {
|
|
971
|
-
const A =
|
|
972
|
-
type:
|
|
971
|
+
const A = Mn({
|
|
972
|
+
type: He,
|
|
973
973
|
mode: r,
|
|
974
974
|
focusMode: a,
|
|
975
975
|
fullWidth: n,
|
|
@@ -983,24 +983,24 @@ const Vn = {
|
|
|
983
983
|
noBackground: f,
|
|
984
984
|
align: y,
|
|
985
985
|
radius: b,
|
|
986
|
-
variant:
|
|
987
|
-
animated:
|
|
988
|
-
}), E =
|
|
986
|
+
variant: k,
|
|
987
|
+
animated: v
|
|
988
|
+
}), E = On({ mode: r, raw: s, iconClassName: w }), S = An({ animated: v }), [x, L] = Xe(), [N, $] = Xe(), [M, O] = Xe(), P = I(0), T = I(null), D = Vn([B, T]);
|
|
989
989
|
return ne(() => {
|
|
990
|
-
M && M.current &&
|
|
991
|
-
}, [O, M, h, c,
|
|
992
|
-
T && T.current &&
|
|
990
|
+
M && M.current && v && (P.current = O.width + Un[h] + (c ? 0 : Fn));
|
|
991
|
+
}, [O, M, h, c, v]), ne(() => {
|
|
992
|
+
T && T.current && v && (g && x && L.width > 0 ? (x.current && (x.current.style.opacity = "100"), T.current.style.width = `${L.width + P.current}px`) : p && $.width > 0 ? (N.current && (N.current.style.opacity = "100"), T.current.style.width = `${$.width + P.current}px`) : (x.current && (x.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${Hn[h]}px`));
|
|
993
993
|
}, [
|
|
994
994
|
L,
|
|
995
995
|
g,
|
|
996
|
-
|
|
996
|
+
x,
|
|
997
997
|
$,
|
|
998
998
|
p,
|
|
999
999
|
N,
|
|
1000
1000
|
h,
|
|
1001
|
-
|
|
1001
|
+
v
|
|
1002
1002
|
]), /* @__PURE__ */ _(
|
|
1003
|
-
|
|
1003
|
+
zr,
|
|
1004
1004
|
{
|
|
1005
1005
|
ref: D,
|
|
1006
1006
|
className: A,
|
|
@@ -1023,7 +1023,7 @@ const Vn = {
|
|
|
1023
1023
|
Xt,
|
|
1024
1024
|
{
|
|
1025
1025
|
label: g,
|
|
1026
|
-
labelRef:
|
|
1026
|
+
labelRef: x,
|
|
1027
1027
|
labelClass: S,
|
|
1028
1028
|
labelInnerClass: "pl-2"
|
|
1029
1029
|
}
|
|
@@ -1038,7 +1038,7 @@ const Vn = {
|
|
|
1038
1038
|
label: r,
|
|
1039
1039
|
labelInnerClass: a
|
|
1040
1040
|
}) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
|
|
1041
|
-
|
|
1041
|
+
Vr.displayName = "ButtonIcon";
|
|
1042
1042
|
/*!
|
|
1043
1043
|
@versini/ui-button v4.2.8
|
|
1044
1044
|
© 2025 gizmette.com
|
|
@@ -1052,7 +1052,7 @@ try {
|
|
|
1052
1052
|
});
|
|
1053
1053
|
} catch {
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const Dr = H.forwardRef(
|
|
1056
1056
|
({
|
|
1057
1057
|
children: e,
|
|
1058
1058
|
mode: t = "system",
|
|
@@ -1078,7 +1078,7 @@ const zr = H.forwardRef(
|
|
|
1078
1078
|
}
|
|
1079
1079
|
) : "";
|
|
1080
1080
|
return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
|
|
1081
|
-
|
|
1081
|
+
Vr,
|
|
1082
1082
|
{
|
|
1083
1083
|
className: d("justify-center", r),
|
|
1084
1084
|
ref: o,
|
|
@@ -1090,7 +1090,7 @@ const zr = H.forwardRef(
|
|
|
1090
1090
|
) });
|
|
1091
1091
|
}
|
|
1092
1092
|
);
|
|
1093
|
-
|
|
1093
|
+
Dr.displayName = "ButtonSort";
|
|
1094
1094
|
const _t = ({
|
|
1095
1095
|
children: e,
|
|
1096
1096
|
fill: t,
|
|
@@ -1134,7 +1134,7 @@ try {
|
|
|
1134
1134
|
});
|
|
1135
1135
|
} catch {
|
|
1136
1136
|
}
|
|
1137
|
-
const
|
|
1137
|
+
const Wn = ({
|
|
1138
1138
|
className: e,
|
|
1139
1139
|
viewBox: t,
|
|
1140
1140
|
title: r,
|
|
@@ -1160,7 +1160,7 @@ const Un = ({
|
|
|
1160
1160
|
/* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
|
|
1161
1161
|
]
|
|
1162
1162
|
}
|
|
1163
|
-
),
|
|
1163
|
+
), jn = ({
|
|
1164
1164
|
className: e,
|
|
1165
1165
|
viewBox: t,
|
|
1166
1166
|
title: r,
|
|
@@ -1186,7 +1186,7 @@ const Un = ({
|
|
|
1186
1186
|
/* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
|
|
1187
1187
|
]
|
|
1188
1188
|
}
|
|
1189
|
-
),
|
|
1189
|
+
), Gn = ({
|
|
1190
1190
|
className: e,
|
|
1191
1191
|
viewBox: t,
|
|
1192
1192
|
title: r,
|
|
@@ -1245,7 +1245,7 @@ const fe = H.createContext({
|
|
|
1245
1245
|
stickyFooter: u,
|
|
1246
1246
|
...m
|
|
1247
1247
|
}) => {
|
|
1248
|
-
const h =
|
|
1248
|
+
const h = vn({
|
|
1249
1249
|
mode: t,
|
|
1250
1250
|
className: o,
|
|
1251
1251
|
wrapperClassName: i,
|
|
@@ -1277,8 +1277,8 @@ const fe = H.createContext({
|
|
|
1277
1277
|
...r
|
|
1278
1278
|
}) => {
|
|
1279
1279
|
const a = V(fe);
|
|
1280
|
-
a.cellWrapper =
|
|
1281
|
-
const n =
|
|
1280
|
+
a.cellWrapper = De;
|
|
1281
|
+
const n = kn({
|
|
1282
1282
|
className: t,
|
|
1283
1283
|
mode: a.mode,
|
|
1284
1284
|
stickyHeader: a.stickyHeader
|
|
@@ -1291,7 +1291,7 @@ const fe = H.createContext({
|
|
|
1291
1291
|
}) => {
|
|
1292
1292
|
const a = V(fe);
|
|
1293
1293
|
a.cellWrapper = xt;
|
|
1294
|
-
const n =
|
|
1294
|
+
const n = wn({
|
|
1295
1295
|
className: t,
|
|
1296
1296
|
mode: a.mode,
|
|
1297
1297
|
stickyFooter: a.stickyFooter
|
|
@@ -1305,20 +1305,20 @@ const fe = H.createContext({
|
|
|
1305
1305
|
className: t,
|
|
1306
1306
|
...r
|
|
1307
1307
|
}) => {
|
|
1308
|
-
const a = V(fe), n =
|
|
1308
|
+
const a = V(fe), n = xn({
|
|
1309
1309
|
mode: a.mode,
|
|
1310
1310
|
cellWrapper: a.cellWrapper,
|
|
1311
1311
|
className: t
|
|
1312
1312
|
});
|
|
1313
1313
|
return /* @__PURE__ */ l("tr", { className: n, ...r, children: e });
|
|
1314
|
-
},
|
|
1314
|
+
}, Yn = ({
|
|
1315
1315
|
children: e,
|
|
1316
1316
|
component: t,
|
|
1317
1317
|
className: r,
|
|
1318
1318
|
align: a,
|
|
1319
1319
|
...n
|
|
1320
1320
|
}) => {
|
|
1321
|
-
const o = V(fe), i = t || (o.cellWrapper ===
|
|
1321
|
+
const o = V(fe), i = t || (o.cellWrapper === De ? "th" : "td"), { mainClasses: s, alignClasses: c } = _n({
|
|
1322
1322
|
cellWrapper: o.cellWrapper,
|
|
1323
1323
|
className: r,
|
|
1324
1324
|
mode: o.mode,
|
|
@@ -1340,9 +1340,9 @@ const fe = H.createContext({
|
|
|
1340
1340
|
cellId: m,
|
|
1341
1341
|
...h
|
|
1342
1342
|
}) => {
|
|
1343
|
-
const g =
|
|
1343
|
+
const g = Nn({ buttonClassName: r });
|
|
1344
1344
|
return /* @__PURE__ */ l(
|
|
1345
|
-
|
|
1345
|
+
Yn,
|
|
1346
1346
|
{
|
|
1347
1347
|
component: n,
|
|
1348
1348
|
className: a,
|
|
@@ -1350,7 +1350,7 @@ const fe = H.createContext({
|
|
|
1350
1350
|
"aria-sort": c === ve.ASC && u === m ? "ascending" : c === ve.DESC && u === m ? "descending" : "other",
|
|
1351
1351
|
...h,
|
|
1352
1352
|
children: /* @__PURE__ */ l(
|
|
1353
|
-
|
|
1353
|
+
Dr,
|
|
1354
1354
|
{
|
|
1355
1355
|
active: u === m,
|
|
1356
1356
|
className: g,
|
|
@@ -1361,7 +1361,7 @@ const fe = H.createContext({
|
|
|
1361
1361
|
mode: i,
|
|
1362
1362
|
fullWidth: !0,
|
|
1363
1363
|
labelRight: t,
|
|
1364
|
-
children: c === ve.ASC && u === m ? /* @__PURE__ */ l(
|
|
1364
|
+
children: c === ve.ASC && u === m ? /* @__PURE__ */ l(Gn, { className: "size-4", monotone: !0 }) : c === ve.DESC && u === m ? /* @__PURE__ */ l(jn, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Wn, { className: "size-4", monotone: !0 })
|
|
1365
1365
|
}
|
|
1366
1366
|
)
|
|
1367
1367
|
}
|
|
@@ -1369,39 +1369,39 @@ const fe = H.createContext({
|
|
|
1369
1369
|
}, U = [];
|
|
1370
1370
|
for (let e = 0; e < 256; ++e)
|
|
1371
1371
|
U.push((e + 256).toString(16).slice(1));
|
|
1372
|
-
function
|
|
1372
|
+
function qn(e, t = 0) {
|
|
1373
1373
|
return (U[e[t + 0]] + U[e[t + 1]] + U[e[t + 2]] + U[e[t + 3]] + "-" + U[e[t + 4]] + U[e[t + 5]] + "-" + U[e[t + 6]] + U[e[t + 7]] + "-" + U[e[t + 8]] + U[e[t + 9]] + "-" + U[e[t + 10]] + U[e[t + 11]] + U[e[t + 12]] + U[e[t + 13]] + U[e[t + 14]] + U[e[t + 15]]).toLowerCase();
|
|
1374
1374
|
}
|
|
1375
|
-
let
|
|
1376
|
-
const
|
|
1377
|
-
function
|
|
1378
|
-
if (!
|
|
1375
|
+
let Je;
|
|
1376
|
+
const Zn = new Uint8Array(16);
|
|
1377
|
+
function Kn() {
|
|
1378
|
+
if (!Je) {
|
|
1379
1379
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
1380
1380
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
1381
|
-
|
|
1381
|
+
Je = crypto.getRandomValues.bind(crypto);
|
|
1382
1382
|
}
|
|
1383
|
-
return
|
|
1383
|
+
return Je(Zn);
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
function
|
|
1385
|
+
const Xn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Jt = { randomUUID: Xn };
|
|
1386
|
+
function Ae(e, t, r) {
|
|
1387
1387
|
var n;
|
|
1388
1388
|
if (Jt.randomUUID && !e)
|
|
1389
1389
|
return Jt.randomUUID();
|
|
1390
1390
|
e = e || {};
|
|
1391
|
-
const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ??
|
|
1391
|
+
const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Kn();
|
|
1392
1392
|
if (a.length < 16)
|
|
1393
1393
|
throw new Error("Random bytes length must be >= 16");
|
|
1394
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
1394
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, qn(a);
|
|
1395
1395
|
}
|
|
1396
|
-
const
|
|
1396
|
+
const Jn = (e, t) => {
|
|
1397
1397
|
switch (t == null ? void 0 : t.type) {
|
|
1398
|
-
case
|
|
1398
|
+
case fa:
|
|
1399
1399
|
return {
|
|
1400
1400
|
searchString: t.payload.searchString,
|
|
1401
1401
|
sortedCell: e.sortedCell,
|
|
1402
1402
|
sortDirection: e.sortDirection
|
|
1403
1403
|
};
|
|
1404
|
-
case
|
|
1404
|
+
case ga:
|
|
1405
1405
|
return {
|
|
1406
1406
|
searchString: e.searchString,
|
|
1407
1407
|
sortedCell: t.payload.sortedCell,
|
|
@@ -1410,14 +1410,14 @@ const Kn = (e, t) => {
|
|
|
1410
1410
|
default:
|
|
1411
1411
|
return e;
|
|
1412
1412
|
}
|
|
1413
|
-
},
|
|
1413
|
+
}, Qn = (e, t) => {
|
|
1414
1414
|
switch (t == null ? void 0 : t.type) {
|
|
1415
|
-
case
|
|
1415
|
+
case xr:
|
|
1416
1416
|
return {
|
|
1417
1417
|
prompt: t.payload.prompt,
|
|
1418
1418
|
lastTriggeredTimestamp: e.lastTriggeredTimestamp
|
|
1419
1419
|
};
|
|
1420
|
-
case
|
|
1420
|
+
case wr:
|
|
1421
1421
|
return {
|
|
1422
1422
|
prompt: "",
|
|
1423
1423
|
lastTriggeredTimestamp: (/* @__PURE__ */ new Date()).getTime()
|
|
@@ -1425,15 +1425,15 @@ const Kn = (e, t) => {
|
|
|
1425
1425
|
default:
|
|
1426
1426
|
return e;
|
|
1427
1427
|
}
|
|
1428
|
-
},
|
|
1428
|
+
}, _e = "FOOTER_BOTTOM", lt = "FOOTER_TOP", Le = "APP_SET_FOOTER_POSITION", Hr = "APP_SET_FOOTER_HEIGHT", eo = (e, t) => {
|
|
1429
1429
|
switch (t.type) {
|
|
1430
|
-
case
|
|
1430
|
+
case Le:
|
|
1431
1431
|
return {
|
|
1432
1432
|
...e,
|
|
1433
1433
|
footerPosition: t.payload.footerPosition,
|
|
1434
1434
|
footerOffset: t.payload.footerOffset
|
|
1435
1435
|
};
|
|
1436
|
-
case
|
|
1436
|
+
case Hr:
|
|
1437
1437
|
return {
|
|
1438
1438
|
...e,
|
|
1439
1439
|
footerHeight: t.payload.footerHeight
|
|
@@ -1441,11 +1441,11 @@ const Kn = (e, t) => {
|
|
|
1441
1441
|
default:
|
|
1442
1442
|
return e;
|
|
1443
1443
|
}
|
|
1444
|
-
}, ke = "CHAT_ADD_MESSAGE", ct = "CHAT_ADD_INTERNAL_MESSAGE", dt = "CHAT_SET_LOADING", ut = "CHAT_SET_STREAMING", pe = "CHAT_RESET",
|
|
1444
|
+
}, ke = "CHAT_ADD_MESSAGE", ct = "CHAT_ADD_INTERNAL_MESSAGE", dt = "CHAT_SET_LOADING", ut = "CHAT_SET_STREAMING", pe = "CHAT_RESET", to = "CHAT_RESTORE", ro = (e, t) => {
|
|
1445
1445
|
var r, a, n, o, i, s, c, u, m, h, g, p;
|
|
1446
1446
|
switch (t.type) {
|
|
1447
1447
|
case ke: {
|
|
1448
|
-
const f = (r = t.payload) == null ? void 0 : r.role, y = (a = t.payload) == null ? void 0 : a.messageId, b = (n = t.payload) == null ? void 0 : n.content,
|
|
1448
|
+
const f = (r = t.payload) == null ? void 0 : r.role, y = (a = t.payload) == null ? void 0 : a.messageId, b = (n = t.payload) == null ? void 0 : n.content, k = (o = t.payload) == null ? void 0 : o.name, w = (i = t.payload) == null ? void 0 : i.processingTime, v = (s = t.payload) == null ? void 0 : s.usage, R = ((c = t.payload) == null ? void 0 : c.model) || e.model;
|
|
1449
1449
|
if ((f === xe || f === ae) && y) {
|
|
1450
1450
|
const B = e.messages.findIndex(
|
|
1451
1451
|
(A) => A.messageId === y
|
|
@@ -1454,9 +1454,9 @@ const Kn = (e, t) => {
|
|
|
1454
1454
|
const A = e.messages.map((E, S) => S === B ? {
|
|
1455
1455
|
...E,
|
|
1456
1456
|
content: `${E.content}${b}`,
|
|
1457
|
-
processingTime:
|
|
1458
|
-
name:
|
|
1459
|
-
usage:
|
|
1457
|
+
processingTime: w,
|
|
1458
|
+
name: k,
|
|
1459
|
+
usage: v
|
|
1460
1460
|
} : E);
|
|
1461
1461
|
return {
|
|
1462
1462
|
...e,
|
|
@@ -1473,9 +1473,9 @@ const Kn = (e, t) => {
|
|
|
1473
1473
|
{
|
|
1474
1474
|
role: f,
|
|
1475
1475
|
content: b,
|
|
1476
|
-
name:
|
|
1477
|
-
processingTime:
|
|
1478
|
-
usage:
|
|
1476
|
+
name: k,
|
|
1477
|
+
processingTime: w,
|
|
1478
|
+
usage: v,
|
|
1479
1479
|
messageId: y
|
|
1480
1480
|
}
|
|
1481
1481
|
]
|
|
@@ -1512,7 +1512,7 @@ const Kn = (e, t) => {
|
|
|
1512
1512
|
case pe: {
|
|
1513
1513
|
let f = !1;
|
|
1514
1514
|
return typeof ((g = t == null ? void 0 : t.payload) == null ? void 0 : g.privateChat) == "boolean" ? f = t.payload.privateChat : typeof e.privateChat == "boolean" && (f = e.privateChat), {
|
|
1515
|
-
id:
|
|
1515
|
+
id: Ae(),
|
|
1516
1516
|
model: e.model,
|
|
1517
1517
|
provider: ((p = t == null ? void 0 : t.payload) == null ? void 0 : p.provider) || e.provider,
|
|
1518
1518
|
privateChat: f,
|
|
@@ -1523,7 +1523,7 @@ const Kn = (e, t) => {
|
|
|
1523
1523
|
lastTriggeredTimestamp: 0
|
|
1524
1524
|
};
|
|
1525
1525
|
}
|
|
1526
|
-
case
|
|
1526
|
+
case to: {
|
|
1527
1527
|
const f = t.payload.messages.map((y) => ({
|
|
1528
1528
|
role: y.role,
|
|
1529
1529
|
content: y.content,
|
|
@@ -1543,19 +1543,19 @@ const Kn = (e, t) => {
|
|
|
1543
1543
|
default:
|
|
1544
1544
|
return e;
|
|
1545
1545
|
}
|
|
1546
|
-
},
|
|
1546
|
+
}, ao = "z-20", no = "z-10", oo = H.createContext({
|
|
1547
1547
|
state: { searchString: "", sortedCell: "", sortDirection: "" },
|
|
1548
1548
|
dispatch: () => {
|
|
1549
1549
|
}
|
|
1550
|
-
}),
|
|
1550
|
+
}), Ue = H.createContext({
|
|
1551
1551
|
state: { prompt: "", lastTriggeredTimestamp: 0 },
|
|
1552
1552
|
dispatch: () => {
|
|
1553
1553
|
}
|
|
1554
1554
|
}), Z = H.createContext({
|
|
1555
1555
|
state: {
|
|
1556
1556
|
id: "",
|
|
1557
|
-
model:
|
|
1558
|
-
provider:
|
|
1557
|
+
model: Oe,
|
|
1558
|
+
provider: Oe,
|
|
1559
1559
|
privateChat: !1,
|
|
1560
1560
|
usage: 0,
|
|
1561
1561
|
messages: [],
|
|
@@ -1568,7 +1568,7 @@ const Kn = (e, t) => {
|
|
|
1568
1568
|
}
|
|
1569
1569
|
}), Nt = H.createContext({
|
|
1570
1570
|
state: {
|
|
1571
|
-
footerPosition:
|
|
1571
|
+
footerPosition: lt,
|
|
1572
1572
|
footerHeight: 0,
|
|
1573
1573
|
footerOffset: 0
|
|
1574
1574
|
},
|
|
@@ -1588,31 +1588,31 @@ try {
|
|
|
1588
1588
|
});
|
|
1589
1589
|
} catch {
|
|
1590
1590
|
}
|
|
1591
|
-
const
|
|
1591
|
+
const io = "av-tooltip", so = "av-tooltip-arrow", Ne = Math.min, ce = Math.max, Me = Math.round, X = (e) => ({
|
|
1592
1592
|
x: e,
|
|
1593
1593
|
y: e
|
|
1594
|
-
}),
|
|
1594
|
+
}), lo = {
|
|
1595
1595
|
left: "right",
|
|
1596
1596
|
right: "left",
|
|
1597
1597
|
bottom: "top",
|
|
1598
1598
|
top: "bottom"
|
|
1599
|
-
},
|
|
1599
|
+
}, co = {
|
|
1600
1600
|
start: "end",
|
|
1601
1601
|
end: "start"
|
|
1602
1602
|
};
|
|
1603
1603
|
function mt(e, t, r) {
|
|
1604
|
-
return ce(e,
|
|
1604
|
+
return ce(e, Ne(t, r));
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function Ie(e, t) {
|
|
1607
1607
|
return typeof e == "function" ? e(t) : e;
|
|
1608
1608
|
}
|
|
1609
1609
|
function ie(e) {
|
|
1610
1610
|
return e.split("-")[0];
|
|
1611
1611
|
}
|
|
1612
|
-
function
|
|
1612
|
+
function Ce(e) {
|
|
1613
1613
|
return e.split("-")[1];
|
|
1614
1614
|
}
|
|
1615
|
-
function
|
|
1615
|
+
function Ur(e) {
|
|
1616
1616
|
return e === "x" ? "y" : "x";
|
|
1617
1617
|
}
|
|
1618
1618
|
function Tt(e) {
|
|
@@ -1622,22 +1622,22 @@ function ue(e) {
|
|
|
1622
1622
|
return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
|
|
1623
1623
|
}
|
|
1624
1624
|
function It(e) {
|
|
1625
|
-
return
|
|
1625
|
+
return Ur(ue(e));
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function uo(e, t, r) {
|
|
1628
1628
|
r === void 0 && (r = !1);
|
|
1629
|
-
const a =
|
|
1629
|
+
const a = Ce(e), n = It(e), o = Tt(n);
|
|
1630
1630
|
let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
|
|
1631
|
-
return t.reference[o] > t.floating[o] && (i =
|
|
1631
|
+
return t.reference[o] > t.floating[o] && (i = Pe(i)), [i, Pe(i)];
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1634
|
-
const t =
|
|
1633
|
+
function mo(e) {
|
|
1634
|
+
const t = Pe(e);
|
|
1635
1635
|
return [ht(e), t, ht(t)];
|
|
1636
1636
|
}
|
|
1637
1637
|
function ht(e) {
|
|
1638
|
-
return e.replace(/start|end/g, (t) =>
|
|
1638
|
+
return e.replace(/start|end/g, (t) => co[t]);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1640
|
+
function ho(e, t, r) {
|
|
1641
1641
|
const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
|
|
1642
1642
|
switch (e) {
|
|
1643
1643
|
case "top":
|
|
@@ -1650,15 +1650,15 @@ function uo(e, t, r) {
|
|
|
1650
1650
|
return [];
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1654
|
-
const n =
|
|
1655
|
-
let o =
|
|
1653
|
+
function go(e, t, r, a) {
|
|
1654
|
+
const n = Ce(e);
|
|
1655
|
+
let o = ho(ie(e), r === "start", a);
|
|
1656
1656
|
return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(ht)))), o;
|
|
1657
1657
|
}
|
|
1658
|
-
function
|
|
1659
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1658
|
+
function Pe(e) {
|
|
1659
|
+
return e.replace(/left|right|bottom|top/g, (t) => lo[t]);
|
|
1660
1660
|
}
|
|
1661
|
-
function
|
|
1661
|
+
function fo(e) {
|
|
1662
1662
|
return {
|
|
1663
1663
|
top: 0,
|
|
1664
1664
|
right: 0,
|
|
@@ -1667,15 +1667,15 @@ function ho(e) {
|
|
|
1667
1667
|
...e
|
|
1668
1668
|
};
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
return typeof e != "number" ?
|
|
1670
|
+
function Fr(e) {
|
|
1671
|
+
return typeof e != "number" ? fo(e) : {
|
|
1672
1672
|
top: e,
|
|
1673
1673
|
right: e,
|
|
1674
1674
|
bottom: e,
|
|
1675
1675
|
left: e
|
|
1676
1676
|
};
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function ze(e) {
|
|
1679
1679
|
const {
|
|
1680
1680
|
x: t,
|
|
1681
1681
|
y: r,
|
|
@@ -1731,7 +1731,7 @@ function Qt(e, t, r) {
|
|
|
1731
1731
|
y: a.y
|
|
1732
1732
|
};
|
|
1733
1733
|
}
|
|
1734
|
-
switch (
|
|
1734
|
+
switch (Ce(t)) {
|
|
1735
1735
|
case "start":
|
|
1736
1736
|
p[i] -= g * (r && u ? -1 : 1);
|
|
1737
1737
|
break;
|
|
@@ -1741,7 +1741,7 @@ function Qt(e, t, r) {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
return p;
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1744
|
+
const po = async (e, t, r) => {
|
|
1745
1745
|
const {
|
|
1746
1746
|
placement: a = "bottom",
|
|
1747
1747
|
strategy: n = "absolute",
|
|
@@ -1759,13 +1759,13 @@ const go = async (e, t, r) => {
|
|
|
1759
1759
|
for (let y = 0; y < s.length; y++) {
|
|
1760
1760
|
const {
|
|
1761
1761
|
name: b,
|
|
1762
|
-
fn:
|
|
1762
|
+
fn: k
|
|
1763
1763
|
} = s[y], {
|
|
1764
|
-
x,
|
|
1765
|
-
y:
|
|
1764
|
+
x: w,
|
|
1765
|
+
y: v,
|
|
1766
1766
|
data: R,
|
|
1767
1767
|
reset: B
|
|
1768
|
-
} = await
|
|
1768
|
+
} = await k({
|
|
1769
1769
|
x: m,
|
|
1770
1770
|
y: h,
|
|
1771
1771
|
initialPlacement: a,
|
|
@@ -1779,7 +1779,7 @@ const go = async (e, t, r) => {
|
|
|
1779
1779
|
floating: t
|
|
1780
1780
|
}
|
|
1781
1781
|
});
|
|
1782
|
-
m =
|
|
1782
|
+
m = w ?? m, h = v ?? h, p = {
|
|
1783
1783
|
...p,
|
|
1784
1784
|
[b]: {
|
|
1785
1785
|
...p[b],
|
|
@@ -1802,7 +1802,7 @@ const go = async (e, t, r) => {
|
|
|
1802
1802
|
middlewareData: p
|
|
1803
1803
|
};
|
|
1804
1804
|
};
|
|
1805
|
-
async function
|
|
1805
|
+
async function Wr(e, t) {
|
|
1806
1806
|
var r;
|
|
1807
1807
|
t === void 0 && (t = {});
|
|
1808
1808
|
const {
|
|
@@ -1818,36 +1818,36 @@ async function Ur(e, t) {
|
|
|
1818
1818
|
elementContext: h = "floating",
|
|
1819
1819
|
altBoundary: g = !1,
|
|
1820
1820
|
padding: p = 0
|
|
1821
|
-
} =
|
|
1821
|
+
} = Ie(t, e), f = Fr(p), y = s[g ? h === "floating" ? "reference" : "floating" : h], b = ze(await o.getClippingRect({
|
|
1822
1822
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(y))) == null || r ? y : y.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
1823
1823
|
boundary: u,
|
|
1824
1824
|
rootBoundary: m,
|
|
1825
1825
|
strategy: c
|
|
1826
|
-
})),
|
|
1826
|
+
})), k = h === "floating" ? {
|
|
1827
1827
|
x: a,
|
|
1828
1828
|
y: n,
|
|
1829
1829
|
width: i.floating.width,
|
|
1830
1830
|
height: i.floating.height
|
|
1831
|
-
} : i.reference,
|
|
1831
|
+
} : i.reference, w = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), v = await (o.isElement == null ? void 0 : o.isElement(w)) ? await (o.getScale == null ? void 0 : o.getScale(w)) || {
|
|
1832
1832
|
x: 1,
|
|
1833
1833
|
y: 1
|
|
1834
1834
|
} : {
|
|
1835
1835
|
x: 1,
|
|
1836
1836
|
y: 1
|
|
1837
|
-
}, R =
|
|
1837
|
+
}, R = ze(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
1838
1838
|
elements: s,
|
|
1839
|
-
rect:
|
|
1840
|
-
offsetParent:
|
|
1839
|
+
rect: k,
|
|
1840
|
+
offsetParent: w,
|
|
1841
1841
|
strategy: c
|
|
1842
|
-
}) :
|
|
1842
|
+
}) : k);
|
|
1843
1843
|
return {
|
|
1844
|
-
top: (b.top - R.top + f.top) /
|
|
1845
|
-
bottom: (R.bottom - b.bottom + f.bottom) /
|
|
1846
|
-
left: (b.left - R.left + f.left) /
|
|
1847
|
-
right: (R.right - b.right + f.right) /
|
|
1844
|
+
top: (b.top - R.top + f.top) / v.y,
|
|
1845
|
+
bottom: (R.bottom - b.bottom + f.bottom) / v.y,
|
|
1846
|
+
left: (b.left - R.left + f.left) / v.x,
|
|
1847
|
+
right: (R.right - b.right + f.right) / v.x
|
|
1848
1848
|
};
|
|
1849
1849
|
}
|
|
1850
|
-
const
|
|
1850
|
+
const bo = (e) => ({
|
|
1851
1851
|
name: "arrow",
|
|
1852
1852
|
options: e,
|
|
1853
1853
|
async fn(t) {
|
|
@@ -1862,16 +1862,16 @@ const fo = (e) => ({
|
|
|
1862
1862
|
} = t, {
|
|
1863
1863
|
element: u,
|
|
1864
1864
|
padding: m = 0
|
|
1865
|
-
} =
|
|
1865
|
+
} = Ie(e, t) || {};
|
|
1866
1866
|
if (u == null)
|
|
1867
1867
|
return {};
|
|
1868
|
-
const h =
|
|
1868
|
+
const h = Fr(m), g = {
|
|
1869
1869
|
x: r,
|
|
1870
1870
|
y: a
|
|
1871
|
-
}, p = It(n), f = Tt(p), y = await i.getDimensions(u), b = p === "y",
|
|
1872
|
-
let E = A ? A[
|
|
1873
|
-
(!E || !await (i.isElement == null ? void 0 : i.isElement(A))) && (E = s.floating[
|
|
1874
|
-
const S = R / 2 - B / 2,
|
|
1871
|
+
}, p = It(n), f = Tt(p), y = await i.getDimensions(u), b = p === "y", k = b ? "top" : "left", w = b ? "bottom" : "right", v = b ? "clientHeight" : "clientWidth", R = o.reference[f] + o.reference[p] - g[p] - o.floating[f], B = g[p] - o.reference[p], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
1872
|
+
let E = A ? A[v] : 0;
|
|
1873
|
+
(!E || !await (i.isElement == null ? void 0 : i.isElement(A))) && (E = s.floating[v] || o.floating[f]);
|
|
1874
|
+
const S = R / 2 - B / 2, x = E / 2 - y[f] / 2 - 1, L = Ne(h[k], x), N = Ne(h[w], x), $ = L, M = E - y[f] - N, O = E / 2 - y[f] / 2 + S, P = mt($, O, M), T = !c.arrow && Ce(n) != null && O !== P && o.reference[f] / 2 - (O < $ ? L : N) - y[f] / 2 < 0, D = T ? O < $ ? O - $ : O - M : 0;
|
|
1875
1875
|
return {
|
|
1876
1876
|
[p]: g[p] + D,
|
|
1877
1877
|
data: {
|
|
@@ -1884,7 +1884,7 @@ const fo = (e) => ({
|
|
|
1884
1884
|
reset: T
|
|
1885
1885
|
};
|
|
1886
1886
|
}
|
|
1887
|
-
}),
|
|
1887
|
+
}), yo = function(e) {
|
|
1888
1888
|
return e === void 0 && (e = {}), {
|
|
1889
1889
|
name: "flip",
|
|
1890
1890
|
options: e,
|
|
@@ -1905,21 +1905,21 @@ const fo = (e) => ({
|
|
|
1905
1905
|
fallbackAxisSideDirection: f = "none",
|
|
1906
1906
|
flipAlignment: y = !0,
|
|
1907
1907
|
...b
|
|
1908
|
-
} =
|
|
1908
|
+
} = Ie(e, t);
|
|
1909
1909
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
1910
1910
|
return {};
|
|
1911
|
-
const
|
|
1912
|
-
!g && A && B.push(...
|
|
1913
|
-
const E = [s, ...B], S = await
|
|
1911
|
+
const k = ie(n), w = ue(s), v = ie(s) === s, R = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), B = g || (v || !y ? [Pe(s)] : mo(s)), A = f !== "none";
|
|
1912
|
+
!g && A && B.push(...go(s, y, f, R));
|
|
1913
|
+
const E = [s, ...B], S = await Wr(t, b), x = [];
|
|
1914
1914
|
let L = ((a = o.flip) == null ? void 0 : a.overflows) || [];
|
|
1915
|
-
if (m &&
|
|
1916
|
-
const O =
|
|
1917
|
-
|
|
1915
|
+
if (m && x.push(S[k]), h) {
|
|
1916
|
+
const O = uo(n, i, R);
|
|
1917
|
+
x.push(S[O[0]], S[O[1]]);
|
|
1918
1918
|
}
|
|
1919
1919
|
if (L = [...L, {
|
|
1920
1920
|
placement: n,
|
|
1921
|
-
overflows:
|
|
1922
|
-
}], !
|
|
1921
|
+
overflows: x
|
|
1922
|
+
}], !x.every((O) => O <= 0)) {
|
|
1923
1923
|
var N, $;
|
|
1924
1924
|
const O = (((N = o.flip) == null ? void 0 : N.index) || 0) + 1, P = E[O];
|
|
1925
1925
|
if (P)
|
|
@@ -1940,12 +1940,12 @@ const fo = (e) => ({
|
|
|
1940
1940
|
const D = (M = L.filter((K) => {
|
|
1941
1941
|
if (A) {
|
|
1942
1942
|
const j = ue(K.placement);
|
|
1943
|
-
return j ===
|
|
1943
|
+
return j === w || // Create a bias to the `y` side axis due to horizontal
|
|
1944
1944
|
// reading directions favoring greater width.
|
|
1945
1945
|
j === "y";
|
|
1946
1946
|
}
|
|
1947
1947
|
return !0;
|
|
1948
|
-
}).map((K) => [K.placement, K.overflows.filter((j) => j > 0).reduce((j,
|
|
1948
|
+
}).map((K) => [K.placement, K.overflows.filter((j) => j > 0).reduce((j, ha) => j + ha, 0)]).sort((K, j) => K[1] - j[1])[0]) == null ? void 0 : M[0];
|
|
1949
1949
|
D && (T = D);
|
|
1950
1950
|
break;
|
|
1951
1951
|
}
|
|
@@ -1964,12 +1964,12 @@ const fo = (e) => ({
|
|
|
1964
1964
|
}
|
|
1965
1965
|
};
|
|
1966
1966
|
};
|
|
1967
|
-
async function
|
|
1967
|
+
async function vo(e, t) {
|
|
1968
1968
|
const {
|
|
1969
1969
|
placement: r,
|
|
1970
1970
|
platform: a,
|
|
1971
1971
|
elements: n
|
|
1972
|
-
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ie(r), s =
|
|
1972
|
+
} = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ie(r), s = Ce(r), c = ue(r) === "y", u = ["left", "top"].includes(i) ? -1 : 1, m = o && c ? -1 : 1, h = Ie(t, e);
|
|
1973
1973
|
let {
|
|
1974
1974
|
mainAxis: g,
|
|
1975
1975
|
crossAxis: p,
|
|
@@ -1991,7 +1991,7 @@ async function bo(e, t) {
|
|
|
1991
1991
|
y: p * m
|
|
1992
1992
|
};
|
|
1993
1993
|
}
|
|
1994
|
-
const
|
|
1994
|
+
const ko = function(e) {
|
|
1995
1995
|
return e === void 0 && (e = 0), {
|
|
1996
1996
|
name: "offset",
|
|
1997
1997
|
options: e,
|
|
@@ -2002,7 +2002,7 @@ const yo = function(e) {
|
|
|
2002
2002
|
y: o,
|
|
2003
2003
|
placement: i,
|
|
2004
2004
|
middlewareData: s
|
|
2005
|
-
} = t, c = await
|
|
2005
|
+
} = t, c = await vo(t, e);
|
|
2006
2006
|
return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
|
|
2007
2007
|
x: n + c.x,
|
|
2008
2008
|
y: o + c.y,
|
|
@@ -2013,7 +2013,7 @@ const yo = function(e) {
|
|
|
2013
2013
|
};
|
|
2014
2014
|
}
|
|
2015
2015
|
};
|
|
2016
|
-
},
|
|
2016
|
+
}, wo = function(e) {
|
|
2017
2017
|
return e === void 0 && (e = {}), {
|
|
2018
2018
|
name: "shift",
|
|
2019
2019
|
options: e,
|
|
@@ -2028,28 +2028,28 @@ const yo = function(e) {
|
|
|
2028
2028
|
limiter: s = {
|
|
2029
2029
|
fn: (b) => {
|
|
2030
2030
|
let {
|
|
2031
|
-
x:
|
|
2032
|
-
y:
|
|
2031
|
+
x: k,
|
|
2032
|
+
y: w
|
|
2033
2033
|
} = b;
|
|
2034
2034
|
return {
|
|
2035
|
-
x:
|
|
2036
|
-
y:
|
|
2035
|
+
x: k,
|
|
2036
|
+
y: w
|
|
2037
2037
|
};
|
|
2038
2038
|
}
|
|
2039
2039
|
},
|
|
2040
2040
|
...c
|
|
2041
|
-
} =
|
|
2041
|
+
} = Ie(e, t), u = {
|
|
2042
2042
|
x: r,
|
|
2043
2043
|
y: a
|
|
2044
|
-
}, m = await
|
|
2044
|
+
}, m = await Wr(t, c), h = ue(ie(n)), g = Ur(h);
|
|
2045
2045
|
let p = u[g], f = u[h];
|
|
2046
2046
|
if (o) {
|
|
2047
|
-
const b = g === "y" ? "top" : "left",
|
|
2048
|
-
p = mt(
|
|
2047
|
+
const b = g === "y" ? "top" : "left", k = g === "y" ? "bottom" : "right", w = p + m[b], v = p - m[k];
|
|
2048
|
+
p = mt(w, p, v);
|
|
2049
2049
|
}
|
|
2050
2050
|
if (i) {
|
|
2051
|
-
const b = h === "y" ? "top" : "left",
|
|
2052
|
-
f = mt(
|
|
2051
|
+
const b = h === "y" ? "top" : "left", k = h === "y" ? "bottom" : "right", w = f + m[b], v = f - m[k];
|
|
2052
|
+
f = mt(w, f, v);
|
|
2053
2053
|
}
|
|
2054
2054
|
const y = s.fn({
|
|
2055
2055
|
...t,
|
|
@@ -2070,11 +2070,11 @@ const yo = function(e) {
|
|
|
2070
2070
|
}
|
|
2071
2071
|
};
|
|
2072
2072
|
};
|
|
2073
|
-
function
|
|
2073
|
+
function Fe() {
|
|
2074
2074
|
return typeof window < "u";
|
|
2075
2075
|
}
|
|
2076
2076
|
function be(e) {
|
|
2077
|
-
return
|
|
2077
|
+
return jr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2078
2078
|
}
|
|
2079
2079
|
function G(e) {
|
|
2080
2080
|
var t;
|
|
@@ -2082,21 +2082,21 @@ function G(e) {
|
|
|
2082
2082
|
}
|
|
2083
2083
|
function re(e) {
|
|
2084
2084
|
var t;
|
|
2085
|
-
return (t = (
|
|
2085
|
+
return (t = (jr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2088
|
-
return
|
|
2087
|
+
function jr(e) {
|
|
2088
|
+
return Fe() ? e instanceof Node || e instanceof G(e).Node : !1;
|
|
2089
2089
|
}
|
|
2090
2090
|
function Y(e) {
|
|
2091
|
-
return
|
|
2091
|
+
return Fe() ? e instanceof Element || e instanceof G(e).Element : !1;
|
|
2092
2092
|
}
|
|
2093
2093
|
function J(e) {
|
|
2094
|
-
return
|
|
2094
|
+
return Fe() ? e instanceof HTMLElement || e instanceof G(e).HTMLElement : !1;
|
|
2095
2095
|
}
|
|
2096
2096
|
function er(e) {
|
|
2097
|
-
return !
|
|
2097
|
+
return !Fe() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof G(e).ShadowRoot;
|
|
2098
2098
|
}
|
|
2099
|
-
function
|
|
2099
|
+
function Ee(e) {
|
|
2100
2100
|
const {
|
|
2101
2101
|
overflow: t,
|
|
2102
2102
|
overflowX: r,
|
|
@@ -2105,10 +2105,10 @@ function Ce(e) {
|
|
|
2105
2105
|
} = q(e);
|
|
2106
2106
|
return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
|
|
2107
2107
|
}
|
|
2108
|
-
function
|
|
2108
|
+
function xo(e) {
|
|
2109
2109
|
return ["table", "td", "th"].includes(be(e));
|
|
2110
2110
|
}
|
|
2111
|
-
function
|
|
2111
|
+
function We(e) {
|
|
2112
2112
|
return [":popover-open", ":modal"].some((t) => {
|
|
2113
2113
|
try {
|
|
2114
2114
|
return e.matches(t);
|
|
@@ -2121,12 +2121,12 @@ function Ct(e) {
|
|
|
2121
2121
|
const t = Et(), r = Y(e) ? q(e) : e;
|
|
2122
2122
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
|
|
2123
2123
|
}
|
|
2124
|
-
function
|
|
2124
|
+
function _o(e) {
|
|
2125
2125
|
let t = oe(e);
|
|
2126
2126
|
for (; J(t) && !me(t); ) {
|
|
2127
2127
|
if (Ct(t))
|
|
2128
2128
|
return t;
|
|
2129
|
-
if (
|
|
2129
|
+
if (We(t))
|
|
2130
2130
|
return null;
|
|
2131
2131
|
t = oe(t);
|
|
2132
2132
|
}
|
|
@@ -2141,7 +2141,7 @@ function me(e) {
|
|
|
2141
2141
|
function q(e) {
|
|
2142
2142
|
return G(e).getComputedStyle(e);
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function je(e) {
|
|
2145
2145
|
return Y(e) ? {
|
|
2146
2146
|
scrollLeft: e.scrollLeft,
|
|
2147
2147
|
scrollTop: e.scrollTop
|
|
@@ -2162,74 +2162,74 @@ function oe(e) {
|
|
|
2162
2162
|
);
|
|
2163
2163
|
return er(t) ? t.host : t;
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2165
|
+
function Gr(e) {
|
|
2166
2166
|
const t = oe(e);
|
|
2167
|
-
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) &&
|
|
2167
|
+
return me(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : J(t) && Ee(t) ? t : Gr(t);
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2169
|
+
function Yr(e, t, r) {
|
|
2170
2170
|
var a;
|
|
2171
2171
|
t === void 0 && (t = []);
|
|
2172
|
-
const n =
|
|
2173
|
-
return o ? t.concat(i, i.visualViewport || [],
|
|
2172
|
+
const n = Gr(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = G(n);
|
|
2173
|
+
return o ? t.concat(i, i.visualViewport || [], Ee(n) ? n : [], []) : t.concat(n, Yr(n, []));
|
|
2174
2174
|
}
|
|
2175
2175
|
function tr(e) {
|
|
2176
2176
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2177
2177
|
}
|
|
2178
|
-
function
|
|
2178
|
+
function qr(e) {
|
|
2179
2179
|
const t = q(e);
|
|
2180
2180
|
let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
|
|
2181
|
-
const n = J(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s =
|
|
2181
|
+
const n = J(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = Me(r) !== o || Me(a) !== i;
|
|
2182
2182
|
return s && (r = o, a = i), {
|
|
2183
2183
|
width: r,
|
|
2184
2184
|
height: a,
|
|
2185
2185
|
$: s
|
|
2186
2186
|
};
|
|
2187
2187
|
}
|
|
2188
|
-
function
|
|
2188
|
+
function Zr(e) {
|
|
2189
2189
|
return Y(e) ? e : e.contextElement;
|
|
2190
2190
|
}
|
|
2191
2191
|
function de(e) {
|
|
2192
|
-
const t =
|
|
2192
|
+
const t = Zr(e);
|
|
2193
2193
|
if (!J(t))
|
|
2194
2194
|
return X(1);
|
|
2195
2195
|
const r = t.getBoundingClientRect(), {
|
|
2196
2196
|
width: a,
|
|
2197
2197
|
height: n,
|
|
2198
2198
|
$: o
|
|
2199
|
-
} =
|
|
2200
|
-
let i = (o ?
|
|
2199
|
+
} = qr(t);
|
|
2200
|
+
let i = (o ? Me(r.width) : r.width) / a, s = (o ? Me(r.height) : r.height) / n;
|
|
2201
2201
|
return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
2202
2202
|
x: i,
|
|
2203
2203
|
y: s
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
|
-
const
|
|
2207
|
-
function
|
|
2206
|
+
const No = /* @__PURE__ */ X(0);
|
|
2207
|
+
function Kr(e) {
|
|
2208
2208
|
const t = G(e);
|
|
2209
|
-
return !Et() || !t.visualViewport ?
|
|
2209
|
+
return !Et() || !t.visualViewport ? No : {
|
|
2210
2210
|
x: t.visualViewport.offsetLeft,
|
|
2211
2211
|
y: t.visualViewport.offsetTop
|
|
2212
2212
|
};
|
|
2213
2213
|
}
|
|
2214
|
-
function
|
|
2214
|
+
function To(e, t, r) {
|
|
2215
2215
|
return t === void 0 && (t = !1), !r || t && r !== G(e) ? !1 : t;
|
|
2216
2216
|
}
|
|
2217
|
-
function
|
|
2217
|
+
function Te(e, t, r, a) {
|
|
2218
2218
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
2219
|
-
const n = e.getBoundingClientRect(), o =
|
|
2219
|
+
const n = e.getBoundingClientRect(), o = Zr(e);
|
|
2220
2220
|
let i = X(1);
|
|
2221
2221
|
t && (a ? Y(a) && (i = de(a)) : i = de(e));
|
|
2222
|
-
const s =
|
|
2222
|
+
const s = To(o, r, a) ? Kr(o) : X(0);
|
|
2223
2223
|
let c = (n.left + s.x) / i.x, u = (n.top + s.y) / i.y, m = n.width / i.x, h = n.height / i.y;
|
|
2224
2224
|
if (o) {
|
|
2225
2225
|
const g = G(o), p = a && Y(a) ? G(a) : a;
|
|
2226
2226
|
let f = g, y = tr(f);
|
|
2227
2227
|
for (; y && a && p !== f; ) {
|
|
2228
|
-
const b = de(y),
|
|
2229
|
-
c *= b.x, u *= b.y, m *= b.x, h *= b.y, c +=
|
|
2228
|
+
const b = de(y), k = y.getBoundingClientRect(), w = q(y), v = k.left + (y.clientLeft + parseFloat(w.paddingLeft)) * b.x, R = k.top + (y.clientTop + parseFloat(w.paddingTop)) * b.y;
|
|
2229
|
+
c *= b.x, u *= b.y, m *= b.x, h *= b.y, c += v, u += R, f = G(y), y = tr(f);
|
|
2230
2230
|
}
|
|
2231
2231
|
}
|
|
2232
|
-
return
|
|
2232
|
+
return ze({
|
|
2233
2233
|
width: m,
|
|
2234
2234
|
height: h,
|
|
2235
2235
|
x: c,
|
|
@@ -2237,10 +2237,10 @@ function Ne(e, t, r, a) {
|
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
2239
|
function Rt(e, t) {
|
|
2240
|
-
const r =
|
|
2241
|
-
return t ? t.left + r :
|
|
2240
|
+
const r = je(e).scrollLeft;
|
|
2241
|
+
return t ? t.left + r : Te(re(e)).left + r;
|
|
2242
2242
|
}
|
|
2243
|
-
function
|
|
2243
|
+
function Xr(e, t, r) {
|
|
2244
2244
|
r === void 0 && (r = !1);
|
|
2245
2245
|
const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
|
|
2246
2246
|
// RTL <body> scrollbar.
|
|
@@ -2251,14 +2251,14 @@ function Zr(e, t, r) {
|
|
|
2251
2251
|
y: o
|
|
2252
2252
|
};
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function Io(e) {
|
|
2255
2255
|
let {
|
|
2256
2256
|
elements: t,
|
|
2257
2257
|
rect: r,
|
|
2258
2258
|
offsetParent: a,
|
|
2259
2259
|
strategy: n
|
|
2260
2260
|
} = e;
|
|
2261
|
-
const o = n === "fixed", i = re(a), s = t ?
|
|
2261
|
+
const o = n === "fixed", i = re(a), s = t ? We(t.floating) : !1;
|
|
2262
2262
|
if (a === i || s && o)
|
|
2263
2263
|
return r;
|
|
2264
2264
|
let c = {
|
|
@@ -2266,11 +2266,11 @@ function No(e) {
|
|
|
2266
2266
|
scrollTop: 0
|
|
2267
2267
|
}, u = X(1);
|
|
2268
2268
|
const m = X(0), h = J(a);
|
|
2269
|
-
if ((h || !h && !o) && ((be(a) !== "body" ||
|
|
2270
|
-
const p =
|
|
2269
|
+
if ((h || !h && !o) && ((be(a) !== "body" || Ee(i)) && (c = je(a)), J(a))) {
|
|
2270
|
+
const p = Te(a);
|
|
2271
2271
|
u = de(a), m.x = p.x + a.clientLeft, m.y = p.y + a.clientTop;
|
|
2272
2272
|
}
|
|
2273
|
-
const g = i && !h && !o ?
|
|
2273
|
+
const g = i && !h && !o ? Xr(i, c, !0) : X(0);
|
|
2274
2274
|
return {
|
|
2275
2275
|
width: r.width * u.x,
|
|
2276
2276
|
height: r.height * u.y,
|
|
@@ -2278,11 +2278,11 @@ function No(e) {
|
|
|
2278
2278
|
y: r.y * u.y - c.scrollTop * u.y + m.y + g.y
|
|
2279
2279
|
};
|
|
2280
2280
|
}
|
|
2281
|
-
function
|
|
2281
|
+
function Co(e) {
|
|
2282
2282
|
return Array.from(e.getClientRects());
|
|
2283
2283
|
}
|
|
2284
|
-
function
|
|
2285
|
-
const t = re(e), r =
|
|
2284
|
+
function Eo(e) {
|
|
2285
|
+
const t = re(e), r = je(e), a = e.ownerDocument.body, n = ce(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = ce(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
|
|
2286
2286
|
let i = -r.scrollLeft + Rt(e);
|
|
2287
2287
|
const s = -r.scrollTop;
|
|
2288
2288
|
return q(a).direction === "rtl" && (i += ce(t.clientWidth, a.clientWidth) - n), {
|
|
@@ -2292,7 +2292,7 @@ function Io(e) {
|
|
|
2292
2292
|
y: s
|
|
2293
2293
|
};
|
|
2294
2294
|
}
|
|
2295
|
-
function
|
|
2295
|
+
function Ro(e, t) {
|
|
2296
2296
|
const r = G(e), a = re(e), n = r.visualViewport;
|
|
2297
2297
|
let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
|
|
2298
2298
|
if (n) {
|
|
@@ -2307,8 +2307,8 @@ function Co(e, t) {
|
|
|
2307
2307
|
y: c
|
|
2308
2308
|
};
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2311
|
-
const r =
|
|
2310
|
+
function So(e, t) {
|
|
2311
|
+
const r = Te(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = J(e) ? de(e) : X(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, u = a * o.y;
|
|
2312
2312
|
return {
|
|
2313
2313
|
width: i,
|
|
2314
2314
|
height: s,
|
|
@@ -2319,13 +2319,13 @@ function Eo(e, t) {
|
|
|
2319
2319
|
function rr(e, t, r) {
|
|
2320
2320
|
let a;
|
|
2321
2321
|
if (t === "viewport")
|
|
2322
|
-
a =
|
|
2322
|
+
a = Ro(e, r);
|
|
2323
2323
|
else if (t === "document")
|
|
2324
|
-
a =
|
|
2324
|
+
a = Eo(re(e));
|
|
2325
2325
|
else if (Y(t))
|
|
2326
|
-
a =
|
|
2326
|
+
a = So(t, r);
|
|
2327
2327
|
else {
|
|
2328
|
-
const n =
|
|
2328
|
+
const n = Kr(e);
|
|
2329
2329
|
a = {
|
|
2330
2330
|
x: t.x - n.x,
|
|
2331
2331
|
y: t.y - n.y,
|
|
@@ -2333,35 +2333,35 @@ function rr(e, t, r) {
|
|
|
2333
2333
|
height: t.height
|
|
2334
2334
|
};
|
|
2335
2335
|
}
|
|
2336
|
-
return
|
|
2336
|
+
return ze(a);
|
|
2337
2337
|
}
|
|
2338
|
-
function
|
|
2338
|
+
function Jr(e, t) {
|
|
2339
2339
|
const r = oe(e);
|
|
2340
|
-
return r === t || !Y(r) || me(r) ? !1 : q(r).position === "fixed" ||
|
|
2340
|
+
return r === t || !Y(r) || me(r) ? !1 : q(r).position === "fixed" || Jr(r, t);
|
|
2341
2341
|
}
|
|
2342
|
-
function
|
|
2342
|
+
function $o(e, t) {
|
|
2343
2343
|
const r = t.get(e);
|
|
2344
2344
|
if (r)
|
|
2345
2345
|
return r;
|
|
2346
|
-
let a =
|
|
2346
|
+
let a = Yr(e, []).filter((s) => Y(s) && be(s) !== "body"), n = null;
|
|
2347
2347
|
const o = q(e).position === "fixed";
|
|
2348
2348
|
let i = o ? oe(e) : e;
|
|
2349
2349
|
for (; Y(i) && !me(i); ) {
|
|
2350
2350
|
const s = q(i), c = Ct(i);
|
|
2351
|
-
!c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) ||
|
|
2351
|
+
!c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || Ee(i) && !c && Jr(e, i)) ? a = a.filter((u) => u !== i) : n = s, i = oe(i);
|
|
2352
2352
|
}
|
|
2353
2353
|
return t.set(e, a), a;
|
|
2354
2354
|
}
|
|
2355
|
-
function
|
|
2355
|
+
function Bo(e) {
|
|
2356
2356
|
let {
|
|
2357
2357
|
element: t,
|
|
2358
2358
|
boundary: r,
|
|
2359
2359
|
rootBoundary: a,
|
|
2360
2360
|
strategy: n
|
|
2361
2361
|
} = e;
|
|
2362
|
-
const o = [...r === "clippingAncestors" ?
|
|
2362
|
+
const o = [...r === "clippingAncestors" ? We(t) ? [] : $o(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, u) => {
|
|
2363
2363
|
const m = rr(t, u, n);
|
|
2364
|
-
return c.top = ce(m.top, c.top), c.right =
|
|
2364
|
+
return c.top = ce(m.top, c.top), c.right = Ne(m.right, c.right), c.bottom = Ne(m.bottom, c.bottom), c.left = ce(m.left, c.left), c;
|
|
2365
2365
|
}, rr(t, i, n));
|
|
2366
2366
|
return {
|
|
2367
2367
|
width: s.right - s.left,
|
|
@@ -2370,29 +2370,29 @@ function So(e) {
|
|
|
2370
2370
|
y: s.top
|
|
2371
2371
|
};
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2373
|
+
function Lo(e) {
|
|
2374
2374
|
const {
|
|
2375
2375
|
width: t,
|
|
2376
2376
|
height: r
|
|
2377
|
-
} =
|
|
2377
|
+
} = qr(e);
|
|
2378
2378
|
return {
|
|
2379
2379
|
width: t,
|
|
2380
2380
|
height: r
|
|
2381
2381
|
};
|
|
2382
2382
|
}
|
|
2383
|
-
function
|
|
2384
|
-
const a = J(t), n = re(t), o = r === "fixed", i =
|
|
2383
|
+
function Oo(e, t, r) {
|
|
2384
|
+
const a = J(t), n = re(t), o = r === "fixed", i = Te(e, !0, o, t);
|
|
2385
2385
|
let s = {
|
|
2386
2386
|
scrollLeft: 0,
|
|
2387
2387
|
scrollTop: 0
|
|
2388
2388
|
};
|
|
2389
2389
|
const c = X(0);
|
|
2390
2390
|
if (a || !a && !o)
|
|
2391
|
-
if ((be(t) !== "body" ||
|
|
2392
|
-
const g =
|
|
2391
|
+
if ((be(t) !== "body" || Ee(n)) && (s = je(t)), a) {
|
|
2392
|
+
const g = Te(t, !0, o, t);
|
|
2393
2393
|
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
2394
2394
|
} else n && (c.x = Rt(n));
|
|
2395
|
-
const u = n && !a && !o ?
|
|
2395
|
+
const u = n && !a && !o ? Xr(n, s) : X(0), m = i.left + s.scrollLeft - c.x - u.x, h = i.top + s.scrollTop - c.y - u.y;
|
|
2396
2396
|
return {
|
|
2397
2397
|
x: m,
|
|
2398
2398
|
y: h,
|
|
@@ -2400,7 +2400,7 @@ function Bo(e, t, r) {
|
|
|
2400
2400
|
height: i.height
|
|
2401
2401
|
};
|
|
2402
2402
|
}
|
|
2403
|
-
function
|
|
2403
|
+
function Qe(e) {
|
|
2404
2404
|
return q(e).position === "static";
|
|
2405
2405
|
}
|
|
2406
2406
|
function ar(e, t) {
|
|
@@ -2411,28 +2411,28 @@ function ar(e, t) {
|
|
|
2411
2411
|
let r = e.offsetParent;
|
|
2412
2412
|
return re(e) === r && (r = r.ownerDocument.body), r;
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2414
|
+
function Qr(e, t) {
|
|
2415
2415
|
const r = G(e);
|
|
2416
|
-
if (
|
|
2416
|
+
if (We(e))
|
|
2417
2417
|
return r;
|
|
2418
2418
|
if (!J(e)) {
|
|
2419
2419
|
let n = oe(e);
|
|
2420
2420
|
for (; n && !me(n); ) {
|
|
2421
|
-
if (Y(n) && !
|
|
2421
|
+
if (Y(n) && !Qe(n))
|
|
2422
2422
|
return n;
|
|
2423
2423
|
n = oe(n);
|
|
2424
2424
|
}
|
|
2425
2425
|
return r;
|
|
2426
2426
|
}
|
|
2427
2427
|
let a = ar(e, t);
|
|
2428
|
-
for (; a &&
|
|
2428
|
+
for (; a && xo(a) && Qe(a); )
|
|
2429
2429
|
a = ar(a, t);
|
|
2430
|
-
return a && me(a) &&
|
|
2430
|
+
return a && me(a) && Qe(a) && !Ct(a) ? r : a || _o(e) || r;
|
|
2431
2431
|
}
|
|
2432
|
-
const
|
|
2433
|
-
const t = this.getOffsetParent ||
|
|
2432
|
+
const Ao = async function(e) {
|
|
2433
|
+
const t = this.getOffsetParent || Qr, r = this.getDimensions, a = await r(e.floating);
|
|
2434
2434
|
return {
|
|
2435
|
-
reference:
|
|
2435
|
+
reference: Oo(e.reference, await t(e.floating), e.strategy),
|
|
2436
2436
|
floating: {
|
|
2437
2437
|
x: 0,
|
|
2438
2438
|
y: 0,
|
|
@@ -2441,34 +2441,34 @@ const Lo = async function(e) {
|
|
|
2441
2441
|
}
|
|
2442
2442
|
};
|
|
2443
2443
|
};
|
|
2444
|
-
function
|
|
2444
|
+
function Mo(e) {
|
|
2445
2445
|
return q(e).direction === "rtl";
|
|
2446
2446
|
}
|
|
2447
|
-
const
|
|
2448
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2447
|
+
const Po = {
|
|
2448
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Io,
|
|
2449
2449
|
getDocumentElement: re,
|
|
2450
|
-
getClippingRect:
|
|
2451
|
-
getOffsetParent:
|
|
2452
|
-
getElementRects:
|
|
2453
|
-
getClientRects:
|
|
2454
|
-
getDimensions:
|
|
2450
|
+
getClippingRect: Bo,
|
|
2451
|
+
getOffsetParent: Qr,
|
|
2452
|
+
getElementRects: Ao,
|
|
2453
|
+
getClientRects: Co,
|
|
2454
|
+
getDimensions: Lo,
|
|
2455
2455
|
getScale: de,
|
|
2456
2456
|
isElement: Y,
|
|
2457
|
-
isRTL:
|
|
2458
|
-
},
|
|
2457
|
+
isRTL: Mo
|
|
2458
|
+
}, zo = ko, Vo = wo, Do = yo, Ho = bo, Uo = (e, t, r) => {
|
|
2459
2459
|
const a = /* @__PURE__ */ new Map(), n = {
|
|
2460
|
-
platform:
|
|
2460
|
+
platform: Po,
|
|
2461
2461
|
...r
|
|
2462
2462
|
}, o = {
|
|
2463
2463
|
...n.platform,
|
|
2464
2464
|
_c: a
|
|
2465
2465
|
};
|
|
2466
|
-
return
|
|
2466
|
+
return po(e, t, {
|
|
2467
2467
|
...n,
|
|
2468
2468
|
platform: o
|
|
2469
2469
|
});
|
|
2470
2470
|
}, nr = ["mousedown", "touchstart"];
|
|
2471
|
-
function
|
|
2471
|
+
function Fo(e, t, r) {
|
|
2472
2472
|
const a = I(null);
|
|
2473
2473
|
return C(() => {
|
|
2474
2474
|
const n = (o) => {
|
|
@@ -2489,7 +2489,7 @@ function Ho(e, t, r) {
|
|
|
2489
2489
|
};
|
|
2490
2490
|
}, [e, r, t]), a;
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function Wo(e, t) {
|
|
2493
2493
|
const [r, a] = z(!1), n = I(null), o = I(null), i = W(() => {
|
|
2494
2494
|
a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
|
|
2495
2495
|
}, [t]), s = W(() => {
|
|
@@ -2497,42 +2497,42 @@ function Uo(e, t) {
|
|
|
2497
2497
|
}, []);
|
|
2498
2498
|
return C(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
|
|
2499
2499
|
}
|
|
2500
|
-
const
|
|
2500
|
+
const Se = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, jo = () => d("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), or = ({
|
|
2501
2501
|
mode: e
|
|
2502
2502
|
}) => d({
|
|
2503
2503
|
"bg-surface-darker": e === "dark" || e === "system",
|
|
2504
2504
|
"bg-surface-light": e === "light" || e === "alt-system",
|
|
2505
2505
|
"dark:bg-surface-light": e === "system",
|
|
2506
2506
|
"dark:bg-surface-darker": e === "alt-system"
|
|
2507
|
-
}),
|
|
2507
|
+
}), Go = ({
|
|
2508
2508
|
mode: e
|
|
2509
2509
|
}) => d({
|
|
2510
2510
|
"text-copy-light": e === "dark" || e === "system",
|
|
2511
2511
|
"text-copy-dark": e === "light" || e === "alt-system",
|
|
2512
2512
|
"dark:text-copy-dark": e === "system",
|
|
2513
2513
|
"dark:text-copy-light": e === "alt-system"
|
|
2514
|
-
}),
|
|
2514
|
+
}), Yo = () => d("absolute", "size-2", "transform rotate-45"), qo = ({
|
|
2515
2515
|
mode: e,
|
|
2516
2516
|
className: t,
|
|
2517
2517
|
tooltipClassName: r,
|
|
2518
2518
|
arrowClassName: a
|
|
2519
2519
|
}) => {
|
|
2520
2520
|
const n = d("relative inline-block", t), o = d(
|
|
2521
|
-
|
|
2522
|
-
|
|
2521
|
+
io,
|
|
2522
|
+
jo(),
|
|
2523
2523
|
or({ mode: e }),
|
|
2524
|
-
|
|
2524
|
+
Go({ mode: e }),
|
|
2525
2525
|
r
|
|
2526
2526
|
), i = d(
|
|
2527
|
-
|
|
2528
|
-
|
|
2527
|
+
so,
|
|
2528
|
+
Yo(),
|
|
2529
2529
|
or({ mode: e }),
|
|
2530
2530
|
a
|
|
2531
2531
|
);
|
|
2532
2532
|
return { tooltip: o, arrow: i, wrapper: n };
|
|
2533
|
-
},
|
|
2533
|
+
}, Zo = ({ delay: e = 300 }) => ({
|
|
2534
2534
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
|
2535
|
-
}),
|
|
2535
|
+
}), Ko = 5e3, ye = ({
|
|
2536
2536
|
trigger: e,
|
|
2537
2537
|
label: t,
|
|
2538
2538
|
placement: r = "top",
|
|
@@ -2542,39 +2542,39 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2542
2542
|
tooltipClassName: i,
|
|
2543
2543
|
arrowClassName: s
|
|
2544
2544
|
}) => {
|
|
2545
|
-
const c =
|
|
2545
|
+
const c = Fo(() => {
|
|
2546
2546
|
y.stop(), f(!1);
|
|
2547
|
-
}), u = I(null), m = I(null), [h, g] = z(!1), [p, f] = z(!1), y =
|
|
2547
|
+
}), u = I(null), m = I(null), [h, g] = z(!1), [p, f] = z(!1), y = Wo(() => {
|
|
2548
2548
|
f(!1);
|
|
2549
|
-
},
|
|
2549
|
+
}, Ko), b = qo({
|
|
2550
2550
|
mode: a,
|
|
2551
2551
|
className: o,
|
|
2552
2552
|
tooltipClassName: i,
|
|
2553
2553
|
arrowClassName: s
|
|
2554
|
-
}),
|
|
2555
|
-
var A, E, S,
|
|
2554
|
+
}), k = Zo({ delay: n }), w = W(async () => {
|
|
2555
|
+
var A, E, S, x;
|
|
2556
2556
|
if (c.current && u.current && m.current) {
|
|
2557
2557
|
const {
|
|
2558
2558
|
x: L,
|
|
2559
2559
|
y: N,
|
|
2560
2560
|
middlewareData: $,
|
|
2561
2561
|
placement: M
|
|
2562
|
-
} = await
|
|
2562
|
+
} = await Uo(c.current, u.current, {
|
|
2563
2563
|
placement: r,
|
|
2564
2564
|
middleware: [
|
|
2565
|
-
|
|
2566
|
-
|
|
2565
|
+
zo(10),
|
|
2566
|
+
Do({
|
|
2567
2567
|
crossAxis: r.includes("-"),
|
|
2568
2568
|
fallbackAxisSideDirection: "start"
|
|
2569
2569
|
}),
|
|
2570
|
-
|
|
2571
|
-
|
|
2570
|
+
Vo({ padding: 5 }),
|
|
2571
|
+
Ho({ element: m.current })
|
|
2572
2572
|
]
|
|
2573
2573
|
});
|
|
2574
2574
|
(A = u == null ? void 0 : u.current) != null && A.style && Object.assign(u.current.style, {
|
|
2575
|
-
left:
|
|
2576
|
-
top:
|
|
2577
|
-
...
|
|
2575
|
+
left: Se(L),
|
|
2576
|
+
top: Se(N),
|
|
2577
|
+
...k
|
|
2578
2578
|
});
|
|
2579
2579
|
const O = {
|
|
2580
2580
|
top: "bottom",
|
|
@@ -2583,18 +2583,18 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2583
2583
|
left: "right"
|
|
2584
2584
|
}[M.split("-")[0]];
|
|
2585
2585
|
(E = m == null ? void 0 : m.current) != null && E.style && Object.assign(m.current.style, {
|
|
2586
|
-
left:
|
|
2587
|
-
top:
|
|
2586
|
+
left: Se((S = $.arrow) == null ? void 0 : S.x),
|
|
2587
|
+
top: Se((x = $.arrow) == null ? void 0 : x.y),
|
|
2588
2588
|
right: "",
|
|
2589
2589
|
bottom: "",
|
|
2590
2590
|
[O]: "-4px"
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
}, [r,
|
|
2593
|
+
}, [r, k, c]);
|
|
2594
2594
|
C(() => {
|
|
2595
|
-
(async () => h && await
|
|
2596
|
-
}, [
|
|
2597
|
-
const
|
|
2595
|
+
(async () => h && await w())();
|
|
2596
|
+
}, [w, h]);
|
|
2597
|
+
const v = () => {
|
|
2598
2598
|
g(!1), f(!0), y.start();
|
|
2599
2599
|
}, R = () => {
|
|
2600
2600
|
p || g(!0);
|
|
@@ -2608,7 +2608,7 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2608
2608
|
ref: c,
|
|
2609
2609
|
onMouseEnter: R,
|
|
2610
2610
|
onMouseLeave: B,
|
|
2611
|
-
onClick:
|
|
2611
|
+
onClick: v,
|
|
2612
2612
|
children: [
|
|
2613
2613
|
e,
|
|
2614
2614
|
h && /* @__PURE__ */ _(
|
|
@@ -2626,7 +2626,7 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2626
2626
|
]
|
|
2627
2627
|
}
|
|
2628
2628
|
);
|
|
2629
|
-
},
|
|
2629
|
+
}, Xo = ({
|
|
2630
2630
|
className: e
|
|
2631
2631
|
}) => {
|
|
2632
2632
|
const {
|
|
@@ -2641,7 +2641,7 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2641
2641
|
});
|
|
2642
2642
|
};
|
|
2643
2643
|
return C(() => {
|
|
2644
|
-
|
|
2644
|
+
at() || (t === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), t === !1 && n.current && (n.current = !1));
|
|
2645
2645
|
}, [t]), /* @__PURE__ */ l(
|
|
2646
2646
|
ye,
|
|
2647
2647
|
{
|
|
@@ -2658,7 +2658,7 @@ const Re = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Fo = (
|
|
|
2658
2658
|
label: "New Chat",
|
|
2659
2659
|
ref: a,
|
|
2660
2660
|
onClick: o,
|
|
2661
|
-
children: t ? /* @__PURE__ */ l(
|
|
2661
|
+
children: t ? /* @__PURE__ */ l(qa, { size: ee, monotone: !0 }) : /* @__PURE__ */ l(Ka, { size: ee })
|
|
2662
2662
|
}
|
|
2663
2663
|
)
|
|
2664
2664
|
}
|
|
@@ -2677,7 +2677,7 @@ try {
|
|
|
2677
2677
|
});
|
|
2678
2678
|
} catch {
|
|
2679
2679
|
}
|
|
2680
|
-
const ir = "av-messagebox", sr = "av-panel", lr = "av-button",
|
|
2680
|
+
const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Ge = "icon", ea = "button", gt = "link", Jo = ({
|
|
2681
2681
|
type: e,
|
|
2682
2682
|
size: t,
|
|
2683
2683
|
labelRight: r,
|
|
@@ -2687,14 +2687,14 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2687
2687
|
}) => {
|
|
2688
2688
|
const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
2689
2689
|
switch (e) {
|
|
2690
|
-
case
|
|
2690
|
+
case ea:
|
|
2691
2691
|
case gt:
|
|
2692
2692
|
return d({
|
|
2693
2693
|
[i]: t === "small",
|
|
2694
2694
|
[s]: t === "medium",
|
|
2695
2695
|
[c]: t === "large"
|
|
2696
2696
|
});
|
|
2697
|
-
case
|
|
2697
|
+
case Ge:
|
|
2698
2698
|
return d("flex items-center", {
|
|
2699
2699
|
"justify-center": n === "center",
|
|
2700
2700
|
"justify-start": n === "left",
|
|
@@ -2713,7 +2713,7 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2713
2713
|
"h-12": t === "large" && o && (r || a)
|
|
2714
2714
|
});
|
|
2715
2715
|
}
|
|
2716
|
-
},
|
|
2716
|
+
}, Qo = ({
|
|
2717
2717
|
type: e,
|
|
2718
2718
|
size: t,
|
|
2719
2719
|
labelRight: r,
|
|
@@ -2721,7 +2721,7 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2721
2721
|
}) => {
|
|
2722
2722
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
2723
2723
|
switch (e) {
|
|
2724
|
-
case
|
|
2724
|
+
case ea:
|
|
2725
2725
|
case gt:
|
|
2726
2726
|
return d({
|
|
2727
2727
|
"text-center": e === gt,
|
|
@@ -2729,14 +2729,14 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2729
2729
|
[o]: t === "medium",
|
|
2730
2730
|
[i]: t === "large"
|
|
2731
2731
|
});
|
|
2732
|
-
case
|
|
2732
|
+
case Ge:
|
|
2733
2733
|
return d({
|
|
2734
2734
|
[n]: t === "small" && (r || a),
|
|
2735
2735
|
[o]: t === "medium" && (r || a),
|
|
2736
2736
|
[i]: t === "large" && (r || a)
|
|
2737
2737
|
});
|
|
2738
2738
|
}
|
|
2739
|
-
},
|
|
2739
|
+
}, ei = ({
|
|
2740
2740
|
mode: e,
|
|
2741
2741
|
noBackground: t,
|
|
2742
2742
|
noTruncate: r,
|
|
@@ -2772,7 +2772,7 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2772
2772
|
return d("not-prose text-copy-lighter", {
|
|
2773
2773
|
truncate: !r
|
|
2774
2774
|
});
|
|
2775
|
-
},
|
|
2775
|
+
}, ti = ({
|
|
2776
2776
|
mode: e,
|
|
2777
2777
|
noBackground: t,
|
|
2778
2778
|
variant: r
|
|
@@ -2802,13 +2802,13 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2802
2802
|
if (r === "selected")
|
|
2803
2803
|
return "bg-action-selected-dark";
|
|
2804
2804
|
}
|
|
2805
|
-
},
|
|
2805
|
+
}, ri = ({
|
|
2806
2806
|
radius: e
|
|
2807
2807
|
}) => d({
|
|
2808
2808
|
"rounded-full": e === "large",
|
|
2809
2809
|
"rounded-md": e === "medium",
|
|
2810
2810
|
"rounded-sm": e === "small"
|
|
2811
|
-
}),
|
|
2811
|
+
}), ai = ({
|
|
2812
2812
|
mode: e,
|
|
2813
2813
|
disabled: t,
|
|
2814
2814
|
variant: r
|
|
@@ -2838,7 +2838,7 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2838
2838
|
});
|
|
2839
2839
|
if (r === "selected")
|
|
2840
2840
|
return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
|
|
2841
|
-
},
|
|
2841
|
+
}, ni = ({
|
|
2842
2842
|
mode: e,
|
|
2843
2843
|
disabled: t,
|
|
2844
2844
|
variant: r
|
|
@@ -2868,7 +2868,7 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2868
2868
|
});
|
|
2869
2869
|
if (r === "selected")
|
|
2870
2870
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
2871
|
-
},
|
|
2871
|
+
}, oi = ({
|
|
2872
2872
|
mode: e,
|
|
2873
2873
|
noBorder: t,
|
|
2874
2874
|
variant: r
|
|
@@ -2898,14 +2898,14 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2898
2898
|
});
|
|
2899
2899
|
if (r === "selected")
|
|
2900
2900
|
return "border border-border-selected-dark";
|
|
2901
|
-
},
|
|
2901
|
+
}, ii = ({
|
|
2902
2902
|
focusMode: e
|
|
2903
2903
|
}) => d("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
2904
2904
|
"focus:outline-focus-dark": e === "dark",
|
|
2905
2905
|
"focus:outline-focus-light": e === "light",
|
|
2906
2906
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
2907
2907
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
2908
|
-
}),
|
|
2908
|
+
}), si = ({
|
|
2909
2909
|
mode: e,
|
|
2910
2910
|
raw: t,
|
|
2911
2911
|
iconClassName: r
|
|
@@ -2917,11 +2917,11 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2917
2917
|
"dark:text-copy-accent-dark": e === "system"
|
|
2918
2918
|
},
|
|
2919
2919
|
r
|
|
2920
|
-
),
|
|
2920
|
+
), li = ({
|
|
2921
2921
|
animated: e
|
|
2922
2922
|
}) => d({
|
|
2923
2923
|
"transition-opacity duration-300 ease-in": e
|
|
2924
|
-
}),
|
|
2924
|
+
}), ci = ({
|
|
2925
2925
|
type: e,
|
|
2926
2926
|
className: t,
|
|
2927
2927
|
raw: r,
|
|
@@ -2941,15 +2941,15 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2941
2941
|
animated: b
|
|
2942
2942
|
}) => (g || (g = "primary"), r ? d(lr, t) : d(
|
|
2943
2943
|
lr,
|
|
2944
|
-
|
|
2944
|
+
ei({
|
|
2945
2945
|
mode: a,
|
|
2946
2946
|
variant: g,
|
|
2947
2947
|
noBackground: h,
|
|
2948
2948
|
noTruncate: p
|
|
2949
2949
|
}),
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2950
|
+
ti({ mode: a, noBackground: h, variant: g }),
|
|
2951
|
+
ri({ radius: y }),
|
|
2952
|
+
Jo({
|
|
2953
2953
|
type: e,
|
|
2954
2954
|
size: s,
|
|
2955
2955
|
labelRight: u,
|
|
@@ -2957,43 +2957,43 @@ const ir = "av-messagebox", sr = "av-panel", lr = "av-button", Fe = "icon", Jr =
|
|
|
2957
2957
|
align: f,
|
|
2958
2958
|
animated: b
|
|
2959
2959
|
}),
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2960
|
+
Qo({ type: e, size: s, labelRight: u, labelLeft: m }),
|
|
2961
|
+
oi({ mode: a, variant: g, noBorder: c }),
|
|
2962
|
+
ii({ focusMode: n }),
|
|
2963
|
+
ai({ mode: a, variant: g, disabled: o }),
|
|
2964
|
+
ni({ mode: a, variant: g, disabled: o }),
|
|
2965
2965
|
{
|
|
2966
2966
|
"w-full": i,
|
|
2967
2967
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
2968
2968
|
},
|
|
2969
2969
|
d({
|
|
2970
|
-
"transition-[width] duration-300 ease-in-out": e ===
|
|
2970
|
+
"transition-[width] duration-300 ease-in-out": e === Ge && b
|
|
2971
2971
|
}),
|
|
2972
2972
|
t
|
|
2973
|
-
)),
|
|
2973
|
+
)), di = (e, t, r) => {
|
|
2974
2974
|
var a;
|
|
2975
2975
|
!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);
|
|
2976
|
-
},
|
|
2976
|
+
}, ta = H.forwardRef((e, t) => {
|
|
2977
2977
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
2978
2978
|
return /* @__PURE__ */ l(
|
|
2979
2979
|
"button",
|
|
2980
2980
|
{
|
|
2981
2981
|
ref: t,
|
|
2982
2982
|
onClick: (o) => {
|
|
2983
|
-
|
|
2983
|
+
di(o, a, r);
|
|
2984
2984
|
},
|
|
2985
2985
|
...n
|
|
2986
2986
|
}
|
|
2987
2987
|
);
|
|
2988
2988
|
});
|
|
2989
|
-
|
|
2990
|
-
function
|
|
2989
|
+
ta.displayName = "BaseButton";
|
|
2990
|
+
function ui() {
|
|
2991
2991
|
const e = I(!1);
|
|
2992
2992
|
return C(() => (e.current = !0, () => {
|
|
2993
2993
|
e.current = !1;
|
|
2994
2994
|
}), []), W(() => e.current, []);
|
|
2995
2995
|
}
|
|
2996
|
-
function
|
|
2996
|
+
function mi(e) {
|
|
2997
2997
|
return Q(() => e.every((t) => t == null) ? () => {
|
|
2998
2998
|
} : (t) => {
|
|
2999
2999
|
e.forEach((r) => {
|
|
@@ -3001,7 +3001,7 @@ function di(e) {
|
|
|
3001
3001
|
});
|
|
3002
3002
|
}, e);
|
|
3003
3003
|
}
|
|
3004
|
-
const
|
|
3004
|
+
const hi = {
|
|
3005
3005
|
x: 0,
|
|
3006
3006
|
y: 0,
|
|
3007
3007
|
width: 0,
|
|
@@ -3011,8 +3011,8 @@ const ui = {
|
|
|
3011
3011
|
bottom: 0,
|
|
3012
3012
|
right: 0
|
|
3013
3013
|
};
|
|
3014
|
-
function
|
|
3015
|
-
const t =
|
|
3014
|
+
function et(e) {
|
|
3015
|
+
const t = ui(), r = I(0), a = I(null), [n, o] = z(hi), i = Q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
3016
3016
|
const c = s[0];
|
|
3017
3017
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3018
3018
|
a.current && t() && o(c.contentRect);
|
|
@@ -3022,21 +3022,21 @@ function Xe(e) {
|
|
|
3022
3022
|
i == null || i.disconnect(), r.current && cancelAnimationFrame(r.current);
|
|
3023
3023
|
}), [i, e]), [a, n];
|
|
3024
3024
|
}
|
|
3025
|
-
const
|
|
3025
|
+
const gi = {
|
|
3026
3026
|
small: 24,
|
|
3027
3027
|
// w-6
|
|
3028
3028
|
medium: 32,
|
|
3029
3029
|
// w-8
|
|
3030
3030
|
large: 48
|
|
3031
3031
|
// w-12
|
|
3032
|
-
},
|
|
3032
|
+
}, fi = {
|
|
3033
3033
|
small: 8 * 2,
|
|
3034
3034
|
// px-2 x 2
|
|
3035
3035
|
medium: 12 * 2,
|
|
3036
3036
|
// px-3 x 2
|
|
3037
3037
|
large: 16 * 2
|
|
3038
3038
|
// px-4 x 2
|
|
3039
|
-
},
|
|
3039
|
+
}, pi = 2, St = H.forwardRef(
|
|
3040
3040
|
({
|
|
3041
3041
|
children: e,
|
|
3042
3042
|
disabled: t = !1,
|
|
@@ -3055,13 +3055,13 @@ const mi = {
|
|
|
3055
3055
|
noBackground: f = !1,
|
|
3056
3056
|
align: y = "center",
|
|
3057
3057
|
radius: b = "large",
|
|
3058
|
-
variant:
|
|
3059
|
-
iconClassName:
|
|
3060
|
-
animated:
|
|
3058
|
+
variant: k = "primary",
|
|
3059
|
+
iconClassName: w,
|
|
3060
|
+
animated: v = !1,
|
|
3061
3061
|
...R
|
|
3062
3062
|
}, B) => {
|
|
3063
|
-
const A =
|
|
3064
|
-
type:
|
|
3063
|
+
const A = ci({
|
|
3064
|
+
type: Ge,
|
|
3065
3065
|
mode: r,
|
|
3066
3066
|
focusMode: a,
|
|
3067
3067
|
fullWidth: n,
|
|
@@ -3075,24 +3075,24 @@ const mi = {
|
|
|
3075
3075
|
noBackground: f,
|
|
3076
3076
|
align: y,
|
|
3077
3077
|
radius: b,
|
|
3078
|
-
variant:
|
|
3079
|
-
animated:
|
|
3080
|
-
}), E =
|
|
3078
|
+
variant: k,
|
|
3079
|
+
animated: v
|
|
3080
|
+
}), E = si({ mode: r, raw: s, iconClassName: w }), S = li({ animated: v }), [x, L] = et(), [N, $] = et(), [M, O] = et(), P = I(0), T = I(null), D = mi([B, T]);
|
|
3081
3081
|
return ne(() => {
|
|
3082
|
-
M && M.current &&
|
|
3083
|
-
}, [O, M, h, c,
|
|
3084
|
-
T && T.current &&
|
|
3082
|
+
M && M.current && v && (P.current = O.width + fi[h] + (c ? 0 : pi));
|
|
3083
|
+
}, [O, M, h, c, v]), ne(() => {
|
|
3084
|
+
T && T.current && v && (g && x && L.width > 0 ? (x.current && (x.current.style.opacity = "100"), T.current.style.width = `${L.width + P.current}px`) : p && $.width > 0 ? (N.current && (N.current.style.opacity = "100"), T.current.style.width = `${$.width + P.current}px`) : (x.current && (x.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${gi[h]}px`));
|
|
3085
3085
|
}, [
|
|
3086
3086
|
L,
|
|
3087
3087
|
g,
|
|
3088
|
-
|
|
3088
|
+
x,
|
|
3089
3089
|
$,
|
|
3090
3090
|
p,
|
|
3091
3091
|
N,
|
|
3092
3092
|
h,
|
|
3093
|
-
|
|
3093
|
+
v
|
|
3094
3094
|
]), /* @__PURE__ */ _(
|
|
3095
|
-
|
|
3095
|
+
ta,
|
|
3096
3096
|
{
|
|
3097
3097
|
ref: D,
|
|
3098
3098
|
className: A,
|
|
@@ -3115,7 +3115,7 @@ const mi = {
|
|
|
3115
3115
|
cr,
|
|
3116
3116
|
{
|
|
3117
3117
|
label: g,
|
|
3118
|
-
labelRef:
|
|
3118
|
+
labelRef: x,
|
|
3119
3119
|
labelClass: S,
|
|
3120
3120
|
labelInnerClass: "pl-2"
|
|
3121
3121
|
}
|
|
@@ -3144,7 +3144,7 @@ try {
|
|
|
3144
3144
|
});
|
|
3145
3145
|
} catch {
|
|
3146
3146
|
}
|
|
3147
|
-
const
|
|
3147
|
+
const bi = H.forwardRef(
|
|
3148
3148
|
({
|
|
3149
3149
|
children: e,
|
|
3150
3150
|
mode: t = "system",
|
|
@@ -3182,8 +3182,8 @@ const fi = H.forwardRef(
|
|
|
3182
3182
|
) });
|
|
3183
3183
|
}
|
|
3184
3184
|
);
|
|
3185
|
-
|
|
3186
|
-
const
|
|
3185
|
+
bi.displayName = "ButtonSort";
|
|
3186
|
+
const yi = ({
|
|
3187
3187
|
children: e,
|
|
3188
3188
|
fill: t,
|
|
3189
3189
|
viewBox: r,
|
|
@@ -3226,14 +3226,14 @@ try {
|
|
|
3226
3226
|
});
|
|
3227
3227
|
} catch {
|
|
3228
3228
|
}
|
|
3229
|
-
const
|
|
3229
|
+
const vi = ({
|
|
3230
3230
|
className: e,
|
|
3231
3231
|
viewBox: t,
|
|
3232
3232
|
title: r,
|
|
3233
3233
|
monotone: a,
|
|
3234
3234
|
...n
|
|
3235
3235
|
}) => /* @__PURE__ */ l(
|
|
3236
|
-
|
|
3236
|
+
yi,
|
|
3237
3237
|
{
|
|
3238
3238
|
defaultViewBox: "0 0 384 512",
|
|
3239
3239
|
size: "size-5",
|
|
@@ -3263,21 +3263,21 @@ try {
|
|
|
3263
3263
|
});
|
|
3264
3264
|
} catch {
|
|
3265
3265
|
}
|
|
3266
|
-
const
|
|
3267
|
-
function
|
|
3266
|
+
const ra = F.createContext(null);
|
|
3267
|
+
function ki({
|
|
3268
3268
|
initialOpen: e = !1,
|
|
3269
3269
|
open: t,
|
|
3270
3270
|
onOpenChange: r
|
|
3271
3271
|
} = {}) {
|
|
3272
|
-
const [a, n] = F.useState(e), [o, i] = F.useState(), [s, c] = F.useState(), u = t ?? a, m = r ?? n, h =
|
|
3272
|
+
const [a, n] = F.useState(e), [o, i] = F.useState(), [s, c] = F.useState(), u = t ?? a, m = r ?? n, h = Er({
|
|
3273
3273
|
open: u,
|
|
3274
3274
|
onOpenChange: m
|
|
3275
|
-
}), g = h.context, p =
|
|
3275
|
+
}), g = h.context, p = Rr(g, {
|
|
3276
3276
|
enabled: t == null
|
|
3277
|
-
}), f =
|
|
3277
|
+
}), f = Sr(g, {
|
|
3278
3278
|
outsidePress: !1,
|
|
3279
3279
|
outsidePressEvent: "mousedown"
|
|
3280
|
-
}), y =
|
|
3280
|
+
}), y = $r(g), b = Br([p, f, y]);
|
|
3281
3281
|
return F.useMemo(
|
|
3282
3282
|
() => ({
|
|
3283
3283
|
open: u,
|
|
@@ -3292,28 +3292,28 @@ function yi({
|
|
|
3292
3292
|
[u, m, b, h, o, s]
|
|
3293
3293
|
);
|
|
3294
3294
|
}
|
|
3295
|
-
const
|
|
3296
|
-
const e = F.useContext(
|
|
3295
|
+
const Ye = () => {
|
|
3296
|
+
const e = F.useContext(ra);
|
|
3297
3297
|
if (e == null)
|
|
3298
3298
|
throw new Error("Modal components must be wrapped in <Modal />");
|
|
3299
3299
|
return e;
|
|
3300
3300
|
};
|
|
3301
|
-
function
|
|
3301
|
+
function wi({
|
|
3302
3302
|
children: e,
|
|
3303
3303
|
...t
|
|
3304
3304
|
}) {
|
|
3305
|
-
const r =
|
|
3306
|
-
return /* @__PURE__ */ l(
|
|
3305
|
+
const r = ki(t);
|
|
3306
|
+
return /* @__PURE__ */ l(ra.Provider, { value: r, children: e });
|
|
3307
3307
|
}
|
|
3308
|
-
const
|
|
3309
|
-
const { context: r, ...a } =
|
|
3308
|
+
const xi = F.forwardRef(function(e, t) {
|
|
3309
|
+
const { context: r, ...a } = Ye(), n = wt([a.refs.setFloating, t]);
|
|
3310
3310
|
if (!r.open)
|
|
3311
3311
|
return null;
|
|
3312
3312
|
const { overlayBackground: o, ...i } = e, s = d("grid place-items-center", {
|
|
3313
3313
|
[`${o}`]: o,
|
|
3314
3314
|
"bg-black sm:bg-black/[.8]": !o
|
|
3315
3315
|
});
|
|
3316
|
-
return /* @__PURE__ */ l(
|
|
3316
|
+
return /* @__PURE__ */ l(Ir, { children: /* @__PURE__ */ l(Ma, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(Cr, { context: r, children: /* @__PURE__ */ l(
|
|
3317
3317
|
"div",
|
|
3318
3318
|
{
|
|
3319
3319
|
ref: n,
|
|
@@ -3323,14 +3323,14 @@ const ki = F.forwardRef(function(e, t) {
|
|
|
3323
3323
|
children: i.children
|
|
3324
3324
|
}
|
|
3325
3325
|
) }) }) });
|
|
3326
|
-
}),
|
|
3327
|
-
const { setLabelId: a } =
|
|
3326
|
+
}), _i = F.forwardRef(function({ children: e, ...t }, r) {
|
|
3327
|
+
const { setLabelId: a } = Ye(), n = kt();
|
|
3328
3328
|
return F.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
|
|
3329
|
-
}),
|
|
3330
|
-
const { setDescriptionId: a } =
|
|
3329
|
+
}), Ni = F.forwardRef(function({ children: e, ...t }, r) {
|
|
3330
|
+
const { setDescriptionId: a } = Ye(), n = kt();
|
|
3331
3331
|
return F.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
|
|
3332
|
-
}),
|
|
3333
|
-
const { setOpen: r } =
|
|
3332
|
+
}), Ti = F.forwardRef(function(e, t) {
|
|
3333
|
+
const { setOpen: r } = Ye(), { trigger: a, className: n, ...o } = e, i = F.useCallback(() => r(!1), [r]);
|
|
3334
3334
|
return /* @__PURE__ */ l("div", { className: n, children: F.cloneElement(a, {
|
|
3335
3335
|
ref: t,
|
|
3336
3336
|
onClick: i,
|
|
@@ -3350,7 +3350,7 @@ try {
|
|
|
3350
3350
|
});
|
|
3351
3351
|
} catch {
|
|
3352
3352
|
}
|
|
3353
|
-
const we = "panel",
|
|
3353
|
+
const we = "panel", $e = "messagebox", Ii = ({
|
|
3354
3354
|
className: e,
|
|
3355
3355
|
kind: t,
|
|
3356
3356
|
borderMode: r
|
|
@@ -3358,19 +3358,19 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3358
3358
|
main: d("prose prose-lighter flex flex-col bg-surface-medium", {
|
|
3359
3359
|
[`${sr} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === we,
|
|
3360
3360
|
[`${sr} w-full sm:w-[95%] md:max-w-2xl`]: t === we && !e,
|
|
3361
|
-
[`${ir} rounded-lg border-2`]: t ===
|
|
3362
|
-
[`${ir} w-[95%] sm:w-[50%] md:max-w-2xl`]: t ===
|
|
3361
|
+
[`${ir} rounded-lg border-2`]: t === $e,
|
|
3362
|
+
[`${ir} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === $e && !e,
|
|
3363
3363
|
[`${e}`]: !!e,
|
|
3364
3364
|
"sm:border-border-dark": r === "dark" && t === we,
|
|
3365
3365
|
"sm:border-border-accent": r === "light" && t === we,
|
|
3366
|
-
"border-border-dark": r === "dark" && t ===
|
|
3367
|
-
"border-border-accent": r === "light" && t ===
|
|
3366
|
+
"border-border-dark": r === "dark" && t === $e,
|
|
3367
|
+
"border-border-accent": r === "light" && t === $e
|
|
3368
3368
|
}),
|
|
3369
3369
|
content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
|
|
3370
3370
|
footer: "flex flex-grow flex-col sm:p-4 p-2",
|
|
3371
3371
|
header: "sm:p-4 mb-0 p-2",
|
|
3372
3372
|
close: "sm:p-4 p-2"
|
|
3373
|
-
}),
|
|
3373
|
+
}), Ci = ({
|
|
3374
3374
|
open: e,
|
|
3375
3375
|
onOpenChange: t,
|
|
3376
3376
|
title: r,
|
|
@@ -3380,13 +3380,13 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3380
3380
|
kind: i = we,
|
|
3381
3381
|
className: s
|
|
3382
3382
|
}) => {
|
|
3383
|
-
const c = I(""), u =
|
|
3383
|
+
const c = I(""), u = Ii({ className: s, kind: i, borderMode: o });
|
|
3384
3384
|
return C(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
|
|
3385
3385
|
e && (document.title = c.current);
|
|
3386
|
-
}), [r, e]), /* @__PURE__ */ l(se, { children: e && /* @__PURE__ */ l(
|
|
3386
|
+
}), [r, e]), /* @__PURE__ */ l(se, { children: e && /* @__PURE__ */ l(wi, { open: e, onOpenChange: t, children: /* @__PURE__ */ _(xi, { className: u.main, children: [
|
|
3387
3387
|
/* @__PURE__ */ _("div", { className: "flex flex-row-reverse items-center justify-between", children: [
|
|
3388
3388
|
/* @__PURE__ */ l(
|
|
3389
|
-
|
|
3389
|
+
Ti,
|
|
3390
3390
|
{
|
|
3391
3391
|
className: u.close,
|
|
3392
3392
|
trigger: /* @__PURE__ */ l(
|
|
@@ -3396,30 +3396,30 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3396
3396
|
focusMode: "light",
|
|
3397
3397
|
noBorder: !0,
|
|
3398
3398
|
label: "Close",
|
|
3399
|
-
children: /* @__PURE__ */ l(
|
|
3399
|
+
children: /* @__PURE__ */ l(vi, {})
|
|
3400
3400
|
}
|
|
3401
3401
|
)
|
|
3402
3402
|
}
|
|
3403
3403
|
),
|
|
3404
|
-
/* @__PURE__ */ l(
|
|
3404
|
+
/* @__PURE__ */ l(_i, { className: u.header, children: r })
|
|
3405
3405
|
] }),
|
|
3406
|
-
/* @__PURE__ */ l(
|
|
3406
|
+
/* @__PURE__ */ l(Ni, { className: u.content, children: a }),
|
|
3407
3407
|
n && /* @__PURE__ */ l("div", { className: u.footer, children: n })
|
|
3408
3408
|
] }) }) });
|
|
3409
|
-
},
|
|
3409
|
+
}, Ei = ({
|
|
3410
3410
|
showConfirmation: e,
|
|
3411
3411
|
setShowConfirmation: t,
|
|
3412
3412
|
action: r,
|
|
3413
3413
|
children: a,
|
|
3414
3414
|
customStrings: n
|
|
3415
3415
|
}) => /* @__PURE__ */ l(
|
|
3416
|
-
|
|
3416
|
+
Ci,
|
|
3417
3417
|
{
|
|
3418
3418
|
kind: "messagebox",
|
|
3419
3419
|
open: e,
|
|
3420
3420
|
onOpenChange: t,
|
|
3421
3421
|
title: n.title,
|
|
3422
|
-
footer: /* @__PURE__ */ _(
|
|
3422
|
+
footer: /* @__PURE__ */ _(pa, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
3423
3423
|
/* @__PURE__ */ l(At, { children: /* @__PURE__ */ l(
|
|
3424
3424
|
Mt,
|
|
3425
3425
|
{
|
|
@@ -3447,14 +3447,14 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3447
3447
|
] }),
|
|
3448
3448
|
children: a
|
|
3449
3449
|
}
|
|
3450
|
-
),
|
|
3450
|
+
), Ri = ({
|
|
3451
3451
|
className: e
|
|
3452
3452
|
}) => {
|
|
3453
3453
|
const {
|
|
3454
3454
|
state: { privateChat: t },
|
|
3455
3455
|
dispatch: r
|
|
3456
|
-
} = V(Z), [a, n] = z(!1), [o, i] =
|
|
3457
|
-
key:
|
|
3456
|
+
} = V(Z), [a, n] = z(!1), [o, i] = it({
|
|
3457
|
+
key: nt + ba,
|
|
3458
3458
|
initialValue: ""
|
|
3459
3459
|
}), s = () => {
|
|
3460
3460
|
r({
|
|
@@ -3466,7 +3466,7 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3466
3466
|
};
|
|
3467
3467
|
return /* @__PURE__ */ _(se, { children: [
|
|
3468
3468
|
/* @__PURE__ */ l(
|
|
3469
|
-
|
|
3469
|
+
Ei,
|
|
3470
3470
|
{
|
|
3471
3471
|
showConfirmation: a,
|
|
3472
3472
|
setShowConfirmation: n,
|
|
@@ -3503,7 +3503,7 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3503
3503
|
u.preventDefault(), o ? s() : (i("true"), n(!a));
|
|
3504
3504
|
},
|
|
3505
3505
|
className: "text-sm",
|
|
3506
|
-
children: t ? /* @__PURE__ */ l(
|
|
3506
|
+
children: t ? /* @__PURE__ */ l(Xa, { size: ee }) : /* @__PURE__ */ l(Qa, { size: ee })
|
|
3507
3507
|
}
|
|
3508
3508
|
)
|
|
3509
3509
|
}
|
|
@@ -3529,7 +3529,7 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3529
3529
|
return t.displayName || t.name || "Component";
|
|
3530
3530
|
}
|
|
3531
3531
|
return "Element";
|
|
3532
|
-
},
|
|
3532
|
+
}, aa = Nr(
|
|
3533
3533
|
({
|
|
3534
3534
|
trigger: e,
|
|
3535
3535
|
children: t,
|
|
@@ -3540,31 +3540,31 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3540
3540
|
focusMode: i = "system",
|
|
3541
3541
|
...s
|
|
3542
3542
|
}, c) => {
|
|
3543
|
-
const [u, m] = z(!1), [h, g] = z(!1), [p, f] = z(null), y = I([]), b = I([]),
|
|
3544
|
-
nodeId:
|
|
3543
|
+
const [u, m] = z(!1), [h, g] = z(!1), [p, f] = z(null), y = I([]), b = I([]), k = V(ft), w = Lr(), v = Pa(), R = Or(), { floatingStyles: B, refs: A, context: E } = Er({
|
|
3544
|
+
nodeId: v,
|
|
3545
3545
|
open: u,
|
|
3546
3546
|
onOpenChange: (j) => {
|
|
3547
3547
|
m(j), n == null || n(j);
|
|
3548
3548
|
},
|
|
3549
3549
|
placement: a,
|
|
3550
3550
|
strategy: "fixed",
|
|
3551
|
-
middleware: [
|
|
3552
|
-
whileElementsMounted:
|
|
3553
|
-
}), S =
|
|
3551
|
+
middleware: [za({ mainAxis: 10 }), Va(), Da()],
|
|
3552
|
+
whileElementsMounted: Ha
|
|
3553
|
+
}), S = Rr(E, {
|
|
3554
3554
|
event: "mousedown",
|
|
3555
3555
|
toggle: !0,
|
|
3556
3556
|
ignoreMouse: !1
|
|
3557
|
-
}),
|
|
3557
|
+
}), x = $r(E, { role: "menu" }), L = Sr(E, { bubbles: !0 }), N = Ua(E, {
|
|
3558
3558
|
listRef: y,
|
|
3559
3559
|
activeIndex: p,
|
|
3560
3560
|
nested: !1,
|
|
3561
3561
|
onNavigate: f,
|
|
3562
3562
|
loop: !0
|
|
3563
|
-
}), $ =
|
|
3563
|
+
}), $ = Fa(E, {
|
|
3564
3564
|
listRef: b,
|
|
3565
3565
|
onMatch: u ? f : void 0,
|
|
3566
3566
|
activeIndex: p
|
|
3567
|
-
}), { getReferenceProps: M, getFloatingProps: O, getItemProps: P } =
|
|
3567
|
+
}), { getReferenceProps: M, getFloatingProps: O, getItemProps: P } = Br([S, x, L, N, $]), T = dr(e) === "Button" || dr(e) === "ButtonIcon", D = T ? {
|
|
3568
3568
|
noInternalClick: T,
|
|
3569
3569
|
focusMode: i,
|
|
3570
3570
|
mode: o
|
|
@@ -3577,24 +3577,24 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3577
3577
|
"data-focus-inside": h ? "" : void 0,
|
|
3578
3578
|
ref: wt([A.setReference, R.ref, c]),
|
|
3579
3579
|
...M(
|
|
3580
|
-
|
|
3580
|
+
k.getItemProps({
|
|
3581
3581
|
...s
|
|
3582
3582
|
})
|
|
3583
3583
|
)
|
|
3584
3584
|
}
|
|
3585
3585
|
);
|
|
3586
3586
|
return C(() => {
|
|
3587
|
-
if (!
|
|
3587
|
+
if (!w)
|
|
3588
3588
|
return;
|
|
3589
3589
|
function j() {
|
|
3590
3590
|
m(!1), n == null || n(!1);
|
|
3591
3591
|
}
|
|
3592
|
-
return
|
|
3593
|
-
|
|
3592
|
+
return w.events.on("click", j), () => {
|
|
3593
|
+
w.events.off("click", j);
|
|
3594
3594
|
};
|
|
3595
|
-
}, [
|
|
3596
|
-
u &&
|
|
3597
|
-
}, [
|
|
3595
|
+
}, [w, n]), C(() => {
|
|
3596
|
+
u && w && w.events.emit("menuopen", { nodeId: v });
|
|
3597
|
+
}, [w, u, v]), /* @__PURE__ */ _(Wa, { id: v, children: [
|
|
3598
3598
|
K,
|
|
3599
3599
|
/* @__PURE__ */ l(
|
|
3600
3600
|
ft.Provider,
|
|
@@ -3606,8 +3606,8 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3606
3606
|
setHasFocusInside: g,
|
|
3607
3607
|
isOpen: u
|
|
3608
3608
|
},
|
|
3609
|
-
children: /* @__PURE__ */ l(
|
|
3610
|
-
|
|
3609
|
+
children: /* @__PURE__ */ l(ja, { elementsRef: y, labelsRef: b, children: u && /* @__PURE__ */ l(Ir, { children: /* @__PURE__ */ l(
|
|
3610
|
+
Cr,
|
|
3611
3611
|
{
|
|
3612
3612
|
context: E,
|
|
3613
3613
|
modal: !1,
|
|
@@ -3629,10 +3629,10 @@ const we = "panel", Se = "messagebox", Ni = ({
|
|
|
3629
3629
|
)
|
|
3630
3630
|
] });
|
|
3631
3631
|
}
|
|
3632
|
-
), $t =
|
|
3632
|
+
), $t = Nr((e, t) => /* @__PURE__ */ l(Ga, { children: /* @__PURE__ */ l(aa, { ...e, ref: t }) }));
|
|
3633
3633
|
$t.displayName = "Menu";
|
|
3634
|
-
|
|
3635
|
-
const
|
|
3634
|
+
aa.displayName = "MenuComponent";
|
|
3635
|
+
const Ve = F.forwardRef(
|
|
3636
3636
|
({
|
|
3637
3637
|
label: e,
|
|
3638
3638
|
disabled: t,
|
|
@@ -3644,7 +3644,7 @@ const Me = F.forwardRef(
|
|
|
3644
3644
|
...s
|
|
3645
3645
|
}, c) => {
|
|
3646
3646
|
let u = "";
|
|
3647
|
-
const m = F.useContext(ft), h =
|
|
3647
|
+
const m = F.useContext(ft), h = Or({ label: t ? null : e }), g = Lr(), p = wt([h.ref, c]);
|
|
3648
3648
|
if (a && n)
|
|
3649
3649
|
return /* @__PURE__ */ l(
|
|
3650
3650
|
"div",
|
|
@@ -3695,11 +3695,11 @@ const Me = F.forwardRef(
|
|
|
3695
3695
|
);
|
|
3696
3696
|
}
|
|
3697
3697
|
);
|
|
3698
|
-
|
|
3698
|
+
Ve.displayName = "MenuItem";
|
|
3699
3699
|
const nl = ({ className: e, ...t }) => {
|
|
3700
3700
|
const r = d(e, "my-1 border-t border-border-medium");
|
|
3701
3701
|
return /* @__PURE__ */ l("div", { className: r, ...t });
|
|
3702
|
-
},
|
|
3702
|
+
}, na = ({
|
|
3703
3703
|
className: e,
|
|
3704
3704
|
...t
|
|
3705
3705
|
}) => {
|
|
@@ -3722,16 +3722,16 @@ try {
|
|
|
3722
3722
|
});
|
|
3723
3723
|
} catch {
|
|
3724
3724
|
}
|
|
3725
|
-
const
|
|
3725
|
+
const Si = (e) => {
|
|
3726
3726
|
for (let t = 0; t < e.length; t++)
|
|
3727
3727
|
if (e[t].enabled)
|
|
3728
3728
|
return !0;
|
|
3729
3729
|
return !1;
|
|
3730
|
-
},
|
|
3730
|
+
}, $i = ({
|
|
3731
3731
|
className: e,
|
|
3732
3732
|
defaultPlacement: t = "top-start"
|
|
3733
3733
|
}) => {
|
|
3734
|
-
const { dispatch: r } = V(Z), { dispatch: a } = V(
|
|
3734
|
+
const { dispatch: r } = V(Z), { dispatch: a } = V(Ue), { getAccessToken: n, user: o } = ge(), {
|
|
3735
3735
|
data: i,
|
|
3736
3736
|
error: s,
|
|
3737
3737
|
isLoading: c
|
|
@@ -3745,13 +3745,13 @@ const Ei = (e) => {
|
|
|
3745
3745
|
privateChat: !0
|
|
3746
3746
|
}
|
|
3747
3747
|
}), a({
|
|
3748
|
-
type:
|
|
3748
|
+
type: xr,
|
|
3749
3749
|
payload: {
|
|
3750
3750
|
prompt: h
|
|
3751
3751
|
}
|
|
3752
3752
|
});
|
|
3753
3753
|
};
|
|
3754
|
-
return s || c ? null : i && i.tags &&
|
|
3754
|
+
return s || c ? null : i && i.tags && Si(i.tags) && /* @__PURE__ */ l(
|
|
3755
3755
|
ye,
|
|
3756
3756
|
{
|
|
3757
3757
|
label: "Custom Prompts",
|
|
@@ -3762,12 +3762,12 @@ const Ei = (e) => {
|
|
|
3762
3762
|
{
|
|
3763
3763
|
mode: "dark",
|
|
3764
3764
|
focusMode: "light",
|
|
3765
|
-
trigger: /* @__PURE__ */ l(he, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(
|
|
3765
|
+
trigger: /* @__PURE__ */ l(he, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Ya, { size: ee }) }),
|
|
3766
3766
|
defaultPlacement: t,
|
|
3767
3767
|
children: [
|
|
3768
|
-
/* @__PURE__ */ l(
|
|
3768
|
+
/* @__PURE__ */ l(na, { children: "Prompts" }),
|
|
3769
3769
|
i && i.tags && i.tags.map((m) => m.enabled && m.label && m.content && /* @__PURE__ */ l(
|
|
3770
|
-
|
|
3770
|
+
Ve,
|
|
3771
3771
|
{
|
|
3772
3772
|
label: m.label,
|
|
3773
3773
|
onClick: (h) => u(
|
|
@@ -3783,7 +3783,7 @@ const Ei = (e) => {
|
|
|
3783
3783
|
)
|
|
3784
3784
|
}
|
|
3785
3785
|
);
|
|
3786
|
-
},
|
|
3786
|
+
}, Bi = ({
|
|
3787
3787
|
className: e
|
|
3788
3788
|
}) => {
|
|
3789
3789
|
const { user: t, getAccessToken: r } = ge(), {
|
|
@@ -3791,9 +3791,9 @@ const Ei = (e) => {
|
|
|
3791
3791
|
} = V(Z), [c, u] = z(!1), m = async (h) => {
|
|
3792
3792
|
h.preventDefault();
|
|
3793
3793
|
try {
|
|
3794
|
-
i && a && o && await
|
|
3794
|
+
i && a && o && await ya({
|
|
3795
3795
|
accessToken: await r(),
|
|
3796
|
-
type:
|
|
3796
|
+
type: va.SAVE_CHAT,
|
|
3797
3797
|
params: {
|
|
3798
3798
|
userId: (t == null ? void 0 : t.username) || "",
|
|
3799
3799
|
id: i,
|
|
@@ -3822,12 +3822,12 @@ const Ei = (e) => {
|
|
|
3822
3822
|
focusMode: "light",
|
|
3823
3823
|
label: "Save Private Chat",
|
|
3824
3824
|
onClick: m,
|
|
3825
|
-
children: /* @__PURE__ */ l(
|
|
3825
|
+
children: /* @__PURE__ */ l(Za, { size: ee, monotone: !0 })
|
|
3826
3826
|
}
|
|
3827
3827
|
)
|
|
3828
3828
|
}
|
|
3829
3829
|
);
|
|
3830
|
-
},
|
|
3830
|
+
}, Li = ({
|
|
3831
3831
|
show: e,
|
|
3832
3832
|
bottom: t
|
|
3833
3833
|
}) => e ? /* @__PURE__ */ l(
|
|
@@ -3835,7 +3835,7 @@ const Ei = (e) => {
|
|
|
3835
3835
|
{
|
|
3836
3836
|
style: { bottom: `${t}px` },
|
|
3837
3837
|
className: d(
|
|
3838
|
-
|
|
3838
|
+
no,
|
|
3839
3839
|
"fixed left-1/2 transform -translate-x-1/2"
|
|
3840
3840
|
),
|
|
3841
3841
|
children: /* @__PURE__ */ l(
|
|
@@ -3861,7 +3861,7 @@ const Ei = (e) => {
|
|
|
3861
3861
|
}
|
|
3862
3862
|
)
|
|
3863
3863
|
}
|
|
3864
|
-
) : null,
|
|
3864
|
+
) : null, Oi = ({
|
|
3865
3865
|
className: e
|
|
3866
3866
|
}) => {
|
|
3867
3867
|
const {
|
|
@@ -3884,12 +3884,12 @@ const Ei = (e) => {
|
|
|
3884
3884
|
type: "submit",
|
|
3885
3885
|
mode: "light",
|
|
3886
3886
|
focusMode: "light",
|
|
3887
|
-
children: /* @__PURE__ */ l(
|
|
3887
|
+
children: /* @__PURE__ */ l(Ja, { size: ee })
|
|
3888
3888
|
}
|
|
3889
3889
|
)
|
|
3890
3890
|
}
|
|
3891
3891
|
);
|
|
3892
|
-
},
|
|
3892
|
+
}, Ai = ({
|
|
3893
3893
|
className: e
|
|
3894
3894
|
}) => {
|
|
3895
3895
|
const {
|
|
@@ -3905,7 +3905,7 @@ const Ei = (e) => {
|
|
|
3905
3905
|
getAccessToken: a
|
|
3906
3906
|
}), u = async (m) => {
|
|
3907
3907
|
try {
|
|
3908
|
-
await
|
|
3908
|
+
await ka({
|
|
3909
3909
|
provider: m,
|
|
3910
3910
|
accessToken: await a(),
|
|
3911
3911
|
username: (n == null ? void 0 : n.username) || ""
|
|
@@ -3929,21 +3929,21 @@ const Ei = (e) => {
|
|
|
3929
3929
|
{
|
|
3930
3930
|
mode: "dark",
|
|
3931
3931
|
focusMode: "light",
|
|
3932
|
-
trigger: /* @__PURE__ */ l(he, { noBorder: !0, label: "Providers", children: t ===
|
|
3932
|
+
trigger: /* @__PURE__ */ l(he, { noBorder: !0, label: "Providers", children: t === Ke ? /* @__PURE__ */ l(Wt, { size: ee }) : /* @__PURE__ */ l(jt, { size: ee }) }),
|
|
3933
3933
|
defaultPlacement: "top-start",
|
|
3934
3934
|
children: [
|
|
3935
|
-
/* @__PURE__ */ l(
|
|
3935
|
+
/* @__PURE__ */ l(na, { children: "Providers" }),
|
|
3936
3936
|
/* @__PURE__ */ l(
|
|
3937
|
-
|
|
3937
|
+
Ve,
|
|
3938
3938
|
{
|
|
3939
|
-
selected: t ===
|
|
3939
|
+
selected: t === Ke,
|
|
3940
3940
|
label: "Anthropic",
|
|
3941
3941
|
icon: /* @__PURE__ */ l(Wt, {}),
|
|
3942
|
-
onClick: () => u(
|
|
3942
|
+
onClick: () => u(Ke)
|
|
3943
3943
|
}
|
|
3944
3944
|
),
|
|
3945
3945
|
/* @__PURE__ */ l(
|
|
3946
|
-
|
|
3946
|
+
Ve,
|
|
3947
3947
|
{
|
|
3948
3948
|
selected: t === Pt,
|
|
3949
3949
|
label: "OpenAI",
|
|
@@ -3956,35 +3956,35 @@ const Ei = (e) => {
|
|
|
3956
3956
|
)
|
|
3957
3957
|
}
|
|
3958
3958
|
);
|
|
3959
|
-
},
|
|
3959
|
+
}, Mi = () => d(
|
|
3960
3960
|
"relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
|
|
3961
|
-
), ur = () => d("bg-surface-darker"),
|
|
3961
|
+
), ur = () => d("bg-surface-darker"), Pi = () => d("text-copy-lighter caret-copy-light"), zi = () => d(
|
|
3962
3962
|
"has-[.av-prompt-editable:focus]:outline",
|
|
3963
3963
|
"has-[.av-prompt-editable:focus]:outline-2",
|
|
3964
3964
|
"has-[.av-prompt-editable:focus]:outline-offset-2",
|
|
3965
3965
|
"has-[.av-prompt-editable:focus]:outline-focus-light"
|
|
3966
|
-
),
|
|
3966
|
+
), Vi = () => d(
|
|
3967
3967
|
"peer",
|
|
3968
3968
|
"text-base resize-none overflow-hidden w-full text-inherit outline-none",
|
|
3969
3969
|
"h-6 pr-2 pl-4"
|
|
3970
|
-
),
|
|
3970
|
+
), Di = ({ className: e }) => {
|
|
3971
3971
|
const t = d(
|
|
3972
|
-
|
|
3973
|
-
Oi(),
|
|
3974
|
-
ur(),
|
|
3975
|
-
Ai(),
|
|
3972
|
+
wa,
|
|
3976
3973
|
Mi(),
|
|
3974
|
+
ur(),
|
|
3975
|
+
Pi(),
|
|
3976
|
+
zi(),
|
|
3977
3977
|
e
|
|
3978
3978
|
), r = d(
|
|
3979
|
-
|
|
3980
|
-
|
|
3979
|
+
xa,
|
|
3980
|
+
Vi(),
|
|
3981
3981
|
ur()
|
|
3982
3982
|
);
|
|
3983
3983
|
return {
|
|
3984
3984
|
wrapper: t,
|
|
3985
3985
|
textArea: r
|
|
3986
3986
|
};
|
|
3987
|
-
}, mr = 24,
|
|
3987
|
+
}, mr = 24, Hi = ({
|
|
3988
3988
|
className: e,
|
|
3989
3989
|
label: t,
|
|
3990
3990
|
value: r,
|
|
@@ -3996,16 +3996,16 @@ const Ei = (e) => {
|
|
|
3996
3996
|
}) => {
|
|
3997
3997
|
const m = mr * 2, h = 5 * mr, {
|
|
3998
3998
|
state: { usage: g, messages: p }
|
|
3999
|
-
} = V(Z), { state: f } = V(
|
|
3999
|
+
} = V(Z), { state: f } = V(Ue), y = I(null), b = I(null), k = mn([i, b]), w = pn(), v = Di({
|
|
4000
4000
|
className: e
|
|
4001
|
-
}), [R, B] =
|
|
4001
|
+
}), [R, B] = fn({
|
|
4002
4002
|
value: r,
|
|
4003
4003
|
initialControlledDelay: 20,
|
|
4004
4004
|
defaultValue: a,
|
|
4005
|
-
onChange: (
|
|
4005
|
+
onChange: (x) => {
|
|
4006
4006
|
n && n({
|
|
4007
4007
|
target: {
|
|
4008
|
-
value:
|
|
4008
|
+
value: x
|
|
4009
4009
|
}
|
|
4010
4010
|
});
|
|
4011
4011
|
}
|
|
@@ -4013,16 +4013,16 @@ const Ei = (e) => {
|
|
|
4013
4013
|
if (!b.current)
|
|
4014
4014
|
return;
|
|
4015
4015
|
b.current.style.height = "auto";
|
|
4016
|
-
const
|
|
4017
|
-
if (
|
|
4016
|
+
const x = b.current.scrollHeight;
|
|
4017
|
+
if (x > h) {
|
|
4018
4018
|
b.current.style.height = `${h}px`, b.current.style.overflowY = "scroll";
|
|
4019
4019
|
return;
|
|
4020
4020
|
}
|
|
4021
|
-
b.current.style.height = `${
|
|
4022
|
-
}, [h]), E = (
|
|
4023
|
-
B(""), b.current && (b.current.style.height = `${m}px`), o(
|
|
4024
|
-
}, S = (
|
|
4025
|
-
B(
|
|
4021
|
+
b.current.style.height = `${x}px`, b.current.style.overflowY = "hidden";
|
|
4022
|
+
}, [h]), E = (x) => {
|
|
4023
|
+
B(""), b.current && (b.current.style.height = `${m}px`), o(x, R);
|
|
4024
|
+
}, S = (x) => {
|
|
4025
|
+
B(x.target.value), A();
|
|
4026
4026
|
};
|
|
4027
4027
|
return C(() => {
|
|
4028
4028
|
g === 0 && (p == null ? void 0 : p.length) === 0 && b.current && (b.current.style.height = `${m}px`);
|
|
@@ -4033,54 +4033,54 @@ const Ei = (e) => {
|
|
|
4033
4033
|
}, [f.lastTriggeredTimestamp, A]), /* @__PURE__ */ l(
|
|
4034
4034
|
"div",
|
|
4035
4035
|
{
|
|
4036
|
-
className:
|
|
4036
|
+
className: v.wrapper,
|
|
4037
4037
|
ref: y,
|
|
4038
4038
|
...s,
|
|
4039
4039
|
children: /* @__PURE__ */ _("form", { onSubmit: E, children: [
|
|
4040
|
-
/* @__PURE__ */ l("div", { id:
|
|
4040
|
+
/* @__PURE__ */ l("div", { id: w, className: "sr-only", children: t }),
|
|
4041
4041
|
/* @__PURE__ */ l("div", { className: "relative", children: /* @__PURE__ */ l(
|
|
4042
4042
|
"textarea",
|
|
4043
4043
|
{
|
|
4044
4044
|
required: !0,
|
|
4045
4045
|
rows: 2,
|
|
4046
|
-
ref:
|
|
4046
|
+
ref: k,
|
|
4047
4047
|
placeholder: "Type your question here.",
|
|
4048
4048
|
translate: "no",
|
|
4049
4049
|
onChange: S,
|
|
4050
4050
|
value: R,
|
|
4051
|
-
onKeyDown:
|
|
4052
|
-
className:
|
|
4053
|
-
"aria-labelledby":
|
|
4051
|
+
onKeyDown: nn([["mod+Enter", E]]),
|
|
4052
|
+
className: v.textArea,
|
|
4053
|
+
"aria-labelledby": w
|
|
4054
4054
|
}
|
|
4055
4055
|
) }),
|
|
4056
4056
|
/* @__PURE__ */ _("div", { className: "p-2 flex items-center", children: [
|
|
4057
|
-
/* @__PURE__ */ l(
|
|
4058
|
-
/* @__PURE__ */ l(
|
|
4059
|
-
/* @__PURE__ */ l(
|
|
4060
|
-
/* @__PURE__ */ l(
|
|
4061
|
-
/* @__PURE__ */ l(
|
|
4062
|
-
/* @__PURE__ */ l(
|
|
4057
|
+
/* @__PURE__ */ l(Oi, { className: "order-6 ml-auto" }),
|
|
4058
|
+
/* @__PURE__ */ l(Xo, { className: "order-1 mr-4 sm:mr-2" }),
|
|
4059
|
+
/* @__PURE__ */ l(Ai, { className: "order-2 mr-4 sm:mr-2" }),
|
|
4060
|
+
/* @__PURE__ */ l($i, { className: "order-3 mr-4 sm:mr-2" }),
|
|
4061
|
+
/* @__PURE__ */ l(Ri, { className: "order-4 mr-4 sm:mr-2" }),
|
|
4062
|
+
/* @__PURE__ */ l(Bi, { className: "order-5" })
|
|
4063
4063
|
] })
|
|
4064
4064
|
] })
|
|
4065
4065
|
}
|
|
4066
4066
|
);
|
|
4067
|
-
},
|
|
4067
|
+
}, Ui = 500, Fi = () => {
|
|
4068
4068
|
const {
|
|
4069
4069
|
state: { messages: e, provider: t, id: r, usage: a, privateChat: n, streaming: o },
|
|
4070
4070
|
dispatch: i
|
|
4071
|
-
} = V(Z), { state: s, dispatch: c } = V(
|
|
4071
|
+
} = V(Z), { state: s, dispatch: c } = V(Ue), [u, m] = z(""), { getAccessToken: h, user: g } = ge(), p = I(!1), f = I(null), y = I(
|
|
4072
4072
|
null
|
|
4073
4073
|
);
|
|
4074
|
-
|
|
4074
|
+
sn([
|
|
4075
4075
|
[
|
|
4076
4076
|
"mod+K",
|
|
4077
4077
|
() => {
|
|
4078
|
-
f && f.current && !
|
|
4078
|
+
f && f.current && !at() && f.current.focus();
|
|
4079
4079
|
}
|
|
4080
4080
|
]
|
|
4081
4081
|
]);
|
|
4082
|
-
const b = async (
|
|
4083
|
-
|
|
4082
|
+
const b = async (k) => {
|
|
4083
|
+
k.preventDefault(), i({
|
|
4084
4084
|
type: ke,
|
|
4085
4085
|
payload: {
|
|
4086
4086
|
content: u,
|
|
@@ -4090,31 +4090,31 @@ const Ei = (e) => {
|
|
|
4090
4090
|
};
|
|
4091
4091
|
return C(() => {
|
|
4092
4092
|
(async () => {
|
|
4093
|
-
var
|
|
4093
|
+
var w;
|
|
4094
4094
|
if (e.length === 0 && y.current) {
|
|
4095
|
-
(
|
|
4095
|
+
(w = y.current) == null || w.cancel();
|
|
4096
4096
|
return;
|
|
4097
4097
|
}
|
|
4098
|
-
const
|
|
4099
|
-
if (!(e.length === 0 || (
|
|
4098
|
+
const k = e[e.length - 1];
|
|
4099
|
+
if (!(e.length === 0 || (k == null ? void 0 : k.role) === xe || (k == null ? void 0 : k.role) === _a || (k == null ? void 0 : k.role) === ae || (k == null ? void 0 : k.role) === Na)) {
|
|
4100
4100
|
i({
|
|
4101
4101
|
type: dt,
|
|
4102
4102
|
payload: !0
|
|
4103
4103
|
});
|
|
4104
4104
|
try {
|
|
4105
|
-
const
|
|
4105
|
+
const v = await Ta({
|
|
4106
4106
|
accessToken: await h(),
|
|
4107
4107
|
name: "generate",
|
|
4108
4108
|
data: {
|
|
4109
4109
|
messages: e,
|
|
4110
|
-
model: t ||
|
|
4110
|
+
model: t || Oe,
|
|
4111
4111
|
user: (g == null ? void 0 : g.username) || "",
|
|
4112
4112
|
id: r,
|
|
4113
4113
|
usage: a,
|
|
4114
4114
|
private: n
|
|
4115
4115
|
}
|
|
4116
4116
|
});
|
|
4117
|
-
if (
|
|
4117
|
+
if (v && v.ok) {
|
|
4118
4118
|
i({
|
|
4119
4119
|
type: dt,
|
|
4120
4120
|
payload: !1
|
|
@@ -4122,14 +4122,14 @@ const Ei = (e) => {
|
|
|
4122
4122
|
type: ut,
|
|
4123
4123
|
payload: !0
|
|
4124
4124
|
});
|
|
4125
|
-
const R =
|
|
4126
|
-
y.current =
|
|
4125
|
+
const R = Ae();
|
|
4126
|
+
y.current = v.body.getReader();
|
|
4127
4127
|
const B = new TextDecoder();
|
|
4128
4128
|
for (; ; ) {
|
|
4129
4129
|
const { done: A, value: E } = await y.current.read();
|
|
4130
4130
|
if (A)
|
|
4131
4131
|
break;
|
|
4132
|
-
const S = B.decode(E, { stream: !0 }),
|
|
4132
|
+
const S = B.decode(E, { stream: !0 }), x = S.indexOf(zt), L = S.indexOf(Vt);
|
|
4133
4133
|
if (L !== -1) {
|
|
4134
4134
|
const N = JSON.parse(
|
|
4135
4135
|
S.substring(L + Vt.length)
|
|
@@ -4139,12 +4139,12 @@ const Ei = (e) => {
|
|
|
4139
4139
|
payload: {
|
|
4140
4140
|
content: N.content,
|
|
4141
4141
|
role: ae,
|
|
4142
|
-
messageId:
|
|
4142
|
+
messageId: Ae()
|
|
4143
4143
|
}
|
|
4144
4144
|
});
|
|
4145
|
-
} else if (
|
|
4146
|
-
const N = S.substring(0,
|
|
4147
|
-
S.substring(
|
|
4145
|
+
} else if (x !== -1) {
|
|
4146
|
+
const N = S.substring(0, x), $ = JSON.parse(
|
|
4147
|
+
S.substring(x + zt.length)
|
|
4148
4148
|
);
|
|
4149
4149
|
i({
|
|
4150
4150
|
type: ke,
|
|
@@ -4181,8 +4181,8 @@ const Ei = (e) => {
|
|
|
4181
4181
|
role: ae
|
|
4182
4182
|
}
|
|
4183
4183
|
});
|
|
4184
|
-
} catch (
|
|
4185
|
-
console.error(
|
|
4184
|
+
} catch (v) {
|
|
4185
|
+
console.error(v), i({
|
|
4186
4186
|
type: ct,
|
|
4187
4187
|
payload: {
|
|
4188
4188
|
content: Dt,
|
|
@@ -4194,11 +4194,11 @@ const Ei = (e) => {
|
|
|
4194
4194
|
})();
|
|
4195
4195
|
}, [e]), C(() => {
|
|
4196
4196
|
if (s.prompt !== "") {
|
|
4197
|
-
const
|
|
4198
|
-
|
|
4199
|
-
m(
|
|
4200
|
-
}) : m(
|
|
4201
|
-
type:
|
|
4197
|
+
const k = s.prompt.endsWith(":") && !s.prompt.endsWith(": ") ? s.prompt + " " : s.prompt;
|
|
4198
|
+
k.indexOf(Ht) !== -1 ? navigator.clipboard.readText().then((v) => {
|
|
4199
|
+
m(k.replace(Ht, v));
|
|
4200
|
+
}) : m(k), !at() && f.current && f.current.focus(), c({
|
|
4201
|
+
type: wr
|
|
4202
4202
|
});
|
|
4203
4203
|
}
|
|
4204
4204
|
}, [s, c]), C(() => {
|
|
@@ -4208,59 +4208,69 @@ const Ei = (e) => {
|
|
|
4208
4208
|
}
|
|
4209
4209
|
a === 0 && (e == null ? void 0 : e.length) === 0 && (m(""), setTimeout(() => {
|
|
4210
4210
|
f.current && f.current.focus();
|
|
4211
|
-
},
|
|
4211
|
+
}, Ui));
|
|
4212
4212
|
}, [a, e]), C(() => {
|
|
4213
4213
|
o === !1 && f.current && f.current.focus();
|
|
4214
4214
|
}, [o]), /* @__PURE__ */ l(se, { children: /* @__PURE__ */ l(
|
|
4215
|
-
|
|
4215
|
+
Hi,
|
|
4216
4216
|
{
|
|
4217
|
-
label:
|
|
4217
|
+
label: Ia,
|
|
4218
4218
|
onSubmit: b,
|
|
4219
4219
|
ref: f,
|
|
4220
4220
|
value: u,
|
|
4221
|
-
onChange: (
|
|
4221
|
+
onChange: (k) => m(k.target.value)
|
|
4222
4222
|
}
|
|
4223
4223
|
) });
|
|
4224
|
-
},
|
|
4224
|
+
}, Be = "--sassy-bottom", hr = 16, gr = 76, Wi = ({ isComponent: e }) => {
|
|
4225
4225
|
const {
|
|
4226
4226
|
state: { loading: t, streaming: r, restoring: a, messages: n }
|
|
4227
4227
|
} = V(Z), {
|
|
4228
4228
|
state: { footerHeight: o, footerPosition: i },
|
|
4229
4229
|
dispatch: s
|
|
4230
|
-
} = V(Nt), { height: c } =
|
|
4230
|
+
} = V(Nt), { height: c } = bn(), { height: u } = yn(), [m, h] = gn();
|
|
4231
4231
|
return C(() => {
|
|
4232
4232
|
o !== h.height && s({
|
|
4233
|
-
type:
|
|
4233
|
+
type: Hr,
|
|
4234
4234
|
payload: {
|
|
4235
4235
|
footerHeight: h.height
|
|
4236
4236
|
}
|
|
4237
4237
|
});
|
|
4238
4238
|
}, [h.height, o, s]), C(() => {
|
|
4239
|
-
var f, y, b;
|
|
4239
|
+
var f, y, b, k;
|
|
4240
4240
|
if (!m || !m.current)
|
|
4241
4241
|
return;
|
|
4242
|
-
const g = c - u, p = (f = m == null ? void 0 : m.current) == null ? void 0 : f.style.getPropertyValue(
|
|
4243
|
-
if (i ===
|
|
4244
|
-
const
|
|
4245
|
-
p !== `${
|
|
4246
|
-
type:
|
|
4242
|
+
const g = c - u, p = (f = m == null ? void 0 : m.current) == null ? void 0 : f.style.getPropertyValue(Be);
|
|
4243
|
+
if (i === lt && (t && !r || a)) {
|
|
4244
|
+
const w = g > 0 && g < 100 ? gr : hr;
|
|
4245
|
+
p !== `${w}px` && (s({
|
|
4246
|
+
type: Le,
|
|
4247
4247
|
payload: {
|
|
4248
|
-
footerPosition:
|
|
4249
|
-
footerOffset:
|
|
4248
|
+
footerPosition: _e,
|
|
4249
|
+
footerOffset: w
|
|
4250
4250
|
}
|
|
4251
|
-
}), (y = m == null ? void 0 : m.current) == null || y.style.setProperty(
|
|
4251
|
+
}), (y = m == null ? void 0 : m.current) == null || y.style.setProperty(Be, `${w}px`));
|
|
4252
4252
|
}
|
|
4253
|
-
if (
|
|
4254
|
-
const
|
|
4255
|
-
p !== `${
|
|
4256
|
-
type:
|
|
4253
|
+
if (i === _e) {
|
|
4254
|
+
const w = g > 0 && g < 100 ? gr : hr;
|
|
4255
|
+
p !== `${w}px` && (s({
|
|
4256
|
+
type: Le,
|
|
4257
4257
|
payload: {
|
|
4258
|
-
footerPosition:
|
|
4259
|
-
footerOffset:
|
|
4258
|
+
footerPosition: _e,
|
|
4259
|
+
footerOffset: w
|
|
4260
4260
|
}
|
|
4261
|
-
}), (b = m == null ? void 0 : m.current) == null || b.style.setProperty(
|
|
4262
|
-
|
|
4263
|
-
|
|
4261
|
+
}), (b = m == null ? void 0 : m.current) == null || b.style.setProperty(Be, `${w}px`));
|
|
4262
|
+
}
|
|
4263
|
+
if (!t && !r && n.length === 0 && c > 0 && h.height > 0) {
|
|
4264
|
+
const w = `${c - h.height - (e ? 300 : 245)}`;
|
|
4265
|
+
p !== `${w}px` && Number(w) > 0 && (s({
|
|
4266
|
+
type: Le,
|
|
4267
|
+
payload: {
|
|
4268
|
+
footerPosition: lt,
|
|
4269
|
+
footerOffset: Number(w)
|
|
4270
|
+
}
|
|
4271
|
+
}), (k = m == null ? void 0 : m.current) == null || k.style.setProperty(
|
|
4272
|
+
Be,
|
|
4273
|
+
`${w}px`
|
|
4264
4274
|
));
|
|
4265
4275
|
}
|
|
4266
4276
|
}, [
|
|
@@ -4284,11 +4294,11 @@ const Ei = (e) => {
|
|
|
4284
4294
|
"fixed left-1/2 transform -translate-x-1/2",
|
|
4285
4295
|
"transition-all ease-in-out duration-500",
|
|
4286
4296
|
"bottom-[--sassy-bottom]",
|
|
4287
|
-
|
|
4297
|
+
ao
|
|
4288
4298
|
),
|
|
4289
4299
|
children: [
|
|
4290
|
-
/* @__PURE__ */ l(
|
|
4291
|
-
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children:
|
|
4300
|
+
/* @__PURE__ */ l(Fi, {}),
|
|
4301
|
+
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ca })
|
|
4292
4302
|
]
|
|
4293
4303
|
}
|
|
4294
4304
|
);
|
|
@@ -4306,7 +4316,7 @@ try {
|
|
|
4306
4316
|
});
|
|
4307
4317
|
} catch {
|
|
4308
4318
|
}
|
|
4309
|
-
const ji = "av-bubble",
|
|
4319
|
+
const ji = "av-bubble", fr = "av-button", qe = "icon", oa = "button", pt = "link", Gi = ({
|
|
4310
4320
|
type: e,
|
|
4311
4321
|
size: t,
|
|
4312
4322
|
labelRight: r,
|
|
@@ -4316,14 +4326,14 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4316
4326
|
}) => {
|
|
4317
4327
|
const i = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
|
|
4318
4328
|
switch (e) {
|
|
4319
|
-
case
|
|
4329
|
+
case oa:
|
|
4320
4330
|
case pt:
|
|
4321
4331
|
return d({
|
|
4322
4332
|
[i]: t === "small",
|
|
4323
4333
|
[s]: t === "medium",
|
|
4324
4334
|
[c]: t === "large"
|
|
4325
4335
|
});
|
|
4326
|
-
case
|
|
4336
|
+
case qe:
|
|
4327
4337
|
return d("flex items-center", {
|
|
4328
4338
|
"justify-center": n === "center",
|
|
4329
4339
|
"justify-start": n === "left",
|
|
@@ -4350,7 +4360,7 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4350
4360
|
}) => {
|
|
4351
4361
|
const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
4352
4362
|
switch (e) {
|
|
4353
|
-
case
|
|
4363
|
+
case oa:
|
|
4354
4364
|
case pt:
|
|
4355
4365
|
return d({
|
|
4356
4366
|
"text-center": e === pt,
|
|
@@ -4358,7 +4368,7 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4358
4368
|
[o]: t === "medium",
|
|
4359
4369
|
[i]: t === "large"
|
|
4360
4370
|
});
|
|
4361
|
-
case
|
|
4371
|
+
case qe:
|
|
4362
4372
|
return d({
|
|
4363
4373
|
[n]: t === "small" && (r || a),
|
|
4364
4374
|
[o]: t === "medium" && (r || a),
|
|
@@ -4568,8 +4578,8 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4568
4578
|
align: f,
|
|
4569
4579
|
radius: y,
|
|
4570
4580
|
animated: b
|
|
4571
|
-
}) => (g || (g = "primary"), r ? d(
|
|
4572
|
-
|
|
4581
|
+
}) => (g || (g = "primary"), r ? d(fr, t) : d(
|
|
4582
|
+
fr,
|
|
4573
4583
|
qi({
|
|
4574
4584
|
mode: a,
|
|
4575
4585
|
variant: g,
|
|
@@ -4596,13 +4606,13 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4596
4606
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
4597
4607
|
},
|
|
4598
4608
|
d({
|
|
4599
|
-
"transition-[width] duration-300 ease-in-out": e ===
|
|
4609
|
+
"transition-[width] duration-300 ease-in-out": e === qe && b
|
|
4600
4610
|
}),
|
|
4601
4611
|
t
|
|
4602
4612
|
)), ns = (e, t, r) => {
|
|
4603
4613
|
var a;
|
|
4604
4614
|
!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);
|
|
4605
|
-
},
|
|
4615
|
+
}, ia = H.forwardRef((e, t) => {
|
|
4606
4616
|
const { onClick: r, noInternalClick: a = !1, ...n } = e;
|
|
4607
4617
|
return /* @__PURE__ */ l(
|
|
4608
4618
|
"button",
|
|
@@ -4615,7 +4625,7 @@ const ji = "av-bubble", hr = "av-button", je = "icon", aa = "button", pt = "link
|
|
|
4615
4625
|
}
|
|
4616
4626
|
);
|
|
4617
4627
|
});
|
|
4618
|
-
|
|
4628
|
+
ia.displayName = "BaseButton";
|
|
4619
4629
|
function os() {
|
|
4620
4630
|
const e = I(!1);
|
|
4621
4631
|
return C(() => (e.current = !0, () => {
|
|
@@ -4640,7 +4650,7 @@ const ss = {
|
|
|
4640
4650
|
bottom: 0,
|
|
4641
4651
|
right: 0
|
|
4642
4652
|
};
|
|
4643
|
-
function
|
|
4653
|
+
function tt(e) {
|
|
4644
4654
|
const t = os(), r = I(0), a = I(null), [n, o] = z(ss), i = Q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
4645
4655
|
const c = s[0];
|
|
4646
4656
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -4684,13 +4694,13 @@ const ls = {
|
|
|
4684
4694
|
noBackground: f = !1,
|
|
4685
4695
|
align: y = "center",
|
|
4686
4696
|
radius: b = "large",
|
|
4687
|
-
variant:
|
|
4688
|
-
iconClassName:
|
|
4689
|
-
animated:
|
|
4697
|
+
variant: k = "primary",
|
|
4698
|
+
iconClassName: w,
|
|
4699
|
+
animated: v = !1,
|
|
4690
4700
|
...R
|
|
4691
4701
|
}, B) => {
|
|
4692
4702
|
const A = as({
|
|
4693
|
-
type:
|
|
4703
|
+
type: qe,
|
|
4694
4704
|
mode: r,
|
|
4695
4705
|
focusMode: a,
|
|
4696
4706
|
fullWidth: n,
|
|
@@ -4704,24 +4714,24 @@ const ls = {
|
|
|
4704
4714
|
noBackground: f,
|
|
4705
4715
|
align: y,
|
|
4706
4716
|
radius: b,
|
|
4707
|
-
variant:
|
|
4708
|
-
animated:
|
|
4709
|
-
}), E = ts({ mode: r, raw: s, iconClassName:
|
|
4717
|
+
variant: k,
|
|
4718
|
+
animated: v
|
|
4719
|
+
}), E = ts({ mode: r, raw: s, iconClassName: w }), S = rs({ animated: v }), [x, L] = tt(), [N, $] = tt(), [M, O] = tt(), P = I(0), T = I(null), D = is([B, T]);
|
|
4710
4720
|
return ne(() => {
|
|
4711
|
-
M && M.current &&
|
|
4712
|
-
}, [O, M, h, c,
|
|
4713
|
-
T && T.current &&
|
|
4721
|
+
M && M.current && v && (P.current = O.width + cs[h] + (c ? 0 : ds));
|
|
4722
|
+
}, [O, M, h, c, v]), ne(() => {
|
|
4723
|
+
T && T.current && v && (g && x && L.width > 0 ? (x.current && (x.current.style.opacity = "100"), T.current.style.width = `${L.width + P.current}px`) : p && $.width > 0 ? (N.current && (N.current.style.opacity = "100"), T.current.style.width = `${$.width + P.current}px`) : (x.current && (x.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ls[h]}px`));
|
|
4714
4724
|
}, [
|
|
4715
4725
|
L,
|
|
4716
4726
|
g,
|
|
4717
|
-
|
|
4727
|
+
x,
|
|
4718
4728
|
$,
|
|
4719
4729
|
p,
|
|
4720
4730
|
N,
|
|
4721
4731
|
h,
|
|
4722
|
-
|
|
4732
|
+
v
|
|
4723
4733
|
]), /* @__PURE__ */ _(
|
|
4724
|
-
|
|
4734
|
+
ia,
|
|
4725
4735
|
{
|
|
4726
4736
|
ref: D,
|
|
4727
4737
|
className: A,
|
|
@@ -4731,7 +4741,7 @@ const ls = {
|
|
|
4731
4741
|
...R,
|
|
4732
4742
|
children: [
|
|
4733
4743
|
/* @__PURE__ */ l(
|
|
4734
|
-
|
|
4744
|
+
pr,
|
|
4735
4745
|
{
|
|
4736
4746
|
label: p,
|
|
4737
4747
|
labelRef: N,
|
|
@@ -4741,10 +4751,10 @@ const ls = {
|
|
|
4741
4751
|
),
|
|
4742
4752
|
/* @__PURE__ */ l("span", { ref: M, className: E, children: e }),
|
|
4743
4753
|
/* @__PURE__ */ l(
|
|
4744
|
-
|
|
4754
|
+
pr,
|
|
4745
4755
|
{
|
|
4746
4756
|
label: g,
|
|
4747
|
-
labelRef:
|
|
4757
|
+
labelRef: x,
|
|
4748
4758
|
labelClass: S,
|
|
4749
4759
|
labelInnerClass: "pl-2"
|
|
4750
4760
|
}
|
|
@@ -4753,7 +4763,7 @@ const ls = {
|
|
|
4753
4763
|
}
|
|
4754
4764
|
);
|
|
4755
4765
|
}
|
|
4756
|
-
),
|
|
4766
|
+
), pr = ({
|
|
4757
4767
|
labelRef: e,
|
|
4758
4768
|
labelClass: t,
|
|
4759
4769
|
label: r,
|
|
@@ -4812,7 +4822,7 @@ const us = H.forwardRef(
|
|
|
4812
4822
|
}
|
|
4813
4823
|
);
|
|
4814
4824
|
us.displayName = "ButtonSort";
|
|
4815
|
-
const
|
|
4825
|
+
const sa = ({
|
|
4816
4826
|
children: e,
|
|
4817
4827
|
fill: t,
|
|
4818
4828
|
viewBox: r,
|
|
@@ -4862,7 +4872,7 @@ const ms = ({
|
|
|
4862
4872
|
monotone: a,
|
|
4863
4873
|
...n
|
|
4864
4874
|
}) => /* @__PURE__ */ _(
|
|
4865
|
-
|
|
4875
|
+
sa,
|
|
4866
4876
|
{
|
|
4867
4877
|
defaultViewBox: "0 0 448 512",
|
|
4868
4878
|
size: "size-5",
|
|
@@ -4888,7 +4898,7 @@ const ms = ({
|
|
|
4888
4898
|
monotone: a,
|
|
4889
4899
|
...n
|
|
4890
4900
|
}) => /* @__PURE__ */ l(
|
|
4891
|
-
|
|
4901
|
+
sa,
|
|
4892
4902
|
{
|
|
4893
4903
|
defaultViewBox: "0 0 512 512",
|
|
4894
4904
|
size: "size-5",
|
|
@@ -4957,7 +4967,7 @@ const gs = ({
|
|
|
4957
4967
|
footer: o,
|
|
4958
4968
|
copyButton: i
|
|
4959
4969
|
};
|
|
4960
|
-
},
|
|
4970
|
+
}, la = ({
|
|
4961
4971
|
children: e,
|
|
4962
4972
|
kind: t = "left",
|
|
4963
4973
|
className: r,
|
|
@@ -5017,14 +5027,14 @@ try {
|
|
|
5017
5027
|
});
|
|
5018
5028
|
} catch {
|
|
5019
5029
|
}
|
|
5020
|
-
const
|
|
5030
|
+
const br = "av-spinner", vs = ({
|
|
5021
5031
|
spinnerRef: e,
|
|
5022
5032
|
mode: t = "system",
|
|
5023
5033
|
type: r = "circle",
|
|
5024
5034
|
className: a
|
|
5025
5035
|
}) => {
|
|
5026
5036
|
const n = r === "circle" ? d(
|
|
5027
|
-
|
|
5037
|
+
br,
|
|
5028
5038
|
"h-8 w-8",
|
|
5029
5039
|
"align-[-0.125em]",
|
|
5030
5040
|
"border-4",
|
|
@@ -5036,7 +5046,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5036
5046
|
"text-copy-accent dark:text-copy-dark": t === "alt-system"
|
|
5037
5047
|
},
|
|
5038
5048
|
a
|
|
5039
|
-
) : d(
|
|
5049
|
+
) : d(br, a), o = d("av-spinner__dot", {
|
|
5040
5050
|
"fill-copy-dark": t === "dark",
|
|
5041
5051
|
"fill-copy-accent": t === "light",
|
|
5042
5052
|
"fill-copy-dark dark:fill-copy-accent": t === "system",
|
|
@@ -5050,7 +5060,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5050
5060
|
] }),
|
|
5051
5061
|
/* @__PURE__ */ l("span", { className: "sr-only", children: "Loading..." })
|
|
5052
5062
|
] });
|
|
5053
|
-
},
|
|
5063
|
+
}, yr = "av-button", Ze = "icon", Lt = "button", bt = "link", ks = ({
|
|
5054
5064
|
type: e,
|
|
5055
5065
|
size: t,
|
|
5056
5066
|
labelRight: r,
|
|
@@ -5067,7 +5077,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5067
5077
|
[s]: t === "medium",
|
|
5068
5078
|
[c]: t === "large"
|
|
5069
5079
|
});
|
|
5070
|
-
case
|
|
5080
|
+
case Ze:
|
|
5071
5081
|
return d("flex items-center", {
|
|
5072
5082
|
"justify-center": n === "center",
|
|
5073
5083
|
"justify-start": n === "left",
|
|
@@ -5102,7 +5112,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5102
5112
|
[o]: t === "medium",
|
|
5103
5113
|
[i]: t === "large"
|
|
5104
5114
|
});
|
|
5105
|
-
case
|
|
5115
|
+
case Ze:
|
|
5106
5116
|
return d({
|
|
5107
5117
|
[n]: t === "small" && (r || a),
|
|
5108
5118
|
[o]: t === "medium" && (r || a),
|
|
@@ -5294,7 +5304,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5294
5304
|
animated: e
|
|
5295
5305
|
}) => d({
|
|
5296
5306
|
"transition-opacity duration-300 ease-in": e
|
|
5297
|
-
}),
|
|
5307
|
+
}), ca = ({
|
|
5298
5308
|
type: e,
|
|
5299
5309
|
className: t,
|
|
5300
5310
|
raw: r,
|
|
@@ -5312,8 +5322,8 @@ const fr = "av-spinner", vs = ({
|
|
|
5312
5322
|
align: f,
|
|
5313
5323
|
radius: y,
|
|
5314
5324
|
animated: b
|
|
5315
|
-
}) => (g || (g = "primary"), r ? d(
|
|
5316
|
-
|
|
5325
|
+
}) => (g || (g = "primary"), r ? d(yr, t) : d(
|
|
5326
|
+
yr,
|
|
5317
5327
|
xs({
|
|
5318
5328
|
mode: a,
|
|
5319
5329
|
variant: g,
|
|
@@ -5340,7 +5350,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5340
5350
|
"disabled:cursor-not-allowed disabled:opacity-50": o
|
|
5341
5351
|
},
|
|
5342
5352
|
d({
|
|
5343
|
-
"transition-[width] duration-300 ease-in-out": e ===
|
|
5353
|
+
"transition-[width] duration-300 ease-in-out": e === Ze && b
|
|
5344
5354
|
}),
|
|
5345
5355
|
t
|
|
5346
5356
|
)), $s = (e, t, r) => {
|
|
@@ -5360,7 +5370,7 @@ const fr = "av-spinner", vs = ({
|
|
|
5360
5370
|
);
|
|
5361
5371
|
});
|
|
5362
5372
|
Ot.displayName = "BaseButton";
|
|
5363
|
-
const
|
|
5373
|
+
const da = H.forwardRef(
|
|
5364
5374
|
({
|
|
5365
5375
|
children: e,
|
|
5366
5376
|
disabled: t = !1,
|
|
@@ -5376,7 +5386,7 @@ const la = H.forwardRef(
|
|
|
5376
5386
|
radius: h = "large",
|
|
5377
5387
|
...g
|
|
5378
5388
|
}, p) => {
|
|
5379
|
-
const f =
|
|
5389
|
+
const f = ca({
|
|
5380
5390
|
type: Lt,
|
|
5381
5391
|
mode: r,
|
|
5382
5392
|
focusMode: a,
|
|
@@ -5402,7 +5412,7 @@ const la = H.forwardRef(
|
|
|
5402
5412
|
);
|
|
5403
5413
|
}
|
|
5404
5414
|
);
|
|
5405
|
-
|
|
5415
|
+
da.displayName = "Button";
|
|
5406
5416
|
function Bs() {
|
|
5407
5417
|
const e = I(!1);
|
|
5408
5418
|
return C(() => (e.current = !0, () => {
|
|
@@ -5427,7 +5437,7 @@ const Os = {
|
|
|
5427
5437
|
bottom: 0,
|
|
5428
5438
|
right: 0
|
|
5429
5439
|
};
|
|
5430
|
-
function
|
|
5440
|
+
function rt(e) {
|
|
5431
5441
|
const t = Bs(), r = I(0), a = I(null), [n, o] = z(Os), i = Q(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
5432
5442
|
const c = s[0];
|
|
5433
5443
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
@@ -5452,7 +5462,7 @@ const As = {
|
|
|
5452
5462
|
// px-3 x 2
|
|
5453
5463
|
large: 16 * 2
|
|
5454
5464
|
// px-4 x 2
|
|
5455
|
-
}, Ps = 2,
|
|
5465
|
+
}, Ps = 2, ua = H.forwardRef(
|
|
5456
5466
|
({
|
|
5457
5467
|
children: e,
|
|
5458
5468
|
disabled: t = !1,
|
|
@@ -5471,13 +5481,13 @@ const As = {
|
|
|
5471
5481
|
noBackground: f = !1,
|
|
5472
5482
|
align: y = "center",
|
|
5473
5483
|
radius: b = "large",
|
|
5474
|
-
variant:
|
|
5475
|
-
iconClassName:
|
|
5476
|
-
animated:
|
|
5484
|
+
variant: k = "primary",
|
|
5485
|
+
iconClassName: w,
|
|
5486
|
+
animated: v = !1,
|
|
5477
5487
|
...R
|
|
5478
5488
|
}, B) => {
|
|
5479
|
-
const A =
|
|
5480
|
-
type:
|
|
5489
|
+
const A = ca({
|
|
5490
|
+
type: Ze,
|
|
5481
5491
|
mode: r,
|
|
5482
5492
|
focusMode: a,
|
|
5483
5493
|
fullWidth: n,
|
|
@@ -5491,22 +5501,22 @@ const As = {
|
|
|
5491
5501
|
noBackground: f,
|
|
5492
5502
|
align: y,
|
|
5493
5503
|
radius: b,
|
|
5494
|
-
variant:
|
|
5495
|
-
animated:
|
|
5496
|
-
}), E = Rs({ mode: r, raw: s, iconClassName:
|
|
5504
|
+
variant: k,
|
|
5505
|
+
animated: v
|
|
5506
|
+
}), E = Rs({ mode: r, raw: s, iconClassName: w }), S = Ss({ animated: v }), [x, L] = rt(), [N, $] = rt(), [M, O] = rt(), P = I(0), T = I(null), D = Ls([B, T]);
|
|
5497
5507
|
return ne(() => {
|
|
5498
|
-
M && M.current &&
|
|
5499
|
-
}, [O, M, h, c,
|
|
5500
|
-
T && T.current &&
|
|
5508
|
+
M && M.current && v && (P.current = O.width + Ms[h] + (c ? 0 : Ps));
|
|
5509
|
+
}, [O, M, h, c, v]), ne(() => {
|
|
5510
|
+
T && T.current && v && (g && x && L.width > 0 ? (x.current && (x.current.style.opacity = "100"), T.current.style.width = `${L.width + P.current}px`) : p && $.width > 0 ? (N.current && (N.current.style.opacity = "100"), T.current.style.width = `${$.width + P.current}px`) : (x.current && (x.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${As[h]}px`));
|
|
5501
5511
|
}, [
|
|
5502
5512
|
L,
|
|
5503
5513
|
g,
|
|
5504
|
-
|
|
5514
|
+
x,
|
|
5505
5515
|
$,
|
|
5506
5516
|
p,
|
|
5507
5517
|
N,
|
|
5508
5518
|
h,
|
|
5509
|
-
|
|
5519
|
+
v
|
|
5510
5520
|
]), /* @__PURE__ */ _(
|
|
5511
5521
|
Ot,
|
|
5512
5522
|
{
|
|
@@ -5518,7 +5528,7 @@ const As = {
|
|
|
5518
5528
|
...R,
|
|
5519
5529
|
children: [
|
|
5520
5530
|
/* @__PURE__ */ l(
|
|
5521
|
-
|
|
5531
|
+
vr,
|
|
5522
5532
|
{
|
|
5523
5533
|
label: p,
|
|
5524
5534
|
labelRef: N,
|
|
@@ -5528,10 +5538,10 @@ const As = {
|
|
|
5528
5538
|
),
|
|
5529
5539
|
/* @__PURE__ */ l("span", { ref: M, className: E, children: e }),
|
|
5530
5540
|
/* @__PURE__ */ l(
|
|
5531
|
-
|
|
5541
|
+
vr,
|
|
5532
5542
|
{
|
|
5533
5543
|
label: g,
|
|
5534
|
-
labelRef:
|
|
5544
|
+
labelRef: x,
|
|
5535
5545
|
labelClass: S,
|
|
5536
5546
|
labelInnerClass: "pl-2"
|
|
5537
5547
|
}
|
|
@@ -5540,13 +5550,13 @@ const As = {
|
|
|
5540
5550
|
}
|
|
5541
5551
|
);
|
|
5542
5552
|
}
|
|
5543
|
-
),
|
|
5553
|
+
), vr = ({
|
|
5544
5554
|
labelRef: e,
|
|
5545
5555
|
labelClass: t,
|
|
5546
5556
|
label: r,
|
|
5547
5557
|
labelInnerClass: a
|
|
5548
5558
|
}) => /* @__PURE__ */ l("span", { ref: e, className: t, children: r && /* @__PURE__ */ l("span", { className: a, children: r }) });
|
|
5549
|
-
|
|
5559
|
+
ua.displayName = "ButtonIcon";
|
|
5550
5560
|
/*!
|
|
5551
5561
|
@versini/ui-button v4.2.8
|
|
5552
5562
|
© 2025 gizmette.com
|
|
@@ -5586,7 +5596,7 @@ const zs = H.forwardRef(
|
|
|
5586
5596
|
}
|
|
5587
5597
|
) : "";
|
|
5588
5598
|
return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
|
|
5589
|
-
|
|
5599
|
+
ua,
|
|
5590
5600
|
{
|
|
5591
5601
|
className: d("justify-center", r),
|
|
5592
5602
|
ref: o,
|
|
@@ -5628,7 +5638,7 @@ const Vs = 200, Ds = ({
|
|
|
5628
5638
|
return /* @__PURE__ */ _("span", { style: { wordBreak: "break-word" }, children: [
|
|
5629
5639
|
n ? e : i,
|
|
5630
5640
|
s && /* @__PURE__ */ l(
|
|
5631
|
-
|
|
5641
|
+
da,
|
|
5632
5642
|
{
|
|
5633
5643
|
mode: r,
|
|
5634
5644
|
focusMode: a,
|
|
@@ -5656,7 +5666,7 @@ try {
|
|
|
5656
5666
|
} catch {
|
|
5657
5667
|
}
|
|
5658
5668
|
const Us = ({ content: e }) => /* @__PURE__ */ l(
|
|
5659
|
-
|
|
5669
|
+
la,
|
|
5660
5670
|
{
|
|
5661
5671
|
kind: "right",
|
|
5662
5672
|
copyToClipboard: e,
|
|
@@ -5664,10 +5674,10 @@ const Us = ({ content: e }) => /* @__PURE__ */ l(
|
|
|
5664
5674
|
className: "mt-3",
|
|
5665
5675
|
children: /* @__PURE__ */ l(Hs, { mode: "light", focusMode: "light", children: e })
|
|
5666
5676
|
}
|
|
5667
|
-
),
|
|
5677
|
+
), kr = Tr(
|
|
5668
5678
|
() => import(
|
|
5669
5679
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
5670
|
-
"./ChatBubbleAssistant.
|
|
5680
|
+
"./ChatBubbleAssistant.BfHYzXjt.js"
|
|
5671
5681
|
).then((e) => e.ChatBubbleAssistant)
|
|
5672
5682
|
), Fs = H.memo(
|
|
5673
5683
|
({
|
|
@@ -5676,15 +5686,15 @@ const Us = ({ content: e }) => /* @__PURE__ */ l(
|
|
|
5676
5686
|
name: r,
|
|
5677
5687
|
processingTime: a,
|
|
5678
5688
|
usage: n
|
|
5679
|
-
}) => e === xe && t ? /* @__PURE__ */ l(
|
|
5680
|
-
|
|
5689
|
+
}) => e === xe && t ? /* @__PURE__ */ l(ot, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(
|
|
5690
|
+
kr,
|
|
5681
5691
|
{
|
|
5682
5692
|
name: r,
|
|
5683
5693
|
processingTime: a,
|
|
5684
5694
|
usage: n,
|
|
5685
5695
|
content: t
|
|
5686
5696
|
}
|
|
5687
|
-
) }) : e === ae && t ? /* @__PURE__ */ l(
|
|
5697
|
+
) }) : e === ae && t ? /* @__PURE__ */ l(ot, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(kr, { content: t, role: ae }) }) : e === vt && t ? /* @__PURE__ */ l(Us, { content: t }) : null
|
|
5688
5698
|
), Ws = () => {
|
|
5689
5699
|
var n;
|
|
5690
5700
|
const {
|
|
@@ -5705,57 +5715,57 @@ const Us = ({ content: e }) => /* @__PURE__ */ l(
|
|
|
5705
5715
|
p
|
|
5706
5716
|
);
|
|
5707
5717
|
}),
|
|
5708
|
-
(t && a === vt || r && a === ae) && /* @__PURE__ */ l(
|
|
5718
|
+
(t && a === vt || r && a === ae) && /* @__PURE__ */ l(la, { children: /* @__PURE__ */ l(vs, { type: "dots" }) })
|
|
5709
5719
|
] }) : null;
|
|
5710
5720
|
}, js = () => {
|
|
5711
|
-
const { isAuthenticated: e } = ge(), { ref: t, inViewport: r } =
|
|
5721
|
+
const { isAuthenticated: e } = ge(), { ref: t, inViewport: r } = ln(), {
|
|
5712
5722
|
state: { footerPosition: a, footerHeight: n, footerOffset: o }
|
|
5713
|
-
} = V(Nt), i = I(0), s =
|
|
5723
|
+
} = V(Nt), i = I(0), s = Ea({
|
|
5714
5724
|
isAuthenticated: e,
|
|
5715
5725
|
extraClass: "rounded-b-md"
|
|
5716
5726
|
});
|
|
5717
5727
|
return C(() => {
|
|
5718
|
-
i.current = a ===
|
|
5728
|
+
i.current = a === _e ? n + o + _r + Ra : 0;
|
|
5719
5729
|
}, [a, n, o]), /* @__PURE__ */ _(se, { children: [
|
|
5720
5730
|
/* @__PURE__ */ _("div", { className: s, children: [
|
|
5721
|
-
/* @__PURE__ */ l(
|
|
5731
|
+
/* @__PURE__ */ l(Sa, {}),
|
|
5722
5732
|
/* @__PURE__ */ l(Ws, {}),
|
|
5723
5733
|
/* @__PURE__ */ l("div", { ref: t, className: "scroll-marker" })
|
|
5724
5734
|
] }),
|
|
5725
5735
|
/* @__PURE__ */ l(
|
|
5726
|
-
|
|
5736
|
+
Li,
|
|
5727
5737
|
{
|
|
5728
|
-
show: !r && a ===
|
|
5738
|
+
show: !r && a === _e,
|
|
5729
5739
|
bottom: i.current
|
|
5730
5740
|
}
|
|
5731
5741
|
)
|
|
5732
5742
|
] });
|
|
5733
|
-
}, Gs =
|
|
5743
|
+
}, Gs = Tr(
|
|
5734
5744
|
() => import(
|
|
5735
5745
|
/* webpackChunkName: "LazyHeader" */
|
|
5736
|
-
"./HeaderEntry.
|
|
5746
|
+
"./HeaderEntry.lXhWh2KT.js"
|
|
5737
5747
|
)
|
|
5738
5748
|
);
|
|
5739
|
-
function
|
|
5740
|
-
const { user: t, getAccessToken: r } = ge(), [a, n] = z(`${Ut}px`), [o] =
|
|
5741
|
-
key:
|
|
5749
|
+
function ma({ isComponent: e = !1 }) {
|
|
5750
|
+
const { user: t, getAccessToken: r } = ge(), [a, n] = z(`${Ut}px`), [o] = it({
|
|
5751
|
+
key: nt + La,
|
|
5742
5752
|
initialValue: ""
|
|
5743
|
-
}), [i] =
|
|
5744
|
-
key:
|
|
5753
|
+
}), [i] = it({
|
|
5754
|
+
key: nt + Oa,
|
|
5745
5755
|
initialValue: ve.ASC
|
|
5746
|
-
}), [s, c] =
|
|
5756
|
+
}), [s, c] = Re(eo, {
|
|
5747
5757
|
footerPosition: "FOOTER_TOP",
|
|
5748
5758
|
footerHeight: 0,
|
|
5749
5759
|
footerOffset: 0
|
|
5750
|
-
}), [u, m] =
|
|
5760
|
+
}), [u, m] = Re(Jn, {
|
|
5751
5761
|
searchString: o,
|
|
5752
5762
|
sortedCell: "timestamp",
|
|
5753
5763
|
sortDirection: i
|
|
5754
|
-
}), [h, g] =
|
|
5764
|
+
}), [h, g] = Re(Qn, {
|
|
5755
5765
|
prompt: "",
|
|
5756
5766
|
lastTriggeredTimestamp: 0
|
|
5757
|
-
}), [p, f] =
|
|
5758
|
-
id:
|
|
5767
|
+
}), [p, f] = Re(ro, {
|
|
5768
|
+
id: Ae(),
|
|
5759
5769
|
model: "",
|
|
5760
5770
|
provider: "",
|
|
5761
5771
|
privateChat: !1,
|
|
@@ -5766,7 +5776,7 @@ function da({ isComponent: e = !1 }) {
|
|
|
5766
5776
|
restoring: !1,
|
|
5767
5777
|
lastTriggeredTimestamp: 0
|
|
5768
5778
|
});
|
|
5769
|
-
|
|
5779
|
+
$a({
|
|
5770
5780
|
keys: [
|
|
5771
5781
|
t == null ? void 0 : t.username,
|
|
5772
5782
|
u.searchString,
|
|
@@ -5782,29 +5792,29 @@ function da({ isComponent: e = !1 }) {
|
|
|
5782
5792
|
return C(() => {
|
|
5783
5793
|
var b;
|
|
5784
5794
|
(b = document.getElementById("logo")) == null || b.classList.add("fadeOut"), setTimeout(() => {
|
|
5785
|
-
var
|
|
5786
|
-
(
|
|
5795
|
+
var k;
|
|
5796
|
+
(k = document.getElementById("root")) == null || k.classList.replace("app-hidden", "fadeIn");
|
|
5787
5797
|
}, 500);
|
|
5788
5798
|
}), C(() => {
|
|
5789
5799
|
y && f({
|
|
5790
5800
|
type: pe,
|
|
5791
5801
|
payload: {
|
|
5792
|
-
provider: y.provider ||
|
|
5802
|
+
provider: y.provider || Oe
|
|
5793
5803
|
}
|
|
5794
5804
|
});
|
|
5795
5805
|
}, [y]), C(() => {
|
|
5796
5806
|
s.footerPosition === "FOOTER_BOTTOM" ? n(
|
|
5797
|
-
`calc(100svh - calc(66px + 20px) - ${s.footerHeight}px - ${s.footerOffset}px - ${
|
|
5807
|
+
`calc(100svh - calc(66px + 20px) - ${s.footerHeight}px - ${s.footerOffset}px - ${_r}px)`
|
|
5798
5808
|
) : n(`${Ut}px`);
|
|
5799
5809
|
}, [s]), /* @__PURE__ */ l(
|
|
5800
|
-
|
|
5810
|
+
oo.Provider,
|
|
5801
5811
|
{
|
|
5802
5812
|
value: {
|
|
5803
5813
|
state: u,
|
|
5804
5814
|
dispatch: m
|
|
5805
5815
|
},
|
|
5806
5816
|
children: /* @__PURE__ */ l(Nt.Provider, { value: { state: s, dispatch: c }, children: /* @__PURE__ */ l(
|
|
5807
|
-
|
|
5817
|
+
Ue.Provider,
|
|
5808
5818
|
{
|
|
5809
5819
|
value: { state: h, dispatch: g },
|
|
5810
5820
|
children: /* @__PURE__ */ _(
|
|
@@ -5813,7 +5823,7 @@ function da({ isComponent: e = !1 }) {
|
|
|
5813
5823
|
value: { state: p, dispatch: f },
|
|
5814
5824
|
children: [
|
|
5815
5825
|
/* @__PURE__ */ l(
|
|
5816
|
-
|
|
5826
|
+
tn,
|
|
5817
5827
|
{
|
|
5818
5828
|
noColors: !0,
|
|
5819
5829
|
noMargin: !0,
|
|
@@ -5822,13 +5832,15 @@ function da({ isComponent: e = !1 }) {
|
|
|
5822
5832
|
className: Ft({
|
|
5823
5833
|
extraClass: "mt-5"
|
|
5824
5834
|
}),
|
|
5825
|
-
children: /* @__PURE__ */ l(
|
|
5835
|
+
children: /* @__PURE__ */ l(ot, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Gs, { isComponent: e }) })
|
|
5826
5836
|
}
|
|
5827
5837
|
),
|
|
5828
5838
|
/* @__PURE__ */ l(
|
|
5829
|
-
|
|
5839
|
+
Ba,
|
|
5830
5840
|
{
|
|
5831
|
-
className: Ft(
|
|
5841
|
+
className: Ft({
|
|
5842
|
+
extraClass: "transition-all ease-in-out duration-500"
|
|
5843
|
+
}),
|
|
5832
5844
|
noMargin: !0,
|
|
5833
5845
|
noPadding: !0,
|
|
5834
5846
|
style: {
|
|
@@ -5846,30 +5858,30 @@ function da({ isComponent: e = !1 }) {
|
|
|
5846
5858
|
}
|
|
5847
5859
|
);
|
|
5848
5860
|
}
|
|
5849
|
-
|
|
5850
|
-
const ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default:
|
|
5861
|
+
ma.displayName = "App";
|
|
5862
|
+
const ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: ma }, Symbol.toStringTag, { value: "Module" }));
|
|
5851
5863
|
export {
|
|
5852
5864
|
tl as $e,
|
|
5853
5865
|
ol as App,
|
|
5854
5866
|
ve as B,
|
|
5855
|
-
|
|
5867
|
+
to as CHAT_RESTORE,
|
|
5856
5868
|
Z as ChatContext,
|
|
5857
|
-
|
|
5869
|
+
Ei as ConfirmationPanel,
|
|
5858
5870
|
al as De,
|
|
5859
|
-
|
|
5871
|
+
it as E,
|
|
5860
5872
|
rl as Fe,
|
|
5861
|
-
|
|
5862
|
-
|
|
5873
|
+
oo as HistoryContext,
|
|
5874
|
+
Yn as Le,
|
|
5863
5875
|
nl as P,
|
|
5864
|
-
|
|
5865
|
-
|
|
5876
|
+
Ve as R,
|
|
5877
|
+
la as Re,
|
|
5866
5878
|
Js as Ue,
|
|
5867
5879
|
el as We,
|
|
5868
|
-
|
|
5880
|
+
Ci as Ze,
|
|
5869
5881
|
ye as _e,
|
|
5870
|
-
|
|
5882
|
+
pn as i,
|
|
5871
5883
|
Qs as je,
|
|
5872
|
-
|
|
5884
|
+
Ka as m,
|
|
5873
5885
|
$t as me,
|
|
5874
5886
|
Wt as p,
|
|
5875
5887
|
jt as z
|