@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
@@ -1,17 +1,17 @@
|
|
1
1
|
import { jsxs as p, jsx as e, Fragment as J } from "react/jsx-runtime";
|
2
2
|
import de, { useState as v, useEffect as j, useRef as B1, Suspense as A1 } from "react";
|
3
|
-
import { B as j1, i as Ee, u as ke, F as e1, f as $e, C as Se, W as i1 } from "./useRegisterError-
|
4
|
-
import { u as c, l as pe, a as Ve, c as _e, S as L1, M as P1 } from "./index-
|
5
|
-
import { C as t1, M as F1, g as n1 } from "./getChainIds-
|
3
|
+
import { B as j1, i as Ee, u as ke, F as e1, f as $e, C as Se, W as i1 } from "./useRegisterError-DVG0sgLq.js";
|
4
|
+
import { u as c, l as pe, a as Ve, c as _e, S as L1, M as P1 } from "./index-D0J1OD73.js";
|
5
|
+
import { C as t1, M as F1, g as n1 } from "./getChainIds-AaKb_MmO.js";
|
6
6
|
import { useQuery as c1 } from "@tanstack/react-query";
|
7
7
|
import { useAccount as ge, useConnect as M1, useConnections as E1, useBalance as O1 } from "wagmi";
|
8
8
|
import { useDynamicContext as Ne, useIsLoggedIn as R1 } from "@dynamic-labs/sdk-react-core";
|
9
9
|
import { S as $1 } from "./shareicon-CG3v7iKI.js";
|
10
|
-
import { u as S1, B as _1 } from "./index-
|
10
|
+
import { u as S1, B as _1 } from "./index-GlSAE8hE.js";
|
11
11
|
import { useAccount as Oe, useStargateClient as l1, useSuggestChainAndConnect as V1, WalletType as z1 } from "graz";
|
12
|
-
import { S as Z1, D as H1 } from "./down-
|
12
|
+
import { S as Z1, D as H1 } from "./down-hvB7J3FG.js";
|
13
13
|
import { R as G1 } from "./index-CDq3vNnP.js";
|
14
|
-
import { C as ze, P as be, u as K1, g as r1 } from "./getCosmosAddress-
|
14
|
+
import { C as ze, P as be, u as K1, g as r1 } from "./getCosmosAddress-X_cfoAnv.js";
|
15
15
|
function b1({ fill: t }) {
|
16
16
|
return /* @__PURE__ */ p(
|
17
17
|
"svg",
|
@@ -1330,7 +1330,7 @@ function vt(t, n) {
|
|
1330
1330
|
isBalanceLoading: (i == null ? void 0 : i.networkType) == "evm" ? y : b
|
1331
1331
|
};
|
1332
1332
|
}
|
1333
|
-
const kt = de.lazy(() => import("./SwapAsset-
|
1333
|
+
const kt = de.lazy(() => import("./SwapAsset-CkRat7Ok.js")), Nt = de.lazy(() => import("./InputComp-Dl4M7E5v.js")), Tt = de.lazy(() => import("./QuotesProgress-Covy7wmW.js")), It = de.lazy(() => import("./TxnButton-CPMFPFA_.js")), Bt = de.lazy(() => import("./index-CI-V1HdQ.js").then((t) => t.i)), At = de.lazy(() => import("./index-DjHDqI7m.js")), jt = de.lazy(() => import("./LoadRoute-cBSl34Bs.js")), Lt = de.lazy(() => import("./AllRoutes-CIe7ZLbW.js"));
|
1334
1334
|
function Pt({ handleShowWallet: t, showWallet: n, fetchChains: s }) {
|
1335
1335
|
var Ke, Je, qe, Xe, Qe, Ue, Ye;
|
1336
1336
|
const [o, r] = v(), [l, b] = v(!1), [d, i] = v(!1), [g, x] = v(!1), [k, B] = v(!1), [M, F] = v("all"), [h, m] = v(!1), { primaryWallet: I } = Ne(), { address: y } = ge(), { address: S } = Ve(), { getbal: _, isBalanceLoading: ne } = vt(h), { data: E, isConnected: K } = Oe({ chainId: "cosmoshub-4" }), O = c((a) => a.persist), V = c((a) => a.setPersist), f = c((a) => a.route), C = c((a) => a.fromChain), P = c((a) => a.toChain), H = c((a) => a.fromCoin), $ = c((a) => a.toCoin), w = c((a) => a.setFromChain), T = c((a) => a.setToChain), A = c((a) => a.setFromCoin), L = c((a) => a.setToCoin), N = c((a) => a.amount), R = c((a) => a.setAmount), ae = c((a) => a.customWallet), Te = c((a) => a.setCosmosChainIds), W = c((a) => a.customFee), G = c((a) => a.broadCastMode), Q = c((a) => a.evmGas), z = c((a) => a.evmSpeed), Ie = c((a) => a.slippage), ye = c((a) => a.option), Be = c((a) => a.setCustomWallet), Ae = c((a) => a.setSelectedProvider), { balanceSol: u } = mt(C, h, Re), { suggestAndConnectAsync: D } = V1(), re = !!(N.length && C.chain.length && H.coin.length && P.chain.length && $.coin.length && !g && k), ce = ["routes", y, C, P, H, $, N, I == null ? void 0 : I.address, S, ae, E == null ? void 0 : E.bech32Address, W, Q, z, Ie, G, ye.value];
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-
|
1
|
+
import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-BYmiFoJh.js";
|
2
2
|
import * as v from "react";
|
3
3
|
import { jsx as V, jsxs as X } from "react/jsx-runtime";
|
4
|
-
import { B as Y } from "./getChainIds-
|
4
|
+
import { B as Y } from "./getChainIds-DXEtLb1g.js";
|
5
5
|
function Z(o) {
|
6
6
|
return U("MuiButton", o);
|
7
7
|
}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
|
2
2
|
import O, { useContext as J, useState as y, useEffect as g, useRef as K } from "react";
|
3
|
-
import { a as Q, e as V, T as W, H as X, b as F, c as Y, E as Z, d as R } from "./EstGas-
|
4
|
-
import { u as s, l as ee } from "./index-
|
5
|
-
import { i as U, C as L, A as te } from "./useRegisterError-
|
6
|
-
import { B as re } from "./Box-
|
3
|
+
import { a as Q, e as V, T as W, H as X, b as F, c as Y, E as Z, d as R } from "./EstGas-C_ldluj6.js";
|
4
|
+
import { u as s, l as ee } from "./index-D0J1OD73.js";
|
5
|
+
import { i as U, C as L, A as te } from "./useRegisterError-DVG0sgLq.js";
|
6
|
+
import { B as re } from "./Box-QpYIDD-V.js";
|
7
7
|
function ne() {
|
8
8
|
var d, w, a, e, u, b, m, p, x, l, h, C, v, S;
|
9
9
|
const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: i } = U;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as O, b as Y, i as M, _ as w, d as P, s as z, e as L, f as v, h as b, p as g, P as c } from "./index-
|
1
|
+
import { g as O, b as Y, i as M, _ as w, d as P, s as z, e as L, f as v, h as b, p as g, P as c } from "./index-D0J1OD73.js";
|
2
2
|
import * as C from "react";
|
3
3
|
import { jsxs as F, jsx as x } from "react/jsx-runtime";
|
4
4
|
function Z(r, i = 166) {
|
@@ -0,0 +1,472 @@
|
|
1
|
+
import { b as G, g as U, p as P, y as H, i as q, _ as J, d as u, s as W, e as M, f as d, h as K, r as Q, j as m, P as i } from "./index-D0J1OD73.js";
|
2
|
+
import * as v from "react";
|
3
|
+
import { jsx as V, jsxs as X } from "react/jsx-runtime";
|
4
|
+
import { B as Y } from "./getChainIds-AaKb_MmO.js";
|
5
|
+
function Z(o) {
|
6
|
+
return U("MuiButton", o);
|
7
|
+
}
|
8
|
+
const O = G("MuiButton", ["root", "text", "textInherit", "textPrimary", "textSecondary", "textSuccess", "textError", "textInfo", "textWarning", "outlined", "outlinedInherit", "outlinedPrimary", "outlinedSecondary", "outlinedSuccess", "outlinedError", "outlinedInfo", "outlinedWarning", "contained", "containedInherit", "containedPrimary", "containedSecondary", "containedSuccess", "containedError", "containedInfo", "containedWarning", "disableElevation", "focusVisible", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorSuccess", "colorError", "colorInfo", "colorWarning", "textSizeSmall", "textSizeMedium", "textSizeLarge", "outlinedSizeSmall", "outlinedSizeMedium", "outlinedSizeLarge", "containedSizeSmall", "containedSizeMedium", "containedSizeLarge", "sizeMedium", "sizeSmall", "sizeLarge", "fullWidth", "startIcon", "endIcon", "icon", "iconSizeSmall", "iconSizeMedium", "iconSizeLarge"]), _ = /* @__PURE__ */ v.createContext({});
|
9
|
+
P.env.NODE_ENV !== "production" && (_.displayName = "ButtonGroupContext");
|
10
|
+
const L = /* @__PURE__ */ v.createContext(void 0);
|
11
|
+
P.env.NODE_ENV !== "production" && (L.displayName = "ButtonGroupButtonContext");
|
12
|
+
const w = ["children", "color", "component", "className", "disabled", "disableElevation", "disableFocusRipple", "endIcon", "focusVisibleClassName", "fullWidth", "size", "startIcon", "type", "variant"], oo = (o) => {
|
13
|
+
const {
|
14
|
+
color: n,
|
15
|
+
disableElevation: r,
|
16
|
+
fullWidth: s,
|
17
|
+
size: l,
|
18
|
+
variant: t,
|
19
|
+
classes: e
|
20
|
+
} = o, a = {
|
21
|
+
root: ["root", t, `${t}${d(n)}`, `size${d(l)}`, `${t}Size${d(l)}`, `color${d(n)}`, r && "disableElevation", s && "fullWidth"],
|
22
|
+
label: ["label"],
|
23
|
+
startIcon: ["icon", "startIcon", `iconSize${d(l)}`],
|
24
|
+
endIcon: ["icon", "endIcon", `iconSize${d(l)}`]
|
25
|
+
}, c = K(a, Z, e);
|
26
|
+
return u({}, e, c);
|
27
|
+
}, j = (o) => u({}, o.size === "small" && {
|
28
|
+
"& > *:nth-of-type(1)": {
|
29
|
+
fontSize: 18
|
30
|
+
}
|
31
|
+
}, o.size === "medium" && {
|
32
|
+
"& > *:nth-of-type(1)": {
|
33
|
+
fontSize: 20
|
34
|
+
}
|
35
|
+
}, o.size === "large" && {
|
36
|
+
"& > *:nth-of-type(1)": {
|
37
|
+
fontSize: 22
|
38
|
+
}
|
39
|
+
}), no = W(Y, {
|
40
|
+
shouldForwardProp: (o) => Q(o) || o === "classes",
|
41
|
+
name: "MuiButton",
|
42
|
+
slot: "Root",
|
43
|
+
overridesResolver: (o, n) => {
|
44
|
+
const {
|
45
|
+
ownerState: r
|
46
|
+
} = o;
|
47
|
+
return [n.root, n[r.variant], n[`${r.variant}${d(r.color)}`], n[`size${d(r.size)}`], n[`${r.variant}Size${d(r.size)}`], r.color === "inherit" && n.colorInherit, r.disableElevation && n.disableElevation, r.fullWidth && n.fullWidth];
|
48
|
+
}
|
49
|
+
})(({
|
50
|
+
theme: o,
|
51
|
+
ownerState: n
|
52
|
+
}) => {
|
53
|
+
var r, s;
|
54
|
+
const l = o.palette.mode === "light" ? o.palette.grey[300] : o.palette.grey[800], t = o.palette.mode === "light" ? o.palette.grey.A100 : o.palette.grey[700];
|
55
|
+
return u({}, o.typography.button, {
|
56
|
+
minWidth: 64,
|
57
|
+
padding: "6px 16px",
|
58
|
+
borderRadius: (o.vars || o).shape.borderRadius,
|
59
|
+
transition: o.transitions.create(["background-color", "box-shadow", "border-color", "color"], {
|
60
|
+
duration: o.transitions.duration.short
|
61
|
+
}),
|
62
|
+
"&:hover": u({
|
63
|
+
textDecoration: "none",
|
64
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.text.primaryChannel} / ${o.vars.palette.action.hoverOpacity})` : m.alpha(o.palette.text.primary, o.palette.action.hoverOpacity),
|
65
|
+
// Reset on touch devices, it doesn't add specificity
|
66
|
+
"@media (hover: none)": {
|
67
|
+
backgroundColor: "transparent"
|
68
|
+
}
|
69
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
70
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : m.alpha(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
71
|
+
// Reset on touch devices, it doesn't add specificity
|
72
|
+
"@media (hover: none)": {
|
73
|
+
backgroundColor: "transparent"
|
74
|
+
}
|
75
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
76
|
+
border: `1px solid ${(o.vars || o).palette[n.color].main}`,
|
77
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette[n.color].mainChannel} / ${o.vars.palette.action.hoverOpacity})` : m.alpha(o.palette[n.color].main, o.palette.action.hoverOpacity),
|
78
|
+
// Reset on touch devices, it doesn't add specificity
|
79
|
+
"@media (hover: none)": {
|
80
|
+
backgroundColor: "transparent"
|
81
|
+
}
|
82
|
+
}, n.variant === "contained" && {
|
83
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedHoverBg : t,
|
84
|
+
boxShadow: (o.vars || o).shadows[4],
|
85
|
+
// Reset on touch devices, it doesn't add specificity
|
86
|
+
"@media (hover: none)": {
|
87
|
+
boxShadow: (o.vars || o).shadows[2],
|
88
|
+
backgroundColor: (o.vars || o).palette.grey[300]
|
89
|
+
}
|
90
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
91
|
+
backgroundColor: (o.vars || o).palette[n.color].dark,
|
92
|
+
// Reset on touch devices, it doesn't add specificity
|
93
|
+
"@media (hover: none)": {
|
94
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
95
|
+
}
|
96
|
+
}),
|
97
|
+
"&:active": u({}, n.variant === "contained" && {
|
98
|
+
boxShadow: (o.vars || o).shadows[8]
|
99
|
+
}),
|
100
|
+
[`&.${O.focusVisible}`]: u({}, n.variant === "contained" && {
|
101
|
+
boxShadow: (o.vars || o).shadows[6]
|
102
|
+
}),
|
103
|
+
[`&.${O.disabled}`]: u({
|
104
|
+
color: (o.vars || o).palette.action.disabled
|
105
|
+
}, n.variant === "outlined" && {
|
106
|
+
border: `1px solid ${(o.vars || o).palette.action.disabledBackground}`
|
107
|
+
}, n.variant === "contained" && {
|
108
|
+
color: (o.vars || o).palette.action.disabled,
|
109
|
+
boxShadow: (o.vars || o).shadows[0],
|
110
|
+
backgroundColor: (o.vars || o).palette.action.disabledBackground
|
111
|
+
})
|
112
|
+
}, n.variant === "text" && {
|
113
|
+
padding: "6px 8px"
|
114
|
+
}, n.variant === "text" && n.color !== "inherit" && {
|
115
|
+
color: (o.vars || o).palette[n.color].main
|
116
|
+
}, n.variant === "outlined" && {
|
117
|
+
padding: "5px 15px",
|
118
|
+
border: "1px solid currentColor"
|
119
|
+
}, n.variant === "outlined" && n.color !== "inherit" && {
|
120
|
+
color: (o.vars || o).palette[n.color].main,
|
121
|
+
border: o.vars ? `1px solid rgba(${o.vars.palette[n.color].mainChannel} / 0.5)` : `1px solid ${m.alpha(o.palette[n.color].main, 0.5)}`
|
122
|
+
}, n.variant === "contained" && {
|
123
|
+
color: o.vars ? (
|
124
|
+
// this is safe because grey does not change between default light/dark mode
|
125
|
+
o.vars.palette.text.primary
|
126
|
+
) : (r = (s = o.palette).getContrastText) == null ? void 0 : r.call(s, o.palette.grey[300]),
|
127
|
+
backgroundColor: o.vars ? o.vars.palette.Button.inheritContainedBg : l,
|
128
|
+
boxShadow: (o.vars || o).shadows[2]
|
129
|
+
}, n.variant === "contained" && n.color !== "inherit" && {
|
130
|
+
color: (o.vars || o).palette[n.color].contrastText,
|
131
|
+
backgroundColor: (o.vars || o).palette[n.color].main
|
132
|
+
}, n.color === "inherit" && {
|
133
|
+
color: "inherit",
|
134
|
+
borderColor: "currentColor"
|
135
|
+
}, n.size === "small" && n.variant === "text" && {
|
136
|
+
padding: "4px 5px",
|
137
|
+
fontSize: o.typography.pxToRem(13)
|
138
|
+
}, n.size === "large" && n.variant === "text" && {
|
139
|
+
padding: "8px 11px",
|
140
|
+
fontSize: o.typography.pxToRem(15)
|
141
|
+
}, n.size === "small" && n.variant === "outlined" && {
|
142
|
+
padding: "3px 9px",
|
143
|
+
fontSize: o.typography.pxToRem(13)
|
144
|
+
}, n.size === "large" && n.variant === "outlined" && {
|
145
|
+
padding: "7px 21px",
|
146
|
+
fontSize: o.typography.pxToRem(15)
|
147
|
+
}, n.size === "small" && n.variant === "contained" && {
|
148
|
+
padding: "4px 10px",
|
149
|
+
fontSize: o.typography.pxToRem(13)
|
150
|
+
}, n.size === "large" && n.variant === "contained" && {
|
151
|
+
padding: "8px 22px",
|
152
|
+
fontSize: o.typography.pxToRem(15)
|
153
|
+
}, n.fullWidth && {
|
154
|
+
width: "100%"
|
155
|
+
});
|
156
|
+
}, ({
|
157
|
+
ownerState: o
|
158
|
+
}) => o.disableElevation && {
|
159
|
+
boxShadow: "none",
|
160
|
+
"&:hover": {
|
161
|
+
boxShadow: "none"
|
162
|
+
},
|
163
|
+
[`&.${O.focusVisible}`]: {
|
164
|
+
boxShadow: "none"
|
165
|
+
},
|
166
|
+
"&:active": {
|
167
|
+
boxShadow: "none"
|
168
|
+
},
|
169
|
+
[`&.${O.disabled}`]: {
|
170
|
+
boxShadow: "none"
|
171
|
+
}
|
172
|
+
}), io = W("span", {
|
173
|
+
name: "MuiButton",
|
174
|
+
slot: "StartIcon",
|
175
|
+
overridesResolver: (o, n) => {
|
176
|
+
const {
|
177
|
+
ownerState: r
|
178
|
+
} = o;
|
179
|
+
return [n.startIcon, n[`iconSize${d(r.size)}`]];
|
180
|
+
}
|
181
|
+
})(({
|
182
|
+
ownerState: o
|
183
|
+
}) => u({
|
184
|
+
display: "inherit",
|
185
|
+
marginRight: 8,
|
186
|
+
marginLeft: -4
|
187
|
+
}, o.size === "small" && {
|
188
|
+
marginLeft: -2
|
189
|
+
}, j(o))), ro = W("span", {
|
190
|
+
name: "MuiButton",
|
191
|
+
slot: "EndIcon",
|
192
|
+
overridesResolver: (o, n) => {
|
193
|
+
const {
|
194
|
+
ownerState: r
|
195
|
+
} = o;
|
196
|
+
return [n.endIcon, n[`iconSize${d(r.size)}`]];
|
197
|
+
}
|
198
|
+
})(({
|
199
|
+
ownerState: o
|
200
|
+
}) => u({
|
201
|
+
display: "inherit",
|
202
|
+
marginRight: -4,
|
203
|
+
marginLeft: 8
|
204
|
+
}, o.size === "small" && {
|
205
|
+
marginRight: -2
|
206
|
+
}, j(o))), ao = /* @__PURE__ */ v.forwardRef(function(n, r) {
|
207
|
+
const s = v.useContext(_), l = v.useContext(L), t = H(s, n), e = q({
|
208
|
+
props: t,
|
209
|
+
name: "MuiButton"
|
210
|
+
}), {
|
211
|
+
children: a,
|
212
|
+
color: c = "primary",
|
213
|
+
component: f = "button",
|
214
|
+
className: g,
|
215
|
+
disabled: x = !1,
|
216
|
+
disableElevation: T = !1,
|
217
|
+
disableFocusRipple: y = !1,
|
218
|
+
endIcon: z,
|
219
|
+
focusVisibleClassName: $,
|
220
|
+
fullWidth: C = !1,
|
221
|
+
size: B = "medium",
|
222
|
+
startIcon: p,
|
223
|
+
type: b,
|
224
|
+
variant: R = "text"
|
225
|
+
} = e, I = J(e, w), E = u({}, e, {
|
226
|
+
color: c,
|
227
|
+
component: f,
|
228
|
+
disabled: x,
|
229
|
+
disableElevation: T,
|
230
|
+
disableFocusRipple: y,
|
231
|
+
fullWidth: C,
|
232
|
+
size: B,
|
233
|
+
type: b,
|
234
|
+
variant: R
|
235
|
+
}), h = oo(E), A = p && /* @__PURE__ */ V(io, {
|
236
|
+
className: h.startIcon,
|
237
|
+
ownerState: E,
|
238
|
+
children: p
|
239
|
+
}), D = z && /* @__PURE__ */ V(ro, {
|
240
|
+
className: h.endIcon,
|
241
|
+
ownerState: E,
|
242
|
+
children: z
|
243
|
+
}), F = l || "";
|
244
|
+
return /* @__PURE__ */ X(no, u({
|
245
|
+
ownerState: E,
|
246
|
+
className: M(s.className, h.root, g, F),
|
247
|
+
component: f,
|
248
|
+
disabled: x,
|
249
|
+
focusRipple: !y,
|
250
|
+
focusVisibleClassName: M(h.focusVisible, $),
|
251
|
+
ref: r,
|
252
|
+
type: b
|
253
|
+
}, I, {
|
254
|
+
classes: h,
|
255
|
+
children: [A, a, D]
|
256
|
+
}));
|
257
|
+
});
|
258
|
+
P.env.NODE_ENV !== "production" && (ao.propTypes = {
|
259
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
260
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
261
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
262
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
263
|
+
/**
|
264
|
+
* The content of the component.
|
265
|
+
*/
|
266
|
+
children: i.node,
|
267
|
+
/**
|
268
|
+
* Override or extend the styles applied to the component.
|
269
|
+
*/
|
270
|
+
classes: i.object,
|
271
|
+
/**
|
272
|
+
* @ignore
|
273
|
+
*/
|
274
|
+
className: i.string,
|
275
|
+
/**
|
276
|
+
* The color of the component.
|
277
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
278
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
279
|
+
* @default 'primary'
|
280
|
+
*/
|
281
|
+
color: i.oneOfType([i.oneOf(["inherit", "primary", "secondary", "success", "error", "info", "warning"]), i.string]),
|
282
|
+
/**
|
283
|
+
* The component used for the root node.
|
284
|
+
* Either a string to use a HTML element or a component.
|
285
|
+
*/
|
286
|
+
component: i.elementType,
|
287
|
+
/**
|
288
|
+
* If `true`, the component is disabled.
|
289
|
+
* @default false
|
290
|
+
*/
|
291
|
+
disabled: i.bool,
|
292
|
+
/**
|
293
|
+
* If `true`, no elevation is used.
|
294
|
+
* @default false
|
295
|
+
*/
|
296
|
+
disableElevation: i.bool,
|
297
|
+
/**
|
298
|
+
* If `true`, the keyboard focus ripple is disabled.
|
299
|
+
* @default false
|
300
|
+
*/
|
301
|
+
disableFocusRipple: i.bool,
|
302
|
+
/**
|
303
|
+
* If `true`, the ripple effect is disabled.
|
304
|
+
*
|
305
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
306
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
307
|
+
* @default false
|
308
|
+
*/
|
309
|
+
disableRipple: i.bool,
|
310
|
+
/**
|
311
|
+
* Element placed after the children.
|
312
|
+
*/
|
313
|
+
endIcon: i.node,
|
314
|
+
/**
|
315
|
+
* @ignore
|
316
|
+
*/
|
317
|
+
focusVisibleClassName: i.string,
|
318
|
+
/**
|
319
|
+
* If `true`, the button will take up the full width of its container.
|
320
|
+
* @default false
|
321
|
+
*/
|
322
|
+
fullWidth: i.bool,
|
323
|
+
/**
|
324
|
+
* The URL to link to when the button is clicked.
|
325
|
+
* If defined, an `a` element will be used as the root node.
|
326
|
+
*/
|
327
|
+
href: i.string,
|
328
|
+
/**
|
329
|
+
* The size of the component.
|
330
|
+
* `small` is equivalent to the dense button styling.
|
331
|
+
* @default 'medium'
|
332
|
+
*/
|
333
|
+
size: i.oneOfType([i.oneOf(["small", "medium", "large"]), i.string]),
|
334
|
+
/**
|
335
|
+
* Element placed before the children.
|
336
|
+
*/
|
337
|
+
startIcon: i.node,
|
338
|
+
/**
|
339
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
340
|
+
*/
|
341
|
+
sx: i.oneOfType([i.arrayOf(i.oneOfType([i.func, i.object, i.bool])), i.func, i.object]),
|
342
|
+
/**
|
343
|
+
* @ignore
|
344
|
+
*/
|
345
|
+
type: i.oneOfType([i.oneOf(["button", "reset", "submit"]), i.string]),
|
346
|
+
/**
|
347
|
+
* The variant to use.
|
348
|
+
* @default 'text'
|
349
|
+
*/
|
350
|
+
variant: i.oneOfType([i.oneOf(["contained", "outlined", "text"]), i.string])
|
351
|
+
});
|
352
|
+
var S = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new WeakMap(), k = 0, to = void 0;
|
353
|
+
function eo(o) {
|
354
|
+
return o ? (N.has(o) || (k += 1, N.set(o, k.toString())), N.get(o)) : "0";
|
355
|
+
}
|
356
|
+
function so(o) {
|
357
|
+
return Object.keys(o).sort().filter(
|
358
|
+
(n) => o[n] !== void 0
|
359
|
+
).map((n) => `${n}_${n === "root" ? eo(o.root) : o[n]}`).toString();
|
360
|
+
}
|
361
|
+
function lo(o) {
|
362
|
+
const n = so(o);
|
363
|
+
let r = S.get(n);
|
364
|
+
if (!r) {
|
365
|
+
const s = /* @__PURE__ */ new Map();
|
366
|
+
let l;
|
367
|
+
const t = new IntersectionObserver((e) => {
|
368
|
+
e.forEach((a) => {
|
369
|
+
var c;
|
370
|
+
const f = a.isIntersecting && l.some((g) => a.intersectionRatio >= g);
|
371
|
+
o.trackVisibility && typeof a.isVisible > "u" && (a.isVisible = f), (c = s.get(a.target)) == null || c.forEach((g) => {
|
372
|
+
g(f, a);
|
373
|
+
});
|
374
|
+
});
|
375
|
+
}, o);
|
376
|
+
l = t.thresholds || (Array.isArray(o.threshold) ? o.threshold : [o.threshold || 0]), r = {
|
377
|
+
id: n,
|
378
|
+
observer: t,
|
379
|
+
elements: s
|
380
|
+
}, S.set(n, r);
|
381
|
+
}
|
382
|
+
return r;
|
383
|
+
}
|
384
|
+
function co(o, n, r = {}, s = to) {
|
385
|
+
if (typeof window.IntersectionObserver > "u" && s !== void 0) {
|
386
|
+
const c = o.getBoundingClientRect();
|
387
|
+
return n(s, {
|
388
|
+
isIntersecting: s,
|
389
|
+
target: o,
|
390
|
+
intersectionRatio: typeof r.threshold == "number" ? r.threshold : 0,
|
391
|
+
time: 0,
|
392
|
+
boundingClientRect: c,
|
393
|
+
intersectionRect: c,
|
394
|
+
rootBounds: c
|
395
|
+
}), () => {
|
396
|
+
};
|
397
|
+
}
|
398
|
+
const { id: l, observer: t, elements: e } = lo(r), a = e.get(o) || [];
|
399
|
+
return e.has(o) || e.set(o, a), a.push(n), t.observe(o), function() {
|
400
|
+
a.splice(a.indexOf(n), 1), a.length === 0 && (e.delete(o), t.unobserve(o)), e.size === 0 && (t.disconnect(), S.delete(l));
|
401
|
+
};
|
402
|
+
}
|
403
|
+
function bo({
|
404
|
+
threshold: o,
|
405
|
+
delay: n,
|
406
|
+
trackVisibility: r,
|
407
|
+
rootMargin: s,
|
408
|
+
root: l,
|
409
|
+
triggerOnce: t,
|
410
|
+
skip: e,
|
411
|
+
initialInView: a,
|
412
|
+
fallbackInView: c,
|
413
|
+
onChange: f
|
414
|
+
} = {}) {
|
415
|
+
var g;
|
416
|
+
const [x, T] = v.useState(null), y = v.useRef(f), [z, $] = v.useState({
|
417
|
+
inView: !!a,
|
418
|
+
entry: void 0
|
419
|
+
});
|
420
|
+
y.current = f, v.useEffect(
|
421
|
+
() => {
|
422
|
+
if (e || !x) return;
|
423
|
+
let b;
|
424
|
+
return b = co(
|
425
|
+
x,
|
426
|
+
(R, I) => {
|
427
|
+
$({
|
428
|
+
inView: R,
|
429
|
+
entry: I
|
430
|
+
}), y.current && y.current(R, I), I.isIntersecting && t && b && (b(), b = void 0);
|
431
|
+
},
|
432
|
+
{
|
433
|
+
root: l,
|
434
|
+
rootMargin: s,
|
435
|
+
threshold: o,
|
436
|
+
// @ts-ignore
|
437
|
+
trackVisibility: r,
|
438
|
+
// @ts-ignore
|
439
|
+
delay: n
|
440
|
+
},
|
441
|
+
c
|
442
|
+
), () => {
|
443
|
+
b && b();
|
444
|
+
};
|
445
|
+
},
|
446
|
+
// We break the rule here, because we aren't including the actual `threshold` variable
|
447
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
448
|
+
[
|
449
|
+
// If the threshold is an array, convert it to a string, so it won't change between renders.
|
450
|
+
Array.isArray(o) ? o.toString() : o,
|
451
|
+
x,
|
452
|
+
l,
|
453
|
+
s,
|
454
|
+
t,
|
455
|
+
e,
|
456
|
+
r,
|
457
|
+
c,
|
458
|
+
n
|
459
|
+
]
|
460
|
+
);
|
461
|
+
const C = (g = z.entry) == null ? void 0 : g.target, B = v.useRef(void 0);
|
462
|
+
!x && C && !t && !e && B.current !== C && (B.current = C, $({
|
463
|
+
inView: !!a,
|
464
|
+
entry: void 0
|
465
|
+
}));
|
466
|
+
const p = [T, z.inView, z.entry];
|
467
|
+
return p.ref = p[0], p.inView = p[1], p.entry = p[2], p;
|
468
|
+
}
|
469
|
+
export {
|
470
|
+
ao as B,
|
471
|
+
bo as u
|
472
|
+
};
|