@blockend/widget 1.0.61 → 1.0.62
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-BqW5S4_J.js → AllRoutes-pT_GYhLz.js} +9 -9
- package/dist/{Box-Dw7IJo3D.js → Box-CMXImt80.js} +1 -1
- package/dist/{EstGas-C_ldluj6.js → EstGas-BEwQc47B.js} +7 -7
- package/dist/{Grow-DjneaPQY.js → Grow-CYJk-72r.js} +2 -2
- package/dist/{InputComp-CWH4SAk7.js → InputComp-B0QgFbsj.js} +3 -3
- package/dist/{LoadRoute-Cafzlcfy.js → LoadRoute-I--KmXYZ.js} +4 -4
- package/dist/{QuotesProgress-Covy7wmW.js → QuotesProgress-Ct53CRUU.js} +1 -1
- package/dist/{SwapAsset-BqXVX_DR.js → SwapAsset-X7gAsFxL.js} +1 -1
- package/dist/{Tooltip-3YpYU_vO.js → Tooltip-CsxhxDbM.js} +3 -3
- package/dist/{TxnButton-CPMFPFA_.js → TxnButton-BZf2lfxu.js} +3 -3
- package/dist/{add-CRY8asYF.js → add-fqHpy_n_.js} +1 -1
- package/dist/{all-wallets-DOnIRIv0.js → all-wallets-BEiHad26.js} +1 -1
- package/dist/{app-store-C0M9hC1B.js → app-store-BUrtll4M.js} +1 -1
- package/dist/{apple-Bv7oA5AQ.js → apple-DeP0r4ax.js} +1 -1
- package/dist/{arrow-bottom-D4arnome.js → arrow-bottom-DOUsYrpS.js} +1 -1
- package/dist/{arrow-bottom-circle-BUny4yP8.js → arrow-bottom-circle-3zt0oM9l.js} +1 -1
- package/dist/{arrow-left-DImJbKZs.js → arrow-left-CZi8gizN.js} +1 -1
- package/dist/{arrow-right-BvRPNX9F.js → arrow-right-Bp2k-sRU.js} +1 -1
- package/dist/{arrow-top-1RWPJImu.js → arrow-top-Bdu-g3eb.js} +1 -1
- package/dist/{bank-C0t9JpLj.js → bank-UM_6-xYg.js} +1 -1
- package/dist/{basic-VfgwBHn1.js → basic-CfaJcj31.js} +3 -3
- package/dist/{browser-0d0uw45D.js → browser-DE4dHUIn.js} +1 -1
- package/dist/{card-BBByykfy.js → card-CpV_uFyN.js} +1 -1
- package/dist/{ccip-8__szz9Q.js → ccip-CA2a9SDo.js} +1 -1
- package/dist/{checkmark-B_osdsm_.js → checkmark-CK8NZa3x.js} +1 -1
- package/dist/{checkmark-bold-BEzepFY4.js → checkmark-bold-DgI_WWpK.js} +1 -1
- package/dist/{chevron-bottom-Bdaxlaxc.js → chevron-bottom-C_3_Lg-x.js} +1 -1
- package/dist/{chevron-left-2aCeqxdm.js → chevron-left-Dn-8RUKj.js} +1 -1
- package/dist/{chevron-right-BPgQeMPz.js → chevron-right-BrzGCKbe.js} +1 -1
- package/dist/{chevron-top-BskFpgMP.js → chevron-top-DH4uxqMd.js} +1 -1
- package/dist/{chrome-store-CxhEG2Jk.js → chrome-store-C6ftVKRM.js} +1 -1
- package/dist/{clock-BDgHn083.js → clock-BMAqcMX9.js} +1 -1
- package/dist/{close-CQTa1LZg.js → close-B99wQvJ_.js} +1 -1
- package/dist/{coinPlaceholder-B-NSV729.js → coinPlaceholder-DmuYNsmb.js} +1 -1
- package/dist/{compass-BdJmk2w2.js → compass-C4wdl146.js} +1 -1
- package/dist/{copy-Cg4vgr82.js → copy-DMJQyfJj.js} +1 -1
- package/dist/{core-BSwMFU2B.js → core-v6ho39ji.js} +3 -3
- package/dist/{cursor-BoD_rq0f.js → cursor-C-0knOkC.js} +1 -1
- package/dist/{cursor-transparent-Dqs1kXcb.js → cursor-transparent-BLuqOo6k.js} +1 -1
- package/dist/{desktop-BOxkTik1.js → desktop-DpJrO84H.js} +1 -1
- package/dist/{disconnect-CTxFyZWa.js → disconnect-k6w6zlk-.js} +1 -1
- package/dist/{discord-BJRxIhBt.js → discord-DLgkGibC.js} +1 -1
- package/dist/{down-372J_rRV.js → down-C4N-wh2D.js} +2 -2
- package/dist/{etherscan-CyQf5MH5.js → etherscan-DJTxjIAP.js} +1 -1
- package/dist/{exclamation-triangle-DFOXjtuI.js → exclamation-triangle-B1YdY5CX.js} +1 -1
- package/dist/{extension-XiWSr1Ku.js → extension-CnhByDAh.js} +1 -1
- package/dist/{external-link-CYjbHRDY.js → external-link-CZmI3Q92.js} +1 -1
- package/dist/{facebook-DhP37m2R.js → facebook-CRHPGcBq.js} +1 -1
- package/dist/{farcaster-C1J2oGt2.js → farcaster-BYs6AvgJ.js} +1 -1
- package/dist/{filters-C5jLy9GP.js → filters-BqJFiFCl.js} +1 -1
- package/dist/{getChainIds-AaKb_MmO.js → getChainIds-CPQkM2Fw.js} +2 -2
- package/dist/{getCosmosAddress-D-F7jz-d.js → getCosmosAddress-CrzIqoe8.js} +2 -2
- package/dist/{github-CJ8g1by7.js → github-WI_fsQyX.js} +1 -1
- package/dist/{google-DpIVCnNm.js → google-PDPeuX25.js} +1 -1
- package/dist/{hamburger-BylLGawu.js → hamburger-JHCSR4wq.js} +5 -5
- package/dist/{help-circle-BESCFGIa.js → help-circle-CC1LutMp.js} +1 -1
- package/dist/{id-CPX0IEMo.js → id-Dg4qm85K.js} +1 -1
- package/dist/{image-DrFHyQOS.js → image-DvH3pCRi.js} +1 -1
- package/dist/{index-DoNokw4Q.js → index-4DGqOb0b.js} +1 -1
- package/dist/{index-ePnYqYhf.js → index-BAjx9Sij.js} +345 -343
- package/dist/{index-H7ThVJwV.js → index-BII8gr4h.js} +4 -4
- package/dist/{index-DO14DPs3.js → index-Bl06WOfD.js} +5 -5
- package/dist/{index-BOd8pd8c.js → index-BrgwPS_u.js} +11 -11
- package/dist/{index-BDezoD7C.js → index-ByNEeX9y.js} +1 -1
- package/dist/{index-D0J1OD73.js → index-CBMjkxpP.js} +4 -4
- package/dist/{index-DhZwdjPQ.js → index-D8oYLVSL.js} +2 -2
- package/dist/{index-DjHDqI7m.js → index-DbOqrlxW.js} +4 -4
- package/dist/{index-eatshJSd.js → index-Mqg8CWuX.js} +10 -10
- package/dist/{index-BheqnLKf.js → index-qIeZpXcg.js} +78 -78
- package/dist/{index.es-gTtSa0r5.js → index.es-DV8y1ve_.js} +2 -2
- package/dist/{index.es-B95K0DgG.js → index.es-DkTmjrB8.js} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{info-DB9XS3BU.js → info-Cjmzqm5P.js} +1 -1
- package/dist/{info-circle-BVB8s9W_.js → info-circle-Dimf4UPG.js} +1 -1
- package/dist/{lightbulb-C0eiLvuS.js → lightbulb-BsZjMPbK.js} +1 -1
- package/dist/{mail-CYcc9yZZ.js → mail-KNgNgUMG.js} +1 -1
- package/dist/{mobile-Cvm9Skqq.js → mobile-hJMru58F.js} +1 -1
- package/dist/{more-B-UvO1Yo.js → more-B1Hz9ISJ.js} +1 -1
- package/dist/{network-placeholder-C8QNcwPf.js → network-placeholder-Ba37-PVe.js} +1 -1
- package/dist/{nftPlaceholder-C_LU9tT5.js → nftPlaceholder-Br6ZCUyX.js} +1 -1
- package/dist/{off-BEQbMYBZ.js → off-DZv0f5qk.js} +1 -1
- package/dist/{play-store-CEopCauM.js → play-store-PVT99oFp.js} +1 -1
- package/dist/{plus-CtEYHV2t.js → plus-0JhMk1yC.js} +1 -1
- package/dist/{qr-code-BhmZxeo_.js → qr-code-CYMnN7H6.js} +1 -1
- package/dist/{recycle-horizontal-CF9eqICi.js → recycle-horizontal-BODX35XL.js} +1 -1
- package/dist/{refresh-Bm3plkBE.js → refresh-KT2nzf4V.js} +1 -1
- package/dist/{reown-logo-8S9ZN_-T.js → reown-logo-x-a1ehju.js} +1 -1
- package/dist/{search-DNcA47oY.js → search-floOYVWE.js} +1 -1
- package/dist/{send-B0S9gHH6.js → send-rBEZNvkT.js} +1 -1
- package/dist/{swapHorizontal-BuTPPB8N.js → swapHorizontal-FpW50anF.js} +1 -1
- package/dist/{swapHorizontalBold-BnB-fpce.js → swapHorizontalBold-DJo2s6QM.js} +1 -1
- package/dist/{swapHorizontalMedium-9QnwwjJD.js → swapHorizontalMedium-AdMIxAQ-.js} +1 -1
- package/dist/{swapHorizontalRoundedBold-C83mxp3u.js → swapHorizontalRoundedBold-DB7VaS-l.js} +1 -1
- package/dist/{swapVertical-BAz7hmKO.js → swapVertical-CStjk8mq.js} +1 -1
- package/dist/{telegram-BMT9bLfw.js → telegram-B7o9hZwP.js} +1 -1
- package/dist/{three-dots-DuhUrXKI.js → three-dots-DogTUFsH.js} +1 -1
- package/dist/{twitch-ClsoABSi.js → twitch-B_TRhhNU.js} +1 -1
- package/dist/{twitterIcon-B9n98fnH.js → twitterIcon-ujuPKvRN.js} +1 -1
- package/dist/{unsupportedProp-BXmR-9gT.js → unsupportedProp-BC6azYXA.js} +1 -1
- package/dist/{useRegisterError-DVG0sgLq.js → useRegisterError-DMILz6N1.js} +1 -1
- package/dist/{verify-BHTa1Niv.js → verify-BRWSwLhn.js} +1 -1
- package/dist/{verify-filled-CqobBYuI.js → verify-filled-z7UoRJXn.js} +1 -1
- package/dist/{w3m-modal-B7akV0Kp.js → w3m-modal-CuXPdser.js} +2 -2
- package/dist/{wallet-ObJy7yZR.js → wallet-BMFvv3DF.js} +1 -1
- package/dist/{wallet-placeholder-BxVrKpEz.js → wallet-placeholder-DFg6CZXP.js} +1 -1
- package/dist/{walletconnect-CYJbrPQQ.js → walletconnect-WSdSSZfM.js} +1 -1
- package/dist/{warning-circle-DOwgDOgL.js → warning-circle-BDW9xnhM.js} +1 -1
- package/dist/{x-B03u0kWD.js → x-DUDktTjC.js} +1 -1
- package/package.json +1 -1
- package/dist/AllRoutes-CIe7ZLbW.js +0 -2209
- package/dist/Box-QpYIDD-V.js +0 -54
- package/dist/EstGas-Dpwt2-50.js +0 -1574
- package/dist/Grow-L7kyPhbh.js +0 -1656
- package/dist/InputComp-Dl4M7E5v.js +0 -105
- package/dist/LoadRoute-cBSl34Bs.js +0 -125
- package/dist/QuotesProgress-CxJUoCPy.js +0 -28
- package/dist/SwapAsset-CkRat7Ok.js +0 -51
- package/dist/Tooltip-D2kKNQ0U.js +0 -572
- package/dist/TxnButton-mfwy-EoQ.js +0 -222
- package/dist/add-Dfrw-dUV.js +0 -19
- package/dist/all-wallets-Dw10lWJZ.js +0 -10
- package/dist/app-store-DJiZFSCr.js +0 -21
- package/dist/apple-kMZGS4AC.js +0 -22
- package/dist/arrow-bottom-DgmWrLqf.js +0 -12
- package/dist/arrow-bottom-circle-C7iPKwzW.js +0 -15
- package/dist/arrow-left-Dol642VI.js +0 -12
- package/dist/arrow-right-CMwyPVT7.js +0 -12
- package/dist/arrow-top-kn9xtx92.js +0 -12
- package/dist/bank-DK-FvDfd.js +0 -18
- package/dist/basic-Sejv2JvX.js +0 -5783
- package/dist/browser-BzT1ACe9.js +0 -18
- package/dist/card-DqDM55a-.js +0 -18
- package/dist/ccip-BPZSey8I.js +0 -228
- package/dist/checkmark-DEKH6rOS.js +0 -15
- package/dist/checkmark-bold-Dzv2hN2Q.js +0 -12
- package/dist/chevron-bottom-CXdHWe0F.js +0 -12
- package/dist/chevron-left-CeuFz3M9.js +0 -12
- package/dist/chevron-right-DikqbHjp.js +0 -12
- package/dist/chevron-top-CjCScawp.js +0 -12
- package/dist/chrome-store-DaP5Y4w2.js +0 -65
- package/dist/clock-BzjZWK68.js +0 -12
- package/dist/close-Dqncm2nY.js +0 -12
- package/dist/coinPlaceholder-BExfa33b.js +0 -12
- package/dist/compass-C1H_fht-.js +0 -12
- package/dist/copy-DPMVX3yZ.js +0 -19
- package/dist/core-BYOwnw_B.js +0 -16521
- package/dist/cursor-transparent-IQlZspwQ.js +0 -16
- package/dist/cursor-ybJpiPr6.js +0 -7
- package/dist/desktop-WMYv3b4Q.js +0 -13
- package/dist/disconnect-eMeec26w.js +0 -12
- package/dist/discord-CpTo4KnZ.js +0 -21
- package/dist/down-hvB7J3FG.js +0 -622
- package/dist/etherscan-DQ1h54d3.js +0 -10
- package/dist/exclamation-triangle-DzKs0-30.js +0 -8
- package/dist/extension-ep1TEUSD.js +0 -12
- package/dist/external-link-DRzzevt_.js +0 -12
- package/dist/facebook-eXS31CP5.js +0 -30
- package/dist/farcaster-f0EPKy4w.js +0 -16
- package/dist/filters-RqawLZYy.js +0 -12
- package/dist/getChainIds-DXEtLb1g.js +0 -1888
- package/dist/getCosmosAddress-X_cfoAnv.js +0 -9517
- package/dist/github-d1vUfc1B.js +0 -22
- package/dist/google-Dtcfyt4F.js +0 -22
- package/dist/hamburger-DezZOKRv.js +0 -3915
- package/dist/help-circle-BTpSg7wr.js +0 -16
- package/dist/id-CV-pIIiZ.js +0 -16
- package/dist/image-n7ODnWNp.js +0 -8
- package/dist/index-BYmiFoJh.js +0 -29495
- package/dist/index-C7McnY5R.js +0 -18509
- package/dist/index-CI-V1HdQ.js +0 -3267
- package/dist/index-CSgWo9Cg.js +0 -6713
- package/dist/index-CViW2kjE.js +0 -13547
- package/dist/index-CoV9zQx1.js +0 -992
- package/dist/index-D_8iklL2.js +0 -1483
- package/dist/index-GlSAE8hE.js +0 -472
- package/dist/index-Pni0gIii.js +0 -206
- package/dist/index-TEYMoNwP.js +0 -9
- package/dist/index-VS3sEqmI.js +0 -330
- package/dist/index.es-BzyBckd_.js +0 -366
- package/dist/index.es-CMvE7ghR.js +0 -14904
- package/dist/info-DWZmKXfC.js +0 -7
- package/dist/info-circle-Bk9rpQzz.js +0 -16
- package/dist/lightbulb-CUDopurR.js +0 -7
- package/dist/mail-Df9wlUBz.js +0 -12
- package/dist/mobile-DcoUJktC.js +0 -13
- package/dist/more-DbsAB7Xx.js +0 -15
- package/dist/network-placeholder-CnHZLxGT.js +0 -18
- package/dist/nftPlaceholder-D7igGAAq.js +0 -12
- package/dist/off-Brms9nN7.js +0 -12
- package/dist/play-store-z4z-boXn.js +0 -36
- package/dist/plus-LkrIZJEQ.js +0 -17
- package/dist/qr-code-CZnYaNoE.js +0 -10
- package/dist/recycle-horizontal-CeGotUdv.js +0 -13
- package/dist/refresh-CKhWU1dQ.js +0 -12
- package/dist/reown-logo-CF2Qkyw1.js +0 -16
- package/dist/search-DyuAYb_-.js +0 -12
- package/dist/send-BbBOjlsM.js +0 -19
- package/dist/swapHorizontal-DA7yhPfV.js +0 -12
- package/dist/swapHorizontalBold-BujZxwgY.js +0 -12
- package/dist/swapHorizontalMedium-hEBn_MJv.js +0 -20
- package/dist/swapHorizontalRoundedBold-Cqg1Na-5.js +0 -12
- package/dist/swapVertical-D1CdGHJt.js +0 -12
- package/dist/telegram-dDQ2sOw5.js +0 -20
- package/dist/three-dots-ltDeu1Xu.js +0 -9
- package/dist/twitch-sBusnrAt.js +0 -22
- package/dist/twitterIcon-BKMgaEZ4.js +0 -10
- package/dist/unsupportedProp-P9y3_0om.js +0 -10
- package/dist/useRegisterError-DGMdKFc9.js +0 -8918
- package/dist/verify-DXzijLDZ.js +0 -12
- package/dist/verify-filled-DnKqj8X5.js +0 -12
- package/dist/w3m-modal-Cc1j8j_E.js +0 -1471
- package/dist/wallet-placeholder-DEsjd5Nv.js +0 -18
- package/dist/wallet-zL6TDKIa.js +0 -12
- package/dist/walletconnect-CZz6e0wy.js +0 -36
- package/dist/warning-circle-DsGlg2MF.js +0 -16
- package/dist/x-MwPhq03Y.js +0 -16
package/dist/index-GlSAE8hE.js
DELETED
@@ -1,472 +0,0 @@
|
|
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
|
-
};
|
package/dist/index-Pni0gIii.js
DELETED
@@ -1,206 +0,0 @@
|
|
1
|
-
import { jsxs as c, jsx as r, Fragment as A } from "react/jsx-runtime";
|
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-Dpwt2-50.js";
|
4
|
-
import { u as s, l as ee } from "./index-BYmiFoJh.js";
|
5
|
-
import { i as U, C as L, A as te } from "./useRegisterError-DGMdKFc9.js";
|
6
|
-
import { B as re } from "./Box-Dw7IJo3D.js";
|
7
|
-
function ne() {
|
8
|
-
var d, w, a, e, u, b, m, p, x, l, h, C, v, S;
|
9
|
-
const t = s((T) => T.persist), n = s((T) => T.configuration), { defaultCoin: i } = U;
|
10
|
-
let f = (a = (w = (d = t == null ? void 0 : t.route) == null ? void 0 : d.providerDetails) == null ? void 0 : w.logoUrl) != null && a.length ? (u = (e = t == null ? void 0 : t.route) == null ? void 0 : e.providerDetails) == null ? void 0 : u.logoUrl : i;
|
11
|
-
return ee.isEmpty(t.route) ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ c("div", { className: "bw-relative bw-mt-4 bw-flex bw-justify-center ", children: [
|
12
|
-
/* @__PURE__ */ r(
|
13
|
-
"div",
|
14
|
-
{
|
15
|
-
style: {
|
16
|
-
boxShadow: n && n.customTheme && ((m = (b = n.customTheme) == null ? void 0 : b.shadow) == null ? void 0 : m.boxShadow) || "1px 1px 10px 3px rgba(0, 0, 0, 0.15)"
|
17
|
-
},
|
18
|
-
className: "bw-w-[200px] bw-rounded-[50%] bw-absolute bw-right-auto bw-z-0 bw-left-auto bw-h-[40px]"
|
19
|
-
}
|
20
|
-
),
|
21
|
-
/* @__PURE__ */ c("div", { className: "bw-flex bw-relative bw-bg-background-container bw-z-10 bw-mx-auto bw-h-[41px] bw-w-[70%] bw-border-[0.5px] bw-border-border-primary bw-border-r-0 bw-border-l-0 bw-items-center bw-gap-x-1", children: [
|
22
|
-
" ",
|
23
|
-
/* @__PURE__ */ c("p", { className: "bw-text-sm bw-w-full bw-text-center bw-flex bw-justify-center bw-items-center bw-font-normal bw-my-1 bw-text-text-primary", children: [
|
24
|
-
/* @__PURE__ */ r("span", { className: "bw-text-sm bw-font-light", children: "via" }),
|
25
|
-
" ",
|
26
|
-
/* @__PURE__ */ r("img", { src: f, className: "bw-rounded-[50%] bw-mx-[4px] bw-min-w-[18px] bw-max-h-[18px] bw-min-h-[18px]", width: 18, height: 18 }),
|
27
|
-
((x = (p = t == null ? void 0 : t.route) == null ? void 0 : p.providerDetails) == null ? void 0 : x.name) || "",
|
28
|
-
": ",
|
29
|
-
(l = t == null ? void 0 : t.route) == null ? void 0 : l.protocolsUsed[0],
|
30
|
-
((C = (h = t == null ? void 0 : t.route) == null ? void 0 : h.protocolsUsed) == null ? void 0 : C.length) <= 1 ? "" : /* @__PURE__ */ c("span", { className: "bw-ml-1 bw-text-xs bw-font-normal bw-leading-6", children: [
|
31
|
-
`+${((S = (v = t == null ? void 0 : t.route) == null ? void 0 : v.protocolsUsed) == null ? void 0 : S.length) - 1}`,
|
32
|
-
" More"
|
33
|
-
] }),
|
34
|
-
" "
|
35
|
-
] }),
|
36
|
-
" "
|
37
|
-
] })
|
38
|
-
] });
|
39
|
-
}
|
40
|
-
let E;
|
41
|
-
function oe() {
|
42
|
-
var u, b, m, p, x;
|
43
|
-
const t = s((l) => l.configuration), n = s((l) => l.persist), i = s((l) => l.setPersist), { isErrorMessage: f } = J(Q), d = Math.floor(((/* @__PURE__ */ new Date()).getTime() - n.quoteStartTime) / 1e3);
|
44
|
-
let w = ((u = n == null ? void 0 : n.route) == null ? void 0 : u.deadline) || 60;
|
45
|
-
const [a, e] = y(w);
|
46
|
-
return g(() => {
|
47
|
-
d && e(w - d);
|
48
|
-
}, []), g(() => (E = setInterval(() => {
|
49
|
-
e((l) => {
|
50
|
-
var h;
|
51
|
-
return l <= 0 ? (clearInterval(E), i({
|
52
|
-
...(h = s.getState()) == null ? void 0 : h.persist,
|
53
|
-
isQuoteTimer: !1,
|
54
|
-
showAcceptQuote: !0,
|
55
|
-
quoteStartTime: (/* @__PURE__ */ new Date()).getTime()
|
56
|
-
}), 0) : l - 1;
|
57
|
-
});
|
58
|
-
}, 1e3), () => clearInterval(E)), []), g(() => {
|
59
|
-
(f || !n.isQuoteTimer) && clearInterval(E);
|
60
|
-
}, [f, n.isQuoteTimer]), !(n != null && n.hash) && n.quote === "enable" ? /* @__PURE__ */ c("div", { className: "bw-absolute bw-top-0 bw-right-0 ", children: [
|
61
|
-
/* @__PURE__ */ r("svg", { className: "bw-absolute bw-w-[20px] bw-h-[20px]", children: /* @__PURE__ */ c("linearGradient", { id: "linearColors", x1: "0", y1: "0", x2: "1", y2: "1", children: [
|
62
|
-
/* @__PURE__ */ r("stop", { offset: "1%", stopColor: (b = t == null ? void 0 : t.gradientStyle) != null && b.spinnerColor ? (m = t == null ? void 0 : t.gradientStyle) == null ? void 0 : m.spinnerColor : "#A45EFF" }),
|
63
|
-
/* @__PURE__ */ r("stop", { offset: "90%", stopColor: (p = t == null ? void 0 : t.gradientStyle) != null && p.spinnerColor ? (x = t == null ? void 0 : t.gradientStyle) == null ? void 0 : x.stopColor : "#2CFFE4" })
|
64
|
-
] }) }),
|
65
|
-
/* @__PURE__ */ c(
|
66
|
-
re,
|
67
|
-
{
|
68
|
-
sx: {
|
69
|
-
position: "relative",
|
70
|
-
display: "inline-flex"
|
71
|
-
},
|
72
|
-
children: [
|
73
|
-
/* @__PURE__ */ r(
|
74
|
-
L,
|
75
|
-
{
|
76
|
-
variant: "determinate",
|
77
|
-
sx: {
|
78
|
-
color: "var(--tw-border-primary)"
|
79
|
-
},
|
80
|
-
size: 20,
|
81
|
-
thickness: 2,
|
82
|
-
value: 100
|
83
|
-
}
|
84
|
-
),
|
85
|
-
/* @__PURE__ */ r(
|
86
|
-
L,
|
87
|
-
{
|
88
|
-
variant: "determinate",
|
89
|
-
size: 20,
|
90
|
-
thickness: 5,
|
91
|
-
value: a / w * 100,
|
92
|
-
sx: {
|
93
|
-
"svg circle": { stroke: "url(#linearColors)" },
|
94
|
-
position: "absolute",
|
95
|
-
left: 0,
|
96
|
-
[`& .${te.circle}`]: {
|
97
|
-
strokeLinecap: "round"
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
)
|
102
|
-
]
|
103
|
-
}
|
104
|
-
)
|
105
|
-
] }) : /* @__PURE__ */ r(A, {});
|
106
|
-
}
|
107
|
-
const ae = O.memo(function({ handleOpenExchange: t, amount: n, route: i, resetAmount: f, resetBalance: d, setExchange: w }) {
|
108
|
-
var k, D;
|
109
|
-
const a = s((o) => o.setPersist), e = s((o) => o.persist), u = s((o) => o.fromChain), b = s((o) => o.fromCoin), m = s((o) => o.toChain), p = s((o) => o.toCoin), [x, l] = y(!1), [h, C] = y(!1), [v, S] = y(!1), [T, q] = y({}), B = !e.stepData, { txnupdate: G, refunded: H } = U;
|
110
|
-
g(() => {
|
111
|
-
var o, j, M, z;
|
112
|
-
i != null && i.routeId && a({
|
113
|
-
...(o = s.getState()) == null ? void 0 : o.persist,
|
114
|
-
routeId: i == null ? void 0 : i.routeId,
|
115
|
-
route: i,
|
116
|
-
toChain: m,
|
117
|
-
toCoin: p,
|
118
|
-
fromChain: u,
|
119
|
-
fromCoin: b,
|
120
|
-
amount: n,
|
121
|
-
quote: "enable",
|
122
|
-
openAt: (/* @__PURE__ */ new Date()).getTime(),
|
123
|
-
startTime: ((z = (M = (j = s) == null ? void 0 : j.getState()) == null ? void 0 : M.persist) == null ? void 0 : z.startTime) || (/* @__PURE__ */ new Date()).getTime()
|
124
|
-
});
|
125
|
-
}, [i]);
|
126
|
-
function I(o) {
|
127
|
-
l(o);
|
128
|
-
}
|
129
|
-
function N() {
|
130
|
-
((e == null ? void 0 : e.openAt) + 60 * 60 * 1e3 - (/* @__PURE__ */ new Date()).getTime()) / 1e3 / 60 <= 0 && document.visibilityState === "visible" && (a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), t(), f());
|
131
|
-
}
|
132
|
-
g(() => (e != null && e.openAt && window.addEventListener("visibilitychange", N), () => {
|
133
|
-
window.removeEventListener("visibilitychange", N);
|
134
|
-
}), [e == null ? void 0 : e.openAt]), g(() => (e != null && e.openAt && window.addEventListener("load", N), () => {
|
135
|
-
window.removeEventListener("load", N);
|
136
|
-
}), [e == null ? void 0 : e.openAt]);
|
137
|
-
function _(o) {
|
138
|
-
C(o);
|
139
|
-
}
|
140
|
-
function $(o) {
|
141
|
-
S(o);
|
142
|
-
}
|
143
|
-
function P() {
|
144
|
-
t(), a({ allSteps: { steps: null, currentStep: 0 }, stepData: {} }), h && d();
|
145
|
-
}
|
146
|
-
return /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(W.Provider, { value: { isTxnSuccessful: h, handleTxnSuccess: _ }, children: /* @__PURE__ */ r(Q.Provider, { value: { isErrorMessage: v, handleErrorMessage: $, errorMessage: T, setErrorMessage: q }, children: /* @__PURE__ */ c("div", { className: "bw-w-full bw-relative bw-min-h-[610px] ", children: [
|
147
|
-
/* @__PURE__ */ r(X, { handleBack: P }),
|
148
|
-
/* @__PURE__ */ r("div", { className: "bw-mt-[-20px] ", children: /* @__PURE__ */ r(ne, {}) }),
|
149
|
-
e != null && e.isQuoteTimer ? /* @__PURE__ */ r(oe, {}) : /* @__PURE__ */ r(A, {}),
|
150
|
-
/* @__PURE__ */ r("div", { className: "bw-flex bw-justify-between bw-items-center" }),
|
151
|
-
/* @__PURE__ */ c("div", { className: "bw-flex bw-w-full bw-mt-4 bw-justify-between bw-items-center", children: [
|
152
|
-
/* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
153
|
-
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Send" }),
|
154
|
-
/* @__PURE__ */ r(F, { amount: e == null ? void 0 : e.amount, coinData: e.fromCoin, chainData: e.fromChain, field: "from" })
|
155
|
-
] }),
|
156
|
-
v ? /* @__PURE__ */ r("div", { className: "bw-border bw-mt-5 bw-w-[65px] bw-h-[65px] bw-flex bw-items-center bw-justify-center bw-rounded-[50%] bw-bg-background-container bw-relative bw-z-10 hover:bw-opacity-100 bw-border-border-primary ", children: ((k = e == null ? void 0 : e.statusData) == null ? void 0 : k.status) === "refunded" ? /* @__PURE__ */ r("img", { src: H, width: 33, height: 30, alt: "img" }) : /* @__PURE__ */ r("img", { src: G, width: 33, height: 30, alt: "img" }) }) : /* @__PURE__ */ r(Y, { isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x, startTimer: I, error: v }),
|
157
|
-
/* @__PURE__ */ r("div", { className: "bw-w-full bw-z-0 md:bw-w-full bw-mt-5 bw-absolute bw-h-[1px] bw-bg-border-primary " }),
|
158
|
-
/* @__PURE__ */ c("div", { className: "bw-w-[40%] md:bw-w-auto", children: [
|
159
|
-
/* @__PURE__ */ r("p", { className: "bw-text-xs bw-mb-1 bw-text-text-secondary bw-font-medium", children: "Receive" }),
|
160
|
-
/* @__PURE__ */ r(F, { amount: Number(((D = e == null ? void 0 : e.route) == null ? void 0 : D.outputAmountDisplay) || ""), coinData: e == null ? void 0 : e.toCoin, chainData: e == null ? void 0 : e.toChain, field: "to" })
|
161
|
-
] })
|
162
|
-
] }),
|
163
|
-
/* @__PURE__ */ c("div", { className: "bw-h-[320px] bw-pr-1 bw-flex bw-flex-col bw-mt-8 bw-overflow-y-auto", children: [
|
164
|
-
B ? /* @__PURE__ */ r(A, {}) : /* @__PURE__ */ r(Z, {}),
|
165
|
-
/* @__PURE__ */ r(R, { handleOpenExchange: t, setExchange: w, amount: n, startTimer: I, handleBack: P, isTimerStarted: (e == null ? void 0 : e.isTimerStarted) || x })
|
166
|
-
] })
|
167
|
-
] }) }) }) });
|
168
|
-
});
|
169
|
-
function me({
|
170
|
-
handleConfirmClose: t,
|
171
|
-
routesData: n,
|
172
|
-
amount: i,
|
173
|
-
resetAmount: f,
|
174
|
-
resetBalance: d,
|
175
|
-
handleStopRoute: w
|
176
|
-
}) {
|
177
|
-
const a = K();
|
178
|
-
g(() => {
|
179
|
-
var b, m;
|
180
|
-
!a.current && Number(
|
181
|
-
((b = a == null ? void 0 : a.current) == null ? void 0 : b.minOutputAmount) || ((m = a == null ? void 0 : a.current) == null ? void 0 : m.outputAmountDisplay)
|
182
|
-
) !== Number((n == null ? void 0 : n.minOutputAmount) || (n == null ? void 0 : n.outputAmountDisplay)) && (a.current = n);
|
183
|
-
}, [n]), g(() => {
|
184
|
-
w(!0);
|
185
|
-
}, []);
|
186
|
-
function e() {
|
187
|
-
w(!1), t(!1);
|
188
|
-
}
|
189
|
-
function u() {
|
190
|
-
t(!1);
|
191
|
-
}
|
192
|
-
return /* @__PURE__ */ r(
|
193
|
-
ae,
|
194
|
-
{
|
195
|
-
handleOpenExchange: e,
|
196
|
-
amount: i,
|
197
|
-
route: n,
|
198
|
-
resetAmount: f,
|
199
|
-
resetBalance: d,
|
200
|
-
setExchange: u
|
201
|
-
}
|
202
|
-
);
|
203
|
-
}
|
204
|
-
export {
|
205
|
-
me as default
|
206
|
-
};
|
package/dist/index-TEYMoNwP.js
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
import { jsx as r } from "react/jsx-runtime";
|
2
|
-
import "react";
|
3
|
-
import { F as m } from "./useRegisterError-DGMdKFc9.js";
|
4
|
-
function n({ value: t, decimal: o }) {
|
5
|
-
return t.length ? /* @__PURE__ */ r(m, { value: t, options: { maxDecimals: o } }) : t;
|
6
|
-
}
|
7
|
-
export {
|
8
|
-
n as O
|
9
|
-
};
|