@imtbl/sdk 1.56.0-alpha.4 → 1.56.0-alpha.6
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-Bx1EdgjV.js → blockchain_data-CpCDeExw.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-S29kaH7-.js → AddFundsWidget-Cws7mund.js} +16 -13
- package/dist/browser/checkout/{BridgeWidget-BFasDbLZ.js → BridgeWidget-DTvlyLxZ.js} +7 -7
- package/dist/browser/checkout/{CheckoutWidget-2xB9ilE2.js → CheckoutWidget-bXv--QFk.js} +15 -15
- package/dist/browser/checkout/{EllipsizedText-BU4BcoYY.js → EllipsizedText-C6MgsnsF.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-BKOsJinU.js → HandoverContent-BtXtHcgP.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BO4BdCe2.js → OnRampWidget-0RBmaRcZ.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-BOPEqnXe.js → SaleWidget-DkvLlPHN.js} +12 -12
- package/dist/browser/checkout/{SpendingCapHero-7ng6u34D.js → SpendingCapHero-DhVHklyQ.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-2KE0c-pL.js → SwapWidget-Bs_iFeA2.js} +7 -7
- package/dist/browser/checkout/{TokenImage-Cc7cIMAy.js → TokenImage-Sx5G4tK5.js} +1 -1
- package/dist/browser/checkout/{TopUpView-kEfIkxDw.js → TopUpView-DYract5e.js} +2 -2
- package/dist/browser/checkout/{WalletWidget-BXwJ3gpb.js → WalletWidget-wWcqVtjZ.js} +5 -5
- package/dist/browser/checkout/{auto-track-D0fQgvRR.js → auto-track-BK4dbXDt.js} +1 -1
- package/dist/browser/checkout/{balance-Dj_7JtZy.js → balance-CJY6sx_u.js} +3 -3
- package/dist/browser/checkout/{index-CC71_X71.js → index-B3RoSPel.js} +1 -1
- package/dist/browser/checkout/{index-CjIjIaK1.js → index-BcCKvORg.js} +2 -2
- package/dist/browser/checkout/{index-D4lcaWVu.js → index-Bmee6BQu.js} +18 -18
- package/dist/browser/checkout/{index-CDTjgEGi.js → index-CTcn0pxx.js} +1 -1
- package/dist/browser/checkout/{index-Abpjbmgx.js → index-CXk1vp_m.js} +1 -1
- package/dist/browser/checkout/{index-nN3K460A.js → index-GIKTAHjl.js} +1 -1
- package/dist/browser/checkout/{index-BNH_YAe4.js → index-eynirHSx.js} +1 -1
- package/dist/browser/checkout/{index-xpIOV3Us.js → index-gMoTZxjb.js} +1 -1
- package/dist/browser/checkout/{index-CaCb9Ops.js → index-gevcMVii.js} +1 -1
- package/dist/browser/checkout/{index.umd-D8sxzY3z.js → index.umd-DQNd4-iQ.js} +1 -1
- package/dist/browser/checkout/{retry-AB8ASqSB.js → retry-BoFAiaA7.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +13 -10
- package/dist/{checkout-BwQn1iv8.js → checkout-DPyn_p_N.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-Bf8iGjZs.js → config-CkqXXrYj.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-CcfJwbyC.js → index-BrGS6yly.js} +1 -1
- package/dist/{index-DiuuxRYA.js → index-CS1VltMY.js} +3 -3
- package/dist/{index-BNyiVjYT.js → index-DHTpn7_5.js} +1 -1
- package/dist/{index-BWuThmMH.js → index-DLtzXJ94.js} +1 -1
- package/dist/{index-DuHmhyEU.js → index-DMX1yX4J.js} +1 -1
- package/dist/{index-B4FRMMaU.js → index-uA6qVljP.js} +4 -4
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DFRZ9-uT.js → minting_backend-BCP6hrE0.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BWv4E3BS.js → orderbook-DWm5q8h-.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DHyy9qcX.js → passport-53Cvjzlx.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-IEL1qo7K.js → webhook-AYBdBzGs.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-25J1tpCN.js → x-DH1MpYEv.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-CS1VltMY.js';
|
|
2
|
+
import { i as index } from './index-BrGS6yly.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-CS1VltMY.js';
|
|
2
|
+
export { i as Types } from './index-BrGS6yly.js';
|
|
3
|
+
import './index-DLtzXJ94.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'lru-memorise';
|
|
6
6
|
import 'global-const';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { j as jsx, _ as _objectWithoutProperties, cr as useGetSubcomponentChild, ce as Badge, cB as useSplitApartChildrenAndSubComponents, r as reactExports, cC as useResizeObserver, z as merge$2, F as isChildSubcomponent, b7 as Stack, H as Box, q as jsxs, G as SmartClone, cD as FramedIcon, af as FramedImage, cE as FramedLogo, U as _defineProperty, as as isDualVariantIcon, cp as hFlex, cF as useForwardLocalDomRef, cq as _slicedToArray, x as useTheme, cG as usePrevious, cH as useBrowserEffect, cI as getHeadingTextStyles, A as flattenChildren, cJ as vFlex, cK as centerFlexChildren, cL as FormControlLabel, cM as FormControlValidation, cN as FormControlCaption, cO as getDefaultExportFromCjs, cP as commonjsGlobal, l as useTranslation, a5 as MenuItem, bv as Icon, aX as LoadingOverlay, b1 as motion, b3 as listItemVariants, b2 as listVariants, av as Drawer, Y as ViewContext, a2 as EventTargetContext, V as ViewActions, p as SharedViews, k as ChainId, bw as getDefaultTokenImage, w as ButtCon, cQ as OverflowDrawerMenu, Z as Body, ap as SimpleLayout, X as TokenFilterTypes, h as getL2ChainId, a8 as orchestrationEvents, I as IMTBLWidgetEvents, cR as requireSecp256k1$1, cS as requireLib_commonjs, cT as require$$0$2, cU as bech32$2, cV as bnExports$1, cW as require$$0$3, cX as getAugmentedNamespace, cY as require$$0$4, cZ as minimalisticAssert, c_ as require$$2, c$ as hash$6, b$ as Web3Provider, d0 as MaxUint256, d1 as SvgIcon, aZ as useHandover, a_ as HandoverTarget, au as Heading, cy as PriceDisplay, aO as BigNumber, al as HeaderNavigation, b9 as Divider, Q as Button, aY as Fragment, aE as Link, a$ as getRemoteRive, aF as viewReducer, aG as initialViewState, a0 as useAnalytics, d2 as sendAddFundsCloseEvent, E as ErrorView, a7 as UserJourney } from './index-
|
|
2
|
-
import { f as formatUnits, p as parseUnits } from './index-
|
|
3
|
-
import { T as TokenImage } from './TokenImage-
|
|
4
|
-
import { C as Contract, E as EllipsizedText } from './EllipsizedText-
|
|
5
|
-
import { H as HandoverContent } from './HandoverContent-
|
|
1
|
+
import { j as jsx, _ as _objectWithoutProperties, cr as useGetSubcomponentChild, ce as Badge, cB as useSplitApartChildrenAndSubComponents, r as reactExports, cC as useResizeObserver, z as merge$2, F as isChildSubcomponent, b7 as Stack, H as Box, q as jsxs, G as SmartClone, cD as FramedIcon, af as FramedImage, cE as FramedLogo, U as _defineProperty, as as isDualVariantIcon, cp as hFlex, cF as useForwardLocalDomRef, cq as _slicedToArray, x as useTheme, cG as usePrevious, cH as useBrowserEffect, cI as getHeadingTextStyles, A as flattenChildren, cJ as vFlex, cK as centerFlexChildren, cL as FormControlLabel, cM as FormControlValidation, cN as FormControlCaption, cO as getDefaultExportFromCjs, cP as commonjsGlobal, l as useTranslation, a5 as MenuItem, bv as Icon, aX as LoadingOverlay, b1 as motion, b3 as listItemVariants, b2 as listVariants, av as Drawer, Y as ViewContext, a2 as EventTargetContext, V as ViewActions, p as SharedViews, k as ChainId, bw as getDefaultTokenImage, w as ButtCon, cQ as OverflowDrawerMenu, Z as Body, ap as SimpleLayout, X as TokenFilterTypes, h as getL2ChainId, a8 as orchestrationEvents, I as IMTBLWidgetEvents, cR as requireSecp256k1$1, cS as requireLib_commonjs, cT as require$$0$2, cU as bech32$2, cV as bnExports$1, cW as require$$0$3, cX as getAugmentedNamespace, cY as require$$0$4, cZ as minimalisticAssert, c_ as require$$2, c$ as hash$6, b$ as Web3Provider, d0 as MaxUint256, d1 as SvgIcon, aZ as useHandover, a_ as HandoverTarget, au as Heading, cy as PriceDisplay, aO as BigNumber, al as HeaderNavigation, b9 as Divider, Q as Button, aY as Fragment, aE as Link, a$ as getRemoteRive, aF as viewReducer, aG as initialViewState, a0 as useAnalytics, d2 as sendAddFundsCloseEvent, E as ErrorView, a7 as UserJourney } from './index-Bmee6BQu.js';
|
|
2
|
+
import { f as formatUnits, p as parseUnits } from './index-gevcMVii.js';
|
|
3
|
+
import { T as TokenImage } from './TokenImage-Sx5G4tK5.js';
|
|
4
|
+
import { C as Contract, E as EllipsizedText } from './EllipsizedText-C6MgsnsF.js';
|
|
5
|
+
import { H as HandoverContent } from './HandoverContent-BtXtHcgP.js';
|
|
6
6
|
|
|
7
7
|
var framedComponentSx = {
|
|
8
8
|
bg: "base.color.translucent.inverse[1000]"
|
|
@@ -1172,6 +1172,11 @@ const SQUID_SDK_BASE_URL = 'https://apiplus.squidrouter.com';
|
|
|
1172
1172
|
const SQUID_API_BASE_URL = 'https://api.squidrouter.com/v1';
|
|
1173
1173
|
const SQUID_NATIVE_TOKEN = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
|
|
1174
1174
|
|
|
1175
|
+
const validateToAmount = (amount) => {
|
|
1176
|
+
const validNumberRegex = /^[0-9]+(\.[0-9]+)?$/;
|
|
1177
|
+
return validNumberRegex.test(amount) && parseFloat(amount) > 0;
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1175
1180
|
function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption = true, showSwapOption = true, showBridgeOption = true, onCloseButtonClick, showBackButton, onBackButtonClick, }) {
|
|
1176
1181
|
const { routes, fetchRoutesWithRateLimit, resetRoutes } = useRoutes();
|
|
1177
1182
|
const { addFundsState: { squid, balances, tokens }, addFundsDispatch, } = reactExports.useContext(AddFundsContext);
|
|
@@ -1181,14 +1186,11 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
1181
1186
|
const [onRampAllowedTokens, setOnRampAllowedTokens] = reactExports.useState([]);
|
|
1182
1187
|
const [allowedTokens, setAllowedTokens] = reactExports.useState([]);
|
|
1183
1188
|
const [inputValue, setInputValue] = reactExports.useState(toAmount || '');
|
|
1184
|
-
// @TODO: the debouncedToAmount is likely what we need to use for USD
|
|
1185
|
-
// pricing and route calculations, etc
|
|
1186
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1187
1189
|
const [debouncedToAmount, setDebouncedToAmount] = reactExports.useState(inputValue);
|
|
1188
1190
|
const [currentToTokenAddress, setCurrentToTokenAddress] = reactExports.useState();
|
|
1189
1191
|
const debouncedUpdateAmount = debounce$2((value) => {
|
|
1190
1192
|
setDebouncedToAmount(value);
|
|
1191
|
-
},
|
|
1193
|
+
}, 2500);
|
|
1192
1194
|
const updateAmount = (event) => {
|
|
1193
1195
|
const { value } = event.target;
|
|
1194
1196
|
setInputValue(value);
|
|
@@ -1211,7 +1213,8 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
1211
1213
|
&& squid
|
|
1212
1214
|
&& tokens
|
|
1213
1215
|
&& currentToTokenAddress?.address
|
|
1214
|
-
&& debouncedToAmount
|
|
1216
|
+
&& debouncedToAmount
|
|
1217
|
+
&& validateToAmount(debouncedToAmount)) {
|
|
1215
1218
|
fetchRoutesWithRateLimit(squid, tokens, balances, ChainId.IMTBL_ZKEVM_MAINNET.toString(), currentToTokenAddress.address === 'native'
|
|
1216
1219
|
? SQUID_NATIVE_TOKEN
|
|
1217
1220
|
: currentToTokenAddress.address, debouncedToAmount, 5, 1000);
|
|
@@ -1337,7 +1340,7 @@ function AddFunds({ checkout, toAmount, config, toTokenAddress, showOnrampOption
|
|
|
1337
1340
|
boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
|
|
1338
1341
|
},
|
|
1339
1342
|
} })),
|
|
1340
|
-
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', currentToTokenAddress.symbol] }), jsx(HeroTextInput, { testId: "add-funds-amount-input", type: "number", value: inputValue, onChange: (value) => updateAmount(value), placeholder: "0", maxTextSize: "xLarge" }), jsx(HeroFormControl.Caption, { children: "USD $0.00" })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
|
|
1343
|
+
}), children: tokenChoiceOptions }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: validateToAmount(inputValue) || inputValue === '' ? 'success' : 'error', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', currentToTokenAddress.symbol] }), jsx(HeroTextInput, { testId: "add-funds-amount-input", type: "number", value: inputValue, onChange: (value) => updateAmount(value), placeholder: "0", maxTextSize: "xLarge" }), jsx(HeroFormControl.Caption, { children: "USD $0.00" })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
|
|
1341
1344
|
alignSelf: 'stretch',
|
|
1342
1345
|
p: 'base.spacing.x3',
|
|
1343
1346
|
pb: 'base.spacing.x10',
|
|
@@ -169168,7 +169171,7 @@ function SquidIcon() {
|
|
|
169168
169171
|
|
|
169169
169172
|
const FIXED_HANDOVER_DURATION = 2000;
|
|
169170
169173
|
const APPROVE_TXN_ANIMATION = '/access_coins.riv';
|
|
169171
|
-
const EXECUTE_TXN_ANIMATION = '/
|
|
169174
|
+
const EXECUTE_TXN_ANIMATION = '/swapping_coins.riv';
|
|
169172
169175
|
function Review({ data, showBackButton = false, onBackButtonClick, onCloseButtonClick, }) {
|
|
169173
169176
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
169174
169177
|
const { addFundsState: { squid, provider, chains, checkout, tokens, }, } = reactExports.useContext(AddFundsContext);
|
|
@@ -169252,7 +169255,7 @@ function Review({ data, showBackButton = false, onBackButtonClick, onCloseButton
|
|
|
169252
169255
|
}
|
|
169253
169256
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.WAITING, 'Waiting for transaction approval in wallet', 'Approve the transaction request to complete this transaction');
|
|
169254
169257
|
const txReceipt = await execute(squid, changeableProvider, route);
|
|
169255
|
-
showHandover(
|
|
169258
|
+
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.PROCESSING, 'Processing', '', FIXED_HANDOVER_DURATION);
|
|
169256
169259
|
showHandover(EXECUTE_TXN_ANIMATION, RiveStateMachineInput.COMPLETED, 'Funds added successfully', (jsxs(Fragment, { children: ["Go to", ' ', jsx(Link, { size: "small", rc: (jsx("a", { target: "_blank", href: `https://axelarscan.io/gmp/${txReceipt.transactionHash}`, rel: "noreferrer" })), children: "Axelarscan" }), ' ', "for transaction details"] })));
|
|
169257
169260
|
}
|
|
169258
169261
|
catch (e) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { bR as axios, ac as CheckoutErrorType, bS as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, j as jsx, bT as ShimmerBox, a5 as MenuItem, b7 as Stack, l as useTranslation, Z as Body, Q as Button, H as Box, bU as PASSPORT_URL, aE as Link, bV as getChainIdBySlug, ag as getChainImage, bW as networkName, af as FramedImage, bv as Icon, a0 as useAnalytics, a7 as UserJourney, b9 as Divider, Y as ViewContext, aY as Fragment, V as ViewActions, aw as useWalletConnect, ay as isWalletConnectProvider, bu as Logo, bX as RawImage, bY as AXELAR_SCAN_URL, aa as isNativeToken, aj as getTokenImageByAddress, bZ as getNativeSymbolByChainSlug, ak as calculateCryptoToFiat, a2 as EventTargetContext, a3 as isPassportProvider, i as getL1ChainId, X as TokenFilterTypes, h as getL2ChainId, b_ as WalletProviderRdns, b$ as Web3Provider, c0 as useInjectedProviders, al as HeaderNavigation, ao as FooterLogo, c1 as WalletDrawer, ap as SimpleLayout, c2 as getChainSlugById, c3 as JsonRpcProvider, c4 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c5 as getChainNameById, x as useTheme, au as Heading, ar as getWalletProviderNameByProvider, c6 as isAddressSanctioned, p as SharedViews, c7 as isMetaMaskProvider, aq as WalletProviderName, av as Drawer, w as ButtCon, am as ButtonNavigationStyles, a8 as orchestrationEvents, a6 as tokenValueFormat, a1 as formatZeroAmount, bx as NATIVE, bz as amountInputValidation, bo as getRemoteImage, bt as CloudImage, c8 as ETH_TOKEN_SYMBOL, aO as BigNumber, a4 as Environment, c9 as GasEstimateType, bD as DEFAULT_TOKEN_DECIMALS, by as DEFAULT_QUOTE_REFRESH_INTERVAL, ca as addChainChangedListener, cb as removeChainChangedListener, bF as IMX_TOKEN_SYMBOL, cc as dist, cd as CHECKOUT_CDN_BASE_URL, az as heroBackGroundStyles, aA as heroImageStyles, ce as Badge, aC as SimpleTextBody, bG as FooterButton, cf as getEthTokenImage, cg as WITHDRAWAL_CLAIM_GAS_LIMIT, bw as getDefaultTokenImage, aF as viewReducer, aG as initialViewState, ch as BridgeConfiguration, ci as ImmutableConfiguration, cj as TokenBridge, bI as StatusView, b4 as StatusType, E as ErrorView, ck as ServiceUnavailableErrorView, cl as ServiceType, cm as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cn as ETH_SEPOLIA_TO_ZKEVM_DEVNET, co 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 { r as retry, u as useInterval } from './retry-
|
|
4
|
-
import { T as TokenImage } from './TokenImage-
|
|
5
|
-
import { E as EllipsizedText, C as Contract } from './EllipsizedText-
|
|
6
|
-
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-
|
|
7
|
-
import { f as formatUnits, p as parseUnits } from './index-
|
|
1
|
+
import { bR as axios, ac as CheckoutErrorType, bS as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, j as jsx, bT as ShimmerBox, a5 as MenuItem, b7 as Stack, l as useTranslation, Z as Body, Q as Button, H as Box, bU as PASSPORT_URL, aE as Link, bV as getChainIdBySlug, ag as getChainImage, bW as networkName, af as FramedImage, bv as Icon, a0 as useAnalytics, a7 as UserJourney, b9 as Divider, Y as ViewContext, aY as Fragment, V as ViewActions, aw as useWalletConnect, ay as isWalletConnectProvider, bu as Logo, bX as RawImage, bY as AXELAR_SCAN_URL, aa as isNativeToken, aj as getTokenImageByAddress, bZ as getNativeSymbolByChainSlug, ak as calculateCryptoToFiat, a2 as EventTargetContext, a3 as isPassportProvider, i as getL1ChainId, X as TokenFilterTypes, h as getL2ChainId, b_ as WalletProviderRdns, b$ as Web3Provider, c0 as useInjectedProviders, al as HeaderNavigation, ao as FooterLogo, c1 as WalletDrawer, ap as SimpleLayout, c2 as getChainSlugById, c3 as JsonRpcProvider, c4 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c5 as getChainNameById, x as useTheme, au as Heading, ar as getWalletProviderNameByProvider, c6 as isAddressSanctioned, p as SharedViews, c7 as isMetaMaskProvider, aq as WalletProviderName, av as Drawer, w as ButtCon, am as ButtonNavigationStyles, a8 as orchestrationEvents, a6 as tokenValueFormat, a1 as formatZeroAmount, bx as NATIVE, bz as amountInputValidation, bo as getRemoteImage, bt as CloudImage, c8 as ETH_TOKEN_SYMBOL, aO as BigNumber, a4 as Environment, c9 as GasEstimateType, bD as DEFAULT_TOKEN_DECIMALS, by as DEFAULT_QUOTE_REFRESH_INTERVAL, ca as addChainChangedListener, cb as removeChainChangedListener, bF as IMX_TOKEN_SYMBOL, cc as dist, cd as CHECKOUT_CDN_BASE_URL, az as heroBackGroundStyles, aA as heroImageStyles, ce as Badge, aC as SimpleTextBody, bG as FooterButton, cf as getEthTokenImage, cg as WITHDRAWAL_CLAIM_GAS_LIMIT, bw as getDefaultTokenImage, aF as viewReducer, aG as initialViewState, ch as BridgeConfiguration, ci as ImmutableConfiguration, cj as TokenBridge, bI as StatusView, b4 as StatusType, E as ErrorView, ck as ServiceUnavailableErrorView, cl as ServiceType, cm as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cn as ETH_SEPOLIA_TO_ZKEVM_DEVNET, co as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-Bmee6BQu.js';
|
|
2
|
+
import { B as BridgeWidgetViews, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-DYract5e.js';
|
|
3
|
+
import { r as retry, u as useInterval } from './retry-BoFAiaA7.js';
|
|
4
|
+
import { T as TokenImage } from './TokenImage-Sx5G4tK5.js';
|
|
5
|
+
import { E as EllipsizedText, C as Contract } from './EllipsizedText-C6MgsnsF.js';
|
|
6
|
+
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-CJY6sx_u.js';
|
|
7
|
+
import { f as formatUnits, p as parseUnits } from './index-gevcMVii.js';
|
|
8
8
|
|
|
9
9
|
// This module is intended to unwrap Axios default export as named.
|
|
10
10
|
// Keep top-level export same with static properties
|
|
@@ -1,18 +1,18 @@
|
|
|
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 checkoutFlows, p as SharedViews, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ConnectLoader, v 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 './TokenImage-
|
|
10
|
-
import './retry-
|
|
11
|
-
import './TopUpView-
|
|
12
|
-
import './index-
|
|
13
|
-
import './SpendingCapHero-
|
|
14
|
-
import './EllipsizedText-
|
|
15
|
-
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 checkoutFlows, p as SharedViews, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ConnectLoader, v as ViewContextProvider } from './index-Bmee6BQu.js';
|
|
2
|
+
import SwapWidget from './SwapWidget-Bs_iFeA2.js';
|
|
3
|
+
import BridgeWidget from './BridgeWidget-DTvlyLxZ.js';
|
|
4
|
+
import { O as OnRampWidget } from './OnRampWidget-0RBmaRcZ.js';
|
|
5
|
+
import WalletWidget from './WalletWidget-wWcqVtjZ.js';
|
|
6
|
+
import SaleWidget from './SaleWidget-DkvLlPHN.js';
|
|
7
|
+
import AddFundsWidget from './AddFundsWidget-Cws7mund.js';
|
|
8
|
+
import './balance-CJY6sx_u.js';
|
|
9
|
+
import './TokenImage-Sx5G4tK5.js';
|
|
10
|
+
import './retry-BoFAiaA7.js';
|
|
11
|
+
import './TopUpView-DYract5e.js';
|
|
12
|
+
import './index-gevcMVii.js';
|
|
13
|
+
import './SpendingCapHero-DhVHklyQ.js';
|
|
14
|
+
import './EllipsizedText-C6MgsnsF.js';
|
|
15
|
+
import './HandoverContent-BtXtHcgP.js';
|
|
16
16
|
|
|
17
17
|
const initialCheckoutState = {
|
|
18
18
|
checkout: undefined,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d3 as defineReadOnly, d4 as getStatic, d5 as Signer, d6 as Provider, d7 as getAddress, d8 as Logger, d9 as getContractAddress, da as Interface, db as shallowCopy, dc as VoidSigner, dd as Indexed, de as deepCopy, df as isHexString, dg as checkResultErrors, dh as resolveProperties, aO as BigNumber, di as accessListify, dj as arrayify, j as jsx, _ as _objectWithoutProperties, aN as cloneElementWithCssProp, Z as Body, U as _defineProperty } from './index-
|
|
1
|
+
import { d3 as defineReadOnly, d4 as getStatic, d5 as Signer, d6 as Provider, d7 as getAddress, d8 as Logger, d9 as getContractAddress, da as Interface, db as shallowCopy, dc as VoidSigner, dd as Indexed, de as deepCopy, df as isHexString, dg as checkResultErrors, dh as resolveProperties, aO as BigNumber, di as accessListify, dj as arrayify, j as jsx, _ as _objectWithoutProperties, aN as cloneElementWithCssProp, Z as Body, U as _defineProperty } from './index-Bmee6BQu.js';
|
|
2
2
|
|
|
3
3
|
const version = "contracts/5.7.0";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxs, H as Box, j as jsx, au as Heading, Z as Body, Q as Button } from './index-
|
|
1
|
+
import { q as jsxs, H as Box, j as jsx, au as Heading, Z as Body, Q as Button } from './index-Bmee6BQu.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 { bM as global, a0 as useAnalytics, r as reactExports, $ as ConnectLoaderContext, a2 as EventTargetContext, l as useTranslation, Y as ViewContext, p as SharedViews, bN as ExchangeType, j as jsx, ap as SimpleLayout, al as HeaderNavigation, bO as sendOnRampWidgetCloseEvent, a8 as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, a7 as UserJourney, V as ViewActions, ao as FooterLogo, q as jsxs, aC as SimpleTextBody, aF as viewReducer, aG as initialViewState, bx as NATIVE, L as LoadingView, bP as sendOnRampSuccessEvent, b4 as StatusType, bI as StatusView, bQ as sendOnRampFailedEvent } from './index-
|
|
2
|
-
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-
|
|
3
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
1
|
+
import { bM as global, a0 as useAnalytics, r as reactExports, $ as ConnectLoaderContext, a2 as EventTargetContext, l as useTranslation, Y as ViewContext, p as SharedViews, bN as ExchangeType, j as jsx, ap as SimpleLayout, al as HeaderNavigation, bO as sendOnRampWidgetCloseEvent, a8 as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, a7 as UserJourney, V as ViewActions, ao as FooterLogo, q as jsxs, aC as SimpleTextBody, aF as viewReducer, aG as initialViewState, bx as NATIVE, L as LoadingView, bP as sendOnRampSuccessEvent, b4 as StatusType, bI as StatusView, bQ as sendOnRampFailedEvent } from './index-Bmee6BQu.js';
|
|
2
|
+
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-DYract5e.js';
|
|
3
|
+
import { S as SpendingCapHero } from './SpendingCapHero-DhVHklyQ.js';
|
|
4
4
|
|
|
5
5
|
function isNull(arg) {
|
|
6
6
|
return arg === null;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { _ as _objectWithoutProperties, j as jsx, aH as MultiTextShimmer, U as _defineProperty, x as useTheme, r as reactExports, z as merge, aI as getCaptionTextStyles, aJ as DEFAULT_BODY_PROPS, aK as baseTextComponentSx, aL as useConvertSxToEmotionStyles, aM as useGetCurrentSizeClass, aN as cloneElementWithCssProp, a4 as Environment, aO as BigNumber, aP as compareStr, Y as ViewContext, V as ViewActions, aQ as SalePaymentTypes, a7 as UserJourney, l as useTranslation, ak as calculateCryptoToFiat, a0 as useAnalytics, a2 as EventTargetContext, aR as sendSaleWidgetCloseEvent, aS as sendSaleSuccessEvent, aT as sendSaleFailedEvent, aU as sendSaleTransactionSuccessEvent, aV as sendSalePaymentMethodEvent, aW as sendSalePaymentTokenEvent, al as HeaderNavigation, q as jsxs, aX as LoadingOverlay, H as Box, aY as Fragment, ap as SimpleLayout, aZ as useHandover, a_ as HandoverTarget, a$ as getRemoteRive, au as Heading, b0 as HandoverDuration, a3 as isPassportProvider, a5 as MenuItem, b1 as motion, b2 as listVariants, b3 as listItemVariants, p as SharedViews, ao as FooterLogo, b4 as StatusType, b5 as prettyFormatNumber, a6 as tokenValueFormat, b6 as ShimmerCircle, Q as Button, b7 as Stack, b8 as FundingStepType, at as abbreviateWalletAddress, av as Drawer, b9 as Divider, ba as tokenSymbolNameOverrides, bb as ItemType, bc as TransactionOrGasType, bd as GasTokenType, be as RoutingOutcomeType, aa as isNativeToken, aj as getTokenImageByAddress, bf as isGasFree, $ as ConnectLoaderContext, bg as eventTargetReducer, bh as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bi as EventTargetActions, L as LoadingView, k as ChainId, bj as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bk as ConnectLoaderActions, w as ButtCon, Z as Body, bl as widgetTheme, aF as viewReducer, aG as initialViewState, bm 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 './TokenImage-
|
|
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 './retry-
|
|
1
|
+
import { _ as _objectWithoutProperties, j as jsx, aH as MultiTextShimmer, U as _defineProperty, x as useTheme, r as reactExports, z as merge, aI as getCaptionTextStyles, aJ as DEFAULT_BODY_PROPS, aK as baseTextComponentSx, aL as useConvertSxToEmotionStyles, aM as useGetCurrentSizeClass, aN as cloneElementWithCssProp, a4 as Environment, aO as BigNumber, aP as compareStr, Y as ViewContext, V as ViewActions, aQ as SalePaymentTypes, a7 as UserJourney, l as useTranslation, ak as calculateCryptoToFiat, a0 as useAnalytics, a2 as EventTargetContext, aR as sendSaleWidgetCloseEvent, aS as sendSaleSuccessEvent, aT as sendSaleFailedEvent, aU as sendSaleTransactionSuccessEvent, aV as sendSalePaymentMethodEvent, aW as sendSalePaymentTokenEvent, al as HeaderNavigation, q as jsxs, aX as LoadingOverlay, H as Box, aY as Fragment, ap as SimpleLayout, aZ as useHandover, a_ as HandoverTarget, a$ as getRemoteRive, au as Heading, b0 as HandoverDuration, a3 as isPassportProvider, a5 as MenuItem, b1 as motion, b2 as listVariants, b3 as listItemVariants, p as SharedViews, ao as FooterLogo, b4 as StatusType, b5 as prettyFormatNumber, a6 as tokenValueFormat, b6 as ShimmerCircle, Q as Button, b7 as Stack, b8 as FundingStepType, at as abbreviateWalletAddress, av as Drawer, b9 as Divider, ba as tokenSymbolNameOverrides, bb as ItemType, bc as TransactionOrGasType, bd as GasTokenType, be as RoutingOutcomeType, aa as isNativeToken, aj as getTokenImageByAddress, bf as isGasFree, $ as ConnectLoaderContext, bg as eventTargetReducer, bh as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bi as EventTargetActions, L as LoadingView, k as ChainId, bj as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bk as ConnectLoaderActions, w as ButtCon, Z as Body, bl as widgetTheme, aF as viewReducer, aG as initialViewState, bm as BlockExplorerService } from './index-Bmee6BQu.js';
|
|
2
|
+
import { C as Contract } from './EllipsizedText-C6MgsnsF.js';
|
|
3
|
+
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-0RBmaRcZ.js';
|
|
4
|
+
import { H as HandoverContent } from './HandoverContent-BtXtHcgP.js';
|
|
5
|
+
import { u as useMount, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-DYract5e.js';
|
|
6
|
+
import { T as TokenImage } from './TokenImage-Sx5G4tK5.js';
|
|
7
|
+
import { f as formatUnits } from './index-gevcMVii.js';
|
|
8
|
+
import { F as Fees } from './balance-CJY6sx_u.js';
|
|
9
|
+
import BridgeWidget from './BridgeWidget-DTvlyLxZ.js';
|
|
10
|
+
import SwapWidget from './SwapWidget-Bs_iFeA2.js';
|
|
11
|
+
import './SpendingCapHero-DhVHklyQ.js';
|
|
12
|
+
import './retry-BoFAiaA7.js';
|
|
13
13
|
|
|
14
14
|
var _excluded = ["size", "rc", "weight", "sx", "testId", "children", "domRef", "className"],
|
|
15
15
|
_excluded2 = ["size", "rc", "weight", "shimmer", "shimmerSx", "sx", "children", "domRef", "testId", "className"];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, az as heroBackGroundStyles, H as Box, aA as heroImageStyles, aB as heroImageBottomAlign, q as jsxs } from './index-
|
|
1
|
+
import { j as jsx, az as heroBackGroundStyles, H as Box, aA as heroImageStyles, aB as heroImageBottomAlign, q as jsxs } from './index-Bmee6BQu.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,10 +1,10 @@
|
|
|
1
|
-
import { l as useTranslation, bn as WidgetTheme, bo as getRemoteImage, q as jsxs, bp as quickswapFooterStyles, H as Box, bq as quickswapFooterLogoStyles, j as jsx, Z as Body, br as quickswapFooterDisclaimerTextStyles, r as reactExports, Q as Button, bs as getImxTokenImage, av as Drawer, bt as CloudImage, au as Heading, bu as Logo, bv as Icon, aO as BigNumber, ak as calculateCryptoToFiat, a6 as tokenValueFormat, bf as isGasFree, a1 as formatZeroAmount, $ as ConnectLoaderContext, bw as getDefaultTokenImage, aa as isNativeToken, bx as NATIVE, Y as ViewContext, a0 as useAnalytics, by as DEFAULT_QUOTE_REFRESH_INTERVAL, a3 as isPassportProvider, bz as amountInputValidation, bA as Tooltip, a7 as UserJourney, a4 as Environment, V as ViewActions, p as SharedViews, h as getL2ChainId, aY as Fragment, bB as ESTIMATE_DEBOUNCE, bC as DEFAULT_TOKEN_VALIDATION_DECIMALS, bD as DEFAULT_TOKEN_DECIMALS, a2 as EventTargetContext, bE as sendSwapWidgetCloseEvent, a8 as orchestrationEvents, I as IMTBLWidgetEvents, al as HeaderNavigation, L as LoadingView, ap as SimpleLayout, bF as IMX_TOKEN_SYMBOL, ac as CheckoutErrorType, aC as SimpleTextBody, bG as FooterButton, aF as viewReducer, aG as initialViewState, X as TokenFilterTypes, ah as DEFAULT_BALANCE_RETRY_POLICY, bH as SwapDirection$1, bI as StatusView, bJ as sendSwapSuccessEvent, b4 as StatusType, bK as sendSwapFailedEvent, bL 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 './retry-
|
|
5
|
-
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-
|
|
6
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
7
|
-
import './TokenImage-
|
|
1
|
+
import { l as useTranslation, bn as WidgetTheme, bo as getRemoteImage, q as jsxs, bp as quickswapFooterStyles, H as Box, bq as quickswapFooterLogoStyles, j as jsx, Z as Body, br as quickswapFooterDisclaimerTextStyles, r as reactExports, Q as Button, bs as getImxTokenImage, av as Drawer, bt as CloudImage, au as Heading, bu as Logo, bv as Icon, aO as BigNumber, ak as calculateCryptoToFiat, a6 as tokenValueFormat, bf as isGasFree, a1 as formatZeroAmount, $ as ConnectLoaderContext, bw as getDefaultTokenImage, aa as isNativeToken, bx as NATIVE, Y as ViewContext, a0 as useAnalytics, by as DEFAULT_QUOTE_REFRESH_INTERVAL, a3 as isPassportProvider, bz as amountInputValidation, bA as Tooltip, a7 as UserJourney, a4 as Environment, V as ViewActions, p as SharedViews, h as getL2ChainId, aY as Fragment, bB as ESTIMATE_DEBOUNCE, bC as DEFAULT_TOKEN_VALIDATION_DECIMALS, bD as DEFAULT_TOKEN_DECIMALS, a2 as EventTargetContext, bE as sendSwapWidgetCloseEvent, a8 as orchestrationEvents, I as IMTBLWidgetEvents, al as HeaderNavigation, L as LoadingView, ap as SimpleLayout, bF as IMX_TOKEN_SYMBOL, ac as CheckoutErrorType, aC as SimpleTextBody, bG as FooterButton, aF as viewReducer, aG as initialViewState, X as TokenFilterTypes, ah as DEFAULT_BALANCE_RETRY_POLICY, bH as SwapDirection$1, bI as StatusView, bJ as sendSwapSuccessEvent, b4 as StatusType, bK as sendSwapFailedEvent, bL as sendSwapRejectedEvent, E as ErrorView } from './index-Bmee6BQu.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-CJY6sx_u.js';
|
|
3
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, S as SwapWidgetViews, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-DYract5e.js';
|
|
4
|
+
import { u as useInterval } from './retry-BoFAiaA7.js';
|
|
5
|
+
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-gevcMVii.js';
|
|
6
|
+
import { S as SpendingCapHero } from './SpendingCapHero-DhVHklyQ.js';
|
|
7
|
+
import './TokenImage-Sx5G4tK5.js';
|
|
8
8
|
|
|
9
9
|
function QuickswapFooter({ theme, environment }) {
|
|
10
10
|
const { t } = useTranslation();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, bw as getDefaultTokenImage, j as jsx } from './index-
|
|
1
|
+
import { r as reactExports, bw as getDefaultTokenImage, j as jsx } from './index-Bmee6BQu.js';
|
|
2
2
|
|
|
3
3
|
function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
|
|
4
4
|
const [error, setError] = reactExports.useState(false);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as reactExports, a4 as Environment, bR as axios, j as jsx, q as jsxs, as as isDualVariantIcon, a5 as MenuItem, H as Box, l as useTranslation, Y as ViewContext, a2 as EventTargetContext, a0 as useAnalytics, c9 as GasEstimateType, al as HeaderNavigation, au as Heading, Z as Body, ap as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, a8 as orchestrationEvents } from './index-
|
|
2
|
-
import { f as formatUnits } from './index-
|
|
1
|
+
import { r as reactExports, a4 as Environment, bR as axios, j as jsx, q as jsxs, as as isDualVariantIcon, a5 as MenuItem, H as Box, l as useTranslation, Y as ViewContext, a2 as EventTargetContext, a0 as useAnalytics, c9 as GasEstimateType, al as HeaderNavigation, au as Heading, Z as Body, ap as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, a8 as orchestrationEvents } from './index-Bmee6BQu.js';
|
|
2
|
+
import { f as formatUnits } from './index-gevcMVii.js';
|
|
3
3
|
|
|
4
4
|
var FiatSymbols;
|
|
5
5
|
(function (FiatSymbols) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { w as ButtCon, _ as _objectWithoutProperties, x as useTheme, y as getStartingSize, D as DEFAULT_BUTTON_SIZE, z as merge, r as reactExports, A as flattenChildren, j as jsx, F as isChildSubcomponent, G as SmartClone, H as Box, J as getResponsiveSx, K as BUTTON_SIZES, M as setDefaultSxBackgroundColor, N as ClassNames, Q as Button, R as ButtonIcon, T as ButtonLogo, U as _defineProperty, X as TokenFilterTypes, l as useTranslation, Y as ViewContext, q as jsxs, Z as Body, V as ViewActions, $ as ConnectLoaderContext, a0 as useAnalytics, a1 as formatZeroAmount, a2 as EventTargetContext, a3 as isPassportProvider, h as getL2ChainId, i as getL1ChainId, a4 as Environment, a5 as MenuItem, a6 as tokenValueFormat, a7 as UserJourney, a8 as orchestrationEvents, I as IMTBLWidgetEvents, a9 as ZERO_BALANCE_STRING, aa as isNativeToken, ab as sendNetworkSwitchEvent, ac as CheckoutErrorType, p as SharedViews, ad as NetworkFilterTypes, ae as sortNetworksCompareFn, af as FramedImage, ag as getChainImage, ah as DEFAULT_BALANCE_RETRY_POLICY, ai as sortTokensByAmount, aj as getTokenImageByAddress, ak as calculateCryptoToFiat, al as HeaderNavigation, am as ButtonNavigationStyles, an as sendWalletWidgetCloseEvent, ao as FooterLogo, ap as SimpleLayout, aq as WalletProviderName, ar as getWalletProviderNameByProvider, as as isDualVariantIcon, at as abbreviateWalletAddress, au as Heading, av as Drawer, aw as useWalletConnect, ax as sendDisconnectWalletEvent, ay as isWalletConnectProvider, az as heroBackGroundStyles, aA as heroImageStyles, aB as heroImageBottomAlign, aC as SimpleTextBody, aD as FAQS_LINK, aE as Link, aF as viewReducer, aG as initialViewState, L as LoadingView, E as ErrorView } from './index-
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider, T as TopUpView } from './TopUpView-
|
|
3
|
-
import { T as TokenImage } from './TokenImage-
|
|
4
|
-
import { r as retry, u as useInterval } from './retry-
|
|
5
|
-
import './index-
|
|
1
|
+
import { w as ButtCon, _ as _objectWithoutProperties, x as useTheme, y as getStartingSize, D as DEFAULT_BUTTON_SIZE, z as merge, r as reactExports, A as flattenChildren, j as jsx, F as isChildSubcomponent, G as SmartClone, H as Box, J as getResponsiveSx, K as BUTTON_SIZES, M as setDefaultSxBackgroundColor, N as ClassNames, Q as Button, R as ButtonIcon, T as ButtonLogo, U as _defineProperty, X as TokenFilterTypes, l as useTranslation, Y as ViewContext, q as jsxs, Z as Body, V as ViewActions, $ as ConnectLoaderContext, a0 as useAnalytics, a1 as formatZeroAmount, a2 as EventTargetContext, a3 as isPassportProvider, h as getL2ChainId, i as getL1ChainId, a4 as Environment, a5 as MenuItem, a6 as tokenValueFormat, a7 as UserJourney, a8 as orchestrationEvents, I as IMTBLWidgetEvents, a9 as ZERO_BALANCE_STRING, aa as isNativeToken, ab as sendNetworkSwitchEvent, ac as CheckoutErrorType, p as SharedViews, ad as NetworkFilterTypes, ae as sortNetworksCompareFn, af as FramedImage, ag as getChainImage, ah as DEFAULT_BALANCE_RETRY_POLICY, ai as sortTokensByAmount, aj as getTokenImageByAddress, ak as calculateCryptoToFiat, al as HeaderNavigation, am as ButtonNavigationStyles, an as sendWalletWidgetCloseEvent, ao as FooterLogo, ap as SimpleLayout, aq as WalletProviderName, ar as getWalletProviderNameByProvider, as as isDualVariantIcon, at as abbreviateWalletAddress, au as Heading, av as Drawer, aw as useWalletConnect, ax as sendDisconnectWalletEvent, ay as isWalletConnectProvider, az as heroBackGroundStyles, aA as heroImageStyles, aB as heroImageBottomAlign, aC as SimpleTextBody, aD as FAQS_LINK, aE as Link, aF as viewReducer, aG as initialViewState, L as LoadingView, E as ErrorView } from './index-Bmee6BQu.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider, T as TopUpView } from './TopUpView-DYract5e.js';
|
|
3
|
+
import { T as TokenImage } from './TokenImage-Sx5G4tK5.js';
|
|
4
|
+
import { r as retry, u as useInterval } from './retry-BoFAiaA7.js';
|
|
5
|
+
import './index-gevcMVii.js';
|
|
6
6
|
|
|
7
7
|
var horizontalMenuSxProps = {
|
|
8
8
|
justifyContent: "stretch",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cp as hFlex, j as jsx, b1 as motion, _ as _objectWithoutProperties, x as useTheme, r as reactExports, cq as _slicedToArray, cr as useGetSubcomponentChild, z as merge, q as jsxs, cs as BaseClickable, w as ButtCon, G as SmartClone, ct as AnimatePresence, H as Box, b7 as Stack, N as ClassNames, U as _defineProperty, cu as getTertiaryButtonStyles, A as flattenChildren, F as isChildSubcomponent, b9 as Divider, l as useTranslation, bo as getRemoteImage, a4 as Environment, c5 as getChainNameById, i as getL1ChainId, ay as isWalletConnectProvider, c7 as isMetaMaskProvider, bt as CloudImage, au as Heading, Z as Body, Q as Button, ao as FooterLogo, av as Drawer, a5 as MenuItem, cv as Select, cw as FormControlWrapper, bn as WidgetTheme, cx as TextInput, cy as PriceDisplay, aY as Fragment, a6 as tokenValueFormat, a1 as formatZeroAmount, bT as ShimmerBox, cz as DuoCon, az as heroBackGroundStyles, aA as heroImageStyles, aB as heroImageBottomAlign, bx as NATIVE, aj as getTokenImageByAddress, aa as isNativeToken, ah as DEFAULT_BALANCE_RETRY_POLICY } from './index-
|
|
2
|
-
import { T as TokenImage } from './TokenImage-
|
|
3
|
-
import { r as retry } from './retry-
|
|
1
|
+
import { cp as hFlex, j as jsx, b1 as motion, _ as _objectWithoutProperties, x as useTheme, r as reactExports, cq as _slicedToArray, cr as useGetSubcomponentChild, z as merge, q as jsxs, cs as BaseClickable, w as ButtCon, G as SmartClone, ct as AnimatePresence, H as Box, b7 as Stack, N as ClassNames, U as _defineProperty, cu as getTertiaryButtonStyles, A as flattenChildren, F as isChildSubcomponent, b9 as Divider, l as useTranslation, bo as getRemoteImage, a4 as Environment, c5 as getChainNameById, i as getL1ChainId, ay as isWalletConnectProvider, c7 as isMetaMaskProvider, bt as CloudImage, au as Heading, Z as Body, Q as Button, ao as FooterLogo, av as Drawer, a5 as MenuItem, cv as Select, cw as FormControlWrapper, bn as WidgetTheme, cx as TextInput, cy as PriceDisplay, aY as Fragment, a6 as tokenValueFormat, a1 as formatZeroAmount, bT as ShimmerBox, cz as DuoCon, az as heroBackGroundStyles, aA as heroImageStyles, aB as heroImageBottomAlign, bx as NATIVE, aj as getTokenImageByAddress, aa as isNativeToken, ah as DEFAULT_BALANCE_RETRY_POLICY } from './index-Bmee6BQu.js';
|
|
2
|
+
import { T as TokenImage } from './TokenImage-Sx5G4tK5.js';
|
|
3
|
+
import { r as retry } from './retry-BoFAiaA7.js';
|
|
4
4
|
|
|
5
5
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dy as __awaiter, dz as __generator } from './index-
|
|
1
|
+
import { dy as __awaiter, dz as __generator } from './index-Bmee6BQu.js';
|
|
2
2
|
|
|
3
3
|
function loadLegacyVideoPlugins(analytics) {
|
|
4
4
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -7,7 +7,7 @@ function loadLegacyVideoPlugins(analytics) {
|
|
|
7
7
|
switch (_a.label) {
|
|
8
8
|
case 0: return [4 /*yield*/, import(
|
|
9
9
|
// @ts-expect-error
|
|
10
|
-
'./index.umd-
|
|
10
|
+
'./index.umd-DQNd4-iQ.js').then(function (n) { return n.i; })
|
|
11
11
|
// This is super gross, but we need to support the `window.analytics.plugins` namespace
|
|
12
12
|
// that is linked in the segment docs in order to be backwards compatible with ajs-classic
|
|
13
13
|
// @ts-expect-error
|
|
@@ -200298,7 +200298,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200298
200298
|
return __generator(this, function (_b) {
|
|
200299
200299
|
switch (_b.label) {
|
|
200300
200300
|
case 0: return [4 /*yield*/, import(
|
|
200301
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200301
|
+
/* webpackChunkName: "auto-track" */ './auto-track-BK4dbXDt.js')];
|
|
200302
200302
|
case 1:
|
|
200303
200303
|
autotrack = _b.sent();
|
|
200304
200304
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200317,7 +200317,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200317
200317
|
return __generator(this, function (_b) {
|
|
200318
200318
|
switch (_b.label) {
|
|
200319
200319
|
case 0: return [4 /*yield*/, import(
|
|
200320
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200320
|
+
/* webpackChunkName: "auto-track" */ './auto-track-BK4dbXDt.js')];
|
|
200321
200321
|
case 1:
|
|
200322
200322
|
autotrack = _b.sent();
|
|
200323
200323
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200336,7 +200336,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200336
200336
|
return __generator(this, function (_b) {
|
|
200337
200337
|
switch (_b.label) {
|
|
200338
200338
|
case 0: return [4 /*yield*/, import(
|
|
200339
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200339
|
+
/* webpackChunkName: "auto-track" */ './auto-track-BK4dbXDt.js')];
|
|
200340
200340
|
case 1:
|
|
200341
200341
|
autotrack = _b.sent();
|
|
200342
200342
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200355,7 +200355,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200355
200355
|
return __generator(this, function (_b) {
|
|
200356
200356
|
switch (_b.label) {
|
|
200357
200357
|
case 0: return [4 /*yield*/, import(
|
|
200358
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200358
|
+
/* webpackChunkName: "auto-track" */ './auto-track-BK4dbXDt.js')];
|
|
200359
200359
|
case 1:
|
|
200360
200360
|
autotrack = _b.sent();
|
|
200361
200361
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200505,7 +200505,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200505
200505
|
return [2 /*return*/, []];
|
|
200506
200506
|
}
|
|
200507
200507
|
return [4 /*yield*/, import(
|
|
200508
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
200508
|
+
/* webpackChunkName: "queryString" */ './index-CTcn0pxx.js')];
|
|
200509
200509
|
case 1:
|
|
200510
200510
|
queryString = (_a.sent()).queryString;
|
|
200511
200511
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -203209,7 +203209,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203209
203209
|
case 0:
|
|
203210
203210
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
203211
203211
|
return [4 /*yield*/, import(
|
|
203212
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
203212
|
+
/* webpackChunkName: "tsub-middleware" */ './index-GIKTAHjl.js').then(function (mod) {
|
|
203213
203213
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
203214
203214
|
})];
|
|
203215
203215
|
case 1:
|
|
@@ -203222,7 +203222,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203222
203222
|
tsubMiddleware = _d;
|
|
203223
203223
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
203224
203224
|
return [4 /*yield*/, import(
|
|
203225
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
203225
|
+
/* webpackChunkName: "ajs-destination" */ './index-CXk1vp_m.js').then(function (mod) {
|
|
203226
203226
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
203227
203227
|
})];
|
|
203228
203228
|
case 4:
|
|
@@ -203235,7 +203235,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203235
203235
|
legacyDestinations = _e;
|
|
203236
203236
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
203237
203237
|
return [4 /*yield*/, import(
|
|
203238
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
203238
|
+
/* webpackChunkName: "legacyVideos" */ './index-BcCKvORg.js').then(function (mod) {
|
|
203239
203239
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
203240
203240
|
})];
|
|
203241
203241
|
case 7:
|
|
@@ -203244,7 +203244,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203244
203244
|
case 8:
|
|
203245
203245
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
203246
203246
|
return [4 /*yield*/, import(
|
|
203247
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
203247
|
+
/* webpackChunkName: "schemaFilter" */ './index-B3RoSPel.js').then(function (mod) {
|
|
203248
203248
|
var _a;
|
|
203249
203249
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
203250
203250
|
})];
|
|
@@ -203283,7 +203283,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203283
203283
|
return enabled;
|
|
203284
203284
|
})) return [3 /*break*/, 17];
|
|
203285
203285
|
return [4 /*yield*/, import(
|
|
203286
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
203286
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-gMoTZxjb.js').then(function (_a) {
|
|
203287
203287
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
203288
203288
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203289
203289
|
var middleware, promises;
|
|
@@ -211443,7 +211443,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
211443
211443
|
|
|
211444
211444
|
const o=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T={state:o,subscribe(e){return subscribe(o,()=>e(o))},push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e));},reset(e){o.view=e,o.history=[e];},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e);},goBack(){if(o.history.length>1){o.history.pop();const[e]=o.history.slice(-1);o.view=e;}},setData(e){o.data=e;}},a$2={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$2.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$2.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$2.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$2.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$2.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$3={state:r,subscribe(e){return subscribe(r.events,()=>e(snapshot(r.events[r.events.length-1])))},initialize(){r.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r.connectedWalletId=e;},click(e){if(r.enabled){const t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}},track(e){if(r.enabled){const t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}},view(e){if(r.enabled){const t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}}},c$1=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$3={state:c$1,subscribe(e){return subscribe(c$1,()=>e(c$1))},setChains(e){c$1.chains=e;},setWalletConnectUri(e){c$1.walletConnectUri=e;},setIsCustomDesktop(e){c$1.isCustomDesktop=e;},setIsCustomMobile(e){c$1.isCustomMobile=e;},setIsDataLoaded(e){c$1.isDataLoaded=e;},setIsUiLoaded(e){c$1.isUiLoaded=e;},setIsAuth(e){c$1.isAuth=e;}},W$1=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$3={state:W$1,subscribe(e){return subscribe(W$1,()=>e(W$1))},setConfig(e){var t,s;R$3.initialize(),p$3.setChains(e.chains),p$3.setIsAuth(Boolean(e.enableAuthMode)),p$3.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$3.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$2.setModalVersionInStorage(),Object.assign(W$1,e);}};var V$2=Object.defineProperty,D$5=Object.getOwnPropertySymbols,H$2=Object.prototype.hasOwnProperty,B$2=Object.prototype.propertyIsEnumerable,M$2=(e,t,s)=>t in e?V$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$2=(e,t)=>{for(var s in t||(t={}))H$2.call(t,s)&&M$2(e,s,t[s]);if(D$5)for(var s of D$5(t))B$2.call(t,s)&&M$2(e,s,t[s]);return e};const L$3="https://explorer-api.walletconnect.com",E$3="wcm",O$4="js-2.6.2";async function w$4(e,t){const s=K$2({sdkType:E$3,sdkVersion:O$4},t),n=new URL(e,L$3);return n.searchParams.append("projectId",y$3.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$2={async getDesktopListings(e){return w$4("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$4("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$4("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$4("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$3}/w3m/v1/getWalletImage/${e}?projectId=${y$3.state.projectId}&sdkType=${E$3}&sdkVersion=${O$4}`},getAssetImageUrl(e){return `${L$3}/w3m/v1/getAssetImage/${e}?projectId=${y$3.state.projectId}&sdkType=${E$3}&sdkVersion=${O$4}`}};var z$2=Object.defineProperty,j$3=Object.getOwnPropertySymbols,J$2=Object.prototype.hasOwnProperty,q$2=Object.prototype.propertyIsEnumerable,k$2=(e,t,s)=>t in e?z$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$3=(e,t)=>{for(var s in t||(t={}))J$2.call(t,s)&&k$2(e,s,t[s]);if(j$3)for(var s of j$3(t))q$2.call(t,s)&&k$2(e,s,t[s]);return e};const N$3=a$2.isMobile(),d$2=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$2={state:d$2,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$3.state;if(e==="NONE"||t==="ALL"&&!e)return d$2.recomendedWallets;if(a$2.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$2.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$2.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$3.state,i=s?.join(","),l=a$2.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$2.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$2.getMobileListings(v):await m$2.getDesktopListings(v);d$2.recomendedWallets=Object.values(b);}return d$2.recomendedWallets},async getWallets(e){const t=F$3({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$3.state,{recomendedWallets:i}=d$2;if(n==="ALL")return d$2.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$2.isArray(s)&&(t.excludedIds=s.join(",")),a$2.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$3.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$2.getMobileListings(t):await m$2.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$2[U]={listings:[...d$2[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$2.getWalletImageUrl(e)},getAssetImageUrl(e){return m$2.getAssetImageUrl(e)},resetSearch(){d$2.search={listings:[],total:0,page:1};}},I$1=proxy({open:!1}),se={state:I$1,subscribe(e){return subscribe(I$1,()=>e(I$1))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$3.state;if(a$2.removeWalletConnectDeepLink(),p$3.setWalletConnectUri(e?.uri),p$3.setChains(e?.chains),T.reset("ConnectWallet"),s&&n)I$1.open=!0,t();else {const i=setInterval(()=>{const l=p$3.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$1.open=!0,t());},200);}})},close(){I$1.open=!1;}};var G$2=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$4=Object.prototype.hasOwnProperty,X$2=Object.prototype.propertyIsEnumerable,S$3=(e,t,s)=>t in e?G$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y=(e,t)=>{for(var s in t||(t={}))Q$4.call(t,s)&&S$3(e,s,t[s]);if($$3)for(var s of $$3(t))X$2.call(t,s)&&S$3(e,s,t[s]);return e};function Z$2(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C=proxy({themeMode:Z$2()?"dark":"light"}),ne={state:C,subscribe(e){return subscribe(C,()=>e(C))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C.themeMode=t),s&&(C.themeVariables=Y({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$2={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
|
|
211445
211445
|
|
|
211446
|
-
let d$1 = class d{constructor(e){this.openModal=se.open,this.closeModal=se.close,this.subscribeModal=se.subscribe,this.setTheme=ne.setThemeConfig,ne.setThemeConfig(e),y$3.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
211446
|
+
let d$1 = class d{constructor(e){this.openModal=se.open,this.closeModal=se.close,this.subscribeModal=se.subscribe,this.setTheme=ne.setThemeConfig,ne.setThemeConfig(e),y$3.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-eynirHSx.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$3.setIsUiLoaded(!0);}}};
|
|
211447
211447
|
|
|
211448
211448
|
var index = /*#__PURE__*/Object.freeze({
|
|
211449
211449
|
__proto__: null,
|
|
@@ -224460,7 +224460,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
224460
224460
|
: serviceUnavailableView) }));
|
|
224461
224461
|
}
|
|
224462
224462
|
|
|
224463
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
224463
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-Bs_iFeA2.js'));
|
|
224464
224464
|
class Swap extends Base {
|
|
224465
224465
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
224466
224466
|
getValidatedProperties({ config }) {
|
|
@@ -224587,7 +224587,7 @@ const sendOnRampFailedEvent = (eventTarget, reason) => {
|
|
|
224587
224587
|
eventTarget.dispatchEvent(failedEvent);
|
|
224588
224588
|
};
|
|
224589
224589
|
|
|
224590
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
224590
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-0RBmaRcZ.js').then(function (n) { return n.a; }));
|
|
224591
224591
|
class OnRamp extends Base {
|
|
224592
224592
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
224593
224593
|
getValidatedProperties({ config }) {
|
|
@@ -224676,7 +224676,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
224676
224676
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
224677
224677
|
}
|
|
224678
224678
|
|
|
224679
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
224679
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-wWcqVtjZ.js'));
|
|
224680
224680
|
class Wallet extends Base {
|
|
224681
224681
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
224682
224682
|
getValidatedProperties({ config }) {
|
|
@@ -224818,7 +224818,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
224818
224818
|
eventTarget.dispatchEvent(event);
|
|
224819
224819
|
};
|
|
224820
224820
|
|
|
224821
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
224821
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-DkvLlPHN.js'));
|
|
224822
224822
|
class Sale extends Base {
|
|
224823
224823
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
224824
224824
|
// TODO: add specific validation logic for the sale items
|
|
@@ -224909,7 +224909,7 @@ class Sale extends Base {
|
|
|
224909
224909
|
}
|
|
224910
224910
|
}
|
|
224911
224911
|
|
|
224912
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
224912
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-DTvlyLxZ.js'));
|
|
224913
224913
|
class Bridge extends Base {
|
|
224914
224914
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
224915
224915
|
getValidatedProperties({ config }) {
|
|
@@ -224977,7 +224977,7 @@ const checkoutFlows = [
|
|
|
224977
224977
|
CheckoutFlowType.ADD_FUNDS,
|
|
224978
224978
|
];
|
|
224979
224979
|
|
|
224980
|
-
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-
|
|
224980
|
+
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-bXv--QFk.js'));
|
|
224981
224981
|
class CheckoutWidgetRoot extends Base {
|
|
224982
224982
|
eventTopic = IMTBLWidgetEvents.IMTBL_CHECKOUT_WIDGET_EVENT;
|
|
224983
224983
|
getValidatedProperties({ config, }) {
|
|
@@ -225164,7 +225164,7 @@ function sendAddFundsCloseEvent(eventTarget) {
|
|
|
225164
225164
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
225165
225165
|
}
|
|
225166
225166
|
|
|
225167
|
-
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-
|
|
225167
|
+
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-Cws7mund.js'));
|
|
225168
225168
|
class AddFunds extends Base {
|
|
225169
225169
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_FUNDS_WIDGET_EVENT;
|
|
225170
225170
|
getValidatedProperties({ config, }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dy as __awaiter, dz as __generator, dA as loadScript, dB as getNextIntegrationsURL, dC as unloadScript, dD as __spreadArray, dE as isOffline, dF as __assign, dG as ContextCancelation, dH as applyDestinationMiddleware, dI as dist, dJ as isServer, dK as mergedOptions, dL as isPlainObject, dM as pWhile, dN as PriorityQueue, dO as PersistedPriorityQueue, dP as attempt, dQ as isOnline, dR as Context } from './index-
|
|
1
|
+
import { dy as __awaiter, dz as __generator, dA as loadScript, dB as getNextIntegrationsURL, dC as unloadScript, dD as __spreadArray, dE as isOffline, dF as __assign, dG as ContextCancelation, dH as applyDestinationMiddleware, dI as dist, dJ as isServer, dK as mergedOptions, dL as isPlainObject, dM as pWhile, dN as PriorityQueue, dO as PersistedPriorityQueue, dP as attempt, dQ as isOnline, dR as Context } from './index-Bmee6BQu.js';
|
|
2
2
|
import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
|
|
3
3
|
|
|
4
4
|
function normalizeName(name) {
|