@imtbl/checkout-widgets 2.4.14-alpha.0 → 2.4.14-alpha.2

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 (32) hide show
  1. package/dist/browser/{AddTokensWidget-CF1YN2qr.js → AddTokensWidget-B903AgVz.js} +12 -20
  2. package/dist/browser/{BridgeWidget-D1iYISBu.js → BridgeWidget-C0hp_qdU.js} +6 -6
  3. package/dist/browser/{CommerceWidget-0xlC0qeb.js → CommerceWidget-BY2GKdE6.js} +13 -13
  4. package/dist/browser/{FeesBreakdown-9FvnOOCN.js → FeesBreakdown-C10PZ2TK.js} +1 -1
  5. package/dist/browser/{OnRampWidget-Db0Ma0JP.js → OnRampWidget-l9pakVNV.js} +3 -3
  6. package/dist/browser/{SaleWidget-BiU-JU_Y.js → SaleWidget-C_C1_D72.js} +10 -10
  7. package/dist/browser/{SpendingCapHero-DoDWVXeM.js → SpendingCapHero-DDRmPxSq.js} +1 -1
  8. package/dist/browser/{SwapWidget-0b44o7OG.js → SwapWidget-D0e2eQZa.js} +43 -54
  9. package/dist/browser/{TokenImage-ON5CsElS.js → TokenImage-CzG2ksUM.js} +1 -1
  10. package/dist/browser/{TopUpView-BSsm_pag.js → TopUpView-BStJXkp5.js} +1 -1
  11. package/dist/browser/{WalletApproveHero-BpQET2Ry.js → WalletApproveHero-D5KQ5OEy.js} +2 -2
  12. package/dist/browser/{WalletWidget-DPtHMDzk.js → WalletWidget-DRESxGY8.js} +3 -3
  13. package/dist/browser/{auto-track-YB97xHhP.js → auto-track-wPgPtPxX.js} +1 -1
  14. package/dist/browser/{index-DhJhrEPT.js → index-BL_0bAjE.js} +1 -1
  15. package/dist/browser/{index-B6LlGDqn.js → index-BN1q-vS8.js} +2 -2
  16. package/dist/browser/{index-DfqbSiW-.js → index-B_jfZzt6.js} +1 -1
  17. package/dist/browser/{index-CxVwwdjo.js → index-CzEjFz8G.js} +1 -1
  18. package/dist/browser/{index-BGfRODL9.js → index-DHIZHxPx.js} +1 -1
  19. package/dist/browser/{index-DkUaawBA.js → index-Do4ZgyN7.js} +1 -1
  20. package/dist/browser/{index-_E9_8iXP.js → index-HTXtW8zO.js} +1 -1
  21. package/dist/browser/{index-CYSUCb_r.js → index-Z6GjvNis.js} +103 -69
  22. package/dist/browser/index.js +1 -1
  23. package/dist/browser/{index.umd-C_C0lXQh.js → index.umd-DJn-rReG.js} +1 -1
  24. package/dist/browser/{useInterval-BjJWflew.js → useInterval-Dwmbl47G.js} +1 -1
  25. package/dist/types/functions/checkSanctionedAddresses.d.ts +6 -1
  26. package/dist/types/widgets/swap/context/SwapContext.d.ts +3 -9
  27. package/package.json +7 -7
  28. package/src/functions/checkSanctionedAddresses.ts +15 -4
  29. package/src/widgets/add-tokens/views/AddTokens.tsx +2 -17
  30. package/src/widgets/swap/SwapWidget.tsx +0 -23
  31. package/src/widgets/swap/components/SwapForm.tsx +45 -21
  32. package/src/widgets/swap/context/SwapContext.ts +1 -16
@@ -1,9 +1,9 @@
1
- import { k as useTranslation, x as jsxs, df as quickswapFooterStyles, B as Box, dg as quickswapFooterLogoStyles, v as jsx, A as Body, dh as quickswapFooterDisclaimerTextStyles, di as Po, X as getRemoteImage, r as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cG as Logo, dj as getImxTokenImage, cd as formatUnits, j as calculateCryptoToFiat, J as tokenValueFormat, ck as isGasFree, b as parseUnits, h as formatZeroAmount, cB as ShimmerBox, bH as PriceDisplay, aF as Fragment, dk as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cT as NATIVE, aU as ViewContext, D as useAnalytics, dl as calculateFeesFiat, U as UserJourney, cW as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dm as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bO as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dn as ESTIMATE_DEBOUNCE, dp as DEFAULT_TOKEN_VALIDATION_DECIMALS, bn as Ot, c_ as DEFAULT_TOKEN_DECIMALS, F as EventTargetContext, dq as sendSwapWidgetCloseEvent, O as orchestrationEvents, o as oo, M as HeaderNavigation, a0 as LoadingView, z as SimpleLayout, cZ as IMX_TOKEN_SYMBOL, cA as S, d2 as SimpleTextBody, d3 as FooterButton, dr as m, d0 as heroBackGroundStyles, d1 as heroImageStyles, bB as Trans, L as Link, c7 as FooterLogo, aV as useHandover, bJ as viewReducer, bK as initialViewState, ds as DEFAULT_BALANCE_RETRY_POLICY, bm as xt, dt as Ao, d8 as StatusView, du as sendSwapSuccessEvent, c8 as StatusType, dv as sendSwapFailedEvent, dw as sendSwapRejectedEvent, a6 as ErrorView, bS as ServiceUnavailableErrorView, e as ae, cR as fe } from './index-CYSUCb_r.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-BpQET2Ry.js';
3
- import { u as useInterval } from './useInterval-BjJWflew.js';
4
- import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-BSsm_pag.js';
5
- import { F as FeesBreakdown } from './FeesBreakdown-9FvnOOCN.js';
6
- import { S as SpendingCapHero } from './SpendingCapHero-DoDWVXeM.js';
1
+ import { k as useTranslation, x as jsxs, dh as quickswapFooterStyles, B as Box, di as quickswapFooterLogoStyles, v as jsx, A as Body, dj as quickswapFooterDisclaimerTextStyles, dk as Po, X as getRemoteImage, r as reactExports, y as Button, aA as Drawer, W as CloudImage, H as Heading, cI as Logo, dl as getImxTokenImage, cf as formatUnits, j as calculateCryptoToFiat, J as tokenValueFormat, cm as isGasFree, b as parseUnits, h as formatZeroAmount, cD as ShimmerBox, bH as PriceDisplay, aF as Fragment, dm as getCryptoToUSDConversion, Z as ConnectLoaderContext, a$ as isNativeToken, cV as NATIVE, aU as ViewContext, D as useAnalytics, dn as calculateFeesFiat, U as UserJourney, cY as DEFAULT_QUOTE_REFRESH_INTERVAL, aK as isPassportProvider, dp as parseEther, P as amountInputValidation, b3 as ButtCon, bj as motion, b8 as Tooltip, bd as Icon, bO as K, V as ViewActions, a5 as SharedViews, K as getDefaultTokenImage, dq as ESTIMATE_DEBOUNCE, dr as DEFAULT_TOKEN_VALIDATION_DECIMALS, bm as Ka, ds as Ha, d0 as DEFAULT_TOKEN_DECIMALS, F as EventTargetContext, dt as sendSwapWidgetCloseEvent, O as orchestrationEvents, o as oo, M as HeaderNavigation, a0 as LoadingView, z as SimpleLayout, c$ as IMX_TOKEN_SYMBOL, cC as S, d4 as SimpleTextBody, d5 as FooterButton, du as m, d2 as heroBackGroundStyles, d3 as heroImageStyles, bB as Trans, L as Link, c9 as FooterLogo, aV as useHandover, bJ as viewReducer, bK as initialViewState, dv as DEFAULT_BALANCE_RETRY_POLICY, dw as yo, da as StatusView, dx as sendSwapSuccessEvent, ca as StatusType, dy as sendSwapFailedEvent, dz as sendSwapRejectedEvent, a6 as ErrorView, bS as ServiceUnavailableErrorView, e as ae, cT as fe } from './index-Z6GjvNis.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-D5KQ5OEy.js';
3
+ import { u as useInterval } from './useInterval-Dwmbl47G.js';
4
+ import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-BStJXkp5.js';
5
+ import { F as FeesBreakdown } from './FeesBreakdown-C10PZ2TK.js';
6
+ import { S as SpendingCapHero } from './SpendingCapHero-DDRmPxSq.js';
7
7
 
8
8
  function QuickswapFooter({ theme, environment }) {
9
9
  const { t } = useTranslation();
@@ -21,7 +21,6 @@ const initialSwapState = {
21
21
  supportedTopUps: null,
22
22
  allowedTokens: [],
23
23
  autoProceed: false,
24
- riskAssessment: undefined,
25
24
  };
26
25
  var SwapActions;
27
26
  (function (SwapActions) {
@@ -32,7 +31,6 @@ var SwapActions;
32
31
  SwapActions["SET_TOKEN_BALANCES"] = "SET_TOKEN_BALANCES";
33
32
  SwapActions["SET_ALLOWED_TOKENS"] = "SET_ALLOWED_TOKENS";
34
33
  SwapActions["SET_AUTO_PROCEED"] = "SET_AUTO_PROCEED";
35
- SwapActions["SET_RISK_ASSESSMENT"] = "SET_RISK_ASSESSMENT";
36
34
  })(SwapActions || (SwapActions = {}));
37
35
  // eslint-disable-next-line @typescript-eslint/naming-convention
38
36
  const SwapContext = reactExports.createContext({
@@ -82,11 +80,6 @@ const swapReducer = (state, action) => {
82
80
  autoProceed: action.payload.autoProceed,
83
81
  direction: action.payload.direction,
84
82
  };
85
- case SwapActions.SET_RISK_ASSESSMENT:
86
- return {
87
- ...state,
88
- riskAssessment: action.payload.riskAssessment,
89
- };
90
83
  default:
91
84
  return state;
92
85
  }
@@ -522,7 +515,7 @@ class PriceImpactError extends Error {
522
515
  }
523
516
  function SwapForm({ data, theme, cancelAutoProceed }) {
524
517
  const { t } = useTranslation();
525
- const { swapState: { allowedTokens, tokenBalances, network, autoProceed, riskAssessment, }, } = reactExports.useContext(SwapContext);
518
+ const { swapState: { allowedTokens, tokenBalances, network, autoProceed, }, } = reactExports.useContext(SwapContext);
526
519
  const { connectLoaderState } = reactExports.useContext(ConnectLoaderContext);
527
520
  const { checkout, provider } = connectLoaderState;
528
521
  const defaultTokenImage = getDefaultTokenImage(checkout?.config.environment, theme);
@@ -1132,17 +1125,6 @@ function SwapForm({ data, theme, cancelAutoProceed }) {
1132
1125
  const sendTransaction = async () => {
1133
1126
  if (!quote)
1134
1127
  return;
1135
- if (riskAssessment && Ot(riskAssessment)) {
1136
- viewDispatch({
1137
- payload: {
1138
- type: ViewActions.UPDATE_VIEW,
1139
- view: {
1140
- type: SwapWidgetViews.SERVICE_UNAVAILABLE,
1141
- },
1142
- },
1143
- });
1144
- return;
1145
- }
1146
1128
  const transaction = quote;
1147
1129
  const isValid = SwapFormValidator();
1148
1130
  // Tracking swap from data here and is valid or not to understand behaviour
@@ -1152,12 +1134,12 @@ function SwapForm({ data, theme, cancelAutoProceed }) {
1152
1134
  control: 'Swap',
1153
1135
  controlType: 'Button',
1154
1136
  extras: {
1155
- swapFromAddress: data?.fromTokenAddress,
1156
- swapFromAmount: data?.fromAmount,
1157
- swapFromTokenSymbol: data?.fromTokenSymbol,
1158
- swapToAddress: data?.toTokenAddress,
1159
- swapToAmount: data?.toAmount,
1160
- swapToTokenSymbol: data?.toTokenSymbol,
1137
+ swapFromAddress: fromToken?.address,
1138
+ swapFromAmount: fromAmount,
1139
+ swapFromTokenSymbol: fromToken?.symbol,
1140
+ swapToAddress: toToken?.address,
1141
+ swapToAmount: toAmount,
1142
+ swapToTokenSymbol: toToken?.symbol,
1161
1143
  isSwapFormValid: isValid,
1162
1144
  hasFundsForGas: !insufficientFundsForGas,
1163
1145
  autoProceed,
@@ -1172,6 +1154,31 @@ function SwapForm({ data, theme, cancelAutoProceed }) {
1172
1154
  openNotEnoughImxDrawer();
1173
1155
  return;
1174
1156
  }
1157
+ // Perform sanctions check once we have valid asset and amount data
1158
+ const address = await (await provider?.getSigner())?.getAddress();
1159
+ if (!address) {
1160
+ return;
1161
+ }
1162
+ if (!fromToken?.address || !fromAmount) {
1163
+ throw new Error('Invalid form data: fromToken.Address or fromAmount is missing');
1164
+ }
1165
+ const riskAssessmentData = [{
1166
+ address,
1167
+ tokenAddr: fromToken.address,
1168
+ amount: parseUnits(fromAmount, fromToken.decimals),
1169
+ }];
1170
+ const riskAssessment = await Ka(riskAssessmentData, checkout.config);
1171
+ if (riskAssessment && Ha(riskAssessment, address)) {
1172
+ viewDispatch({
1173
+ payload: {
1174
+ type: ViewActions.UPDATE_VIEW,
1175
+ view: {
1176
+ type: SwapWidgetViews.SERVICE_UNAVAILABLE,
1177
+ },
1178
+ },
1179
+ });
1180
+ return;
1181
+ }
1175
1182
  try {
1176
1183
  // check for switch network here
1177
1184
  const currentChainId = await provider.provider.send('eth_chainId', []);
@@ -1237,7 +1244,7 @@ function SwapForm({ data, theme, cancelAutoProceed }) {
1237
1244
  paddingBottom: 'base.spacing.x1',
1238
1245
  }, children: t('views.SWAP.swapForm.from.label') }), jsx(SelectInput, { testId: "fromTokenInputs", options: tokensOptionsFrom, selectSubtext: fromToken
1239
1246
  ? `${t('views.SWAP.content.availableBalancePrefix')} ${tokenValueFormat(fromBalance)}`
1240
- : '', selectTextAlign: "left", textInputType: "number", testInputMode: "decimal", textInputValue: fromAmount, textInputPlaceholder: t('views.SWAP.swapForm.from.inputPlaceholder'), textInputSubtext: `${t('views.SWAP.content.fiatPricePrefix')}
1247
+ : '', selectTextAlign: "left", textInputType: "number", testInputMode: "decimal", textInputValue: fromAmount, textInputPlaceholder: t('views.SWAP.swapForm.from.inputPlaceholder'), textInputSubtext: `${t('views.SWAP.content.fiatPricePrefix')}
1241
1248
  $${formatZeroAmount(fromFiatValue, true)}`, textInputTextAlign: "right", textInputValidator: amountInputValidation, onTextInputChange: (v) => onFromTextInputChange(v), onTextInputFocus: onFromTextInputFocus, textInputMaxButtonClick: textInputMaxButtonClick, onSelectChange: onFromSelectChange, textInputErrorMessage: t(fromAmountError), selectErrorMessage: t(fromTokenError), selectedOption: fromToken
1242
1249
  ? formatTokenOptionsId(fromToken.symbol, fromToken.address)
1243
1250
  : undefined, coinSelectorHeading: t('views.SWAP.swapForm.from.selectorTitle'), defaultTokenImage: defaultTokenImage, control: "FromToken", userJourney: UserJourney.SWAP, screen: "SwapCoins", environment: checkout?.config.environment, theme: theme })] }), jsx(Box, { sx: {
@@ -1851,30 +1858,12 @@ function SwapWidget({ amount, fromTokenAddress, toTokenAddress, config, autoProc
1851
1858
  }
1852
1859
  })();
1853
1860
  }, [checkout, provider]);
1854
- reactExports.useEffect(() => {
1855
- if (!checkout || swapState.riskAssessment) {
1856
- return;
1857
- }
1858
- (async () => {
1859
- const address = await (await provider?.getSigner())?.getAddress();
1860
- if (!address) {
1861
- return;
1862
- }
1863
- const assessment = await xt([address], checkout.config);
1864
- swapDispatch({
1865
- payload: {
1866
- type: SwapActions.SET_RISK_ASSESSMENT,
1867
- riskAssessment: assessment,
1868
- },
1869
- });
1870
- })();
1871
- }, [checkout, provider]);
1872
1861
  reactExports.useEffect(() => {
1873
1862
  swapDispatch({
1874
1863
  payload: {
1875
1864
  type: SwapActions.SET_AUTO_PROCEED,
1876
1865
  autoProceed: autoProceed ?? false,
1877
- direction: direction ?? Ao.FROM,
1866
+ direction: direction ?? yo.FROM,
1878
1867
  },
1879
1868
  });
1880
1869
  }, [autoProceed, direction]);
@@ -1884,13 +1873,13 @@ function SwapWidget({ amount, fromTokenAddress, toTokenAddress, config, autoProc
1884
1873
  payload: {
1885
1874
  type: SwapActions.SET_AUTO_PROCEED,
1886
1875
  autoProceed: false,
1887
- direction: Ao.FROM,
1876
+ direction: yo.FROM,
1888
1877
  },
1889
1878
  });
1890
1879
  }
1891
1880
  }, [autoProceed, swapDispatch]);
1892
- const fromAmount = direction === Ao.FROM || direction == null ? amount : undefined;
1893
- const toAmount = direction === Ao.TO ? amount : undefined;
1881
+ const fromAmount = direction === yo.FROM || direction == null ? amount : undefined;
1882
+ const toAmount = direction === yo.TO ? amount : undefined;
1894
1883
  const topUpOptions = reactExports.useMemo(() => {
1895
1884
  const optionsArray = [];
1896
1885
  const isNotPassport = !isPassportProvider(provider)
@@ -1,4 +1,4 @@
1
- import { r as reactExports, K as getDefaultTokenImage, v as jsx } from './index-CYSUCb_r.js';
1
+ import { r as reactExports, K as getDefaultTokenImage, v as jsx } from './index-Z6GjvNis.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, cd 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, cV as st, M as HeaderNavigation, H as Heading, A as Body, z as SimpleLayout, o as oo, V as ViewActions, O as orchestrationEvents, bO as K } from './index-CYSUCb_r.js';
1
+ import { r as reactExports, cf as formatUnits, v as jsx, x as jsxs, dK 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, dL as DEFAULT_TOKEN_SYMBOLS, cX as st, M as HeaderNavigation, H as Heading, A as Body, z as SimpleLayout, o as oo, V as ViewActions, O as orchestrationEvents, bO as K } from './index-Z6GjvNis.js';
2
2
 
3
3
  var BridgeWidgetViews;
4
4
  (function (BridgeWidgetViews) {
@@ -1,5 +1,5 @@
1
- import { ac as hFlex, v as jsx, dx as motion, ae as _objectWithoutProperties, Q as useTheme, r as reactExports, ag as _slicedToArray, aq as useGetSubcomponentChild, al as merge, x as jsxs, dy as BaseClickable, b3 as ButtCon, au as SmartClone, dz as AnimatePresence, B as Box, S as Stack, dA as ClassNames, ad as _defineProperty, dB as getTertiaryButtonStyles, ar as flattenChildren, dC as isChildSubcomponent, aB as Divider, b4 as TextInput, dD as FormControlWrapper, k as useTranslation, aP as MenuItem, aA as Drawer, A as Body, aF as Fragment, D as useAnalytics, dE as Select, bO as K, di as Po, dF as DuoCon, H as Heading, y as Button, cL as retry, cT as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, ds as DEFAULT_BALANCE_RETRY_POLICY, cQ as isMetaMaskProvider, W as CloudImage, c7 as FooterLogo, X as getRemoteImage, cO as getChainNameById, cI as isWalletConnectProvider, d0 as heroBackGroundStyles, d1 as heroImageStyles, dG as heroImageBottomAlign } from './index-CYSUCb_r.js';
2
- import { T as TokenImage } from './TokenImage-ON5CsElS.js';
1
+ import { ac as hFlex, v as jsx, dA as motion, ae as _objectWithoutProperties, Q as useTheme, r as reactExports, ag as _slicedToArray, aq as useGetSubcomponentChild, al as merge, x as jsxs, dB as BaseClickable, b3 as ButtCon, au as SmartClone, dC as AnimatePresence, B as Box, S as Stack, dD as ClassNames, ad as _defineProperty, dE as getTertiaryButtonStyles, ar as flattenChildren, dF as isChildSubcomponent, aB as Divider, b4 as TextInput, dG as FormControlWrapper, k as useTranslation, aP as MenuItem, aA as Drawer, A as Body, aF as Fragment, D as useAnalytics, dH as Select, bO as K, dk as Po, dI as DuoCon, H as Heading, y as Button, cN as retry, cV as NATIVE, b0 as getTokenImageByAddress, a$ as isNativeToken, dv as DEFAULT_BALANCE_RETRY_POLICY, cS as isMetaMaskProvider, W as CloudImage, c9 as FooterLogo, X as getRemoteImage, cQ as getChainNameById, cK as isWalletConnectProvider, d2 as heroBackGroundStyles, d3 as heroImageStyles, dJ as heroImageBottomAlign } from './index-Z6GjvNis.js';
2
+ import { T as TokenImage } from './TokenImage-CzG2ksUM.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, dC as isChildSubcomponent, au as SmartClone, B as Box, dL as getResponsiveSx, dM as BUTTON_SIZES, dN as setDefaultSxBackgroundColor, b3 as ButtCon, dA as ClassNames, y as Button, ad as _defineProperty, e 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, bO as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, o as oo, h as formatZeroAmount, aK as isPassportProvider, dO as ZERO_BALANCE_STRING, a$ as isNativeToken, dP as sendNetworkSwitchEvent, cA as S, a5 as SharedViews, dQ as ge, dR as sortNetworksCompareFn, cD as getChainImage, cL as retry, ds as DEFAULT_BALANCE_RETRY_POLICY, dS as sortTokensByAmount, b0 as getTokenImageByAddress, j as calculateCryptoToFiat, G as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cS as ButtonNavigationStyles, dT as sendWalletWidgetCloseEvent, c7 as FooterLogo, z as SimpleLayout, cR as fe, cP as getWalletProviderNameByProvider, dH as isDualVariantIcon, cc as abbreviateWalletAddress, H as Heading, aA as Drawer, cF as useWalletConnect, dU as sendDisconnectWalletEvent, cI as isWalletConnectProvider, d0 as heroBackGroundStyles, d1 as heroImageStyles, dG as heroImageBottomAlign, d2 as SimpleTextBody, dV as FAQS_LINK, L as Link, bJ as viewReducer, bK as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-CYSUCb_r.js';
2
- import { T as TokenImage } from './TokenImage-ON5CsElS.js';
3
- import { u as useInterval } from './useInterval-BjJWflew.js';
1
+ import { ae as _objectWithoutProperties, Q as useTheme, dM as getStartingSize, dN as DEFAULT_BUTTON_SIZE, al as merge, r as reactExports, ar as flattenChildren, v as jsx, dF as isChildSubcomponent, au as SmartClone, B as Box, dO as getResponsiveSx, dP as BUTTON_SIZES, dQ as setDefaultSxBackgroundColor, b3 as ButtCon, dD as ClassNames, y as Button, ad as _defineProperty, e 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, bO as K, aP as MenuItem, J as tokenValueFormat, U as UserJourney, O as orchestrationEvents, o as oo, h as formatZeroAmount, aK as isPassportProvider, dR as ZERO_BALANCE_STRING, a$ as isNativeToken, dS as sendNetworkSwitchEvent, cC as S, a5 as SharedViews, dT as ge, dU as sortNetworksCompareFn, cF as getChainImage, cN as retry, dv as DEFAULT_BALANCE_RETRY_POLICY, dV as sortTokensByAmount, b0 as getTokenImageByAddress, j as calculateCryptoToFiat, G as CryptoFiatContext, a1 as CryptoFiatActions, M as HeaderNavigation, cU as ButtonNavigationStyles, dW as sendWalletWidgetCloseEvent, c9 as FooterLogo, z as SimpleLayout, cT as fe, cR as getWalletProviderNameByProvider, dK as isDualVariantIcon, ce as abbreviateWalletAddress, H as Heading, aA as Drawer, cH as useWalletConnect, dX as sendDisconnectWalletEvent, cK as isWalletConnectProvider, d2 as heroBackGroundStyles, d3 as heroImageStyles, dJ as heroImageBottomAlign, d4 as SimpleTextBody, dY as FAQS_LINK, L as Link, bJ as viewReducer, bK as initialViewState, Y as CryptoFiatProvider, a0 as LoadingView, a6 as ErrorView } from './index-Z6GjvNis.js';
2
+ import { T as TokenImage } from './TokenImage-CzG2ksUM.js';
3
+ import { u as useInterval } from './useInterval-Dwmbl47G.js';
4
4
 
5
5
  var horizontalMenuSxProps = {
6
6
  justifyContent: "stretch",
@@ -1,4 +1,4 @@
1
- import { ep as pTimeout } from './index-CYSUCb_r.js';
1
+ import { es as pTimeout } from './index-Z6GjvNis.js';
2
2
 
3
3
  // Check if a user is opening the link in a new tab
4
4
  function userNewTab(event) {
@@ -1,4 +1,4 @@
1
- import { eq as gracefulDecodeURIComponent, ei as isPlainObject } from './index-CYSUCb_r.js';
1
+ import { et as gracefulDecodeURIComponent, el as isPlainObject } from './index-Z6GjvNis.js';
2
2
 
3
3
  /**
4
4
  * Returns an object containing only the properties prefixed by the input
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator } from './index-CYSUCb_r.js';
1
+ import { e8 as __awaiter, e9 as __generator } from './index-Z6GjvNis.js';
2
2
 
3
3
  function loadLegacyVideoPlugins(analytics) {
4
4
  return __awaiter(this, void 0, void 0, function () {
@@ -7,7 +7,7 @@ function loadLegacyVideoPlugins(analytics) {
7
7
  switch (_a.label) {
8
8
  case 0: return [4 /*yield*/, import(
9
9
  // @ts-expect-error
10
- './index.umd-C_C0lXQh.js').then(function (n) { return n.i; })
10
+ './index.umd-DJn-rReG.js').then(function (n) { return n.i; })
11
11
  // This is super gross, but we need to support the `window.analytics.plugins` namespace
12
12
  // that is linked in the segment docs in order to be backwards compatible with ajs-classic
13
13
  // @ts-expect-error
@@ -1,4 +1,4 @@
1
- import { dX as se$1, dY as T$2, dZ as oe$1, d_ as R$1, d$ as a$2, e0 as te$1, e1 as p$1, e2 as ne$1, e3 as y$1 } from './index-CYSUCb_r.js';
1
+ import { d_ as se$1, d$ as T$2, e0 as oe$1, e1 as R$1, e2 as a$2, e3 as te$1, e4 as p$1, e5 as ne$1, e6 as y$1 } from './index-Z6GjvNis.js';
2
2
 
3
3
  /**
4
4
  * @license
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator, e7 as loadScript, e8 as getNextIntegrationsURL, e9 as unloadScript, ea as __spreadArray, eb as isOffline, ec as __assign, ed as ContextCancelation, ee as applyDestinationMiddleware, ef as dist, eg as isServer, eh as mergedOptions, ei as isPlainObject, ej as pWhile, ek as PriorityQueue, el as PersistedPriorityQueue, em as attempt, en as isOnline, eo as Context } from './index-CYSUCb_r.js';
1
+ import { e8 as __awaiter, e9 as __generator, ea as loadScript, eb as getNextIntegrationsURL, ec as unloadScript, ed as __spreadArray, ee as isOffline, ef as __assign, eg as ContextCancelation, eh as applyDestinationMiddleware, ei as dist, ej as isServer, ek as mergedOptions, el as isPlainObject, em as pWhile, en as PriorityQueue, eo as PersistedPriorityQueue, ep as attempt, eq as isOnline, er as Context } from './index-Z6GjvNis.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function normalizeName(name) {
@@ -1,4 +1,4 @@
1
- import { e4 as getAugmentedNamespace, az as commonjsGlobal } from './index-CYSUCb_r.js';
1
+ import { e7 as getAugmentedNamespace, az as commonjsGlobal } from './index-Z6GjvNis.js';
2
2
 
3
3
  var dist$1 = {};
4
4
 
@@ -1,4 +1,4 @@
1
- import { e5 as __awaiter, e6 as __generator, eg as isServer, e8 as getNextIntegrationsURL, e7 as loadScript } from './index-CYSUCb_r.js';
1
+ import { e8 as __awaiter, e9 as __generator, ej as isServer, eb as getNextIntegrationsURL, ea as loadScript } from './index-Z6GjvNis.js';
2
2
 
3
3
  function remoteMiddlewares(ctx, settings, obfuscate) {
4
4
  var _a;
@@ -1,4 +1,4 @@
1
- import { ec as __assign } from './index-CYSUCb_r.js';
1
+ import { ef as __assign } from './index-Z6GjvNis.js';
2
2
  import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
3
3
 
4
4
  function disabledActionDestinations(plan, settings) {