@imtbl/checkout-widgets 2.10.3 → 2.10.4-alpha.1

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 (28) hide show
  1. package/dist/browser/{AddTokensWidget-CyYchEqL.js → AddTokensWidget-DfSlhpE2.js} +24 -24
  2. package/dist/browser/{BridgeWidget-BGv6pl-L.js → BridgeWidget-Bsfpyy6Q.js} +32 -32
  3. package/dist/browser/{CommerceWidget-BmxPzB_7.js → CommerceWidget-XxW5BnE_.js} +182 -182
  4. package/dist/browser/{FeesBreakdown-CTf-10x4.js → FeesBreakdown-BOeME08j.js} +2 -2
  5. package/dist/browser/{OnRampWidget-DHnrE80i.js → OnRampWidget-rrRpGMDQ.js} +40 -26
  6. package/dist/browser/{SaleWidget-BXzTLbHG.js → SaleWidget-BrlvBL0k.js} +45 -45
  7. package/dist/browser/{SpendingCapHero-DgeQK3YA.js → SpendingCapHero-CqZM_goS.js} +1 -1
  8. package/dist/browser/{SwapWidget-Bh2dRzCk.js → SwapWidget-XujPvLEA.js} +12 -12
  9. package/dist/browser/{TokenImage-D9BGjc4I.js → TokenImage-C1ydXYvS.js} +1 -1
  10. package/dist/browser/{TopUpView-DQ6NHIsB.js → TopUpView-Dy08ST9w.js} +4 -4
  11. package/dist/browser/{WalletApproveHero-C8PSw4WQ.js → WalletApproveHero-DpusLgi-.js} +2 -2
  12. package/dist/browser/{WalletWidget-ADG2A7wv.js → WalletWidget-h9GOBkvG.js} +11 -11
  13. package/dist/browser/{auto-track-WjZIebqK.js → auto-track-BnaNIxVw.js} +1 -1
  14. package/dist/browser/{index-CsK_1Pd3.js → index-B2p6QzbD.js} +1 -1
  15. package/dist/browser/{index-BjDgJAyF.js → index-B8cGCT2t.js} +1 -1
  16. package/dist/browser/{index-C8Pybl6W.js → index-BPK6WOYV.js} +348 -338
  17. package/dist/browser/{index-DMgRiK35.js → index-CGuYsKf3.js} +1 -1
  18. package/dist/browser/{index-D0vMQXbJ.js → index-DPXcD0g5.js} +2 -2
  19. package/dist/browser/{index-CTeRLgch.js → index-DX1fX6Eo.js} +1 -1
  20. package/dist/browser/{index-BegaQ_Gy.js → index-Djwk1xmm.js} +1 -1
  21. package/dist/browser/{index-DOBGPXKx.js → index-Dora0f5e.js} +1 -1
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-TcVSRaL8.js → index.umd-DM76_p44.js} +1 -1
  24. package/dist/browser/{useInterval-CI7WTOt5.js → useInterval-DsmMsnMZ.js} +1 -1
  25. package/dist/types/components/Transak/useTransakIframe.d.ts +3 -6
  26. package/package.json +7 -7
  27. package/src/components/Transak/useTransakIframe.ts +39 -24
  28. package/src/widgets/on-ramp/views/OnRampMain.tsx +56 -26
@@ -1,4 +1,4 @@
1
- import { cv as axios, dG as H, x as jsxs, v as jsx, A as Body, bF as PriceDisplay, B as Box, k as useTranslation, aA as Drawer, aP as MenuItem, aF as Fragment, aB as Divider, J as tokenValueFormat, d as formatZeroAmount, c5 as FooterLogo } from './index-C8Pybl6W.js';
1
+ import { cv as axios, dG as q, x as jsxs, w as jsx, D as Body, bF as PriceDisplay, B as Box, k as useTranslation, aA as Drawer, aP as MenuItem, aF as Fragment, aB as Divider, J as tokenValueFormat, d as formatZeroAmount, c5 as FooterLogo } from './index-BPK6WOYV.js';
2
2
 
3
3
  const fetchRiskAssessmentV2 = async (assessmentData, config) => {
4
4
  const result = Object.fromEntries(assessmentData.map((data) => [data.address.toLowerCase(), { sanctioned: false }]));
@@ -15,7 +15,7 @@ const fetchRiskAssessmentV2 = async (assessmentData, config) => {
15
15
  token_addr: data.tokenAddr,
16
16
  amount: data.amount.toString(),
17
17
  }));
18
- const response = await axios.post(`${H[config.environment]}/v2/sanctions/check`, requestPayload);
18
+ const response = await axios.post(`${q[config.environment]}/v2/sanctions/check`, requestPayload);
19
19
  for (const assessment of response.data) {
20
20
  result[assessment.address.toLowerCase()].sanctioned = riskLevels.includes(assessment.risk.toLowerCase());
21
21
  }
@@ -1,6 +1,6 @@
1
- import { r as reactExports, Z as ConnectLoaderContext, F as EventTargetContext, k as useTranslation, aU as ViewContext, a5 as SharedViews, D as useAnalytics, U as UserJourney, V as ViewActions, v as jsx, z as SimpleLayout, M as HeaderNavigation, d8 as sendOnRampWidgetCloseEvent, O as orchestrationEvents, o as oo, B as Box, aK as isPassportProvider, d9 as Vt, da as url, db as TRANSAK_ORIGIN, c5 as FooterLogo, x as jsxs, d1 as SimpleTextBody, bH as viewReducer, bI as initialViewState, cR as NATIVE, a0 as LoadingView, dc as sendOnRampSuccessEvent, c6 as StatusType, d7 as StatusView, dd as sendOnRampFailedEvent, bQ as ServiceUnavailableErrorView } from './index-C8Pybl6W.js';
2
- import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-DQ6NHIsB.js';
3
- import { S as SpendingCapHero } from './SpendingCapHero-DgeQK3YA.js';
1
+ import { b as reactExports, Z as ConnectLoaderContext, G as EventTargetContext, k as useTranslation, aU as ViewContext, a5 as SharedViews, F as useAnalytics, U as UserJourney, V as ViewActions, w as jsx, z as SimpleLayout, M as HeaderNavigation, d8 as sendOnRampWidgetCloseEvent, O as orchestrationEvents, r as ro, B as Box, aK as isPassportProvider, d9 as url, da as TRANSAK_ORIGIN, db as jt, c5 as FooterLogo, x as jsxs, d1 as SimpleTextBody, bH as viewReducer, bI as initialViewState, cR as NATIVE, a0 as LoadingView, dc as sendOnRampSuccessEvent, c6 as StatusType, d7 as StatusView, dd as sendOnRampFailedEvent, bQ as ServiceUnavailableErrorView } from './index-BPK6WOYV.js';
2
+ import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-Dy08ST9w.js';
3
+ import { S as SpendingCapHero } from './SpendingCapHero-CqZM_goS.js';
4
4
 
5
5
  const containerStyle = (showIframe) => ({
6
6
  position: 'relative',
@@ -32,13 +32,41 @@ var TransakStatuses;
32
32
 
33
33
  const transakIframeId = 'transak-iframe';
34
34
  const IN_PROGRESS_VIEW_DELAY_MS = 6000; // 6 second
35
+ function useWidgetUrl(checkout, provider, tokenAddress, tokenAmount, passport, showMenu, customSubTitle) {
36
+ const [widgetUrl, setWidgetUrl] = reactExports.useState(undefined);
37
+ reactExports.useEffect(() => {
38
+ if (!checkout || !provider)
39
+ return;
40
+ const params = {
41
+ exchangeType: jt.ONRAMP,
42
+ browserProvider: provider,
43
+ tokenAddress,
44
+ tokenAmount,
45
+ passport,
46
+ showMenu,
47
+ customSubTitle,
48
+ };
49
+ checkout.createFiatRampUrl(params).then(setWidgetUrl);
50
+ }, [checkout, provider, tokenAddress, tokenAmount, passport, showMenu, customSubTitle]);
51
+ return widgetUrl;
52
+ }
53
+ function useWalletAddress(provider) {
54
+ const [userWalletAddress, setUserWalletAddress] = reactExports.useState(undefined);
55
+ reactExports.useEffect(() => {
56
+ if (!provider)
57
+ return;
58
+ provider.getSigner().then((signer) => signer.getAddress()).then(setUserWalletAddress);
59
+ }, [provider]);
60
+ return userWalletAddress;
61
+ }
35
62
  function OnRampMain({ passport, showIframe, tokenAmount, tokenAddress, showBackButton, showMenu, customTitle, customSubTitle, showHeader = true, }) {
36
63
  const { connectLoaderState } = reactExports.useContext(ConnectLoaderContext);
37
64
  const { checkout, provider } = connectLoaderState;
38
65
  const { eventTargetState: { eventTarget }, } = reactExports.useContext(EventTargetContext);
39
66
  const { t } = useTranslation();
40
67
  const { viewState, viewDispatch } = reactExports.useContext(ViewContext);
41
- const [widgetUrl, setWidgetUrl] = reactExports.useState('');
68
+ const widgetUrl = useWidgetUrl(checkout, provider, tokenAddress, tokenAmount, passport, showMenu, customSubTitle);
69
+ const userWalletAddress = useWalletAddress(provider);
42
70
  const eventTimer = reactExports.useRef();
43
71
  const isPassport = !!passport && isPassportProvider(provider);
44
72
  const openedFromTopUpView = reactExports.useMemo(() => viewState.history.length > 2
@@ -183,40 +211,26 @@ function OnRampMain({ passport, showIframe, tokenAmount, tokenAddress, showBackB
183
211
  }
184
212
  }, [viewDispatch, tokenAmount, tokenAddress, viewState.view.data?.amount, viewState.view.data?.tokenAddress]);
185
213
  reactExports.useEffect(() => {
186
- if (!checkout || !provider)
187
- return;
188
- let userWalletAddress = '';
189
- (async () => {
190
- const params = {
191
- exchangeType: Vt.ONRAMP,
192
- browserProvider: provider,
193
- tokenAddress,
194
- tokenAmount,
195
- passport,
196
- showMenu,
197
- customSubTitle,
198
- };
199
- setWidgetUrl(await checkout.createFiatRampUrl(params));
200
- userWalletAddress = await (await provider.getSigner()).getAddress();
201
- })();
202
214
  const domIframe = document.getElementById(transakIframeId);
203
215
  if (!domIframe)
204
216
  return;
205
217
  const handleTransakEvents = (event) => {
206
- if (!domIframe)
207
- return;
208
218
  const host = url.parse(event.origin)?.host?.toLowerCase();
209
219
  if (event.source === domIframe.contentWindow
210
220
  && host
211
221
  && TRANSAK_ORIGIN.includes(host)) {
212
- trackSegmentEvents(event.data, userWalletAddress);
222
+ trackSegmentEvents(event.data, userWalletAddress ?? '');
213
223
  transakEventHandler(event.data);
214
224
  }
215
225
  };
216
226
  window.addEventListener('message', handleTransakEvents);
217
- }, [checkout, provider, tokenAmount, tokenAddress, passport, trackSegmentEvents, transakEventHandler]);
227
+ // eslint-disable-next-line consistent-return
228
+ return () => {
229
+ window.removeEventListener('message', handleTransakEvents);
230
+ };
231
+ }, [trackSegmentEvents, transakEventHandler, userWalletAddress]);
218
232
  return (jsx(Box, { sx: boxMainStyle(showIframe), children: jsx(SimpleLayout, { header: showHeader ? (jsx(HeaderNavigation, { title: customTitle ?? t('views.ONRAMP.header.title'), onCloseButtonClick: () => sendOnRampWidgetCloseEvent(eventTarget), showBack: showBack, onBackButtonClick: () => {
219
- orchestrationEvents.sendRequestGoBackEvent(eventTarget, oo.IMTBL_ONRAMP_WIDGET_EVENT, {});
233
+ orchestrationEvents.sendRequestGoBackEvent(eventTarget, ro.IMTBL_ONRAMP_WIDGET_EVENT, {});
220
234
  } })) : undefined, footerBackgroundColor: "base.color.translucent.emphasis.200", children: jsx(Box, { sx: containerStyle(showIframe), children: jsx("iframe", { title: "Transak", id: transakIframeId, src: widgetUrl, allow: "camera;microphone;fullscreen;payment", style: {
221
235
  height: '100%',
222
236
  width: '100%',
@@ -274,7 +288,7 @@ function OnRampWidget({ amount, tokenAddress, config, showBackButton, onrampConf
274
288
  },
275
289
  });
276
290
  }, statusType: StatusType.FAILURE, onCloseClick: () => sendOnRampWidgetCloseEvent(eventTarget), testId: "fail-view" })), (viewState.view.type !== OnRampWidgetViews.SUCCESS
277
- && viewState.view.type !== OnRampWidgetViews.FAIL) && (jsx(OnRampMain, { passport: checkout?.passport, showIframe: showIframe, tokenAmount: amount ?? viewState.view.data?.amount, tokenAddress: tknAddr ?? viewState.view.data?.tokenAddress, showBackButton: showBackButton, showMenu: onrampConfig?.showMenu, customTitle: onrampConfig?.customTitle, customSubTitle: onrampConfig?.customSubTitle, showHeader: onrampConfig?.showHeader })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.ON_RAMP }, widgetEvent: oo.IMTBL_ONRAMP_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendOnRampWidgetCloseEvent(eventTarget) })), viewState.view.type
291
+ && viewState.view.type !== OnRampWidgetViews.FAIL) && (jsx(OnRampMain, { passport: checkout?.passport, showIframe: showIframe, tokenAmount: amount ?? viewState.view.data?.amount, tokenAddress: tknAddr ?? viewState.view.data?.tokenAddress, showBackButton: showBackButton, showMenu: onrampConfig?.showMenu, customTitle: onrampConfig?.customTitle, customSubTitle: onrampConfig?.customSubTitle, showHeader: onrampConfig?.showHeader })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.ON_RAMP }, widgetEvent: ro.IMTBL_ONRAMP_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendOnRampWidgetCloseEvent(eventTarget) })), viewState.view.type
278
292
  === SharedViews.SERVICE_UNAVAILABLE_ERROR_VIEW && (jsx(ServiceUnavailableErrorView, { onCloseClick: () => sendOnRampWidgetCloseEvent(eventTarget) }))] }));
279
293
  }
280
294
 
@@ -1,13 +1,13 @@
1
- import { bM as K, h as Contract, r as reactExports, bR as errorToString, bS as hexToText, bT as compareStr, aU as ViewContext, V as ViewActions, bU as mn, v as jsx, bV as lo, k as useTranslation, bW as TransakIframe, e as calculateCryptoToFiat, D as useAnalytics, F as EventTargetContext, bX as toPascalCase, bY as sendSaleWidgetCloseEvent, bZ as toStringifyTransactions, b_ as sendSaleSuccessEvent, b$ as sendSaleFailedEvent, c0 as sendSaleTransactionSuccessEvent, c1 as sendSalePaymentMethodEvent, c2 as sendSalePaymentTokenEvent, U as UserJourney, M as HeaderNavigation, x as jsxs, c3 as LoadingOverlay, B as Box, aF as Fragment, z as SimpleLayout, aV as useHandover, aW as HandoverTarget, q as getRemoteRive, H as Heading, c4 as HandoverDuration, aK as isPassportProvider, aZ as HandoverContent, aP as MenuItem, bj as motion, bi as listVariants, bk as listItemVariants, a5 as SharedViews, c5 as FooterLogo, c6 as StatusType, c7 as prettyFormatNumber, J as tokenValueFormat, c8 as ShimmerCircle, y as Button, S as Stack, c9 as Te, ca as abbreviateWalletAddress, cb as formatUnits, aA as Drawer, cc as Caption, aB as Divider, cd as tokenSymbolNameOverrides, ce as Re, cf as Ce, cg as M, ch as ct, a$ as isNativeToken, b0 as getTokenImageByAddress, ci as isGasFree, G as CryptoFiatContext, Z as ConnectLoaderContext, cj as eventTargetReducer, ck as initialEventTargetState, o as oo, cl as EventTargetActions, a0 as LoadingView, aQ as Y, cm as ConnectWidgetViews, a7 as ConnectWidget, m as mo, s as so, p as po, a as ao, cn as ConnectLoaderActions, b as parseUnits, a1 as CryptoFiatActions, b3 as ButtCon, A as Body, co as widgetTheme, bH as viewReducer, bI as initialViewState, t as tt, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider } from './index-C8Pybl6W.js';
2
- import { u as useMount, T as TopUpView } from './TopUpView-DQ6NHIsB.js';
3
- import { T as TokenImage } from './TokenImage-D9BGjc4I.js';
4
- import { F as Fees, B as BridgeWidget } from './BridgeWidget-BGv6pl-L.js';
5
- import OnRampWidget from './OnRampWidget-DHnrE80i.js';
6
- import { a as SwapWidget } from './SwapWidget-Bh2dRzCk.js';
7
- import { f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-CTf-10x4.js';
8
- import './WalletApproveHero-C8PSw4WQ.js';
9
- import './useInterval-CI7WTOt5.js';
10
- import './SpendingCapHero-DgeQK3YA.js';
1
+ import { bM as K, h as Contract, b as reactExports, bR as errorToString, bS as hexToText, bT as compareStr, aU as ViewContext, V as ViewActions, bU as mn, w as jsx, bV as co, k as useTranslation, bW as TransakIframe, e as calculateCryptoToFiat, F as useAnalytics, G as EventTargetContext, bX as toPascalCase, bY as sendSaleWidgetCloseEvent, bZ as toStringifyTransactions, b_ as sendSaleSuccessEvent, b$ as sendSaleFailedEvent, c0 as sendSaleTransactionSuccessEvent, c1 as sendSalePaymentMethodEvent, c2 as sendSalePaymentTokenEvent, U as UserJourney, M as HeaderNavigation, x as jsxs, c3 as LoadingOverlay, B as Box, aF as Fragment, z as SimpleLayout, aV as useHandover, aW as HandoverTarget, t as getRemoteRive, H as Heading, c4 as HandoverDuration, aK as isPassportProvider, aZ as HandoverContent, aP as MenuItem, bj as motion, bi as listVariants, bk as listItemVariants, a5 as SharedViews, c5 as FooterLogo, c6 as StatusType, c7 as prettyFormatNumber, J as tokenValueFormat, c8 as ShimmerCircle, y as Button, S as Stack, c9 as Te, ca as abbreviateWalletAddress, cb as formatUnits, aA as Drawer, cc as Caption, aB as Divider, cd as tokenSymbolNameOverrides, ce as Re, cf as Ce, cg as M, ch as ct, a$ as isNativeToken, b0 as getTokenImageByAddress, ci as isGasFree, I as CryptoFiatContext, Z as ConnectLoaderContext, cj as eventTargetReducer, ck as initialEventTargetState, r as ro, cl as EventTargetActions, a0 as LoadingView, aQ as J, cm as ConnectWidgetViews, a7 as ConnectWidget, u as uo, i as io, l as lo, n as no, cn as ConnectLoaderActions, c as parseUnits, a1 as CryptoFiatActions, b3 as ButtCon, D as Body, co as widgetTheme, bH as viewReducer, bI as initialViewState, v as tt, bQ as ServiceUnavailableErrorView, Y as CryptoFiatProvider } from './index-BPK6WOYV.js';
2
+ import { u as useMount, T as TopUpView } from './TopUpView-Dy08ST9w.js';
3
+ import { T as TokenImage } from './TokenImage-C1ydXYvS.js';
4
+ import { F as Fees, B as BridgeWidget } from './BridgeWidget-Bsfpyy6Q.js';
5
+ import OnRampWidget from './OnRampWidget-rrRpGMDQ.js';
6
+ import { a as SwapWidget } from './SwapWidget-XujPvLEA.js';
7
+ import { f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-BOeME08j.js';
8
+ import './WalletApproveHero-DpusLgi-.js';
9
+ import './useInterval-DsmMsnMZ.js';
10
+ import './SpendingCapHero-CqZM_goS.js';
11
11
 
12
12
  var SaleWidgetViews;
13
13
  (function (SaleWidgetViews) {
@@ -541,7 +541,7 @@ function SaleContextProvider(props) {
541
541
  const [showCreditCardWarning, setShowCreditCardWarning] = reactExports.useState(false);
542
542
  const [paymentMethod, setPaymentMethodState] = reactExports.useState(undefined);
543
543
  const setPaymentMethod = (type) => {
544
- if (type === lo.CREDIT && !showCreditCardWarning) {
544
+ if (type === co.CREDIT && !showCreditCardWarning) {
545
545
  setPaymentMethodState(undefined);
546
546
  setShowCreditCardWarning(true);
547
547
  return;
@@ -1260,9 +1260,9 @@ function PayWithCoins() {
1260
1260
  function PaymentOption({ type, onClick, disabled = false, caption, size, rc = jsx("span", {}), }) {
1261
1261
  const { t } = useTranslation();
1262
1262
  const icon = {
1263
- [lo.CRYPTO]: 'Coins',
1264
- [lo.DEBIT]: 'BankCard',
1265
- [lo.CREDIT]: 'BankCard',
1263
+ [co.CRYPTO]: 'Coins',
1264
+ [co.DEBIT]: 'BankCard',
1265
+ [co.CREDIT]: 'BankCard',
1266
1266
  };
1267
1267
  const handleClick = () => onClick(type);
1268
1268
  const menuItemProps = {
@@ -1281,9 +1281,9 @@ function PaymentOption({ type, onClick, disabled = false, caption, size, rc = js
1281
1281
  }
1282
1282
 
1283
1283
  const defaultPaymentOptions = [
1284
- lo.CRYPTO,
1285
- lo.DEBIT,
1286
- lo.CREDIT,
1284
+ co.CRYPTO,
1285
+ co.DEBIT,
1286
+ co.CREDIT,
1287
1287
  ];
1288
1288
  function PaymentOptions(props) {
1289
1289
  const { disabledOptions = [], paymentOptions, onClick, captions, size, hideDisabledOptions, } = props;
@@ -1310,7 +1310,7 @@ function PaymentMethods() {
1310
1310
  sendSelectedPaymentMethod(paymentMethod, SaleWidgetViews.PAYMENT_METHODS); // checkoutPrimarySalePaymentMethods_SelectMenuItem
1311
1311
  }
1312
1312
  if (paymentMethod
1313
- && [lo.DEBIT, lo.CREDIT].includes(paymentMethod)) {
1313
+ && [co.DEBIT, co.CREDIT].includes(paymentMethod)) {
1314
1314
  sign(SignPaymentTypes.FIAT, undefined, () => {
1315
1315
  viewDispatch({
1316
1316
  payload: {
@@ -1331,7 +1331,7 @@ function PaymentMethods() {
1331
1331
  },
1332
1332
  });
1333
1333
  }
1334
- if (paymentMethod && paymentMethod === lo.CRYPTO) {
1334
+ if (paymentMethod && paymentMethod === co.CRYPTO) {
1335
1335
  viewDispatch({
1336
1336
  payload: {
1337
1337
  type: ViewActions.UPDATE_VIEW,
@@ -1684,7 +1684,7 @@ function CoinsDrawer({ conversions, balances, selectedIndex, visible, loading, t
1684
1684
  if (balances.length > 3) {
1685
1685
  size = 'small';
1686
1686
  }
1687
- const otherPaymentOptions = [lo.DEBIT, lo.CREDIT];
1687
+ const otherPaymentOptions = [co.DEBIT, co.CREDIT];
1688
1688
  const withOtherOptions = !otherPaymentOptions.every((type) => disabledPaymentTypes?.includes(type));
1689
1689
  return (jsx(Drawer, { size: "full", visible: visible, showHeaderBar: true, onCloseDrawer: onClose, headerBarTitle: t('views.ORDER_SUMMARY.coinsDrawer.header'), children: jsx(Drawer.Content, { rc: jsx(motion.div, { variants: listVariants, initial: "hidden", animate: "show" }), children: jsxs(Box, { sx: {
1690
1690
  height: '100%',
@@ -1697,8 +1697,8 @@ function CoinsDrawer({ conversions, balances, selectedIndex, visible, loading, t
1697
1697
  justifyContent: 'space-between',
1698
1698
  mb: 'base.spacing.x2',
1699
1699
  }, children: [jsx(Caption, { size: "small", children: t('views.ORDER_SUMMARY.coinsDrawer.caption1') }), jsx(Caption, { size: "small", children: t('views.ORDER_SUMMARY.coinsDrawer.caption2') })] }), balances?.map((balance, idx) => (jsx(CoinsDrawerItem, { onClick: handleOnclick(idx), balance: balance, selected: selectedIndex === idx, conversions: conversions, transactionRequirement: transactionRequirement, size: size, theme: theme, environment: environment, rc: jsx(motion.div, { variants: listItemVariants, custom: idx }) }, `${balance.fundingItem.token.symbol}-${balance.type}`))), loading && (jsx(motion.div, { variants: listItemVariants, custom: balances.length, children: jsx(MenuItem, { shimmer: true, emphasized: true, size: size, testId: "funding-balance-item-shimmer" }) }, "funding-balance-item-shimmer"))] }), onPayWithCard && (jsxs(Box, { sx: { pb: 'base.spacing.x4' }, rc: (jsx(motion.div, { variants: listItemVariants, custom: balances.length + (loading ? 1 : 0) })), children: [withOtherOptions && (jsx(Divider, { size: "small", rc: jsx(Caption, {}), sx: { my: 'base.spacing.x4' }, children: t('views.ORDER_SUMMARY.coinsDrawer.divider') })), jsx(PaymentOptions, { onClick: onPayWithCard, size: size, hideDisabledOptions: true, paymentOptions: otherPaymentOptions, disabledOptions: disabledPaymentTypes, captions: {
1700
- [lo.DEBIT]: t('views.PAYMENT_METHODS.options.debit.caption'),
1701
- [lo.CREDIT]: t('views.PAYMENT_METHODS.options.credit.caption'),
1700
+ [co.DEBIT]: t('views.PAYMENT_METHODS.options.debit.caption'),
1701
+ [co.CREDIT]: t('views.PAYMENT_METHODS.options.credit.caption'),
1702
1702
  } })] }))] }) }) }));
1703
1703
  }
1704
1704
 
@@ -2291,30 +2291,30 @@ function FundingRouteExecute({ fundingRouteStep, onFundingRouteExecuted, }) {
2291
2291
  };
2292
2292
  const handleCustomEvent = (event) => {
2293
2293
  switch (event.detail.type) {
2294
- case so.SUCCESS: {
2294
+ case io.SUCCESS: {
2295
2295
  const successEvent = event.detail.data;
2296
2296
  stepSuccess.current = successEvent;
2297
2297
  onCloseWidget();
2298
2298
  break;
2299
2299
  }
2300
- case po.TRANSACTION_SENT:
2301
- case mo.SUCCESS: {
2300
+ case lo.TRANSACTION_SENT:
2301
+ case uo.SUCCESS: {
2302
2302
  const successEvent = event.detail.data;
2303
2303
  stepSuccess.current = successEvent;
2304
2304
  break;
2305
2305
  }
2306
- case po.FAILURE:
2307
- case so.FAILURE:
2308
- case mo.FAILURE: {
2306
+ case lo.FAILURE:
2307
+ case io.FAILURE:
2308
+ case uo.FAILURE: {
2309
2309
  // On FAILURE, widget will prompt user to try again.
2310
2310
  // We need to know if it failed though when they close the widget
2311
2311
  const failureEvent = event.detail.data;
2312
2312
  stepFailed.current = failureEvent;
2313
2313
  break;
2314
2314
  }
2315
- case po.CLOSE_WIDGET:
2316
- case so.CLOSE_WIDGET:
2317
- case mo.CLOSE_WIDGET: {
2315
+ case lo.CLOSE_WIDGET:
2316
+ case io.CLOSE_WIDGET:
2317
+ case uo.CLOSE_WIDGET: {
2318
2318
  onCloseWidget();
2319
2319
  break;
2320
2320
  }
@@ -2322,7 +2322,7 @@ function FundingRouteExecute({ fundingRouteStep, onFundingRouteExecuted, }) {
2322
2322
  };
2323
2323
  const handleConnectEvent = (event) => {
2324
2324
  switch (event.detail.type) {
2325
- case ao.SUCCESS: {
2325
+ case no.SUCCESS: {
2326
2326
  const eventData = event.detail.data;
2327
2327
  connectLoaderDispatch({
2328
2328
  payload: {
@@ -2336,8 +2336,8 @@ function FundingRouteExecute({ fundingRouteStep, onFundingRouteExecuted, }) {
2336
2336
  }
2337
2337
  break;
2338
2338
  }
2339
- case ao.FAILURE:
2340
- case ao.CLOSE_WIDGET:
2339
+ case no.FAILURE:
2340
+ case no.CLOSE_WIDGET:
2341
2341
  default:
2342
2342
  onCloseWidget();
2343
2343
  break;
@@ -2345,15 +2345,15 @@ function FundingRouteExecute({ fundingRouteStep, onFundingRouteExecuted, }) {
2345
2345
  };
2346
2346
  reactExports.useEffect(() => {
2347
2347
  // Handle the connect event when switching networks
2348
- eventTarget.addEventListener(oo.IMTBL_CONNECT_WIDGET_EVENT, handleConnectEvent);
2348
+ eventTarget.addEventListener(ro.IMTBL_CONNECT_WIDGET_EVENT, handleConnectEvent);
2349
2349
  // Handle the other widget events
2350
- eventTarget.addEventListener(oo.IMTBL_BRIDGE_WIDGET_EVENT, handleCustomEvent);
2351
- eventTarget.addEventListener(oo.IMTBL_SWAP_WIDGET_EVENT, handleCustomEvent);
2350
+ eventTarget.addEventListener(ro.IMTBL_BRIDGE_WIDGET_EVENT, handleCustomEvent);
2351
+ eventTarget.addEventListener(ro.IMTBL_SWAP_WIDGET_EVENT, handleCustomEvent);
2352
2352
  // Remove the custom event listener when the component unmounts
2353
2353
  return () => {
2354
- eventTarget.removeEventListener(oo.IMTBL_CONNECT_WIDGET_EVENT, handleConnectEvent);
2355
- eventTarget.removeEventListener(oo.IMTBL_BRIDGE_WIDGET_EVENT, handleCustomEvent);
2356
- eventTarget.removeEventListener(oo.IMTBL_SWAP_WIDGET_EVENT, handleCustomEvent);
2354
+ eventTarget.removeEventListener(ro.IMTBL_CONNECT_WIDGET_EVENT, handleConnectEvent);
2355
+ eventTarget.removeEventListener(ro.IMTBL_BRIDGE_WIDGET_EVENT, handleCustomEvent);
2356
+ eventTarget.removeEventListener(ro.IMTBL_SWAP_WIDGET_EVENT, handleCustomEvent);
2357
2357
  };
2358
2358
  }, []);
2359
2359
  reactExports.useEffect(() => {
@@ -2364,9 +2364,9 @@ function FundingRouteExecute({ fundingRouteStep, onFundingRouteExecuted, }) {
2364
2364
  },
2365
2365
  });
2366
2366
  }, [checkout]);
2367
- return (jsxs(EventTargetContext.Provider, { value: eventTargetReducerValues, children: [view === FundingRouteExecuteViews.LOADING && (jsx(LoadingView, { loadingText: t('views.ORDER_SUMMARY.loading.balances') })), view === FundingRouteExecuteViews.EXECUTE_BRIDGE && (jsx(BridgeWidget, { ...bridgeParams, config: config, checkout: checkout })), view === FundingRouteExecuteViews.EXECUTE_SWAP && (jsx(SwapWidget, { ...swapParams, config: config, swapConfig: {} })), view === FundingRouteExecuteViews.EXECUTE_ON_RAMP && (jsx(OnRampWidget, { config: config, ...onRampParams })), view === FundingRouteExecuteViews.SWITCH_NETWORK_ETH && (jsx(ConnectWidget, { config: config, targetChainId: checkout.config.isProduction ? Y.ETHEREUM : Y.SEPOLIA, browserProvider: provider, checkout: checkout, deepLink: ConnectWidgetViews.SWITCH_NETWORK })), view === FundingRouteExecuteViews.SWITCH_NETWORK_ZKEVM && (jsx(ConnectWidget, { config: config, targetChainId: checkout.config.isProduction
2368
- ? Y.IMTBL_ZKEVM_MAINNET
2369
- : Y.IMTBL_ZKEVM_TESTNET, browserProvider: provider, checkout: checkout, deepLink: ConnectWidgetViews.SWITCH_NETWORK }))] }));
2367
+ return (jsxs(EventTargetContext.Provider, { value: eventTargetReducerValues, children: [view === FundingRouteExecuteViews.LOADING && (jsx(LoadingView, { loadingText: t('views.ORDER_SUMMARY.loading.balances') })), view === FundingRouteExecuteViews.EXECUTE_BRIDGE && (jsx(BridgeWidget, { ...bridgeParams, config: config, checkout: checkout })), view === FundingRouteExecuteViews.EXECUTE_SWAP && (jsx(SwapWidget, { ...swapParams, config: config, swapConfig: {} })), view === FundingRouteExecuteViews.EXECUTE_ON_RAMP && (jsx(OnRampWidget, { config: config, ...onRampParams })), view === FundingRouteExecuteViews.SWITCH_NETWORK_ETH && (jsx(ConnectWidget, { config: config, targetChainId: checkout.config.isProduction ? J.ETHEREUM : J.SEPOLIA, browserProvider: provider, checkout: checkout, deepLink: ConnectWidgetViews.SWITCH_NETWORK })), view === FundingRouteExecuteViews.SWITCH_NETWORK_ZKEVM && (jsx(ConnectWidget, { config: config, targetChainId: checkout.config.isProduction
2368
+ ? J.IMTBL_ZKEVM_MAINNET
2369
+ : J.IMTBL_ZKEVM_TESTNET, browserProvider: provider, checkout: checkout, deepLink: ConnectWidgetViews.SWITCH_NETWORK }))] }));
2370
2370
  }
2371
2371
 
2372
2372
  function LoadingHandover({ text, duration, animationUrl, inputValue = 0, }) {
@@ -2553,7 +2553,7 @@ function CreditCardWarningDrawer() {
2553
2553
  const { t } = useTranslation();
2554
2554
  const { showCreditCardWarning, setShowCreditCardWarning, setPaymentMethod } = useSaleContext();
2555
2555
  const handleCtaButtonClick = () => {
2556
- setPaymentMethod(lo.CREDIT);
2556
+ setPaymentMethod(co.CREDIT);
2557
2557
  };
2558
2558
  return (jsx(Drawer, { size: "threeQuarter", visible: showCreditCardWarning, showHeaderBar: false, children: jsxs(Drawer.Content, { children: [jsx(ButtCon, { icon: "Close", variant: "tertiary", sx: {
2559
2559
  pos: 'absolute',
@@ -2626,7 +2626,7 @@ function SaleWidget(props) {
2626
2626
  customOrderData,
2627
2627
  waitFulfillmentSettlements,
2628
2628
  hideExcludedPaymentTypes,
2629
- }, children: jsxs(CryptoFiatProvider, { environment: config.environment, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx(LoadingView, { loadingText: loadingText })), viewState.view.type === SaleWidgetViews.PAYMENT_METHODS && (jsx(PaymentMethods, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_CARD && (jsx(PayWithCard, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_COINS && (jsx(PayWithCoins, {})), viewState.view.type === SaleWidgetViews.SALE_FAIL && (jsx(SaleErrorView, { biomeTheme: biomeTheme, errorType: viewState.view.data?.errorType, transactionHash: viewState.view.data?.transactionHash, blockExplorerLink: tt.getTransactionLink(chainId.current, viewState.view.data?.transactionHash) })), viewState.view.type === SaleWidgetViews.ORDER_SUMMARY && (jsx(OrderSummary, { subView: viewState.view.subView })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.SALE }, widgetEvent: oo.IMTBL_SALE_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: config.isOnRampEnabled, showSwapOption: false, showBridgeOption: config.isBridgeEnabled, onCloseButtonClick: () => sendSaleWidgetCloseEvent(eventTarget), onBackButtonClick: () => {
2629
+ }, children: jsxs(CryptoFiatProvider, { environment: config.environment, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx(LoadingView, { loadingText: loadingText })), viewState.view.type === SaleWidgetViews.PAYMENT_METHODS && (jsx(PaymentMethods, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_CARD && (jsx(PayWithCard, {})), viewState.view.type === SaleWidgetViews.PAY_WITH_COINS && (jsx(PayWithCoins, {})), viewState.view.type === SaleWidgetViews.SALE_FAIL && (jsx(SaleErrorView, { biomeTheme: biomeTheme, errorType: viewState.view.data?.errorType, transactionHash: viewState.view.data?.transactionHash, blockExplorerLink: tt.getTransactionLink(chainId.current, viewState.view.data?.transactionHash) })), viewState.view.type === SaleWidgetViews.ORDER_SUMMARY && (jsx(OrderSummary, { subView: viewState.view.subView })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.SALE }, widgetEvent: ro.IMTBL_SALE_WIDGET_EVENT, checkout: checkout, provider: provider, showOnrampOption: config.isOnRampEnabled, showSwapOption: false, showBridgeOption: config.isBridgeEnabled, onCloseButtonClick: () => sendSaleWidgetCloseEvent(eventTarget), onBackButtonClick: () => {
2630
2630
  viewDispatch({
2631
2631
  payload: {
2632
2632
  type: ViewActions.UPDATE_VIEW,
@@ -1,4 +1,4 @@
1
- import { v as jsx, c$ as heroBackGroundStyles, B as Box, d0 as heroImageStyles, dF as heroImageBottomAlign, x as jsxs } from './index-C8Pybl6W.js';
1
+ import { w as jsx, c$ as heroBackGroundStyles, B as Box, d0 as heroImageStyles, dF as heroImageBottomAlign, x as jsxs } from './index-BPK6WOYV.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,13 +1,13 @@
1
- import { k as useTranslation, x as jsxs, de as quickswapFooterStyles, B as Box, df as quickswapFooterLogoStyles, v as jsx, A as Body, dg as quickswapFooterDisclaimerTextStyles, dh as Po, X as getRemoteImage, r as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cE as Logo, di as getImxTokenImage, cb as formatUnits, e as calculateCryptoToFiat, J as tokenValueFormat, ci as isGasFree, b as parseUnits, d as formatZeroAmount, cz as ShimmerBox, bF as PriceDisplay, aF as Fragment, dj as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cR as NATIVE, aU as ViewContext, D as useAnalytics, dk as calculateFeesFiat, U as UserJourney, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dl as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bM as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dm as ESTIMATE_DEBOUNCE, dn as DEFAULT_TOKEN_VALIDATION_DECIMALS, cZ as DEFAULT_TOKEN_DECIMALS, F as EventTargetContext, a0 as LoadingView, z as SimpleLayout, dp as sendSwapWidgetCloseEvent, O as orchestrationEvents, o as oo, M as HeaderNavigation, cY as IMX_TOKEN_SYMBOL, cy as S, d1 as SimpleTextBody, d2 as FooterButton, dq as m, c$ as heroBackGroundStyles, d0 as heroImageStyles, bz as Trans, L as Link, aV as useHandover, bH as viewReducer, bI as initialViewState, dr as DEFAULT_BALANCE_RETRY_POLICY, ds as yo, d7 as StatusView, dt as sendSwapSuccessEvent, c6 as StatusType, du as sendSwapFailedEvent, dv as sendSwapRejectedEvent, a6 as ErrorView, bQ as ServiceUnavailableErrorView, j as ae, cP as fe } from './index-C8Pybl6W.js';
2
- import { S as SelectForm, T as TextInputForm, A as Accordion, b as gasAmountAccordionStyles, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-C8PSw4WQ.js';
3
- import { u as useInterval } from './useInterval-CI7WTOt5.js';
4
- import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-DQ6NHIsB.js';
5
- import { F as FeesBreakdown, f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-CTf-10x4.js';
6
- import { S as SpendingCapHero } from './SpendingCapHero-DgeQK3YA.js';
1
+ import { k as useTranslation, x as jsxs, de as quickswapFooterStyles, B as Box, df as quickswapFooterLogoStyles, w as jsx, D as Body, dg as quickswapFooterDisclaimerTextStyles, dh as wo, X as getRemoteImage, b as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cE as Logo, di as getImxTokenImage, cb as formatUnits, e as calculateCryptoToFiat, J as tokenValueFormat, ci as isGasFree, c as parseUnits, d as formatZeroAmount, cz as ShimmerBox, bF as PriceDisplay, aF as Fragment, dj as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cR as NATIVE, aU as ViewContext, F as useAnalytics, dk as calculateFeesFiat, U as UserJourney, cU as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dl as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bM as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dm as ESTIMATE_DEBOUNCE, dn as DEFAULT_TOKEN_VALIDATION_DECIMALS, cZ as DEFAULT_TOKEN_DECIMALS, G as EventTargetContext, a0 as LoadingView, z as SimpleLayout, dp as sendSwapWidgetCloseEvent, O as orchestrationEvents, r as ro, M as HeaderNavigation, cY as IMX_TOKEN_SYMBOL, cy as S, d1 as SimpleTextBody, d2 as FooterButton, dq as m, c$ as heroBackGroundStyles, d0 as heroImageStyles, bz as Trans, L as Link, aV as useHandover, bH as viewReducer, bI as initialViewState, dr as DEFAULT_BALANCE_RETRY_POLICY, ds as yo, d7 as StatusView, dt as sendSwapSuccessEvent, c6 as StatusType, du as sendSwapFailedEvent, dv as sendSwapRejectedEvent, a6 as ErrorView, bQ as ServiceUnavailableErrorView, j as ie, cP as fe } from './index-BPK6WOYV.js';
2
+ import { S as SelectForm, T as TextInputForm, A as Accordion, b as gasAmountAccordionStyles, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-DpusLgi-.js';
3
+ import { u as useInterval } from './useInterval-DsmMsnMZ.js';
4
+ import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-Dy08ST9w.js';
5
+ import { F as FeesBreakdown, f as fetchRiskAssessmentV2, i as isSingleAddressSanctioned } from './FeesBreakdown-BOeME08j.js';
6
+ import { S as SpendingCapHero } from './SpendingCapHero-CqZM_goS.js';
7
7
 
8
8
  function QuickswapFooter({ theme, environment }) {
9
9
  const { t } = useTranslation();
10
- const logo = theme === Po.DARK
10
+ const logo = theme === wo.DARK
11
11
  ? getRemoteImage(environment, '/quickswapdark.webp')
12
12
  : getRemoteImage(environment, '/quickswaplight.webp');
13
13
  return (jsxs(Box, { testId: "quickswap-footer-container", sx: quickswapFooterStyles, children: [jsxs(Box, { testId: "quickswap-logo", sx: quickswapFooterLogoStyles, children: [jsx(Body, { size: "xSmall", sx: { paddingRight: 'base.spacing.x1' }, children: "By" }), jsx("img", { style: { height: '26px' }, alt: "Quickswap logo", src: logo })] }), jsx(Body, { testId: "quickswap-footer-disclaimer-text", size: "xSmall", sx: quickswapFooterDisclaimerTextStyles, children: t('footers.quickswapFooter.disclaimerText') })] }));
@@ -1339,7 +1339,7 @@ function SwapCoins({ theme, themeOverrides, cancelAutoProceed, fromAmount, toAmo
1339
1339
  }
1340
1340
  }, [tokenBalances]);
1341
1341
  return (jsxs(SimpleLayout, { header: !autoProceed && showHeader ? (jsx(HeaderNavigation, { title: title, onCloseButtonClick: () => sendSwapWidgetCloseEvent(eventTarget), showBack: showBackButton, onBackButtonClick: () => {
1342
- orchestrationEvents.sendRequestGoBackEvent(eventTarget, oo.IMTBL_SWAP_WIDGET_EVENT, {});
1342
+ orchestrationEvents.sendRequestGoBackEvent(eventTarget, ro.IMTBL_SWAP_WIDGET_EVENT, {});
1343
1343
  } })) : undefined, footer: jsx(QuickswapFooter, { environment: checkout?.config.environment, theme: theme }), children: [jsxs(Box, { sx: {
1344
1344
  height: '100%',
1345
1345
  display: 'flex',
@@ -1714,7 +1714,7 @@ const topUpBridgeOption = (isBridgeEnabled, isNotPassport) => {
1714
1714
  return {
1715
1715
  textKey: 'views.TOP_UP_VIEW.topUpOptions.bridge.heading',
1716
1716
  action: () => {
1717
- orchestrationEvents.sendRequestBridgeEvent(window, oo.IMTBL_BRIDGE_WIDGET_EVENT, {
1717
+ orchestrationEvents.sendRequestBridgeEvent(window, ro.IMTBL_BRIDGE_WIDGET_EVENT, {
1718
1718
  tokenAddress: '',
1719
1719
  amount: '',
1720
1720
  });
@@ -1728,7 +1728,7 @@ const topUpOnRampOption = (isOnRampEnabled) => {
1728
1728
  return {
1729
1729
  textKey: 'views.TOP_UP_VIEW.topUpOptions.onramp.heading',
1730
1730
  action: () => {
1731
- orchestrationEvents.sendRequestOnrampEvent(window, oo.IMTBL_ONRAMP_WIDGET_EVENT, {
1731
+ orchestrationEvents.sendRequestOnrampEvent(window, ro.IMTBL_ONRAMP_WIDGET_EVENT, {
1732
1732
  tokenAddress: '',
1733
1733
  amount: '',
1734
1734
  });
@@ -1809,7 +1809,7 @@ function SwapWidget({ amount, fromTokenAddress, toTokenAddress, config, autoProc
1809
1809
  const tokensAndBalances = await getAllowedBalances({
1810
1810
  checkout,
1811
1811
  provider,
1812
- allowTokenListType: ae.SWAP,
1812
+ allowTokenListType: ie.SWAP,
1813
1813
  });
1814
1814
  // Why? Check getAllowedBalances
1815
1815
  if (tokensAndBalances === undefined)
@@ -1957,7 +1957,7 @@ function SwapWidget({ amount, fromTokenAddress, toTokenAddress, config, autoProc
1957
1957
  viewDispatch({
1958
1958
  payload: { type: ViewActions.UPDATE_VIEW, view: { type: SwapWidgetViews.SWAP } },
1959
1959
  });
1960
- } })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.SWAP }, checkout: checkout, provider: provider, widgetEvent: oo.IMTBL_SWAP_WIDGET_EVENT, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendSwapWidgetCloseEvent(eventTarget) }))] }) })), serviceUnavailableView: (jsx(ServiceUnavailableToRegionErrorView, { service: ServiceType.SWAP, onCloseClick: () => sendSwapWidgetCloseEvent(window), showHeader: showHeader, primaryActionText: topUpOptions && topUpOptions?.length > 0
1960
+ } })), viewState.view.type === SharedViews.TOP_UP_VIEW && (jsx(TopUpView, { analytics: { userJourney: UserJourney.SWAP }, checkout: checkout, provider: provider, widgetEvent: ro.IMTBL_SWAP_WIDGET_EVENT, showOnrampOption: isOnRampEnabled, showSwapOption: isSwapEnabled, showBridgeOption: isBridgeEnabled, onCloseButtonClick: () => sendSwapWidgetCloseEvent(eventTarget) }))] }) })), serviceUnavailableView: (jsx(ServiceUnavailableToRegionErrorView, { service: ServiceType.SWAP, onCloseClick: () => sendSwapWidgetCloseEvent(window), showHeader: showHeader, primaryActionText: topUpOptions && topUpOptions?.length > 0
1961
1961
  ? t(topUpOptions[0].textKey)
1962
1962
  : undefined, onPrimaryButtonClick: topUpOptions && topUpOptions?.length > 0
1963
1963
  ? topUpOptions[0].action
@@ -1,4 +1,4 @@
1
- import { r as reactExports, K as getDefaultTokenImage, v as jsx } from './index-C8Pybl6W.js';
1
+ import { b as reactExports, K as getDefaultTokenImage, w as jsx } from './index-BPK6WOYV.js';
2
2
 
3
3
  function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
4
4
  const [error, setError] = reactExports.useState(false);
@@ -1,4 +1,4 @@
1
- import { r as reactExports, cb as formatUnits, v as jsx, x as jsxs, dH as isDualVariantIcon, aP as MenuItem, B as Box, k as useTranslation, aU as ViewContext, G as CryptoFiatContext, F as EventTargetContext, D as useAnalytics, a1 as CryptoFiatActions, dI as DEFAULT_TOKEN_SYMBOLS, cT as st, M as HeaderNavigation, H as Heading, A as Body, z as SimpleLayout, o as oo, V as ViewActions, O as orchestrationEvents, bM as K } from './index-C8Pybl6W.js';
1
+ import { b as reactExports, cb as formatUnits, w as jsx, x as jsxs, dH 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, dI as DEFAULT_TOKEN_SYMBOLS, cT as st, M as HeaderNavigation, H as Heading, D as Body, z as SimpleLayout, r as ro, V as ViewActions, O as orchestrationEvents, bM as K } from './index-BPK6WOYV.js';
2
2
 
3
3
  var BridgeWidgetViews;
4
4
  (function (BridgeWidgetViews) {
@@ -216,7 +216,7 @@ showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analyt
216
216
  });
217
217
  };
218
218
  const onClickSwap = () => {
219
- if (widgetEvent === oo.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 === oo.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 === oo.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 { ac as hFlex, v as jsx, dw as motion, ae as _objectWithoutProperties, Q as useTheme, r 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, A as Body, aF as Fragment, D as useAnalytics, dD as Select, bM as K, dE as DuoCon, H as Heading, y as Button, cJ as retry, cR as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dr as DEFAULT_BALANCE_RETRY_POLICY, cO as isMetaMaskProvider, W as CloudImage, c5 as FooterLogo, X as getRemoteImage, cM as getChainNameById, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign } from './index-C8Pybl6W.js';
2
- import { T as TokenImage } from './TokenImage-D9BGjc4I.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, bM as K, dE as DuoCon, H as Heading, y as Button, cJ as retry, cR as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dr as DEFAULT_BALANCE_RETRY_POLICY, cO as isMetaMaskProvider, W as CloudImage, c5 as FooterLogo, X as getRemoteImage, cM as getChainNameById, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign } from './index-BPK6WOYV.js';
2
+ import { T as TokenImage } from './TokenImage-C1ydXYvS.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; }
@@ -1,6 +1,6 @@
1
- import { ae as _objectWithoutProperties, Q as useTheme, dJ as getStartingSize, dK as DEFAULT_BUTTON_SIZE, al as merge, r as reactExports, ar as flattenChildren, v as jsx, dB as isChildSubcomponent, au as SmartClone, B as Box, dL as getResponsiveSx, dM as BUTTON_SIZES, dN as setDefaultSxBackgroundColor, b3 as ButtCon, dz as ClassNames, y as Button, ad as _defineProperty, j as ae, k as useTranslation, aU as ViewContext, x as jsxs, A as Body, V as ViewActions, Z as ConnectLoaderContext, D as useAnalytics, F as EventTargetContext, bM as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, o as oo, d as formatZeroAmount, aK as isPassportProvider, dO as ZERO_BALANCE_STRING, a$ as isNativeToken, dP as sendNetworkSwitchEvent, cy as S, a5 as SharedViews, dQ as ge, dR as sortNetworksCompareFn, cB as getChainImage, cJ as retry, dr as DEFAULT_BALANCE_RETRY_POLICY, dS as sortTokensByAmount, b0 as getTokenImageByAddress, e as calculateCryptoToFiat, G as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cQ as ButtonNavigationStyles, dT as sendWalletWidgetCloseEvent, c5 as FooterLogo, z as SimpleLayout, cP as fe, cN as getWalletProviderNameByProvider, dH as isDualVariantIcon, ca as abbreviateWalletAddress, H as Heading, aA as Drawer, cD as useWalletConnect, dU as sendDisconnectWalletEvent, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign, d1 as SimpleTextBody, dV as FAQS_LINK, L as Link, bH as viewReducer, bI as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-C8Pybl6W.js';
2
- import { T as TokenImage } from './TokenImage-D9BGjc4I.js';
3
- import { u as useInterval } from './useInterval-CI7WTOt5.js';
1
+ import { ae as _objectWithoutProperties, Q as useTheme, dJ as getStartingSize, dK 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, dL as getResponsiveSx, dM as BUTTON_SIZES, dN as setDefaultSxBackgroundColor, b3 as ButtCon, dz as ClassNames, y as Button, ad as _defineProperty, j as ie, k as useTranslation, aU as ViewContext, x as jsxs, D as Body, V as ViewActions, Z as ConnectLoaderContext, F as useAnalytics, G as EventTargetContext, bM as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, r as ro, d as formatZeroAmount, aK as isPassportProvider, dO as ZERO_BALANCE_STRING, a$ as isNativeToken, dP as sendNetworkSwitchEvent, cy as S, a5 as SharedViews, dQ as ge, dR as sortNetworksCompareFn, cB as getChainImage, cJ as retry, dr as DEFAULT_BALANCE_RETRY_POLICY, dS as sortTokensByAmount, b0 as getTokenImageByAddress, e as calculateCryptoToFiat, I as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cQ as ButtonNavigationStyles, dT as sendWalletWidgetCloseEvent, c5 as FooterLogo, z as SimpleLayout, cP as fe, cN as getWalletProviderNameByProvider, dH as isDualVariantIcon, ca as abbreviateWalletAddress, H as Heading, aA as Drawer, cD as useWalletConnect, dU as sendDisconnectWalletEvent, cG as isWalletConnectProvider, c$ as heroBackGroundStyles, d0 as heroImageStyles, dF as heroImageBottomAlign, d1 as SimpleTextBody, dV as FAQS_LINK, L as Link, bH as viewReducer, bI as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-BPK6WOYV.js';
2
+ import { T as TokenImage } from './TokenImage-C1ydXYvS.js';
3
+ import { u as useInterval } from './useInterval-DsmMsnMZ.js';
4
4
 
5
5
  var horizontalMenuSxProps = {
6
6
  justifyContent: "stretch",
@@ -263,7 +263,7 @@ const walletReducer = (state, action) => {
263
263
 
264
264
  const fetchTokenSymbols = async (checkout, chainId) => {
265
265
  const tokenAllowList = await checkout.getTokenAllowList({
266
- type: ae.ALL,
266
+ type: ie.ALL,
267
267
  chainId,
268
268
  });
269
269
  const symbolSet = new Set();
@@ -339,11 +339,11 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
339
339
  if (!checkout)
340
340
  return;
341
341
  const onRampTokens = checkout.getTokenAllowList({
342
- type: ae.ONRAMP,
342
+ type: ie.ONRAMP,
343
343
  chainId: checkout.config.l2ChainId,
344
344
  });
345
345
  const swapTokens = checkout.getTokenAllowList({
346
- type: ae.SWAP,
346
+ type: ie.SWAP,
347
347
  chainId: checkout.config.l2ChainId,
348
348
  });
349
349
  const [onRampAllowedTokensResult, swapAllowedTokensResult] = await Promise.all([onRampTokens, swapTokens]);
@@ -399,13 +399,13 @@ function BalanceItem({ balanceInfo, theme, bridgeToL2OnClick, }) {
399
399
  },
400
400
  });
401
401
  if (isAddTokensEnabled) {
402
- orchestrationEvents.sendRequestAddTokensEvent(eventTarget, oo.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, oo.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, oo.IMTBL_WALLET_WIDGET_EVENT, {
435
+ orchestrationEvents.sendRequestSwapEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
436
436
  fromTokenAddress: balanceInfo.address ?? '',
437
437
  toTokenAddress: '',
438
438
  amount: '',
@@ -703,10 +703,10 @@ function WalletBalances({ balancesLoading, theme, showNetworkMenu, }) {
703
703
  control: 'AddCoins',
704
704
  controlType: 'Button',
705
705
  });
706
- orchestrationEvents.sendRequestAddTokensEvent(eventTarget, oo.IMTBL_WALLET_WIDGET_EVENT, {});
706
+ orchestrationEvents.sendRequestAddTokensEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {});
707
707
  };
708
708
  const handleBridgeToL2OnClick = (address) => {
709
- orchestrationEvents.sendRequestBridgeEvent(eventTarget, oo.IMTBL_WALLET_WIDGET_EVENT, {
709
+ orchestrationEvents.sendRequestBridgeEvent(eventTarget, ro.IMTBL_WALLET_WIDGET_EVENT, {
710
710
  tokenAddress: address ?? '',
711
711
  amount: '',
712
712
  });
@@ -1,4 +1,4 @@
1
- import { ep as pTimeout } from './index-C8Pybl6W.js';
1
+ import { ep as pTimeout } from './index-BPK6WOYV.js';
2
2
 
3
3
  // Check if a user is opening the link in a new tab
4
4
  function userNewTab(event) {