@versini/sassysaint 6.4.0 → 6.4.2
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.BP43Jj_A.js → App.BNj5_p2P.js} +440 -402
- package/dist/chunks/{MarkdownWithExtra.BibVSqvz.js → MarkdownWithExtra.BUqQb6yQ.js} +2 -2
- package/dist/chunks/{MessageAssistant.DFb8HD5S.js → MessageAssistant.CQg-4XR4.js} +116 -116
- package/dist/chunks/{index.D5qg19Ov.js → index.DCvn98ot.js} +168 -167
- package/dist/chunks/{index.Qmbvv1pV.js → index.HM1QCCV9.js} +213 -204
- 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 L, Fragment as _e } from "react/jsx-runtime";
|
|
2
|
-
import { f as we, ACTION_RESTORE as Ea, ACTION_MESSAGE as ze, ROLE_ASSISTANT as Ue, ACTION_RESET as Oe, ACTION_MODEL as bn, ACTION_STREAMING as vn, ACTION_SORT as Ta, ACTION_SEARCH as
|
|
2
|
+
import { f as we, ACTION_RESTORE as Ea, ACTION_MESSAGE as ze, ROLE_ASSISTANT as Ue, ACTION_RESET as Oe, ACTION_MODEL as bn, ACTION_STREAMING as vn, ACTION_SORT as Ta, ACTION_SEARCH as Sa, ACTION_RESET_PROMPT as kn, ACTION_TOGGLE_PROMPT as wn, DEFAULT_AI_ENGINE as Ce, te as je, DEFAULT_ICON_ACTION_SIZE as be, L as Na, j as Br, C as Mr, LOCAL_STORAGE_PREFIX as Ht, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Ca, un as Ge, ENGINE_ANTHROPIC as Nt, ENGINE_OPENAI as Vr, PROMPT_CLASSNAME as Ra, PROMPT_EDITABLE_AREA_CLASSNAME as Ia, ROLE_SYSTEM as La, ROLE_INTERNAL as lr, ROLE_HIDDEN as $a, STATS_SEPARATOR as Dr, CLIPBOARD_PROMPT as Pr, TYPE_QUESTION as Oa, ERROR_MESSAGE as Aa, ROLE_USER as Wt, FOOTER_DISCLAIMER as Ba, isLastMessageFromRole as Ma, getMessageContaintWrapperClass as Va, Logo as Da, getMainPaddingClass as zr, r as Pa, LOCAL_STORAGE_SEARCH as za, LOCAL_STORAGE_SORT as Ua } from "./index.HM1QCCV9.js";
|
|
3
3
|
import f from "clsx";
|
|
4
4
|
import * as J from "react";
|
|
5
|
-
import F, { useEffect as M, useRef as T, useState as W, useCallback as
|
|
6
|
-
import { useMergeRefs as ur, FloatingPortal as En, FloatingOverlay as ja, FloatingFocusManager as Tn, useFloating as
|
|
5
|
+
import F, { useEffect as M, useRef as T, useState as W, useCallback as X, useSyncExternalStore as Fa, useMemo as de, useId as dr, useLayoutEffect as ge, useContext as j, createContext as Ha, useDebugValue as Wa, forwardRef as xn, lazy as _n, Suspense as jt, useReducer as Ct } from "react";
|
|
6
|
+
import { useMergeRefs as ur, FloatingPortal as En, FloatingOverlay as ja, FloatingFocusManager as Tn, useFloating as Sn, useClick as Nn, useDismiss as Cn, useRole as Rn, useInteractions as In, useFloatingTree as Ln, useFloatingNodeId as Ga, useListItem as $n, offset as qa, flip as Ka, shift as Ya, autoUpdate as Ja, useListNavigation as Za, useTypeahead as Xa, FloatingNode as Qa, FloatingList as eo, FloatingTree as to } from "@floating-ui/react";
|
|
7
7
|
const Ur = ({
|
|
8
8
|
className: e,
|
|
9
9
|
viewBox: t,
|
|
@@ -291,7 +291,7 @@ function ho(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
|
|
|
291
291
|
}
|
|
292
292
|
function po() {
|
|
293
293
|
const e = T(null), [t, r] = W(!1);
|
|
294
|
-
return { ref:
|
|
294
|
+
return { ref: X((n) => {
|
|
295
295
|
var a, o;
|
|
296
296
|
typeof IntersectionObserver < "u" && (n && !e.current ? e.current = new IntersectionObserver(
|
|
297
297
|
(i) => r(i.some((s) => s.isIntersecting))
|
|
@@ -313,7 +313,7 @@ function Gt({
|
|
|
313
313
|
key: e,
|
|
314
314
|
initialValue: t
|
|
315
315
|
}) {
|
|
316
|
-
const r = Fa(bo, () => Wr(e)), n =
|
|
316
|
+
const r = Fa(bo, () => Wr(e)), n = X(
|
|
317
317
|
(i) => {
|
|
318
318
|
try {
|
|
319
319
|
const s = typeof i == "function" ? i(JSON.parse(r)) : i;
|
|
@@ -323,9 +323,9 @@ function Gt({
|
|
|
323
323
|
}
|
|
324
324
|
},
|
|
325
325
|
[e, r]
|
|
326
|
-
), a =
|
|
326
|
+
), a = X(() => {
|
|
327
327
|
n(t);
|
|
328
|
-
}, [t, n]), o =
|
|
328
|
+
}, [t, n]), o = X(() => {
|
|
329
329
|
n(null);
|
|
330
330
|
}, [n]);
|
|
331
331
|
return M(() => {
|
|
@@ -375,7 +375,7 @@ function xo() {
|
|
|
375
375
|
const [e, t] = W({
|
|
376
376
|
width: 0,
|
|
377
377
|
height: 0
|
|
378
|
-
}), r =
|
|
378
|
+
}), r = X(() => {
|
|
379
379
|
t({
|
|
380
380
|
width: window.innerWidth || 0,
|
|
381
381
|
height: window.innerHeight || 0
|
|
@@ -384,19 +384,19 @@ function xo() {
|
|
|
384
384
|
return jr("resize", r), jr("orientationchange", r), M(r, []), e;
|
|
385
385
|
}
|
|
386
386
|
/*!
|
|
387
|
-
@versini/ui-table v3.1.
|
|
387
|
+
@versini/ui-table v3.1.2
|
|
388
388
|
© 2025 gizmette.com
|
|
389
389
|
*/
|
|
390
390
|
try {
|
|
391
391
|
window.__VERSINI_UI_TABLE__ || (window.__VERSINI_UI_TABLE__ = {
|
|
392
|
-
version: "3.1.
|
|
393
|
-
buildTime: "01/
|
|
392
|
+
version: "3.1.2",
|
|
393
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
394
394
|
homepage: "https://github.com/aversini/ui-components",
|
|
395
395
|
license: "MIT"
|
|
396
396
|
});
|
|
397
397
|
} catch {
|
|
398
398
|
}
|
|
399
|
-
const dt = "thead", mr = "tfoot",
|
|
399
|
+
const dt = "thead", mr = "tfoot", Ne = "tbody", De = {
|
|
400
400
|
ASC: "asc",
|
|
401
401
|
DESC: "desc"
|
|
402
402
|
}, _o = ({
|
|
@@ -460,7 +460,7 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
460
460
|
"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"
|
|
461
461
|
},
|
|
462
462
|
e
|
|
463
|
-
),
|
|
463
|
+
), So = ({
|
|
464
464
|
mode: e,
|
|
465
465
|
className: t,
|
|
466
466
|
cellWrapper: r
|
|
@@ -476,16 +476,16 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
476
476
|
"border-b last:border-0",
|
|
477
477
|
{
|
|
478
478
|
"border-table-dark": e === "dark" || e === "system",
|
|
479
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even": r ===
|
|
479
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even": r === Ne && e === "dark",
|
|
480
480
|
"border-table-light": e === "light" || e === "alt-system",
|
|
481
|
-
"odd:bg-table-light-odd even:bg-table-light-even": r ===
|
|
481
|
+
"odd:bg-table-light-odd even:bg-table-light-even": r === Ne && e === "light",
|
|
482
482
|
"dark:border-table-light": e === "system",
|
|
483
|
-
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r ===
|
|
483
|
+
"odd:bg-table-dark-odd even:bg-table-dark-even dark:odd:bg-table-light-odd dark:even:bg-table-light-even": r === Ne && e === "system",
|
|
484
484
|
"dark:border-table-dark": e === "alt-system",
|
|
485
|
-
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r ===
|
|
485
|
+
"odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === Ne && e === "alt-system"
|
|
486
486
|
},
|
|
487
487
|
t
|
|
488
|
-
),
|
|
488
|
+
), No = ({
|
|
489
489
|
cellWrapper: e,
|
|
490
490
|
className: t,
|
|
491
491
|
compact: r,
|
|
@@ -504,7 +504,7 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
504
504
|
"dark:text-copy-dark": n === "system",
|
|
505
505
|
"dark:text-copy-light": n === "alt-system",
|
|
506
506
|
"px-4 py-3": !r && (e === dt || e === mr),
|
|
507
|
-
"p-4": !r && e ===
|
|
507
|
+
"p-4": !r && e === Ne,
|
|
508
508
|
"px-2 py-1.5": r
|
|
509
509
|
},
|
|
510
510
|
t
|
|
@@ -516,28 +516,35 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
516
516
|
size: t,
|
|
517
517
|
labelRight: r,
|
|
518
518
|
labelLeft: n,
|
|
519
|
-
align: a
|
|
519
|
+
align: a,
|
|
520
|
+
animated: o
|
|
520
521
|
}) => {
|
|
521
|
-
const
|
|
522
|
+
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";
|
|
522
523
|
switch (e) {
|
|
523
524
|
case Bn:
|
|
524
525
|
case qt:
|
|
525
526
|
return f({
|
|
526
|
-
[
|
|
527
|
-
[
|
|
528
|
-
[
|
|
527
|
+
[i]: t === "small",
|
|
528
|
+
[s]: t === "medium",
|
|
529
|
+
[c]: t === "large"
|
|
529
530
|
});
|
|
530
531
|
case ut:
|
|
531
532
|
return f("inline-flex items-center", {
|
|
532
533
|
"justify-center": a === "center",
|
|
533
534
|
"justify-start": a === "left",
|
|
534
535
|
"justify-end": a === "right",
|
|
535
|
-
"h-6
|
|
536
|
-
"h-6": t === "small" && (r || n),
|
|
537
|
-
"h-8
|
|
538
|
-
"h-8": t === "medium" && (r || n),
|
|
539
|
-
"h-12
|
|
540
|
-
"h-12": t === "large" && (r || n)
|
|
536
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
537
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
538
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
539
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
540
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
541
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
542
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
543
|
+
"h-6": t === "small" && o && (r || n),
|
|
544
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
545
|
+
"h-8": t === "medium" && o && (r || n),
|
|
546
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
547
|
+
"h-12": t === "large" && o && (r || n)
|
|
541
548
|
});
|
|
542
549
|
}
|
|
543
550
|
}, Io = ({
|
|
@@ -725,14 +732,14 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
725
732
|
});
|
|
726
733
|
if (r === "selected")
|
|
727
734
|
return "border border-border-selected-dark";
|
|
728
|
-
},
|
|
735
|
+
}, Vo = ({
|
|
729
736
|
focusMode: e
|
|
730
737
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
731
738
|
"focus:outline-focus-dark": e === "dark",
|
|
732
739
|
"focus:outline-focus-light": e === "light",
|
|
733
740
|
"focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
|
|
734
741
|
"focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
|
|
735
|
-
}),
|
|
742
|
+
}), Do = ({
|
|
736
743
|
mode: e,
|
|
737
744
|
raw: t,
|
|
738
745
|
iconClassName: r
|
|
@@ -781,11 +788,12 @@ const dt = "thead", mr = "tfoot", Se = "tbody", Ve = {
|
|
|
781
788
|
size: s,
|
|
782
789
|
labelRight: u,
|
|
783
790
|
labelLeft: h,
|
|
784
|
-
align: y
|
|
791
|
+
align: y,
|
|
792
|
+
animated: v
|
|
785
793
|
}),
|
|
786
794
|
Io({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
787
795
|
Mo({ mode: n, variant: m, noBorder: c }),
|
|
788
|
-
|
|
796
|
+
Vo({ focusMode: a }),
|
|
789
797
|
Ao({ mode: n, variant: m, disabled: o }),
|
|
790
798
|
Bo({ mode: n, variant: m, disabled: o }),
|
|
791
799
|
{
|
|
@@ -817,7 +825,7 @@ function Fo() {
|
|
|
817
825
|
const e = T(!1);
|
|
818
826
|
return M(() => (e.current = !0, () => {
|
|
819
827
|
e.current = !1;
|
|
820
|
-
}), []),
|
|
828
|
+
}), []), X(() => e.current, []);
|
|
821
829
|
}
|
|
822
830
|
function Ho(e) {
|
|
823
831
|
return de(() => e.every((t) => t == null) ? () => {
|
|
@@ -862,7 +870,7 @@ const jo = {
|
|
|
862
870
|
// px-3 x 2
|
|
863
871
|
large: 16 * 2
|
|
864
872
|
// px-4 x 2
|
|
865
|
-
}, qo = 2,
|
|
873
|
+
}, qo = 2, Vn = F.forwardRef(
|
|
866
874
|
({
|
|
867
875
|
children: e,
|
|
868
876
|
disabled: t = !1,
|
|
@@ -882,8 +890,8 @@ const jo = {
|
|
|
882
890
|
align: p = "center",
|
|
883
891
|
radius: v = "large",
|
|
884
892
|
variant: b = "primary",
|
|
885
|
-
iconClassName:
|
|
886
|
-
animated:
|
|
893
|
+
iconClassName: x,
|
|
894
|
+
animated: k = !1,
|
|
887
895
|
...I
|
|
888
896
|
}, _) => {
|
|
889
897
|
const $ = zo({
|
|
@@ -902,20 +910,21 @@ const jo = {
|
|
|
902
910
|
align: p,
|
|
903
911
|
radius: v,
|
|
904
912
|
variant: b,
|
|
905
|
-
animated:
|
|
906
|
-
}), B =
|
|
913
|
+
animated: k
|
|
914
|
+
}), B = Do({ mode: r, raw: s, iconClassName: x }), E = Po({ animated: k }), [w, R] = Rt(), [S, A] = Rt(), [C, O] = Rt(), D = T(0), N = T(null), U = Ho([_, N]);
|
|
907
915
|
return ge(() => {
|
|
908
|
-
C && C.current && (
|
|
909
|
-
}, [O, C, d, c]), ge(() => {
|
|
910
|
-
|
|
916
|
+
C && C.current && k && (D.current = O.width + Go[d] + (c ? 0 : qo));
|
|
917
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
918
|
+
N && N.current && k && (m && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), N.current.style.width = `${R.width + D.current}px`) : g && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), N.current.style.width = `${A.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), N.current.style.width = `${jo[d]}px`));
|
|
911
919
|
}, [
|
|
912
920
|
R,
|
|
913
921
|
m,
|
|
914
|
-
|
|
922
|
+
w,
|
|
915
923
|
A,
|
|
916
924
|
g,
|
|
917
|
-
|
|
918
|
-
d
|
|
925
|
+
S,
|
|
926
|
+
d,
|
|
927
|
+
k
|
|
919
928
|
]), /* @__PURE__ */ L(
|
|
920
929
|
Mn,
|
|
921
930
|
{
|
|
@@ -926,29 +935,29 @@ const jo = {
|
|
|
926
935
|
"aria-label": u || h,
|
|
927
936
|
...I,
|
|
928
937
|
children: [
|
|
929
|
-
/* @__PURE__ */ l("span", { ref:
|
|
938
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
930
939
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
931
|
-
/* @__PURE__ */ l("span", { ref:
|
|
940
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
932
941
|
]
|
|
933
942
|
}
|
|
934
943
|
);
|
|
935
944
|
}
|
|
936
945
|
);
|
|
937
|
-
|
|
946
|
+
Vn.displayName = "ButtonIcon";
|
|
938
947
|
/*!
|
|
939
|
-
@versini/ui-button v4.2.
|
|
948
|
+
@versini/ui-button v4.2.2
|
|
940
949
|
© 2025 gizmette.com
|
|
941
950
|
*/
|
|
942
951
|
try {
|
|
943
952
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
944
|
-
version: "4.2.
|
|
945
|
-
buildTime: "01/
|
|
953
|
+
version: "4.2.2",
|
|
954
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
946
955
|
homepage: "https://github.com/aversini/ui-components",
|
|
947
956
|
license: "MIT"
|
|
948
957
|
});
|
|
949
958
|
} catch {
|
|
950
959
|
}
|
|
951
|
-
const
|
|
960
|
+
const Dn = F.forwardRef(
|
|
952
961
|
({
|
|
953
962
|
children: e,
|
|
954
963
|
mode: t = "system",
|
|
@@ -974,7 +983,7 @@ const Vn = F.forwardRef(
|
|
|
974
983
|
}
|
|
975
984
|
) : "";
|
|
976
985
|
return /* @__PURE__ */ l("div", { className: i, children: /* @__PURE__ */ l(
|
|
977
|
-
|
|
986
|
+
Vn,
|
|
978
987
|
{
|
|
979
988
|
className: f("justify-center", r),
|
|
980
989
|
ref: o,
|
|
@@ -986,7 +995,7 @@ const Vn = F.forwardRef(
|
|
|
986
995
|
) });
|
|
987
996
|
}
|
|
988
997
|
);
|
|
989
|
-
|
|
998
|
+
Dn.displayName = "ButtonSort";
|
|
990
999
|
const fr = ({
|
|
991
1000
|
children: e,
|
|
992
1001
|
fill: t,
|
|
@@ -1180,7 +1189,7 @@ const Ae = F.createContext({
|
|
|
1180
1189
|
stickyHeader: n.stickyHeader
|
|
1181
1190
|
});
|
|
1182
1191
|
return /* @__PURE__ */ l("thead", { className: a, ...r, children: e });
|
|
1183
|
-
},
|
|
1192
|
+
}, Vl = ({
|
|
1184
1193
|
children: e,
|
|
1185
1194
|
className: t,
|
|
1186
1195
|
...r
|
|
@@ -1193,28 +1202,28 @@ const Ae = F.createContext({
|
|
|
1193
1202
|
stickyFooter: n.stickyFooter
|
|
1194
1203
|
});
|
|
1195
1204
|
return /* @__PURE__ */ l("tfoot", { className: a, ...r, children: e });
|
|
1196
|
-
},
|
|
1205
|
+
}, Dl = ({ children: e, ...t }) => {
|
|
1197
1206
|
const r = j(Ae);
|
|
1198
|
-
return r.cellWrapper =
|
|
1207
|
+
return r.cellWrapper = Ne, /* @__PURE__ */ l("tbody", { ...t, children: e });
|
|
1199
1208
|
}, Pl = ({
|
|
1200
1209
|
children: e,
|
|
1201
1210
|
className: t,
|
|
1202
1211
|
...r
|
|
1203
1212
|
}) => {
|
|
1204
|
-
const n = j(Ae), a =
|
|
1213
|
+
const n = j(Ae), a = So({
|
|
1205
1214
|
mode: n.mode,
|
|
1206
1215
|
cellWrapper: n.cellWrapper,
|
|
1207
1216
|
className: t
|
|
1208
1217
|
});
|
|
1209
1218
|
return /* @__PURE__ */ l("tr", { className: a, ...r, children: e });
|
|
1210
|
-
},
|
|
1219
|
+
}, Zo = ({
|
|
1211
1220
|
children: e,
|
|
1212
1221
|
component: t,
|
|
1213
1222
|
className: r,
|
|
1214
1223
|
align: n,
|
|
1215
1224
|
...a
|
|
1216
1225
|
}) => {
|
|
1217
|
-
const o = j(Ae), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } =
|
|
1226
|
+
const o = j(Ae), i = t || (o.cellWrapper === dt ? "th" : "td"), { mainClasses: s, alignClasses: c } = No({
|
|
1218
1227
|
cellWrapper: o.cellWrapper,
|
|
1219
1228
|
className: r,
|
|
1220
1229
|
mode: o.mode,
|
|
@@ -1238,15 +1247,15 @@ const Ae = F.createContext({
|
|
|
1238
1247
|
}) => {
|
|
1239
1248
|
const m = Co({ buttonClassName: r });
|
|
1240
1249
|
return /* @__PURE__ */ l(
|
|
1241
|
-
|
|
1250
|
+
Zo,
|
|
1242
1251
|
{
|
|
1243
1252
|
component: a,
|
|
1244
1253
|
className: n,
|
|
1245
1254
|
role: "columnheader",
|
|
1246
|
-
"aria-sort": c ===
|
|
1255
|
+
"aria-sort": c === De.ASC && u === h ? "ascending" : c === De.DESC && u === h ? "descending" : "other",
|
|
1247
1256
|
...d,
|
|
1248
1257
|
children: /* @__PURE__ */ l(
|
|
1249
|
-
|
|
1258
|
+
Dn,
|
|
1250
1259
|
{
|
|
1251
1260
|
active: u === h,
|
|
1252
1261
|
className: m,
|
|
@@ -1257,7 +1266,7 @@ const Ae = F.createContext({
|
|
|
1257
1266
|
mode: i,
|
|
1258
1267
|
fullWidth: !0,
|
|
1259
1268
|
labelRight: t,
|
|
1260
|
-
children: c ===
|
|
1269
|
+
children: c === De.ASC && u === h ? /* @__PURE__ */ l(Jo, { className: "size-4", monotone: !0 }) : c === De.DESC && u === h ? /* @__PURE__ */ l(Yo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Ko, { className: "size-4", monotone: !0 })
|
|
1261
1270
|
}
|
|
1262
1271
|
)
|
|
1263
1272
|
}
|
|
@@ -1265,7 +1274,7 @@ const Ae = F.createContext({
|
|
|
1265
1274
|
}, Y = [];
|
|
1266
1275
|
for (let e = 0; e < 256; ++e)
|
|
1267
1276
|
Y.push((e + 256).toString(16).slice(1));
|
|
1268
|
-
function
|
|
1277
|
+
function Xo(e, t = 0) {
|
|
1269
1278
|
return (Y[e[t + 0]] + Y[e[t + 1]] + Y[e[t + 2]] + Y[e[t + 3]] + "-" + Y[e[t + 4]] + Y[e[t + 5]] + "-" + Y[e[t + 6]] + Y[e[t + 7]] + "-" + Y[e[t + 8]] + Y[e[t + 9]] + "-" + Y[e[t + 10]] + Y[e[t + 11]] + Y[e[t + 12]] + Y[e[t + 13]] + Y[e[t + 14]] + Y[e[t + 15]]).toLowerCase();
|
|
1270
1279
|
}
|
|
1271
1280
|
let It;
|
|
@@ -1287,7 +1296,7 @@ function gr(e, t, r) {
|
|
|
1287
1296
|
const n = e.random ?? ((a = e.rng) == null ? void 0 : a.call(e)) ?? ei();
|
|
1288
1297
|
if (n.length < 16)
|
|
1289
1298
|
throw new Error("Random bytes length must be >= 16");
|
|
1290
|
-
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128,
|
|
1299
|
+
return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Xo(n);
|
|
1291
1300
|
}
|
|
1292
1301
|
const ri = (e, t) => {
|
|
1293
1302
|
var r, n;
|
|
@@ -1408,7 +1417,7 @@ const ri = (e, t) => {
|
|
|
1408
1417
|
return e;
|
|
1409
1418
|
}, ni = (e, t) => {
|
|
1410
1419
|
switch (t == null ? void 0 : t.type) {
|
|
1411
|
-
case
|
|
1420
|
+
case Sa:
|
|
1412
1421
|
return {
|
|
1413
1422
|
searchString: t.payload.searchString,
|
|
1414
1423
|
sortedCell: e.sortedCell,
|
|
@@ -1520,16 +1529,16 @@ function ii() {
|
|
|
1520
1529
|
v = i({
|
|
1521
1530
|
inst: { value: p, getSnapshot: y }
|
|
1522
1531
|
});
|
|
1523
|
-
var b = v[0].inst,
|
|
1532
|
+
var b = v[0].inst, x = v[1];
|
|
1524
1533
|
return c(
|
|
1525
1534
|
function() {
|
|
1526
|
-
b.value = p, b.getSnapshot = y, r(b) &&
|
|
1535
|
+
b.value = p, b.getSnapshot = y, r(b) && x({ inst: b });
|
|
1527
1536
|
},
|
|
1528
1537
|
[g, p, y]
|
|
1529
1538
|
), s(
|
|
1530
1539
|
function() {
|
|
1531
|
-
return r(b) &&
|
|
1532
|
-
r(b) &&
|
|
1540
|
+
return r(b) && x({ inst: b }), g(function() {
|
|
1541
|
+
r(b) && x({ inst: b });
|
|
1533
1542
|
});
|
|
1534
1543
|
},
|
|
1535
1544
|
[g]
|
|
@@ -1557,7 +1566,7 @@ var Jr;
|
|
|
1557
1566
|
function si() {
|
|
1558
1567
|
return Jr || (Jr = 1, process.env.NODE_ENV === "production" ? et.exports = /* @__PURE__ */ oi() : et.exports = /* @__PURE__ */ ii()), et.exports;
|
|
1559
1568
|
}
|
|
1560
|
-
var ci = /* @__PURE__ */ si(),
|
|
1569
|
+
var ci = /* @__PURE__ */ si(), Zr = Object.prototype.hasOwnProperty;
|
|
1561
1570
|
function Kt(e, t) {
|
|
1562
1571
|
var r, n;
|
|
1563
1572
|
if (e === t) return !0;
|
|
@@ -1572,7 +1581,7 @@ function Kt(e, t) {
|
|
|
1572
1581
|
if (!r || typeof e == "object") {
|
|
1573
1582
|
n = 0;
|
|
1574
1583
|
for (r in e)
|
|
1575
|
-
if (
|
|
1584
|
+
if (Zr.call(e, r) && ++n && !Zr.call(t, r) || !(r in t) || !Kt(e[r], t[r])) return !1;
|
|
1576
1585
|
return Object.keys(t).length === n;
|
|
1577
1586
|
}
|
|
1578
1587
|
}
|
|
@@ -1582,17 +1591,17 @@ const ie = /* @__PURE__ */ new WeakMap(), ye = () => {
|
|
|
1582
1591
|
}, ee = (
|
|
1583
1592
|
/*#__NOINLINE__*/
|
|
1584
1593
|
ye()
|
|
1585
|
-
), Yt = Object,
|
|
1594
|
+
), Yt = Object, V = (e) => e === ee, se = (e) => typeof e == "function", ve = (e, t) => ({
|
|
1586
1595
|
...e,
|
|
1587
1596
|
...t
|
|
1588
1597
|
}), Pn = (e) => se(e.then), Ot = {}, tt = {}, hr = "undefined", mt = typeof window != hr, Jt = typeof document != hr, li = () => mt && typeof window.requestAnimationFrame != hr, zn = (e, t) => {
|
|
1589
1598
|
const r = ie.get(e);
|
|
1590
1599
|
return [
|
|
1591
1600
|
// Getter
|
|
1592
|
-
() => !
|
|
1601
|
+
() => !V(t) && e.get(t) || Ot,
|
|
1593
1602
|
// Setter
|
|
1594
1603
|
(n) => {
|
|
1595
|
-
if (!
|
|
1604
|
+
if (!V(t)) {
|
|
1596
1605
|
const a = e.get(t);
|
|
1597
1606
|
t in tt || (tt[t] = a), r[5](t, ve(a, n), a || Ot);
|
|
1598
1607
|
}
|
|
@@ -1600,11 +1609,11 @@ const ie = /* @__PURE__ */ new WeakMap(), ye = () => {
|
|
|
1600
1609
|
// Subscriber
|
|
1601
1610
|
r[6],
|
|
1602
1611
|
// Get server cache snapshot
|
|
1603
|
-
() => !
|
|
1612
|
+
() => !V(t) && t in tt ? tt[t] : !V(t) && e.get(t) || Ot
|
|
1604
1613
|
];
|
|
1605
1614
|
};
|
|
1606
|
-
let
|
|
1607
|
-
const di = () =>
|
|
1615
|
+
let Zt = !0;
|
|
1616
|
+
const di = () => Zt, [Xt, Qt] = mt && window.addEventListener ? [
|
|
1608
1617
|
window.addEventListener.bind(window),
|
|
1609
1618
|
window.removeEventListener.bind(window)
|
|
1610
1619
|
] : [
|
|
@@ -1612,16 +1621,16 @@ const di = () => Xt, [Zt, Qt] = mt && window.addEventListener ? [
|
|
|
1612
1621
|
ye
|
|
1613
1622
|
], ui = () => {
|
|
1614
1623
|
const e = Jt && document.visibilityState;
|
|
1615
|
-
return
|
|
1616
|
-
}, mi = (e) => (Jt && document.addEventListener("visibilitychange", e),
|
|
1624
|
+
return V(e) || e !== "hidden";
|
|
1625
|
+
}, mi = (e) => (Jt && document.addEventListener("visibilitychange", e), Xt("focus", e), () => {
|
|
1617
1626
|
Jt && document.removeEventListener("visibilitychange", e), Qt("focus", e);
|
|
1618
1627
|
}), fi = (e) => {
|
|
1619
1628
|
const t = () => {
|
|
1620
|
-
|
|
1629
|
+
Zt = !0, e();
|
|
1621
1630
|
}, r = () => {
|
|
1622
|
-
|
|
1631
|
+
Zt = !1;
|
|
1623
1632
|
};
|
|
1624
|
-
return
|
|
1633
|
+
return Xt("online", t), Xt("offline", r), () => {
|
|
1625
1634
|
Qt("online", t), Qt("offline", r);
|
|
1626
1635
|
};
|
|
1627
1636
|
}, gi = {
|
|
@@ -1630,7 +1639,7 @@ const di = () => Xt, [Zt, Qt] = mt && window.addEventListener ? [
|
|
|
1630
1639
|
}, hi = {
|
|
1631
1640
|
initFocus: mi,
|
|
1632
1641
|
initReconnect: fi
|
|
1633
|
-
},
|
|
1642
|
+
}, Xr = !F.useId, Fe = !mt || "Deno" in globalThis, pi = (e) => li() ? window.requestAnimationFrame(e) : setTimeout(e, 1), At = Fe ? M : ge, Bt = typeof navigator < "u" && navigator.connection, Qr = !Fe && Bt && ([
|
|
1634
1643
|
"slow-2g",
|
|
1635
1644
|
"2g"
|
|
1636
1645
|
].includes(Bt.effectiveType) || Bt.saveData), rt = /* @__PURE__ */ new WeakMap(), Mt = (e, t) => Yt.prototype.toString.call(e) === `[object ${t}]`;
|
|
@@ -1648,8 +1657,8 @@ const er = (e) => {
|
|
|
1648
1657
|
if (a) {
|
|
1649
1658
|
o = "#";
|
|
1650
1659
|
const s = Yt.keys(e).sort();
|
|
1651
|
-
for (; !
|
|
1652
|
-
|
|
1660
|
+
for (; !V(i = s.pop()); )
|
|
1661
|
+
V(e[i]) || (o += i + ":" + er(e[i]) + ",");
|
|
1653
1662
|
rt.set(e, o);
|
|
1654
1663
|
}
|
|
1655
1664
|
} else
|
|
@@ -1670,7 +1679,7 @@ const er = (e) => {
|
|
|
1670
1679
|
};
|
|
1671
1680
|
let bi = 0;
|
|
1672
1681
|
const tr = () => ++bi, Un = 0, Fn = 1, Hn = 2, vi = 3;
|
|
1673
|
-
var
|
|
1682
|
+
var Ve = {
|
|
1674
1683
|
__proto__: null,
|
|
1675
1684
|
ERROR_REVALIDATE_EVENT: vi,
|
|
1676
1685
|
FOCUS_EVENT: Un,
|
|
@@ -1699,9 +1708,9 @@ async function Wn(...e) {
|
|
|
1699
1708
|
async function d(m) {
|
|
1700
1709
|
const [g] = ft(m);
|
|
1701
1710
|
if (!g) return;
|
|
1702
|
-
const [y, p] = zn(t, g), [v, b,
|
|
1711
|
+
const [y, p] = zn(t, g), [v, b, x, k] = ie.get(t), I = () => {
|
|
1703
1712
|
const C = v[g];
|
|
1704
|
-
return (se(o.revalidate) ? o.revalidate(y().data, m) : o.revalidate !== !1) && (delete
|
|
1713
|
+
return (se(o.revalidate) ? o.revalidate(y().data, m) : o.revalidate !== !1) && (delete x[g], delete k[g], C && C[0]) ? C[0](Hn).then(() => y().data) : y().data;
|
|
1705
1714
|
};
|
|
1706
1715
|
if (e.length < 3)
|
|
1707
1716
|
return I();
|
|
@@ -1711,7 +1720,7 @@ async function Wn(...e) {
|
|
|
1711
1720
|
B,
|
|
1712
1721
|
0
|
|
1713
1722
|
];
|
|
1714
|
-
const E = !
|
|
1723
|
+
const E = !V(c), w = y(), R = w.data, S = w._c, A = V(S) ? R : S;
|
|
1715
1724
|
if (E && (c = se(c) ? c(A, R) : c, p({
|
|
1716
1725
|
data: c,
|
|
1717
1726
|
_c: A
|
|
@@ -1801,7 +1810,7 @@ const en = (e, t) => {
|
|
|
1801
1810
|
];
|
|
1802
1811
|
}, wi = (e, t, r, n, a) => {
|
|
1803
1812
|
const o = r.errorRetryCount, i = a.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
|
|
1804
|
-
!
|
|
1813
|
+
!V(o) && i > o || setTimeout(n, s, a);
|
|
1805
1814
|
}, xi = Kt, [pr, _i] = ki(/* @__PURE__ */ new Map()), Ei = ve(
|
|
1806
1815
|
{
|
|
1807
1816
|
// events
|
|
@@ -1836,7 +1845,7 @@ const en = (e, t) => {
|
|
|
1836
1845
|
n && o && (r.use = n.concat(o)), a && i && (r.fallback = ve(a, i));
|
|
1837
1846
|
}
|
|
1838
1847
|
return r;
|
|
1839
|
-
},
|
|
1848
|
+
}, Si = Ha({}), Ni = "$inf$", jn = mt && window.__SWR_DEVTOOLS_USE__, Ci = jn ? window.__SWR_DEVTOOLS_USE__ : [], Ri = () => {
|
|
1840
1849
|
jn && (window.__SWR_DEVTOOLS_REACT__ = F);
|
|
1841
1850
|
}, Ii = (e) => se(e[1]) ? [
|
|
1842
1851
|
e[0],
|
|
@@ -1846,17 +1855,17 @@ const en = (e, t) => {
|
|
|
1846
1855
|
e[0],
|
|
1847
1856
|
null,
|
|
1848
1857
|
(e[1] === null ? e[2] : e[1]) || {}
|
|
1849
|
-
], Li = () => ve(Ei, j(
|
|
1858
|
+
], Li = () => ve(Ei, j(Si)), Gn = (e, t) => {
|
|
1850
1859
|
const [r, n] = ft(e), [, , , a] = ie.get(pr);
|
|
1851
1860
|
if (a[r]) return a[r];
|
|
1852
1861
|
const o = t(n);
|
|
1853
1862
|
return a[r] = o, o;
|
|
1854
1863
|
}, $i = (e) => (t, r, n) => e(t, r && ((...o) => {
|
|
1855
1864
|
const [i] = ft(t), [, , , s] = ie.get(pr);
|
|
1856
|
-
if (i.startsWith(
|
|
1865
|
+
if (i.startsWith(Ni))
|
|
1857
1866
|
return r(...o);
|
|
1858
1867
|
const c = s[i];
|
|
1859
|
-
return
|
|
1868
|
+
return V(c) ? r(...o) : (delete s[i], c);
|
|
1860
1869
|
}), n), Oi = Ci.concat($i), Ai = (e) => function(...r) {
|
|
1861
1870
|
const n = Li(), [a, o, i] = Ii(r), s = Ti(n, i);
|
|
1862
1871
|
let c = e;
|
|
@@ -1872,7 +1881,7 @@ const en = (e, t) => {
|
|
|
1872
1881
|
};
|
|
1873
1882
|
};
|
|
1874
1883
|
Ri();
|
|
1875
|
-
const
|
|
1884
|
+
const Vt = F.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
|
|
1876
1885
|
// and emitting an error.
|
|
1877
1886
|
// We assume that this is only for the `use(thenable)` case, not `use(context)`.
|
|
1878
1887
|
// https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
|
|
@@ -1891,91 +1900,91 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1891
1900
|
e.status = "rejected", e.reason = t;
|
|
1892
1901
|
}), e;
|
|
1893
1902
|
}
|
|
1894
|
-
}),
|
|
1903
|
+
}), Dt = {
|
|
1895
1904
|
dedupe: !0
|
|
1896
1905
|
}, Mi = (e, t, r) => {
|
|
1897
|
-
const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: u, refreshWhenHidden: h, refreshWhenOffline: d, keepPreviousData: m } = r, [g, y, p, v] = ie.get(n), [b,
|
|
1898
|
-
for (const
|
|
1899
|
-
const H =
|
|
1906
|
+
const { cache: n, compare: a, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: u, refreshWhenHidden: h, refreshWhenOffline: d, keepPreviousData: m } = r, [g, y, p, v] = ie.get(n), [b, x] = ft(e), k = T(!1), I = T(!1), _ = T(b), $ = T(t), B = T(r), E = () => B.current, w = () => E().isVisible() && E().isOnline(), [R, S, A, C] = zn(n, b), O = T({}).current, D = V(i) ? V(r.fallback) ? ee : r.fallback[b] : i, N = (P, z) => {
|
|
1907
|
+
for (const Z in O) {
|
|
1908
|
+
const H = Z;
|
|
1900
1909
|
if (H === "data") {
|
|
1901
|
-
if (!a(P[H], z[H]) && (!
|
|
1910
|
+
if (!a(P[H], z[H]) && (!V(P[H]) || !a(Qe, z[H])))
|
|
1902
1911
|
return !1;
|
|
1903
1912
|
} else if (z[H] !== P[H])
|
|
1904
1913
|
return !1;
|
|
1905
1914
|
}
|
|
1906
1915
|
return !0;
|
|
1907
1916
|
}, U = de(() => {
|
|
1908
|
-
const P = !b || !t ? !1 :
|
|
1917
|
+
const P = !b || !t ? !1 : V(s) ? E().isPaused() || o ? !1 : c !== !1 : s, z = (Q) => {
|
|
1909
1918
|
const me = ve(Q);
|
|
1910
1919
|
return delete me._k, P ? {
|
|
1911
1920
|
isValidating: !0,
|
|
1912
1921
|
isLoading: !0,
|
|
1913
1922
|
...me
|
|
1914
1923
|
} : me;
|
|
1915
|
-
},
|
|
1924
|
+
}, Z = R(), H = C(), oe = z(Z), Se = Z === H ? oe : z(H);
|
|
1916
1925
|
let K = oe;
|
|
1917
1926
|
return [
|
|
1918
1927
|
() => {
|
|
1919
1928
|
const Q = z(R());
|
|
1920
|
-
return
|
|
1929
|
+
return N(Q, K) ? (K.data = Q.data, K.isLoading = Q.isLoading, K.isValidating = Q.isValidating, K.error = Q.error, K) : (K = Q, Q);
|
|
1921
1930
|
},
|
|
1922
|
-
() =>
|
|
1931
|
+
() => Se
|
|
1923
1932
|
];
|
|
1924
1933
|
}, [
|
|
1925
1934
|
n,
|
|
1926
1935
|
b
|
|
1927
|
-
]), G = ci.useSyncExternalStore(
|
|
1928
|
-
(P) => A(b, (z,
|
|
1929
|
-
|
|
1936
|
+
]), G = ci.useSyncExternalStore(X(
|
|
1937
|
+
(P) => A(b, (z, Z) => {
|
|
1938
|
+
N(Z, z) || P();
|
|
1930
1939
|
}),
|
|
1931
1940
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1932
1941
|
[
|
|
1933
1942
|
n,
|
|
1934
1943
|
b
|
|
1935
1944
|
]
|
|
1936
|
-
), U[0], U[1]), q = !
|
|
1945
|
+
), U[0], U[1]), q = !k.current, Et = g[b] && g[b].length > 0, Ee = G.data, Te = V(Ee) ? D && Pn(D) ? Vt(D) : D : Ee, Xe = G.error, Cr = T(Te), Qe = m ? V(Ee) ? Cr.current : Ee : Te, Rr = Et && !V(Xe) ? !1 : q && !V(s) ? s : E().isPaused() ? !1 : o ? V(Te) ? !1 : c : V(Te) || c, Ir = !!(b && t && q && Rr), wa = V(G.isValidating) ? Ir : G.isValidating, xa = V(G.isLoading) ? Ir : G.isLoading, Me = X(
|
|
1937
1946
|
async (P) => {
|
|
1938
1947
|
const z = $.current;
|
|
1939
1948
|
if (!b || !z || I.current || E().isPaused())
|
|
1940
1949
|
return !1;
|
|
1941
|
-
let
|
|
1942
|
-
const
|
|
1950
|
+
let Z, H, oe = !0;
|
|
1951
|
+
const Se = P || {}, K = !p[b] || !Se.dedupe, Q = () => Xr ? !I.current && b === _.current && k.current : b === _.current, me = {
|
|
1943
1952
|
isValidating: !1,
|
|
1944
1953
|
isLoading: !1
|
|
1945
1954
|
}, $r = () => {
|
|
1946
|
-
|
|
1955
|
+
S(me);
|
|
1947
1956
|
}, Or = () => {
|
|
1948
1957
|
const re = p[b];
|
|
1949
1958
|
re && re[1] === H && delete p[b];
|
|
1950
1959
|
}, Ar = {
|
|
1951
1960
|
isValidating: !0
|
|
1952
1961
|
};
|
|
1953
|
-
|
|
1962
|
+
V(R().data) && (Ar.isLoading = !0);
|
|
1954
1963
|
try {
|
|
1955
|
-
if (K && (
|
|
1964
|
+
if (K && (S(Ar), r.loadingTimeout && V(R().data) && setTimeout(() => {
|
|
1956
1965
|
oe && Q() && E().onLoadingSlow(b, r);
|
|
1957
1966
|
}, r.loadingTimeout), p[b] = [
|
|
1958
|
-
z(
|
|
1967
|
+
z(x),
|
|
1959
1968
|
tr()
|
|
1960
|
-
]), [
|
|
1969
|
+
]), [Z, H] = p[b], Z = await Z, K && setTimeout(Or, r.dedupingInterval), !p[b] || p[b][1] !== H)
|
|
1961
1970
|
return K && Q() && E().onDiscarded(b), !1;
|
|
1962
1971
|
me.error = ee;
|
|
1963
1972
|
const re = y[b];
|
|
1964
|
-
if (!
|
|
1973
|
+
if (!V(re) && // case 1
|
|
1965
1974
|
(H <= re[0] || // case 2
|
|
1966
1975
|
H <= re[1] || // case 3
|
|
1967
1976
|
re[1] === 0))
|
|
1968
1977
|
return $r(), K && Q() && E().onDiscarded(b), !1;
|
|
1969
1978
|
const fe = R().data;
|
|
1970
|
-
me.data = a(fe,
|
|
1979
|
+
me.data = a(fe, Z) ? fe : Z, K && Q() && E().onSuccess(Z, b, r);
|
|
1971
1980
|
} catch (re) {
|
|
1972
1981
|
Or();
|
|
1973
1982
|
const fe = E(), { shouldRetryOnError: Tt } = fe;
|
|
1974
|
-
fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, b, fe), (Tt === !0 || se(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect ||
|
|
1975
|
-
const
|
|
1976
|
-
|
|
1983
|
+
fe.isPaused() || (me.error = re, K && Q() && (fe.onError(re, b, fe), (Tt === !0 || se(Tt) && Tt(re)) && (!E().revalidateOnFocus || !E().revalidateOnReconnect || w()) && fe.onErrorRetry(re, b, fe, (_a) => {
|
|
1984
|
+
const St = g[b];
|
|
1985
|
+
St && St[0] && St[0](Ve.ERROR_REVALIDATE_EVENT, _a);
|
|
1977
1986
|
}, {
|
|
1978
|
-
retryCount: (
|
|
1987
|
+
retryCount: (Se.retryCount || 0) + 1,
|
|
1979
1988
|
dedupe: !0
|
|
1980
1989
|
})));
|
|
1981
1990
|
}
|
|
@@ -1996,34 +2005,34 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
1996
2005
|
b,
|
|
1997
2006
|
n
|
|
1998
2007
|
]
|
|
1999
|
-
), Lr =
|
|
2008
|
+
), Lr = X(
|
|
2000
2009
|
// Use callback to make sure `keyRef.current` returns latest result every time
|
|
2001
2010
|
(...P) => Wn(n, _.current, ...P),
|
|
2002
2011
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2003
2012
|
[]
|
|
2004
2013
|
);
|
|
2005
2014
|
if (At(() => {
|
|
2006
|
-
$.current = t, B.current = r,
|
|
2015
|
+
$.current = t, B.current = r, V(Ee) || (Cr.current = Ee);
|
|
2007
2016
|
}), At(() => {
|
|
2008
2017
|
if (!b) return;
|
|
2009
|
-
const P = Me.bind(ee,
|
|
2018
|
+
const P = Me.bind(ee, Dt);
|
|
2010
2019
|
let z = 0;
|
|
2011
|
-
const H = Bi(b, g, (oe,
|
|
2012
|
-
if (oe ==
|
|
2020
|
+
const H = Bi(b, g, (oe, Se = {}) => {
|
|
2021
|
+
if (oe == Ve.FOCUS_EVENT) {
|
|
2013
2022
|
const K = Date.now();
|
|
2014
|
-
E().revalidateOnFocus && K > z &&
|
|
2015
|
-
} else if (oe ==
|
|
2016
|
-
E().revalidateOnReconnect &&
|
|
2023
|
+
E().revalidateOnFocus && K > z && w() && (z = K + E().focusThrottleInterval, P());
|
|
2024
|
+
} else if (oe == Ve.RECONNECT_EVENT)
|
|
2025
|
+
E().revalidateOnReconnect && w() && P();
|
|
2017
2026
|
else {
|
|
2018
|
-
if (oe ==
|
|
2027
|
+
if (oe == Ve.MUTATE_EVENT)
|
|
2019
2028
|
return Me();
|
|
2020
|
-
if (oe ==
|
|
2021
|
-
return Me(
|
|
2029
|
+
if (oe == Ve.ERROR_REVALIDATE_EVENT)
|
|
2030
|
+
return Me(Se);
|
|
2022
2031
|
}
|
|
2023
2032
|
});
|
|
2024
|
-
return I.current = !1, _.current = b,
|
|
2025
|
-
_k:
|
|
2026
|
-
}), Rr && (
|
|
2033
|
+
return I.current = !1, _.current = b, k.current = !0, S({
|
|
2034
|
+
_k: x
|
|
2035
|
+
}), Rr && (V(Te) || Fe ? P() : pi(P)), () => {
|
|
2027
2036
|
I.current = !0, H();
|
|
2028
2037
|
};
|
|
2029
2038
|
}, [
|
|
@@ -2032,10 +2041,10 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2032
2041
|
let P;
|
|
2033
2042
|
function z() {
|
|
2034
2043
|
const H = se(u) ? u(R().data) : u;
|
|
2035
|
-
H && P !== -1 && (P = setTimeout(
|
|
2044
|
+
H && P !== -1 && (P = setTimeout(Z, H));
|
|
2036
2045
|
}
|
|
2037
|
-
function
|
|
2038
|
-
!R().error && (h || E().isVisible()) && (d || E().isOnline()) ? Me(
|
|
2046
|
+
function Z() {
|
|
2047
|
+
!R().error && (h || E().isVisible()) && (d || E().isOnline()) ? Me(Dt).then(z) : z();
|
|
2039
2048
|
}
|
|
2040
2049
|
return z(), () => {
|
|
2041
2050
|
P && (clearTimeout(P), P = -1);
|
|
@@ -2045,20 +2054,20 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2045
2054
|
h,
|
|
2046
2055
|
d,
|
|
2047
2056
|
b
|
|
2048
|
-
]), Wa(Qe), o &&
|
|
2049
|
-
if (!
|
|
2057
|
+
]), Wa(Qe), o && V(Te) && b) {
|
|
2058
|
+
if (!Xr && Fe)
|
|
2050
2059
|
throw new Error("Fallback data is required when using Suspense in SSR.");
|
|
2051
2060
|
$.current = t, B.current = r, I.current = !1;
|
|
2052
2061
|
const P = v[b];
|
|
2053
|
-
if (!
|
|
2062
|
+
if (!V(P)) {
|
|
2054
2063
|
const z = Lr(P);
|
|
2055
|
-
|
|
2064
|
+
Vt(z);
|
|
2056
2065
|
}
|
|
2057
|
-
if (
|
|
2058
|
-
const z = Me(
|
|
2059
|
-
|
|
2066
|
+
if (V(Xe)) {
|
|
2067
|
+
const z = Me(Dt);
|
|
2068
|
+
V(Qe) || (z.status = "fulfilled", z.value = !0), Vt(z);
|
|
2060
2069
|
} else
|
|
2061
|
-
throw
|
|
2070
|
+
throw Xe;
|
|
2062
2071
|
}
|
|
2063
2072
|
return {
|
|
2064
2073
|
mutate: Lr,
|
|
@@ -2066,7 +2075,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2066
2075
|
return O.data = !0, Qe;
|
|
2067
2076
|
},
|
|
2068
2077
|
get error() {
|
|
2069
|
-
return O.error = !0,
|
|
2078
|
+
return O.error = !0, Xe;
|
|
2070
2079
|
},
|
|
2071
2080
|
get isValidating() {
|
|
2072
2081
|
return O.isValidating = !0, wa;
|
|
@@ -2075,7 +2084,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2075
2084
|
return O.isLoading = !0, xa;
|
|
2076
2085
|
}
|
|
2077
2086
|
};
|
|
2078
|
-
},
|
|
2087
|
+
}, Vi = Ai(Mi), pe = {
|
|
2079
2088
|
GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
|
|
2080
2089
|
location(latitude: $latitude, longitude: $longitude) {
|
|
2081
2090
|
country
|
|
@@ -2099,6 +2108,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2099
2108
|
timestamp
|
|
2100
2109
|
id
|
|
2101
2110
|
model
|
|
2111
|
+
summary
|
|
2102
2112
|
messages {
|
|
2103
2113
|
content
|
|
2104
2114
|
}
|
|
@@ -2114,6 +2124,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2114
2124
|
chatById(id: $id) {
|
|
2115
2125
|
model
|
|
2116
2126
|
usage
|
|
2127
|
+
summary
|
|
2117
2128
|
messages {
|
|
2118
2129
|
content
|
|
2119
2130
|
role
|
|
@@ -2200,7 +2211,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2200
2211
|
schema: pe.SET_USER_PREFERENCES,
|
|
2201
2212
|
method: "setUserPreferences"
|
|
2202
2213
|
}
|
|
2203
|
-
}, qn = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
2214
|
+
}, qn = process.env.PUBLIC_SASSY_API_SERVER_URL, Di = async ({
|
|
2204
2215
|
query: e,
|
|
2205
2216
|
data: t,
|
|
2206
2217
|
headers: r = {}
|
|
@@ -2223,7 +2234,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2223
2234
|
}) => {
|
|
2224
2235
|
const n = t != null && t.data ? t.data(r) : r;
|
|
2225
2236
|
try {
|
|
2226
|
-
const a = `Bearer ${e}`, o = await
|
|
2237
|
+
const a = `Bearer ${e}`, o = await Di({
|
|
2227
2238
|
headers: {
|
|
2228
2239
|
authorization: a
|
|
2229
2240
|
},
|
|
@@ -2264,7 +2275,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2264
2275
|
swrOptions: n,
|
|
2265
2276
|
getAccessToken: a
|
|
2266
2277
|
}) => {
|
|
2267
|
-
const { data: o, error: i, isLoading: s, mutate: c } =
|
|
2278
|
+
const { data: o, error: i, isLoading: s, mutate: c } = Vi(
|
|
2268
2279
|
[t, ...r],
|
|
2269
2280
|
(u) => e(u, a),
|
|
2270
2281
|
{ ...n }
|
|
@@ -2423,7 +2434,7 @@ function xe(e) {
|
|
|
2423
2434
|
function Ye(e) {
|
|
2424
2435
|
return e.split("-")[1];
|
|
2425
2436
|
}
|
|
2426
|
-
function
|
|
2437
|
+
function Zn(e) {
|
|
2427
2438
|
return e === "x" ? "y" : "x";
|
|
2428
2439
|
}
|
|
2429
2440
|
function br(e) {
|
|
@@ -2433,15 +2444,15 @@ function Le(e) {
|
|
|
2433
2444
|
return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
|
|
2434
2445
|
}
|
|
2435
2446
|
function vr(e) {
|
|
2436
|
-
return
|
|
2447
|
+
return Zn(Le(e));
|
|
2437
2448
|
}
|
|
2438
|
-
function
|
|
2449
|
+
function Zi(e, t, r) {
|
|
2439
2450
|
r === void 0 && (r = !1);
|
|
2440
2451
|
const n = Ye(e), a = vr(e), o = br(a);
|
|
2441
2452
|
let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
2442
2453
|
return t.reference[o] > t.floating[o] && (i = st(i)), [i, st(i)];
|
|
2443
2454
|
}
|
|
2444
|
-
function
|
|
2455
|
+
function Xi(e) {
|
|
2445
2456
|
const t = st(e);
|
|
2446
2457
|
return [nr(e), t, nr(t)];
|
|
2447
2458
|
}
|
|
@@ -2478,7 +2489,7 @@ function ts(e) {
|
|
|
2478
2489
|
...e
|
|
2479
2490
|
};
|
|
2480
2491
|
}
|
|
2481
|
-
function
|
|
2492
|
+
function Xn(e) {
|
|
2482
2493
|
return typeof e != "number" ? ts(e) : {
|
|
2483
2494
|
top: e,
|
|
2484
2495
|
right: e,
|
|
@@ -2572,8 +2583,8 @@ const rs = async (e, t, r) => {
|
|
|
2572
2583
|
name: v,
|
|
2573
2584
|
fn: b
|
|
2574
2585
|
} = s[p], {
|
|
2575
|
-
x
|
|
2576
|
-
y:
|
|
2586
|
+
x,
|
|
2587
|
+
y: k,
|
|
2577
2588
|
data: I,
|
|
2578
2589
|
reset: _
|
|
2579
2590
|
} = await b({
|
|
@@ -2590,7 +2601,7 @@ const rs = async (e, t, r) => {
|
|
|
2590
2601
|
floating: t
|
|
2591
2602
|
}
|
|
2592
2603
|
});
|
|
2593
|
-
h =
|
|
2604
|
+
h = x ?? h, d = k ?? d, g = {
|
|
2594
2605
|
...g,
|
|
2595
2606
|
[v]: {
|
|
2596
2607
|
...g[v],
|
|
@@ -2629,7 +2640,7 @@ async function Qn(e, t) {
|
|
|
2629
2640
|
elementContext: d = "floating",
|
|
2630
2641
|
altBoundary: m = !1,
|
|
2631
2642
|
padding: g = 0
|
|
2632
|
-
} = Ke(t, e), y =
|
|
2643
|
+
} = Ke(t, e), y = Xn(g), p = s[m ? d === "floating" ? "reference" : "floating" : d], v = ct(await o.getClippingRect({
|
|
2633
2644
|
element: (r = await (o.isElement == null ? void 0 : o.isElement(p))) == null || r ? p : p.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
|
|
2634
2645
|
boundary: u,
|
|
2635
2646
|
rootBoundary: h,
|
|
@@ -2639,7 +2650,7 @@ async function Qn(e, t) {
|
|
|
2639
2650
|
y: a,
|
|
2640
2651
|
width: i.floating.width,
|
|
2641
2652
|
height: i.floating.height
|
|
2642
|
-
} : i.reference,
|
|
2653
|
+
} : i.reference, x = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), k = await (o.isElement == null ? void 0 : o.isElement(x)) ? await (o.getScale == null ? void 0 : o.getScale(x)) || {
|
|
2643
2654
|
x: 1,
|
|
2644
2655
|
y: 1
|
|
2645
2656
|
} : {
|
|
@@ -2648,14 +2659,14 @@ async function Qn(e, t) {
|
|
|
2648
2659
|
}, I = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2649
2660
|
elements: s,
|
|
2650
2661
|
rect: b,
|
|
2651
|
-
offsetParent:
|
|
2662
|
+
offsetParent: x,
|
|
2652
2663
|
strategy: c
|
|
2653
2664
|
}) : b);
|
|
2654
2665
|
return {
|
|
2655
|
-
top: (v.top - I.top + y.top) /
|
|
2656
|
-
bottom: (I.bottom - v.bottom + y.bottom) /
|
|
2657
|
-
left: (v.left - I.left + y.left) /
|
|
2658
|
-
right: (I.right - v.right + y.right) /
|
|
2666
|
+
top: (v.top - I.top + y.top) / k.y,
|
|
2667
|
+
bottom: (I.bottom - v.bottom + y.bottom) / k.y,
|
|
2668
|
+
left: (v.left - I.left + y.left) / k.x,
|
|
2669
|
+
right: (I.right - v.right + y.right) / k.x
|
|
2659
2670
|
};
|
|
2660
2671
|
}
|
|
2661
2672
|
const ns = (e) => ({
|
|
@@ -2676,23 +2687,23 @@ const ns = (e) => ({
|
|
|
2676
2687
|
} = Ke(e, t) || {};
|
|
2677
2688
|
if (u == null)
|
|
2678
2689
|
return {};
|
|
2679
|
-
const d =
|
|
2690
|
+
const d = Xn(h), m = {
|
|
2680
2691
|
x: r,
|
|
2681
2692
|
y: n
|
|
2682
|
-
}, g = vr(a), y = br(g), p = await i.getDimensions(u), v = g === "y", b = v ? "top" : "left",
|
|
2683
|
-
let B = $ ? $[
|
|
2684
|
-
(!B || !await (i.isElement == null ? void 0 : i.isElement($))) && (B = s.floating[
|
|
2685
|
-
const E = I / 2 - _ / 2,
|
|
2693
|
+
}, g = vr(a), y = br(g), p = await i.getDimensions(u), v = g === "y", b = v ? "top" : "left", x = v ? "bottom" : "right", k = v ? "clientHeight" : "clientWidth", I = o.reference[y] + o.reference[g] - m[g] - o.floating[y], _ = m[g] - o.reference[g], $ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
2694
|
+
let B = $ ? $[k] : 0;
|
|
2695
|
+
(!B || !await (i.isElement == null ? void 0 : i.isElement($))) && (B = s.floating[k] || o.floating[y]);
|
|
2696
|
+
const E = I / 2 - _ / 2, w = B / 2 - p[y] / 2 - 1, R = He(d[b], w), S = He(d[x], w), A = R, C = B - p[y] - S, O = B / 2 - p[y] / 2 + E, D = rr(A, O, C), N = !c.arrow && Ye(a) != null && O !== D && o.reference[y] / 2 - (O < A ? R : S) - p[y] / 2 < 0, U = N ? O < A ? O - A : O - C : 0;
|
|
2686
2697
|
return {
|
|
2687
2698
|
[g]: m[g] + U,
|
|
2688
2699
|
data: {
|
|
2689
|
-
[g]:
|
|
2690
|
-
centerOffset: O -
|
|
2691
|
-
...
|
|
2700
|
+
[g]: D,
|
|
2701
|
+
centerOffset: O - D - U,
|
|
2702
|
+
...N && {
|
|
2692
2703
|
alignmentOffset: U
|
|
2693
2704
|
}
|
|
2694
2705
|
},
|
|
2695
|
-
reset:
|
|
2706
|
+
reset: N
|
|
2696
2707
|
};
|
|
2697
2708
|
}
|
|
2698
2709
|
}), as = function(e) {
|
|
@@ -2719,55 +2730,55 @@ const ns = (e) => ({
|
|
|
2719
2730
|
} = Ke(e, t);
|
|
2720
2731
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2721
2732
|
return {};
|
|
2722
|
-
const b = xe(a),
|
|
2733
|
+
const b = xe(a), x = Le(s), k = xe(s) === s, I = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), _ = m || (k || !p ? [st(s)] : Xi(s)), $ = y !== "none";
|
|
2723
2734
|
!m && $ && _.push(...es(s, p, y, I));
|
|
2724
|
-
const B = [s, ..._], E = await Qn(t, v),
|
|
2735
|
+
const B = [s, ..._], E = await Qn(t, v), w = [];
|
|
2725
2736
|
let R = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
2726
|
-
if (h &&
|
|
2727
|
-
const O =
|
|
2728
|
-
|
|
2737
|
+
if (h && w.push(E[b]), d) {
|
|
2738
|
+
const O = Zi(a, i, I);
|
|
2739
|
+
w.push(E[O[0]], E[O[1]]);
|
|
2729
2740
|
}
|
|
2730
2741
|
if (R = [...R, {
|
|
2731
2742
|
placement: a,
|
|
2732
|
-
overflows:
|
|
2733
|
-
}], !
|
|
2734
|
-
var
|
|
2735
|
-
const O = (((
|
|
2736
|
-
if (
|
|
2743
|
+
overflows: w
|
|
2744
|
+
}], !w.every((O) => O <= 0)) {
|
|
2745
|
+
var S, A;
|
|
2746
|
+
const O = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, D = B[O];
|
|
2747
|
+
if (D)
|
|
2737
2748
|
return {
|
|
2738
2749
|
data: {
|
|
2739
2750
|
index: O,
|
|
2740
2751
|
overflows: R
|
|
2741
2752
|
},
|
|
2742
2753
|
reset: {
|
|
2743
|
-
placement:
|
|
2754
|
+
placement: D
|
|
2744
2755
|
}
|
|
2745
2756
|
};
|
|
2746
|
-
let
|
|
2747
|
-
if (!
|
|
2757
|
+
let N = (A = R.filter((U) => U.overflows[0] <= 0).sort((U, G) => U.overflows[1] - G.overflows[1])[0]) == null ? void 0 : A.placement;
|
|
2758
|
+
if (!N)
|
|
2748
2759
|
switch (g) {
|
|
2749
2760
|
case "bestFit": {
|
|
2750
2761
|
var C;
|
|
2751
2762
|
const U = (C = R.filter((G) => {
|
|
2752
2763
|
if ($) {
|
|
2753
2764
|
const q = Le(G.placement);
|
|
2754
|
-
return q ===
|
|
2765
|
+
return q === x || // Create a bias to the `y` side axis due to horizontal
|
|
2755
2766
|
// reading directions favoring greater width.
|
|
2756
2767
|
q === "y";
|
|
2757
2768
|
}
|
|
2758
2769
|
return !0;
|
|
2759
2770
|
}).map((G) => [G.placement, G.overflows.filter((q) => q > 0).reduce((q, Et) => q + Et, 0)]).sort((G, q) => G[1] - q[1])[0]) == null ? void 0 : C[0];
|
|
2760
|
-
U && (
|
|
2771
|
+
U && (N = U);
|
|
2761
2772
|
break;
|
|
2762
2773
|
}
|
|
2763
2774
|
case "initialPlacement":
|
|
2764
|
-
|
|
2775
|
+
N = s;
|
|
2765
2776
|
break;
|
|
2766
2777
|
}
|
|
2767
|
-
if (a !==
|
|
2778
|
+
if (a !== N)
|
|
2768
2779
|
return {
|
|
2769
2780
|
reset: {
|
|
2770
|
-
placement:
|
|
2781
|
+
placement: N
|
|
2771
2782
|
}
|
|
2772
2783
|
};
|
|
2773
2784
|
}
|
|
@@ -2840,11 +2851,11 @@ const is = function(e) {
|
|
|
2840
2851
|
fn: (v) => {
|
|
2841
2852
|
let {
|
|
2842
2853
|
x: b,
|
|
2843
|
-
y:
|
|
2854
|
+
y: x
|
|
2844
2855
|
} = v;
|
|
2845
2856
|
return {
|
|
2846
2857
|
x: b,
|
|
2847
|
-
y:
|
|
2858
|
+
y: x
|
|
2848
2859
|
};
|
|
2849
2860
|
}
|
|
2850
2861
|
},
|
|
@@ -2852,15 +2863,15 @@ const is = function(e) {
|
|
|
2852
2863
|
} = Ke(e, t), u = {
|
|
2853
2864
|
x: r,
|
|
2854
2865
|
y: n
|
|
2855
|
-
}, h = await Qn(t, c), d = Le(xe(a)), m =
|
|
2866
|
+
}, h = await Qn(t, c), d = Le(xe(a)), m = Zn(d);
|
|
2856
2867
|
let g = u[m], y = u[d];
|
|
2857
2868
|
if (o) {
|
|
2858
|
-
const v = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right",
|
|
2859
|
-
g = rr(
|
|
2869
|
+
const v = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", x = g + h[v], k = g - h[b];
|
|
2870
|
+
g = rr(x, g, k);
|
|
2860
2871
|
}
|
|
2861
2872
|
if (i) {
|
|
2862
|
-
const v = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right",
|
|
2863
|
-
y = rr(
|
|
2873
|
+
const v = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = y + h[v], k = y - h[b];
|
|
2874
|
+
y = rr(x, y, k);
|
|
2864
2875
|
}
|
|
2865
2876
|
const p = s.fn({
|
|
2866
2877
|
...t,
|
|
@@ -3036,8 +3047,8 @@ function We(e, t, r, n) {
|
|
|
3036
3047
|
const m = te(o), g = n && ne(n) ? te(n) : n;
|
|
3037
3048
|
let y = m, p = nn(y);
|
|
3038
3049
|
for (; p && n && g !== y; ) {
|
|
3039
|
-
const v = Ie(p), b = p.getBoundingClientRect(),
|
|
3040
|
-
c *= v.x, u *= v.y, h *= v.x, d *= v.y, c +=
|
|
3050
|
+
const v = Ie(p), b = p.getBoundingClientRect(), x = ae(p), k = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, I = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
3051
|
+
c *= v.x, u *= v.y, h *= v.x, d *= v.y, c += k, u += I, y = te(p), p = nn(y);
|
|
3041
3052
|
}
|
|
3042
3053
|
}
|
|
3043
3054
|
return ct({
|
|
@@ -3266,7 +3277,7 @@ const _s = {
|
|
|
3266
3277
|
getScale: Ie,
|
|
3267
3278
|
isElement: ne,
|
|
3268
3279
|
isRTL: xs
|
|
3269
|
-
}, Es = is, Ts = ss,
|
|
3280
|
+
}, Es = is, Ts = ss, Ss = as, Ns = ns, Cs = (e, t, r) => {
|
|
3270
3281
|
const n = /* @__PURE__ */ new Map(), a = {
|
|
3271
3282
|
platform: _s,
|
|
3272
3283
|
...r
|
|
@@ -3301,9 +3312,9 @@ function Rs(e, t, r) {
|
|
|
3301
3312
|
}, [e, r, t]), n;
|
|
3302
3313
|
}
|
|
3303
3314
|
function Is(e, t) {
|
|
3304
|
-
const [r, n] = W(!1), a = T(null), o = T(null), i =
|
|
3315
|
+
const [r, n] = W(!1), a = T(null), o = T(null), i = X(() => {
|
|
3305
3316
|
n((c) => (!c && (!a.current || a.current === -1) && (a.current = window.setInterval(o.current, t)), !0));
|
|
3306
|
-
}, [t]), s =
|
|
3317
|
+
}, [t]), s = X(() => {
|
|
3307
3318
|
n(!1), window.clearInterval(a.current || -1), a.current = -1;
|
|
3308
3319
|
}, []);
|
|
3309
3320
|
return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
|
|
@@ -3343,7 +3354,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3343
3354
|
return { tooltip: o, arrow: i, wrapper: a };
|
|
3344
3355
|
}, Bs = ({ delay: e = 300 }) => ({
|
|
3345
3356
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
|
3346
|
-
}), Ms = 5e3,
|
|
3357
|
+
}), Ms = 5e3, Ze = ({
|
|
3347
3358
|
trigger: e,
|
|
3348
3359
|
label: t,
|
|
3349
3360
|
placement: r = "top",
|
|
@@ -3362,29 +3373,29 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3362
3373
|
className: o,
|
|
3363
3374
|
tooltipClassName: i,
|
|
3364
3375
|
arrowClassName: s
|
|
3365
|
-
}), b = Bs({ delay: a }),
|
|
3366
|
-
var $, B, E,
|
|
3376
|
+
}), b = Bs({ delay: a }), x = X(async () => {
|
|
3377
|
+
var $, B, E, w;
|
|
3367
3378
|
if (c.current && u.current && h.current) {
|
|
3368
3379
|
const {
|
|
3369
3380
|
x: R,
|
|
3370
|
-
y:
|
|
3381
|
+
y: S,
|
|
3371
3382
|
middlewareData: A,
|
|
3372
3383
|
placement: C
|
|
3373
3384
|
} = await Cs(c.current, u.current, {
|
|
3374
3385
|
placement: r,
|
|
3375
3386
|
middleware: [
|
|
3376
3387
|
Es(10),
|
|
3377
|
-
|
|
3388
|
+
Ss({
|
|
3378
3389
|
crossAxis: r.includes("-"),
|
|
3379
3390
|
fallbackAxisSideDirection: "start"
|
|
3380
3391
|
}),
|
|
3381
3392
|
Ts({ padding: 5 }),
|
|
3382
|
-
|
|
3393
|
+
Ns({ element: h.current })
|
|
3383
3394
|
]
|
|
3384
3395
|
});
|
|
3385
3396
|
($ = u == null ? void 0 : u.current) != null && $.style && Object.assign(u.current.style, {
|
|
3386
3397
|
left: nt(R),
|
|
3387
|
-
top: nt(
|
|
3398
|
+
top: nt(S),
|
|
3388
3399
|
...b
|
|
3389
3400
|
});
|
|
3390
3401
|
const O = {
|
|
@@ -3395,7 +3406,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3395
3406
|
}[C.split("-")[0]];
|
|
3396
3407
|
(B = h == null ? void 0 : h.current) != null && B.style && Object.assign(h.current.style, {
|
|
3397
3408
|
left: nt((E = A.arrow) == null ? void 0 : E.x),
|
|
3398
|
-
top: nt((
|
|
3409
|
+
top: nt((w = A.arrow) == null ? void 0 : w.y),
|
|
3399
3410
|
right: "",
|
|
3400
3411
|
bottom: "",
|
|
3401
3412
|
[O]: "-4px"
|
|
@@ -3403,9 +3414,9 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3403
3414
|
}
|
|
3404
3415
|
}, [r, b, c]);
|
|
3405
3416
|
M(() => {
|
|
3406
|
-
(async () => d && await
|
|
3407
|
-
}, [
|
|
3408
|
-
const
|
|
3417
|
+
(async () => d && await x())();
|
|
3418
|
+
}, [x, d]);
|
|
3419
|
+
const k = () => {
|
|
3409
3420
|
m(!1), y(!0), p.start();
|
|
3410
3421
|
}, I = () => {
|
|
3411
3422
|
g || m(!0);
|
|
@@ -3419,7 +3430,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3419
3430
|
ref: c,
|
|
3420
3431
|
onMouseEnter: I,
|
|
3421
3432
|
onMouseLeave: _,
|
|
3422
|
-
onClick:
|
|
3433
|
+
onClick: k,
|
|
3423
3434
|
children: [
|
|
3424
3435
|
e,
|
|
3425
3436
|
d && /* @__PURE__ */ L(
|
|
@@ -3437,7 +3448,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3437
3448
|
]
|
|
3438
3449
|
}
|
|
3439
3450
|
);
|
|
3440
|
-
},
|
|
3451
|
+
}, Vs = ({
|
|
3441
3452
|
className: e
|
|
3442
3453
|
}) => {
|
|
3443
3454
|
const { state: t, dispatch: r } = j(ue), n = T(null), a = T(!1), o = (i) => {
|
|
@@ -3452,7 +3463,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3452
3463
|
var i;
|
|
3453
3464
|
(t == null ? void 0 : t.streaming) === !0 && !a.current && n.current && (a.current = !0, n.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (a.current = !1, (i = n.current) == null || i.blur());
|
|
3454
3465
|
}, [t]), /* @__PURE__ */ l(
|
|
3455
|
-
|
|
3466
|
+
Ze,
|
|
3456
3467
|
{
|
|
3457
3468
|
label: "New Chat",
|
|
3458
3469
|
mode: "light",
|
|
@@ -3474,45 +3485,52 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3474
3485
|
);
|
|
3475
3486
|
};
|
|
3476
3487
|
/*!
|
|
3477
|
-
@versini/ui-panel v1.3.
|
|
3488
|
+
@versini/ui-panel v1.3.19
|
|
3478
3489
|
© 2025 gizmette.com
|
|
3479
3490
|
*/
|
|
3480
3491
|
try {
|
|
3481
3492
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
3482
|
-
version: "1.3.
|
|
3483
|
-
buildTime: "01/
|
|
3493
|
+
version: "1.3.19",
|
|
3494
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
3484
3495
|
homepage: "https://github.com/aversini/ui-components",
|
|
3485
3496
|
license: "MIT"
|
|
3486
3497
|
});
|
|
3487
3498
|
} catch {
|
|
3488
3499
|
}
|
|
3489
|
-
const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la = "button", ar = "link",
|
|
3500
|
+
const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la = "button", ar = "link", Ds = ({
|
|
3490
3501
|
type: e,
|
|
3491
3502
|
size: t,
|
|
3492
3503
|
labelRight: r,
|
|
3493
3504
|
labelLeft: n,
|
|
3494
|
-
align: a
|
|
3505
|
+
align: a,
|
|
3506
|
+
animated: o
|
|
3495
3507
|
}) => {
|
|
3496
|
-
const
|
|
3508
|
+
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";
|
|
3497
3509
|
switch (e) {
|
|
3498
3510
|
case la:
|
|
3499
3511
|
case ar:
|
|
3500
3512
|
return f({
|
|
3501
|
-
[
|
|
3502
|
-
[
|
|
3503
|
-
[
|
|
3513
|
+
[i]: t === "small",
|
|
3514
|
+
[s]: t === "medium",
|
|
3515
|
+
[c]: t === "large"
|
|
3504
3516
|
});
|
|
3505
3517
|
case kt:
|
|
3506
3518
|
return f("inline-flex items-center", {
|
|
3507
3519
|
"justify-center": a === "center",
|
|
3508
3520
|
"justify-start": a === "left",
|
|
3509
3521
|
"justify-end": a === "right",
|
|
3510
|
-
"h-6
|
|
3511
|
-
"h-6": t === "small" && (r || n),
|
|
3512
|
-
"h-8
|
|
3513
|
-
"h-8": t === "medium" && (r || n),
|
|
3514
|
-
"h-12
|
|
3515
|
-
"h-12": t === "large" && (r || n)
|
|
3522
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
3523
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
3524
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
3525
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
3526
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
3527
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
3528
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
3529
|
+
"h-6": t === "small" && o && (r || n),
|
|
3530
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
3531
|
+
"h-8": t === "medium" && o && (r || n),
|
|
3532
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
3533
|
+
"h-12": t === "large" && o && (r || n)
|
|
3516
3534
|
});
|
|
3517
3535
|
}
|
|
3518
3536
|
}, Ps = ({
|
|
@@ -3751,12 +3769,13 @@ const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la =
|
|
|
3751
3769
|
}),
|
|
3752
3770
|
Us({ mode: n, noBackground: d, variant: m }),
|
|
3753
3771
|
Fs({ radius: p }),
|
|
3754
|
-
|
|
3772
|
+
Ds({
|
|
3755
3773
|
type: e,
|
|
3756
3774
|
size: s,
|
|
3757
3775
|
labelRight: u,
|
|
3758
3776
|
labelLeft: h,
|
|
3759
|
-
align: y
|
|
3777
|
+
align: y,
|
|
3778
|
+
animated: v
|
|
3760
3779
|
}),
|
|
3761
3780
|
Ps({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
3762
3781
|
js({ mode: n, variant: m, noBorder: c }),
|
|
@@ -3788,13 +3807,13 @@ const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la =
|
|
|
3788
3807
|
);
|
|
3789
3808
|
});
|
|
3790
3809
|
da.displayName = "BaseButton";
|
|
3791
|
-
function
|
|
3810
|
+
function Zs() {
|
|
3792
3811
|
const e = T(!1);
|
|
3793
3812
|
return M(() => (e.current = !0, () => {
|
|
3794
3813
|
e.current = !1;
|
|
3795
|
-
}), []),
|
|
3814
|
+
}), []), X(() => e.current, []);
|
|
3796
3815
|
}
|
|
3797
|
-
function
|
|
3816
|
+
function Xs(e) {
|
|
3798
3817
|
return de(() => e.every((t) => t == null) ? () => {
|
|
3799
3818
|
} : (t) => {
|
|
3800
3819
|
e.forEach((r) => {
|
|
@@ -3813,7 +3832,7 @@ const Qs = {
|
|
|
3813
3832
|
right: 0
|
|
3814
3833
|
};
|
|
3815
3834
|
function zt(e) {
|
|
3816
|
-
const t =
|
|
3835
|
+
const t = Zs(), r = T(0), n = T(null), [a, o] = W(Qs), i = de(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
3817
3836
|
const c = s[0];
|
|
3818
3837
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3819
3838
|
n.current && t() && o(c.contentRect);
|
|
@@ -3857,8 +3876,8 @@ const ec = {
|
|
|
3857
3876
|
align: p = "center",
|
|
3858
3877
|
radius: v = "large",
|
|
3859
3878
|
variant: b = "primary",
|
|
3860
|
-
iconClassName:
|
|
3861
|
-
animated:
|
|
3879
|
+
iconClassName: x,
|
|
3880
|
+
animated: k = !1,
|
|
3862
3881
|
...I
|
|
3863
3882
|
}, _) => {
|
|
3864
3883
|
const $ = Ys({
|
|
@@ -3877,20 +3896,21 @@ const ec = {
|
|
|
3877
3896
|
align: p,
|
|
3878
3897
|
radius: v,
|
|
3879
3898
|
variant: b,
|
|
3880
|
-
animated:
|
|
3881
|
-
}), B = qs({ mode: r, raw: s, iconClassName:
|
|
3899
|
+
animated: k
|
|
3900
|
+
}), B = qs({ mode: r, raw: s, iconClassName: x }), E = Ks({ animated: k }), [w, R] = zt(), [S, A] = zt(), [C, O] = zt(), D = T(0), N = T(null), U = Xs([_, N]);
|
|
3882
3901
|
return ge(() => {
|
|
3883
|
-
C && C.current && (
|
|
3884
|
-
}, [O, C, d, c]), ge(() => {
|
|
3885
|
-
|
|
3902
|
+
C && C.current && k && (D.current = O.width + tc[d] + (c ? 0 : rc));
|
|
3903
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
3904
|
+
N && N.current && k && (m && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), N.current.style.width = `${R.width + D.current}px`) : g && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), N.current.style.width = `${A.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), N.current.style.width = `${ec[d]}px`));
|
|
3886
3905
|
}, [
|
|
3887
3906
|
R,
|
|
3888
3907
|
m,
|
|
3889
|
-
|
|
3908
|
+
w,
|
|
3890
3909
|
A,
|
|
3891
3910
|
g,
|
|
3892
|
-
|
|
3893
|
-
d
|
|
3911
|
+
S,
|
|
3912
|
+
d,
|
|
3913
|
+
k
|
|
3894
3914
|
]), /* @__PURE__ */ L(
|
|
3895
3915
|
da,
|
|
3896
3916
|
{
|
|
@@ -3901,9 +3921,9 @@ const ec = {
|
|
|
3901
3921
|
"aria-label": u || h,
|
|
3902
3922
|
...I,
|
|
3903
3923
|
children: [
|
|
3904
|
-
/* @__PURE__ */ l("span", { ref:
|
|
3924
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
3905
3925
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
3906
|
-
/* @__PURE__ */ l("span", { ref:
|
|
3926
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
3907
3927
|
]
|
|
3908
3928
|
}
|
|
3909
3929
|
);
|
|
@@ -3911,13 +3931,13 @@ const ec = {
|
|
|
3911
3931
|
);
|
|
3912
3932
|
_r.displayName = "ButtonIcon";
|
|
3913
3933
|
/*!
|
|
3914
|
-
@versini/ui-button v4.2.
|
|
3934
|
+
@versini/ui-button v4.2.2
|
|
3915
3935
|
© 2025 gizmette.com
|
|
3916
3936
|
*/
|
|
3917
3937
|
try {
|
|
3918
3938
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3919
|
-
version: "4.2.
|
|
3920
|
-
buildTime: "01/
|
|
3939
|
+
version: "4.2.2",
|
|
3940
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
3921
3941
|
homepage: "https://github.com/aversini/ui-components",
|
|
3922
3942
|
license: "MIT"
|
|
3923
3943
|
});
|
|
@@ -4048,10 +4068,10 @@ function ic({
|
|
|
4048
4068
|
open: t,
|
|
4049
4069
|
onOpenChange: r
|
|
4050
4070
|
} = {}) {
|
|
4051
|
-
const [n, a] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), u = t ?? n, h = r ?? a, d =
|
|
4071
|
+
const [n, a] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), u = t ?? n, h = r ?? a, d = Sn({
|
|
4052
4072
|
open: u,
|
|
4053
4073
|
onOpenChange: h
|
|
4054
|
-
}), m = d.context, g =
|
|
4074
|
+
}), m = d.context, g = Nn(m, {
|
|
4055
4075
|
enabled: t == null
|
|
4056
4076
|
}), y = Cn(m, {
|
|
4057
4077
|
outsidePress: !1,
|
|
@@ -4123,7 +4143,7 @@ const cc = J.forwardRef(function(e, t) {
|
|
|
4123
4143
|
try {
|
|
4124
4144
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
4125
4145
|
version: "1.2.9",
|
|
4126
|
-
buildTime: "01/
|
|
4146
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
4127
4147
|
homepage: "https://github.com/aversini/ui-components",
|
|
4128
4148
|
license: "MIT"
|
|
4129
4149
|
});
|
|
@@ -4198,7 +4218,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4198
4218
|
open: e,
|
|
4199
4219
|
onOpenChange: t,
|
|
4200
4220
|
title: a.title,
|
|
4201
|
-
footer: /* @__PURE__ */ L(
|
|
4221
|
+
footer: /* @__PURE__ */ L(Na, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
4202
4222
|
/* @__PURE__ */ l(Br, { children: /* @__PURE__ */ l(
|
|
4203
4223
|
Mr,
|
|
4204
4224
|
{
|
|
@@ -4261,7 +4281,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4261
4281
|
}
|
|
4262
4282
|
),
|
|
4263
4283
|
/* @__PURE__ */ l(
|
|
4264
|
-
|
|
4284
|
+
Ze,
|
|
4265
4285
|
{
|
|
4266
4286
|
label: "Temporary Chat",
|
|
4267
4287
|
mode: "light",
|
|
@@ -4316,8 +4336,8 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4316
4336
|
focusMode: i = "system",
|
|
4317
4337
|
...s
|
|
4318
4338
|
}, c) => {
|
|
4319
|
-
const [u, h] = W(!1), [d, m] = W(!1), [g, y] = W(null), p = T([]), v = T([]), b = j(or),
|
|
4320
|
-
nodeId:
|
|
4339
|
+
const [u, h] = W(!1), [d, m] = W(!1), [g, y] = W(null), p = T([]), v = T([]), b = j(or), x = Ln(), k = Ga(), I = $n(), { floatingStyles: _, refs: $, context: B } = Sn({
|
|
4340
|
+
nodeId: k,
|
|
4321
4341
|
open: u,
|
|
4322
4342
|
onOpenChange: (q) => {
|
|
4323
4343
|
h(q), a == null || a(q);
|
|
@@ -4326,22 +4346,22 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4326
4346
|
strategy: "fixed",
|
|
4327
4347
|
middleware: [qa({ mainAxis: 10 }), Ka(), Ya()],
|
|
4328
4348
|
whileElementsMounted: Ja
|
|
4329
|
-
}), E =
|
|
4349
|
+
}), E = Nn(B, {
|
|
4330
4350
|
event: "mousedown",
|
|
4331
4351
|
toggle: !0,
|
|
4332
4352
|
ignoreMouse: !1
|
|
4333
|
-
}),
|
|
4353
|
+
}), w = Rn(B, { role: "menu" }), R = Cn(B, { bubbles: !0 }), S = Za(B, {
|
|
4334
4354
|
listRef: p,
|
|
4335
4355
|
activeIndex: g,
|
|
4336
4356
|
nested: !1,
|
|
4337
4357
|
onNavigate: y,
|
|
4338
4358
|
loop: !0
|
|
4339
|
-
}), A =
|
|
4359
|
+
}), A = Xa(B, {
|
|
4340
4360
|
listRef: v,
|
|
4341
4361
|
onMatch: u ? y : void 0,
|
|
4342
4362
|
activeIndex: g
|
|
4343
|
-
}), { getReferenceProps: C, getFloatingProps: O, getItemProps:
|
|
4344
|
-
noInternalClick:
|
|
4363
|
+
}), { getReferenceProps: C, getFloatingProps: O, getItemProps: D } = In([E, w, R, S, A]), N = mn(e) === "Button" || mn(e) === "ButtonIcon", U = N ? {
|
|
4364
|
+
noInternalClick: N,
|
|
4345
4365
|
focusMode: i,
|
|
4346
4366
|
mode: o
|
|
4347
4367
|
} : {}, G = F.cloneElement(
|
|
@@ -4360,17 +4380,17 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4360
4380
|
}
|
|
4361
4381
|
);
|
|
4362
4382
|
return M(() => {
|
|
4363
|
-
if (!
|
|
4383
|
+
if (!x)
|
|
4364
4384
|
return;
|
|
4365
4385
|
function q() {
|
|
4366
4386
|
h(!1), a == null || a(!1);
|
|
4367
4387
|
}
|
|
4368
|
-
return
|
|
4369
|
-
|
|
4388
|
+
return x.events.on("click", q), () => {
|
|
4389
|
+
x.events.off("click", q);
|
|
4370
4390
|
};
|
|
4371
|
-
}, [
|
|
4372
|
-
u &&
|
|
4373
|
-
}, [
|
|
4391
|
+
}, [x, a]), M(() => {
|
|
4392
|
+
u && x && x.events.emit("menuopen", { nodeId: k });
|
|
4393
|
+
}, [x, u, k]), /* @__PURE__ */ L(Qa, { id: k, children: [
|
|
4374
4394
|
G,
|
|
4375
4395
|
/* @__PURE__ */ l(
|
|
4376
4396
|
or.Provider,
|
|
@@ -4378,7 +4398,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4378
4398
|
value: {
|
|
4379
4399
|
activeIndex: g,
|
|
4380
4400
|
setActiveIndex: y,
|
|
4381
|
-
getItemProps:
|
|
4401
|
+
getItemProps: D,
|
|
4382
4402
|
setHasFocusInside: m,
|
|
4383
4403
|
isOpen: u
|
|
4384
4404
|
},
|
|
@@ -4528,7 +4548,7 @@ const pc = (e) => {
|
|
|
4528
4548
|
});
|
|
4529
4549
|
};
|
|
4530
4550
|
return s || c ? null : i && i.tags && pc(i.tags) && /* @__PURE__ */ l(
|
|
4531
|
-
|
|
4551
|
+
Ze,
|
|
4532
4552
|
{
|
|
4533
4553
|
label: "Custom Prompts",
|
|
4534
4554
|
mode: "light",
|
|
@@ -4594,7 +4614,7 @@ const pc = (e) => {
|
|
|
4594
4614
|
}) => {
|
|
4595
4615
|
const { state: t } = j(ue);
|
|
4596
4616
|
return /* @__PURE__ */ l(
|
|
4597
|
-
|
|
4617
|
+
Ze,
|
|
4598
4618
|
{
|
|
4599
4619
|
label: "Send Message",
|
|
4600
4620
|
mode: "light",
|
|
@@ -4645,7 +4665,7 @@ const pc = (e) => {
|
|
|
4645
4665
|
}
|
|
4646
4666
|
};
|
|
4647
4667
|
return i || s ? null : o && /* @__PURE__ */ l(
|
|
4648
|
-
|
|
4668
|
+
Ze,
|
|
4649
4669
|
{
|
|
4650
4670
|
label: "Toggle Engines",
|
|
4651
4671
|
mode: "light",
|
|
@@ -4655,26 +4675,26 @@ const pc = (e) => {
|
|
|
4655
4675
|
{
|
|
4656
4676
|
mode: "dark",
|
|
4657
4677
|
focusMode: "light",
|
|
4658
|
-
trigger: /* @__PURE__ */ l(je, { noBorder: !0, label: "Engines", children: o && o.engine ===
|
|
4678
|
+
trigger: /* @__PURE__ */ l(je, { noBorder: !0, label: "Engines", children: o && o.engine === Nt ? /* @__PURE__ */ l(Ur, { size: be }) : /* @__PURE__ */ l(Fr, { size: be }) }),
|
|
4659
4679
|
defaultPlacement: "top-start",
|
|
4660
4680
|
children: [
|
|
4661
4681
|
/* @__PURE__ */ l(fa, { children: "Engines" }),
|
|
4662
4682
|
/* @__PURE__ */ l(
|
|
4663
4683
|
lt,
|
|
4664
4684
|
{
|
|
4665
|
-
selected: o && o.engine ===
|
|
4685
|
+
selected: o && o.engine === Nt,
|
|
4666
4686
|
label: "Anthropic",
|
|
4667
4687
|
icon: /* @__PURE__ */ l(Ur, {}),
|
|
4668
|
-
onClick: () => u(
|
|
4688
|
+
onClick: () => u(Nt)
|
|
4669
4689
|
}
|
|
4670
4690
|
),
|
|
4671
4691
|
/* @__PURE__ */ l(
|
|
4672
4692
|
lt,
|
|
4673
4693
|
{
|
|
4674
|
-
selected: o && o.engine ===
|
|
4694
|
+
selected: o && o.engine === Vr,
|
|
4675
4695
|
label: "OpenAI",
|
|
4676
4696
|
icon: /* @__PURE__ */ l(Fr, {}),
|
|
4677
|
-
onClick: () => u(
|
|
4697
|
+
onClick: () => u(Vr)
|
|
4678
4698
|
}
|
|
4679
4699
|
)
|
|
4680
4700
|
]
|
|
@@ -4710,7 +4730,7 @@ const pc = (e) => {
|
|
|
4710
4730
|
wrapper: t,
|
|
4711
4731
|
textArea: r
|
|
4712
4732
|
};
|
|
4713
|
-
}, ot = 24,
|
|
4733
|
+
}, ot = 24, Sc = ({
|
|
4714
4734
|
className: e,
|
|
4715
4735
|
label: t,
|
|
4716
4736
|
value: r,
|
|
@@ -4720,33 +4740,33 @@ const pc = (e) => {
|
|
|
4720
4740
|
ref: i,
|
|
4721
4741
|
...s
|
|
4722
4742
|
}) => {
|
|
4723
|
-
const c = T(ot), u = T(1), d = 5 * ot, { state: m } = j(ue), { state: g } = j(pt), y = T(null), p = T(null), v = vo([i, p]), b = wo(), { width:
|
|
4743
|
+
const c = T(ot), u = T(1), d = 5 * ot, { state: m } = j(ue), { state: g } = j(pt), y = T(null), p = T(null), v = vo([i, p]), b = wo(), { width: x } = xo(), k = Tc({
|
|
4724
4744
|
className: e
|
|
4725
4745
|
}), [I, _] = ko({
|
|
4726
4746
|
value: r,
|
|
4727
4747
|
initialControlledDelay: 20,
|
|
4728
4748
|
defaultValue: n,
|
|
4729
|
-
onChange: (
|
|
4749
|
+
onChange: (w) => {
|
|
4730
4750
|
a && a({
|
|
4731
4751
|
target: {
|
|
4732
|
-
value:
|
|
4752
|
+
value: w
|
|
4733
4753
|
}
|
|
4734
4754
|
});
|
|
4735
4755
|
}
|
|
4736
|
-
}), $ =
|
|
4756
|
+
}), $ = X(() => {
|
|
4737
4757
|
if (!p.current)
|
|
4738
4758
|
return;
|
|
4739
4759
|
p.current.style.height = "auto";
|
|
4740
|
-
const
|
|
4741
|
-
if (
|
|
4760
|
+
const w = p.current.scrollHeight;
|
|
4761
|
+
if (w > d) {
|
|
4742
4762
|
p.current.style.height = `${d}px`, p.current.style.overflowY = "scroll";
|
|
4743
4763
|
return;
|
|
4744
4764
|
}
|
|
4745
|
-
p.current.style.height = `${
|
|
4746
|
-
}, [d]), B = (
|
|
4747
|
-
p.current && (p.current.style.height = `${c.current}px`), o(
|
|
4748
|
-
}, E = (
|
|
4749
|
-
_(
|
|
4765
|
+
p.current.style.height = `${w}px`, p.current.style.overflowY = "hidden";
|
|
4766
|
+
}, [d]), B = (w) => {
|
|
4767
|
+
p.current && (p.current.style.height = `${c.current}px`), o(w, I), _("");
|
|
4768
|
+
}, E = (w) => {
|
|
4769
|
+
_(w.target.value), $();
|
|
4750
4770
|
};
|
|
4751
4771
|
return M(() => {
|
|
4752
4772
|
m && m.usage === 0 && m.messages.length === 0 && p.current && (p.current.style.height = `${c.current}px`);
|
|
@@ -4755,11 +4775,11 @@ const pc = (e) => {
|
|
|
4755
4775
|
$();
|
|
4756
4776
|
}, 100);
|
|
4757
4777
|
}, [g.lastTriggeredTimestamp, $]), M(() => {
|
|
4758
|
-
|
|
4759
|
-
}, [
|
|
4778
|
+
x > 640 ? (c.current = ot, u.current = 1) : (c.current = ot * 2, u.current = 2);
|
|
4779
|
+
}, [x]), /* @__PURE__ */ l(
|
|
4760
4780
|
"div",
|
|
4761
4781
|
{
|
|
4762
|
-
className:
|
|
4782
|
+
className: k.wrapper,
|
|
4763
4783
|
ref: y,
|
|
4764
4784
|
...s,
|
|
4765
4785
|
children: /* @__PURE__ */ L("form", { onSubmit: B, children: [
|
|
@@ -4775,13 +4795,13 @@ const pc = (e) => {
|
|
|
4775
4795
|
onChange: E,
|
|
4776
4796
|
value: I,
|
|
4777
4797
|
onKeyDown: fo([["mod+Enter", B]]),
|
|
4778
|
-
className:
|
|
4798
|
+
className: k.textArea,
|
|
4779
4799
|
"aria-labelledby": b
|
|
4780
4800
|
}
|
|
4781
4801
|
) }),
|
|
4782
4802
|
/* @__PURE__ */ L("div", { className: "p-2 flex items-center", children: [
|
|
4783
4803
|
/* @__PURE__ */ l(vc, { className: "order-5 ml-auto" }),
|
|
4784
|
-
/* @__PURE__ */ l(
|
|
4804
|
+
/* @__PURE__ */ l(Vs, { className: "order-1 mr-2" }),
|
|
4785
4805
|
/* @__PURE__ */ l(kc, { className: "order-2 mr-2" }),
|
|
4786
4806
|
/* @__PURE__ */ l(yc, { className: "order-3 mr-2" }),
|
|
4787
4807
|
/* @__PURE__ */ l(hc, { className: "order-4 mr-2" })
|
|
@@ -4806,7 +4826,7 @@ const pc = (e) => {
|
|
|
4806
4826
|
}
|
|
4807
4827
|
}
|
|
4808
4828
|
});
|
|
4809
|
-
},
|
|
4829
|
+
}, Nc = () => {
|
|
4810
4830
|
const { state: e, dispatch: t } = j(ue), { state: r, dispatch: n } = j(pt), [a, o] = W(""), { getAccessToken: i, user: s } = Ge(), c = T(null), u = T(
|
|
4811
4831
|
null
|
|
4812
4832
|
);
|
|
@@ -4860,10 +4880,10 @@ const pc = (e) => {
|
|
|
4860
4880
|
const { done: v, value: b } = await u.current.read();
|
|
4861
4881
|
if (v)
|
|
4862
4882
|
break;
|
|
4863
|
-
const
|
|
4864
|
-
if (
|
|
4865
|
-
const I =
|
|
4866
|
-
|
|
4883
|
+
const x = p.decode(b, { stream: !0 }), k = x.indexOf(Dr);
|
|
4884
|
+
if (k !== -1) {
|
|
4885
|
+
const I = x.substring(0, k), _ = JSON.parse(
|
|
4886
|
+
x.substring(k + Dr.length)
|
|
4867
4887
|
);
|
|
4868
4888
|
t({
|
|
4869
4889
|
type: bn,
|
|
@@ -4889,7 +4909,7 @@ const pc = (e) => {
|
|
|
4889
4909
|
type: ze,
|
|
4890
4910
|
payload: {
|
|
4891
4911
|
message: {
|
|
4892
|
-
content:
|
|
4912
|
+
content: x,
|
|
4893
4913
|
role: Ue,
|
|
4894
4914
|
messageId: y
|
|
4895
4915
|
}
|
|
@@ -4917,7 +4937,7 @@ const pc = (e) => {
|
|
|
4917
4937
|
}, [e]), M(() => {
|
|
4918
4938
|
(e == null ? void 0 : e.streaming) === !1 && c.current && c.current.focus();
|
|
4919
4939
|
}, [e]), /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(
|
|
4920
|
-
|
|
4940
|
+
Sc,
|
|
4921
4941
|
{
|
|
4922
4942
|
label: Oa,
|
|
4923
4943
|
onSubmit: h,
|
|
@@ -4943,20 +4963,20 @@ const pc = (e) => {
|
|
|
4943
4963
|
a
|
|
4944
4964
|
),
|
|
4945
4965
|
children: [
|
|
4946
|
-
/* @__PURE__ */ l(
|
|
4966
|
+
/* @__PURE__ */ l(Nc, {}),
|
|
4947
4967
|
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ba })
|
|
4948
4968
|
]
|
|
4949
4969
|
}
|
|
4950
4970
|
);
|
|
4951
4971
|
};
|
|
4952
4972
|
/*!
|
|
4953
|
-
@versini/ui-bubble v3.2.
|
|
4973
|
+
@versini/ui-bubble v3.2.2
|
|
4954
4974
|
© 2025 gizmette.com
|
|
4955
4975
|
*/
|
|
4956
4976
|
try {
|
|
4957
4977
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
4958
|
-
version: "3.2.
|
|
4959
|
-
buildTime: "01/
|
|
4978
|
+
version: "3.2.2",
|
|
4979
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
4960
4980
|
homepage: "https://github.com/aversini/ui-components",
|
|
4961
4981
|
license: "MIT"
|
|
4962
4982
|
});
|
|
@@ -4967,28 +4987,35 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
4967
4987
|
size: t,
|
|
4968
4988
|
labelRight: r,
|
|
4969
4989
|
labelLeft: n,
|
|
4970
|
-
align: a
|
|
4990
|
+
align: a,
|
|
4991
|
+
animated: o
|
|
4971
4992
|
}) => {
|
|
4972
|
-
const
|
|
4993
|
+
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";
|
|
4973
4994
|
switch (e) {
|
|
4974
4995
|
case ga:
|
|
4975
4996
|
case sr:
|
|
4976
4997
|
return f({
|
|
4977
|
-
[
|
|
4978
|
-
[
|
|
4979
|
-
[
|
|
4998
|
+
[i]: t === "small",
|
|
4999
|
+
[s]: t === "medium",
|
|
5000
|
+
[c]: t === "large"
|
|
4980
5001
|
});
|
|
4981
5002
|
case xt:
|
|
4982
5003
|
return f("inline-flex items-center", {
|
|
4983
5004
|
"justify-center": a === "center",
|
|
4984
5005
|
"justify-start": a === "left",
|
|
4985
5006
|
"justify-end": a === "right",
|
|
4986
|
-
"h-6
|
|
4987
|
-
"h-6": t === "small" && (r || n),
|
|
4988
|
-
"h-8
|
|
4989
|
-
"h-8": t === "medium" && (r || n),
|
|
4990
|
-
"h-12
|
|
4991
|
-
"h-12": t === "large" && (r || n)
|
|
5007
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
5008
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
5009
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
5010
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
5011
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
5012
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
5013
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
5014
|
+
"h-6": t === "small" && o && (r || n),
|
|
5015
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
5016
|
+
"h-8": t === "medium" && o && (r || n),
|
|
5017
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
5018
|
+
"h-12": t === "large" && o && (r || n)
|
|
4992
5019
|
});
|
|
4993
5020
|
}
|
|
4994
5021
|
}, Lc = ({
|
|
@@ -5146,7 +5173,7 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5146
5173
|
});
|
|
5147
5174
|
if (r === "selected")
|
|
5148
5175
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
5149
|
-
},
|
|
5176
|
+
}, Vc = ({
|
|
5150
5177
|
mode: e,
|
|
5151
5178
|
noBorder: t,
|
|
5152
5179
|
variant: r
|
|
@@ -5176,7 +5203,7 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5176
5203
|
});
|
|
5177
5204
|
if (r === "selected")
|
|
5178
5205
|
return "border border-border-selected-dark";
|
|
5179
|
-
},
|
|
5206
|
+
}, Dc = ({
|
|
5180
5207
|
focusMode: e
|
|
5181
5208
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
5182
5209
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -5232,11 +5259,12 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5232
5259
|
size: s,
|
|
5233
5260
|
labelRight: u,
|
|
5234
5261
|
labelLeft: h,
|
|
5235
|
-
align: y
|
|
5262
|
+
align: y,
|
|
5263
|
+
animated: v
|
|
5236
5264
|
}),
|
|
5237
5265
|
Lc({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
5238
|
-
|
|
5239
|
-
|
|
5266
|
+
Vc({ mode: n, variant: m, noBorder: c }),
|
|
5267
|
+
Dc({ focusMode: a }),
|
|
5240
5268
|
Bc({ mode: n, variant: m, disabled: o }),
|
|
5241
5269
|
Mc({ mode: n, variant: m, disabled: o }),
|
|
5242
5270
|
{
|
|
@@ -5268,7 +5296,7 @@ function Hc() {
|
|
|
5268
5296
|
const e = T(!1);
|
|
5269
5297
|
return M(() => (e.current = !0, () => {
|
|
5270
5298
|
e.current = !1;
|
|
5271
|
-
}), []),
|
|
5299
|
+
}), []), X(() => e.current, []);
|
|
5272
5300
|
}
|
|
5273
5301
|
function Wc(e) {
|
|
5274
5302
|
return de(() => e.every((t) => t == null) ? () => {
|
|
@@ -5333,8 +5361,8 @@ const Gc = {
|
|
|
5333
5361
|
align: p = "center",
|
|
5334
5362
|
radius: v = "large",
|
|
5335
5363
|
variant: b = "primary",
|
|
5336
|
-
iconClassName:
|
|
5337
|
-
animated:
|
|
5364
|
+
iconClassName: x,
|
|
5365
|
+
animated: k = !1,
|
|
5338
5366
|
...I
|
|
5339
5367
|
}, _) => {
|
|
5340
5368
|
const $ = Uc({
|
|
@@ -5353,20 +5381,21 @@ const Gc = {
|
|
|
5353
5381
|
align: p,
|
|
5354
5382
|
radius: v,
|
|
5355
5383
|
variant: b,
|
|
5356
|
-
animated:
|
|
5357
|
-
}), B = Pc({ mode: r, raw: s, iconClassName:
|
|
5384
|
+
animated: k
|
|
5385
|
+
}), B = Pc({ mode: r, raw: s, iconClassName: x }), E = zc({ animated: k }), [w, R] = Ut(), [S, A] = Ut(), [C, O] = Ut(), D = T(0), N = T(null), U = Wc([_, N]);
|
|
5358
5386
|
return ge(() => {
|
|
5359
|
-
C && C.current && (
|
|
5360
|
-
}, [O, C, d, c]), ge(() => {
|
|
5361
|
-
|
|
5387
|
+
C && C.current && k && (D.current = O.width + qc[d] + (c ? 0 : Kc));
|
|
5388
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
5389
|
+
N && N.current && k && (m && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), N.current.style.width = `${R.width + D.current}px`) : g && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), N.current.style.width = `${A.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), N.current.style.width = `${Gc[d]}px`));
|
|
5362
5390
|
}, [
|
|
5363
5391
|
R,
|
|
5364
5392
|
m,
|
|
5365
|
-
|
|
5393
|
+
w,
|
|
5366
5394
|
A,
|
|
5367
5395
|
g,
|
|
5368
|
-
|
|
5369
|
-
d
|
|
5396
|
+
S,
|
|
5397
|
+
d,
|
|
5398
|
+
k
|
|
5370
5399
|
]), /* @__PURE__ */ L(
|
|
5371
5400
|
ha,
|
|
5372
5401
|
{
|
|
@@ -5377,9 +5406,9 @@ const Gc = {
|
|
|
5377
5406
|
"aria-label": u || h,
|
|
5378
5407
|
...I,
|
|
5379
5408
|
children: [
|
|
5380
|
-
/* @__PURE__ */ l("span", { ref:
|
|
5409
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
5381
5410
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
5382
|
-
/* @__PURE__ */ l("span", { ref:
|
|
5411
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
5383
5412
|
]
|
|
5384
5413
|
}
|
|
5385
5414
|
);
|
|
@@ -5387,13 +5416,13 @@ const Gc = {
|
|
|
5387
5416
|
);
|
|
5388
5417
|
Tr.displayName = "ButtonIcon";
|
|
5389
5418
|
/*!
|
|
5390
|
-
@versini/ui-button v4.2.
|
|
5419
|
+
@versini/ui-button v4.2.2
|
|
5391
5420
|
© 2025 gizmette.com
|
|
5392
5421
|
*/
|
|
5393
5422
|
try {
|
|
5394
5423
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
5395
|
-
version: "4.2.
|
|
5396
|
-
buildTime: "01/
|
|
5424
|
+
version: "4.2.2",
|
|
5425
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
5397
5426
|
homepage: "https://github.com/aversini/ui-components",
|
|
5398
5427
|
license: "MIT"
|
|
5399
5428
|
});
|
|
@@ -5507,7 +5536,7 @@ const Jc = ({
|
|
|
5507
5536
|
/* @__PURE__ */ l("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
|
|
5508
5537
|
]
|
|
5509
5538
|
}
|
|
5510
|
-
),
|
|
5539
|
+
), Zc = ({
|
|
5511
5540
|
className: e,
|
|
5512
5541
|
viewBox: t,
|
|
5513
5542
|
title: r,
|
|
@@ -5538,7 +5567,7 @@ try {
|
|
|
5538
5567
|
});
|
|
5539
5568
|
} catch {
|
|
5540
5569
|
}
|
|
5541
|
-
const
|
|
5570
|
+
const Xc = ({
|
|
5542
5571
|
kind: e,
|
|
5543
5572
|
noMaxWidth: t
|
|
5544
5573
|
}) => f("p-4", {
|
|
@@ -5569,7 +5598,7 @@ const Zc = ({
|
|
|
5569
5598
|
t
|
|
5570
5599
|
), a = f(
|
|
5571
5600
|
"flex flex-col empty:hidden",
|
|
5572
|
-
|
|
5601
|
+
Xc({ kind: e, noMaxWidth: r }),
|
|
5573
5602
|
el({ kind: e }),
|
|
5574
5603
|
Qc({ kind: e }),
|
|
5575
5604
|
tl({ kind: e })
|
|
@@ -5625,37 +5654,44 @@ const Zc = ({
|
|
|
5625
5654
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
|
5626
5655
|
onClick: g,
|
|
5627
5656
|
disabled: u,
|
|
5628
|
-
children: u ? /* @__PURE__ */ l(Jc, { size: "size-3" }) : /* @__PURE__ */ l(
|
|
5657
|
+
children: u ? /* @__PURE__ */ l(Jc, { size: "size-3" }) : /* @__PURE__ */ l(Zc, { size: "size-3" })
|
|
5629
5658
|
}
|
|
5630
5659
|
) })
|
|
5631
5660
|
] });
|
|
5632
|
-
}, pn = "av-button", _t = "icon",
|
|
5661
|
+
}, pn = "av-button", _t = "icon", Sr = "button", cr = "link", al = ({
|
|
5633
5662
|
type: e,
|
|
5634
5663
|
size: t,
|
|
5635
5664
|
labelRight: r,
|
|
5636
5665
|
labelLeft: n,
|
|
5637
|
-
align: a
|
|
5666
|
+
align: a,
|
|
5667
|
+
animated: o
|
|
5638
5668
|
}) => {
|
|
5639
|
-
const
|
|
5669
|
+
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";
|
|
5640
5670
|
switch (e) {
|
|
5641
|
-
case
|
|
5671
|
+
case Sr:
|
|
5642
5672
|
case cr:
|
|
5643
5673
|
return f({
|
|
5644
|
-
[
|
|
5645
|
-
[
|
|
5646
|
-
[
|
|
5674
|
+
[i]: t === "small",
|
|
5675
|
+
[s]: t === "medium",
|
|
5676
|
+
[c]: t === "large"
|
|
5647
5677
|
});
|
|
5648
5678
|
case _t:
|
|
5649
5679
|
return f("inline-flex items-center", {
|
|
5650
5680
|
"justify-center": a === "center",
|
|
5651
5681
|
"justify-start": a === "left",
|
|
5652
5682
|
"justify-end": a === "right",
|
|
5653
|
-
"h-6
|
|
5654
|
-
"h-6": t === "small" && (r || n),
|
|
5655
|
-
"h-8
|
|
5656
|
-
"h-8": t === "medium" && (r || n),
|
|
5657
|
-
"h-12
|
|
5658
|
-
"h-12": t === "large" && (r || n)
|
|
5683
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
5684
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
5685
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
5686
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
5687
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
5688
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
5689
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
5690
|
+
"h-6": t === "small" && o && (r || n),
|
|
5691
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
5692
|
+
"h-8": t === "medium" && o && (r || n),
|
|
5693
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
5694
|
+
"h-12": t === "large" && o && (r || n)
|
|
5659
5695
|
});
|
|
5660
5696
|
}
|
|
5661
5697
|
}, ol = ({
|
|
@@ -5666,7 +5702,7 @@ const Zc = ({
|
|
|
5666
5702
|
}) => {
|
|
5667
5703
|
const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
5668
5704
|
switch (e) {
|
|
5669
|
-
case
|
|
5705
|
+
case Sr:
|
|
5670
5706
|
case cr:
|
|
5671
5707
|
return f({
|
|
5672
5708
|
"text-center": e === cr,
|
|
@@ -5899,7 +5935,8 @@ const Zc = ({
|
|
|
5899
5935
|
size: s,
|
|
5900
5936
|
labelRight: u,
|
|
5901
5937
|
labelLeft: h,
|
|
5902
|
-
align: y
|
|
5938
|
+
align: y,
|
|
5939
|
+
animated: v
|
|
5903
5940
|
}),
|
|
5904
5941
|
ol({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
5905
5942
|
ul({ mode: n, variant: m, noBorder: c }),
|
|
@@ -5917,7 +5954,7 @@ const Zc = ({
|
|
|
5917
5954
|
)), hl = (e, t, r) => {
|
|
5918
5955
|
var n;
|
|
5919
5956
|
!t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
|
|
5920
|
-
},
|
|
5957
|
+
}, Nr = F.forwardRef((e, t) => {
|
|
5921
5958
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
5922
5959
|
return /* @__PURE__ */ l(
|
|
5923
5960
|
"button",
|
|
@@ -5930,7 +5967,7 @@ const Zc = ({
|
|
|
5930
5967
|
}
|
|
5931
5968
|
);
|
|
5932
5969
|
});
|
|
5933
|
-
|
|
5970
|
+
Nr.displayName = "BaseButton";
|
|
5934
5971
|
const ba = F.forwardRef(
|
|
5935
5972
|
({
|
|
5936
5973
|
children: e,
|
|
@@ -5948,7 +5985,7 @@ const ba = F.forwardRef(
|
|
|
5948
5985
|
...m
|
|
5949
5986
|
}, g) => {
|
|
5950
5987
|
const y = ya({
|
|
5951
|
-
type:
|
|
5988
|
+
type: Sr,
|
|
5952
5989
|
mode: r,
|
|
5953
5990
|
focusMode: n,
|
|
5954
5991
|
fullWidth: a,
|
|
@@ -5962,7 +5999,7 @@ const ba = F.forwardRef(
|
|
|
5962
5999
|
radius: d
|
|
5963
6000
|
});
|
|
5964
6001
|
return /* @__PURE__ */ l(
|
|
5965
|
-
|
|
6002
|
+
Nr,
|
|
5966
6003
|
{
|
|
5967
6004
|
ref: g,
|
|
5968
6005
|
className: y,
|
|
@@ -5978,7 +6015,7 @@ function pl() {
|
|
|
5978
6015
|
const e = T(!1);
|
|
5979
6016
|
return M(() => (e.current = !0, () => {
|
|
5980
6017
|
e.current = !1;
|
|
5981
|
-
}), []),
|
|
6018
|
+
}), []), X(() => e.current, []);
|
|
5982
6019
|
}
|
|
5983
6020
|
function yl(e) {
|
|
5984
6021
|
return de(() => e.every((t) => t == null) ? () => {
|
|
@@ -6043,8 +6080,8 @@ const vl = {
|
|
|
6043
6080
|
align: p = "center",
|
|
6044
6081
|
radius: v = "large",
|
|
6045
6082
|
variant: b = "primary",
|
|
6046
|
-
iconClassName:
|
|
6047
|
-
animated:
|
|
6083
|
+
iconClassName: x,
|
|
6084
|
+
animated: k = !1,
|
|
6048
6085
|
...I
|
|
6049
6086
|
}, _) => {
|
|
6050
6087
|
const $ = ya({
|
|
@@ -6063,22 +6100,23 @@ const vl = {
|
|
|
6063
6100
|
align: p,
|
|
6064
6101
|
radius: v,
|
|
6065
6102
|
variant: b,
|
|
6066
|
-
animated:
|
|
6067
|
-
}), B = fl({ mode: r, raw: s, iconClassName:
|
|
6103
|
+
animated: k
|
|
6104
|
+
}), B = fl({ mode: r, raw: s, iconClassName: x }), E = gl({ animated: k }), [w, R] = Ft(), [S, A] = Ft(), [C, O] = Ft(), D = T(0), N = T(null), U = yl([_, N]);
|
|
6068
6105
|
return ge(() => {
|
|
6069
|
-
C && C.current && (
|
|
6070
|
-
}, [O, C, d, c]), ge(() => {
|
|
6071
|
-
|
|
6106
|
+
C && C.current && k && (D.current = O.width + kl[d] + (c ? 0 : wl));
|
|
6107
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
6108
|
+
N && N.current && k && (m && w && R.width > 0 ? (w.current && (w.current.style.opacity = "100"), N.current.style.width = `${R.width + D.current}px`) : g && A.width > 0 ? (S.current && (S.current.style.opacity = "100"), N.current.style.width = `${A.width + D.current}px`) : (w.current && (w.current.style.opacity = "0"), S.current && (S.current.style.opacity = "0"), N.current.style.width = `${vl[d]}px`));
|
|
6072
6109
|
}, [
|
|
6073
6110
|
R,
|
|
6074
6111
|
m,
|
|
6075
|
-
|
|
6112
|
+
w,
|
|
6076
6113
|
A,
|
|
6077
6114
|
g,
|
|
6078
|
-
|
|
6079
|
-
d
|
|
6115
|
+
S,
|
|
6116
|
+
d,
|
|
6117
|
+
k
|
|
6080
6118
|
]), /* @__PURE__ */ L(
|
|
6081
|
-
|
|
6119
|
+
Nr,
|
|
6082
6120
|
{
|
|
6083
6121
|
ref: U,
|
|
6084
6122
|
className: $,
|
|
@@ -6087,9 +6125,9 @@ const vl = {
|
|
|
6087
6125
|
"aria-label": u || h,
|
|
6088
6126
|
...I,
|
|
6089
6127
|
children: [
|
|
6090
|
-
/* @__PURE__ */ l("span", { ref:
|
|
6128
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
6091
6129
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
6092
|
-
/* @__PURE__ */ l("span", { ref:
|
|
6130
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
6093
6131
|
]
|
|
6094
6132
|
}
|
|
6095
6133
|
);
|
|
@@ -6097,13 +6135,13 @@ const vl = {
|
|
|
6097
6135
|
);
|
|
6098
6136
|
va.displayName = "ButtonIcon";
|
|
6099
6137
|
/*!
|
|
6100
|
-
@versini/ui-button v4.2.
|
|
6138
|
+
@versini/ui-button v4.2.2
|
|
6101
6139
|
© 2025 gizmette.com
|
|
6102
6140
|
*/
|
|
6103
6141
|
try {
|
|
6104
6142
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
6105
|
-
version: "4.2.
|
|
6106
|
-
buildTime: "01/
|
|
6143
|
+
version: "4.2.2",
|
|
6144
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
6107
6145
|
homepage: "https://github.com/aversini/ui-components",
|
|
6108
6146
|
license: "MIT"
|
|
6109
6147
|
});
|
|
@@ -6192,19 +6230,19 @@ const _l = 200, El = ({
|
|
|
6192
6230
|
] });
|
|
6193
6231
|
};
|
|
6194
6232
|
/*!
|
|
6195
|
-
@versini/ui-truncate v3.0.
|
|
6233
|
+
@versini/ui-truncate v3.0.19
|
|
6196
6234
|
© 2025 gizmette.com
|
|
6197
6235
|
*/
|
|
6198
6236
|
try {
|
|
6199
6237
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
6200
|
-
version: "3.0.
|
|
6201
|
-
buildTime: "01/
|
|
6238
|
+
version: "3.0.19",
|
|
6239
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
6202
6240
|
homepage: "https://github.com/aversini/ui-components",
|
|
6203
6241
|
license: "MIT"
|
|
6204
6242
|
});
|
|
6205
6243
|
} catch {
|
|
6206
6244
|
}
|
|
6207
|
-
const
|
|
6245
|
+
const Sl = ({ children: e }) => /* @__PURE__ */ l(
|
|
6208
6246
|
nl,
|
|
6209
6247
|
{
|
|
6210
6248
|
kind: "right",
|
|
@@ -6215,26 +6253,26 @@ const Nl = ({ children: e }) => /* @__PURE__ */ l(
|
|
|
6215
6253
|
), yn = _n(
|
|
6216
6254
|
() => import(
|
|
6217
6255
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
6218
|
-
"./MessageAssistant.
|
|
6256
|
+
"./MessageAssistant.CQg-4XR4.js"
|
|
6219
6257
|
).then((e) => e.MessageAssistant)
|
|
6220
|
-
),
|
|
6258
|
+
), Nl = () => {
|
|
6221
6259
|
const { state: e } = j(ue);
|
|
6222
6260
|
return /* @__PURE__ */ L("div", { className: "space-y-6 mt-2 @container", children: [
|
|
6223
6261
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
6224
6262
|
const { role: n, content: a, name: o, processingTime: i } = t.message;
|
|
6225
|
-
return (n === Ue || n === lr) && a ? /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(yn, { name: o, processingTime: i, children: a }) }, `${r}-${n}`) : n === Wt && a ? /* @__PURE__ */ l(
|
|
6263
|
+
return (n === Ue || n === lr) && a ? /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(yn, { name: o, processingTime: i, children: a }) }, `${r}-${n}`) : n === Wt && a ? /* @__PURE__ */ l(Sl, { children: a }, `${r}-${n}`) : null;
|
|
6226
6264
|
}),
|
|
6227
6265
|
Ma(Wt, e) && /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(yn, { loading: !0 }) })
|
|
6228
6266
|
] });
|
|
6229
6267
|
}, Cl = () => {
|
|
6230
|
-
const { isAuthenticated: e } = Ge(), { ref: t, inViewport: r } = po(), n =
|
|
6268
|
+
const { isAuthenticated: e } = Ge(), { ref: t, inViewport: r } = po(), n = Va({
|
|
6231
6269
|
isAuthenticated: e,
|
|
6232
6270
|
extraClass: "rounded-b-md"
|
|
6233
6271
|
});
|
|
6234
6272
|
return /* @__PURE__ */ L(_e, { children: [
|
|
6235
6273
|
/* @__PURE__ */ L("div", { className: n, children: [
|
|
6236
|
-
/* @__PURE__ */ l(
|
|
6237
|
-
/* @__PURE__ */ l(
|
|
6274
|
+
/* @__PURE__ */ l(Da, {}),
|
|
6275
|
+
/* @__PURE__ */ l(Nl, {}),
|
|
6238
6276
|
/* @__PURE__ */ l("div", { ref: t })
|
|
6239
6277
|
] }),
|
|
6240
6278
|
/* @__PURE__ */ l(bc, { show: !r })
|
|
@@ -6242,7 +6280,7 @@ const Nl = ({ children: e }) => /* @__PURE__ */ l(
|
|
|
6242
6280
|
}, Rl = _n(
|
|
6243
6281
|
() => import(
|
|
6244
6282
|
/* webpackChunkName: "LazyHeader" */
|
|
6245
|
-
"./index.
|
|
6283
|
+
"./index.DCvn98ot.js"
|
|
6246
6284
|
)
|
|
6247
6285
|
);
|
|
6248
6286
|
function ka({ isComponent: e = !1 }) {
|
|
@@ -6251,7 +6289,7 @@ function ka({ isComponent: e = !1 }) {
|
|
|
6251
6289
|
initialValue: ""
|
|
6252
6290
|
}), [a] = Gt({
|
|
6253
6291
|
key: Ht + Ua,
|
|
6254
|
-
initialValue:
|
|
6292
|
+
initialValue: De.ASC
|
|
6255
6293
|
}), [o, i] = Ct(ri, {
|
|
6256
6294
|
id: gr(),
|
|
6257
6295
|
model: Ce,
|
|
@@ -6342,24 +6380,24 @@ const jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6342
6380
|
export {
|
|
6343
6381
|
jl as App,
|
|
6344
6382
|
ue as AppContext,
|
|
6345
|
-
|
|
6383
|
+
De as B,
|
|
6346
6384
|
gc as ConfirmationPanel,
|
|
6347
6385
|
zl as De,
|
|
6348
6386
|
Gt as E,
|
|
6349
6387
|
nl as Ee,
|
|
6350
6388
|
Pl as Fe,
|
|
6351
6389
|
Gi as HistoryContext,
|
|
6352
|
-
|
|
6390
|
+
Zo as Me,
|
|
6353
6391
|
Wl as P,
|
|
6354
6392
|
Ml as Pe,
|
|
6355
6393
|
lt as R,
|
|
6356
6394
|
qe as SERVICE_TYPES,
|
|
6357
6395
|
Bl as Ue,
|
|
6358
|
-
|
|
6396
|
+
Dl as We,
|
|
6359
6397
|
fc as Ye,
|
|
6360
|
-
|
|
6398
|
+
Ze as _e,
|
|
6361
6399
|
wo as i,
|
|
6362
|
-
|
|
6400
|
+
Vl as je,
|
|
6363
6401
|
ao as m,
|
|
6364
6402
|
Er as me,
|
|
6365
6403
|
Ur as p,
|