@imtbl/sdk 1.52.0-alpha.7 → 1.52.0
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-Bfy9sBmS.js → blockchain_data-T7u5Hp0U.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-DYvIbSpf.js → AddFundsWidget-DuG1OWEM.js} +2 -2
- package/dist/browser/checkout/{BridgeWidget-Ducey2Qb.js → BridgeWidget-2D-8F1Vq.js} +5 -5
- package/dist/browser/checkout/{CheckoutWidget-Bm21igSK.js → CheckoutWidget-Bvnur5WZ.js} +35 -81
- package/dist/browser/checkout/{OnRampWidget-Bskz5dvQ.js → OnRampWidget-B4UV_TYW.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CODqfTXu.js → SaleWidget-BQMUaWlZ.js} +9 -9
- package/dist/browser/checkout/{SpendingCapHero-TQELr3m8.js → SpendingCapHero-BsQQYO_D.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-CMigrs6K.js → SwapWidget-BK7sTJ6u.js} +6 -6
- package/dist/browser/checkout/{TextInputForm-l8DyF_CE.js → TextInputForm-Cy6sTMjr.js} +1 -1
- package/dist/browser/checkout/{TopUpView-BERpFjSs.js → TopUpView-Dw-JH0Q5.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-BXZ8UMXT.js → WalletWidget-t6i1V-G5.js} +3 -3
- package/dist/browser/checkout/{auto-track-C604xUIn.js → auto-track-CMv29U8a.js} +1 -1
- package/dist/browser/checkout/{balance-BuRFeSlx.js → balance-Dt4oB1G1.js} +2 -2
- package/dist/browser/checkout/{index-sv2_fFWL.js → index-5qc7Vsg4.js} +23 -39
- package/dist/browser/checkout/{index-BxvlPyBl.js → index-BRzBLTux.js} +1 -1
- package/dist/browser/checkout/{index-Dp6ibrrF.js → index-CMBbtkDe.js} +1 -1
- package/dist/browser/checkout/{index-WM-Cqghk.js → index-D2zks65E.js} +2 -2
- package/dist/browser/checkout/{index-BokPdkpz.js → index-D4zR0DRy.js} +1 -1
- package/dist/browser/checkout/{index-Cg3GZSNN.js → index-DmXFGYTM.js} +1 -1
- package/dist/browser/checkout/{index-DH5zrdkC.js → index-DwTyassh.js} +1 -1
- package/dist/browser/checkout/{index-C2PsonPG.js → index-Zraoakam.js} +1 -1
- package/dist/browser/checkout/{index.umd-BI7Sc7k9.js → index.umd-CCwq6cRd.js} +1 -1
- package/dist/browser/checkout/{retry-e3i6ZAF9.js → retry-C_l6vh-l.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 +39 -101
- package/dist/{checkout-XO0m_Ikr.js → checkout-DxDRj3k-.js} +5 -6
- package/dist/checkout.d.ts +1 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-giBl4a2t.js → config-Dj7PQqL4.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BOL8TjPV.js → index-1bjDCdo5.js} +4 -4
- package/dist/{index-HXaEn9Bo.js → index-8m8-bJcZ.js} +1 -1
- package/dist/{index-BMc4mVaX.js → index-BxF866Mh.js} +1 -1
- package/dist/{index-CRoRRQvZ.js → index-D4eU2e1C.js} +1 -1
- package/dist/{index-B2AUzXVq.js → index-XxjQ6oVx.js} +3 -3
- package/dist/{index-DMQ37tO2.js → index-snMwBaY-.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +7 -8
- package/dist/index.d.ts +1 -5
- package/dist/index.js +14 -14
- package/dist/{minting_backend-D4IArOV9.js → minting_backend-DfBB5ptf.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-C2xW5rm9.js → orderbook-CnmzmGtG.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-3KXUZvui.js → passport-B8WhzCZf.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-CaTLC_sP.js → webhook-DzAoMhRT.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-Bo323lW9.js → x-DbbHwlbW.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-XxjQ6oVx.js';
|
|
2
|
+
import { i as index } from './index-snMwBaY-.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-XxjQ6oVx.js';
|
|
2
|
+
export { i as Types } from './index-snMwBaY-.js';
|
|
3
|
+
import './index-8m8-bJcZ.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'lru-memorise';
|
|
6
6
|
import 'global-const';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as reactExports, l as useTranslation, n as jsxs, j as jsx, M as MenuItem, aG as motion, aH as listVariants, aI as listItemVariants, a as Box, a7 as Drawer, V as ViewContext, E as EventTargetContext, p as ViewActions, K as SharedViews, Y as HeaderNavigation, bh as amountInputValidation, o as Body, cK as OverflowPopoverMenu, a2 as SimpleLayout, T as TokenFilterTypes, x as getL2ChainId, F as orchestrationEvents, I as IMTBLWidgetEvents, cL as commonjsGlobal, cM as requireSecp256k1$1, cN as requireLib_commonjs, cO as require$$0$3, cP as requireDist$1, cQ as bech32$2, cR as bnExports$1, cS as require$$0$4, cT as getAugmentedNamespace, cU as require$$0$5, cV as minimalisticAssert, cW as require$$2, cX as hash$6, ah as viewReducer, ai as initialViewState, t as useAnalytics, cY as sendAddFundsCloseEvent, cZ as sendAddFundsGoBackEvent, ak as ErrorView, U as UserJourney } from './index-
|
|
2
|
-
import { T as TextInputForm } from './TextInputForm-
|
|
1
|
+
import { r as reactExports, l as useTranslation, n as jsxs, j as jsx, M as MenuItem, aG as motion, aH as listVariants, aI as listItemVariants, a as Box, a7 as Drawer, V as ViewContext, E as EventTargetContext, p as ViewActions, K as SharedViews, Y as HeaderNavigation, bh as amountInputValidation, o as Body, cK as OverflowPopoverMenu, a2 as SimpleLayout, T as TokenFilterTypes, x as getL2ChainId, F as orchestrationEvents, I as IMTBLWidgetEvents, cL as commonjsGlobal, cM as requireSecp256k1$1, cN as requireLib_commonjs, cO as require$$0$3, cP as requireDist$1, cQ as bech32$2, cR as bnExports$1, cS as require$$0$4, cT as getAugmentedNamespace, cU as require$$0$5, cV as minimalisticAssert, cW as require$$2, cX as hash$6, ah as viewReducer, ai as initialViewState, t as useAnalytics, cY as sendAddFundsCloseEvent, cZ as sendAddFundsGoBackEvent, ak as ErrorView, U as UserJourney } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { T as TextInputForm } from './TextInputForm-Cy6sTMjr.js';
|
|
3
3
|
|
|
4
4
|
const initialAddFundsState = {
|
|
5
5
|
checkout: null,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { bz as axios, bA as defineReadOnly, bB as getStatic, bC as Signer, bD as Provider, bE as getAddress, bF as Logger, bG as getContractAddress, bH as Interface, bI as shallowCopy, bJ as VoidSigner, bK as Indexed, bL as deepCopy, bM as isHexString, bN as checkResultErrors, bO as resolveProperties, ar as BigNumber, bP as accessListify, bQ as arrayify, j as jsx, _ as _objectWithoutProperties, ap as cloneElementWithCssProp, o as Body, k as _defineProperty, J as CheckoutErrorType, bR as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, b0 as BridgeEventType, n as jsxs, bS as ShimmerBox, M as MenuItem, aL as Stack, l as useTranslation, d as Button, a as Box, bT as PASSPORT_URL, ag as Link, bU as getChainIdBySlug, P as getChainImage, bV as networkName, O as FramedImage, bd as Icon, t as useAnalytics, U as UserJourney, aN as Divider, V as ViewContext, aB as Fragment, p as ViewActions, a8 as useWalletConnect, aa as isWalletConnectProvider, bc as Logo, bW as RawImage, bX as AXELAR_SCAN_URL, G as isNativeToken, W as getTokenImageByAddress, bY as getNativeSymbolByChainSlug, X as calculateCryptoToFiat, E as EventTargetContext, w as isPassportProvider, y as getL1ChainId, T as TokenFilterTypes, x as getL2ChainId, bZ as WalletProviderRdns, b_ as Web3Provider, b$ as useInjectedProviders, Y as HeaderNavigation, a1 as FooterLogo, c0 as WalletDrawer, a2 as SimpleLayout, c1 as getChainSlugById, c2 as JsonRpcProvider, c3 as DEFAULT_TRANSACTIONS_RETRY_POLICY, aj as LoadingView, aX as ChainId, c4 as getChainNameById, u as useTheme, a6 as Heading, a4 as getWalletProviderNameByProvider, c5 as isAddressSanctioned, K as SharedViews, c6 as isMetaMaskProvider, a3 as WalletProviderName, a7 as Drawer, B as ButtCon, $ as ButtonNavigationStyles, A as tokenValueFormat, v as formatZeroAmount, bf as NATIVE, bh as amountInputValidation, b6 as getRemoteImage, bb as CloudImage, c7 as ETH_TOKEN_SYMBOL, z as Environment, c8 as GasEstimateType, bl as DEFAULT_TOKEN_DECIMALS, bg as DEFAULT_QUOTE_REFRESH_INTERVAL, c9 as addChainChangedListener, ca as removeChainChangedListener, bn as IMX_TOKEN_SYMBOL, cb as dist, cc as CHECKOUT_CDN_BASE_URL, ab as heroBackGroundStyles, ac as heroImageStyles, cd as Badge, ae as SimpleTextBody, bo as FooterButton, ce as getEthTokenImage, cf as WITHDRAWAL_CLAIM_GAS_LIMIT, be as getDefaultTokenImage, ah as viewReducer, ai as initialViewState, cg as BridgeConfiguration, ch as ImmutableConfiguration, ci as TokenBridge, bq as StatusView, aJ as StatusType, ak 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, f as formatUnits, a as CryptoFiatActions, p as parseUnits, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
3
|
-
import { T as TokenImage, r as retry, u as useInterval } from './retry-
|
|
4
|
-
import { A as Accordion, S as SelectForm, T as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './balance-
|
|
5
|
-
import { T as TextInputForm } from './TextInputForm-
|
|
1
|
+
import { bz as axios, bA as defineReadOnly, bB as getStatic, bC as Signer, bD as Provider, bE as getAddress, bF as Logger, bG as getContractAddress, bH as Interface, bI as shallowCopy, bJ as VoidSigner, bK as Indexed, bL as deepCopy, bM as isHexString, bN as checkResultErrors, bO as resolveProperties, ar as BigNumber, bP as accessListify, bQ as arrayify, j as jsx, _ as _objectWithoutProperties, ap as cloneElementWithCssProp, o as Body, k as _defineProperty, J as CheckoutErrorType, bR as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, b0 as BridgeEventType, n as jsxs, bS as ShimmerBox, M as MenuItem, aL as Stack, l as useTranslation, d as Button, a as Box, bT as PASSPORT_URL, ag as Link, bU as getChainIdBySlug, P as getChainImage, bV as networkName, O as FramedImage, bd as Icon, t as useAnalytics, U as UserJourney, aN as Divider, V as ViewContext, aB as Fragment, p as ViewActions, a8 as useWalletConnect, aa as isWalletConnectProvider, bc as Logo, bW as RawImage, bX as AXELAR_SCAN_URL, G as isNativeToken, W as getTokenImageByAddress, bY as getNativeSymbolByChainSlug, X as calculateCryptoToFiat, E as EventTargetContext, w as isPassportProvider, y as getL1ChainId, T as TokenFilterTypes, x as getL2ChainId, bZ as WalletProviderRdns, b_ as Web3Provider, b$ as useInjectedProviders, Y as HeaderNavigation, a1 as FooterLogo, c0 as WalletDrawer, a2 as SimpleLayout, c1 as getChainSlugById, c2 as JsonRpcProvider, c3 as DEFAULT_TRANSACTIONS_RETRY_POLICY, aj as LoadingView, aX as ChainId, c4 as getChainNameById, u as useTheme, a6 as Heading, a4 as getWalletProviderNameByProvider, c5 as isAddressSanctioned, K as SharedViews, c6 as isMetaMaskProvider, a3 as WalletProviderName, a7 as Drawer, B as ButtCon, $ as ButtonNavigationStyles, A as tokenValueFormat, v as formatZeroAmount, bf as NATIVE, bh as amountInputValidation, b6 as getRemoteImage, bb as CloudImage, c7 as ETH_TOKEN_SYMBOL, z as Environment, c8 as GasEstimateType, bl as DEFAULT_TOKEN_DECIMALS, bg as DEFAULT_QUOTE_REFRESH_INTERVAL, c9 as addChainChangedListener, ca as removeChainChangedListener, bn as IMX_TOKEN_SYMBOL, cb as dist, cc as CHECKOUT_CDN_BASE_URL, ab as heroBackGroundStyles, ac as heroImageStyles, cd as Badge, ae as SimpleTextBody, bo as FooterButton, ce as getEthTokenImage, cf as WITHDRAWAL_CLAIM_GAS_LIMIT, be as getDefaultTokenImage, ah as viewReducer, ai as initialViewState, cg as BridgeConfiguration, ch as ImmutableConfiguration, ci as TokenBridge, bq as StatusView, aJ as StatusType, ak 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-5qc7Vsg4.js';
|
|
2
|
+
import { B as BridgeWidgetViews, C as CryptoFiatContext, f as formatUnits, a as CryptoFiatActions, p as parseUnits, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-Dw-JH0Q5.js';
|
|
3
|
+
import { T as TokenImage, r as retry, u as useInterval } from './retry-C_l6vh-l.js';
|
|
4
|
+
import { A as Accordion, S as SelectForm, T as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './balance-Dt4oB1G1.js';
|
|
5
|
+
import { T as TextInputForm } from './TextInputForm-Cy6sTMjr.js';
|
|
6
6
|
|
|
7
7
|
// This module is intended to unwrap Axios default export as named.
|
|
8
8
|
// Keep top-level export same with static properties
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, cD as PostMessageHandler, j as jsx, I as IMTBLWidgetEvents, E as EventTargetContext, cE as PostMessageHandlerEventType, cF as CheckoutEventType, cG as CheckoutSuccessEventType, b_ as Web3Provider, l as useTranslation, ak as ErrorView, n as jsxs, aj as LoadingView, a as Box, aB as Fragment, z as Environment, cH as CHECKOUT_APP_URL, cI as CheckoutFlowType, cJ as ENV_DEVELOPMENT } from './index-
|
|
1
|
+
import { r as reactExports, cD as PostMessageHandler, j as jsx, I as IMTBLWidgetEvents, E as EventTargetContext, cE as PostMessageHandlerEventType, cF as CheckoutEventType, cG as CheckoutSuccessEventType, b_ as Web3Provider, l as useTranslation, ak as ErrorView, n as jsxs, aj as LoadingView, a as Box, aB as Fragment, z as Environment, cH as CHECKOUT_APP_URL, cI as CheckoutFlowType, cJ as ENV_DEVELOPMENT } from './index-5qc7Vsg4.js';
|
|
2
2
|
|
|
3
3
|
const initialCheckoutState = {
|
|
4
4
|
checkout: null,
|
|
@@ -175,8 +175,6 @@ function useEip6963Relayer() {
|
|
|
175
175
|
postMessageHandler?.send(PostMessageHandlerEventType.EIP_6963_EVENT, {
|
|
176
176
|
message: 'eip6963:announceProvider',
|
|
177
177
|
info: event.detail.info,
|
|
178
|
-
isPassport: event.detail.provider?.isPassport,
|
|
179
|
-
isMetamask: event.detail.provider?.isMetamask,
|
|
180
178
|
});
|
|
181
179
|
}, [postMessageHandler]);
|
|
182
180
|
reactExports.useEffect(() => {
|
|
@@ -202,11 +200,6 @@ function useEip6963Relayer() {
|
|
|
202
200
|
}, [postMessageHandler, onRequest]);
|
|
203
201
|
}
|
|
204
202
|
|
|
205
|
-
var ConnectMethods;
|
|
206
|
-
(function (ConnectMethods) {
|
|
207
|
-
ConnectMethods["REQUEST_ACCOUNTS"] = "eth_requestAccounts";
|
|
208
|
-
ConnectMethods["REQUEST_PERMISSIONS"] = "wallet_requestPermissions";
|
|
209
|
-
})(ConnectMethods || (ConnectMethods = {}));
|
|
210
203
|
function useProviderRelay() {
|
|
211
204
|
const [{ checkout, postMessageHandler, provider }, checkoutDispatch] = useCheckoutContext();
|
|
212
205
|
const unsubscribePostMessageHandler = reactExports.useRef();
|
|
@@ -233,7 +226,11 @@ function useProviderRelay() {
|
|
|
233
226
|
});
|
|
234
227
|
}
|
|
235
228
|
catch (error) {
|
|
236
|
-
|
|
229
|
+
// Send the error using the postMessageHandler
|
|
230
|
+
postMessageHandler.send(PostMessageHandlerEventType.PROVIDER_RELAY, {
|
|
231
|
+
response: { id: payload.jsonRpcRequestMessage.id, error: error.message, jsonrpc: '2.0' },
|
|
232
|
+
eip6963Info: payload.eip6963Info,
|
|
233
|
+
});
|
|
237
234
|
}
|
|
238
235
|
}, [postMessageHandler]);
|
|
239
236
|
/**
|
|
@@ -252,25 +249,26 @@ function useProviderRelay() {
|
|
|
252
249
|
console.error('PARENT - requested provider not found', providerRelayPayload?.eip6963Info, injectedProviders);
|
|
253
250
|
return;
|
|
254
251
|
}
|
|
252
|
+
// If provider is not defined, connect the target provider
|
|
255
253
|
let currentProvider = provider;
|
|
256
|
-
// If provider is not defined, create a provider
|
|
257
254
|
if (!currentProvider && targetProvider) {
|
|
258
|
-
|
|
255
|
+
const connectResponse = await checkout.connect({
|
|
256
|
+
provider: new Web3Provider(targetProvider.provider),
|
|
257
|
+
});
|
|
258
|
+
currentProvider = connectResponse.provider;
|
|
259
|
+
// Set provider and execute the request
|
|
260
|
+
checkoutDispatch({
|
|
261
|
+
payload: {
|
|
262
|
+
type: CheckoutActions.SET_PROVIDER,
|
|
263
|
+
provider: currentProvider,
|
|
264
|
+
},
|
|
265
|
+
});
|
|
259
266
|
}
|
|
260
267
|
if (!currentProvider) {
|
|
261
268
|
throw new Error('Provider is not defined');
|
|
262
269
|
}
|
|
263
270
|
try {
|
|
264
271
|
await execute(providerRelayPayload, currentProvider);
|
|
265
|
-
if (providerRelayPayload.jsonRpcRequestMessage.method === ConnectMethods.REQUEST_ACCOUNTS
|
|
266
|
-
|| providerRelayPayload.jsonRpcRequestMessage.method === ConnectMethods.REQUEST_PERMISSIONS) {
|
|
267
|
-
checkoutDispatch({
|
|
268
|
-
payload: {
|
|
269
|
-
type: CheckoutActions.SET_PROVIDER,
|
|
270
|
-
provider: currentProvider,
|
|
271
|
-
},
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
272
|
}
|
|
275
273
|
catch (error) {
|
|
276
274
|
// Send the error using the postMessageHandler
|
|
@@ -284,12 +282,16 @@ function useProviderRelay() {
|
|
|
284
282
|
* Subscribe to provider relay messages
|
|
285
283
|
*/
|
|
286
284
|
reactExports.useEffect(() => {
|
|
285
|
+
// TODO we need to unsubscribe everywhere
|
|
287
286
|
if (!postMessageHandler)
|
|
288
287
|
return;
|
|
289
288
|
unsubscribePostMessageHandler.current?.();
|
|
290
289
|
unsubscribePostMessageHandler.current = postMessageHandler?.subscribe(onJsonRpcRequestMessage);
|
|
291
290
|
}, [postMessageHandler, onJsonRpcRequestMessage]);
|
|
292
291
|
}
|
|
292
|
+
// TODO -
|
|
293
|
+
// 1 - commit the unsub part
|
|
294
|
+
// 2 - add unsubs to all postMessageHandlers subscriptions
|
|
293
295
|
|
|
294
296
|
/**
|
|
295
297
|
* The timeout in milliseconds for the iframe to be initialized.
|
|
@@ -314,20 +316,6 @@ const IFRAME_ALLOW_PERMISSIONS = `
|
|
|
314
316
|
.trim()
|
|
315
317
|
.replace(/\n/g, '');
|
|
316
318
|
|
|
317
|
-
function useWidgetProviderEventRelayer() {
|
|
318
|
-
const [checkoutState] = useCheckoutContext();
|
|
319
|
-
const { postMessageHandler } = checkoutState;
|
|
320
|
-
const onWidgetProviderEvent = reactExports.useCallback(() => {
|
|
321
|
-
postMessageHandler?.send(PostMessageHandlerEventType.WIDGET_PROVIDER_EVENT, {});
|
|
322
|
-
}, [postMessageHandler]);
|
|
323
|
-
reactExports.useEffect(() => {
|
|
324
|
-
if (!postMessageHandler)
|
|
325
|
-
return () => { };
|
|
326
|
-
window.addEventListener(PostMessageHandlerEventType.WIDGET_PROVIDER_EVENT, onWidgetProviderEvent);
|
|
327
|
-
return () => window.removeEventListener(PostMessageHandlerEventType.WIDGET_PROVIDER_EVENT, onWidgetProviderEvent);
|
|
328
|
-
}, [postMessageHandler, onWidgetProviderEvent]);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
319
|
function CheckoutAppIframe() {
|
|
332
320
|
const { t } = useTranslation();
|
|
333
321
|
const iframeRef = reactExports.useRef(null);
|
|
@@ -338,7 +326,6 @@ function CheckoutAppIframe() {
|
|
|
338
326
|
useCheckoutEventsRelayer();
|
|
339
327
|
useEip6963Relayer();
|
|
340
328
|
useProviderRelay();
|
|
341
|
-
useWidgetProviderEventRelayer();
|
|
342
329
|
const loading = !iframeURL || !iframeContentWindow || !initialised;
|
|
343
330
|
const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
|
|
344
331
|
reactExports.useEffect(() => {
|
|
@@ -386,21 +373,6 @@ function CheckoutAppIframe() {
|
|
|
386
373
|
} }))] }));
|
|
387
374
|
}
|
|
388
375
|
|
|
389
|
-
/**
|
|
390
|
-
* Encodes a JSON object using base64 encoding.
|
|
391
|
-
*/
|
|
392
|
-
const encodeObject = async (value) => {
|
|
393
|
-
try {
|
|
394
|
-
const str = JSON.stringify(value);
|
|
395
|
-
const base64String = btoa(str);
|
|
396
|
-
return encodeURIComponent(base64String);
|
|
397
|
-
}
|
|
398
|
-
catch (error) {
|
|
399
|
-
throw new Error(`Compression failed: ${error.message}`);
|
|
400
|
-
}
|
|
401
|
-
};
|
|
402
|
-
|
|
403
|
-
/* eslint-disable no-case-declarations */
|
|
404
376
|
/**
|
|
405
377
|
* Converts a record of parameters to a query string.
|
|
406
378
|
*/
|
|
@@ -419,7 +391,7 @@ const toQueryString = (params) => {
|
|
|
419
391
|
/**
|
|
420
392
|
* Maps the flow configuration and params to the corresponding query parameters.
|
|
421
393
|
*/
|
|
422
|
-
const getIframeParams =
|
|
394
|
+
const getIframeParams = (params, widgetConfig, checkoutConfig) => {
|
|
423
395
|
const { flow } = params;
|
|
424
396
|
const commonConfig = {
|
|
425
397
|
theme: widgetConfig.theme,
|
|
@@ -489,7 +461,6 @@ const getIframeParams = async (params, widgetConfig, checkoutConfig) => {
|
|
|
489
461
|
toAmount: params.tokenAddress,
|
|
490
462
|
});
|
|
491
463
|
case CheckoutFlowType.SALE:
|
|
492
|
-
const items = await encodeObject(params.items || []);
|
|
493
464
|
return toQueryString({
|
|
494
465
|
...commonConfig,
|
|
495
466
|
...(widgetConfig.sale || {}),
|
|
@@ -502,7 +473,7 @@ const getIframeParams = async (params, widgetConfig, checkoutConfig) => {
|
|
|
502
473
|
// TODO: Get from hub
|
|
503
474
|
environmentId: params.environmentId,
|
|
504
475
|
collectionName: params.collectionName,
|
|
505
|
-
items,
|
|
476
|
+
items: params.items,
|
|
506
477
|
preferredCurrency: params.preferredCurrency,
|
|
507
478
|
excludePaymentTypes: params.excludePaymentTypes,
|
|
508
479
|
excludeFiatCurrencies: params.excludeFiatCurrencies,
|
|
@@ -514,11 +485,10 @@ const getIframeParams = async (params, widgetConfig, checkoutConfig) => {
|
|
|
514
485
|
/**
|
|
515
486
|
* Returns the iframe URL for the Checkout App based on the environment.
|
|
516
487
|
*/
|
|
517
|
-
const getIframeURL =
|
|
488
|
+
const getIframeURL = (params, widgetConfig, checkoutConfig) => {
|
|
518
489
|
const { flow } = params;
|
|
519
490
|
const { publishableKey } = checkoutConfig;
|
|
520
|
-
|
|
521
|
-
return '';
|
|
491
|
+
const language = params.language || widgetConfig.language;
|
|
522
492
|
let environment = checkoutConfig.environment || Environment.SANDBOX;
|
|
523
493
|
if (checkoutConfig.isDevelopment) {
|
|
524
494
|
environment = ENV_DEVELOPMENT;
|
|
@@ -526,11 +496,10 @@ const getIframeURL = async (params, widgetConfig, checkoutConfig) => {
|
|
|
526
496
|
if (checkoutConfig.overrides?.environment) {
|
|
527
497
|
environment = checkoutConfig.overrides.environment;
|
|
528
498
|
}
|
|
529
|
-
const baseURL = checkoutConfig.overrides?.checkoutAppUrl
|
|
530
|
-
|
|
531
|
-
const
|
|
532
|
-
|
|
533
|
-
return iframeURL;
|
|
499
|
+
const baseURL = checkoutConfig.overrides?.checkoutAppUrl ?? CHECKOUT_APP_URL[environment];
|
|
500
|
+
const queryParams = getIframeParams(params, widgetConfig, checkoutConfig);
|
|
501
|
+
const iframeURL = `${baseURL}/${publishableKey}/${language}/${flow}?${queryParams}`;
|
|
502
|
+
return [baseURL, iframeURL];
|
|
534
503
|
};
|
|
535
504
|
|
|
536
505
|
/**
|
|
@@ -550,28 +519,13 @@ const useMount = (effect, deps, compare) => {
|
|
|
550
519
|
}, [deps, effect, compare]);
|
|
551
520
|
};
|
|
552
521
|
|
|
553
|
-
/**
|
|
554
|
-
* Handle asynchronous operations with memoization.
|
|
555
|
-
* It only re-executes the async function when dependencies change.
|
|
556
|
-
*/
|
|
557
|
-
const useAsyncMemo = (asyncFn, dependencies) => {
|
|
558
|
-
const [value, setValue] = reactExports.useState();
|
|
559
|
-
reactExports.useEffect(() => {
|
|
560
|
-
let isMounted = true;
|
|
561
|
-
asyncFn().then((result) => {
|
|
562
|
-
if (isMounted)
|
|
563
|
-
setValue(result);
|
|
564
|
-
});
|
|
565
|
-
return () => {
|
|
566
|
-
isMounted = false;
|
|
567
|
-
};
|
|
568
|
-
}, dependencies);
|
|
569
|
-
return value;
|
|
570
|
-
};
|
|
571
|
-
|
|
572
522
|
function CheckoutWidget(props) {
|
|
573
523
|
const { config, checkout, params, provider, } = props;
|
|
574
|
-
const iframeURL =
|
|
524
|
+
const [, iframeURL] = reactExports.useMemo(() => {
|
|
525
|
+
if (!checkout.config.publishableKey)
|
|
526
|
+
return ['', ''];
|
|
527
|
+
return getIframeURL(params, config, checkout.config);
|
|
528
|
+
}, [params, config, checkout.config]);
|
|
575
529
|
const [checkoutState, checkoutDispatch] = reactExports.useReducer(checkoutReducer, initialCheckoutState);
|
|
576
530
|
const checkoutReducerValues = reactExports.useMemo(() => ({
|
|
577
531
|
checkoutState: { ...checkoutState, iframeURL, checkout },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { bu as global, t as useAnalytics, r as reactExports, q as ConnectLoaderContext, E as EventTargetContext, l as useTranslation, V as ViewContext, K as SharedViews, bv as ExchangeType, j as jsx, a2 as SimpleLayout, Y as HeaderNavigation, bw as sendOnRampWidgetCloseEvent, a as Box, U as UserJourney, p as ViewActions, a1 as FooterLogo, n as jsxs, ae as SimpleTextBody, ah as viewReducer, ai as initialViewState, bf as NATIVE, aj as LoadingView, bx as sendOnRampSuccessEvent, aJ as StatusType, bq as StatusView, by as sendOnRampFailedEvent, I as IMTBLWidgetEvents } from './index-
|
|
2
|
-
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-
|
|
3
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
1
|
+
import { bu as global, t as useAnalytics, r as reactExports, q as ConnectLoaderContext, E as EventTargetContext, l as useTranslation, V as ViewContext, K as SharedViews, bv as ExchangeType, j as jsx, a2 as SimpleLayout, Y as HeaderNavigation, bw as sendOnRampWidgetCloseEvent, a as Box, U as UserJourney, p as ViewActions, a1 as FooterLogo, n as jsxs, ae as SimpleTextBody, ah as viewReducer, ai as initialViewState, bf as NATIVE, aj as LoadingView, bx as sendOnRampSuccessEvent, aJ as StatusType, bq as StatusView, by as sendOnRampFailedEvent, I as IMTBLWidgetEvents } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-Dw-JH0Q5.js';
|
|
3
|
+
import { S as SpendingCapHero } from './SpendingCapHero-BsQQYO_D.js';
|
|
4
4
|
|
|
5
5
|
function isNull(arg) {
|
|
6
6
|
return arg === null;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { j as jsx, _ as _objectWithoutProperties, u as useTheme, r as reactExports, m as merge, al as getCaptionTextStyles, am as baseTextComponentSx, an as useConvertSxToEmotionStyles, ao as useGetCurrentSizeClass, ap as cloneElementWithCssProp, k as _defineProperty, aq as shimmerSx, a as Box, z as Environment, ar as BigNumber, as as compareStr, V as ViewContext, p as ViewActions, at as SalePaymentTypes, U as UserJourney, l as useTranslation, X as calculateCryptoToFiat, t as useAnalytics, E as EventTargetContext, au as sendSaleWidgetCloseEvent, av as sendSaleSuccessEvent, aw as sendSaleFailedEvent, ax as sendSaleTransactionSuccessEvent, ay as sendSalePaymentMethodEvent, az as sendSalePaymentTokenEvent, Y as HeaderNavigation, n as jsxs, aA as LoadingOverlay, aB as Fragment, a2 as SimpleLayout, aC as useHandover, aD as HandoverTarget, aE as getRemoteRive, a6 as Heading, aF as HandoverDuration, o as Body, d as Button, w as isPassportProvider, M as MenuItem, aG as motion, aH as listVariants, aI as listItemVariants, K as SharedViews, a1 as FooterLogo, aJ as StatusType, aK as prettyFormatNumber, A as tokenValueFormat, aL as Stack, aM as FundingStepType, a5 as abbreviateWalletAddress, a7 as Drawer, aN as Divider, aO as tokenSymbolNameOverrides, aP as ItemType, aQ as TransactionOrGasType, aR as GasTokenType, aS as RoutingOutcomeType, G as isNativeToken, W as getTokenImageByAddress, aT as isGasFree, q as ConnectLoaderContext, aU as eventTargetReducer, aV as initialEventTargetState, y as getL1ChainId, x as getL2ChainId, I as IMTBLWidgetEvents, aW as EventTargetActions, aj as LoadingView, aX as ChainId, aY as ConnectWidgetViews, aZ as ConnectWidget, a_ as SwapEventType, a$ as OnRampEventType, b0 as BridgeEventType, b1 as ConnectEventType, b2 as ConnectLoaderActions, B as ButtCon, b3 as widgetTheme, ah as viewReducer, ai as initialViewState, b4 as BlockExplorerService } from './index-
|
|
2
|
-
import { C as Contract, B as BridgeWidget } from './BridgeWidget-
|
|
3
|
-
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-
|
|
4
|
-
import { f as formatUnits, u as useMount, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
5
|
-
import { T as TokenImage } from './retry-
|
|
6
|
-
import { F as Fees } from './balance-
|
|
7
|
-
import SwapWidget from './SwapWidget-
|
|
8
|
-
import './TextInputForm-
|
|
9
|
-
import './SpendingCapHero-
|
|
1
|
+
import { j as jsx, _ as _objectWithoutProperties, u as useTheme, r as reactExports, m as merge, al as getCaptionTextStyles, am as baseTextComponentSx, an as useConvertSxToEmotionStyles, ao as useGetCurrentSizeClass, ap as cloneElementWithCssProp, k as _defineProperty, aq as shimmerSx, a as Box, z as Environment, ar as BigNumber, as as compareStr, V as ViewContext, p as ViewActions, at as SalePaymentTypes, U as UserJourney, l as useTranslation, X as calculateCryptoToFiat, t as useAnalytics, E as EventTargetContext, au as sendSaleWidgetCloseEvent, av as sendSaleSuccessEvent, aw as sendSaleFailedEvent, ax as sendSaleTransactionSuccessEvent, ay as sendSalePaymentMethodEvent, az as sendSalePaymentTokenEvent, Y as HeaderNavigation, n as jsxs, aA as LoadingOverlay, aB as Fragment, a2 as SimpleLayout, aC as useHandover, aD as HandoverTarget, aE as getRemoteRive, a6 as Heading, aF as HandoverDuration, o as Body, d as Button, w as isPassportProvider, M as MenuItem, aG as motion, aH as listVariants, aI as listItemVariants, K as SharedViews, a1 as FooterLogo, aJ as StatusType, aK as prettyFormatNumber, A as tokenValueFormat, aL as Stack, aM as FundingStepType, a5 as abbreviateWalletAddress, a7 as Drawer, aN as Divider, aO as tokenSymbolNameOverrides, aP as ItemType, aQ as TransactionOrGasType, aR as GasTokenType, aS as RoutingOutcomeType, G as isNativeToken, W as getTokenImageByAddress, aT as isGasFree, q as ConnectLoaderContext, aU as eventTargetReducer, aV as initialEventTargetState, y as getL1ChainId, x as getL2ChainId, I as IMTBLWidgetEvents, aW as EventTargetActions, aj as LoadingView, aX as ChainId, aY as ConnectWidgetViews, aZ as ConnectWidget, a_ as SwapEventType, a$ as OnRampEventType, b0 as BridgeEventType, b1 as ConnectEventType, b2 as ConnectLoaderActions, B as ButtCon, b3 as widgetTheme, ah as viewReducer, ai as initialViewState, b4 as BlockExplorerService } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { C as Contract, B as BridgeWidget } from './BridgeWidget-2D-8F1Vq.js';
|
|
3
|
+
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-B4UV_TYW.js';
|
|
4
|
+
import { f as formatUnits, u as useMount, C as CryptoFiatContext, a as CryptoFiatActions, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-Dw-JH0Q5.js';
|
|
5
|
+
import { T as TokenImage } from './retry-C_l6vh-l.js';
|
|
6
|
+
import { F as Fees } from './balance-Dt4oB1G1.js';
|
|
7
|
+
import SwapWidget from './SwapWidget-BK7sTJ6u.js';
|
|
8
|
+
import './TextInputForm-Cy6sTMjr.js';
|
|
9
|
+
import './SpendingCapHero-BsQQYO_D.js';
|
|
10
10
|
|
|
11
11
|
var _excluded$1 = ["size", "weight", "rc", "sx", "testId", "children", "domRef", "className"];
|
|
12
12
|
function ownKeys$1(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; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, ab as heroBackGroundStyles, a as Box, ac as heroImageStyles, ad as heroImageBottomAlign, n as jsxs } from './index-
|
|
1
|
+
import { j as jsx, ab as heroBackGroundStyles, a as Box, ac as heroImageStyles, ad as heroImageBottomAlign, n as jsxs } from './index-5qc7Vsg4.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,9 +1,9 @@
|
|
|
1
|
-
import { l as useTranslation, b5 as WidgetTheme, b6 as getRemoteImage, n as jsxs, b7 as quickswapFooterStyles, a as Box, b8 as quickswapFooterLogoStyles, j as jsx, o as Body, b9 as quickswapFooterDisclaimerTextStyles, r as reactExports, d as Button, ba as getImxTokenImage, a7 as Drawer, bb as CloudImage, a6 as Heading, bc as Logo, bd as Icon, ar as BigNumber, X as calculateCryptoToFiat, A as tokenValueFormat, aT as isGasFree, v as formatZeroAmount, q as ConnectLoaderContext, be as getDefaultTokenImage, G as isNativeToken, bf as NATIVE, V as ViewContext, t as useAnalytics, bg as DEFAULT_QUOTE_REFRESH_INTERVAL, w as isPassportProvider, bh as amountInputValidation, bi as Tooltip, U as UserJourney, z as Environment, p as ViewActions, K as SharedViews, x as getL2ChainId, aB as Fragment, bj as ESTIMATE_DEBOUNCE, bk as DEFAULT_TOKEN_VALIDATION_DECIMALS, bl as DEFAULT_TOKEN_DECIMALS, E as EventTargetContext, bm as sendSwapWidgetCloseEvent, Y as HeaderNavigation, aj as LoadingView, a2 as SimpleLayout, bn as IMX_TOKEN_SYMBOL, J as CheckoutErrorType, ae as SimpleTextBody, bo as FooterButton, ah as viewReducer, ai as initialViewState, T as TokenFilterTypes, Q as DEFAULT_BALANCE_RETRY_POLICY, bp as SwapDirection$1, bq as StatusView, br as sendSwapSuccessEvent, aJ as StatusType, bs as sendSwapFailedEvent, bt as sendSwapRejectedEvent, ak as ErrorView, I as IMTBLWidgetEvents } from './index-
|
|
2
|
-
import { S as SelectForm, F as Fees, T as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './balance-
|
|
3
|
-
import { f as formatUnits, p as parseUnits, C as CryptoFiatContext, a as CryptoFiatActions, c as parseEther, S as SwapWidgetViews, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-
|
|
4
|
-
import { T as TextInputForm } from './TextInputForm-
|
|
5
|
-
import { u as useInterval } from './retry-
|
|
6
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
1
|
+
import { l as useTranslation, b5 as WidgetTheme, b6 as getRemoteImage, n as jsxs, b7 as quickswapFooterStyles, a as Box, b8 as quickswapFooterLogoStyles, j as jsx, o as Body, b9 as quickswapFooterDisclaimerTextStyles, r as reactExports, d as Button, ba as getImxTokenImage, a7 as Drawer, bb as CloudImage, a6 as Heading, bc as Logo, bd as Icon, ar as BigNumber, X as calculateCryptoToFiat, A as tokenValueFormat, aT as isGasFree, v as formatZeroAmount, q as ConnectLoaderContext, be as getDefaultTokenImage, G as isNativeToken, bf as NATIVE, V as ViewContext, t as useAnalytics, bg as DEFAULT_QUOTE_REFRESH_INTERVAL, w as isPassportProvider, bh as amountInputValidation, bi as Tooltip, U as UserJourney, z as Environment, p as ViewActions, K as SharedViews, x as getL2ChainId, aB as Fragment, bj as ESTIMATE_DEBOUNCE, bk as DEFAULT_TOKEN_VALIDATION_DECIMALS, bl as DEFAULT_TOKEN_DECIMALS, E as EventTargetContext, bm as sendSwapWidgetCloseEvent, Y as HeaderNavigation, aj as LoadingView, a2 as SimpleLayout, bn as IMX_TOKEN_SYMBOL, J as CheckoutErrorType, ae as SimpleTextBody, bo as FooterButton, ah as viewReducer, ai as initialViewState, T as TokenFilterTypes, Q as DEFAULT_BALANCE_RETRY_POLICY, bp as SwapDirection$1, bq as StatusView, br as sendSwapSuccessEvent, aJ as StatusType, bs as sendSwapFailedEvent, bt as sendSwapRejectedEvent, ak as ErrorView, I as IMTBLWidgetEvents } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { S as SelectForm, F as Fees, T as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './balance-Dt4oB1G1.js';
|
|
3
|
+
import { f as formatUnits, p as parseUnits, C as CryptoFiatContext, a as CryptoFiatActions, c as parseEther, S as SwapWidgetViews, T as TopUpView, b as CryptoFiatProvider } from './TopUpView-Dw-JH0Q5.js';
|
|
4
|
+
import { T as TextInputForm } from './TextInputForm-Cy6sTMjr.js';
|
|
5
|
+
import { u as useInterval } from './retry-C_l6vh-l.js';
|
|
6
|
+
import { S as SpendingCapHero } from './SpendingCapHero-BsQQYO_D.js';
|
|
7
7
|
|
|
8
8
|
function QuickswapFooter({ theme, environment }) {
|
|
9
9
|
const { t } = useTranslation();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as jsx, c_ as TextInput, cv as FormControlWrapper } from './index-
|
|
1
|
+
import { j as jsx, c_ as TextInput, cv as FormControlWrapper } from './index-5qc7Vsg4.js';
|
|
2
2
|
|
|
3
3
|
function TextInputForm({ testId, value, placeholder, errorMessage, validator, onTextInputChange, onTextInputBlur, onTextInputFocus, onTextInputEnter, textAlign, type, subtext, maxButtonClick, disabled, inputMode, }) {
|
|
4
4
|
const handleOnChange = (event, previousValue) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ar as BigNumber, bF as Logger, cz as version$1, cA as hexZeroPad, cB as isBigNumberish, bQ as arrayify, cC as isBytes, r as reactExports, z as Environment, bz as axios, j as jsx, n as jsxs, M as MenuItem, a as Box, l as useTranslation, V as ViewContext, E as EventTargetContext, t as useAnalytics, c8 as GasEstimateType, Y as HeaderNavigation, a6 as Heading, o as Body, a2 as SimpleLayout, I as IMTBLWidgetEvents, p as ViewActions, F as orchestrationEvents } from './index-
|
|
1
|
+
import { ar as BigNumber, bF as Logger, cz as version$1, cA as hexZeroPad, cB as isBigNumberish, bQ as arrayify, cC as isBytes, r as reactExports, z as Environment, bz as axios, j as jsx, n as jsxs, M as MenuItem, a as Box, l as useTranslation, V as ViewContext, E as EventTargetContext, t as useAnalytics, c8 as GasEstimateType, Y as HeaderNavigation, a6 as Heading, o as Body, a2 as SimpleLayout, I as IMTBLWidgetEvents, p as ViewActions, F as orchestrationEvents } from './index-5qc7Vsg4.js';
|
|
2
2
|
|
|
3
3
|
const logger$1 = new Logger(version$1);
|
|
4
4
|
const _constructorGuard = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { B as ButtCon, _ as _objectWithoutProperties, u as useTheme, g as getStartingSize, D as DEFAULT_BUTTON_SIZE, m as merge, r as reactExports, f as flattenChildren, j as jsx, i as isChildSubcomponent, S as SmartClone, a as Box, b as getResponsiveSx, c as BUTTON_SIZES, s as setDefaultSxBackgroundColor, C as ClassNames, d as Button, e as ButtonIcon, h as ButtonLogo, k as _defineProperty, T as TokenFilterTypes, l as useTranslation, V as ViewContext, n as jsxs, o as Body, p as ViewActions, q as ConnectLoaderContext, t as useAnalytics, v as formatZeroAmount, E as EventTargetContext, w as isPassportProvider, x as getL2ChainId, y as getL1ChainId, z as Environment, M as MenuItem, A as tokenValueFormat, U as UserJourney, F as orchestrationEvents, I as IMTBLWidgetEvents, Z as ZERO_BALANCE_STRING, G as isNativeToken, H as sendNetworkSwitchEvent, J as CheckoutErrorType, K as SharedViews, N as NetworkFilterTypes, L as sortNetworksCompareFn, O as FramedImage, P as getChainImage, Q as DEFAULT_BALANCE_RETRY_POLICY, R as sortTokensByAmount, W as getTokenImageByAddress, X as calculateCryptoToFiat, Y as HeaderNavigation, $ as ButtonNavigationStyles, a0 as sendWalletWidgetCloseEvent, a1 as FooterLogo, a2 as SimpleLayout, a3 as WalletProviderName, a4 as getWalletProviderNameByProvider, a5 as abbreviateWalletAddress, a6 as Heading, a7 as Drawer, a8 as useWalletConnect, a9 as sendDisconnectWalletEvent, aa as isWalletConnectProvider, ab as heroBackGroundStyles, ac as heroImageStyles, ad as heroImageBottomAlign, ae as SimpleTextBody, af as FAQS_LINK, ag as Link, ah as viewReducer, ai as initialViewState, aj as LoadingView, ak 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, r as retry, u as useInterval } from './retry-
|
|
1
|
+
import { B as ButtCon, _ as _objectWithoutProperties, u as useTheme, g as getStartingSize, D as DEFAULT_BUTTON_SIZE, m as merge, r as reactExports, f as flattenChildren, j as jsx, i as isChildSubcomponent, S as SmartClone, a as Box, b as getResponsiveSx, c as BUTTON_SIZES, s as setDefaultSxBackgroundColor, C as ClassNames, d as Button, e as ButtonIcon, h as ButtonLogo, k as _defineProperty, T as TokenFilterTypes, l as useTranslation, V as ViewContext, n as jsxs, o as Body, p as ViewActions, q as ConnectLoaderContext, t as useAnalytics, v as formatZeroAmount, E as EventTargetContext, w as isPassportProvider, x as getL2ChainId, y as getL1ChainId, z as Environment, M as MenuItem, A as tokenValueFormat, U as UserJourney, F as orchestrationEvents, I as IMTBLWidgetEvents, Z as ZERO_BALANCE_STRING, G as isNativeToken, H as sendNetworkSwitchEvent, J as CheckoutErrorType, K as SharedViews, N as NetworkFilterTypes, L as sortNetworksCompareFn, O as FramedImage, P as getChainImage, Q as DEFAULT_BALANCE_RETRY_POLICY, R as sortTokensByAmount, W as getTokenImageByAddress, X as calculateCryptoToFiat, Y as HeaderNavigation, $ as ButtonNavigationStyles, a0 as sendWalletWidgetCloseEvent, a1 as FooterLogo, a2 as SimpleLayout, a3 as WalletProviderName, a4 as getWalletProviderNameByProvider, a5 as abbreviateWalletAddress, a6 as Heading, a7 as Drawer, a8 as useWalletConnect, a9 as sendDisconnectWalletEvent, aa as isWalletConnectProvider, ab as heroBackGroundStyles, ac as heroImageStyles, ad as heroImageBottomAlign, ae as SimpleTextBody, af as FAQS_LINK, ag as Link, ah as viewReducer, ai as initialViewState, aj as LoadingView, ak as ErrorView } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider, T as TopUpView } from './TopUpView-Dw-JH0Q5.js';
|
|
3
|
+
import { T as TokenImage, r as retry, u as useInterval } from './retry-C_l6vh-l.js';
|
|
4
4
|
|
|
5
5
|
var horizontalMenuSxProps = {
|
|
6
6
|
justifyContent: "stretch",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { co as hFlex, j as jsx, aG as motion, _ as _objectWithoutProperties, u as useTheme, r as reactExports, cp as _slicedToArray, cq as useGetSubcomponentChild, m as merge, n as jsxs, cr as BaseClickable, B as ButtCon, S as SmartClone, cs as AnimatePresence, a as Box, aL as Stack, C as ClassNames, k as _defineProperty, ct as getTertiaryButtonStyles, f as flattenChildren, i as isChildSubcomponent, aN as Divider, l as useTranslation, b6 as getRemoteImage, z as Environment, c4 as getChainNameById, y as getL1ChainId, aa as isWalletConnectProvider, c6 as isMetaMaskProvider, bb as CloudImage, a6 as Heading, o as Body, d as Button, a1 as FooterLogo, a7 as Drawer, M as MenuItem, cu as Select, cv as FormControlWrapper, b5 as WidgetTheme, cw as PriceDisplay, aB as Fragment, A as tokenValueFormat, v as formatZeroAmount, bS as ShimmerBox, cx as DuoCon, ab as heroBackGroundStyles, ac as heroImageStyles, ad as heroImageBottomAlign, bf as NATIVE, W as getTokenImageByAddress, G as isNativeToken, Q as DEFAULT_BALANCE_RETRY_POLICY } from './index-
|
|
2
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
1
|
+
import { co as hFlex, j as jsx, aG as motion, _ as _objectWithoutProperties, u as useTheme, r as reactExports, cp as _slicedToArray, cq as useGetSubcomponentChild, m as merge, n as jsxs, cr as BaseClickable, B as ButtCon, S as SmartClone, cs as AnimatePresence, a as Box, aL as Stack, C as ClassNames, k as _defineProperty, ct as getTertiaryButtonStyles, f as flattenChildren, i as isChildSubcomponent, aN as Divider, l as useTranslation, b6 as getRemoteImage, z as Environment, c4 as getChainNameById, y as getL1ChainId, aa as isWalletConnectProvider, c6 as isMetaMaskProvider, bb as CloudImage, a6 as Heading, o as Body, d as Button, a1 as FooterLogo, a7 as Drawer, M as MenuItem, cu as Select, cv as FormControlWrapper, b5 as WidgetTheme, cw as PriceDisplay, aB as Fragment, A as tokenValueFormat, v as formatZeroAmount, bS as ShimmerBox, cx as DuoCon, ab as heroBackGroundStyles, ac as heroImageStyles, ad as heroImageBottomAlign, bf as NATIVE, W as getTokenImageByAddress, G as isNativeToken, Q as DEFAULT_BALANCE_RETRY_POLICY } from './index-5qc7Vsg4.js';
|
|
2
|
+
import { T as TokenImage, r as retry } from './retry-C_l6vh-l.js';
|
|
3
3
|
|
|
4
4
|
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; }
|
|
5
5
|
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; }
|