@blockend/widget 1.0.60 → 1.0.61
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-Bi2Qb6vT.js → AllRoutes-BqW5S4_J.js} +9 -9
- package/dist/AllRoutes-CIe7ZLbW.js +2209 -0
- package/dist/{Box-DofFTOO9.js → Box-Dw7IJo3D.js} +1 -1
- package/dist/Box-QpYIDD-V.js +54 -0
- package/dist/EstGas-C_ldluj6.js +1576 -0
- package/dist/{EstGas-w0MeYkJr.js → EstGas-Dpwt2-50.js} +7 -7
- package/dist/{Grow-C7qv-xx7.js → Grow-DjneaPQY.js} +2 -2
- package/dist/Grow-L7kyPhbh.js +1656 -0
- package/dist/{InputComp-B7JBOOCL.js → InputComp-CWH4SAk7.js} +3 -3
- package/dist/InputComp-Dl4M7E5v.js +105 -0
- package/dist/{LoadRoute-KBCAhdb3.js → LoadRoute-Cafzlcfy.js} +4 -4
- package/dist/LoadRoute-cBSl34Bs.js +125 -0
- package/dist/{QuotesProgress-DaVjqEE8.js → QuotesProgress-Covy7wmW.js} +1 -1
- package/dist/QuotesProgress-CxJUoCPy.js +28 -0
- package/dist/{SwapAsset-ClNXL1XN.js → SwapAsset-BqXVX_DR.js} +1 -1
- package/dist/SwapAsset-CkRat7Ok.js +51 -0
- package/dist/Tooltip-3YpYU_vO.js +572 -0
- package/dist/{Tooltip-BfAqBg9y.js → Tooltip-D2kKNQ0U.js} +3 -3
- package/dist/TxnButton-CPMFPFA_.js +222 -0
- package/dist/{TxnButton-41zPru_N.js → TxnButton-mfwy-EoQ.js} +3 -3
- package/dist/{add-Dtd6YmCJ.js → add-CRY8asYF.js} +1 -1
- package/dist/add-Dfrw-dUV.js +19 -0
- package/dist/{all-wallets-fWl6fl6Y.js → all-wallets-DOnIRIv0.js} +1 -1
- package/dist/all-wallets-Dw10lWJZ.js +10 -0
- package/dist/{app-store-DSLOwXZY.js → app-store-C0M9hC1B.js} +1 -1
- package/dist/app-store-DJiZFSCr.js +21 -0
- package/dist/{apple-BMDEkk8X.js → apple-Bv7oA5AQ.js} +1 -1
- package/dist/apple-kMZGS4AC.js +22 -0
- package/dist/{arrow-bottom-BWURPGva.js → arrow-bottom-D4arnome.js} +1 -1
- package/dist/arrow-bottom-DgmWrLqf.js +12 -0
- package/dist/{arrow-bottom-circle-BR18TdWN.js → arrow-bottom-circle-BUny4yP8.js} +1 -1
- package/dist/arrow-bottom-circle-C7iPKwzW.js +15 -0
- package/dist/{arrow-left-DSHPaT9f.js → arrow-left-DImJbKZs.js} +1 -1
- package/dist/arrow-left-Dol642VI.js +12 -0
- package/dist/{arrow-right-BQyfcxHk.js → arrow-right-BvRPNX9F.js} +1 -1
- package/dist/arrow-right-CMwyPVT7.js +12 -0
- package/dist/{arrow-top-RP3srPoV.js → arrow-top-1RWPJImu.js} +1 -1
- package/dist/arrow-top-kn9xtx92.js +12 -0
- package/dist/{bank-C9VWqird.js → bank-C0t9JpLj.js} +1 -1
- package/dist/bank-DK-FvDfd.js +18 -0
- package/dist/{basic-ChmJK0Xt.js → basic-Sejv2JvX.js} +3 -3
- package/dist/basic-VfgwBHn1.js +5783 -0
- package/dist/{browser-CSkm7gnt.js → browser-0d0uw45D.js} +1 -1
- package/dist/browser-BzT1ACe9.js +18 -0
- package/dist/{card-qLWgu9c8.js → card-BBByykfy.js} +1 -1
- package/dist/card-DqDM55a-.js +18 -0
- package/dist/{ccip-QF_uXtAt.js → ccip-8__szz9Q.js} +1 -1
- package/dist/ccip-BPZSey8I.js +228 -0
- package/dist/{checkmark-BmzqmMw0.js → checkmark-B_osdsm_.js} +1 -1
- package/dist/checkmark-DEKH6rOS.js +15 -0
- package/dist/{checkmark-bold-B6aImdAf.js → checkmark-bold-BEzepFY4.js} +1 -1
- package/dist/checkmark-bold-Dzv2hN2Q.js +12 -0
- package/dist/{chevron-bottom-t4h4eaxS.js → chevron-bottom-Bdaxlaxc.js} +1 -1
- package/dist/chevron-bottom-CXdHWe0F.js +12 -0
- package/dist/{chevron-left-D3susSgC.js → chevron-left-2aCeqxdm.js} +1 -1
- package/dist/chevron-left-CeuFz3M9.js +12 -0
- package/dist/{chevron-right-W13sAkua.js → chevron-right-BPgQeMPz.js} +1 -1
- package/dist/chevron-right-DikqbHjp.js +12 -0
- package/dist/{chevron-top-Bx-QdB_J.js → chevron-top-BskFpgMP.js} +1 -1
- package/dist/chevron-top-CjCScawp.js +12 -0
- package/dist/{chrome-store-CGxM7IYK.js → chrome-store-CxhEG2Jk.js} +1 -1
- package/dist/chrome-store-DaP5Y4w2.js +65 -0
- package/dist/{clock-DLxk1mp4.js → clock-BDgHn083.js} +1 -1
- package/dist/clock-BzjZWK68.js +12 -0
- package/dist/{close-XyT_Ei7X.js → close-CQTa1LZg.js} +1 -1
- package/dist/close-Dqncm2nY.js +12 -0
- package/dist/{coinPlaceholder-COnVP39c.js → coinPlaceholder-B-NSV729.js} +1 -1
- package/dist/coinPlaceholder-BExfa33b.js +12 -0
- package/dist/{compass-B7Ua__ME.js → compass-BdJmk2w2.js} +1 -1
- package/dist/compass-C1H_fht-.js +12 -0
- package/dist/{copy-CwqmRN0X.js → copy-Cg4vgr82.js} +1 -1
- package/dist/copy-DPMVX3yZ.js +19 -0
- package/dist/{core-HN_b3jpG.js → core-BSwMFU2B.js} +6124 -4570
- package/dist/core-BYOwnw_B.js +16521 -0
- package/dist/{cursor-CZUzCZDa.js → cursor-BoD_rq0f.js} +1 -1
- package/dist/{cursor-transparent-C-iNJp5e.js → cursor-transparent-Dqs1kXcb.js} +1 -1
- package/dist/cursor-transparent-IQlZspwQ.js +16 -0
- package/dist/cursor-ybJpiPr6.js +7 -0
- package/dist/{desktop-CKvUvwiO.js → desktop-BOxkTik1.js} +1 -1
- package/dist/desktop-WMYv3b4Q.js +13 -0
- package/dist/{disconnect-Baq1ttCe.js → disconnect-CTxFyZWa.js} +1 -1
- package/dist/disconnect-eMeec26w.js +12 -0
- package/dist/{discord-D8jJPT-u.js → discord-BJRxIhBt.js} +1 -1
- package/dist/discord-CpTo4KnZ.js +21 -0
- package/dist/{down-CbXkinMO.js → down-372J_rRV.js} +2 -2
- package/dist/down-hvB7J3FG.js +622 -0
- package/dist/{etherscan-DmvsfmlR.js → etherscan-CyQf5MH5.js} +1 -1
- package/dist/etherscan-DQ1h54d3.js +10 -0
- package/dist/{exclamation-triangle-B5sVL0Op.js → exclamation-triangle-DFOXjtuI.js} +1 -1
- package/dist/exclamation-triangle-DzKs0-30.js +8 -0
- package/dist/{extension-DTURW9PD.js → extension-XiWSr1Ku.js} +1 -1
- package/dist/extension-ep1TEUSD.js +12 -0
- package/dist/{external-link-BhiyYwAM.js → external-link-CYjbHRDY.js} +1 -1
- package/dist/external-link-DRzzevt_.js +12 -0
- package/dist/{facebook-BKU8pCSU.js → facebook-DhP37m2R.js} +1 -1
- package/dist/facebook-eXS31CP5.js +30 -0
- package/dist/{farcaster-aPuBoT-f.js → farcaster-C1J2oGt2.js} +1 -1
- package/dist/farcaster-f0EPKy4w.js +16 -0
- package/dist/{filters-Dhcy_bWD.js → filters-C5jLy9GP.js} +1 -1
- package/dist/filters-RqawLZYy.js +12 -0
- package/dist/{getChainIds-hFBaLC3P.js → getChainIds-AaKb_MmO.js} +2 -2
- package/dist/getChainIds-DXEtLb1g.js +1888 -0
- package/dist/{getCosmosAddress-wW2QvGf4.js → getCosmosAddress-D-F7jz-d.js} +2 -2
- package/dist/getCosmosAddress-X_cfoAnv.js +9517 -0
- package/dist/{github-DpOcHBpK.js → github-CJ8g1by7.js} +1 -1
- package/dist/github-d1vUfc1B.js +22 -0
- package/dist/{google-Dlr5X4XZ.js → google-DpIVCnNm.js} +1 -1
- package/dist/google-Dtcfyt4F.js +22 -0
- package/dist/{hamburger-CbTP1z8e.js → hamburger-BylLGawu.js} +5 -5
- package/dist/hamburger-DezZOKRv.js +3915 -0
- package/dist/{help-circle-DfsreI1-.js → help-circle-BESCFGIa.js} +1 -1
- package/dist/help-circle-BTpSg7wr.js +16 -0
- package/dist/{id-CgVrDv4g.js → id-CPX0IEMo.js} +1 -1
- package/dist/id-CV-pIIiZ.js +16 -0
- package/dist/{image-BgZMfISb.js → image-DrFHyQOS.js} +1 -1
- package/dist/image-n7ODnWNp.js +8 -0
- package/dist/{index-CzIE4OVR.js → index-BDezoD7C.js} +1 -1
- package/dist/{index-DEzMTwnP.js → index-BOd8pd8c.js} +11 -11
- package/dist/index-BYmiFoJh.js +29495 -0
- package/dist/index-BheqnLKf.js +992 -0
- package/dist/{index-ij8WLtCK.js → index-C7McnY5R.js} +10 -10
- package/dist/{index-Dfnahm9u.js → index-CI-V1HdQ.js} +4 -4
- package/dist/{index-CQef3aFT.js → index-CSgWo9Cg.js} +5 -5
- package/dist/index-CViW2kjE.js +13547 -0
- package/dist/{index-W17Yun1B.js → index-CoV9zQx1.js} +78 -78
- package/dist/{index-BzlNNUJC.js → index-D0J1OD73.js} +4 -4
- package/dist/index-DO14DPs3.js +6713 -0
- package/dist/{index-BNAc3BNQ.js → index-D_8iklL2.js} +7 -7
- package/dist/{index-D-h2D2T4.js → index-DhZwdjPQ.js} +2 -2
- package/dist/{index-cmkdh21h.js → index-DjHDqI7m.js} +4 -4
- package/dist/{index-Doq8prid.js → index-DoNokw4Q.js} +1 -1
- package/dist/index-GlSAE8hE.js +472 -0
- package/dist/index-H7ThVJwV.js +3267 -0
- package/dist/index-Pni0gIii.js +206 -0
- package/dist/index-TEYMoNwP.js +9 -0
- package/dist/index-VS3sEqmI.js +330 -0
- package/dist/index-ePnYqYhf.js +1483 -0
- package/dist/index-eatshJSd.js +18509 -0
- package/dist/{index.es-DznYPOeF.js → index.es-B95K0DgG.js} +1 -1
- package/dist/index.es-BzyBckd_.js +366 -0
- package/dist/index.es-CMvE7ghR.js +14904 -0
- package/dist/index.es-gTtSa0r5.js +14904 -0
- package/dist/index.es.js +1 -1
- package/dist/{info-CZQMmcBD.js → info-DB9XS3BU.js} +1 -1
- package/dist/info-DWZmKXfC.js +7 -0
- package/dist/{info-circle-CA3WSSRD.js → info-circle-BVB8s9W_.js} +1 -1
- package/dist/info-circle-Bk9rpQzz.js +16 -0
- package/dist/{lightbulb-8ISYXfUt.js → lightbulb-C0eiLvuS.js} +1 -1
- package/dist/lightbulb-CUDopurR.js +7 -0
- package/dist/{mail-CHIth09p.js → mail-CYcc9yZZ.js} +1 -1
- package/dist/mail-Df9wlUBz.js +12 -0
- package/dist/{mobile-CrFtClXb.js → mobile-Cvm9Skqq.js} +1 -1
- package/dist/mobile-DcoUJktC.js +13 -0
- package/dist/{more-mHern-4V.js → more-B-UvO1Yo.js} +1 -1
- package/dist/more-DbsAB7Xx.js +15 -0
- package/dist/{network-placeholder-CoODkTLk.js → network-placeholder-C8QNcwPf.js} +1 -1
- package/dist/network-placeholder-CnHZLxGT.js +18 -0
- package/dist/{nftPlaceholder-CG7DC4DT.js → nftPlaceholder-C_LU9tT5.js} +1 -1
- package/dist/nftPlaceholder-D7igGAAq.js +12 -0
- package/dist/{off-CrgcN-zp.js → off-BEQbMYBZ.js} +1 -1
- package/dist/off-Brms9nN7.js +12 -0
- package/dist/{play-store-CQP9kqkp.js → play-store-CEopCauM.js} +1 -1
- package/dist/play-store-z4z-boXn.js +36 -0
- package/dist/{plus-DHA7xDuc.js → plus-CtEYHV2t.js} +1 -1
- package/dist/plus-LkrIZJEQ.js +17 -0
- package/dist/{qr-code-zibhnzKq.js → qr-code-BhmZxeo_.js} +1 -1
- package/dist/qr-code-CZnYaNoE.js +10 -0
- package/dist/{recycle-horizontal-DywyCULr.js → recycle-horizontal-CF9eqICi.js} +1 -1
- package/dist/recycle-horizontal-CeGotUdv.js +13 -0
- package/dist/{refresh-e2GocWQK.js → refresh-Bm3plkBE.js} +1 -1
- package/dist/refresh-CKhWU1dQ.js +12 -0
- package/dist/{reown-logo-BU64qOXz.js → reown-logo-8S9ZN_-T.js} +1 -1
- package/dist/reown-logo-CF2Qkyw1.js +16 -0
- package/dist/{search-DzxpvkH-.js → search-DNcA47oY.js} +1 -1
- package/dist/search-DyuAYb_-.js +12 -0
- package/dist/{send-r9Pjl4vo.js → send-B0S9gHH6.js} +1 -1
- package/dist/send-BbBOjlsM.js +19 -0
- package/dist/{swapHorizontal-BTrXWq48.js → swapHorizontal-BuTPPB8N.js} +1 -1
- package/dist/swapHorizontal-DA7yhPfV.js +12 -0
- package/dist/{swapHorizontalBold-CJqWkgp6.js → swapHorizontalBold-BnB-fpce.js} +1 -1
- package/dist/swapHorizontalBold-BujZxwgY.js +12 -0
- package/dist/{swapHorizontalMedium-DX7hDgRK.js → swapHorizontalMedium-9QnwwjJD.js} +1 -1
- package/dist/swapHorizontalMedium-hEBn_MJv.js +20 -0
- package/dist/{swapHorizontalRoundedBold-C51tXWKa.js → swapHorizontalRoundedBold-C83mxp3u.js} +1 -1
- package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +12 -0
- package/dist/{swapVertical-Crddwuzr.js → swapVertical-BAz7hmKO.js} +1 -1
- package/dist/swapVertical-D1CdGHJt.js +12 -0
- package/dist/{telegram-BC6rpZd8.js → telegram-BMT9bLfw.js} +1 -1
- package/dist/telegram-dDQ2sOw5.js +20 -0
- package/dist/{three-dots-DC9iZV71.js → three-dots-DuhUrXKI.js} +1 -1
- package/dist/three-dots-ltDeu1Xu.js +9 -0
- package/dist/{twitch-Dqthmddu.js → twitch-ClsoABSi.js} +1 -1
- package/dist/twitch-sBusnrAt.js +22 -0
- package/dist/{twitterIcon-DIWxOs67.js → twitterIcon-B9n98fnH.js} +1 -1
- package/dist/twitterIcon-BKMgaEZ4.js +10 -0
- package/dist/{unsupportedProp-BW6bMgdV.js → unsupportedProp-BXmR-9gT.js} +1 -1
- package/dist/unsupportedProp-P9y3_0om.js +10 -0
- package/dist/{useRegisterError-D0oAcJrb.js → useRegisterError-DGMdKFc9.js} +1 -1
- package/dist/useRegisterError-DVG0sgLq.js +8918 -0
- package/dist/{verify-GrViE51Y.js → verify-BHTa1Niv.js} +1 -1
- package/dist/verify-DXzijLDZ.js +12 -0
- package/dist/{verify-filled-Cws_QO3X.js → verify-filled-CqobBYuI.js} +1 -1
- package/dist/verify-filled-DnKqj8X5.js +12 -0
- package/dist/{w3m-modal-n7hzVP_I.js → w3m-modal-B7akV0Kp.js} +2 -2
- package/dist/w3m-modal-Cc1j8j_E.js +1471 -0
- package/dist/{wallet-Cd1ruTUh.js → wallet-ObJy7yZR.js} +1 -1
- package/dist/{wallet-placeholder-Ce4gGswZ.js → wallet-placeholder-BxVrKpEz.js} +1 -1
- package/dist/wallet-placeholder-DEsjd5Nv.js +18 -0
- package/dist/wallet-zL6TDKIa.js +12 -0
- package/dist/{walletconnect-CqpJhu9-.js → walletconnect-CYJbrPQQ.js} +1 -1
- package/dist/walletconnect-CZz6e0wy.js +36 -0
- package/dist/{warning-circle-DQ6ZS1NO.js → warning-circle-DOwgDOgL.js} +1 -1
- package/dist/warning-circle-DsGlg2MF.js +16 -0
- package/dist/{x-CR749er2.js → x-B03u0kWD.js} +1 -1
- package/dist/x-MwPhq03Y.js +16 -0
- package/package.json +1 -1
- package/dist/index.es-C8qSCFHh.js +0 -13234
@@ -0,0 +1,1888 @@
|
|
1
|
+
import { P as e, d as M, _ as Z, p as z, e as U, b as he, i as me, s as ee, E as Pe, g as ke, h as Me, u as ln, l as cn } from "./index-BYmiFoJh.js";
|
2
|
+
import * as u from "react";
|
3
|
+
import ue, { isValidElement as de, cloneElement as pe, Children as un } from "react";
|
4
|
+
import { jsx as A, jsxs as Ne } from "react/jsx-runtime";
|
5
|
+
import { h as dn, o as Y, _ as pn, p as Le, q as fn, b as re, s as hn, l as Q, r as mn, j as bn, T as gn, n as We, t as Ve, v as En, w as we, x as yn, y as Tn, m as Ae, P as Rn, H as xn } from "./useRegisterError-DGMdKFc9.js";
|
6
|
+
import { getWallet as vn, WalletType as Cn } from "graz";
|
7
|
+
function Pn(n) {
|
8
|
+
const {
|
9
|
+
prototype: t = {}
|
10
|
+
} = n;
|
11
|
+
return !!t.isReactComponent;
|
12
|
+
}
|
13
|
+
function kn(n, t, s, o, i) {
|
14
|
+
const r = n[t], a = i || t;
|
15
|
+
if (r == null || // When server-side rendering React doesn't warn either.
|
16
|
+
// This is not an accurate check for SSR.
|
17
|
+
// This is only in place for emotion compat.
|
18
|
+
// TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.
|
19
|
+
typeof window > "u")
|
20
|
+
return null;
|
21
|
+
let l;
|
22
|
+
return typeof r == "function" && !Pn(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
|
+
}
|
24
|
+
const Mn = dn(e.elementType, kn);
|
25
|
+
function _e(...n) {
|
26
|
+
return n.reduce((t, s) => s == null ? t : function(...i) {
|
27
|
+
t.apply(this, i), s.apply(this, i);
|
28
|
+
}, () => {
|
29
|
+
});
|
30
|
+
}
|
31
|
+
function Se(n) {
|
32
|
+
return Y(n).defaultView || window;
|
33
|
+
}
|
34
|
+
function Nn(n) {
|
35
|
+
const t = n.documentElement.clientWidth;
|
36
|
+
return Math.abs(window.innerWidth - t);
|
37
|
+
}
|
38
|
+
function wn(n) {
|
39
|
+
if (n === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
40
|
+
return n;
|
41
|
+
}
|
42
|
+
function Ie(n, t) {
|
43
|
+
var s = function(r) {
|
44
|
+
return t && de(r) ? t(r) : r;
|
45
|
+
}, o = /* @__PURE__ */ Object.create(null);
|
46
|
+
return n && un.map(n, function(i) {
|
47
|
+
return i;
|
48
|
+
}).forEach(function(i) {
|
49
|
+
o[i.key] = s(i);
|
50
|
+
}), o;
|
51
|
+
}
|
52
|
+
function Sn(n, t) {
|
53
|
+
n = n || {}, t = t || {};
|
54
|
+
function s(b) {
|
55
|
+
return b in t ? t[b] : n[b];
|
56
|
+
}
|
57
|
+
var o = /* @__PURE__ */ Object.create(null), i = [];
|
58
|
+
for (var r in n)
|
59
|
+
r in t ? i.length && (o[r] = i, i = []) : i.push(r);
|
60
|
+
var a, l = {};
|
61
|
+
for (var c in t) {
|
62
|
+
if (o[c])
|
63
|
+
for (a = 0; a < o[c].length; a++) {
|
64
|
+
var d = o[c][a];
|
65
|
+
l[o[c][a]] = s(d);
|
66
|
+
}
|
67
|
+
l[c] = s(c);
|
68
|
+
}
|
69
|
+
for (a = 0; a < i.length; a++)
|
70
|
+
l[i[a]] = s(i[a]);
|
71
|
+
return l;
|
72
|
+
}
|
73
|
+
function X(n, t, s) {
|
74
|
+
return s[t] != null ? s[t] : n.props[t];
|
75
|
+
}
|
76
|
+
function In(n, t) {
|
77
|
+
return Ie(n.children, function(s) {
|
78
|
+
return pe(s, {
|
79
|
+
onExited: t.bind(null, s),
|
80
|
+
in: !0,
|
81
|
+
appear: X(s, "appear", n),
|
82
|
+
enter: X(s, "enter", n),
|
83
|
+
exit: X(s, "exit", n)
|
84
|
+
});
|
85
|
+
});
|
86
|
+
}
|
87
|
+
function On(n, t, s) {
|
88
|
+
var o = Ie(n.children), i = Sn(t, o);
|
89
|
+
return Object.keys(i).forEach(function(r) {
|
90
|
+
var a = i[r];
|
91
|
+
if (de(a)) {
|
92
|
+
var l = r in t, c = r in o, d = t[r], b = de(d) && !d.props.in;
|
93
|
+
c && (!l || b) ? i[r] = pe(a, {
|
94
|
+
onExited: s.bind(null, a),
|
95
|
+
in: !0,
|
96
|
+
exit: X(a, "exit", n),
|
97
|
+
enter: X(a, "enter", n)
|
98
|
+
}) : !c && l && !b ? i[r] = pe(a, {
|
99
|
+
in: !1
|
100
|
+
}) : c && l && de(d) && (i[r] = pe(a, {
|
101
|
+
onExited: s.bind(null, a),
|
102
|
+
in: d.props.in,
|
103
|
+
exit: X(a, "exit", n),
|
104
|
+
enter: X(a, "enter", n)
|
105
|
+
}));
|
106
|
+
}
|
107
|
+
}), i;
|
108
|
+
}
|
109
|
+
var Bn = Object.values || function(n) {
|
110
|
+
return Object.keys(n).map(function(t) {
|
111
|
+
return n[t];
|
112
|
+
});
|
113
|
+
}, Fn = {
|
114
|
+
component: "div",
|
115
|
+
childFactory: function(t) {
|
116
|
+
return t;
|
117
|
+
}
|
118
|
+
}, Oe = /* @__PURE__ */ function(n) {
|
119
|
+
pn(t, n);
|
120
|
+
function t(o, i) {
|
121
|
+
var r;
|
122
|
+
r = n.call(this, o, i) || this;
|
123
|
+
var a = r.handleExited.bind(wn(r));
|
124
|
+
return r.state = {
|
125
|
+
contextValue: {
|
126
|
+
isMounting: !0
|
127
|
+
},
|
128
|
+
handleExited: a,
|
129
|
+
firstRender: !0
|
130
|
+
}, r;
|
131
|
+
}
|
132
|
+
var s = t.prototype;
|
133
|
+
return s.componentDidMount = function() {
|
134
|
+
this.mounted = !0, this.setState({
|
135
|
+
contextValue: {
|
136
|
+
isMounting: !1
|
137
|
+
}
|
138
|
+
});
|
139
|
+
}, s.componentWillUnmount = function() {
|
140
|
+
this.mounted = !1;
|
141
|
+
}, t.getDerivedStateFromProps = function(i, r) {
|
142
|
+
var a = r.children, l = r.handleExited, c = r.firstRender;
|
143
|
+
return {
|
144
|
+
children: c ? In(i, l) : On(i, a, l),
|
145
|
+
firstRender: !1
|
146
|
+
};
|
147
|
+
}, s.handleExited = function(i, r) {
|
148
|
+
var a = Ie(this.props.children);
|
149
|
+
i.key in a || (i.props.onExited && i.props.onExited(r), this.mounted && this.setState(function(l) {
|
150
|
+
var c = M({}, l.children);
|
151
|
+
return delete c[i.key], {
|
152
|
+
children: c
|
153
|
+
};
|
154
|
+
}));
|
155
|
+
}, s.render = function() {
|
156
|
+
var i = this.props, r = i.component, a = i.childFactory, l = Z(i, ["component", "childFactory"]), c = this.state.contextValue, d = Bn(this.state.children).map(a);
|
157
|
+
return delete l.appear, delete l.enter, delete l.exit, r === null ? /* @__PURE__ */ ue.createElement(Le.Provider, {
|
158
|
+
value: c
|
159
|
+
}, d) : /* @__PURE__ */ ue.createElement(Le.Provider, {
|
160
|
+
value: c
|
161
|
+
}, /* @__PURE__ */ ue.createElement(r, l, d));
|
162
|
+
}, t;
|
163
|
+
}(ue.Component);
|
164
|
+
Oe.propTypes = z.env.NODE_ENV !== "production" ? {
|
165
|
+
/**
|
166
|
+
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
167
|
+
* behavior by providing a `component` prop.
|
168
|
+
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
169
|
+
* you can pass in `component={null}`. This is useful if the wrapping div
|
170
|
+
* borks your css styles.
|
171
|
+
*/
|
172
|
+
component: e.any,
|
173
|
+
/**
|
174
|
+
* A set of `<Transition>` components, that are toggled `in` and out as they
|
175
|
+
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
176
|
+
* remember to spread them through if you are wrapping the `<Transition>` as
|
177
|
+
* with our `<Fade>` example.
|
178
|
+
*
|
179
|
+
* While this component is meant for multiple `Transition` or `CSSTransition`
|
180
|
+
* children, sometimes you may want to have a single transition child with
|
181
|
+
* content that you want to be transitioned out and in when you change it
|
182
|
+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
183
|
+
* the transition child as you change its content, this will cause
|
184
|
+
* `TransitionGroup` to transition the child out and back in.
|
185
|
+
*/
|
186
|
+
children: e.node,
|
187
|
+
/**
|
188
|
+
* A convenience prop that enables or disables appear animations
|
189
|
+
* for all children. Note that specifying this will override any defaults set
|
190
|
+
* on individual children Transitions.
|
191
|
+
*/
|
192
|
+
appear: e.bool,
|
193
|
+
/**
|
194
|
+
* A convenience prop that enables or disables enter animations
|
195
|
+
* for all children. Note that specifying this will override any defaults set
|
196
|
+
* on individual children Transitions.
|
197
|
+
*/
|
198
|
+
enter: e.bool,
|
199
|
+
/**
|
200
|
+
* A convenience prop that enables or disables exit animations
|
201
|
+
* for all children. Note that specifying this will override any defaults set
|
202
|
+
* on individual children Transitions.
|
203
|
+
*/
|
204
|
+
exit: e.bool,
|
205
|
+
/**
|
206
|
+
* You may need to apply reactive updates to a child as it is exiting.
|
207
|
+
* This is generally done by using `cloneElement` however in the case of an exiting
|
208
|
+
* child the element has already been removed and not accessible to the consumer.
|
209
|
+
*
|
210
|
+
* If you do need to update a child as it leaves you can provide a `childFactory`
|
211
|
+
* to wrap every child, even the ones that are leaving.
|
212
|
+
*
|
213
|
+
* @type Function(child: ReactElement) -> ReactElement
|
214
|
+
*/
|
215
|
+
childFactory: e.func
|
216
|
+
} : {};
|
217
|
+
Oe.defaultProps = Fn;
|
218
|
+
function qe(n) {
|
219
|
+
const {
|
220
|
+
className: t,
|
221
|
+
classes: s,
|
222
|
+
pulsate: o = !1,
|
223
|
+
rippleX: i,
|
224
|
+
rippleY: r,
|
225
|
+
rippleSize: a,
|
226
|
+
in: l,
|
227
|
+
onExited: c,
|
228
|
+
timeout: d
|
229
|
+
} = n, [b, y] = u.useState(!1), x = U(t, s.ripple, s.rippleVisible, o && s.ripplePulsate), v = {
|
230
|
+
width: a,
|
231
|
+
height: a,
|
232
|
+
top: -(a / 2) + r,
|
233
|
+
left: -(a / 2) + i
|
234
|
+
}, p = U(s.child, b && s.childLeaving, o && s.childPulsate);
|
235
|
+
return !l && !b && y(!0), u.useEffect(() => {
|
236
|
+
if (!l && c != null) {
|
237
|
+
const w = setTimeout(c, d);
|
238
|
+
return () => {
|
239
|
+
clearTimeout(w);
|
240
|
+
};
|
241
|
+
}
|
242
|
+
}, [c, l, d]), /* @__PURE__ */ A("span", {
|
243
|
+
className: x,
|
244
|
+
style: v,
|
245
|
+
children: /* @__PURE__ */ A("span", {
|
246
|
+
className: p
|
247
|
+
})
|
248
|
+
});
|
249
|
+
}
|
250
|
+
z.env.NODE_ENV !== "production" && (qe.propTypes = {
|
251
|
+
/**
|
252
|
+
* Override or extend the styles applied to the component.
|
253
|
+
*/
|
254
|
+
classes: e.object.isRequired,
|
255
|
+
className: e.string,
|
256
|
+
/**
|
257
|
+
* @ignore - injected from TransitionGroup
|
258
|
+
*/
|
259
|
+
in: e.bool,
|
260
|
+
/**
|
261
|
+
* @ignore - injected from TransitionGroup
|
262
|
+
*/
|
263
|
+
onExited: e.func,
|
264
|
+
/**
|
265
|
+
* If `true`, the ripple pulsates, typically indicating the keyboard focus state of an element.
|
266
|
+
*/
|
267
|
+
pulsate: e.bool,
|
268
|
+
/**
|
269
|
+
* Diameter of the ripple.
|
270
|
+
*/
|
271
|
+
rippleSize: e.number,
|
272
|
+
/**
|
273
|
+
* Horizontal position of the ripple center.
|
274
|
+
*/
|
275
|
+
rippleX: e.number,
|
276
|
+
/**
|
277
|
+
* Vertical position of the ripple center.
|
278
|
+
*/
|
279
|
+
rippleY: e.number,
|
280
|
+
/**
|
281
|
+
* exit delay
|
282
|
+
*/
|
283
|
+
timeout: e.number.isRequired
|
284
|
+
});
|
285
|
+
const H = he("MuiTouchRipple", ["root", "ripple", "rippleVisible", "ripplePulsate", "child", "childLeaving", "childPulsate"]), Dn = ["center", "classes", "className"];
|
286
|
+
let be = (n) => n, $e, je, Ue, He;
|
287
|
+
const Ce = 550, Ln = 80, Vn = Pe($e || ($e = be`
|
288
|
+
0% {
|
289
|
+
transform: scale(0);
|
290
|
+
opacity: 0.1;
|
291
|
+
}
|
292
|
+
|
293
|
+
100% {
|
294
|
+
transform: scale(1);
|
295
|
+
opacity: 0.3;
|
296
|
+
}
|
297
|
+
`)), An = Pe(je || (je = be`
|
298
|
+
0% {
|
299
|
+
opacity: 1;
|
300
|
+
}
|
301
|
+
|
302
|
+
100% {
|
303
|
+
opacity: 0;
|
304
|
+
}
|
305
|
+
`)), _n = Pe(Ue || (Ue = be`
|
306
|
+
0% {
|
307
|
+
transform: scale(1);
|
308
|
+
}
|
309
|
+
|
310
|
+
50% {
|
311
|
+
transform: scale(0.92);
|
312
|
+
}
|
313
|
+
|
314
|
+
100% {
|
315
|
+
transform: scale(1);
|
316
|
+
}
|
317
|
+
`)), $n = ee("span", {
|
318
|
+
name: "MuiTouchRipple",
|
319
|
+
slot: "Root"
|
320
|
+
})({
|
321
|
+
overflow: "hidden",
|
322
|
+
pointerEvents: "none",
|
323
|
+
position: "absolute",
|
324
|
+
zIndex: 0,
|
325
|
+
top: 0,
|
326
|
+
right: 0,
|
327
|
+
bottom: 0,
|
328
|
+
left: 0,
|
329
|
+
borderRadius: "inherit"
|
330
|
+
}), jn = ee(qe, {
|
331
|
+
name: "MuiTouchRipple",
|
332
|
+
slot: "Ripple"
|
333
|
+
})(He || (He = be`
|
334
|
+
opacity: 0;
|
335
|
+
position: absolute;
|
336
|
+
|
337
|
+
&.${0} {
|
338
|
+
opacity: 0.3;
|
339
|
+
transform: scale(1);
|
340
|
+
animation-name: ${0};
|
341
|
+
animation-duration: ${0}ms;
|
342
|
+
animation-timing-function: ${0};
|
343
|
+
}
|
344
|
+
|
345
|
+
&.${0} {
|
346
|
+
animation-duration: ${0}ms;
|
347
|
+
}
|
348
|
+
|
349
|
+
& .${0} {
|
350
|
+
opacity: 1;
|
351
|
+
display: block;
|
352
|
+
width: 100%;
|
353
|
+
height: 100%;
|
354
|
+
border-radius: 50%;
|
355
|
+
background-color: currentColor;
|
356
|
+
}
|
357
|
+
|
358
|
+
& .${0} {
|
359
|
+
opacity: 0;
|
360
|
+
animation-name: ${0};
|
361
|
+
animation-duration: ${0}ms;
|
362
|
+
animation-timing-function: ${0};
|
363
|
+
}
|
364
|
+
|
365
|
+
& .${0} {
|
366
|
+
position: absolute;
|
367
|
+
/* @noflip */
|
368
|
+
left: 0px;
|
369
|
+
top: 0;
|
370
|
+
animation-name: ${0};
|
371
|
+
animation-duration: 2500ms;
|
372
|
+
animation-timing-function: ${0};
|
373
|
+
animation-iteration-count: infinite;
|
374
|
+
animation-delay: 200ms;
|
375
|
+
}
|
376
|
+
`), H.rippleVisible, Vn, Ce, ({
|
377
|
+
theme: n
|
378
|
+
}) => n.transitions.easing.easeInOut, H.ripplePulsate, ({
|
379
|
+
theme: n
|
380
|
+
}) => n.transitions.duration.shorter, H.child, H.childLeaving, An, Ce, ({
|
381
|
+
theme: n
|
382
|
+
}) => n.transitions.easing.easeInOut, H.childPulsate, _n, ({
|
383
|
+
theme: n
|
384
|
+
}) => n.transitions.easing.easeInOut), Ye = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
385
|
+
const o = me({
|
386
|
+
props: t,
|
387
|
+
name: "MuiTouchRipple"
|
388
|
+
}), {
|
389
|
+
center: i = !1,
|
390
|
+
classes: r = {},
|
391
|
+
className: a
|
392
|
+
} = o, l = Z(o, Dn), [c, d] = u.useState([]), b = u.useRef(0), y = u.useRef(null);
|
393
|
+
u.useEffect(() => {
|
394
|
+
y.current && (y.current(), y.current = null);
|
395
|
+
}, [c]);
|
396
|
+
const x = u.useRef(!1), v = fn(), p = u.useRef(null), w = u.useRef(null), B = u.useCallback((f) => {
|
397
|
+
const {
|
398
|
+
pulsate: T,
|
399
|
+
rippleX: C,
|
400
|
+
rippleY: k,
|
401
|
+
rippleSize: I,
|
402
|
+
cb: _
|
403
|
+
} = f;
|
404
|
+
d((P) => [...P, /* @__PURE__ */ A(jn, {
|
405
|
+
classes: {
|
406
|
+
ripple: U(r.ripple, H.ripple),
|
407
|
+
rippleVisible: U(r.rippleVisible, H.rippleVisible),
|
408
|
+
ripplePulsate: U(r.ripplePulsate, H.ripplePulsate),
|
409
|
+
child: U(r.child, H.child),
|
410
|
+
childLeaving: U(r.childLeaving, H.childLeaving),
|
411
|
+
childPulsate: U(r.childPulsate, H.childPulsate)
|
412
|
+
},
|
413
|
+
timeout: Ce,
|
414
|
+
pulsate: T,
|
415
|
+
rippleX: C,
|
416
|
+
rippleY: k,
|
417
|
+
rippleSize: I
|
418
|
+
}, b.current)]), b.current += 1, y.current = _;
|
419
|
+
}, [r]), S = u.useCallback((f = {}, T = {}, C = () => {
|
420
|
+
}) => {
|
421
|
+
const {
|
422
|
+
pulsate: k = !1,
|
423
|
+
center: I = i || T.pulsate,
|
424
|
+
fakeElement: _ = !1
|
425
|
+
// For test purposes
|
426
|
+
} = T;
|
427
|
+
if ((f == null ? void 0 : f.type) === "mousedown" && x.current) {
|
428
|
+
x.current = !1;
|
429
|
+
return;
|
430
|
+
}
|
431
|
+
(f == null ? void 0 : f.type) === "touchstart" && (x.current = !0);
|
432
|
+
const P = _ ? null : w.current, V = P ? P.getBoundingClientRect() : {
|
433
|
+
width: 0,
|
434
|
+
height: 0,
|
435
|
+
left: 0,
|
436
|
+
top: 0
|
437
|
+
};
|
438
|
+
let D, L, E;
|
439
|
+
if (I || f === void 0 || f.clientX === 0 && f.clientY === 0 || !f.clientX && !f.touches)
|
440
|
+
D = Math.round(V.width / 2), L = Math.round(V.height / 2);
|
441
|
+
else {
|
442
|
+
const {
|
443
|
+
clientX: O,
|
444
|
+
clientY: g
|
445
|
+
} = f.touches && f.touches.length > 0 ? f.touches[0] : f;
|
446
|
+
D = Math.round(O - V.left), L = Math.round(g - V.top);
|
447
|
+
}
|
448
|
+
if (I)
|
449
|
+
E = Math.sqrt((2 * V.width ** 2 + V.height ** 2) / 3), E % 2 === 0 && (E += 1);
|
450
|
+
else {
|
451
|
+
const O = Math.max(Math.abs((P ? P.clientWidth : 0) - D), D) * 2 + 2, g = Math.max(Math.abs((P ? P.clientHeight : 0) - L), L) * 2 + 2;
|
452
|
+
E = Math.sqrt(O ** 2 + g ** 2);
|
453
|
+
}
|
454
|
+
f != null && f.touches ? p.current === null && (p.current = () => {
|
455
|
+
B({
|
456
|
+
pulsate: k,
|
457
|
+
rippleX: D,
|
458
|
+
rippleY: L,
|
459
|
+
rippleSize: E,
|
460
|
+
cb: C
|
461
|
+
});
|
462
|
+
}, v.start(Ln, () => {
|
463
|
+
p.current && (p.current(), p.current = null);
|
464
|
+
})) : B({
|
465
|
+
pulsate: k,
|
466
|
+
rippleX: D,
|
467
|
+
rippleY: L,
|
468
|
+
rippleSize: E,
|
469
|
+
cb: C
|
470
|
+
});
|
471
|
+
}, [i, B, v]), F = u.useCallback(() => {
|
472
|
+
S({}, {
|
473
|
+
pulsate: !0
|
474
|
+
});
|
475
|
+
}, [S]), h = u.useCallback((f, T) => {
|
476
|
+
if (v.clear(), (f == null ? void 0 : f.type) === "touchend" && p.current) {
|
477
|
+
p.current(), p.current = null, v.start(0, () => {
|
478
|
+
h(f, T);
|
479
|
+
});
|
480
|
+
return;
|
481
|
+
}
|
482
|
+
p.current = null, d((C) => C.length > 0 ? C.slice(1) : C), y.current = T;
|
483
|
+
}, [v]);
|
484
|
+
return u.useImperativeHandle(s, () => ({
|
485
|
+
pulsate: F,
|
486
|
+
start: S,
|
487
|
+
stop: h
|
488
|
+
}), [F, S, h]), /* @__PURE__ */ A($n, M({
|
489
|
+
className: U(H.root, r.root, a),
|
490
|
+
ref: w
|
491
|
+
}, l, {
|
492
|
+
children: /* @__PURE__ */ A(Oe, {
|
493
|
+
component: null,
|
494
|
+
exit: !0,
|
495
|
+
children: c
|
496
|
+
})
|
497
|
+
}));
|
498
|
+
});
|
499
|
+
z.env.NODE_ENV !== "production" && (Ye.propTypes = {
|
500
|
+
/**
|
501
|
+
* If `true`, the ripple starts at the center of the component
|
502
|
+
* rather than at the point of interaction.
|
503
|
+
*/
|
504
|
+
center: e.bool,
|
505
|
+
/**
|
506
|
+
* Override or extend the styles applied to the component.
|
507
|
+
*/
|
508
|
+
classes: e.object,
|
509
|
+
/**
|
510
|
+
* @ignore
|
511
|
+
*/
|
512
|
+
className: e.string
|
513
|
+
});
|
514
|
+
function Un(n) {
|
515
|
+
return ke("MuiButtonBase", n);
|
516
|
+
}
|
517
|
+
const Hn = he("MuiButtonBase", ["root", "disabled", "focusVisible"]), Kn = ["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"], zn = (n) => {
|
518
|
+
const {
|
519
|
+
disabled: t,
|
520
|
+
focusVisible: s,
|
521
|
+
focusVisibleClassName: o,
|
522
|
+
classes: i
|
523
|
+
} = n, a = Me({
|
524
|
+
root: ["root", t && "disabled", s && "focusVisible"]
|
525
|
+
}, Un, i);
|
526
|
+
return s && o && (a.root += ` ${o}`), a;
|
527
|
+
}, Wn = ee("button", {
|
528
|
+
name: "MuiButtonBase",
|
529
|
+
slot: "Root",
|
530
|
+
overridesResolver: (n, t) => t.root
|
531
|
+
})({
|
532
|
+
display: "inline-flex",
|
533
|
+
alignItems: "center",
|
534
|
+
justifyContent: "center",
|
535
|
+
position: "relative",
|
536
|
+
boxSizing: "border-box",
|
537
|
+
WebkitTapHighlightColor: "transparent",
|
538
|
+
backgroundColor: "transparent",
|
539
|
+
// Reset default value
|
540
|
+
// We disable the focus ring for mouse, touch and keyboard users.
|
541
|
+
outline: 0,
|
542
|
+
border: 0,
|
543
|
+
margin: 0,
|
544
|
+
// Remove the margin in Safari
|
545
|
+
borderRadius: 0,
|
546
|
+
padding: 0,
|
547
|
+
// Remove the padding in Firefox
|
548
|
+
cursor: "pointer",
|
549
|
+
userSelect: "none",
|
550
|
+
verticalAlign: "middle",
|
551
|
+
MozAppearance: "none",
|
552
|
+
// Reset
|
553
|
+
WebkitAppearance: "none",
|
554
|
+
// Reset
|
555
|
+
textDecoration: "none",
|
556
|
+
// So we take precedent over the style of a native <a /> element.
|
557
|
+
color: "inherit",
|
558
|
+
"&::-moz-focus-inner": {
|
559
|
+
borderStyle: "none"
|
560
|
+
// Remove Firefox dotted outline.
|
561
|
+
},
|
562
|
+
[`&.${Hn.disabled}`]: {
|
563
|
+
pointerEvents: "none",
|
564
|
+
// Disable link interactions
|
565
|
+
cursor: "default"
|
566
|
+
},
|
567
|
+
"@media print": {
|
568
|
+
colorAdjust: "exact"
|
569
|
+
}
|
570
|
+
}), qn = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
571
|
+
const o = me({
|
572
|
+
props: t,
|
573
|
+
name: "MuiButtonBase"
|
574
|
+
}), {
|
575
|
+
action: i,
|
576
|
+
centerRipple: r = !1,
|
577
|
+
children: a,
|
578
|
+
className: l,
|
579
|
+
component: c = "button",
|
580
|
+
disabled: d = !1,
|
581
|
+
disableRipple: b = !1,
|
582
|
+
disableTouchRipple: y = !1,
|
583
|
+
focusRipple: x = !1,
|
584
|
+
LinkComponent: v = "a",
|
585
|
+
onBlur: p,
|
586
|
+
onClick: w,
|
587
|
+
onContextMenu: B,
|
588
|
+
onDragLeave: S,
|
589
|
+
onFocus: F,
|
590
|
+
onFocusVisible: h,
|
591
|
+
onKeyDown: f,
|
592
|
+
onKeyUp: T,
|
593
|
+
onMouseDown: C,
|
594
|
+
onMouseLeave: k,
|
595
|
+
onMouseUp: I,
|
596
|
+
onTouchEnd: _,
|
597
|
+
onTouchMove: P,
|
598
|
+
onTouchStart: V,
|
599
|
+
tabIndex: D = 0,
|
600
|
+
TouchRippleProps: L,
|
601
|
+
touchRippleRef: E,
|
602
|
+
type: O
|
603
|
+
} = o, g = Z(o, Kn), R = u.useRef(null), N = u.useRef(null), ge = re(N, E), {
|
604
|
+
isFocusVisibleRef: se,
|
605
|
+
onFocus: Ee,
|
606
|
+
onBlur: ie,
|
607
|
+
ref: ae
|
608
|
+
} = hn(), [$, K] = u.useState(!1);
|
609
|
+
d && $ && K(!1), u.useImperativeHandle(i, () => ({
|
610
|
+
focusVisible: () => {
|
611
|
+
K(!0), R.current.focus();
|
612
|
+
}
|
613
|
+
}), []);
|
614
|
+
const [W, le] = u.useState(!1);
|
615
|
+
u.useEffect(() => {
|
616
|
+
le(!0);
|
617
|
+
}, []);
|
618
|
+
const G = W && !b && !d;
|
619
|
+
u.useEffect(() => {
|
620
|
+
$ && x && !b && W && N.current.pulsate();
|
621
|
+
}, [b, x, $, W]);
|
622
|
+
function j(m, Fe, an = y) {
|
623
|
+
return Q((De) => (Fe && Fe(De), !an && N.current && N.current[m](De), !0));
|
624
|
+
}
|
625
|
+
const ne = j("start", C), ye = j("stop", B), Te = j("stop", S), q = j("stop", I), J = j("stop", (m) => {
|
626
|
+
$ && m.preventDefault(), k && k(m);
|
627
|
+
}), Je = j("start", V), Qe = j("stop", _), Ze = j("stop", P), en = j("stop", (m) => {
|
628
|
+
ie(m), se.current === !1 && K(!1), p && p(m);
|
629
|
+
}, !1), nn = Q((m) => {
|
630
|
+
R.current || (R.current = m.currentTarget), Ee(m), se.current === !0 && (K(!0), h && h(m)), F && F(m);
|
631
|
+
}), Re = () => {
|
632
|
+
const m = R.current;
|
633
|
+
return c && c !== "button" && !(m.tagName === "A" && m.href);
|
634
|
+
}, xe = u.useRef(!1), tn = Q((m) => {
|
635
|
+
x && !xe.current && $ && N.current && m.key === " " && (xe.current = !0, N.current.stop(m, () => {
|
636
|
+
N.current.start(m);
|
637
|
+
})), m.target === m.currentTarget && Re() && m.key === " " && m.preventDefault(), f && f(m), m.target === m.currentTarget && Re() && m.key === "Enter" && !d && (m.preventDefault(), w && w(m));
|
638
|
+
}), on = Q((m) => {
|
639
|
+
x && m.key === " " && N.current && $ && !m.defaultPrevented && (xe.current = !1, N.current.stop(m, () => {
|
640
|
+
N.current.pulsate(m);
|
641
|
+
})), T && T(m), w && m.target === m.currentTarget && Re() && m.key === " " && !m.defaultPrevented && w(m);
|
642
|
+
});
|
643
|
+
let ce = c;
|
644
|
+
ce === "button" && (g.href || g.to) && (ce = v);
|
645
|
+
const te = {};
|
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
|
+
const rn = re(s, ae, R);
|
648
|
+
z.env.NODE_ENV !== "production" && u.useEffect(() => {
|
649
|
+
G && N.current;
|
650
|
+
}, [G]);
|
651
|
+
const Be = M({}, o, {
|
652
|
+
centerRipple: r,
|
653
|
+
component: c,
|
654
|
+
disabled: d,
|
655
|
+
disableRipple: b,
|
656
|
+
disableTouchRipple: y,
|
657
|
+
focusRipple: x,
|
658
|
+
tabIndex: D,
|
659
|
+
focusVisible: $
|
660
|
+
}), sn = zn(Be);
|
661
|
+
return /* @__PURE__ */ Ne(Wn, M({
|
662
|
+
as: ce,
|
663
|
+
className: U(sn.root, l),
|
664
|
+
ownerState: Be,
|
665
|
+
onBlur: en,
|
666
|
+
onClick: w,
|
667
|
+
onContextMenu: ye,
|
668
|
+
onFocus: nn,
|
669
|
+
onKeyDown: tn,
|
670
|
+
onKeyUp: on,
|
671
|
+
onMouseDown: ne,
|
672
|
+
onMouseLeave: J,
|
673
|
+
onMouseUp: q,
|
674
|
+
onDragLeave: Te,
|
675
|
+
onTouchEnd: Qe,
|
676
|
+
onTouchMove: Ze,
|
677
|
+
onTouchStart: Je,
|
678
|
+
ref: rn,
|
679
|
+
tabIndex: d ? -1 : D,
|
680
|
+
type: O
|
681
|
+
}, te, g, {
|
682
|
+
children: [a, G ? (
|
683
|
+
/* TouchRipple is only needed client-side, x2 boost on the server. */
|
684
|
+
/* @__PURE__ */ A(Ye, M({
|
685
|
+
ref: ge,
|
686
|
+
center: r
|
687
|
+
}, L))
|
688
|
+
) : null]
|
689
|
+
}));
|
690
|
+
});
|
691
|
+
z.env.NODE_ENV !== "production" && (qn.propTypes = {
|
692
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
693
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
694
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
695
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
696
|
+
/**
|
697
|
+
* A ref for imperative actions.
|
698
|
+
* It currently only supports `focusVisible()` action.
|
699
|
+
*/
|
700
|
+
action: mn,
|
701
|
+
/**
|
702
|
+
* If `true`, the ripples are centered.
|
703
|
+
* They won't start at the cursor interaction position.
|
704
|
+
* @default false
|
705
|
+
*/
|
706
|
+
centerRipple: e.bool,
|
707
|
+
/**
|
708
|
+
* The content of the component.
|
709
|
+
*/
|
710
|
+
children: e.node,
|
711
|
+
/**
|
712
|
+
* Override or extend the styles applied to the component.
|
713
|
+
*/
|
714
|
+
classes: e.object,
|
715
|
+
/**
|
716
|
+
* @ignore
|
717
|
+
*/
|
718
|
+
className: e.string,
|
719
|
+
/**
|
720
|
+
* The component used for the root node.
|
721
|
+
* Either a string to use a HTML element or a component.
|
722
|
+
*/
|
723
|
+
component: Mn,
|
724
|
+
/**
|
725
|
+
* If `true`, the component is disabled.
|
726
|
+
* @default false
|
727
|
+
*/
|
728
|
+
disabled: e.bool,
|
729
|
+
/**
|
730
|
+
* If `true`, the ripple effect is disabled.
|
731
|
+
*
|
732
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
733
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
734
|
+
* @default false
|
735
|
+
*/
|
736
|
+
disableRipple: e.bool,
|
737
|
+
/**
|
738
|
+
* If `true`, the touch ripple effect is disabled.
|
739
|
+
* @default false
|
740
|
+
*/
|
741
|
+
disableTouchRipple: e.bool,
|
742
|
+
/**
|
743
|
+
* If `true`, the base button will have a keyboard focus ripple.
|
744
|
+
* @default false
|
745
|
+
*/
|
746
|
+
focusRipple: e.bool,
|
747
|
+
/**
|
748
|
+
* This prop can help identify which element has keyboard focus.
|
749
|
+
* The class name will be applied when the element gains the focus through keyboard interaction.
|
750
|
+
* It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).
|
751
|
+
* The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).
|
752
|
+
* A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components
|
753
|
+
* if needed.
|
754
|
+
*/
|
755
|
+
focusVisibleClassName: e.string,
|
756
|
+
/**
|
757
|
+
* @ignore
|
758
|
+
*/
|
759
|
+
href: e.any,
|
760
|
+
/**
|
761
|
+
* The component used to render a link when the `href` prop is provided.
|
762
|
+
* @default 'a'
|
763
|
+
*/
|
764
|
+
LinkComponent: e.elementType,
|
765
|
+
/**
|
766
|
+
* @ignore
|
767
|
+
*/
|
768
|
+
onBlur: e.func,
|
769
|
+
/**
|
770
|
+
* @ignore
|
771
|
+
*/
|
772
|
+
onClick: e.func,
|
773
|
+
/**
|
774
|
+
* @ignore
|
775
|
+
*/
|
776
|
+
onContextMenu: e.func,
|
777
|
+
/**
|
778
|
+
* @ignore
|
779
|
+
*/
|
780
|
+
onDragLeave: e.func,
|
781
|
+
/**
|
782
|
+
* @ignore
|
783
|
+
*/
|
784
|
+
onFocus: e.func,
|
785
|
+
/**
|
786
|
+
* Callback fired when the component is focused with a keyboard.
|
787
|
+
* We trigger a `onFocus` callback too.
|
788
|
+
*/
|
789
|
+
onFocusVisible: e.func,
|
790
|
+
/**
|
791
|
+
* @ignore
|
792
|
+
*/
|
793
|
+
onKeyDown: e.func,
|
794
|
+
/**
|
795
|
+
* @ignore
|
796
|
+
*/
|
797
|
+
onKeyUp: e.func,
|
798
|
+
/**
|
799
|
+
* @ignore
|
800
|
+
*/
|
801
|
+
onMouseDown: e.func,
|
802
|
+
/**
|
803
|
+
* @ignore
|
804
|
+
*/
|
805
|
+
onMouseLeave: e.func,
|
806
|
+
/**
|
807
|
+
* @ignore
|
808
|
+
*/
|
809
|
+
onMouseUp: e.func,
|
810
|
+
/**
|
811
|
+
* @ignore
|
812
|
+
*/
|
813
|
+
onTouchEnd: e.func,
|
814
|
+
/**
|
815
|
+
* @ignore
|
816
|
+
*/
|
817
|
+
onTouchMove: e.func,
|
818
|
+
/**
|
819
|
+
* @ignore
|
820
|
+
*/
|
821
|
+
onTouchStart: e.func,
|
822
|
+
/**
|
823
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
824
|
+
*/
|
825
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
826
|
+
/**
|
827
|
+
* @default 0
|
828
|
+
*/
|
829
|
+
tabIndex: e.number,
|
830
|
+
/**
|
831
|
+
* Props applied to the `TouchRipple` element.
|
832
|
+
*/
|
833
|
+
TouchRippleProps: e.object,
|
834
|
+
/**
|
835
|
+
* A ref that points to the `TouchRipple` element.
|
836
|
+
*/
|
837
|
+
touchRippleRef: e.oneOfType([e.func, e.shape({
|
838
|
+
current: e.shape({
|
839
|
+
pulsate: e.func.isRequired,
|
840
|
+
start: e.func.isRequired,
|
841
|
+
stop: e.func.isRequired
|
842
|
+
})
|
843
|
+
})]),
|
844
|
+
/**
|
845
|
+
* @ignore
|
846
|
+
*/
|
847
|
+
type: e.oneOfType([e.oneOf(["button", "reset", "submit"]), e.string])
|
848
|
+
});
|
849
|
+
const Yn = ["addEndListener", "appear", "children", "easing", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"], Xn = {
|
850
|
+
entering: {
|
851
|
+
opacity: 1
|
852
|
+
},
|
853
|
+
entered: {
|
854
|
+
opacity: 1
|
855
|
+
}
|
856
|
+
}, Xe = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
857
|
+
const o = bn(), i = {
|
858
|
+
enter: o.transitions.duration.enteringScreen,
|
859
|
+
exit: o.transitions.duration.leavingScreen
|
860
|
+
}, {
|
861
|
+
addEndListener: r,
|
862
|
+
appear: a = !0,
|
863
|
+
children: l,
|
864
|
+
easing: c,
|
865
|
+
in: d,
|
866
|
+
onEnter: b,
|
867
|
+
onEntered: y,
|
868
|
+
onEntering: x,
|
869
|
+
onExit: v,
|
870
|
+
onExited: p,
|
871
|
+
onExiting: w,
|
872
|
+
style: B,
|
873
|
+
timeout: S = i,
|
874
|
+
// eslint-disable-next-line react/prop-types
|
875
|
+
TransitionComponent: F = gn
|
876
|
+
} = t, h = Z(t, Yn), f = u.useRef(null), T = re(f, We(l), s), C = (E) => (O) => {
|
877
|
+
if (E) {
|
878
|
+
const g = f.current;
|
879
|
+
O === void 0 ? E(g) : E(g, O);
|
880
|
+
}
|
881
|
+
}, k = C(x), I = C((E, O) => {
|
882
|
+
En(E);
|
883
|
+
const g = Ve({
|
884
|
+
style: B,
|
885
|
+
timeout: S,
|
886
|
+
easing: c
|
887
|
+
}, {
|
888
|
+
mode: "enter"
|
889
|
+
});
|
890
|
+
E.style.webkitTransition = o.transitions.create("opacity", g), E.style.transition = o.transitions.create("opacity", g), b && b(E, O);
|
891
|
+
}), _ = C(y), P = C(w), V = C((E) => {
|
892
|
+
const O = Ve({
|
893
|
+
style: B,
|
894
|
+
timeout: S,
|
895
|
+
easing: c
|
896
|
+
}, {
|
897
|
+
mode: "exit"
|
898
|
+
});
|
899
|
+
E.style.webkitTransition = o.transitions.create("opacity", O), E.style.transition = o.transitions.create("opacity", O), v && v(E);
|
900
|
+
}), D = C(p);
|
901
|
+
return /* @__PURE__ */ A(F, M({
|
902
|
+
appear: a,
|
903
|
+
in: d,
|
904
|
+
nodeRef: f,
|
905
|
+
onEnter: I,
|
906
|
+
onEntered: _,
|
907
|
+
onEntering: k,
|
908
|
+
onExit: V,
|
909
|
+
onExited: D,
|
910
|
+
onExiting: P,
|
911
|
+
addEndListener: (E) => {
|
912
|
+
r && r(f.current, E);
|
913
|
+
},
|
914
|
+
timeout: S
|
915
|
+
}, h, {
|
916
|
+
children: (E, O) => /* @__PURE__ */ u.cloneElement(l, M({
|
917
|
+
style: M({
|
918
|
+
opacity: 0,
|
919
|
+
visibility: E === "exited" && !d ? "hidden" : void 0
|
920
|
+
}, Xn[E], B, l.props.style),
|
921
|
+
ref: T
|
922
|
+
}, O))
|
923
|
+
}));
|
924
|
+
});
|
925
|
+
z.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
926
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
927
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
928
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
929
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
930
|
+
/**
|
931
|
+
* Add a custom transition end trigger. Called with the transitioning DOM
|
932
|
+
* node and a done callback. Allows for more fine grained transition end
|
933
|
+
* logic. Note: Timeouts are still used as a fallback if provided.
|
934
|
+
*/
|
935
|
+
addEndListener: e.func,
|
936
|
+
/**
|
937
|
+
* Perform the enter transition when it first mounts if `in` is also `true`.
|
938
|
+
* Set this to `false` to disable this behavior.
|
939
|
+
* @default true
|
940
|
+
*/
|
941
|
+
appear: e.bool,
|
942
|
+
/**
|
943
|
+
* A single child content element.
|
944
|
+
*/
|
945
|
+
children: we.isRequired,
|
946
|
+
/**
|
947
|
+
* The transition timing function.
|
948
|
+
* You may specify a single easing or a object containing enter and exit values.
|
949
|
+
*/
|
950
|
+
easing: e.oneOfType([e.shape({
|
951
|
+
enter: e.string,
|
952
|
+
exit: e.string
|
953
|
+
}), e.string]),
|
954
|
+
/**
|
955
|
+
* If `true`, the component will transition in.
|
956
|
+
*/
|
957
|
+
in: e.bool,
|
958
|
+
/**
|
959
|
+
* @ignore
|
960
|
+
*/
|
961
|
+
onEnter: e.func,
|
962
|
+
/**
|
963
|
+
* @ignore
|
964
|
+
*/
|
965
|
+
onEntered: e.func,
|
966
|
+
/**
|
967
|
+
* @ignore
|
968
|
+
*/
|
969
|
+
onEntering: e.func,
|
970
|
+
/**
|
971
|
+
* @ignore
|
972
|
+
*/
|
973
|
+
onExit: e.func,
|
974
|
+
/**
|
975
|
+
* @ignore
|
976
|
+
*/
|
977
|
+
onExited: e.func,
|
978
|
+
/**
|
979
|
+
* @ignore
|
980
|
+
*/
|
981
|
+
onExiting: e.func,
|
982
|
+
/**
|
983
|
+
* @ignore
|
984
|
+
*/
|
985
|
+
style: e.object,
|
986
|
+
/**
|
987
|
+
* The duration for the transition, in milliseconds.
|
988
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
989
|
+
* @default {
|
990
|
+
* enter: theme.transitions.duration.enteringScreen,
|
991
|
+
* exit: theme.transitions.duration.leavingScreen,
|
992
|
+
* }
|
993
|
+
*/
|
994
|
+
timeout: e.oneOfType([e.number, e.shape({
|
995
|
+
appear: e.number,
|
996
|
+
enter: e.number,
|
997
|
+
exit: e.number
|
998
|
+
})])
|
999
|
+
});
|
1000
|
+
function Gn(n) {
|
1001
|
+
return ke("MuiBackdrop", n);
|
1002
|
+
}
|
1003
|
+
he("MuiBackdrop", ["root", "invisible"]);
|
1004
|
+
const Jn = ["children", "className", "component", "components", "componentsProps", "invisible", "open", "slotProps", "slots", "TransitionComponent", "transitionDuration"], Qn = (n) => {
|
1005
|
+
const {
|
1006
|
+
classes: t,
|
1007
|
+
invisible: s
|
1008
|
+
} = n;
|
1009
|
+
return Me({
|
1010
|
+
root: ["root", s && "invisible"]
|
1011
|
+
}, Gn, t);
|
1012
|
+
}, Zn = ee("div", {
|
1013
|
+
name: "MuiBackdrop",
|
1014
|
+
slot: "Root",
|
1015
|
+
overridesResolver: (n, t) => {
|
1016
|
+
const {
|
1017
|
+
ownerState: s
|
1018
|
+
} = n;
|
1019
|
+
return [t.root, s.invisible && t.invisible];
|
1020
|
+
}
|
1021
|
+
})(({
|
1022
|
+
ownerState: n
|
1023
|
+
}) => M({
|
1024
|
+
position: "fixed",
|
1025
|
+
display: "flex",
|
1026
|
+
alignItems: "center",
|
1027
|
+
justifyContent: "center",
|
1028
|
+
right: 0,
|
1029
|
+
bottom: 0,
|
1030
|
+
top: 0,
|
1031
|
+
left: 0,
|
1032
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
1033
|
+
WebkitTapHighlightColor: "transparent"
|
1034
|
+
}, n.invisible && {
|
1035
|
+
backgroundColor: "transparent"
|
1036
|
+
})), Ge = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
1037
|
+
var o, i, r;
|
1038
|
+
const a = me({
|
1039
|
+
props: t,
|
1040
|
+
name: "MuiBackdrop"
|
1041
|
+
}), {
|
1042
|
+
children: l,
|
1043
|
+
className: c,
|
1044
|
+
component: d = "div",
|
1045
|
+
components: b = {},
|
1046
|
+
componentsProps: y = {},
|
1047
|
+
invisible: x = !1,
|
1048
|
+
open: v,
|
1049
|
+
slotProps: p = {},
|
1050
|
+
slots: w = {},
|
1051
|
+
TransitionComponent: B = Xe,
|
1052
|
+
transitionDuration: S
|
1053
|
+
} = a, F = Z(a, Jn), h = M({}, a, {
|
1054
|
+
component: d,
|
1055
|
+
invisible: x
|
1056
|
+
}), f = Qn(h), T = (o = p.root) != null ? o : y.root;
|
1057
|
+
return /* @__PURE__ */ A(B, M({
|
1058
|
+
in: v,
|
1059
|
+
timeout: S
|
1060
|
+
}, F, {
|
1061
|
+
children: /* @__PURE__ */ A(Zn, M({
|
1062
|
+
"aria-hidden": !0
|
1063
|
+
}, T, {
|
1064
|
+
as: (i = (r = w.root) != null ? r : b.Root) != null ? i : d,
|
1065
|
+
className: U(f.root, c, T == null ? void 0 : T.className),
|
1066
|
+
ownerState: M({}, h, T == null ? void 0 : T.ownerState),
|
1067
|
+
classes: f,
|
1068
|
+
ref: s,
|
1069
|
+
children: l
|
1070
|
+
}))
|
1071
|
+
}));
|
1072
|
+
});
|
1073
|
+
z.env.NODE_ENV !== "production" && (Ge.propTypes = {
|
1074
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1075
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1076
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
1077
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1078
|
+
/**
|
1079
|
+
* The content of the component.
|
1080
|
+
*/
|
1081
|
+
children: e.node,
|
1082
|
+
/**
|
1083
|
+
* Override or extend the styles applied to the component.
|
1084
|
+
*/
|
1085
|
+
classes: e.object,
|
1086
|
+
/**
|
1087
|
+
* @ignore
|
1088
|
+
*/
|
1089
|
+
className: e.string,
|
1090
|
+
/**
|
1091
|
+
* The component used for the root node.
|
1092
|
+
* Either a string to use a HTML element or a component.
|
1093
|
+
*/
|
1094
|
+
component: e.elementType,
|
1095
|
+
/**
|
1096
|
+
* The components used for each slot inside.
|
1097
|
+
*
|
1098
|
+
* This prop is an alias for the `slots` prop.
|
1099
|
+
* It's recommended to use the `slots` prop instead.
|
1100
|
+
*
|
1101
|
+
* @default {}
|
1102
|
+
*/
|
1103
|
+
components: e.shape({
|
1104
|
+
Root: e.elementType
|
1105
|
+
}),
|
1106
|
+
/**
|
1107
|
+
* The extra props for the slot components.
|
1108
|
+
* You can override the existing props or add new ones.
|
1109
|
+
*
|
1110
|
+
* This prop is an alias for the `slotProps` prop.
|
1111
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
1112
|
+
*
|
1113
|
+
* @default {}
|
1114
|
+
*/
|
1115
|
+
componentsProps: e.shape({
|
1116
|
+
root: e.object
|
1117
|
+
}),
|
1118
|
+
/**
|
1119
|
+
* If `true`, the backdrop is invisible.
|
1120
|
+
* It can be used when rendering a popover or a custom select component.
|
1121
|
+
* @default false
|
1122
|
+
*/
|
1123
|
+
invisible: e.bool,
|
1124
|
+
/**
|
1125
|
+
* If `true`, the component is shown.
|
1126
|
+
*/
|
1127
|
+
open: e.bool.isRequired,
|
1128
|
+
/**
|
1129
|
+
* The extra props for the slot components.
|
1130
|
+
* You can override the existing props or add new ones.
|
1131
|
+
*
|
1132
|
+
* This prop is an alias for the `componentsProps` prop, which will be deprecated in the future.
|
1133
|
+
*
|
1134
|
+
* @default {}
|
1135
|
+
*/
|
1136
|
+
slotProps: e.shape({
|
1137
|
+
root: e.object
|
1138
|
+
}),
|
1139
|
+
/**
|
1140
|
+
* The components used for each slot inside.
|
1141
|
+
*
|
1142
|
+
* This prop is an alias for the `components` prop, which will be deprecated in the future.
|
1143
|
+
*
|
1144
|
+
* @default {}
|
1145
|
+
*/
|
1146
|
+
slots: e.shape({
|
1147
|
+
root: e.elementType
|
1148
|
+
}),
|
1149
|
+
/**
|
1150
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
1151
|
+
*/
|
1152
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
|
1153
|
+
/**
|
1154
|
+
* The component used for the transition.
|
1155
|
+
* [Follow this guide](/material-ui/transitions/#transitioncomponent-prop) to learn more about the requirements for this component.
|
1156
|
+
* @default Fade
|
1157
|
+
*/
|
1158
|
+
TransitionComponent: e.elementType,
|
1159
|
+
/**
|
1160
|
+
* The duration for the transition, in milliseconds.
|
1161
|
+
* You may specify a single timeout for all transitions, or individually with an object.
|
1162
|
+
*/
|
1163
|
+
transitionDuration: e.oneOfType([e.number, e.shape({
|
1164
|
+
appear: e.number,
|
1165
|
+
enter: e.number,
|
1166
|
+
exit: e.number
|
1167
|
+
})])
|
1168
|
+
});
|
1169
|
+
function et(n) {
|
1170
|
+
const t = Y(n);
|
1171
|
+
return t.body === n ? Se(n).innerWidth > t.documentElement.clientWidth : n.scrollHeight > n.clientHeight;
|
1172
|
+
}
|
1173
|
+
function oe(n, t) {
|
1174
|
+
t ? n.setAttribute("aria-hidden", "true") : n.removeAttribute("aria-hidden");
|
1175
|
+
}
|
1176
|
+
function Ke(n) {
|
1177
|
+
return parseInt(Se(n).getComputedStyle(n).paddingRight, 10) || 0;
|
1178
|
+
}
|
1179
|
+
function nt(n) {
|
1180
|
+
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
|
+
return s || o;
|
1182
|
+
}
|
1183
|
+
function ze(n, t, s, o, i) {
|
1184
|
+
const r = [t, s, ...o];
|
1185
|
+
[].forEach.call(n.children, (a) => {
|
1186
|
+
const l = r.indexOf(a) === -1, c = !nt(a);
|
1187
|
+
l && c && oe(a, i);
|
1188
|
+
});
|
1189
|
+
}
|
1190
|
+
function ve(n, t) {
|
1191
|
+
let s = -1;
|
1192
|
+
return n.some((o, i) => t(o) ? (s = i, !0) : !1), s;
|
1193
|
+
}
|
1194
|
+
function tt(n, t) {
|
1195
|
+
const s = [], o = n.container;
|
1196
|
+
if (!t.disableScrollLock) {
|
1197
|
+
if (et(o)) {
|
1198
|
+
const a = Nn(Y(o));
|
1199
|
+
s.push({
|
1200
|
+
value: o.style.paddingRight,
|
1201
|
+
property: "padding-right",
|
1202
|
+
el: o
|
1203
|
+
}), o.style.paddingRight = `${Ke(o) + a}px`;
|
1204
|
+
const l = Y(o).querySelectorAll(".mui-fixed");
|
1205
|
+
[].forEach.call(l, (c) => {
|
1206
|
+
s.push({
|
1207
|
+
value: c.style.paddingRight,
|
1208
|
+
property: "padding-right",
|
1209
|
+
el: c
|
1210
|
+
}), c.style.paddingRight = `${Ke(c) + a}px`;
|
1211
|
+
});
|
1212
|
+
}
|
1213
|
+
let r;
|
1214
|
+
if (o.parentNode instanceof DocumentFragment)
|
1215
|
+
r = Y(o).body;
|
1216
|
+
else {
|
1217
|
+
const a = o.parentElement, l = Se(o);
|
1218
|
+
r = (a == null ? void 0 : a.nodeName) === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
|
1219
|
+
}
|
1220
|
+
s.push({
|
1221
|
+
value: r.style.overflow,
|
1222
|
+
property: "overflow",
|
1223
|
+
el: r
|
1224
|
+
}, {
|
1225
|
+
value: r.style.overflowX,
|
1226
|
+
property: "overflow-x",
|
1227
|
+
el: r
|
1228
|
+
}, {
|
1229
|
+
value: r.style.overflowY,
|
1230
|
+
property: "overflow-y",
|
1231
|
+
el: r
|
1232
|
+
}), r.style.overflow = "hidden";
|
1233
|
+
}
|
1234
|
+
return () => {
|
1235
|
+
s.forEach(({
|
1236
|
+
value: r,
|
1237
|
+
el: a,
|
1238
|
+
property: l
|
1239
|
+
}) => {
|
1240
|
+
r ? a.style.setProperty(l, r) : a.style.removeProperty(l);
|
1241
|
+
});
|
1242
|
+
};
|
1243
|
+
}
|
1244
|
+
function ot(n) {
|
1245
|
+
const t = [];
|
1246
|
+
return [].forEach.call(n.children, (s) => {
|
1247
|
+
s.getAttribute("aria-hidden") === "true" && t.push(s);
|
1248
|
+
}), t;
|
1249
|
+
}
|
1250
|
+
class rt {
|
1251
|
+
constructor() {
|
1252
|
+
this.containers = void 0, this.modals = void 0, this.modals = [], this.containers = [];
|
1253
|
+
}
|
1254
|
+
add(t, s) {
|
1255
|
+
let o = this.modals.indexOf(t);
|
1256
|
+
if (o !== -1)
|
1257
|
+
return o;
|
1258
|
+
o = this.modals.length, this.modals.push(t), t.modalRef && oe(t.modalRef, !1);
|
1259
|
+
const i = ot(s);
|
1260
|
+
ze(s, t.mount, t.modalRef, i, !0);
|
1261
|
+
const r = ve(this.containers, (a) => a.container === s);
|
1262
|
+
return r !== -1 ? (this.containers[r].modals.push(t), o) : (this.containers.push({
|
1263
|
+
modals: [t],
|
1264
|
+
container: s,
|
1265
|
+
restore: null,
|
1266
|
+
hiddenSiblings: i
|
1267
|
+
}), o);
|
1268
|
+
}
|
1269
|
+
mount(t, s) {
|
1270
|
+
const o = ve(this.containers, (r) => r.modals.indexOf(t) !== -1), i = this.containers[o];
|
1271
|
+
i.restore || (i.restore = tt(i, s));
|
1272
|
+
}
|
1273
|
+
remove(t, s = !0) {
|
1274
|
+
const o = this.modals.indexOf(t);
|
1275
|
+
if (o === -1)
|
1276
|
+
return o;
|
1277
|
+
const i = ve(this.containers, (a) => a.modals.indexOf(t) !== -1), r = this.containers[i];
|
1278
|
+
if (r.modals.splice(r.modals.indexOf(t), 1), this.modals.splice(o, 1), r.modals.length === 0)
|
1279
|
+
r.restore && r.restore(), t.modalRef && oe(t.modalRef, s), ze(r.container, t.mount, t.modalRef, r.hiddenSiblings, !1), this.containers.splice(i, 1);
|
1280
|
+
else {
|
1281
|
+
const a = r.modals[r.modals.length - 1];
|
1282
|
+
a.modalRef && oe(a.modalRef, !1);
|
1283
|
+
}
|
1284
|
+
return o;
|
1285
|
+
}
|
1286
|
+
isTopModal(t) {
|
1287
|
+
return this.modals.length > 0 && this.modals[this.modals.length - 1] === t;
|
1288
|
+
}
|
1289
|
+
}
|
1290
|
+
const st = ["input", "select", "textarea", "a[href]", "button", "[tabindex]", "audio[controls]", "video[controls]", '[contenteditable]:not([contenteditable="false"])'].join(",");
|
1291
|
+
function it(n) {
|
1292
|
+
const t = parseInt(n.getAttribute("tabindex") || "", 10);
|
1293
|
+
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
|
+
}
|
1295
|
+
function at(n) {
|
1296
|
+
if (n.tagName !== "INPUT" || n.type !== "radio" || !n.name)
|
1297
|
+
return !1;
|
1298
|
+
const t = (o) => n.ownerDocument.querySelector(`input[type="radio"]${o}`);
|
1299
|
+
let s = t(`[name="${n.name}"]:checked`);
|
1300
|
+
return s || (s = t(`[name="${n.name}"]`)), s !== n;
|
1301
|
+
}
|
1302
|
+
function lt(n) {
|
1303
|
+
return !(n.disabled || n.tagName === "INPUT" && n.type === "hidden" || at(n));
|
1304
|
+
}
|
1305
|
+
function ct(n) {
|
1306
|
+
const t = [], s = [];
|
1307
|
+
return Array.from(n.querySelectorAll(st)).forEach((o, i) => {
|
1308
|
+
const r = it(o);
|
1309
|
+
r === -1 || !lt(o) || (r === 0 ? t.push(o) : s.push({
|
1310
|
+
documentOrder: i,
|
1311
|
+
tabIndex: r,
|
1312
|
+
node: o
|
1313
|
+
}));
|
1314
|
+
}), s.sort((o, i) => o.tabIndex === i.tabIndex ? o.documentOrder - i.documentOrder : o.tabIndex - i.tabIndex).map((o) => o.node).concat(t);
|
1315
|
+
}
|
1316
|
+
function ut() {
|
1317
|
+
return !0;
|
1318
|
+
}
|
1319
|
+
function fe(n) {
|
1320
|
+
const {
|
1321
|
+
children: t,
|
1322
|
+
disableAutoFocus: s = !1,
|
1323
|
+
disableEnforceFocus: o = !1,
|
1324
|
+
disableRestoreFocus: i = !1,
|
1325
|
+
getTabbable: r = ct,
|
1326
|
+
isEnabled: a = ut,
|
1327
|
+
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), B = u.useRef(null);
|
1329
|
+
u.useEffect(() => {
|
1330
|
+
!l || !p.current || (v.current = !s);
|
1331
|
+
}, [s, l]), u.useEffect(() => {
|
1332
|
+
if (!l || !p.current)
|
1333
|
+
return;
|
1334
|
+
const h = Y(p.current);
|
1335
|
+
return p.current.contains(h.activeElement) || (p.current.hasAttribute("tabIndex") || (z.env.NODE_ENV, p.current.setAttribute("tabIndex", "-1")), v.current && p.current.focus()), () => {
|
1336
|
+
i || (y.current && y.current.focus && (c.current = !0, y.current.focus()), y.current = null);
|
1337
|
+
};
|
1338
|
+
}, [l]), u.useEffect(() => {
|
1339
|
+
if (!l || !p.current)
|
1340
|
+
return;
|
1341
|
+
const h = Y(p.current), f = (k) => {
|
1342
|
+
B.current = k, !(o || !a() || k.key !== "Tab") && h.activeElement === p.current && k.shiftKey && (c.current = !0, b.current && b.current.focus());
|
1343
|
+
}, T = () => {
|
1344
|
+
const k = p.current;
|
1345
|
+
if (k === null)
|
1346
|
+
return;
|
1347
|
+
if (!h.hasFocus() || !a() || c.current) {
|
1348
|
+
c.current = !1;
|
1349
|
+
return;
|
1350
|
+
}
|
1351
|
+
if (k.contains(h.activeElement) || o && h.activeElement !== d.current && h.activeElement !== b.current)
|
1352
|
+
return;
|
1353
|
+
if (h.activeElement !== x.current)
|
1354
|
+
x.current = null;
|
1355
|
+
else if (x.current !== null)
|
1356
|
+
return;
|
1357
|
+
if (!v.current)
|
1358
|
+
return;
|
1359
|
+
let I = [];
|
1360
|
+
if ((h.activeElement === d.current || h.activeElement === b.current) && (I = r(p.current)), I.length > 0) {
|
1361
|
+
var _, P;
|
1362
|
+
const V = !!((_ = B.current) != null && _.shiftKey && ((P = B.current) == null ? void 0 : P.key) === "Tab"), D = I[0], L = I[I.length - 1];
|
1363
|
+
typeof D != "string" && typeof L != "string" && (V ? L.focus() : D.focus());
|
1364
|
+
} else
|
1365
|
+
k.focus();
|
1366
|
+
};
|
1367
|
+
h.addEventListener("focusin", T), h.addEventListener("keydown", f, !0);
|
1368
|
+
const C = setInterval(() => {
|
1369
|
+
h.activeElement && h.activeElement.tagName === "BODY" && T();
|
1370
|
+
}, 50);
|
1371
|
+
return () => {
|
1372
|
+
clearInterval(C), h.removeEventListener("focusin", T), h.removeEventListener("keydown", f, !0);
|
1373
|
+
};
|
1374
|
+
}, [s, o, i, a, l, r]);
|
1375
|
+
const S = (h) => {
|
1376
|
+
y.current === null && (y.current = h.relatedTarget), v.current = !0, x.current = h.target;
|
1377
|
+
const f = t.props.onFocus;
|
1378
|
+
f && f(h);
|
1379
|
+
}, F = (h) => {
|
1380
|
+
y.current === null && (y.current = h.relatedTarget), v.current = !0;
|
1381
|
+
};
|
1382
|
+
return /* @__PURE__ */ Ne(u.Fragment, {
|
1383
|
+
children: [/* @__PURE__ */ A("div", {
|
1384
|
+
tabIndex: l ? 0 : -1,
|
1385
|
+
onFocus: F,
|
1386
|
+
ref: d,
|
1387
|
+
"data-testid": "sentinelStart"
|
1388
|
+
}), /* @__PURE__ */ u.cloneElement(t, {
|
1389
|
+
ref: w,
|
1390
|
+
onFocus: S
|
1391
|
+
}), /* @__PURE__ */ A("div", {
|
1392
|
+
tabIndex: l ? 0 : -1,
|
1393
|
+
onFocus: F,
|
1394
|
+
ref: b,
|
1395
|
+
"data-testid": "sentinelEnd"
|
1396
|
+
})]
|
1397
|
+
});
|
1398
|
+
}
|
1399
|
+
z.env.NODE_ENV !== "production" && (fe.propTypes = {
|
1400
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1401
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1402
|
+
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
1403
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1404
|
+
/**
|
1405
|
+
* A single child content element.
|
1406
|
+
*/
|
1407
|
+
children: we,
|
1408
|
+
/**
|
1409
|
+
* If `true`, the focus trap will not automatically shift focus to itself when it opens, and
|
1410
|
+
* replace it to the last focused element when it closes.
|
1411
|
+
* This also works correctly with any focus trap children that have the `disableAutoFocus` prop.
|
1412
|
+
*
|
1413
|
+
* Generally this should never be set to `true` as it makes the focus trap less
|
1414
|
+
* accessible to assistive technologies, like screen readers.
|
1415
|
+
* @default false
|
1416
|
+
*/
|
1417
|
+
disableAutoFocus: e.bool,
|
1418
|
+
/**
|
1419
|
+
* If `true`, the focus trap will not prevent focus from leaving the focus trap while open.
|
1420
|
+
*
|
1421
|
+
* Generally this should never be set to `true` as it makes the focus trap less
|
1422
|
+
* accessible to assistive technologies, like screen readers.
|
1423
|
+
* @default false
|
1424
|
+
*/
|
1425
|
+
disableEnforceFocus: e.bool,
|
1426
|
+
/**
|
1427
|
+
* If `true`, the focus trap will not restore focus to previously focused element once
|
1428
|
+
* focus trap is hidden or unmounted.
|
1429
|
+
* @default false
|
1430
|
+
*/
|
1431
|
+
disableRestoreFocus: e.bool,
|
1432
|
+
/**
|
1433
|
+
* Returns an array of ordered tabbable nodes (i.e. in tab order) within the root.
|
1434
|
+
* For instance, you can provide the "tabbable" npm dependency.
|
1435
|
+
* @param {HTMLElement} root
|
1436
|
+
*/
|
1437
|
+
getTabbable: e.func,
|
1438
|
+
/**
|
1439
|
+
* This prop extends the `open` prop.
|
1440
|
+
* It allows to toggle the open state without having to wait for a rerender when changing the `open` prop.
|
1441
|
+
* This prop should be memoized.
|
1442
|
+
* It can be used to support multiple focus trap mounted at the same time.
|
1443
|
+
* @default function defaultIsEnabled(): boolean {
|
1444
|
+
* return true;
|
1445
|
+
* }
|
1446
|
+
*/
|
1447
|
+
isEnabled: e.func,
|
1448
|
+
/**
|
1449
|
+
* If `true`, focus is locked.
|
1450
|
+
*/
|
1451
|
+
open: e.bool.isRequired
|
1452
|
+
});
|
1453
|
+
z.env.NODE_ENV !== "production" && (fe.propTypes = yn(fe.propTypes));
|
1454
|
+
function dt(n) {
|
1455
|
+
return typeof n == "function" ? n() : n;
|
1456
|
+
}
|
1457
|
+
function pt(n) {
|
1458
|
+
return n ? n.props.hasOwnProperty("in") : !1;
|
1459
|
+
}
|
1460
|
+
const ft = new rt();
|
1461
|
+
function ht(n) {
|
1462
|
+
const {
|
1463
|
+
container: t,
|
1464
|
+
disableEscapeKeyDown: s = !1,
|
1465
|
+
disableScrollLock: o = !1,
|
1466
|
+
// @ts-ignore internal logic - Base UI supports the manager as a prop too
|
1467
|
+
manager: i = ft,
|
1468
|
+
closeAfterTransition: r = !1,
|
1469
|
+
onTransitionEnter: a,
|
1470
|
+
onTransitionExited: l,
|
1471
|
+
children: c,
|
1472
|
+
onClose: d,
|
1473
|
+
open: b,
|
1474
|
+
rootRef: y
|
1475
|
+
} = n, x = u.useRef({}), v = u.useRef(null), p = u.useRef(null), w = re(p, y), [B, S] = u.useState(!b), F = pt(c);
|
1476
|
+
let h = !0;
|
1477
|
+
(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), C = () => {
|
1479
|
+
i.mount(T(), {
|
1480
|
+
disableScrollLock: o
|
1481
|
+
}), p.current && (p.current.scrollTop = 0);
|
1482
|
+
}, k = Q(() => {
|
1483
|
+
const g = dt(t) || f().body;
|
1484
|
+
i.add(T(), g), p.current && C();
|
1485
|
+
}), I = u.useCallback(() => i.isTopModal(T()), [i]), _ = Q((g) => {
|
1486
|
+
v.current = g, g && (b && I() ? C() : p.current && oe(p.current, h));
|
1487
|
+
}), P = u.useCallback(() => {
|
1488
|
+
i.remove(T(), h);
|
1489
|
+
}, [h, i]);
|
1490
|
+
u.useEffect(() => () => {
|
1491
|
+
P();
|
1492
|
+
}, [P]), u.useEffect(() => {
|
1493
|
+
b ? k() : (!F || !r) && P();
|
1494
|
+
}, [b, P, F, r, k]);
|
1495
|
+
const V = (g) => (R) => {
|
1496
|
+
var N;
|
1497
|
+
(N = g.onKeyDown) == null || N.call(g, R), !(R.key !== "Escape" || R.which === 229 || // Wait until IME is settled.
|
1498
|
+
!I()) && (s || (R.stopPropagation(), d && d(R, "escapeKeyDown")));
|
1499
|
+
}, D = (g) => (R) => {
|
1500
|
+
var N;
|
1501
|
+
(N = g.onClick) == null || N.call(g, R), R.target === R.currentTarget && d && d(R, "backdropClick");
|
1502
|
+
};
|
1503
|
+
return {
|
1504
|
+
getRootProps: (g = {}) => {
|
1505
|
+
const R = Tn(n);
|
1506
|
+
delete R.onTransitionEnter, delete R.onTransitionExited;
|
1507
|
+
const N = M({}, R, g);
|
1508
|
+
return M({
|
1509
|
+
role: "presentation"
|
1510
|
+
}, N, {
|
1511
|
+
onKeyDown: V(N),
|
1512
|
+
ref: w
|
1513
|
+
});
|
1514
|
+
},
|
1515
|
+
getBackdropProps: (g = {}) => {
|
1516
|
+
const R = g;
|
1517
|
+
return M({
|
1518
|
+
"aria-hidden": !0
|
1519
|
+
}, R, {
|
1520
|
+
onClick: D(R),
|
1521
|
+
open: b
|
1522
|
+
});
|
1523
|
+
},
|
1524
|
+
getTransitionProps: () => {
|
1525
|
+
const g = () => {
|
1526
|
+
S(!1), a && a();
|
1527
|
+
}, R = () => {
|
1528
|
+
S(!0), l && l(), r && P();
|
1529
|
+
};
|
1530
|
+
return {
|
1531
|
+
onEnter: _e(g, c == null ? void 0 : c.props.onEnter),
|
1532
|
+
onExited: _e(R, c == null ? void 0 : c.props.onExited)
|
1533
|
+
};
|
1534
|
+
},
|
1535
|
+
rootRef: w,
|
1536
|
+
portalRef: _,
|
1537
|
+
isTopModal: I,
|
1538
|
+
exited: B,
|
1539
|
+
hasTransition: F
|
1540
|
+
};
|
1541
|
+
}
|
1542
|
+
function mt(n) {
|
1543
|
+
return ke("MuiModal", n);
|
1544
|
+
}
|
1545
|
+
he("MuiModal", ["root", "hidden", "backdrop"]);
|
1546
|
+
const bt = ["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"], gt = (n) => {
|
1547
|
+
const {
|
1548
|
+
open: t,
|
1549
|
+
exited: s,
|
1550
|
+
classes: o
|
1551
|
+
} = n;
|
1552
|
+
return Me({
|
1553
|
+
root: ["root", !t && s && "hidden"],
|
1554
|
+
backdrop: ["backdrop"]
|
1555
|
+
}, mt, o);
|
1556
|
+
}, Et = ee("div", {
|
1557
|
+
name: "MuiModal",
|
1558
|
+
slot: "Root",
|
1559
|
+
overridesResolver: (n, t) => {
|
1560
|
+
const {
|
1561
|
+
ownerState: s
|
1562
|
+
} = n;
|
1563
|
+
return [t.root, !s.open && s.exited && t.hidden];
|
1564
|
+
}
|
1565
|
+
})(({
|
1566
|
+
theme: n,
|
1567
|
+
ownerState: t
|
1568
|
+
}) => M({
|
1569
|
+
position: "fixed",
|
1570
|
+
zIndex: (n.vars || n).zIndex.modal,
|
1571
|
+
right: 0,
|
1572
|
+
bottom: 0,
|
1573
|
+
top: 0,
|
1574
|
+
left: 0
|
1575
|
+
}, !t.open && t.exited && {
|
1576
|
+
visibility: "hidden"
|
1577
|
+
})), yt = ee(Ge, {
|
1578
|
+
name: "MuiModal",
|
1579
|
+
slot: "Backdrop",
|
1580
|
+
overridesResolver: (n, t) => t.backdrop
|
1581
|
+
})({
|
1582
|
+
zIndex: -1
|
1583
|
+
}), Tt = /* @__PURE__ */ u.forwardRef(function(t, s) {
|
1584
|
+
var o, i, r, a, l, c;
|
1585
|
+
const d = me({
|
1586
|
+
name: "MuiModal",
|
1587
|
+
props: t
|
1588
|
+
}), {
|
1589
|
+
BackdropComponent: b = yt,
|
1590
|
+
BackdropProps: y,
|
1591
|
+
className: x,
|
1592
|
+
closeAfterTransition: v = !1,
|
1593
|
+
children: p,
|
1594
|
+
container: w,
|
1595
|
+
component: B,
|
1596
|
+
components: S = {},
|
1597
|
+
componentsProps: F = {},
|
1598
|
+
disableAutoFocus: h = !1,
|
1599
|
+
disableEnforceFocus: f = !1,
|
1600
|
+
disableEscapeKeyDown: T = !1,
|
1601
|
+
disablePortal: C = !1,
|
1602
|
+
disableRestoreFocus: k = !1,
|
1603
|
+
disableScrollLock: I = !1,
|
1604
|
+
hideBackdrop: _ = !1,
|
1605
|
+
keepMounted: P = !1,
|
1606
|
+
onBackdropClick: V,
|
1607
|
+
open: D,
|
1608
|
+
slotProps: L,
|
1609
|
+
slots: E
|
1610
|
+
// eslint-disable-next-line react/prop-types
|
1611
|
+
} = d, O = Z(d, bt), g = M({}, d, {
|
1612
|
+
closeAfterTransition: v,
|
1613
|
+
disableAutoFocus: h,
|
1614
|
+
disableEnforceFocus: f,
|
1615
|
+
disableEscapeKeyDown: T,
|
1616
|
+
disablePortal: C,
|
1617
|
+
disableRestoreFocus: k,
|
1618
|
+
disableScrollLock: I,
|
1619
|
+
hideBackdrop: _,
|
1620
|
+
keepMounted: P
|
1621
|
+
}), {
|
1622
|
+
getRootProps: R,
|
1623
|
+
getBackdropProps: N,
|
1624
|
+
getTransitionProps: ge,
|
1625
|
+
portalRef: se,
|
1626
|
+
isTopModal: Ee,
|
1627
|
+
exited: ie,
|
1628
|
+
hasTransition: ae
|
1629
|
+
} = ht(M({}, g, {
|
1630
|
+
rootRef: s
|
1631
|
+
})), $ = M({}, g, {
|
1632
|
+
exited: ie
|
1633
|
+
}), K = gt($), W = {};
|
1634
|
+
if (p.props.tabIndex === void 0 && (W.tabIndex = "-1"), ae) {
|
1635
|
+
const {
|
1636
|
+
onEnter: q,
|
1637
|
+
onExited: J
|
1638
|
+
} = ge();
|
1639
|
+
W.onEnter = q, W.onExited = J;
|
1640
|
+
}
|
1641
|
+
const le = (o = (i = E == null ? void 0 : E.root) != null ? i : S.Root) != null ? o : Et, G = (r = (a = E == null ? void 0 : E.backdrop) != null ? a : S.Backdrop) != null ? r : b, j = (l = L == null ? void 0 : L.root) != null ? l : F.root, ne = (c = L == null ? void 0 : L.backdrop) != null ? c : F.backdrop, ye = Ae({
|
1642
|
+
elementType: le,
|
1643
|
+
externalSlotProps: j,
|
1644
|
+
externalForwardedProps: O,
|
1645
|
+
getSlotProps: R,
|
1646
|
+
additionalProps: {
|
1647
|
+
ref: s,
|
1648
|
+
as: B
|
1649
|
+
},
|
1650
|
+
ownerState: $,
|
1651
|
+
className: U(x, j == null ? void 0 : j.className, K == null ? void 0 : K.root, !$.open && $.exited && (K == null ? void 0 : K.hidden))
|
1652
|
+
}), Te = Ae({
|
1653
|
+
elementType: G,
|
1654
|
+
externalSlotProps: ne,
|
1655
|
+
additionalProps: y,
|
1656
|
+
getSlotProps: (q) => N(M({}, q, {
|
1657
|
+
onClick: (J) => {
|
1658
|
+
V && V(J), q != null && q.onClick && q.onClick(J);
|
1659
|
+
}
|
1660
|
+
})),
|
1661
|
+
className: U(ne == null ? void 0 : ne.className, y == null ? void 0 : y.className, K == null ? void 0 : K.backdrop),
|
1662
|
+
ownerState: $
|
1663
|
+
});
|
1664
|
+
return !P && !D && (!ae || ie) ? null : /* @__PURE__ */ A(Rn, {
|
1665
|
+
ref: se,
|
1666
|
+
container: w,
|
1667
|
+
disablePortal: C,
|
1668
|
+
children: /* @__PURE__ */ Ne(le, M({}, ye, {
|
1669
|
+
children: [!_ && b ? /* @__PURE__ */ A(G, M({}, Te)) : null, /* @__PURE__ */ A(fe, {
|
1670
|
+
disableEnforceFocus: f,
|
1671
|
+
disableAutoFocus: h,
|
1672
|
+
disableRestoreFocus: k,
|
1673
|
+
isEnabled: Ee,
|
1674
|
+
open: D,
|
1675
|
+
children: /* @__PURE__ */ u.cloneElement(p, W)
|
1676
|
+
})]
|
1677
|
+
}))
|
1678
|
+
});
|
1679
|
+
});
|
1680
|
+
z.env.NODE_ENV !== "production" && (Tt.propTypes = {
|
1681
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
1682
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
1683
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
1684
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
1685
|
+
/**
|
1686
|
+
* A backdrop component. This prop enables custom backdrop rendering.
|
1687
|
+
* @deprecated Use `slots.backdrop` instead. While this prop currently works, it will be removed in the next major version.
|
1688
|
+
* Use the `slots.backdrop` prop to make your application ready for the next version of Material UI.
|
1689
|
+
* @default styled(Backdrop, {
|
1690
|
+
* name: 'MuiModal',
|
1691
|
+
* slot: 'Backdrop',
|
1692
|
+
* overridesResolver: (props, styles) => {
|
1693
|
+
* return styles.backdrop;
|
1694
|
+
* },
|
1695
|
+
* })({
|
1696
|
+
* zIndex: -1,
|
1697
|
+
* })
|
1698
|
+
*/
|
1699
|
+
BackdropComponent: e.elementType,
|
1700
|
+
/**
|
1701
|
+
* Props applied to the [`Backdrop`](/material-ui/api/backdrop/) element.
|
1702
|
+
* @deprecated Use `slotProps.backdrop` instead.
|
1703
|
+
*/
|
1704
|
+
BackdropProps: e.object,
|
1705
|
+
/**
|
1706
|
+
* A single child content element.
|
1707
|
+
*/
|
1708
|
+
children: we.isRequired,
|
1709
|
+
/**
|
1710
|
+
* Override or extend the styles applied to the component.
|
1711
|
+
*/
|
1712
|
+
classes: e.object,
|
1713
|
+
/**
|
1714
|
+
* @ignore
|
1715
|
+
*/
|
1716
|
+
className: e.string,
|
1717
|
+
/**
|
1718
|
+
* When set to true the Modal waits until a nested Transition is completed before closing.
|
1719
|
+
* @default false
|
1720
|
+
*/
|
1721
|
+
closeAfterTransition: e.bool,
|
1722
|
+
/**
|
1723
|
+
* The component used for the root node.
|
1724
|
+
* Either a string to use a HTML element or a component.
|
1725
|
+
*/
|
1726
|
+
component: e.elementType,
|
1727
|
+
/**
|
1728
|
+
* The components used for each slot inside.
|
1729
|
+
*
|
1730
|
+
* This prop is an alias for the `slots` prop.
|
1731
|
+
* It's recommended to use the `slots` prop instead.
|
1732
|
+
*
|
1733
|
+
* @default {}
|
1734
|
+
*/
|
1735
|
+
components: e.shape({
|
1736
|
+
Backdrop: e.elementType,
|
1737
|
+
Root: e.elementType
|
1738
|
+
}),
|
1739
|
+
/**
|
1740
|
+
* The extra props for the slot components.
|
1741
|
+
* You can override the existing props or add new ones.
|
1742
|
+
*
|
1743
|
+
* This prop is an alias for the `slotProps` prop.
|
1744
|
+
* It's recommended to use the `slotProps` prop instead, as `componentsProps` will be deprecated in the future.
|
1745
|
+
*
|
1746
|
+
* @default {}
|
1747
|
+
*/
|
1748
|
+
componentsProps: e.shape({
|
1749
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
1750
|
+
root: e.oneOfType([e.func, e.object])
|
1751
|
+
}),
|
1752
|
+
/**
|
1753
|
+
* An HTML element or function that returns one.
|
1754
|
+
* The `container` will have the portal children appended to it.
|
1755
|
+
*
|
1756
|
+
* You can also provide a callback, which is called in a React layout effect.
|
1757
|
+
* This lets you set the container from a ref, and also makes server-side rendering possible.
|
1758
|
+
*
|
1759
|
+
* By default, it uses the body of the top-level document object,
|
1760
|
+
* so it's simply `document.body` most of the time.
|
1761
|
+
*/
|
1762
|
+
container: e.oneOfType([xn, e.func]),
|
1763
|
+
/**
|
1764
|
+
* If `true`, the modal will not automatically shift focus to itself when it opens, and
|
1765
|
+
* replace it to the last focused element when it closes.
|
1766
|
+
* This also works correctly with any modal children that have the `disableAutoFocus` prop.
|
1767
|
+
*
|
1768
|
+
* Generally this should never be set to `true` as it makes the modal less
|
1769
|
+
* accessible to assistive technologies, like screen readers.
|
1770
|
+
* @default false
|
1771
|
+
*/
|
1772
|
+
disableAutoFocus: e.bool,
|
1773
|
+
/**
|
1774
|
+
* If `true`, the modal will not prevent focus from leaving the modal while open.
|
1775
|
+
*
|
1776
|
+
* Generally this should never be set to `true` as it makes the modal less
|
1777
|
+
* accessible to assistive technologies, like screen readers.
|
1778
|
+
* @default false
|
1779
|
+
*/
|
1780
|
+
disableEnforceFocus: e.bool,
|
1781
|
+
/**
|
1782
|
+
* If `true`, hitting escape will not fire the `onClose` callback.
|
1783
|
+
* @default false
|
1784
|
+
*/
|
1785
|
+
disableEscapeKeyDown: e.bool,
|
1786
|
+
/**
|
1787
|
+
* The `children` will be under the DOM hierarchy of the parent component.
|
1788
|
+
* @default false
|
1789
|
+
*/
|
1790
|
+
disablePortal: e.bool,
|
1791
|
+
/**
|
1792
|
+
* If `true`, the modal will not restore focus to previously focused element once
|
1793
|
+
* modal is hidden or unmounted.
|
1794
|
+
* @default false
|
1795
|
+
*/
|
1796
|
+
disableRestoreFocus: e.bool,
|
1797
|
+
/**
|
1798
|
+
* Disable the scroll lock behavior.
|
1799
|
+
* @default false
|
1800
|
+
*/
|
1801
|
+
disableScrollLock: e.bool,
|
1802
|
+
/**
|
1803
|
+
* If `true`, the backdrop is not rendered.
|
1804
|
+
* @default false
|
1805
|
+
*/
|
1806
|
+
hideBackdrop: e.bool,
|
1807
|
+
/**
|
1808
|
+
* Always keep the children in the DOM.
|
1809
|
+
* This prop can be useful in SEO situation or
|
1810
|
+
* when you want to maximize the responsiveness of the Modal.
|
1811
|
+
* @default false
|
1812
|
+
*/
|
1813
|
+
keepMounted: e.bool,
|
1814
|
+
/**
|
1815
|
+
* Callback fired when the backdrop is clicked.
|
1816
|
+
* @deprecated Use the `onClose` prop with the `reason` argument to handle the `backdropClick` events.
|
1817
|
+
*/
|
1818
|
+
onBackdropClick: e.func,
|
1819
|
+
/**
|
1820
|
+
* Callback fired when the component requests to be closed.
|
1821
|
+
* The `reason` parameter can optionally be used to control the response to `onClose`.
|
1822
|
+
*
|
1823
|
+
* @param {object} event The event source of the callback.
|
1824
|
+
* @param {string} reason Can be: `"escapeKeyDown"`, `"backdropClick"`.
|
1825
|
+
*/
|
1826
|
+
onClose: e.func,
|
1827
|
+
/**
|
1828
|
+
* A function called when a transition enters.
|
1829
|
+
*/
|
1830
|
+
onTransitionEnter: e.func,
|
1831
|
+
/**
|
1832
|
+
* A function called when a transition has exited.
|
1833
|
+
*/
|
1834
|
+
onTransitionExited: e.func,
|
1835
|
+
/**
|
1836
|
+
* If `true`, the component is shown.
|
1837
|
+
*/
|
1838
|
+
open: e.bool.isRequired,
|
1839
|
+
/**
|
1840
|
+
* The props used for each slot inside the Modal.
|
1841
|
+
* @default {}
|
1842
|
+
*/
|
1843
|
+
slotProps: e.shape({
|
1844
|
+
backdrop: e.oneOfType([e.func, e.object]),
|
1845
|
+
root: e.oneOfType([e.func, e.object])
|
1846
|
+
}),
|
1847
|
+
/**
|
1848
|
+
* The components used for each slot inside the Modal.
|
1849
|
+
* Either a string to use a HTML element or a component.
|
1850
|
+
* @default {}
|
1851
|
+
*/
|
1852
|
+
slots: e.shape({
|
1853
|
+
backdrop: e.elementType,
|
1854
|
+
root: e.elementType
|
1855
|
+
}),
|
1856
|
+
/**
|
1857
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
1858
|
+
*/
|
1859
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
1860
|
+
});
|
1861
|
+
function Mt({ fill: n }) {
|
1862
|
+
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
|
+
}
|
1864
|
+
async function Nt() {
|
1865
|
+
var r;
|
1866
|
+
let t = await vn(Cn.KEPLR).getChainInfosWithoutEndpoints(), s = ((r = ln.getState()) == null ? void 0 : r.cosmosChains) || [];
|
1867
|
+
const o = cn.keyBy(t, "chainId");
|
1868
|
+
let i = [];
|
1869
|
+
return s.forEach((a) => {
|
1870
|
+
if (o[a.chainId]) i.push(a.chainId);
|
1871
|
+
else
|
1872
|
+
return;
|
1873
|
+
}), i;
|
1874
|
+
}
|
1875
|
+
export {
|
1876
|
+
qn as B,
|
1877
|
+
Mt as C,
|
1878
|
+
Xe as F,
|
1879
|
+
Tt as M,
|
1880
|
+
Oe as T,
|
1881
|
+
wn as _,
|
1882
|
+
Ge as a,
|
1883
|
+
fe as b,
|
1884
|
+
Nn as c,
|
1885
|
+
Mn as e,
|
1886
|
+
Nt as g,
|
1887
|
+
Se as o
|
1888
|
+
};
|