@imtbl/sdk 1.77.6-alpha.4 → 1.77.6-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{blockchain_data-DIq7Cu4Y.js → blockchain_data-X99_MkQA.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-BUpq1_ip.js → AddTokensWidget-fGtd8A4E.js} +6 -6
- package/dist/browser/checkout/{BridgeWidget-CbF0Iuky.js → BridgeWidget-DBXQBpXE.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-CR20TLW9.js → CommerceWidget-_gFtjMto.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-CwQtwQ0U.js → CryptoFiatProvider-BUt3MDYn.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-mlg3qPqR.js → FeesBreakdown-BnqSf5cl.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-CiH2vf6N.js → HandoverContent-MFrEss6c.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-CcZGtQlH.js → OnRampWidget-BiPiFJpw.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CUB8oiJl.js → SaleWidget-DoGjnFAG.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-StQ_Hzw_.js → SpendingCapHero-BfZ7qDw3.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BWAmIhmC.js → SwapWidget-DKbEzB4-.js} +9 -9
- package/dist/browser/checkout/{TokenImage-BfMthfR7.js → TokenImage-rKLSB_z6.js} +1 -1
- package/dist/browser/checkout/{TopUpView-C33zJEov.js → TopUpView-2bq3NkgD.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-D0YPQvO-.js → WalletApproveHero-DRqzj9Lk.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-DyHOVd7u.js → WalletWidget-1OuXWLlP.js} +4 -4
- package/dist/browser/checkout/{auto-track-gcq6U8oE.js → auto-track-iFr8mW3Y.js} +1 -1
- package/dist/browser/checkout/{index-Dh6nzLUU.js → index-B0Z7Ef_x.js} +1 -1
- package/dist/browser/checkout/{index-f6es4hbF.js → index-B1HzIBSf.js} +1 -1
- package/dist/browser/checkout/{index-LUtezefC.js → index-B1kw-1Io.js} +33 -23
- package/dist/browser/checkout/{index-eXGmNTt3.js → index-B45KKwI3.js} +1 -1
- package/dist/browser/checkout/{index-DvHHuS7j.js → index-BzbFdlED.js} +1 -1
- package/dist/browser/checkout/{index-sVKzdGOA.js → index-CVJZwR9c.js} +1 -1
- package/dist/browser/checkout/{index-RG86EN48.js → index-DZgTpHya.js} +2 -2
- package/dist/browser/checkout/{index-BmmqxS60.js → index-DorOaqU2.js} +1 -1
- package/dist/browser/checkout/{index-C7D5J6w4.js → index-Dr6-H73j.js} +1 -1
- package/dist/browser/checkout/{index-CIQivm6c.js → index-xm_jjlaJ.js} +1 -1
- package/dist/browser/checkout/{index.umd-CNEJegjE.js → index.umd-Ca2fFacb.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-BIBfurna.js → useInterval-C7A52KiH.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +15 -5
- package/dist/{checkout-D29YXEJ3.js → checkout-DwFaO5Sp.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-D7pOIwmM.js → config-CF4w-FGp.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BH1PRb3C.js → index-B7U-HEDk.js} +3 -3
- package/dist/{index-Do43Clij.js → index-BdICL_oe.js} +1 -1
- package/dist/{index-D3GnfuEq.js → index-Ce2YfEZI.js} +4 -4
- package/dist/{index-ze0FnZqb.js → index-D9qxqLct.js} +1 -1
- package/dist/{index-XQVVpF0N.js → index-DkQqqH2X.js} +1 -1
- package/dist/{index-DR1wJ1X_.js → index-XvZ2irNx.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CA2DNyJr.js → minting_backend-DX9ZqGnI.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DBmKmVi1.js → orderbook-Bt9GgmER.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-NQfqUl2H.js → passport-CMJCyrtD.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/version.json +1 -1
- package/dist/{webhook-onjTvlyD.js → webhook-DroVHHxs.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-W9B96SjQ.js → x-DueMmhAX.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as APIError, B as BlockchainData } from './index-
|
|
2
|
-
import { i as index } from './index-
|
|
1
|
+
import { A as APIError, B as BlockchainData } from './index-B7U-HEDk.js';
|
|
2
|
+
import { i as index } from './index-XvZ2irNx.js';
|
|
3
3
|
|
|
4
4
|
var blockchain_data = /*#__PURE__*/Object.freeze({
|
|
5
5
|
__proto__: null,
|
package/dist/blockchain_data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as APIError, B as BlockchainData } from './index-
|
|
2
|
-
export { i as Types } from './index-
|
|
3
|
-
import './index-
|
|
1
|
+
export { A as APIError, B as BlockchainData } from './index-B7U-HEDk.js';
|
|
2
|
+
export { i as Types } from './index-XvZ2irNx.js';
|
|
3
|
+
import './index-D9qxqLct.js';
|
|
4
4
|
import 'axios';
|
|
5
5
|
import 'lru-memorise';
|
|
6
6
|
import 'global-const';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { r as reactExports, I as IMTBLWidgetEvents, A as AddTokensEventType, y as getDefaultExportFromCjs, z as commonjsGlobal, D as BigNumber, F as useProvidersContext, G as isPassportProvider, p as jsx, q as jsxs, H as Box, u as useTranslation, J as Drawer, K as Divider, M as Heading, N as Button, Q as useAnalytics, R as WalletDrawer, U as UnableToConnectDrawer, T as Fragment, X as WalletProviderRdns, Y as UserJourney, Z as removeSpace, _ as getProviderSlugFromRdns, $ as Web3Provider, a0 as connectEIP6963Provider, a1 as identifyUser, a2 as ConnectEIP6963ProviderError, a3 as ProvidersContextActions, a4 as MenuItem, k as ChainId, a5 as commonjsRequire, a6 as getRemoteImage, a7 as vFlex, a8 as OnboardingPagination, a9 as ViewContext, aa as useHandover, ab as HandoverTarget, ac as EventTargetContext, V as ViewActions, ad as getRemoteRive, ae as Trans, af as Link, ag as Body, ah as keyframes, ai as getDefaultTokenImage, aj as TokenFilterTypes, i as getL2ChainId, ak as isNativeToken, al as getTokenImageByAddress, am as SmartClone, an as FramedImage, ao as FramedIcon, ap as ButtCon, aq as TextInput, ar as VerticalMenu, as as EllipsizedText, at as Tooltip, au as Sticker, av as tokenValueFormat, aw as DEFAULT_TOKEN_FORMATTING_DECIMALS, ax as Stack, ay as hFlex, az as centerFlexChildren, aA as Icon, aB as Badge, aC as getRemoteVideo, aD as FramedVideo, aE as listVariants, aF as motion, aG as listItemVariants, aH as Banner, aI as fetchRiskAssessment, aJ as isAddressSanctioned, aK as useInjectedProviders, aL as trackFlow, aM as HeroFormControl, aN as SimpleLayout, n as SharedViews, aO as orchestrationEvents, aP as HeroTextInput, aQ as requireSecp256k1$1, aR as requireLib_commonjs, aS as require$$0$2, aT as bech32$2, aU as bnExports$1, aV as require$$0$3, aW as getAugmentedNamespace, aX as require$$0$4, aY as minimalisticAssert, aZ as require$$2, a_ as hash$6, a$ as merge$2, b0 as SvgIcon, b1 as trackError, b2 as MaxUint256, b3 as WalletWarningHero, b4 as t, b5 as PriceDisplay, L as LoadingView, b6 as useTheme, b7 as viewReducer, b8 as initialViewState, b9 as Environment, ba as isValidAddress, bb as amountInputValidation, bc as CloudImage, E as ErrorView, bd as ServiceUnavailableErrorView } from './index-
|
|
2
|
-
import { r as retry, T as TokenImage } from './TokenImage-
|
|
3
|
-
import { p as parseUnits, f as formatUnits } from './index-
|
|
4
|
-
import { H as HandoverContent } from './HandoverContent-
|
|
5
|
-
import { C as Contract } from './index-
|
|
6
|
-
import { F as FeesBreakdown } from './FeesBreakdown-
|
|
1
|
+
import { r as reactExports, I as IMTBLWidgetEvents, A as AddTokensEventType, y as getDefaultExportFromCjs, z as commonjsGlobal, D as BigNumber, F as useProvidersContext, G as isPassportProvider, p as jsx, q as jsxs, H as Box, u as useTranslation, J as Drawer, K as Divider, M as Heading, N as Button, Q as useAnalytics, R as WalletDrawer, U as UnableToConnectDrawer, T as Fragment, X as WalletProviderRdns, Y as UserJourney, Z as removeSpace, _ as getProviderSlugFromRdns, $ as Web3Provider, a0 as connectEIP6963Provider, a1 as identifyUser, a2 as ConnectEIP6963ProviderError, a3 as ProvidersContextActions, a4 as MenuItem, k as ChainId, a5 as commonjsRequire, a6 as getRemoteImage, a7 as vFlex, a8 as OnboardingPagination, a9 as ViewContext, aa as useHandover, ab as HandoverTarget, ac as EventTargetContext, V as ViewActions, ad as getRemoteRive, ae as Trans, af as Link, ag as Body, ah as keyframes, ai as getDefaultTokenImage, aj as TokenFilterTypes, i as getL2ChainId, ak as isNativeToken, al as getTokenImageByAddress, am as SmartClone, an as FramedImage, ao as FramedIcon, ap as ButtCon, aq as TextInput, ar as VerticalMenu, as as EllipsizedText, at as Tooltip, au as Sticker, av as tokenValueFormat, aw as DEFAULT_TOKEN_FORMATTING_DECIMALS, ax as Stack, ay as hFlex, az as centerFlexChildren, aA as Icon, aB as Badge, aC as getRemoteVideo, aD as FramedVideo, aE as listVariants, aF as motion, aG as listItemVariants, aH as Banner, aI as fetchRiskAssessment, aJ as isAddressSanctioned, aK as useInjectedProviders, aL as trackFlow, aM as HeroFormControl, aN as SimpleLayout, n as SharedViews, aO as orchestrationEvents, aP as HeroTextInput, aQ as requireSecp256k1$1, aR as requireLib_commonjs, aS as require$$0$2, aT as bech32$2, aU as bnExports$1, aV as require$$0$3, aW as getAugmentedNamespace, aX as require$$0$4, aY as minimalisticAssert, aZ as require$$2, a_ as hash$6, a$ as merge$2, b0 as SvgIcon, b1 as trackError, b2 as MaxUint256, b3 as WalletWarningHero, b4 as t, b5 as PriceDisplay, L as LoadingView, b6 as useTheme, b7 as viewReducer, b8 as initialViewState, b9 as Environment, ba as isValidAddress, bb as amountInputValidation, bc as CloudImage, E as ErrorView, bd as ServiceUnavailableErrorView } from './index-B1kw-1Io.js';
|
|
2
|
+
import { r as retry, T as TokenImage } from './TokenImage-rKLSB_z6.js';
|
|
3
|
+
import { p as parseUnits, f as formatUnits } from './index-xm_jjlaJ.js';
|
|
4
|
+
import { H as HandoverContent } from './HandoverContent-MFrEss6c.js';
|
|
5
|
+
import { C as Contract } from './index-BzbFdlED.js';
|
|
6
|
+
import { F as FeesBreakdown } from './FeesBreakdown-BnqSf5cl.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* The function `useInterval` sets up an interval that repeatedly calls a given callback function with
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { bL as axios, bM as CheckoutErrorType, bN as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, p as jsx, bO as ShimmerBox, a4 as MenuItem, ax as Stack, u as useTranslation, ag as Body, N as Button, H as Box, bP as PASSPORT_URL, af as Link, bQ as getChainIdBySlug, bR as getChainImage, bS as networkName, an as FramedImage, as as EllipsizedText, aA as Icon, Q as useAnalytics, Y as UserJourney, bT as Accordion, K as Divider, a9 as ViewContext, T as Fragment, V as ViewActions, bU as useWalletConnect, bV as isWalletConnectProvider, bW as Logo, bX as RawImage, bY as AXELAR_SCAN_URL, ak as isNativeToken, al as getTokenImageByAddress, bZ as getNativeSymbolByChainSlug, bg as calculateCryptoToFiat, ac as EventTargetContext, G as isPassportProvider, j as getL1ChainId, aj as TokenFilterTypes, i as getL2ChainId, X as WalletProviderRdns, $ as Web3Provider, aK as useInjectedProviders, bn as HeaderNavigation, bq as FooterLogo, R as WalletDrawer, aN as SimpleLayout, b_ as getChainSlugById, b$ as JsonRpcProvider, c0 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c1 as getChainNameById, b6 as useTheme, M as Heading, c2 as getWalletProviderNameByProvider, c3 as isMetaMaskProvider, c4 as WalletProviderName, J as Drawer, ap as ButtCon, c5 as ButtonNavigationStyles, aO as orchestrationEvents, av as tokenValueFormat, c6 as formatZeroAmount, c7 as NATIVE, aI as fetchRiskAssessment, bb as amountInputValidation, a6 as getRemoteImage, bc as CloudImage, c8 as ETH_TOKEN_SYMBOL, D as BigNumber, b9 as Environment, c9 as GasEstimateType, ca as DEFAULT_TOKEN_DECIMALS, cb as DEFAULT_QUOTE_REFRESH_INTERVAL, cc as addChainChangedListener, cd as removeChainChangedListener, aJ as isAddressSanctioned, ce as IMX_TOKEN_SYMBOL, n as SharedViews, cf as dist, cg as CHECKOUT_CDN_BASE_URL, ch as heroBackGroundStyles, ci as heroImageStyles, aB as Badge, cj as SimpleTextBody, ck as FooterButton, cl as getEthTokenImage, cm as WITHDRAWAL_CLAIM_GAS_LIMIT, ai as getDefaultTokenImage, b7 as viewReducer, b8 as initialViewState, cn as BridgeConfiguration, co as ImmutableConfiguration, cp as TokenBridge, cq as StatusView, br as StatusType, E as ErrorView, bd as ServiceUnavailableErrorView, cr as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cs as ETH_SEPOLIA_TO_ZKEVM_DEVNET, ct as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
3
|
-
import { T as TokenImage, r as retry } from './TokenImage-
|
|
4
|
-
import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-
|
|
5
|
-
import { f as formatUnits, p as parseUnits } from './index-
|
|
6
|
-
import { S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-
|
|
7
|
-
import { u as useInterval } from './useInterval-
|
|
8
|
-
import { C as Contract } from './index-
|
|
9
|
-
import './FeesBreakdown-
|
|
1
|
+
import { bL as axios, bM as CheckoutErrorType, bN as IMMUTABLE_API_BASE_URL, r as reactExports, I as IMTBLWidgetEvents, B as BridgeEventType, q as jsxs, p as jsx, bO as ShimmerBox, a4 as MenuItem, ax as Stack, u as useTranslation, ag as Body, N as Button, H as Box, bP as PASSPORT_URL, af as Link, bQ as getChainIdBySlug, bR as getChainImage, bS as networkName, an as FramedImage, as as EllipsizedText, aA as Icon, Q as useAnalytics, Y as UserJourney, bT as Accordion, K as Divider, a9 as ViewContext, T as Fragment, V as ViewActions, bU as useWalletConnect, bV as isWalletConnectProvider, bW as Logo, bX as RawImage, bY as AXELAR_SCAN_URL, ak as isNativeToken, al as getTokenImageByAddress, bZ as getNativeSymbolByChainSlug, bg as calculateCryptoToFiat, ac as EventTargetContext, G as isPassportProvider, j as getL1ChainId, aj as TokenFilterTypes, i as getL2ChainId, X as WalletProviderRdns, $ as Web3Provider, aK as useInjectedProviders, bn as HeaderNavigation, bq as FooterLogo, R as WalletDrawer, aN as SimpleLayout, b_ as getChainSlugById, b$ as JsonRpcProvider, c0 as DEFAULT_TRANSACTIONS_RETRY_POLICY, L as LoadingView, k as ChainId, c1 as getChainNameById, b6 as useTheme, M as Heading, c2 as getWalletProviderNameByProvider, c3 as isMetaMaskProvider, c4 as WalletProviderName, J as Drawer, ap as ButtCon, c5 as ButtonNavigationStyles, aO as orchestrationEvents, av as tokenValueFormat, c6 as formatZeroAmount, c7 as NATIVE, aI as fetchRiskAssessment, bb as amountInputValidation, a6 as getRemoteImage, bc as CloudImage, c8 as ETH_TOKEN_SYMBOL, D as BigNumber, b9 as Environment, c9 as GasEstimateType, ca as DEFAULT_TOKEN_DECIMALS, cb as DEFAULT_QUOTE_REFRESH_INTERVAL, cc as addChainChangedListener, cd as removeChainChangedListener, aJ as isAddressSanctioned, ce as IMX_TOKEN_SYMBOL, n as SharedViews, cf as dist, cg as CHECKOUT_CDN_BASE_URL, ch as heroBackGroundStyles, ci as heroImageStyles, aB as Badge, cj as SimpleTextBody, ck as FooterButton, cl as getEthTokenImage, cm as WITHDRAWAL_CLAIM_GAS_LIMIT, ai as getDefaultTokenImage, b7 as viewReducer, b8 as initialViewState, cn as BridgeConfiguration, co as ImmutableConfiguration, cp as TokenBridge, cq as StatusView, br as StatusType, E as ErrorView, bd as ServiceUnavailableErrorView, cr as ETH_SEPOLIA_TO_ZKEVM_TESTNET, cs as ETH_SEPOLIA_TO_ZKEVM_DEVNET, ct as ETH_MAINNET_TO_ZKEVM_MAINNET } from './index-B1kw-1Io.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-BUt3MDYn.js';
|
|
3
|
+
import { T as TokenImage, r as retry } from './TokenImage-rKLSB_z6.js';
|
|
4
|
+
import { B as BridgeWidgetViews, T as TopUpView } from './TopUpView-2bq3NkgD.js';
|
|
5
|
+
import { f as formatUnits, p as parseUnits } from './index-xm_jjlaJ.js';
|
|
6
|
+
import { S as SelectForm, T as TextInputForm, a as TransactionRejected, g as getAllowedBalances, F as Fees, N as NetworkSwitchDrawer, W as WalletApproveHero } from './WalletApproveHero-DRqzj9Lk.js';
|
|
7
|
+
import { u as useInterval } from './useInterval-C7A52KiH.js';
|
|
8
|
+
import { C as Contract } from './index-BzbFdlED.js';
|
|
9
|
+
import './FeesBreakdown-BnqSf5cl.js';
|
|
10
10
|
|
|
11
11
|
// This module is intended to unwrap Axios default export as named.
|
|
12
12
|
// Keep top-level export same with static properties
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { I as IMTBLWidgetEvents, C as CommerceFlowType, P as ProviderEventType, a as CommerceEventType, b as ConnectEventType, c as CommerceFailureEventType, d as CommerceSuccessEventType, W as WalletEventType, e as CommerceUserActionEventType, S as SwapEventType, A as AddTokensEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as PurchaseEventType, h as OrchestrationEventType, r as reactExports, V as ViewActions, i as getL2ChainId, j as getL1ChainId, k as ChainId, u as useTranslation, l as useViewState, m as useEventTargetState, n as SharedViews, o as commerceFlows, p as jsx, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ProvidersContextProvider, v as PurchaseWidget, w as ConnectLoader, x as ViewContextProvider } from './index-
|
|
2
|
-
import SwapWidget from './SwapWidget-
|
|
3
|
-
import BridgeWidget from './BridgeWidget-
|
|
4
|
-
import { O as OnRampWidget } from './OnRampWidget-
|
|
5
|
-
import WalletWidget from './WalletWidget-
|
|
6
|
-
import SaleWidget from './SaleWidget-
|
|
7
|
-
import AddTokensWidget from './AddTokensWidget-
|
|
8
|
-
import './WalletApproveHero-
|
|
9
|
-
import './TokenImage-
|
|
10
|
-
import './FeesBreakdown-
|
|
11
|
-
import './CryptoFiatProvider-
|
|
12
|
-
import './useInterval-
|
|
13
|
-
import './index-
|
|
14
|
-
import './TopUpView-
|
|
15
|
-
import './SpendingCapHero-
|
|
16
|
-
import './index-
|
|
17
|
-
import './HandoverContent-
|
|
1
|
+
import { I as IMTBLWidgetEvents, C as CommerceFlowType, P as ProviderEventType, a as CommerceEventType, b as ConnectEventType, c as CommerceFailureEventType, d as CommerceSuccessEventType, W as WalletEventType, e as CommerceUserActionEventType, S as SwapEventType, A as AddTokensEventType, B as BridgeEventType, O as OnRampEventType, f as SaleEventType, g as PurchaseEventType, h as OrchestrationEventType, r as reactExports, V as ViewActions, i as getL2ChainId, j as getL1ChainId, k as ChainId, u as useTranslation, l as useViewState, m as useEventTargetState, n as SharedViews, o as commerceFlows, p as jsx, q as jsxs, L as LoadingView, E as ErrorView, s as ConnectWidget, t as ProvidersContextProvider, v as PurchaseWidget, w as ConnectLoader, x as ViewContextProvider } from './index-B1kw-1Io.js';
|
|
2
|
+
import SwapWidget from './SwapWidget-DKbEzB4-.js';
|
|
3
|
+
import BridgeWidget from './BridgeWidget-DBXQBpXE.js';
|
|
4
|
+
import { O as OnRampWidget } from './OnRampWidget-BiPiFJpw.js';
|
|
5
|
+
import WalletWidget from './WalletWidget-1OuXWLlP.js';
|
|
6
|
+
import SaleWidget from './SaleWidget-DoGjnFAG.js';
|
|
7
|
+
import AddTokensWidget from './AddTokensWidget-fGtd8A4E.js';
|
|
8
|
+
import './WalletApproveHero-DRqzj9Lk.js';
|
|
9
|
+
import './TokenImage-rKLSB_z6.js';
|
|
10
|
+
import './FeesBreakdown-BnqSf5cl.js';
|
|
11
|
+
import './CryptoFiatProvider-BUt3MDYn.js';
|
|
12
|
+
import './useInterval-C7A52KiH.js';
|
|
13
|
+
import './index-xm_jjlaJ.js';
|
|
14
|
+
import './TopUpView-2bq3NkgD.js';
|
|
15
|
+
import './SpendingCapHero-BfZ7qDw3.js';
|
|
16
|
+
import './index-BzbFdlED.js';
|
|
17
|
+
import './HandoverContent-MFrEss6c.js';
|
|
18
18
|
|
|
19
19
|
const sendCheckoutEvent = (eventTarget, detail) => {
|
|
20
20
|
const event = new CustomEvent(IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT, { detail });
|
package/dist/browser/checkout/{CryptoFiatProvider-CwQtwQ0U.js → CryptoFiatProvider-BUt3MDYn.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b9 as Environment, bL as axios, r as reactExports, p as jsx } from './index-
|
|
1
|
+
import { b9 as Environment, bL as axios, r as reactExports, p as jsx } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Class representing the configuration for the CryptoFiatModule.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxs, p as jsx, ag as Body, b5 as PriceDisplay, H as Box, u as useTranslation, J as Drawer, a4 as MenuItem, T as Fragment, K as Divider, av as tokenValueFormat, c6 as formatZeroAmount, bq as FooterLogo } from './index-
|
|
1
|
+
import { q as jsxs, p as jsx, ag as Body, b5 as PriceDisplay, H as Box, u as useTranslation, J as Drawer, a4 as MenuItem, T as Fragment, K as Divider, av as tokenValueFormat, c6 as formatZeroAmount, bq as FooterLogo } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
const feesBreakdownContentStyles = {
|
|
4
4
|
display: 'flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as jsxs, H as Box, p as jsx, M as Heading, ag as Body, N as Button } from './index-
|
|
1
|
+
import { q as jsxs, H as Box, p as jsx, M as Heading, ag as Body, N as Button } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
function HandoverContent({ headingText, subheadingText, primaryButtonText, onPrimaryButtonClick, secondaryButtonText, onSecondaryButtonClick, }) {
|
|
4
4
|
return (jsxs(Box, { sx: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { cL as global, Q as useAnalytics, r as reactExports, bD as ConnectLoaderContext, ac as EventTargetContext, u as useTranslation, a9 as ViewContext, n as SharedViews, aI as fetchRiskAssessment, aJ as isAddressSanctioned, V as ViewActions, cM as ExchangeType, p as jsx, aN as SimpleLayout, bn as HeaderNavigation, cN as sendOnRampWidgetCloseEvent, aO as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, Y as UserJourney, bq as FooterLogo, q as jsxs, cj as SimpleTextBody, b7 as viewReducer, b8 as initialViewState, c7 as NATIVE, L as LoadingView, cO as sendOnRampSuccessEvent, br as StatusType, cq as StatusView, cP as sendOnRampFailedEvent, bd as ServiceUnavailableErrorView } from './index-
|
|
2
|
-
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-
|
|
3
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
1
|
+
import { cL as global, Q as useAnalytics, r as reactExports, bD as ConnectLoaderContext, ac as EventTargetContext, u as useTranslation, a9 as ViewContext, n as SharedViews, aI as fetchRiskAssessment, aJ as isAddressSanctioned, V as ViewActions, cM as ExchangeType, p as jsx, aN as SimpleLayout, bn as HeaderNavigation, cN as sendOnRampWidgetCloseEvent, aO as orchestrationEvents, I as IMTBLWidgetEvents, H as Box, Y as UserJourney, bq as FooterLogo, q as jsxs, cj as SimpleTextBody, b7 as viewReducer, b8 as initialViewState, c7 as NATIVE, L as LoadingView, cO as sendOnRampSuccessEvent, br as StatusType, cq as StatusView, cP as sendOnRampFailedEvent, bd as ServiceUnavailableErrorView } from './index-B1kw-1Io.js';
|
|
2
|
+
import { O as OnRampWidgetViews, T as TopUpView } from './TopUpView-2bq3NkgD.js';
|
|
3
|
+
import { S as SpendingCapHero } from './SpendingCapHero-BfZ7qDw3.js';
|
|
4
4
|
|
|
5
5
|
function isNull(arg) {
|
|
6
6
|
return arg === null;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b9 as Environment, D as BigNumber, r as reactExports, be as compareStr, a9 as ViewContext, V as ViewActions, aI as fetchRiskAssessment, p as jsx, bf as SalePaymentTypes, Y as UserJourney, u as useTranslation, bg as calculateCryptoToFiat, Q as useAnalytics, ac as EventTargetContext, bh as sendSaleWidgetCloseEvent, bi as sendSaleSuccessEvent, bj as sendSaleFailedEvent, bk as sendSaleTransactionSuccessEvent, bl as sendSalePaymentMethodEvent, bm as sendSalePaymentTokenEvent, bn as HeaderNavigation, q as jsxs, bo as LoadingOverlay, H as Box, T as Fragment, aN as SimpleLayout, aa as useHandover, ab as HandoverTarget, ad as getRemoteRive, M as Heading, bp as HandoverDuration, G as isPassportProvider, a4 as MenuItem, aF as motion, aE as listVariants, aG as listItemVariants, aJ as isAddressSanctioned, n as SharedViews, bq as FooterLogo, br as StatusType, bs as prettyFormatNumber, av as tokenValueFormat, bt as ShimmerCircle, N as Button, ax as Stack, bu as FundingStepType, bv as abbreviateWalletAddress, J as Drawer, bw as Caption, K as Divider, bx as tokenSymbolNameOverrides, by as ItemType, bz as TransactionOrGasType, bA as GasTokenType, bB as RoutingOutcomeType, ak as isNativeToken, al as getTokenImageByAddress, bC as isGasFree, bD as ConnectLoaderContext, bE as eventTargetReducer, bF as initialEventTargetState, j as getL1ChainId, i as getL2ChainId, I as IMTBLWidgetEvents, bG as EventTargetActions, L as LoadingView, k as ChainId, bH as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bI as ConnectLoaderActions, ap as ButtCon, ag as Body, bJ as widgetTheme, b7 as viewReducer, b8 as initialViewState, bK as BlockExplorerService, bd as ServiceUnavailableErrorView } from './index-
|
|
2
|
-
import { C as Contract } from './index-
|
|
3
|
-
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-
|
|
4
|
-
import { H as HandoverContent } from './HandoverContent-
|
|
5
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
6
|
-
import { u as useMount, T as TopUpView } from './TopUpView-
|
|
7
|
-
import { T as TokenImage } from './TokenImage-
|
|
8
|
-
import { f as formatUnits } from './index-
|
|
9
|
-
import { F as Fees } from './WalletApproveHero-
|
|
10
|
-
import BridgeWidget from './BridgeWidget-
|
|
11
|
-
import SwapWidget from './SwapWidget-
|
|
12
|
-
import './SpendingCapHero-
|
|
13
|
-
import './FeesBreakdown-
|
|
14
|
-
import './useInterval-
|
|
1
|
+
import { b9 as Environment, D as BigNumber, r as reactExports, be as compareStr, a9 as ViewContext, V as ViewActions, aI as fetchRiskAssessment, p as jsx, bf as SalePaymentTypes, Y as UserJourney, u as useTranslation, bg as calculateCryptoToFiat, Q as useAnalytics, ac as EventTargetContext, bh as sendSaleWidgetCloseEvent, bi as sendSaleSuccessEvent, bj as sendSaleFailedEvent, bk as sendSaleTransactionSuccessEvent, bl as sendSalePaymentMethodEvent, bm as sendSalePaymentTokenEvent, bn as HeaderNavigation, q as jsxs, bo as LoadingOverlay, H as Box, T as Fragment, aN as SimpleLayout, aa as useHandover, ab as HandoverTarget, ad as getRemoteRive, M as Heading, bp as HandoverDuration, G as isPassportProvider, a4 as MenuItem, aF as motion, aE as listVariants, aG as listItemVariants, aJ as isAddressSanctioned, n as SharedViews, bq as FooterLogo, br as StatusType, bs as prettyFormatNumber, av as tokenValueFormat, bt as ShimmerCircle, N as Button, ax as Stack, bu as FundingStepType, bv as abbreviateWalletAddress, J as Drawer, bw as Caption, K as Divider, bx as tokenSymbolNameOverrides, by as ItemType, bz as TransactionOrGasType, bA as GasTokenType, bB as RoutingOutcomeType, ak as isNativeToken, al as getTokenImageByAddress, bC as isGasFree, bD as ConnectLoaderContext, bE as eventTargetReducer, bF as initialEventTargetState, j as getL1ChainId, i as getL2ChainId, I as IMTBLWidgetEvents, bG as EventTargetActions, L as LoadingView, k as ChainId, bH as ConnectWidgetViews, s as ConnectWidget, S as SwapEventType, O as OnRampEventType, B as BridgeEventType, b as ConnectEventType, bI as ConnectLoaderActions, ap as ButtCon, ag as Body, bJ as widgetTheme, b7 as viewReducer, b8 as initialViewState, bK as BlockExplorerService, bd as ServiceUnavailableErrorView } from './index-B1kw-1Io.js';
|
|
2
|
+
import { C as Contract } from './index-BzbFdlED.js';
|
|
3
|
+
import { u as useTransakEvents, O as OnRampWidget } from './OnRampWidget-BiPiFJpw.js';
|
|
4
|
+
import { H as HandoverContent } from './HandoverContent-MFrEss6c.js';
|
|
5
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-BUt3MDYn.js';
|
|
6
|
+
import { u as useMount, T as TopUpView } from './TopUpView-2bq3NkgD.js';
|
|
7
|
+
import { T as TokenImage } from './TokenImage-rKLSB_z6.js';
|
|
8
|
+
import { f as formatUnits } from './index-xm_jjlaJ.js';
|
|
9
|
+
import { F as Fees } from './WalletApproveHero-DRqzj9Lk.js';
|
|
10
|
+
import BridgeWidget from './BridgeWidget-DBXQBpXE.js';
|
|
11
|
+
import SwapWidget from './SwapWidget-DKbEzB4-.js';
|
|
12
|
+
import './SpendingCapHero-BfZ7qDw3.js';
|
|
13
|
+
import './FeesBreakdown-BnqSf5cl.js';
|
|
14
|
+
import './useInterval-C7A52KiH.js';
|
|
15
15
|
|
|
16
16
|
var SaleWidgetViews;
|
|
17
17
|
(function (SaleWidgetViews) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as jsx, ch as heroBackGroundStyles, H as Box, ci as heroImageStyles, d4 as heroImageBottomAlign, q as jsxs } from './index-
|
|
1
|
+
import { p as jsx, ch as heroBackGroundStyles, H as Box, ci as heroImageStyles, d4 as heroImageBottomAlign, q as jsxs } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
function SpendingCapHero() {
|
|
4
4
|
return (jsx(Box, { sx: { ...heroBackGroundStyles, background: 'base.color.translucent.emphasis.100' }, children: jsx(Box, { sx: { ...heroImageStyles, ...heroImageBottomAlign }, children: jsxs("svg", { width: "430", height: "305", viewBox: "0 0 430 305", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [jsx("path", { d: "M94.0614 105.632L93.6321 104L92 104.429L92.4292 106.061L94.0614 105.632Z", fill: "white" }), jsx("path", { d: "M63.6531 193.101L63.1006 191L60.9996 191.553L61.5521 193.654L63.6531 193.101Z", fill: "white" }), jsx("path", { d: "M344.489 224.345L342.345 224L342 226.145L344.144 226.49L344.489 224.345Z", fill: "white" }), jsx("path", { d: "M372.286 139.905L372.905 138.619L371.619 138L371 139.286L372.286 139.905Z", fill: "white" }), jsx("path", { d: "M341.653 78.101L341.101 76L339 76.5525L339.552 78.6535L341.653 78.101Z", fill: "white" }), jsx("path", { d: "M359.286 242.905L359.905 241.619L358.619 241L358 242.286L359.286 242.905Z", fill: "white" }), jsx("path", { d: "M87.0123 112.087L86.0869 111L85.0002 111.925L85.9256 113.012L87.0123 112.087Z", fill: "white" }), jsx("path", { d: "M84.2862 248.905L84.9053 247.619L83.6192 247L83.0001 248.286L84.2862 248.905Z", fill: "white" }), jsx("path", { d: "M215.496 262.992C268.237 262.992 310.993 220.237 310.993 167.496C310.993 114.755 268.237 72 215.496 72C162.755 72 120 114.755 120 167.496C120 220.237 162.755 262.992 215.496 262.992Z", fill: "white", fillOpacity: "0.24", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M159.82 95.1695C179.975 79.6536 204.651 73.1506 227.89 77.0665C261.089 82.6606 253.281 101.028 199.197 121.314C151.934 139.037 123.49 136.348 143.823 110.95C148.422 105.208 153.721 99.8623 159.82 95.1695Z", fill: "white", fillOpacity: "0.08" }), jsx("path", { d: "M215.497 227.183C171.451 227.183 135.159 219.871 130.194 210.462H130.187C145.912 241.626 178.21 263.001 215.497 263.001C252.705 263.001 284.942 241.719 300.706 210.664C295.33 219.98 259.232 227.183 215.505 227.183H215.497Z", fill: "#36E0F8", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M284.219 219.607L283.978 219.84C281.275 222.482 256.583 215.986 253.172 218.418C222.389 240.36 182.779 269.061 146.099 219.397C146.099 219.397 140.761 217.641 138.609 216.686C139.425 217.96 140.279 219.226 141.165 220.469C170.425 261.516 227.423 271.073 268.47 241.813C276.97 235.752 284.118 228.503 289.852 220.454L292.424 216.841L288.252 218.302C287.086 218.713 285.851 219.11 284.553 219.498L284.227 219.599L284.219 219.607Z", fill: "black" }), jsx("path", { d: "M215.496 241.4C262.183 241.4 300.03 226.557 300.03 208.248C300.03 189.938 262.183 175.095 215.496 175.095C168.81 175.095 130.963 189.938 130.963 208.248C130.963 226.557 168.81 241.4 215.496 241.4Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.659C300.705 210.659 300.705 210.65 300.705 210.641C300.705 210.641 300.705 210.65 300.705 210.659Z", fill: "#EBE9E9", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.952 204.511 221.377 199.638 221.377 193.626C221.377 187.614 208.952 182.741 193.624 182.741C178.297 182.741 165.871 187.614 165.871 193.626C165.871 199.638 178.297 204.511 193.624 204.511Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 204.41C199.49 204.294 201.573 204.084 203.546 203.789V211.512C201.573 211.807 199.49 212.017 197.33 212.133V204.41Z", fill: "#D0F500" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901V206.624C215.255 208.497 211.246 210.027 206.398 211.014V203.291Z", fill: "black" }), jsx("path", { d: "M193.624 204.511C208.954 204.511 221.377 199.64 221.377 193.626V201.349C221.377 207.363 208.954 212.234 193.624 212.234C178.295 212.234 165.871 207.363 165.871 201.349V193.626C165.871 199.64 178.295 204.511 193.624 204.511Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 211.015C211.246 210.028 215.255 208.497 217.905 206.625", stroke: "#A66CFF", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.952 196.788 221.377 191.914 221.377 185.903C221.377 179.891 208.952 175.017 193.624 175.017C178.297 175.017 165.871 179.891 165.871 185.903C165.871 191.914 178.297 196.788 193.624 196.788Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 196.687C199.49 196.57 201.573 196.361 203.546 196.065V203.788C201.573 204.084 199.49 204.293 197.33 204.41V196.687Z", fill: "#36E0F8" }), jsx("path", { d: "M206.398 195.568C211.246 194.581 215.255 193.051 217.905 191.178V198.901C215.255 200.774 211.246 202.304 206.398 203.291V195.568Z", fill: "black" }), jsx("path", { d: "M193.624 196.788C208.954 196.788 221.377 191.917 221.377 185.903V193.626C221.377 199.639 208.954 204.511 193.624 204.511C178.295 204.511 165.871 199.639 165.871 193.626V185.903C165.871 191.917 178.295 196.788 193.624 196.788Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 203.291C211.246 202.304 215.255 200.774 217.905 198.901", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.952 189.065 221.377 184.192 221.377 178.18C221.377 172.168 208.952 167.294 193.624 167.294C178.297 167.294 165.871 172.168 165.871 178.18C165.871 184.192 178.297 189.065 193.624 189.065Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M197.33 188.965C199.49 188.849 201.573 188.639 203.546 188.343V196.067C201.573 196.362 199.49 196.571 197.33 196.688V188.965Z", fill: "#F191FA" }), jsx("path", { d: "M206.398 187.845C211.246 186.858 215.255 185.327 217.905 183.455V191.178C215.255 193.05 211.246 194.581 206.398 195.568V187.845Z", fill: "black" }), jsx("path", { d: "M193.624 189.065C208.954 189.065 221.377 184.194 221.377 178.18V185.903C221.377 191.917 208.954 196.788 193.624 196.788C178.295 196.788 165.871 191.917 165.871 185.903V178.18C165.871 184.194 178.295 189.065 193.624 189.065Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M206.398 195.569C211.246 194.582 215.255 193.052 217.905 191.179", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.934C253.929 212.934 266.354 208.06 266.354 202.049C266.354 196.037 253.929 191.164 238.601 191.164C223.274 191.164 210.848 196.037 210.848 202.049C210.848 208.06 223.274 212.934 238.601 212.934Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 212.833C244.467 212.717 246.55 212.507 248.523 212.212V219.935C246.55 220.23 244.467 220.44 242.307 220.556V212.833Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 211.713C256.223 210.727 260.232 209.196 262.882 207.324V215.047C260.232 216.919 256.223 218.45 251.375 219.436V211.713Z", fill: "black" }), jsx("path", { d: "M238.601 212.935C253.931 212.935 266.354 208.063 266.354 202.049V209.772C266.354 215.786 253.931 220.658 238.601 220.658C223.272 220.658 210.848 215.786 210.848 209.772V202.049C210.848 208.063 223.272 212.935 238.601 212.935Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 219.437C256.223 218.45 260.232 216.919 262.882 215.047", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.929 205.21 266.354 200.336 266.354 194.324C266.354 188.313 253.929 183.439 238.601 183.439C223.274 183.439 210.848 188.313 210.848 194.324C210.848 200.336 223.274 205.21 238.601 205.21Z", fill: "#D0F500", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 205.109C244.467 204.993 246.55 204.783 248.523 204.488V212.211C246.55 212.506 244.467 212.716 242.307 212.832V205.109Z", fill: "#36E0F8" }), jsx("path", { d: "M251.375 203.989C256.223 203.003 260.232 201.472 262.882 199.6V207.323C260.232 209.195 256.223 210.726 251.375 211.712V203.989Z", fill: "black" }), jsx("path", { d: "M238.601 205.21C253.931 205.21 266.354 200.339 266.354 194.325V202.048C266.354 208.062 253.931 212.934 238.601 212.934C223.272 212.934 210.848 208.062 210.848 202.048V194.325C210.848 200.339 223.272 205.21 238.601 205.21Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 211.713C256.223 210.726 260.232 209.195 262.882 207.323", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.929 197.487 266.354 192.613 266.354 186.602C266.354 180.59 253.929 175.716 238.601 175.716C223.274 175.716 210.848 180.59 210.848 186.602C210.848 192.613 223.274 197.487 238.601 197.487Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M242.307 197.386C244.467 197.27 246.55 197.06 248.523 196.765V204.488C246.55 204.783 244.467 204.992 242.307 205.109V197.386Z", fill: "#F191FA" }), jsx("path", { d: "M251.375 196.267C256.223 195.28 260.232 193.75 262.882 191.877V199.6C260.232 201.473 256.223 203.003 251.375 203.99V196.267Z", fill: "#9AEFFB" }), jsx("path", { d: "M238.601 197.487C253.931 197.487 266.354 192.616 266.354 186.602V194.325C266.354 200.339 253.931 205.21 238.601 205.21C223.272 205.21 210.848 200.339 210.848 194.325V186.602C210.848 192.616 223.272 197.487 238.601 197.487Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M251.375 203.99C256.223 203.004 260.232 201.473 262.882 199.601", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.979 189.678 260.405 184.804 260.405 178.793C260.405 172.781 247.979 167.908 232.652 167.908C217.324 167.908 204.899 172.781 204.899 178.793C204.899 184.804 217.324 189.678 232.652 189.678Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M236.358 189.578C238.518 189.461 240.6 189.251 242.574 188.956V196.679C240.6 196.974 238.518 197.184 236.358 197.301V189.578Z", fill: "#F191FA" }), jsx("path", { d: "M245.426 188.458C250.274 187.471 254.283 185.94 256.932 184.067V191.791C254.283 193.663 250.274 195.194 245.426 196.18V188.458Z", fill: "black" }), jsx("path", { d: "M232.652 189.678C247.981 189.678 260.405 184.807 260.405 178.793V186.516C260.405 192.53 247.981 197.401 232.652 197.401C217.323 197.401 204.899 192.53 204.899 186.516V178.793C204.899 184.807 217.323 189.678 232.652 189.678Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M245.426 196.182C250.274 195.195 254.283 193.664 256.932 191.792", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.317 180.021 268.743 175.148 268.743 169.136C268.743 163.124 256.317 158.25 240.99 158.25C225.662 158.25 213.237 163.124 213.237 169.136C213.237 175.148 225.662 180.021 240.99 180.021Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M244.696 179.92C246.856 179.804 248.938 179.594 250.911 179.299V187.022C248.938 187.317 246.856 187.527 244.696 187.643V179.92Z", fill: "#9AEFFB" }), jsx("path", { d: "M253.763 178.801C258.612 177.815 262.621 176.284 265.27 174.412V182.135C262.621 184.007 258.612 185.538 253.763 186.524V178.801Z", fill: "black" }), jsx("path", { d: "M240.99 180.021C256.319 180.021 268.743 175.15 268.743 169.136V176.859C268.743 182.873 256.319 187.744 240.99 187.744C225.66 187.744 213.237 182.873 213.237 176.859V169.136C213.237 175.15 225.66 180.021 240.99 180.021Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M253.763 186.525C258.612 185.538 262.621 184.007 265.27 182.135", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.238 223.803 217.664 218.929 217.664 212.918C217.664 206.906 205.238 202.032 189.911 202.032C174.583 202.032 162.158 206.906 162.158 212.918C162.158 218.929 174.583 223.803 189.911 223.803Z", fill: "#F191FA", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", fill: "#E4F4F7", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M193.625 223.71C195.785 223.593 197.867 223.384 199.84 223.088V230.811C197.867 231.107 195.785 231.316 193.625 231.433V223.71Z", fill: "#F191FA" }), jsx("path", { d: "M202.685 222.583C207.533 221.596 211.542 220.066 214.191 218.193V225.916C211.542 227.789 207.533 229.319 202.685 230.306V222.583Z", fill: "#9AEFFB" }), jsx("path", { d: "M189.911 223.803C205.24 223.803 217.664 218.932 217.664 212.918V220.641C217.664 226.655 205.24 231.526 189.911 231.526C174.581 231.526 162.158 226.655 162.158 220.641V212.918C162.158 218.932 174.581 223.803 189.911 223.803Z", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M202.685 230.306C207.533 229.32 211.542 227.789 214.191 225.917", stroke: "white", strokeLinecap: "round", strokeLinejoin: "round" }), jsx("path", { d: "M300.705 210.658C300.705 210.658 300.705 210.649 300.705 210.641C300.705 210.641 300.705 210.649 300.705 210.658Z", fill: "#A66CFF", stroke: "black", strokeLinecap: "round", strokeLinejoin: "round" })] }) }) }));
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { u as useTranslation, cQ as WidgetTheme, a6 as getRemoteImage, q as jsxs, cR as quickswapFooterStyles, H as Box, cS as quickswapFooterLogoStyles, p as jsx, ag as Body, cT as quickswapFooterDisclaimerTextStyles, r as reactExports, N as Button, cU as getImxTokenImage, J as Drawer, bc as CloudImage, M as Heading, bW as Logo, aA as Icon, D as BigNumber, bg as calculateCryptoToFiat, av as tokenValueFormat, bC as isGasFree, c6 as formatZeroAmount, bD as ConnectLoaderContext, ai as getDefaultTokenImage, ak as isNativeToken, c7 as NATIVE, a9 as ViewContext, Q as useAnalytics, cb as DEFAULT_QUOTE_REFRESH_INTERVAL, G as isPassportProvider, bb as amountInputValidation, at as Tooltip, Y as UserJourney, b9 as Environment, V as ViewActions, n as SharedViews, i as getL2ChainId, T as Fragment, cV as ESTIMATE_DEBOUNCE, cW as DEFAULT_TOKEN_VALIDATION_DECIMALS, aJ as isAddressSanctioned, ca as DEFAULT_TOKEN_DECIMALS, ac as EventTargetContext, cX as sendSwapWidgetCloseEvent, aO as orchestrationEvents, I as IMTBLWidgetEvents, bn as HeaderNavigation, L as LoadingView, aN as SimpleLayout, ce as IMX_TOKEN_SYMBOL, bM as CheckoutErrorType, cj as SimpleTextBody, ck as FooterButton, b7 as viewReducer, b8 as initialViewState, aj as TokenFilterTypes, cY as DEFAULT_BALANCE_RETRY_POLICY, aI as fetchRiskAssessment, cZ as SwapDirection$1, cq as StatusView, c_ as sendSwapSuccessEvent, br as StatusType, c$ as sendSwapFailedEvent, d0 as sendSwapRejectedEvent, E as ErrorView, bd as ServiceUnavailableErrorView } from './index-
|
|
2
|
-
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-
|
|
3
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
4
|
-
import { u as useInterval } from './useInterval-
|
|
5
|
-
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-
|
|
6
|
-
import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-
|
|
7
|
-
import { S as SpendingCapHero } from './SpendingCapHero-
|
|
8
|
-
import './TokenImage-
|
|
9
|
-
import './FeesBreakdown-
|
|
1
|
+
import { u as useTranslation, cQ as WidgetTheme, a6 as getRemoteImage, q as jsxs, cR as quickswapFooterStyles, H as Box, cS as quickswapFooterLogoStyles, p as jsx, ag as Body, cT as quickswapFooterDisclaimerTextStyles, r as reactExports, N as Button, cU as getImxTokenImage, J as Drawer, bc as CloudImage, M as Heading, bW as Logo, aA as Icon, D as BigNumber, bg as calculateCryptoToFiat, av as tokenValueFormat, bC as isGasFree, c6 as formatZeroAmount, bD as ConnectLoaderContext, ai as getDefaultTokenImage, ak as isNativeToken, c7 as NATIVE, a9 as ViewContext, Q as useAnalytics, cb as DEFAULT_QUOTE_REFRESH_INTERVAL, G as isPassportProvider, bb as amountInputValidation, at as Tooltip, Y as UserJourney, b9 as Environment, V as ViewActions, n as SharedViews, i as getL2ChainId, T as Fragment, cV as ESTIMATE_DEBOUNCE, cW as DEFAULT_TOKEN_VALIDATION_DECIMALS, aJ as isAddressSanctioned, ca as DEFAULT_TOKEN_DECIMALS, ac as EventTargetContext, cX as sendSwapWidgetCloseEvent, aO as orchestrationEvents, I as IMTBLWidgetEvents, bn as HeaderNavigation, L as LoadingView, aN as SimpleLayout, ce as IMX_TOKEN_SYMBOL, bM as CheckoutErrorType, cj as SimpleTextBody, ck as FooterButton, b7 as viewReducer, b8 as initialViewState, aj as TokenFilterTypes, cY as DEFAULT_BALANCE_RETRY_POLICY, aI as fetchRiskAssessment, cZ as SwapDirection$1, cq as StatusView, c_ as sendSwapSuccessEvent, br as StatusType, c$ as sendSwapFailedEvent, d0 as sendSwapRejectedEvent, E as ErrorView, bd as ServiceUnavailableErrorView } from './index-B1kw-1Io.js';
|
|
2
|
+
import { S as SelectForm, T as TextInputForm, F as Fees, a as TransactionRejected, N as NetworkSwitchDrawer, W as WalletApproveHero, g as getAllowedBalances } from './WalletApproveHero-DRqzj9Lk.js';
|
|
3
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-BUt3MDYn.js';
|
|
4
|
+
import { u as useInterval } from './useInterval-C7A52KiH.js';
|
|
5
|
+
import { f as formatUnits, p as parseUnits, a as parseEther } from './index-xm_jjlaJ.js';
|
|
6
|
+
import { S as SwapWidgetViews, T as TopUpView } from './TopUpView-2bq3NkgD.js';
|
|
7
|
+
import { S as SpendingCapHero } from './SpendingCapHero-BfZ7qDw3.js';
|
|
8
|
+
import './TokenImage-rKLSB_z6.js';
|
|
9
|
+
import './FeesBreakdown-BnqSf5cl.js';
|
|
10
10
|
|
|
11
11
|
function QuickswapFooter({ theme, environment }) {
|
|
12
12
|
const { t } = useTranslation();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, ai as getDefaultTokenImage, p as jsx } from './index-
|
|
1
|
+
import { r as reactExports, ai as getDefaultTokenImage, p as jsx } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
// eslint-disable-next-line no-promise-executor-return
|
|
4
4
|
const sleep = (ms = 0) => ms && new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as reactExports, p as jsx, q as jsxs, d5 as isDualVariantIcon, a4 as MenuItem, H as Box, b9 as Environment, u as useTranslation, a9 as ViewContext, ac as EventTargetContext, Q as useAnalytics, c9 as GasEstimateType, bn as HeaderNavigation, M as Heading, ag as Body, aN as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, aO as orchestrationEvents } from './index-
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, D as DEFAULT_TOKEN_SYMBOLS } from './CryptoFiatProvider-
|
|
3
|
-
import { f as formatUnits } from './index-
|
|
1
|
+
import { r as reactExports, p as jsx, q as jsxs, d5 as isDualVariantIcon, a4 as MenuItem, H as Box, b9 as Environment, u as useTranslation, a9 as ViewContext, ac as EventTargetContext, Q as useAnalytics, c9 as GasEstimateType, bn as HeaderNavigation, M as Heading, ag as Body, aN as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, aO as orchestrationEvents } from './index-B1kw-1Io.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, D as DEFAULT_TOKEN_SYMBOLS } from './CryptoFiatProvider-BUt3MDYn.js';
|
|
3
|
+
import { f as formatUnits } from './index-xm_jjlaJ.js';
|
|
4
4
|
|
|
5
5
|
var BridgeWidgetViews;
|
|
6
6
|
(function (BridgeWidgetViews) {
|
package/dist/browser/checkout/{WalletApproveHero-D0YPQvO-.js → WalletApproveHero-DRqzj9Lk.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as jsx, aq as TextInput, d1 as FormControlWrapper, u as useTranslation, q as jsxs, a4 as MenuItem, J as Drawer, H as Box, ag as Body, r as reactExports, d2 as Select, b9 as Environment, cQ as WidgetTheme, d3 as DuoCon, M as Heading, N as Button, c7 as NATIVE, al as getTokenImageByAddress, ak as isNativeToken, cY as DEFAULT_BALANCE_RETRY_POLICY, a6 as getRemoteImage, c1 as getChainNameById, j as getL1ChainId, bV as isWalletConnectProvider, c3 as isMetaMaskProvider, bc as CloudImage, ap as ButtCon, bq as FooterLogo, c6 as formatZeroAmount, av as tokenValueFormat, bT as Accordion, bO as ShimmerBox, b5 as PriceDisplay, T as Fragment, ch as heroBackGroundStyles, ci as heroImageStyles, d4 as heroImageBottomAlign } from './index-
|
|
2
|
-
import { T as TokenImage, r as retry } from './TokenImage-
|
|
3
|
-
import { F as FeesBreakdown } from './FeesBreakdown-
|
|
1
|
+
import { p as jsx, aq as TextInput, d1 as FormControlWrapper, u as useTranslation, q as jsxs, a4 as MenuItem, J as Drawer, H as Box, ag as Body, r as reactExports, d2 as Select, b9 as Environment, cQ as WidgetTheme, d3 as DuoCon, M as Heading, N as Button, c7 as NATIVE, al as getTokenImageByAddress, ak as isNativeToken, cY as DEFAULT_BALANCE_RETRY_POLICY, a6 as getRemoteImage, c1 as getChainNameById, j as getL1ChainId, bV as isWalletConnectProvider, c3 as isMetaMaskProvider, bc as CloudImage, ap as ButtCon, bq as FooterLogo, c6 as formatZeroAmount, av as tokenValueFormat, bT as Accordion, bO as ShimmerBox, b5 as PriceDisplay, T as Fragment, ch as heroBackGroundStyles, ci as heroImageStyles, d4 as heroImageBottomAlign } from './index-B1kw-1Io.js';
|
|
2
|
+
import { T as TokenImage, r as retry } from './TokenImage-rKLSB_z6.js';
|
|
3
|
+
import { F as FeesBreakdown } from './FeesBreakdown-BnqSf5cl.js';
|
|
4
4
|
|
|
5
5
|
function TextInputForm({ testId, value, placeholder, errorMessage, validator, onTextInputChange, onTextInputBlur, onTextInputFocus, onTextInputEnter, textAlign, type, subtext, maxButtonClick, disabled, inputMode, }) {
|
|
6
6
|
const handleOnChange = (event, previousValue) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as reactExports, aj as TokenFilterTypes, u as useTranslation, a9 as ViewContext, q as jsxs, H as Box, p as jsx, ag as Body, ap as ButtCon, V as ViewActions, bD as ConnectLoaderContext, Q as useAnalytics, c6 as formatZeroAmount, ac as EventTargetContext, G as isPassportProvider, i as getL2ChainId, j as getL1ChainId, b9 as Environment, a4 as MenuItem, av as tokenValueFormat, Y as UserJourney, aO as orchestrationEvents, I as IMTBLWidgetEvents, da as ZERO_BALANCE_STRING, ak as isNativeToken, db as sendNetworkSwitchEvent, bM as CheckoutErrorType, n as SharedViews, dc as NetworkFilterTypes, dd as sortNetworksCompareFn, de as HorizontalMenu, bR as getChainImage, cY as DEFAULT_BALANCE_RETRY_POLICY, df as sortTokensByAmount, al as getTokenImageByAddress, bg as calculateCryptoToFiat, bn as HeaderNavigation, c5 as ButtonNavigationStyles, dg as sendWalletWidgetCloseEvent, bq as FooterLogo, aN as SimpleLayout, c4 as WalletProviderName, c2 as getWalletProviderNameByProvider, d5 as isDualVariantIcon, bv as abbreviateWalletAddress, M as Heading, J as Drawer, bU as useWalletConnect, dh as sendDisconnectWalletEvent, N as Button, bV as isWalletConnectProvider, ch as heroBackGroundStyles, ci as heroImageStyles, d4 as heroImageBottomAlign, cj as SimpleTextBody, di as FAQS_LINK, af as Link, b7 as viewReducer, b8 as initialViewState, L as LoadingView, E as ErrorView } from './index-
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-
|
|
3
|
-
import { T as TokenImage, r as retry } from './TokenImage-
|
|
4
|
-
import { u as useInterval } from './useInterval-
|
|
1
|
+
import { r as reactExports, aj as TokenFilterTypes, u as useTranslation, a9 as ViewContext, q as jsxs, H as Box, p as jsx, ag as Body, ap as ButtCon, V as ViewActions, bD as ConnectLoaderContext, Q as useAnalytics, c6 as formatZeroAmount, ac as EventTargetContext, G as isPassportProvider, i as getL2ChainId, j as getL1ChainId, b9 as Environment, a4 as MenuItem, av as tokenValueFormat, Y as UserJourney, aO as orchestrationEvents, I as IMTBLWidgetEvents, da as ZERO_BALANCE_STRING, ak as isNativeToken, db as sendNetworkSwitchEvent, bM as CheckoutErrorType, n as SharedViews, dc as NetworkFilterTypes, dd as sortNetworksCompareFn, de as HorizontalMenu, bR as getChainImage, cY as DEFAULT_BALANCE_RETRY_POLICY, df as sortTokensByAmount, al as getTokenImageByAddress, bg as calculateCryptoToFiat, bn as HeaderNavigation, c5 as ButtonNavigationStyles, dg as sendWalletWidgetCloseEvent, bq as FooterLogo, aN as SimpleLayout, c4 as WalletProviderName, c2 as getWalletProviderNameByProvider, d5 as isDualVariantIcon, bv as abbreviateWalletAddress, M as Heading, J as Drawer, bU as useWalletConnect, dh as sendDisconnectWalletEvent, N as Button, bV as isWalletConnectProvider, ch as heroBackGroundStyles, ci as heroImageStyles, d4 as heroImageBottomAlign, cj as SimpleTextBody, di as FAQS_LINK, af as Link, b7 as viewReducer, b8 as initialViewState, L as LoadingView, E as ErrorView } from './index-B1kw-1Io.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-BUt3MDYn.js';
|
|
3
|
+
import { T as TokenImage, r as retry } from './TokenImage-rKLSB_z6.js';
|
|
4
|
+
import { u as useInterval } from './useInterval-C7A52KiH.js';
|
|
5
5
|
|
|
6
6
|
const initialWalletState = {
|
|
7
7
|
walletProviderName: null,
|
|
@@ -136288,7 +136288,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
136288
136288
|
|
|
136289
136289
|
const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$2={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$4={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$4.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$4.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$4.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$4.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$4.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$2.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$5={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$3=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$6={state:W$3,subscribe(e){return subscribe(W$3,()=>e(W$3))},setConfig(e){var t,s;R$5.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$4.setModalVersionInStorage(),Object.assign(W$3,e);}};var V$4=Object.defineProperty,D$6=Object.getOwnPropertySymbols,H$4=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$4.call(t,s)&&M$4(e,s,t[s]);if(D$6)for(var s of D$6(t))B$4.call(t,s)&&M$4(e,s,t[s]);return e};const L$5="https://explorer-api.walletconnect.com",E$4="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$4,sdkVersion:O$5},t),n=new URL(e,L$5);return n.searchParams.append("projectId",y$6.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$5={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$5}/w3m/v1/getWalletImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$5}/w3m/v1/getAssetImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$5}`}};var z$5=Object.defineProperty,j$3=Object.getOwnPropertySymbols,J$3=Object.prototype.hasOwnProperty,q$5=Object.prototype.propertyIsEnumerable,k$4=(e,t,s)=>t in e?z$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$5=(e,t)=>{for(var s in t||(t={}))J$3.call(t,s)&&k$4(e,s,t[s]);if(j$3)for(var s of j$3(t))q$5.call(t,s)&&k$4(e,s,t[s]);return e};const N$4=a$4.isMobile(),d$5=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$4={state:d$5,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$6.state;if(e==="NONE"||t==="ALL"&&!e)return d$5.recomendedWallets;if(a$4.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$5.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$5.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$4.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$4.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$4?await m$5.getMobileListings(v):await m$5.getDesktopListings(v);d$5.recomendedWallets=Object.values(b);}return d$5.recomendedWallets},async getWallets(e){const t=F$5({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$6.state,{recomendedWallets:i}=d$5;if(n==="ALL")return d$5.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$4.isArray(s)&&(t.excludedIds=s.join(",")),a$4.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$4?await m$5.getMobileListings(t):await m$5.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$5[U]={listings:[...d$5[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$5.getWalletImageUrl(e)},getAssetImageUrl(e){return m$5.getAssetImageUrl(e)},resetSearch(){d$5.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$4.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$2.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$4=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$6=Object.prototype.hasOwnProperty,X$4=Object.prototype.propertyIsEnumerable,S$4=(e,t,s)=>t in e?G$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$6.call(t,s)&&S$4(e,s,t[s]);if($$3)for(var s of $$3(t))X$4.call(t,s)&&S$4(e,s,t[s]);return e};function Z$4(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$2=proxy({themeMode:Z$4()?"dark":"light"}),ne$2={state:C$2,subscribe(e){return subscribe(C$2,()=>e(C$2))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$2.themeMode=t),s&&(C$2.themeVariables=Y$2({},s));}},g$8=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$8,subscribe(e){return subscribe(g$8,()=>e(g$8))},openToast(e,t){g$8.open=!0,g$8.message=e,g$8.variant=t;},closeToast(){g$8.open=!1;}};
|
|
136290
136290
|
|
|
136291
|
-
let d$4 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
136291
|
+
let d$4 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-B45KKwI3.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
|
|
136292
136292
|
|
|
136293
136293
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
136294
136294
|
__proto__: null,
|
|
@@ -153129,7 +153129,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
153129
153129
|
return __generator(this, function (_b) {
|
|
153130
153130
|
switch (_b.label) {
|
|
153131
153131
|
case 0: return [4 /*yield*/, import(
|
|
153132
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
153132
|
+
/* webpackChunkName: "auto-track" */ './auto-track-iFr8mW3Y.js')];
|
|
153133
153133
|
case 1:
|
|
153134
153134
|
autotrack = _b.sent();
|
|
153135
153135
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -153148,7 +153148,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
153148
153148
|
return __generator(this, function (_b) {
|
|
153149
153149
|
switch (_b.label) {
|
|
153150
153150
|
case 0: return [4 /*yield*/, import(
|
|
153151
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
153151
|
+
/* webpackChunkName: "auto-track" */ './auto-track-iFr8mW3Y.js')];
|
|
153152
153152
|
case 1:
|
|
153153
153153
|
autotrack = _b.sent();
|
|
153154
153154
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -153167,7 +153167,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
153167
153167
|
return __generator(this, function (_b) {
|
|
153168
153168
|
switch (_b.label) {
|
|
153169
153169
|
case 0: return [4 /*yield*/, import(
|
|
153170
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
153170
|
+
/* webpackChunkName: "auto-track" */ './auto-track-iFr8mW3Y.js')];
|
|
153171
153171
|
case 1:
|
|
153172
153172
|
autotrack = _b.sent();
|
|
153173
153173
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -153186,7 +153186,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
153186
153186
|
return __generator(this, function (_b) {
|
|
153187
153187
|
switch (_b.label) {
|
|
153188
153188
|
case 0: return [4 /*yield*/, import(
|
|
153189
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
153189
|
+
/* webpackChunkName: "auto-track" */ './auto-track-iFr8mW3Y.js')];
|
|
153190
153190
|
case 1:
|
|
153191
153191
|
autotrack = _b.sent();
|
|
153192
153192
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -153336,7 +153336,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
153336
153336
|
return [2 /*return*/, []];
|
|
153337
153337
|
}
|
|
153338
153338
|
return [4 /*yield*/, import(
|
|
153339
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
153339
|
+
/* webpackChunkName: "queryString" */ './index-B0Z7Ef_x.js')];
|
|
153340
153340
|
case 1:
|
|
153341
153341
|
queryString = (_a.sent()).queryString;
|
|
153342
153342
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -156040,7 +156040,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
156040
156040
|
case 0:
|
|
156041
156041
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
156042
156042
|
return [4 /*yield*/, import(
|
|
156043
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
156043
|
+
/* webpackChunkName: "tsub-middleware" */ './index-CVJZwR9c.js').then(function (mod) {
|
|
156044
156044
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
156045
156045
|
})];
|
|
156046
156046
|
case 1:
|
|
@@ -156053,7 +156053,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
156053
156053
|
tsubMiddleware = _d;
|
|
156054
156054
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
156055
156055
|
return [4 /*yield*/, import(
|
|
156056
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
156056
|
+
/* webpackChunkName: "ajs-destination" */ './index-DorOaqU2.js').then(function (mod) {
|
|
156057
156057
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
156058
156058
|
})];
|
|
156059
156059
|
case 4:
|
|
@@ -156066,7 +156066,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
156066
156066
|
legacyDestinations = _e;
|
|
156067
156067
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
156068
156068
|
return [4 /*yield*/, import(
|
|
156069
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
156069
|
+
/* webpackChunkName: "legacyVideos" */ './index-DZgTpHya.js').then(function (mod) {
|
|
156070
156070
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
156071
156071
|
})];
|
|
156072
156072
|
case 7:
|
|
@@ -156075,7 +156075,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
156075
156075
|
case 8:
|
|
156076
156076
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
156077
156077
|
return [4 /*yield*/, import(
|
|
156078
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
156078
|
+
/* webpackChunkName: "schemaFilter" */ './index-B1HzIBSf.js').then(function (mod) {
|
|
156079
156079
|
var _a;
|
|
156080
156080
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
156081
156081
|
})];
|
|
@@ -156114,7 +156114,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
156114
156114
|
return enabled;
|
|
156115
156115
|
})) return [3 /*break*/, 17];
|
|
156116
156116
|
return [4 /*yield*/, import(
|
|
156117
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
156117
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-Dr6-H73j.js').then(function (_a) {
|
|
156118
156118
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
156119
156119
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156120
156120
|
var middleware, promises;
|
|
@@ -243808,7 +243808,7 @@ const useProvidersContext = () => {
|
|
|
243808
243808
|
return context;
|
|
243809
243809
|
};
|
|
243810
243810
|
|
|
243811
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
243811
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-fGtd8A4E.js'));
|
|
243812
243812
|
class AddTokens extends Base {
|
|
243813
243813
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
243814
243814
|
getValidatedProperties({ config, }) {
|
|
@@ -243852,7 +243852,7 @@ class AddTokens extends Base {
|
|
|
243852
243852
|
}
|
|
243853
243853
|
}
|
|
243854
243854
|
|
|
243855
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
243855
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-DBXQBpXE.js'));
|
|
243856
243856
|
class Bridge extends Base {
|
|
243857
243857
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
243858
243858
|
getValidatedProperties({ config }) {
|
|
@@ -244007,7 +244007,7 @@ const commerceFlows = [
|
|
|
244007
244007
|
CommerceFlowType.PURCHASE,
|
|
244008
244008
|
];
|
|
244009
244009
|
|
|
244010
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
244010
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-_gFtjMto.js'));
|
|
244011
244011
|
class CommerceWidgetRoot extends Base {
|
|
244012
244012
|
eventTopic = IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
244013
244013
|
getValidatedProperties({ config, }) {
|
|
@@ -246251,7 +246251,7 @@ const orchestrationEvents = {
|
|
|
246251
246251
|
sendRequestAddTokensEvent,
|
|
246252
246252
|
};
|
|
246253
246253
|
|
|
246254
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
246254
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-BiPiFJpw.js').then(function (n) { return n.a; }));
|
|
246255
246255
|
class OnRamp extends Base {
|
|
246256
246256
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
246257
246257
|
getValidatedProperties({ config }) {
|
|
@@ -246389,7 +246389,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
246389
246389
|
eventTarget.dispatchEvent(event);
|
|
246390
246390
|
};
|
|
246391
246391
|
|
|
246392
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
246392
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-DoGjnFAG.js'));
|
|
246393
246393
|
class Sale extends Base {
|
|
246394
246394
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
246395
246395
|
// TODO: add specific validation logic for the sale items
|
|
@@ -246626,7 +246626,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
246626
246626
|
: serviceUnavailableView) }));
|
|
246627
246627
|
}
|
|
246628
246628
|
|
|
246629
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
246629
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-DKbEzB4-.js'));
|
|
246630
246630
|
class Swap extends Base {
|
|
246631
246631
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
246632
246632
|
getValidatedProperties({ config }) {
|
|
@@ -246751,7 +246751,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
246751
246751
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
246752
246752
|
}
|
|
246753
246753
|
|
|
246754
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
246754
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-1OuXWLlP.js'));
|
|
246755
246755
|
class Wallet extends Base {
|
|
246756
246756
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
246757
246757
|
getValidatedProperties({ config }) {
|
|
@@ -246860,8 +246860,13 @@ function PurchaseItemHero({ items, totalQty }) {
|
|
|
246860
246860
|
}, emphasized: true })));
|
|
246861
246861
|
}
|
|
246862
246862
|
|
|
246863
|
-
function Purchase$1({ onCloseButtonClick, showBackButton, onBackButtonClick, }) {
|
|
246863
|
+
function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButton, onBackButtonClick, }) {
|
|
246864
246864
|
const { purchaseState: { items } } = reactExports.useContext(PurchaseContext);
|
|
246865
|
+
// eslint-disable-next-line no-console
|
|
246866
|
+
console.log({
|
|
246867
|
+
checkout,
|
|
246868
|
+
environmentId,
|
|
246869
|
+
});
|
|
246865
246870
|
const shouldShowBackButton = showBackButton && onBackButtonClick;
|
|
246866
246871
|
const totalQty = items?.reduce((sum, item) => sum + item.qty, 0) || 0;
|
|
246867
246872
|
return (jsx$1(SimpleLayout, { containerSx: { bg: 'transparent' }, header: (jsxs(Stack, { direction: "row", sx: {
|
|
@@ -246893,13 +246898,14 @@ function sendPurchaseCloseEvent(eventTarget) {
|
|
|
246893
246898
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
246894
246899
|
}
|
|
246895
246900
|
|
|
246896
|
-
function PurchaseWidget({ config, items, showBackButton, }) {
|
|
246901
|
+
function PurchaseWidget({ config, environmentId, items, showBackButton, }) {
|
|
246897
246902
|
const { base: { colorMode } } = useTheme();
|
|
246898
246903
|
const [viewState, viewDispatch] = reactExports.useReducer(viewReducer, {
|
|
246899
246904
|
...initialViewState,
|
|
246900
246905
|
view: { type: PurchaseWidgetViews.PURCHASE },
|
|
246901
246906
|
history: [{ type: PurchaseWidgetViews.PURCHASE }],
|
|
246902
246907
|
});
|
|
246908
|
+
const { providersState: { checkout }, } = useProvidersContext();
|
|
246903
246909
|
const viewReducerValues = reactExports.useMemo(() => ({
|
|
246904
246910
|
viewState,
|
|
246905
246911
|
viewDispatch,
|
|
@@ -246926,7 +246932,7 @@ function PurchaseWidget({ config, items, showBackButton, }) {
|
|
|
246926
246932
|
w: '100%',
|
|
246927
246933
|
objectFit: 'cover',
|
|
246928
246934
|
objectPosition: 'center',
|
|
246929
|
-
} }), viewState.view.type === PurchaseWidgetViews.PURCHASE && (jsx$1(Purchase$1, { showBackButton: showBackButton, onCloseButtonClick: () => sendPurchaseCloseEvent(eventTarget), onBackButtonClick: () => {
|
|
246935
|
+
} }), viewState.view.type === PurchaseWidgetViews.PURCHASE && (jsx$1(Purchase$1, { checkout: checkout, environmentId: environmentId, showBackButton: showBackButton, onCloseButtonClick: () => sendPurchaseCloseEvent(eventTarget), onBackButtonClick: () => {
|
|
246930
246936
|
orchestrationEvents.sendRequestGoBackEvent(eventTarget, IMTBLWidgetEvents.IMTBL_PURCHASE_WIDGET_EVENT, {});
|
|
246931
246937
|
} }))] }) }) }));
|
|
246932
246938
|
}
|
|
@@ -246973,7 +246979,11 @@ class Purchase extends Base {
|
|
|
246973
246979
|
}
|
|
246974
246980
|
getValidatedParameters(params) {
|
|
246975
246981
|
const validatedParams = params;
|
|
246976
|
-
|
|
246982
|
+
if (!params.environmentId) {
|
|
246983
|
+
// eslint-disable-next-line no-console
|
|
246984
|
+
console.warn('[IMTBL]: invalid "environmentId" widget input');
|
|
246985
|
+
validatedParams.environmentId = '';
|
|
246986
|
+
}
|
|
246977
246987
|
if (!isValidArray(params.items)) {
|
|
246978
246988
|
// eslint-disable-next-line no-console
|
|
246979
246989
|
console.warn('[IMTBL]: invalid "items" widget input.');
|
|
@@ -246990,7 +247000,7 @@ class Purchase extends Base {
|
|
|
246990
247000
|
const { t } = instance;
|
|
246991
247001
|
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "purchase-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ProvidersContextProvider, { initialState: {
|
|
246992
247002
|
checkout: this.checkout,
|
|
246993
|
-
}, children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(PurchaseWidget, { config: this.strongConfig(), items: this.parameters.items }) }) }) }) }) }) }));
|
|
247003
|
+
}, children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(PurchaseWidget, { config: this.strongConfig(), environmentId: this.parameters.environmentId, items: this.parameters.items }) }) }) }) }) }) }));
|
|
246994
247004
|
}
|
|
246995
247005
|
}
|
|
246996
247006
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dk as ne$1, dl as se$1, dm as T$2, dn as oe$1, dp as R$1, dq as a$2, dr as te$1, ds as p$1, dt as y$1 } from './index-
|
|
1
|
+
import { dk as ne$1, dl as se$1, dm as T$2, dn as oe$1, dp as R$1, dq as a$2, dr as te$1, ds as p$1, dt as y$1 } from './index-B1kw-1Io.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|