@blockscout/ui-toolkit 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +285 -278
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as p, jsxs as G, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
-
import { Accordion as Fe, Icon as ge, defineRecipe as Oe, Circle as
|
|
2
|
+
import { Accordion as Fe, Icon as ge, defineRecipe as Oe, Circle as zi, Skeleton as Er, Stack as Ui, Button as Da, ButtonGroup as Fi, AbsoluteCenter as zt, Spinner as gr, Span as Ba, useRecipe as za, Alert as $e, Avatar as at, Group as yr, useBreakpointValue as Ua, Tooltip as Xe, Portal as He, useDisclosure as Fa, chakra as We, Badge as Ma, Checkbox as Je, CheckboxGroup as ja, Link as Dr, LinkOverlay as Br, LinkBox as Ha, Flex as Lt, Dialog as he, Drawer as xe, Field as we, Heading as Wa, Image as $a, InputElement as zr, Input as Xa, Menu as de, PinInput as st, Popover as ve, ProgressCircle as it, defineSlotRecipe as ce, defineConfig as Va, createSystem as Ga, defaultConfig as qa, ChakraProvider as Ya, RadioGroup as ot, useRatingGroup as Ka, RatingGroup as Ve, useSelectContext as Mi, Select as fe, createListCollection as Za, Box as je, Slider as ye, HStack as Qa, For as Ja, Switch as Be, Table as Ze, Tabs as Ut, Tag as ze, Textarea as el, createToaster as tl, Toaster as rl, Toast as et, Center as nl, VisuallyHidden as ol, Text as Ur } from "@chakra-ui/react";
|
|
3
3
|
import * as R from "react";
|
|
4
|
-
import
|
|
4
|
+
import B, { useState as Cr, useEffect as ji, useCallback as Fr } from "react";
|
|
5
5
|
import il from "react-dom";
|
|
6
6
|
import Hi from "next/link";
|
|
7
7
|
import { ThemeProvider as al, useTheme as ll } from "next-themes";
|
|
@@ -79,11 +79,11 @@ function ul() {
|
|
|
79
79
|
var W = typeof M;
|
|
80
80
|
return !!M && (W == "object" || W == "function");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function z(M) {
|
|
83
83
|
return !!M && typeof M == "object";
|
|
84
84
|
}
|
|
85
85
|
function F(M) {
|
|
86
|
-
return typeof M == "symbol" ||
|
|
86
|
+
return typeof M == "symbol" || z(M) && S.call(M) == r;
|
|
87
87
|
}
|
|
88
88
|
function N(M) {
|
|
89
89
|
if (typeof M == "number")
|
|
@@ -447,14 +447,14 @@ function $i() {
|
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
449
449
|
a.default.registered.end && a.default.registered.end(E.to, E.target, E.currentPosition);
|
|
450
|
-
},
|
|
450
|
+
}, z = function(b) {
|
|
451
451
|
b.data.containerElement = b ? b.containerId ? document.getElementById(b.containerId) : b.container && b.container.nodeType ? b.container : document : null;
|
|
452
452
|
}, F = function(b, u, v, E) {
|
|
453
453
|
u.data = u.data || m(), window.clearTimeout(u.data.delayTimeout);
|
|
454
454
|
var y = function() {
|
|
455
455
|
u.data.cancel = !0;
|
|
456
456
|
};
|
|
457
|
-
if (i.default.subscribe(y),
|
|
457
|
+
if (i.default.subscribe(y), z(u), u.data.start = null, u.data.cancel = !1, u.data.startPosition = u.horizontal ? w(u) : L(u), u.data.targetPosition = u.absolute ? b : b + u.data.startPosition, u.data.startPosition === u.data.targetPosition) {
|
|
458
458
|
a.default.registered.end && a.default.registered.end(u.data.to, u.data.target, u.data.currentPosition);
|
|
459
459
|
return;
|
|
460
460
|
}
|
|
@@ -474,9 +474,9 @@ function $i() {
|
|
|
474
474
|
}, W = function(b, u) {
|
|
475
475
|
F(b, N(u));
|
|
476
476
|
}, l = function(b) {
|
|
477
|
-
b = N(b),
|
|
477
|
+
b = N(b), z(b), F(b.horizontal ? T(b) : P(b), b);
|
|
478
478
|
}, c = function(b, u) {
|
|
479
|
-
u = N(u),
|
|
479
|
+
u = N(u), z(u);
|
|
480
480
|
var v = u.horizontal ? w(u) : L(u);
|
|
481
481
|
F(b + v, u);
|
|
482
482
|
};
|
|
@@ -558,7 +558,7 @@ function pl() {
|
|
|
558
558
|
if (Yr) return ne;
|
|
559
559
|
Yr = 1;
|
|
560
560
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, L = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
561
|
-
function
|
|
561
|
+
function z(N) {
|
|
562
562
|
if (typeof N == "object" && N !== null) {
|
|
563
563
|
var M = N.$$typeof;
|
|
564
564
|
switch (M) {
|
|
@@ -589,35 +589,35 @@ function pl() {
|
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
591
|
function F(N) {
|
|
592
|
-
return
|
|
592
|
+
return z(N) === h;
|
|
593
593
|
}
|
|
594
594
|
return ne.AsyncMode = d, ne.ConcurrentMode = h, ne.ContextConsumer = a, ne.ContextProvider = s, ne.Element = t, ne.ForwardRef = g, ne.Fragment = n, ne.Lazy = w, ne.Memo = m, ne.Portal = r, ne.Profiler = i, ne.StrictMode = o, ne.Suspense = _, ne.isAsyncMode = function(N) {
|
|
595
|
-
return F(N) ||
|
|
595
|
+
return F(N) || z(N) === d;
|
|
596
596
|
}, ne.isConcurrentMode = F, ne.isContextConsumer = function(N) {
|
|
597
|
-
return
|
|
597
|
+
return z(N) === a;
|
|
598
598
|
}, ne.isContextProvider = function(N) {
|
|
599
|
-
return
|
|
599
|
+
return z(N) === s;
|
|
600
600
|
}, ne.isElement = function(N) {
|
|
601
601
|
return typeof N == "object" && N !== null && N.$$typeof === t;
|
|
602
602
|
}, ne.isForwardRef = function(N) {
|
|
603
|
-
return
|
|
603
|
+
return z(N) === g;
|
|
604
604
|
}, ne.isFragment = function(N) {
|
|
605
|
-
return
|
|
605
|
+
return z(N) === n;
|
|
606
606
|
}, ne.isLazy = function(N) {
|
|
607
|
-
return
|
|
607
|
+
return z(N) === w;
|
|
608
608
|
}, ne.isMemo = function(N) {
|
|
609
|
-
return
|
|
609
|
+
return z(N) === m;
|
|
610
610
|
}, ne.isPortal = function(N) {
|
|
611
|
-
return
|
|
611
|
+
return z(N) === r;
|
|
612
612
|
}, ne.isProfiler = function(N) {
|
|
613
|
-
return
|
|
613
|
+
return z(N) === i;
|
|
614
614
|
}, ne.isStrictMode = function(N) {
|
|
615
|
-
return
|
|
615
|
+
return z(N) === o;
|
|
616
616
|
}, ne.isSuspense = function(N) {
|
|
617
|
-
return
|
|
617
|
+
return z(N) === _;
|
|
618
618
|
}, ne.isValidElementType = function(N) {
|
|
619
619
|
return typeof N == "string" || typeof N == "function" || N === n || N === h || N === i || N === o || N === _ || N === S || typeof N == "object" && N !== null && (N.$$typeof === w || N.$$typeof === m || N.$$typeof === s || N.$$typeof === a || N.$$typeof === g || N.$$typeof === T || N.$$typeof === P || N.$$typeof === C || N.$$typeof === L);
|
|
620
|
-
}, ne.typeOf =
|
|
620
|
+
}, ne.typeOf = z, ne;
|
|
621
621
|
}
|
|
622
622
|
var oe = {};
|
|
623
623
|
/** @license React v16.13.1
|
|
@@ -632,7 +632,7 @@ var Kr;
|
|
|
632
632
|
function hl() {
|
|
633
633
|
return Kr || (Kr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
634
634
|
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, n = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, h = e ? Symbol.for("react.concurrent_mode") : 60111, g = e ? Symbol.for("react.forward_ref") : 60112, _ = e ? Symbol.for("react.suspense") : 60113, S = e ? Symbol.for("react.suspense_list") : 60120, m = e ? Symbol.for("react.memo") : 60115, w = e ? Symbol.for("react.lazy") : 60116, L = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, P = e ? Symbol.for("react.responder") : 60118, C = e ? Symbol.for("react.scope") : 60119;
|
|
635
|
-
function
|
|
635
|
+
function z($) {
|
|
636
636
|
return typeof $ == "string" || typeof $ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
637
637
|
$ === n || $ === h || $ === i || $ === o || $ === _ || $ === S || typeof $ == "object" && $ !== null && ($.$$typeof === w || $.$$typeof === m || $.$$typeof === s || $.$$typeof === a || $.$$typeof === g || $.$$typeof === T || $.$$typeof === P || $.$$typeof === C || $.$$typeof === L);
|
|
638
638
|
}
|
|
@@ -708,7 +708,7 @@ function hl() {
|
|
|
708
708
|
function re($) {
|
|
709
709
|
return F($) === _;
|
|
710
710
|
}
|
|
711
|
-
oe.AsyncMode = N, oe.ConcurrentMode = M, oe.ContextConsumer = W, oe.ContextProvider = l, oe.Element = c, oe.ForwardRef = f, oe.Fragment = b, oe.Lazy = u, oe.Memo = v, oe.Portal = E, oe.Profiler = y, oe.StrictMode = x, oe.Suspense = A, oe.isAsyncMode = U, oe.isConcurrentMode = O, oe.isContextConsumer = D, oe.isContextProvider = j, oe.isElement = H, oe.isForwardRef = q, oe.isFragment = V, oe.isLazy = X, oe.isMemo = Y, oe.isPortal = K, oe.isProfiler = Q, oe.isStrictMode = J, oe.isSuspense = re, oe.isValidElementType =
|
|
711
|
+
oe.AsyncMode = N, oe.ConcurrentMode = M, oe.ContextConsumer = W, oe.ContextProvider = l, oe.Element = c, oe.ForwardRef = f, oe.Fragment = b, oe.Lazy = u, oe.Memo = v, oe.Portal = E, oe.Profiler = y, oe.StrictMode = x, oe.Suspense = A, oe.isAsyncMode = U, oe.isConcurrentMode = O, oe.isContextConsumer = D, oe.isContextProvider = j, oe.isElement = H, oe.isForwardRef = q, oe.isFragment = V, oe.isLazy = X, oe.isMemo = Y, oe.isPortal = K, oe.isProfiler = Q, oe.isStrictMode = J, oe.isSuspense = re, oe.isValidElementType = z, oe.typeOf = F;
|
|
712
712
|
}()), oe;
|
|
713
713
|
}
|
|
714
714
|
var Zr;
|
|
@@ -860,7 +860,7 @@ function ml() {
|
|
|
860
860
|
string: P("string"),
|
|
861
861
|
symbol: P("symbol"),
|
|
862
862
|
any: C(),
|
|
863
|
-
arrayOf:
|
|
863
|
+
arrayOf: z,
|
|
864
864
|
element: F(),
|
|
865
865
|
elementType: N(),
|
|
866
866
|
instanceOf: M,
|
|
@@ -918,7 +918,7 @@ function ml() {
|
|
|
918
918
|
function C() {
|
|
919
919
|
return T(s);
|
|
920
920
|
}
|
|
921
|
-
function
|
|
921
|
+
function z(O) {
|
|
922
922
|
function D(j, H, q, V, X) {
|
|
923
923
|
if (typeof O != "function")
|
|
924
924
|
return new L("Property `" + X + "` of component `" + q + "` has invalid PropType notation inside arrayOf.");
|
|
@@ -1268,22 +1268,22 @@ function Ar() {
|
|
|
1268
1268
|
});
|
|
1269
1269
|
var e = Object.assign || function(P) {
|
|
1270
1270
|
for (var C = 1; C < arguments.length; C++) {
|
|
1271
|
-
var
|
|
1272
|
-
for (var F in
|
|
1273
|
-
Object.prototype.hasOwnProperty.call(
|
|
1271
|
+
var z = arguments[C];
|
|
1272
|
+
for (var F in z)
|
|
1273
|
+
Object.prototype.hasOwnProperty.call(z, F) && (P[F] = z[F]);
|
|
1274
1274
|
}
|
|
1275
1275
|
return P;
|
|
1276
1276
|
}, t = /* @__PURE__ */ function() {
|
|
1277
|
-
function P(C,
|
|
1278
|
-
for (var F = 0; F <
|
|
1279
|
-
var N =
|
|
1277
|
+
function P(C, z) {
|
|
1278
|
+
for (var F = 0; F < z.length; F++) {
|
|
1279
|
+
var N = z[F];
|
|
1280
1280
|
N.enumerable = N.enumerable || !1, N.configurable = !0, "value" in N && (N.writable = !0), Object.defineProperty(C, N.key, N);
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
-
return function(C,
|
|
1284
|
-
return
|
|
1283
|
+
return function(C, z, F) {
|
|
1284
|
+
return z && P(C.prototype, z), F && P(C, F), C;
|
|
1285
1285
|
};
|
|
1286
|
-
}(), r =
|
|
1286
|
+
}(), r = B, n = S(r), o = Tr(), i = S(o), s = Mt(), a = S(s), d = /* @__PURE__ */ jt(), h = S(d), g = Gi(), _ = S(g);
|
|
1287
1287
|
function S(P) {
|
|
1288
1288
|
return P && P.__esModule ? P : { default: P };
|
|
1289
1289
|
}
|
|
@@ -1324,7 +1324,7 @@ function Ar() {
|
|
|
1324
1324
|
spyThrottle: h.default.number
|
|
1325
1325
|
};
|
|
1326
1326
|
return dt.default = function(P, C) {
|
|
1327
|
-
var
|
|
1327
|
+
var z = C || a.default, F = function(M) {
|
|
1328
1328
|
L(W, M);
|
|
1329
1329
|
function W(l) {
|
|
1330
1330
|
m(this, W);
|
|
@@ -1348,7 +1348,7 @@ function Ar() {
|
|
|
1348
1348
|
var f = i.default.mount(c, this.props.spyThrottle);
|
|
1349
1349
|
this.beforeUnmountCallbacks.push(f);
|
|
1350
1350
|
}
|
|
1351
|
-
this.props.hashSpy && (_.default.isMounted() || _.default.mount(
|
|
1351
|
+
this.props.hashSpy && (_.default.isMounted() || _.default.mount(z), _.default.mapContainer(this.props.to, c)), i.default.addSpyHandler(this.spyHandler, c), this.setState({
|
|
1352
1352
|
container: c
|
|
1353
1353
|
});
|
|
1354
1354
|
}
|
|
@@ -1376,7 +1376,7 @@ function Ar() {
|
|
|
1376
1376
|
}(n.default.PureComponent), N = function() {
|
|
1377
1377
|
var W = this;
|
|
1378
1378
|
this.scrollTo = function(l, c) {
|
|
1379
|
-
|
|
1379
|
+
z.scrollTo(l, e({}, W.state, c));
|
|
1380
1380
|
}, this.handleClick = function(l) {
|
|
1381
1381
|
W.props.onClick && W.props.onClick(l), l.stopPropagation && l.stopPropagation(), l.preventDefault && l.preventDefault(), W.scrollTo(W.props.to, W.props);
|
|
1382
1382
|
}, this.spyHandler = function(l, c) {
|
|
@@ -1390,7 +1390,7 @@ function Ar() {
|
|
|
1390
1390
|
I = U.left;
|
|
1391
1391
|
}
|
|
1392
1392
|
if (!v || W.props.isDynamic) {
|
|
1393
|
-
if (v =
|
|
1393
|
+
if (v = z.get(u), !v)
|
|
1394
1394
|
return;
|
|
1395
1395
|
var O = v.getBoundingClientRect();
|
|
1396
1396
|
x = O.left - I + l, A = x + O.width;
|
|
@@ -1404,7 +1404,7 @@ function Ar() {
|
|
|
1404
1404
|
q = V.top;
|
|
1405
1405
|
}
|
|
1406
1406
|
if (!v || W.props.isDynamic) {
|
|
1407
|
-
if (v =
|
|
1407
|
+
if (v = z.get(u), !v)
|
|
1408
1408
|
return;
|
|
1409
1409
|
var X = v.getBoundingClientRect();
|
|
1410
1410
|
j = X.top - q + c, H = j + X.height;
|
|
@@ -1412,16 +1412,16 @@ function Ar() {
|
|
|
1412
1412
|
var Y = c - W.props.offset;
|
|
1413
1413
|
E = Y >= Math.floor(j) && Y < Math.floor(H), y = Y < Math.floor(j) || Y >= Math.floor(H);
|
|
1414
1414
|
}
|
|
1415
|
-
var K =
|
|
1415
|
+
var K = z.getActiveLink();
|
|
1416
1416
|
if (y) {
|
|
1417
|
-
if (u === K &&
|
|
1417
|
+
if (u === K && z.setActiveLink(void 0), W.props.hashSpy && _.default.getHash() === u) {
|
|
1418
1418
|
var Q = W.props.saveHashHistory, J = Q === void 0 ? !1 : Q;
|
|
1419
1419
|
_.default.changeHash("", J);
|
|
1420
1420
|
}
|
|
1421
1421
|
W.props.spy && W.state.active && (W.setState({ active: !1 }), W.props.onSetInactive && W.props.onSetInactive(u, v));
|
|
1422
1422
|
}
|
|
1423
1423
|
if (E && (K !== u || W.state.active === !1)) {
|
|
1424
|
-
|
|
1424
|
+
z.setActiveLink(u);
|
|
1425
1425
|
var re = W.props.saveHashHistory, $ = re === void 0 ? !1 : re;
|
|
1426
1426
|
W.props.hashSpy && _.default.changeHash(u, $), W.props.spy && (W.setState({ active: !0 }), W.props.onSetActive && W.props.onSetActive(u, v));
|
|
1427
1427
|
}
|
|
@@ -1437,7 +1437,7 @@ function _l() {
|
|
|
1437
1437
|
sn = 1, Object.defineProperty(ut, "__esModule", {
|
|
1438
1438
|
value: !0
|
|
1439
1439
|
});
|
|
1440
|
-
var e =
|
|
1440
|
+
var e = B, t = o(e), r = Ar(), n = o(r);
|
|
1441
1441
|
function o(h) {
|
|
1442
1442
|
return h && h.__esModule ? h : { default: h };
|
|
1443
1443
|
}
|
|
@@ -1490,7 +1490,7 @@ function El() {
|
|
|
1490
1490
|
return function(_, S, m) {
|
|
1491
1491
|
return S && g(_.prototype, S), m && g(_, m), _;
|
|
1492
1492
|
};
|
|
1493
|
-
}(), t =
|
|
1493
|
+
}(), t = B, r = i(t), n = Ar(), o = i(n);
|
|
1494
1494
|
function i(g) {
|
|
1495
1495
|
return g && g.__esModule ? g : { default: g };
|
|
1496
1496
|
}
|
|
@@ -1549,7 +1549,7 @@ function qi() {
|
|
|
1549
1549
|
return function(w, L, T) {
|
|
1550
1550
|
return L && m(w.prototype, L), T && m(w, T), w;
|
|
1551
1551
|
};
|
|
1552
|
-
}(), r =
|
|
1552
|
+
}(), r = B, n = h(r), o = il;
|
|
1553
1553
|
h(o);
|
|
1554
1554
|
var i = Mt(), s = h(i), a = /* @__PURE__ */ jt(), d = h(a);
|
|
1555
1555
|
function h(m) {
|
|
@@ -1639,7 +1639,7 @@ function yl() {
|
|
|
1639
1639
|
return function(w, L, T) {
|
|
1640
1640
|
return L && m(w.prototype, L), T && m(w, T), w;
|
|
1641
1641
|
};
|
|
1642
|
-
}(), r =
|
|
1642
|
+
}(), r = B, n = d(r), o = qi(), i = d(o), s = /* @__PURE__ */ jt(), a = d(s);
|
|
1643
1643
|
function d(m) {
|
|
1644
1644
|
return m && m.__esModule ? m : { default: m };
|
|
1645
1645
|
}
|
|
@@ -1668,8 +1668,8 @@ function yl() {
|
|
|
1668
1668
|
var T = this, P = e({}, this.props);
|
|
1669
1669
|
return delete P.name, P.parentBindings && delete P.parentBindings, n.default.createElement(
|
|
1670
1670
|
"div",
|
|
1671
|
-
e({}, P, { ref: function(
|
|
1672
|
-
T.props.parentBindings.domNode =
|
|
1671
|
+
e({}, P, { ref: function(z) {
|
|
1672
|
+
T.props.parentBindings.domNode = z;
|
|
1673
1673
|
} }),
|
|
1674
1674
|
this.props.children
|
|
1675
1675
|
);
|
|
@@ -1717,7 +1717,7 @@ function Cl() {
|
|
|
1717
1717
|
throw new TypeError("Super expression must either be null or a function, not " + typeof m);
|
|
1718
1718
|
S.prototype = Object.create(m && m.prototype, { constructor: { value: S, enumerable: !1, writable: !0, configurable: !0 } }), m && (Object.setPrototypeOf ? Object.setPrototypeOf(S, m) : S.__proto__ = m);
|
|
1719
1719
|
}
|
|
1720
|
-
var i =
|
|
1720
|
+
var i = B;
|
|
1721
1721
|
Ft();
|
|
1722
1722
|
var s = Tr(), a = Mt(), d = /* @__PURE__ */ jt(), h = Gi(), g = {
|
|
1723
1723
|
to: d.string.isRequired,
|
|
@@ -1741,15 +1741,15 @@ function Cl() {
|
|
|
1741
1741
|
Scroll: function(m, w) {
|
|
1742
1742
|
console.warn("Helpers.Scroll is deprecated since v1.7.0");
|
|
1743
1743
|
var L = w || a, T = function(C) {
|
|
1744
|
-
o(
|
|
1745
|
-
function
|
|
1746
|
-
r(this,
|
|
1747
|
-
var N = n(this, (
|
|
1744
|
+
o(z, C);
|
|
1745
|
+
function z(F) {
|
|
1746
|
+
r(this, z);
|
|
1747
|
+
var N = n(this, (z.__proto__ || Object.getPrototypeOf(z)).call(this, F));
|
|
1748
1748
|
return P.call(N), N.state = {
|
|
1749
1749
|
active: !1
|
|
1750
1750
|
}, N;
|
|
1751
1751
|
}
|
|
1752
|
-
return t(
|
|
1752
|
+
return t(z, [{
|
|
1753
1753
|
key: "getScrollSpyContainer",
|
|
1754
1754
|
value: function() {
|
|
1755
1755
|
var N = this.props.containerId, M = this.props.container;
|
|
@@ -1780,34 +1780,34 @@ function Cl() {
|
|
|
1780
1780
|
M.hasOwnProperty(W) && delete M[W];
|
|
1781
1781
|
return M.className = N, M.onClick = this.handleClick, i.createElement(m, M);
|
|
1782
1782
|
}
|
|
1783
|
-
}]),
|
|
1783
|
+
}]), z;
|
|
1784
1784
|
}(i.Component), P = function() {
|
|
1785
|
-
var
|
|
1785
|
+
var z = this;
|
|
1786
1786
|
this.scrollTo = function(F, N) {
|
|
1787
|
-
L.scrollTo(F, e({},
|
|
1787
|
+
L.scrollTo(F, e({}, z.state, N));
|
|
1788
1788
|
}, this.handleClick = function(F) {
|
|
1789
|
-
|
|
1789
|
+
z.props.onClick && z.props.onClick(F), F.stopPropagation && F.stopPropagation(), F.preventDefault && F.preventDefault(), z.scrollTo(z.props.to, z.props);
|
|
1790
1790
|
}, this.stateHandler = function() {
|
|
1791
|
-
L.getActiveLink() !==
|
|
1791
|
+
L.getActiveLink() !== z.props.to && (z.state !== null && z.state.active && z.props.onSetInactive && z.props.onSetInactive(), z.setState({ active: !1 }));
|
|
1792
1792
|
}, this.spyHandler = function(F) {
|
|
1793
|
-
var N =
|
|
1793
|
+
var N = z.getScrollSpyContainer();
|
|
1794
1794
|
if (!(h.isMounted() && !h.isInitialized())) {
|
|
1795
|
-
var M =
|
|
1795
|
+
var M = z.props.to, W = null, l = 0, c = 0, f = 0;
|
|
1796
1796
|
if (N.getBoundingClientRect) {
|
|
1797
1797
|
var b = N.getBoundingClientRect();
|
|
1798
1798
|
f = b.top;
|
|
1799
1799
|
}
|
|
1800
|
-
if (!W ||
|
|
1800
|
+
if (!W || z.props.isDynamic) {
|
|
1801
1801
|
if (W = L.get(M), !W)
|
|
1802
1802
|
return;
|
|
1803
1803
|
var u = W.getBoundingClientRect();
|
|
1804
1804
|
l = u.top - f + F, c = l + u.height;
|
|
1805
1805
|
}
|
|
1806
|
-
var v = F -
|
|
1806
|
+
var v = F - z.props.offset, E = v >= Math.floor(l) && v < Math.floor(c), y = v < Math.floor(l) || v >= Math.floor(c), x = L.getActiveLink();
|
|
1807
1807
|
if (y)
|
|
1808
|
-
return M === x && L.setActiveLink(void 0),
|
|
1808
|
+
return M === x && L.setActiveLink(void 0), z.props.hashSpy && h.getHash() === M && h.changeHash(), z.props.spy && z.state.active && (z.setState({ active: !1 }), z.props.onSetInactive && z.props.onSetInactive()), s.updateStates();
|
|
1809
1809
|
if (E && x !== M)
|
|
1810
|
-
return L.setActiveLink(M),
|
|
1810
|
+
return L.setActiveLink(M), z.props.hashSpy && h.changeHash(M), z.props.spy && (z.setState({ active: !0 }), z.props.onSetActive && z.props.onSetActive(M)), s.updateStates();
|
|
1811
1811
|
}
|
|
1812
1812
|
};
|
|
1813
1813
|
};
|
|
@@ -1869,11 +1869,11 @@ function xl() {
|
|
|
1869
1869
|
pn = 1, Object.defineProperty(ae, "__esModule", {
|
|
1870
1870
|
value: !0
|
|
1871
1871
|
}), ae.Helpers = ae.ScrollElement = ae.ScrollLink = ae.animateScroll = ae.scrollSpy = ae.Events = ae.scroller = ae.Element = ae.Button = ae.Link = void 0;
|
|
1872
|
-
var e = _l(), t = F(e), r = El(), n = F(r), o = yl(), i = F(o), s = Mt(), a = F(s), d = wr(), h = F(d), g = Tr(), _ = F(g), S = $i(), m = F(S), w = Ar(), L = F(w), T = qi(), P = F(T), C = Cl(),
|
|
1872
|
+
var e = _l(), t = F(e), r = El(), n = F(r), o = yl(), i = F(o), s = Mt(), a = F(s), d = wr(), h = F(d), g = Tr(), _ = F(g), S = $i(), m = F(S), w = Ar(), L = F(w), T = qi(), P = F(T), C = Cl(), z = F(C);
|
|
1873
1873
|
function F(N) {
|
|
1874
1874
|
return N && N.__esModule ? N : { default: N };
|
|
1875
1875
|
}
|
|
1876
|
-
return ae.Link = t.default, ae.Button = n.default, ae.Element = i.default, ae.scroller = a.default, ae.Events = h.default, ae.scrollSpy = _.default, ae.animateScroll = m.default, ae.ScrollLink = L.default, ae.ScrollElement = P.default, ae.Helpers =
|
|
1876
|
+
return ae.Link = t.default, ae.Button = n.default, ae.Element = i.default, ae.scroller = a.default, ae.Events = h.default, ae.scrollSpy = _.default, ae.animateScroll = m.default, ae.ScrollLink = L.default, ae.ScrollElement = P.default, ae.Helpers = z.default, ae.default = { Link: t.default, Button: n.default, Element: i.default, scroller: a.default, Events: h.default, scrollSpy: _.default, animateScroll: m.default, ScrollLink: L.default, ScrollElement: P.default, Helpers: z.default }, ae;
|
|
1877
1877
|
}
|
|
1878
1878
|
var Ot = xl();
|
|
1879
1879
|
const Yi = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { d: "M11.535 11.293a1 1 0 0 0 0 1.414l3.536 3.536a1 1 0 1 1-1.414 1.414l-4.95-4.95a1 1 0 0 1 0-1.414l4.95-4.95a1 1 0 1 1 1.414 1.414l-3.536 3.536Z", fill: "currentColor" })), E0 = R.forwardRef(function(t, r) {
|
|
@@ -1980,7 +1980,7 @@ const Tl = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 20 20",
|
|
|
1980
1980
|
}
|
|
1981
1981
|
}), w0 = R.forwardRef(function(t, r) {
|
|
1982
1982
|
const { size: n, ...o } = t;
|
|
1983
|
-
return /* @__PURE__ */ p(
|
|
1983
|
+
return /* @__PURE__ */ p(zi, { size: n, asChild: !0, ref: r, children: /* @__PURE__ */ p(Er, { ...o }) });
|
|
1984
1984
|
}), S0 = R.forwardRef(
|
|
1985
1985
|
function(t, r) {
|
|
1986
1986
|
const { noOfLines: n = 3, gap: o, ...i } = t;
|
|
@@ -2021,8 +2021,8 @@ const Tl = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 20 20",
|
|
|
2021
2021
|
disabled: !g && (n || o),
|
|
2022
2022
|
..._,
|
|
2023
2023
|
children: n && !i ? /* @__PURE__ */ G(Me, { children: [
|
|
2024
|
-
/* @__PURE__ */ p(
|
|
2025
|
-
/* @__PURE__ */ p(
|
|
2024
|
+
/* @__PURE__ */ p(zt, { display: "inline-flex", children: /* @__PURE__ */ p(gr, { size: "inherit", color: "inherit" }) }),
|
|
2025
|
+
/* @__PURE__ */ p(Ba, { opacity: 0, children: s })
|
|
2026
2026
|
] }) : n && i ? /* @__PURE__ */ G(Me, { children: [
|
|
2027
2027
|
/* @__PURE__ */ p(gr, { size: "inherit", color: "inherit" }),
|
|
2028
2028
|
i
|
|
@@ -2062,9 +2062,9 @@ const Tl = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 20 20",
|
|
|
2062
2062
|
}
|
|
2063
2063
|
) });
|
|
2064
2064
|
}
|
|
2065
|
-
), Ht =
|
|
2065
|
+
), Ht = B.forwardRef(
|
|
2066
2066
|
function(t, r) {
|
|
2067
|
-
const { size: n, variant: o = "plain", children: i, ...s } = t, a =
|
|
2067
|
+
const { size: n, variant: o = "plain", children: i, ...s } = t, a = B.Children.only(i), d = n ? B.cloneElement(a, { boxSize: n === "2xs_alt" ? 3 : 5 }) : a, h = (() => {
|
|
2068
2068
|
switch (n) {
|
|
2069
2069
|
case "2xs":
|
|
2070
2070
|
return {
|
|
@@ -2105,7 +2105,7 @@ const Tl = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 20 20",
|
|
|
2105
2105
|
);
|
|
2106
2106
|
}
|
|
2107
2107
|
), Le = R.forwardRef(function(t, r) {
|
|
2108
|
-
const n =
|
|
2108
|
+
const n = za({ recipe: Ki }), [o, i] = n.splitVariantProps(t), s = n(o);
|
|
2109
2109
|
return /* @__PURE__ */ p(Ht, { "aria-label": "Close", ref: r, css: s, ...i, children: t.children ?? /* @__PURE__ */ p(ge, { boxSize: 5, children: /* @__PURE__ */ p(wl, {}) }) });
|
|
2110
2110
|
}), O0 = R.forwardRef(
|
|
2111
2111
|
function(t, r) {
|
|
@@ -2254,10 +2254,10 @@ function kl() {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
function s(T, P) {
|
|
2256
2256
|
function C() {
|
|
2257
|
-
var F =
|
|
2257
|
+
var F = z;
|
|
2258
2258
|
i(F) && F.a.parentNode && P(F.g);
|
|
2259
2259
|
}
|
|
2260
|
-
var
|
|
2260
|
+
var z = T;
|
|
2261
2261
|
t(T.b, C), t(T.c, C), i(T);
|
|
2262
2262
|
}
|
|
2263
2263
|
function a(T, P) {
|
|
@@ -2290,12 +2290,12 @@ function kl() {
|
|
|
2290
2290
|
return [T.style, T.weight, w() ? T.stretch : "", "100px", P].join(" ");
|
|
2291
2291
|
}
|
|
2292
2292
|
a.prototype.load = function(T, P) {
|
|
2293
|
-
var C = this,
|
|
2293
|
+
var C = this, z = T || "BESbswy", F = 0, N = P || 3e3, M = (/* @__PURE__ */ new Date()).getTime();
|
|
2294
2294
|
return new Promise(function(W, l) {
|
|
2295
2295
|
if (m() && !S()) {
|
|
2296
2296
|
var c = new Promise(function(b, u) {
|
|
2297
2297
|
function v() {
|
|
2298
|
-
(/* @__PURE__ */ new Date()).getTime() - M >= N ? u(Error("" + N + "ms timeout exceeded")) : document.fonts.load(L(C, '"' + C.family + '"'),
|
|
2298
|
+
(/* @__PURE__ */ new Date()).getTime() - M >= N ? u(Error("" + N + "ms timeout exceeded")) : document.fonts.load(L(C, '"' + C.family + '"'), z).then(function(E) {
|
|
2299
2299
|
1 <= E.length ? b() : setTimeout(v, 25);
|
|
2300
2300
|
}, u);
|
|
2301
2301
|
}
|
|
@@ -2323,7 +2323,7 @@ function kl() {
|
|
|
2323
2323
|
(H === !0 || H === void 0) && (x = v.a.offsetWidth, A = E.a.offsetWidth, I = y.a.offsetWidth, b()), F = setTimeout(u, 50);
|
|
2324
2324
|
}
|
|
2325
2325
|
}
|
|
2326
|
-
var v = new n(
|
|
2326
|
+
var v = new n(z), E = new n(z), y = new n(z), x = -1, A = -1, I = -1, U = -1, O = -1, D = -1, j = document.createElement("div");
|
|
2327
2327
|
j.dir = "ltr", o(v, L(C, "sans-serif")), o(E, L(C, "serif")), o(y, L(C, "monospace")), j.appendChild(v.a), j.appendChild(E.a), j.appendChild(y.a), document.body.appendChild(j), U = v.a.offsetWidth, O = E.a.offsetWidth, D = y.a.offsetWidth, u(), s(v, function(H) {
|
|
2328
2328
|
x = H, b();
|
|
2329
2329
|
}), o(
|
|
@@ -2369,7 +2369,7 @@ function Dl(e) {
|
|
|
2369
2369
|
const t = document.createElement("textarea");
|
|
2370
2370
|
t.value = e, document.body.appendChild(t), t.select(), document.execCommand("copy"), document.body.removeChild(t);
|
|
2371
2371
|
}
|
|
2372
|
-
function
|
|
2372
|
+
function Bl() {
|
|
2373
2373
|
const [e, t] = R.useState(null), r = R.useCallback((n) => {
|
|
2374
2374
|
(async () => {
|
|
2375
2375
|
var i;
|
|
@@ -2385,7 +2385,7 @@ function zl() {
|
|
|
2385
2385
|
}, []);
|
|
2386
2386
|
return [e, r];
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function zl(e, t) {
|
|
2389
2389
|
const [r, n] = R.useState(e);
|
|
2390
2390
|
return R.useEffect(() => {
|
|
2391
2391
|
const o = setTimeout(() => {
|
|
@@ -2734,17 +2734,24 @@ const ss = 18, bn = k("NEXT_PUBLIC_ROLLUP_TYPE"), cs = bn === "arbitrum" ? "post
|
|
|
2734
2734
|
} : {
|
|
2735
2735
|
title: In,
|
|
2736
2736
|
isEnabled: !1
|
|
2737
|
-
}), On = "Beacon chain", ys =
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2737
|
+
}), On = "Beacon chain", ys = (() => {
|
|
2738
|
+
if (k("NEXT_PUBLIC_HAS_BEACON_CHAIN") === "true") {
|
|
2739
|
+
const e = k("NEXT_PUBLIC_BEACON_CHAIN_VALIDATOR_URL_TEMPLATE");
|
|
2740
|
+
return Object.freeze({
|
|
2741
|
+
title: On,
|
|
2742
|
+
isEnabled: !0,
|
|
2743
|
+
currency: {
|
|
2744
|
+
symbol: k("NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL") || k("NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL") || ""
|
|
2745
|
+
// maybe we need some other default value here
|
|
2746
|
+
},
|
|
2747
|
+
validatorUrlTemplate: e
|
|
2748
|
+
});
|
|
2743
2749
|
}
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
})
|
|
2750
|
+
return Object.freeze({
|
|
2751
|
+
title: On,
|
|
2752
|
+
isEnabled: !1
|
|
2753
|
+
});
|
|
2754
|
+
})(), kn = "Bridged tokens", Cs = (() => {
|
|
2748
2755
|
const e = te(k("NEXT_PUBLIC_BRIDGED_TOKENS_CHAINS")), t = te(k("NEXT_PUBLIC_BRIDGED_TOKENS_BRIDGES"));
|
|
2749
2756
|
return e && e.length > 0 && t && t.length > 0 ? Object.freeze({
|
|
2750
2757
|
title: kn,
|
|
@@ -2789,16 +2796,16 @@ const ss = 18, bn = k("NEXT_PUBLIC_ROLLUP_TYPE"), cs = bn === "arbitrum" ? "post
|
|
|
2789
2796
|
}) : Object.freeze({
|
|
2790
2797
|
title: Dn,
|
|
2791
2798
|
isEnabled: !1
|
|
2792
|
-
}),
|
|
2793
|
-
title:
|
|
2799
|
+
}), Bn = "Data availability", Ss = k("NEXT_PUBLIC_DATA_AVAILABILITY_ENABLED") === "true" ? Object.freeze({
|
|
2800
|
+
title: Bn,
|
|
2794
2801
|
isEnabled: !0
|
|
2795
2802
|
}) : Object.freeze({
|
|
2796
|
-
title:
|
|
2803
|
+
title: Bn,
|
|
2797
2804
|
isEnabled: !1
|
|
2798
|
-
}),
|
|
2805
|
+
}), zn = te(k("NEXT_PUBLIC_DEFI_DROPDOWN_ITEMS")) || [], Un = "DeFi dropdown", As = zn.length > 0 ? Object.freeze({
|
|
2799
2806
|
title: Un,
|
|
2800
2807
|
isEnabled: !0,
|
|
2801
|
-
items:
|
|
2808
|
+
items: zn
|
|
2802
2809
|
}) : Object.freeze({
|
|
2803
2810
|
title: Un,
|
|
2804
2811
|
isEnabled: !1
|
|
@@ -2880,11 +2887,11 @@ const ss = 18, bn = k("NEXT_PUBLIC_ROLLUP_TYPE"), cs = bn === "arbitrum" ? "post
|
|
|
2880
2887
|
}), Ds = [
|
|
2881
2888
|
"usd",
|
|
2882
2889
|
"gwei"
|
|
2883
|
-
],
|
|
2890
|
+
], Bs = k("NEXT_PUBLIC_GAS_TRACKER_ENABLED") === "false", Yn = (() => {
|
|
2884
2891
|
var r;
|
|
2885
2892
|
const e = k("NEXT_PUBLIC_GAS_TRACKER_UNITS");
|
|
2886
2893
|
return e ? ((r = te(e)) == null ? void 0 : r.filter((n) => Ds.includes(n))) || [] : Ie.isTestnet ? ["gwei"] : ["usd", "gwei"];
|
|
2887
|
-
})(), Kn = "Gas tracker",
|
|
2894
|
+
})(), Kn = "Gas tracker", zs = !Bs && Yn.length > 0 ? Object.freeze({
|
|
2888
2895
|
title: Kn,
|
|
2889
2896
|
isEnabled: !0,
|
|
2890
2897
|
units: Yn
|
|
@@ -3178,7 +3185,7 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3178
3185
|
externalTxs: ks,
|
|
3179
3186
|
faultProofSystem: Ls,
|
|
3180
3187
|
flashblocks: Ns,
|
|
3181
|
-
gasTracker:
|
|
3188
|
+
gasTracker: zs,
|
|
3182
3189
|
getGasButton: Ws,
|
|
3183
3190
|
googleAnalytics: $s,
|
|
3184
3191
|
growthBook: Xs,
|
|
@@ -3259,7 +3266,7 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3259
3266
|
], Do = [
|
|
3260
3267
|
"solidity-hardhat",
|
|
3261
3268
|
"solidity-foundry"
|
|
3262
|
-
],
|
|
3269
|
+
], Bo = [
|
|
3263
3270
|
"solidity",
|
|
3264
3271
|
"vyper",
|
|
3265
3272
|
"yul",
|
|
@@ -3291,8 +3298,8 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3291
3298
|
return e === "none" ? [] : e ? (te(e) || []).filter((r) => Do.includes(r)) : Do;
|
|
3292
3299
|
})(), Dc = (() => {
|
|
3293
3300
|
const e = te(k("NEXT_PUBLIC_VIEWS_CONTRACT_LANGUAGE_FILTERS"));
|
|
3294
|
-
return e ? e.filter((t) =>
|
|
3295
|
-
})(),
|
|
3301
|
+
return e ? e.filter((t) => Bo.includes(t)) : Bo.filter((r) => r !== "scilla");
|
|
3302
|
+
})(), Bc = Object.freeze({
|
|
3296
3303
|
identiconType: Rc,
|
|
3297
3304
|
hashFormat: {
|
|
3298
3305
|
availableFormats: aa,
|
|
@@ -3303,7 +3310,7 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3303
3310
|
extraVerificationMethods: Nc,
|
|
3304
3311
|
languageFilters: Dc,
|
|
3305
3312
|
decodedBytecodeEnabled: k("NEXT_PUBLIC_VIEWS_CONTRACT_DECODED_BYTECODE_ENABLED") === "true"
|
|
3306
|
-
}),
|
|
3313
|
+
}), zc = [
|
|
3307
3314
|
"base_fee",
|
|
3308
3315
|
"burnt_fees",
|
|
3309
3316
|
"total_reward",
|
|
@@ -3313,7 +3320,7 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3313
3320
|
"batch"
|
|
3314
3321
|
], Uc = (() => {
|
|
3315
3322
|
const e = te(k("NEXT_PUBLIC_VIEWS_BLOCK_HIDDEN_FIELDS")) || [];
|
|
3316
|
-
return Array.isArray(e) ?
|
|
3323
|
+
return Array.isArray(e) ? zc.reduce((r, n) => (r[n] = e.includes(n), r), {}) : void 0;
|
|
3317
3324
|
})(), Fc = Object.freeze({
|
|
3318
3325
|
hiddenFields: Uc
|
|
3319
3326
|
}), Mc = (() => {
|
|
@@ -3348,7 +3355,7 @@ const Oo = "User profile API", mc = Ue && bc(Ue.api_url_template) ? Object.freez
|
|
|
3348
3355
|
additionalFields: Vc
|
|
3349
3356
|
}), qc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3350
3357
|
__proto__: null,
|
|
3351
|
-
address:
|
|
3358
|
+
address: Bc,
|
|
3352
3359
|
block: Fc,
|
|
3353
3360
|
nft: jc,
|
|
3354
3361
|
token: Hc,
|
|
@@ -3460,7 +3467,7 @@ const Pr = R.forwardRef(
|
|
|
3460
3467
|
unmountOnExit: T = !0,
|
|
3461
3468
|
triggerProps: P,
|
|
3462
3469
|
closeDelay: C = 100,
|
|
3463
|
-
openDelay:
|
|
3470
|
+
openDelay: z = 100,
|
|
3464
3471
|
interactive: F,
|
|
3465
3472
|
...N
|
|
3466
3473
|
} = t, [M, W] = R.useState(w), l = R.useRef(null), c = Rr(), f = R.useCallback((O) => {
|
|
@@ -3468,8 +3475,8 @@ const Pr = R.forwardRef(
|
|
|
3468
3475
|
}, [o]), b = R.useCallback((O) => {
|
|
3469
3476
|
l.current && window.clearTimeout(l.current), l.current = window.setTimeout(() => {
|
|
3470
3477
|
W(O), o == null || o({ open: O });
|
|
3471
|
-
}, O ?
|
|
3472
|
-
}, [C,
|
|
3478
|
+
}, O ? z : C);
|
|
3479
|
+
}, [C, z, o]), u = R.useCallback((O) => {
|
|
3473
3480
|
var D;
|
|
3474
3481
|
F && ((D = O.target) != null && D.closest(".chakra-tooltip__positioner")) || b(!1);
|
|
3475
3482
|
}, [F, b]), v = Nl(u), E = R.useCallback(() => {
|
|
@@ -3492,7 +3499,7 @@ const Pr = R.forwardRef(
|
|
|
3492
3499
|
return /* @__PURE__ */ G(
|
|
3493
3500
|
Xe.Root,
|
|
3494
3501
|
{
|
|
3495
|
-
openDelay:
|
|
3502
|
+
openDelay: z,
|
|
3496
3503
|
closeDelay: Qe.app.isPw ? 1e4 : C,
|
|
3497
3504
|
open: M,
|
|
3498
3505
|
onOpenChange: f,
|
|
@@ -3534,10 +3541,10 @@ const Pr = R.forwardRef(
|
|
|
3534
3541
|
}
|
|
3535
3542
|
);
|
|
3536
3543
|
function la(e) {
|
|
3537
|
-
const { open: t, onOpen: r, onClose: n, onToggle: o } = Fa(e), i =
|
|
3544
|
+
const { open: t, onOpen: r, onClose: n, onToggle: o } = Fa(e), i = B.useCallback(({ open: s }) => {
|
|
3538
3545
|
s ? r() : n();
|
|
3539
3546
|
}, [r, n]);
|
|
3540
|
-
return
|
|
3547
|
+
return B.useMemo(() => ({
|
|
3541
3548
|
open: t,
|
|
3542
3549
|
onOpenChange: i,
|
|
3543
3550
|
onClose: n,
|
|
@@ -3629,26 +3636,26 @@ const eu = ((Xo = Qe.UI.fonts.heading) == null ? void 0 : Xo.name) ?? "Poppins",
|
|
|
3629
3636
|
}
|
|
3630
3637
|
}
|
|
3631
3638
|
}
|
|
3632
|
-
}, ca =
|
|
3633
|
-
const o =
|
|
3639
|
+
}, ca = B.memo(({ children: e, label: t, placement: r, interactive: n }) => {
|
|
3640
|
+
const o = B.useRef(null), [i, s] = B.useState(!1), { open: a, onToggle: d, onOpen: h, onClose: g } = la(), _ = Ll([
|
|
3634
3641
|
{ family: sa }
|
|
3635
|
-
]), S =
|
|
3642
|
+
]), S = B.useCallback(() => {
|
|
3636
3643
|
if (o.current) {
|
|
3637
3644
|
const T = o.current.scrollWidth, P = o.current.clientWidth;
|
|
3638
3645
|
T > P ? s(!0) : s(!1);
|
|
3639
3646
|
}
|
|
3640
3647
|
}, []);
|
|
3641
|
-
|
|
3648
|
+
B.useEffect(() => {
|
|
3642
3649
|
S();
|
|
3643
|
-
}, [S, _]),
|
|
3650
|
+
}, [S, _]), B.useEffect(() => {
|
|
3644
3651
|
const T = Wt(S, 1e3);
|
|
3645
3652
|
return window.addEventListener("resize", T), function() {
|
|
3646
3653
|
window.removeEventListener("resize", T);
|
|
3647
3654
|
};
|
|
3648
3655
|
}, [S]);
|
|
3649
|
-
const m =
|
|
3656
|
+
const m = B.Children.only(e), w = B.useCallback((T) => {
|
|
3650
3657
|
T.stopPropagation(), d();
|
|
3651
|
-
}, [d]), L =
|
|
3658
|
+
}, [d]), L = B.cloneElement(
|
|
3652
3659
|
m,
|
|
3653
3660
|
{
|
|
3654
3661
|
ref: o,
|
|
@@ -3668,7 +3675,7 @@ const eu = ((Xo = Qe.UI.fonts.heading) == null ? void 0 : Xo.name) ?? "Poppins",
|
|
|
3668
3675
|
children: L
|
|
3669
3676
|
}
|
|
3670
3677
|
) : L;
|
|
3671
|
-
}),
|
|
3678
|
+
}), B0 = B.forwardRef(
|
|
3672
3679
|
function(t, r) {
|
|
3673
3680
|
const { loading: n, startElement: o, children: i, asChild: s = !0, truncated: a = !1, endElement: d, ...h } = t, g = /* @__PURE__ */ p(We.span, { overflow: "hidden", textOverflow: "ellipsis", children: i });
|
|
3674
3681
|
return /* @__PURE__ */ p(Te, { loading: n, asChild: s, ref: r, children: /* @__PURE__ */ G(Ma, { display: "inline-flex", alignItems: "center", whiteSpace: "nowrap", ...h, children: [
|
|
@@ -3704,12 +3711,12 @@ const eu = ((Xo = Qe.UI.fonts.heading) == null ? void 0 : Xo.name) ?? "Poppins",
|
|
|
3704
3711
|
}
|
|
3705
3712
|
);
|
|
3706
3713
|
function ou() {
|
|
3707
|
-
const e =
|
|
3714
|
+
const e = B.useRef(!0);
|
|
3708
3715
|
return e.current ? (e.current = !1, !0) : e.current;
|
|
3709
3716
|
}
|
|
3710
3717
|
const iu = (e, t) => {
|
|
3711
3718
|
const r = ou();
|
|
3712
|
-
|
|
3719
|
+
B.useEffect(() => {
|
|
3713
3720
|
if (!r)
|
|
3714
3721
|
return e();
|
|
3715
3722
|
}, t);
|
|
@@ -3736,7 +3743,7 @@ const iu = (e, t) => {
|
|
|
3736
3743
|
prefetch: n
|
|
3737
3744
|
}
|
|
3738
3745
|
};
|
|
3739
|
-
}, Xt =
|
|
3746
|
+
}, Xt = B.forwardRef(
|
|
3740
3747
|
function(t, r) {
|
|
3741
3748
|
const { chakra: n, next: o } = da(t), { external: i, loading: s, href: a, children: d, disabled: h, noIcon: g, iconColor: _, ...S } = n;
|
|
3742
3749
|
return i ? /* @__PURE__ */ p(Te, { loading: s, ref: r, asChild: !0, children: /* @__PURE__ */ G(
|
|
@@ -3763,20 +3770,20 @@ const iu = (e, t) => {
|
|
|
3763
3770
|
}
|
|
3764
3771
|
) });
|
|
3765
3772
|
}
|
|
3766
|
-
),
|
|
3773
|
+
), z0 = Ha, U0 = B.forwardRef(
|
|
3767
3774
|
function(t, r) {
|
|
3768
3775
|
const { chakra: n, next: o } = da(t), { children: i, external: s, ...a } = n;
|
|
3769
|
-
return s ? /* @__PURE__ */ p(
|
|
3776
|
+
return s ? /* @__PURE__ */ p(Br, { ref: r, target: "_blank", rel: "noopener noreferrer", ...a, children: i }) : /* @__PURE__ */ p(Br, { ref: r, asChild: !!o.href, ...a, children: o.href ? /* @__PURE__ */ p(Hi, { ...o, children: i }) : i });
|
|
3770
3777
|
}
|
|
3771
|
-
),
|
|
3778
|
+
), zo = {
|
|
3772
3779
|
duration: 500,
|
|
3773
3780
|
smooth: !0
|
|
3774
3781
|
}, su = "CollapsibleDetails", F0 = (e) => {
|
|
3775
|
-
const { children: t, id: r = su, onClick: n, isExpanded: o = !1, text: i, loading: s, noScroll: a, ...d } = e, [h, g] =
|
|
3776
|
-
g((w) => !w), a || Ot.scroller.scrollTo(r,
|
|
3782
|
+
const { children: t, id: r = su, onClick: n, isExpanded: o = !1, text: i, loading: s, noScroll: a, ...d } = e, [h, g] = B.useState(o), _ = B.useCallback((m) => {
|
|
3783
|
+
g((w) => !w), a || Ot.scroller.scrollTo(r, zo), n == null || n(m);
|
|
3777
3784
|
}, [r, a, n]);
|
|
3778
3785
|
iu(() => {
|
|
3779
|
-
g(o), o && !a && Ot.scroller.scrollTo(r,
|
|
3786
|
+
g(o), o && !a && Ot.scroller.scrollTo(r, zo);
|
|
3780
3787
|
}, [o, r, a]);
|
|
3781
3788
|
const S = h ? (i == null ? void 0 : i[1]) ?? "Hide details" : (i == null ? void 0 : i[0]) ?? "View details";
|
|
3782
3789
|
return /* @__PURE__ */ G(Me, { children: [
|
|
@@ -3796,7 +3803,7 @@ const iu = (e, t) => {
|
|
|
3796
3803
|
h && t
|
|
3797
3804
|
] });
|
|
3798
3805
|
}, M0 = (e) => {
|
|
3799
|
-
const { items: r, renderItem: n, triggerProps: o, cutLength: i = 3, ...s } = e, [a, d] =
|
|
3806
|
+
const { items: r, renderItem: n, triggerProps: o, cutLength: i = 3, ...s } = e, [a, d] = B.useState(!1), h = B.useCallback(() => {
|
|
3800
3807
|
d((g) => !g);
|
|
3801
3808
|
}, []);
|
|
3802
3809
|
return /* @__PURE__ */ G(Lt, { flexDir: "column", w: "100%", ...s, children: [
|
|
@@ -3910,7 +3917,7 @@ function pa(e) {
|
|
|
3910
3917
|
if (typeof e != "string" && "displayName" in e)
|
|
3911
3918
|
return e.displayName;
|
|
3912
3919
|
}
|
|
3913
|
-
const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga = " ", _u = "‑", Eu = "—", yu = "–", Cu = "«", xu = "»", kt = "·", Tu = "●", wu = "➤", Su = "°", Au = "×", Iu = "•", Ou = "−", ku = "←", Ru = "→", Pu = "'", Lu = "⇧", Nu = "⌘", Du = "⎇",
|
|
3920
|
+
const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga = " ", _u = "‑", Eu = "—", yu = "–", Cu = "«", xu = "»", kt = "·", Tu = "●", wu = "➤", Su = "°", Au = "×", Iu = "•", Ou = "−", ku = "←", Ru = "→", Pu = "'", Lu = "⇧", Nu = "⌘", Du = "⎇", Bu = "©", sp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3914
3921
|
__proto__: null,
|
|
3915
3922
|
alt: Du,
|
|
3916
3923
|
apos: Pu,
|
|
@@ -3918,7 +3925,7 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
3918
3925
|
blackCircle: Tu,
|
|
3919
3926
|
blackRightwardsArrowhead: wu,
|
|
3920
3927
|
cmd: Nu,
|
|
3921
|
-
copy:
|
|
3928
|
+
copy: Bu,
|
|
3922
3929
|
degree: Su,
|
|
3923
3930
|
disk: Iu,
|
|
3924
3931
|
hairsp: vu,
|
|
@@ -3963,14 +3970,14 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
3963
3970
|
const C = R.cloneElement(
|
|
3964
3971
|
R.Children.only(L.props.children),
|
|
3965
3972
|
S
|
|
3966
|
-
),
|
|
3973
|
+
), z = R.cloneElement(
|
|
3967
3974
|
L,
|
|
3968
3975
|
{},
|
|
3969
3976
|
C,
|
|
3970
3977
|
m
|
|
3971
3978
|
);
|
|
3972
3979
|
return /* @__PURE__ */ G(we.Root, { pos: "relative", w: "full", ref: r, ...d, children: [
|
|
3973
|
-
|
|
3980
|
+
z,
|
|
3974
3981
|
w
|
|
3975
3982
|
] });
|
|
3976
3983
|
}
|
|
@@ -3994,7 +4001,7 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
3994
4001
|
s && /* @__PURE__ */ p(we.ErrorText, { children: s })
|
|
3995
4002
|
] });
|
|
3996
4003
|
}
|
|
3997
|
-
), cp =
|
|
4004
|
+
), cp = B.forwardRef(
|
|
3998
4005
|
function(t, r) {
|
|
3999
4006
|
const { level: n, ...o } = t, i = (() => {
|
|
4000
4007
|
switch (n) {
|
|
@@ -4017,14 +4024,14 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
4017
4024
|
})();
|
|
4018
4025
|
return /* @__PURE__ */ p(Wa, { ref: r, color: "heading", textStyle: i, as: s, ...o });
|
|
4019
4026
|
}
|
|
4020
|
-
),
|
|
4027
|
+
), zu = B.forwardRef(
|
|
4021
4028
|
function(t, r) {
|
|
4022
|
-
const { fallback: n, src: o, onLoad: i, onError: s, ...a } = t, [d, h] =
|
|
4029
|
+
const { fallback: n, src: o, onLoad: i, onError: s, ...a } = t, [d, h] = B.useState(!0), [g, _] = B.useState(!1), S = B.useCallback((w) => {
|
|
4023
4030
|
_(!0), h(!1), s == null || s(w);
|
|
4024
|
-
}, [s]), m =
|
|
4031
|
+
}, [s]), m = B.useCallback((w) => {
|
|
4025
4032
|
h(!1), i == null || i(w);
|
|
4026
4033
|
}, [i]);
|
|
4027
|
-
return !o && n ?
|
|
4034
|
+
return !o && n ? B.isValidElement(n) ? B.cloneElement(n, a) : n : g ? B.isValidElement(n) ? B.cloneElement(n, a) : n : /* @__PURE__ */ G(Me, { children: [
|
|
4028
4035
|
d && /* @__PURE__ */ p(Te, { loading: !0, ...a }),
|
|
4029
4036
|
/* @__PURE__ */ p(
|
|
4030
4037
|
$a,
|
|
@@ -4051,8 +4058,8 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
4051
4058
|
endOffset: h,
|
|
4052
4059
|
...g
|
|
4053
4060
|
} = t, _ = R.useRef(null), S = R.useRef(null), [m, w] = R.useState(), L = R.useCallback(() => {
|
|
4054
|
-
var C,
|
|
4055
|
-
const { width: T } = ((C = S == null ? void 0 : S.current) == null ? void 0 : C.getBoundingClientRect()) ?? {}, { width: P } = ((
|
|
4061
|
+
var C, z;
|
|
4062
|
+
const { width: T } = ((C = S == null ? void 0 : S.current) == null ? void 0 : C.getBoundingClientRect()) ?? {}, { width: P } = ((z = _ == null ? void 0 : _.current) == null ? void 0 : z.getBoundingClientRect()) ?? {};
|
|
4056
4063
|
w({
|
|
4057
4064
|
start: P ?? 0,
|
|
4058
4065
|
end: T ?? 0
|
|
@@ -4065,7 +4072,7 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
4065
4072
|
P.unobserve(window.document.body);
|
|
4066
4073
|
};
|
|
4067
4074
|
}, [L]), /* @__PURE__ */ G(yr, { ref: r, w: "100%", ...g, children: [
|
|
4068
|
-
n && /* @__PURE__ */ p(
|
|
4075
|
+
n && /* @__PURE__ */ p(zr, { pointerEvents: "none", ref: _, px: 0, color: "input.placeholder", ...o, children: n }),
|
|
4069
4076
|
R.Children.map(a, (T) => pa(T.type) !== "FieldInput" ? T : R.cloneElement(T, {
|
|
4070
4077
|
...n && { ps: d ?? (m != null && m.start ? `${m.start}px` : void 0) },
|
|
4071
4078
|
...i && { pe: h ?? (m != null && m.end ? `${m.end}px` : void 0) },
|
|
@@ -4073,7 +4080,7 @@ const hu = "≈", gu = "~", bu = "…", ha = " ", mu = " ", vu = " ", ga =
|
|
|
4073
4080
|
value: m ? T.props.value : void 0,
|
|
4074
4081
|
placeholder: m ? T.props.placeholder : void 0
|
|
4075
4082
|
})),
|
|
4076
|
-
i && /* @__PURE__ */ p(
|
|
4083
|
+
i && /* @__PURE__ */ p(zr, { placement: "end", ref: S, px: 0, color: "input.placeholder", ...s, children: i })
|
|
4077
4084
|
] });
|
|
4078
4085
|
}
|
|
4079
4086
|
);
|
|
@@ -4085,7 +4092,7 @@ var ma = {
|
|
|
4085
4092
|
className: void 0,
|
|
4086
4093
|
style: void 0,
|
|
4087
4094
|
attr: void 0
|
|
4088
|
-
}, Uo =
|
|
4095
|
+
}, Uo = B.createContext && /* @__PURE__ */ B.createContext(ma), Uu = ["attr", "size", "title"];
|
|
4089
4096
|
function Fu(e, t) {
|
|
4090
4097
|
if (e == null) return {};
|
|
4091
4098
|
var r = Mu(e, t), n, o;
|
|
@@ -4155,12 +4162,12 @@ function Wu(e, t) {
|
|
|
4155
4162
|
return (t === "string" ? String : Number)(e);
|
|
4156
4163
|
}
|
|
4157
4164
|
function va(e) {
|
|
4158
|
-
return e && e.map((t, r) => /* @__PURE__ */
|
|
4165
|
+
return e && e.map((t, r) => /* @__PURE__ */ B.createElement(t.tag, Dt({
|
|
4159
4166
|
key: r
|
|
4160
4167
|
}, t.attr), va(t.child)));
|
|
4161
4168
|
}
|
|
4162
4169
|
function _a(e) {
|
|
4163
|
-
return (t) => /* @__PURE__ */
|
|
4170
|
+
return (t) => /* @__PURE__ */ B.createElement($u, Nt({
|
|
4164
4171
|
attr: Dt({}, e.attr)
|
|
4165
4172
|
}, t), va(e.child));
|
|
4166
4173
|
}
|
|
@@ -4171,7 +4178,7 @@ function $u(e) {
|
|
|
4171
4178
|
size: o,
|
|
4172
4179
|
title: i
|
|
4173
4180
|
} = e, s = Fu(e, Uu), a = o || r.size || "1em", d;
|
|
4174
|
-
return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */
|
|
4181
|
+
return r.className && (d = r.className), e.className && (d = (d ? d + " " : "") + e.className), /* @__PURE__ */ B.createElement("svg", Nt({
|
|
4175
4182
|
stroke: "currentColor",
|
|
4176
4183
|
fill: "currentColor",
|
|
4177
4184
|
strokeWidth: "0"
|
|
@@ -4183,9 +4190,9 @@ function $u(e) {
|
|
|
4183
4190
|
height: a,
|
|
4184
4191
|
width: a,
|
|
4185
4192
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4186
|
-
}), i && /* @__PURE__ */
|
|
4193
|
+
}), i && /* @__PURE__ */ B.createElement("title", null, i), e.children);
|
|
4187
4194
|
};
|
|
4188
|
-
return Uo !== void 0 ? /* @__PURE__ */
|
|
4195
|
+
return Uo !== void 0 ? /* @__PURE__ */ B.createElement(Uo.Consumer, null, (r) => t(r)) : t(ma);
|
|
4189
4196
|
}
|
|
4190
4197
|
function Ea(e) {
|
|
4191
4198
|
return _a({ attr: { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }, child: [{ tag: "path", attr: { d: "M20 6 9 17l-5-5" }, child: [] }] })(e);
|
|
@@ -4202,13 +4209,13 @@ const up = R.forwardRef(
|
|
|
4202
4209
|
return /* @__PURE__ */ p(de.Arrow, { ref: r, ...t, children: /* @__PURE__ */ p(de.ArrowTip, {}) });
|
|
4203
4210
|
}), fp = R.forwardRef(function(t, r) {
|
|
4204
4211
|
return /* @__PURE__ */ G(de.CheckboxItem, { ps: "8", ref: r, ...t, children: [
|
|
4205
|
-
/* @__PURE__ */ p(
|
|
4212
|
+
/* @__PURE__ */ p(zt, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ p(de.ItemIndicator, { children: /* @__PURE__ */ p(Ea, {}) }) }),
|
|
4206
4213
|
t.children
|
|
4207
4214
|
] });
|
|
4208
4215
|
}), pp = R.forwardRef(function(t, r) {
|
|
4209
4216
|
const { children: n, ...o } = t;
|
|
4210
4217
|
return /* @__PURE__ */ G(de.RadioItem, { ps: "8", ref: r, ...o, children: [
|
|
4211
|
-
/* @__PURE__ */ p(
|
|
4218
|
+
/* @__PURE__ */ p(zt, { axis: "horizontal", insetStart: "4", asChild: !0, children: /* @__PURE__ */ p(de.ItemIndicator, { children: /* @__PURE__ */ p(Ea, {}) }) }),
|
|
4212
4219
|
/* @__PURE__ */ p(de.ItemText, { children: n })
|
|
4213
4220
|
] });
|
|
4214
4221
|
}), hp = R.forwardRef(function(t, r) {
|
|
@@ -4302,7 +4309,7 @@ const up = R.forwardRef(
|
|
|
4302
4309
|
/* @__PURE__ */ p(it.Range, { stroke: i, strokeLinecap: o })
|
|
4303
4310
|
] });
|
|
4304
4311
|
}), Pp = R.forwardRef(function(t, r) {
|
|
4305
|
-
return /* @__PURE__ */ p(
|
|
4312
|
+
return /* @__PURE__ */ p(zt, { children: /* @__PURE__ */ p(it.ValueText, { ...t, ref: r }) });
|
|
4306
4313
|
}), Lp = it.Root, Zu = {
|
|
4307
4314
|
fromLeftToRight: {
|
|
4308
4315
|
from: {
|
|
@@ -7180,7 +7187,7 @@ const { variants: wd } = Lr, Sd = ce({
|
|
|
7180
7187
|
size: "md"
|
|
7181
7188
|
}
|
|
7182
7189
|
});
|
|
7183
|
-
var Li, Ni, Di,
|
|
7190
|
+
var Li, Ni, Di, Bi;
|
|
7184
7191
|
const Od = ce({
|
|
7185
7192
|
slots: ["item", "itemControl", "itemText", "root"],
|
|
7186
7193
|
base: {
|
|
@@ -7218,7 +7225,7 @@ const Od = ce({
|
|
|
7218
7225
|
size: {
|
|
7219
7226
|
md: {
|
|
7220
7227
|
item: { textStyle: "md", gap: "2" },
|
|
7221
|
-
itemControl: (
|
|
7228
|
+
itemControl: (Bi = (Di = Pt.variants) == null ? void 0 : Di.size) == null ? void 0 : Bi.md
|
|
7222
7229
|
}
|
|
7223
7230
|
},
|
|
7224
7231
|
orientation: {
|
|
@@ -7914,7 +7921,7 @@ const Od = ce({
|
|
|
7914
7921
|
direction: "ltr",
|
|
7915
7922
|
size: "md"
|
|
7916
7923
|
}
|
|
7917
|
-
}),
|
|
7924
|
+
}), Bd = ce({
|
|
7918
7925
|
slots: ["root", "row", "cell", "columnHeader", "caption", "footer", "body", "header"],
|
|
7919
7926
|
base: {
|
|
7920
7927
|
root: {
|
|
@@ -7992,7 +7999,7 @@ const Od = ce({
|
|
|
7992
7999
|
variant: "line",
|
|
7993
8000
|
size: "md"
|
|
7994
8001
|
}
|
|
7995
|
-
}),
|
|
8002
|
+
}), zd = ce({
|
|
7996
8003
|
slots: ["root", "list", "trigger", "content", "indicator"],
|
|
7997
8004
|
base: {
|
|
7998
8005
|
root: {
|
|
@@ -8611,8 +8618,8 @@ const Od = ce({
|
|
|
8611
8618
|
select: Rd,
|
|
8612
8619
|
stat: Nd,
|
|
8613
8620
|
switch: Dd,
|
|
8614
|
-
table:
|
|
8615
|
-
tabs:
|
|
8621
|
+
table: Bd,
|
|
8622
|
+
tabs: zd,
|
|
8616
8623
|
tag: Ud,
|
|
8617
8624
|
toast: Md,
|
|
8618
8625
|
tooltip: jd
|
|
@@ -8688,9 +8695,9 @@ const Vd = R.forwardRef(
|
|
|
8688
8695
|
inputProps: h,
|
|
8689
8696
|
...g
|
|
8690
8697
|
}) => {
|
|
8691
|
-
const [_, S] = Cr(n || ""), m =
|
|
8692
|
-
const { value:
|
|
8693
|
-
S(
|
|
8698
|
+
const [_, S] = Cr(n || ""), m = B.useRef(null), w = Fr((C) => {
|
|
8699
|
+
const { value: z } = C.target;
|
|
8700
|
+
S(z), e == null || e(z);
|
|
8694
8701
|
}, [e]), L = Fr(() => {
|
|
8695
8702
|
var C;
|
|
8696
8703
|
S(""), e == null || e(""), (C = m == null ? void 0 : m.current) == null || C.focus();
|
|
@@ -8745,7 +8752,7 @@ const Vd = R.forwardRef(
|
|
|
8745
8752
|
}
|
|
8746
8753
|
) })
|
|
8747
8754
|
] }) });
|
|
8748
|
-
}),
|
|
8755
|
+
}), Bp = R.forwardRef(function(t, r) {
|
|
8749
8756
|
return /* @__PURE__ */ p(fe.ClearTrigger, { asChild: !0, ...t, ref: r, children: /* @__PURE__ */ p(
|
|
8750
8757
|
Le,
|
|
8751
8758
|
{
|
|
@@ -8816,7 +8823,7 @@ const Vd = R.forwardRef(
|
|
|
8816
8823
|
] })
|
|
8817
8824
|
}
|
|
8818
8825
|
);
|
|
8819
|
-
}),
|
|
8826
|
+
}), zp = R.forwardRef(function(t, r) {
|
|
8820
8827
|
const { children: n, label: o, ...i } = t;
|
|
8821
8828
|
return /* @__PURE__ */ G(fe.ItemGroup, { ...i, ref: r, children: [
|
|
8822
8829
|
/* @__PURE__ */ p(fe.ItemGroupLabel, { children: o }),
|
|
@@ -8847,13 +8854,13 @@ const Vd = R.forwardRef(
|
|
|
8847
8854
|
}
|
|
8848
8855
|
);
|
|
8849
8856
|
}), tf = R.forwardRef((e, t) => {
|
|
8850
|
-
const { placeholder: r, portalled: n = !0, loading: o, loadOptions: i, extraControls: s, onValueChange: a, errorText: d, mode: h, ...g } = e, [_, S] = R.useState(Za({ items: [] })), [m, w] = R.useState(""), [L, T] = R.useState([]), P =
|
|
8857
|
+
const { placeholder: r, portalled: n = !0, loading: o, loadOptions: i, extraControls: s, onValueChange: a, errorText: d, mode: h, ...g } = e, [_, S] = R.useState(Za({ items: [] })), [m, w] = R.useState(""), [L, T] = R.useState([]), P = zl(m, 300);
|
|
8851
8858
|
R.useEffect(() => {
|
|
8852
8859
|
i(P, L).then(S);
|
|
8853
8860
|
}, [P, i, L]);
|
|
8854
8861
|
const C = R.useCallback((F) => {
|
|
8855
8862
|
w(F);
|
|
8856
|
-
}, []),
|
|
8863
|
+
}, []), z = R.useCallback(({ value: F, items: N }) => {
|
|
8857
8864
|
T(F), a == null || a({ value: F, items: N });
|
|
8858
8865
|
}, [a]);
|
|
8859
8866
|
return /* @__PURE__ */ G(
|
|
@@ -8861,7 +8868,7 @@ const Vd = R.forwardRef(
|
|
|
8861
8868
|
{
|
|
8862
8869
|
ref: t,
|
|
8863
8870
|
collection: _,
|
|
8864
|
-
onValueChange:
|
|
8871
|
+
onValueChange: z,
|
|
8865
8872
|
...g,
|
|
8866
8873
|
children: [
|
|
8867
8874
|
/* @__PURE__ */ p(ya, { loading: o, children: /* @__PURE__ */ p(
|
|
@@ -8928,13 +8935,13 @@ const nf = R.forwardRef(
|
|
|
8928
8935
|
), of = R.forwardRef(
|
|
8929
8936
|
function(t, r) {
|
|
8930
8937
|
const { inputProps: n, children: o, rootRef: i, trackLabel: s, thumbLabel: a, labelProps: d, ...h } = t;
|
|
8931
|
-
return /* @__PURE__ */ G(
|
|
8932
|
-
/* @__PURE__ */ p(
|
|
8933
|
-
/* @__PURE__ */ G(
|
|
8934
|
-
/* @__PURE__ */ p(
|
|
8935
|
-
s && /* @__PURE__ */ p(
|
|
8938
|
+
return /* @__PURE__ */ G(Be.Root, { ref: i, ...h, children: [
|
|
8939
|
+
/* @__PURE__ */ p(Be.HiddenInput, { ref: r, ...n }),
|
|
8940
|
+
/* @__PURE__ */ G(Be.Control, { children: [
|
|
8941
|
+
/* @__PURE__ */ p(Be.Thumb, { children: a && /* @__PURE__ */ p(Be.ThumbIndicator, { fallback: a == null ? void 0 : a.off, children: a == null ? void 0 : a.on }) }),
|
|
8942
|
+
s && /* @__PURE__ */ p(Be.Indicator, { fallback: s.off, children: s.on })
|
|
8936
8943
|
] }),
|
|
8937
|
-
o != null && /* @__PURE__ */ p(
|
|
8944
|
+
o != null && /* @__PURE__ */ p(Be.Label, { ...d, children: o })
|
|
8938
8945
|
] });
|
|
8939
8946
|
}
|
|
8940
8947
|
), jp = Ze.Root, Hp = Ze.Body, af = Ze.Header, Wp = Ze.Row, $p = (e) => {
|
|
@@ -9025,24 +9032,24 @@ const nf = R.forwardRef(
|
|
|
9025
9032
|
s,
|
|
9026
9033
|
":",
|
|
9027
9034
|
ha
|
|
9028
|
-
] }) : null, L = g ? /* @__PURE__ */ p(ca, { label: h, children: /* @__PURE__ */ G(
|
|
9035
|
+
] }) : null, L = g ? /* @__PURE__ */ p(ca, { label: h, children: /* @__PURE__ */ G(ze.Label, { children: [
|
|
9029
9036
|
w,
|
|
9030
9037
|
h
|
|
9031
|
-
] }) }) : /* @__PURE__ */ G(
|
|
9038
|
+
] }) }) : /* @__PURE__ */ G(ze.Label, { children: [
|
|
9032
9039
|
w,
|
|
9033
9040
|
h
|
|
9034
9041
|
] });
|
|
9035
9042
|
return /* @__PURE__ */ p(Te, { loading: _, asChild: !0, children: /* @__PURE__ */ G(
|
|
9036
|
-
|
|
9043
|
+
ze.Root,
|
|
9037
9044
|
{
|
|
9038
9045
|
ref: r,
|
|
9039
9046
|
...S && { "data-selected": !0 },
|
|
9040
9047
|
...m,
|
|
9041
9048
|
children: [
|
|
9042
|
-
n && /* @__PURE__ */ p(
|
|
9049
|
+
n && /* @__PURE__ */ p(ze.StartElement, { _empty: { display: "none" }, children: n }),
|
|
9043
9050
|
L,
|
|
9044
|
-
o && /* @__PURE__ */ p(
|
|
9045
|
-
d && /* @__PURE__ */ p(
|
|
9051
|
+
o && /* @__PURE__ */ p(ze.EndElement, { ...i, children: o }),
|
|
9052
|
+
d && /* @__PURE__ */ p(ze.EndElement, { children: /* @__PURE__ */ p(ze.CloseTrigger, { onClick: a, asChild: !0, children: /* @__PURE__ */ p(Le, {}) }) })
|
|
9046
9053
|
]
|
|
9047
9054
|
}
|
|
9048
9055
|
) });
|
|
@@ -9322,7 +9329,7 @@ function Sa(e) {
|
|
|
9322
9329
|
return H;
|
|
9323
9330
|
};
|
|
9324
9331
|
}();
|
|
9325
|
-
function
|
|
9332
|
+
function z(l, c, f, b) {
|
|
9326
9333
|
var u, v, E, y, x;
|
|
9327
9334
|
if (f == null ? f = a : se(f, 0, 8), !l.c) return l.toString();
|
|
9328
9335
|
if (u = l.c[0], E = l.e, c == null)
|
|
@@ -9584,9 +9591,9 @@ function Sa(e) {
|
|
|
9584
9591
|
}
|
|
9585
9592
|
return M(f, f.e + s + 1, a, l);
|
|
9586
9593
|
}, o.toExponential = function(l, c) {
|
|
9587
|
-
return l != null && (se(l, 0, me), l++),
|
|
9594
|
+
return l != null && (se(l, 0, me), l++), z(this, l, c, 1);
|
|
9588
9595
|
}, o.toFixed = function(l, c) {
|
|
9589
|
-
return l != null && (se(l, 0, me), l = l + this.e + 1),
|
|
9596
|
+
return l != null && (se(l, 0, me), l = l + this.e + 1), z(this, l, c);
|
|
9590
9597
|
}, o.toFormat = function(l, c, f) {
|
|
9591
9598
|
var b, u = this;
|
|
9592
9599
|
if (f == null)
|
|
@@ -9618,7 +9625,7 @@ function Sa(e) {
|
|
|
9618
9625
|
}, o.toNumber = function() {
|
|
9619
9626
|
return +W(this);
|
|
9620
9627
|
}, o.toPrecision = function(l, c) {
|
|
9621
|
-
return l != null && se(l, 1, me),
|
|
9628
|
+
return l != null && se(l, 1, me), z(this, l, c, 2);
|
|
9622
9629
|
}, o.toString = function(l) {
|
|
9623
9630
|
var c, f = this, b = f.s, u = f.e;
|
|
9624
9631
|
return u === null ? b ? (c = "Infinity", b < 0 && (c = "-" + c)) : c = "NaN" : (l == null ? c = u <= d || u >= h ? It(_e(f.c), u) : ke(_e(f.c), u, "0") : l === 10 && P ? (f = M(new C(f), s + u + 1, a), c = ke(_e(f.c), f.e, "0")) : (se(l, 2, T.length, "Base"), c = r(ke(_e(f.c), u, "0"), 10, l, b, !0)), b < 0 && f.c[0] && (c = "-" + c)), c;
|
|
@@ -9722,19 +9729,19 @@ function yf(e = 100) {
|
|
|
9722
9729
|
};
|
|
9723
9730
|
}, [e]), t;
|
|
9724
9731
|
}
|
|
9725
|
-
const Cf =
|
|
9732
|
+
const Cf = B.createContext(null);
|
|
9726
9733
|
function xf() {
|
|
9727
|
-
const e =
|
|
9734
|
+
const e = B.useContext(Cf);
|
|
9728
9735
|
if (e === void 0)
|
|
9729
9736
|
throw new Error("useScrollDirection must be used within a ScrollDirectionProvider");
|
|
9730
9737
|
return e;
|
|
9731
9738
|
}
|
|
9732
9739
|
function Tf(e, t = 0, r = !0) {
|
|
9733
|
-
const [n, o] =
|
|
9740
|
+
const [n, o] = B.useState(!1), i = B.useCallback(() => {
|
|
9734
9741
|
var s;
|
|
9735
9742
|
Number((s = e.current) == null ? void 0 : s.getBoundingClientRect().y) < t ? o(!0) : o(!1);
|
|
9736
9743
|
}, [e, t]);
|
|
9737
|
-
return
|
|
9744
|
+
return B.useEffect(() => {
|
|
9738
9745
|
if (!r)
|
|
9739
9746
|
return;
|
|
9740
9747
|
const s = Zi(i, 300);
|
|
@@ -9791,33 +9798,33 @@ const wf = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 18 4",
|
|
|
9791
9798
|
}
|
|
9792
9799
|
) }, s);
|
|
9793
9800
|
}) }) })
|
|
9794
|
-
] }), If =
|
|
9801
|
+
] }), If = B.memo(B.forwardRef(Af));
|
|
9795
9802
|
function Of(e, t) {
|
|
9796
|
-
const [r, n] =
|
|
9803
|
+
const [r, n] = B.useState(t ? e.length : void 0), [o, i] = B.useState([]), s = B.useRef(null), a = B.useRef(null), d = B.useRef(null), h = B.useCallback(() => {
|
|
9797
9804
|
var T, P, C;
|
|
9798
|
-
const g = (T = s.current) == null ? void 0 : T.getBoundingClientRect().width, _ = ((P = a.current) == null ? void 0 : P.getBoundingClientRect().width) || 0, S = ((C = d.current) == null ? void 0 : C.getBoundingClientRect().width) || 0, m = o.map((
|
|
9805
|
+
const g = (T = s.current) == null ? void 0 : T.getBoundingClientRect().width, _ = ((P = a.current) == null ? void 0 : P.getBoundingClientRect().width) || 0, S = ((C = d.current) == null ? void 0 : C.getBoundingClientRect().width) || 0, m = o.map((z) => {
|
|
9799
9806
|
var F;
|
|
9800
|
-
return (F =
|
|
9807
|
+
return (F = z.current) == null ? void 0 : F.getBoundingClientRect().width;
|
|
9801
9808
|
}), w = m[m.length - 1];
|
|
9802
9809
|
if (!g || !w)
|
|
9803
9810
|
return e.length;
|
|
9804
|
-
const { visibleNum: L } = m.slice(0, -1).reduce((
|
|
9805
|
-
if (!F ||
|
|
9806
|
-
return
|
|
9811
|
+
const { visibleNum: L } = m.slice(0, -1).reduce((z, F, N, M) => {
|
|
9812
|
+
if (!F || z.visibleNum < N)
|
|
9813
|
+
return z;
|
|
9807
9814
|
if (N === M.length - 1) {
|
|
9808
|
-
if (
|
|
9809
|
-
return { visibleNum:
|
|
9810
|
-
} else if (
|
|
9811
|
-
return { visibleNum:
|
|
9812
|
-
return
|
|
9815
|
+
if (z.accWidth + F < g - _ - S)
|
|
9816
|
+
return { visibleNum: z.visibleNum + 1, accWidth: z.accWidth + F };
|
|
9817
|
+
} else if (z.accWidth + F + w < g - _ - S)
|
|
9818
|
+
return { visibleNum: z.visibleNum + 1, accWidth: z.accWidth + F };
|
|
9819
|
+
return z;
|
|
9813
9820
|
}, { visibleNum: 0, accWidth: 0 });
|
|
9814
9821
|
return L;
|
|
9815
9822
|
}, [e.length, o]);
|
|
9816
|
-
return
|
|
9817
|
-
i(e.map((g, _) => o[_] ||
|
|
9818
|
-
}, [t]),
|
|
9823
|
+
return B.useEffect(() => {
|
|
9824
|
+
i(e.map((g, _) => o[_] || B.createRef())), n(t ? e.length : void 0);
|
|
9825
|
+
}, [t]), B.useEffect(() => {
|
|
9819
9826
|
o.length > 0 && !t && n(h());
|
|
9820
|
-
}, [h, t, o]),
|
|
9827
|
+
}, [h, t, o]), B.useMemo(() => ({
|
|
9821
9828
|
tabsCut: r,
|
|
9822
9829
|
tabsRefs: o,
|
|
9823
9830
|
listRef: s,
|
|
@@ -9826,7 +9833,7 @@ function Of(e, t) {
|
|
|
9826
9833
|
}), [r, o]);
|
|
9827
9834
|
}
|
|
9828
9835
|
function kf({ activeTabIndex: e, tabsRefs: t, listRef: r, isMobile: n, isLoading: o }) {
|
|
9829
|
-
|
|
9836
|
+
B.useEffect(() => {
|
|
9830
9837
|
o || e < t.length && n && window.setTimeout(() => {
|
|
9831
9838
|
const i = t[e];
|
|
9832
9839
|
if (i.current && r.current) {
|
|
@@ -9846,12 +9853,12 @@ function kf({ activeTabIndex: e, tabsRefs: t, listRef: r, isMobile: n, isLoading
|
|
|
9846
9853
|
}, 300);
|
|
9847
9854
|
}, [e, n, o]);
|
|
9848
9855
|
}
|
|
9849
|
-
const
|
|
9856
|
+
const Bt = {
|
|
9850
9857
|
position: "absolute",
|
|
9851
9858
|
top: "-9999px",
|
|
9852
9859
|
left: "-9999px",
|
|
9853
9860
|
visibility: "hidden"
|
|
9854
|
-
}, Rf = (e, t, r) => t === void 0 || r ?
|
|
9861
|
+
}, Rf = (e, t, r) => t === void 0 || r ? Bt : e < t ? {} : Bt, Pf = (e, t, r) => t === void 0 || r || t >= e ? Bt : {}, Lf = (e) => {
|
|
9855
9862
|
const {
|
|
9856
9863
|
tabs: t,
|
|
9857
9864
|
activeTab: r,
|
|
@@ -9863,7 +9870,7 @@ const zt = {
|
|
|
9863
9870
|
stickyEnabled: d,
|
|
9864
9871
|
isLoading: h,
|
|
9865
9872
|
variant: g
|
|
9866
|
-
} = e, _ = xf(), S = Rr(), m =
|
|
9873
|
+
} = e, _ = xf(), S = Rr(), m = B.useMemo(() => [...t, Sf], [t]), { tabsCut: w, tabsRefs: L, listRef: T, rightSlotRef: P, leftSlotRef: C } = Of(m, h || S), z = Tf(T, 5, d), F = m.findIndex((M) => Re(M) === r) ?? 0;
|
|
9867
9874
|
if (kf({ activeTabIndex: F, listRef: T, tabsRefs: L, isMobile: S, isLoading: h }), t.length === 1 && !s && !o)
|
|
9868
9875
|
return null;
|
|
9869
9876
|
const N = !h && w !== void 0;
|
|
@@ -9897,11 +9904,11 @@ const zt = {
|
|
|
9897
9904
|
},
|
|
9898
9905
|
...e.stickyEnabled ? {
|
|
9899
9906
|
position: "sticky",
|
|
9900
|
-
boxShadow: { base:
|
|
9907
|
+
boxShadow: { base: z ? "md" : "none", lg: "none" },
|
|
9901
9908
|
top: { base: _ === "down" ? "0px" : "106px", lg: 0 },
|
|
9902
9909
|
zIndex: { base: "sticky2", lg: "docked" }
|
|
9903
9910
|
} : {},
|
|
9904
|
-
...typeof n == "function" ? n({ isSticky:
|
|
9911
|
+
...typeof n == "function" ? n({ isSticky: z, activeTab: r }) : n,
|
|
9905
9912
|
children: [
|
|
9906
9913
|
s && /* @__PURE__ */ p(
|
|
9907
9914
|
je,
|
|
@@ -9969,7 +9976,7 @@ const zt = {
|
|
|
9969
9976
|
]
|
|
9970
9977
|
}
|
|
9971
9978
|
);
|
|
9972
|
-
}, Nf =
|
|
9979
|
+
}, Nf = B.memo(Lf), Df = (e) => {
|
|
9973
9980
|
const {
|
|
9974
9981
|
tabs: t,
|
|
9975
9982
|
onValueChange: r,
|
|
@@ -9984,10 +9991,10 @@ const zt = {
|
|
|
9984
9991
|
size: _,
|
|
9985
9992
|
variant: S,
|
|
9986
9993
|
...m
|
|
9987
|
-
} = e, [w, L] =
|
|
9994
|
+
} = e, [w, L] = B.useState(n || Re(t[0])), T = B.useCallback(({ value: C }) => {
|
|
9988
9995
|
o || (r ? r({ value: C }) : L(C));
|
|
9989
9996
|
}, [o, r]), P = yf();
|
|
9990
|
-
return
|
|
9997
|
+
return B.useEffect(() => {
|
|
9991
9998
|
n && L(n);
|
|
9992
9999
|
}, [n]), /* @__PURE__ */ G(
|
|
9993
10000
|
sf,
|
|
@@ -10016,28 +10023,28 @@ const zt = {
|
|
|
10016
10023
|
o + "_" + P.width + "_" + t.map((C) => C.id).join(":")
|
|
10017
10024
|
),
|
|
10018
10025
|
t.map((C) => {
|
|
10019
|
-
const
|
|
10020
|
-
return /* @__PURE__ */ p(uf, { padding: 0, value:
|
|
10026
|
+
const z = Re(C);
|
|
10027
|
+
return /* @__PURE__ */ p(uf, { padding: 0, value: z, children: C.component }, z);
|
|
10021
10028
|
})
|
|
10022
10029
|
]
|
|
10023
10030
|
}
|
|
10024
10031
|
);
|
|
10025
|
-
}, Pa =
|
|
10032
|
+
}, Pa = B.memo(Df), Kp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10026
10033
|
__proto__: null,
|
|
10027
10034
|
default: Pa
|
|
10028
10035
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10029
10036
|
function La(e) {
|
|
10030
10037
|
return typeof e == "string" ? e : void 0;
|
|
10031
10038
|
}
|
|
10032
|
-
function
|
|
10039
|
+
function Bf(e) {
|
|
10033
10040
|
return typeof e == "number" ? e : void 0;
|
|
10034
10041
|
}
|
|
10035
10042
|
const Zp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10036
10043
|
__proto__: null,
|
|
10037
|
-
castToNumber:
|
|
10044
|
+
castToNumber: Bf,
|
|
10038
10045
|
castToString: La
|
|
10039
10046
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
10040
|
-
function
|
|
10047
|
+
function zf(e) {
|
|
10041
10048
|
const t = Wi(), r = La(t.query.tab);
|
|
10042
10049
|
if (r)
|
|
10043
10050
|
return e.find((n) => {
|
|
@@ -10046,7 +10053,7 @@ function Bf(e) {
|
|
|
10046
10053
|
});
|
|
10047
10054
|
}
|
|
10048
10055
|
const Uf = (e) => {
|
|
10049
|
-
const { tabs: t, onValueChange: r, preservedParams: n, ...o } = e, i = Wi(), s =
|
|
10056
|
+
const { tabs: t, onValueChange: r, preservedParams: n, ...o } = e, i = Wi(), s = zf(e.tabs), a = B.useRef(null), d = B.useCallback(({ value: h }) => {
|
|
10050
10057
|
if (!t.find((S) => Re(S) === h))
|
|
10051
10058
|
return;
|
|
10052
10059
|
const _ = Ol(i.query, (S, m) => n != null && n.includes(String(m)) ? !0 : i.pathname.includes(`[${m}]`));
|
|
@@ -10056,7 +10063,7 @@ const Uf = (e) => {
|
|
|
10056
10063
|
{ shallow: !0 }
|
|
10057
10064
|
), r == null || r({ value: h });
|
|
10058
10065
|
}, [t, i, r, n]);
|
|
10059
|
-
return
|
|
10066
|
+
return B.useEffect(() => {
|
|
10060
10067
|
var h;
|
|
10061
10068
|
i.query.scroll_to_tabs && ((h = a == null ? void 0 : a.current) == null || h.scrollIntoView(!0), delete i.query.scroll_to_tabs, i.push(
|
|
10062
10069
|
{
|
|
@@ -10075,7 +10082,7 @@ const Uf = (e) => {
|
|
|
10075
10082
|
defaultValue: Re(s || t[0])
|
|
10076
10083
|
}
|
|
10077
10084
|
);
|
|
10078
|
-
}, Qp =
|
|
10085
|
+
}, Qp = B.memo(Uf), Ff = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.034 3H6.965C4.587 3 3 4.703 3 7.141v5.718C3 15.299 4.583 17 6.965 17h6.068C15.416 17 17 15.3 17 12.859V7.14C17 4.701 15.416 3 13.034 3ZM6.965 4.05h6.069c1.785 0 2.916 1.214 2.916 3.091v5.718c0 1.877-1.13 3.091-2.917 3.091H6.966c-1.786 0-2.916-1.214-2.916-3.091V7.14c0-1.874 1.134-3.091 2.915-3.091ZM10 6.818a.525.525 0 0 1 .072 1.045l-.079.005a.525.525 0 0 1-.07-1.045L10 6.818Zm-.007 2.221c.266 0 .486.198.52.454l.005.071v3.093a.525.525 0 0 1-1.045.072l-.005-.072V9.564c0-.29.235-.525.525-.525Z", fill: "currentColor" })), Mf = B.memo(({ label: e, tooltipProps: t, isLoading: r, boxSize: n = 5, ...o }) => /* @__PURE__ */ p(
|
|
10079
10086
|
Pr,
|
|
10080
10087
|
{
|
|
10081
10088
|
content: e,
|
|
@@ -10094,7 +10101,7 @@ const Uf = (e) => {
|
|
|
10094
10101
|
}
|
|
10095
10102
|
)
|
|
10096
10103
|
}
|
|
10097
|
-
)), Jp = We(({ message: e, className: t }) => /* @__PURE__ */ p(je, { className: t, color: "text.error", textStyle: "sm", mt: 2, wordBreak: "break-word", children: e })), eh = We(
|
|
10104
|
+
)), Jp = We(({ message: e, className: t }) => /* @__PURE__ */ p(je, { className: t, color: "text.error", textStyle: "sm", mt: 2, wordBreak: "break-word", children: e })), eh = We(B.memo(({
|
|
10098
10105
|
src: e,
|
|
10099
10106
|
isInvalid: t,
|
|
10100
10107
|
onError: r,
|
|
@@ -10105,7 +10112,7 @@ const Uf = (e) => {
|
|
|
10105
10112
|
}) => {
|
|
10106
10113
|
const a = /* @__PURE__ */ p(Te, { loading: !0, className: [o, s === "dark" ? "dark" : void 0].filter(Boolean).join(" "), w: "100%", h: "100%" });
|
|
10107
10114
|
return /* @__PURE__ */ p(
|
|
10108
|
-
|
|
10115
|
+
zu,
|
|
10109
10116
|
{
|
|
10110
10117
|
className: o,
|
|
10111
10118
|
src: e,
|
|
@@ -10123,18 +10130,18 @@ function th({
|
|
|
10123
10130
|
name: e,
|
|
10124
10131
|
isRequired: t
|
|
10125
10132
|
}) {
|
|
10126
|
-
const { trigger: r, formState: n, control: o } = Pe(), i =
|
|
10133
|
+
const { trigger: r, formState: n, control: o } = Pe(), i = B.useRef(!1), s = sl({ name: e, control: o, exact: !0 }), a = n.errors[e], [d, h] = B.useState(s), g = B.useCallback(() => i.current ? "Unable to load image" : !0, []), _ = B.useCallback(() => {
|
|
10127
10134
|
i.current = !1, r(e);
|
|
10128
|
-
}, [e, r]), S =
|
|
10135
|
+
}, [e, r]), S = B.useCallback(() => {
|
|
10129
10136
|
i.current = !0, r(e);
|
|
10130
|
-
}, [e, r]), m =
|
|
10137
|
+
}, [e, r]), m = B.useCallback(() => {
|
|
10131
10138
|
if (!t && !s) {
|
|
10132
10139
|
i.current = !1, r(e), h(void 0);
|
|
10133
10140
|
return;
|
|
10134
10141
|
}
|
|
10135
10142
|
Or(s) === !0 && h(s);
|
|
10136
10143
|
}, [s, t, e, r]);
|
|
10137
|
-
return
|
|
10144
|
+
return B.useMemo(() => ({
|
|
10138
10145
|
input: {
|
|
10139
10146
|
isRequired: t,
|
|
10140
10147
|
rules: {
|
|
@@ -10179,7 +10186,7 @@ const Wf = ({
|
|
|
10179
10186
|
name: e,
|
|
10180
10187
|
rules: { ...r, required: _.required },
|
|
10181
10188
|
...g
|
|
10182
|
-
}),
|
|
10189
|
+
}), z = B.useCallback(() => {
|
|
10183
10190
|
T.onBlur(), n == null || n();
|
|
10184
10191
|
}, [T, n]), F = s === "Textarea" ? /* @__PURE__ */ p(
|
|
10185
10192
|
df,
|
|
@@ -10188,7 +10195,7 @@ const Wf = ({
|
|
|
10188
10195
|
autoComplete: "off",
|
|
10189
10196
|
flexGrow: 1,
|
|
10190
10197
|
...i,
|
|
10191
|
-
onBlur:
|
|
10198
|
+
onBlur: z
|
|
10192
10199
|
}
|
|
10193
10200
|
) : /* @__PURE__ */ p(
|
|
10194
10201
|
Gt,
|
|
@@ -10197,7 +10204,7 @@ const Wf = ({
|
|
|
10197
10204
|
autoComplete: "off",
|
|
10198
10205
|
placeholder: w ? void 0 : t,
|
|
10199
10206
|
...i,
|
|
10200
|
-
onBlur:
|
|
10207
|
+
onBlur: z
|
|
10201
10208
|
}
|
|
10202
10209
|
), N = o ? /* @__PURE__ */ p(
|
|
10203
10210
|
Vt,
|
|
@@ -10220,8 +10227,8 @@ const Wf = ({
|
|
|
10220
10227
|
children: N
|
|
10221
10228
|
}
|
|
10222
10229
|
);
|
|
10223
|
-
}, Zt =
|
|
10224
|
-
const t =
|
|
10230
|
+
}, Zt = B.memo(Wf), $f = (e) => {
|
|
10231
|
+
const t = B.useMemo(
|
|
10225
10232
|
() => {
|
|
10226
10233
|
var r;
|
|
10227
10234
|
return {
|
|
@@ -10242,7 +10249,7 @@ const Wf = ({
|
|
|
10242
10249
|
rules: t
|
|
10243
10250
|
}
|
|
10244
10251
|
);
|
|
10245
|
-
}, nh =
|
|
10252
|
+
}, nh = B.memo($f), Xf = ({
|
|
10246
10253
|
name: e,
|
|
10247
10254
|
label: t,
|
|
10248
10255
|
rules: r,
|
|
@@ -10256,7 +10263,7 @@ const Wf = ({
|
|
|
10256
10263
|
name: e,
|
|
10257
10264
|
rules: r,
|
|
10258
10265
|
...i
|
|
10259
|
-
}), g = h.isSubmitting, _ =
|
|
10266
|
+
}), g = h.isSubmitting, _ = B.useCallback(({ checked: S }) => {
|
|
10260
10267
|
d.onChange(S), n == null || n();
|
|
10261
10268
|
}, [d, n]);
|
|
10262
10269
|
return /* @__PURE__ */ p(
|
|
@@ -10271,13 +10278,13 @@ const Wf = ({
|
|
|
10271
10278
|
children: t
|
|
10272
10279
|
}
|
|
10273
10280
|
);
|
|
10274
|
-
}, oh =
|
|
10281
|
+
}, oh = B.memo(Xf), Vf = (e) => {
|
|
10275
10282
|
const { name: t, options: r, disabled: n, controllerProps: o, itemProps: i, rules: s, onChange: a, ...d } = e, { control: h } = Pe(), { field: g, formState: _ } = De({
|
|
10276
10283
|
control: h,
|
|
10277
10284
|
name: t,
|
|
10278
10285
|
rules: s,
|
|
10279
10286
|
...o
|
|
10280
|
-
}), S =
|
|
10287
|
+
}), S = B.useCallback((m) => {
|
|
10281
10288
|
g.onChange(m), a == null || a();
|
|
10282
10289
|
}, [g, a]);
|
|
10283
10290
|
return /* @__PURE__ */ p(
|
|
@@ -10292,7 +10299,7 @@ const Wf = ({
|
|
|
10292
10299
|
children: r.map(({ value: m, label: w }) => /* @__PURE__ */ p(ua, { value: m, ...i, children: w }, m))
|
|
10293
10300
|
}
|
|
10294
10301
|
);
|
|
10295
|
-
}, ih =
|
|
10302
|
+
}, ih = B.memo(Vf), Gf = /^#[a-f\d]{3,6}$/i, Ho = (e) => typeof e != "string" || !e || e.length === 0 ? !0 : e.length !== 4 && e.length !== 7 ? "Invalid length" : Gf.test(e) ? !0 : "Invalid hex code", qf = ({
|
|
10296
10303
|
name: e,
|
|
10297
10304
|
placeholder: t,
|
|
10298
10305
|
rules: r,
|
|
@@ -10315,16 +10322,16 @@ const Wf = ({
|
|
|
10315
10322
|
maxLength: 7
|
|
10316
10323
|
},
|
|
10317
10324
|
...h
|
|
10318
|
-
}), [L, T] =
|
|
10325
|
+
}), [L, T] = B.useState(""), P = B.useCallback((F) => {
|
|
10319
10326
|
const N = (() => {
|
|
10320
10327
|
const M = F.target.value;
|
|
10321
10328
|
return M && M.length === 1 && M[0] !== "#" ? `#${M}` : M;
|
|
10322
10329
|
})();
|
|
10323
10330
|
T(N), S.onChange(N);
|
|
10324
|
-
}, [S]), C =
|
|
10331
|
+
}, [S]), C = B.useCallback(() => {
|
|
10325
10332
|
S.onBlur(), n == null || n();
|
|
10326
|
-
}, [S, n]),
|
|
10327
|
-
|
|
10333
|
+
}, [S, n]), z = /* @__PURE__ */ p(
|
|
10334
|
+
zi,
|
|
10328
10335
|
{
|
|
10329
10336
|
size: "30px",
|
|
10330
10337
|
bgColor: S.value && Ho(S.value) === !0 ? S.value : d,
|
|
@@ -10347,7 +10354,7 @@ const Wf = ({
|
|
|
10347
10354
|
Vt,
|
|
10348
10355
|
{
|
|
10349
10356
|
...o,
|
|
10350
|
-
endElement:
|
|
10357
|
+
endElement: z,
|
|
10351
10358
|
children: /* @__PURE__ */ p(
|
|
10352
10359
|
Gt,
|
|
10353
10360
|
{
|
|
@@ -10363,8 +10370,8 @@ const Wf = ({
|
|
|
10363
10370
|
)
|
|
10364
10371
|
}
|
|
10365
10372
|
);
|
|
10366
|
-
}, ah =
|
|
10367
|
-
const t =
|
|
10373
|
+
}, ah = B.memo(qf), Na = /^[\w.%+-]+@[a-z\d-]+(?:\.[a-z\d-]+)+$/i, lh = (e) => Na.test(e) ? !0 : "Invalid email", Yf = (e) => {
|
|
10374
|
+
const t = B.useMemo(
|
|
10368
10375
|
() => ({
|
|
10369
10376
|
...e.rules,
|
|
10370
10377
|
pattern: Na
|
|
@@ -10379,7 +10386,7 @@ const Wf = ({
|
|
|
10379
10386
|
rules: t
|
|
10380
10387
|
}
|
|
10381
10388
|
);
|
|
10382
|
-
}, sh =
|
|
10389
|
+
}, sh = B.memo(Yf), Kf = ({ inputProps: e, ...t }) => /* @__PURE__ */ p(Zt, { ...t, inputProps: { type: "number", ...e } }), ch = B.memo(Kf), Zf = ({
|
|
10383
10390
|
name: e,
|
|
10384
10391
|
options: t,
|
|
10385
10392
|
itemProps: r,
|
|
@@ -10392,7 +10399,7 @@ const Wf = ({
|
|
|
10392
10399
|
control: a,
|
|
10393
10400
|
name: e,
|
|
10394
10401
|
...i
|
|
10395
|
-
}), g =
|
|
10402
|
+
}), g = B.useCallback(
|
|
10396
10403
|
({ value: _ }) => {
|
|
10397
10404
|
d.onChange(_), n == null || n({ value: _ });
|
|
10398
10405
|
},
|
|
@@ -10419,15 +10426,15 @@ const Wf = ({
|
|
|
10419
10426
|
))
|
|
10420
10427
|
}
|
|
10421
10428
|
);
|
|
10422
|
-
}, uh =
|
|
10429
|
+
}, uh = B.memo(Zf), Qf = (e) => {
|
|
10423
10430
|
const { name: t, rules: r, size: n = "lg", controllerProps: o, ...i } = e, { control: s } = Pe(), { field: a, fieldState: d, formState: h } = De({
|
|
10424
10431
|
control: s,
|
|
10425
10432
|
name: t,
|
|
10426
10433
|
rules: r,
|
|
10427
10434
|
...o
|
|
10428
|
-
}), g = h.isSubmitting, _ =
|
|
10435
|
+
}), g = h.isSubmitting, _ = B.useCallback(({ value: m }) => {
|
|
10429
10436
|
a.onChange(m);
|
|
10430
|
-
}, [a]), S =
|
|
10437
|
+
}, [a]), S = B.useCallback(() => {
|
|
10431
10438
|
a.onBlur();
|
|
10432
10439
|
}, [a]);
|
|
10433
10440
|
return /* @__PURE__ */ p(
|
|
@@ -10447,15 +10454,15 @@ const Wf = ({
|
|
|
10447
10454
|
...i
|
|
10448
10455
|
}
|
|
10449
10456
|
);
|
|
10450
|
-
}, dh =
|
|
10457
|
+
}, dh = B.memo(Qf), Jf = (e) => {
|
|
10451
10458
|
const { name: t, rules: r, size: n = "lg", controllerProps: o, ...i } = e, { control: s } = Pe(), { field: a, fieldState: d, formState: h } = De({
|
|
10452
10459
|
control: s,
|
|
10453
10460
|
name: t,
|
|
10454
10461
|
rules: r,
|
|
10455
10462
|
...o
|
|
10456
|
-
}), g = h.isSubmitting, _ =
|
|
10463
|
+
}), g = h.isSubmitting, _ = B.useCallback(({ value: m }) => {
|
|
10457
10464
|
a.onChange(m);
|
|
10458
|
-
}, [a]), S =
|
|
10465
|
+
}, [a]), S = B.useCallback(() => {
|
|
10459
10466
|
a.onBlur();
|
|
10460
10467
|
}, [a]);
|
|
10461
10468
|
return /* @__PURE__ */ p(
|
|
@@ -10475,7 +10482,7 @@ const Wf = ({
|
|
|
10475
10482
|
...i
|
|
10476
10483
|
}
|
|
10477
10484
|
);
|
|
10478
|
-
}, fh =
|
|
10485
|
+
}, fh = B.memo(Jf), e0 = ({
|
|
10479
10486
|
name: e,
|
|
10480
10487
|
placeholder: t,
|
|
10481
10488
|
onCheckedChange: r,
|
|
@@ -10489,7 +10496,7 @@ const Wf = ({
|
|
|
10489
10496
|
name: e,
|
|
10490
10497
|
rules: n,
|
|
10491
10498
|
...o
|
|
10492
|
-
}), g =
|
|
10499
|
+
}), g = B.useCallback(
|
|
10493
10500
|
({ checked: _ }) => {
|
|
10494
10501
|
d.onChange(_), r == null || r({ checked: _ });
|
|
10495
10502
|
},
|
|
@@ -10507,8 +10514,8 @@ const Wf = ({
|
|
|
10507
10514
|
children: t
|
|
10508
10515
|
}
|
|
10509
10516
|
);
|
|
10510
|
-
}, ph =
|
|
10511
|
-
const t =
|
|
10517
|
+
}, ph = B.memo(e0), t0 = (e) => {
|
|
10518
|
+
const t = B.useMemo(
|
|
10512
10519
|
() => {
|
|
10513
10520
|
var r;
|
|
10514
10521
|
return {
|
|
@@ -10522,7 +10529,7 @@ const Wf = ({
|
|
|
10522
10529
|
[e.rules]
|
|
10523
10530
|
);
|
|
10524
10531
|
return /* @__PURE__ */ p(Zt, { ...e, rules: t });
|
|
10525
|
-
}, hh =
|
|
10532
|
+
}, hh = B.memo(t0);
|
|
10526
10533
|
async function r0(e) {
|
|
10527
10534
|
const t = [], r = [];
|
|
10528
10535
|
for (let n = 0; n < e.length; n++) {
|
|
@@ -10564,18 +10571,18 @@ function o0(e, t) {
|
|
|
10564
10571
|
});
|
|
10565
10572
|
}
|
|
10566
10573
|
const gh = We(({ onDrop: e, children: t, className: r, isDisabled: n, fullFilePath: o, isInvalid: i }) => {
|
|
10567
|
-
const [s, a] =
|
|
10574
|
+
const [s, a] = B.useState(!1), d = B.useCallback(async (m) => {
|
|
10568
10575
|
if (m.preventDefault(), n)
|
|
10569
10576
|
return;
|
|
10570
10577
|
const w = await r0(m.dataTransfer.items), L = await Promise.all(w.map((T) => o0(T, o)));
|
|
10571
10578
|
e(L), a(!1);
|
|
10572
|
-
}, [n, e, o]), h =
|
|
10579
|
+
}, [n, e, o]), h = B.useCallback((m) => {
|
|
10573
10580
|
m.preventDefault();
|
|
10574
|
-
}, []), g =
|
|
10581
|
+
}, []), g = B.useCallback((m) => {
|
|
10575
10582
|
m.preventDefault(), a(!0);
|
|
10576
|
-
}, []), _ =
|
|
10583
|
+
}, []), _ = B.useCallback((m) => {
|
|
10577
10584
|
m.preventDefault(), a(!1);
|
|
10578
|
-
}, []), S =
|
|
10585
|
+
}, []), S = B.useCallback((m) => {
|
|
10579
10586
|
n && (m.preventDefault(), m.stopPropagation());
|
|
10580
10587
|
}, [n]);
|
|
10581
10588
|
return /* @__PURE__ */ p(
|
|
@@ -10606,32 +10613,32 @@ const gh = We(({ onDrop: e, children: t, className: r, isDisabled: n, fullFilePa
|
|
|
10606
10613
|
);
|
|
10607
10614
|
}), i0 = ({ children: e, accept: t, multiple: r, field: n }) => {
|
|
10608
10615
|
var _;
|
|
10609
|
-
const o =
|
|
10610
|
-
|
|
10616
|
+
const o = B.useRef(null);
|
|
10617
|
+
B.useEffect(() => {
|
|
10611
10618
|
var S, m;
|
|
10612
10619
|
!r && ((S = n.value) == null ? void 0 : S.length) === 0 && ((m = o.current) != null && m.value) && (o.current.value = "");
|
|
10613
10620
|
}, [(_ = n.value) == null ? void 0 : _.length, r]);
|
|
10614
|
-
const i =
|
|
10621
|
+
const i = B.useCallback((S) => {
|
|
10615
10622
|
n.onChange([...n.value || [], ...S]);
|
|
10616
|
-
}, [n]), s =
|
|
10623
|
+
}, [n]), s = B.useCallback((S) => {
|
|
10617
10624
|
const m = S.target.files;
|
|
10618
10625
|
if (!m)
|
|
10619
10626
|
return;
|
|
10620
10627
|
const w = Array.from(m);
|
|
10621
10628
|
i(w), n.onBlur();
|
|
10622
|
-
}, [i, n]), a =
|
|
10629
|
+
}, [i, n]), a = B.useCallback(() => {
|
|
10623
10630
|
var S;
|
|
10624
10631
|
(S = o.current) == null || S.click();
|
|
10625
|
-
}, []), d =
|
|
10632
|
+
}, []), d = B.useCallback(() => {
|
|
10626
10633
|
n.onBlur();
|
|
10627
|
-
}, [n]), h =
|
|
10634
|
+
}, [n]), h = B.useMemo(() => ({
|
|
10628
10635
|
onChange: i
|
|
10629
10636
|
}), [i]), g = typeof e == "function" ? e(h) : e;
|
|
10630
10637
|
return /* @__PURE__ */ G(je, { onClick: a, children: [
|
|
10631
10638
|
/* @__PURE__ */ p(ol, { children: /* @__PURE__ */ p(Gt, { type: "file", onChange: s, onBlur: d, ref: o, accept: t, multiple: r, name: n.name }) }),
|
|
10632
10639
|
g
|
|
10633
10640
|
] });
|
|
10634
|
-
}, bh =
|
|
10641
|
+
}, bh = B.memo(i0), a0 = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.156.156v10.844a.467.467 0 0 1-.933 0V3.09A1.089 1.089 0 0 1 6.4 2h7.476a.467.467 0 0 1 .32.137l4.356 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.934 0V7.29h-3.889a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.762l-2.762-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.752 20.137c-.016-.04-.03-.08-.043-.12-.068-.223.123-.42.356-.42h.074c.16 0 .29.123.369.263.045.08.103.147.17.2a.787.787 0 0 0 .256.136.99.99 0 0 0 .326.05.944.944 0 0 0 .421-.085.591.591 0 0 0 .26-.232.69.69 0 0 0 .086-.348.538.538 0 0 0-.036-.22.46.46 0 0 0-.119-.173c-.103-.096-.261-.173-.473-.232l-.63-.172a1.612 1.612 0 0 1-.55-.257 1.142 1.142 0 0 1-.36-.442 1.475 1.475 0 0 1-.125-.63c0-.293.065-.55.194-.768.13-.218.31-.388.538-.508.23-.12.495-.179.794-.179.31 0 .575.06.795.183.221.122.392.287.51.493.051.085.092.174.124.267.075.217-.117.414-.346.414-.194 0-.35-.152-.462-.31a.655.655 0 0 0-.25-.218.817.817 0 0 0-.379-.082c-.22 0-.395.06-.522.183a.559.559 0 0 0-.141.204.654.654 0 0 0-.048.258c0 .145.049.264.147.36a.922.922 0 0 0 .412.21l.634.173c.222.06.415.144.578.254.157.101.29.25.383.43.091.178.137.403.137.674a1.6 1.6 0 0 1-.191.789 1.308 1.308 0 0 1-.55.528c-.24.126-.531.19-.876.19-.26 0-.486-.036-.68-.109a1.375 1.375 0 0 1-.487-.303 1.355 1.355 0 0 1-.296-.45Zm-3.168-.04a1.803 1.803 0 0 1-.045-.17c-.044-.212.136-.39.354-.39h.05c.187 0 .332.157.412.325a.56.56 0 0 0 .197.224.448.448 0 0 0 .267.072c.194 0 .337-.066.43-.198.093-.132.14-.318.14-.56v-2.898a.404.404 0 0 1 .808 0v2.874c0 .53-.122.93-.365 1.209-.242.276-.576.415-1.005.415a1.402 1.402 0 0 1-.58-.113 1.17 1.17 0 0 1-.415-.32 1.428 1.428 0 0 1-.248-.47Zm9.279-1.906v.628c0 .308-.04.565-.12.771-.067.19-.182.352-.328.466a.795.795 0 0 1-.48.151.8.8 0 0 1-.48-.151 1.027 1.027 0 0 1-.326-.466 2.159 2.159 0 0 1-.12-.77v-.629c0-.31.04-.566.12-.77.067-.19.181-.352.326-.466a.787.787 0 0 1 .48-.155c.18 0 .34.052.48.155.146.113.26.275.329.465.08.205.119.461.119.771Zm.82.625v-.617c0-.454-.07-.844-.21-1.17a1.674 1.674 0 0 0-.602-.758c-.258-.176-.57-.265-.935-.265a1.65 1.65 0 0 0-.939.265c-.26.173-.47.437-.601.755-.14.326-.21.717-.21 1.173v.617c0 .45.07.84.21 1.17.14.326.34.577.601.753.263.174.576.26.94.26s.676-.086.935-.26c.261-.176.462-.427.601-.753.14-.33.21-.72.21-1.17ZM16 17.69v2.838a.38.38 0 0 1-.762 0v-4.003a.426.426 0 0 1 .797-.208l1.66 2.97a.02.02 0 0 0 .04-.01v-2.796a.383.383 0 1 1 .765 0v4.006a.422.422 0 0 1-.79.206l-1.661-2.974a.056.056 0 0 0-.049-.028Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.3 })), l0 = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 51 50", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.693 5.058c.498-.57 1.172-.891 1.875-.891h15.91c.351 0 .688.16.937.446l9.28 10.657c.249.285.388.672.388 1.076v24.36c0 .807-.279 1.581-.776 2.152-.498.571-1.172.892-1.875.892H13.568c-.703 0-1.377-.32-1.875-.892-.497-.57-.776-1.345-.776-2.153V7.212c0-.808.28-1.582.776-2.154Zm17.235 2.154h-15.36v33.493h23.864V16.977l-8.504-9.765Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M28.556 5a1.39 1.39 0 0 1 1.389 1.389v8.333h8.333a1.389 1.389 0 0 1 0 2.778h-9.722a1.389 1.389 0 0 1-1.39-1.389V6.39a1.39 1.39 0 0 1 1.39-1.389ZM22.46 25.151a1.326 1.326 0 0 0-1.875 1.875l3.04 3.04-3.04 3.04a1.326 1.326 0 0 0 1.875 1.875l3.04-3.04 3.04 3.04a1.326 1.326 0 0 0 1.875-1.875l-3.04-3.04 3.04-3.04a1.326 1.326 0 0 0-1.875-1.875l-3.04 3.04-3.04-3.04Z", fill: "currentColor" })), s0 = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.155.156v10.844a.467.467 0 0 1-.934 0V3.09A1.089 1.089 0 0 1 6.401 2h7.474a.467.467 0 0 1 .322.137l4.355 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.933 0V7.29h-3.89a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.763l-2.763-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M13.224 18.185v.628c0 .308-.04.565-.12.771-.067.19-.181.352-.328.465a.794.794 0 0 1-.48.152.8.8 0 0 1-.48-.152 1.026 1.026 0 0 1-.326-.465 2.159 2.159 0 0 1-.12-.77v-.629c0-.31.04-.566.12-.77.068-.19.181-.352.327-.466a.788.788 0 0 1 .48-.155c.18 0 .34.052.479.155.146.113.26.275.329.465.08.205.12.461.12.771Zm.82.625v-.617c0-.454-.07-.844-.21-1.17a1.674 1.674 0 0 0-.602-.758c-.258-.176-.57-.265-.935-.265-.363 0-.675.089-.939.265a1.65 1.65 0 0 0-.6.755c-.14.326-.21.717-.21 1.173v.616c0 .452.07.841.21 1.17.139.327.339.578.6.754.264.174.576.26.94.26s.676-.086.935-.26c.262-.176.462-.427.601-.753.14-.33.21-.72.21-1.17Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.22 16.056c.31-.206.671-.306 1.077-.306.406 0 .77.1 1.075.308.306.205.545.51.693.868.155.364.229.788.229 1.267v.616c0 .477-.075.901-.23 1.268v.001a1.923 1.923 0 0 1-.691.862c-.307.207-.67.304-1.076.304-.404 0-.766-.097-1.077-.303h-.001a1.923 1.923 0 0 1-.692-.863c-.156-.367-.23-.793-.23-1.268v-.617c0-.48.074-.905.23-1.27a1.9 1.9 0 0 1 .693-.866Zm1.077.194c-.32 0-.583.078-.8.223a1.403 1.403 0 0 0-.509.642l-.001.004c-.123.287-.19.642-.19 1.074v.616c0 .426.066.781.19 1.073.123.287.294.498.51.643.216.143.479.219.8.219.324 0 .586-.077.797-.219.216-.145.387-.355.51-.643.123-.292.19-.647.19-1.073v-.616c0-.429-.067-.784-.19-1.073v-.002a1.425 1.425 0 0 0-.511-.646h-.001c-.21-.144-.472-.222-.795-.222Zm-.33.898a.78.78 0 0 0-.242.35l-.002.007c-.065.167-.103.39-.103.68v.635c-.006.234.03.466.106.68a.78.78 0 0 0 .24.349c.102.07.215.104.325.102h.011a.55.55 0 0 0 .325-.102.768.768 0 0 0 .242-.349l.002-.006c.066-.168.103-.392.103-.68v-.629c0-.29-.037-.514-.102-.68l-.003-.007a.767.767 0 0 0-.244-.35.535.535 0 0 0-.329-.104h-.005a.537.537 0 0 0-.324.104Zm.332-.604a1.037 1.037 0 0 0-.63.203l-.007.005a1.276 1.276 0 0 0-.406.575 2.39 2.39 0 0 0-.136.858v.625a2.41 2.41 0 0 0 .134.857v.001c.083.23.223.433.408.578l.01.008c.185.13.4.2.624.197.224.004.44-.066.625-.198l.008-.006c.187-.144.328-.346.41-.576.093-.243.135-.532.135-.858v-.628a2.39 2.39 0 0 0-.135-.858 1.265 1.265 0 0 0-.41-.576l-.004-.003a1.034 1.034 0 0 0-.626-.204Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { d: "M17.06 21v-1h1.301a.5.5 0 0 1 .5.5v.5H17.06Zm-.699 0a.5.5 0 0 1-.5-.5v-3.9a.6.6 0 0 1 1.199 0V21h-.699Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.861 21v-.5a.5.5 0 0 0-.5-.5H17.06v-3.4a.6.6 0 0 0-1.199 0v3.9a.5.5 0 0 0 .5.5h2.5Zm-1.701-1.1v-3.3a.7.7 0 0 0-1.399 0v3.9a.6.6 0 0 0 .6.6h2.6v-.6a.6.6 0 0 0-.6-.6H17.16Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { d: "M6.468 17.532c0-.192.067-.316.163-.398.104-.09.286-.166.562-.166.332 0 .655.108.921.307a.484.484 0 0 0 .579-.776A2.516 2.516 0 0 0 7.195 16h-.001c-.45 0-.873.125-1.192.399-.328.28-.502.68-.502 1.133 0 .244.067.464.196.651.124.182.29.309.452.401.29.165.657.262.949.34l.053.013c.339.09.589.163.76.267.135.083.17.15.17.264 0 .25-.086.352-.19.419-.138.089-.372.145-.696.145a1.548 1.548 0 0 1-.92-.307.484.484 0 0 0-.58.776A2.52 2.52 0 0 0 7.192 21h.002c.402 0 .853-.064 1.218-.298.4-.256.636-.677.636-1.234 0-.532-.287-.878-.635-1.09-.31-.189-.699-.292-1.003-.373l-.012-.003c-.344-.091-.597-.16-.772-.26a.39.39 0 0 1-.132-.106c-.013-.018-.026-.045-.026-.104Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" })), c0 = (e) => /* @__PURE__ */ R.createElement("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", ...e }, /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6.4 2.933a.156.156 0 0 0-.155.156v10.844a.467.467 0 0 1-.934 0V3.09A1.089 1.089 0 0 1 6.401 2h7.474a.467.467 0 0 1 .322.137l4.355 4.355a.467.467 0 0 1 .137.33v7.111a.467.467 0 0 1-.933 0V7.29h-3.89a.467.467 0 0 1-.466-.467v-3.89h-7Zm7.933.66v2.763h2.763l-2.763-2.763Z", fill: "currentColor", stroke: "currentColor", strokeWidth: 0.4, strokeLinecap: "round", strokeLinejoin: "round" }), /* @__PURE__ */ R.createElement("path", { d: "M17.06 20h1.301a.5.5 0 0 1 .5.5v.5h-2.5a.5.5 0 0 1-.5-.5v-3.9a.6.6 0 0 1 1.199 0V20Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M18.861 21v-.5a.5.5 0 0 0-.5-.5H17.06v-3.4a.6.6 0 0 0-1.199 0v3.9a.5.5 0 0 0 .5.5h2.5Zm-1.701-1.1v-3.3a.7.7 0 0 0-1.399 0v3.9a.6.6 0 0 0 .6.6h2.6v-.6a.6.6 0 0 0-.6-.6H17.16Z", fill: "currentColor" }), /* @__PURE__ */ R.createElement("path", { d: "M11.18 15.85a.63.63 0 0 1 .63.63v3.131c0 .177.043.291.11.365a.378.378 0 0 0 .29.115c.135-.002.222-.044.282-.113l.002-.002c.067-.074.11-.188.11-.364V16.48a.63.63 0 0 1 1.26 0v3.288h-.007a1.44 1.44 0 0 1-.213.641l-.001.002a1.592 1.592 0 0 1-.592.543l-.002.001a1.74 1.74 0 0 1-.682.189v.006h-.313v-.006a1.788 1.788 0 0 1-.688-.188l-.003-.002a1.592 1.592 0 0 1-.592-.543v-.002a1.44 1.44 0 0 1-.214-.64h-.007v-3.29a.63.63 0 0 1 .63-.629Zm-3.894.435.397 1.229.484-1.3a.558.558 0 0 1 1.046.388l-.983 2.656v1.304a.588.588 0 1 1-1.177 0v-1.304l-.953-2.56a.628.628 0 1 1 1.186-.413Z", fill: "currentColor" })), u0 = {
|
|
10635
10642
|
".json": /* @__PURE__ */ p(a0, {}),
|
|
10636
10643
|
".sol": /* @__PURE__ */ p(s0, {}),
|
|
10637
10644
|
".yul": /* @__PURE__ */ p(c0, {})
|
|
@@ -10641,7 +10648,7 @@ function d0(e) {
|
|
|
10641
10648
|
return t.length === 1 ? "" : "." + t[t.length - 1];
|
|
10642
10649
|
}
|
|
10643
10650
|
const mh = We(({ file: e, className: t, index: r, onRemove: n, isDisabled: o, error: i }) => {
|
|
10644
|
-
const s =
|
|
10651
|
+
const s = B.useCallback((h) => {
|
|
10645
10652
|
h.stopPropagation(), n == null || n(r);
|
|
10646
10653
|
}, [r, n]), a = d0(e.name), d = u0[a] || /* @__PURE__ */ p(l0, {});
|
|
10647
10654
|
return /* @__PURE__ */ G(
|
|
@@ -10686,16 +10693,16 @@ const mh = We(({ file: e, className: t, index: r, onRemove: n, isDisabled: o, er
|
|
|
10686
10693
|
);
|
|
10687
10694
|
}), vh = /^0x[a-fA-F\d]{130}$/, _h = (e) => typeof e != "string" || e === "" ? !0 : e.replace(/\s/g, "") !== "" || "Should contain text", Eh = /^0x[a-fA-F\d]{64}$/, yh = 66;
|
|
10688
10695
|
function Ch(e, t = qt) {
|
|
10689
|
-
const r =
|
|
10696
|
+
const r = B.useRef(null), n = B.useRef(null), [o, i] = B.useState(!1), s = Rr(), [, a] = Bl(), { open: d, onOpenChange: h } = la(), g = B.useCallback(() => {
|
|
10690
10697
|
a(e), i(!0), s && h({ open: !0 }), n.current = window.setTimeout(() => {
|
|
10691
10698
|
h({ open: !1 });
|
|
10692
10699
|
}, t), r.current = window.setTimeout(() => {
|
|
10693
10700
|
i(!1);
|
|
10694
10701
|
}, t + 200);
|
|
10695
10702
|
}, [e, a, t, h, s]);
|
|
10696
|
-
return
|
|
10703
|
+
return B.useEffect(() => () => {
|
|
10697
10704
|
n.current && window.clearTimeout(n.current), r.current && window.clearTimeout(r.current);
|
|
10698
|
-
}, []),
|
|
10705
|
+
}, []), B.useMemo(() => ({
|
|
10699
10706
|
hasCopied: o,
|
|
10700
10707
|
copy: g,
|
|
10701
10708
|
disclosure: {
|
|
@@ -10716,7 +10723,7 @@ export {
|
|
|
10716
10723
|
k0 as Avatar,
|
|
10717
10724
|
R0 as AvatarGroup,
|
|
10718
10725
|
du as BackToButton,
|
|
10719
|
-
|
|
10726
|
+
B0 as Badge,
|
|
10720
10727
|
Sl as Button,
|
|
10721
10728
|
A0 as ButtonGroup,
|
|
10722
10729
|
I0 as ButtonGroupRadio,
|
|
@@ -10773,11 +10780,11 @@ export {
|
|
|
10773
10780
|
cp as Heading,
|
|
10774
10781
|
Mf as Hint,
|
|
10775
10782
|
Ht as IconButton,
|
|
10776
|
-
|
|
10783
|
+
zu as Image,
|
|
10777
10784
|
Gt as Input,
|
|
10778
10785
|
Vt as InputGroup,
|
|
10779
10786
|
Xt as Link,
|
|
10780
|
-
|
|
10787
|
+
z0 as LinkBox,
|
|
10781
10788
|
lu as LinkExternalIcon,
|
|
10782
10789
|
U0 as LinkOverlay,
|
|
10783
10790
|
dp as MenuArrow,
|
|
@@ -10817,11 +10824,11 @@ export {
|
|
|
10817
10824
|
vh as SIGNATURE_REGEXP,
|
|
10818
10825
|
ef as Select,
|
|
10819
10826
|
tf as SelectAsync,
|
|
10820
|
-
|
|
10827
|
+
Bp as SelectClearTrigger,
|
|
10821
10828
|
Ca as SelectContent,
|
|
10822
10829
|
ya as SelectControl,
|
|
10823
10830
|
xa as SelectItem,
|
|
10824
|
-
|
|
10831
|
+
zp as SelectItemGroup,
|
|
10825
10832
|
Fp as SelectItemText,
|
|
10826
10833
|
Up as SelectLabel,
|
|
10827
10834
|
wa as SelectRoot,
|
|
@@ -10871,7 +10878,7 @@ export {
|
|
|
10871
10878
|
Ef as toaster,
|
|
10872
10879
|
Or as urlValidator,
|
|
10873
10880
|
T0 as useAccordion,
|
|
10874
|
-
|
|
10881
|
+
zf as useActiveTabFromQuery,
|
|
10875
10882
|
Ch as useClipboard,
|
|
10876
10883
|
uu as useColorMode,
|
|
10877
10884
|
j0 as useColorModeValue,
|