@versini/sassysaint 6.4.0 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{App.BP43Jj_A.js → App.KB01Hp9h.js} +438 -402
- package/dist/chunks/{MarkdownWithExtra.BibVSqvz.js → MarkdownWithExtra.B4DWJPGx.js} +2 -2
- package/dist/chunks/{MessageAssistant.DFb8HD5S.js → MessageAssistant.BGPVUtl5.js} +116 -116
- package/dist/chunks/{index.D5qg19Ov.js → index.B2CHNioG.js} +4 -4
- package/dist/chunks/{index.Qmbvv1pV.js → index.CfjkM26U.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.CfjkM26U.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
|
|
@@ -2200,7 +2209,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2200
2209
|
schema: pe.SET_USER_PREFERENCES,
|
|
2201
2210
|
method: "setUserPreferences"
|
|
2202
2211
|
}
|
|
2203
|
-
}, qn = process.env.PUBLIC_SASSY_API_SERVER_URL,
|
|
2212
|
+
}, qn = process.env.PUBLIC_SASSY_API_SERVER_URL, Di = async ({
|
|
2204
2213
|
query: e,
|
|
2205
2214
|
data: t,
|
|
2206
2215
|
headers: r = {}
|
|
@@ -2223,7 +2232,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2223
2232
|
}) => {
|
|
2224
2233
|
const n = t != null && t.data ? t.data(r) : r;
|
|
2225
2234
|
try {
|
|
2226
|
-
const a = `Bearer ${e}`, o = await
|
|
2235
|
+
const a = `Bearer ${e}`, o = await Di({
|
|
2227
2236
|
headers: {
|
|
2228
2237
|
authorization: a
|
|
2229
2238
|
},
|
|
@@ -2264,7 +2273,7 @@ const Dt = F.use || // This extra generic is to avoid TypeScript mixing up the g
|
|
|
2264
2273
|
swrOptions: n,
|
|
2265
2274
|
getAccessToken: a
|
|
2266
2275
|
}) => {
|
|
2267
|
-
const { data: o, error: i, isLoading: s, mutate: c } =
|
|
2276
|
+
const { data: o, error: i, isLoading: s, mutate: c } = Vi(
|
|
2268
2277
|
[t, ...r],
|
|
2269
2278
|
(u) => e(u, a),
|
|
2270
2279
|
{ ...n }
|
|
@@ -2423,7 +2432,7 @@ function xe(e) {
|
|
|
2423
2432
|
function Ye(e) {
|
|
2424
2433
|
return e.split("-")[1];
|
|
2425
2434
|
}
|
|
2426
|
-
function
|
|
2435
|
+
function Zn(e) {
|
|
2427
2436
|
return e === "x" ? "y" : "x";
|
|
2428
2437
|
}
|
|
2429
2438
|
function br(e) {
|
|
@@ -2433,15 +2442,15 @@ function Le(e) {
|
|
|
2433
2442
|
return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
|
|
2434
2443
|
}
|
|
2435
2444
|
function vr(e) {
|
|
2436
|
-
return
|
|
2445
|
+
return Zn(Le(e));
|
|
2437
2446
|
}
|
|
2438
|
-
function
|
|
2447
|
+
function Zi(e, t, r) {
|
|
2439
2448
|
r === void 0 && (r = !1);
|
|
2440
2449
|
const n = Ye(e), a = vr(e), o = br(a);
|
|
2441
2450
|
let i = a === "x" ? n === (r ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
2442
2451
|
return t.reference[o] > t.floating[o] && (i = st(i)), [i, st(i)];
|
|
2443
2452
|
}
|
|
2444
|
-
function
|
|
2453
|
+
function Xi(e) {
|
|
2445
2454
|
const t = st(e);
|
|
2446
2455
|
return [nr(e), t, nr(t)];
|
|
2447
2456
|
}
|
|
@@ -2478,7 +2487,7 @@ function ts(e) {
|
|
|
2478
2487
|
...e
|
|
2479
2488
|
};
|
|
2480
2489
|
}
|
|
2481
|
-
function
|
|
2490
|
+
function Xn(e) {
|
|
2482
2491
|
return typeof e != "number" ? ts(e) : {
|
|
2483
2492
|
top: e,
|
|
2484
2493
|
right: e,
|
|
@@ -2572,8 +2581,8 @@ const rs = async (e, t, r) => {
|
|
|
2572
2581
|
name: v,
|
|
2573
2582
|
fn: b
|
|
2574
2583
|
} = s[p], {
|
|
2575
|
-
x
|
|
2576
|
-
y:
|
|
2584
|
+
x,
|
|
2585
|
+
y: k,
|
|
2577
2586
|
data: I,
|
|
2578
2587
|
reset: _
|
|
2579
2588
|
} = await b({
|
|
@@ -2590,7 +2599,7 @@ const rs = async (e, t, r) => {
|
|
|
2590
2599
|
floating: t
|
|
2591
2600
|
}
|
|
2592
2601
|
});
|
|
2593
|
-
h =
|
|
2602
|
+
h = x ?? h, d = k ?? d, g = {
|
|
2594
2603
|
...g,
|
|
2595
2604
|
[v]: {
|
|
2596
2605
|
...g[v],
|
|
@@ -2629,7 +2638,7 @@ async function Qn(e, t) {
|
|
|
2629
2638
|
elementContext: d = "floating",
|
|
2630
2639
|
altBoundary: m = !1,
|
|
2631
2640
|
padding: g = 0
|
|
2632
|
-
} = Ke(t, e), y =
|
|
2641
|
+
} = Ke(t, e), y = Xn(g), p = s[m ? d === "floating" ? "reference" : "floating" : d], v = ct(await o.getClippingRect({
|
|
2633
2642
|
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
2643
|
boundary: u,
|
|
2635
2644
|
rootBoundary: h,
|
|
@@ -2639,7 +2648,7 @@ async function Qn(e, t) {
|
|
|
2639
2648
|
y: a,
|
|
2640
2649
|
width: i.floating.width,
|
|
2641
2650
|
height: i.floating.height
|
|
2642
|
-
} : i.reference,
|
|
2651
|
+
} : 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
2652
|
x: 1,
|
|
2644
2653
|
y: 1
|
|
2645
2654
|
} : {
|
|
@@ -2648,14 +2657,14 @@ async function Qn(e, t) {
|
|
|
2648
2657
|
}, I = ct(o.convertOffsetParentRelativeRectToViewportRelativeRect ? await o.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2649
2658
|
elements: s,
|
|
2650
2659
|
rect: b,
|
|
2651
|
-
offsetParent:
|
|
2660
|
+
offsetParent: x,
|
|
2652
2661
|
strategy: c
|
|
2653
2662
|
}) : b);
|
|
2654
2663
|
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) /
|
|
2664
|
+
top: (v.top - I.top + y.top) / k.y,
|
|
2665
|
+
bottom: (I.bottom - v.bottom + y.bottom) / k.y,
|
|
2666
|
+
left: (v.left - I.left + y.left) / k.x,
|
|
2667
|
+
right: (I.right - v.right + y.right) / k.x
|
|
2659
2668
|
};
|
|
2660
2669
|
}
|
|
2661
2670
|
const ns = (e) => ({
|
|
@@ -2676,23 +2685,23 @@ const ns = (e) => ({
|
|
|
2676
2685
|
} = Ke(e, t) || {};
|
|
2677
2686
|
if (u == null)
|
|
2678
2687
|
return {};
|
|
2679
|
-
const d =
|
|
2688
|
+
const d = Xn(h), m = {
|
|
2680
2689
|
x: r,
|
|
2681
2690
|
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,
|
|
2691
|
+
}, 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));
|
|
2692
|
+
let B = $ ? $[k] : 0;
|
|
2693
|
+
(!B || !await (i.isElement == null ? void 0 : i.isElement($))) && (B = s.floating[k] || o.floating[y]);
|
|
2694
|
+
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
2695
|
return {
|
|
2687
2696
|
[g]: m[g] + U,
|
|
2688
2697
|
data: {
|
|
2689
|
-
[g]:
|
|
2690
|
-
centerOffset: O -
|
|
2691
|
-
...
|
|
2698
|
+
[g]: D,
|
|
2699
|
+
centerOffset: O - D - U,
|
|
2700
|
+
...N && {
|
|
2692
2701
|
alignmentOffset: U
|
|
2693
2702
|
}
|
|
2694
2703
|
},
|
|
2695
|
-
reset:
|
|
2704
|
+
reset: N
|
|
2696
2705
|
};
|
|
2697
2706
|
}
|
|
2698
2707
|
}), as = function(e) {
|
|
@@ -2719,55 +2728,55 @@ const ns = (e) => ({
|
|
|
2719
2728
|
} = Ke(e, t);
|
|
2720
2729
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2721
2730
|
return {};
|
|
2722
|
-
const b = xe(a),
|
|
2731
|
+
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
2732
|
!m && $ && _.push(...es(s, p, y, I));
|
|
2724
|
-
const B = [s, ..._], E = await Qn(t, v),
|
|
2733
|
+
const B = [s, ..._], E = await Qn(t, v), w = [];
|
|
2725
2734
|
let R = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
2726
|
-
if (h &&
|
|
2727
|
-
const O =
|
|
2728
|
-
|
|
2735
|
+
if (h && w.push(E[b]), d) {
|
|
2736
|
+
const O = Zi(a, i, I);
|
|
2737
|
+
w.push(E[O[0]], E[O[1]]);
|
|
2729
2738
|
}
|
|
2730
2739
|
if (R = [...R, {
|
|
2731
2740
|
placement: a,
|
|
2732
|
-
overflows:
|
|
2733
|
-
}], !
|
|
2734
|
-
var
|
|
2735
|
-
const O = (((
|
|
2736
|
-
if (
|
|
2741
|
+
overflows: w
|
|
2742
|
+
}], !w.every((O) => O <= 0)) {
|
|
2743
|
+
var S, A;
|
|
2744
|
+
const O = (((S = o.flip) == null ? void 0 : S.index) || 0) + 1, D = B[O];
|
|
2745
|
+
if (D)
|
|
2737
2746
|
return {
|
|
2738
2747
|
data: {
|
|
2739
2748
|
index: O,
|
|
2740
2749
|
overflows: R
|
|
2741
2750
|
},
|
|
2742
2751
|
reset: {
|
|
2743
|
-
placement:
|
|
2752
|
+
placement: D
|
|
2744
2753
|
}
|
|
2745
2754
|
};
|
|
2746
|
-
let
|
|
2747
|
-
if (!
|
|
2755
|
+
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;
|
|
2756
|
+
if (!N)
|
|
2748
2757
|
switch (g) {
|
|
2749
2758
|
case "bestFit": {
|
|
2750
2759
|
var C;
|
|
2751
2760
|
const U = (C = R.filter((G) => {
|
|
2752
2761
|
if ($) {
|
|
2753
2762
|
const q = Le(G.placement);
|
|
2754
|
-
return q ===
|
|
2763
|
+
return q === x || // Create a bias to the `y` side axis due to horizontal
|
|
2755
2764
|
// reading directions favoring greater width.
|
|
2756
2765
|
q === "y";
|
|
2757
2766
|
}
|
|
2758
2767
|
return !0;
|
|
2759
2768
|
}).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 && (
|
|
2769
|
+
U && (N = U);
|
|
2761
2770
|
break;
|
|
2762
2771
|
}
|
|
2763
2772
|
case "initialPlacement":
|
|
2764
|
-
|
|
2773
|
+
N = s;
|
|
2765
2774
|
break;
|
|
2766
2775
|
}
|
|
2767
|
-
if (a !==
|
|
2776
|
+
if (a !== N)
|
|
2768
2777
|
return {
|
|
2769
2778
|
reset: {
|
|
2770
|
-
placement:
|
|
2779
|
+
placement: N
|
|
2771
2780
|
}
|
|
2772
2781
|
};
|
|
2773
2782
|
}
|
|
@@ -2840,11 +2849,11 @@ const is = function(e) {
|
|
|
2840
2849
|
fn: (v) => {
|
|
2841
2850
|
let {
|
|
2842
2851
|
x: b,
|
|
2843
|
-
y:
|
|
2852
|
+
y: x
|
|
2844
2853
|
} = v;
|
|
2845
2854
|
return {
|
|
2846
2855
|
x: b,
|
|
2847
|
-
y:
|
|
2856
|
+
y: x
|
|
2848
2857
|
};
|
|
2849
2858
|
}
|
|
2850
2859
|
},
|
|
@@ -2852,15 +2861,15 @@ const is = function(e) {
|
|
|
2852
2861
|
} = Ke(e, t), u = {
|
|
2853
2862
|
x: r,
|
|
2854
2863
|
y: n
|
|
2855
|
-
}, h = await Qn(t, c), d = Le(xe(a)), m =
|
|
2864
|
+
}, h = await Qn(t, c), d = Le(xe(a)), m = Zn(d);
|
|
2856
2865
|
let g = u[m], y = u[d];
|
|
2857
2866
|
if (o) {
|
|
2858
|
-
const v = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right",
|
|
2859
|
-
g = rr(
|
|
2867
|
+
const v = m === "y" ? "top" : "left", b = m === "y" ? "bottom" : "right", x = g + h[v], k = g - h[b];
|
|
2868
|
+
g = rr(x, g, k);
|
|
2860
2869
|
}
|
|
2861
2870
|
if (i) {
|
|
2862
|
-
const v = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right",
|
|
2863
|
-
y = rr(
|
|
2871
|
+
const v = d === "y" ? "top" : "left", b = d === "y" ? "bottom" : "right", x = y + h[v], k = y - h[b];
|
|
2872
|
+
y = rr(x, y, k);
|
|
2864
2873
|
}
|
|
2865
2874
|
const p = s.fn({
|
|
2866
2875
|
...t,
|
|
@@ -3036,8 +3045,8 @@ function We(e, t, r, n) {
|
|
|
3036
3045
|
const m = te(o), g = n && ne(n) ? te(n) : n;
|
|
3037
3046
|
let y = m, p = nn(y);
|
|
3038
3047
|
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 +=
|
|
3048
|
+
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;
|
|
3049
|
+
c *= v.x, u *= v.y, h *= v.x, d *= v.y, c += k, u += I, y = te(p), p = nn(y);
|
|
3041
3050
|
}
|
|
3042
3051
|
}
|
|
3043
3052
|
return ct({
|
|
@@ -3266,7 +3275,7 @@ const _s = {
|
|
|
3266
3275
|
getScale: Ie,
|
|
3267
3276
|
isElement: ne,
|
|
3268
3277
|
isRTL: xs
|
|
3269
|
-
}, Es = is, Ts = ss,
|
|
3278
|
+
}, Es = is, Ts = ss, Ss = as, Ns = ns, Cs = (e, t, r) => {
|
|
3270
3279
|
const n = /* @__PURE__ */ new Map(), a = {
|
|
3271
3280
|
platform: _s,
|
|
3272
3281
|
...r
|
|
@@ -3301,9 +3310,9 @@ function Rs(e, t, r) {
|
|
|
3301
3310
|
}, [e, r, t]), n;
|
|
3302
3311
|
}
|
|
3303
3312
|
function Is(e, t) {
|
|
3304
|
-
const [r, n] = W(!1), a = T(null), o = T(null), i =
|
|
3313
|
+
const [r, n] = W(!1), a = T(null), o = T(null), i = X(() => {
|
|
3305
3314
|
n((c) => (!c && (!a.current || a.current === -1) && (a.current = window.setInterval(o.current, t)), !0));
|
|
3306
|
-
}, [t]), s =
|
|
3315
|
+
}, [t]), s = X(() => {
|
|
3307
3316
|
n(!1), window.clearInterval(a.current || -1), a.current = -1;
|
|
3308
3317
|
}, []);
|
|
3309
3318
|
return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
|
|
@@ -3343,7 +3352,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3343
3352
|
return { tooltip: o, arrow: i, wrapper: a };
|
|
3344
3353
|
}, Bs = ({ delay: e = 300 }) => ({
|
|
3345
3354
|
animation: `av-tooltip-fade-in ${e}ms ease-in-out`
|
|
3346
|
-
}), Ms = 5e3,
|
|
3355
|
+
}), Ms = 5e3, Ze = ({
|
|
3347
3356
|
trigger: e,
|
|
3348
3357
|
label: t,
|
|
3349
3358
|
placement: r = "top",
|
|
@@ -3362,29 +3371,29 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3362
3371
|
className: o,
|
|
3363
3372
|
tooltipClassName: i,
|
|
3364
3373
|
arrowClassName: s
|
|
3365
|
-
}), b = Bs({ delay: a }),
|
|
3366
|
-
var $, B, E,
|
|
3374
|
+
}), b = Bs({ delay: a }), x = X(async () => {
|
|
3375
|
+
var $, B, E, w;
|
|
3367
3376
|
if (c.current && u.current && h.current) {
|
|
3368
3377
|
const {
|
|
3369
3378
|
x: R,
|
|
3370
|
-
y:
|
|
3379
|
+
y: S,
|
|
3371
3380
|
middlewareData: A,
|
|
3372
3381
|
placement: C
|
|
3373
3382
|
} = await Cs(c.current, u.current, {
|
|
3374
3383
|
placement: r,
|
|
3375
3384
|
middleware: [
|
|
3376
3385
|
Es(10),
|
|
3377
|
-
|
|
3386
|
+
Ss({
|
|
3378
3387
|
crossAxis: r.includes("-"),
|
|
3379
3388
|
fallbackAxisSideDirection: "start"
|
|
3380
3389
|
}),
|
|
3381
3390
|
Ts({ padding: 5 }),
|
|
3382
|
-
|
|
3391
|
+
Ns({ element: h.current })
|
|
3383
3392
|
]
|
|
3384
3393
|
});
|
|
3385
3394
|
($ = u == null ? void 0 : u.current) != null && $.style && Object.assign(u.current.style, {
|
|
3386
3395
|
left: nt(R),
|
|
3387
|
-
top: nt(
|
|
3396
|
+
top: nt(S),
|
|
3388
3397
|
...b
|
|
3389
3398
|
});
|
|
3390
3399
|
const O = {
|
|
@@ -3395,7 +3404,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3395
3404
|
}[C.split("-")[0]];
|
|
3396
3405
|
(B = h == null ? void 0 : h.current) != null && B.style && Object.assign(h.current.style, {
|
|
3397
3406
|
left: nt((E = A.arrow) == null ? void 0 : E.x),
|
|
3398
|
-
top: nt((
|
|
3407
|
+
top: nt((w = A.arrow) == null ? void 0 : w.y),
|
|
3399
3408
|
right: "",
|
|
3400
3409
|
bottom: "",
|
|
3401
3410
|
[O]: "-4px"
|
|
@@ -3403,9 +3412,9 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3403
3412
|
}
|
|
3404
3413
|
}, [r, b, c]);
|
|
3405
3414
|
M(() => {
|
|
3406
|
-
(async () => d && await
|
|
3407
|
-
}, [
|
|
3408
|
-
const
|
|
3415
|
+
(async () => d && await x())();
|
|
3416
|
+
}, [x, d]);
|
|
3417
|
+
const k = () => {
|
|
3409
3418
|
m(!1), y(!0), p.start();
|
|
3410
3419
|
}, I = () => {
|
|
3411
3420
|
g || m(!0);
|
|
@@ -3419,7 +3428,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3419
3428
|
ref: c,
|
|
3420
3429
|
onMouseEnter: I,
|
|
3421
3430
|
onMouseLeave: _,
|
|
3422
|
-
onClick:
|
|
3431
|
+
onClick: k,
|
|
3423
3432
|
children: [
|
|
3424
3433
|
e,
|
|
3425
3434
|
d && /* @__PURE__ */ L(
|
|
@@ -3437,7 +3446,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3437
3446
|
]
|
|
3438
3447
|
}
|
|
3439
3448
|
);
|
|
3440
|
-
},
|
|
3449
|
+
}, Vs = ({
|
|
3441
3450
|
className: e
|
|
3442
3451
|
}) => {
|
|
3443
3452
|
const { state: t, dispatch: r } = j(ue), n = T(null), a = T(!1), o = (i) => {
|
|
@@ -3452,7 +3461,7 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3452
3461
|
var i;
|
|
3453
3462
|
(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
3463
|
}, [t]), /* @__PURE__ */ l(
|
|
3455
|
-
|
|
3464
|
+
Ze,
|
|
3456
3465
|
{
|
|
3457
3466
|
label: "New Chat",
|
|
3458
3467
|
mode: "light",
|
|
@@ -3474,45 +3483,52 @@ const nt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Ls = (
|
|
|
3474
3483
|
);
|
|
3475
3484
|
};
|
|
3476
3485
|
/*!
|
|
3477
|
-
@versini/ui-panel v1.3.
|
|
3486
|
+
@versini/ui-panel v1.3.19
|
|
3478
3487
|
© 2025 gizmette.com
|
|
3479
3488
|
*/
|
|
3480
3489
|
try {
|
|
3481
3490
|
window.__VERSINI_UI_PANEL__ || (window.__VERSINI_UI_PANEL__ = {
|
|
3482
|
-
version: "1.3.
|
|
3483
|
-
buildTime: "01/
|
|
3491
|
+
version: "1.3.19",
|
|
3492
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
3484
3493
|
homepage: "https://github.com/aversini/ui-components",
|
|
3485
3494
|
license: "MIT"
|
|
3486
3495
|
});
|
|
3487
3496
|
} catch {
|
|
3488
3497
|
}
|
|
3489
|
-
const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la = "button", ar = "link",
|
|
3498
|
+
const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la = "button", ar = "link", Ds = ({
|
|
3490
3499
|
type: e,
|
|
3491
3500
|
size: t,
|
|
3492
3501
|
labelRight: r,
|
|
3493
3502
|
labelLeft: n,
|
|
3494
|
-
align: a
|
|
3503
|
+
align: a,
|
|
3504
|
+
animated: o
|
|
3495
3505
|
}) => {
|
|
3496
|
-
const
|
|
3506
|
+
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
3507
|
switch (e) {
|
|
3498
3508
|
case la:
|
|
3499
3509
|
case ar:
|
|
3500
3510
|
return f({
|
|
3501
|
-
[
|
|
3502
|
-
[
|
|
3503
|
-
[
|
|
3511
|
+
[i]: t === "small",
|
|
3512
|
+
[s]: t === "medium",
|
|
3513
|
+
[c]: t === "large"
|
|
3504
3514
|
});
|
|
3505
3515
|
case kt:
|
|
3506
3516
|
return f("inline-flex items-center", {
|
|
3507
3517
|
"justify-center": a === "center",
|
|
3508
3518
|
"justify-start": a === "left",
|
|
3509
3519
|
"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)
|
|
3520
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
3521
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
3522
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
3523
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
3524
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
3525
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
3526
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
3527
|
+
"h-6": t === "small" && o && (r || n),
|
|
3528
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
3529
|
+
"h-8": t === "medium" && o && (r || n),
|
|
3530
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
3531
|
+
"h-12": t === "large" && o && (r || n)
|
|
3516
3532
|
});
|
|
3517
3533
|
}
|
|
3518
3534
|
}, Ps = ({
|
|
@@ -3751,12 +3767,13 @@ const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la =
|
|
|
3751
3767
|
}),
|
|
3752
3768
|
Us({ mode: n, noBackground: d, variant: m }),
|
|
3753
3769
|
Fs({ radius: p }),
|
|
3754
|
-
|
|
3770
|
+
Ds({
|
|
3755
3771
|
type: e,
|
|
3756
3772
|
size: s,
|
|
3757
3773
|
labelRight: u,
|
|
3758
3774
|
labelLeft: h,
|
|
3759
|
-
align: y
|
|
3775
|
+
align: y,
|
|
3776
|
+
animated: v
|
|
3760
3777
|
}),
|
|
3761
3778
|
Ps({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
3762
3779
|
js({ mode: n, variant: m, noBorder: c }),
|
|
@@ -3788,13 +3805,13 @@ const ln = "av-messagebox", dn = "av-panel", un = "av-button", kt = "icon", la =
|
|
|
3788
3805
|
);
|
|
3789
3806
|
});
|
|
3790
3807
|
da.displayName = "BaseButton";
|
|
3791
|
-
function
|
|
3808
|
+
function Zs() {
|
|
3792
3809
|
const e = T(!1);
|
|
3793
3810
|
return M(() => (e.current = !0, () => {
|
|
3794
3811
|
e.current = !1;
|
|
3795
|
-
}), []),
|
|
3812
|
+
}), []), X(() => e.current, []);
|
|
3796
3813
|
}
|
|
3797
|
-
function
|
|
3814
|
+
function Xs(e) {
|
|
3798
3815
|
return de(() => e.every((t) => t == null) ? () => {
|
|
3799
3816
|
} : (t) => {
|
|
3800
3817
|
e.forEach((r) => {
|
|
@@ -3813,7 +3830,7 @@ const Qs = {
|
|
|
3813
3830
|
right: 0
|
|
3814
3831
|
};
|
|
3815
3832
|
function zt(e) {
|
|
3816
|
-
const t =
|
|
3833
|
+
const t = Zs(), r = T(0), n = T(null), [a, o] = W(Qs), i = de(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((s) => {
|
|
3817
3834
|
const c = s[0];
|
|
3818
3835
|
c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
|
|
3819
3836
|
n.current && t() && o(c.contentRect);
|
|
@@ -3857,8 +3874,8 @@ const ec = {
|
|
|
3857
3874
|
align: p = "center",
|
|
3858
3875
|
radius: v = "large",
|
|
3859
3876
|
variant: b = "primary",
|
|
3860
|
-
iconClassName:
|
|
3861
|
-
animated:
|
|
3877
|
+
iconClassName: x,
|
|
3878
|
+
animated: k = !1,
|
|
3862
3879
|
...I
|
|
3863
3880
|
}, _) => {
|
|
3864
3881
|
const $ = Ys({
|
|
@@ -3877,20 +3894,21 @@ const ec = {
|
|
|
3877
3894
|
align: p,
|
|
3878
3895
|
radius: v,
|
|
3879
3896
|
variant: b,
|
|
3880
|
-
animated:
|
|
3881
|
-
}), B = qs({ mode: r, raw: s, iconClassName:
|
|
3897
|
+
animated: k
|
|
3898
|
+
}), 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
3899
|
return ge(() => {
|
|
3883
|
-
C && C.current && (
|
|
3884
|
-
}, [O, C, d, c]), ge(() => {
|
|
3885
|
-
|
|
3900
|
+
C && C.current && k && (D.current = O.width + tc[d] + (c ? 0 : rc));
|
|
3901
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
3902
|
+
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
3903
|
}, [
|
|
3887
3904
|
R,
|
|
3888
3905
|
m,
|
|
3889
|
-
|
|
3906
|
+
w,
|
|
3890
3907
|
A,
|
|
3891
3908
|
g,
|
|
3892
|
-
|
|
3893
|
-
d
|
|
3909
|
+
S,
|
|
3910
|
+
d,
|
|
3911
|
+
k
|
|
3894
3912
|
]), /* @__PURE__ */ L(
|
|
3895
3913
|
da,
|
|
3896
3914
|
{
|
|
@@ -3901,9 +3919,9 @@ const ec = {
|
|
|
3901
3919
|
"aria-label": u || h,
|
|
3902
3920
|
...I,
|
|
3903
3921
|
children: [
|
|
3904
|
-
/* @__PURE__ */ l("span", { ref:
|
|
3922
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
3905
3923
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
3906
|
-
/* @__PURE__ */ l("span", { ref:
|
|
3924
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
3907
3925
|
]
|
|
3908
3926
|
}
|
|
3909
3927
|
);
|
|
@@ -3911,13 +3929,13 @@ const ec = {
|
|
|
3911
3929
|
);
|
|
3912
3930
|
_r.displayName = "ButtonIcon";
|
|
3913
3931
|
/*!
|
|
3914
|
-
@versini/ui-button v4.2.
|
|
3932
|
+
@versini/ui-button v4.2.2
|
|
3915
3933
|
© 2025 gizmette.com
|
|
3916
3934
|
*/
|
|
3917
3935
|
try {
|
|
3918
3936
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
3919
|
-
version: "4.2.
|
|
3920
|
-
buildTime: "01/
|
|
3937
|
+
version: "4.2.2",
|
|
3938
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
3921
3939
|
homepage: "https://github.com/aversini/ui-components",
|
|
3922
3940
|
license: "MIT"
|
|
3923
3941
|
});
|
|
@@ -4048,10 +4066,10 @@ function ic({
|
|
|
4048
4066
|
open: t,
|
|
4049
4067
|
onOpenChange: r
|
|
4050
4068
|
} = {}) {
|
|
4051
|
-
const [n, a] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), u = t ?? n, h = r ?? a, d =
|
|
4069
|
+
const [n, a] = J.useState(e), [o, i] = J.useState(), [s, c] = J.useState(), u = t ?? n, h = r ?? a, d = Sn({
|
|
4052
4070
|
open: u,
|
|
4053
4071
|
onOpenChange: h
|
|
4054
|
-
}), m = d.context, g =
|
|
4072
|
+
}), m = d.context, g = Nn(m, {
|
|
4055
4073
|
enabled: t == null
|
|
4056
4074
|
}), y = Cn(m, {
|
|
4057
4075
|
outsidePress: !1,
|
|
@@ -4123,7 +4141,7 @@ const cc = J.forwardRef(function(e, t) {
|
|
|
4123
4141
|
try {
|
|
4124
4142
|
window.__VERSINI_UI_MODAL__ || (window.__VERSINI_UI_MODAL__ = {
|
|
4125
4143
|
version: "1.2.9",
|
|
4126
|
-
buildTime: "01/
|
|
4144
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
4127
4145
|
homepage: "https://github.com/aversini/ui-components",
|
|
4128
4146
|
license: "MIT"
|
|
4129
4147
|
});
|
|
@@ -4198,7 +4216,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4198
4216
|
open: e,
|
|
4199
4217
|
onOpenChange: t,
|
|
4200
4218
|
title: a.title,
|
|
4201
|
-
footer: /* @__PURE__ */ L(
|
|
4219
|
+
footer: /* @__PURE__ */ L(Na, { columnGap: 2, alignHorizontal: "flex-end", children: [
|
|
4202
4220
|
/* @__PURE__ */ l(Br, { children: /* @__PURE__ */ l(
|
|
4203
4221
|
Mr,
|
|
4204
4222
|
{
|
|
@@ -4261,7 +4279,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4261
4279
|
}
|
|
4262
4280
|
),
|
|
4263
4281
|
/* @__PURE__ */ l(
|
|
4264
|
-
|
|
4282
|
+
Ze,
|
|
4265
4283
|
{
|
|
4266
4284
|
label: "Temporary Chat",
|
|
4267
4285
|
mode: "light",
|
|
@@ -4316,8 +4334,8 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4316
4334
|
focusMode: i = "system",
|
|
4317
4335
|
...s
|
|
4318
4336
|
}, c) => {
|
|
4319
|
-
const [u, h] = W(!1), [d, m] = W(!1), [g, y] = W(null), p = T([]), v = T([]), b = j(or),
|
|
4320
|
-
nodeId:
|
|
4337
|
+
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({
|
|
4338
|
+
nodeId: k,
|
|
4321
4339
|
open: u,
|
|
4322
4340
|
onOpenChange: (q) => {
|
|
4323
4341
|
h(q), a == null || a(q);
|
|
@@ -4326,22 +4344,22 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4326
4344
|
strategy: "fixed",
|
|
4327
4345
|
middleware: [qa({ mainAxis: 10 }), Ka(), Ya()],
|
|
4328
4346
|
whileElementsMounted: Ja
|
|
4329
|
-
}), E =
|
|
4347
|
+
}), E = Nn(B, {
|
|
4330
4348
|
event: "mousedown",
|
|
4331
4349
|
toggle: !0,
|
|
4332
4350
|
ignoreMouse: !1
|
|
4333
|
-
}),
|
|
4351
|
+
}), w = Rn(B, { role: "menu" }), R = Cn(B, { bubbles: !0 }), S = Za(B, {
|
|
4334
4352
|
listRef: p,
|
|
4335
4353
|
activeIndex: g,
|
|
4336
4354
|
nested: !1,
|
|
4337
4355
|
onNavigate: y,
|
|
4338
4356
|
loop: !0
|
|
4339
|
-
}), A =
|
|
4357
|
+
}), A = Xa(B, {
|
|
4340
4358
|
listRef: v,
|
|
4341
4359
|
onMatch: u ? y : void 0,
|
|
4342
4360
|
activeIndex: g
|
|
4343
|
-
}), { getReferenceProps: C, getFloatingProps: O, getItemProps:
|
|
4344
|
-
noInternalClick:
|
|
4361
|
+
}), { getReferenceProps: C, getFloatingProps: O, getItemProps: D } = In([E, w, R, S, A]), N = mn(e) === "Button" || mn(e) === "ButtonIcon", U = N ? {
|
|
4362
|
+
noInternalClick: N,
|
|
4345
4363
|
focusMode: i,
|
|
4346
4364
|
mode: o
|
|
4347
4365
|
} : {}, G = F.cloneElement(
|
|
@@ -4360,17 +4378,17 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4360
4378
|
}
|
|
4361
4379
|
);
|
|
4362
4380
|
return M(() => {
|
|
4363
|
-
if (!
|
|
4381
|
+
if (!x)
|
|
4364
4382
|
return;
|
|
4365
4383
|
function q() {
|
|
4366
4384
|
h(!1), a == null || a(!1);
|
|
4367
4385
|
}
|
|
4368
|
-
return
|
|
4369
|
-
|
|
4386
|
+
return x.events.on("click", q), () => {
|
|
4387
|
+
x.events.off("click", q);
|
|
4370
4388
|
};
|
|
4371
|
-
}, [
|
|
4372
|
-
u &&
|
|
4373
|
-
}, [
|
|
4389
|
+
}, [x, a]), M(() => {
|
|
4390
|
+
u && x && x.events.emit("menuopen", { nodeId: k });
|
|
4391
|
+
}, [x, u, k]), /* @__PURE__ */ L(Qa, { id: k, children: [
|
|
4374
4392
|
G,
|
|
4375
4393
|
/* @__PURE__ */ l(
|
|
4376
4394
|
or.Provider,
|
|
@@ -4378,7 +4396,7 @@ const Pe = "panel", at = "messagebox", mc = ({
|
|
|
4378
4396
|
value: {
|
|
4379
4397
|
activeIndex: g,
|
|
4380
4398
|
setActiveIndex: y,
|
|
4381
|
-
getItemProps:
|
|
4399
|
+
getItemProps: D,
|
|
4382
4400
|
setHasFocusInside: m,
|
|
4383
4401
|
isOpen: u
|
|
4384
4402
|
},
|
|
@@ -4528,7 +4546,7 @@ const pc = (e) => {
|
|
|
4528
4546
|
});
|
|
4529
4547
|
};
|
|
4530
4548
|
return s || c ? null : i && i.tags && pc(i.tags) && /* @__PURE__ */ l(
|
|
4531
|
-
|
|
4549
|
+
Ze,
|
|
4532
4550
|
{
|
|
4533
4551
|
label: "Custom Prompts",
|
|
4534
4552
|
mode: "light",
|
|
@@ -4594,7 +4612,7 @@ const pc = (e) => {
|
|
|
4594
4612
|
}) => {
|
|
4595
4613
|
const { state: t } = j(ue);
|
|
4596
4614
|
return /* @__PURE__ */ l(
|
|
4597
|
-
|
|
4615
|
+
Ze,
|
|
4598
4616
|
{
|
|
4599
4617
|
label: "Send Message",
|
|
4600
4618
|
mode: "light",
|
|
@@ -4645,7 +4663,7 @@ const pc = (e) => {
|
|
|
4645
4663
|
}
|
|
4646
4664
|
};
|
|
4647
4665
|
return i || s ? null : o && /* @__PURE__ */ l(
|
|
4648
|
-
|
|
4666
|
+
Ze,
|
|
4649
4667
|
{
|
|
4650
4668
|
label: "Toggle Engines",
|
|
4651
4669
|
mode: "light",
|
|
@@ -4655,26 +4673,26 @@ const pc = (e) => {
|
|
|
4655
4673
|
{
|
|
4656
4674
|
mode: "dark",
|
|
4657
4675
|
focusMode: "light",
|
|
4658
|
-
trigger: /* @__PURE__ */ l(je, { noBorder: !0, label: "Engines", children: o && o.engine ===
|
|
4676
|
+
trigger: /* @__PURE__ */ l(je, { noBorder: !0, label: "Engines", children: o && o.engine === Nt ? /* @__PURE__ */ l(Ur, { size: be }) : /* @__PURE__ */ l(Fr, { size: be }) }),
|
|
4659
4677
|
defaultPlacement: "top-start",
|
|
4660
4678
|
children: [
|
|
4661
4679
|
/* @__PURE__ */ l(fa, { children: "Engines" }),
|
|
4662
4680
|
/* @__PURE__ */ l(
|
|
4663
4681
|
lt,
|
|
4664
4682
|
{
|
|
4665
|
-
selected: o && o.engine ===
|
|
4683
|
+
selected: o && o.engine === Nt,
|
|
4666
4684
|
label: "Anthropic",
|
|
4667
4685
|
icon: /* @__PURE__ */ l(Ur, {}),
|
|
4668
|
-
onClick: () => u(
|
|
4686
|
+
onClick: () => u(Nt)
|
|
4669
4687
|
}
|
|
4670
4688
|
),
|
|
4671
4689
|
/* @__PURE__ */ l(
|
|
4672
4690
|
lt,
|
|
4673
4691
|
{
|
|
4674
|
-
selected: o && o.engine ===
|
|
4692
|
+
selected: o && o.engine === Vr,
|
|
4675
4693
|
label: "OpenAI",
|
|
4676
4694
|
icon: /* @__PURE__ */ l(Fr, {}),
|
|
4677
|
-
onClick: () => u(
|
|
4695
|
+
onClick: () => u(Vr)
|
|
4678
4696
|
}
|
|
4679
4697
|
)
|
|
4680
4698
|
]
|
|
@@ -4710,7 +4728,7 @@ const pc = (e) => {
|
|
|
4710
4728
|
wrapper: t,
|
|
4711
4729
|
textArea: r
|
|
4712
4730
|
};
|
|
4713
|
-
}, ot = 24,
|
|
4731
|
+
}, ot = 24, Sc = ({
|
|
4714
4732
|
className: e,
|
|
4715
4733
|
label: t,
|
|
4716
4734
|
value: r,
|
|
@@ -4720,33 +4738,33 @@ const pc = (e) => {
|
|
|
4720
4738
|
ref: i,
|
|
4721
4739
|
...s
|
|
4722
4740
|
}) => {
|
|
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:
|
|
4741
|
+
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
4742
|
className: e
|
|
4725
4743
|
}), [I, _] = ko({
|
|
4726
4744
|
value: r,
|
|
4727
4745
|
initialControlledDelay: 20,
|
|
4728
4746
|
defaultValue: n,
|
|
4729
|
-
onChange: (
|
|
4747
|
+
onChange: (w) => {
|
|
4730
4748
|
a && a({
|
|
4731
4749
|
target: {
|
|
4732
|
-
value:
|
|
4750
|
+
value: w
|
|
4733
4751
|
}
|
|
4734
4752
|
});
|
|
4735
4753
|
}
|
|
4736
|
-
}), $ =
|
|
4754
|
+
}), $ = X(() => {
|
|
4737
4755
|
if (!p.current)
|
|
4738
4756
|
return;
|
|
4739
4757
|
p.current.style.height = "auto";
|
|
4740
|
-
const
|
|
4741
|
-
if (
|
|
4758
|
+
const w = p.current.scrollHeight;
|
|
4759
|
+
if (w > d) {
|
|
4742
4760
|
p.current.style.height = `${d}px`, p.current.style.overflowY = "scroll";
|
|
4743
4761
|
return;
|
|
4744
4762
|
}
|
|
4745
|
-
p.current.style.height = `${
|
|
4746
|
-
}, [d]), B = (
|
|
4747
|
-
p.current && (p.current.style.height = `${c.current}px`), o(
|
|
4748
|
-
}, E = (
|
|
4749
|
-
_(
|
|
4763
|
+
p.current.style.height = `${w}px`, p.current.style.overflowY = "hidden";
|
|
4764
|
+
}, [d]), B = (w) => {
|
|
4765
|
+
p.current && (p.current.style.height = `${c.current}px`), o(w, I), _("");
|
|
4766
|
+
}, E = (w) => {
|
|
4767
|
+
_(w.target.value), $();
|
|
4750
4768
|
};
|
|
4751
4769
|
return M(() => {
|
|
4752
4770
|
m && m.usage === 0 && m.messages.length === 0 && p.current && (p.current.style.height = `${c.current}px`);
|
|
@@ -4755,11 +4773,11 @@ const pc = (e) => {
|
|
|
4755
4773
|
$();
|
|
4756
4774
|
}, 100);
|
|
4757
4775
|
}, [g.lastTriggeredTimestamp, $]), M(() => {
|
|
4758
|
-
|
|
4759
|
-
}, [
|
|
4776
|
+
x > 640 ? (c.current = ot, u.current = 1) : (c.current = ot * 2, u.current = 2);
|
|
4777
|
+
}, [x]), /* @__PURE__ */ l(
|
|
4760
4778
|
"div",
|
|
4761
4779
|
{
|
|
4762
|
-
className:
|
|
4780
|
+
className: k.wrapper,
|
|
4763
4781
|
ref: y,
|
|
4764
4782
|
...s,
|
|
4765
4783
|
children: /* @__PURE__ */ L("form", { onSubmit: B, children: [
|
|
@@ -4775,13 +4793,13 @@ const pc = (e) => {
|
|
|
4775
4793
|
onChange: E,
|
|
4776
4794
|
value: I,
|
|
4777
4795
|
onKeyDown: fo([["mod+Enter", B]]),
|
|
4778
|
-
className:
|
|
4796
|
+
className: k.textArea,
|
|
4779
4797
|
"aria-labelledby": b
|
|
4780
4798
|
}
|
|
4781
4799
|
) }),
|
|
4782
4800
|
/* @__PURE__ */ L("div", { className: "p-2 flex items-center", children: [
|
|
4783
4801
|
/* @__PURE__ */ l(vc, { className: "order-5 ml-auto" }),
|
|
4784
|
-
/* @__PURE__ */ l(
|
|
4802
|
+
/* @__PURE__ */ l(Vs, { className: "order-1 mr-2" }),
|
|
4785
4803
|
/* @__PURE__ */ l(kc, { className: "order-2 mr-2" }),
|
|
4786
4804
|
/* @__PURE__ */ l(yc, { className: "order-3 mr-2" }),
|
|
4787
4805
|
/* @__PURE__ */ l(hc, { className: "order-4 mr-2" })
|
|
@@ -4806,7 +4824,7 @@ const pc = (e) => {
|
|
|
4806
4824
|
}
|
|
4807
4825
|
}
|
|
4808
4826
|
});
|
|
4809
|
-
},
|
|
4827
|
+
}, Nc = () => {
|
|
4810
4828
|
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
4829
|
null
|
|
4812
4830
|
);
|
|
@@ -4860,10 +4878,10 @@ const pc = (e) => {
|
|
|
4860
4878
|
const { done: v, value: b } = await u.current.read();
|
|
4861
4879
|
if (v)
|
|
4862
4880
|
break;
|
|
4863
|
-
const
|
|
4864
|
-
if (
|
|
4865
|
-
const I =
|
|
4866
|
-
|
|
4881
|
+
const x = p.decode(b, { stream: !0 }), k = x.indexOf(Dr);
|
|
4882
|
+
if (k !== -1) {
|
|
4883
|
+
const I = x.substring(0, k), _ = JSON.parse(
|
|
4884
|
+
x.substring(k + Dr.length)
|
|
4867
4885
|
);
|
|
4868
4886
|
t({
|
|
4869
4887
|
type: bn,
|
|
@@ -4889,7 +4907,7 @@ const pc = (e) => {
|
|
|
4889
4907
|
type: ze,
|
|
4890
4908
|
payload: {
|
|
4891
4909
|
message: {
|
|
4892
|
-
content:
|
|
4910
|
+
content: x,
|
|
4893
4911
|
role: Ue,
|
|
4894
4912
|
messageId: y
|
|
4895
4913
|
}
|
|
@@ -4917,7 +4935,7 @@ const pc = (e) => {
|
|
|
4917
4935
|
}, [e]), M(() => {
|
|
4918
4936
|
(e == null ? void 0 : e.streaming) === !1 && c.current && c.current.focus();
|
|
4919
4937
|
}, [e]), /* @__PURE__ */ l(_e, { children: /* @__PURE__ */ l(
|
|
4920
|
-
|
|
4938
|
+
Sc,
|
|
4921
4939
|
{
|
|
4922
4940
|
label: Oa,
|
|
4923
4941
|
onSubmit: h,
|
|
@@ -4943,20 +4961,20 @@ const pc = (e) => {
|
|
|
4943
4961
|
a
|
|
4944
4962
|
),
|
|
4945
4963
|
children: [
|
|
4946
|
-
/* @__PURE__ */ l(
|
|
4964
|
+
/* @__PURE__ */ l(Nc, {}),
|
|
4947
4965
|
/* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Ba })
|
|
4948
4966
|
]
|
|
4949
4967
|
}
|
|
4950
4968
|
);
|
|
4951
4969
|
};
|
|
4952
4970
|
/*!
|
|
4953
|
-
@versini/ui-bubble v3.2.
|
|
4971
|
+
@versini/ui-bubble v3.2.2
|
|
4954
4972
|
© 2025 gizmette.com
|
|
4955
4973
|
*/
|
|
4956
4974
|
try {
|
|
4957
4975
|
window.__VERSINI_UI_BUBBLE__ || (window.__VERSINI_UI_BUBBLE__ = {
|
|
4958
|
-
version: "3.2.
|
|
4959
|
-
buildTime: "01/
|
|
4976
|
+
version: "3.2.2",
|
|
4977
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
4960
4978
|
homepage: "https://github.com/aversini/ui-components",
|
|
4961
4979
|
license: "MIT"
|
|
4962
4980
|
});
|
|
@@ -4967,28 +4985,35 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
4967
4985
|
size: t,
|
|
4968
4986
|
labelRight: r,
|
|
4969
4987
|
labelLeft: n,
|
|
4970
|
-
align: a
|
|
4988
|
+
align: a,
|
|
4989
|
+
animated: o
|
|
4971
4990
|
}) => {
|
|
4972
|
-
const
|
|
4991
|
+
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
4992
|
switch (e) {
|
|
4974
4993
|
case ga:
|
|
4975
4994
|
case sr:
|
|
4976
4995
|
return f({
|
|
4977
|
-
[
|
|
4978
|
-
[
|
|
4979
|
-
[
|
|
4996
|
+
[i]: t === "small",
|
|
4997
|
+
[s]: t === "medium",
|
|
4998
|
+
[c]: t === "large"
|
|
4980
4999
|
});
|
|
4981
5000
|
case xt:
|
|
4982
5001
|
return f("inline-flex items-center", {
|
|
4983
5002
|
"justify-center": a === "center",
|
|
4984
5003
|
"justify-start": a === "left",
|
|
4985
5004
|
"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)
|
|
5005
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
5006
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
5007
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
5008
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
5009
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
5010
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
5011
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
5012
|
+
"h-6": t === "small" && o && (r || n),
|
|
5013
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
5014
|
+
"h-8": t === "medium" && o && (r || n),
|
|
5015
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
5016
|
+
"h-12": t === "large" && o && (r || n)
|
|
4992
5017
|
});
|
|
4993
5018
|
}
|
|
4994
5019
|
}, Lc = ({
|
|
@@ -5146,7 +5171,7 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5146
5171
|
});
|
|
5147
5172
|
if (r === "selected")
|
|
5148
5173
|
return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
|
|
5149
|
-
},
|
|
5174
|
+
}, Vc = ({
|
|
5150
5175
|
mode: e,
|
|
5151
5176
|
noBorder: t,
|
|
5152
5177
|
variant: r
|
|
@@ -5176,7 +5201,7 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5176
5201
|
});
|
|
5177
5202
|
if (r === "selected")
|
|
5178
5203
|
return "border border-border-selected-dark";
|
|
5179
|
-
},
|
|
5204
|
+
}, Dc = ({
|
|
5180
5205
|
focusMode: e
|
|
5181
5206
|
}) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
|
|
5182
5207
|
"focus:outline-focus-dark": e === "dark",
|
|
@@ -5232,11 +5257,12 @@ const Rc = "av-bubble", hn = "av-button", xt = "icon", ga = "button", sr = "link
|
|
|
5232
5257
|
size: s,
|
|
5233
5258
|
labelRight: u,
|
|
5234
5259
|
labelLeft: h,
|
|
5235
|
-
align: y
|
|
5260
|
+
align: y,
|
|
5261
|
+
animated: v
|
|
5236
5262
|
}),
|
|
5237
5263
|
Lc({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
5238
|
-
|
|
5239
|
-
|
|
5264
|
+
Vc({ mode: n, variant: m, noBorder: c }),
|
|
5265
|
+
Dc({ focusMode: a }),
|
|
5240
5266
|
Bc({ mode: n, variant: m, disabled: o }),
|
|
5241
5267
|
Mc({ mode: n, variant: m, disabled: o }),
|
|
5242
5268
|
{
|
|
@@ -5268,7 +5294,7 @@ function Hc() {
|
|
|
5268
5294
|
const e = T(!1);
|
|
5269
5295
|
return M(() => (e.current = !0, () => {
|
|
5270
5296
|
e.current = !1;
|
|
5271
|
-
}), []),
|
|
5297
|
+
}), []), X(() => e.current, []);
|
|
5272
5298
|
}
|
|
5273
5299
|
function Wc(e) {
|
|
5274
5300
|
return de(() => e.every((t) => t == null) ? () => {
|
|
@@ -5333,8 +5359,8 @@ const Gc = {
|
|
|
5333
5359
|
align: p = "center",
|
|
5334
5360
|
radius: v = "large",
|
|
5335
5361
|
variant: b = "primary",
|
|
5336
|
-
iconClassName:
|
|
5337
|
-
animated:
|
|
5362
|
+
iconClassName: x,
|
|
5363
|
+
animated: k = !1,
|
|
5338
5364
|
...I
|
|
5339
5365
|
}, _) => {
|
|
5340
5366
|
const $ = Uc({
|
|
@@ -5353,20 +5379,21 @@ const Gc = {
|
|
|
5353
5379
|
align: p,
|
|
5354
5380
|
radius: v,
|
|
5355
5381
|
variant: b,
|
|
5356
|
-
animated:
|
|
5357
|
-
}), B = Pc({ mode: r, raw: s, iconClassName:
|
|
5382
|
+
animated: k
|
|
5383
|
+
}), 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
5384
|
return ge(() => {
|
|
5359
|
-
C && C.current && (
|
|
5360
|
-
}, [O, C, d, c]), ge(() => {
|
|
5361
|
-
|
|
5385
|
+
C && C.current && k && (D.current = O.width + qc[d] + (c ? 0 : Kc));
|
|
5386
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
5387
|
+
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
5388
|
}, [
|
|
5363
5389
|
R,
|
|
5364
5390
|
m,
|
|
5365
|
-
|
|
5391
|
+
w,
|
|
5366
5392
|
A,
|
|
5367
5393
|
g,
|
|
5368
|
-
|
|
5369
|
-
d
|
|
5394
|
+
S,
|
|
5395
|
+
d,
|
|
5396
|
+
k
|
|
5370
5397
|
]), /* @__PURE__ */ L(
|
|
5371
5398
|
ha,
|
|
5372
5399
|
{
|
|
@@ -5377,9 +5404,9 @@ const Gc = {
|
|
|
5377
5404
|
"aria-label": u || h,
|
|
5378
5405
|
...I,
|
|
5379
5406
|
children: [
|
|
5380
|
-
/* @__PURE__ */ l("span", { ref:
|
|
5407
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
5381
5408
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
5382
|
-
/* @__PURE__ */ l("span", { ref:
|
|
5409
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
5383
5410
|
]
|
|
5384
5411
|
}
|
|
5385
5412
|
);
|
|
@@ -5387,13 +5414,13 @@ const Gc = {
|
|
|
5387
5414
|
);
|
|
5388
5415
|
Tr.displayName = "ButtonIcon";
|
|
5389
5416
|
/*!
|
|
5390
|
-
@versini/ui-button v4.2.
|
|
5417
|
+
@versini/ui-button v4.2.2
|
|
5391
5418
|
© 2025 gizmette.com
|
|
5392
5419
|
*/
|
|
5393
5420
|
try {
|
|
5394
5421
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
5395
|
-
version: "4.2.
|
|
5396
|
-
buildTime: "01/
|
|
5422
|
+
version: "4.2.2",
|
|
5423
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
5397
5424
|
homepage: "https://github.com/aversini/ui-components",
|
|
5398
5425
|
license: "MIT"
|
|
5399
5426
|
});
|
|
@@ -5507,7 +5534,7 @@ const Jc = ({
|
|
|
5507
5534
|
/* @__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
5535
|
]
|
|
5509
5536
|
}
|
|
5510
|
-
),
|
|
5537
|
+
), Zc = ({
|
|
5511
5538
|
className: e,
|
|
5512
5539
|
viewBox: t,
|
|
5513
5540
|
title: r,
|
|
@@ -5538,7 +5565,7 @@ try {
|
|
|
5538
5565
|
});
|
|
5539
5566
|
} catch {
|
|
5540
5567
|
}
|
|
5541
|
-
const
|
|
5568
|
+
const Xc = ({
|
|
5542
5569
|
kind: e,
|
|
5543
5570
|
noMaxWidth: t
|
|
5544
5571
|
}) => f("p-4", {
|
|
@@ -5569,7 +5596,7 @@ const Zc = ({
|
|
|
5569
5596
|
t
|
|
5570
5597
|
), a = f(
|
|
5571
5598
|
"flex flex-col empty:hidden",
|
|
5572
|
-
|
|
5599
|
+
Xc({ kind: e, noMaxWidth: r }),
|
|
5573
5600
|
el({ kind: e }),
|
|
5574
5601
|
Qc({ kind: e }),
|
|
5575
5602
|
tl({ kind: e })
|
|
@@ -5625,37 +5652,44 @@ const Zc = ({
|
|
|
5625
5652
|
label: u ? "Copied to clipboard" : "Copy to clipboard",
|
|
5626
5653
|
onClick: g,
|
|
5627
5654
|
disabled: u,
|
|
5628
|
-
children: u ? /* @__PURE__ */ l(Jc, { size: "size-3" }) : /* @__PURE__ */ l(
|
|
5655
|
+
children: u ? /* @__PURE__ */ l(Jc, { size: "size-3" }) : /* @__PURE__ */ l(Zc, { size: "size-3" })
|
|
5629
5656
|
}
|
|
5630
5657
|
) })
|
|
5631
5658
|
] });
|
|
5632
|
-
}, pn = "av-button", _t = "icon",
|
|
5659
|
+
}, pn = "av-button", _t = "icon", Sr = "button", cr = "link", al = ({
|
|
5633
5660
|
type: e,
|
|
5634
5661
|
size: t,
|
|
5635
5662
|
labelRight: r,
|
|
5636
5663
|
labelLeft: n,
|
|
5637
|
-
align: a
|
|
5664
|
+
align: a,
|
|
5665
|
+
animated: o
|
|
5638
5666
|
}) => {
|
|
5639
|
-
const
|
|
5667
|
+
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
5668
|
switch (e) {
|
|
5641
|
-
case
|
|
5669
|
+
case Sr:
|
|
5642
5670
|
case cr:
|
|
5643
5671
|
return f({
|
|
5644
|
-
[
|
|
5645
|
-
[
|
|
5646
|
-
[
|
|
5672
|
+
[i]: t === "small",
|
|
5673
|
+
[s]: t === "medium",
|
|
5674
|
+
[c]: t === "large"
|
|
5647
5675
|
});
|
|
5648
5676
|
case _t:
|
|
5649
5677
|
return f("inline-flex items-center", {
|
|
5650
5678
|
"justify-center": a === "center",
|
|
5651
5679
|
"justify-start": a === "left",
|
|
5652
5680
|
"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)
|
|
5681
|
+
"h-6 w-6 p-0": t === "small" && !o && !(r || n),
|
|
5682
|
+
"h-6 px-2": t === "small" && !o && (r || n),
|
|
5683
|
+
"h-8 w-8 p-1": t === "medium" && !o && !(r || n),
|
|
5684
|
+
"h-8 px-3": t === "medium" && !o && (r || n),
|
|
5685
|
+
"h-12 w-12 p-2": t === "large" && !o && !(r || n),
|
|
5686
|
+
"h-12 px-4": t === "large" && !o && (r || n),
|
|
5687
|
+
"h-6 py-0": t === "small" && o && !(r || n),
|
|
5688
|
+
"h-6": t === "small" && o && (r || n),
|
|
5689
|
+
"h-8 py-1": t === "medium" && o && !(r || n),
|
|
5690
|
+
"h-8": t === "medium" && o && (r || n),
|
|
5691
|
+
"h-12 py-2": t === "large" && o && !(r || n),
|
|
5692
|
+
"h-12": t === "large" && o && (r || n)
|
|
5659
5693
|
});
|
|
5660
5694
|
}
|
|
5661
5695
|
}, ol = ({
|
|
@@ -5666,7 +5700,7 @@ const Zc = ({
|
|
|
5666
5700
|
}) => {
|
|
5667
5701
|
const a = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
|
|
5668
5702
|
switch (e) {
|
|
5669
|
-
case
|
|
5703
|
+
case Sr:
|
|
5670
5704
|
case cr:
|
|
5671
5705
|
return f({
|
|
5672
5706
|
"text-center": e === cr,
|
|
@@ -5899,7 +5933,8 @@ const Zc = ({
|
|
|
5899
5933
|
size: s,
|
|
5900
5934
|
labelRight: u,
|
|
5901
5935
|
labelLeft: h,
|
|
5902
|
-
align: y
|
|
5936
|
+
align: y,
|
|
5937
|
+
animated: v
|
|
5903
5938
|
}),
|
|
5904
5939
|
ol({ type: e, size: s, labelRight: u, labelLeft: h }),
|
|
5905
5940
|
ul({ mode: n, variant: m, noBorder: c }),
|
|
@@ -5917,7 +5952,7 @@ const Zc = ({
|
|
|
5917
5952
|
)), hl = (e, t, r) => {
|
|
5918
5953
|
var n;
|
|
5919
5954
|
!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
|
-
},
|
|
5955
|
+
}, Nr = F.forwardRef((e, t) => {
|
|
5921
5956
|
const { onClick: r, noInternalClick: n = !1, ...a } = e;
|
|
5922
5957
|
return /* @__PURE__ */ l(
|
|
5923
5958
|
"button",
|
|
@@ -5930,7 +5965,7 @@ const Zc = ({
|
|
|
5930
5965
|
}
|
|
5931
5966
|
);
|
|
5932
5967
|
});
|
|
5933
|
-
|
|
5968
|
+
Nr.displayName = "BaseButton";
|
|
5934
5969
|
const ba = F.forwardRef(
|
|
5935
5970
|
({
|
|
5936
5971
|
children: e,
|
|
@@ -5948,7 +5983,7 @@ const ba = F.forwardRef(
|
|
|
5948
5983
|
...m
|
|
5949
5984
|
}, g) => {
|
|
5950
5985
|
const y = ya({
|
|
5951
|
-
type:
|
|
5986
|
+
type: Sr,
|
|
5952
5987
|
mode: r,
|
|
5953
5988
|
focusMode: n,
|
|
5954
5989
|
fullWidth: a,
|
|
@@ -5962,7 +5997,7 @@ const ba = F.forwardRef(
|
|
|
5962
5997
|
radius: d
|
|
5963
5998
|
});
|
|
5964
5999
|
return /* @__PURE__ */ l(
|
|
5965
|
-
|
|
6000
|
+
Nr,
|
|
5966
6001
|
{
|
|
5967
6002
|
ref: g,
|
|
5968
6003
|
className: y,
|
|
@@ -5978,7 +6013,7 @@ function pl() {
|
|
|
5978
6013
|
const e = T(!1);
|
|
5979
6014
|
return M(() => (e.current = !0, () => {
|
|
5980
6015
|
e.current = !1;
|
|
5981
|
-
}), []),
|
|
6016
|
+
}), []), X(() => e.current, []);
|
|
5982
6017
|
}
|
|
5983
6018
|
function yl(e) {
|
|
5984
6019
|
return de(() => e.every((t) => t == null) ? () => {
|
|
@@ -6043,8 +6078,8 @@ const vl = {
|
|
|
6043
6078
|
align: p = "center",
|
|
6044
6079
|
radius: v = "large",
|
|
6045
6080
|
variant: b = "primary",
|
|
6046
|
-
iconClassName:
|
|
6047
|
-
animated:
|
|
6081
|
+
iconClassName: x,
|
|
6082
|
+
animated: k = !1,
|
|
6048
6083
|
...I
|
|
6049
6084
|
}, _) => {
|
|
6050
6085
|
const $ = ya({
|
|
@@ -6063,22 +6098,23 @@ const vl = {
|
|
|
6063
6098
|
align: p,
|
|
6064
6099
|
radius: v,
|
|
6065
6100
|
variant: b,
|
|
6066
|
-
animated:
|
|
6067
|
-
}), B = fl({ mode: r, raw: s, iconClassName:
|
|
6101
|
+
animated: k
|
|
6102
|
+
}), 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
6103
|
return ge(() => {
|
|
6069
|
-
C && C.current && (
|
|
6070
|
-
}, [O, C, d, c]), ge(() => {
|
|
6071
|
-
|
|
6104
|
+
C && C.current && k && (D.current = O.width + kl[d] + (c ? 0 : wl));
|
|
6105
|
+
}, [O, C, d, c, k]), ge(() => {
|
|
6106
|
+
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
6107
|
}, [
|
|
6073
6108
|
R,
|
|
6074
6109
|
m,
|
|
6075
|
-
|
|
6110
|
+
w,
|
|
6076
6111
|
A,
|
|
6077
6112
|
g,
|
|
6078
|
-
|
|
6079
|
-
d
|
|
6113
|
+
S,
|
|
6114
|
+
d,
|
|
6115
|
+
k
|
|
6080
6116
|
]), /* @__PURE__ */ L(
|
|
6081
|
-
|
|
6117
|
+
Nr,
|
|
6082
6118
|
{
|
|
6083
6119
|
ref: U,
|
|
6084
6120
|
className: $,
|
|
@@ -6087,9 +6123,9 @@ const vl = {
|
|
|
6087
6123
|
"aria-label": u || h,
|
|
6088
6124
|
...I,
|
|
6089
6125
|
children: [
|
|
6090
|
-
/* @__PURE__ */ l("span", { ref:
|
|
6126
|
+
/* @__PURE__ */ l("span", { ref: S, className: E, children: g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }) }),
|
|
6091
6127
|
/* @__PURE__ */ l("span", { ref: C, className: B, children: e }),
|
|
6092
|
-
/* @__PURE__ */ l("span", { ref:
|
|
6128
|
+
/* @__PURE__ */ l("span", { ref: w, className: E, children: m && /* @__PURE__ */ l("span", { className: "pl-2", children: m }) })
|
|
6093
6129
|
]
|
|
6094
6130
|
}
|
|
6095
6131
|
);
|
|
@@ -6097,13 +6133,13 @@ const vl = {
|
|
|
6097
6133
|
);
|
|
6098
6134
|
va.displayName = "ButtonIcon";
|
|
6099
6135
|
/*!
|
|
6100
|
-
@versini/ui-button v4.2.
|
|
6136
|
+
@versini/ui-button v4.2.2
|
|
6101
6137
|
© 2025 gizmette.com
|
|
6102
6138
|
*/
|
|
6103
6139
|
try {
|
|
6104
6140
|
window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
|
|
6105
|
-
version: "4.2.
|
|
6106
|
-
buildTime: "01/
|
|
6141
|
+
version: "4.2.2",
|
|
6142
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
6107
6143
|
homepage: "https://github.com/aversini/ui-components",
|
|
6108
6144
|
license: "MIT"
|
|
6109
6145
|
});
|
|
@@ -6192,19 +6228,19 @@ const _l = 200, El = ({
|
|
|
6192
6228
|
] });
|
|
6193
6229
|
};
|
|
6194
6230
|
/*!
|
|
6195
|
-
@versini/ui-truncate v3.0.
|
|
6231
|
+
@versini/ui-truncate v3.0.19
|
|
6196
6232
|
© 2025 gizmette.com
|
|
6197
6233
|
*/
|
|
6198
6234
|
try {
|
|
6199
6235
|
window.__VERSINI_UI_TRUNCATE__ || (window.__VERSINI_UI_TRUNCATE__ = {
|
|
6200
|
-
version: "3.0.
|
|
6201
|
-
buildTime: "01/
|
|
6236
|
+
version: "3.0.19",
|
|
6237
|
+
buildTime: "01/26/2025 07:26 PM EST",
|
|
6202
6238
|
homepage: "https://github.com/aversini/ui-components",
|
|
6203
6239
|
license: "MIT"
|
|
6204
6240
|
});
|
|
6205
6241
|
} catch {
|
|
6206
6242
|
}
|
|
6207
|
-
const
|
|
6243
|
+
const Sl = ({ children: e }) => /* @__PURE__ */ l(
|
|
6208
6244
|
nl,
|
|
6209
6245
|
{
|
|
6210
6246
|
kind: "right",
|
|
@@ -6215,26 +6251,26 @@ const Nl = ({ children: e }) => /* @__PURE__ */ l(
|
|
|
6215
6251
|
), yn = _n(
|
|
6216
6252
|
() => import(
|
|
6217
6253
|
/* webpackChunkName: "LazyMessageAssistant" */
|
|
6218
|
-
"./MessageAssistant.
|
|
6254
|
+
"./MessageAssistant.BGPVUtl5.js"
|
|
6219
6255
|
).then((e) => e.MessageAssistant)
|
|
6220
|
-
),
|
|
6256
|
+
), Nl = () => {
|
|
6221
6257
|
const { state: e } = j(ue);
|
|
6222
6258
|
return /* @__PURE__ */ L("div", { className: "space-y-6 mt-2 @container", children: [
|
|
6223
6259
|
e && e.messages.length > 0 && e.messages.map((t, r) => {
|
|
6224
6260
|
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(
|
|
6261
|
+
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
6262
|
}),
|
|
6227
6263
|
Ma(Wt, e) && /* @__PURE__ */ l(jt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(yn, { loading: !0 }) })
|
|
6228
6264
|
] });
|
|
6229
6265
|
}, Cl = () => {
|
|
6230
|
-
const { isAuthenticated: e } = Ge(), { ref: t, inViewport: r } = po(), n =
|
|
6266
|
+
const { isAuthenticated: e } = Ge(), { ref: t, inViewport: r } = po(), n = Va({
|
|
6231
6267
|
isAuthenticated: e,
|
|
6232
6268
|
extraClass: "rounded-b-md"
|
|
6233
6269
|
});
|
|
6234
6270
|
return /* @__PURE__ */ L(_e, { children: [
|
|
6235
6271
|
/* @__PURE__ */ L("div", { className: n, children: [
|
|
6236
|
-
/* @__PURE__ */ l(
|
|
6237
|
-
/* @__PURE__ */ l(
|
|
6272
|
+
/* @__PURE__ */ l(Da, {}),
|
|
6273
|
+
/* @__PURE__ */ l(Nl, {}),
|
|
6238
6274
|
/* @__PURE__ */ l("div", { ref: t })
|
|
6239
6275
|
] }),
|
|
6240
6276
|
/* @__PURE__ */ l(bc, { show: !r })
|
|
@@ -6242,7 +6278,7 @@ const Nl = ({ children: e }) => /* @__PURE__ */ l(
|
|
|
6242
6278
|
}, Rl = _n(
|
|
6243
6279
|
() => import(
|
|
6244
6280
|
/* webpackChunkName: "LazyHeader" */
|
|
6245
|
-
"./index.
|
|
6281
|
+
"./index.B2CHNioG.js"
|
|
6246
6282
|
)
|
|
6247
6283
|
);
|
|
6248
6284
|
function ka({ isComponent: e = !1 }) {
|
|
@@ -6251,7 +6287,7 @@ function ka({ isComponent: e = !1 }) {
|
|
|
6251
6287
|
initialValue: ""
|
|
6252
6288
|
}), [a] = Gt({
|
|
6253
6289
|
key: Ht + Ua,
|
|
6254
|
-
initialValue:
|
|
6290
|
+
initialValue: De.ASC
|
|
6255
6291
|
}), [o, i] = Ct(ri, {
|
|
6256
6292
|
id: gr(),
|
|
6257
6293
|
model: Ce,
|
|
@@ -6342,24 +6378,24 @@ const jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6342
6378
|
export {
|
|
6343
6379
|
jl as App,
|
|
6344
6380
|
ue as AppContext,
|
|
6345
|
-
|
|
6381
|
+
De as B,
|
|
6346
6382
|
gc as ConfirmationPanel,
|
|
6347
6383
|
zl as De,
|
|
6348
6384
|
Gt as E,
|
|
6349
6385
|
nl as Ee,
|
|
6350
6386
|
Pl as Fe,
|
|
6351
6387
|
Gi as HistoryContext,
|
|
6352
|
-
|
|
6388
|
+
Zo as Me,
|
|
6353
6389
|
Wl as P,
|
|
6354
6390
|
Ml as Pe,
|
|
6355
6391
|
lt as R,
|
|
6356
6392
|
qe as SERVICE_TYPES,
|
|
6357
6393
|
Bl as Ue,
|
|
6358
|
-
|
|
6394
|
+
Dl as We,
|
|
6359
6395
|
fc as Ye,
|
|
6360
|
-
|
|
6396
|
+
Ze as _e,
|
|
6361
6397
|
wo as i,
|
|
6362
|
-
|
|
6398
|
+
Vl as je,
|
|
6363
6399
|
ao as m,
|
|
6364
6400
|
Er as me,
|
|
6365
6401
|
Ur as p,
|