@imtbl/sdk 1.66.1-alpha.2 → 1.66.1-alpha.4

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 (56) hide show
  1. package/dist/{blockchain_data-dfoC0K3K.js → blockchain_data-BEnbwkiw.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddTokensWidget-BjycT3I4.js → AddTokensWidget-Cjk_HQA1.js} +135 -97
  4. package/dist/browser/checkout/{BridgeWidget-CDm5T-Jd.js → BridgeWidget-mlln66om.js} +17 -10
  5. package/dist/browser/checkout/{CommerceWidget-CUKoJbId.js → CommerceWidget-4W0W57E3.js} +17 -17
  6. package/dist/browser/checkout/{CryptoFiatProvider-CwazbmDy.js → CryptoFiatProvider-mLkYDApl.js} +1 -1
  7. package/dist/browser/checkout/{EllipsizedText-C9lujrS3.js → EllipsizedText-aP0eY8UW.js} +1 -1
  8. package/dist/browser/checkout/{FeesBreakdown-CZlWvkef.js → FeesBreakdown-BksmvQsJ.js} +1 -1
  9. package/dist/browser/checkout/{HandoverContent-dY5EYKkY.js → HandoverContent-1i50BvLl.js} +1 -1
  10. package/dist/browser/checkout/{OnRampWidget-C_Q1-XYp.js → OnRampWidget-fwT2M01M.js} +3 -3
  11. package/dist/browser/checkout/{SaleWidget-DeiYbYyq.js → SaleWidget-DDSALpw_.js} +14 -14
  12. package/dist/browser/checkout/{SpendingCapHero-Dwl2GR_J.js → SpendingCapHero-DcKVcu0r.js} +1 -1
  13. package/dist/browser/checkout/{SwapWidget-C32_9FA1.js → SwapWidget-CLMf9axF.js} +9 -9
  14. package/dist/browser/checkout/{retry-DV1KI8W_.js → TokenImage-DnUIY0dG.js} +15 -15
  15. package/dist/browser/checkout/{TopUpView-C0Gxvke4.js → TopUpView-C56Mvb2J.js} +3 -3
  16. package/dist/browser/checkout/{WalletApproveHero-DulrWAxN.js → WalletApproveHero-gWx-BsWH.js} +3 -3
  17. package/dist/browser/checkout/{WalletWidget-dgfevyR5.js → WalletWidget-DprJHUoU.js} +4 -4
  18. package/dist/browser/checkout/{auto-track-j4HFKgze.js → auto-track-DPLlDEJK.js} +1 -1
  19. package/dist/browser/checkout/{index-CUyo8cNs.js → index-BFcnR906.js} +92 -43
  20. package/dist/browser/checkout/{index-BoZCoRyq.js → index-BZ1CMpXq.js} +1 -1
  21. package/dist/browser/checkout/{index-D4ro_KZl.js → index-B_DLrm5T.js} +1 -1
  22. package/dist/browser/checkout/{index-DJcXHr0B.js → index-CHlzVNJj.js} +1 -1
  23. package/dist/browser/checkout/{index-Bct_qn4Q.js → index-CMidAMjm.js} +1 -1
  24. package/dist/browser/checkout/{index-B8ABMQfv.js → index-CRBiOS9S.js} +1 -1
  25. package/dist/browser/checkout/{index-CAyVlyDj.js → index-CWYCPhea.js} +2 -2
  26. package/dist/browser/checkout/{index-DK_ylCU9.js → index-CzwH1O-9.js} +1 -1
  27. package/dist/browser/checkout/{index-BxuxZl2S.js → index-DzDQLax_.js} +1 -1
  28. package/dist/browser/checkout/{index.umd-X62nWgPn.js → index.umd-DtrUPF1C.js} +1 -1
  29. package/dist/browser/checkout/sdk.js +4 -4
  30. package/dist/browser/checkout/{useInterval-C_5r-ps0.js → useInterval-C4vnW8Dn.js} +1 -1
  31. package/dist/browser/checkout/widgets-esm.js +1 -1
  32. package/dist/browser/checkout/widgets.js +1019 -980
  33. package/dist/{checkout-B-42ee05.js → checkout-6ophYKDQ.js} +5 -5
  34. package/dist/checkout.js +5 -5
  35. package/dist/{config-X2WfOmmd.js → config-CdHCYQMN.js} +1 -1
  36. package/dist/config.js +1 -1
  37. package/dist/{index-g4vUMQmn.js → index-0Tjc2Up_.js} +3 -3
  38. package/dist/{index-BvTF3WL7.js → index-BWxobsFD.js} +1 -1
  39. package/dist/{index-Au1gnKjG.js → index-CT-X2tAq.js} +4 -4
  40. package/dist/{index-BbrNTP-4.js → index-DmiBAu8_.js} +1 -1
  41. package/dist/{index-CWnoLBza.js → index-pWw9OINQ.js} +1 -1
  42. package/dist/{index-oo7rpW9O.js → index-wpHo-aL-.js} +1 -1
  43. package/dist/index.browser.js +4 -4
  44. package/dist/index.cjs +7 -7
  45. package/dist/index.js +14 -14
  46. package/dist/{minting_backend-CiqOFYyy.js → minting_backend-nkfeNvS6.js} +3 -3
  47. package/dist/minting_backend.js +5 -5
  48. package/dist/{orderbook-C8jP2iEC.js → orderbook-D2PFYxzz.js} +1 -1
  49. package/dist/orderbook.js +2 -2
  50. package/dist/{passport-D2kO8kMU.js → passport-DOKmDKvk.js} +3 -3
  51. package/dist/passport.js +4 -4
  52. package/dist/{webhook-po83egAI.js → webhook-DSPumM3Z.js} +1 -1
  53. package/dist/webhook.js +2 -2
  54. package/dist/{x-gavQ_A3S.js → x-D-KT9sNW.js} +3 -3
  55. package/dist/x.js +4 -4
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { A as APIError, B as BlockchainData } from './index-g4vUMQmn.js';
2
- import { i as index } from './index-oo7rpW9O.js';
1
+ import { A as APIError, B as BlockchainData } from './index-0Tjc2Up_.js';
2
+ import { i as index } from './index-wpHo-aL-.js';
3
3
 
4
4
  var blockchain_data = /*#__PURE__*/Object.freeze({
5
5
  __proto__: null,
@@ -1,6 +1,6 @@
1
- export { A as APIError, B as BlockchainData } from './index-g4vUMQmn.js';
2
- export { i as Types } from './index-oo7rpW9O.js';
3
- import './index-BbrNTP-4.js';
1
+ export { A as APIError, B as BlockchainData } from './index-0Tjc2Up_.js';
2
+ export { i as Types } from './index-wpHo-aL-.js';
3
+ import './index-DmiBAu8_.js';
4
4
  import 'axios';
5
5
  import 'lru-memorise';
6
6
  import 'global-const';
@@ -1,9 +1,9 @@
1
- import { _ as _objectWithoutProperties, w as useTheme, x as useForwardLocalDomRef, y as useGetSubcomponentChild, z as useSplitApartChildrenAndSubComponents, r as reactExports, D as merge$2, F as useResizeObserver, p as jsxs, o as jsx, G as SmartClone, H as Box, J as isChildSubcomponent, K as flattenChildren, M as Body, N as useTheme$1, Q as Icon, R as ButtCon, T as Button, U as _defineProperty, X as isDualVariantIcon, Y as _slicedToArray, Z as isNumberWithinTotal, $ as getStartingSize, a0 as BaseClickable, a1 as ClassNames, a2 as _toConsumableArray, a3 as isError, a4 as Badge, a5 as FramedIcon, a6 as FramedImage, a7 as FramedLogo, a8 as Stack, a9 as hFlex, aa as usePrevious, ab as useBrowserEffect, ac as getHeadingTextStyles, ad as vFlex, ae as centerFlexChildren, af as FormControlLabel, ag as FormControlValidation, ah as FormControlCaption, I as IMTBLWidgetEvents, A as AddTokensEventType, ai as getDefaultExportFromCjs, aj as commonjsGlobal, u as useTranslation, ak as MenuItem, al as tokenValueFormat, am as DEFAULT_TOKEN_FORMATTING_DECIMALS, an as BigNumber, ao as getRemoteVideo, ap as FramedVideo, aq as motion, ar as listItemVariants, as as Divider, at as Fragment, au as listVariants, av as useProvidersContext, aw as Drawer, ax as useAnalytics, ay as UserJourney, az as isPassportProvider, aA as Heading, aB as WalletDrawer, aC as UnableToConnectDrawer, aD as ChangedYourMindDrawer, aE as WalletProviderRdns, aF as getProviderSlugFromRdns, aG as Web3Provider, aH as connectEIP6963Provider, aI as identifyUser, aJ as ConnectEIP6963ProviderError, aK as ProvidersContextActions, aL as ViewContext, V as ViewActions, m as SharedViews, j as ChainId, aM as commonjsRequire, aN as getRemoteImage, aO as useHandover, aP as HandoverTarget, aQ as EventTargetContext, aR as getRemoteRive, aS as Trans, aT as Link, aU as useInjectedProviders, aV as getDefaultTokenImage, aW as keyframes, aX as OverflowDrawerMenu, aY as SimpleLayout, aZ as TokenFilterTypes, h as getL2ChainId, a_ as isNativeToken, a$ as getTokenImageByAddress, b0 as orchestrationEvents, b1 as requireSecp256k1$1, b2 as requireLib_commonjs, b3 as require$$0$2, b4 as bech32$2, b5 as bnExports$1, b6 as require$$0$3, b7 as getAugmentedNamespace, b8 as require$$0$4, b9 as minimalisticAssert, ba as require$$2, bb as hash$6, bc as MaxUint256, bd as merge$3, be as SvgIcon, bf as WalletWarningHero, bg as Environment, bh as t, bi as PriceDisplay, L as LoadingView, bj as viewReducer, bk as initialViewState, bl as isValidAddress, bm as amountInputValidation, bn as CloudImage, E as ErrorView, bo as ServiceUnavailableErrorView, bp as ServiceType } from './index-CUyo8cNs.js';
2
- import { f as formatUnits, p as parseUnits } from './index-DJcXHr0B.js';
3
- import { E as EllipsizedText, C as Contract } from './EllipsizedText-C9lujrS3.js';
4
- import { r as retry, T as TokenImage } from './retry-DV1KI8W_.js';
5
- import { H as HandoverContent } from './HandoverContent-dY5EYKkY.js';
6
- import { F as FeesBreakdown } from './FeesBreakdown-CZlWvkef.js';
1
+ import { _ as _objectWithoutProperties, w as useTheme, x as useForwardLocalDomRef, y as useGetSubcomponentChild, z as useSplitApartChildrenAndSubComponents, r as reactExports, D as merge$2, F as useResizeObserver, p as jsxs, o as jsx, G as SmartClone, H as Box, J as isChildSubcomponent, K as flattenChildren, M as Body, N as useTheme$1, Q as Icon, R as ButtCon, T as Button, U as _defineProperty, X as isDualVariantIcon, Y as _slicedToArray, Z as isNumberWithinTotal, $ as getStartingSize, a0 as BaseClickable, a1 as ClassNames, a2 as _toConsumableArray, a3 as isError, a4 as Badge, a5 as FramedIcon, a6 as FramedImage, a7 as FramedLogo, a8 as Stack, a9 as hFlex, aa as usePrevious, ab as useBrowserEffect, ac as getHeadingTextStyles, ad as vFlex, ae as centerFlexChildren, af as FormControlLabel, ag as FormControlValidation, ah as FormControlCaption, I as IMTBLWidgetEvents, A as AddTokensEventType, ai as getDefaultExportFromCjs, aj as commonjsGlobal, u as useTranslation, ak as MenuItem, al as tokenValueFormat, am as DEFAULT_TOKEN_FORMATTING_DECIMALS, an as BigNumber, ao as getRemoteVideo, ap as FramedVideo, aq as motion, ar as listItemVariants, as as Divider, at as Fragment, au as listVariants, av as useProvidersContext, aw as Drawer, ax as useAnalytics, ay as UserJourney, az as isPassportProvider, aA as Heading, aB as WalletDrawer, aC as UnableToConnectDrawer, aD as ChangedYourMindDrawer, aE as WalletProviderRdns, aF as getProviderSlugFromRdns, aG as Web3Provider, aH as connectEIP6963Provider, aI as identifyUser, aJ as ConnectEIP6963ProviderError, aK as ProvidersContextActions, aL as ViewContext, V as ViewActions, m as SharedViews, j as ChainId, aM as commonjsRequire, aN as getRemoteImage, aO as useHandover, aP as HandoverTarget, aQ as EventTargetContext, aR as getRemoteRive, aS as Trans, aT as Link, aU as keyframes, aV as getDefaultTokenImage, aW as TokenFilterTypes, h as getL2ChainId, aX as isNativeToken, aY as getTokenImageByAddress, aZ as TextInput, a_ as VerticalMenu, a$ as useInjectedProviders, b0 as SimpleLayout, b1 as orchestrationEvents, b2 as requireSecp256k1$1, b3 as requireLib_commonjs, b4 as require$$0$2, b5 as bech32$2, b6 as bnExports$1, b7 as require$$0$3, b8 as getAugmentedNamespace, b9 as require$$0$4, ba as minimalisticAssert, bb as require$$2, bc as hash$6, bd as MaxUint256, be as merge$3, bf as SvgIcon, bg as WalletWarningHero, bh as Environment, bi as t, bj as PriceDisplay, L as LoadingView, bk as viewReducer, bl as initialViewState, bm as isValidAddress, bn as amountInputValidation, bo as CloudImage, E as ErrorView, bp as ServiceUnavailableToRegionErrorView, bq as ServiceType } from './index-BFcnR906.js';
2
+ import { f as formatUnits, p as parseUnits } from './index-CHlzVNJj.js';
3
+ import { E as EllipsizedText, C as Contract } from './EllipsizedText-aP0eY8UW.js';
4
+ import { r as retry, T as TokenImage } from './TokenImage-DnUIY0dG.js';
5
+ import { H as HandoverContent } from './HandoverContent-1i50BvLl.js';
6
+ import { F as FeesBreakdown } from './FeesBreakdown-BksmvQsJ.js';
7
7
 
8
8
  var bannerSx = {
9
9
  d: "flex",
@@ -2638,6 +2638,7 @@ const SQUID_NATIVE_TOKEN = '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE';
2638
2638
  const FIXED_HANDOVER_DURATION = 2000;
2639
2639
  const APPROVE_TXN_ANIMATION = '/access_coins.riv';
2640
2640
  const EXECUTE_TXN_ANIMATION = '/swapping_coins.riv';
2641
+ const TOKEN_PRIORITY_ORDER = ['IMX', 'USDC', 'ETH'];
2641
2642
 
2642
2643
  function SelectedRouteOptionContainer({ children, onClick, selected, }) {
2643
2644
  return (jsx(Stack, { direction: "row", alignItems: "center", gap: "base.spacing.x4", sx: {
@@ -5946,6 +5947,130 @@ function SquidFooter() {
5946
5947
  } }) }));
5947
5948
  }
5948
5949
 
5950
+ const PULSE_SHADOW = keyframes `
5951
+ 0% {
5952
+ box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
5953
+ }
5954
+ 50% {
5955
+ box-shadow: 0 0 10px 3px rgba(54, 210, 227, 0.1);
5956
+ }
5957
+ 100% {
5958
+ box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
5959
+ }
5960
+ `;
5961
+
5962
+ function TokenDrawerMenu({ checkout, config, toTokenAddress, }) {
5963
+ const { addTokensState: { tokens, selectedToken }, addTokensDispatch, } = reactExports.useContext(AddTokensContext);
5964
+ const { showErrorHandover } = useError(config.environment);
5965
+ const [visible, setVisible] = reactExports.useState(false);
5966
+ const [allowedTokens, setAllowedTokens] = reactExports.useState([]);
5967
+ const [searchValue, setSearchValue] = reactExports.useState('');
5968
+ const defaultTokenImage = getDefaultTokenImage(checkout?.config.environment, config.theme);
5969
+ const { track } = useAnalytics();
5970
+ const setSelectedToken = (token) => {
5971
+ track({
5972
+ userJourney: UserJourney.ADD_TOKENS,
5973
+ screen: 'InputScreen',
5974
+ control: 'TokensMenu',
5975
+ controlType: 'MenuItem',
5976
+ extras: {
5977
+ tokenAddress: token?.address,
5978
+ },
5979
+ });
5980
+ addTokensDispatch({
5981
+ payload: {
5982
+ type: AddTokensActions.SET_SELECTED_TOKEN,
5983
+ selectedToken: token,
5984
+ },
5985
+ });
5986
+ };
5987
+ const handleTokenChange = reactExports.useCallback((token) => {
5988
+ setSelectedToken(token);
5989
+ setVisible(false);
5990
+ setSearchValue('');
5991
+ }, []);
5992
+ const isSelected = reactExports.useCallback((token) => token.address === selectedToken?.address, [selectedToken]);
5993
+ const tokenChoiceOptions = reactExports.useMemo(() => allowedTokens.filter((token) => {
5994
+ if (!searchValue)
5995
+ return true;
5996
+ return token.symbol.toLowerCase().startsWith(searchValue.toLowerCase());
5997
+ }), [tokens, handleTokenChange, isSelected, defaultTokenImage, searchValue]);
5998
+ const handleTokenIconClick = reactExports.useCallback(() => {
5999
+ setVisible(!visible);
6000
+ }, [visible]);
6001
+ const handleDrawerClose = reactExports.useCallback(() => {
6002
+ setVisible(false);
6003
+ setSearchValue('');
6004
+ }, [setVisible, setSearchValue]);
6005
+ reactExports.useEffect(() => {
6006
+ if (!checkout)
6007
+ return;
6008
+ (async () => {
6009
+ try {
6010
+ const tokenResponse = await checkout.getTokenAllowList({
6011
+ type: TokenFilterTypes.SWAP,
6012
+ chainId: getL2ChainId(checkout.config),
6013
+ });
6014
+ if (tokenResponse?.tokens.length > 0) {
6015
+ const updatedTokens = tokenResponse.tokens.map((token) => {
6016
+ if (isNativeToken(token.address)) {
6017
+ return {
6018
+ ...token,
6019
+ icon: getTokenImageByAddress(checkout.config.environment, token.symbol),
6020
+ };
6021
+ }
6022
+ return token;
6023
+ });
6024
+ updatedTokens.sort((a, b) => {
6025
+ const aIndex = TOKEN_PRIORITY_ORDER.findIndex((token) => token === a.symbol);
6026
+ const bIndex = TOKEN_PRIORITY_ORDER.findIndex((token) => token === b.symbol);
6027
+ // If both tokens are not in the priority list, sort by symbol
6028
+ if (aIndex === -1 && bIndex === -1) {
6029
+ return a.symbol.localeCompare(b.symbol);
6030
+ }
6031
+ // If only one token is in the priority list, sort it first
6032
+ if (aIndex === -1) {
6033
+ return 1;
6034
+ }
6035
+ if (bIndex === -1) {
6036
+ return -1;
6037
+ }
6038
+ // If both tokens are in the priority list, sort by index
6039
+ return aIndex < bIndex ? -1 : 1;
6040
+ });
6041
+ setAllowedTokens(updatedTokens);
6042
+ if (toTokenAddress) {
6043
+ const preselectedToken = updatedTokens.find((token) => token.address?.toLowerCase() === toTokenAddress.toLowerCase());
6044
+ if (preselectedToken) {
6045
+ setSelectedToken(preselectedToken);
6046
+ }
6047
+ }
6048
+ addTokensDispatch({
6049
+ payload: {
6050
+ type: AddTokensActions.SET_ALLOWED_TOKENS,
6051
+ allowedTokens: tokenResponse.tokens,
6052
+ },
6053
+ });
6054
+ }
6055
+ }
6056
+ catch (error) {
6057
+ showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { error });
6058
+ }
6059
+ })();
6060
+ }, [checkout, toTokenAddress]);
6061
+ return (jsxs(Drawer, { visible: visible, onCloseDrawer: handleDrawerClose, size: "full", headerBarTitle: "Add Tokens", drawerCloseIcon: "ChevronExpand", showHeaderBar: true, outsideClicksClose: true, escapeKeyClose: true, children: [jsx(Drawer.Target, { children: selectedToken ? (jsx(SmartClone, { onClick: handleTokenIconClick, children: jsx(FramedImage, { size: "xLarge", use: (jsx(TokenImage, { src: selectedToken?.icon, name: selectedToken?.name, defaultImage: defaultTokenImage })), padded: true, emphasized: true, circularFrame: true, sx: {
6062
+ cursor: 'pointer',
6063
+ mb: 'base.spacing.x1',
6064
+ // eslint-disable-next-line @typescript-eslint/naming-convention
6065
+ '&:hover': {
6066
+ boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
6067
+ },
6068
+ } }) })) : (jsx(Box, { sx: { animation: `${PULSE_SHADOW} 2s infinite ease-in-out`, borderRadius: '50%' }, children: jsx(ButtCon, { size: "large", variant: "tertiary", icon: "Add", onClick: handleTokenIconClick }) })) }), jsxs(Drawer.Content, { sx: { paddingX: 'base.spacing.x2' }, children: [jsx(TextInput, { sx: { marginBottom: 'base.spacing.x2' }, placeholder: "Search tokens", sizeVariant: "medium", onChange: (event) => {
6069
+ setSearchValue(event.target.value);
6070
+ }, children: jsx(TextInput.Icon, { icon: "Search" }) }), jsx(VerticalMenu, { sx: { maxHeight: '100%' }, children: tokenChoiceOptions.length > 0
6071
+ && tokenChoiceOptions.map((token) => (jsxs(MenuItem, { size: "medium", onClick: () => handleTokenChange(token), selected: isSelected(token), emphasized: true, children: [jsx(MenuItem.FramedImage, { circularFrame: true, use: (jsx(TokenImage, { src: token.icon, name: token.name, defaultImage: defaultTokenImage })), emphasized: false }), jsx(MenuItem.Label, { children: token.symbol }), token.symbol !== token.name && (jsx(MenuItem.Caption, { children: token.name }))] }, token.name))) })] })] }));
6072
+ }
6073
+
5949
6074
  function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOption = true, showSwapOption = true, showBridgeOption = true, onCloseButtonClick, showBackButton, onBackButtonClick, }) {
5950
6075
  const inputRef = reactExports.useRef(null);
5951
6076
  const { fetchRoutesWithRateLimit, resetRoutes } = useRoutes();
@@ -5960,7 +6085,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
5960
6085
  const [showPayWithDrawer, setShowPayWithDrawer] = reactExports.useState(false);
5961
6086
  const [showDeliverToDrawer, setShowDeliverToDrawer] = reactExports.useState(false);
5962
6087
  const [onRampAllowedTokens, setOnRampAllowedTokens] = reactExports.useState([]);
5963
- const [allowedTokens, setAllowedTokens] = reactExports.useState([]);
5964
6088
  const [inputValue, setInputValue] = reactExports.useState(selectedAmount || toAmount || '');
5965
6089
  const [fetchingRoutes, setFetchingRoutes] = reactExports.useState(false);
5966
6090
  const [insufficientBalance, setInsufficientBalance] = reactExports.useState(false);
@@ -5982,23 +6106,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
5982
6106
  },
5983
6107
  });
5984
6108
  }, 2500), []);
5985
- const setSelectedToken = (token) => {
5986
- track({
5987
- userJourney: UserJourney.ADD_TOKENS,
5988
- screen: 'InputScreen',
5989
- control: 'TokensMenu',
5990
- controlType: 'MenuItem',
5991
- extras: {
5992
- tokenAddress: token?.address,
5993
- },
5994
- });
5995
- addTokensDispatch({
5996
- payload: {
5997
- type: AddTokensActions.SET_SELECTED_TOKEN,
5998
- selectedToken: token,
5999
- },
6000
- });
6001
- };
6002
6109
  const setSelectedRouteData = (route) => {
6003
6110
  if (route) {
6004
6111
  track({
@@ -6094,46 +6201,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6094
6201
  setSelectedRouteData(routes[0]);
6095
6202
  }
6096
6203
  }, [routes]);
6097
- reactExports.useEffect(() => {
6098
- if (!checkout)
6099
- return;
6100
- const fetchTokens = async () => {
6101
- try {
6102
- const tokenResponse = await checkout.getTokenAllowList({
6103
- type: TokenFilterTypes.SWAP,
6104
- chainId: getL2ChainId(checkout.config),
6105
- });
6106
- if (tokenResponse?.tokens.length > 0) {
6107
- const updatedTokens = tokenResponse.tokens.map((token) => {
6108
- if (isNativeToken(token.address)) {
6109
- return {
6110
- ...token,
6111
- icon: getTokenImageByAddress(checkout.config.environment, token.symbol),
6112
- };
6113
- }
6114
- return token;
6115
- });
6116
- setAllowedTokens(updatedTokens);
6117
- if (toTokenAddress) {
6118
- const preselectedToken = updatedTokens.find((token) => token.address?.toLowerCase() === toTokenAddress.toLowerCase());
6119
- if (preselectedToken) {
6120
- setSelectedToken(preselectedToken);
6121
- }
6122
- }
6123
- addTokensDispatch({
6124
- payload: {
6125
- type: AddTokensActions.SET_ALLOWED_TOKENS,
6126
- allowedTokens: tokenResponse.tokens,
6127
- },
6128
- });
6129
- }
6130
- }
6131
- catch (error) {
6132
- showErrorHandover(AddTokensErrorTypes.SERVICE_BREAKDOWN, { error });
6133
- }
6134
- };
6135
- fetchTokens();
6136
- }, [checkout, toTokenAddress]);
6137
6204
  reactExports.useEffect(() => {
6138
6205
  if (!checkout)
6139
6206
  return;
@@ -6153,10 +6220,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6153
6220
  };
6154
6221
  fetchOnRampTokens();
6155
6222
  }, [checkout]);
6156
- const isSelected = reactExports.useCallback((token) => token.address === selectedToken, [selectedToken]);
6157
- const handleTokenChange = reactExports.useCallback((token) => {
6158
- setSelectedToken(token);
6159
- }, []);
6160
6223
  const sendRequestOnRampEvent = () => {
6161
6224
  track({
6162
6225
  userJourney: UserJourney.ADD_TOKENS,
@@ -6242,13 +6305,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6242
6305
  return false;
6243
6306
  }, [selectedToken, onRampAllowedTokens, showOnrampOption]);
6244
6307
  const showInitialEmptyState = !selectedToken;
6245
- const defaultTokenImage = getDefaultTokenImage(checkout?.config.environment, config.theme);
6246
- reactExports.useEffect(() => {
6247
- if (inputRef.current && !showInitialEmptyState) {
6248
- inputRef.current.focus();
6249
- }
6250
- }, [showInitialEmptyState]);
6251
- const tokenChoiceOptions = reactExports.useMemo(() => allowedTokens.map((token) => (jsxs(MenuItem, { size: "medium", onClick: () => handleTokenChange(token), selected: isSelected(token), emphasized: true, children: [jsx(MenuItem.FramedImage, { circularFrame: true, use: (jsx(TokenImage, { src: token.icon, name: token.name, defaultImage: defaultTokenImage })), emphasized: false }), jsx(MenuItem.Label, { children: token.symbol }), token.symbol !== token.name && (jsx(MenuItem.Caption, { children: token.name }))] }, token.name))), [allowedTokens, handleTokenChange, isSelected, defaultTokenImage]);
6252
6308
  const shouldShowBackButton = showBackButton && onBackButtonClick;
6253
6309
  const routeInputsReady = !!selectedToken
6254
6310
  && !!fromAddress
@@ -6272,17 +6328,6 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6272
6328
  });
6273
6329
  sendConnectProviderSuccessEvent(eventTarget, providerType, provider, providerInfo);
6274
6330
  };
6275
- const pulseShadow = keyframes `
6276
- 0% {
6277
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 1);
6278
- }
6279
- 50% {
6280
- box-shadow: 0 0 10px 3px rgba(54, 210, 227, 0.1);
6281
- }
6282
- 100% {
6283
- box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
6284
- }
6285
- `;
6286
6331
  return (jsx(SimpleLayout, { containerSx: { bg: 'transparent' }, header: (jsxs(Stack, { direction: "row", sx: {
6287
6332
  pos: 'absolute',
6288
6333
  w: '100%',
@@ -6294,14 +6339,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6294
6339
  px: 'base.spacing.x2',
6295
6340
  w: '100%',
6296
6341
  pt: 'base.spacing.x1',
6297
- }, justifyContent: "center", alignItems: "center", children: [jsx(OverflowDrawerMenu, { customTarget: showInitialEmptyState ? (jsx(Box, { sx: { animation: `${pulseShadow} 2s infinite ease-in-out`, borderRadius: '50%' }, children: jsx(ButtCon, { icon: "Add", size: "large", variant: "tertiary" }) })) : (jsx(FramedImage, { size: "xLarge", use: (jsx(TokenImage, { src: selectedToken?.icon, name: selectedToken?.name, defaultImage: defaultTokenImage })), padded: true, emphasized: true, circularFrame: true, sx: {
6298
- cursor: 'pointer',
6299
- mb: 'base.spacing.x1',
6300
- // eslint-disable-next-line @typescript-eslint/naming-convention
6301
- '&:hover': {
6302
- boxShadow: ({ base }) => `0 0 0 ${base.border.size[200]} ${base.color.text.body.primary}`,
6303
- },
6304
- } })), drawerSize: "full", headerBarTitle: "Add Token", drawerCloseIcon: "ChevronExpand", children: tokenChoiceOptions }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx(HeroTextInput, { inputRef: inputRef, testId: "add-tokens-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }), jsx(HeroFormControl.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}
6342
+ }, justifyContent: "center", alignItems: "center", children: [jsx(TokenDrawerMenu, { checkout: checkout, config: config, toTokenAddress: toTokenAddress }), showInitialEmptyState ? (jsx(Body, { children: "Add Token" })) : (jsxs(HeroFormControl, { validationStatus: inputValue === '0' ? 'error' : 'success', children: [jsxs(HeroFormControl.Label, { children: ["Add", ' ', selectedToken.symbol] }), jsx(HeroTextInput, { inputRef: inputRef, testId: "add-tokens-amount-input", type: "number", value: inputValue, onChange: (value) => handleOnAmountInputChange(value), placeholder: "0", maxTextSize: "xLarge" }), jsx(HeroFormControl.Caption, { children: `${t('views.ADD_TOKENS.fees.fiatPricePrefix')}
6305
6343
  $${getFormattedNumberWithDecimalPlaces(selectedAmountUsd)}` })] }))] }), jsxs(Stack, { testId: "bottomSection", sx: {
6306
6344
  alignSelf: 'stretch',
6307
6345
  p: 'base.spacing.x3',
@@ -6312,7 +6350,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6312
6350
  }, gap: "base.spacing.x4", children: [jsxs(Stack, { gap: "0px", children: [jsx(SelectedWallet, { sx: selectedToken
6313
6351
  && !fromAddress
6314
6352
  && inputValue
6315
- ? { animation: `${pulseShadow} 2s infinite ease-in-out` }
6353
+ ? { animation: `${PULSE_SHADOW} 2s infinite ease-in-out` }
6316
6354
  : {}, label: "Send from", providerInfo: {
6317
6355
  ...fromProviderInfo,
6318
6356
  address: fromAddress,
@@ -6328,7 +6366,7 @@ function AddTokens({ checkout, toAmount, config, toTokenAddress, showOnrampOptio
6328
6366
  && fromAddress
6329
6367
  && !toAddress
6330
6368
  && inputValue
6331
- ? { animation: `${pulseShadow} 2s infinite ease-in-out` }
6369
+ ? { animation: `${PULSE_SHADOW} 2s infinite ease-in-out` }
6332
6370
  : {}, label: "Deliver to", providerInfo: {
6333
6371
  ...toProviderInfo,
6334
6372
  address: toAddress,
@@ -174057,7 +174095,7 @@ function AddTokensWidget({ showOnrampOption = true, showSwapOption = true, showB
174057
174095
  screen: 'Error',
174058
174096
  });
174059
174097
  } })), viewState.view.type
174060
- === SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx(ServiceUnavailableErrorView, { service: ServiceType.GENERIC, onCloseClick: () => sendAddTokensCloseEvent(eventTarget) }))] }) }) }));
174098
+ === SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx(ServiceUnavailableToRegionErrorView, { service: ServiceType.GENERIC, onCloseClick: () => sendAddTokensCloseEvent(eventTarget) }))] }) }) }));
174061
174099
  }
174062
174100
 
174063
174101
  export { AddTokensWidget as default };
@@ -1,12 +1,12 @@
1
- import { c1 as axios, c2 as CheckoutErrorType, c3 as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, p as jsxs, o as jsx, c4 as ShimmerBox, ak as MenuItem, a8 as Stack, u as useTranslation, M as Body, T as Button, H as Box, c5 as PASSPORT_URL, aT as Link, c6 as getChainIdBySlug, c7 as getChainImage, c8 as networkName, a6 as FramedImage, Q as Icon, ax as useAnalytics, ay as UserJourney, as as Divider, aL as ViewContext, at as Fragment, V as ViewActions, c9 as useWalletConnect, ca as isWalletConnectProvider, cb as Logo, cc as RawImage, cd as AXELAR_SCAN_URL, a_ as isNativeToken, a$ as getTokenImageByAddress, ce as getNativeSymbolByChainSlug, bz as calculateCryptoToFiat, aQ as EventTargetContext, az as isPassportProvider, i as getL1ChainId, aZ as TokenFilterTypes, h as getL2ChainId, aE as WalletProviderRdns, aG as Web3Provider, aU as useInjectedProviders, bG as HeaderNavigation, bJ as FooterLogo, aB as WalletDrawer, aY as SimpleLayout, cf as getChainSlugById, cg as JsonRpcProvider, ch as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, j as ChainId, ci as getChainNameById, w as useTheme, aA as Heading, cj as getWalletProviderNameByProvider, ck as fetchRiskAssessment, cl as isAddressSanctioned, m as SharedViews, cm as isMetaMaskProvider, cn as WalletProviderName, aw as Drawer, R as ButtCon, co as ButtonNavigationStyles, b0 as orchestrationEvents, al as tokenValueFormat, cp as formatZeroAmount, cq as NATIVE, bm as amountInputValidation, aN as getRemoteImage, bn as CloudImage, cr as ETH_TOKEN_SYMBOL, an as BigNumber, bg as Environment, cs as GasEstimateType, ct as DEFAULT_TOKEN_DECIMALS, cu as DEFAULT_QUOTE_REFRESH_INTERVAL, cv as addChainChangedListener, cw as removeChainChangedListener, cx as IMX_TOKEN_SYMBOL, cy as dist, cz as CHECKOUT_CDN_BASE_URL, cA as heroBackGroundStyles, cB as heroImageStyles, a4 as Badge, cC as SimpleTextBody, cD as FooterButton, cE as getEthTokenImage, cF as WITHDRAWAL_CLAIM_GAS_LIMIT, aV as getDefaultTokenImage, bj as viewReducer, bk as initialViewState, cG as BridgeConfiguration, cH as ImmutableConfiguration, cI as TokenBridge, cJ as StatusView, bK as StatusType, E as ErrorView, bo as ServiceUnavailableErrorView, bp as ServiceType, cK as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cL as ETH_SEPOLIA_TO_ZKEVM_DEVNET, cM as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-CUyo8cNs.js';
2
- import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-CwazbmDy.js';
3
- import { T as TokenImage, r as retry } from './retry-DV1KI8W_.js';
4
- import { E as EllipsizedText, C as Contract } from './EllipsizedText-C9lujrS3.js';
5
- import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-DulrWAxN.js';
6
- import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-C0Gxvke4.js';
7
- import { f as formatUnits, p as parseUnits } from './index-DJcXHr0B.js';
8
- import { u as useInterval } from './useInterval-C_5r-ps0.js';
9
- import './FeesBreakdown-CZlWvkef.js';
1
+ import { c2 as axios, c3 as CheckoutErrorType, c4 as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, p as jsxs, o as jsx, c5 as ShimmerBox, ak as MenuItem, a8 as Stack, u as useTranslation, M as Body, T as Button, H as Box, c6 as PASSPORT_URL, aT as Link, c7 as getChainIdBySlug, c8 as getChainImage, c9 as networkName, a6 as FramedImage, Q as Icon, ax as useAnalytics, ay as UserJourney, as as Divider, aL as ViewContext, at as Fragment, V as ViewActions, ca as useWalletConnect, cb as isWalletConnectProvider, cc as Logo, cd as RawImage, ce as AXELAR_SCAN_URL, aX as isNativeToken, aY as getTokenImageByAddress, cf as getNativeSymbolByChainSlug, bA as calculateCryptoToFiat, aQ as EventTargetContext, az as isPassportProvider, i as getL1ChainId, aW as TokenFilterTypes, h as getL2ChainId, aE as WalletProviderRdns, aG as Web3Provider, a$ as useInjectedProviders, bH as HeaderNavigation, bK as FooterLogo, aB as WalletDrawer, b0 as SimpleLayout, cg as getChainSlugById, ch as JsonRpcProvider, ci as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, j as ChainId, cj as getChainNameById, w as useTheme, aA as Heading, ck as getWalletProviderNameByProvider, cl as fetchRiskAssessment, cm as isAddressSanctioned, m as SharedViews, cn as isMetaMaskProvider, co as WalletProviderName, aw as Drawer, R as ButtCon, cp as ButtonNavigationStyles, b1 as orchestrationEvents, al as tokenValueFormat, cq as formatZeroAmount, cr as NATIVE, bn as amountInputValidation, aN as getRemoteImage, bo as CloudImage, cs as ETH_TOKEN_SYMBOL, an as BigNumber, bh as Environment, ct as GasEstimateType, cu as DEFAULT_TOKEN_DECIMALS, cv as DEFAULT_QUOTE_REFRESH_INTERVAL, cw as addChainChangedListener, cx as removeChainChangedListener, cy as IMX_TOKEN_SYMBOL, cz as dist, cA as CHECKOUT_CDN_BASE_URL, cB as heroBackGroundStyles, cC as heroImageStyles, a4 as Badge, cD as SimpleTextBody, cE as FooterButton, cF as getEthTokenImage, cG as WITHDRAWAL_CLAIM_GAS_LIMIT, aV as getDefaultTokenImage, bk as viewReducer, bl as initialViewState, cH as BridgeConfiguration, cI as ImmutableConfiguration, cJ as TokenBridge, cK as StatusView, bL as StatusType, E as ErrorView, cL as ServiceUnavailableErrorView, cM as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cN as ETH_SEPOLIA_TO_ZKEVM_DEVNET, cO as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-BFcnR906.js';
2
+ import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-mLkYDApl.js';
3
+ import { T as TokenImage, r as retry } from './TokenImage-DnUIY0dG.js';
4
+ import { E as EllipsizedText, C as Contract } from './EllipsizedText-aP0eY8UW.js';
5
+ import { A as Accordion, S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-gWx-BsWH.js';
6
+ import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-C56Mvb2J.js';
7
+ import { f as formatUnits, p as parseUnits } from './index-CHlzVNJj.js';
8
+ import { u as useInterval } from './useInterval-C4vnW8Dn.js';
9
+ import './FeesBreakdown-BksmvQsJ.js';
10
10
 
11
11
  // This module is intended to unwrap Axios default export as named.
12
12
  // Keep top-level export same with static properties
@@ -3068,7 +3068,14 @@ function BridgeWidget({ checkout, web3Provider, config, amount, tokenAddress, sh
3068
3068
  },
3069
3069
  });
3070
3070
  sendBridgeClaimWithdrawalFailedEvent(eventTarget, viewState.view.transactionHash, 'Transaction failed');
3071
- }, onActionClick: updateToTransactionsPage, statusType: StatusType.FAILURE, onCloseClick: () => sendBridgeWidgetCloseEvent(eventTarget), testId: "claim-withdrawal-fail-view" })), viewState.view.type === SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx(ServiceUnavailableErrorView, { service: ServiceType.GENERIC, onCloseClick: () => sendBridgeWidgetCloseEvent(eventTarget) }))] }) }) }));
3071
+ }, onActionClick: updateToTransactionsPage, statusType: StatusType.FAILURE, onCloseClick: () => sendBridgeWidgetCloseEvent(eventTarget), testId: "claim-withdrawal-fail-view" })), viewState.view.type === SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx(ServiceUnavailableErrorView, { onCloseClick: () => sendBridgeWidgetCloseEvent(eventTarget), onBackButtonClick: () => {
3072
+ viewDispatch({
3073
+ payload: {
3074
+ type: ViewActions.UPDATE_VIEW,
3075
+ view: { type: BridgeWidgetViews.WALLET_NETWORK_SELECTION },
3076
+ },
3077
+ });
3078
+ } }))] }) }) }));
3072
3079
  }
3073
3080
 
3074
3081
  export { BridgeWidget as default };
@@ -1,20 +1,20 @@
1
- import { I as IMTBLWidgetEvents, C as CommerceFlowType, P as ProviderEventType, a as CommerceEventType, b as ConnectEventType, c as CommerceFailureEventType, d as CommerceSuccessEventType, W as WalletEventType, e as CommerceUserActionEventType, S as SwapEventType, A as AddTokensEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as OrchestrationEventType, r as reactExports, V as ViewActions, h as getL2ChainId, i as getL1ChainId, j as ChainId, u as useTranslation, k as useViewState, l as useEventTargetState, m as SharedViews, n as commerceFlows, o as jsx, p as jsxs, L as LoadingView, E as ErrorView, q as ConnectWidget, s as ProvidersContextProvider, t as ConnectLoader, v as ViewContextProvider } from './index-CUyo8cNs.js';
2
- import SwapWidget from './SwapWidget-C32_9FA1.js';
3
- import BridgeWidget from './BridgeWidget-CDm5T-Jd.js';
4
- import { O as OnRampWidget } from './OnRampWidget-C_Q1-XYp.js';
5
- import WalletWidget from './WalletWidget-dgfevyR5.js';
6
- import SaleWidget from './SaleWidget-DeiYbYyq.js';
7
- import AddTokensWidget from './AddTokensWidget-BjycT3I4.js';
8
- import './WalletApproveHero-DulrWAxN.js';
9
- import './retry-DV1KI8W_.js';
10
- import './FeesBreakdown-CZlWvkef.js';
11
- import './CryptoFiatProvider-CwazbmDy.js';
12
- import './useInterval-C_5r-ps0.js';
13
- import './index-DJcXHr0B.js';
14
- import './TopUpView-C0Gxvke4.js';
15
- import './SpendingCapHero-Dwl2GR_J.js';
16
- import './EllipsizedText-C9lujrS3.js';
17
- import './HandoverContent-dY5EYKkY.js';
1
+ import { I as IMTBLWidgetEvents, C as CommerceFlowType, P as ProviderEventType, a as CommerceEventType, b as ConnectEventType, c as CommerceFailureEventType, d as CommerceSuccessEventType, W as WalletEventType, e as CommerceUserActionEventType, S as SwapEventType, A as AddTokensEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as OrchestrationEventType, r as reactExports, V as ViewActions, h as getL2ChainId, i as getL1ChainId, j as ChainId, u as useTranslation, k as useViewState, l as useEventTargetState, m as SharedViews, n as commerceFlows, o as jsx, p as jsxs, L as LoadingView, E as ErrorView, q as ConnectWidget, s as ProvidersContextProvider, t as ConnectLoader, v as ViewContextProvider } from './index-BFcnR906.js';
2
+ import SwapWidget from './SwapWidget-CLMf9axF.js';
3
+ import BridgeWidget from './BridgeWidget-mlln66om.js';
4
+ import { O as OnRampWidget } from './OnRampWidget-fwT2M01M.js';
5
+ import WalletWidget from './WalletWidget-DprJHUoU.js';
6
+ import SaleWidget from './SaleWidget-DDSALpw_.js';
7
+ import AddTokensWidget from './AddTokensWidget-Cjk_HQA1.js';
8
+ import './WalletApproveHero-gWx-BsWH.js';
9
+ import './TokenImage-DnUIY0dG.js';
10
+ import './FeesBreakdown-BksmvQsJ.js';
11
+ import './CryptoFiatProvider-mLkYDApl.js';
12
+ import './useInterval-C4vnW8Dn.js';
13
+ import './index-CHlzVNJj.js';
14
+ import './TopUpView-C56Mvb2J.js';
15
+ import './SpendingCapHero-DcKVcu0r.js';
16
+ import './EllipsizedText-aP0eY8UW.js';
17
+ import './HandoverContent-1i50BvLl.js';
18
18
 
19
19
  const sendCheckoutEvent = (eventTarget, detail) => {
20
20
  const event = new CustomEvent(IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT, { detail });
@@ -1,4 +1,4 @@
1
- import { bg as Environment, c1 as axios, r as reactExports, o as jsx } from './index-CUyo8cNs.js';
1
+ import { bh as Environment, c2 as axios, r as reactExports, o as jsx } from './index-BFcnR906.js';
2
2
 
3
3
  /**
4
4
  * Class representing the configuration for the CryptoFiatModule.
@@ -1,4 +1,4 @@
1
- import { cN as defineReadOnly, cO as getStatic, cP as Signer, cQ as Provider, cR as getAddress, cS as Logger, cT as getContractAddress, cU as Interface, cV as shallowCopy, cW as VoidSigner, cX as Indexed, cY as deepCopy, cZ as isHexString, c_ as checkResultErrors, c$ as resolveProperties, an as BigNumber, d0 as accessListify, d1 as arrayify, o as jsx, _ as _objectWithoutProperties, bw as cloneElementWithCssProp, M as Body, U as _defineProperty } from './index-CUyo8cNs.js';
1
+ import { cP as defineReadOnly, cQ as getStatic, cR as Signer, cS as Provider, cT as getAddress, cU as Logger, cV as getContractAddress, cW as Interface, cX as shallowCopy, cY as VoidSigner, cZ as Indexed, c_ as deepCopy, c$ as isHexString, d0 as checkResultErrors, d1 as resolveProperties, an as BigNumber, d2 as accessListify, d3 as arrayify, o as jsx, _ as _objectWithoutProperties, bx as cloneElementWithCssProp, M as Body, U as _defineProperty } from './index-BFcnR906.js';
2
2
 
3
3
  const version = "contracts/5.7.0";
4
4
 
@@ -1,4 +1,4 @@
1
- import { p as jsxs, o as jsx, M as Body, bi as PriceDisplay, H as Box, u as useTranslation, aw as Drawer, ak as MenuItem, at as Fragment, as as Divider, al as tokenValueFormat, cp as formatZeroAmount, bJ as FooterLogo } from './index-CUyo8cNs.js';
1
+ import { p as jsxs, o as jsx, M as Body, bj as PriceDisplay, H as Box, u as useTranslation, aw as Drawer, ak as MenuItem, at as Fragment, as as Divider, al as tokenValueFormat, cq as formatZeroAmount, bK as FooterLogo } from './index-BFcnR906.js';
2
2
 
3
3
  const feesBreakdownContentStyles = {
4
4
  display: 'flex',
@@ -1,4 +1,4 @@
1
- import { p as jsxs, H as Box, o as jsx, aA as Heading, M as Body, T as Button } from './index-CUyo8cNs.js';
1
+ import { p as jsxs, H as Box, o as jsx, aA as Heading, M as Body, T as Button } from './index-BFcnR906.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 { d2 as global, ax as useAnalytics, r as reactExports, bV as ConnectLoaderContext, aQ as EventTargetContext, u as useTranslation, aL as ViewContext, m as SharedViews, d3 as ExchangeType, o as jsx, aY as SimpleLayout, bG as HeaderNavigation, d4 as sendOnRampWidgetCloseEvent, b0 as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, ay as UserJourney, V as ViewActions, bJ as FooterLogo, p as jsxs, cC as SimpleTextBody, bj as viewReducer, bk as initialViewState, cq as NATIVE, L as LoadingView, d5 as sendOnRampSuccessEvent, bK as StatusType, cJ as StatusView, d6 as sendOnRampFailedEvent } from './index-CUyo8cNs.js';
2
- import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-C0Gxvke4.js';
3
- import { S as SpendingCapHero } from './SpendingCapHero-Dwl2GR_J.js';
1
+ import { d4 as global, ax as useAnalytics, r as reactExports, bW as ConnectLoaderContext, aQ as EventTargetContext, u as useTranslation, aL as ViewContext, m as SharedViews, d5 as ExchangeType, o as jsx, b0 as SimpleLayout, bH as HeaderNavigation, d6 as sendOnRampWidgetCloseEvent, b1 as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, ay as UserJourney, V as ViewActions, bK as FooterLogo, p as jsxs, cD as SimpleTextBody, bk as viewReducer, bl as initialViewState, cr as NATIVE, L as LoadingView, d7 as sendOnRampSuccessEvent, bL as StatusType, cK as StatusView, d8 as sendOnRampFailedEvent } from './index-BFcnR906.js';
2
+ import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-C56Mvb2J.js';
3
+ import { S as SpendingCapHero } from './SpendingCapHero-DcKVcu0r.js';
4
4
 
5
5
  function isNull(arg) {
6
6
  return arg === null;
@@ -1,17 +1,17 @@
1
- import { _ as _objectWithoutProperties, o as jsx, bq as MultiTextShimmer, U as _defineProperty, w as useTheme, r as reactExports, D as merge, br as getCaptionTextStyles, bs as DEFAULT_BODY_PROPS, bt as baseTextComponentSx, bu as useConvertSxToEmotionStyles, bv as useGetCurrentSizeClass, bw as cloneElementWithCssProp, bg as Environment, an as BigNumber, bx as compareStr, aL as ViewContext, V as ViewActions, by as SalePaymentTypes, ay as UserJourney, u as useTranslation, bz as calculateCryptoToFiat, ax as useAnalytics, aQ as EventTargetContext, bA as sendSaleWidgetCloseEvent, bB as sendSaleSuccessEvent, bC as sendSaleFailedEvent, bD as sendSaleTransactionSuccessEvent, bE as sendSalePaymentMethodEvent, bF as sendSalePaymentTokenEvent, bG as HeaderNavigation, p as jsxs, bH as LoadingOverlay, H as Box, at as Fragment, aY as SimpleLayout, aO as useHandover, aP as HandoverTarget, aR as getRemoteRive, aA as Heading, bI as HandoverDuration, az as isPassportProvider, ak as MenuItem, aq as motion, au as listVariants, ar as listItemVariants, m as SharedViews, bJ as FooterLogo, bK as StatusType, bL as prettyFormatNumber, al as tokenValueFormat, bM as ShimmerCircle, T as Button, a8 as Stack, bN as FundingStepType, bO as abbreviateWalletAddress, aw as Drawer, as as Divider, bP as tokenSymbolNameOverrides, bQ as ItemType, bR as TransactionOrGasType, bS as GasTokenType, bT as RoutingOutcomeType, a_ as isNativeToken, a$ as getTokenImageByAddress, bU as isGasFree, bV as ConnectLoaderContext, bW as eventTargetReducer, bX as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bY as EventTargetActions, L as LoadingView, j as ChainId, bZ as ConnectWidgetViews, q as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, b_ as ConnectLoaderActions, R as ButtCon, M as Body, b$ as widgetTheme, bj as viewReducer, bk as initialViewState, c0 as BlockExplorerService } from './index-CUyo8cNs.js';
2
- import { C as Contract } from './EllipsizedText-C9lujrS3.js';
3
- import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-C_Q1-XYp.js';
4
- import { H as HandoverContent } from './HandoverContent-dY5EYKkY.js';
5
- import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-CwazbmDy.js';
6
- import { u as useMount, T as TopUpView } from './TopUpView-C0Gxvke4.js';
7
- import { T as TokenImage } from './retry-DV1KI8W_.js';
8
- import { f as formatUnits } from './index-DJcXHr0B.js';
9
- import { F as Fees } from './WalletApproveHero-DulrWAxN.js';
10
- import BridgeWidget from './BridgeWidget-CDm5T-Jd.js';
11
- import SwapWidget from './SwapWidget-C32_9FA1.js';
12
- import './SpendingCapHero-Dwl2GR_J.js';
13
- import './FeesBreakdown-CZlWvkef.js';
14
- import './useInterval-C_5r-ps0.js';
1
+ import { _ as _objectWithoutProperties, o as jsx, br as MultiTextShimmer, U as _defineProperty, w as useTheme, r as reactExports, D as merge, bs as getCaptionTextStyles, bt as DEFAULT_BODY_PROPS, bu as baseTextComponentSx, bv as useConvertSxToEmotionStyles, bw as useGetCurrentSizeClass, bx as cloneElementWithCssProp, bh as Environment, an as BigNumber, by as compareStr, aL as ViewContext, V as ViewActions, bz as SalePaymentTypes, ay as UserJourney, u as useTranslation, bA as calculateCryptoToFiat, ax as useAnalytics, aQ as EventTargetContext, bB as sendSaleWidgetCloseEvent, bC as sendSaleSuccessEvent, bD as sendSaleFailedEvent, bE as sendSaleTransactionSuccessEvent, bF as sendSalePaymentMethodEvent, bG as sendSalePaymentTokenEvent, bH as HeaderNavigation, p as jsxs, bI as LoadingOverlay, H as Box, at as Fragment, b0 as SimpleLayout, aO as useHandover, aP as HandoverTarget, aR as getRemoteRive, aA as Heading, bJ as HandoverDuration, az as isPassportProvider, ak as MenuItem, aq as motion, au as listVariants, ar as listItemVariants, m as SharedViews, bK as FooterLogo, bL as StatusType, bM as prettyFormatNumber, al as tokenValueFormat, bN as ShimmerCircle, T as Button, a8 as Stack, bO as FundingStepType, bP as abbreviateWalletAddress, aw as Drawer, as as Divider, bQ as tokenSymbolNameOverrides, bR as ItemType, bS as TransactionOrGasType, bT as GasTokenType, bU as RoutingOutcomeType, aX as isNativeToken, aY as getTokenImageByAddress, bV as isGasFree, bW as ConnectLoaderContext, bX as eventTargetReducer, bY as initialEventTargetState, i as getL1ChainId, h as getL2ChainId, I as IMTBLWidgetEvents, bZ as EventTargetActions, L as LoadingView, j as ChainId, b_ as ConnectWidgetViews, q as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, b$ as ConnectLoaderActions, R as ButtCon, M as Body, c0 as widgetTheme, bk as viewReducer, bl as initialViewState, c1 as BlockExplorerService } from './index-BFcnR906.js';
2
+ import { C as Contract } from './EllipsizedText-aP0eY8UW.js';
3
+ import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-fwT2M01M.js';
4
+ import { H as HandoverContent } from './HandoverContent-1i50BvLl.js';
5
+ import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-mLkYDApl.js';
6
+ import { u as useMount, T as TopUpView } from './TopUpView-C56Mvb2J.js';
7
+ import { T as TokenImage } from './TokenImage-DnUIY0dG.js';
8
+ import { f as formatUnits } from './index-CHlzVNJj.js';
9
+ import { F as Fees } from './WalletApproveHero-gWx-BsWH.js';
10
+ import BridgeWidget from './BridgeWidget-mlln66om.js';
11
+ import SwapWidget from './SwapWidget-CLMf9axF.js';
12
+ import './SpendingCapHero-DcKVcu0r.js';
13
+ import './FeesBreakdown-BksmvQsJ.js';
14
+ import './useInterval-C4vnW8Dn.js';
15
15
 
16
16
  var _excluded = ["size", "rc", "weight", "sx", "testId", "children", "domRef", "className"],
17
17
  _excluded2 = ["size", "rc", "weight", "shimmer", "shimmerSx", "sx", "children", "domRef", "testId", "className"];
@@ -1,4 +1,4 @@
1
- import { o as jsx, cA as heroBackGroundStyles, H as Box, cB as heroImageStyles, ds as heroImageBottomAlign, p as jsxs } from './index-CUyo8cNs.js';
1
+ import { o as jsx, cB as heroBackGroundStyles, H as Box, cC as heroImageStyles, dt as heroImageBottomAlign, p as jsxs } from './index-BFcnR906.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,12 +1,12 @@
1
- import { u as useTranslation, d7 as WidgetTheme, aN as getRemoteImage, p as jsxs, d8 as quickswapFooterStyles, H as Box, d9 as quickswapFooterLogoStyles, o as jsx, M as Body, da as quickswapFooterDisclaimerTextStyles, r as reactExports, T as Button, db as getImxTokenImage, aw as Drawer, bn as CloudImage, aA as Heading, cb as Logo, Q as Icon, an as BigNumber, bz as calculateCryptoToFiat, al as tokenValueFormat, bU as isGasFree, cp as formatZeroAmount, bV as ConnectLoaderContext, aV as getDefaultTokenImage, a_ as isNativeToken, cq as NATIVE, aL as ViewContext, ax as useAnalytics, cu as DEFAULT_QUOTE_REFRESH_INTERVAL, az as isPassportProvider, bm as amountInputValidation, dc as Tooltip, ay as UserJourney, bg as Environment, V as ViewActions, m as SharedViews, h as getL2ChainId, at as Fragment, dd as ESTIMATE_DEBOUNCE, de as DEFAULT_TOKEN_VALIDATION_DECIMALS, ct as DEFAULT_TOKEN_DECIMALS, aQ as EventTargetContext, df as sendSwapWidgetCloseEvent, b0 as orchestrationEvents, I as IMTBLWidgetEvents, bG as HeaderNavigation, L as LoadingView, aY as SimpleLayout, cx as IMX_TOKEN_SYMBOL, c2 as CheckoutErrorType, cC as SimpleTextBody, cD as FooterButton, bj as viewReducer, bk as initialViewState, aZ as TokenFilterTypes, dg as DEFAULT_BALANCE_RETRY_POLICY, dh as SwapDirection$1, cJ as StatusView, di as sendSwapSuccessEvent, bK as StatusType, dj as sendSwapFailedEvent, dk as sendSwapRejectedEvent, E as ErrorView } from './index-CUyo8cNs.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 './WalletApproveHero-DulrWAxN.js';
3
- import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-CwazbmDy.js';
4
- import { u as useInterval } from './useInterval-C_5r-ps0.js';
5
- import { f as formatUnits, p as parseUnits, a as parseEther } from './index-DJcXHr0B.js';
6
- import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-C0Gxvke4.js';
7
- import { S as SpendingCapHero } from './SpendingCapHero-Dwl2GR_J.js';
8
- import './retry-DV1KI8W_.js';
9
- import './FeesBreakdown-CZlWvkef.js';
1
+ import { u as useTranslation, d9 as WidgetTheme, aN as getRemoteImage, p as jsxs, da as quickswapFooterStyles, H as Box, db as quickswapFooterLogoStyles, o as jsx, M as Body, dc as quickswapFooterDisclaimerTextStyles, r as reactExports, T as Button, dd as getImxTokenImage, aw as Drawer, bo as CloudImage, aA as Heading, cc as Logo, Q as Icon, an as BigNumber, bA as calculateCryptoToFiat, al as tokenValueFormat, bV as isGasFree, cq as formatZeroAmount, bW as ConnectLoaderContext, aV as getDefaultTokenImage, aX as isNativeToken, cr as NATIVE, aL as ViewContext, ax as useAnalytics, cv as DEFAULT_QUOTE_REFRESH_INTERVAL, az as isPassportProvider, bn as amountInputValidation, de as Tooltip, ay as UserJourney, bh as Environment, V as ViewActions, m as SharedViews, h as getL2ChainId, at as Fragment, df as ESTIMATE_DEBOUNCE, dg as DEFAULT_TOKEN_VALIDATION_DECIMALS, cu as DEFAULT_TOKEN_DECIMALS, aQ as EventTargetContext, dh as sendSwapWidgetCloseEvent, b1 as orchestrationEvents, I as IMTBLWidgetEvents, bH as HeaderNavigation, L as LoadingView, b0 as SimpleLayout, cy as IMX_TOKEN_SYMBOL, c3 as CheckoutErrorType, cD as SimpleTextBody, cE as FooterButton, bk as viewReducer, bl as initialViewState, aW as TokenFilterTypes, di as DEFAULT_BALANCE_RETRY_POLICY, dj as SwapDirection$1, cK as StatusView, dk as sendSwapSuccessEvent, bL as StatusType, dl as sendSwapFailedEvent, dm as sendSwapRejectedEvent, E as ErrorView } from './index-BFcnR906.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 './WalletApproveHero-gWx-BsWH.js';
3
+ import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-mLkYDApl.js';
4
+ import { u as useInterval } from './useInterval-C4vnW8Dn.js';
5
+ import { f as formatUnits, p as parseUnits, a as parseEther } from './index-CHlzVNJj.js';
6
+ import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-C56Mvb2J.js';
7
+ import { S as SpendingCapHero } from './SpendingCapHero-DcKVcu0r.js';
8
+ import './TokenImage-DnUIY0dG.js';
9
+ import './FeesBreakdown-BksmvQsJ.js';
10
10
 
11
11
  function QuickswapFooter({ theme, environment }) {
12
12
  const { t } = useTranslation();