@imtbl/sdk 1.57.0-alpha.1 → 1.57.0-alpha.3
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/{blockchain_data-BhMGNi3Q.js → blockchain_data-BGMDYTv5.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-BfzbuvS3.js → AddFundsWidget-CGnjmDIv.js} +77 -37
- package/dist/browser/checkout/{BridgeWidget-Bktx2pRG.js → BridgeWidget-ZNe8y_Mz.js} +8 -8
- package/dist/browser/checkout/{CheckoutWidget-CvqNQTQE.js → CheckoutWidget-DlsAtVv3.js} +16 -16
- package/dist/browser/checkout/{EllipsizedText-D-HF2QnI.js → EllipsizedText-CSNit1Dv.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-BYPxGm4w.js → FeesBreakdown-B1BtcqkI.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-DL4hJ2r1.js → HandoverContent-0b7FoEgf.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-hW9fDDFN.js → OnRampWidget-DtsSKLMW.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-Dg6Rg2il.js → SaleWidget-Ds0K2li8.js} +13 -13
- package/dist/browser/checkout/{SpendingCapHero-coRYiC9f.js → SpendingCapHero-ChKyuqbj.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-CweaPQCg.js → SwapWidget-J8ziHxqY.js} +8 -8
- package/dist/browser/checkout/{TopUpView-yx3JA8au.js → TopUpView-BjjKFDqj.js} +2 -2
- package/dist/browser/checkout/{WalletWidget-CvVTO4Yt.js → WalletWidget-DwxpmjI1.js} +5 -5
- package/dist/browser/checkout/{auto-track-vqKNIDTk.js → auto-track-CnYSZ7Yn.js} +1 -1
- package/dist/browser/checkout/{balance-BC1onuAm.js → balance-Dxs1BUch.js} +3 -3
- package/dist/browser/checkout/{index-CvAA5Ha4.js → index-0NoVszz-.js} +1 -1
- package/dist/browser/checkout/{index-C516LFSG.js → index-BWZl_99t.js} +1 -1
- package/dist/browser/checkout/{index-CwbPqteX.js → index-C2WnZZgj.js} +2 -2
- package/dist/browser/checkout/{index-hczrRziz.js → index-CI_cz_OI.js} +1 -1
- package/dist/browser/checkout/{index-huZce0Oz.js → index-CoX13N83.js} +1 -1
- package/dist/browser/checkout/{index-CzXxKzMr.js → index-Cttd8F07.js} +18 -18
- package/dist/browser/checkout/{index-kOj-BhC4.js → index-DDS_UvZW.js} +1 -1
- package/dist/browser/checkout/{index-DuoPK1CL.js → index-DEsxJ4Yk.js} +1 -1
- package/dist/browser/checkout/{index-OfbeBwiW.js → index-iIWDyUFu.js} +1 -1
- package/dist/browser/checkout/{index.umd-BlucGG0S.js → index.umd-D2r3WFUm.js} +1 -1
- package/dist/browser/checkout/{retry-DaXJmv5s.js → retry-DILXrwS7.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-CYT5Q7db.js → useInterval--eZTH1wR.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +71 -31
- package/dist/{checkout-gOS5ObBf.js → checkout-C0YE_PTo.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-Bu5VjX1C.js → config-Cuouy784.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-yqx6fKxU.js → index-8pOr5dlt.js} +1 -1
- package/dist/{index-BY_NxGHO.js → index-BEJZ-9A8.js} +1 -1
- package/dist/{index-Rjl45TKO.js → index-CdxcZ3SU.js} +1 -1
- package/dist/{index-C6HZTsLB.js → index-Cslbjrjd.js} +4 -4
- package/dist/{index-D5eUP4YK.js → index-DJ0GDXCI.js} +3 -3
- package/dist/{index-P4Sq5FGm.js → index-DdlqaFGh.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-pzZiRmIJ.js → minting_backend-c1a1sAoM.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-CXZlXU6y.js → orderbook-CJ9f52Zz.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-UIonBqmG.js → passport-vS1aLoLe.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-Jb_-rGAC.js → webhook-BwWRcXwt.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-C2CzHYzG.js → x-BdowdQ2o.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as APIError, B as BlockchainData } from './index-
|
|
2
|
-
import { i as index } from './index-
|
|
1
|
+
import { A as APIError, B as BlockchainData } from './index-DJ0GDXCI.js';
|
|
2
|
+
import { i as index } from './index-BEJZ-9A8.js';
|
|
3
3
|
|
|
4
4
|
var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
5
5
|
__proto__: null,
|
package/dist/blockchain_data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as APIError, B as BlockchainData } from './index-
|
|
2
|
-
export { i as Types } from './index-
|
|
3
|
-
import './index-
|
|
1
|
+
export { A as APIError, B as BlockchainData } from './index-DJ0GDXCI.js';
|
|
2
|
+
export { i as Types } from './index-BEJZ-9A8.js';
|
|
3
|
+
import './index-DdlqaFGh.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'lru-memorise';
|
|
6
6
|
import 'global-const';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, z as useTheme, cA as useForwardLocalDomRef, cq as useGetSubcomponentChild, cB as useSplitApartChildrenAndSubComponents, r as reactExports, F as merge$2, cC as useResizeObserver, q as jsxs, j as jsx, J as SmartClone, K as Box, H as isChildSubcomponent, G as flattenChildren, Y as Body, cD as useTheme$1, bt as Icon, x as ButtCon, y as Button, T as _defineProperty, aq as isDualVariantIcon, cp as _slicedToArray, cE as isNumberWithinTotal, A as getStartingSize, cr as BaseClickable, R as ClassNames, cF as _toConsumableArray, cG as isError, cd as Badge, cH as FramedIcon, bV as FramedImage, cI as FramedLogo, b5 as Stack, co as hFlex, cJ as usePrevious, cK as useBrowserEffect, cL as getHeadingTextStyles, cM as vFlex, cN as centerFlexChildren, cO as FormControlLabel, cP as FormControlValidation, cQ as FormControlCaption, I as IMTBLWidgetEvents, cR as AddFundsEventType, cS as getDefaultExportFromCjs, cT as commonjsGlobal, l as useTranslation, a4 as MenuItem, a5 as tokenValueFormat, cU as DEFAULT_TOKEN_FORMATTING_DECIMALS, aM as BigNumber, cV as getRemoteVideo, cW as FramedVideo, a$ as motion, b1 as listItemVariants, b7 as Divider, aW as Fragment, b0 as listVariants, cX as useProvidersContext, at as Drawer, cY as WalletWarningHero, as as Heading, cZ as Trans, aC as Link, b_ as Web3Provider, bZ as WalletProviderRdns, c_ as CheckoutError, c$ as addProviderListenersForWidgetRoot, d0 as getProviderSlugFromRdns, ab as CheckoutErrorType, $ as useAnalytics, c0 as WalletDrawer, d1 as UnableToConnectDrawer, d2 as ChangedYourMindDrawer, a6 as UserJourney, d3 as identifyUser, d4 as HAS_SEEN_NON_PASSPORT_WARNING_KEY, d5 as ProvidersContextActions, X as ViewContext, V as ViewActions, o as SharedViews, k as ChainId, d6 as commonjsRequire, bm as getRemoteImage, aX as useHandover, aY as HandoverTarget, a1 as EventTargetContext, aZ as getRemoteRive, b$ as useInjectedProviders, bu as getDefaultTokenImage, d7 as OverflowDrawerMenu, an as SimpleLayout, U as TokenFilterTypes, h as getL2ChainId, a7 as orchestrationEvents, d8 as requireSecp256k1$1, d9 as requireLib_commonjs, da as require$$0$2, db as bech32$2, dc as bnExports$1, dd as require$$0$3, de as getAugmentedNamespace, df as require$$0$4, dg as minimalisticAssert, dh as require$$2, di as hash$6, dj as MaxUint256, dk as merge$3, dl as SvgIcon, a3 as Environment, dm as t, cx as PriceDisplay, L as LoadingView, aD as viewReducer, aE as initialViewState, dn as isValidAddress, bx as amountInputValidation, br as CloudImage, E as ErrorView, cj as ServiceUnavailableErrorView, ck as ServiceType } from './index-
|
|
2
|
-
import { f as formatUnits, p as parseUnits } from './index-
|
|
3
|
-
import { E as EllipsizedText, C as Contract } from './EllipsizedText-
|
|
4
|
-
import { r as retry, T as TokenImage } from './retry-
|
|
5
|
-
import { H as HandoverContent } from './HandoverContent-
|
|
6
|
-
import { F as FeesBreakdown } from './FeesBreakdown-
|
|
1
|
+
import { _ as _objectWithoutProperties, z as useTheme, cA as useForwardLocalDomRef, cq as useGetSubcomponentChild, cB as useSplitApartChildrenAndSubComponents, r as reactExports, F as merge$2, cC as useResizeObserver, q as jsxs, j as jsx, J as SmartClone, K as Box, H as isChildSubcomponent, G as flattenChildren, Y as Body, cD as useTheme$1, bt as Icon, x as ButtCon, y as Button, T as _defineProperty, aq as isDualVariantIcon, cp as _slicedToArray, cE as isNumberWithinTotal, A as getStartingSize, cr as BaseClickable, R as ClassNames, cF as _toConsumableArray, cG as isError, cd as Badge, cH as FramedIcon, bV as FramedImage, cI as FramedLogo, b5 as Stack, co as hFlex, cJ as usePrevious, cK as useBrowserEffect, cL as getHeadingTextStyles, cM as vFlex, cN as centerFlexChildren, cO as FormControlLabel, cP as FormControlValidation, cQ as FormControlCaption, I as IMTBLWidgetEvents, cR as AddFundsEventType, cS as getDefaultExportFromCjs, cT as commonjsGlobal, l as useTranslation, a4 as MenuItem, a5 as tokenValueFormat, cU as DEFAULT_TOKEN_FORMATTING_DECIMALS, aM as BigNumber, cV as getRemoteVideo, cW as FramedVideo, a$ as motion, b1 as listItemVariants, b7 as Divider, aW as Fragment, b0 as listVariants, cX as useProvidersContext, at as Drawer, cY as WalletWarningHero, as as Heading, cZ as Trans, aC as Link, b_ as Web3Provider, bZ as WalletProviderRdns, c_ as CheckoutError, c$ as addProviderListenersForWidgetRoot, d0 as getProviderSlugFromRdns, ab as CheckoutErrorType, $ as useAnalytics, c0 as WalletDrawer, d1 as UnableToConnectDrawer, d2 as ChangedYourMindDrawer, a6 as UserJourney, d3 as identifyUser, d4 as HAS_SEEN_NON_PASSPORT_WARNING_KEY, d5 as ProvidersContextActions, X as ViewContext, V as ViewActions, o as SharedViews, k as ChainId, d6 as commonjsRequire, bm as getRemoteImage, aX as useHandover, aY as HandoverTarget, a1 as EventTargetContext, aZ as getRemoteRive, b$ as useInjectedProviders, bu as getDefaultTokenImage, d7 as OverflowDrawerMenu, an as SimpleLayout, U as TokenFilterTypes, h as getL2ChainId, a7 as orchestrationEvents, d8 as requireSecp256k1$1, d9 as requireLib_commonjs, da as require$$0$2, db as bech32$2, dc as bnExports$1, dd as require$$0$3, de as getAugmentedNamespace, df as require$$0$4, dg as minimalisticAssert, dh as require$$2, di as hash$6, dj as MaxUint256, dk as merge$3, dl as SvgIcon, a3 as Environment, dm as t, cx as PriceDisplay, L as LoadingView, aD as viewReducer, aE as initialViewState, dn as isValidAddress, bx as amountInputValidation, br as CloudImage, E as ErrorView, cj as ServiceUnavailableErrorView, ck as ServiceType } from './index-Cttd8F07.js';
|
|
2
|
+
import { f as formatUnits, p as parseUnits } from './index-BWZl_99t.js';
|
|
3
|
+
import { E as EllipsizedText, C as Contract } from './EllipsizedText-CSNit1Dv.js';
|
|
4
|
+
import { r as retry, T as TokenImage } from './retry-DILXrwS7.js';
|
|
5
|
+
import { H as HandoverContent } from './HandoverContent-0b7FoEgf.js';
|
|
6
|
+
import { F as FeesBreakdown } from './FeesBreakdown-B1BtcqkI.js';
|
|
7
7
|
|
|
8
8
|
var bannerSx = {
|
|
9
9
|
d: "flex",
|
|
@@ -1689,7 +1689,7 @@ function RouteOption({ routeData, onClick, chains, disabled = false, isFastest =
|
|
|
1689
1689
|
size,
|
|
1690
1690
|
onClick: disabled ? undefined : handleClick,
|
|
1691
1691
|
};
|
|
1692
|
-
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx(MenuItem.Label, { children: fromToken.name }), chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx(Sticker.FramedImage, { use: jsx("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall" }), jsx(MenuItem.FramedImage, { circularFrame: true,
|
|
1692
|
+
return (jsxs(MenuItem, { ...menuItemProps, children: [jsx(MenuItem.Label, { children: fromToken.name }), chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx(Sticker.FramedImage, { use: jsx("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall" }), jsx(MenuItem.FramedImage, { circularFrame: true, use: jsx("img", { src: fromToken.iconUrl, alt: fromToken.name }) })] })), jsx(MenuItem.Caption, { children: `Balance: USD ${routeBalanceUsd}` }), jsx(MenuItem.PriceDisplay, { price: fromAmount, children: jsx(MenuItem.PriceDisplay.Caption, { children: `USD $${fromAmountUsd}` }) }), jsxs(MenuItem.BottomSlot, { children: [jsx(MenuItem.BottomSlot.Divider, {}), jsxs(Stack, { rc: jsx("span", {}), direction: "row", justifyContent: "space-between", sx: {
|
|
1693
1693
|
w: '100%',
|
|
1694
1694
|
}, children: [jsxs(Body, { sx: {
|
|
1695
1695
|
...hFlex,
|
|
@@ -1731,7 +1731,7 @@ function OptionsDrawer({ checkout, routes, visible, onClose, onRouteClick, onCar
|
|
|
1731
1731
|
showSwapOption,
|
|
1732
1732
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1733
1733
|
showBridgeOption, insufficientBalance, }) {
|
|
1734
|
-
const { addFundsState: { chains } } = reactExports.useContext(AddFundsContext);
|
|
1734
|
+
const { addFundsState: { chains }, } = reactExports.useContext(AddFundsContext);
|
|
1735
1735
|
const { providersState: { fromProviderInfo, fromAddress }, } = useProvidersContext();
|
|
1736
1736
|
const selectedRouteIndex = reactExports.useRef(0);
|
|
1737
1737
|
const handleOnRouteClick = (route, index) => {
|
|
@@ -1741,7 +1741,7 @@ showBridgeOption, insufficientBalance, }) {
|
|
|
1741
1741
|
return (jsx(Drawer, { size: "full", visible: visible, showHeaderBar: false, onCloseDrawer: onClose, children: jsxs(Drawer.Content, { rc: jsx(motion.div, { variants: listVariants, initial: "hidden", animate: "show" }), sx: {
|
|
1742
1742
|
pt: 'base.spacing.x3',
|
|
1743
1743
|
px: 'base.spacing.x3',
|
|
1744
|
-
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx(MenuItem.FramedImage, { padded: true, emphasized: true, use: jsx("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name }) }), jsx(MenuItem.Label, { children: "Pay from" }), jsxs(MenuItem.Caption, { children: [fromProviderInfo?.name, ' • ', jsx(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] }), jsx(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx(Options, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, showOnrampOption: showOnrampOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current })] }) }));
|
|
1744
|
+
}, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx(MenuItem.FramedImage, { padded: true, emphasized: true, use: jsx("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name }), sx: { mx: 'base.spacing.x2' } }), jsx(MenuItem.Label, { children: "Pay from" }), jsxs(MenuItem.Caption, { children: [fromProviderInfo?.name, ' • ', jsx(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] }), jsx(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx(Options, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, showOnrampOption: showOnrampOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current })] }) }));
|
|
1745
1745
|
}
|
|
1746
1746
|
|
|
1747
1747
|
const delay = (ms) => new Promise((resolve) => {
|
|
@@ -1944,13 +1944,13 @@ function SelectedRouteOption({ checkout, routeData, chains, loading = false, wit
|
|
|
1944
1944
|
}
|
|
1945
1945
|
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [jsx(MenuItem.FramedIcon, { icon: icon, variant: "bold", circularFrame: true, emphasized: false }), jsx(MenuItem.Caption, { children: copy })] }));
|
|
1946
1946
|
}
|
|
1947
|
-
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx(Sticker.FramedImage, { use: jsx("img", { src: chain.iconUrl, alt: chain.name }), sx: {
|
|
1947
|
+
return (jsxs(SelectedRouteOptionContainer, { onClick: handleOnClick, selected: withSelectedWallet, children: [chain && (jsxs(Sticker, { position: { x: 'right', y: 'bottom' }, children: [jsx(Sticker.FramedImage, { use: jsx("img", { src: chain.iconUrl, alt: chain.name }), size: "xSmall", sx: { bottom: 'base.spacing.x2', right: 'base.spacing.x2' } }), jsx(MenuItem.FramedImage, { circularFrame: true, padded: true, use: jsx("img", { src: fromToken?.iconUrl, alt: fromToken?.name }) })] })), jsxs(Stack, { direction: "row", justifyContent: "space-between", alignItems: "center", sx: { w: '100%' }, children: [jsxs(Stack, { gap: "0px", children: [jsx(MenuItem.Label, { children: fromToken?.name }), jsx(MenuItem.Caption, { children: `Balance USD $${routeBalanceUsd}` })] }), jsx(MenuItem.PriceDisplay, { price: fromAmount, children: jsx(MenuItem.PriceDisplay.Caption, { children: `USD $${fromAmountUsd}` }) })] })] }));
|
|
1948
1948
|
}
|
|
1949
1949
|
|
|
1950
1950
|
function SelectedWallet({ label, children, onClick, providerInfo, }) {
|
|
1951
1951
|
const selected = !!children && providerInfo?.rdns;
|
|
1952
1952
|
const size = selected ? 'xSmall' : 'small';
|
|
1953
|
-
return (jsxs(MenuItem, { size: size, emphasized: true, onClick: onClick, children: [!providerInfo?.icon && (jsx(MenuItem.FramedIcon, { icon: "Wallet", variant: "bold", emphasized: false })), providerInfo?.icon && (jsx(MenuItem.FramedImage, { padded: true, sx: { mx: selected ? 'base.spacing.x2' : undefined }, use: jsx("img", { src: providerInfo.icon, alt: providerInfo.name }) })), jsx(MenuItem.Label, { children: label }), providerInfo?.name && (jsxs(MenuItem.Caption, { children: [providerInfo?.name, ' • ', jsx(EllipsizedText, { text: providerInfo.address ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] })), jsx(MenuItem.BottomSlot, { children: children })] }));
|
|
1953
|
+
return (jsxs(MenuItem, { size: size, emphasized: true, onClick: onClick, sx: selected ? { py: 'base.spacing.x3' } : undefined, children: [!providerInfo?.icon && (jsx(MenuItem.FramedIcon, { icon: "Wallet", variant: "bold", emphasized: false })), providerInfo?.icon && (jsx(MenuItem.FramedImage, { padded: true, sx: { mx: selected ? 'base.spacing.x2' : undefined }, use: jsx("img", { src: providerInfo.icon, alt: providerInfo.name }) })), jsx(MenuItem.Label, { children: label }), providerInfo?.name && (jsxs(MenuItem.Caption, { children: [providerInfo?.name, ' • ', jsx(EllipsizedText, { text: providerInfo.address ?? '', sx: { c: 'inherit', fontSize: 'inherit' } })] })), jsx(MenuItem.BottomSlot, { children: children })] }));
|
|
1954
1954
|
}
|
|
1955
1955
|
|
|
1956
1956
|
function NonPassportWarningDrawer({ visible, onCloseDrawer, handleCtaButtonClick, }) {
|
|
@@ -1985,10 +1985,11 @@ var ConnectEIP6963ProviderError;
|
|
|
1985
1985
|
ConnectEIP6963ProviderError["SANCTIONED_ADDRESS"] = "SANCTIONED_ADDRESS";
|
|
1986
1986
|
ConnectEIP6963ProviderError["USER_REJECTED_REQUEST_ERROR"] = "USER_REJECTED_REQUEST_ERROR";
|
|
1987
1987
|
})(ConnectEIP6963ProviderError || (ConnectEIP6963ProviderError = {}));
|
|
1988
|
-
const connectEIP6963Provider = async (providerDetail, checkout) => {
|
|
1988
|
+
const connectEIP6963Provider = async (providerDetail, checkout, shouldRequestWalletPermissions) => {
|
|
1989
1989
|
const web3Provider = new Web3Provider(providerDetail.provider);
|
|
1990
1990
|
try {
|
|
1991
|
-
const requestWalletPermissions =
|
|
1991
|
+
const requestWalletPermissions = shouldRequestWalletPermissions
|
|
1992
|
+
?? providerDetail.info.rdns === WalletProviderRdns.METAMASK;
|
|
1992
1993
|
const connectResult = await checkout.connect({
|
|
1993
1994
|
provider: web3Provider,
|
|
1994
1995
|
requestWalletPermissions,
|
|
@@ -2016,7 +2017,7 @@ const connectEIP6963Provider = async (providerDetail, checkout) => {
|
|
|
2016
2017
|
}
|
|
2017
2018
|
};
|
|
2018
2019
|
|
|
2019
|
-
function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, providerType, walletOptions, bottomSlot, menuItemSize = 'small', disabledOptions = [], }) {
|
|
2020
|
+
function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, providerType, walletOptions, bottomSlot, menuItemSize = 'small', disabledOptions = [], getShouldRequestWalletPermissions, }) {
|
|
2020
2021
|
const { providersState: { checkout }, providersDispatch, } = useProvidersContext();
|
|
2021
2022
|
const { identify, track } = useAnalytics();
|
|
2022
2023
|
const prevWalletChangeEvent = reactExports.useRef();
|
|
@@ -2052,6 +2053,7 @@ function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, pr
|
|
|
2052
2053
|
},
|
|
2053
2054
|
});
|
|
2054
2055
|
}
|
|
2056
|
+
return address;
|
|
2055
2057
|
};
|
|
2056
2058
|
const handleOnWalletChangeEvent = async (event) => {
|
|
2057
2059
|
if (!checkout) {
|
|
@@ -2089,13 +2091,15 @@ function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, pr
|
|
|
2089
2091
|
await checkout.passport?.logout();
|
|
2090
2092
|
}
|
|
2091
2093
|
}
|
|
2094
|
+
let address;
|
|
2092
2095
|
// Proceed to connect selected provider
|
|
2096
|
+
const shouldRequestWalletPermissions = getShouldRequestWalletPermissions?.(info);
|
|
2093
2097
|
try {
|
|
2094
|
-
const { provider } = await connectEIP6963Provider(providerDetail, checkout);
|
|
2098
|
+
const { provider } = await connectEIP6963Provider(providerDetail, checkout, shouldRequestWalletPermissions);
|
|
2095
2099
|
// Identify connected wallet
|
|
2096
2100
|
await identifyUser(identify, provider);
|
|
2097
2101
|
// Store selected provider as fromProvider in context
|
|
2098
|
-
setProviderInContext(provider, providerDetail.info);
|
|
2102
|
+
address = await setProviderInContext(provider, providerDetail.info);
|
|
2099
2103
|
// Notify successful connection
|
|
2100
2104
|
onConnect?.(provider, providerDetail.info);
|
|
2101
2105
|
}
|
|
@@ -2116,7 +2120,7 @@ function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, pr
|
|
|
2116
2120
|
onError?.(errorType);
|
|
2117
2121
|
return;
|
|
2118
2122
|
}
|
|
2119
|
-
onClose();
|
|
2123
|
+
onClose(address);
|
|
2120
2124
|
};
|
|
2121
2125
|
const retrySelectedWallet = () => {
|
|
2122
2126
|
if (prevWalletChangeEvent.current) {
|
|
@@ -2139,9 +2143,10 @@ function ConnectWalletDrawer({ heading, visible, onClose, onConnect, onError, pr
|
|
|
2139
2143
|
}
|
|
2140
2144
|
|
|
2141
2145
|
function DeliverToWalletDrawer({ visible, onClose, onConnect, walletOptions, }) {
|
|
2146
|
+
const { providersState: { fromProviderInfo }, } = useProvidersContext();
|
|
2142
2147
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
2143
2148
|
const handleOnConnect = (provider, providerInfo) => {
|
|
2144
|
-
onConnect('to', provider, providerInfo);
|
|
2149
|
+
onConnect?.('to', provider, providerInfo);
|
|
2145
2150
|
};
|
|
2146
2151
|
const handleOnError = (errorType) => {
|
|
2147
2152
|
if (errorType === ConnectEIP6963ProviderError.SANCTIONED_ADDRESS) {
|
|
@@ -2157,7 +2162,11 @@ function DeliverToWalletDrawer({ visible, onClose, onConnect, walletOptions, })
|
|
|
2157
2162
|
});
|
|
2158
2163
|
}
|
|
2159
2164
|
};
|
|
2160
|
-
|
|
2165
|
+
// Becuase wallets extensions don't support multiple wallet connections
|
|
2166
|
+
// UX decides to have the user use the same wallet type they selected to pay with
|
|
2167
|
+
// ie: Metamask to Metamsk, will send to same wallet address
|
|
2168
|
+
const selectedSameFromWalletType = (providerInfo) => (fromProviderInfo?.rdns !== providerInfo.rdns ? undefined : false);
|
|
2169
|
+
return (jsx(ConnectWalletDrawer, { heading: "Deliver To", visible: visible, onClose: onClose, providerType: "to", walletOptions: walletOptions, onConnect: handleOnConnect, onError: handleOnError, getShouldRequestWalletPermissions: selectedSameFromWalletType }));
|
|
2161
2170
|
}
|
|
2162
2171
|
|
|
2163
2172
|
function PayWithWalletDrawer({ visible, onClose, onConnect, onPayWithCard, walletOptions, insufficientBalance, showOnRampOption = true, }) {
|
|
@@ -2194,7 +2203,7 @@ function PayWithWalletDrawer({ visible, onClose, onConnect, onPayWithCard, walle
|
|
|
2194
2203
|
return null;
|
|
2195
2204
|
return (jsxs(MenuItem, { size: "small", emphasized: true, onClick: () => {
|
|
2196
2205
|
onClose();
|
|
2197
|
-
onPayWithCard();
|
|
2206
|
+
onPayWithCard?.();
|
|
2198
2207
|
}, children: [jsx(MenuItem.FramedIcon, { icon: "BankCard", variant: "bold", emphasized: false }), jsx(MenuItem.Label, { children: "Pay with Card" })] }));
|
|
2199
2208
|
}, [onClose, onPayWithCard]);
|
|
2200
2209
|
return (jsx(ConnectWalletDrawer, { heading: insufficientBalance ? 'Choose another option' : 'Pay With', visible: visible, onClose: onClose, providerType: "from", walletOptions: walletOptions, disabledOptions: disabledOptions, bottomSlot: payWithCardItem, onConnect: handleOnConnect, onError: handleOnError }));
|
|
@@ -5206,7 +5215,7 @@ const useError = (environment) => {
|
|
|
5206
5215
|
addHandover({
|
|
5207
5216
|
animationUrl: getRemoteRive(environment, APPROVE_TXN_ANIMATION),
|
|
5208
5217
|
inputValue: RiveStateMachineInput.ERROR,
|
|
5209
|
-
children: jsx(HandoverContent, { headingText: getErrorConfig(errorType).headingText, subheadingText: getErrorConfig(errorType).subHeadingText, primaryButtonText: getErrorConfig(errorType).primaryButtonText, onPrimaryButtonClick: getErrorConfig(errorType).onPrimaryButtonClick, secondaryButtonText: getErrorConfig(errorType).secondaryButtonText, onSecondaryButtonClick: getErrorConfig(errorType).onSecondaryButtonClick }),
|
|
5218
|
+
children: (jsx(HandoverContent, { headingText: getErrorConfig(errorType).headingText, subheadingText: getErrorConfig(errorType).subHeadingText, primaryButtonText: getErrorConfig(errorType).primaryButtonText, onPrimaryButtonClick: getErrorConfig(errorType).onPrimaryButtonClick, secondaryButtonText: getErrorConfig(errorType).secondaryButtonText, onSecondaryButtonClick: getErrorConfig(errorType).onSecondaryButtonClick })),
|
|
5210
5219
|
});
|
|
5211
5220
|
};
|
|
5212
5221
|
return {
|
|
@@ -5485,10 +5494,7 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
5485
5494
|
&& validateToAmount(inputValue).isValid;
|
|
5486
5495
|
const loading = (routeInputsReady || fetchingRoutes)
|
|
5487
5496
|
&& !(selectedRouteData || insufficientBalance);
|
|
5488
|
-
const readyToReview = routeInputsReady
|
|
5489
|
-
&& !!toAddress
|
|
5490
|
-
&& !!selectedRouteData
|
|
5491
|
-
&& !loading;
|
|
5497
|
+
const readyToReview = routeInputsReady && !!toAddress && !!selectedRouteData && !loading;
|
|
5492
5498
|
const handleWalletConnected = (providerType, provider, providerInfo) => {
|
|
5493
5499
|
track({
|
|
5494
5500
|
userJourney: UserJourney.ADD_FUNDS,
|
|
@@ -5526,7 +5532,7 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
5526
5532
|
boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
|
|
5527
5533
|
},
|
|
5528
5534
|
} })),
|
|
5529
|
-
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx(HeroTextInput, { testId: "add-funds-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }),
|
|
5535
|
+
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx(HeroTextInput, { testId: "add-funds-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }), jsxs(HeroFormControl.Caption, { children: ["USD $", selectedAmountUsd.toFixed(2)] })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
|
|
5530
5536
|
alignSelf: 'stretch',
|
|
5531
5537
|
p: 'base.spacing.x3',
|
|
5532
5538
|
pb: 'base.spacing.x10',
|
|
@@ -5537,9 +5543,7 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
5537
5543
|
}, onClick: (event) => {
|
|
5538
5544
|
event.stopPropagation();
|
|
5539
5545
|
setShowPayWithDrawer(true);
|
|
5540
|
-
}, children: [jsx(MenuItem.BottomSlot.Divider, { sx: {
|
|
5541
|
-
ml: fromAddress ? 'base.spacing.x2' : undefined,
|
|
5542
|
-
} }), jsx(SelectedRouteOption, { checkout: checkout, loading: loading, chains: chains, routeData: selectedRouteData, onClick: () => setShowOptionsDrawer(true), withSelectedToken: !!selectedToken, withSelectedAmount: parseFloat(inputValue) > 0, withSelectedWallet: !!fromAddress, insufficientBalance: insufficientBalance, showOnrampOption: shouldShowOnRampOption })] }), jsx(Stack, { sx: { pos: 'relative', h: 'base.spacing.x3' }, alignItems: "center", children: jsx(FramedIcon, { icon: "ArrowDown", sx: {
|
|
5546
|
+
}, children: [jsx(MenuItem.BottomSlot.Divider, { sx: fromAddress ? { ml: 'base.spacing.x4' } : undefined }), jsx(SelectedRouteOption, { checkout: checkout, loading: loading, chains: chains, routeData: selectedRouteData, onClick: () => setShowOptionsDrawer(true), withSelectedToken: !!selectedToken, withSelectedAmount: parseFloat(inputValue) > 0, withSelectedWallet: !!fromAddress, insufficientBalance: insufficientBalance, showOnrampOption: shouldShowOnRampOption })] }), jsx(Stack, { sx: { pos: 'relative', h: 'base.spacing.x3' }, alignItems: "center", children: jsx(FramedIcon, { icon: "ArrowDown", sx: {
|
|
5543
5547
|
top: '0',
|
|
5544
5548
|
pos: 'absolute',
|
|
5545
5549
|
translate: '0 -30%',
|
|
@@ -5547,7 +5551,7 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
5547
5551
|
} }) }), jsx(SelectedWallet, { label: "Deliver to", providerInfo: {
|
|
5548
5552
|
...toProviderInfo,
|
|
5549
5553
|
address: toAddress,
|
|
5550
|
-
}, onClick: () => setShowDeliverToDrawer(true) })] }), jsx(Button, { testId: "add-funds-button", size: "large", variant: readyToReview ? 'primary' : 'secondary', disabled: !readyToReview, onClick: handleReviewClick, sx: { opacity: readyToReview ? 1 : 0.5 }, children: "Review" }), jsx(PayWithWalletDrawer, { visible: showPayWithDrawer, walletOptions: walletOptions, onClose: () => setShowPayWithDrawer(false), onPayWithCard: handleCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx(OptionsDrawer, { checkout: checkout, routes: routes, showOnrampOption: shouldShowOnRampOption, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handleCardClick, onRouteClick: handleRouteClick, insufficientBalance: insufficientBalance }), jsx(DeliverToWalletDrawer, { visible: showDeliverToDrawer, walletOptions: walletOptions, onClose: () => setShowDeliverToDrawer(false)
|
|
5554
|
+
}, onClick: () => setShowDeliverToDrawer(true) })] }), jsx(Button, { testId: "add-funds-button", size: "large", variant: readyToReview ? 'primary' : 'secondary', disabled: !readyToReview, onClick: handleReviewClick, sx: { opacity: readyToReview ? 1 : 0.5 }, children: "Review" }), jsx(PayWithWalletDrawer, { visible: showPayWithDrawer, walletOptions: walletOptions, onClose: () => setShowPayWithDrawer(false), onPayWithCard: handleCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx(OptionsDrawer, { checkout: checkout, routes: routes, showOnrampOption: shouldShowOnRampOption, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handleCardClick, onRouteClick: handleRouteClick, insufficientBalance: insufficientBalance }), jsx(DeliverToWalletDrawer, { visible: showDeliverToDrawer, walletOptions: walletOptions, onClose: () => setShowDeliverToDrawer(false) }), jsx(OnboardingDrawer, { environment: checkout?.config.environment })] })] }) }));
|
|
5551
5555
|
}
|
|
5552
5556
|
|
|
5553
5557
|
var dist$3 = {};
|
|
@@ -173289,10 +173293,12 @@ const useExecute = (environment) => {
|
|
|
173289
173293
|
if (reason.includes('rejected') && reason.includes('user')) {
|
|
173290
173294
|
errorType = AddFundsErrorTypes.WALLET_REJECTED;
|
|
173291
173295
|
}
|
|
173292
|
-
if (reason.includes('failed to submit')
|
|
173296
|
+
if (reason.includes('failed to submit')
|
|
173297
|
+
&& reason.includes('highest gas limit')) {
|
|
173293
173298
|
errorType = AddFundsErrorTypes.WALLET_REJECTED_NO_FUNDS;
|
|
173294
173299
|
}
|
|
173295
|
-
if (reason.includes('status failed')
|
|
173300
|
+
if (reason.includes('status failed')
|
|
173301
|
+
|| reason.includes('transaction failed')) {
|
|
173296
173302
|
errorType = AddFundsErrorTypes.TRANSACTION_FAILED;
|
|
173297
173303
|
}
|
|
173298
173304
|
const error = {
|
|
@@ -173301,7 +173307,7 @@ const useExecute = (environment) => {
|
|
|
173301
173307
|
};
|
|
173302
173308
|
showErrorHandover(errorType, { error });
|
|
173303
173309
|
};
|
|
173304
|
-
|
|
173310
|
+
// @TODO: Move to util function
|
|
173305
173311
|
const checkProviderChain = async (provider, chainId) => {
|
|
173306
173312
|
if (!provider.provider.request) {
|
|
173307
173313
|
throw new Error('provider does not have request method');
|
|
@@ -173397,7 +173403,6 @@ const useExecute = (environment) => {
|
|
|
173397
173403
|
}
|
|
173398
173404
|
};
|
|
173399
173405
|
return {
|
|
173400
|
-
convertToNetworkChangeableProvider,
|
|
173401
173406
|
checkProviderChain,
|
|
173402
173407
|
getAllowance,
|
|
173403
173408
|
approve,
|
|
@@ -173449,6 +173454,24 @@ function RouteFees({ visible, onClose, routeData, totalAmount, totalFiatAmount,
|
|
|
173449
173454
|
return (jsx(FeesBreakdown, { visible: visible, loading: !routeData, fees: [...feeCosts, ...gasCosts], tokenSymbol: tokenSymbol, totalAmount: getFormattedNumber(totalAmount, feesToken?.decimals), totalFiatAmount: getFormattedAmounts(totalFiatAmount), onCloseDrawer: onClose }));
|
|
173450
173455
|
}
|
|
173451
173456
|
|
|
173457
|
+
function AddressMissmatchDrawer({ visible, onClick, }) {
|
|
173458
|
+
return (jsx(Drawer, { size: "full", visible: visible, showHeaderBar: false, children: jsxs(Drawer.Content, { children: [jsx(WalletWarningHero, {}), jsxs(Box, { sx: { px: 'base.spacing.x6' }, children: [jsx(Heading, { sx: {
|
|
173459
|
+
marginTop: 'base.spacing.x6',
|
|
173460
|
+
marginBottom: 'base.spacing.x2',
|
|
173461
|
+
textAlign: 'center',
|
|
173462
|
+
}, children: "Oops! It seems your payment wallet has changed" }), jsx(Body, { size: "medium", sx: {
|
|
173463
|
+
display: 'block',
|
|
173464
|
+
textAlign: 'center',
|
|
173465
|
+
color: 'base.color.text.body.secondary',
|
|
173466
|
+
marginBottom: 'base.spacing.x21',
|
|
173467
|
+
}, children: "You'll be ask to re-connect the same wallet you selected to pay with before proceeding." })] }), jsx(Box, { sx: {
|
|
173468
|
+
display: 'flex',
|
|
173469
|
+
flexDirection: 'column',
|
|
173470
|
+
paddingX: 'base.spacing.x6',
|
|
173471
|
+
width: '100%',
|
|
173472
|
+
}, children: jsx(Button, { sx: { width: '100%', marginBottom: 'base.spacing.x10' }, testId: "non-passport-cta-button", variant: "primary", size: "large", onClick: onClick, children: "Re-select payment wallet" }) })] }) }));
|
|
173473
|
+
}
|
|
173474
|
+
|
|
173452
173475
|
/**
|
|
173453
173476
|
* Find a chain by its id
|
|
173454
173477
|
* @param chainId - The id of the chain to find
|
|
@@ -173469,6 +173492,8 @@ const getRouteChains = (chains, route) => ({
|
|
|
173469
173492
|
toChain: findChainById(route?.route.estimate.toToken.chainId, chains),
|
|
173470
173493
|
});
|
|
173471
173494
|
|
|
173495
|
+
const convertToNetworkChangeableProvider = async (provider) => new Web3Provider(provider.provider, 'any');
|
|
173496
|
+
|
|
173472
173497
|
const dividerSx = {
|
|
173473
173498
|
content: "''",
|
|
173474
173499
|
pos: 'absolute',
|
|
@@ -173484,11 +173509,12 @@ function Review({ data, showBackButton = false, onBackButtonClick, onCloseButton
|
|
|
173484
173509
|
const [route, setRoute] = reactExports.useState();
|
|
173485
173510
|
const [proceedDisabled, setProceedDisabled] = reactExports.useState(true);
|
|
173486
173511
|
const [showFeeBreakdown, setShowFeeBreakdown] = reactExports.useState(false);
|
|
173512
|
+
const [showAddressMissmatchDrawer, setShowAddressMissmatchDrawer] = reactExports.useState(false);
|
|
173487
173513
|
const { getAmountData, getRoute } = useRoutes();
|
|
173488
173514
|
const { addHandover, closeHandover } = useHandover({
|
|
173489
173515
|
id: HandoverTarget.GLOBAL,
|
|
173490
173516
|
});
|
|
173491
|
-
const {
|
|
173517
|
+
const { checkProviderChain, getAllowance, approve, execute, } = useExecute(checkout?.config.environment || Environment.SANDBOX);
|
|
173492
173518
|
reactExports.useEffect(() => {
|
|
173493
173519
|
page({
|
|
173494
173520
|
userJourney: UserJourney.ADD_FUNDS,
|
|
@@ -173547,6 +173573,11 @@ function Review({ data, showBackButton = false, onBackButtonClick, onCloseButton
|
|
|
173547
173573
|
if (!squid || !fromProvider || !route) {
|
|
173548
173574
|
return;
|
|
173549
173575
|
}
|
|
173576
|
+
const currentFromAddress = await fromProvider.getSigner().getAddress();
|
|
173577
|
+
if (currentFromAddress !== fromAddress) {
|
|
173578
|
+
setShowAddressMissmatchDrawer(true);
|
|
173579
|
+
return;
|
|
173580
|
+
}
|
|
173550
173581
|
clearInterval(getRouteIntervalIdRef.current);
|
|
173551
173582
|
setProceedDisabled(true);
|
|
173552
173583
|
showHandover(APPROVE_TXN_ANIMATION, RiveStateMachineInput.START, 'Preparing');
|
|
@@ -173587,7 +173618,6 @@ function Review({ data, showBackButton = false, onBackButtonClick, onCloseButton
|
|
|
173587
173618
|
approve,
|
|
173588
173619
|
showHandover,
|
|
173589
173620
|
checkProviderChain,
|
|
173590
|
-
convertToNetworkChangeableProvider,
|
|
173591
173621
|
getAllowance,
|
|
173592
173622
|
execute,
|
|
173593
173623
|
closeHandover,
|
|
@@ -173651,7 +173681,17 @@ function Review({ data, showBackButton = false, onBackButtonClick, onCloseButton
|
|
|
173651
173681
|
top: '-8px',
|
|
173652
173682
|
h: 'base.spacing.x5',
|
|
173653
173683
|
},
|
|
173654
|
-
} }), jsxs(Stack, { direction: "row", gap: "base.spacing.x6", sx: { py: 'base.spacing.x5', px: 'base.spacing.x7' }, alignItems: "center", children: [jsx(Stack, { direction: "row", sx: { w: 'base.spacing.x12' }, justifyContent: "center", children: jsx(FramedIcon, { icon: "Countdown", variant: "bold", size: "medium", circularFrame: true }) }), jsx(Body, { size: "small", sx: { flex: 1, c: 'base.color.text.body.secondary' }, children: formattedDuration }), routeFees] })] }), jsx(Button, { size: "large", onClick: handleTransaction, disabled: proceedDisabled, sx: { mt: 'auto', mb: 'base.spacing.x4', mx: 'base.spacing.x3' }, children: proceedDisabled ? 'Processing' : 'Proceed' })] })), !route && jsx(LoadingView, { loadingText: "Securing quote" })] }), jsx(RouteFees, { routeData: route, visible: showFeeBreakdown, onClose: () => setShowFeeBreakdown(false), totalAmount: totalFees, totalFiatAmount: totalFeesUsd })
|
|
173684
|
+
} }), jsxs(Stack, { direction: "row", gap: "base.spacing.x6", sx: { py: 'base.spacing.x5', px: 'base.spacing.x7' }, alignItems: "center", children: [jsx(Stack, { direction: "row", sx: { w: 'base.spacing.x12' }, justifyContent: "center", children: jsx(FramedIcon, { icon: "Countdown", variant: "bold", size: "medium", circularFrame: true }) }), jsx(Body, { size: "small", sx: { flex: 1, c: 'base.color.text.body.secondary' }, children: formattedDuration }), routeFees] })] }), jsx(Button, { size: "large", onClick: handleTransaction, disabled: proceedDisabled, sx: { mt: 'auto', mb: 'base.spacing.x4', mx: 'base.spacing.x3' }, children: proceedDisabled ? 'Processing' : 'Proceed' })] })), !route && !showAddressMissmatchDrawer && jsx(LoadingView, { loadingText: "Securing quote" })] }), jsx(RouteFees, { routeData: route, visible: showFeeBreakdown, onClose: () => setShowFeeBreakdown(false), totalAmount: totalFees, totalFiatAmount: totalFeesUsd }), jsx(AddressMissmatchDrawer, { visible: showAddressMissmatchDrawer, onClick: () => {
|
|
173685
|
+
setShowAddressMissmatchDrawer(false);
|
|
173686
|
+
viewDispatch({
|
|
173687
|
+
payload: {
|
|
173688
|
+
type: ViewActions.UPDATE_VIEW,
|
|
173689
|
+
view: {
|
|
173690
|
+
type: AddFundsWidgetViews.ADD_FUNDS,
|
|
173691
|
+
},
|
|
173692
|
+
},
|
|
173693
|
+
});
|
|
173694
|
+
} })] }));
|
|
173655
173695
|
}
|
|
173656
173696
|
|
|
173657
173697
|
const fetchBalances = async (squid, chains, provider) => {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { bP as axios, ab as CheckoutErrorType, bQ as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, j as jsx, bR as ShimmerBox, a4 as MenuItem, b5 as Stack, l as useTranslation, Y as Body, y as Button, K as Box, bS as PASSPORT_URL, aC as Link, bT as getChainIdBySlug, ae as getChainImage, bU as networkName, bV as FramedImage, bt as Icon, $ as useAnalytics, a6 as UserJourney, b7 as Divider, X as ViewContext, aW as Fragment, V as ViewActions, au as useWalletConnect, aw as isWalletConnectProvider, bs as Logo, bW as RawImage, bX as AXELAR_SCAN_URL, a9 as isNativeToken, ah as getTokenImageByAddress, bY as getNativeSymbolByChainSlug, ai as calculateCryptoToFiat, a1 as EventTargetContext, a2 as isPassportProvider, i as getL1ChainId, U as TokenFilterTypes, h as getL2ChainId, bZ as WalletProviderRdns, b_ as Web3Provider, b$ as useInjectedProviders, aj as HeaderNavigation, am as FooterLogo, c0 as WalletDrawer, an as SimpleLayout, c1 as getChainSlugById, c2 as JsonRpcProvider, c3 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c4 as getChainNameById, z as useTheme, as as Heading, ap as getWalletProviderNameByProvider, c5 as isAddressSanctioned, o as SharedViews, c6 as isMetaMaskProvider, ao as WalletProviderName, at as Drawer, x as ButtCon, ak as ButtonNavigationStyles, a7 as orchestrationEvents, a5 as tokenValueFormat, a0 as formatZeroAmount, bv as NATIVE, bx as amountInputValidation, bm as getRemoteImage, br as CloudImage, c7 as ETH_TOKEN_SYMBOL, aM as BigNumber, a3 as Environment, c8 as GasEstimateType, bB as DEFAULT_TOKEN_DECIMALS, bw as DEFAULT_QUOTE_REFRESH_INTERVAL, c9 as addChainChangedListener, ca as removeChainChangedListener, bD as IMX_TOKEN_SYMBOL, cb as dist, cc as CHECKOUT_CDN_BASE_URL, ax as heroBackGroundStyles, ay as heroImageStyles, cd as Badge, aA as SimpleTextBody, bE as FooterButton, ce as getEthTokenImage, cf as WITHDRAWAL_CLAIM_GAS_LIMIT, bu as getDefaultTokenImage, aD as viewReducer, aE as initialViewState, cg as BridgeConfiguration, ch as ImmutableConfiguration, ci as TokenBridge, bG as StatusView, b2 as StatusType, E as ErrorView, cj as ServiceUnavailableErrorView, ck as ServiceType, cl as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cm as ETH_SEPOLIA_TO_ZKEVM_DEVNET, cn as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-
|
|
2
|
-
import { B as BridgeWidgetViews, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
3
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
4
|
-
import { E as EllipsizedText, C as Contract } from './EllipsizedText-
|
|
5
|
-
import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './balance-
|
|
6
|
-
import { f as formatUnits, p as parseUnits } from './index-
|
|
7
|
-
import { u as useInterval } from './useInterval
|
|
8
|
-
import './FeesBreakdown-
|
|
1
|
+
import { bP as axios, ab as CheckoutErrorType, bQ as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, j as jsx, bR as ShimmerBox, a4 as MenuItem, b5 as Stack, l as useTranslation, Y as Body, y as Button, K as Box, bS as PASSPORT_URL, aC as Link, bT as getChainIdBySlug, ae as getChainImage, bU as networkName, bV as FramedImage, bt as Icon, $ as useAnalytics, a6 as UserJourney, b7 as Divider, X as ViewContext, aW as Fragment, V as ViewActions, au as useWalletConnect, aw as isWalletConnectProvider, bs as Logo, bW as RawImage, bX as AXELAR_SCAN_URL, a9 as isNativeToken, ah as getTokenImageByAddress, bY as getNativeSymbolByChainSlug, ai as calculateCryptoToFiat, a1 as EventTargetContext, a2 as isPassportProvider, i as getL1ChainId, U as TokenFilterTypes, h as getL2ChainId, bZ as WalletProviderRdns, b_ as Web3Provider, b$ as useInjectedProviders, aj as HeaderNavigation, am as FooterLogo, c0 as WalletDrawer, an as SimpleLayout, c1 as getChainSlugById, c2 as JsonRpcProvider, c3 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c4 as getChainNameById, z as useTheme, as as Heading, ap as getWalletProviderNameByProvider, c5 as isAddressSanctioned, o as SharedViews, c6 as isMetaMaskProvider, ao as WalletProviderName, at as Drawer, x as ButtCon, ak as ButtonNavigationStyles, a7 as orchestrationEvents, a5 as tokenValueFormat, a0 as formatZeroAmount, bv as NATIVE, bx as amountInputValidation, bm as getRemoteImage, br as CloudImage, c7 as ETH_TOKEN_SYMBOL, aM as BigNumber, a3 as Environment, c8 as GasEstimateType, bB as DEFAULT_TOKEN_DECIMALS, bw as DEFAULT_QUOTE_REFRESH_INTERVAL, c9 as addChainChangedListener, ca as removeChainChangedListener, bD as IMX_TOKEN_SYMBOL, cb as dist, cc as CHECKOUT_CDN_BASE_URL, ax as heroBackGroundStyles, ay as heroImageStyles, cd as Badge, aA as SimpleTextBody, bE as FooterButton, ce as getEthTokenImage, cf as WITHDRAWAL_CLAIM_GAS_LIMIT, bu as getDefaultTokenImage, aD as viewReducer, aE as initialViewState, cg as BridgeConfiguration, ch as ImmutableConfiguration, ci as TokenBridge, bG as StatusView, b2 as StatusType, E as ErrorView, cj as ServiceUnavailableErrorView, ck as ServiceType, cl as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cm as ETH_SEPOLIA_TO_ZKEVM_DEVNET, cn as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-Cttd8F07.js';
|
|
2
|
+
import { B as BridgeWidgetViews, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-BjjKFDqj.js';
|
|
3
|
+
import { T as TokenImage, r as retry } from './retry-DILXrwS7.js';
|
|
4
|
+
import { E as EllipsizedText, C as Contract } from './EllipsizedText-CSNit1Dv.js';
|
|
5
|
+
import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './balance-Dxs1BUch.js';
|
|
6
|
+
import { f as formatUnits, p as parseUnits } from './index-BWZl_99t.js';
|
|
7
|
+
import { u as useInterval } from './useInterval--eZTH1wR.js';
|
|
8
|
+
import './FeesBreakdown-B1BtcqkI.js';
|
|
9
9
|
|
|
10
10
|
// This module is intended to unwrap Axios default export as named.
|
|
11
11
|
// Keep top-level export same with static properties
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { r as reactExports, u as useConnectLoaderState, j as jsx, I as IMTBLWidgetEvents, C as CheckoutFlowType, P as ProviderEventType, a as CheckoutEventType, b as ConnectEventType, c as CheckoutFailureEventType, d as CheckoutSuccessEventType, W as WalletEventType, e as CheckoutUserActionEventType, S as SwapEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as OrchestrationEventType, V as ViewActions, h as getL2ChainId, i as getL1ChainId, k as ChainId, l as useTranslation, m as useViewState, n as useEventTargetState, o as SharedViews, p as checkoutFlows, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ProvidersContextProvider, v as ConnectLoader, w as ViewContextProvider } from './index-
|
|
2
|
-
import SwapWidget from './SwapWidget-
|
|
3
|
-
import BridgeWidget from './BridgeWidget-
|
|
4
|
-
import { O as OnRampWidget } from './OnRampWidget-
|
|
5
|
-
import WalletWidget from './WalletWidget-
|
|
6
|
-
import SaleWidget from './SaleWidget-
|
|
7
|
-
import AddFundsWidget from './AddFundsWidget-
|
|
8
|
-
import './balance-
|
|
9
|
-
import './retry-
|
|
10
|
-
import './FeesBreakdown-
|
|
11
|
-
import './TopUpView-
|
|
12
|
-
import './index-
|
|
13
|
-
import './useInterval
|
|
14
|
-
import './SpendingCapHero-
|
|
15
|
-
import './EllipsizedText-
|
|
16
|
-
import './HandoverContent-
|
|
1
|
+
import { r as reactExports, u as useConnectLoaderState, j as jsx, I as IMTBLWidgetEvents, C as CheckoutFlowType, P as ProviderEventType, a as CheckoutEventType, b as ConnectEventType, c as CheckoutFailureEventType, d as CheckoutSuccessEventType, W as WalletEventType, e as CheckoutUserActionEventType, S as SwapEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as OrchestrationEventType, V as ViewActions, h as getL2ChainId, i as getL1ChainId, k as ChainId, l as useTranslation, m as useViewState, n as useEventTargetState, o as SharedViews, p as checkoutFlows, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ProvidersContextProvider, v as ConnectLoader, w as ViewContextProvider } from './index-Cttd8F07.js';
|
|
2
|
+
import SwapWidget from './SwapWidget-J8ziHxqY.js';
|
|
3
|
+
import BridgeWidget from './BridgeWidget-ZNe8y_Mz.js';
|
|
4
|
+
import { O as OnRampWidget } from './OnRampWidget-DtsSKLMW.js';
|
|
5
|
+
import WalletWidget from './WalletWidget-DwxpmjI1.js';
|
|
6
|
+
import SaleWidget from './SaleWidget-Ds0K2li8.js';
|
|
7
|
+
import AddFundsWidget from './AddFundsWidget-CGnjmDIv.js';
|
|
8
|
+
import './balance-Dxs1BUch.js';
|
|
9
|
+
import './retry-DILXrwS7.js';
|
|
10
|
+
import './FeesBreakdown-B1BtcqkI.js';
|
|
11
|
+
import './TopUpView-BjjKFDqj.js';
|
|
12
|
+
import './index-BWZl_99t.js';
|
|
13
|
+
import './useInterval--eZTH1wR.js';
|
|
14
|
+
import './SpendingCapHero-ChKyuqbj.js';
|
|
15
|
+
import './EllipsizedText-CSNit1Dv.js';
|
|
16
|
+
import './HandoverContent-0b7FoEgf.js';
|
|
17
17
|
|
|
18
18
|
const initialCheckoutState = {
|
|
19
19
|
checkout: undefined,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dp as defineReadOnly, dq as getStatic, dr as Signer, ds as Provider, dt as getAddress, du as Logger, dv as getContractAddress, dw as Interface, dx as shallowCopy, dy as VoidSigner, dz as Indexed, dA as deepCopy, dB as isHexString, dC as checkResultErrors, dD as resolveProperties, aM as BigNumber, dE as accessListify, dF as arrayify, j as jsx, _ as _objectWithoutProperties, aL as cloneElementWithCssProp, Y as Body, T as _defineProperty } from './index-
|
|
1
|
+
import { dp as defineReadOnly, dq as getStatic, dr as Signer, ds as Provider, dt as getAddress, du as Logger, dv as getContractAddress, dw as Interface, dx as shallowCopy, dy as VoidSigner, dz as Indexed, dA as deepCopy, dB as isHexString, dC as checkResultErrors, dD as resolveProperties, aM as BigNumber, dE as accessListify, dF as arrayify, j as jsx, _ as _objectWithoutProperties, aL as cloneElementWithCssProp, Y as Body, T as _defineProperty } from './index-Cttd8F07.js';
|
|
2
2
|
|
|
3
3
|
const version = "contracts/5.7.0";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxs, j as jsx, Y as Body, cx as PriceDisplay, K as Box, l as useTranslation, at as Drawer, a4 as MenuItem, aW as Fragment, b7 as Divider, a5 as tokenValueFormat, a0 as formatZeroAmount, am as FooterLogo } from './index-
|
|
1
|
+
import { q as jsxs, j as jsx, Y as Body, cx as PriceDisplay, K as Box, l as useTranslation, at as Drawer, a4 as MenuItem, aW as Fragment, b7 as Divider, a5 as tokenValueFormat, a0 as formatZeroAmount, am as FooterLogo } from './index-Cttd8F07.js';
|
|
2
2
|
|
|
3
3
|
const feesBreakdownContentStyles = {
|
|
4
4
|
display: 'flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxs, K as Box, j as jsx, as as Heading, Y as Body, y as Button } from './index-
|
|
1
|
+
import { q as jsxs, K as Box, j as jsx, as as Heading, Y as Body, y as Button } from './index-Cttd8F07.js';
|
|
2
2
|
|
|
3
3
|
function HandoverContent({ headingText, subheadingText, primaryButtonText, onPrimaryButtonClick, secondaryButtonText, onSecondaryButtonClick, }) {
|
|
4
4
|
return (jsxs(Box, { sx: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bK as global, $ as useAnalytics, r as reactExports, Z as ConnectLoaderContext, a1 as EventTargetContext, l as useTranslation, X as ViewContext, o as SharedViews, bL as ExchangeType, j as jsx, an as SimpleLayout, aj as HeaderNavigation, bM as sendOnRampWidgetCloseEvent, a7 as orchestrationEvents, I as IMTBLWidgetEvents, K as Box, a6 as UserJourney, V as ViewActions, am as FooterLogo, q as jsxs, aA as SimpleTextBody, aD as viewReducer, aE as initialViewState, bv as NATIVE, L as LoadingView, bN as sendOnRampSuccessEvent, b2 as StatusType, bG as StatusView, bO as sendOnRampFailedEvent } from './index-
|
|
2
|
-
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-
|
|
3
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
1
|
+
import { bK as global, $ as useAnalytics, r as reactExports, Z as ConnectLoaderContext, a1 as EventTargetContext, l as useTranslation, X as ViewContext, o as SharedViews, bL as ExchangeType, j as jsx, an as SimpleLayout, aj as HeaderNavigation, bM as sendOnRampWidgetCloseEvent, a7 as orchestrationEvents, I as IMTBLWidgetEvents, K as Box, a6 as UserJourney, V as ViewActions, am as FooterLogo, q as jsxs, aA as SimpleTextBody, aD as viewReducer, aE as initialViewState, bv as NATIVE, L as LoadingView, bN as sendOnRampSuccessEvent, b2 as StatusType, bG as StatusView, bO as sendOnRampFailedEvent } from './index-Cttd8F07.js';
|
|
2
|
+
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-BjjKFDqj.js';
|
|
3
|
+
import { S as SpendingCapHero } from './SpendingCapHero-ChKyuqbj.js';
|
|
4
4
|
|
|
5
5
|
function isNull(arg) {
|
|
6
6
|
return arg === null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, j as jsx, aF as MultiTextShimmer, T as _defineProperty, z as useTheme, r as reactExports, F as merge, aG as getCaptionTextStyles, aH as DEFAULT_BODY_PROPS, aI as baseTextComponentSx, aJ as useConvertSxToEmotionStyles, aK as useGetCurrentSizeClass, aL as cloneElementWithCssProp, a3 as Environment, aM as BigNumber, aN as compareStr, X as ViewContext, V as ViewActions, aO as SalePaymentTypes, a6 as UserJourney, l as useTranslation, ai as calculateCryptoToFiat, $ as useAnalytics, a1 as EventTargetContext, aP as sendSaleWidgetCloseEvent, aQ as sendSaleSuccessEvent, aR as sendSaleFailedEvent, aS as sendSaleTransactionSuccessEvent, aT as sendSalePaymentMethodEvent, aU as sendSalePaymentTokenEvent, aj as HeaderNavigation, q as jsxs, aV as LoadingOverlay, K as Box, aW as Fragment, an as SimpleLayout, aX as useHandover, aY as HandoverTarget, aZ as getRemoteRive, as as Heading, a_ as HandoverDuration, a2 as isPassportProvider, a4 as MenuItem, a$ as motion, b0 as listVariants, b1 as listItemVariants, o as SharedViews, am as FooterLogo, b2 as StatusType, b3 as prettyFormatNumber, a5 as tokenValueFormat, b4 as ShimmerCircle, y as Button, b5 as Stack, b6 as FundingStepType, ar as abbreviateWalletAddress, at as Drawer, b7 as Divider, b8 as tokenSymbolNameOverrides, b9 as ItemType, ba as TransactionOrGasType, bb as GasTokenType, bc as RoutingOutcomeType, a9 as isNativeToken, ah as getTokenImageByAddress, bd as isGasFree, Z as ConnectLoaderContext, be as eventTargetReducer, bf as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bg as EventTargetActions, L as LoadingView, k as ChainId, bh as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bi as ConnectLoaderActions, x as ButtCon, Y as Body, bj as widgetTheme, aD as viewReducer, aE as initialViewState, bk as BlockExplorerService } from './index-
|
|
2
|
-
import { C as Contract } from './EllipsizedText-
|
|
3
|
-
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-
|
|
4
|
-
import { H as HandoverContent } from './HandoverContent-
|
|
5
|
-
import { u as useMount, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
6
|
-
import { T as TokenImage } from './retry-
|
|
7
|
-
import { f as formatUnits } from './index-
|
|
8
|
-
import { F as Fees } from './balance-
|
|
9
|
-
import BridgeWidget from './BridgeWidget-
|
|
10
|
-
import SwapWidget from './SwapWidget-
|
|
11
|
-
import './SpendingCapHero-
|
|
12
|
-
import './FeesBreakdown-
|
|
13
|
-
import './useInterval
|
|
1
|
+
import { _ as _objectWithoutProperties, j as jsx, aF as MultiTextShimmer, T as _defineProperty, z as useTheme, r as reactExports, F as merge, aG as getCaptionTextStyles, aH as DEFAULT_BODY_PROPS, aI as baseTextComponentSx, aJ as useConvertSxToEmotionStyles, aK as useGetCurrentSizeClass, aL as cloneElementWithCssProp, a3 as Environment, aM as BigNumber, aN as compareStr, X as ViewContext, V as ViewActions, aO as SalePaymentTypes, a6 as UserJourney, l as useTranslation, ai as calculateCryptoToFiat, $ as useAnalytics, a1 as EventTargetContext, aP as sendSaleWidgetCloseEvent, aQ as sendSaleSuccessEvent, aR as sendSaleFailedEvent, aS as sendSaleTransactionSuccessEvent, aT as sendSalePaymentMethodEvent, aU as sendSalePaymentTokenEvent, aj as HeaderNavigation, q as jsxs, aV as LoadingOverlay, K as Box, aW as Fragment, an as SimpleLayout, aX as useHandover, aY as HandoverTarget, aZ as getRemoteRive, as as Heading, a_ as HandoverDuration, a2 as isPassportProvider, a4 as MenuItem, a$ as motion, b0 as listVariants, b1 as listItemVariants, o as SharedViews, am as FooterLogo, b2 as StatusType, b3 as prettyFormatNumber, a5 as tokenValueFormat, b4 as ShimmerCircle, y as Button, b5 as Stack, b6 as FundingStepType, ar as abbreviateWalletAddress, at as Drawer, b7 as Divider, b8 as tokenSymbolNameOverrides, b9 as ItemType, ba as TransactionOrGasType, bb as GasTokenType, bc as RoutingOutcomeType, a9 as isNativeToken, ah as getTokenImageByAddress, bd as isGasFree, Z as ConnectLoaderContext, be as eventTargetReducer, bf as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bg as EventTargetActions, L as LoadingView, k as ChainId, bh as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bi as ConnectLoaderActions, x as ButtCon, Y as Body, bj as widgetTheme, aD as viewReducer, aE as initialViewState, bk as BlockExplorerService } from './index-Cttd8F07.js';
|
|
2
|
+
import { C as Contract } from './EllipsizedText-CSNit1Dv.js';
|
|
3
|
+
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-DtsSKLMW.js';
|
|
4
|
+
import { H as HandoverContent } from './HandoverContent-0b7FoEgf.js';
|
|
5
|
+
import { u as useMount, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-BjjKFDqj.js';
|
|
6
|
+
import { T as TokenImage } from './retry-DILXrwS7.js';
|
|
7
|
+
import { f as formatUnits } from './index-BWZl_99t.js';
|
|
8
|
+
import { F as Fees } from './balance-Dxs1BUch.js';
|
|
9
|
+
import BridgeWidget from './BridgeWidget-ZNe8y_Mz.js';
|
|
10
|
+
import SwapWidget from './SwapWidget-J8ziHxqY.js';
|
|
11
|
+
import './SpendingCapHero-ChKyuqbj.js';
|
|
12
|
+
import './FeesBreakdown-B1BtcqkI.js';
|
|
13
|
+
import './useInterval--eZTH1wR.js';
|
|
14
14
|
|
|
15
15
|
var _excluded = ["size", "rc", "weight", "sx", "testId", "children", "domRef", "className"],
|
|
16
16
|
_excluded2 = ["size", "rc", "weight", "shimmer", "shimmerSx", "sx", "children", "domRef", "testId", "className"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, ax as heroBackGroundStyles, K as Box, ay as heroImageStyles, az as heroImageBottomAlign, q as jsxs } from './index-
|
|
1
|
+
import { j as jsx, ax as heroBackGroundStyles, K as Box, ay as heroImageStyles, az as heroImageBottomAlign, q as jsxs } from './index-Cttd8F07.js';
|
|
2
2
|
|
|
3
3
|
function SpendingCapHero() {
|
|
4
4
|
return (jsx(Box, { sx: { ...heroBackGroundStyles, background: 'base.color.translucent.emphasis.100' }, children: jsx(Box, { sx: { ...heroImageStyles, ...heroImageBottomAlign }, children: jsxs("svg", { width: "430", height: "305", viewBox: "0 0 430 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M94.0614 105.632L93.6321 104L92 104.429L92.4292 106.061L94.0614 105.632Z", fill: "white" }), jsx("path", { d: "M63.6531 193.101L63.1006 191L60.9996 191.553L61.5521 193.654L63.6531 193.101Z", fill: "white" }), jsx("path", { d: "M344.489 224.345L342.345 224L342 226.145L344.144 226.49L344.489 224.345Z", fill: "white" }), jsx("path", { d: "M372.286 139.905L372.905 138.619L371.619 138L371 139.286L372.286 139.905Z", fill: "white" }), jsx("path", { d: "M341.653 78.101L341.101 76L339 76.5525L339.552 78.6535L341.653 78.101Z", fill: "white" }), jsx("path", { d: "M359.286 242.905L359.905 241.619L358.619 241L358 242.286L359.286 242.905Z", fill: "white" }), jsx("path", { d: "M87.0123 112.087L86.0869 111L85.0002 111.925L85.9256 113.012L87.0123 112.087Z", fill: "white" }), jsx("path", { d: "M84.2862 248.905L84.9053 247.619L83.6192 247L83.0001 248.286L84.2862 248.905Z", fill: "white" }), jsx("path", { d: "M215.496 262.992C268.237 262.992 310.993 220.237 310.993 167.496C310.993 114.755 268.237 72 215.496 72C162.755 72 120 114.755 120 167.496C120 220.237 162.755 262.992 215.496 262.992Z", fill: "white", fillOpacity: "0.24", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M159.82 95.1695C179.975 79.6536 204.651 73.1506 227.89 77.0665C261.089 82.6606 253.281 101.028 199.197 121.314C151.934 139.037 123.49 136.348 143.823 110.95C148.422 105.208 153.721 99.8623 159.82 95.1695Z", fill: "white", fillOpacity: "0.08" }), jsx("path", { d: "M215.497 227.183C171.451 227.183 135.159 219.871 130.194 210.462H130.187C145.912 241.626 178.21 263.001 215.497 263.001C252.705 263.001 284.942 241.719 300.706 210.664C295.33 219.98 259.232 227.183 215.505 227.183H215.497Z", fill: "#36E0F8", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M284.219 219.607L283.978 219.84C281.275 222.482 256.583 215.986 253.172 218.418C222.389 240.36 182.779 269.061 146.099 219.397C146.099 219.397 140.761 217.641 138.609 216.686C139.425 217.96 140.279 219.226 141.165 220.469C170.425 261.516 227.423 271.073 268.47 241.813C276.97 235.752 284.118 228.503 289.852 220.454L292.424 216.841L288.252 218.302C287.086 218.713 285.851 219.11 284.553 219.498L284.227 219.599L284.219 219.607Z", fill: "black" }), jsx("path", { d: "M215.496 241.4C262.183 241.4 300.03 226.557 300.03 208.248C300.03 189.938 262.183 175.095 215.496 175.095C168.81 175.095 130.963 189.938 130.963 208.248C130.963 226.557 168.81 241.4 215.496 241.4Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.659C300.705 210.659 300.705 210.65 300.705 210.641C300.705 210.641 300.705 210.65 300.705 210.659Z", fill: "#EBE9E9", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.952 204.511 221.377 199.638 221.377 193.626C221.377 187.614 208.952 182.741 193.624 182.741C178.297 182.741 165.871 187.614 165.871 193.626C165.871 199.638 178.297 204.511 193.624 204.511Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 204.41C199.49 204.294 201.573 204.084 203.546 203.789V211.512C201.573 211.807 199.49 212.017 197.33 212.133V204.41Z", fill: "#D0F500" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901V206.624C215.255 208.497 211.246 210.027 206.398 211.014V203.291Z", fill: "black" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 211.015C211.246 210.028 215.255 208.497 217.905 206.625", stroke: "#A66CFF", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.952 196.788 221.377 191.914 221.377 185.903C221.377 179.891 208.952 175.017 193.624 175.017C178.297 175.017 165.871 179.891 165.871 185.903C165.871 191.914 178.297 196.788 193.624 196.788Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 196.687C199.49 196.57 201.573 196.361 203.546 196.065V203.788C201.573 204.084 199.49 204.293 197.33 204.41V196.687Z", fill: "#36E0F8" }), jsx("path", { d: "M206.398 195.568C211.246 194.581 215.255 193.051 217.905 191.178V198.901C215.255 200.774 211.246 202.304 206.398 203.291V195.568Z", fill: "black" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.952 189.065 221.377 184.192 221.377 178.18C221.377 172.168 208.952 167.294 193.624 167.294C178.297 167.294 165.871 172.168 165.871 178.18C165.871 184.192 178.297 189.065 193.624 189.065Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 188.965C199.49 188.849 201.573 188.639 203.546 188.343V196.067C201.573 196.362 199.49 196.571 197.33 196.688V188.965Z", fill: "#F191FA" }), jsx("path", { d: "M206.398 187.845C211.246 186.858 215.255 185.327 217.905 183.455V191.178C215.255 193.05 211.246 194.581 206.398 195.568V187.845Z", fill: "black" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 195.569C211.246 194.582 215.255 193.052 217.905 191.179", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.934C253.929 212.934 266.354 208.06 266.354 202.049C266.354 196.037 253.929 191.164 238.601 191.164C223.274 191.164 210.848 196.037 210.848 202.049C210.848 208.06 223.274 212.934 238.601 212.934Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 212.833C244.467 212.717 246.55 212.507 248.523 212.212V219.935C246.55 220.23 244.467 220.44 242.307 220.556V212.833Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 211.713C256.223 210.727 260.232 209.196 262.882 207.324V215.047C260.232 216.919 256.223 218.45 251.375 219.436V211.713Z", fill: "black" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 219.437C256.223 218.45 260.232 216.919 262.882 215.047", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.929 205.21 266.354 200.336 266.354 194.324C266.354 188.313 253.929 183.439 238.601 183.439C223.274 183.439 210.848 188.313 210.848 194.324C210.848 200.336 223.274 205.21 238.601 205.21Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 205.109C244.467 204.993 246.55 204.783 248.523 204.488V212.211C246.55 212.506 244.467 212.716 242.307 212.832V205.109Z", fill: "#36E0F8" }), jsx("path", { d: "M251.375 203.989C256.223 203.003 260.232 201.472 262.882 199.6V207.323C260.232 209.195 256.223 210.726 251.375 211.712V203.989Z", fill: "black" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 211.713C256.223 210.726 260.232 209.195 262.882 207.323", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.929 197.487 266.354 192.613 266.354 186.602C266.354 180.59 253.929 175.716 238.601 175.716C223.274 175.716 210.848 180.59 210.848 186.602C210.848 192.613 223.274 197.487 238.601 197.487Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 197.386C244.467 197.27 246.55 197.06 248.523 196.765V204.488C246.55 204.783 244.467 204.992 242.307 205.109V197.386Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 196.267C256.223 195.28 260.232 193.75 262.882 191.877V199.6C260.232 201.473 256.223 203.003 251.375 203.99V196.267Z", fill: "#9AEFFB" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 203.99C256.223 203.004 260.232 201.473 262.882 199.601", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.979 189.678 260.405 184.804 260.405 178.793C260.405 172.781 247.979 167.908 232.652 167.908C217.324 167.908 204.899 172.781 204.899 178.793C204.899 184.804 217.324 189.678 232.652 189.678Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M236.358 189.578C238.518 189.461 240.6 189.251 242.574 188.956V196.679C240.6 196.974 238.518 197.184 236.358 197.301V189.578Z", fill: "#F191FA" }), jsx("path", { d: "M245.426 188.458C250.274 187.471 254.283 185.94 256.932 184.067V191.791C254.283 193.663 250.274 195.194 245.426 196.18V188.458Z", fill: "black" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M245.426 196.182C250.274 195.195 254.283 193.664 256.932 191.792", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.317 180.021 268.743 175.148 268.743 169.136C268.743 163.124 256.317 158.25 240.99 158.25C225.662 158.25 213.237 163.124 213.237 169.136C213.237 175.148 225.662 180.021 240.99 180.021Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M244.696 179.92C246.856 179.804 248.938 179.594 250.911 179.299V187.022C248.938 187.317 246.856 187.527 244.696 187.643V179.92Z", fill: "#9AEFFB" }), jsx("path", { d: "M253.763 178.801C258.612 177.815 262.621 176.284 265.27 174.412V182.135C262.621 184.007 258.612 185.538 253.763 186.524V178.801Z", fill: "black" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M253.763 186.525C258.612 185.538 262.621 184.007 265.27 182.135", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.238 223.803 217.664 218.929 217.664 212.918C217.664 206.906 205.238 202.032 189.911 202.032C174.583 202.032 162.158 206.906 162.158 212.918C162.158 218.929 174.583 223.803 189.911 223.803Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.625 223.71C195.785 223.593 197.867 223.384 199.84 223.088V230.811C197.867 231.107 195.785 231.316 193.625 231.433V223.71Z", fill: "#F191FA" }), jsx("path", { d: "M202.685 222.583C207.533 221.596 211.542 220.066 214.191 218.193V225.916C211.542 227.789 207.533 229.319 202.685 230.306V222.583Z", fill: "#9AEFFB" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M202.685 230.306C207.533 229.32 211.542 227.789 214.191 225.917", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.658C300.705 210.658 300.705 210.649 300.705 210.641C300.705 210.641 300.705 210.649 300.705 210.658Z", fill: "#A66CFF", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" })] }) }) }));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { l as useTranslation, bl as WidgetTheme, bm as getRemoteImage, q as jsxs, bn as quickswapFooterStyles, K as Box, bo as quickswapFooterLogoStyles, j as jsx, Y as Body, bp as quickswapFooterDisclaimerTextStyles, r as reactExports, y as Button, bq as getImxTokenImage, at as Drawer, br as CloudImage, as as Heading, bs as Logo, bt as Icon, aM as BigNumber, ai as calculateCryptoToFiat, a5 as tokenValueFormat, bd as isGasFree, a0 as formatZeroAmount, Z as ConnectLoaderContext, bu as getDefaultTokenImage, a9 as isNativeToken, bv as NATIVE, X as ViewContext, $ as useAnalytics, bw as DEFAULT_QUOTE_REFRESH_INTERVAL, a2 as isPassportProvider, bx as amountInputValidation, by as Tooltip, a6 as UserJourney, a3 as Environment, V as ViewActions, o as SharedViews, h as getL2ChainId, aW as Fragment, bz as ESTIMATE_DEBOUNCE, bA as DEFAULT_TOKEN_VALIDATION_DECIMALS, bB as DEFAULT_TOKEN_DECIMALS, a1 as EventTargetContext, bC as sendSwapWidgetCloseEvent, a7 as orchestrationEvents, I as IMTBLWidgetEvents, aj as HeaderNavigation, L as LoadingView, an as SimpleLayout, bD as IMX_TOKEN_SYMBOL, ab as CheckoutErrorType, aA as SimpleTextBody, bE as FooterButton, aD as viewReducer, aE as initialViewState, U as TokenFilterTypes, af as DEFAULT_BALANCE_RETRY_POLICY, bF as SwapDirection$1, bG as StatusView, bH as sendSwapSuccessEvent, b2 as StatusType, bI as sendSwapFailedEvent, bJ as sendSwapRejectedEvent, E as ErrorView } from './index-
|
|
2
|
-
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './balance-
|
|
3
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, S as SwapWidgetViews, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
4
|
-
import { u as useInterval } from './useInterval
|
|
5
|
-
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-
|
|
6
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
7
|
-
import './retry-
|
|
8
|
-
import './FeesBreakdown-
|
|
1
|
+
import { l as useTranslation, bl as WidgetTheme, bm as getRemoteImage, q as jsxs, bn as quickswapFooterStyles, K as Box, bo as quickswapFooterLogoStyles, j as jsx, Y as Body, bp as quickswapFooterDisclaimerTextStyles, r as reactExports, y as Button, bq as getImxTokenImage, at as Drawer, br as CloudImage, as as Heading, bs as Logo, bt as Icon, aM as BigNumber, ai as calculateCryptoToFiat, a5 as tokenValueFormat, bd as isGasFree, a0 as formatZeroAmount, Z as ConnectLoaderContext, bu as getDefaultTokenImage, a9 as isNativeToken, bv as NATIVE, X as ViewContext, $ as useAnalytics, bw as DEFAULT_QUOTE_REFRESH_INTERVAL, a2 as isPassportProvider, bx as amountInputValidation, by as Tooltip, a6 as UserJourney, a3 as Environment, V as ViewActions, o as SharedViews, h as getL2ChainId, aW as Fragment, bz as ESTIMATE_DEBOUNCE, bA as DEFAULT_TOKEN_VALIDATION_DECIMALS, bB as DEFAULT_TOKEN_DECIMALS, a1 as EventTargetContext, bC as sendSwapWidgetCloseEvent, a7 as orchestrationEvents, I as IMTBLWidgetEvents, aj as HeaderNavigation, L as LoadingView, an as SimpleLayout, bD as IMX_TOKEN_SYMBOL, ab as CheckoutErrorType, aA as SimpleTextBody, bE as FooterButton, aD as viewReducer, aE as initialViewState, U as TokenFilterTypes, af as DEFAULT_BALANCE_RETRY_POLICY, bF as SwapDirection$1, bG as StatusView, bH as sendSwapSuccessEvent, b2 as StatusType, bI as sendSwapFailedEvent, bJ as sendSwapRejectedEvent, E as ErrorView } from './index-Cttd8F07.js';
|
|
2
|
+
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './balance-Dxs1BUch.js';
|
|
3
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, S as SwapWidgetViews, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-BjjKFDqj.js';
|
|
4
|
+
import { u as useInterval } from './useInterval--eZTH1wR.js';
|
|
5
|
+
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-BWZl_99t.js';
|
|
6
|
+
import { S as SpendingCapHero } from './SpendingCapHero-ChKyuqbj.js';
|
|
7
|
+
import './retry-DILXrwS7.js';
|
|
8
|
+
import './FeesBreakdown-B1BtcqkI.js';
|
|
9
9
|
|
|
10
10
|
function QuickswapFooter({ theme, environment }) {
|
|
11
11
|
const { t } = useTranslation();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as reactExports, a3 as Environment, bP as axios, j as jsx, q as jsxs, aq as isDualVariantIcon, a4 as MenuItem, K as Box, l as useTranslation, X as ViewContext, a1 as EventTargetContext, $ as useAnalytics, c8 as GasEstimateType, aj as HeaderNavigation, as as Heading, Y as Body, an as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, a7 as orchestrationEvents } from './index-
|
|
2
|
-
import { f as formatUnits } from './index-
|
|
1
|
+
import { r as reactExports, a3 as Environment, bP as axios, j as jsx, q as jsxs, aq as isDualVariantIcon, a4 as MenuItem, K as Box, l as useTranslation, X as ViewContext, a1 as EventTargetContext, $ as useAnalytics, c8 as GasEstimateType, aj as HeaderNavigation, as as Heading, Y as Body, an as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, a7 as orchestrationEvents } from './index-Cttd8F07.js';
|
|
2
|
+
import { f as formatUnits } from './index-BWZl_99t.js';
|
|
3
3
|
|
|
4
4
|
var FiatSymbols;
|
|
5
5
|
(function (FiatSymbols) {
|