@sudobility/components 5.0.43 → 5.0.45
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/index.js
CHANGED
|
@@ -2,23 +2,23 @@ import { clsx as pr } from "clsx";
|
|
|
2
2
|
import { twMerge as yr } from "tailwind-merge";
|
|
3
3
|
import { jsx as a, jsxs as h, Fragment as O } from "react/jsx-runtime";
|
|
4
4
|
import * as q from "react";
|
|
5
|
-
import
|
|
5
|
+
import D, { useState as I, useRef as B, useEffect as A, useCallback as R, createContext as Re, useMemo as ee, useContext as je, useLayoutEffect as xr, Component as Bt, memo as Le, lazy as se, Suspense as Ee } from "react";
|
|
6
6
|
import { cva as G } from "class-variance-authority";
|
|
7
|
-
import { textVariants as
|
|
7
|
+
import { textVariants as $, variants as j, getStatusIndicatorColor as de, getSectionBadgeColors as vr, getCardVariantColors as wr, ui as kr } from "@sudobility/design";
|
|
8
8
|
import { createPortal as et } from "react-dom";
|
|
9
|
-
import { ExclamationCircleIcon as Ge, CheckCircleIcon as
|
|
9
|
+
import { ExclamationCircleIcon as Ge, CheckCircleIcon as Fe, InformationCircleIcon as me, XCircleIcon as tt, BellAlertIcon as Nr, ExclamationTriangleIcon as rt, MinusIcon as bt, PlusIcon as pt, MagnifyingGlassIcon as Cr, XMarkIcon as We, CalendarIcon as Sr, CloudArrowUpIcon as Lr, DocumentIcon as Rt, Cog6ToothIcon as yt, CurrencyDollarIcon as Er, AdjustmentsHorizontalIcon as Mr, LinkIcon as Ir, FunnelIcon as Tr, ChatBubbleLeftRightIcon as Ar, ShieldCheckIcon as zr, ArrowRightIcon as jt, ArrowTopRightOnSquareIcon as $e, ChevronLeftIcon as $r, ChevronRightIcon as at, TrashIcon as Ur, PhotoIcon as xt, ArrowPathIcon as Pr, CheckIcon as Dr, ClipboardDocumentIcon as Br, EnvelopeIcon as Rr, LanguageIcon as jr } from "@heroicons/react/24/outline";
|
|
10
10
|
import { ArrowLeftIcon as Pm, ArrowRightIcon as Dm, Bars3Icon as Bm, BellIcon as Rm, BellSlashIcon as jm, ChartBarIcon as Fm, CheckCircleIcon as Wm, CheckIcon as Om, ChevronDownIcon as Vm, ChevronLeftIcon as _m, ChevronRightIcon as Hm, ChevronUpIcon as qm, ClockIcon as Km, CodeBracketIcon as Gm, Cog6ToothIcon as Ym, CreditCardIcon as Qm, DocumentTextIcon as Jm, EnvelopeIcon as Xm, ExclamationTriangleIcon as Zm, EyeSlashIcon as eh, GlobeAltIcon as th, HomeIcon as rh, InboxIcon as ah, InformationCircleIcon as nh, KeyIcon as oh, MegaphoneIcon as sh, MinusIcon as lh, PaperAirplaneIcon as ih, PaperClipIcon as ch, PlusIcon as dh, RocketLaunchIcon as uh, ShieldCheckIcon as gh, SparklesIcon as mh, StarIcon as hh, TrashIcon as fh, UserGroupIcon as bh, XMarkIcon as ph } from "@heroicons/react/24/outline";
|
|
11
11
|
import { XMarkIcon as Fr, MinusIcon as Wr, CheckIcon as Or } from "@heroicons/react/24/solid";
|
|
12
12
|
import { CheckCircleIcon as xh, CheckIcon as vh, ExclamationTriangleIcon as wh, StarIcon as kh } from "@heroicons/react/24/solid";
|
|
13
|
-
import { ChainType as vt, InfoType as
|
|
13
|
+
import { ChainType as vt, InfoType as ue } from "@sudobility/types";
|
|
14
14
|
import { Root as Ft, Thumb as Vr } from "@radix-ui/react-switch";
|
|
15
15
|
import * as _ from "@radix-ui/react-select";
|
|
16
16
|
import { ChevronDownIcon as nt, ChevronUpIcon as _r, CheckIcon as Hr } from "@heroicons/react/20/solid";
|
|
17
17
|
import { Root as Wt } from "@radix-ui/react-label";
|
|
18
18
|
import { Slot as qr } from "@radix-ui/react-slot";
|
|
19
|
-
import { Link as Me, useParams as
|
|
19
|
+
import { Link as Me, useParams as Oe, useNavigate as ot, useLocation as Ot, Outlet as Kr } from "react-router-dom";
|
|
20
20
|
import { Root as Gr, List as Vt, Trigger as _t, Content as Ht } from "@radix-ui/react-tabs";
|
|
21
|
-
import { useTranslation as
|
|
21
|
+
import { useTranslation as Ve } from "react-i18next";
|
|
22
22
|
import { onCLS as Yr, onINP as Qr, onFCP as Jr, onLCP as Xr, onTTFB as Zr } from "web-vitals";
|
|
23
23
|
function u(...t) {
|
|
24
24
|
return yr(pr(t));
|
|
@@ -336,9 +336,9 @@ const ea = ({
|
|
|
336
336
|
l && (c ? "h-full" : "w-full"),
|
|
337
337
|
d
|
|
338
338
|
),
|
|
339
|
-
children: i ?
|
|
339
|
+
children: i ? D.Children.map(t, (f, p) => /* @__PURE__ */ h(D.Fragment, { children: [
|
|
340
340
|
f,
|
|
341
|
-
p <
|
|
341
|
+
p < D.Children.count(t) - 1 && /* @__PURE__ */ a(
|
|
342
342
|
"div",
|
|
343
343
|
{
|
|
344
344
|
className: u(
|
|
@@ -489,7 +489,7 @@ const ea = ({
|
|
|
489
489
|
children: t
|
|
490
490
|
}
|
|
491
491
|
);
|
|
492
|
-
return
|
|
492
|
+
return D.createElement(
|
|
493
493
|
i,
|
|
494
494
|
{
|
|
495
495
|
id: d,
|
|
@@ -645,7 +645,7 @@ const ea = ({
|
|
|
645
645
|
"span",
|
|
646
646
|
{
|
|
647
647
|
className: u(
|
|
648
|
-
|
|
648
|
+
$.body.sm(),
|
|
649
649
|
"px-3 text-gray-500 dark:text-gray-400 whitespace-nowrap"
|
|
650
650
|
),
|
|
651
651
|
children: t
|
|
@@ -875,7 +875,7 @@ const ea = ({
|
|
|
875
875
|
resizable: c = !0,
|
|
876
876
|
className: g
|
|
877
877
|
}) => {
|
|
878
|
-
const [m, y] = I(n), [b, f] = I(!1), p =
|
|
878
|
+
const [m, y] = I(n), [b, f] = I(!1), p = B(null), x = o !== void 0 ? o : m, N = (C) => {
|
|
879
879
|
c && (C.preventDefault(), f(!0));
|
|
880
880
|
};
|
|
881
881
|
A(() => {
|
|
@@ -886,8 +886,8 @@ const ea = ({
|
|
|
886
886
|
const E = L.getBoundingClientRect();
|
|
887
887
|
let S;
|
|
888
888
|
r === "horizontal" ? S = (k.clientX - E.left) / E.width : S = (k.clientY - E.top) / E.height, S = Math.max(0, Math.min(1, S));
|
|
889
|
-
const M = r === "horizontal" ? E.width : E.height,
|
|
890
|
-
S = Math.max(
|
|
889
|
+
const M = r === "horizontal" ? E.width : E.height, z = typeof l == "string" ? parseFloat(l) / 100 * M : l, T = typeof i == "string" ? parseFloat(i) / 100 * M : i, U = z / M, F = 1 - T / M;
|
|
890
|
+
S = Math.max(U, Math.min(F, S)), o !== void 0 && s ? s(S) : y(S);
|
|
891
891
|
}, w = () => {
|
|
892
892
|
f(!1);
|
|
893
893
|
};
|
|
@@ -996,10 +996,10 @@ const ea = ({
|
|
|
996
996
|
showHandles: g = !0,
|
|
997
997
|
className: m
|
|
998
998
|
}) => {
|
|
999
|
-
const [y, b] = I(e), [f, p] = I(r), [x, N] = I(!1), [v, C] = I(null), w =
|
|
1000
|
-
|
|
1001
|
-
x:
|
|
1002
|
-
y:
|
|
999
|
+
const [y, b] = I(e), [f, p] = I(r), [x, N] = I(!1), [v, C] = I(null), w = B(null), k = B({ x: 0, y: 0, width: 0, height: 0 }), L = (M) => (z) => {
|
|
1000
|
+
z.preventDefault(), z.stopPropagation(), N(!0), C(M), k.current = {
|
|
1001
|
+
x: z.clientX,
|
|
1002
|
+
y: z.clientY,
|
|
1003
1003
|
width: y,
|
|
1004
1004
|
height: f
|
|
1005
1005
|
};
|
|
@@ -1007,14 +1007,14 @@ const ea = ({
|
|
|
1007
1007
|
A(() => {
|
|
1008
1008
|
if (!x || !v) return;
|
|
1009
1009
|
const M = (T) => {
|
|
1010
|
-
const
|
|
1011
|
-
let
|
|
1012
|
-
v.includes("right") ?
|
|
1013
|
-
},
|
|
1010
|
+
const U = T.clientX - k.current.x, F = T.clientY - k.current.y;
|
|
1011
|
+
let P = k.current.width, W = k.current.height;
|
|
1012
|
+
v.includes("right") ? P = k.current.width + U : v.includes("left") && (P = k.current.width - U), v.includes("bottom") ? W = k.current.height + F : v.includes("top") && (W = k.current.height - F), P = Math.max(n, P), W = Math.max(o, W), s && (P = Math.min(s, P)), l && (W = Math.min(l, W)), b(P), p(W), d && d(P, W);
|
|
1013
|
+
}, z = () => {
|
|
1014
1014
|
N(!1), C(null), c && c(y, f);
|
|
1015
1015
|
};
|
|
1016
|
-
return document.addEventListener("mousemove", M), document.addEventListener("mouseup",
|
|
1017
|
-
document.removeEventListener("mousemove", M), document.removeEventListener("mouseup",
|
|
1016
|
+
return document.addEventListener("mousemove", M), document.addEventListener("mouseup", z), () => {
|
|
1017
|
+
document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", z);
|
|
1018
1018
|
};
|
|
1019
1019
|
}, [
|
|
1020
1020
|
x,
|
|
@@ -1028,7 +1028,7 @@ const ea = ({
|
|
|
1028
1028
|
d,
|
|
1029
1029
|
c
|
|
1030
1030
|
]);
|
|
1031
|
-
const E =
|
|
1031
|
+
const E = R((M) => ({
|
|
1032
1032
|
top: "ns-resize",
|
|
1033
1033
|
right: "ew-resize",
|
|
1034
1034
|
bottom: "ns-resize",
|
|
@@ -1146,7 +1146,7 @@ const ea = ({
|
|
|
1146
1146
|
breakpoints: n,
|
|
1147
1147
|
className: o
|
|
1148
1148
|
}) => {
|
|
1149
|
-
const [s, l] = I(e), i =
|
|
1149
|
+
const [s, l] = I(e), i = B(null);
|
|
1150
1150
|
A(() => {
|
|
1151
1151
|
if (!n) return;
|
|
1152
1152
|
const g = () => {
|
|
@@ -1160,7 +1160,7 @@ const ea = ({
|
|
|
1160
1160
|
};
|
|
1161
1161
|
return g(), window.addEventListener("resize", g), () => window.removeEventListener("resize", g);
|
|
1162
1162
|
}, [n, e]);
|
|
1163
|
-
const d =
|
|
1163
|
+
const d = D.Children.toArray(t), c = Array.from(
|
|
1164
1164
|
{ length: s },
|
|
1165
1165
|
() => []
|
|
1166
1166
|
);
|
|
@@ -1183,7 +1183,7 @@ const ea = ({
|
|
|
1183
1183
|
))
|
|
1184
1184
|
}
|
|
1185
1185
|
);
|
|
1186
|
-
},
|
|
1186
|
+
}, he = ({ children: t, container: e }) => {
|
|
1187
1187
|
const [r, n] = I(!1);
|
|
1188
1188
|
if (A(() => (n(!0), () => n(!1)), []), !r) return null;
|
|
1189
1189
|
const o = e || document.body;
|
|
@@ -1197,7 +1197,7 @@ const ea = ({
|
|
|
1197
1197
|
zIndex: s = 40,
|
|
1198
1198
|
lockScroll: l = !0,
|
|
1199
1199
|
className: i
|
|
1200
|
-
}) => (
|
|
1200
|
+
}) => (D.useEffect(() => {
|
|
1201
1201
|
if (l) {
|
|
1202
1202
|
if (t) {
|
|
1203
1203
|
const c = window.innerWidth - document.documentElement.clientWidth;
|
|
@@ -1208,7 +1208,7 @@ const ea = ({
|
|
|
1208
1208
|
document.body.style.overflow = "", document.body.style.paddingRight = "";
|
|
1209
1209
|
};
|
|
1210
1210
|
}
|
|
1211
|
-
}, [t, l]), t ? /* @__PURE__ */ a(
|
|
1211
|
+
}, [t, l]), t ? /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(
|
|
1212
1212
|
"div",
|
|
1213
1213
|
{
|
|
1214
1214
|
className: u(
|
|
@@ -1339,7 +1339,7 @@ const ea = ({
|
|
|
1339
1339
|
center: "text-center",
|
|
1340
1340
|
right: "text-right"
|
|
1341
1341
|
}[s] : "", b = `h${e}`;
|
|
1342
|
-
return
|
|
1342
|
+
return D.createElement(
|
|
1343
1343
|
b,
|
|
1344
1344
|
{
|
|
1345
1345
|
className: u(
|
|
@@ -1355,11 +1355,11 @@ const ea = ({
|
|
|
1355
1355
|
}, oa = G("", {
|
|
1356
1356
|
variants: {
|
|
1357
1357
|
variant: {
|
|
1358
|
-
hero:
|
|
1359
|
-
display:
|
|
1360
|
-
h1:
|
|
1361
|
-
h2:
|
|
1362
|
-
h3:
|
|
1358
|
+
hero: $.heading.display.hero(),
|
|
1359
|
+
display: $.heading.display.lg(),
|
|
1360
|
+
h1: $.heading.h1(),
|
|
1361
|
+
h2: $.heading.h2(),
|
|
1362
|
+
h3: $.heading.h3()
|
|
1363
1363
|
},
|
|
1364
1364
|
responsive: {
|
|
1365
1365
|
true: "",
|
|
@@ -1404,11 +1404,11 @@ const ea = ({
|
|
|
1404
1404
|
), sa = G("", {
|
|
1405
1405
|
variants: {
|
|
1406
1406
|
variant: {
|
|
1407
|
-
h2:
|
|
1408
|
-
h3:
|
|
1409
|
-
h4:
|
|
1410
|
-
h5:
|
|
1411
|
-
h6:
|
|
1407
|
+
h2: $.heading.h2(),
|
|
1408
|
+
h3: $.heading.h3(),
|
|
1409
|
+
h4: $.heading.h4(),
|
|
1410
|
+
h5: $.heading.h5(),
|
|
1411
|
+
h6: $.heading.h6()
|
|
1412
1412
|
},
|
|
1413
1413
|
spacing: {
|
|
1414
1414
|
none: "",
|
|
@@ -1437,7 +1437,7 @@ const ea = ({
|
|
|
1437
1437
|
as: s
|
|
1438
1438
|
}) => {
|
|
1439
1439
|
const l = s || e;
|
|
1440
|
-
return
|
|
1440
|
+
return D.createElement(
|
|
1441
1441
|
l,
|
|
1442
1442
|
{
|
|
1443
1443
|
className: u(
|
|
@@ -1450,11 +1450,11 @@ const ea = ({
|
|
|
1450
1450
|
}, la = G("", {
|
|
1451
1451
|
variants: {
|
|
1452
1452
|
variant: {
|
|
1453
|
-
body:
|
|
1454
|
-
lead:
|
|
1455
|
-
large:
|
|
1456
|
-
small:
|
|
1457
|
-
caption:
|
|
1453
|
+
body: $.body.md(),
|
|
1454
|
+
lead: $.body.lg(),
|
|
1455
|
+
large: $.body.lg(),
|
|
1456
|
+
small: $.body.sm(),
|
|
1457
|
+
caption: $.body.xs()
|
|
1458
1458
|
},
|
|
1459
1459
|
color: {
|
|
1460
1460
|
default: "text-gray-700 dark:text-gray-300",
|
|
@@ -1480,16 +1480,16 @@ const ea = ({
|
|
|
1480
1480
|
align: n = "left",
|
|
1481
1481
|
className: o,
|
|
1482
1482
|
as: s = "p"
|
|
1483
|
-
}) =>
|
|
1483
|
+
}) => D.createElement(
|
|
1484
1484
|
s,
|
|
1485
1485
|
{ className: u(la({ variant: e, color: r, align: n }), o) },
|
|
1486
1486
|
t
|
|
1487
|
-
), ia = G(
|
|
1487
|
+
), ia = G($.link.default(), {
|
|
1488
1488
|
variants: {
|
|
1489
1489
|
variant: {
|
|
1490
|
-
default:
|
|
1491
|
-
subtle:
|
|
1492
|
-
muted:
|
|
1490
|
+
default: $.link.default(),
|
|
1491
|
+
subtle: $.link.subtle(),
|
|
1492
|
+
muted: $.link.muted(),
|
|
1493
1493
|
button: "inline-flex items-center justify-center px-4 py-2 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors"
|
|
1494
1494
|
},
|
|
1495
1495
|
external: {
|
|
@@ -1707,7 +1707,7 @@ const ea = ({
|
|
|
1707
1707
|
}, d = {
|
|
1708
1708
|
default: {
|
|
1709
1709
|
text: "text-gray-600 dark:text-gray-400",
|
|
1710
|
-
icon:
|
|
1710
|
+
icon: me
|
|
1711
1711
|
},
|
|
1712
1712
|
error: {
|
|
1713
1713
|
text: "text-red-600 dark:text-red-400",
|
|
@@ -1715,7 +1715,7 @@ const ea = ({
|
|
|
1715
1715
|
},
|
|
1716
1716
|
success: {
|
|
1717
1717
|
text: "text-green-600 dark:text-green-400",
|
|
1718
|
-
icon:
|
|
1718
|
+
icon: Fe
|
|
1719
1719
|
},
|
|
1720
1720
|
warning: {
|
|
1721
1721
|
text: "text-yellow-600 dark:text-yellow-400",
|
|
@@ -1817,8 +1817,8 @@ const ea = ({
|
|
|
1817
1817
|
updateInterval: r = 0,
|
|
1818
1818
|
className: n
|
|
1819
1819
|
}) => {
|
|
1820
|
-
const [, o] =
|
|
1821
|
-
|
|
1820
|
+
const [, o] = D.useState(0), s = D.useMemo(() => t instanceof Date ? t : new Date(t), [t]);
|
|
1821
|
+
D.useEffect(() => {
|
|
1822
1822
|
if (r === 0) return;
|
|
1823
1823
|
const c = setInterval(() => {
|
|
1824
1824
|
o((g) => g + 1);
|
|
@@ -1893,7 +1893,7 @@ const ea = ({
|
|
|
1893
1893
|
"p",
|
|
1894
1894
|
{
|
|
1895
1895
|
className: u(
|
|
1896
|
-
|
|
1896
|
+
$.body.md(),
|
|
1897
1897
|
"text-gray-700 dark:text-gray-300 mt-4"
|
|
1898
1898
|
),
|
|
1899
1899
|
children: e
|
|
@@ -2042,8 +2042,8 @@ const ea = ({
|
|
|
2042
2042
|
}
|
|
2043
2043
|
return p();
|
|
2044
2044
|
}, ca = {
|
|
2045
|
-
info:
|
|
2046
|
-
success:
|
|
2045
|
+
info: me,
|
|
2046
|
+
success: Fe,
|
|
2047
2047
|
warning: rt,
|
|
2048
2048
|
attention: Nr,
|
|
2049
2049
|
error: tt
|
|
@@ -2314,7 +2314,7 @@ const ea = ({
|
|
|
2314
2314
|
]
|
|
2315
2315
|
}
|
|
2316
2316
|
) : null;
|
|
2317
|
-
}, Kt =
|
|
2317
|
+
}, Kt = Re(null);
|
|
2318
2318
|
function ua() {
|
|
2319
2319
|
return `toast-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
2320
2320
|
}
|
|
@@ -2323,9 +2323,9 @@ function ul({
|
|
|
2323
2323
|
defaultDuration: e = 5e3,
|
|
2324
2324
|
maxToasts: r = 5
|
|
2325
2325
|
}) {
|
|
2326
|
-
const [n, o] = I([]), s =
|
|
2326
|
+
const [n, o] = I([]), s = R((y) => {
|
|
2327
2327
|
o((b) => b.filter((f) => f.id !== y));
|
|
2328
|
-
}, []), l =
|
|
2328
|
+
}, []), l = R(
|
|
2329
2329
|
(y, b, f) => {
|
|
2330
2330
|
const p = ua(), x = {
|
|
2331
2331
|
id: p,
|
|
@@ -2341,16 +2341,16 @@ function ul({
|
|
|
2341
2341
|
}, x.duration);
|
|
2342
2342
|
},
|
|
2343
2343
|
[e, r, s]
|
|
2344
|
-
), i =
|
|
2344
|
+
), i = R(
|
|
2345
2345
|
(y, b) => l("success", y, b),
|
|
2346
2346
|
[l]
|
|
2347
|
-
), d =
|
|
2347
|
+
), d = R(
|
|
2348
2348
|
(y, b) => l("error", y, b),
|
|
2349
2349
|
[l]
|
|
2350
|
-
), c =
|
|
2350
|
+
), c = R(
|
|
2351
2351
|
(y, b) => l("warning", y, b),
|
|
2352
2352
|
[l]
|
|
2353
|
-
), g =
|
|
2353
|
+
), g = R(
|
|
2354
2354
|
(y, b) => l("info", y, b),
|
|
2355
2355
|
[l]
|
|
2356
2356
|
), m = ee(
|
|
@@ -2547,7 +2547,7 @@ function gl({
|
|
|
2547
2547
|
);
|
|
2548
2548
|
}
|
|
2549
2549
|
function ml() {
|
|
2550
|
-
const t =
|
|
2550
|
+
const t = je(Kt);
|
|
2551
2551
|
if (!t)
|
|
2552
2552
|
throw new Error("useToast must be used within a ToastProvider");
|
|
2553
2553
|
return t;
|
|
@@ -2738,17 +2738,17 @@ const hl = ({
|
|
|
2738
2738
|
switch (t) {
|
|
2739
2739
|
case "verified":
|
|
2740
2740
|
case "success":
|
|
2741
|
-
return
|
|
2741
|
+
return de("success");
|
|
2742
2742
|
case "connected":
|
|
2743
2743
|
case "warning":
|
|
2744
|
-
return
|
|
2744
|
+
return de("warning");
|
|
2745
2745
|
case "disconnected":
|
|
2746
2746
|
case "error":
|
|
2747
|
-
return
|
|
2747
|
+
return de("error");
|
|
2748
2748
|
case "pending":
|
|
2749
|
-
return
|
|
2749
|
+
return de("info");
|
|
2750
2750
|
default:
|
|
2751
|
-
return
|
|
2751
|
+
return de("neutral");
|
|
2752
2752
|
}
|
|
2753
2753
|
}, pa = (t) => {
|
|
2754
2754
|
switch (t) {
|
|
@@ -2819,7 +2819,7 @@ const hl = ({
|
|
|
2819
2819
|
{
|
|
2820
2820
|
className: u(
|
|
2821
2821
|
"rounded-full flex-shrink-0",
|
|
2822
|
-
|
|
2822
|
+
de(t),
|
|
2823
2823
|
ya[e],
|
|
2824
2824
|
r && "animate-pulse",
|
|
2825
2825
|
n
|
|
@@ -3006,19 +3006,19 @@ const Nl = ({
|
|
|
3006
3006
|
trackingLabel: b,
|
|
3007
3007
|
componentName: f
|
|
3008
3008
|
}), v = (M) => {
|
|
3009
|
-
const
|
|
3010
|
-
if (isNaN(
|
|
3009
|
+
const z = parseFloat(M.target.value);
|
|
3010
|
+
if (isNaN(z)) {
|
|
3011
3011
|
if (M.target.value === "") {
|
|
3012
3012
|
const T = r ?? 0;
|
|
3013
3013
|
y && y(N("input")), e(T);
|
|
3014
3014
|
}
|
|
3015
3015
|
} else {
|
|
3016
|
-
const T = C(
|
|
3016
|
+
const T = C(z);
|
|
3017
3017
|
y && y(N("input")), e(T);
|
|
3018
3018
|
}
|
|
3019
3019
|
}, C = (M) => {
|
|
3020
|
-
let
|
|
3021
|
-
return r !== void 0 &&
|
|
3020
|
+
let z = M;
|
|
3021
|
+
return r !== void 0 && z < r && (z = r), n !== void 0 && z > n && (z = n), z;
|
|
3022
3022
|
}, w = () => {
|
|
3023
3023
|
const M = C(t + o);
|
|
3024
3024
|
y && y(N("increment")), e(M);
|
|
@@ -3027,16 +3027,16 @@ const Nl = ({
|
|
|
3027
3027
|
y && y(N("decrement")), e(M);
|
|
3028
3028
|
}, L = n === void 0 || t < n, E = r === void 0 || t > r, S = ({
|
|
3029
3029
|
onClick: M,
|
|
3030
|
-
icon:
|
|
3030
|
+
icon: z,
|
|
3031
3031
|
disabled: T,
|
|
3032
|
-
ariaLabel:
|
|
3032
|
+
ariaLabel: U
|
|
3033
3033
|
}) => /* @__PURE__ */ a(
|
|
3034
3034
|
"button",
|
|
3035
3035
|
{
|
|
3036
3036
|
type: "button",
|
|
3037
3037
|
onClick: M,
|
|
3038
3038
|
disabled: s || T,
|
|
3039
|
-
"aria-label":
|
|
3039
|
+
"aria-label": U,
|
|
3040
3040
|
className: u(
|
|
3041
3041
|
"inline-flex items-center justify-center",
|
|
3042
3042
|
"border border-gray-300 dark:border-gray-600",
|
|
@@ -3048,7 +3048,7 @@ const Nl = ({
|
|
|
3048
3048
|
x.button,
|
|
3049
3049
|
(s || T) && "opacity-50 cursor-not-allowed"
|
|
3050
3050
|
),
|
|
3051
|
-
children:
|
|
3051
|
+
children: z
|
|
3052
3052
|
}
|
|
3053
3053
|
);
|
|
3054
3054
|
return l && i === "sides" ? /* @__PURE__ */ h("div", { className: u("inline-flex items-stretch", g), children: [
|
|
@@ -3238,19 +3238,19 @@ const Nl = ({
|
|
|
3238
3238
|
iconLeft: "left-0 pl-3.5",
|
|
3239
3239
|
iconRight: "right-0 pr-3.5"
|
|
3240
3240
|
}
|
|
3241
|
-
}[s], w =
|
|
3241
|
+
}[s], w = R(
|
|
3242
3242
|
(E) => {
|
|
3243
3243
|
const S = E.target.value;
|
|
3244
3244
|
N || p(S), e?.(S);
|
|
3245
3245
|
},
|
|
3246
3246
|
[e, N]
|
|
3247
|
-
), k =
|
|
3247
|
+
), k = R(() => {
|
|
3248
3248
|
m && m({
|
|
3249
3249
|
action: "search",
|
|
3250
3250
|
trackingLabel: y,
|
|
3251
3251
|
componentName: b
|
|
3252
3252
|
});
|
|
3253
|
-
}, [m, y, b]), L =
|
|
3253
|
+
}, [m, y, b]), L = R(() => {
|
|
3254
3254
|
N || p(""), m && m({
|
|
3255
3255
|
action: "clear",
|
|
3256
3256
|
trackingLabel: y,
|
|
@@ -3313,7 +3313,7 @@ const Nl = ({
|
|
|
3313
3313
|
C.iconRight
|
|
3314
3314
|
),
|
|
3315
3315
|
"aria-label": "Clear search",
|
|
3316
|
-
children: /* @__PURE__ */ a(
|
|
3316
|
+
children: /* @__PURE__ */ a(We, { className: C.icon })
|
|
3317
3317
|
}
|
|
3318
3318
|
),
|
|
3319
3319
|
d && /* @__PURE__ */ a(
|
|
@@ -3469,7 +3469,7 @@ const va = ({
|
|
|
3469
3469
|
disabled: o = !1,
|
|
3470
3470
|
className: s
|
|
3471
3471
|
}) => {
|
|
3472
|
-
const [l, i] = I(!1), [d, c] = I("12"), [g, m] = I("00"), [y, b] = I("AM"), f =
|
|
3472
|
+
const [l, i] = I(!1), [d, c] = I("12"), [g, m] = I("00"), [y, b] = I("AM"), f = B(null);
|
|
3473
3473
|
A(() => {
|
|
3474
3474
|
if (t) {
|
|
3475
3475
|
const [C, w] = t.split(":"), k = parseInt(C, 10);
|
|
@@ -3827,28 +3827,28 @@ const va = ({
|
|
|
3827
3827
|
green: "success",
|
|
3828
3828
|
yellow: "warning",
|
|
3829
3829
|
red: "error"
|
|
3830
|
-
}[d] : i,
|
|
3830
|
+
}[d] : i, U = () => p ? S ? "bg-red-600 border-red-600" : "border-red-600 dark:border-red-500" : {
|
|
3831
3831
|
primary: S ? "bg-blue-600 border-blue-600" : "border-gray-300 dark:border-gray-600",
|
|
3832
3832
|
success: S ? "bg-green-600 border-green-600" : "border-gray-300 dark:border-gray-600",
|
|
3833
3833
|
warning: S ? "bg-yellow-600 border-yellow-600" : "border-gray-300 dark:border-gray-600",
|
|
3834
3834
|
error: S ? "bg-red-600 border-red-600" : "border-gray-300 dark:border-gray-600"
|
|
3835
3835
|
}[T], F = (V) => {
|
|
3836
3836
|
if (s) return;
|
|
3837
|
-
const
|
|
3838
|
-
E || L(
|
|
3837
|
+
const Y = V.target.checked;
|
|
3838
|
+
E || L(Y), v && v({
|
|
3839
3839
|
action: "toggle",
|
|
3840
3840
|
trackingLabel: C,
|
|
3841
3841
|
componentName: w
|
|
3842
|
-
}), r?.(
|
|
3843
|
-
},
|
|
3842
|
+
}), r?.(Y);
|
|
3843
|
+
}, P = (V) => {
|
|
3844
3844
|
if (!s && (V.key === " " || V.key === "Spacebar")) {
|
|
3845
3845
|
V.preventDefault();
|
|
3846
|
-
const
|
|
3847
|
-
E || L(
|
|
3846
|
+
const Y = !S;
|
|
3847
|
+
E || L(Y), v && v({
|
|
3848
3848
|
action: "toggle",
|
|
3849
3849
|
trackingLabel: C,
|
|
3850
3850
|
componentName: w
|
|
3851
|
-
}), r?.(
|
|
3851
|
+
}), r?.(Y);
|
|
3852
3852
|
}
|
|
3853
3853
|
}, W = M[l];
|
|
3854
3854
|
return /* @__PURE__ */ h("div", { className: u("inline-flex flex-col", c), children: [
|
|
@@ -3868,7 +3868,7 @@ const va = ({
|
|
|
3868
3868
|
checked: S,
|
|
3869
3869
|
defaultChecked: E ? void 0 : e,
|
|
3870
3870
|
onChange: F,
|
|
3871
|
-
onKeyDown:
|
|
3871
|
+
onKeyDown: P,
|
|
3872
3872
|
disabled: s,
|
|
3873
3873
|
id: g,
|
|
3874
3874
|
name: m,
|
|
@@ -3884,7 +3884,7 @@ const va = ({
|
|
|
3884
3884
|
className: u(
|
|
3885
3885
|
"rounded border-2 flex items-center justify-center transition-colors bg-white dark:bg-gray-900",
|
|
3886
3886
|
W.box,
|
|
3887
|
-
|
|
3887
|
+
U(),
|
|
3888
3888
|
!s && "hover:border-opacity-75"
|
|
3889
3889
|
),
|
|
3890
3890
|
children: f ? /* @__PURE__ */ a(Wr, { className: u("text-white", W.check) }) : S ? N || /* @__PURE__ */ a(Or, { className: u("text-white", W.check) }) : null
|
|
@@ -3966,7 +3966,7 @@ const Il = ({
|
|
|
3966
3966
|
renderOption: m,
|
|
3967
3967
|
className: y
|
|
3968
3968
|
}) => {
|
|
3969
|
-
const b =
|
|
3969
|
+
const b = B(null), p = {
|
|
3970
3970
|
sm: {
|
|
3971
3971
|
radio: "w-4 h-4",
|
|
3972
3972
|
label: "text-sm",
|
|
@@ -4208,7 +4208,7 @@ const Al = ({
|
|
|
4208
4208
|
disabled: i = !1,
|
|
4209
4209
|
className: d
|
|
4210
4210
|
}) => {
|
|
4211
|
-
const [c, g] = I(!1), [m, y] = I(""), b =
|
|
4211
|
+
const [c, g] = I(!1), [m, y] = I(""), b = B(null), f = s ? t.filter(
|
|
4212
4212
|
(w) => w.label.toLowerCase().includes(m.toLowerCase())
|
|
4213
4213
|
) : t, p = t.filter((w) => e.includes(w.value)), x = (w) => {
|
|
4214
4214
|
e.includes(w) ? r(e.filter((k) => k !== w)) : r([...e, w]);
|
|
@@ -4372,7 +4372,7 @@ const Al = ({
|
|
|
4372
4372
|
disabled: l = !1,
|
|
4373
4373
|
className: i
|
|
4374
4374
|
}) => {
|
|
4375
|
-
const [d, c] = I(!1), [g, m] = I(""), [y, b] = I(0), f =
|
|
4375
|
+
const [d, c] = I(!1), [g, m] = I(""), [y, b] = I(0), f = B(null), p = B(null), x = t.filter(
|
|
4376
4376
|
(w) => w.label.toLowerCase().includes(g.toLowerCase())
|
|
4377
4377
|
), N = t.find((w) => w.value === e);
|
|
4378
4378
|
A(() => {
|
|
@@ -4505,11 +4505,11 @@ const Al = ({
|
|
|
4505
4505
|
filterOptions: i = !0,
|
|
4506
4506
|
emptyMessage: d = "No matching options"
|
|
4507
4507
|
}) => {
|
|
4508
|
-
const [c, g] = I(!1), [m, y] = I(!1), [b, f] = I(!1), [p, x] = I(0), N =
|
|
4508
|
+
const [c, g] = I(!1), [m, y] = I(!1), [b, f] = I(!1), [p, x] = I(0), N = B(null), v = B(null), C = t.find((T) => T.value === e), w = C?.label && typeof C.label != "string", k = i && b ? t.filter((T) => (T.searchLabel || T.value).toLowerCase().includes(e.toLowerCase())) : t;
|
|
4509
4509
|
A(() => {
|
|
4510
4510
|
if (!c && !m) return;
|
|
4511
|
-
const T = (
|
|
4512
|
-
N.current && !N.current.contains(
|
|
4511
|
+
const T = (U) => {
|
|
4512
|
+
N.current && !N.current.contains(U.target) && (g(!1), y(!1), f(!1));
|
|
4513
4513
|
};
|
|
4514
4514
|
return document.addEventListener("mousedown", T), () => document.removeEventListener("mousedown", T);
|
|
4515
4515
|
}, [c, m]), A(() => {
|
|
@@ -4523,11 +4523,11 @@ const Al = ({
|
|
|
4523
4523
|
switch (T.key) {
|
|
4524
4524
|
case "ArrowDown":
|
|
4525
4525
|
T.preventDefault(), x(
|
|
4526
|
-
(
|
|
4526
|
+
(U) => U < k.length - 1 ? U + 1 : U
|
|
4527
4527
|
);
|
|
4528
4528
|
break;
|
|
4529
4529
|
case "ArrowUp":
|
|
4530
|
-
T.preventDefault(), x((
|
|
4530
|
+
T.preventDefault(), x((U) => U > 0 ? U - 1 : U);
|
|
4531
4531
|
break;
|
|
4532
4532
|
case "Enter":
|
|
4533
4533
|
T.preventDefault(), k[p] && !k[p].disabled && (r(k[p].value), g(!1), f(!1));
|
|
@@ -4539,13 +4539,13 @@ const Al = ({
|
|
|
4539
4539
|
g(!1), f(!1);
|
|
4540
4540
|
break;
|
|
4541
4541
|
}
|
|
4542
|
-
}, E = (T,
|
|
4543
|
-
|
|
4542
|
+
}, E = (T, U) => {
|
|
4543
|
+
U || (r(T), g(!1), y(!1), f(!1));
|
|
4544
4544
|
}, S = (T) => {
|
|
4545
4545
|
r(T.target.value), f(!0), c || g(!0);
|
|
4546
4546
|
}, M = () => {
|
|
4547
4547
|
o || (g(!c), c || v.current?.focus());
|
|
4548
|
-
},
|
|
4548
|
+
}, z = () => {
|
|
4549
4549
|
o || (y(!0), g(!0), setTimeout(() => v.current?.focus(), 0));
|
|
4550
4550
|
};
|
|
4551
4551
|
return /* @__PURE__ */ h("div", { ref: N, className: u("relative w-full", s), children: [
|
|
@@ -4554,7 +4554,7 @@ const Al = ({
|
|
|
4554
4554
|
"button",
|
|
4555
4555
|
{
|
|
4556
4556
|
type: "button",
|
|
4557
|
-
onClick:
|
|
4557
|
+
onClick: z,
|
|
4558
4558
|
disabled: o,
|
|
4559
4559
|
className: u(
|
|
4560
4560
|
j.input.default(),
|
|
@@ -4628,7 +4628,7 @@ const Al = ({
|
|
|
4628
4628
|
"rounded-md shadow-lg",
|
|
4629
4629
|
"max-h-60 overflow-y-auto"
|
|
4630
4630
|
),
|
|
4631
|
-
children: k.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: d }) : k.map((T,
|
|
4631
|
+
children: k.length === 0 ? /* @__PURE__ */ a("div", { className: "px-3 py-2 text-sm text-gray-500 dark:text-gray-400 text-center", children: d }) : k.map((T, U) => /* @__PURE__ */ a(
|
|
4632
4632
|
"button",
|
|
4633
4633
|
{
|
|
4634
4634
|
type: "button",
|
|
@@ -4639,7 +4639,7 @@ const Al = ({
|
|
|
4639
4639
|
"flex items-center gap-2",
|
|
4640
4640
|
"transition-colors",
|
|
4641
4641
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
4642
|
-
T.value === e ? "bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" :
|
|
4642
|
+
T.value === e ? "bg-blue-50 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : U === p ? "bg-gray-100 dark:bg-gray-800" : "hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
4643
4643
|
"text-gray-900 dark:text-gray-100"
|
|
4644
4644
|
),
|
|
4645
4645
|
children: T.label || T.value
|
|
@@ -4671,7 +4671,7 @@ const Ul = ({
|
|
|
4671
4671
|
trackingLabel: l,
|
|
4672
4672
|
componentName: i
|
|
4673
4673
|
}) => {
|
|
4674
|
-
const [d, c] = I(!1), g =
|
|
4674
|
+
const [d, c] = I(!1), g = D.useRef(null);
|
|
4675
4675
|
it(g, () => c(!1));
|
|
4676
4676
|
const m = (f) => {
|
|
4677
4677
|
f.disabled || (s && s({
|
|
@@ -4939,31 +4939,31 @@ const Ul = ({
|
|
|
4939
4939
|
trackingLabel: f,
|
|
4940
4940
|
componentName: p
|
|
4941
4941
|
}) => {
|
|
4942
|
-
const x =
|
|
4942
|
+
const x = B(null), [N, v] = I(!1), [C, w] = I(null), k = (P) => (w(null), o && d.length + P.length > o ? (w(`Maximum ${o} files allowed`), []) : P.filter((V) => n && V.size > n ? (w(
|
|
4943
4943
|
`File "${V.name}" exceeds maximum size of ${Xe(n)}`
|
|
4944
|
-
), !1) : !0)), L = (
|
|
4944
|
+
), !1) : !0)), L = (P) => {
|
|
4945
4945
|
b && b({
|
|
4946
|
-
action:
|
|
4946
|
+
action: P,
|
|
4947
4947
|
trackingLabel: f,
|
|
4948
4948
|
componentName: p
|
|
4949
4949
|
});
|
|
4950
|
-
}, E = (
|
|
4951
|
-
const W = Array.from(
|
|
4950
|
+
}, E = (P) => {
|
|
4951
|
+
const W = Array.from(P.target.files || []), V = k(W);
|
|
4952
4952
|
V.length > 0 && (L("select"), t(V)), x.current && (x.current.value = "");
|
|
4953
4953
|
}, S = () => {
|
|
4954
4954
|
x.current?.click();
|
|
4955
|
-
}, M = (
|
|
4956
|
-
|
|
4957
|
-
},
|
|
4958
|
-
|
|
4959
|
-
}, T = (
|
|
4960
|
-
|
|
4961
|
-
},
|
|
4962
|
-
if (
|
|
4963
|
-
const W = Array.from(
|
|
4955
|
+
}, M = (P) => {
|
|
4956
|
+
P.preventDefault(), P.stopPropagation(), s || v(!0);
|
|
4957
|
+
}, z = (P) => {
|
|
4958
|
+
P.preventDefault(), P.stopPropagation(), v(!1);
|
|
4959
|
+
}, T = (P) => {
|
|
4960
|
+
P.preventDefault(), P.stopPropagation();
|
|
4961
|
+
}, U = (P) => {
|
|
4962
|
+
if (P.preventDefault(), P.stopPropagation(), v(!1), s) return;
|
|
4963
|
+
const W = Array.from(P.dataTransfer.files), V = k(W);
|
|
4964
4964
|
V.length > 0 && (L("drop"), t(V));
|
|
4965
|
-
}, F = (
|
|
4966
|
-
c && (L("remove"), c(
|
|
4965
|
+
}, F = (P) => {
|
|
4966
|
+
c && (L("remove"), c(P));
|
|
4967
4967
|
};
|
|
4968
4968
|
return l ? /* @__PURE__ */ h("div", { className: u("w-full", g), children: [
|
|
4969
4969
|
/* @__PURE__ */ a(
|
|
@@ -4983,9 +4983,9 @@ const Ul = ({
|
|
|
4983
4983
|
{
|
|
4984
4984
|
onClick: S,
|
|
4985
4985
|
onDragEnter: M,
|
|
4986
|
-
onDragLeave:
|
|
4986
|
+
onDragLeave: z,
|
|
4987
4987
|
onDragOver: T,
|
|
4988
|
-
onDrop:
|
|
4988
|
+
onDrop: U,
|
|
4989
4989
|
className: u(
|
|
4990
4990
|
"relative border-2 border-dashed rounded-lg p-8",
|
|
4991
4991
|
"transition-colors duration-200",
|
|
@@ -5062,7 +5062,7 @@ const Ul = ({
|
|
|
5062
5062
|
onClick: () => e(n),
|
|
5063
5063
|
className: "flex-shrink-0 p-1 text-gray-400 hover:text-red-600 dark:hover:text-red-400 transition-colors",
|
|
5064
5064
|
"aria-label": "Remove file",
|
|
5065
|
-
children: /* @__PURE__ */ a(
|
|
5065
|
+
children: /* @__PURE__ */ a(We, { className: "h-5 w-5" })
|
|
5066
5066
|
}
|
|
5067
5067
|
)
|
|
5068
5068
|
]
|
|
@@ -5090,7 +5090,7 @@ const jl = ({
|
|
|
5090
5090
|
renderTag: y,
|
|
5091
5091
|
className: b
|
|
5092
5092
|
}) => {
|
|
5093
|
-
const f = o || s, [p, x] = I(""), N =
|
|
5093
|
+
const f = o || s, [p, x] = I(""), N = B(null), v = {
|
|
5094
5094
|
primary: "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300",
|
|
5095
5095
|
secondary: "bg-gray-100 dark:bg-gray-700 text-gray-700 dark:text-gray-300",
|
|
5096
5096
|
success: "bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-300",
|
|
@@ -5100,7 +5100,7 @@ const jl = ({
|
|
|
5100
5100
|
const M = S.trim();
|
|
5101
5101
|
M && (n && t.length >= n || !i && t.includes(M) || f && !f(M) || (e([...t, M]), x("")));
|
|
5102
5102
|
}, w = (S) => {
|
|
5103
|
-
e(t.filter((M,
|
|
5103
|
+
e(t.filter((M, z) => z !== S));
|
|
5104
5104
|
}, k = (S) => {
|
|
5105
5105
|
x(S.target.value);
|
|
5106
5106
|
}, L = (S) => {
|
|
@@ -5123,7 +5123,7 @@ const jl = ({
|
|
|
5123
5123
|
onClick: () => !d && N.current?.focus(),
|
|
5124
5124
|
children: [
|
|
5125
5125
|
t.map(
|
|
5126
|
-
(S, M) => y ? /* @__PURE__ */ a(
|
|
5126
|
+
(S, M) => y ? /* @__PURE__ */ a(D.Fragment, { children: y(S, M, () => w(M)) }, M) : /* @__PURE__ */ h(
|
|
5127
5127
|
"span",
|
|
5128
5128
|
{
|
|
5129
5129
|
className: u(
|
|
@@ -5139,8 +5139,8 @@ const jl = ({
|
|
|
5139
5139
|
"button",
|
|
5140
5140
|
{
|
|
5141
5141
|
type: "button",
|
|
5142
|
-
onClick: (
|
|
5143
|
-
|
|
5142
|
+
onClick: (z) => {
|
|
5143
|
+
z.stopPropagation(), w(M);
|
|
5144
5144
|
},
|
|
5145
5145
|
disabled: d,
|
|
5146
5146
|
className: u(
|
|
@@ -5212,20 +5212,20 @@ const jl = ({
|
|
|
5212
5212
|
disabled: s = !1,
|
|
5213
5213
|
className: l
|
|
5214
5214
|
}) => {
|
|
5215
|
-
const [i, d] = I(!1), [c, g] = I([]), [m, y] = I(0), [b, f] = I(0), p =
|
|
5215
|
+
const [i, d] = I(!1), [c, g] = I([]), [m, y] = I(0), [b, f] = I(0), p = B(null), x = B(null), N = (w) => {
|
|
5216
5216
|
const k = w.target.value, L = w.target.selectionStart || 0;
|
|
5217
5217
|
e(k), f(L);
|
|
5218
5218
|
const S = k.substring(0, L).split(/\s/), M = S[S.length - 1];
|
|
5219
5219
|
if (M.startsWith(n)) {
|
|
5220
|
-
const
|
|
5221
|
-
(
|
|
5220
|
+
const z = M.substring(n.length), T = r.filter(
|
|
5221
|
+
(U) => U.label.toLowerCase().includes(z.toLowerCase())
|
|
5222
5222
|
);
|
|
5223
5223
|
g(T), d(T.length > 0), y(0);
|
|
5224
5224
|
} else
|
|
5225
5225
|
d(!1);
|
|
5226
5226
|
}, v = (w) => {
|
|
5227
|
-
const k = t.substring(0, b), L = t.substring(b), E = k.split(/\s/), S = E[E.length - 1], M = k.length - S.length,
|
|
5228
|
-
if (e(
|
|
5227
|
+
const k = t.substring(0, b), L = t.substring(b), E = k.split(/\s/), S = E[E.length - 1], M = k.length - S.length, z = t.substring(0, M) + n + w.label + " " + L;
|
|
5228
|
+
if (e(z), d(!1), p.current) {
|
|
5229
5229
|
const T = M + n.length + w.label.length + 1;
|
|
5230
5230
|
setTimeout(() => {
|
|
5231
5231
|
p.current?.focus(), p.current?.setSelectionRange(T, T);
|
|
@@ -5313,7 +5313,7 @@ const jl = ({
|
|
|
5313
5313
|
)
|
|
5314
5314
|
] });
|
|
5315
5315
|
}, La = G(
|
|
5316
|
-
`${
|
|
5316
|
+
`${$.label.default()} peer-disabled:cursor-not-allowed peer-disabled:opacity-70`
|
|
5317
5317
|
), Qt = q.forwardRef(({ className: t, ...e }, r) => /* @__PURE__ */ a(Wt, { ref: r, className: u(La(), t), ...e }));
|
|
5318
5318
|
Qt.displayName = Wt.displayName;
|
|
5319
5319
|
const Wl = ({
|
|
@@ -5360,7 +5360,7 @@ const Wl = ({
|
|
|
5360
5360
|
{
|
|
5361
5361
|
id: p,
|
|
5362
5362
|
className: u(
|
|
5363
|
-
|
|
5363
|
+
$.body.sm(),
|
|
5364
5364
|
f ? "text-red-600 dark:text-red-400" : "text-gray-500 dark:text-gray-400"
|
|
5365
5365
|
),
|
|
5366
5366
|
role: f ? "alert" : void 0,
|
|
@@ -5397,7 +5397,7 @@ const Wl = ({
|
|
|
5397
5397
|
}
|
|
5398
5398
|
),
|
|
5399
5399
|
n && !r && /* @__PURE__ */ h("div", { className: "mt-1 flex items-start", children: [
|
|
5400
|
-
/* @__PURE__ */ a(
|
|
5400
|
+
/* @__PURE__ */ a(me, { className: "h-4 w-4 text-gray-400 mr-1 mt-0.5 flex-shrink-0" }),
|
|
5401
5401
|
/* @__PURE__ */ a("p", { className: "text-xs text-gray-500 dark:text-gray-400", children: n })
|
|
5402
5402
|
] })
|
|
5403
5403
|
] }),
|
|
@@ -5732,8 +5732,8 @@ const Kl = ({
|
|
|
5732
5732
|
const w = i.getFullYear(), k = i.getMonth(), L = c(i), E = g(i), S = [];
|
|
5733
5733
|
if (s) {
|
|
5734
5734
|
const M = c(new Date(w, k - 1));
|
|
5735
|
-
for (let
|
|
5736
|
-
S.push(new Date(w, k - 1, M -
|
|
5735
|
+
for (let z = E - 1; z >= 0; z--)
|
|
5736
|
+
S.push(new Date(w, k - 1, M - z));
|
|
5737
5737
|
} else
|
|
5738
5738
|
for (let M = 0; M < E; M++)
|
|
5739
5739
|
S.push(null);
|
|
@@ -5741,8 +5741,8 @@ const Kl = ({
|
|
|
5741
5741
|
S.push(new Date(w, k, M));
|
|
5742
5742
|
if (s) {
|
|
5743
5743
|
const M = 42 - S.length;
|
|
5744
|
-
for (let
|
|
5745
|
-
S.push(new Date(w, k + 1,
|
|
5744
|
+
for (let z = 1; z <= M; z++)
|
|
5745
|
+
S.push(new Date(w, k + 1, z));
|
|
5746
5746
|
}
|
|
5747
5747
|
return S;
|
|
5748
5748
|
})(), N = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], v = (w) => {
|
|
@@ -5997,11 +5997,11 @@ const Kl = ({
|
|
|
5997
5997
|
const S = new Date(
|
|
5998
5998
|
i.getFullYear(),
|
|
5999
5999
|
i.getMonth() + E
|
|
6000
|
-
), M = S.getFullYear(),
|
|
6001
|
-
for (let
|
|
6000
|
+
), M = S.getFullYear(), z = S.getMonth(), T = N(S), U = v(S), F = [];
|
|
6001
|
+
for (let P = 0; P < U; P++)
|
|
6002
6002
|
F.push(null);
|
|
6003
|
-
for (let
|
|
6004
|
-
F.push(new Date(M,
|
|
6003
|
+
for (let P = 1; P <= T; P++)
|
|
6004
|
+
F.push(new Date(M, z, P));
|
|
6005
6005
|
return {
|
|
6006
6006
|
days: F,
|
|
6007
6007
|
monthName: S.toLocaleDateString("en-US", {
|
|
@@ -6079,9 +6079,9 @@ const Kl = ({
|
|
|
6079
6079
|
className: "grid gap-4",
|
|
6080
6080
|
style: { gridTemplateColumns: `repeat(${s}, 1fr)` },
|
|
6081
6081
|
children: Array.from({ length: s }, (E, S) => {
|
|
6082
|
-
const { days: M, monthName:
|
|
6082
|
+
const { days: M, monthName: z } = C(S);
|
|
6083
6083
|
return /* @__PURE__ */ h("div", { children: [
|
|
6084
|
-
/* @__PURE__ */ a("h3", { className: "text-base font-semibold text-gray-900 dark:text-white mb-4 text-center", children:
|
|
6084
|
+
/* @__PURE__ */ a("h3", { className: "text-base font-semibold text-gray-900 dark:text-white mb-4 text-center", children: z }),
|
|
6085
6085
|
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1 mb-2", children: L.map((T) => /* @__PURE__ */ a(
|
|
6086
6086
|
"div",
|
|
6087
6087
|
{
|
|
@@ -6090,10 +6090,10 @@ const Kl = ({
|
|
|
6090
6090
|
},
|
|
6091
6091
|
T
|
|
6092
6092
|
)) }),
|
|
6093
|
-
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1", children: M.map((T,
|
|
6093
|
+
/* @__PURE__ */ a("div", { className: "grid grid-cols-7 gap-1", children: M.map((T, U) => {
|
|
6094
6094
|
if (!T)
|
|
6095
|
-
return /* @__PURE__ */ a("div", { className: "aspect-square" },
|
|
6096
|
-
const F = y(T),
|
|
6095
|
+
return /* @__PURE__ */ a("div", { className: "aspect-square" }, U);
|
|
6096
|
+
const F = y(T), P = f(T), W = p(T), V = b(T), Y = m(T, /* @__PURE__ */ new Date());
|
|
6097
6097
|
return /* @__PURE__ */ a(
|
|
6098
6098
|
"button",
|
|
6099
6099
|
{
|
|
@@ -6105,13 +6105,13 @@ const Kl = ({
|
|
|
6105
6105
|
"aspect-square flex items-center justify-center rounded-md text-sm transition-colors relative",
|
|
6106
6106
|
"disabled:opacity-40 disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
6107
6107
|
V && "bg-blue-100 dark:bg-blue-900/30",
|
|
6108
|
-
(
|
|
6109
|
-
!
|
|
6110
|
-
|
|
6108
|
+
(P || W) && "bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-500 dark:hover:bg-blue-600",
|
|
6109
|
+
!P && !W && !V && "hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
6110
|
+
Y && !P && !W && "border-2 border-blue-600 dark:border-blue-400"
|
|
6111
6111
|
),
|
|
6112
6112
|
children: T.getDate()
|
|
6113
6113
|
},
|
|
6114
|
-
|
|
6114
|
+
U
|
|
6115
6115
|
);
|
|
6116
6116
|
}) })
|
|
6117
6117
|
] }, S);
|
|
@@ -6726,7 +6726,7 @@ const Kl = ({
|
|
|
6726
6726
|
disabled: c = !1,
|
|
6727
6727
|
className: g
|
|
6728
6728
|
}) => {
|
|
6729
|
-
const [m, y] = I(""), [b, f] = I(!1), [p, x] = I(!1), v = typeof r == "string" ? o.find((S) => S.code === r) || Ct[0] : r, C =
|
|
6729
|
+
const [m, y] = I(""), [b, f] = I(!1), [p, x] = I(!1), v = typeof r == "string" ? o.find((S) => S.code === r) || Ct[0] : r, C = R(
|
|
6730
6730
|
(S) => {
|
|
6731
6731
|
const M = v.decimals ?? 2;
|
|
6732
6732
|
return S.toLocaleString("en-US", {
|
|
@@ -6740,10 +6740,10 @@ const Kl = ({
|
|
|
6740
6740
|
b || y(C(t || 0));
|
|
6741
6741
|
}, [t, C, b]);
|
|
6742
6742
|
const w = (S) => {
|
|
6743
|
-
const
|
|
6744
|
-
y(
|
|
6745
|
-
let
|
|
6746
|
-
i !== void 0 &&
|
|
6743
|
+
const z = S.target.value.replace(/[^\d.]/g, ""), T = z.split("."), U = T.length > 2 ? `${T[0]}.${T.slice(1).join("")}` : z;
|
|
6744
|
+
y(U);
|
|
6745
|
+
let P = parseFloat(U) || 0;
|
|
6746
|
+
i !== void 0 && P < i && (P = i), d !== void 0 && P > d && (P = d), e(P);
|
|
6747
6747
|
}, k = () => {
|
|
6748
6748
|
f(!0), y(t ? t.toString() : "");
|
|
6749
6749
|
}, L = () => {
|
|
@@ -7089,7 +7089,7 @@ const Kl = ({
|
|
|
7089
7089
|
}
|
|
7090
7090
|
};
|
|
7091
7091
|
return /* @__PURE__ */ h("div", { className: u("flex items-center gap-2", i), children: [
|
|
7092
|
-
n && /* @__PURE__ */ h("span", { className:
|
|
7092
|
+
n && /* @__PURE__ */ h("span", { className: $.label.default(), children: [
|
|
7093
7093
|
n,
|
|
7094
7094
|
":"
|
|
7095
7095
|
] }),
|
|
@@ -7217,7 +7217,7 @@ const Kl = ({
|
|
|
7217
7217
|
className: s = "",
|
|
7218
7218
|
threshold: l = 0.1
|
|
7219
7219
|
}) => {
|
|
7220
|
-
const [i, d] = I(!1), [c, g] = I(!1), m =
|
|
7220
|
+
const [i, d] = I(!1), [c, g] = I(!1), m = B(null);
|
|
7221
7221
|
A(() => {
|
|
7222
7222
|
if (!St() || typeof IntersectionObserver > "u") {
|
|
7223
7223
|
d(!0), n && g(!0);
|
|
@@ -7313,28 +7313,28 @@ const Kl = ({
|
|
|
7313
7313
|
}
|
|
7314
7314
|
) : null;
|
|
7315
7315
|
}, Ua = {
|
|
7316
|
-
[
|
|
7317
|
-
icon:
|
|
7316
|
+
[ue.INFO]: {
|
|
7317
|
+
icon: me,
|
|
7318
7318
|
container: "bg-blue-50 dark:bg-blue-950 border-blue-200 dark:border-blue-800",
|
|
7319
7319
|
iconColor: "text-blue-600 dark:text-blue-400",
|
|
7320
7320
|
titleColor: "text-blue-900 dark:text-blue-100",
|
|
7321
7321
|
descriptionColor: "text-blue-700 dark:text-blue-300"
|
|
7322
7322
|
},
|
|
7323
|
-
[
|
|
7324
|
-
icon:
|
|
7323
|
+
[ue.SUCCESS]: {
|
|
7324
|
+
icon: Fe,
|
|
7325
7325
|
container: "bg-green-50 dark:bg-green-950 border-green-200 dark:border-green-800",
|
|
7326
7326
|
iconColor: "text-green-600 dark:text-green-400",
|
|
7327
7327
|
titleColor: "text-green-900 dark:text-green-100",
|
|
7328
7328
|
descriptionColor: "text-green-700 dark:text-green-300"
|
|
7329
7329
|
},
|
|
7330
|
-
[
|
|
7330
|
+
[ue.WARNING]: {
|
|
7331
7331
|
icon: rt,
|
|
7332
7332
|
container: "bg-yellow-50 dark:bg-amber-950 border-yellow-200 dark:border-amber-800",
|
|
7333
7333
|
iconColor: "text-yellow-600 dark:text-amber-400",
|
|
7334
7334
|
titleColor: "text-yellow-900 dark:text-amber-100",
|
|
7335
7335
|
descriptionColor: "text-yellow-700 dark:text-amber-300"
|
|
7336
7336
|
},
|
|
7337
|
-
[
|
|
7337
|
+
[ue.ERROR]: {
|
|
7338
7338
|
icon: tt,
|
|
7339
7339
|
container: "bg-red-50 dark:bg-red-950 border-red-200 dark:border-red-800",
|
|
7340
7340
|
iconColor: "text-red-600 dark:text-red-400",
|
|
@@ -7346,17 +7346,17 @@ const Kl = ({
|
|
|
7346
7346
|
onDismiss: e,
|
|
7347
7347
|
title: r,
|
|
7348
7348
|
description: n,
|
|
7349
|
-
variant: o =
|
|
7349
|
+
variant: o = ue.INFO,
|
|
7350
7350
|
duration: s = 5e3,
|
|
7351
7351
|
icon: l,
|
|
7352
7352
|
className: i,
|
|
7353
7353
|
closeAriaLabel: d = "Dismiss banner"
|
|
7354
7354
|
}) => {
|
|
7355
|
-
const [c, g] = I("hidden"), m =
|
|
7355
|
+
const [c, g] = I("hidden"), m = B(null), y = B(
|
|
7356
7356
|
null
|
|
7357
|
-
), b = Ua[o], f = b.icon, p =
|
|
7357
|
+
), b = Ua[o], f = b.icon, p = R(() => {
|
|
7358
7358
|
m.current && (clearTimeout(m.current), m.current = null), y.current && (clearTimeout(y.current), y.current = null);
|
|
7359
|
-
}, []), x =
|
|
7359
|
+
}, []), x = R(() => {
|
|
7360
7360
|
p(), g("exiting"), y.current = setTimeout(() => {
|
|
7361
7361
|
g("hidden"), e();
|
|
7362
7362
|
}, 300);
|
|
@@ -7412,7 +7412,7 @@ const Kl = ({
|
|
|
7412
7412
|
"focus:ring-current"
|
|
7413
7413
|
),
|
|
7414
7414
|
"aria-label": d,
|
|
7415
|
-
children: /* @__PURE__ */ a(
|
|
7415
|
+
children: /* @__PURE__ */ a(We, { className: u("h-5 w-5", b.iconColor) })
|
|
7416
7416
|
}
|
|
7417
7417
|
)
|
|
7418
7418
|
]
|
|
@@ -7422,17 +7422,17 @@ const Kl = ({
|
|
|
7422
7422
|
);
|
|
7423
7423
|
return et(N, document.body);
|
|
7424
7424
|
}, ki = (t = {}) => {
|
|
7425
|
-
const { defaultDuration: e = 5e3 } = t, [r, n] = I(!1), [o, s] = I(null), l =
|
|
7425
|
+
const { defaultDuration: e = 5e3 } = t, [r, n] = I(!1), [o, s] = I(null), l = R(
|
|
7426
7426
|
({
|
|
7427
7427
|
title: d,
|
|
7428
7428
|
description: c,
|
|
7429
|
-
variant: g =
|
|
7429
|
+
variant: g = ue.INFO,
|
|
7430
7430
|
duration: m = e
|
|
7431
7431
|
}) => {
|
|
7432
7432
|
s({ title: d, description: c, variant: g, duration: m }), n(!0);
|
|
7433
7433
|
},
|
|
7434
7434
|
[e]
|
|
7435
|
-
), i =
|
|
7435
|
+
), i = R(() => {
|
|
7436
7436
|
n(!1);
|
|
7437
7437
|
}, []);
|
|
7438
7438
|
return {
|
|
@@ -7456,7 +7456,7 @@ const Kl = ({
|
|
|
7456
7456
|
m.key === "Escape" && e();
|
|
7457
7457
|
};
|
|
7458
7458
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
7459
|
-
}, [t, e, l]), t ? /* @__PURE__ */ h(
|
|
7459
|
+
}, [t, e, l]), t ? /* @__PURE__ */ h(he, { children: [
|
|
7460
7460
|
/* @__PURE__ */ a(
|
|
7461
7461
|
st,
|
|
7462
7462
|
{
|
|
@@ -7525,7 +7525,7 @@ const Kl = ({
|
|
|
7525
7525
|
emptyMessage: o = "No results found.",
|
|
7526
7526
|
className: s
|
|
7527
7527
|
}) => {
|
|
7528
|
-
const [l, i] = I(""), [d, c] = I(0), g =
|
|
7528
|
+
const [l, i] = I(""), [d, c] = I(0), g = B(null), m = r.filter((p) => {
|
|
7529
7529
|
const x = l.toLowerCase();
|
|
7530
7530
|
return p.label.toLowerCase().includes(x) || p.keywords?.some((N) => N.toLowerCase().includes(x)) || p.group?.toLowerCase().includes(x);
|
|
7531
7531
|
}), y = m.reduce(
|
|
@@ -8140,7 +8140,7 @@ const zi = ({
|
|
|
8140
8140
|
e && /* @__PURE__ */ a(
|
|
8141
8141
|
"h3",
|
|
8142
8142
|
{
|
|
8143
|
-
className: u(
|
|
8143
|
+
className: u($.body.strong.md(), c.title),
|
|
8144
8144
|
children: e
|
|
8145
8145
|
}
|
|
8146
8146
|
)
|
|
@@ -8268,19 +8268,19 @@ const zi = ({
|
|
|
8268
8268
|
}) => {
|
|
8269
8269
|
const g = {
|
|
8270
8270
|
sm: {
|
|
8271
|
-
title:
|
|
8272
|
-
description:
|
|
8273
|
-
count:
|
|
8271
|
+
title: $.heading.h4(),
|
|
8272
|
+
description: $.body.sm(),
|
|
8273
|
+
count: $.caption.default()
|
|
8274
8274
|
},
|
|
8275
8275
|
md: {
|
|
8276
|
-
title:
|
|
8277
|
-
description:
|
|
8278
|
-
count:
|
|
8276
|
+
title: $.heading.h3(),
|
|
8277
|
+
description: $.body.md(),
|
|
8278
|
+
count: $.body.sm()
|
|
8279
8279
|
},
|
|
8280
8280
|
lg: {
|
|
8281
|
-
title:
|
|
8282
|
-
description:
|
|
8283
|
-
count:
|
|
8281
|
+
title: $.heading.h2(),
|
|
8282
|
+
description: $.body.lg(),
|
|
8283
|
+
count: $.body.md()
|
|
8284
8284
|
}
|
|
8285
8285
|
}[i];
|
|
8286
8286
|
return /* @__PURE__ */ h("div", { className: u("flex items-start justify-between gap-4", d), children: [
|
|
@@ -8547,7 +8547,7 @@ const zi = ({
|
|
|
8547
8547
|
onClick: () => r(o.id),
|
|
8548
8548
|
className: u(
|
|
8549
8549
|
"w-full flex items-center text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
|
|
8550
|
-
|
|
8550
|
+
$.body.sm(),
|
|
8551
8551
|
l ? "bg-orange-100 dark:bg-orange-900/30 text-orange-700 dark:text-orange-300" : "hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300"
|
|
8552
8552
|
),
|
|
8553
8553
|
"aria-current": l ? "page" : void 0,
|
|
@@ -8743,7 +8743,7 @@ const zi = ({
|
|
|
8743
8743
|
return () => clearTimeout(y);
|
|
8744
8744
|
}
|
|
8745
8745
|
}, [t, d, e, r, n, o]);
|
|
8746
|
-
const g =
|
|
8746
|
+
const g = R(() => {
|
|
8747
8747
|
i(
|
|
8748
8748
|
(m) => m.map((y) => ({
|
|
8749
8749
|
...y,
|
|
@@ -8792,13 +8792,13 @@ const zi = ({
|
|
|
8792
8792
|
variants: {
|
|
8793
8793
|
variant: {
|
|
8794
8794
|
// Subtle internal link - barely noticeable color change
|
|
8795
|
-
subtle:
|
|
8795
|
+
subtle: $.link.subtle(),
|
|
8796
8796
|
// Default internal link
|
|
8797
|
-
default:
|
|
8797
|
+
default: $.link.default(),
|
|
8798
8798
|
// Muted link for secondary navigation
|
|
8799
|
-
muted:
|
|
8799
|
+
muted: $.link.muted(),
|
|
8800
8800
|
// External link with indicator
|
|
8801
|
-
external:
|
|
8801
|
+
external: $.link.external(),
|
|
8802
8802
|
// Inherit parent styling with minimal changes
|
|
8803
8803
|
inherit: "text-inherit hover:text-blue-600 dark:hover:text-blue-400 underline-offset-2 hover:underline transition-colors duration-200"
|
|
8804
8804
|
},
|
|
@@ -9010,7 +9010,7 @@ const Yi = (t, e) => q.useMemo(() => {
|
|
|
9010
9010
|
),
|
|
9011
9011
|
children: [
|
|
9012
9012
|
e,
|
|
9013
|
-
o && y && /* @__PURE__ */ a(
|
|
9013
|
+
o && y && /* @__PURE__ */ a($e, { className: "inline-block h-4 w-4 ml-1" })
|
|
9014
9014
|
]
|
|
9015
9015
|
}
|
|
9016
9016
|
) : /* @__PURE__ */ h(
|
|
@@ -9027,7 +9027,7 @@ const Yi = (t, e) => q.useMemo(() => {
|
|
|
9027
9027
|
...m,
|
|
9028
9028
|
children: [
|
|
9029
9029
|
e,
|
|
9030
|
-
o && y && /* @__PURE__ */ a(
|
|
9030
|
+
o && y && /* @__PURE__ */ a($e, { className: "inline-block h-4 w-4 ml-1 flex-shrink-0" })
|
|
9031
9031
|
]
|
|
9032
9032
|
}
|
|
9033
9033
|
);
|
|
@@ -9043,17 +9043,17 @@ const Yi = (t, e) => q.useMemo(() => {
|
|
|
9043
9043
|
}) => {
|
|
9044
9044
|
const d = {
|
|
9045
9045
|
sm: {
|
|
9046
|
-
text:
|
|
9046
|
+
text: $.body.sm(),
|
|
9047
9047
|
icon: "h-3 w-3",
|
|
9048
9048
|
gap: "gap-1"
|
|
9049
9049
|
},
|
|
9050
9050
|
md: {
|
|
9051
|
-
text:
|
|
9051
|
+
text: $.body.md(),
|
|
9052
9052
|
icon: "h-4 w-4",
|
|
9053
9053
|
gap: "gap-1.5"
|
|
9054
9054
|
},
|
|
9055
9055
|
lg: {
|
|
9056
|
-
text:
|
|
9056
|
+
text: $.body.lg(),
|
|
9057
9057
|
icon: "h-5 w-5",
|
|
9058
9058
|
gap: "gap-2"
|
|
9059
9059
|
}
|
|
@@ -9081,14 +9081,14 @@ const Yi = (t, e) => q.useMemo(() => {
|
|
|
9081
9081
|
),
|
|
9082
9082
|
children: [
|
|
9083
9083
|
r && n === "left" && /* @__PURE__ */ a(
|
|
9084
|
-
|
|
9084
|
+
$e,
|
|
9085
9085
|
{
|
|
9086
9086
|
className: u(g.icon, "flex-shrink-0")
|
|
9087
9087
|
}
|
|
9088
9088
|
),
|
|
9089
9089
|
/* @__PURE__ */ a("span", { children: e }),
|
|
9090
9090
|
r && n === "right" && /* @__PURE__ */ a(
|
|
9091
|
-
|
|
9091
|
+
$e,
|
|
9092
9092
|
{
|
|
9093
9093
|
className: u(g.icon, "flex-shrink-0")
|
|
9094
9094
|
}
|
|
@@ -9096,9 +9096,9 @@ const Yi = (t, e) => q.useMemo(() => {
|
|
|
9096
9096
|
]
|
|
9097
9097
|
}
|
|
9098
9098
|
);
|
|
9099
|
-
},
|
|
9100
|
-
|
|
9101
|
-
}, ec = (t) =>
|
|
9099
|
+
}, Ue = /* @__PURE__ */ new Set(), Zi = () => {
|
|
9100
|
+
Ue.clear();
|
|
9101
|
+
}, ec = (t) => Ue.has(t);
|
|
9102
9102
|
function Ga(t, e, r, n) {
|
|
9103
9103
|
let o = t;
|
|
9104
9104
|
if (r.length > 0) {
|
|
@@ -9126,9 +9126,9 @@ const tc = ({
|
|
|
9126
9126
|
onFocus: c,
|
|
9127
9127
|
...g
|
|
9128
9128
|
}) => {
|
|
9129
|
-
const m =
|
|
9129
|
+
const m = B(null), y = R(() => {
|
|
9130
9130
|
const N = typeof s == "string" ? s : s.pathname || "";
|
|
9131
|
-
if (
|
|
9131
|
+
if (Ue.has(N))
|
|
9132
9132
|
return;
|
|
9133
9133
|
const v = t || Ga(
|
|
9134
9134
|
N,
|
|
@@ -9138,7 +9138,7 @@ const tc = ({
|
|
|
9138
9138
|
);
|
|
9139
9139
|
v && (m.current = setTimeout(() => {
|
|
9140
9140
|
v().then(() => {
|
|
9141
|
-
|
|
9141
|
+
Ue.add(N);
|
|
9142
9142
|
}).catch(() => {
|
|
9143
9143
|
});
|
|
9144
9144
|
}, e));
|
|
@@ -9149,19 +9149,19 @@ const tc = ({
|
|
|
9149
9149
|
r,
|
|
9150
9150
|
n,
|
|
9151
9151
|
o
|
|
9152
|
-
]), b =
|
|
9152
|
+
]), b = R(() => {
|
|
9153
9153
|
m.current && (clearTimeout(m.current), m.current = null);
|
|
9154
|
-
}, []), f =
|
|
9154
|
+
}, []), f = R(
|
|
9155
9155
|
(N) => {
|
|
9156
9156
|
y(), i?.(N);
|
|
9157
9157
|
},
|
|
9158
9158
|
[y, i]
|
|
9159
|
-
), p =
|
|
9159
|
+
), p = R(
|
|
9160
9160
|
(N) => {
|
|
9161
9161
|
b(), d?.(N);
|
|
9162
9162
|
},
|
|
9163
9163
|
[b, d]
|
|
9164
|
-
), x =
|
|
9164
|
+
), x = R(
|
|
9165
9165
|
(N) => {
|
|
9166
9166
|
y(), c?.(N);
|
|
9167
9167
|
},
|
|
@@ -9182,7 +9182,7 @@ const tc = ({
|
|
|
9182
9182
|
items: t,
|
|
9183
9183
|
separator: e = "/",
|
|
9184
9184
|
className: r
|
|
9185
|
-
}) => /* @__PURE__ */ a("nav", { className: u("flex items-center gap-2 text-sm", r), children: t.map((n, o) => /* @__PURE__ */ h(
|
|
9185
|
+
}) => /* @__PURE__ */ a("nav", { className: u("flex items-center gap-2 text-sm", r), children: t.map((n, o) => /* @__PURE__ */ h(D.Fragment, { children: [
|
|
9186
9186
|
o > 0 && /* @__PURE__ */ a("span", { className: "text-gray-400 dark:text-gray-600", children: e }),
|
|
9187
9187
|
o === t.length - 1 ? /* @__PURE__ */ a("span", { className: "text-gray-900 dark:text-white font-medium", children: n.label }) : /* @__PURE__ */ a(
|
|
9188
9188
|
"button",
|
|
@@ -9365,7 +9365,7 @@ const ac = ({
|
|
|
9365
9365
|
children: [
|
|
9366
9366
|
/* @__PURE__ */ a(i, { className: "h-5 w-5 mt-0.5 mr-3 flex-shrink-0" }),
|
|
9367
9367
|
/* @__PURE__ */ h("div", { className: "flex-1 min-w-0", children: [
|
|
9368
|
-
/* @__PURE__ */ h("div", { className: u("font-medium",
|
|
9368
|
+
/* @__PURE__ */ h("div", { className: u("font-medium", $.body.md()), children: [
|
|
9369
9369
|
l.label,
|
|
9370
9370
|
l.badge !== void 0 && l.badge > 0 && /* @__PURE__ */ a("span", { className: "ml-2 inline-flex items-center justify-center px-2 py-0.5 text-xs font-medium bg-blue-100 dark:bg-blue-900 text-blue-800 dark:text-blue-200 rounded-full", children: l.badge })
|
|
9371
9371
|
] }),
|
|
@@ -9411,17 +9411,17 @@ const ac = ({
|
|
|
9411
9411
|
sm: {
|
|
9412
9412
|
button: "h-8 w-8 text-xs",
|
|
9413
9413
|
icon: "h-3 w-3",
|
|
9414
|
-
text:
|
|
9414
|
+
text: $.body.sm()
|
|
9415
9415
|
},
|
|
9416
9416
|
md: {
|
|
9417
9417
|
button: "h-10 w-10 text-sm",
|
|
9418
9418
|
icon: "h-4 w-4",
|
|
9419
|
-
text:
|
|
9419
|
+
text: $.body.md()
|
|
9420
9420
|
},
|
|
9421
9421
|
lg: {
|
|
9422
9422
|
button: "h-12 w-12 text-base",
|
|
9423
9423
|
icon: "h-5 w-5",
|
|
9424
|
-
text:
|
|
9424
|
+
text: $.body.lg()
|
|
9425
9425
|
}
|
|
9426
9426
|
}[s], g = (() => {
|
|
9427
9427
|
const v = [];
|
|
@@ -9593,7 +9593,7 @@ const ac = ({
|
|
|
9593
9593
|
}, i = (d) => d < e ? "completed" : d === e ? "active" : "upcoming";
|
|
9594
9594
|
return r === "horizontal" ? /* @__PURE__ */ a("div", { className: u("w-full", s), children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: t.map((d, c) => {
|
|
9595
9595
|
const g = i(c), m = c === t.length - 1;
|
|
9596
|
-
return /* @__PURE__ */ h(
|
|
9596
|
+
return /* @__PURE__ */ h(D.Fragment, { children: [
|
|
9597
9597
|
/* @__PURE__ */ h("div", { className: "flex flex-col items-center", children: [
|
|
9598
9598
|
/* @__PURE__ */ a(
|
|
9599
9599
|
"button",
|
|
@@ -9812,7 +9812,7 @@ const ac = ({
|
|
|
9812
9812
|
parentSectionId: n,
|
|
9813
9813
|
onSubsectionSelect: o
|
|
9814
9814
|
}) => {
|
|
9815
|
-
const s =
|
|
9815
|
+
const s = B(null), [l, i] = I(void 0);
|
|
9816
9816
|
return A(() => {
|
|
9817
9817
|
if (s.current) {
|
|
9818
9818
|
const d = s.current.scrollHeight;
|
|
@@ -9993,7 +9993,7 @@ const gc = ({
|
|
|
9993
9993
|
children: /* @__PURE__ */ a(
|
|
9994
9994
|
"p",
|
|
9995
9995
|
{
|
|
9996
|
-
className: `${
|
|
9996
|
+
className: `${$.body.sm()} text-gray-500 dark:text-gray-400`,
|
|
9997
9997
|
children: s
|
|
9998
9998
|
}
|
|
9999
9999
|
)
|
|
@@ -10003,7 +10003,7 @@ const gc = ({
|
|
|
10003
10003
|
e.map((d, c) => /* @__PURE__ */ a(
|
|
10004
10004
|
"th",
|
|
10005
10005
|
{
|
|
10006
|
-
className: `${
|
|
10006
|
+
className: `${$.label.default()} text-left py-3 px-4 whitespace-nowrap`,
|
|
10007
10007
|
children: d
|
|
10008
10008
|
},
|
|
10009
10009
|
c
|
|
@@ -10011,7 +10011,7 @@ const gc = ({
|
|
|
10011
10011
|
r && /* @__PURE__ */ a(
|
|
10012
10012
|
"th",
|
|
10013
10013
|
{
|
|
10014
|
-
className: `${
|
|
10014
|
+
className: `${$.label.default()} text-right py-3 px-4 sticky right-0 bg-white dark:bg-gray-900 whitespace-nowrap`
|
|
10015
10015
|
}
|
|
10016
10016
|
)
|
|
10017
10017
|
] }) }),
|
|
@@ -10022,7 +10022,7 @@ const gc = ({
|
|
|
10022
10022
|
children: [
|
|
10023
10023
|
e.map((g, m) => {
|
|
10024
10024
|
const y = n(d, m);
|
|
10025
|
-
return /* @__PURE__ */ a("td", { className: "py-3 px-4", children: typeof y == "string" ? /* @__PURE__ */ a("span", { className:
|
|
10025
|
+
return /* @__PURE__ */ a("td", { className: "py-3 px-4", children: typeof y == "string" ? /* @__PURE__ */ a("span", { className: $.body.sm(), children: y }) : y }, m);
|
|
10026
10026
|
}),
|
|
10027
10027
|
r && /* @__PURE__ */ a("td", { className: "py-3 px-4 text-right sticky right-0 bg-white dark:bg-gray-900", children: o?.(d) })
|
|
10028
10028
|
]
|
|
@@ -10283,34 +10283,34 @@ const gc = ({
|
|
|
10283
10283
|
className: g
|
|
10284
10284
|
}) => {
|
|
10285
10285
|
const [m, y] = I(""), [b, f] = I(""), [p, x] = I(/* @__PURE__ */ new Set()), [N, v] = I(/* @__PURE__ */ new Set()), C = s ? t.filter(
|
|
10286
|
-
(
|
|
10286
|
+
(U) => U.label.toLowerCase().includes(m.toLowerCase())
|
|
10287
10287
|
) : t, w = s ? e.filter(
|
|
10288
|
-
(
|
|
10289
|
-
) : e, k = (
|
|
10288
|
+
(U) => U.label.toLowerCase().includes(b.toLowerCase())
|
|
10289
|
+
) : e, k = (U) => {
|
|
10290
10290
|
const F = new Set(p);
|
|
10291
|
-
F.has(
|
|
10292
|
-
}, L = (
|
|
10291
|
+
F.has(U) ? F.delete(U) : F.add(U), x(F);
|
|
10292
|
+
}, L = (U) => {
|
|
10293
10293
|
const F = new Set(N);
|
|
10294
|
-
F.has(
|
|
10294
|
+
F.has(U) ? F.delete(U) : F.add(U), v(F);
|
|
10295
10295
|
}, E = () => {
|
|
10296
|
-
const
|
|
10297
|
-
r(F,
|
|
10296
|
+
const U = t.filter((W) => p.has(W.id)), F = t.filter((W) => !p.has(W.id)), P = [...e, ...U];
|
|
10297
|
+
r(F, P), x(/* @__PURE__ */ new Set());
|
|
10298
10298
|
}, S = () => {
|
|
10299
|
-
const
|
|
10300
|
-
r(
|
|
10299
|
+
const U = e.filter((W) => N.has(W.id)), F = e.filter((W) => !N.has(W.id)), P = [...t, ...U];
|
|
10300
|
+
r(P, F), v(/* @__PURE__ */ new Set());
|
|
10301
10301
|
}, M = () => {
|
|
10302
|
-
const
|
|
10303
|
-
r([],
|
|
10304
|
-
},
|
|
10305
|
-
const
|
|
10306
|
-
r(
|
|
10307
|
-
}, T = (
|
|
10302
|
+
const U = [...e, ...t];
|
|
10303
|
+
r([], U), x(/* @__PURE__ */ new Set());
|
|
10304
|
+
}, z = () => {
|
|
10305
|
+
const U = [...t, ...e];
|
|
10306
|
+
r(U, []), v(/* @__PURE__ */ new Set());
|
|
10307
|
+
}, T = (U, F, P, W, V, Y, Te) => /* @__PURE__ */ h("div", { className: "flex flex-col flex-1 border border-gray-300 dark:border-gray-700 rounded-md bg-white dark:bg-gray-900", children: [
|
|
10308
10308
|
/* @__PURE__ */ h("div", { className: "px-3 py-2 border-b border-gray-300 dark:border-gray-700 bg-gray-50 dark:bg-gray-800", children: [
|
|
10309
10309
|
/* @__PURE__ */ a("h3", { className: "text-sm font-semibold text-gray-900 dark:text-white", children: F }),
|
|
10310
10310
|
/* @__PURE__ */ h("p", { className: "text-xs text-gray-600 dark:text-gray-400", children: [
|
|
10311
|
-
|
|
10311
|
+
U.length,
|
|
10312
10312
|
" item",
|
|
10313
|
-
|
|
10313
|
+
U.length !== 1 ? "s" : ""
|
|
10314
10314
|
] })
|
|
10315
10315
|
] }),
|
|
10316
10316
|
s && /* @__PURE__ */ a("div", { className: "p-2 border-b border-gray-200 dark:border-gray-700", children: /* @__PURE__ */ a(
|
|
@@ -10318,8 +10318,8 @@ const gc = ({
|
|
|
10318
10318
|
{
|
|
10319
10319
|
type: "text",
|
|
10320
10320
|
value: V,
|
|
10321
|
-
onChange: (
|
|
10322
|
-
placeholder:
|
|
10321
|
+
onChange: (K) => Y(K.target.value),
|
|
10322
|
+
placeholder: Te,
|
|
10323
10323
|
className: "w-full px-3 py-2 text-sm bg-gray-50 dark:bg-gray-800 border border-gray-300 dark:border-gray-700 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400"
|
|
10324
10324
|
}
|
|
10325
10325
|
) }),
|
|
@@ -10328,18 +10328,18 @@ const gc = ({
|
|
|
10328
10328
|
{
|
|
10329
10329
|
className: "overflow-y-auto p-2 space-y-1",
|
|
10330
10330
|
style: { height: s ? d - 120 : d - 60 },
|
|
10331
|
-
children:
|
|
10332
|
-
const
|
|
10331
|
+
children: U.length === 0 ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center h-full text-sm text-gray-500 dark:text-gray-400", children: "No items" }) : U.map((K) => {
|
|
10332
|
+
const ae = P.has(K.id);
|
|
10333
10333
|
return /* @__PURE__ */ a(
|
|
10334
10334
|
"button",
|
|
10335
10335
|
{
|
|
10336
|
-
onClick: () => !
|
|
10337
|
-
disabled:
|
|
10336
|
+
onClick: () => !K.disabled && W(K.id),
|
|
10337
|
+
disabled: K.disabled || c,
|
|
10338
10338
|
className: u(
|
|
10339
10339
|
"w-full px-3 py-2 text-left rounded-md transition-colors",
|
|
10340
10340
|
"hover:bg-gray-100 dark:hover:bg-gray-800",
|
|
10341
10341
|
"disabled:opacity-50 disabled:cursor-not-allowed",
|
|
10342
|
-
|
|
10342
|
+
ae && "bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700"
|
|
10343
10343
|
),
|
|
10344
10344
|
children: /* @__PURE__ */ h("div", { className: "flex items-start gap-2", children: [
|
|
10345
10345
|
/* @__PURE__ */ a(
|
|
@@ -10347,9 +10347,9 @@ const gc = ({
|
|
|
10347
10347
|
{
|
|
10348
10348
|
className: u(
|
|
10349
10349
|
"w-4 h-4 border-2 rounded flex items-center justify-center flex-shrink-0 mt-0.5",
|
|
10350
|
-
|
|
10350
|
+
ae ? "bg-blue-600 border-blue-600 dark:bg-blue-500 dark:border-blue-500" : "border-gray-300 dark:border-gray-600"
|
|
10351
10351
|
),
|
|
10352
|
-
children:
|
|
10352
|
+
children: ae && /* @__PURE__ */ a(
|
|
10353
10353
|
"svg",
|
|
10354
10354
|
{
|
|
10355
10355
|
className: "w-3 h-3 text-white",
|
|
@@ -10370,12 +10370,12 @@ const gc = ({
|
|
|
10370
10370
|
}
|
|
10371
10371
|
),
|
|
10372
10372
|
/* @__PURE__ */ h("div", { className: "flex-1 min-w-0", children: [
|
|
10373
|
-
/* @__PURE__ */ a("p", { className: "text-sm font-medium text-gray-900 dark:text-white truncate", children:
|
|
10374
|
-
|
|
10373
|
+
/* @__PURE__ */ a("p", { className: "text-sm font-medium text-gray-900 dark:text-white truncate", children: K.label }),
|
|
10374
|
+
K.description && /* @__PURE__ */ a("p", { className: "text-xs text-gray-600 dark:text-gray-400 truncate", children: K.description })
|
|
10375
10375
|
] })
|
|
10376
10376
|
] })
|
|
10377
10377
|
},
|
|
10378
|
-
|
|
10378
|
+
K.id
|
|
10379
10379
|
);
|
|
10380
10380
|
})
|
|
10381
10381
|
}
|
|
@@ -10497,7 +10497,7 @@ const gc = ({
|
|
|
10497
10497
|
/* @__PURE__ */ a(
|
|
10498
10498
|
"button",
|
|
10499
10499
|
{
|
|
10500
|
-
onClick:
|
|
10500
|
+
onClick: z,
|
|
10501
10501
|
disabled: c || e.length === 0,
|
|
10502
10502
|
className: u(
|
|
10503
10503
|
"px-3 py-2 text-sm bg-white dark:bg-gray-900",
|
|
@@ -10549,7 +10549,7 @@ function Cc({
|
|
|
10549
10549
|
overscan: s = 3,
|
|
10550
10550
|
className: l
|
|
10551
10551
|
}) {
|
|
10552
|
-
const [i, d] = I(0), c =
|
|
10552
|
+
const [i, d] = I(0), c = B(null), g = (p) => {
|
|
10553
10553
|
d(p.currentTarget.scrollTop);
|
|
10554
10554
|
}, m = t.length * e, y = Math.max(0, Math.floor(i / e) - s), b = Math.min(
|
|
10555
10555
|
t.length - 1,
|
|
@@ -10762,8 +10762,8 @@ const Sc = ({
|
|
|
10762
10762
|
children: n,
|
|
10763
10763
|
...o
|
|
10764
10764
|
}) => /* @__PURE__ */ h("div", { className: u("space-y-1.5", r), ...o, children: [
|
|
10765
|
-
t && /* @__PURE__ */ a("h3", { className:
|
|
10766
|
-
e && /* @__PURE__ */ a("p", { className:
|
|
10765
|
+
t && /* @__PURE__ */ a("h3", { className: $.heading.h4(), children: t }),
|
|
10766
|
+
e && /* @__PURE__ */ a("p", { className: $.body.sm(), children: e }),
|
|
10767
10767
|
n
|
|
10768
10768
|
] }), Mc = ({
|
|
10769
10769
|
className: t,
|
|
@@ -11023,18 +11023,18 @@ const Sc = ({
|
|
|
11023
11023
|
}) => {
|
|
11024
11024
|
const y = {
|
|
11025
11025
|
sm: {
|
|
11026
|
-
label:
|
|
11027
|
-
value:
|
|
11026
|
+
label: $.body.sm(),
|
|
11027
|
+
value: $.body.sm(),
|
|
11028
11028
|
gap: "gap-1"
|
|
11029
11029
|
},
|
|
11030
11030
|
md: {
|
|
11031
|
-
label:
|
|
11032
|
-
value:
|
|
11031
|
+
label: $.body.md(),
|
|
11032
|
+
value: $.body.md(),
|
|
11033
11033
|
gap: "gap-2"
|
|
11034
11034
|
},
|
|
11035
11035
|
lg: {
|
|
11036
|
-
label:
|
|
11037
|
-
value:
|
|
11036
|
+
label: $.body.lg(),
|
|
11037
|
+
value: $.body.lg(),
|
|
11038
11038
|
gap: "gap-3"
|
|
11039
11039
|
}
|
|
11040
11040
|
}, b = {
|
|
@@ -11140,23 +11140,23 @@ const Sc = ({
|
|
|
11140
11140
|
}
|
|
11141
11141
|
}, m = {
|
|
11142
11142
|
sm: {
|
|
11143
|
-
value:
|
|
11144
|
-
label:
|
|
11143
|
+
value: $.heading.h5(),
|
|
11144
|
+
label: $.caption.default(),
|
|
11145
11145
|
icon: "h-4 w-4"
|
|
11146
11146
|
},
|
|
11147
11147
|
md: {
|
|
11148
|
-
value:
|
|
11149
|
-
label:
|
|
11148
|
+
value: $.heading.h4(),
|
|
11149
|
+
label: $.body.sm(),
|
|
11150
11150
|
icon: "h-5 w-5"
|
|
11151
11151
|
},
|
|
11152
11152
|
lg: {
|
|
11153
|
-
value:
|
|
11154
|
-
label:
|
|
11153
|
+
value: $.heading.h3(),
|
|
11154
|
+
label: $.body.md(),
|
|
11155
11155
|
icon: "h-6 w-6"
|
|
11156
11156
|
},
|
|
11157
11157
|
xl: {
|
|
11158
|
-
value:
|
|
11159
|
-
label:
|
|
11158
|
+
value: $.heading.h2(),
|
|
11159
|
+
label: $.body.lg(),
|
|
11160
11160
|
icon: "h-8 w-8"
|
|
11161
11161
|
}
|
|
11162
11162
|
}, y = {
|
|
@@ -11229,12 +11229,12 @@ const Sc = ({
|
|
|
11229
11229
|
),
|
|
11230
11230
|
children: [
|
|
11231
11231
|
t && /* @__PURE__ */ a("div", { className: "mb-4 text-gray-400 dark:text-gray-600", children: t }),
|
|
11232
|
-
/* @__PURE__ */ a("h3", { className: u(
|
|
11232
|
+
/* @__PURE__ */ a("h3", { className: u($.heading.h3(), "mb-2"), children: e }),
|
|
11233
11233
|
r && /* @__PURE__ */ a(
|
|
11234
11234
|
"p",
|
|
11235
11235
|
{
|
|
11236
11236
|
className: u(
|
|
11237
|
-
|
|
11237
|
+
$.body.sm(),
|
|
11238
11238
|
"text-gray-600 dark:text-gray-400 max-w-sm mb-6"
|
|
11239
11239
|
),
|
|
11240
11240
|
children: r
|
|
@@ -12316,7 +12316,7 @@ const Sc = ({
|
|
|
12316
12316
|
}) => {
|
|
12317
12317
|
const [o, s] = I(
|
|
12318
12318
|
r || { x: 50, y: 50, width: 200, height: 200 }
|
|
12319
|
-
), l =
|
|
12319
|
+
), l = B(null), i = async () => {
|
|
12320
12320
|
if (!l.current || !e) return;
|
|
12321
12321
|
const d = document.createElement("canvas"), c = d.getContext("2d");
|
|
12322
12322
|
if (!c) return;
|
|
@@ -12412,12 +12412,12 @@ const Sc = ({
|
|
|
12412
12412
|
showZoom: i = !0,
|
|
12413
12413
|
className: d
|
|
12414
12414
|
}) => {
|
|
12415
|
-
const [c, g] = I(1), m = t[e], y = e > 0, b = e < t.length - 1, f =
|
|
12415
|
+
const [c, g] = I(1), m = t[e], y = e > 0, b = e < t.length - 1, f = R(() => {
|
|
12416
12416
|
if (y) {
|
|
12417
12417
|
const w = e - 1;
|
|
12418
12418
|
o?.(w), g(1);
|
|
12419
12419
|
}
|
|
12420
|
-
}, [y, e, o]), p =
|
|
12420
|
+
}, [y, e, o]), p = R(() => {
|
|
12421
12421
|
if (b) {
|
|
12422
12422
|
const w = e + 1;
|
|
12423
12423
|
o?.(w), g(1);
|
|
@@ -12463,7 +12463,7 @@ const Sc = ({
|
|
|
12463
12463
|
document.body.style.overflow = "";
|
|
12464
12464
|
}), [r]), A(() => {
|
|
12465
12465
|
g(1);
|
|
12466
|
-
}, [e]), !r || !m ? null : /* @__PURE__ */ a(
|
|
12466
|
+
}, [e]), !r || !m ? null : /* @__PURE__ */ a(he, { children: /* @__PURE__ */ h(
|
|
12467
12467
|
"div",
|
|
12468
12468
|
{
|
|
12469
12469
|
className: u(
|
|
@@ -12734,7 +12734,7 @@ const Sc = ({
|
|
|
12734
12734
|
controls: s = !0,
|
|
12735
12735
|
className: l
|
|
12736
12736
|
}) => {
|
|
12737
|
-
const i =
|
|
12737
|
+
const i = B(null), [d, c] = I(r), [g, m] = I(1), [y, b] = I(0), [f, p] = I(0);
|
|
12738
12738
|
A(() => {
|
|
12739
12739
|
const k = i.current;
|
|
12740
12740
|
if (!k) return;
|
|
@@ -12940,13 +12940,13 @@ const Sc = ({
|
|
|
12940
12940
|
loop: s = !1,
|
|
12941
12941
|
className: l
|
|
12942
12942
|
}) => {
|
|
12943
|
-
const i =
|
|
12943
|
+
const i = B(null), [d, c] = I(o), [g, m] = I(0), [y, b] = I(0), [f, p] = I(1);
|
|
12944
12944
|
A(() => {
|
|
12945
12945
|
const k = i.current;
|
|
12946
12946
|
if (!k) return;
|
|
12947
|
-
const L = () => m(k.currentTime), E = () => b(k.duration), S = () => c(!0), M = () => c(!1),
|
|
12948
|
-
return k.addEventListener("timeupdate", L), k.addEventListener("loadedmetadata", E), k.addEventListener("play", S), k.addEventListener("pause", M), k.addEventListener("ended",
|
|
12949
|
-
k.removeEventListener("timeupdate", L), k.removeEventListener("loadedmetadata", E), k.removeEventListener("play", S), k.removeEventListener("pause", M), k.removeEventListener("ended",
|
|
12947
|
+
const L = () => m(k.currentTime), E = () => b(k.duration), S = () => c(!0), M = () => c(!1), z = () => c(!1);
|
|
12948
|
+
return k.addEventListener("timeupdate", L), k.addEventListener("loadedmetadata", E), k.addEventListener("play", S), k.addEventListener("pause", M), k.addEventListener("ended", z), () => {
|
|
12949
|
+
k.removeEventListener("timeupdate", L), k.removeEventListener("loadedmetadata", E), k.removeEventListener("play", S), k.removeEventListener("pause", M), k.removeEventListener("ended", z);
|
|
12950
12950
|
};
|
|
12951
12951
|
}, []);
|
|
12952
12952
|
const x = () => {
|
|
@@ -13157,7 +13157,7 @@ const Sc = ({
|
|
|
13157
13157
|
onRemove: s,
|
|
13158
13158
|
className: l
|
|
13159
13159
|
}) => {
|
|
13160
|
-
const [i, d] = I([]), [c, g] = I(!1), m =
|
|
13160
|
+
const [i, d] = I([]), [c, g] = I(!1), m = B(null), y = (C) => {
|
|
13161
13161
|
C.preventDefault(), g(!0);
|
|
13162
13162
|
}, b = (C) => {
|
|
13163
13163
|
C.preventDefault(), g(!1);
|
|
@@ -13174,12 +13174,12 @@ const Sc = ({
|
|
|
13174
13174
|
const w = C.filter((S) => {
|
|
13175
13175
|
const M = t.some((T) => {
|
|
13176
13176
|
if (T.endsWith("/*")) {
|
|
13177
|
-
const
|
|
13178
|
-
return S.type.startsWith(
|
|
13177
|
+
const U = T.split("/")[0];
|
|
13178
|
+
return S.type.startsWith(U);
|
|
13179
13179
|
}
|
|
13180
13180
|
return S.type === T;
|
|
13181
|
-
}),
|
|
13182
|
-
return M &&
|
|
13181
|
+
}), z = S.size <= e;
|
|
13182
|
+
return M && z;
|
|
13183
13183
|
}), k = r - i.length, L = w.slice(0, k), E = L.map((S) => ({
|
|
13184
13184
|
id: `${Date.now()}-${Math.random()}`,
|
|
13185
13185
|
file: S,
|
|
@@ -13348,7 +13348,7 @@ const Sc = ({
|
|
|
13348
13348
|
showDownload: o = !1,
|
|
13349
13349
|
className: s
|
|
13350
13350
|
}) => {
|
|
13351
|
-
const l =
|
|
13351
|
+
const l = B(null);
|
|
13352
13352
|
A(() => {
|
|
13353
13353
|
const d = l.current;
|
|
13354
13354
|
if (!d) return;
|
|
@@ -13421,7 +13421,7 @@ const Sc = ({
|
|
|
13421
13421
|
"aria-describedby": y,
|
|
13422
13422
|
closeAriaLabel: b = "Close modal"
|
|
13423
13423
|
}) => {
|
|
13424
|
-
const f =
|
|
13424
|
+
const f = B(null), p = B(null);
|
|
13425
13425
|
if (A(() => {
|
|
13426
13426
|
if (!t || !d) return;
|
|
13427
13427
|
const C = (w) => {
|
|
@@ -13479,7 +13479,7 @@ const Sc = ({
|
|
|
13479
13479
|
onClick: e,
|
|
13480
13480
|
className: j.overlays.modal.closeButton(),
|
|
13481
13481
|
"aria-label": b,
|
|
13482
|
-
children: /* @__PURE__ */ a(
|
|
13482
|
+
children: /* @__PURE__ */ a(We, { className: j.icon.variant.muted.md() })
|
|
13483
13483
|
}
|
|
13484
13484
|
)
|
|
13485
13485
|
] }),
|
|
@@ -13578,7 +13578,7 @@ const Sc = ({
|
|
|
13578
13578
|
top: t ? "translate-y-0" : "-translate-y-full",
|
|
13579
13579
|
bottom: t ? "translate-y-0" : "translate-y-full"
|
|
13580
13580
|
};
|
|
13581
|
-
return /* @__PURE__ */ h(
|
|
13581
|
+
return /* @__PURE__ */ h(he, { children: [
|
|
13582
13582
|
/* @__PURE__ */ a(st, { isOpen: t, onClose: e, opacity: "medium" }),
|
|
13583
13583
|
/* @__PURE__ */ h(
|
|
13584
13584
|
"div",
|
|
@@ -13636,7 +13636,7 @@ const Sc = ({
|
|
|
13636
13636
|
returnFocus: n = !0,
|
|
13637
13637
|
className: o
|
|
13638
13638
|
}) => {
|
|
13639
|
-
const s =
|
|
13639
|
+
const s = B(null), l = B(null);
|
|
13640
13640
|
return A(() => {
|
|
13641
13641
|
if (!e) return;
|
|
13642
13642
|
n && (l.current = document.activeElement);
|
|
@@ -13692,7 +13692,7 @@ const Sc = ({
|
|
|
13692
13692
|
reverse: c = !1,
|
|
13693
13693
|
className: g
|
|
13694
13694
|
}) => {
|
|
13695
|
-
const m =
|
|
13695
|
+
const m = B(null), [y, b] = I(!1);
|
|
13696
13696
|
A(() => {
|
|
13697
13697
|
const N = m.current;
|
|
13698
13698
|
if (!N || r || !n) return;
|
|
@@ -13799,12 +13799,12 @@ const Sc = ({
|
|
|
13799
13799
|
showArrow: l = !0,
|
|
13800
13800
|
className: i
|
|
13801
13801
|
}) => {
|
|
13802
|
-
const [d, c] = I(!1), g = n !== void 0 ? n : d, m =
|
|
13802
|
+
const [d, c] = I(!1), g = n !== void 0 ? n : d, m = R(
|
|
13803
13803
|
(k) => {
|
|
13804
13804
|
n === void 0 && c(k), o?.(k);
|
|
13805
13805
|
},
|
|
13806
13806
|
[n, o]
|
|
13807
|
-
), y =
|
|
13807
|
+
), y = B(null), b = B(null), [f, p] = I({ top: 0, left: 0 });
|
|
13808
13808
|
A(() => {
|
|
13809
13809
|
if (!g || !y.current) return;
|
|
13810
13810
|
const k = () => {
|
|
@@ -13942,7 +13942,7 @@ const Sc = ({
|
|
|
13942
13942
|
showSubsections: l = !0,
|
|
13943
13943
|
className: i
|
|
13944
13944
|
}) => {
|
|
13945
|
-
const [d, c] = I(""), g =
|
|
13945
|
+
const [d, c] = I(""), g = B(null), m = e !== void 0 ? e : d;
|
|
13946
13946
|
A(() => {
|
|
13947
13947
|
const f = o ? document.querySelector(o) : window;
|
|
13948
13948
|
if (!f) return;
|
|
@@ -14062,7 +14062,7 @@ const Sc = ({
|
|
|
14062
14062
|
left: "animate-in slide-in-from-left duration-300",
|
|
14063
14063
|
right: "animate-in slide-in-from-right duration-300"
|
|
14064
14064
|
};
|
|
14065
|
-
return /* @__PURE__ */ h(
|
|
14065
|
+
return /* @__PURE__ */ h(he, { children: [
|
|
14066
14066
|
/* @__PURE__ */ a(st, { isOpen: t, onClose: e, opacity: "dark" }),
|
|
14067
14067
|
/* @__PURE__ */ h(
|
|
14068
14068
|
"div",
|
|
@@ -14178,12 +14178,12 @@ const Sc = ({
|
|
|
14178
14178
|
closeOnOverlayClick: !c,
|
|
14179
14179
|
children: /* @__PURE__ */ h("form", { onSubmit: v, children: [
|
|
14180
14180
|
/* @__PURE__ */ h(er, { variant: "padded", children: [
|
|
14181
|
-
/* @__PURE__ */ a("h3", { id: "text-input-modal-title", className:
|
|
14181
|
+
/* @__PURE__ */ a("h3", { id: "text-input-modal-title", className: $.heading.h4(), children: n }),
|
|
14182
14182
|
/* @__PURE__ */ a(
|
|
14183
14183
|
"p",
|
|
14184
14184
|
{
|
|
14185
14185
|
id: "text-input-modal-description",
|
|
14186
|
-
className: `${
|
|
14186
|
+
className: `${$.body.md()} mt-2 mb-4`,
|
|
14187
14187
|
children: o
|
|
14188
14188
|
}
|
|
14189
14189
|
),
|
|
@@ -14205,7 +14205,7 @@ const Sc = ({
|
|
|
14205
14205
|
"p",
|
|
14206
14206
|
{
|
|
14207
14207
|
id: "text-input-error",
|
|
14208
|
-
className: `${
|
|
14208
|
+
className: `${$.body.sm()} text-red-600 dark:text-red-400 mt-2`,
|
|
14209
14209
|
role: "alert",
|
|
14210
14210
|
children: x
|
|
14211
14211
|
}
|
|
@@ -14249,15 +14249,15 @@ const Sc = ({
|
|
|
14249
14249
|
isOpen: g,
|
|
14250
14250
|
onVisibilityChange: m
|
|
14251
14251
|
}) => {
|
|
14252
|
-
const [y, b] = I(!1), f =
|
|
14252
|
+
const [y, b] = I(!1), f = B(
|
|
14253
14253
|
void 0
|
|
14254
|
-
), p =
|
|
14254
|
+
), p = B(
|
|
14255
14255
|
void 0
|
|
14256
|
-
), x =
|
|
14256
|
+
), x = B(null), N = B(null), v = g !== void 0, C = v ? g : y, w = R(() => {
|
|
14257
14257
|
l || v || (p.current && (clearTimeout(p.current), p.current = void 0), n > 0 ? f.current = setTimeout(() => {
|
|
14258
14258
|
b(!0), m?.(!0);
|
|
14259
14259
|
}, n) : (b(!0), m?.(!0)));
|
|
14260
|
-
}, [l, v, n, m]), k =
|
|
14260
|
+
}, [l, v, n, m]), k = R(() => {
|
|
14261
14261
|
v || (f.current && (clearTimeout(f.current), f.current = void 0), o > 0 ? p.current = setTimeout(() => {
|
|
14262
14262
|
b(!1), m?.(!1);
|
|
14263
14263
|
}, o) : (b(!1), m?.(!1)));
|
|
@@ -14281,14 +14281,14 @@ const Sc = ({
|
|
|
14281
14281
|
c === "hover" && w();
|
|
14282
14282
|
}, M = () => {
|
|
14283
14283
|
c === "hover" && k();
|
|
14284
|
-
},
|
|
14284
|
+
}, z = () => {
|
|
14285
14285
|
c === "click" && !v && (C ? (b(!1), m?.(!1)) : (b(!0), m?.(!0)));
|
|
14286
14286
|
}, T = {
|
|
14287
14287
|
top: "bottom-full left-1/2 -translate-x-1/2 -translate-y-2",
|
|
14288
14288
|
bottom: "top-full left-1/2 -translate-x-1/2 translate-y-2",
|
|
14289
14289
|
left: "right-full top-1/2 -translate-x-2 -translate-y-1/2",
|
|
14290
14290
|
right: "left-full top-1/2 translate-x-2 -translate-y-1/2"
|
|
14291
|
-
},
|
|
14291
|
+
}, U = {
|
|
14292
14292
|
top: "top-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-b-transparent",
|
|
14293
14293
|
bottom: "bottom-full left-1/2 -translate-x-1/2 border-l-transparent border-r-transparent border-t-transparent",
|
|
14294
14294
|
left: "left-full top-1/2 -translate-y-1/2 border-t-transparent border-b-transparent border-r-transparent",
|
|
@@ -14299,7 +14299,7 @@ const Sc = ({
|
|
|
14299
14299
|
success: "bg-green-600 dark:bg-green-500 text-white",
|
|
14300
14300
|
warning: "bg-yellow-600 dark:bg-yellow-500 text-white",
|
|
14301
14301
|
error: "bg-red-600 dark:bg-red-500 text-white"
|
|
14302
|
-
},
|
|
14302
|
+
}, P = {
|
|
14303
14303
|
default: {
|
|
14304
14304
|
top: "border-t-gray-900 dark:border-t-gray-700",
|
|
14305
14305
|
bottom: "border-b-gray-900 dark:border-b-gray-700",
|
|
@@ -14340,7 +14340,7 @@ const Sc = ({
|
|
|
14340
14340
|
onMouseLeave: E,
|
|
14341
14341
|
onFocus: S,
|
|
14342
14342
|
onBlur: M,
|
|
14343
|
-
onClick:
|
|
14343
|
+
onClick: z,
|
|
14344
14344
|
children: [
|
|
14345
14345
|
e,
|
|
14346
14346
|
C && !l && /* @__PURE__ */ h(
|
|
@@ -14361,8 +14361,8 @@ const Sc = ({
|
|
|
14361
14361
|
{
|
|
14362
14362
|
className: u(
|
|
14363
14363
|
"absolute w-0 h-0 border-4 arrow",
|
|
14364
|
-
|
|
14365
|
-
|
|
14364
|
+
U[r],
|
|
14365
|
+
P[d][r]
|
|
14366
14366
|
)
|
|
14367
14367
|
}
|
|
14368
14368
|
)
|
|
@@ -14373,11 +14373,11 @@ const Sc = ({
|
|
|
14373
14373
|
}
|
|
14374
14374
|
);
|
|
14375
14375
|
}, nn = {
|
|
14376
|
-
default:
|
|
14376
|
+
default: me,
|
|
14377
14377
|
warning: rt,
|
|
14378
14378
|
danger: tt,
|
|
14379
|
-
success:
|
|
14380
|
-
info:
|
|
14379
|
+
success: Fe,
|
|
14380
|
+
info: me
|
|
14381
14381
|
}, on = {
|
|
14382
14382
|
default: () => j.icon.variant.default.lg(),
|
|
14383
14383
|
warning: () => j.icon.variant.warning.lg(),
|
|
@@ -14420,7 +14420,7 @@ const Sc = ({
|
|
|
14420
14420
|
"h3",
|
|
14421
14421
|
{
|
|
14422
14422
|
id: "confirmation-dialog-title",
|
|
14423
|
-
className:
|
|
14423
|
+
className: $.heading.h4(),
|
|
14424
14424
|
children: n
|
|
14425
14425
|
}
|
|
14426
14426
|
)
|
|
@@ -14429,7 +14429,7 @@ const Sc = ({
|
|
|
14429
14429
|
"p",
|
|
14430
14430
|
{
|
|
14431
14431
|
id: "confirmation-dialog-description",
|
|
14432
|
-
className:
|
|
14432
|
+
className: $.body.md(),
|
|
14433
14433
|
children: o
|
|
14434
14434
|
}
|
|
14435
14435
|
)
|
|
@@ -14457,7 +14457,7 @@ const Sc = ({
|
|
|
14457
14457
|
closeDelay: o = 300,
|
|
14458
14458
|
className: s
|
|
14459
14459
|
}) => {
|
|
14460
|
-
const [l, i] = I(!1), [d, c] = I({ top: 0, left: 0 }), g =
|
|
14460
|
+
const [l, i] = I(!1), [d, c] = I({ top: 0, left: 0 }), g = B(null), m = B(null), y = B(void 0), b = B(void 0);
|
|
14461
14461
|
A(() => {
|
|
14462
14462
|
if (!l || !g.current) return;
|
|
14463
14463
|
const v = () => {
|
|
@@ -14513,7 +14513,7 @@ const Sc = ({
|
|
|
14513
14513
|
children: t
|
|
14514
14514
|
}
|
|
14515
14515
|
),
|
|
14516
|
-
l && /* @__PURE__ */ a(
|
|
14516
|
+
l && /* @__PURE__ */ a(he, { children: /* @__PURE__ */ a(
|
|
14517
14517
|
"div",
|
|
14518
14518
|
{
|
|
14519
14519
|
ref: m,
|
|
@@ -14829,7 +14829,7 @@ const Sc = ({
|
|
|
14829
14829
|
maxPullDistance: i = 120,
|
|
14830
14830
|
className: d = ""
|
|
14831
14831
|
}) => {
|
|
14832
|
-
const [c, g] = I(0), [m, y] = I(!1), [b, f] = I(!1), p =
|
|
14832
|
+
const [c, g] = I(0), [m, y] = I(!1), [b, f] = I(!1), p = B(0), x = B(null);
|
|
14833
14833
|
A(() => {
|
|
14834
14834
|
const k = x.current;
|
|
14835
14835
|
if (!k) return;
|
|
@@ -14840,8 +14840,8 @@ const Sc = ({
|
|
|
14840
14840
|
if (!b) return;
|
|
14841
14841
|
const T = M.touches[0].clientY - p.current;
|
|
14842
14842
|
if (T > 0 && k.scrollTop <= 0) {
|
|
14843
|
-
const
|
|
14844
|
-
T * (1 -
|
|
14843
|
+
const U = Math.min(T / i, 1), F = Math.min(
|
|
14844
|
+
T * (1 - U * 0.5),
|
|
14845
14845
|
i
|
|
14846
14846
|
);
|
|
14847
14847
|
g(F), T > 10 && M.preventDefault();
|
|
@@ -14945,7 +14945,7 @@ const Sc = ({
|
|
|
14945
14945
|
shareConfig: t
|
|
14946
14946
|
}) => {
|
|
14947
14947
|
const [e, r] = I(!1), [n, o] = I(""), [s, l] = I(!1), [i, d] = I(!1), [c, g] = I(!1);
|
|
14948
|
-
|
|
14948
|
+
D.useEffect(() => {
|
|
14949
14949
|
const v = t.onBeforeShare;
|
|
14950
14950
|
v && !n && (async () => {
|
|
14951
14951
|
l(!0);
|
|
@@ -15181,7 +15181,7 @@ const Sc = ({
|
|
|
15181
15181
|
className: r,
|
|
15182
15182
|
showHome: n
|
|
15183
15183
|
}) => /* @__PURE__ */ h("div", { className: "flex items-center justify-between", children: [
|
|
15184
|
-
/* @__PURE__ */ a("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ a("ol", { className: "flex items-center text-sm space-x-2", children: t.map((o, s) => /* @__PURE__ */ h(
|
|
15184
|
+
/* @__PURE__ */ a("nav", { "aria-label": "Breadcrumb", children: /* @__PURE__ */ a("ol", { className: "flex items-center text-sm space-x-2", children: t.map((o, s) => /* @__PURE__ */ h(D.Fragment, { children: [
|
|
15185
15185
|
/* @__PURE__ */ a("li", { children: o.current ? /* @__PURE__ */ a("span", { className: "text-gray-700 dark:text-gray-300", children: o.label }) : /* @__PURE__ */ a(
|
|
15186
15186
|
Me,
|
|
15187
15187
|
{
|
|
@@ -15201,7 +15201,7 @@ const Sc = ({
|
|
|
15201
15201
|
standard: "max-w-7xl mx-auto",
|
|
15202
15202
|
wide: "max-w-[1920px] mx-auto",
|
|
15203
15203
|
full: "w-full"
|
|
15204
|
-
}, or = "px-4", sr =
|
|
15204
|
+
}, or = "px-4", sr = Re(void 0), cn = ({
|
|
15205
15205
|
mode: t = "standard",
|
|
15206
15206
|
children: e
|
|
15207
15207
|
}) => {
|
|
@@ -15212,8 +15212,8 @@ const Sc = ({
|
|
|
15212
15212
|
paddingClass: or
|
|
15213
15213
|
};
|
|
15214
15214
|
return /* @__PURE__ */ a(sr.Provider, { value: r, children: e });
|
|
15215
|
-
},
|
|
15216
|
-
const t =
|
|
15215
|
+
}, le = () => {
|
|
15216
|
+
const t = je(sr);
|
|
15217
15217
|
return t || {
|
|
15218
15218
|
mode: "standard",
|
|
15219
15219
|
containerClass: ar.standard,
|
|
@@ -15224,7 +15224,7 @@ const Sc = ({
|
|
|
15224
15224
|
items: t,
|
|
15225
15225
|
shareConfig: e
|
|
15226
15226
|
}) => {
|
|
15227
|
-
const { containerClass: r } =
|
|
15227
|
+
const { containerClass: r } = le();
|
|
15228
15228
|
return /* @__PURE__ */ a("div", { className: "bg-white dark:bg-gray-800 border-b border-gray-200 dark:border-gray-700 relative z-50", children: /* @__PURE__ */ a("div", { className: `${r} py-3 relative`, children: /* @__PURE__ */ a(rr, { items: t, shareConfig: e }) }) });
|
|
15229
15229
|
}, dn = (t) => {
|
|
15230
15230
|
const [e, r] = I(""), [n, o] = I(!0), [s, l] = I(null);
|
|
@@ -15253,7 +15253,7 @@ const Sc = ({
|
|
|
15253
15253
|
showCopy: s = !0,
|
|
15254
15254
|
showHeader: l = !0
|
|
15255
15255
|
}) => {
|
|
15256
|
-
const { t: i } =
|
|
15256
|
+
const { t: i } = Ve("codeBlock"), { code: d, loading: c, error: g } = dn(t || ""), [m, y] = I(!1), b = e || d, p = r || (t ? ((N) => {
|
|
15257
15257
|
switch (N.split(".").pop()?.toLowerCase()) {
|
|
15258
15258
|
case "sol":
|
|
15259
15259
|
return "solidity";
|
|
@@ -15351,7 +15351,7 @@ const Sc = ({
|
|
|
15351
15351
|
parentSectionId: n,
|
|
15352
15352
|
onSubsectionSelect: o
|
|
15353
15353
|
}) => {
|
|
15354
|
-
const s =
|
|
15354
|
+
const s = B(null), [l, i] = I(void 0);
|
|
15355
15355
|
return xr(() => {
|
|
15356
15356
|
if (s.current) {
|
|
15357
15357
|
const d = s.current.scrollHeight;
|
|
@@ -15466,7 +15466,7 @@ const Sc = ({
|
|
|
15466
15466
|
), g = () => n === "arrow" || n === "both" ? /* @__PURE__ */ a(jt, { className: "h-4 w-4 ml-2" }) : null, m = () => o === "prominent" ? "border-b-2 border-green-200 dark:border-green-700" : "border-b border-green-200 dark:border-green-700", y = () => {
|
|
15467
15467
|
const x = "bg-gradient-to-r from-green-600 to-blue-600 hover:from-green-700 hover:to-blue-700 text-white rounded-lg font-bold transition-all duration-300 transform hover:scale-105 shadow-lg hover:shadow-green-500/25 inline-flex items-center whitespace-nowrap cursor-pointer";
|
|
15468
15468
|
return o === "prominent" ? `${x} px-8 py-3 text-base` : `${x} px-6 py-2 text-sm`;
|
|
15469
|
-
}, b = () => o === "prominent" ? "text-green-800 dark:text-green-200 font-semibold text-lg" : "text-green-800 dark:text-green-200 font-semibold", f = o === "prominent" ? l : s, { containerClass: p } =
|
|
15469
|
+
}, b = () => o === "prominent" ? "text-green-800 dark:text-green-200 font-semibold text-lg" : "text-green-800 dark:text-green-200 font-semibold", f = o === "prominent" ? l : s, { containerClass: p } = le();
|
|
15470
15470
|
return /* @__PURE__ */ a(
|
|
15471
15471
|
"div",
|
|
15472
15472
|
{
|
|
@@ -15592,7 +15592,7 @@ const Sc = ({
|
|
|
15592
15592
|
variant: t = "compact",
|
|
15593
15593
|
className: e = ""
|
|
15594
15594
|
}) => {
|
|
15595
|
-
const { i18n: r, t: n } =
|
|
15595
|
+
const { i18n: r, t: n } = Ve("languageSelector"), [o, s] = D.useState(r.language), l = D.useMemo(() => r.options.supportedLngs ? r.options.supportedLngs.filter((c) => c !== "cimode").map((c) => ({
|
|
15596
15596
|
code: c,
|
|
15597
15597
|
name: Lt[c]?.name || c.toUpperCase(),
|
|
15598
15598
|
flag: Lt[c]?.flag || "🌐"
|
|
@@ -15601,7 +15601,7 @@ const Sc = ({
|
|
|
15601
15601
|
) : [], [r.options.supportedLngs]), i = l.find(
|
|
15602
15602
|
(c) => c.code === o || c.code.toLowerCase() === o.toLowerCase()
|
|
15603
15603
|
);
|
|
15604
|
-
|
|
15604
|
+
D.useEffect(() => {
|
|
15605
15605
|
s(r.language);
|
|
15606
15606
|
}, [r.language]);
|
|
15607
15607
|
const d = (c) => {
|
|
@@ -15855,7 +15855,7 @@ class r0 extends ut {
|
|
|
15855
15855
|
}
|
|
15856
15856
|
}
|
|
15857
15857
|
function a0() {
|
|
15858
|
-
const [t, e] =
|
|
15858
|
+
const [t, e] = D.useState(0), r = D.useCallback(() => {
|
|
15859
15859
|
e((n) => n + 1);
|
|
15860
15860
|
}, []);
|
|
15861
15861
|
return {
|
|
@@ -15898,7 +15898,7 @@ const o0 = ({ children: t }) => /* @__PURE__ */ a(O, { children: t }), s0 = ({
|
|
|
15898
15898
|
}, [])(), /* @__PURE__ */ a(n, { ...o })) : n;
|
|
15899
15899
|
}, i0 = (t, e) => Le(t, (r, n) => e.every((o) => r[o] === n[o])), c0 = Le(
|
|
15900
15900
|
({ children: t, compute: e, deps: r }) => {
|
|
15901
|
-
const n =
|
|
15901
|
+
const n = D.useRef(r), o = D.useRef(e), s = D.useRef(void 0), l = ee(() => {
|
|
15902
15902
|
const i = r.length !== n.current.length || r.some((c, g) => c !== n.current[g]), d = e !== o.current;
|
|
15903
15903
|
if (i || d || s.current === void 0) {
|
|
15904
15904
|
let c;
|
|
@@ -15919,8 +15919,8 @@ const o0 = ({ children: t }) => /* @__PURE__ */ a(O, { children: t }), s0 = ({
|
|
|
15919
15919
|
rootMargin: r = "50px",
|
|
15920
15920
|
fallback: n = null
|
|
15921
15921
|
}) => {
|
|
15922
|
-
const [o, s] =
|
|
15923
|
-
return
|
|
15922
|
+
const [o, s] = D.useState(!1), l = D.useRef(null);
|
|
15923
|
+
return D.useEffect(() => {
|
|
15924
15924
|
const i = new IntersectionObserver(
|
|
15925
15925
|
([d]) => {
|
|
15926
15926
|
d.isIntersecting && (s(!0), i.disconnect());
|
|
@@ -15935,10 +15935,10 @@ const o0 = ({ children: t }) => /* @__PURE__ */ a(O, { children: t }), s0 = ({
|
|
|
15935
15935
|
// 16ms = 60fps
|
|
15936
15936
|
onSlowRender: r
|
|
15937
15937
|
}) => {
|
|
15938
|
-
const n =
|
|
15939
|
-
return
|
|
15938
|
+
const n = D.useRef(0);
|
|
15939
|
+
return D.useLayoutEffect(() => {
|
|
15940
15940
|
n.current = performance.now();
|
|
15941
|
-
}),
|
|
15941
|
+
}), D.useEffect(() => {
|
|
15942
15942
|
const o = performance.now() - n.current;
|
|
15943
15943
|
o > e && r?.(o);
|
|
15944
15944
|
}), /* @__PURE__ */ a(O, { children: t });
|
|
@@ -15947,8 +15947,8 @@ const o0 = ({ children: t }) => /* @__PURE__ */ a(O, { children: t }), s0 = ({
|
|
|
15947
15947
|
batchSize: e = 5,
|
|
15948
15948
|
delay: r = 0
|
|
15949
15949
|
}) => {
|
|
15950
|
-
const [n, o] =
|
|
15951
|
-
return
|
|
15950
|
+
const [n, o] = D.useState(e);
|
|
15951
|
+
return D.useEffect(() => {
|
|
15952
15952
|
if (n < t.length) {
|
|
15953
15953
|
const s = setTimeout(() => {
|
|
15954
15954
|
o((l) => Math.min(l + e, t.length));
|
|
@@ -15966,7 +15966,7 @@ const o0 = ({ children: t }) => /* @__PURE__ */ a(O, { children: t }), s0 = ({
|
|
|
15966
15966
|
className: l = "",
|
|
15967
15967
|
...i
|
|
15968
15968
|
}) => {
|
|
15969
|
-
const [d, c] = I(!1), [g, m] = I(s), [y, b] = I(!1), f =
|
|
15969
|
+
const [d, c] = I(!1), [g, m] = I(s), [y, b] = I(!1), f = B(null), p = B(null);
|
|
15970
15970
|
A(() => {
|
|
15971
15971
|
if (s) {
|
|
15972
15972
|
m(!0);
|
|
@@ -16060,7 +16060,7 @@ function b0({
|
|
|
16060
16060
|
defaultLanguage: o = "en",
|
|
16061
16061
|
...s
|
|
16062
16062
|
}) {
|
|
16063
|
-
const { lang: l } =
|
|
16063
|
+
const { lang: l } = Oe(), i = l && n(l) ? l : o, d = e || i, c = t.startsWith(`/${d}`) ? t : `/${d}${t.startsWith("/") ? t : `/${t}`}`;
|
|
16064
16064
|
return /* @__PURE__ */ a(Me, { to: c, ...s, children: r });
|
|
16065
16065
|
}
|
|
16066
16066
|
function p0({
|
|
@@ -16069,7 +16069,7 @@ function p0({
|
|
|
16069
16069
|
storageKey: r = "language",
|
|
16070
16070
|
fallback: n = null
|
|
16071
16071
|
}) {
|
|
16072
|
-
const { lang: o } =
|
|
16072
|
+
const { lang: o } = Oe(), s = ot(), l = Ot(), { i18n: i } = Ve();
|
|
16073
16073
|
return A(() => {
|
|
16074
16074
|
if (!o || !t(o)) {
|
|
16075
16075
|
let d = e;
|
|
@@ -16121,7 +16121,7 @@ function y0(t = {}) {
|
|
|
16121
16121
|
isLanguageSupported: e = (g) => /^[a-z]{2}(-[a-z]+)?$/.test(g),
|
|
16122
16122
|
defaultLanguage: r = "en",
|
|
16123
16123
|
storageKey: n = "language"
|
|
16124
|
-
} = t, o = ot(), { lang: s } =
|
|
16124
|
+
} = t, o = ot(), { lang: s } = Oe(), { i18n: l } = Ve(), i = s && e(s) ? s : l.language || r, d = R(
|
|
16125
16125
|
(g, m) => {
|
|
16126
16126
|
if (typeof g == "number") {
|
|
16127
16127
|
o(g);
|
|
@@ -16131,7 +16131,7 @@ function y0(t = {}) {
|
|
|
16131
16131
|
o(y, m);
|
|
16132
16132
|
},
|
|
16133
16133
|
[o, i]
|
|
16134
|
-
), c =
|
|
16134
|
+
), c = R(
|
|
16135
16135
|
(g, m) => {
|
|
16136
16136
|
l.changeLanguage(g);
|
|
16137
16137
|
const y = lr(
|
|
@@ -16159,7 +16159,7 @@ function x0({
|
|
|
16159
16159
|
loadingComponent: o,
|
|
16160
16160
|
fallback: s = null
|
|
16161
16161
|
}) {
|
|
16162
|
-
const l = ot(), { lang: i } =
|
|
16162
|
+
const l = ot(), { lang: i } = Oe();
|
|
16163
16163
|
return A(() => {
|
|
16164
16164
|
if (!r && !e) {
|
|
16165
16165
|
const d = n ? n.replace(":lang", i || "en") : `/${i || "en"}`;
|
|
@@ -16243,8 +16243,8 @@ function v0({
|
|
|
16243
16243
|
}
|
|
16244
16244
|
);
|
|
16245
16245
|
}
|
|
16246
|
-
var
|
|
16247
|
-
const
|
|
16246
|
+
var Q = /* @__PURE__ */ ((t) => (t.LIGHT = "light", t.DARK = "dark", t.SYSTEM = "system", t))(Q || {}), ir = /* @__PURE__ */ ((t) => (t.SMALL = "small", t.MEDIUM = "medium", t.LARGE = "large", t))(ir || {});
|
|
16247
|
+
const Ae = {
|
|
16248
16248
|
getItem: (t) => {
|
|
16249
16249
|
try {
|
|
16250
16250
|
return localStorage.getItem(t);
|
|
@@ -16258,11 +16258,11 @@ const Te = {
|
|
|
16258
16258
|
} catch {
|
|
16259
16259
|
}
|
|
16260
16260
|
}
|
|
16261
|
-
}, cr =
|
|
16261
|
+
}, cr = Re(
|
|
16262
16262
|
void 0
|
|
16263
16263
|
);
|
|
16264
16264
|
function w0() {
|
|
16265
|
-
const t =
|
|
16265
|
+
const t = je(cr);
|
|
16266
16266
|
if (t === void 0)
|
|
16267
16267
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
16268
16268
|
return t;
|
|
@@ -16271,32 +16271,32 @@ function k0({
|
|
|
16271
16271
|
children: t,
|
|
16272
16272
|
themeStorageKey: e = "theme",
|
|
16273
16273
|
fontSizeStorageKey: r = "font-size",
|
|
16274
|
-
defaultTheme: n =
|
|
16274
|
+
defaultTheme: n = Q.LIGHT,
|
|
16275
16275
|
defaultFontSize: o = ir.MEDIUM
|
|
16276
16276
|
}) {
|
|
16277
|
-
const [s, l] = I(() =>
|
|
16278
|
-
() => s ===
|
|
16279
|
-
), m =
|
|
16277
|
+
const [s, l] = I(() => Ae.getItem(e) || n), [i, d] = I(() => Ae.getItem(r) || o), [c, g] = I(
|
|
16278
|
+
() => s === Q.SYSTEM ? typeof window < "u" && window.matchMedia("(prefers-color-scheme: dark)").matches ? Q.DARK : Q.LIGHT : s
|
|
16279
|
+
), m = R(
|
|
16280
16280
|
(f) => {
|
|
16281
|
-
l(f),
|
|
16281
|
+
l(f), Ae.setItem(e, f);
|
|
16282
16282
|
},
|
|
16283
16283
|
[e]
|
|
16284
|
-
), y =
|
|
16284
|
+
), y = R(
|
|
16285
16285
|
(f) => {
|
|
16286
|
-
d(f),
|
|
16286
|
+
d(f), Ae.setItem(r, f);
|
|
16287
16287
|
},
|
|
16288
16288
|
[r]
|
|
16289
16289
|
);
|
|
16290
16290
|
A(() => {
|
|
16291
16291
|
const f = document.documentElement;
|
|
16292
16292
|
let p = s;
|
|
16293
|
-
s ===
|
|
16293
|
+
s === Q.SYSTEM && (p = window.matchMedia(
|
|
16294
16294
|
"(prefers-color-scheme: dark)"
|
|
16295
|
-
).matches ?
|
|
16295
|
+
).matches ? Q.DARK : Q.LIGHT), g(p), f.classList.remove("light", "dark"), f.classList.add(p), f.classList.remove("font-small", "font-medium", "font-large"), f.classList.add(`font-${i}`);
|
|
16296
16296
|
}, [s, i]), A(() => {
|
|
16297
|
-
if (s ===
|
|
16297
|
+
if (s === Q.SYSTEM) {
|
|
16298
16298
|
const f = window.matchMedia("(prefers-color-scheme: dark)"), p = (x) => {
|
|
16299
|
-
const N = document.documentElement, v = x.matches ?
|
|
16299
|
+
const N = document.documentElement, v = x.matches ? Q.DARK : Q.LIGHT;
|
|
16300
16300
|
g(v), N.classList.remove("light", "dark"), N.classList.add(v);
|
|
16301
16301
|
};
|
|
16302
16302
|
return f.addEventListener("change", p), () => {
|
|
@@ -16716,7 +16716,7 @@ const N0 = ({
|
|
|
16716
16716
|
className: l = "",
|
|
16717
16717
|
size: i = "lg"
|
|
16718
16718
|
}) => {
|
|
16719
|
-
const { paddingClass: d } =
|
|
16719
|
+
const { paddingClass: d } = le(), g = (() => {
|
|
16720
16720
|
const x = o.via ? `${o.from}-${o.via}-${o.to}` : `${o.from}-${o.to}`;
|
|
16721
16721
|
return {
|
|
16722
16722
|
"blue-600-purple-600": "bg-gradient-to-r from-blue-600 to-purple-600 dark:from-blue-700 dark:to-purple-700",
|
|
@@ -16835,7 +16835,7 @@ const N0 = ({
|
|
|
16835
16835
|
onError: r,
|
|
16836
16836
|
className: n = ""
|
|
16837
16837
|
}) => {
|
|
16838
|
-
const o =
|
|
16838
|
+
const o = B(null), s = B(null);
|
|
16839
16839
|
return A(() => {
|
|
16840
16840
|
if (!t)
|
|
16841
16841
|
return;
|
|
@@ -16950,7 +16950,7 @@ const N0 = ({
|
|
|
16950
16950
|
as: n = "div",
|
|
16951
16951
|
withPadding: o = !0
|
|
16952
16952
|
}) => {
|
|
16953
|
-
const s =
|
|
16953
|
+
const s = le(), l = e ? Nn(e, o) : o ? s.containerClass : s.maxWidthClass;
|
|
16954
16954
|
return /* @__PURE__ */ a(n, { className: u(l, r), children: t });
|
|
16955
16955
|
};
|
|
16956
16956
|
function Nn(t, e) {
|
|
@@ -16967,7 +16967,7 @@ const $0 = ({
|
|
|
16967
16967
|
className: r,
|
|
16968
16968
|
children: n
|
|
16969
16969
|
}) => {
|
|
16970
|
-
const { containerClass: o } =
|
|
16970
|
+
const { containerClass: o } = le();
|
|
16971
16971
|
return /* @__PURE__ */ a(
|
|
16972
16972
|
"footer",
|
|
16973
16973
|
{
|
|
@@ -17076,7 +17076,7 @@ const $0 = ({
|
|
|
17076
17076
|
), j0 = ({
|
|
17077
17077
|
children: t,
|
|
17078
17078
|
className: e
|
|
17079
|
-
}) =>
|
|
17079
|
+
}) => D.Children.toArray(t).filter(Boolean).length === 0 ? null : /* @__PURE__ */ a(
|
|
17080
17080
|
"div",
|
|
17081
17081
|
{
|
|
17082
17082
|
className: u(
|
|
@@ -17124,7 +17124,7 @@ const $0 = ({
|
|
|
17124
17124
|
" ",
|
|
17125
17125
|
n || /* @__PURE__ */ a("span", { className: "text-gray-400", children: e }),
|
|
17126
17126
|
r && `. ${r}`
|
|
17127
|
-
] }),
|
|
17127
|
+
] }), ne = ({ href: t, label: e, children: r }) => /* @__PURE__ */ a(an, { content: e, children: /* @__PURE__ */ a(
|
|
17128
17128
|
"a",
|
|
17129
17129
|
{
|
|
17130
17130
|
href: t,
|
|
@@ -17144,7 +17144,7 @@ const $0 = ({
|
|
|
17144
17144
|
githubUrl: l,
|
|
17145
17145
|
className: i
|
|
17146
17146
|
}) => t || e || r || n || o || s || l ? /* @__PURE__ */ h("div", { className: u("flex items-center gap-4", i), children: [
|
|
17147
|
-
t && /* @__PURE__ */ a(
|
|
17147
|
+
t && /* @__PURE__ */ a(ne, { href: t, label: "Twitter / X", children: /* @__PURE__ */ a(
|
|
17148
17148
|
"svg",
|
|
17149
17149
|
{
|
|
17150
17150
|
className: "w-4 h-4",
|
|
@@ -17154,7 +17154,7 @@ const $0 = ({
|
|
|
17154
17154
|
children: /* @__PURE__ */ a("path", { d: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" })
|
|
17155
17155
|
}
|
|
17156
17156
|
) }),
|
|
17157
|
-
e && /* @__PURE__ */ a(
|
|
17157
|
+
e && /* @__PURE__ */ a(ne, { href: e, label: "Reddit", children: /* @__PURE__ */ a(
|
|
17158
17158
|
"svg",
|
|
17159
17159
|
{
|
|
17160
17160
|
className: "w-4 h-4",
|
|
@@ -17164,7 +17164,7 @@ const $0 = ({
|
|
|
17164
17164
|
children: /* @__PURE__ */ a("path", { d: "M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z" })
|
|
17165
17165
|
}
|
|
17166
17166
|
) }),
|
|
17167
|
-
r && /* @__PURE__ */ a(
|
|
17167
|
+
r && /* @__PURE__ */ a(ne, { href: r, label: "Discord", children: /* @__PURE__ */ a(
|
|
17168
17168
|
"svg",
|
|
17169
17169
|
{
|
|
17170
17170
|
className: "w-4 h-4",
|
|
@@ -17174,7 +17174,7 @@ const $0 = ({
|
|
|
17174
17174
|
children: /* @__PURE__ */ a("path", { d: "M20.317 4.37a19.791 19.791 0 0 0-4.885-1.515.074.074 0 0 0-.079.037c-.21.375-.444.864-.608 1.25a18.27 18.27 0 0 0-5.487 0 12.64 12.64 0 0 0-.617-1.25.077.077 0 0 0-.079-.037A19.736 19.736 0 0 0 3.677 4.37a.07.07 0 0 0-.032.027C.533 9.046-.32 13.58.099 18.057a.082.082 0 0 0 .031.057 19.9 19.9 0 0 0 5.993 3.03.078.078 0 0 0 .084-.028 14.09 14.09 0 0 0 1.226-1.994.076.076 0 0 0-.041-.106 13.107 13.107 0 0 1-1.872-.892.077.077 0 0 1-.008-.128 10.2 10.2 0 0 0 .372-.292.074.074 0 0 1 .077-.01c3.928 1.793 8.18 1.793 12.062 0a.074.074 0 0 1 .078.01c.12.098.246.198.373.292a.077.077 0 0 1-.006.127 12.299 12.299 0 0 1-1.873.892.077.077 0 0 0-.041.107c.36.698.772 1.362 1.225 1.993a.076.076 0 0 0 .084.028 19.839 19.839 0 0 0 6.002-3.03.077.077 0 0 0 .032-.054c.5-5.177-.838-9.674-3.549-13.66a.061.061 0 0 0-.031-.03zM8.02 15.33c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.956-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.956 2.418-2.157 2.418zm7.975 0c-1.183 0-2.157-1.085-2.157-2.419 0-1.333.955-2.419 2.157-2.419 1.21 0 2.176 1.096 2.157 2.42 0 1.333-.946 2.418-2.157 2.418z" })
|
|
17175
17175
|
}
|
|
17176
17176
|
) }),
|
|
17177
|
-
n && /* @__PURE__ */ a(
|
|
17177
|
+
n && /* @__PURE__ */ a(ne, { href: n, label: "LinkedIn", children: /* @__PURE__ */ a(
|
|
17178
17178
|
"svg",
|
|
17179
17179
|
{
|
|
17180
17180
|
className: "w-4 h-4",
|
|
@@ -17184,7 +17184,7 @@ const $0 = ({
|
|
|
17184
17184
|
children: /* @__PURE__ */ a("path", { d: "M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" })
|
|
17185
17185
|
}
|
|
17186
17186
|
) }),
|
|
17187
|
-
o && /* @__PURE__ */ a(
|
|
17187
|
+
o && /* @__PURE__ */ a(ne, { href: o, label: "Farcaster", children: /* @__PURE__ */ a(
|
|
17188
17188
|
"svg",
|
|
17189
17189
|
{
|
|
17190
17190
|
className: "w-4 h-4",
|
|
@@ -17194,7 +17194,7 @@ const $0 = ({
|
|
|
17194
17194
|
children: /* @__PURE__ */ a("path", { d: "M18.24 2.4H5.76a3.36 3.36 0 0 0-3.36 3.36v12.48a3.36 3.36 0 0 0 3.36 3.36h12.48a3.36 3.36 0 0 0 3.36-3.36V5.76a3.36 3.36 0 0 0-3.36-3.36zm-2.16 13.2h-1.2v-4.8h-5.76v4.8H7.92V8.4h1.2v3.6h5.76V8.4h1.2v7.2z" })
|
|
17195
17195
|
}
|
|
17196
17196
|
) }),
|
|
17197
|
-
s && /* @__PURE__ */ a(
|
|
17197
|
+
s && /* @__PURE__ */ a(ne, { href: s, label: "Telegram", children: /* @__PURE__ */ a(
|
|
17198
17198
|
"svg",
|
|
17199
17199
|
{
|
|
17200
17200
|
className: "w-4 h-4",
|
|
@@ -17204,7 +17204,7 @@ const $0 = ({
|
|
|
17204
17204
|
children: /* @__PURE__ */ a("path", { d: "M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0a12 12 0 0 0-.056 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z" })
|
|
17205
17205
|
}
|
|
17206
17206
|
) }),
|
|
17207
|
-
l && /* @__PURE__ */ a(
|
|
17207
|
+
l && /* @__PURE__ */ a(ne, { href: l, label: "GitHub", children: /* @__PURE__ */ a(
|
|
17208
17208
|
"svg",
|
|
17209
17209
|
{
|
|
17210
17210
|
className: "w-4 h-4",
|
|
@@ -17268,164 +17268,176 @@ const $0 = ({
|
|
|
17268
17268
|
masterContent: n,
|
|
17269
17269
|
detailContent: o,
|
|
17270
17270
|
detailTitle: s,
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
|
|
17274
|
-
|
|
17275
|
-
|
|
17276
|
-
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17284
|
-
|
|
17271
|
+
topContent: l,
|
|
17272
|
+
bottomContent: i,
|
|
17273
|
+
mobileView: d = "navigation",
|
|
17274
|
+
onBackToNavigation: c,
|
|
17275
|
+
masterClassName: g = "",
|
|
17276
|
+
detailClassName: m = "",
|
|
17277
|
+
detailTitleClassName: y = "",
|
|
17278
|
+
masterWidth: b = 320,
|
|
17279
|
+
stickyMaster: f = !0,
|
|
17280
|
+
stickyTopOffset: p = 96,
|
|
17281
|
+
desktopGap: x = 32,
|
|
17282
|
+
showMasterBackground: N = !0,
|
|
17283
|
+
enableAnimations: v = !0,
|
|
17284
|
+
animationDuration: C = 300,
|
|
17285
|
+
contentKey: w,
|
|
17286
|
+
animationRef: k
|
|
17285
17287
|
}) => {
|
|
17286
|
-
const { containerClass:
|
|
17288
|
+
const { containerClass: L } = le(), E = `gap-${Math.round(x / 4)}` || "gap-8", S = (K) => K ? K.split("-")[0].trim() : "Back", M = r ? S(r) : t ? S(t) : "Back", [z, T] = I(!1), [U, F] = I("auto"), P = B(null), W = B(
|
|
17287
17289
|
null
|
|
17288
17290
|
);
|
|
17289
|
-
A(() => (
|
|
17291
|
+
A(() => (k && (k.current = {
|
|
17290
17292
|
triggerTransition: (K) => {
|
|
17291
|
-
if (!
|
|
17293
|
+
if (!v) {
|
|
17292
17294
|
K();
|
|
17293
17295
|
return;
|
|
17294
17296
|
}
|
|
17295
|
-
if (
|
|
17296
|
-
const
|
|
17297
|
-
|
|
17297
|
+
if (P.current) {
|
|
17298
|
+
const ae = P.current.scrollHeight;
|
|
17299
|
+
F(ae);
|
|
17298
17300
|
}
|
|
17299
|
-
|
|
17301
|
+
T(!0), W.current && clearTimeout(W.current), W.current = setTimeout(() => {
|
|
17300
17302
|
K(), setTimeout(() => {
|
|
17301
|
-
if (
|
|
17302
|
-
const
|
|
17303
|
-
|
|
17304
|
-
|
|
17305
|
-
},
|
|
17303
|
+
if (P.current) {
|
|
17304
|
+
const ae = P.current.scrollHeight;
|
|
17305
|
+
F(ae), setTimeout(() => {
|
|
17306
|
+
F("auto"), T(!1);
|
|
17307
|
+
}, C);
|
|
17306
17308
|
}
|
|
17307
17309
|
}, 50);
|
|
17308
|
-
},
|
|
17310
|
+
}, C / 2);
|
|
17309
17311
|
}
|
|
17310
17312
|
}), () => {
|
|
17311
|
-
|
|
17312
|
-
}), [
|
|
17313
|
-
|
|
17314
|
-
}, [
|
|
17315
|
-
const
|
|
17316
|
-
height:
|
|
17317
|
-
transition: `height ${
|
|
17313
|
+
W.current && clearTimeout(W.current);
|
|
17314
|
+
}), [v, C, k]), A(() => {
|
|
17315
|
+
P.current && (P.current.scrollTop = 0);
|
|
17316
|
+
}, [w, s]);
|
|
17317
|
+
const V = v ? {
|
|
17318
|
+
height: U === "auto" ? "auto" : `${U}px`,
|
|
17319
|
+
transition: `height ${C}ms cubic-bezier(0.4, 0, 0.2, 1)`,
|
|
17318
17320
|
width: "100%",
|
|
17319
17321
|
maxWidth: "100%"
|
|
17320
|
-
} : { width: "100%", maxWidth: "100%" },
|
|
17321
|
-
transition: `opacity ${
|
|
17322
|
+
} : { width: "100%", maxWidth: "100%" }, Y = v ? `${z ? "opacity-0 transform translate-y-2" : "opacity-100 transform translate-y-0"}` : "", Te = v ? {
|
|
17323
|
+
transition: `opacity ${C}ms ease-in-out, transform ${C}ms ease-in-out`
|
|
17322
17324
|
} : {};
|
|
17323
17325
|
return /* @__PURE__ */ h("div", { className: "w-full flex-1 min-h-0 flex flex-col", children: [
|
|
17324
|
-
/* @__PURE__ */ a(
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
"
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
|
|
17342
|
-
|
|
17343
|
-
|
|
17344
|
-
|
|
17345
|
-
|
|
17346
|
-
|
|
17347
|
-
|
|
17348
|
-
|
|
17349
|
-
|
|
17350
|
-
|
|
17351
|
-
|
|
17352
|
-
|
|
17353
|
-
|
|
17354
|
-
|
|
17355
|
-
|
|
17356
|
-
|
|
17357
|
-
|
|
17358
|
-
|
|
17359
|
-
|
|
17360
|
-
|
|
17361
|
-
|
|
17362
|
-
|
|
17363
|
-
|
|
17364
|
-
|
|
17365
|
-
|
|
17366
|
-
|
|
17367
|
-
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
|
|
17372
|
-
|
|
17373
|
-
|
|
17374
|
-
|
|
17375
|
-
|
|
17376
|
-
|
|
17377
|
-
|
|
17378
|
-
|
|
17379
|
-
|
|
17380
|
-
|
|
17381
|
-
|
|
17382
|
-
|
|
17383
|
-
|
|
17384
|
-
|
|
17385
|
-
|
|
17386
|
-
|
|
17387
|
-
|
|
17388
|
-
|
|
17389
|
-
|
|
17390
|
-
|
|
17391
|
-
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
|
|
17396
|
-
|
|
17397
|
-
|
|
17398
|
-
|
|
17399
|
-
|
|
17400
|
-
{
|
|
17401
|
-
|
|
17402
|
-
|
|
17403
|
-
|
|
17404
|
-
|
|
17405
|
-
|
|
17406
|
-
|
|
17407
|
-
|
|
17408
|
-
|
|
17409
|
-
|
|
17410
|
-
|
|
17411
|
-
|
|
17412
|
-
|
|
17413
|
-
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17421
|
-
|
|
17422
|
-
|
|
17423
|
-
|
|
17424
|
-
|
|
17425
|
-
|
|
17426
|
-
|
|
17427
|
-
|
|
17428
|
-
|
|
17326
|
+
l && /* @__PURE__ */ a("div", { className: "hidden md:block flex-shrink-0", children: l }),
|
|
17327
|
+
/* @__PURE__ */ h("div", { className: "flex-1 min-h-0 flex flex-col", children: [
|
|
17328
|
+
/* @__PURE__ */ h(
|
|
17329
|
+
"div",
|
|
17330
|
+
{
|
|
17331
|
+
className: `md:hidden ${d === "navigation" ? "block" : "hidden"} flex-1 overflow-y-auto`,
|
|
17332
|
+
children: [
|
|
17333
|
+
l && /* @__PURE__ */ a("div", { children: l }),
|
|
17334
|
+
/* @__PURE__ */ h(
|
|
17335
|
+
"div",
|
|
17336
|
+
{
|
|
17337
|
+
className: N ? "bg-white dark:bg-gray-800 p-6" : "p-6",
|
|
17338
|
+
children: [
|
|
17339
|
+
t && /* @__PURE__ */ h("div", { className: L, children: [
|
|
17340
|
+
/* @__PURE__ */ a("h2", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-4", children: t }),
|
|
17341
|
+
e && /* @__PURE__ */ a("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6 break-all", children: e })
|
|
17342
|
+
] }),
|
|
17343
|
+
/* @__PURE__ */ a("div", { className: g, children: n })
|
|
17344
|
+
]
|
|
17345
|
+
}
|
|
17346
|
+
)
|
|
17347
|
+
]
|
|
17348
|
+
}
|
|
17349
|
+
),
|
|
17350
|
+
/* @__PURE__ */ h(
|
|
17351
|
+
"div",
|
|
17352
|
+
{
|
|
17353
|
+
className: `md:hidden ${d === "content" ? "flex flex-col flex-1 min-h-0" : "hidden"} ${L} py-8`,
|
|
17354
|
+
children: [
|
|
17355
|
+
d === "content" && c && /* @__PURE__ */ h(
|
|
17356
|
+
"button",
|
|
17357
|
+
{
|
|
17358
|
+
onClick: c,
|
|
17359
|
+
className: "mb-4 px-4 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm font-medium text-gray-700 dark:text-gray-300 bg-white dark:bg-gray-800 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors flex-shrink-0",
|
|
17360
|
+
children: [
|
|
17361
|
+
"← ",
|
|
17362
|
+
M
|
|
17363
|
+
]
|
|
17364
|
+
}
|
|
17365
|
+
),
|
|
17366
|
+
/* @__PURE__ */ h(
|
|
17367
|
+
"div",
|
|
17368
|
+
{
|
|
17369
|
+
ref: P,
|
|
17370
|
+
className: `bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 flex-1 min-h-0 overflow-y-auto ${m}`,
|
|
17371
|
+
style: V,
|
|
17372
|
+
children: [
|
|
17373
|
+
/* @__PURE__ */ h("div", { className: Y, style: Te, children: [
|
|
17374
|
+
s && /* @__PURE__ */ a(
|
|
17375
|
+
"h1",
|
|
17376
|
+
{
|
|
17377
|
+
className: `text-4xl font-bold text-gray-900 dark:text-white mb-6 ${y}`,
|
|
17378
|
+
children: s
|
|
17379
|
+
}
|
|
17380
|
+
),
|
|
17381
|
+
o
|
|
17382
|
+
] }),
|
|
17383
|
+
i && /* @__PURE__ */ a("div", { children: i })
|
|
17384
|
+
]
|
|
17385
|
+
}
|
|
17386
|
+
)
|
|
17387
|
+
]
|
|
17388
|
+
}
|
|
17389
|
+
),
|
|
17390
|
+
/* @__PURE__ */ h(
|
|
17391
|
+
"div",
|
|
17392
|
+
{
|
|
17393
|
+
className: `hidden md:flex flex-1 min-h-0 ${E}`,
|
|
17394
|
+
style: { width: "100%" },
|
|
17395
|
+
children: [
|
|
17396
|
+
/* @__PURE__ */ h(
|
|
17397
|
+
"aside",
|
|
17398
|
+
{
|
|
17399
|
+
className: `flex-shrink-0 flex flex-col min-h-0${f ? " sticky" : ""}`,
|
|
17400
|
+
style: {
|
|
17401
|
+
width: `${b}px`,
|
|
17402
|
+
minWidth: `${b}px`,
|
|
17403
|
+
...f ? { top: `${p}px` } : {}
|
|
17404
|
+
},
|
|
17405
|
+
children: [
|
|
17406
|
+
t && /* @__PURE__ */ a("h2", { className: "text-lg font-semibold text-gray-900 dark:text-white mb-4 flex-shrink-0", children: t }),
|
|
17407
|
+
e && /* @__PURE__ */ a("p", { className: "text-sm text-gray-600 dark:text-gray-400 mb-6 break-all flex-shrink-0", children: e }),
|
|
17408
|
+
/* @__PURE__ */ a(
|
|
17409
|
+
"div",
|
|
17410
|
+
{
|
|
17411
|
+
className: `bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-4 flex-1 min-h-0 overflow-y-auto ${g}`,
|
|
17412
|
+
children: n
|
|
17413
|
+
}
|
|
17414
|
+
)
|
|
17415
|
+
]
|
|
17416
|
+
}
|
|
17417
|
+
),
|
|
17418
|
+
/* @__PURE__ */ a("div", { className: "flex-1 min-w-0 flex flex-col min-h-0", children: /* @__PURE__ */ a(
|
|
17419
|
+
"div",
|
|
17420
|
+
{
|
|
17421
|
+
ref: P,
|
|
17422
|
+
className: `bg-white dark:bg-gray-800 rounded-lg border border-gray-200 dark:border-gray-700 p-8 flex-1 min-h-0 overflow-y-auto ${m}`,
|
|
17423
|
+
style: V,
|
|
17424
|
+
children: /* @__PURE__ */ h("div", { className: Y, style: Te, children: [
|
|
17425
|
+
s && /* @__PURE__ */ a(
|
|
17426
|
+
"h1",
|
|
17427
|
+
{
|
|
17428
|
+
className: `text-4xl font-bold text-gray-900 dark:text-white mb-6 ${y}`,
|
|
17429
|
+
children: s
|
|
17430
|
+
}
|
|
17431
|
+
),
|
|
17432
|
+
o
|
|
17433
|
+
] })
|
|
17434
|
+
}
|
|
17435
|
+
) })
|
|
17436
|
+
]
|
|
17437
|
+
}
|
|
17438
|
+
)
|
|
17439
|
+
] }),
|
|
17440
|
+
i && /* @__PURE__ */ a("div", { className: "hidden md:block flex-shrink-0", children: i })
|
|
17429
17441
|
] });
|
|
17430
17442
|
}, G0 = ({
|
|
17431
17443
|
children: t,
|
|
@@ -17478,12 +17490,12 @@ const $0 = ({
|
|
|
17478
17490
|
style: { aspectRatio: t },
|
|
17479
17491
|
children: e
|
|
17480
17492
|
}
|
|
17481
|
-
) }), dr =
|
|
17493
|
+
) }), dr = Re(null), Cn = ({
|
|
17482
17494
|
children: t,
|
|
17483
17495
|
variant: e = "default",
|
|
17484
17496
|
sticky: r = !0
|
|
17485
17497
|
}) => {
|
|
17486
|
-
const [n, o] = I(!1), s =
|
|
17498
|
+
const [n, o] = I(!1), s = R(() => {
|
|
17487
17499
|
o((l) => !l);
|
|
17488
17500
|
}, []);
|
|
17489
17501
|
return /* @__PURE__ */ a(
|
|
@@ -17500,7 +17512,7 @@ const $0 = ({
|
|
|
17500
17512
|
}
|
|
17501
17513
|
);
|
|
17502
17514
|
}, ur = () => {
|
|
17503
|
-
const t =
|
|
17515
|
+
const t = je(dr);
|
|
17504
17516
|
if (!t)
|
|
17505
17517
|
throw new Error("useTopbar must be used within a TopbarProvider");
|
|
17506
17518
|
return t;
|
|
@@ -17527,7 +17539,7 @@ const $0 = ({
|
|
|
17527
17539
|
zIndex: l = "high",
|
|
17528
17540
|
"aria-label": i = "Main navigation"
|
|
17529
17541
|
}) => {
|
|
17530
|
-
const { containerClass: d } =
|
|
17542
|
+
const { containerClass: d } = le();
|
|
17531
17543
|
return /* @__PURE__ */ a(Cn, { variant: e, sticky: r, children: /* @__PURE__ */ h(
|
|
17532
17544
|
"header",
|
|
17533
17545
|
{
|
|
@@ -17670,7 +17682,7 @@ const $0 = ({
|
|
|
17670
17682
|
menuItems: s,
|
|
17671
17683
|
LinkComponent: l
|
|
17672
17684
|
}) => {
|
|
17673
|
-
const { mobileMenuOpen: i, toggleMobileMenu: d, setMobileMenuOpen: c } = ur(), [g, m] = I(!1), y =
|
|
17685
|
+
const { mobileMenuOpen: i, toggleMobileMenu: d, setMobileMenuOpen: c } = ur(), [g, m] = I(!1), y = B(null);
|
|
17674
17686
|
it(y, () => {
|
|
17675
17687
|
m(!1);
|
|
17676
17688
|
});
|
|
@@ -17787,7 +17799,7 @@ const $0 = ({
|
|
|
17787
17799
|
LinkComponent: n,
|
|
17788
17800
|
align: o = "center"
|
|
17789
17801
|
}) => {
|
|
17790
|
-
const [s, l] = I(null), i =
|
|
17802
|
+
const [s, l] = I(null), i = B(null);
|
|
17791
17803
|
it(
|
|
17792
17804
|
i,
|
|
17793
17805
|
() => l(null)
|
|
@@ -18081,7 +18093,7 @@ const $0 = ({
|
|
|
18081
18093
|
width: s = "md",
|
|
18082
18094
|
showOnMobile: l = !1
|
|
18083
18095
|
}) => {
|
|
18084
|
-
const [i, d] =
|
|
18096
|
+
const [i, d] = D.useState(e || ""), c = (m) => {
|
|
18085
18097
|
const y = m.target.value;
|
|
18086
18098
|
d(y), r?.(y);
|
|
18087
18099
|
};
|
|
@@ -18462,23 +18474,23 @@ class Fn {
|
|
|
18462
18474
|
return Array.from(this.cache.values()).reduce((e, r) => e + JSON.stringify(r).length * 2, 0);
|
|
18463
18475
|
}
|
|
18464
18476
|
}
|
|
18465
|
-
const
|
|
18466
|
-
const n = jn[r], o =
|
|
18477
|
+
const ge = new Fn(), oe = /* @__PURE__ */ new Map(), Wn = async (t, e, r = "messages") => {
|
|
18478
|
+
const n = jn[r], o = ge.get(t, n);
|
|
18467
18479
|
if (o && !o.isStale)
|
|
18468
18480
|
return o.data;
|
|
18469
|
-
const s =
|
|
18481
|
+
const s = oe.get(t);
|
|
18470
18482
|
if (s)
|
|
18471
18483
|
return s;
|
|
18472
18484
|
if (o && o.isStale && n.staleWhileRevalidate) {
|
|
18473
|
-
const i = e().then((d) => (
|
|
18474
|
-
throw
|
|
18485
|
+
const i = e().then((d) => (ge.set(t, d, n), oe.delete(t), d)).catch((d) => {
|
|
18486
|
+
throw oe.delete(t), d;
|
|
18475
18487
|
});
|
|
18476
|
-
return
|
|
18488
|
+
return oe.set(t, i), o.data;
|
|
18477
18489
|
}
|
|
18478
|
-
const l = e().then((i) => (
|
|
18479
|
-
throw
|
|
18490
|
+
const l = e().then((i) => (ge.set(t, i, n), oe.delete(t), i)).catch((i) => {
|
|
18491
|
+
throw oe.delete(t), i;
|
|
18480
18492
|
});
|
|
18481
|
-
return
|
|
18493
|
+
return oe.set(t, l), l;
|
|
18482
18494
|
};
|
|
18483
18495
|
class On {
|
|
18484
18496
|
constructor() {
|
|
@@ -18603,9 +18615,9 @@ class mu {
|
|
|
18603
18615
|
}
|
|
18604
18616
|
}
|
|
18605
18617
|
const hu = {
|
|
18606
|
-
invalidate: (t) =>
|
|
18607
|
-
clear: () =>
|
|
18608
|
-
getStats: () =>
|
|
18618
|
+
invalidate: (t) => ge.invalidate(t),
|
|
18619
|
+
clear: () => ge.clear(),
|
|
18620
|
+
getStats: () => ge.getStats(),
|
|
18609
18621
|
// Warm up cache with commonly accessed data
|
|
18610
18622
|
warmUp: async (t) => {
|
|
18611
18623
|
await Promise.allSettled(t.map((e) => e()));
|
|
@@ -18762,7 +18774,7 @@ const gr = (t) => ({
|
|
|
18762
18774
|
userInput: "Sanitize all user inputs, especially wallet addresses and transaction data",
|
|
18763
18775
|
privateKeys: "Never log, store, or transmit private keys - they should remain in wallets only",
|
|
18764
18776
|
phishing: "Implement strict CSP to prevent injection of malicious scripts that could steal wallet access"
|
|
18765
|
-
}, Z = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(),
|
|
18777
|
+
}, Z = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new Map(), Pe = /* @__PURE__ */ new Set();
|
|
18766
18778
|
let Ce = "medium", gt = !1;
|
|
18767
18779
|
function Jn() {
|
|
18768
18780
|
if ("connection" in navigator) {
|
|
@@ -18786,7 +18798,7 @@ function Cu(t, e, r = {}) {
|
|
|
18786
18798
|
} = r;
|
|
18787
18799
|
if (Z.has(e))
|
|
18788
18800
|
return Z.get(e).component;
|
|
18789
|
-
const m =
|
|
18801
|
+
const m = se(async () => {
|
|
18790
18802
|
const b = performance.now();
|
|
18791
18803
|
if (be.has(e))
|
|
18792
18804
|
return be.get(e).then((p) => ({ default: p }));
|
|
@@ -18822,8 +18834,8 @@ function Cu(t, e, r = {}) {
|
|
|
18822
18834
|
}), y = (b) => {
|
|
18823
18835
|
const [f, p] = I(!0);
|
|
18824
18836
|
A(() => {
|
|
18825
|
-
if (l && !Z.has(e) && l() && !
|
|
18826
|
-
|
|
18837
|
+
if (l && !Z.has(e) && l() && !Pe.has(e)) {
|
|
18838
|
+
Pe.add(e);
|
|
18827
18839
|
const v = Zn(d, Ce);
|
|
18828
18840
|
setTimeout(() => {
|
|
18829
18841
|
t().catch(() => {
|
|
@@ -18937,7 +18949,7 @@ const we = class we {
|
|
|
18937
18949
|
we.routeMap = /* @__PURE__ */ new Map(), we.routeUsageStats = /* @__PURE__ */ new Map(), we.currentRoute = "";
|
|
18938
18950
|
let Tt = we;
|
|
18939
18951
|
const Su = ({ src: t, alt: e, className: r, placeholder: n, priority: o = "medium" }) => {
|
|
18940
|
-
const [s, l] = I(!1), [i, d] = I(!1), c =
|
|
18952
|
+
const [s, l] = I(!1), [i, d] = I(!1), c = D.useRef(null);
|
|
18941
18953
|
A(() => {
|
|
18942
18954
|
if (!c.current) return;
|
|
18943
18955
|
if (o === "high") {
|
|
@@ -18975,12 +18987,12 @@ const Su = ({ src: t, alt: e, className: r, placeholder: n, priority: o = "mediu
|
|
|
18975
18987
|
] });
|
|
18976
18988
|
};
|
|
18977
18989
|
function Lu() {
|
|
18978
|
-
Z.clear(),
|
|
18990
|
+
Z.clear(), Pe.clear();
|
|
18979
18991
|
}
|
|
18980
18992
|
function Eu() {
|
|
18981
18993
|
return {
|
|
18982
18994
|
cachedComponents: Z.size,
|
|
18983
|
-
preloadQueue:
|
|
18995
|
+
preloadQueue: Pe.size,
|
|
18984
18996
|
networkSpeed: Ce,
|
|
18985
18997
|
isLowEndDevice: gt,
|
|
18986
18998
|
cacheEntries: Array.from(Z.entries()).map(([t, e]) => ({
|
|
@@ -19009,7 +19021,7 @@ const eo = ({ message: t }) => /* @__PURE__ */ h("div", { className: "flex items
|
|
|
19009
19021
|
return () => /* @__PURE__ */ a(eo, { message: "Loading component..." });
|
|
19010
19022
|
}
|
|
19011
19023
|
}, ro = (t, e = "default", r = 3) => {
|
|
19012
|
-
const n =
|
|
19024
|
+
const n = se(async () => {
|
|
19013
19025
|
let s = null;
|
|
19014
19026
|
for (let l = 0; l < r; l++)
|
|
19015
19027
|
try {
|
|
@@ -19089,8 +19101,8 @@ function zu(t, e) {
|
|
|
19089
19101
|
priority: l = "medium",
|
|
19090
19102
|
cacheKey: i = `conditional-${Math.random()}`
|
|
19091
19103
|
} = e, d = (c) => {
|
|
19092
|
-
const [g, m] =
|
|
19093
|
-
return
|
|
19104
|
+
const [g, m] = D.useState(!1), [y, b] = D.useState(null);
|
|
19105
|
+
return D.useEffect(() => {
|
|
19094
19106
|
const x = setTimeout(async () => {
|
|
19095
19107
|
const N = Se.get(i);
|
|
19096
19108
|
if (N && N.isValid && Date.now() - N.lastCheck < 3e5)
|
|
@@ -19671,8 +19683,8 @@ function hr(t) {
|
|
|
19671
19683
|
const e = `wallet-${t.toLowerCase()}`;
|
|
19672
19684
|
if (He.has(e))
|
|
19673
19685
|
return He.get(e);
|
|
19674
|
-
const n =
|
|
19675
|
-
default: () =>
|
|
19686
|
+
const n = se(() => Promise.resolve({
|
|
19687
|
+
default: () => D.createElement("div", {}, `${t} Provider Placeholder`)
|
|
19676
19688
|
})), o = (s) => /* @__PURE__ */ a(
|
|
19677
19689
|
Ee,
|
|
19678
19690
|
{
|
|
@@ -19722,12 +19734,12 @@ const ft = class ft {
|
|
|
19722
19734
|
}
|
|
19723
19735
|
};
|
|
19724
19736
|
ft.preloadedWallets = /* @__PURE__ */ new Set();
|
|
19725
|
-
let
|
|
19737
|
+
let De = ft;
|
|
19726
19738
|
function Hu() {
|
|
19727
19739
|
return {
|
|
19728
19740
|
availableWallets: mr(),
|
|
19729
19741
|
preloadWallet: (n) => {
|
|
19730
|
-
|
|
19742
|
+
De.preloadWallet(n);
|
|
19731
19743
|
},
|
|
19732
19744
|
getDetectedWallets: () => Array.from(ye),
|
|
19733
19745
|
hasWallet: (n) => ye.has(n.toLowerCase())
|
|
@@ -19742,7 +19754,7 @@ function qu({
|
|
|
19742
19754
|
"button",
|
|
19743
19755
|
{
|
|
19744
19756
|
onClick: () => {
|
|
19745
|
-
|
|
19757
|
+
De.preloadWallet(t), setTimeout(e, 100);
|
|
19746
19758
|
},
|
|
19747
19759
|
disabled: r,
|
|
19748
19760
|
className: "wallet-connect-btn",
|
|
@@ -19997,23 +20009,23 @@ const qe = {
|
|
|
19997
20009
|
qe.mark(`${t}-end`), qe.measure(t, `${t}-start`, `${t}-end`);
|
|
19998
20010
|
}), [t, e]);
|
|
19999
20011
|
}, Yu = (t) => {
|
|
20000
|
-
const e =
|
|
20001
|
-
return e.current = t,
|
|
20012
|
+
const e = B(t);
|
|
20013
|
+
return e.current = t, R(
|
|
20002
20014
|
(...r) => e.current(...r),
|
|
20003
20015
|
[]
|
|
20004
20016
|
);
|
|
20005
20017
|
}, Qu = (t, e, r) => {
|
|
20006
|
-
const n =
|
|
20018
|
+
const n = B(e), o = B(void 0);
|
|
20007
20019
|
return ee(() => (r && process.env.NODE_ENV === "development" && e.some(
|
|
20008
20020
|
(s, l) => s !== n.current[l]
|
|
20009
20021
|
), n.current = e, o.current = t(), o.current), [t, r, e]);
|
|
20010
|
-
},
|
|
20011
|
-
const e =
|
|
20012
|
-
|
|
20022
|
+
}, Be = /* @__PURE__ */ new Map(), Ju = (t) => {
|
|
20023
|
+
const e = Be.get(t) || 0;
|
|
20024
|
+
Be.set(t, e + 1), A(() => {
|
|
20013
20025
|
process.env.NODE_ENV;
|
|
20014
20026
|
});
|
|
20015
|
-
}, Xu = () => Object.fromEntries(
|
|
20016
|
-
const [e, r] = I(/* @__PURE__ */ new Set()), n =
|
|
20027
|
+
}, Xu = () => Object.fromEntries(Be), Zu = () => Be.clear(), eg = (t) => D.lazy(t), tg = (t = 0.1) => {
|
|
20028
|
+
const [e, r] = I(/* @__PURE__ */ new Set()), n = B(null);
|
|
20017
20029
|
A(() => (n.current = new IntersectionObserver(
|
|
20018
20030
|
(s) => {
|
|
20019
20031
|
s.forEach((l) => {
|
|
@@ -20027,7 +20039,7 @@ const qe = {
|
|
|
20027
20039
|
},
|
|
20028
20040
|
{ threshold: t }
|
|
20029
20041
|
), () => n.current?.disconnect()), [t]);
|
|
20030
|
-
const o =
|
|
20042
|
+
const o = R((s) => {
|
|
20031
20043
|
s && n.current && n.current.observe(s);
|
|
20032
20044
|
}, []);
|
|
20033
20045
|
return { loadedImages: e, observeImage: o };
|
|
@@ -20052,12 +20064,12 @@ const qe = {
|
|
|
20052
20064
|
n.rel = "preload", n.href = t, n.as = e, r && (n.crossOrigin = "anonymous"), document.head.appendChild(n);
|
|
20053
20065
|
}
|
|
20054
20066
|
}, lg = (t) => {
|
|
20055
|
-
const e =
|
|
20067
|
+
const e = B(/* @__PURE__ */ new Set()), r = B(/* @__PURE__ */ new Set()), n = R((s, l) => {
|
|
20056
20068
|
const i = setTimeout(() => {
|
|
20057
20069
|
e.current.delete(i), s();
|
|
20058
20070
|
}, l);
|
|
20059
20071
|
return e.current.add(i), i;
|
|
20060
|
-
}, []), o =
|
|
20072
|
+
}, []), o = R((s, l) => {
|
|
20061
20073
|
const i = setInterval(s, l);
|
|
20062
20074
|
return r.current.add(i), i;
|
|
20063
20075
|
}, []);
|
|
@@ -20213,14 +20225,14 @@ class go {
|
|
|
20213
20225
|
this.observers.forEach((e) => e.disconnect()), this.observers = [];
|
|
20214
20226
|
}
|
|
20215
20227
|
}
|
|
20216
|
-
let
|
|
20217
|
-
const ig = (t) => (
|
|
20218
|
-
const e =
|
|
20219
|
-
|
|
20228
|
+
let ze = null;
|
|
20229
|
+
const ig = (t) => (ze || (ze = new go(t)), ze), mt = () => ze, mo = (t) => {
|
|
20230
|
+
const e = D.useRef(performance.now());
|
|
20231
|
+
D.useEffect(() => {
|
|
20220
20232
|
const r = performance.now() - e.current, n = mt();
|
|
20221
20233
|
n && n.measureComponentRender(t, r);
|
|
20222
20234
|
}, [t]);
|
|
20223
|
-
}, cg = (t, e) =>
|
|
20235
|
+
}, cg = (t, e) => D.forwardRef((r, n) => (mo(e), D.createElement(t, { ...r, ref: n }))), dg = async (t, e) => {
|
|
20224
20236
|
const r = performance.now(), n = await t(), o = performance.now() - r, s = mt();
|
|
20225
20237
|
return s && s.measureAPICall(e, o), n;
|
|
20226
20238
|
}, ho = {
|
|
@@ -20273,7 +20285,7 @@ const ig = (t) => (Ae || (Ae = new go(t)), Ae), mt = () => Ae, mo = (t) => {
|
|
|
20273
20285
|
TTFB: [800, 1800],
|
|
20274
20286
|
INP: [200, 500]
|
|
20275
20287
|
};
|
|
20276
|
-
function
|
|
20288
|
+
function fe(t, e) {
|
|
20277
20289
|
const [r, n] = fo[t];
|
|
20278
20290
|
return e <= r ? "good" : e <= n ? "needs-improvement" : "poor";
|
|
20279
20291
|
}
|
|
@@ -20299,7 +20311,7 @@ function bo(t) {
|
|
|
20299
20311
|
document.visibilityState === "hidden" && t({
|
|
20300
20312
|
name: "CLS",
|
|
20301
20313
|
value: e,
|
|
20302
|
-
rating:
|
|
20314
|
+
rating: fe("CLS", e)
|
|
20303
20315
|
});
|
|
20304
20316
|
});
|
|
20305
20317
|
}
|
|
@@ -20309,7 +20321,7 @@ function po(t) {
|
|
|
20309
20321
|
r.name === "first-contentful-paint" && t({
|
|
20310
20322
|
name: "FCP",
|
|
20311
20323
|
value: r.startTime,
|
|
20312
|
-
rating:
|
|
20324
|
+
rating: fe("FCP", r.startTime)
|
|
20313
20325
|
});
|
|
20314
20326
|
});
|
|
20315
20327
|
}
|
|
@@ -20323,7 +20335,7 @@ function yo(t) {
|
|
|
20323
20335
|
e > 0 && t({
|
|
20324
20336
|
name: "LCP",
|
|
20325
20337
|
value: e,
|
|
20326
|
-
rating:
|
|
20338
|
+
rating: fe("LCP", e)
|
|
20327
20339
|
});
|
|
20328
20340
|
};
|
|
20329
20341
|
document.addEventListener("visibilitychange", () => {
|
|
@@ -20340,7 +20352,7 @@ function xo(t) {
|
|
|
20340
20352
|
t({
|
|
20341
20353
|
name: "FID",
|
|
20342
20354
|
value: n,
|
|
20343
|
-
rating:
|
|
20355
|
+
rating: fe("FID", n)
|
|
20344
20356
|
});
|
|
20345
20357
|
}
|
|
20346
20358
|
});
|
|
@@ -20354,7 +20366,7 @@ function vo(t) {
|
|
|
20354
20366
|
t({
|
|
20355
20367
|
name: "TTFB",
|
|
20356
20368
|
value: r,
|
|
20357
|
-
rating:
|
|
20369
|
+
rating: fe("TTFB", r)
|
|
20358
20370
|
});
|
|
20359
20371
|
}
|
|
20360
20372
|
}
|
|
@@ -20378,7 +20390,7 @@ function wo(t) {
|
|
|
20378
20390
|
t({
|
|
20379
20391
|
name: "INP",
|
|
20380
20392
|
value: n,
|
|
20381
|
-
rating:
|
|
20393
|
+
rating: fe("INP", n)
|
|
20382
20394
|
});
|
|
20383
20395
|
}
|
|
20384
20396
|
});
|
|
@@ -20567,11 +20579,11 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20567
20579
|
] })
|
|
20568
20580
|
] });
|
|
20569
20581
|
}, pg = (t, e = "ms", r = 0) => t === void 0 ? "N/A" : `${t.toFixed(r)}${e}`, Ao = (t = {}) => {
|
|
20570
|
-
const { enabled: e = !0, onUpdate: r } = t, [n, o] = I({}), [s, l] = I(!0), i =
|
|
20582
|
+
const { enabled: e = !0, onUpdate: r } = t, [n, o] = I({}), [s, l] = I(!0), i = B(r);
|
|
20571
20583
|
A(() => {
|
|
20572
20584
|
i.current = r;
|
|
20573
20585
|
}, [r]);
|
|
20574
|
-
const d =
|
|
20586
|
+
const d = R(
|
|
20575
20587
|
(c) => {
|
|
20576
20588
|
o((g) => {
|
|
20577
20589
|
const m = { ...g, ...c };
|
|
@@ -20647,7 +20659,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20647
20659
|
c.forEach((g) => g.disconnect());
|
|
20648
20660
|
};
|
|
20649
20661
|
}, [e, d]), { metrics: n, isSupported: s };
|
|
20650
|
-
},
|
|
20662
|
+
}, ie = (t, e) => {
|
|
20651
20663
|
if (e === void 0) return "unknown";
|
|
20652
20664
|
const n = {
|
|
20653
20665
|
lcp: { good: 2500, poor: 4e3 },
|
|
@@ -20672,7 +20684,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20672
20684
|
label: "LCP",
|
|
20673
20685
|
value: r(t.lcp),
|
|
20674
20686
|
unit: "ms",
|
|
20675
|
-
rating:
|
|
20687
|
+
rating: ie("lcp", t.lcp),
|
|
20676
20688
|
description: "Largest Contentful Paint"
|
|
20677
20689
|
}
|
|
20678
20690
|
),
|
|
@@ -20682,7 +20694,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20682
20694
|
label: "FID",
|
|
20683
20695
|
value: r(t.fid),
|
|
20684
20696
|
unit: "ms",
|
|
20685
|
-
rating:
|
|
20697
|
+
rating: ie("fid", t.fid),
|
|
20686
20698
|
description: "First Input Delay"
|
|
20687
20699
|
}
|
|
20688
20700
|
),
|
|
@@ -20691,7 +20703,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20691
20703
|
{
|
|
20692
20704
|
label: "CLS",
|
|
20693
20705
|
value: r(t.cls, 3),
|
|
20694
|
-
rating:
|
|
20706
|
+
rating: ie("cls", t.cls),
|
|
20695
20707
|
description: "Cumulative Layout Shift"
|
|
20696
20708
|
}
|
|
20697
20709
|
),
|
|
@@ -20701,7 +20713,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20701
20713
|
label: "FCP",
|
|
20702
20714
|
value: r(t.fcp),
|
|
20703
20715
|
unit: "ms",
|
|
20704
|
-
rating:
|
|
20716
|
+
rating: ie("fcp", t.fcp),
|
|
20705
20717
|
description: "First Contentful Paint"
|
|
20706
20718
|
}
|
|
20707
20719
|
),
|
|
@@ -20711,7 +20723,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20711
20723
|
label: "TTFB",
|
|
20712
20724
|
value: r(t.ttfb),
|
|
20713
20725
|
unit: "ms",
|
|
20714
|
-
rating:
|
|
20726
|
+
rating: ie("ttfb", t.ttfb),
|
|
20715
20727
|
description: "Time to First Byte"
|
|
20716
20728
|
}
|
|
20717
20729
|
),
|
|
@@ -20721,18 +20733,18 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20721
20733
|
label: "INP",
|
|
20722
20734
|
value: r(t.inp),
|
|
20723
20735
|
unit: "ms",
|
|
20724
|
-
rating:
|
|
20736
|
+
rating: ie("inp", t.inp),
|
|
20725
20737
|
description: "Interaction to Next Paint"
|
|
20726
20738
|
}
|
|
20727
20739
|
)
|
|
20728
20740
|
] })
|
|
20729
20741
|
] });
|
|
20730
20742
|
}, $o = (t = {}) => {
|
|
20731
|
-
const { enabled: e = !0, refreshInterval: r = 5e3, onUpdate: n } = t, [o, s] = I({}), l =
|
|
20743
|
+
const { enabled: e = !0, refreshInterval: r = 5e3, onUpdate: n } = t, [o, s] = I({}), l = B(n);
|
|
20732
20744
|
A(() => {
|
|
20733
20745
|
l.current = n;
|
|
20734
20746
|
}, [n]);
|
|
20735
|
-
const i =
|
|
20747
|
+
const i = R(() => {
|
|
20736
20748
|
if (!(typeof performance > "u"))
|
|
20737
20749
|
try {
|
|
20738
20750
|
const c = performance.getEntriesByType(
|
|
@@ -20754,7 +20766,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20754
20766
|
s(p), l.current?.(p);
|
|
20755
20767
|
} catch {
|
|
20756
20768
|
}
|
|
20757
|
-
}, []), d =
|
|
20769
|
+
}, []), d = R(() => {
|
|
20758
20770
|
i();
|
|
20759
20771
|
}, [i]);
|
|
20760
20772
|
return A(() => {
|
|
@@ -20948,13 +20960,13 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20948
20960
|
totalTime: 0,
|
|
20949
20961
|
averageTime: 0,
|
|
20950
20962
|
failedCalls: 0
|
|
20951
|
-
}), i =
|
|
20963
|
+
}), i = B(r), d = B(o);
|
|
20952
20964
|
A(() => {
|
|
20953
20965
|
i.current = r;
|
|
20954
20966
|
}, [r]), A(() => {
|
|
20955
20967
|
d.current = o;
|
|
20956
20968
|
}, [o]);
|
|
20957
|
-
const c =
|
|
20969
|
+
const c = R(() => {
|
|
20958
20970
|
if (!(typeof performance > "u"))
|
|
20959
20971
|
try {
|
|
20960
20972
|
const m = performance.getEntriesByType(
|
|
@@ -20977,7 +20989,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20977
20989
|
l(N), d.current?.(N);
|
|
20978
20990
|
} catch {
|
|
20979
20991
|
}
|
|
20980
|
-
}, []), g =
|
|
20992
|
+
}, []), g = R(() => {
|
|
20981
20993
|
c();
|
|
20982
20994
|
}, [c]);
|
|
20983
20995
|
return A(() => {
|
|
@@ -20993,10 +21005,10 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
20993
21005
|
horizontalOnly: n = !1,
|
|
20994
21006
|
verticalOnly: o = !1,
|
|
20995
21007
|
initialPosition: s
|
|
20996
|
-
} = t, l =
|
|
21008
|
+
} = t, l = B(null), [i, d] = I({
|
|
20997
21009
|
x: s?.x ?? null,
|
|
20998
21010
|
y: s?.y ?? null
|
|
20999
|
-
}), [c, g] = I(!1), [m, y] = I({ x: 0, y: 0 }), b =
|
|
21011
|
+
}), [c, g] = I(!1), [m, y] = I({ x: 0, y: 0 }), b = R(
|
|
21000
21012
|
(p) => {
|
|
21001
21013
|
if (!e || !l.current) return;
|
|
21002
21014
|
const x = l.current.getBoundingClientRect();
|
|
@@ -21009,7 +21021,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21009
21021
|
}), p.preventDefault();
|
|
21010
21022
|
},
|
|
21011
21023
|
[e, i, n, o]
|
|
21012
|
-
), f =
|
|
21024
|
+
), f = R(() => {
|
|
21013
21025
|
d({
|
|
21014
21026
|
x: s?.x ?? null,
|
|
21015
21027
|
y: s?.y ?? null
|
|
@@ -21076,7 +21088,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21076
21088
|
() => d,
|
|
21077
21089
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
21078
21090
|
[JSON.stringify(d)]
|
|
21079
|
-
), N =
|
|
21091
|
+
), N = B(c);
|
|
21080
21092
|
A(() => {
|
|
21081
21093
|
N.current = c;
|
|
21082
21094
|
}, [c]);
|
|
@@ -21104,11 +21116,11 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21104
21116
|
} = Vo({
|
|
21105
21117
|
enabled: o,
|
|
21106
21118
|
horizontalOnly: n.includes("bottom") || n.includes("top")
|
|
21107
|
-
}), M =
|
|
21108
|
-
b((
|
|
21109
|
-
}, []),
|
|
21119
|
+
}), M = R(() => {
|
|
21120
|
+
b((P) => !P);
|
|
21121
|
+
}, []), z = R(() => {
|
|
21110
21122
|
p(!1);
|
|
21111
|
-
}, []), T =
|
|
21123
|
+
}, []), T = R(() => {
|
|
21112
21124
|
p(!0);
|
|
21113
21125
|
}, []);
|
|
21114
21126
|
if (!m) return null;
|
|
@@ -21129,7 +21141,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21129
21141
|
children: "🚀 Performance"
|
|
21130
21142
|
}
|
|
21131
21143
|
);
|
|
21132
|
-
const
|
|
21144
|
+
const U = k.x !== null ? {
|
|
21133
21145
|
left: `${k.x}px`,
|
|
21134
21146
|
bottom: n.includes("bottom") ? "1rem" : void 0,
|
|
21135
21147
|
top: n.includes("top") ? "1rem" : void 0,
|
|
@@ -21148,14 +21160,14 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21148
21160
|
L && "cursor-grabbing",
|
|
21149
21161
|
g
|
|
21150
21162
|
),
|
|
21151
|
-
style: { maxWidth: "320px", ...
|
|
21163
|
+
style: { maxWidth: "320px", ...U },
|
|
21152
21164
|
children: [
|
|
21153
21165
|
/* @__PURE__ */ a(
|
|
21154
21166
|
So,
|
|
21155
21167
|
{
|
|
21156
21168
|
isCollapsed: y,
|
|
21157
21169
|
onToggleCollapse: M,
|
|
21158
|
-
onClose:
|
|
21170
|
+
onClose: z,
|
|
21159
21171
|
onMouseDown: o ? E : void 0,
|
|
21160
21172
|
isDragging: L
|
|
21161
21173
|
}
|
|
@@ -21195,13 +21207,13 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21195
21207
|
errorPrefix: n = "",
|
|
21196
21208
|
onSuccess: o,
|
|
21197
21209
|
onError: s
|
|
21198
|
-
} = t, [l, i] = I(!1), [d, c] = I(""), [g, m] = I(""), y =
|
|
21210
|
+
} = t, [l, i] = I(!1), [d, c] = I(""), [g, m] = I(""), y = R(() => {
|
|
21199
21211
|
c(""), m("");
|
|
21200
|
-
}, []), b =
|
|
21212
|
+
}, []), b = R(() => {
|
|
21201
21213
|
c("");
|
|
21202
|
-
}, []), f =
|
|
21214
|
+
}, []), f = R(() => {
|
|
21203
21215
|
m("");
|
|
21204
|
-
}, []), p =
|
|
21216
|
+
}, []), p = R(
|
|
21205
21217
|
async (x) => {
|
|
21206
21218
|
i(!0), y();
|
|
21207
21219
|
try {
|
|
@@ -21234,7 +21246,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21234
21246
|
clearError: f
|
|
21235
21247
|
};
|
|
21236
21248
|
}, vg = (t = !1) => {
|
|
21237
|
-
const [e, r] = I(t), n =
|
|
21249
|
+
const [e, r] = I(t), n = R(() => r(!0), []), o = R(() => r(!1), []), s = R(() => r((l) => !l), []);
|
|
21238
21250
|
return {
|
|
21239
21251
|
value: e,
|
|
21240
21252
|
setTrue: n,
|
|
@@ -21243,7 +21255,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21243
21255
|
setValue: r
|
|
21244
21256
|
};
|
|
21245
21257
|
}, wg = (t = {}) => {
|
|
21246
|
-
const { successDuration: e = 2e3, onSuccess: r, onError: n } = t, [o, s] = I(null), l =
|
|
21258
|
+
const { successDuration: e = 2e3, onSuccess: r, onError: n } = t, [o, s] = I(null), l = R(
|
|
21247
21259
|
async (c) => {
|
|
21248
21260
|
try {
|
|
21249
21261
|
if (navigator.clipboard && window.isSecureContext)
|
|
@@ -21264,10 +21276,10 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21264
21276
|
}
|
|
21265
21277
|
},
|
|
21266
21278
|
[e, r, n]
|
|
21267
|
-
), i =
|
|
21279
|
+
), i = R(
|
|
21268
21280
|
(c) => o === c,
|
|
21269
21281
|
[o]
|
|
21270
|
-
), d =
|
|
21282
|
+
), d = R(() => {
|
|
21271
21283
|
s(null);
|
|
21272
21284
|
}, []);
|
|
21273
21285
|
return {
|
|
@@ -21277,7 +21289,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21277
21289
|
resetCopiedState: d
|
|
21278
21290
|
};
|
|
21279
21291
|
}, kg = (t = {}) => {
|
|
21280
|
-
const { successDuration: e = 2e3, onSuccess: r, onError: n } = t, [o, s] = I({}), l =
|
|
21292
|
+
const { successDuration: e = 2e3, onSuccess: r, onError: n } = t, [o, s] = I({}), l = R(
|
|
21281
21293
|
async (c, g) => {
|
|
21282
21294
|
try {
|
|
21283
21295
|
if (navigator.clipboard && window.isSecureContext)
|
|
@@ -21298,10 +21310,10 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21298
21310
|
}
|
|
21299
21311
|
},
|
|
21300
21312
|
[e, r, n]
|
|
21301
|
-
), i =
|
|
21313
|
+
), i = R(
|
|
21302
21314
|
(c) => o[c] || !1,
|
|
21303
21315
|
[o]
|
|
21304
|
-
), d =
|
|
21316
|
+
), d = R((c) => {
|
|
21305
21317
|
s(c ? (g) => ({ ...g, [c]: !1 }) : {});
|
|
21306
21318
|
}, []);
|
|
21307
21319
|
return {
|
|
@@ -21312,7 +21324,7 @@ const No = ({ direction: t, className: e }) => /* @__PURE__ */ a(
|
|
|
21312
21324
|
};
|
|
21313
21325
|
};
|
|
21314
21326
|
function Ng() {
|
|
21315
|
-
const t = Ot(), e =
|
|
21327
|
+
const t = Ot(), e = B(null), r = B(0);
|
|
21316
21328
|
A(() => {
|
|
21317
21329
|
const n = t.pathname;
|
|
21318
21330
|
if (!e.current) {
|
|
@@ -21333,34 +21345,34 @@ function Cg({
|
|
|
21333
21345
|
for (const S in t)
|
|
21334
21346
|
E[S] = t[S].initialValue;
|
|
21335
21347
|
return E;
|
|
21336
|
-
}, [t]), [o, s] = I(n), [l, i] = I({}), [d, c] = I({}), [g, m] = I({}), y =
|
|
21348
|
+
}, [t]), [o, s] = I(n), [l, i] = I({}), [d, c] = I({}), [g, m] = I({}), y = R(
|
|
21337
21349
|
(E) => {
|
|
21338
21350
|
const S = t[E], M = o[E];
|
|
21339
21351
|
if (S.required && (M === "" || M === null || M === void 0 || Array.isArray(M) && M.length === 0))
|
|
21340
21352
|
return S.requiredMessage || "This field is required";
|
|
21341
21353
|
if (S.validate)
|
|
21342
|
-
for (const
|
|
21343
|
-
const T =
|
|
21354
|
+
for (const z of S.validate) {
|
|
21355
|
+
const T = z(M);
|
|
21344
21356
|
if (T)
|
|
21345
21357
|
return T;
|
|
21346
21358
|
}
|
|
21347
21359
|
},
|
|
21348
21360
|
[t, o]
|
|
21349
|
-
), b =
|
|
21361
|
+
), b = R(
|
|
21350
21362
|
(E, S) => {
|
|
21351
21363
|
if (s((M) => ({ ...M, [E]: S })), m((M) => ({ ...M, [E]: !0 })), e && d[E]) {
|
|
21352
21364
|
const M = y(E);
|
|
21353
|
-
i((
|
|
21365
|
+
i((z) => ({ ...z, [E]: M }));
|
|
21354
21366
|
}
|
|
21355
21367
|
},
|
|
21356
21368
|
[e, d, y]
|
|
21357
|
-
), f =
|
|
21369
|
+
), f = R((E) => {
|
|
21358
21370
|
s((M) => ({ ...M, ...E }));
|
|
21359
21371
|
const S = {};
|
|
21360
21372
|
for (const M in E)
|
|
21361
21373
|
S[M] = !0;
|
|
21362
21374
|
m((M) => ({ ...M, ...S }));
|
|
21363
|
-
}, []), p =
|
|
21375
|
+
}, []), p = R(
|
|
21364
21376
|
(E) => {
|
|
21365
21377
|
if (c((S) => ({ ...S, [E]: !0 })), r) {
|
|
21366
21378
|
const S = y(E);
|
|
@@ -21368,18 +21380,18 @@ function Cg({
|
|
|
21368
21380
|
}
|
|
21369
21381
|
},
|
|
21370
21382
|
[r, y]
|
|
21371
|
-
), x =
|
|
21383
|
+
), x = R(() => {
|
|
21372
21384
|
const E = {}, S = {};
|
|
21373
21385
|
let M = !0;
|
|
21374
|
-
for (const
|
|
21375
|
-
S[
|
|
21376
|
-
const T = y(
|
|
21377
|
-
T && (E[
|
|
21386
|
+
for (const z in t) {
|
|
21387
|
+
S[z] = !0;
|
|
21388
|
+
const T = y(z);
|
|
21389
|
+
T && (E[z] = T, M = !1);
|
|
21378
21390
|
}
|
|
21379
21391
|
return c(S), i(E), M;
|
|
21380
|
-
}, [t, y]), N =
|
|
21392
|
+
}, [t, y]), N = R(() => {
|
|
21381
21393
|
s(n), i({}), c({}), m({});
|
|
21382
|
-
}, [n]), v =
|
|
21394
|
+
}, [n]), v = R(
|
|
21383
21395
|
(E) => {
|
|
21384
21396
|
s((S) => ({
|
|
21385
21397
|
...S,
|
|
@@ -21396,7 +21408,7 @@ function Cg({
|
|
|
21396
21408
|
});
|
|
21397
21409
|
},
|
|
21398
21410
|
[t]
|
|
21399
|
-
), C =
|
|
21411
|
+
), C = R(
|
|
21400
21412
|
(E) => ({
|
|
21401
21413
|
value: o[E],
|
|
21402
21414
|
onChange: (S) => {
|
|
@@ -21407,7 +21419,7 @@ function Cg({
|
|
|
21407
21419
|
"aria-invalid": !!(d[E] && l[E])
|
|
21408
21420
|
}),
|
|
21409
21421
|
[o, b, p, d, l]
|
|
21410
|
-
), w =
|
|
21422
|
+
), w = R(
|
|
21411
21423
|
(E) => d[E] ? l[E] : void 0,
|
|
21412
21424
|
[d, l]
|
|
21413
21425
|
), k = ee(() => {
|
|
@@ -21478,8 +21490,8 @@ const Sg = (t) => {
|
|
|
21478
21490
|
xl: 1280,
|
|
21479
21491
|
"2xl": 1536
|
|
21480
21492
|
}, zg = (t, e = Ho) => {
|
|
21481
|
-
const [r, n] =
|
|
21482
|
-
return
|
|
21493
|
+
const [r, n] = D.useState("base");
|
|
21494
|
+
return D.useEffect(() => {
|
|
21483
21495
|
const o = () => {
|
|
21484
21496
|
const s = window.innerWidth;
|
|
21485
21497
|
s >= e["2xl"] ? n("2xl") : s >= e.xl ? n("xl") : s >= e.lg ? n("lg") : s >= e.md ? n("md") : s >= e.sm ? n("sm") : s >= e.xs ? n("xs") : n("base");
|
|
@@ -21487,8 +21499,8 @@ const Sg = (t) => {
|
|
|
21487
21499
|
return o(), window.addEventListener("resize", o), () => window.removeEventListener("resize", o);
|
|
21488
21500
|
}, [e]), t[r] || t.base || {};
|
|
21489
21501
|
}, qo = () => typeof window > "u" ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches, $g = () => {
|
|
21490
|
-
const [t, e] =
|
|
21491
|
-
return
|
|
21502
|
+
const [t, e] = D.useState(qo);
|
|
21503
|
+
return D.useEffect(() => {
|
|
21492
21504
|
const r = window.matchMedia("(prefers-reduced-motion: reduce)"), n = () => {
|
|
21493
21505
|
e(r.matches);
|
|
21494
21506
|
};
|
|
@@ -21524,8 +21536,8 @@ const Sg = (t) => {
|
|
|
21524
21536
|
r.includes(n) && (e[n] = o);
|
|
21525
21537
|
}), e;
|
|
21526
21538
|
}, jg = (t, e = []) => {
|
|
21527
|
-
const [r, n] =
|
|
21528
|
-
return
|
|
21539
|
+
const [r, n] = D.useState(null), [o, s] = D.useState(!0);
|
|
21540
|
+
return D.useEffect(() => {
|
|
21529
21541
|
let l = !0;
|
|
21530
21542
|
return t().then((i) => {
|
|
21531
21543
|
l && (n(i.default), s(!1));
|
|
@@ -21548,8 +21560,8 @@ const Sg = (t) => {
|
|
|
21548
21560
|
// Optimize for performance
|
|
21549
21561
|
contain: "layout"
|
|
21550
21562
|
}), Og = (t) => {
|
|
21551
|
-
const [e, r] =
|
|
21552
|
-
return
|
|
21563
|
+
const [e, r] = D.useState(!1);
|
|
21564
|
+
return D.useEffect(() => {
|
|
21553
21565
|
const n = window.matchMedia(t);
|
|
21554
21566
|
r(n.matches);
|
|
21555
21567
|
const o = () => r(n.matches);
|
|
@@ -21558,8 +21570,8 @@ const Sg = (t) => {
|
|
|
21558
21570
|
};
|
|
21559
21571
|
}, [t]), e;
|
|
21560
21572
|
}, Vg = (t, e) => {
|
|
21561
|
-
const [r, n] =
|
|
21562
|
-
return
|
|
21573
|
+
const [r, n] = D.useState("light");
|
|
21574
|
+
return D.useEffect(() => {
|
|
21563
21575
|
const o = window.matchMedia("(prefers-color-scheme: dark)");
|
|
21564
21576
|
n(o.matches ? "dark" : "light");
|
|
21565
21577
|
const s = () => {
|
|
@@ -21891,7 +21903,7 @@ function lm() {
|
|
|
21891
21903
|
t.replace(i);
|
|
21892
21904
|
}];
|
|
21893
21905
|
}
|
|
21894
|
-
const
|
|
21906
|
+
const ce = {
|
|
21895
21907
|
/**
|
|
21896
21908
|
* Navigate to a path
|
|
21897
21909
|
* @param path Target path
|
|
@@ -21927,13 +21939,13 @@ const ie = {
|
|
|
21927
21939
|
* Navigate to mail app
|
|
21928
21940
|
*/
|
|
21929
21941
|
goToMail: () => {
|
|
21930
|
-
|
|
21942
|
+
ce.navigate("/mail");
|
|
21931
21943
|
},
|
|
21932
21944
|
/**
|
|
21933
21945
|
* Navigate to preferences
|
|
21934
21946
|
*/
|
|
21935
21947
|
goToPreferences: () => {
|
|
21936
|
-
|
|
21948
|
+
ce.navigate("/preferences");
|
|
21937
21949
|
},
|
|
21938
21950
|
/**
|
|
21939
21951
|
* Navigate to compose page
|
|
@@ -21946,25 +21958,25 @@ const ie = {
|
|
|
21946
21958
|
r.set(o, s);
|
|
21947
21959
|
});
|
|
21948
21960
|
const n = r.toString();
|
|
21949
|
-
|
|
21961
|
+
ce.navigate(`/mail/compose${n ? `?${n}` : ""}`);
|
|
21950
21962
|
},
|
|
21951
21963
|
/**
|
|
21952
21964
|
* Navigate to connect wallet page
|
|
21953
21965
|
*/
|
|
21954
21966
|
goToConnect: () => {
|
|
21955
|
-
|
|
21967
|
+
ce.navigate("/connect");
|
|
21956
21968
|
},
|
|
21957
21969
|
/**
|
|
21958
21970
|
* Navigate to delegate page
|
|
21959
21971
|
*/
|
|
21960
21972
|
goToDelegate: () => {
|
|
21961
|
-
|
|
21973
|
+
ce.navigate("/admin/delegate");
|
|
21962
21974
|
},
|
|
21963
21975
|
/**
|
|
21964
21976
|
* Navigate to home page
|
|
21965
21977
|
*/
|
|
21966
21978
|
goToHome: () => {
|
|
21967
|
-
|
|
21979
|
+
ce.navigate("/");
|
|
21968
21980
|
},
|
|
21969
21981
|
/**
|
|
21970
21982
|
* Check if can go back
|
|
@@ -21972,7 +21984,7 @@ const ie = {
|
|
|
21972
21984
|
canGoBack: () => X().canGoBack()
|
|
21973
21985
|
};
|
|
21974
21986
|
function im(t, e = 3, r = 1e3) {
|
|
21975
|
-
return
|
|
21987
|
+
return se(() => new Promise((n, o) => {
|
|
21976
21988
|
const s = (l) => {
|
|
21977
21989
|
t().then(n).catch((i) => {
|
|
21978
21990
|
l > 0 ? setTimeout(() => {
|
|
@@ -21987,7 +21999,7 @@ function cm(t) {
|
|
|
21987
21999
|
let e = null;
|
|
21988
22000
|
const r = () => (e || (e = t()), e.then(() => {
|
|
21989
22001
|
}));
|
|
21990
|
-
return { Component:
|
|
22002
|
+
return { Component: se(() => e || t()), preload: r };
|
|
21991
22003
|
}
|
|
21992
22004
|
function dm(t, e = {}) {
|
|
21993
22005
|
const {
|
|
@@ -21995,7 +22007,7 @@ function dm(t, e = {}) {
|
|
|
21995
22007
|
errorFallback: n = /* @__PURE__ */ a("div", { children: "Failed to load component" }),
|
|
21996
22008
|
loadingDelay: o = 200,
|
|
21997
22009
|
minimumLoadingTime: s = 500
|
|
21998
|
-
} = e, l =
|
|
22010
|
+
} = e, l = se(async () => {
|
|
21999
22011
|
const d = Date.now();
|
|
22000
22012
|
try {
|
|
22001
22013
|
const c = await t(), g = Date.now() - d;
|
|
@@ -22008,19 +22020,19 @@ function dm(t, e = {}) {
|
|
|
22008
22020
|
};
|
|
22009
22021
|
}
|
|
22010
22022
|
}), i = () => {
|
|
22011
|
-
const [d, c] =
|
|
22012
|
-
return
|
|
22023
|
+
const [d, c] = D.useState(!1);
|
|
22024
|
+
return D.useEffect(() => {
|
|
22013
22025
|
const g = setTimeout(() => {
|
|
22014
22026
|
c(!0);
|
|
22015
22027
|
}, o);
|
|
22016
22028
|
return () => clearTimeout(g);
|
|
22017
22029
|
}, []), d ? /* @__PURE__ */ a(O, { children: r }) : null;
|
|
22018
22030
|
};
|
|
22019
|
-
return
|
|
22031
|
+
return D.forwardRef((d, c) => /* @__PURE__ */ a(Ee, { fallback: /* @__PURE__ */ a(i, {}), children: /* @__PURE__ */ a(l, { ...d, ref: c }) }));
|
|
22020
22032
|
}
|
|
22021
22033
|
function Xo(t, e = {}) {
|
|
22022
|
-
const [r, n] =
|
|
22023
|
-
return
|
|
22034
|
+
const [r, n] = D.useState(!1), [o, s] = D.useState(!1);
|
|
22035
|
+
return D.useEffect(() => {
|
|
22024
22036
|
const l = t.current;
|
|
22025
22037
|
if (!l || o) return;
|
|
22026
22038
|
const i = new IntersectionObserver(
|
|
@@ -22045,7 +22057,7 @@ const um = ({
|
|
|
22045
22057
|
rootMargin: n = "50px",
|
|
22046
22058
|
placeholder: o
|
|
22047
22059
|
}) => {
|
|
22048
|
-
const s =
|
|
22060
|
+
const s = D.useRef(null), l = Xo(s, {
|
|
22049
22061
|
threshold: r,
|
|
22050
22062
|
rootMargin: n
|
|
22051
22063
|
});
|
|
@@ -22065,7 +22077,7 @@ function gm(t) {
|
|
|
22065
22077
|
}, o);
|
|
22066
22078
|
};
|
|
22067
22079
|
return {
|
|
22068
|
-
Component:
|
|
22080
|
+
Component: se(() => l || e()),
|
|
22069
22081
|
preload: i,
|
|
22070
22082
|
linkProps: {
|
|
22071
22083
|
...r && {
|
|
@@ -22081,8 +22093,8 @@ function gm(t) {
|
|
|
22081
22093
|
};
|
|
22082
22094
|
}
|
|
22083
22095
|
function mm(t, e = []) {
|
|
22084
|
-
const [r, n] =
|
|
22085
|
-
return
|
|
22096
|
+
const [r, n] = D.useState(null), [o, s] = D.useState(!0), [l, i] = D.useState(null);
|
|
22097
|
+
return D.useEffect(() => {
|
|
22086
22098
|
let d = !0;
|
|
22087
22099
|
return s(!0), i(null), t().then((c) => {
|
|
22088
22100
|
d && (n(c), s(!1));
|
|
@@ -22708,7 +22720,7 @@ export {
|
|
|
22708
22720
|
dh as PlusIcon,
|
|
22709
22721
|
xd as PodcastPlayer,
|
|
22710
22722
|
Md as Popover,
|
|
22711
|
-
|
|
22723
|
+
he as Portal,
|
|
22712
22724
|
tc as PreloadLink,
|
|
22713
22725
|
es as PriorityLoader,
|
|
22714
22726
|
td as Progress,
|
|
@@ -22794,7 +22806,7 @@ export {
|
|
|
22794
22806
|
Ol as TextField,
|
|
22795
22807
|
Ad as TextInputModal,
|
|
22796
22808
|
Hs as TextLink,
|
|
22797
|
-
|
|
22809
|
+
Q as Theme,
|
|
22798
22810
|
cr as ThemeContext,
|
|
22799
22811
|
k0 as ThemeProvider,
|
|
22800
22812
|
va as TimePicker,
|
|
@@ -22893,7 +22905,7 @@ export {
|
|
|
22893
22905
|
Cc as VirtualList,
|
|
22894
22906
|
d0 as VirtualListItem,
|
|
22895
22907
|
qi as VisuallyHidden,
|
|
22896
|
-
|
|
22908
|
+
De as WalletPreloader,
|
|
22897
22909
|
pd as WaveForm,
|
|
22898
22910
|
zo as WebVitalsSection,
|
|
22899
22911
|
ri as WysiwygEditor,
|
|
@@ -22973,7 +22985,7 @@ export {
|
|
|
22973
22985
|
Xu as getRenderCounts,
|
|
22974
22986
|
Qn as getSecurityHeaders,
|
|
22975
22987
|
X as getUINavigationService,
|
|
22976
|
-
|
|
22988
|
+
ie as getWebVitalRating,
|
|
22977
22989
|
ng as getWebVitals,
|
|
22978
22990
|
rs as hashString,
|
|
22979
22991
|
Mm as hashUserId,
|
|
@@ -23006,7 +23018,7 @@ export {
|
|
|
23006
23018
|
Zg as measureImagePerformance,
|
|
23007
23019
|
yo as measureLCP,
|
|
23008
23020
|
vo as measureTTFB,
|
|
23009
|
-
|
|
23021
|
+
ce as navigationHelper,
|
|
23010
23022
|
Bg as optimizeClassNames,
|
|
23011
23023
|
Ug as optimizeContainment,
|
|
23012
23024
|
Wg as optimizeFlex,
|
|
@@ -23055,7 +23067,7 @@ export {
|
|
|
23055
23067
|
xg as useFormSubmission,
|
|
23056
23068
|
Cg as useFormValidation,
|
|
23057
23069
|
tg as useImageLazyLoading,
|
|
23058
|
-
|
|
23070
|
+
le as useLayout,
|
|
23059
23071
|
Xo as useLazyLoad,
|
|
23060
23072
|
jg as useLazyStyles,
|
|
23061
23073
|
y0 as useLocalizedNavigate,
|