@imtbl/checkout-widgets 2.2.0 → 2.2.1-alpha.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.
Files changed (52) hide show
  1. package/dist/browser/{AddTokensWidget-Ma98Dqwh.js → AddTokensWidget-DaksUeLJ.js} +26 -26
  2. package/dist/browser/{BridgeWidget-tDPVxvTK.js → BridgeWidget-D_3RTCX2.js} +52 -52
  3. package/dist/browser/{CommerceWidget-DnB5h5DA.js → CommerceWidget-C99-GGFC.js} +180 -186
  4. package/dist/browser/{FeesBreakdown-SMMmNxU-.js → FeesBreakdown-BJbAIdyp.js} +1 -1
  5. package/dist/browser/{OnRampWidget-B3cnjDkJ.js → OnRampWidget-BHGaS-OH.js} +8 -8
  6. package/dist/browser/{SaleWidget-C7tDRhvp.js → SaleWidget-C4GWc59i.js} +61 -61
  7. package/dist/browser/{SpendingCapHero-Do-mkYwB.js → SpendingCapHero-D7e3_oAu.js} +1 -1
  8. package/dist/browser/{SwapWidget-QxW4xOa_.js → SwapWidget-IkGuHL6E.js} +21 -21
  9. package/dist/browser/{TokenImage-lDWfoU2b.js → TokenImage-AbfB1fSa.js} +1 -1
  10. package/dist/browser/{TopUpView-DPkqr-YC.js → TopUpView-D5fh2au_.js} +5 -5
  11. package/dist/browser/{WalletApproveHero-Di02Phe4.js → WalletApproveHero-CK_TX02R.js} +4 -4
  12. package/dist/browser/{WalletWidget-BozZjliU.js → WalletWidget-DSTv_B3p.js} +18 -18
  13. package/dist/browser/{auto-track-CG4Bs1kg.js → auto-track-r9fcwuc1.js} +1 -1
  14. package/dist/browser/{index-BrDACMtQ.js → index-CN-bmJK5.js} +1 -1
  15. package/dist/browser/{index-B92IZgyS.js → index-CgesMpxT.js} +1 -1
  16. package/dist/browser/{index-qkgda0uC.js → index-Cwb6bavW.js} +1 -1
  17. package/dist/browser/{index-ByPgvc_F.js → index-D9k7-57F.js} +1 -1
  18. package/dist/browser/{index-BO9ARDoY.js → index-DW34ctVj.js} +1 -1
  19. package/dist/browser/{index-CqT6H9W-.js → index-S9AO9JR0.js} +334 -357
  20. package/dist/browser/{index-DygDkU2e.js → index-a_bddLOs.js} +1 -1
  21. package/dist/browser/{index-R2dpGmlF.js → index-w-O9voe-.js} +2 -2
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-B82ymo2S.js → index.umd-DRS1mtMS.js} +1 -1
  24. package/dist/browser/{useInterval-Dp4GWqSc.js → useInterval-B_9ZtAsp.js} +1 -1
  25. package/dist/types/lib/index.d.ts +0 -1
  26. package/package.json +7 -7
  27. package/src/components/NetworkSwitchDrawer/NetworkSwitchDrawer.tsx +1 -2
  28. package/src/components/Transactions/Transactions.tsx +6 -8
  29. package/src/lib/index.ts +0 -1
  30. package/src/lib/utils.ts +4 -5
  31. package/src/widgets/add-tokens/components/TokenDrawerMenu.tsx +1 -2
  32. package/src/widgets/add-tokens/views/AddTokens.tsx +1 -2
  33. package/src/widgets/bridge/BridgeWidget.tsx +2 -3
  34. package/src/widgets/bridge/components/BridgeReviewSummary.tsx +2 -4
  35. package/src/widgets/bridge/components/WalletAndNetworkSelector.tsx +2 -3
  36. package/src/widgets/bridge/views/ClaimWithdrawal.tsx +3 -3
  37. package/src/widgets/connect/components/WalletList.tsx +2 -2
  38. package/src/widgets/connect/views/SwitchNetworkEth.tsx +2 -3
  39. package/src/widgets/connect/views/SwitchNetworkZkEVM.tsx +5 -5
  40. package/src/widgets/immutable-commerce/functions/getConnectLoaderParams.ts +9 -17
  41. package/src/widgets/on-ramp/OnRampWidgetRoot.tsx +1 -2
  42. package/src/widgets/sale/SaleWidgetRoot.tsx +1 -2
  43. package/src/widgets/sale/components/FundingRouteExecute/FundingRouteExecute.tsx +2 -3
  44. package/src/widgets/swap/SwapWidget.tsx +2 -2
  45. package/src/widgets/swap/SwapWidgetRoot.tsx +1 -2
  46. package/src/widgets/swap/components/SwapForm.tsx +2 -3
  47. package/src/widgets/transfer/TransferWidget.tsx +1 -2
  48. package/src/widgets/wallet/WalletWidgetRoot.tsx +1 -2
  49. package/src/widgets/wallet/components/BalanceItem/BalanceItem.tsx +6 -7
  50. package/src/widgets/wallet/views/WalletBalances.tsx +1 -2
  51. package/dist/types/lib/networkUtils.d.ts +0 -3
  52. package/src/lib/networkUtils.ts +0 -22
@@ -1,4 +1,4 @@
1
- import { r as reactExports, cc as formatUnits, x as jsx, y as jsxs, dI as isDualVariantIcon, aS as MenuItem, B as Box, o as useTranslation, aW as ViewContext, J as CryptoFiatContext, G as EventTargetContext, F as useAnalytics, a4 as CryptoFiatActions, dJ as DEFAULT_TOKEN_SYMBOLS, cW as it, N as HeaderNavigation, H as Heading, D as Body, A as SimpleLayout, n as no, V as ViewActions, P as orchestrationEvents, bP as K } from './index-CqT6H9W-.js';
1
+ import { b as reactExports, ca as formatUnits, w as jsx, x as jsxs, dG as isDualVariantIcon, aP as MenuItem, B as Box, k as useTranslation, aU as ViewContext, I as CryptoFiatContext, G as EventTargetContext, F as useAnalytics, a1 as CryptoFiatActions, dH as DEFAULT_TOKEN_SYMBOLS, cU as st, M as HeaderNavigation, H as Heading, D as Body, z as SimpleLayout, r as ro, V as ViewActions, O as orchestrationEvents, bN as K } from './index-S9AO9JR0.js';
2
2
 
3
3
  var BridgeWidgetViews;
4
4
  (function (BridgeWidgetViews) {
@@ -190,7 +190,7 @@ showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analyt
190
190
  return;
191
191
  (async () => {
192
192
  const bridgeEstimate = await checkout.gasEstimate({
193
- gasEstimateType: it.BRIDGE_TO_L2,
193
+ gasEstimateType: st.BRIDGE_TO_L2,
194
194
  });
195
195
  const est = await getBridgeFeeEstimation(bridgeEstimate, conversions);
196
196
  setBridgeFeesInFiat(est);
@@ -216,7 +216,7 @@ showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analyt
216
216
  });
217
217
  };
218
218
  const onClickSwap = () => {
219
- if (widgetEvent === no.IMTBL_SWAP_WIDGET_EVENT) {
219
+ if (widgetEvent === ro.IMTBL_SWAP_WIDGET_EVENT) {
220
220
  const data = {
221
221
  toTokenAddress: '',
222
222
  fromAmount: '',
@@ -243,7 +243,7 @@ showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analyt
243
243
  localTrack('Swap', { ...data, widgetEvent });
244
244
  };
245
245
  const onClickBridge = () => {
246
- if (widgetEvent === no.IMTBL_BRIDGE_WIDGET_EVENT) {
246
+ if (widgetEvent === ro.IMTBL_BRIDGE_WIDGET_EVENT) {
247
247
  const data = {
248
248
  fromTokenAddress: '',
249
249
  fromAmount: '',
@@ -268,7 +268,7 @@ showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analyt
268
268
  localTrack('Bridge', { ...data, widgetEvent });
269
269
  };
270
270
  const onClickOnRamp = () => {
271
- if (widgetEvent === no.IMTBL_ONRAMP_WIDGET_EVENT) {
271
+ if (widgetEvent === ro.IMTBL_ONRAMP_WIDGET_EVENT) {
272
272
  const data = {
273
273
  tokenAddress: '',
274
274
  amount: '',
@@ -1,5 +1,5 @@
1
- import { af as hFlex, x as jsx, dy as motion, ah as _objectWithoutProperties, X as useTheme, r as reactExports, aj as _slicedToArray, at as useGetSubcomponentChild, ao as merge, y as jsxs, dz as BaseClickable, b5 as ButtCon, ax as SmartClone, dA as AnimatePresence, B as Box, S as Stack, dB as ClassNames, ag as _defineProperty, dC as getTertiaryButtonStyles, au as flattenChildren, dD as isChildSubcomponent, aE as Divider, b6 as TextInput, dE as FormControlWrapper, o as useTranslation, aS as MenuItem, aD as Drawer, D as Body, aI as Fragment, F as useAnalytics, dF as Select, bP as K, dj as So, dG as DuoCon, H as Heading, z as Button, cL as retry, cU as NATIVE, b2 as getTokenImageByAddress, b1 as isNativeToken, dt as DEFAULT_BALANCE_RETRY_POLICY, cR as isMetaMaskProvider, Z as CloudImage, c6 as FooterLogo, _ as getRemoteImage, cP as getChainNameById, d as getL1ChainId, cI as isWalletConnectProvider, d1 as heroBackGroundStyles, d2 as heroImageStyles, dH as heroImageBottomAlign } from './index-CqT6H9W-.js';
2
- import { T as TokenImage } from './TokenImage-lDWfoU2b.js';
1
+ import { ac as hFlex, w as jsx, dw as motion, ae as _objectWithoutProperties, Q as useTheme, b as reactExports, ag as _slicedToArray, aq as useGetSubcomponentChild, al as merge, x as jsxs, dx as BaseClickable, b3 as ButtCon, au as SmartClone, dy as AnimatePresence, B as Box, S as Stack, dz as ClassNames, ad as _defineProperty, dA as getTertiaryButtonStyles, ar as flattenChildren, dB as isChildSubcomponent, aB as Divider, b4 as TextInput, dC as FormControlWrapper, k as useTranslation, aP as MenuItem, aA as Drawer, D as Body, aF as Fragment, F as useAnalytics, dD as Select, bN as K, dh as wo, dE as DuoCon, H as Heading, y as Button, cJ as retry, cS as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dr as DEFAULT_BALANCE_RETRY_POLICY, cP as isMetaMaskProvider, W as CloudImage, c4 as FooterLogo, X as getRemoteImage, cN as getChainNameById, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign } from './index-S9AO9JR0.js';
2
+ import { T as TokenImage } from './TokenImage-AbfB1fSa.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; }
@@ -371,7 +371,7 @@ function CoinSelector({ heading, options, defaultTokenImage, optionsLoading, chi
371
371
  return (jsxs(Drawer, { headerBarTitle: heading, size: "full", onCloseDrawer: handleCloseDrawer, visible: visible, children: [jsx(Drawer.Target, { children: children }), jsx(Drawer.Content, { children: jsxs(Box, { sx: selectOptionsContainerStyles, children: [optionsLoading && options.length === 0 && (jsxs(Box, { sx: selectOptionsLoadingIconStyles, children: [jsx(MenuItem, { shimmer: true, emphasized: true, testId: "balance-item-shimmer--1" }), jsx(MenuItem, { shimmer: true, emphasized: true, testId: "balance-item-shimmer--2" }), jsx(MenuItem, { shimmer: true, emphasized: true, testId: "balance-item-shimmer--3" })] })), !optionsLoading && options.length === 0 && (jsx(Body, { sx: { padding: 'base.spacing.x4' }, children: t('drawers.coinSelector.noCoins') })), !optionsLoading ? (jsxs(Fragment, { children: [jsx(TextInput, { sx: { marginBottom: 'base.spacing.x4', minWidth: '100%' }, testId: "search-text", onChange: (event) => handleOnChange(event), sizeVariant: "large", value: searchValue, inputMode: "search", placeholder: "name/symbol/contract address", onClearValue: () => setSearchValue(''), hideClearValueButton: false, autoFocus: true, children: jsx(TextInput.Icon, { icon: "Search" }) }), filteredOptions.map(({ onClick, icon, name, symbol, balance, id, testId, }) => (jsx(CoinSelectorOption, { id: id, testId: testId, onClick: onClick, icon: icon, name: name, symbol: symbol, balance: balance, defaultTokenImage: defaultTokenImage }, `${symbol}-${name}`)))] })) : null] }) })] }));
372
372
  }
373
373
 
374
- function SelectForm({ testId, options, optionsLoading, subtext, onSelectChange, textAlign, errorMessage, disabled, selectedOption, coinSelectorHeading, defaultTokenImage, userJourney, screen, control, environment = K.PRODUCTION, theme = So.DARK, }) {
374
+ function SelectForm({ testId, options, optionsLoading, subtext, onSelectChange, textAlign, errorMessage, disabled, selectedOption, coinSelectorHeading, defaultTokenImage, userJourney, screen, control, environment = K.PRODUCTION, theme = wo.DARK, }) {
375
375
  const { track } = useAnalytics();
376
376
  const [coinSelectorOpen, setCoinSelectorOpen] = reactExports.useState(false);
377
377
  const coinSelectorOptions = reactExports.useMemo(() => options.map((option) => ({
@@ -493,7 +493,7 @@ function NetworkSwitchDrawer({ visible, targetChainId, provider, checkout, onClo
493
493
  const ethImageUrl = getRemoteImage(checkout.config.environment ?? K.PRODUCTION, '/switchnetworkethereum.svg');
494
494
  const zkevmImageUrl = getRemoteImage(checkout.config.environment ?? K.PRODUCTION, '/switchnetworkzkevm.svg');
495
495
  const targetChainName = getChainNameById(targetChainId);
496
- const showEthImage = targetChainId === getL1ChainId(checkout.config);
496
+ const showEthImage = targetChainId === checkout.config.l1ChainId;
497
497
  const handleSwitchNetwork = reactExports.useCallback(async () => {
498
498
  if (!checkout)
499
499
  return;
@@ -1,6 +1,6 @@
1
- import { ah as _objectWithoutProperties, X as useTheme, dK as getStartingSize, dL as DEFAULT_BUTTON_SIZE, ao as merge, r as reactExports, au as flattenChildren, x as jsx, dD as isChildSubcomponent, ax as SmartClone, B as Box, dM as getResponsiveSx, dN as BUTTON_SIZES, dO as setDefaultSxBackgroundColor, b5 as ButtCon, dB as ClassNames, z as Button, ag as _defineProperty, h as ae, o as useTranslation, aW as ViewContext, y as jsxs, D as Body, V as ViewActions, a0 as ConnectLoaderContext, F as useAnalytics, G as EventTargetContext, b as getL2ChainId, bP as K, aS as MenuItem, K as tokenValueFormat, U as UserJourney, P as orchestrationEvents, n as no, j as formatZeroAmount, aN as isPassportProvider, d as getL1ChainId, dP as ZERO_BALANCE_STRING, b1 as isNativeToken, dQ as sendNetworkSwitchEvent, cz as S, a8 as SharedViews, dR as me, dS as sortNetworksCompareFn, cD as getChainImage, cL as retry, dt as DEFAULT_BALANCE_RETRY_POLICY, dT as sortTokensByAmount, b2 as getTokenImageByAddress, k as calculateCryptoToFiat, J as CryptoFiatContext, a4 as CryptoFiatActions, N as HeaderNavigation, cT as ButtonNavigationStyles, dU as sendWalletWidgetCloseEvent, c6 as FooterLogo, A as SimpleLayout, cS as ge, cQ as getWalletProviderNameByProvider, dI as isDualVariantIcon, cb as abbreviateWalletAddress, H as Heading, aD as Drawer, cF as useWalletConnect, dV as sendDisconnectWalletEvent, cI as isWalletConnectProvider, d1 as heroBackGroundStyles, d2 as heroImageStyles, dH as heroImageBottomAlign, d3 as SimpleTextBody, dW as FAQS_LINK, L as Link, bK as viewReducer, bL as initialViewState, $ as CryptoFiatProvider, a3 as LoadingView, a9 as ErrorView } from './index-CqT6H9W-.js';
2
- import { T as TokenImage } from './TokenImage-lDWfoU2b.js';
3
- import { u as useInterval } from './useInterval-Dp4GWqSc.js';
1
+ import { ae as _objectWithoutProperties, Q as useTheme, dI as getStartingSize, dJ as DEFAULT_BUTTON_SIZE, al as merge, b as reactExports, ar as flattenChildren, w as jsx, dB as isChildSubcomponent, au as SmartClone, B as Box, dK as getResponsiveSx, dL as BUTTON_SIZES, dM as setDefaultSxBackgroundColor, b3 as ButtCon, dz as ClassNames, y as Button, ad as _defineProperty, e as ae, k as useTranslation, aU as ViewContext, x as jsxs, D as Body, V as ViewActions, Z as ConnectLoaderContext, F as useAnalytics, G as EventTargetContext, bN as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, r as ro, h as formatZeroAmount, aK as isPassportProvider, dN as ZERO_BALANCE_STRING, a$ as isNativeToken, dO as sendNetworkSwitchEvent, cx as S, a5 as SharedViews, dP as ge, dQ as sortNetworksCompareFn, cB as getChainImage, cJ as retry, dr as DEFAULT_BALANCE_RETRY_POLICY, dR as sortTokensByAmount, b0 as getTokenImageByAddress, j as calculateCryptoToFiat, I as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cR as ButtonNavigationStyles, dS as sendWalletWidgetCloseEvent, c4 as FooterLogo, z as SimpleLayout, cQ as fe, cO as getWalletProviderNameByProvider, dG as isDualVariantIcon, c9 as abbreviateWalletAddress, H as Heading, aA as Drawer, cD as useWalletConnect, dT as sendDisconnectWalletEvent, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign, d1 as SimpleTextBody, dU as FAQS_LINK, L as Link, bI as viewReducer, bJ as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-S9AO9JR0.js';
2
+ import { T as TokenImage } from './TokenImage-AbfB1fSa.js';
3
+ import { u as useInterval } from './useInterval-B_9ZtAsp.js';
4
4
 
5
5
  var horizontalMenuSxProps = {
6
6
  justifyContent: "stretch",
@@ -340,11 +340,11 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
340
340
  return;
341
341
  const onRampTokens = checkout.getTokenAllowList({
342
342
  type: ae.ONRAMP,
343
- chainId: getL2ChainId(checkout.config),
343
+ chainId: checkout.config.l2ChainId,
344
344
  });
345
345
  const swapTokens = checkout.getTokenAllowList({
346
346
  type: ae.SWAP,
347
- chainId: getL2ChainId(checkout.config),
347
+ chainId: checkout.config.l2ChainId,
348
348
  });
349
349
  const [onRampAllowedTokensResult, swapAllowedTokensResult] = await Promise.all([onRampTokens, swapTokens]);
350
350
  setOnRampAllowedTokens(onRampAllowedTokensResult.tokens);
@@ -359,16 +359,16 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
359
359
  && (supportedTopUps?.isSwapAvailable ?? true);
360
360
  setIsAddTokensEnabled(enableAddCoin);
361
361
  const enableBuyCoin = !enableAddCoin
362
- && currentChainId === getL2ChainId(checkout.config)
362
+ && currentChainId === checkout.config.l2ChainId
363
363
  && (supportedTopUps?.isOnRampEnabled ?? true);
364
364
  setIsOnRampEnabled(enableBuyCoin);
365
365
  const enableMoveCoin = !enableAddCoin
366
- && (currentChainId === getL1ChainId(checkout.config)
367
- || currentChainId === getL2ChainId(checkout.config))
366
+ && (currentChainId === checkout.config.l1ChainId
367
+ || currentChainId === checkout.config.l2ChainId)
368
368
  && (supportedTopUps?.isBridgeEnabled ?? true);
369
369
  setIsBridgeEnabled(enableMoveCoin);
370
370
  const enableSwapCoin = !enableAddCoin
371
- && currentChainId === getL2ChainId(checkout.config)
371
+ && currentChainId === checkout.config.l2ChainId
372
372
  && (supportedTopUps?.isSwapEnabled ?? true)
373
373
  && (supportedTopUps?.isSwapAvailable ?? true);
374
374
  setIsSwapEnabled(enableSwapCoin);
@@ -399,13 +399,13 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
399
399
  },
400
400
  });
401
401
  if (isAddTokensEnabled) {
402
- orchestrationEvents.sendRequestAddTokensEvent(eventTarget, no.IMTBL_WALLET_WIDGET_EVENT, {
402
+ orchestrationEvents.sendRequestAddTokensEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
403
403
  toAmount: '',
404
404
  toTokenAddress: balanceInfo.address ?? '',
405
405
  });
406
406
  return;
407
407
  }
408
- orchestrationEvents.sendRequestOnrampEvent(eventTarget, no.IMTBL_WALLET_WIDGET_EVENT, {
408
+ orchestrationEvents.sendRequestOnrampEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
409
409
  tokenAddress: balanceInfo.address ?? '',
410
410
  amount: '',
411
411
  });
@@ -432,7 +432,7 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
432
432
  tokenAddress: balanceInfo.address,
433
433
  },
434
434
  });
435
- orchestrationEvents.sendRequestSwapEvent(eventTarget, no.IMTBL_WALLET_WIDGET_EVENT, {
435
+ orchestrationEvents.sendRequestSwapEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
436
436
  fromTokenAddress: balanceInfo.address ?? '',
437
437
  toTokenAddress: '',
438
438
  amount: '',
@@ -543,7 +543,7 @@ function NetworkMenu() {
543
543
  (async () => {
544
544
  if (checkout) {
545
545
  const allowedNetworksResponse = await checkout.getNetworkAllowList({
546
- type: me.ALL,
546
+ type: ge.ALL,
547
547
  });
548
548
  setNetworks(allowedNetworksResponse?.networks ?? []);
549
549
  }
@@ -691,7 +691,7 @@ function WalletBalances({ balancesLoading, theme, showNetworkMenu, }) {
691
691
  const showAddCoins = reactExports.useMemo(() => {
692
692
  if (!checkout || !network)
693
693
  return false;
694
- return (Number(network.chainId) === getL2ChainId(checkout.config)
694
+ return (Number(network.chainId) === checkout.config.l2ChainId
695
695
  && Boolean(supportedTopUps?.isBridgeEnabled
696
696
  || supportedTopUps?.isSwapEnabled
697
697
  || supportedTopUps?.isOnRampEnabled));
@@ -703,10 +703,10 @@ function WalletBalances({ balancesLoading, theme, showNetworkMenu, }) {
703
703
  control: 'AddCoins',
704
704
  controlType: 'Button',
705
705
  });
706
- orchestrationEvents.sendRequestAddTokensEvent(eventTarget, no.IMTBL_WALLET_WIDGET_EVENT, {});
706
+ orchestrationEvents.sendRequestAddTokensEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {});
707
707
  };
708
708
  const handleBridgeToL2OnClick = (address) => {
709
- orchestrationEvents.sendRequestBridgeEvent(eventTarget, no.IMTBL_WALLET_WIDGET_EVENT, {
709
+ orchestrationEvents.sendRequestBridgeEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
710
710
  tokenAddress: address ?? '',
711
711
  amount: '',
712
712
  });
@@ -729,8 +729,8 @@ function WalletBalances({ balancesLoading, theme, showNetworkMenu, }) {
729
729
 
730
730
  function getWalletLogoByName(walletProviderName) {
731
731
  switch (walletProviderName) {
732
- case ge.METAMASK: return 'MetaMaskSymbol';
733
- case ge.PASSPORT: return 'PassportSymbolOutlined';
732
+ case fe.METAMASK: return 'MetaMaskSymbol';
733
+ case fe.PASSPORT: return 'PassportSymbolOutlined';
734
734
  case 'walletconnect': return 'WalletConnectSymbol';
735
735
  default: return 'MetaMaskSymbol';
736
736
  }
@@ -1,4 +1,4 @@
1
- import { eq as pTimeout } from './index-CqT6H9W-.js';
1
+ import { eo as pTimeout } from './index-S9AO9JR0.js';
2
2
 
3
3
  // Check if a user is opening the link in a new tab
4
4
  function userNewTab(event) {
@@ -1,4 +1,4 @@
1
- import { e5 as getAugmentedNamespace, aC as commonjsGlobal } from './index-CqT6H9W-.js';
1
+ import { e3 as getAugmentedNamespace, az as commonjsGlobal } from './index-S9AO9JR0.js';
2
2
 
3
3
  var dist$1 = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { dY as se$1, dZ as T$2, d_ as oe$1, d$ as R$1, e0 as a$2, e1 as te$1, e2 as p$1, e3 as ne$1, e4 as y$1 } from './index-CqT6H9W-.js';
1
+ import { dW as se$1, dX as T$2, dY as oe$1, dZ as R$1, d_ as a$2, d$ as te$1, e0 as p$1, e1 as ne$1, e2 as y$1 } from './index-S9AO9JR0.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { er as gracefulDecodeURIComponent, ej as isPlainObject } from './index-CqT6H9W-.js';
1
+ import { ep as gracefulDecodeURIComponent, eh as isPlainObject } from './index-S9AO9JR0.js';
2
2
 
3
3
  /**
4
4
  * Returns an object containing only the properties prefixed by the input
@@ -1,4 +1,4 @@
1
- import { ed as __assign } from './index-CqT6H9W-.js';
1
+ import { eb as __assign } from './index-S9AO9JR0.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function disabledActionDestinations(plan, settings) {
@@ -1,4 +1,4 @@
1
- import { e6 as __awaiter, e7 as __generator, e8 as loadScript, e9 as getNextIntegrationsURL, ea as unloadScript, eb as __spreadArray, ec as isOffline, ed as __assign, ee as ContextCancelation, ef as applyDestinationMiddleware, eg as dist, eh as isServer, ei as mergedOptions, ej as isPlainObject, ek as pWhile, el as PriorityQueue, em as PersistedPriorityQueue, en as attempt, eo as isOnline, ep as Context } from './index-CqT6H9W-.js';
1
+ import { e4 as __awaiter, e5 as __generator, e6 as loadScript, e7 as getNextIntegrationsURL, e8 as unloadScript, e9 as __spreadArray, ea as isOffline, eb as __assign, ec as ContextCancelation, ed as applyDestinationMiddleware, ee as dist, ef as isServer, eg as mergedOptions, eh as isPlainObject, ei as pWhile, ej as PriorityQueue, ek as PersistedPriorityQueue, el as attempt, em as isOnline, en as Context } from './index-S9AO9JR0.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function normalizeName(name) {