@blockend/widget 1.0.55-beta.1 → 1.0.55-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AllRoutes-D6S-NFxZ.js → AllRoutes-DIde2MHr.js} +910 -929
- package/dist/{Box-DESo1bHm.js → Box-DQB1ZyEK.js} +15 -15
- package/dist/EstGas-C7sLxEX_.js +1523 -0
- package/dist/{Grow-DzEr7XrA.js → Grow-CxaAxl6-.js} +300 -303
- package/dist/InputComp-CDuJJKaD.js +105 -0
- package/dist/LoadRoute-CVas28CM.js +123 -0
- package/dist/QuotesProgress-DaL4L4Db.js +27 -0
- package/dist/{SwapAsset-MBXcdeBf.js → SwapAsset-DSV6l90O.js} +13 -14
- package/dist/{Tooltip-DSAJT2x7.js → Tooltip-PAQ9gquY.js} +35 -35
- package/dist/TxnButton-BiO4vJ-y.js +207 -0
- package/dist/ccip-B6-4PQvj.js +226 -0
- package/dist/core-SB441dD5.js +13166 -0
- package/dist/{down-BFx-Bg5Q.js → down-DJH_apvy.js} +267 -270
- package/dist/{getChainIds-CeLEUxe0.js → getChainIds-CBclVfs9.js} +221 -223
- package/dist/getCosmosAddress-CI7CTn-0.js +57 -0
- package/dist/{hamburger-BzMrQx9y.js → hamburger-Dp-PI6Yn.js} +153 -153
- package/dist/{index-DpHhW0_2.js → index-5WTwgH9q.js} +3 -3
- package/dist/index-B-FRPlBv.js +3240 -0
- package/dist/index-B158Vaz9.js +146 -0
- package/dist/{index-BK0BZT6j.js → index-B9PIELoY.js} +5118 -5241
- package/dist/{index-DHYWnqST.js → index-BGt3GtoG.js} +1 -1
- package/dist/index-BuGCRLd5.js +198 -0
- package/dist/index-CRhXLwtt.js +7445 -0
- package/dist/{index-A8ClQmZo.js → index-Dmf6i8k4.js} +3 -4
- package/dist/{index-SkYFFVLL.js → index-PxQusjX0.js} +3368 -3415
- package/dist/{index-C5bv1F_u.js → index-UFdEurQ_.js} +12086 -12350
- package/dist/{index.es-DB9y_DEM.js → index.es-AaEds8Wm.js} +81 -83
- package/dist/{index.es-vIyUKt0W.js → index.es-Df0KTgu4.js} +4523 -4628
- package/dist/index.es.js +1 -1
- package/dist/{unsupportedProp-BLzY2-w_.js → unsupportedProp-BlS305Lt.js} +1 -1
- package/dist/{useRegisterError-Cf6oylnR.js → useRegisterError-BvjIv1Yc.js} +1668 -1701
- package/dist/widget.css +1 -1
- package/package.json +4 -5
- package/dist/EstGas-Dy3XfCzY.js +0 -1496
- package/dist/InputComp-GcnDqx_s.js +0 -105
- package/dist/LoadRoute-BmUgvDid.js +0 -125
- package/dist/QuotesProgress-E5JnUMS0.js +0 -28
- package/dist/TxnButton-Br8R19rF.js +0 -215
- package/dist/add-BryKCrpI.js +0 -19
- package/dist/all-wallets-BMVOK2Ci.js +0 -10
- package/dist/app-store-3WurbJdI.js +0 -21
- package/dist/apple-eM872Ubz.js +0 -22
- package/dist/arrow-bottom-HMc73fJ8.js +0 -12
- package/dist/arrow-bottom-circle-B1N_R8Ux.js +0 -15
- package/dist/arrow-left-Q7GAZkD7.js +0 -12
- package/dist/arrow-right-ft3TcIM3.js +0 -12
- package/dist/arrow-top-C2xmF6tK.js +0 -12
- package/dist/bank-Bk-2ZR5E.js +0 -18
- package/dist/basic-CWrKgDAB.js +0 -5783
- package/dist/browser-BFB3TFfv.js +0 -18
- package/dist/card-DCx59si8.js +0 -18
- package/dist/ccip-CXr08uP1.js +0 -228
- package/dist/checkmark-BGsuJuhE.js +0 -15
- package/dist/checkmark-bold-DvjIl-51.js +0 -12
- package/dist/chevron-bottom-DAEnG7QP.js +0 -12
- package/dist/chevron-left-D33h2ppx.js +0 -12
- package/dist/chevron-right-C8Z_feNK.js +0 -12
- package/dist/chevron-top-DwDMd3p9.js +0 -12
- package/dist/chrome-store-B7ZDs2Fj.js +0 -65
- package/dist/clock-DnELUxSR.js +0 -12
- package/dist/close-Dnt29Pss.js +0 -12
- package/dist/coinPlaceholder-C09pzuXv.js +0 -12
- package/dist/compass-D8ZY16nH.js +0 -12
- package/dist/copy-DEh4RBKI.js +0 -19
- package/dist/core-CgIQaiRa.js +0 -14966
- package/dist/cursor-BtzkAOER.js +0 -7
- package/dist/cursor-transparent-B0nCflmb.js +0 -16
- package/dist/desktop-toTG92uH.js +0 -13
- package/dist/disconnect-C97lbAtY.js +0 -12
- package/dist/discord-BNJ3JePY.js +0 -21
- package/dist/etherscan-CK87TQMS.js +0 -10
- package/dist/exclamation-triangle-LWnOk0uz.js +0 -8
- package/dist/extension-5eIZU28A.js +0 -12
- package/dist/external-link-DDlCfigP.js +0 -12
- package/dist/facebook-1lTMXKeH.js +0 -30
- package/dist/farcaster-Di2TUKlZ.js +0 -16
- package/dist/filters-B_THnHaX.js +0 -12
- package/dist/getCosmosAddress-B8s9Ycj4.js +0 -6075
- package/dist/github-D5B1FE4K.js +0 -22
- package/dist/google-C8_WSUfw.js +0 -22
- package/dist/help-circle-C-ZOzjAP.js +0 -16
- package/dist/id-BynpKmej.js +0 -16
- package/dist/image-BRYUh760.js +0 -8
- package/dist/index-BFUVWgoD.js +0 -992
- package/dist/index-CN6pVc2G.js +0 -1483
- package/dist/index-CZwuzz6v.js +0 -6712
- package/dist/index-Dnyeih-W.js +0 -3261
- package/dist/index-krrwn6Pi.js +0 -206
- package/dist/info-DSQyHS8b.js +0 -7
- package/dist/info-circle-BfpWcI4c.js +0 -16
- package/dist/lightbulb-DEMYYsZd.js +0 -7
- package/dist/mail-DNZ2to_6.js +0 -12
- package/dist/mobile-qsyS8oMK.js +0 -13
- package/dist/more-CnBuKwll.js +0 -15
- package/dist/network-placeholder-DhJITakA.js +0 -18
- package/dist/nftPlaceholder-DD3-Cc9U.js +0 -12
- package/dist/off-CBApAdDk.js +0 -12
- package/dist/play-store-DDoeRc-b.js +0 -36
- package/dist/plus-C3J-XWCn.js +0 -17
- package/dist/qr-code-CEoOYtHk.js +0 -10
- package/dist/recycle-horizontal-BHJ_s9Yx.js +0 -13
- package/dist/refresh-CtzOoHls.js +0 -12
- package/dist/reown-logo-BOj4YDUQ.js +0 -16
- package/dist/search--Miza3A_.js +0 -12
- package/dist/send-Bhl1lz4j.js +0 -19
- package/dist/swapHorizontal-CCvKCngz.js +0 -12
- package/dist/swapHorizontalBold-B90V-dXL.js +0 -12
- package/dist/swapHorizontalMedium-CYjeHjnI.js +0 -20
- package/dist/swapHorizontalRoundedBold-DSMWeXdW.js +0 -12
- package/dist/swapVertical-DOJUNIvk.js +0 -12
- package/dist/telegram-CufEY_4d.js +0 -20
- package/dist/three-dots-J2ngva7G.js +0 -9
- package/dist/twitch-B4vTKVf5.js +0 -22
- package/dist/twitterIcon-DLrxpAGg.js +0 -10
- package/dist/verify-CbHqPQKs.js +0 -12
- package/dist/verify-filled-CzKx9Cph.js +0 -12
- package/dist/w3m-modal-DhpjK4cG.js +0 -1471
- package/dist/wallet-CvIeO6On.js +0 -12
- package/dist/wallet-placeholder-BqELXTBj.js +0 -18
- package/dist/walletconnect-BN4c4XQ5.js +0 -36
- package/dist/warning-circle--dqxXujk.js +0 -16
- package/dist/x-CkCp5gtL.js +0 -16
@@ -1,16 +1,16 @@
|
|
1
|
-
import { P as e,
|
1
|
+
import { P as e, e as M, _ as Z, p as z, f as U, a as he, d as me, s as ee, a0 as Ce, c as Pe, i as Me, u as ln, l as cn } from "./index-UFdEurQ_.js";
|
2
2
|
import * as u from "react";
|
3
3
|
import ue, { isValidElement as de, cloneElement as pe, Children as un } from "react";
|
4
4
|
import { jsx as A, jsxs as Ne } from "react/jsx-runtime";
|
5
|
-
import {
|
6
|
-
import { getWallet as
|
7
|
-
function
|
5
|
+
import { o as dn, p as Y, _ as pn, q as Le, e as fn, j as re, h as hn, g as Q, r as mn, d as bn, k as We, s as gn, t as Ve, m as we, v as En, w as yn, x as Ae, P as Tn, H as Rn } from "./useRegisterError-BvjIv1Yc.js";
|
6
|
+
import { getWallet as xn, WalletType as vn } from "graz";
|
7
|
+
function kn(n) {
|
8
8
|
const {
|
9
9
|
prototype: t = {}
|
10
10
|
} = n;
|
11
11
|
return !!t.isReactComponent;
|
12
12
|
}
|
13
|
-
function
|
13
|
+
function Cn(n, t, s, o, i) {
|
14
14
|
const r = n[t], a = i || t;
|
15
15
|
if (r == null || // When server-side rendering React doesn't warn either.
|
16
16
|
// This is not an accurate check for SSR.
|
@@ -19,9 +19,9 @@ function kn(n, t, s, o, i) {
|
|
19
19
|
typeof window > "u")
|
20
20
|
return null;
|
21
21
|
let l;
|
22
|
-
return typeof r == "function" && !
|
22
|
+
return typeof r == "function" && !kn(r) && (l = "Did you accidentally provide a plain function component instead?"), l !== void 0 ? new Error(`Invalid ${o} \`${a}\` supplied to \`${s}\`. Expected an element type that can hold a ref. ${l} For more information see https://mui.com/r/caveat-with-refs-guide`) : null;
|
23
23
|
}
|
24
|
-
const
|
24
|
+
const Pn = dn(e.elementType, Cn);
|
25
25
|
function _e(...n) {
|
26
26
|
return n.reduce((t, s) => s == null ? t : function(...i) {
|
27
27
|
t.apply(this, i), s.apply(this, i);
|
@@ -31,11 +31,11 @@ function _e(...n) {
|
|
31
31
|
function Se(n) {
|
32
32
|
return Y(n).defaultView || window;
|
33
33
|
}
|
34
|
-
function
|
34
|
+
function Mn(n) {
|
35
35
|
const t = n.documentElement.clientWidth;
|
36
36
|
return Math.abs(window.innerWidth - t);
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function Nn(n) {
|
39
39
|
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
40
40
|
return n;
|
41
41
|
}
|
@@ -49,7 +49,7 @@ function Ie(n, t) {
|
|
49
49
|
o[i.key] = s(i);
|
50
50
|
}), o;
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function wn(n, t) {
|
53
53
|
n = n || {}, t = t || {};
|
54
54
|
function s(b) {
|
55
55
|
return b in t ? t[b] : n[b];
|
@@ -73,7 +73,7 @@ function Sn(n, t) {
|
|
73
73
|
function X(n, t, s) {
|
74
74
|
return s[t] != null ? s[t] : n.props[t];
|
75
75
|
}
|
76
|
-
function
|
76
|
+
function Sn(n, t) {
|
77
77
|
return Ie(n.children, function(s) {
|
78
78
|
return pe(s, {
|
79
79
|
onExited: t.bind(null, s),
|
@@ -84,8 +84,8 @@ function In(n, t) {
|
|
84
84
|
});
|
85
85
|
});
|
86
86
|
}
|
87
|
-
function
|
88
|
-
var o = Ie(n.children), i =
|
87
|
+
function In(n, t, s) {
|
88
|
+
var o = Ie(n.children), i = wn(t, o);
|
89
89
|
return Object.keys(i).forEach(function(r) {
|
90
90
|
var a = i[r];
|
91
91
|
if (de(a)) {
|
@@ -115,12 +115,12 @@ var On = Object.values || function(n) {
|
|
115
115
|
childFactory: function(t) {
|
116
116
|
return t;
|
117
117
|
}
|
118
|
-
},
|
118
|
+
}, Oe = /* @__PURE__ */ function(n) {
|
119
119
|
pn(t, n);
|
120
120
|
function t(o, i) {
|
121
121
|
var r;
|
122
122
|
r = n.call(this, o, i) || this;
|
123
|
-
var a = r.handleExited.bind(
|
123
|
+
var a = r.handleExited.bind(Nn(r));
|
124
124
|
return r.state = {
|
125
125
|
contextValue: {
|
126
126
|
isMounting: !0
|
@@ -141,7 +141,7 @@ var On = Object.values || function(n) {
|
|
141
141
|
}, t.getDerivedStateFromProps = function(i, r) {
|
142
142
|
var a = r.children, l = r.handleExited, c = r.firstRender;
|
143
143
|
return {
|
144
|
-
children: c ?
|
144
|
+
children: c ? Sn(i, l) : In(i, a, l),
|
145
145
|
firstRender: !1
|
146
146
|
};
|
147
147
|
}, s.handleExited = function(i, r) {
|
@@ -161,7 +161,7 @@ var On = Object.values || function(n) {
|
|
161
161
|
}, /* @__PURE__ */ ue.createElement(r, l, d));
|
162
162
|
}, t;
|
163
163
|
}(ue.Component);
|
164
|
-
|
164
|
+
Oe.propTypes = z.env.NODE_ENV !== "production" ? {
|
165
165
|
/**
|
166
166
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
167
167
|
* behavior by providing a `component` prop.
|
@@ -214,7 +214,7 @@ Fe.propTypes = z.env.NODE_ENV !== "production" ? {
|
|
214
214
|
*/
|
215
215
|
childFactory: e.func
|
216
216
|
} : {};
|
217
|
-
|
217
|
+
Oe.defaultProps = Bn;
|
218
218
|
function qe(n) {
|
219
219
|
const {
|
220
220
|
className: t,
|
@@ -282,9 +282,9 @@ z.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
282
282
|
*/
|
283
283
|
timeout: e.number.isRequired
|
284
284
|
});
|
285
|
-
const H = he("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]),
|
285
|
+
const H = he("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Fn = ["center", "classes", "className"];
|
286
286
|
let be = (n) => n, $e, je, Ue, He;
|
287
|
-
const
|
287
|
+
const ke = 550, Dn = 80, Ln = Ce($e || ($e = be`
|
288
288
|
0% {
|
289
289
|
transform: scale(0);
|
290
290
|
opacity: 0.1;
|
@@ -294,7 +294,7 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
294
294
|
transform: scale(1);
|
295
295
|
opacity: 0.3;
|
296
296
|
}
|
297
|
-
`)),
|
297
|
+
`)), Vn = Ce(je || (je = be`
|
298
298
|
0% {
|
299
299
|
opacity: 1;
|
300
300
|
}
|
@@ -302,7 +302,7 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
302
302
|
100% {
|
303
303
|
opacity: 0;
|
304
304
|
}
|
305
|
-
`)),
|
305
|
+
`)), An = Ce(Ue || (Ue = be`
|
306
306
|
0% {
|
307
307
|
transform: scale(1);
|
308
308
|
}
|
@@ -314,7 +314,7 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
314
314
|
100% {
|
315
315
|
transform: scale(1);
|
316
316
|
}
|
317
|
-
`)),
|
317
|
+
`)), _n = ee("span", {
|
318
318
|
name: "MuiTouchRipple",
|
319
319
|
slot: "Root"
|
320
320
|
})({
|
@@ -327,7 +327,7 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
327
327
|
bottom: 0,
|
328
328
|
left: 0,
|
329
329
|
borderRadius: "inherit"
|
330
|
-
}),
|
330
|
+
}), $n = ee(qe, {
|
331
331
|
name: "MuiTouchRipple",
|
332
332
|
slot: "Ripple"
|
333
333
|
})(He || (He = be`
|
@@ -373,13 +373,13 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
373
373
|
animation-iteration-count: infinite;
|
374
374
|
animation-delay: 200ms;
|
375
375
|
}
|
376
|
-
`), H.rippleVisible,
|
376
|
+
`), H.rippleVisible, Ln, ke, ({
|
377
377
|
theme: n
|
378
378
|
}) => n.transitions.easing.easeInOut, H.ripplePulsate, ({
|
379
379
|
theme: n
|
380
|
-
}) => n.transitions.duration.shorter, H.child, H.childLeaving,
|
380
|
+
}) => n.transitions.duration.shorter, H.child, H.childLeaving, Vn, ke, ({
|
381
381
|
theme: n
|
382
|
-
}) => n.transitions.easing.easeInOut, H.childPulsate,
|
382
|
+
}) => n.transitions.easing.easeInOut, H.childPulsate, An, ({
|
383
383
|
theme: n
|
384
384
|
}) => n.transitions.easing.easeInOut), Ye = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
385
385
|
const o = me({
|
@@ -389,19 +389,19 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
389
389
|
center: i = !1,
|
390
390
|
classes: r = {},
|
391
391
|
className: a
|
392
|
-
} = o, l = Z(o,
|
392
|
+
} = o, l = Z(o, Fn), [c, d] = u.useState([]), b = u.useRef(0), y = u.useRef(null);
|
393
393
|
u.useEffect(() => {
|
394
394
|
y.current && (y.current(), y.current = null);
|
395
395
|
}, [c]);
|
396
|
-
const x = u.useRef(!1), v = fn(), p = u.useRef(null), w = u.useRef(null),
|
396
|
+
const x = u.useRef(!1), v = fn(), p = u.useRef(null), w = u.useRef(null), B = u.useCallback((f) => {
|
397
397
|
const {
|
398
398
|
pulsate: T,
|
399
|
-
rippleX:
|
400
|
-
rippleY:
|
399
|
+
rippleX: k,
|
400
|
+
rippleY: P,
|
401
401
|
rippleSize: I,
|
402
402
|
cb: _
|
403
403
|
} = f;
|
404
|
-
d((
|
404
|
+
d((C) => [...C, /* @__PURE__ */ A($n, {
|
405
405
|
classes: {
|
406
406
|
ripple: U(r.ripple, H.ripple),
|
407
407
|
rippleVisible: U(r.rippleVisible, H.rippleVisible),
|
@@ -410,26 +410,26 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
410
410
|
childLeaving: U(r.childLeaving, H.childLeaving),
|
411
411
|
childPulsate: U(r.childPulsate, H.childPulsate)
|
412
412
|
},
|
413
|
-
timeout:
|
413
|
+
timeout: ke,
|
414
414
|
pulsate: T,
|
415
|
-
rippleX:
|
416
|
-
rippleY:
|
415
|
+
rippleX: k,
|
416
|
+
rippleY: P,
|
417
417
|
rippleSize: I
|
418
418
|
}, b.current)]), b.current += 1, y.current = _;
|
419
|
-
}, [r]), S = u.useCallback((f = {}, T = {},
|
419
|
+
}, [r]), S = u.useCallback((f = {}, T = {}, k = () => {
|
420
420
|
}) => {
|
421
421
|
const {
|
422
|
-
pulsate:
|
422
|
+
pulsate: P = !1,
|
423
423
|
center: I = i || T.pulsate,
|
424
424
|
fakeElement: _ = !1
|
425
425
|
// For test purposes
|
426
426
|
} = T;
|
427
|
-
if (
|
427
|
+
if (f?.type === "mousedown" && x.current) {
|
428
428
|
x.current = !1;
|
429
429
|
return;
|
430
430
|
}
|
431
|
-
|
432
|
-
const
|
431
|
+
f?.type === "touchstart" && (x.current = !0);
|
432
|
+
const C = _ ? null : w.current, V = C ? C.getBoundingClientRect() : {
|
433
433
|
width: 0,
|
434
434
|
height: 0,
|
435
435
|
left: 0,
|
@@ -440,56 +440,56 @@ const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
|
440
440
|
D = Math.round(V.width / 2), L = Math.round(V.height / 2);
|
441
441
|
else {
|
442
442
|
const {
|
443
|
-
clientX:
|
443
|
+
clientX: O,
|
444
444
|
clientY: g
|
445
445
|
} = f.touches && f.touches.length > 0 ? f.touches[0] : f;
|
446
|
-
D = Math.round(
|
446
|
+
D = Math.round(O - V.left), L = Math.round(g - V.top);
|
447
447
|
}
|
448
448
|
if (I)
|
449
449
|
E = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), E % 2 === 0 && (E += 1);
|
450
450
|
else {
|
451
|
-
const
|
452
|
-
E = Math.sqrt(
|
451
|
+
const O = Math.max(Math.abs((C ? C.clientWidth : 0) - D), D) * 2 + 2, g = Math.max(Math.abs((C ? C.clientHeight : 0) - L), L) * 2 + 2;
|
452
|
+
E = Math.sqrt(O ** 2 + g ** 2);
|
453
453
|
}
|
454
454
|
f != null && f.touches ? p.current === null && (p.current = () => {
|
455
|
-
|
456
|
-
pulsate:
|
455
|
+
B({
|
456
|
+
pulsate: P,
|
457
457
|
rippleX: D,
|
458
458
|
rippleY: L,
|
459
459
|
rippleSize: E,
|
460
|
-
cb:
|
460
|
+
cb: k
|
461
461
|
});
|
462
|
-
}, v.start(
|
462
|
+
}, v.start(Dn, () => {
|
463
463
|
p.current && (p.current(), p.current = null);
|
464
|
-
})) :
|
465
|
-
pulsate:
|
464
|
+
})) : B({
|
465
|
+
pulsate: P,
|
466
466
|
rippleX: D,
|
467
467
|
rippleY: L,
|
468
468
|
rippleSize: E,
|
469
|
-
cb:
|
469
|
+
cb: k
|
470
470
|
});
|
471
|
-
}, [i,
|
471
|
+
}, [i, B, v]), F = u.useCallback(() => {
|
472
472
|
S({}, {
|
473
473
|
pulsate: !0
|
474
474
|
});
|
475
475
|
}, [S]), h = u.useCallback((f, T) => {
|
476
|
-
if (v.clear(),
|
476
|
+
if (v.clear(), f?.type === "touchend" && p.current) {
|
477
477
|
p.current(), p.current = null, v.start(0, () => {
|
478
478
|
h(f, T);
|
479
479
|
});
|
480
480
|
return;
|
481
481
|
}
|
482
|
-
p.current = null, d((
|
482
|
+
p.current = null, d((k) => k.length > 0 ? k.slice(1) : k), y.current = T;
|
483
483
|
}, [v]);
|
484
484
|
return u.useImperativeHandle(s, () => ({
|
485
|
-
pulsate:
|
485
|
+
pulsate: F,
|
486
486
|
start: S,
|
487
487
|
stop: h
|
488
|
-
}), [
|
488
|
+
}), [F, S, h]), /* @__PURE__ */ A(_n, M({
|
489
489
|
className: U(H.root, r.root, a),
|
490
490
|
ref: w
|
491
491
|
}, l, {
|
492
|
-
children: /* @__PURE__ */ A(
|
492
|
+
children: /* @__PURE__ */ A(Oe, {
|
493
493
|
component: null,
|
494
494
|
exit: !0,
|
495
495
|
children: c
|
@@ -511,10 +511,10 @@ z.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
|
511
511
|
*/
|
512
512
|
className: e.string
|
513
513
|
});
|
514
|
-
function
|
515
|
-
return
|
514
|
+
function jn(n) {
|
515
|
+
return Pe("MuiButtonBase", n);
|
516
516
|
}
|
517
|
-
const
|
517
|
+
const Un = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Hn = ["action", "centerRipple", "children", "className", "component", "disabled", "disableRipple", "disableTouchRipple", "focusRipple", "focusVisibleClassName", "LinkComponent", "onBlur", "onClick", "onContextMenu", "onDragLeave", "onFocus", "onFocusVisible", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseLeave", "onMouseUp", "onTouchEnd", "onTouchMove", "onTouchStart", "tabIndex", "TouchRippleProps", "touchRippleRef", "type"], Kn = (n) => {
|
518
518
|
const {
|
519
519
|
disabled: t,
|
520
520
|
focusVisible: s,
|
@@ -522,9 +522,9 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
522
522
|
classes: i
|
523
523
|
} = n, a = Me({
|
524
524
|
root: ["root", t && "disabled", s && "focusVisible"]
|
525
|
-
},
|
525
|
+
}, jn, i);
|
526
526
|
return s && o && (a.root += ` ${o}`), a;
|
527
|
-
},
|
527
|
+
}, zn = ee("button", {
|
528
528
|
name: "MuiButtonBase",
|
529
529
|
slot: "Root",
|
530
530
|
overridesResolver: (n, t) => t.root
|
@@ -559,7 +559,7 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
559
559
|
borderStyle: "none"
|
560
560
|
// Remove Firefox dotted outline.
|
561
561
|
},
|
562
|
-
[`&.${
|
562
|
+
[`&.${Un.disabled}`]: {
|
563
563
|
pointerEvents: "none",
|
564
564
|
// Disable link interactions
|
565
565
|
cursor: "default"
|
@@ -567,7 +567,7 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
567
567
|
"@media print": {
|
568
568
|
colorAdjust: "exact"
|
569
569
|
}
|
570
|
-
}),
|
570
|
+
}), Wn = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
571
571
|
const o = me({
|
572
572
|
props: t,
|
573
573
|
name: "MuiButtonBase"
|
@@ -584,23 +584,23 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
584
584
|
LinkComponent: v = "a",
|
585
585
|
onBlur: p,
|
586
586
|
onClick: w,
|
587
|
-
onContextMenu:
|
587
|
+
onContextMenu: B,
|
588
588
|
onDragLeave: S,
|
589
|
-
onFocus:
|
589
|
+
onFocus: F,
|
590
590
|
onFocusVisible: h,
|
591
591
|
onKeyDown: f,
|
592
592
|
onKeyUp: T,
|
593
|
-
onMouseDown:
|
594
|
-
onMouseLeave:
|
593
|
+
onMouseDown: k,
|
594
|
+
onMouseLeave: P,
|
595
595
|
onMouseUp: I,
|
596
596
|
onTouchEnd: _,
|
597
|
-
onTouchMove:
|
597
|
+
onTouchMove: C,
|
598
598
|
onTouchStart: V,
|
599
599
|
tabIndex: D = 0,
|
600
600
|
TouchRippleProps: L,
|
601
601
|
touchRippleRef: E,
|
602
|
-
type:
|
603
|
-
} = o, g = Z(o,
|
602
|
+
type: O
|
603
|
+
} = o, g = Z(o, Hn), R = u.useRef(null), N = u.useRef(null), ge = re(N, E), {
|
604
604
|
isFocusVisibleRef: se,
|
605
605
|
onFocus: Ee,
|
606
606
|
onBlur: ie,
|
@@ -619,15 +619,15 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
619
619
|
u.useEffect(() => {
|
620
620
|
$ && x && !b && W && N.current.pulsate();
|
621
621
|
}, [b, x, $, W]);
|
622
|
-
function j(m,
|
623
|
-
return Q((De) => (
|
622
|
+
function j(m, Fe, an = y) {
|
623
|
+
return Q((De) => (Fe && Fe(De), !an && N.current && N.current[m](De), !0));
|
624
624
|
}
|
625
|
-
const ne = j("start",
|
626
|
-
$ && m.preventDefault(),
|
627
|
-
}), Je = j("start", V), Qe = j("stop", _), Ze = j("stop",
|
625
|
+
const ne = j("start", k), ye = j("stop", B), Te = j("stop", S), q = j("stop", I), J = j("stop", (m) => {
|
626
|
+
$ && m.preventDefault(), P && P(m);
|
627
|
+
}), Je = j("start", V), Qe = j("stop", _), Ze = j("stop", C), en = j("stop", (m) => {
|
628
628
|
ie(m), se.current === !1 && K(!1), p && p(m);
|
629
629
|
}, !1), nn = Q((m) => {
|
630
|
-
R.current || (R.current = m.currentTarget), Ee(m), se.current === !0 && (K(!0), h && h(m)),
|
630
|
+
R.current || (R.current = m.currentTarget), Ee(m), se.current === !0 && (K(!0), h && h(m)), F && F(m);
|
631
631
|
}), Re = () => {
|
632
632
|
const m = R.current;
|
633
633
|
return c && c !== "button" && !(m.tagName === "A" && m.href);
|
@@ -643,12 +643,12 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
643
643
|
let ce = c;
|
644
644
|
ce === "button" && (g.href || g.to) && (ce = v);
|
645
645
|
const te = {};
|
646
|
-
ce === "button" ? (te.type =
|
646
|
+
ce === "button" ? (te.type = O === void 0 ? "button" : O, te.disabled = d) : (!g.href && !g.to && (te.role = "button"), d && (te["aria-disabled"] = d));
|
647
647
|
const rn = re(s, ae, R);
|
648
648
|
z.env.NODE_ENV !== "production" && u.useEffect(() => {
|
649
649
|
G && N.current;
|
650
650
|
}, [G]);
|
651
|
-
const
|
651
|
+
const Be = M({}, o, {
|
652
652
|
centerRipple: r,
|
653
653
|
component: c,
|
654
654
|
disabled: d,
|
@@ -657,11 +657,11 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
657
657
|
focusRipple: x,
|
658
658
|
tabIndex: D,
|
659
659
|
focusVisible: $
|
660
|
-
}), sn =
|
661
|
-
return /* @__PURE__ */ Ne(
|
660
|
+
}), sn = Kn(Be);
|
661
|
+
return /* @__PURE__ */ Ne(zn, M({
|
662
662
|
as: ce,
|
663
663
|
className: U(sn.root, l),
|
664
|
-
ownerState:
|
664
|
+
ownerState: Be,
|
665
665
|
onBlur: en,
|
666
666
|
onClick: w,
|
667
667
|
onContextMenu: ye,
|
@@ -677,7 +677,7 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
677
677
|
onTouchStart: Je,
|
678
678
|
ref: rn,
|
679
679
|
tabIndex: d ? -1 : D,
|
680
|
-
type:
|
680
|
+
type: O
|
681
681
|
}, te, g, {
|
682
682
|
children: [a, G ? (
|
683
683
|
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
@@ -688,7 +688,7 @@ const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["act
|
|
688
688
|
) : null]
|
689
689
|
}));
|
690
690
|
});
|
691
|
-
z.env.NODE_ENV !== "production" && (
|
691
|
+
z.env.NODE_ENV !== "production" && (Wn.propTypes = {
|
692
692
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
693
693
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
694
694
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -720,7 +720,7 @@ z.env.NODE_ENV !== "production" && (qn.propTypes = {
|
|
720
720
|
* The component used for the root node.
|
721
721
|
* Either a string to use a HTML element or a component.
|
722
722
|
*/
|
723
|
-
component:
|
723
|
+
component: Pn,
|
724
724
|
/**
|
725
725
|
* If `true`, the component is disabled.
|
726
726
|
* @default false
|
@@ -846,7 +846,7 @@ z.env.NODE_ENV !== "production" && (qn.propTypes = {
|
|
846
846
|
*/
|
847
847
|
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
848
848
|
});
|
849
|
-
const
|
849
|
+
const qn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Yn = {
|
850
850
|
entering: {
|
851
851
|
opacity: 1
|
852
852
|
},
|
@@ -869,57 +869,56 @@ const Yn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "
|
|
869
869
|
onExit: v,
|
870
870
|
onExited: p,
|
871
871
|
onExiting: w,
|
872
|
-
style:
|
872
|
+
style: B,
|
873
873
|
timeout: S = i,
|
874
874
|
// eslint-disable-next-line react/prop-types
|
875
|
-
TransitionComponent:
|
876
|
-
} = t, h = Z(t,
|
875
|
+
TransitionComponent: F = gn
|
876
|
+
} = t, h = Z(t, qn), f = u.useRef(null), T = re(f, We(l), s), k = (E) => (O) => {
|
877
877
|
if (E) {
|
878
878
|
const g = f.current;
|
879
|
-
|
879
|
+
O === void 0 ? E(g) : E(g, O);
|
880
880
|
}
|
881
|
-
},
|
882
|
-
En(E);
|
881
|
+
}, P = k(x), I = k((E, O) => {
|
883
882
|
const g = Ve({
|
884
|
-
style:
|
883
|
+
style: B,
|
885
884
|
timeout: S,
|
886
885
|
easing: c
|
887
886
|
}, {
|
888
887
|
mode: "enter"
|
889
888
|
});
|
890
|
-
E.style.webkitTransition = o.transitions.create("opacity", g), E.style.transition = o.transitions.create("opacity", g), b && b(E,
|
891
|
-
}), _ =
|
892
|
-
const
|
893
|
-
style:
|
889
|
+
E.style.webkitTransition = o.transitions.create("opacity", g), E.style.transition = o.transitions.create("opacity", g), b && b(E, O);
|
890
|
+
}), _ = k(y), C = k(w), V = k((E) => {
|
891
|
+
const O = Ve({
|
892
|
+
style: B,
|
894
893
|
timeout: S,
|
895
894
|
easing: c
|
896
895
|
}, {
|
897
896
|
mode: "exit"
|
898
897
|
});
|
899
|
-
E.style.webkitTransition = o.transitions.create("opacity",
|
900
|
-
}), D =
|
901
|
-
return /* @__PURE__ */ A(
|
898
|
+
E.style.webkitTransition = o.transitions.create("opacity", O), E.style.transition = o.transitions.create("opacity", O), v && v(E);
|
899
|
+
}), D = k(p);
|
900
|
+
return /* @__PURE__ */ A(F, M({
|
902
901
|
appear: a,
|
903
902
|
in: d,
|
904
903
|
nodeRef: f,
|
905
904
|
onEnter: I,
|
906
905
|
onEntered: _,
|
907
|
-
onEntering:
|
906
|
+
onEntering: P,
|
908
907
|
onExit: V,
|
909
908
|
onExited: D,
|
910
|
-
onExiting:
|
909
|
+
onExiting: C,
|
911
910
|
addEndListener: (E) => {
|
912
911
|
r && r(f.current, E);
|
913
912
|
},
|
914
913
|
timeout: S
|
915
914
|
}, h, {
|
916
|
-
children: (E,
|
915
|
+
children: (E, O) => /* @__PURE__ */ u.cloneElement(l, M({
|
917
916
|
style: M({
|
918
917
|
opacity: 0,
|
919
918
|
visibility: E === "exited" && !d ? "hidden" : void 0
|
920
|
-
},
|
919
|
+
}, Yn[E], B, l.props.style),
|
921
920
|
ref: T
|
922
|
-
},
|
921
|
+
}, O))
|
923
922
|
}));
|
924
923
|
});
|
925
924
|
z.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
@@ -997,19 +996,19 @@ z.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
997
996
|
exit: e.number
|
998
997
|
})])
|
999
998
|
});
|
1000
|
-
function
|
1001
|
-
return
|
999
|
+
function Xn(n) {
|
1000
|
+
return Pe("MuiBackdrop", n);
|
1002
1001
|
}
|
1003
1002
|
he("MuiBackdrop", ["root", "invisible"]);
|
1004
|
-
const
|
1003
|
+
const Gn = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Jn = (n) => {
|
1005
1004
|
const {
|
1006
1005
|
classes: t,
|
1007
1006
|
invisible: s
|
1008
1007
|
} = n;
|
1009
1008
|
return Me({
|
1010
1009
|
root: ["root", s && "invisible"]
|
1011
|
-
},
|
1012
|
-
},
|
1010
|
+
}, Xn, t);
|
1011
|
+
}, Qn = ee("div", {
|
1013
1012
|
name: "MuiBackdrop",
|
1014
1013
|
slot: "Root",
|
1015
1014
|
overridesResolver: (n, t) => {
|
@@ -1048,22 +1047,22 @@ const Jn = ["children", "className", "component", "components", "componentsProps
|
|
1048
1047
|
open: v,
|
1049
1048
|
slotProps: p = {},
|
1050
1049
|
slots: w = {},
|
1051
|
-
TransitionComponent:
|
1050
|
+
TransitionComponent: B = Xe,
|
1052
1051
|
transitionDuration: S
|
1053
|
-
} = a,
|
1052
|
+
} = a, F = Z(a, Gn), h = M({}, a, {
|
1054
1053
|
component: d,
|
1055
1054
|
invisible: x
|
1056
|
-
}), f =
|
1057
|
-
return /* @__PURE__ */ A(
|
1055
|
+
}), f = Jn(h), T = (o = p.root) != null ? o : y.root;
|
1056
|
+
return /* @__PURE__ */ A(B, M({
|
1058
1057
|
in: v,
|
1059
1058
|
timeout: S
|
1060
|
-
},
|
1061
|
-
children: /* @__PURE__ */ A(
|
1059
|
+
}, F, {
|
1060
|
+
children: /* @__PURE__ */ A(Qn, M({
|
1062
1061
|
"aria-hidden": !0
|
1063
1062
|
}, T, {
|
1064
1063
|
as: (i = (r = w.root) != null ? r : b.Root) != null ? i : d,
|
1065
|
-
className: U(f.root, c, T
|
1066
|
-
ownerState: M({}, h, T
|
1064
|
+
className: U(f.root, c, T?.className),
|
1065
|
+
ownerState: M({}, h, T?.ownerState),
|
1067
1066
|
classes: f,
|
1068
1067
|
ref: s,
|
1069
1068
|
children: l
|
@@ -1166,7 +1165,7 @@ z.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
|
1166
1165
|
exit: e.number
|
1167
1166
|
})])
|
1168
1167
|
});
|
1169
|
-
function
|
1168
|
+
function Zn(n) {
|
1170
1169
|
const t = Y(n);
|
1171
1170
|
return t.body === n ? Se(n).innerWidth > t.documentElement.clientWidth : n.scrollHeight > n.clientHeight;
|
1172
1171
|
}
|
@@ -1176,14 +1175,14 @@ function oe(n, t) {
|
|
1176
1175
|
function Ke(n) {
|
1177
1176
|
return parseInt(Se(n).getComputedStyle(n).paddingRight, 10) || 0;
|
1178
1177
|
}
|
1179
|
-
function
|
1178
|
+
function et(n) {
|
1180
1179
|
const s = ["TEMPLATE", "SCRIPT", "STYLE", "LINK", "MAP", "META", "NOSCRIPT", "PICTURE", "COL", "COLGROUP", "PARAM", "SLOT", "SOURCE", "TRACK"].indexOf(n.tagName) !== -1, o = n.tagName === "INPUT" && n.getAttribute("type") === "hidden";
|
1181
1180
|
return s || o;
|
1182
1181
|
}
|
1183
1182
|
function ze(n, t, s, o, i) {
|
1184
1183
|
const r = [t, s, ...o];
|
1185
1184
|
[].forEach.call(n.children, (a) => {
|
1186
|
-
const l = r.indexOf(a) === -1, c = !
|
1185
|
+
const l = r.indexOf(a) === -1, c = !et(a);
|
1187
1186
|
l && c && oe(a, i);
|
1188
1187
|
});
|
1189
1188
|
}
|
@@ -1191,11 +1190,11 @@ function ve(n, t) {
|
|
1191
1190
|
let s = -1;
|
1192
1191
|
return n.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
1193
1192
|
}
|
1194
|
-
function
|
1193
|
+
function nt(n, t) {
|
1195
1194
|
const s = [], o = n.container;
|
1196
1195
|
if (!t.disableScrollLock) {
|
1197
|
-
if (
|
1198
|
-
const a =
|
1196
|
+
if (Zn(o)) {
|
1197
|
+
const a = Mn(Y(o));
|
1199
1198
|
s.push({
|
1200
1199
|
value: o.style.paddingRight,
|
1201
1200
|
property: "padding-right",
|
@@ -1215,7 +1214,7 @@ function tt(n, t) {
|
|
1215
1214
|
r = Y(o).body;
|
1216
1215
|
else {
|
1217
1216
|
const a = o.parentElement, l = Se(o);
|
1218
|
-
r =
|
1217
|
+
r = a?.nodeName === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
|
1219
1218
|
}
|
1220
1219
|
s.push({
|
1221
1220
|
value: r.style.overflow,
|
@@ -1241,13 +1240,13 @@ function tt(n, t) {
|
|
1241
1240
|
});
|
1242
1241
|
};
|
1243
1242
|
}
|
1244
|
-
function
|
1243
|
+
function tt(n) {
|
1245
1244
|
const t = [];
|
1246
1245
|
return [].forEach.call(n.children, (s) => {
|
1247
1246
|
s.getAttribute("aria-hidden") === "true" && t.push(s);
|
1248
1247
|
}), t;
|
1249
1248
|
}
|
1250
|
-
class
|
1249
|
+
class ot {
|
1251
1250
|
constructor() {
|
1252
1251
|
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
1253
1252
|
}
|
@@ -1256,7 +1255,7 @@ class rt {
|
|
1256
1255
|
if (o !== -1)
|
1257
1256
|
return o;
|
1258
1257
|
o = this.modals.length, this.modals.push(t), t.modalRef && oe(t.modalRef, !1);
|
1259
|
-
const i =
|
1258
|
+
const i = tt(s);
|
1260
1259
|
ze(s, t.mount, t.modalRef, i, !0);
|
1261
1260
|
const r = ve(this.containers, (a) => a.container === s);
|
1262
1261
|
return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
|
@@ -1268,7 +1267,7 @@ class rt {
|
|
1268
1267
|
}
|
1269
1268
|
mount(t, s) {
|
1270
1269
|
const o = ve(this.containers, (r) => r.modals.indexOf(t) !== -1), i = this.containers[o];
|
1271
|
-
i.restore || (i.restore =
|
1270
|
+
i.restore || (i.restore = nt(i, s));
|
1272
1271
|
}
|
1273
1272
|
remove(t, s = !0) {
|
1274
1273
|
const o = this.modals.indexOf(t);
|
@@ -1287,33 +1286,33 @@ class rt {
|
|
1287
1286
|
return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
|
1288
1287
|
}
|
1289
1288
|
}
|
1290
|
-
const
|
1291
|
-
function
|
1289
|
+
const rt = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
1290
|
+
function st(n) {
|
1292
1291
|
const t = parseInt(n.getAttribute("tabindex") || "", 10);
|
1293
1292
|
return Number.isNaN(t) ? n.contentEditable === "true" || (n.nodeName === "AUDIO" || n.nodeName === "VIDEO" || n.nodeName === "DETAILS") && n.getAttribute("tabindex") === null ? 0 : n.tabIndex : t;
|
1294
1293
|
}
|
1295
|
-
function
|
1294
|
+
function it(n) {
|
1296
1295
|
if (n.tagName !== "INPUT" || n.type !== "radio" || !n.name)
|
1297
1296
|
return !1;
|
1298
1297
|
const t = (o) => n.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
1299
1298
|
let s = t(`[name="${n.name}"]:checked`);
|
1300
1299
|
return s || (s = t(`[name="${n.name}"]`)), s !== n;
|
1301
1300
|
}
|
1302
|
-
function
|
1303
|
-
return !(n.disabled || n.tagName === "INPUT" && n.type === "hidden" ||
|
1301
|
+
function at(n) {
|
1302
|
+
return !(n.disabled || n.tagName === "INPUT" && n.type === "hidden" || it(n));
|
1304
1303
|
}
|
1305
|
-
function
|
1304
|
+
function lt(n) {
|
1306
1305
|
const t = [], s = [];
|
1307
|
-
return Array.from(n.querySelectorAll(
|
1308
|
-
const r =
|
1309
|
-
r === -1 || !
|
1306
|
+
return Array.from(n.querySelectorAll(rt)).forEach((o, i) => {
|
1307
|
+
const r = st(o);
|
1308
|
+
r === -1 || !at(o) || (r === 0 ? t.push(o) : s.push({
|
1310
1309
|
documentOrder: i,
|
1311
1310
|
tabIndex: r,
|
1312
1311
|
node: o
|
1313
1312
|
}));
|
1314
1313
|
}), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
|
1315
1314
|
}
|
1316
|
-
function
|
1315
|
+
function ct() {
|
1317
1316
|
return !0;
|
1318
1317
|
}
|
1319
1318
|
function fe(n) {
|
@@ -1322,10 +1321,10 @@ function fe(n) {
|
|
1322
1321
|
disableAutoFocus: s = !1,
|
1323
1322
|
disableEnforceFocus: o = !1,
|
1324
1323
|
disableRestoreFocus: i = !1,
|
1325
|
-
getTabbable: r =
|
1326
|
-
isEnabled: a =
|
1324
|
+
getTabbable: r = lt,
|
1325
|
+
isEnabled: a = ct,
|
1327
1326
|
open: l
|
1328
|
-
} = n, c = u.useRef(!1), d = u.useRef(null), b = u.useRef(null), y = u.useRef(null), x = u.useRef(null), v = u.useRef(!1), p = u.useRef(null), w = re(We(t), p),
|
1327
|
+
} = n, c = u.useRef(!1), d = u.useRef(null), b = u.useRef(null), y = u.useRef(null), x = u.useRef(null), v = u.useRef(!1), p = u.useRef(null), w = re(We(t), p), B = u.useRef(null);
|
1329
1328
|
u.useEffect(() => {
|
1330
1329
|
!l || !p.current || (v.current = !s);
|
1331
1330
|
}, [s, l]), u.useEffect(() => {
|
@@ -1338,17 +1337,17 @@ function fe(n) {
|
|
1338
1337
|
}, [l]), u.useEffect(() => {
|
1339
1338
|
if (!l || !p.current)
|
1340
1339
|
return;
|
1341
|
-
const h = Y(p.current), f = (
|
1342
|
-
|
1340
|
+
const h = Y(p.current), f = (P) => {
|
1341
|
+
B.current = P, !(o || !a() || P.key !== "Tab") && h.activeElement === p.current && P.shiftKey && (c.current = !0, b.current && b.current.focus());
|
1343
1342
|
}, T = () => {
|
1344
|
-
const
|
1345
|
-
if (
|
1343
|
+
const P = p.current;
|
1344
|
+
if (P === null)
|
1346
1345
|
return;
|
1347
1346
|
if (!h.hasFocus() || !a() || c.current) {
|
1348
1347
|
c.current = !1;
|
1349
1348
|
return;
|
1350
1349
|
}
|
1351
|
-
if (
|
1350
|
+
if (P.contains(h.activeElement) || o && h.activeElement !== d.current && h.activeElement !== b.current)
|
1352
1351
|
return;
|
1353
1352
|
if (h.activeElement !== x.current)
|
1354
1353
|
x.current = null;
|
@@ -1358,31 +1357,31 @@ function fe(n) {
|
|
1358
1357
|
return;
|
1359
1358
|
let I = [];
|
1360
1359
|
if ((h.activeElement === d.current || h.activeElement === b.current) && (I = r(p.current)), I.length > 0) {
|
1361
|
-
var _,
|
1362
|
-
const V = !!((_ =
|
1360
|
+
var _, C;
|
1361
|
+
const V = !!((_ = B.current) != null && _.shiftKey && ((C = B.current) == null ? void 0 : C.key) === "Tab"), D = I[0], L = I[I.length - 1];
|
1363
1362
|
typeof D != "string" && typeof L != "string" && (V ? L.focus() : D.focus());
|
1364
1363
|
} else
|
1365
|
-
|
1364
|
+
P.focus();
|
1366
1365
|
};
|
1367
1366
|
h.addEventListener("focusin", T), h.addEventListener("keydown", f, !0);
|
1368
|
-
const
|
1367
|
+
const k = setInterval(() => {
|
1369
1368
|
h.activeElement && h.activeElement.tagName === "BODY" && T();
|
1370
1369
|
}, 50);
|
1371
1370
|
return () => {
|
1372
|
-
clearInterval(
|
1371
|
+
clearInterval(k), h.removeEventListener("focusin", T), h.removeEventListener("keydown", f, !0);
|
1373
1372
|
};
|
1374
1373
|
}, [s, o, i, a, l, r]);
|
1375
1374
|
const S = (h) => {
|
1376
1375
|
y.current === null && (y.current = h.relatedTarget), v.current = !0, x.current = h.target;
|
1377
1376
|
const f = t.props.onFocus;
|
1378
1377
|
f && f(h);
|
1379
|
-
},
|
1378
|
+
}, F = (h) => {
|
1380
1379
|
y.current === null && (y.current = h.relatedTarget), v.current = !0;
|
1381
1380
|
};
|
1382
1381
|
return /* @__PURE__ */ Ne(u.Fragment, {
|
1383
1382
|
children: [/* @__PURE__ */ A("div", {
|
1384
1383
|
tabIndex: l ? 0 : -1,
|
1385
|
-
onFocus:
|
1384
|
+
onFocus: F,
|
1386
1385
|
ref: d,
|
1387
1386
|
"data-testid": "sentinelStart"
|
1388
1387
|
}), /* @__PURE__ */ u.cloneElement(t, {
|
@@ -1390,7 +1389,7 @@ function fe(n) {
|
|
1390
1389
|
onFocus: S
|
1391
1390
|
}), /* @__PURE__ */ A("div", {
|
1392
1391
|
tabIndex: l ? 0 : -1,
|
1393
|
-
onFocus:
|
1392
|
+
onFocus: F,
|
1394
1393
|
ref: b,
|
1395
1394
|
"data-testid": "sentinelEnd"
|
1396
1395
|
})]
|
@@ -1450,21 +1449,21 @@ z.env.NODE_ENV !== "production" && (fe.propTypes = {
|
|
1450
1449
|
*/
|
1451
1450
|
open: e.bool.isRequired
|
1452
1451
|
});
|
1453
|
-
z.env.NODE_ENV !== "production" && (fe.propTypes =
|
1454
|
-
function
|
1452
|
+
z.env.NODE_ENV !== "production" && (fe.propTypes = En(fe.propTypes));
|
1453
|
+
function ut(n) {
|
1455
1454
|
return typeof n == "function" ? n() : n;
|
1456
1455
|
}
|
1457
|
-
function
|
1456
|
+
function dt(n) {
|
1458
1457
|
return n ? n.props.hasOwnProperty("in") : !1;
|
1459
1458
|
}
|
1460
|
-
const
|
1461
|
-
function
|
1459
|
+
const pt = new ot();
|
1460
|
+
function ft(n) {
|
1462
1461
|
const {
|
1463
1462
|
container: t,
|
1464
1463
|
disableEscapeKeyDown: s = !1,
|
1465
1464
|
disableScrollLock: o = !1,
|
1466
1465
|
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
1467
|
-
manager: i =
|
1466
|
+
manager: i = pt,
|
1468
1467
|
closeAfterTransition: r = !1,
|
1469
1468
|
onTransitionEnter: a,
|
1470
1469
|
onTransitionExited: l,
|
@@ -1472,26 +1471,26 @@ function ht(n) {
|
|
1472
1471
|
onClose: d,
|
1473
1472
|
open: b,
|
1474
1473
|
rootRef: y
|
1475
|
-
} = n, x = u.useRef({}), v = u.useRef(null), p = u.useRef(null), w = re(p, y), [
|
1474
|
+
} = n, x = u.useRef({}), v = u.useRef(null), p = u.useRef(null), w = re(p, y), [B, S] = u.useState(!b), F = dt(c);
|
1476
1475
|
let h = !0;
|
1477
1476
|
(n["aria-hidden"] === "false" || n["aria-hidden"] === !1) && (h = !1);
|
1478
|
-
const f = () => Y(v.current), T = () => (x.current.modalRef = p.current, x.current.mount = v.current, x.current),
|
1477
|
+
const f = () => Y(v.current), T = () => (x.current.modalRef = p.current, x.current.mount = v.current, x.current), k = () => {
|
1479
1478
|
i.mount(T(), {
|
1480
1479
|
disableScrollLock: o
|
1481
1480
|
}), p.current && (p.current.scrollTop = 0);
|
1482
|
-
},
|
1483
|
-
const g =
|
1484
|
-
i.add(T(), g), p.current &&
|
1481
|
+
}, P = Q(() => {
|
1482
|
+
const g = ut(t) || f().body;
|
1483
|
+
i.add(T(), g), p.current && k();
|
1485
1484
|
}), I = u.useCallback(() => i.isTopModal(T()), [i]), _ = Q((g) => {
|
1486
|
-
v.current = g, g && (b && I() ?
|
1487
|
-
}),
|
1485
|
+
v.current = g, g && (b && I() ? k() : p.current && oe(p.current, h));
|
1486
|
+
}), C = u.useCallback(() => {
|
1488
1487
|
i.remove(T(), h);
|
1489
1488
|
}, [h, i]);
|
1490
1489
|
u.useEffect(() => () => {
|
1491
|
-
|
1492
|
-
}, [
|
1493
|
-
b ?
|
1494
|
-
}, [b,
|
1490
|
+
C();
|
1491
|
+
}, [C]), u.useEffect(() => {
|
1492
|
+
b ? P() : (!F || !r) && C();
|
1493
|
+
}, [b, C, F, r, P]);
|
1495
1494
|
const V = (g) => (R) => {
|
1496
1495
|
var N;
|
1497
1496
|
(N = g.onKeyDown) == null || N.call(g, R), !(R.key !== "Escape" || R.which === 229 || // Wait until IME is settled.
|
@@ -1502,7 +1501,7 @@ function ht(n) {
|
|
1502
1501
|
};
|
1503
1502
|
return {
|
1504
1503
|
getRootProps: (g = {}) => {
|
1505
|
-
const R =
|
1504
|
+
const R = yn(n);
|
1506
1505
|
delete R.onTransitionEnter, delete R.onTransitionExited;
|
1507
1506
|
const N = M({}, R, g);
|
1508
1507
|
return M({
|
@@ -1525,25 +1524,25 @@ function ht(n) {
|
|
1525
1524
|
const g = () => {
|
1526
1525
|
S(!1), a && a();
|
1527
1526
|
}, R = () => {
|
1528
|
-
S(!0), l && l(), r &&
|
1527
|
+
S(!0), l && l(), r && C();
|
1529
1528
|
};
|
1530
1529
|
return {
|
1531
|
-
onEnter: _e(g, c
|
1532
|
-
onExited: _e(R, c
|
1530
|
+
onEnter: _e(g, c?.props.onEnter),
|
1531
|
+
onExited: _e(R, c?.props.onExited)
|
1533
1532
|
};
|
1534
1533
|
},
|
1535
1534
|
rootRef: w,
|
1536
1535
|
portalRef: _,
|
1537
1536
|
isTopModal: I,
|
1538
|
-
exited:
|
1539
|
-
hasTransition:
|
1537
|
+
exited: B,
|
1538
|
+
hasTransition: F
|
1540
1539
|
};
|
1541
1540
|
}
|
1542
|
-
function
|
1543
|
-
return
|
1541
|
+
function ht(n) {
|
1542
|
+
return Pe("MuiModal", n);
|
1544
1543
|
}
|
1545
1544
|
he("MuiModal", ["root", "hidden", "backdrop"]);
|
1546
|
-
const
|
1545
|
+
const mt = ["BackdropComponent", "BackdropProps", "classes", "className", "closeAfterTransition", "children", "container", "component", "components", "componentsProps", "disableAutoFocus", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "onBackdropClick", "onClose", "onTransitionEnter", "onTransitionExited", "open", "slotProps", "slots", "theme"], bt = (n) => {
|
1547
1546
|
const {
|
1548
1547
|
open: t,
|
1549
1548
|
exited: s,
|
@@ -1552,8 +1551,8 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1552
1551
|
return Me({
|
1553
1552
|
root: ["root", !t && s && "hidden"],
|
1554
1553
|
backdrop: ["backdrop"]
|
1555
|
-
},
|
1556
|
-
},
|
1554
|
+
}, ht, o);
|
1555
|
+
}, gt = ee("div", {
|
1557
1556
|
name: "MuiModal",
|
1558
1557
|
slot: "Root",
|
1559
1558
|
overridesResolver: (n, t) => {
|
@@ -1574,50 +1573,50 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1574
1573
|
left: 0
|
1575
1574
|
}, !t.open && t.exited && {
|
1576
1575
|
visibility: "hidden"
|
1577
|
-
})),
|
1576
|
+
})), Et = ee(Ge, {
|
1578
1577
|
name: "MuiModal",
|
1579
1578
|
slot: "Backdrop",
|
1580
1579
|
overridesResolver: (n, t) => t.backdrop
|
1581
1580
|
})({
|
1582
1581
|
zIndex: -1
|
1583
|
-
}),
|
1582
|
+
}), yt = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
1584
1583
|
var o, i, r, a, l, c;
|
1585
1584
|
const d = me({
|
1586
1585
|
name: "MuiModal",
|
1587
1586
|
props: t
|
1588
1587
|
}), {
|
1589
|
-
BackdropComponent: b =
|
1588
|
+
BackdropComponent: b = Et,
|
1590
1589
|
BackdropProps: y,
|
1591
1590
|
className: x,
|
1592
1591
|
closeAfterTransition: v = !1,
|
1593
1592
|
children: p,
|
1594
1593
|
container: w,
|
1595
|
-
component:
|
1594
|
+
component: B,
|
1596
1595
|
components: S = {},
|
1597
|
-
componentsProps:
|
1596
|
+
componentsProps: F = {},
|
1598
1597
|
disableAutoFocus: h = !1,
|
1599
1598
|
disableEnforceFocus: f = !1,
|
1600
1599
|
disableEscapeKeyDown: T = !1,
|
1601
|
-
disablePortal:
|
1602
|
-
disableRestoreFocus:
|
1600
|
+
disablePortal: k = !1,
|
1601
|
+
disableRestoreFocus: P = !1,
|
1603
1602
|
disableScrollLock: I = !1,
|
1604
1603
|
hideBackdrop: _ = !1,
|
1605
|
-
keepMounted:
|
1604
|
+
keepMounted: C = !1,
|
1606
1605
|
onBackdropClick: V,
|
1607
1606
|
open: D,
|
1608
1607
|
slotProps: L,
|
1609
1608
|
slots: E
|
1610
1609
|
// eslint-disable-next-line react/prop-types
|
1611
|
-
} = d,
|
1610
|
+
} = d, O = Z(d, mt), g = M({}, d, {
|
1612
1611
|
closeAfterTransition: v,
|
1613
1612
|
disableAutoFocus: h,
|
1614
1613
|
disableEnforceFocus: f,
|
1615
1614
|
disableEscapeKeyDown: T,
|
1616
|
-
disablePortal:
|
1617
|
-
disableRestoreFocus:
|
1615
|
+
disablePortal: k,
|
1616
|
+
disableRestoreFocus: P,
|
1618
1617
|
disableScrollLock: I,
|
1619
1618
|
hideBackdrop: _,
|
1620
|
-
keepMounted:
|
1619
|
+
keepMounted: C
|
1621
1620
|
}), {
|
1622
1621
|
getRootProps: R,
|
1623
1622
|
getBackdropProps: N,
|
@@ -1626,11 +1625,11 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1626
1625
|
isTopModal: Ee,
|
1627
1626
|
exited: ie,
|
1628
1627
|
hasTransition: ae
|
1629
|
-
} =
|
1628
|
+
} = ft(M({}, g, {
|
1630
1629
|
rootRef: s
|
1631
1630
|
})), $ = M({}, g, {
|
1632
1631
|
exited: ie
|
1633
|
-
}), K =
|
1632
|
+
}), K = bt($), W = {};
|
1634
1633
|
if (p.props.tabIndex === void 0 && (W.tabIndex = "-1"), ae) {
|
1635
1634
|
const {
|
1636
1635
|
onEnter: q,
|
@@ -1638,17 +1637,17 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1638
1637
|
} = ge();
|
1639
1638
|
W.onEnter = q, W.onExited = J;
|
1640
1639
|
}
|
1641
|
-
const le = (o = (i = E
|
1640
|
+
const le = (o = (i = E?.root) != null ? i : S.Root) != null ? o : gt, G = (r = (a = E?.backdrop) != null ? a : S.Backdrop) != null ? r : b, j = (l = L?.root) != null ? l : F.root, ne = (c = L?.backdrop) != null ? c : F.backdrop, ye = Ae({
|
1642
1641
|
elementType: le,
|
1643
1642
|
externalSlotProps: j,
|
1644
|
-
externalForwardedProps:
|
1643
|
+
externalForwardedProps: O,
|
1645
1644
|
getSlotProps: R,
|
1646
1645
|
additionalProps: {
|
1647
1646
|
ref: s,
|
1648
|
-
as:
|
1647
|
+
as: B
|
1649
1648
|
},
|
1650
1649
|
ownerState: $,
|
1651
|
-
className: U(x, j
|
1650
|
+
className: U(x, j?.className, K?.root, !$.open && $.exited && K?.hidden)
|
1652
1651
|
}), Te = Ae({
|
1653
1652
|
elementType: G,
|
1654
1653
|
externalSlotProps: ne,
|
@@ -1658,18 +1657,18 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1658
1657
|
V && V(J), q != null && q.onClick && q.onClick(J);
|
1659
1658
|
}
|
1660
1659
|
})),
|
1661
|
-
className: U(ne
|
1660
|
+
className: U(ne?.className, y?.className, K?.backdrop),
|
1662
1661
|
ownerState: $
|
1663
1662
|
});
|
1664
|
-
return !
|
1663
|
+
return !C && !D && (!ae || ie) ? null : /* @__PURE__ */ A(Tn, {
|
1665
1664
|
ref: se,
|
1666
1665
|
container: w,
|
1667
|
-
disablePortal:
|
1666
|
+
disablePortal: k,
|
1668
1667
|
children: /* @__PURE__ */ Ne(le, M({}, ye, {
|
1669
1668
|
children: [!_ && b ? /* @__PURE__ */ A(G, M({}, Te)) : null, /* @__PURE__ */ A(fe, {
|
1670
1669
|
disableEnforceFocus: f,
|
1671
1670
|
disableAutoFocus: h,
|
1672
|
-
disableRestoreFocus:
|
1671
|
+
disableRestoreFocus: P,
|
1673
1672
|
isEnabled: Ee,
|
1674
1673
|
open: D,
|
1675
1674
|
children: /* @__PURE__ */ u.cloneElement(p, W)
|
@@ -1677,7 +1676,7 @@ const bt = ["BackdropComponent", "BackdropProps", "classes", "className", "close
|
|
1677
1676
|
}))
|
1678
1677
|
});
|
1679
1678
|
});
|
1680
|
-
z.env.NODE_ENV !== "production" && (
|
1679
|
+
z.env.NODE_ENV !== "production" && (yt.propTypes = {
|
1681
1680
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1682
1681
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1683
1682
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
@@ -1759,7 +1758,7 @@ z.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
1759
1758
|
* By default, it uses the body of the top-level document object,
|
1760
1759
|
* so it's simply `document.body` most of the time.
|
1761
1760
|
*/
|
1762
|
-
container: e.oneOfType([
|
1761
|
+
container: e.oneOfType([Rn, e.func]),
|
1763
1762
|
/**
|
1764
1763
|
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
1765
1764
|
* replace it to the last focused element when it closes.
|
@@ -1858,31 +1857,30 @@ z.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
|
1858
1857
|
*/
|
1859
1858
|
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
1860
1859
|
});
|
1861
|
-
function
|
1860
|
+
function Pt({ fill: n }) {
|
1862
1861
|
return /* @__PURE__ */ A("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ A("path", { d: "M1 1L11 11M9.57143 1L1 11", stroke: n, "stroke-width": "2" }) });
|
1863
1862
|
}
|
1864
|
-
async function
|
1865
|
-
|
1866
|
-
let t = await vn(Cn.KEPLR).getChainInfosWithoutEndpoints(), s = ((r = ln.getState()) == null ? void 0 : r.cosmosChains) || [];
|
1863
|
+
async function Mt() {
|
1864
|
+
let t = await xn(vn.KEPLR).getChainInfosWithoutEndpoints(), s = ln.getState()?.cosmosChains || [];
|
1867
1865
|
const o = cn.keyBy(t, "chainId");
|
1868
1866
|
let i = [];
|
1869
|
-
return s.forEach((
|
1870
|
-
if (o[
|
1867
|
+
return s.forEach((r) => {
|
1868
|
+
if (o[r.chainId]) i.push(r.chainId);
|
1871
1869
|
else
|
1872
1870
|
return;
|
1873
1871
|
}), i;
|
1874
1872
|
}
|
1875
1873
|
export {
|
1876
|
-
|
1877
|
-
|
1874
|
+
Wn as B,
|
1875
|
+
Pt as C,
|
1878
1876
|
Xe as F,
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1877
|
+
yt as M,
|
1878
|
+
Oe as T,
|
1879
|
+
Nn as _,
|
1880
|
+
Mt as a,
|
1881
|
+
Ge as b,
|
1882
|
+
fe as c,
|
1883
|
+
Pn as e,
|
1884
|
+
Mn as g,
|
1887
1885
|
Se as o
|
1888
1886
|
};
|