0xtrails 0.16.2 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +488 -3
- package/dist/BluvoExchangeSelection.lazy-D6ynQVSb.js +1 -0
- package/dist/BluvoOnrampFlow.lazy-BcDqhGLi.js +143 -0
- package/dist/ConnectWalletCard-BkbHCcWi.js +26 -0
- package/dist/actionBuilder-CAS2u5wu.js +2 -0
- package/dist/actions/index.d.ts +7 -23
- package/dist/actions/index.js +1 -37
- package/dist/contractConstants-CvJrYK9v.js +1 -0
- package/dist/defineProperty-BbfpZ9Tg.js +1 -0
- package/dist/edge-DmNcuJar.d.ts +121 -0
- package/dist/edge-L_Lk1K6j.js +1 -0
- package/dist/hooks/index.d.ts +6 -38
- package/dist/hooks/index.js +1 -67
- package/dist/hydrate/index.d.ts +196 -8
- package/dist/hydrate/index.js +1 -19
- package/dist/hydrate-QyWqQfec.js +1 -0
- package/dist/iife/trails.min.js +7324 -0
- package/dist/index-CMdwQmYL.d.ts +1044 -0
- package/dist/index.d.ts +1023 -114
- package/dist/index.js +1 -317
- package/dist/multicall-BCUHt_9t.d.ts +148 -0
- package/dist/offlineRecovery-BfgccnFf.d.ts +1232 -0
- package/dist/plugins/edge.d.ts +4 -0
- package/dist/plugins/edge.js +1 -0
- package/dist/quoteError-CmTH5Qm2.d.ts +24 -0
- package/dist/src-Cy3oxYgV.js +94 -0
- package/dist/sushiswapV3-D3h41LNZ.d.ts +723 -0
- package/dist/tokenTypes-D812t5L9.d.ts +31 -0
- package/dist/types-BK0WkVnx.d.ts +2161 -0
- package/dist/useViewManager-BeUH_k1s.d.ts +1224 -0
- package/dist/{actions/utils.d.ts → utils-KPnWBA9x.d.ts} +77 -52
- package/dist/widget/connect-showcase.d.ts +8 -0
- package/dist/widget/connect-showcase.js +1 -0
- package/dist/widget/index.d.ts +5 -21
- package/dist/widget/index.js +1 -33
- package/package.json +42 -42
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/defineProperty.js +0 -12
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPrimitive.js +0 -14
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/toPropertyKey.js +0 -9
- package/dist/_virtual/_@oxc-project_runtime@0.126.0/helpers/typeof.js +0 -11
- package/dist/abi.d.ts +0 -37
- package/dist/abi.d.ts.map +0 -1
- package/dist/abis/erc20.d.ts +0 -19
- package/dist/abis/erc20.d.ts.map +0 -1
- package/dist/abis/requireUtils.d.ts +0 -134
- package/dist/abis/requireUtils.d.ts.map +0 -1
- package/dist/abis/requireUtils.js +0 -168
- package/dist/abis/trailsHydrate.d.ts +0 -7
- package/dist/abis/trailsHydrate.d.ts.map +0 -1
- package/dist/abis/trailsRouter.d.ts +0 -30
- package/dist/abis/trailsRouter.d.ts.map +0 -1
- package/dist/abis/trailsRouter.js +0 -66
- package/dist/abis/trailsSweep.d.ts +0 -7
- package/dist/abis/trailsSweep.d.ts.map +0 -1
- package/dist/abortController.d.ts +0 -8
- package/dist/abortController.d.ts.map +0 -1
- package/dist/abortController.js +0 -23
- package/dist/actions/actionBuilder.d.ts +0 -424
- package/dist/actions/actionBuilder.d.ts.map +0 -1
- package/dist/actions/actionBuilder.js +0 -173
- package/dist/actions/constants.d.ts +0 -1809
- package/dist/actions/constants.d.ts.map +0 -1
- package/dist/actions/constants.js +0 -37
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/sushiswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calldata.js +0 -124
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts +0 -28
- package/dist/actions/custom-integrations/sushiswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts +0 -15
- package/dist/actions/custom-integrations/sushiswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/sushiswapV3/sushiswapV3.js +0 -246
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts +0 -95
- package/dist/actions/custom-integrations/sushiswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/addresses.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/addresses.js +0 -33
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts +0 -4
- package/dist/actions/custom-integrations/uniswapV3/calldata.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calldata.js +0 -190
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts +0 -50
- package/dist/actions/custom-integrations/uniswapV3/calls.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/calls.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts +0 -23
- package/dist/actions/custom-integrations/uniswapV3/helpers.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/helpers.js +0 -27
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts +0 -90
- package/dist/actions/custom-integrations/uniswapV3/types.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts +0 -9
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.d.ts.map +0 -1
- package/dist/actions/custom-integrations/uniswapV3/uniswapV3.js +0 -244
- package/dist/actions/destinationCalls.d.ts +0 -17
- package/dist/actions/destinationCalls.d.ts.map +0 -1
- package/dist/actions/destinationCalls.js +0 -43
- package/dist/actions/dynamic.d.ts +0 -97
- package/dist/actions/dynamic.d.ts.map +0 -1
- package/dist/actions/dynamic.js +0 -27
- package/dist/actions/hooks/useEarnBalances.d.ts +0 -53
- package/dist/actions/hooks/useEarnBalances.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnBalances.js +0 -37
- package/dist/actions/hooks/useEarnMarkets.d.ts +0 -29
- package/dist/actions/hooks/useEarnMarkets.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnMarkets.js +0 -30
- package/dist/actions/hooks/useEarnProviders.d.ts +0 -18
- package/dist/actions/hooks/useEarnProviders.d.ts.map +0 -1
- package/dist/actions/hooks/useEarnProviders.js +0 -25
- package/dist/actions/hooks/useResolveActions.d.ts +0 -19
- package/dist/actions/hooks/useResolveActions.d.ts.map +0 -1
- package/dist/actions/hooks/useResolveActions.js +0 -56
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/resolveActions.d.ts +0 -13
- package/dist/actions/resolveActions.d.ts.map +0 -1
- package/dist/actions/resolveActions.js +0 -267
- package/dist/actions/resolvers.d.ts +0 -29
- package/dist/actions/resolvers.d.ts.map +0 -1
- package/dist/actions/resolvers.js +0 -161
- package/dist/actions/types/earn.d.ts +0 -51
- package/dist/actions/types/earn.d.ts.map +0 -1
- package/dist/actions/types.d.ts +0 -319
- package/dist/actions/types.d.ts.map +0 -1
- package/dist/actions/types.js +0 -24
- package/dist/actions/utils.d.ts.map +0 -1
- package/dist/actions/utils.js +0 -203
- package/dist/adapters/evmAdapter.d.ts +0 -10
- package/dist/adapters/evmAdapter.d.ts.map +0 -1
- package/dist/adapters/evmAdapter.js +0 -28
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts +0 -8
- package/dist/analytics/hooks/useWidgetAnalytics.d.ts.map +0 -1
- package/dist/analytics/hooks/useWidgetAnalytics.js +0 -41
- package/dist/analytics.d.ts +0 -715
- package/dist/analytics.d.ts.map +0 -1
- package/dist/analytics.js +0 -881
- package/dist/chainRegistry.d.ts +0 -6
- package/dist/chainRegistry.d.ts.map +0 -1
- package/dist/chainRegistry.js +0 -47
- package/dist/chainResolution.d.ts +0 -6
- package/dist/chainResolution.d.ts.map +0 -1
- package/dist/chainResolution.js +0 -53
- package/dist/chainRpcClient.d.ts +0 -8
- package/dist/chainRpcClient.d.ts.map +0 -1
- package/dist/chainRpcClient.js +0 -67
- package/dist/chainSwitch.d.ts +0 -7
- package/dist/chainSwitch.d.ts.map +0 -1
- package/dist/chainSwitch.js +0 -66
- package/dist/chains.d.ts +0 -59
- package/dist/chains.d.ts.map +0 -1
- package/dist/chains.js +0 -152
- package/dist/committedIntentStore.d.ts +0 -5
- package/dist/committedIntentStore.d.ts.map +0 -1
- package/dist/committedIntentStore.js +0 -52
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +0 -1
- package/dist/configDefaults.d.ts +0 -7
- package/dist/configDefaults.d.ts.map +0 -1
- package/dist/configDefaults.js +0 -9
- package/dist/configStore.d.ts +0 -31
- package/dist/configStore.d.ts.map +0 -1
- package/dist/configStore.js +0 -53
- package/dist/constants.d.ts +0 -176
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -184
- package/dist/contractConstants.d.ts +0 -8
- package/dist/contractConstants.d.ts.map +0 -1
- package/dist/contractConstants.js +0 -9
- package/dist/contractUtils.d.ts +0 -6
- package/dist/contractUtils.d.ts.map +0 -1
- package/dist/contractUtils.js +0 -19
- package/dist/cssUtils.d.ts +0 -2
- package/dist/cssUtils.d.ts.map +0 -1
- package/dist/cssUtils.js +0 -7
- package/dist/customChains.d.ts +0 -24
- package/dist/customChains.d.ts.map +0 -1
- package/dist/customChains.js +0 -20
- package/dist/customTokens.d.ts +0 -12
- package/dist/customTokens.d.ts.map +0 -1
- package/dist/customTokens.js +0 -64
- package/dist/decoders.d.ts +0 -69
- package/dist/decoders.d.ts.map +0 -1
- package/dist/decoders.js +0 -181
- package/dist/ens.d.ts +0 -20
- package/dist/ens.d.ts.map +0 -1
- package/dist/ens.js +0 -92
- package/dist/error.d.ts +0 -97
- package/dist/error.d.ts.map +0 -1
- package/dist/error.js +0 -298
- package/dist/estimate.d.ts +0 -78
- package/dist/estimate.d.ts.map +0 -1
- package/dist/estimate.js +0 -147
- package/dist/explorer.d.ts +0 -12
- package/dist/explorer.d.ts.map +0 -1
- package/dist/explorer.js +0 -15
- package/dist/fees.d.ts +0 -65
- package/dist/fees.d.ts.map +0 -1
- package/dist/fees.js +0 -165
- package/dist/gasless.d.ts +0 -123
- package/dist/gasless.d.ts.map +0 -1
- package/dist/gasless.js +0 -314
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/persistedToken.d.ts +0 -22
- package/dist/hooks/persistedToken.d.ts.map +0 -1
- package/dist/hooks/persistedToken.js +0 -65
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts +0 -26
- package/dist/hooks/prepareTrailsSendTransactionDestination.d.ts.map +0 -1
- package/dist/hooks/prepareTrailsSendTransactionDestination.js +0 -33
- package/dist/hooks/useAmountUsd.d.ts +0 -12
- package/dist/hooks/useAmountUsd.d.ts.map +0 -1
- package/dist/hooks/useAmountUsd.js +0 -21
- package/dist/hooks/useBalanceVisible.d.ts +0 -15
- package/dist/hooks/useBalanceVisible.d.ts.map +0 -1
- package/dist/hooks/useBalanceVisible.js +0 -46
- package/dist/hooks/useBluvoTokenList.d.ts +0 -13
- package/dist/hooks/useBluvoTokenList.d.ts.map +0 -1
- package/dist/hooks/useBluvoTokenList.js +0 -57
- package/dist/hooks/useChainFilter.d.ts +0 -14
- package/dist/hooks/useChainFilter.d.ts.map +0 -1
- package/dist/hooks/useChainFilter.js +0 -24
- package/dist/hooks/useCheckout.d.ts +0 -80
- package/dist/hooks/useCheckout.d.ts.map +0 -1
- package/dist/hooks/useCheckout.js +0 -118
- package/dist/hooks/useClickTracking.d.ts +0 -12
- package/dist/hooks/useClickTracking.d.ts.map +0 -1
- package/dist/hooks/useClickTracking.js +0 -37
- package/dist/hooks/useCombinedHistory.d.ts +0 -50
- package/dist/hooks/useCombinedHistory.d.ts.map +0 -1
- package/dist/hooks/useCombinedHistory.js +0 -168
- package/dist/hooks/useCustomTokenSearch.d.ts +0 -28
- package/dist/hooks/useCustomTokenSearch.d.ts.map +0 -1
- package/dist/hooks/useCustomTokenSearch.js +0 -165
- package/dist/hooks/useDebounce.d.ts +0 -10
- package/dist/hooks/useDebounce.d.ts.map +0 -1
- package/dist/hooks/useDebounce.js +0 -15
- package/dist/hooks/useDebugScreens.d.ts +0 -17
- package/dist/hooks/useDebugScreens.d.ts.map +0 -1
- package/dist/hooks/useDebugScreens.js +0 -412
- package/dist/hooks/useDefaultDestinationToken.d.ts +0 -20
- package/dist/hooks/useDefaultDestinationToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultDestinationToken.js +0 -60
- package/dist/hooks/useDefaultOriginToken.d.ts +0 -26
- package/dist/hooks/useDefaultOriginToken.d.ts.map +0 -1
- package/dist/hooks/useDefaultOriginToken.js +0 -120
- package/dist/hooks/useDepositMonitor.d.ts +0 -20
- package/dist/hooks/useDepositMonitor.d.ts.map +0 -1
- package/dist/hooks/useDepositMonitor.js +0 -54
- package/dist/hooks/useDestinationSelectedToken.d.ts +0 -38
- package/dist/hooks/useDestinationSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useDestinationSelectedToken.js +0 -178
- package/dist/hooks/useDisplayCurrencyPreference.d.ts +0 -15
- package/dist/hooks/useDisplayCurrencyPreference.d.ts.map +0 -1
- package/dist/hooks/useDisplayCurrencyPreference.js +0 -57
- package/dist/hooks/useEarnPool.d.ts +0 -12
- package/dist/hooks/useEarnPool.d.ts.map +0 -1
- package/dist/hooks/useEarnPool.js +0 -21
- package/dist/hooks/useEffectiveFundBalance.d.ts +0 -28
- package/dist/hooks/useEffectiveFundBalance.d.ts.map +0 -1
- package/dist/hooks/useEffectiveFundBalance.js +0 -24
- package/dist/hooks/useExchangeFundingSelection.d.ts +0 -17
- package/dist/hooks/useExchangeFundingSelection.d.ts.map +0 -1
- package/dist/hooks/useExchangeFundingSelection.js +0 -25
- package/dist/hooks/useExecutingIntentsCount.d.ts +0 -15
- package/dist/hooks/useExecutingIntentsCount.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.d.ts +0 -11
- package/dist/hooks/useExternalFundingReceiptSync.d.ts.map +0 -1
- package/dist/hooks/useExternalFundingReceiptSync.js +0 -32
- package/dist/hooks/useFiatOnRampCurrencies.d.ts +0 -15
- package/dist/hooks/useFiatOnRampCurrencies.d.ts.map +0 -1
- package/dist/hooks/useFiatOnRampCurrencies.js +0 -14
- package/dist/hooks/useFiatSelectedCurrency.d.ts +0 -19
- package/dist/hooks/useFiatSelectedCurrency.d.ts.map +0 -1
- package/dist/hooks/useFiatSelectedCurrency.js +0 -55
- package/dist/hooks/useGetIntent.d.ts +0 -19
- package/dist/hooks/useGetIntent.d.ts.map +0 -1
- package/dist/hooks/useGetIntent.js +0 -26
- package/dist/hooks/useIntentReceiptBalances.d.ts +0 -16
- package/dist/hooks/useIntentReceiptBalances.d.ts.map +0 -1
- package/dist/hooks/useIntentReceiptBalances.js +0 -77
- package/dist/hooks/useIntentTransactionHistory.d.ts +0 -25
- package/dist/hooks/useIntentTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useIntentTransactionHistory.js +0 -357
- package/dist/hooks/useIsMobile.d.ts +0 -5
- package/dist/hooks/useIsMobile.d.ts.map +0 -1
- package/dist/hooks/useIsMobile.js +0 -21
- package/dist/hooks/useLocalePreference.d.ts +0 -21
- package/dist/hooks/useLocalePreference.d.ts.map +0 -1
- package/dist/hooks/useLocalePreference.js +0 -193
- package/dist/hooks/useMeldTransactionHistory.d.ts +0 -49
- package/dist/hooks/useMeldTransactionHistory.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionHistory.js +0 -71
- package/dist/hooks/useMeldTransactionStatus.d.ts +0 -61
- package/dist/hooks/useMeldTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useMeldTransactionStatus.js +0 -284
- package/dist/hooks/useOnRampCountryDefaults.d.ts +0 -18
- package/dist/hooks/useOnRampCountryDefaults.d.ts.map +0 -1
- package/dist/hooks/useOnRampCountryDefaults.js +0 -20
- package/dist/hooks/useOnRampPaymentMethods.d.ts +0 -15
- package/dist/hooks/useOnRampPaymentMethods.d.ts.map +0 -1
- package/dist/hooks/useOnRampPaymentMethods.js +0 -27
- package/dist/hooks/useOnRampProviderWidget.d.ts +0 -40
- package/dist/hooks/useOnRampProviderWidget.d.ts.map +0 -1
- package/dist/hooks/useOnRampProviderWidget.js +0 -70
- package/dist/hooks/useOnRampQuote.d.ts +0 -38
- package/dist/hooks/useOnRampQuote.d.ts.map +0 -1
- package/dist/hooks/useOnRampQuote.js +0 -159
- package/dist/hooks/useOnRampTransactionStatus.d.ts +0 -73
- package/dist/hooks/useOnRampTransactionStatus.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.d.ts +0 -22
- package/dist/hooks/useOriginSelectedToken.d.ts.map +0 -1
- package/dist/hooks/useOriginSelectedToken.js +0 -127
- package/dist/hooks/usePayMessage.d.ts +0 -35
- package/dist/hooks/usePayMessage.d.ts.map +0 -1
- package/dist/hooks/usePayMessage.js +0 -333
- package/dist/hooks/usePriceImpactWarning.d.ts +0 -8
- package/dist/hooks/usePriceImpactWarning.d.ts.map +0 -1
- package/dist/hooks/usePriceImpactWarning.js +0 -9
- package/dist/hooks/useQuote.d.ts +0 -611
- package/dist/hooks/useQuote.d.ts.map +0 -1
- package/dist/hooks/useQuote.js +0 -590
- package/dist/hooks/useRecentChains.d.ts +0 -7
- package/dist/hooks/useRecentChains.d.ts.map +0 -1
- package/dist/hooks/useRecentChains.js +0 -52
- package/dist/hooks/useRecentTokens.d.ts +0 -7
- package/dist/hooks/useRecentTokens.d.ts.map +0 -1
- package/dist/hooks/useRecentTokens.js +0 -82
- package/dist/hooks/useRecipients.d.ts +0 -17
- package/dist/hooks/useRecipients.d.ts.map +0 -1
- package/dist/hooks/useRecipients.js +0 -75
- package/dist/hooks/useSelectedFeeOption.d.ts +0 -31
- package/dist/hooks/useSelectedFeeOption.d.ts.map +0 -1
- package/dist/hooks/useSelectedFeeOption.js +0 -113
- package/dist/hooks/useSelectedFundMethod.d.ts +0 -73
- package/dist/hooks/useSelectedFundMethod.d.ts.map +0 -1
- package/dist/hooks/useSelectedFundMethod.js +0 -51
- package/dist/hooks/useSelectedRecipient.d.ts +0 -12
- package/dist/hooks/useSelectedRecipient.d.ts.map +0 -1
- package/dist/hooks/useSelectedRecipient.js +0 -39
- package/dist/hooks/useSendForm.d.ts +0 -141
- package/dist/hooks/useSendForm.d.ts.map +0 -1
- package/dist/hooks/useSendForm.js +0 -595
- package/dist/hooks/useSwapAmount.d.ts +0 -13
- package/dist/hooks/useSwapAmount.d.ts.map +0 -1
- package/dist/hooks/useSwapAmount.js +0 -24
- package/dist/hooks/useSwapState.d.ts +0 -21
- package/dist/hooks/useSwapState.d.ts.map +0 -1
- package/dist/hooks/useSwapState.js +0 -44
- package/dist/hooks/useTargetAmount.d.ts +0 -6
- package/dist/hooks/useTargetAmount.d.ts.map +0 -1
- package/dist/hooks/useTargetAmount.js +0 -17
- package/dist/hooks/useTheme.d.ts +0 -14
- package/dist/hooks/useTheme.d.ts.map +0 -1
- package/dist/hooks/useTheme.js +0 -47
- package/dist/hooks/useTokenList.d.ts +0 -43
- package/dist/hooks/useTokenList.d.ts.map +0 -1
- package/dist/hooks/useTokenList.js +0 -456
- package/dist/hooks/useTrailsSendTransaction.d.ts +0 -139
- package/dist/hooks/useTrailsSendTransaction.d.ts.map +0 -1
- package/dist/hooks/useTrailsSendTransaction.js +0 -418
- package/dist/hooks/useViewManager.d.ts +0 -89
- package/dist/hooks/useViewManager.d.ts.map +0 -1
- package/dist/hooks/useViewManager.js +0 -274
- package/dist/hooks/useWalletConnectionContext.d.ts +0 -26
- package/dist/hooks/useWalletConnectionContext.d.ts.map +0 -1
- package/dist/hooks/useWalletConnectionContext.js +0 -53
- package/dist/hooks/useWidgetProps.d.ts +0 -13
- package/dist/hooks/useWidgetProps.d.ts.map +0 -1
- package/dist/hooks/useWidgetProps.js +0 -18
- package/dist/hydrate/builder.d.ts +0 -131
- package/dist/hydrate/builder.d.ts.map +0 -1
- package/dist/hydrate/builder.js +0 -210
- package/dist/hydrate/constants.d.ts +0 -13
- package/dist/hydrate/constants.d.ts.map +0 -1
- package/dist/hydrate/constants.js +0 -5
- package/dist/hydrate/encodeExecute.d.ts +0 -73
- package/dist/hydrate/encodeExecute.d.ts.map +0 -1
- package/dist/hydrate/encodeExecute.js +0 -60
- package/dist/hydrate/index.d.ts.map +0 -1
- package/dist/hydrate/multicall.d.ts +0 -69
- package/dist/hydrate/multicall.d.ts.map +0 -1
- package/dist/hydrate/multicall.js +0 -167
- package/dist/hydrate/payload.d.ts +0 -38
- package/dist/hydrate/payload.d.ts.map +0 -1
- package/dist/hydrate/payload.js +0 -26
- package/dist/hydrate/selectors.d.ts +0 -28
- package/dist/hydrate/selectors.d.ts.map +0 -1
- package/dist/hydrate/selectors.js +0 -326
- package/dist/hydrate/source.d.ts +0 -11
- package/dist/hydrate/source.d.ts.map +0 -1
- package/dist/hydrate/source.js +0 -19
- package/dist/hydrate/types.d.ts +0 -21
- package/dist/hydrate/types.d.ts.map +0 -1
- package/dist/hydrate/utils.d.ts +0 -8
- package/dist/hydrate/utils.d.ts.map +0 -1
- package/dist/hydrate/utils.js +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/indexerClient.d.ts +0 -23
- package/dist/indexerClient.d.ts.map +0 -1
- package/dist/indexerClient.js +0 -40
- package/dist/intentConfigStore.d.ts +0 -8
- package/dist/intentConfigStore.d.ts.map +0 -1
- package/dist/intentConfigStore.js +0 -40
- package/dist/intentProtocolApi.d.ts +0 -11
- package/dist/intentProtocolApi.d.ts.map +0 -1
- package/dist/intentProtocolApi.js +0 -11
- package/dist/intentProtocolEncoding.d.ts +0 -30
- package/dist/intentProtocolEncoding.d.ts.map +0 -1
- package/dist/intentProtocolEncoding.js +0 -114
- package/dist/intentProtocolResolver.d.ts +0 -28
- package/dist/intentProtocolResolver.d.ts.map +0 -1
- package/dist/intentProtocolResolver.js +0 -34
- package/dist/intentReceiptMonitor.d.ts +0 -24
- package/dist/intentReceiptMonitor.d.ts.map +0 -1
- package/dist/intentReceiptMonitor.js +0 -30
- package/dist/intentReceiptPoller.d.ts +0 -69
- package/dist/intentReceiptPoller.d.ts.map +0 -1
- package/dist/intentReceiptPoller.js +0 -162
- package/dist/intentValidation.d.ts +0 -5
- package/dist/intentValidation.d.ts.map +0 -1
- package/dist/intentValidation.js +0 -19
- package/dist/intents.d.ts +0 -148
- package/dist/intents.d.ts.map +0 -1
- package/dist/intents.js +0 -391
- package/dist/keyMachineClient.d.ts +0 -9
- package/dist/keyMachineClient.d.ts.map +0 -1
- package/dist/keyMachineClient.js +0 -13
- package/dist/keymachine/index.d.ts +0 -34
- package/dist/keymachine/index.d.ts.map +0 -1
- package/dist/keymachine/index.js +0 -92
- package/dist/keymachine/key-machine.gen.d.ts +0 -461
- package/dist/keymachine/key-machine.gen.d.ts.map +0 -1
- package/dist/keymachine/key-machine.gen.js +0 -164
- package/dist/localeUtils.d.ts +0 -46
- package/dist/localeUtils.d.ts.map +0 -1
- package/dist/localeUtils.js +0 -60
- package/dist/logger/index.d.ts +0 -16
- package/dist/logger/index.d.ts.map +0 -1
- package/dist/logger/index.js +0 -57
- package/dist/logger/useSyncLoggerDebug.d.ts +0 -2
- package/dist/logger/useSyncLoggerDebug.d.ts.map +0 -1
- package/dist/logger/useSyncLoggerDebug.js +0 -9
- package/dist/logger.d.ts +0 -2
- package/dist/logger.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.d.ts +0 -9
- package/dist/meld/components/MeldCountriesList.d.ts.map +0 -1
- package/dist/meld/components/MeldCountriesList.js +0 -167
- package/dist/meld/components/MeldFundMethods.d.ts +0 -14
- package/dist/meld/components/MeldFundMethods.d.ts.map +0 -1
- package/dist/meld/components/MeldFundMethods.js +0 -163
- package/dist/meld/components/MeldProvidersList.d.ts +0 -11
- package/dist/meld/components/MeldProvidersList.d.ts.map +0 -1
- package/dist/meld/components/MeldProvidersList.js +0 -145
- package/dist/meld/components/MeldTokensList.d.ts +0 -12
- package/dist/meld/components/MeldTokensList.d.ts.map +0 -1
- package/dist/meld/components/MeldTokensList.js +0 -215
- package/dist/meld/components/SimpleHeader.d.ts +0 -8
- package/dist/meld/components/SimpleHeader.d.ts.map +0 -1
- package/dist/meld/components/SimpleHeader.js +0 -18
- package/dist/meld/utils/meld.d.ts +0 -41
- package/dist/meld/utils/meld.d.ts.map +0 -1
- package/dist/meld/utils/meld.js +0 -24
- package/dist/mutations.d.ts +0 -19
- package/dist/mutations.d.ts.map +0 -1
- package/dist/mutations.js +0 -91
- package/dist/offlineRecovery.d.ts +0 -24
- package/dist/offlineRecovery.d.ts.map +0 -1
- package/dist/offlineRecovery.js +0 -219
- package/dist/onramp/MeshConnectFlow.d.ts +0 -27
- package/dist/onramp/MeshConnectFlow.d.ts.map +0 -1
- package/dist/onramp/MeshConnectFlow.js +0 -41
- package/dist/onramp/MeshConnectIframe.d.ts +0 -22
- package/dist/onramp/MeshConnectIframe.d.ts.map +0 -1
- package/dist/onramp/MeshConnectIframe.js +0 -434
- package/dist/onramp/SendFromExchangeButton.d.ts +0 -16
- package/dist/onramp/SendFromExchangeButton.d.ts.map +0 -1
- package/dist/onramp/SendFromExchangeButton.js +0 -36
- package/dist/onramp/TrailsOnRampProvider.d.ts +0 -38
- package/dist/onramp/TrailsOnRampProvider.d.ts.map +0 -1
- package/dist/onramp/TrailsOnRampProvider.js +0 -25
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts +0 -12
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.d.ts.map +0 -1
- package/dist/onramp/bluvo/hooks/useBluvoFundingSelection.js +0 -18
- package/dist/onramp/index.d.ts +0 -13
- package/dist/onramp/index.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts +0 -10
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeConfirmation.js +0 -62
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts +0 -13
- package/dist/onramp/mesh/components/MeshExchangeIcon.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeIcon.js +0 -54
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts +0 -12
- package/dist/onramp/mesh/components/MeshExchangeSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshExchangeSelection.js +0 -135
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts +0 -15
- package/dist/onramp/mesh/components/MeshSessionOptions.d.ts.map +0 -1
- package/dist/onramp/mesh/components/MeshSessionOptions.js +0 -68
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts +0 -9
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshAccessTokens.js +0 -38
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts +0 -11
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshFundingSelection.js +0 -21
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts +0 -71
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampFlow.js +0 -168
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts +0 -32
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshOnrampSessionState.js +0 -28
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts +0 -19
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSelectedTokenBalance.js +0 -57
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts +0 -15
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionAccountBalance.js +0 -45
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts +0 -7
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/mesh/hooks/useMeshSessionStorage.js +0 -20
- package/dist/onramp/meshSessionStorage.d.ts +0 -13
- package/dist/onramp/meshSessionStorage.d.ts.map +0 -1
- package/dist/onramp/meshSessionStorage.js +0 -165
- package/dist/onramp/meshconnect.d.ts +0 -32
- package/dist/onramp/meshconnect.d.ts.map +0 -1
- package/dist/onramp/meshconnect.js +0 -124
- package/dist/onramp/trailsOnramp.d.ts +0 -32
- package/dist/onramp/trailsOnramp.d.ts.map +0 -1
- package/dist/onramp/trailsOnramp.js +0 -64
- package/dist/onramp-client/index.d.ts +0 -13
- package/dist/onramp-client/index.d.ts.map +0 -1
- package/dist/onramp-client/index.js +0 -19
- package/dist/onrampClient.d.ts +0 -10
- package/dist/onrampClient.d.ts.map +0 -1
- package/dist/onrampClient.js +0 -31
- package/dist/package.js +0 -123
- package/dist/placeholder.d.ts +0 -142
- package/dist/placeholder.d.ts.map +0 -1
- package/dist/placeholder.js +0 -95
- package/dist/poolUtils.d.ts +0 -16
- package/dist/poolUtils.d.ts.map +0 -1
- package/dist/poolUtils.js +0 -87
- package/dist/pools.d.ts +0 -33
- package/dist/pools.d.ts.map +0 -1
- package/dist/pools.js +0 -77
- package/dist/prepareSend.d.ts +0 -12
- package/dist/prepareSend.d.ts.map +0 -1
- package/dist/prepareSend.js +0 -207
- package/dist/query/QueryProvider.d.ts +0 -9
- package/dist/query/QueryProvider.d.ts.map +0 -1
- package/dist/query/QueryProvider.js +0 -13
- package/dist/query/balance.fetchers.d.ts +0 -116
- package/dist/query/balance.fetchers.d.ts.map +0 -1
- package/dist/query/balance.fetchers.js +0 -289
- package/dist/query/balance.hooks.d.ts +0 -80
- package/dist/query/balance.hooks.d.ts.map +0 -1
- package/dist/query/balance.hooks.js +0 -123
- package/dist/query/balance.queries.d.ts +0 -93
- package/dist/query/balance.queries.d.ts.map +0 -1
- package/dist/query/balance.queries.js +0 -142
- package/dist/query/chains.hooks.d.ts +0 -5
- package/dist/query/chains.hooks.d.ts.map +0 -1
- package/dist/query/chains.hooks.js +0 -40
- package/dist/query/chains.queries.d.ts +0 -16
- package/dist/query/chains.queries.d.ts.map +0 -1
- package/dist/query/chains.queries.js +0 -17
- package/dist/query/client.d.ts +0 -16
- package/dist/query/client.d.ts.map +0 -1
- package/dist/query/client.js +0 -15
- package/dist/query/fiat.fetchers.d.ts +0 -11
- package/dist/query/fiat.fetchers.d.ts.map +0 -1
- package/dist/query/fiat.fetchers.js +0 -10
- package/dist/query/fiat.hooks.d.ts +0 -18
- package/dist/query/fiat.hooks.d.ts.map +0 -1
- package/dist/query/fiat.hooks.js +0 -20
- package/dist/query/fiat.queries.d.ts +0 -24
- package/dist/query/fiat.queries.d.ts.map +0 -1
- package/dist/query/fiat.queries.js +0 -39
- package/dist/query/geo.fetchers.d.ts +0 -5
- package/dist/query/geo.fetchers.d.ts.map +0 -1
- package/dist/query/geo.fetchers.js +0 -61
- package/dist/query/geo.hooks.d.ts +0 -5
- package/dist/query/geo.hooks.d.ts.map +0 -1
- package/dist/query/geo.hooks.js +0 -17
- package/dist/query/geo.queries.d.ts +0 -22
- package/dist/query/geo.queries.d.ts.map +0 -1
- package/dist/query/geo.queries.js +0 -33
- package/dist/query/helpers.d.ts +0 -18
- package/dist/query/helpers.d.ts.map +0 -1
- package/dist/query/helpers.js +0 -31
- package/dist/query/intentProtocol.queries.d.ts +0 -32
- package/dist/query/intentProtocol.queries.d.ts.map +0 -1
- package/dist/query/intentProtocol.queries.js +0 -41
- package/dist/query/meld.fetchers.d.ts +0 -19
- package/dist/query/meld.fetchers.d.ts.map +0 -1
- package/dist/query/meld.fetchers.js +0 -41
- package/dist/query/meld.hooks.d.ts +0 -4
- package/dist/query/meld.hooks.d.ts.map +0 -1
- package/dist/query/meld.hooks.js +0 -15
- package/dist/query/meld.queries.d.ts +0 -61
- package/dist/query/meld.queries.d.ts.map +0 -1
- package/dist/query/meld.queries.js +0 -97
- package/dist/query/persister.d.ts +0 -9
- package/dist/query/persister.d.ts.map +0 -1
- package/dist/query/persister.js +0 -13
- package/dist/query/price.fetchers.d.ts +0 -15
- package/dist/query/price.fetchers.d.ts.map +0 -1
- package/dist/query/price.fetchers.js +0 -26
- package/dist/query/price.hooks.d.ts +0 -352
- package/dist/query/price.hooks.d.ts.map +0 -1
- package/dist/query/price.hooks.js +0 -35
- package/dist/query/price.queries.d.ts +0 -34
- package/dist/query/price.queries.d.ts.map +0 -1
- package/dist/query/price.queries.js +0 -139
- package/dist/query/serialization.d.ts +0 -3
- package/dist/query/serialization.d.ts.map +0 -1
- package/dist/query/serialization.js +0 -17
- package/dist/query/token.fetchers.d.ts +0 -13
- package/dist/query/token.fetchers.d.ts.map +0 -1
- package/dist/query/token.fetchers.js +0 -6
- package/dist/query/token.hooks.d.ts +0 -41
- package/dist/query/token.hooks.d.ts.map +0 -1
- package/dist/query/token.hooks.js +0 -68
- package/dist/query/token.queries.d.ts +0 -67
- package/dist/query/token.queries.d.ts.map +0 -1
- package/dist/query/token.queries.js +0 -144
- package/dist/queryParams.d.ts +0 -9
- package/dist/queryParams.d.ts.map +0 -1
- package/dist/queryParamsCore.d.ts +0 -2
- package/dist/queryParamsCore.d.ts.map +0 -1
- package/dist/queryParamsCore.js +0 -10
- package/dist/quoteError.d.ts +0 -22
- package/dist/quoteError.d.ts.map +0 -1
- package/dist/quoteError.js +0 -9
- package/dist/recover.d.ts +0 -304
- package/dist/recover.d.ts.map +0 -1
- package/dist/recover.js +0 -703
- package/dist/smartContractWallet.d.ts +0 -8
- package/dist/smartContractWallet.d.ts.map +0 -1
- package/dist/smartContractWallet.js +0 -11
- package/dist/theme.d.ts +0 -3
- package/dist/theme.d.ts.map +0 -1
- package/dist/toast.d.ts +0 -9
- package/dist/toast.d.ts.map +0 -1
- package/dist/toast.js +0 -31
- package/dist/tokenRegistry.d.ts +0 -50
- package/dist/tokenRegistry.d.ts.map +0 -1
- package/dist/tokenRegistry.js +0 -589
- package/dist/tokenTypes.d.ts +0 -29
- package/dist/tokenTypes.d.ts.map +0 -1
- package/dist/tokens.d.ts +0 -62
- package/dist/tokens.d.ts.map +0 -1
- package/dist/tokens.js +0 -370
- package/dist/trailsClient.d.ts +0 -11
- package/dist/trailsClient.d.ts.map +0 -1
- package/dist/trailsClient.js +0 -29
- package/dist/transactionIntent/constants.d.ts +0 -8
- package/dist/transactionIntent/constants.d.ts.map +0 -1
- package/dist/transactionIntent/constants.js +0 -11
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts +0 -55
- package/dist/transactionIntent/deposits/depositOrchestrator.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/depositOrchestrator.js +0 -88
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts +0 -31
- package/dist/transactionIntent/deposits/gaslessDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/gaslessDeposit.js +0 -218
- package/dist/transactionIntent/deposits/index.d.ts +0 -4
- package/dist/transactionIntent/deposits/index.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.d.ts +0 -50
- package/dist/transactionIntent/deposits/standardDeposit.d.ts.map +0 -1
- package/dist/transactionIntent/deposits/standardDeposit.js +0 -131
- package/dist/transactionIntent/execution/index.d.ts +0 -2
- package/dist/transactionIntent/execution/index.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.d.ts +0 -5
- package/dist/transactionIntent/execution/transactionState.d.ts.map +0 -1
- package/dist/transactionIntent/execution/transactionState.js +0 -21
- package/dist/transactionIntent/handlers/index.d.ts +0 -2
- package/dist/transactionIntent/handlers/index.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.d.ts +0 -71
- package/dist/transactionIntent/handlers/intentHandler.d.ts.map +0 -1
- package/dist/transactionIntent/handlers/intentHandler.js +0 -533
- package/dist/transactionIntent/helpers/index.d.ts +0 -2
- package/dist/transactionIntent/helpers/index.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts +0 -68
- package/dist/transactionIntent/helpers/transactionStateHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/helpers/transactionStateHelpers.js +0 -124
- package/dist/transactionIntent/index.d.ts +0 -10
- package/dist/transactionIntent/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.d.ts +0 -13
- package/dist/transactionIntent/quote/feeExtractors.d.ts.map +0 -1
- package/dist/transactionIntent/quote/feeExtractors.js +0 -52
- package/dist/transactionIntent/quote/index.d.ts +0 -4
- package/dist/transactionIntent/quote/index.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.d.ts +0 -44
- package/dist/transactionIntent/quote/normalizeQuote.d.ts.map +0 -1
- package/dist/transactionIntent/quote/normalizeQuote.js +0 -214
- package/dist/transactionIntent/quote/quoteHelpers.d.ts +0 -6
- package/dist/transactionIntent/quote/quoteHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/quote/quoteHelpers.js +0 -47
- package/dist/transactionIntent/types.d.ts +0 -181
- package/dist/transactionIntent/types.d.ts.map +0 -1
- package/dist/transactionIntent/types.js +0 -38
- package/dist/transactionIntent/utils/balanceChecker.d.ts +0 -20
- package/dist/transactionIntent/utils/balanceChecker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/balanceChecker.js +0 -55
- package/dist/transactionIntent/utils/index.d.ts +0 -3
- package/dist/transactionIntent/utils/index.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts +0 -25
- package/dist/transactionIntent/utils/resilientDepositTracker.d.ts.map +0 -1
- package/dist/transactionIntent/utils/resilientDepositTracker.js +0 -62
- package/dist/transactionIntent/utils/testnetHelpers.d.ts +0 -2
- package/dist/transactionIntent/utils/testnetHelpers.d.ts.map +0 -1
- package/dist/transactionIntent/validators.d.ts +0 -4
- package/dist/transactionIntent/validators.d.ts.map +0 -1
- package/dist/transactionIntent/validators.js +0 -11
- package/dist/transactions.d.ts +0 -176
- package/dist/transactions.d.ts.map +0 -1
- package/dist/transactions.js +0 -115
- package/dist/umd/trails.min.js +0 -1251
- package/dist/utils/address.d.ts +0 -28
- package/dist/utils/address.d.ts.map +0 -1
- package/dist/utils/address.js +0 -30
- package/dist/utils/fiat.d.ts +0 -8
- package/dist/utils/fiat.d.ts.map +0 -1
- package/dist/utils/fiat.js +0 -30
- package/dist/utils/format.d.ts +0 -74
- package/dist/utils/format.d.ts.map +0 -1
- package/dist/utils/format.js +0 -274
- package/dist/utils/localStorageGc.d.ts +0 -22
- package/dist/utils/localStorageGc.d.ts.map +0 -1
- package/dist/utils/localStorageGc.js +0 -53
- package/dist/utils/passthrough.d.ts +0 -46
- package/dist/utils/passthrough.d.ts.map +0 -1
- package/dist/utils/passthrough.js +0 -20
- package/dist/utils/time.d.ts +0 -27
- package/dist/utils/time.d.ts.map +0 -1
- package/dist/utils/time.js +0 -68
- package/dist/utils/tokenResolution.d.ts +0 -19
- package/dist/utils/tokenResolution.d.ts.map +0 -1
- package/dist/utils/tokenResolution.js +0 -53
- package/dist/utils/validation.d.ts +0 -53
- package/dist/utils/validation.d.ts.map +0 -1
- package/dist/utils/validation.js +0 -80
- package/dist/utils.d.ts +0 -34
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -58
- package/dist/version.d.ts +0 -3
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -9
- package/dist/widget/assets/components/Aave.d.ts +0 -8
- package/dist/widget/assets/components/Aave.d.ts.map +0 -1
- package/dist/widget/assets/components/Aave.js +0 -29
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts +0 -8
- package/dist/widget/assets/components/ExchangeIconBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodCardBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodCardBrands.js +0 -49
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts +0 -8
- package/dist/widget/assets/components/FundMethodExchangeBrands.d.ts.map +0 -1
- package/dist/widget/assets/components/FundMethodExchangeBrands.js +0 -37
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFox.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskIconFoxWithMargins.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/MetaMaskLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.d.ts +0 -8
- package/dist/widget/assets/components/Morpho.d.ts.map +0 -1
- package/dist/widget/assets/components/Morpho.js +0 -51
- package/dist/widget/assets/components/TrailsBlack.d.ts +0 -8
- package/dist/widget/assets/components/TrailsBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsBlack.js +0 -25
- package/dist/widget/assets/components/TrailsWhite.d.ts +0 -8
- package/dist/widget/assets/components/TrailsWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/TrailsWhite.js +0 -25
- package/dist/widget/assets/components/WalletChangeBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletChangeBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogo.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogo.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlack.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoBlue.d.ts.map +0 -1
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts +0 -8
- package/dist/widget/assets/components/WalletConnectLogoWhite.d.ts.map +0 -1
- package/dist/widget/assets/components/index.d.ts +0 -17
- package/dist/widget/assets/components/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts +0 -54
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoCache.js +0 -68
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts +0 -386
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoFlowClient.js +0 -872
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts +0 -192
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/BluvoWebClient.js +0 -294
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts +0 -51
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebSocketClient.js +0 -72
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts +0 -19
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WebsocketListener.js +0 -62
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts +0 -44
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/WorkflowTypes.js +0 -6
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts +0 -49
- package/dist/widget/bluvo/bluvo-lib/api.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts +0 -84
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/balanceTransform.js +0 -26
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/createMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/createMachine.js +0 -38
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts +0 -156
- package/dist/widget/bluvo/bluvo-lib/error-codes.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/error-codes.js +0 -115
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts +0 -356
- package/dist/widget/bluvo/bluvo-lib/flow.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts +0 -4
- package/dist/widget/bluvo/bluvo-lib/flowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowMachine.js +0 -45
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts +0 -20
- package/dist/widget/bluvo/bluvo-lib/flowMachine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts +0 -39
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/flowStateHandlers.js +0 -395
- package/dist/widget/bluvo/bluvo-lib/index.d.ts +0 -5
- package/dist/widget/bluvo/bluvo-lib/index.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts +0 -15
- package/dist/widget/bluvo/bluvo-lib/machine.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts +0 -23
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/stateHelpers.js +0 -24
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts +0 -325
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useBluvoFlow.js +0 -152
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts +0 -11
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/useFlowMachine.js +0 -25
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts +0 -17
- package/dist/widget/bluvo/bluvo-lib/useWithdrawMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts +0 -46
- package/dist/widget/bluvo/bluvo-lib/withdrawal.types.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts +0 -29
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalErrorHandler.js +0 -95
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts +0 -3
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.d.ts.map +0 -1
- package/dist/widget/bluvo/bluvo-lib/withdrawalMachine.js +0 -137
- package/dist/widget/bluvo/index.d.ts +0 -2
- package/dist/widget/bluvo/index.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.d.ts +0 -4
- package/dist/widget/components/AccountActionsDropdown.d.ts.map +0 -1
- package/dist/widget/components/AccountActionsDropdown.js +0 -23
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts +0 -9
- package/dist/widget/components/AccountIntentTransactionHistory.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistory.js +0 -426
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts +0 -4
- package/dist/widget/components/AccountIntentTransactionHistoryButton.d.ts.map +0 -1
- package/dist/widget/components/AccountIntentTransactionHistoryButton.js +0 -23
- package/dist/widget/components/AccountSettings.d.ts +0 -7
- package/dist/widget/components/AccountSettings.d.ts.map +0 -1
- package/dist/widget/components/AccountSettings.js +0 -106
- package/dist/widget/components/AddressOrEnsName.d.ts +0 -13
- package/dist/widget/components/AddressOrEnsName.d.ts.map +0 -1
- package/dist/widget/components/AddressOrEnsName.js +0 -13
- package/dist/widget/components/AddressWalletIcon.d.ts +0 -8
- package/dist/widget/components/AddressWalletIcon.d.ts.map +0 -1
- package/dist/widget/components/AddressWalletIcon.js +0 -32
- package/dist/widget/components/AllChainsIcon.d.ts +0 -9
- package/dist/widget/components/AllChainsIcon.d.ts.map +0 -1
- package/dist/widget/components/AllChainsIcon.js +0 -98
- package/dist/widget/components/BluvoExchangeSelection.d.ts +0 -12
- package/dist/widget/components/BluvoExchangeSelection.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.js +0 -131
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoExchangeSelection.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoExchangeSelection.lazy.js +0 -4
- package/dist/widget/components/BluvoOnrampFlow.d.ts +0 -20
- package/dist/widget/components/BluvoOnrampFlow.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.js +0 -1472
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts +0 -2
- package/dist/widget/components/BluvoOnrampFlow.lazy.d.ts.map +0 -1
- package/dist/widget/components/BluvoOnrampFlow.lazy.js +0 -4
- package/dist/widget/components/ChainFilterDropdown.d.ts +0 -17
- package/dist/widget/components/ChainFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/ChainFilterDropdown.js +0 -124
- package/dist/widget/components/ChainImage.d.ts +0 -8
- package/dist/widget/components/ChainImage.d.ts.map +0 -1
- package/dist/widget/components/ChainImage.js +0 -24
- package/dist/widget/components/ChainList.d.ts +0 -9
- package/dist/widget/components/ChainList.d.ts.map +0 -1
- package/dist/widget/components/ChainList.js +0 -177
- package/dist/widget/components/ClassicSwap.d.ts +0 -10
- package/dist/widget/components/ClassicSwap.d.ts.map +0 -1
- package/dist/widget/components/ClassicSwap.js +0 -786
- package/dist/widget/components/ConfigDisplay.d.ts +0 -7
- package/dist/widget/components/ConfigDisplay.d.ts.map +0 -1
- package/dist/widget/components/ConfigDisplay.js +0 -122
- package/dist/widget/components/ConnectWallet.d.ts +0 -12
- package/dist/widget/components/ConnectWallet.d.ts.map +0 -1
- package/dist/widget/components/ConnectWallet.js +0 -215
- package/dist/widget/components/ConnectedWallets.d.ts +0 -19
- package/dist/widget/components/ConnectedWallets.d.ts.map +0 -1
- package/dist/widget/components/ConnectedWallets.js +0 -149
- package/dist/widget/components/CopyButton.d.ts +0 -18
- package/dist/widget/components/CopyButton.d.ts.map +0 -1
- package/dist/widget/components/CopyButton.js +0 -51
- package/dist/widget/components/CountryFilterDropdown.d.ts +0 -15
- package/dist/widget/components/CountryFilterDropdown.d.ts.map +0 -1
- package/dist/widget/components/CountryFilterDropdown.js +0 -93
- package/dist/widget/components/DebugMenu.d.ts +0 -7
- package/dist/widget/components/DebugMenu.d.ts.map +0 -1
- package/dist/widget/components/DebugMenu.js +0 -33
- package/dist/widget/components/DebugScreensList.d.ts +0 -7
- package/dist/widget/components/DebugScreensList.d.ts.map +0 -1
- package/dist/widget/components/DebugScreensList.js +0 -56
- package/dist/widget/components/DebugToast.d.ts +0 -3
- package/dist/widget/components/DebugToast.d.ts.map +0 -1
- package/dist/widget/components/DebugToast.js +0 -46
- package/dist/widget/components/DepositTracker.d.ts +0 -13
- package/dist/widget/components/DepositTracker.d.ts.map +0 -1
- package/dist/widget/components/DepositTracker.js +0 -194
- package/dist/widget/components/DirectTransfer.d.ts +0 -15
- package/dist/widget/components/DirectTransfer.d.ts.map +0 -1
- package/dist/widget/components/DirectTransfer.js +0 -218
- package/dist/widget/components/Disconnect.d.ts +0 -8
- package/dist/widget/components/Disconnect.d.ts.map +0 -1
- package/dist/widget/components/Disconnect.js +0 -37
- package/dist/widget/components/DynamicInputStyles.d.ts +0 -22
- package/dist/widget/components/DynamicInputStyles.d.ts.map +0 -1
- package/dist/widget/components/DynamicInputStyles.js +0 -27
- package/dist/widget/components/DynamicSizeInputField.d.ts +0 -17
- package/dist/widget/components/DynamicSizeInputField.d.ts.map +0 -1
- package/dist/widget/components/DynamicSizeInputField.js +0 -125
- package/dist/widget/components/ENSAvatar.d.ts +0 -12
- package/dist/widget/components/ENSAvatar.d.ts.map +0 -1
- package/dist/widget/components/ENSAvatar.js +0 -22
- package/dist/widget/components/Earn.d.ts +0 -33
- package/dist/widget/components/Earn.d.ts.map +0 -1
- package/dist/widget/components/Earn.js +0 -79
- package/dist/widget/components/EarnMarkets.d.ts +0 -9
- package/dist/widget/components/EarnMarkets.d.ts.map +0 -1
- package/dist/widget/components/EarnMarkets.js +0 -313
- package/dist/widget/components/EarnPools.d.ts +0 -8
- package/dist/widget/components/EarnPools.d.ts.map +0 -1
- package/dist/widget/components/EarnPools.js +0 -256
- package/dist/widget/components/EarnPoolsFilters.d.ts +0 -18
- package/dist/widget/components/EarnPoolsFilters.d.ts.map +0 -1
- package/dist/widget/components/EarnPoolsFilters.js +0 -106
- package/dist/widget/components/EarnWithdraw.d.ts +0 -21
- package/dist/widget/components/EarnWithdraw.d.ts.map +0 -1
- package/dist/widget/components/EarnWithdraw.js +0 -477
- package/dist/widget/components/ErrorAnimationIcon.d.ts +0 -2
- package/dist/widget/components/ErrorAnimationIcon.d.ts.map +0 -1
- package/dist/widget/components/ErrorAnimationIcon.js +0 -148
- package/dist/widget/components/ErrorDisplay.d.ts +0 -9
- package/dist/widget/components/ErrorDisplay.d.ts.map +0 -1
- package/dist/widget/components/ErrorDisplay.js +0 -104
- package/dist/widget/components/ExecutingIntentsBadge.d.ts +0 -12
- package/dist/widget/components/ExecutingIntentsBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.d.ts +0 -5
- package/dist/widget/components/ExecutionStatusBadge.d.ts.map +0 -1
- package/dist/widget/components/ExecutionStatusBadge.js +0 -45
- package/dist/widget/components/FeeOption.d.ts +0 -20
- package/dist/widget/components/FeeOption.d.ts.map +0 -1
- package/dist/widget/components/FeeOption.js +0 -71
- package/dist/widget/components/FeeOptions.d.ts +0 -20
- package/dist/widget/components/FeeOptions.d.ts.map +0 -1
- package/dist/widget/components/FeeOptions.js +0 -99
- package/dist/widget/components/FiatSelector.d.ts +0 -18
- package/dist/widget/components/FiatSelector.d.ts.map +0 -1
- package/dist/widget/components/FiatSelector.js +0 -171
- package/dist/widget/components/FiatSelectorButton.d.ts +0 -11
- package/dist/widget/components/FiatSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FiatSelectorButton.js +0 -41
- package/dist/widget/components/Footer.d.ts +0 -7
- package/dist/widget/components/Footer.d.ts.map +0 -1
- package/dist/widget/components/Footer.js +0 -71
- package/dist/widget/components/Fund.d.ts +0 -19
- package/dist/widget/components/Fund.d.ts.map +0 -1
- package/dist/widget/components/Fund.js +0 -16
- package/dist/widget/components/Fund.types.d.ts +0 -22
- package/dist/widget/components/Fund.types.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.d.ts +0 -5
- package/dist/widget/components/FundExactInput.d.ts.map +0 -1
- package/dist/widget/components/FundExactInput.js +0 -1116
- package/dist/widget/components/FundExactOutput.d.ts +0 -5
- package/dist/widget/components/FundExactOutput.d.ts.map +0 -1
- package/dist/widget/components/FundExactOutput.js +0 -498
- package/dist/widget/components/FundMethods.d.ts +0 -15
- package/dist/widget/components/FundMethods.d.ts.map +0 -1
- package/dist/widget/components/FundMethods.js +0 -219
- package/dist/widget/components/FundWalletSelection.d.ts +0 -3
- package/dist/widget/components/FundWalletSelection.d.ts.map +0 -1
- package/dist/widget/components/FundWalletSelection.js +0 -38
- package/dist/widget/components/FundingMethodSelectorButton.d.ts +0 -11
- package/dist/widget/components/FundingMethodSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/FundingMethodSelectorButton.js +0 -57
- package/dist/widget/components/GreenCheckAnimation.d.ts +0 -2
- package/dist/widget/components/GreenCheckAnimation.d.ts.map +0 -1
- package/dist/widget/components/GreenCheckAnimation.js +0 -135
- package/dist/widget/components/HighPriceImpactBlock.d.ts +0 -7
- package/dist/widget/components/HighPriceImpactBlock.d.ts.map +0 -1
- package/dist/widget/components/HighPriceImpactBlock.js +0 -33
- package/dist/widget/components/HookModalContent.d.ts +0 -8
- package/dist/widget/components/HookModalContent.d.ts.map +0 -1
- package/dist/widget/components/HookModalContent.js +0 -237
- package/dist/widget/components/Identicon.d.ts +0 -9
- package/dist/widget/components/Identicon.d.ts.map +0 -1
- package/dist/widget/components/Identicon.js +0 -176
- package/dist/widget/components/LoadingSpinner.d.ts +0 -5
- package/dist/widget/components/LoadingSpinner.d.ts.map +0 -1
- package/dist/widget/components/LoadingSpinner.js +0 -5
- package/dist/widget/components/MeldForm.d.ts +0 -24
- package/dist/widget/components/MeldForm.d.ts.map +0 -1
- package/dist/widget/components/MeldForm.js +0 -447
- package/dist/widget/components/MeldHistory.d.ts +0 -13
- package/dist/widget/components/MeldHistory.d.ts.map +0 -1
- package/dist/widget/components/MeldHistory.js +0 -307
- package/dist/widget/components/MeldStepsFlow.d.ts +0 -6
- package/dist/widget/components/MeldStepsFlow.d.ts.map +0 -1
- package/dist/widget/components/MeldStepsFlow.js +0 -785
- package/dist/widget/components/MeldTransactionStatus.d.ts +0 -20
- package/dist/widget/components/MeldTransactionStatus.d.ts.map +0 -1
- package/dist/widget/components/MeldTransactionStatus.js +0 -157
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts +0 -9
- package/dist/widget/components/MeshExchangeAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/MeshExchangeAccountHeader.js +0 -30
- package/dist/widget/components/Modal.d.ts +0 -9
- package/dist/widget/components/Modal.d.ts.map +0 -1
- package/dist/widget/components/Modal.js +0 -65
- package/dist/widget/components/OFTProgressBar.d.ts +0 -16
- package/dist/widget/components/OFTProgressBar.d.ts.map +0 -1
- package/dist/widget/components/OFTProgressBar.js +0 -49
- package/dist/widget/components/OnRampProviderSelector.d.ts +0 -13
- package/dist/widget/components/OnRampProviderSelector.d.ts.map +0 -1
- package/dist/widget/components/OnRampProviderSelector.js +0 -144
- package/dist/widget/components/OnrampErrorScreen.d.ts +0 -15
- package/dist/widget/components/OnrampErrorScreen.d.ts.map +0 -1
- package/dist/widget/components/OnrampErrorScreen.js +0 -102
- package/dist/widget/components/OnrampHistoryRow.d.ts +0 -13
- package/dist/widget/components/OnrampHistoryRow.d.ts.map +0 -1
- package/dist/widget/components/OnrampHistoryRow.js +0 -249
- package/dist/widget/components/OnrampPaymentMethods.d.ts +0 -7
- package/dist/widget/components/OnrampPaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/OnrampPaymentMethods.js +0 -54
- package/dist/widget/components/OnrampProviderConfirmation.d.ts +0 -30
- package/dist/widget/components/OnrampProviderConfirmation.d.ts.map +0 -1
- package/dist/widget/components/OnrampProviderConfirmation.js +0 -705
- package/dist/widget/components/OriginSelectionAmount.d.ts +0 -12
- package/dist/widget/components/OriginSelectionAmount.d.ts.map +0 -1
- package/dist/widget/components/OriginSelectionAmount.js +0 -104
- package/dist/widget/components/OriginTransferInformation.d.ts +0 -10
- package/dist/widget/components/OriginTransferInformation.d.ts.map +0 -1
- package/dist/widget/components/OriginTransferInformation.js +0 -56
- package/dist/widget/components/Pay.d.ts +0 -7
- package/dist/widget/components/Pay.d.ts.map +0 -1
- package/dist/widget/components/Pay.js +0 -649
- package/dist/widget/components/PaymentMethods.d.ts +0 -10
- package/dist/widget/components/PaymentMethods.d.ts.map +0 -1
- package/dist/widget/components/PaymentMethods.js +0 -118
- package/dist/widget/components/PercentageMaxButtons.d.ts +0 -14
- package/dist/widget/components/PercentageMaxButtons.d.ts.map +0 -1
- package/dist/widget/components/PercentageMaxButtons.js +0 -62
- package/dist/widget/components/PoolDeposit.d.ts +0 -32
- package/dist/widget/components/PoolDeposit.d.ts.map +0 -1
- package/dist/widget/components/PoolDeposit.js +0 -426
- package/dist/widget/components/PriceImpactWarning.d.ts +0 -11
- package/dist/widget/components/PriceImpactWarning.d.ts.map +0 -1
- package/dist/widget/components/PriceImpactWarning.js +0 -58
- package/dist/widget/components/PulsatingButton.d.ts +0 -9
- package/dist/widget/components/PulsatingButton.d.ts.map +0 -1
- package/dist/widget/components/PulsatingButton.js +0 -48
- package/dist/widget/components/QRCodeOptions.d.ts +0 -9
- package/dist/widget/components/QRCodeOptions.d.ts.map +0 -1
- package/dist/widget/components/QRCodeOptions.js +0 -57
- package/dist/widget/components/QRCodeWalletSelect.d.ts +0 -13
- package/dist/widget/components/QRCodeWalletSelect.d.ts.map +0 -1
- package/dist/widget/components/QRCodeWalletSelect.js +0 -45
- package/dist/widget/components/QrCode.d.ts +0 -10
- package/dist/widget/components/QrCode.d.ts.map +0 -1
- package/dist/widget/components/QrCode.js +0 -69
- package/dist/widget/components/QuoteDetails.d.ts +0 -25
- package/dist/widget/components/QuoteDetails.d.ts.map +0 -1
- package/dist/widget/components/QuoteDetails.js +0 -728
- package/dist/widget/components/QuoteInputErrorBlock.d.ts +0 -7
- package/dist/widget/components/QuoteInputErrorBlock.d.ts.map +0 -1
- package/dist/widget/components/QuoteInputErrorBlock.js +0 -22
- package/dist/widget/components/Receipt.d.ts +0 -18
- package/dist/widget/components/Receipt.d.ts.map +0 -1
- package/dist/widget/components/Receipt.js +0 -443
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts +0 -25
- package/dist/widget/components/ReceiptRecoverableFunds.d.ts.map +0 -1
- package/dist/widget/components/ReceiptRecoverableFunds.js +0 -75
- package/dist/widget/components/RecentChains.d.ts +0 -9
- package/dist/widget/components/RecentChains.d.ts.map +0 -1
- package/dist/widget/components/RecentChains.js +0 -28
- package/dist/widget/components/RecentTokens.d.ts +0 -10
- package/dist/widget/components/RecentTokens.d.ts.map +0 -1
- package/dist/widget/components/RecentTokens.js +0 -37
- package/dist/widget/components/RecipientSelectorButton.d.ts +0 -6
- package/dist/widget/components/RecipientSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/RecipientSelectorButton.js +0 -36
- package/dist/widget/components/Recipients.d.ts +0 -9
- package/dist/widget/components/Recipients.d.ts.map +0 -1
- package/dist/widget/components/Recipients.js +0 -208
- package/dist/widget/components/RefundWarning.d.ts +0 -11
- package/dist/widget/components/RefundWarning.d.ts.map +0 -1
- package/dist/widget/components/RefundWarning.js +0 -33
- package/dist/widget/components/RequiredPropsError.d.ts +0 -8
- package/dist/widget/components/RequiredPropsError.d.ts.map +0 -1
- package/dist/widget/components/RequiredPropsError.js +0 -14
- package/dist/widget/components/ScreenHeader.d.ts +0 -13
- package/dist/widget/components/ScreenHeader.d.ts.map +0 -1
- package/dist/widget/components/ScreenHeader.js +0 -64
- package/dist/widget/components/SearchInputField.d.ts +0 -14
- package/dist/widget/components/SearchInputField.d.ts.map +0 -1
- package/dist/widget/components/SearchInputField.js +0 -51
- package/dist/widget/components/SessionTimeoutScreen.d.ts +0 -12
- package/dist/widget/components/SessionTimeoutScreen.d.ts.map +0 -1
- package/dist/widget/components/SessionTimeoutScreen.js +0 -64
- package/dist/widget/components/ShadowPortal.d.ts +0 -6
- package/dist/widget/components/ShadowPortal.d.ts.map +0 -1
- package/dist/widget/components/ShadowPortal.js +0 -52
- package/dist/widget/components/ShadowRootContext.d.ts +0 -8
- package/dist/widget/components/ShadowRootContext.d.ts.map +0 -1
- package/dist/widget/components/ShadowRootContext.js +0 -12
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts +0 -13
- package/dist/widget/components/SimpleRecipientInputScreen.d.ts.map +0 -1
- package/dist/widget/components/SimpleRecipientInputScreen.js +0 -48
- package/dist/widget/components/SlippageToleranceSettings.d.ts +0 -9
- package/dist/widget/components/SlippageToleranceSettings.d.ts.map +0 -1
- package/dist/widget/components/SlippageToleranceSettings.js +0 -159
- package/dist/widget/components/Swap.d.ts +0 -43
- package/dist/widget/components/Swap.d.ts.map +0 -1
- package/dist/widget/components/Swap.js +0 -6
- package/dist/widget/components/SwapDisplay.d.ts +0 -9
- package/dist/widget/components/SwapDisplay.d.ts.map +0 -1
- package/dist/widget/components/SwapDisplay.js +0 -72
- package/dist/widget/components/ThemeProvider.d.ts +0 -16
- package/dist/widget/components/ThemeProvider.d.ts.map +0 -1
- package/dist/widget/components/ThemeProvider.js +0 -52
- package/dist/widget/components/ThemeSyncer.d.ts +0 -6
- package/dist/widget/components/ThemeSyncer.d.ts.map +0 -1
- package/dist/widget/components/ThemeSyncer.js +0 -25
- package/dist/widget/components/Toast.d.ts +0 -24
- package/dist/widget/components/Toast.d.ts.map +0 -1
- package/dist/widget/components/Toast.js +0 -206
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts +0 -11
- package/dist/widget/components/TokenDisplayNonSelectable.d.ts.map +0 -1
- package/dist/widget/components/TokenDisplayNonSelectable.js +0 -30
- package/dist/widget/components/TokenImage.d.ts +0 -11
- package/dist/widget/components/TokenImage.d.ts.map +0 -1
- package/dist/widget/components/TokenImage.js +0 -96
- package/dist/widget/components/TokenList.d.ts +0 -20
- package/dist/widget/components/TokenList.d.ts.map +0 -1
- package/dist/widget/components/TokenList.js +0 -45
- package/dist/widget/components/TokenSelector.d.ts +0 -32
- package/dist/widget/components/TokenSelector.d.ts.map +0 -1
- package/dist/widget/components/TokenSelector.js +0 -479
- package/dist/widget/components/TokenSelectorButton.d.ts +0 -17
- package/dist/widget/components/TokenSelectorButton.d.ts.map +0 -1
- package/dist/widget/components/TokenSelectorButton.js +0 -64
- package/dist/widget/components/TokenSkeleton.d.ts +0 -12
- package/dist/widget/components/TokenSkeleton.d.ts.map +0 -1
- package/dist/widget/components/TokenSkeleton.js +0 -36
- package/dist/widget/components/Tooltip.d.ts +0 -14
- package/dist/widget/components/Tooltip.d.ts.map +0 -1
- package/dist/widget/components/Tooltip.js +0 -38
- package/dist/widget/components/TrailsHookModal.d.ts +0 -10
- package/dist/widget/components/TrailsHookModal.d.ts.map +0 -1
- package/dist/widget/components/TrailsHookModal.js +0 -55
- package/dist/widget/components/TransactionDetails.d.ts +0 -10
- package/dist/widget/components/TransactionDetails.d.ts.map +0 -1
- package/dist/widget/components/TransactionDetails.js +0 -492
- package/dist/widget/components/TransactionHistoryItem.d.ts +0 -23
- package/dist/widget/components/TransactionHistoryItem.d.ts.map +0 -1
- package/dist/widget/components/TransactionHistoryItem.js +0 -547
- package/dist/widget/components/TransferPendingVertical.d.ts +0 -16
- package/dist/widget/components/TransferPendingVertical.d.ts.map +0 -1
- package/dist/widget/components/TransferPendingVertical.js +0 -356
- package/dist/widget/components/TruncatedTransactionHash.d.ts +0 -12
- package/dist/widget/components/TruncatedTransactionHash.d.ts.map +0 -1
- package/dist/widget/components/TruncatedTransactionHash.js +0 -36
- package/dist/widget/components/UserPreferences.d.ts +0 -7
- package/dist/widget/components/UserPreferences.d.ts.map +0 -1
- package/dist/widget/components/UserPreferences.js +0 -282
- package/dist/widget/components/WaasFeeOptions.d.ts +0 -12
- package/dist/widget/components/WaasFeeOptions.d.ts.map +0 -1
- package/dist/widget/components/WaasFeeOptions.js +0 -349
- package/dist/widget/components/WalletAccountHeader.d.ts +0 -8
- package/dist/widget/components/WalletAccountHeader.d.ts.map +0 -1
- package/dist/widget/components/WalletAccountHeader.js +0 -45
- package/dist/widget/components/WalletConfirmation.d.ts +0 -15
- package/dist/widget/components/WalletConfirmation.d.ts.map +0 -1
- package/dist/widget/components/WalletConfirmation.js +0 -145
- package/dist/widget/components/WalletConnect.d.ts +0 -11
- package/dist/widget/components/WalletConnect.d.ts.map +0 -1
- package/dist/widget/components/WalletConnect.js +0 -164
- package/dist/widget/components/WalletConnectionPending.d.ts +0 -12
- package/dist/widget/components/WalletConnectionPending.d.ts.map +0 -1
- package/dist/widget/components/WalletConnectionPending.js +0 -124
- package/dist/widget/components/WalletList.d.ts +0 -16
- package/dist/widget/components/WalletList.d.ts.map +0 -1
- package/dist/widget/components/WalletList.js +0 -88
- package/dist/widget/components/WidgetProviders.d.ts +0 -16
- package/dist/widget/components/WidgetProviders.d.ts.map +0 -1
- package/dist/widget/components/WidgetProviders.js +0 -43
- package/dist/widget/components/Withdraw.d.ts +0 -12
- package/dist/widget/components/Withdraw.d.ts.map +0 -1
- package/dist/widget/components/Withdraw.js +0 -551
- package/dist/widget/components/YellowWarningAnimation.d.ts +0 -2
- package/dist/widget/components/YellowWarningAnimation.d.ts.map +0 -1
- package/dist/widget/components/YellowWarningAnimation.js +0 -167
- package/dist/widget/components/earnMarketUtils.d.ts +0 -11
- package/dist/widget/components/earnMarketUtils.d.ts.map +0 -1
- package/dist/widget/components/earnMarketUtils.js +0 -48
- package/dist/widget/components/earnNetworks.d.ts +0 -6
- package/dist/widget/components/earnNetworks.d.ts.map +0 -1
- package/dist/widget/components/earnNetworks.js +0 -33
- package/dist/widget/index.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.d.ts +0 -90
- package/dist/widget/modes/EarnWidget.d.ts.map +0 -1
- package/dist/widget/modes/EarnWidget.js +0 -41
- package/dist/widget/modes/FundWidget.d.ts +0 -110
- package/dist/widget/modes/FundWidget.d.ts.map +0 -1
- package/dist/widget/modes/FundWidget.js +0 -48
- package/dist/widget/modes/PayWidget.d.ts +0 -80
- package/dist/widget/modes/PayWidget.d.ts.map +0 -1
- package/dist/widget/modes/PayWidget.js +0 -40
- package/dist/widget/modes/SwapWidget.d.ts +0 -76
- package/dist/widget/modes/SwapWidget.d.ts.map +0 -1
- package/dist/widget/modes/SwapWidget.js +0 -41
- package/dist/widget/modes/WithdrawWidget.d.ts +0 -87
- package/dist/widget/modes/WithdrawWidget.d.ts.map +0 -1
- package/dist/widget/modes/WithdrawWidget.js +0 -38
- package/dist/widget/props.d.ts +0 -255
- package/dist/widget/props.d.ts.map +0 -1
- package/dist/widget/props.js +0 -14
- package/dist/widget/providers/TrailsModalProvider.d.ts +0 -78
- package/dist/widget/providers/TrailsModalProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsModalProvider.js +0 -57
- package/dist/widget/providers/TrailsProvider.d.ts +0 -100
- package/dist/widget/providers/TrailsProvider.d.ts.map +0 -1
- package/dist/widget/providers/TrailsProvider.js +0 -101
- package/dist/widget/providers/UserActivityProvider.d.ts +0 -18
- package/dist/widget/providers/UserActivityProvider.d.ts.map +0 -1
- package/dist/widget/providers/UserActivityProvider.js +0 -38
- package/dist/widget/providers/WalletContext.d.ts +0 -10
- package/dist/widget/providers/WalletContext.d.ts.map +0 -1
- package/dist/widget/providers/WalletContext.js +0 -23
- package/dist/widget/providers/WidgetProviderTree.d.ts +0 -24
- package/dist/widget/providers/WidgetProviderTree.d.ts.map +0 -1
- package/dist/widget/providers/WidgetProviderTree.js +0 -35
- package/dist/widget/providers/adapterConfig.d.ts +0 -13
- package/dist/widget/providers/adapterConfig.d.ts.map +0 -1
- package/dist/widget/providers/adapterConfig.js +0 -97
- package/dist/widget/providers/sequenceSupport.d.ts +0 -42
- package/dist/widget/providers/sequenceSupport.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.d.ts +0 -10
- package/dist/widget/providers/walletRuntimeResolution.d.ts.map +0 -1
- package/dist/widget/providers/walletRuntimeResolution.js +0 -14
- package/dist/widget/shared/destinationDefaultToken.d.ts +0 -15
- package/dist/widget/shared/destinationDefaultToken.d.ts.map +0 -1
- package/dist/widget/shared/destinationDefaultToken.js +0 -18
- package/dist/widget/shared/destinationSupport.d.ts +0 -40
- package/dist/widget/shared/destinationSupport.d.ts.map +0 -1
- package/dist/widget/shared/destinationSupport.js +0 -215
- package/dist/widget/shared/mapSharedProps.d.ts +0 -9
- package/dist/widget/shared/mapSharedProps.d.ts.map +0 -1
- package/dist/widget/shared/mapSharedProps.js +0 -22
- package/dist/widget/shared/methodMap.d.ts +0 -18
- package/dist/widget/shared/methodMap.d.ts.map +0 -1
- package/dist/widget/shared/methodMap.js +0 -25
- package/dist/widget/shared/resolution.d.ts +0 -8
- package/dist/widget/shared/resolution.d.ts.map +0 -1
- package/dist/widget/shared/resolution.js +0 -63
- package/dist/widget/shared/resolvePaymentSource.d.ts +0 -37
- package/dist/widget/shared/resolvePaymentSource.d.ts.map +0 -1
- package/dist/widget/shared/resolvePaymentSource.js +0 -19
- package/dist/widget/shared/types.d.ts +0 -142
- package/dist/widget/shared/types.d.ts.map +0 -1
- package/dist/widget/styles.gen.d.ts +0 -2
- package/dist/widget/styles.gen.d.ts.map +0 -1
- package/dist/widget/styles.gen.js +0 -29
- package/dist/widget/types/analytics.d.ts +0 -22
- package/dist/widget/types/analytics.d.ts.map +0 -1
- package/dist/widget/types/commonProps.d.ts +0 -48
- package/dist/widget/types/commonProps.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.d.ts +0 -37
- package/dist/widget/utils/countryUtils.d.ts.map +0 -1
- package/dist/widget/utils/countryUtils.js +0 -14
- package/dist/widget/utils/forexRateStore.d.ts +0 -25
- package/dist/widget/utils/forexRateStore.d.ts.map +0 -1
- package/dist/widget/utils/forexRateStore.js +0 -59
- package/dist/widget/utils/fundMethodSwitchState.d.ts +0 -14
- package/dist/widget/utils/fundMethodSwitchState.d.ts.map +0 -1
- package/dist/widget/utils/fundMethodSwitchState.js +0 -6
- package/dist/widget/utils/historyFilters.d.ts +0 -13
- package/dist/widget/utils/historyFilters.d.ts.map +0 -1
- package/dist/widget/utils/historyFilters.js +0 -108
- package/dist/widget/utils/localeStore.d.ts +0 -19
- package/dist/widget/utils/localeStore.d.ts.map +0 -1
- package/dist/widget/utils/localeStore.js +0 -39
- package/dist/widget/utils/meldProviderUtils.d.ts +0 -6
- package/dist/widget/utils/meldProviderUtils.d.ts.map +0 -1
- package/dist/widget/utils/meldProviderUtils.js +0 -9
- package/dist/widget/utils/meshSupportedTokens.d.ts +0 -4
- package/dist/widget/utils/meshSupportedTokens.d.ts.map +0 -1
- package/dist/widget/utils/meshSupportedTokens.js +0 -12
- package/dist/widget/utils/onrampConfig.d.ts +0 -11
- package/dist/widget/utils/onrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/onrampConfig.js +0 -6
- package/dist/widget/utils/statusLabel.d.ts +0 -2
- package/dist/widget/utils/statusLabel.d.ts.map +0 -1
- package/dist/widget/utils/statusLabel.js +0 -6
- package/dist/widget/utils/tokens.d.ts +0 -60
- package/dist/widget/utils/tokens.d.ts.map +0 -1
- package/dist/widget/utils/tokens.js +0 -16
- package/dist/widget/utils/trailsOnrampConfig.d.ts +0 -23
- package/dist/widget/utils/trailsOnrampConfig.d.ts.map +0 -1
- package/dist/widget/utils/trailsOnrampConfig.js +0 -7
- package/dist/widget/utils/transactionFailure.d.ts +0 -20
- package/dist/widget/utils/transactionFailure.d.ts.map +0 -1
- package/dist/widget/utils/transactionFailure.js +0 -12
- package/dist/widget/utils/viewManagerGuards.d.ts +0 -5
- package/dist/widget/utils/viewManagerGuards.d.ts.map +0 -1
- package/dist/widget/utils/viewManagerGuards.js +0 -24
- package/dist/widget/utils/walletConnectRedirect.d.ts +0 -19
- package/dist/widget/utils/walletConnectRedirect.d.ts.map +0 -1
- package/dist/widget/utils/walletConnectRedirect.js +0 -21
- package/dist/widget/utils/windowUtils.d.ts +0 -13
- package/dist/widget/utils/windowUtils.d.ts.map +0 -1
- package/dist/widget/utils/windowUtils.js +0 -84
- package/dist/widget/widget.d.ts +0 -16
- package/dist/widget/widget.d.ts.map +0 -1
- package/dist/widget/widget.js +0 -1541
- package/dist/widgetFlowHooks.d.ts +0 -12
- package/dist/widgetFlowHooks.d.ts.map +0 -1
- package/dist/widgetFlowHooks.js +0 -18
|
@@ -1,1472 +0,0 @@
|
|
|
1
|
-
import { logger as v } from "../../logger/index.js";
|
|
2
|
-
import { ScreenHeader as ee } from "./ScreenHeader.js";
|
|
3
|
-
import { useOnrampClient as rt } from "../../onrampClient.js";
|
|
4
|
-
import pt from "./QuoteDetails.js";
|
|
5
|
-
import bt from "./LoadingSpinner.js";
|
|
6
|
-
import { useExchangeFundingSelection as xt } from "../../hooks/useExchangeFundingSelection.js";
|
|
7
|
-
import { useBluvoFlow as vt } from "../bluvo/bluvo-lib/useBluvoFlow.js";
|
|
8
|
-
import { useCallback as T, useEffect as x, useMemo as Me, useRef as Le, useState as I } from "react";
|
|
9
|
-
import { useQuery as qe, useQueryClient as At } from "@tanstack/react-query";
|
|
10
|
-
import { jsx as i, jsxs as m } from "react/jsx-runtime";
|
|
11
|
-
var Ze = 3e3, Nt = 5 * 6e4;
|
|
12
|
-
function Ft(o, d, l) {
|
|
13
|
-
return [
|
|
14
|
-
"trails-bluvo-wallet",
|
|
15
|
-
o.trim(),
|
|
16
|
-
d.trim().toLowerCase(),
|
|
17
|
-
l.trim().toLowerCase()
|
|
18
|
-
].join(":");
|
|
19
|
-
}
|
|
20
|
-
function et(o) {
|
|
21
|
-
if (!o || typeof window > "u") return null;
|
|
22
|
-
try {
|
|
23
|
-
return window.sessionStorage.getItem(o)?.trim() || null;
|
|
24
|
-
} catch {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
function Ct(o, d) {
|
|
29
|
-
if (!(!o || typeof window > "u"))
|
|
30
|
-
try {
|
|
31
|
-
if (d?.trim()) {
|
|
32
|
-
window.sessionStorage.setItem(o, d.trim());
|
|
33
|
-
return;
|
|
34
|
-
}
|
|
35
|
-
window.sessionStorage.removeItem(o);
|
|
36
|
-
} catch {
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function kt(o, d) {
|
|
40
|
-
return `trails-${o.trim()}-${d.trim().toLowerCase()}-${crypto.randomUUID().toLowerCase()}`;
|
|
41
|
-
}
|
|
42
|
-
function M(o, d) {
|
|
43
|
-
return o instanceof Error ? o.message : d;
|
|
44
|
-
}
|
|
45
|
-
function tt(o) {
|
|
46
|
-
return o?.trim().toUpperCase() ?? "";
|
|
47
|
-
}
|
|
48
|
-
function xe(o) {
|
|
49
|
-
return o?.trim().toUpperCase().replaceAll(/\s+/g, " ") ?? "";
|
|
50
|
-
}
|
|
51
|
-
function te(o) {
|
|
52
|
-
if (typeof o == "number") return Number.isFinite(o) ? o : NaN;
|
|
53
|
-
if (typeof o != "string") return NaN;
|
|
54
|
-
const d = o.replaceAll(",", "").trim();
|
|
55
|
-
return d ? Number.parseFloat(d) : NaN;
|
|
56
|
-
}
|
|
57
|
-
function It(o) {
|
|
58
|
-
const d = (o.originAmountFormatted || o.originAmountDisplay)?.trim(), l = o.originAmount?.trim();
|
|
59
|
-
if (!d) throw new Error("Bluvo quote amount is missing.");
|
|
60
|
-
const s = te(d);
|
|
61
|
-
if (!Number.isFinite(s) || s <= 0) throw new Error("Bluvo quote amount is invalid.");
|
|
62
|
-
if (!l || l === d) return d;
|
|
63
|
-
const c = te(l);
|
|
64
|
-
return Number.isFinite(c) && c > s * 1e3, d;
|
|
65
|
-
}
|
|
66
|
-
function St(o, d) {
|
|
67
|
-
const l = te(o);
|
|
68
|
-
if (!Number.isFinite(l) || l <= 0) return d;
|
|
69
|
-
const s = d.includes(".") ? d.split(".")[1]?.length ?? 0 : 0;
|
|
70
|
-
return l.toLocaleString(void 0, {
|
|
71
|
-
minimumFractionDigits: s,
|
|
72
|
-
maximumFractionDigits: Math.max(s, 8)
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
function Oe(o) {
|
|
76
|
-
return o === "INVALID_API_CREDENTIALS";
|
|
77
|
-
}
|
|
78
|
-
function ve(o) {
|
|
79
|
-
return o === "NOT_CONNECTED";
|
|
80
|
-
}
|
|
81
|
-
function ot(o) {
|
|
82
|
-
if (M(o, "").toLowerCase().includes("wallet not found")) return !0;
|
|
83
|
-
if (typeof o == "object" && o !== null && "cause" in o && typeof o.cause == "string") {
|
|
84
|
-
const d = o.cause.toLowerCase();
|
|
85
|
-
return d.includes("wallet not found") || d.includes("wallet_not_found");
|
|
86
|
-
}
|
|
87
|
-
return !1;
|
|
88
|
-
}
|
|
89
|
-
function at(o) {
|
|
90
|
-
return ot(o);
|
|
91
|
-
}
|
|
92
|
-
function q(o) {
|
|
93
|
-
return !!o && o.success === !1 && (o.type === "WITHDRAWAL_PROVIDER_ERROR" || o.error === "ProviderError");
|
|
94
|
-
}
|
|
95
|
-
function Wt(o) {
|
|
96
|
-
return !!o && o.success === !1 && o.type === "WITHDRAWAL_2FA_METHOD_NOT_SUPPORTED";
|
|
97
|
-
}
|
|
98
|
-
function it(o) {
|
|
99
|
-
const d = o?.trim().toLowerCase() ?? "";
|
|
100
|
-
return d.includes("supported two-factor authentication methods") || d.includes("totp and sms are the only supported");
|
|
101
|
-
}
|
|
102
|
-
function Ae(o, d) {
|
|
103
|
-
return o === "TwoFaNonValidRetryError" ? "Invalid verification code. Please try again." : d === "WITHDRAWAL_2FA_METHOD_NOT_SUPPORTED" || o === "TwoFaMethodNotSupportedError" || it(o) ? "That verification method is not currently supported for this exchange account. Try one of the supported 2FA methods." : o ?? null;
|
|
104
|
-
}
|
|
105
|
-
function Bt(o) {
|
|
106
|
-
return `<!DOCTYPE html>
|
|
107
|
-
<html>
|
|
108
|
-
<head>
|
|
109
|
-
<title>${o}</title>
|
|
110
|
-
<style>
|
|
111
|
-
body {
|
|
112
|
-
margin: 0;
|
|
113
|
-
display: flex;
|
|
114
|
-
align-items: center;
|
|
115
|
-
justify-content: center;
|
|
116
|
-
height: 100vh;
|
|
117
|
-
background: #000;
|
|
118
|
-
}
|
|
119
|
-
.spinner {
|
|
120
|
-
border: 4px solid rgba(255, 255, 255, 0.3);
|
|
121
|
-
border-top: 4px solid #fff;
|
|
122
|
-
border-radius: 50%;
|
|
123
|
-
width: 48px;
|
|
124
|
-
height: 48px;
|
|
125
|
-
animation: spin 1s linear infinite;
|
|
126
|
-
}
|
|
127
|
-
@keyframes spin {
|
|
128
|
-
0% { transform: rotate(0deg); }
|
|
129
|
-
100% { transform: rotate(360deg); }
|
|
130
|
-
}
|
|
131
|
-
</style>
|
|
132
|
-
</head>
|
|
133
|
-
<body>
|
|
134
|
-
<div class="spinner"></div>
|
|
135
|
-
</body>
|
|
136
|
-
</html>`;
|
|
137
|
-
}
|
|
138
|
-
function Ne(o) {
|
|
139
|
-
return o.map((d) => ({
|
|
140
|
-
asset: d.asset,
|
|
141
|
-
balance: d.amount.toString(),
|
|
142
|
-
balanceInFiat: d.amountInFiat?.toString(),
|
|
143
|
-
networks: (d.networks ?? []).map((l) => ({
|
|
144
|
-
id: l.id,
|
|
145
|
-
name: l.name,
|
|
146
|
-
displayName: l.displayName,
|
|
147
|
-
minWithdrawal: l.minWithdrawal,
|
|
148
|
-
maxWithdrawal: l.maxWithdrawal,
|
|
149
|
-
assetName: l.assetName,
|
|
150
|
-
addressRegex: l.addressRegex,
|
|
151
|
-
chainId: l.chainId,
|
|
152
|
-
tokenAddress: l.tokenAddress,
|
|
153
|
-
contractAddress: l.contractAddress,
|
|
154
|
-
contractAddressVerified: l.contractAddressVerified
|
|
155
|
-
}))
|
|
156
|
-
}));
|
|
157
|
-
}
|
|
158
|
-
var Vt = (o) => {
|
|
159
|
-
const { environment: d, exchange: l, onBack: s } = o, c = rt(), L = qe({
|
|
160
|
-
queryKey: ["bluvo-client-config", d],
|
|
161
|
-
queryFn: async () => (v.console.log("[bluvo]", "getBluvoClientConfig request", { environment: d }), c.getBluvoClientConfig({ environment: d })),
|
|
162
|
-
staleTime: 5 * 6e4
|
|
163
|
-
});
|
|
164
|
-
return L.isLoading ? /* @__PURE__ */ m("div", {
|
|
165
|
-
className: "flex flex-col h-full",
|
|
166
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
167
|
-
onBack: s,
|
|
168
|
-
headerContent: `Fund via ${l.name}`,
|
|
169
|
-
headerContentAlign: "left"
|
|
170
|
-
}), /* @__PURE__ */ i("div", {
|
|
171
|
-
className: "flex flex-1 items-center justify-center py-2",
|
|
172
|
-
children: /* @__PURE__ */ i("div", {
|
|
173
|
-
className: "w-full max-w-md rounded-lg border border-solid border-gray-200 p-8 text-center dark:border-gray-700",
|
|
174
|
-
children: /* @__PURE__ */ i("div", {
|
|
175
|
-
className: "text-sm text-gray-600 dark:text-gray-300",
|
|
176
|
-
children: "Loading Bluvo configuration..."
|
|
177
|
-
})
|
|
178
|
-
})
|
|
179
|
-
})]
|
|
180
|
-
}) : L.isError || !L.data ? /* @__PURE__ */ m("div", {
|
|
181
|
-
className: "flex flex-col h-full",
|
|
182
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
183
|
-
onBack: s,
|
|
184
|
-
headerContent: `Fund via ${l.name}`,
|
|
185
|
-
headerContentAlign: "left"
|
|
186
|
-
}), /* @__PURE__ */ i("div", {
|
|
187
|
-
className: "flex flex-1 items-center justify-center py-2",
|
|
188
|
-
children: /* @__PURE__ */ m("div", {
|
|
189
|
-
className: "w-full max-w-md rounded-lg border border-solid border-yellow-200 bg-yellow-50 p-8 text-left dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
190
|
-
children: [/* @__PURE__ */ i("p", {
|
|
191
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
192
|
-
children: "Bluvo configuration issue"
|
|
193
|
-
}), /* @__PURE__ */ i("p", {
|
|
194
|
-
className: "mt-2 text-sm text-yellow-700 dark:text-yellow-300",
|
|
195
|
-
children: M(L.error, "Failed to load Bluvo configuration.")
|
|
196
|
-
})]
|
|
197
|
-
})
|
|
198
|
-
})]
|
|
199
|
-
}) : L.data.enabled ? /* @__PURE__ */ i(Rt, {
|
|
200
|
-
bluvoConfig: L.data,
|
|
201
|
-
...o
|
|
202
|
-
}, `${d}:${l.id}:${o.address ?? "no-address"}`) : /* @__PURE__ */ m("div", {
|
|
203
|
-
className: "flex flex-col h-full",
|
|
204
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
205
|
-
onBack: s,
|
|
206
|
-
headerContent: `Fund via ${l.name}`,
|
|
207
|
-
headerContentAlign: "left"
|
|
208
|
-
}), /* @__PURE__ */ i("div", {
|
|
209
|
-
className: "flex flex-1 items-center justify-center py-2",
|
|
210
|
-
children: /* @__PURE__ */ m("div", {
|
|
211
|
-
className: "w-full max-w-md rounded-lg border border-solid border-yellow-200 bg-yellow-50 p-8 text-left dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
212
|
-
children: [/* @__PURE__ */ i("p", {
|
|
213
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
214
|
-
children: "Exchange disabled"
|
|
215
|
-
}), /* @__PURE__ */ i("p", {
|
|
216
|
-
className: "mt-2 text-sm text-yellow-700 dark:text-yellow-300",
|
|
217
|
-
children: "Bluvo exchange funding is currently disabled."
|
|
218
|
-
})]
|
|
219
|
-
})
|
|
220
|
-
})]
|
|
221
|
-
});
|
|
222
|
-
}, Rt = ({ bluvoConfig: o, address: d, environment: l, exchange: s, quote: c, onBack: L, onContinue: ae, onSubmitted: de }) => {
|
|
223
|
-
const g = rt(), D = At(), { setSelectedBluvoWalletId: j, setSelectedBluvoBalances: G, clearSelectedBluvoFunding: O } = xt(), [lt, h] = I(null), [nt, De] = I(null), [p, ce] = I({
|
|
224
|
-
twofa: "",
|
|
225
|
-
emailCode: "",
|
|
226
|
-
smsCode: ""
|
|
227
|
-
}), [Y, P] = I(!1), [Pe, _e] = I(!1), [re, ue] = I(!1), [me, J] = I(!1), [A, Fe] = I(!1), [fe, Ce] = I(!1), [K, ke] = I(null), [Qe, oe] = I([]), [ie, S] = I("preview"), le = Le(null), Ie = Le(null), Ve = Le(null), Se = `${s.id}:${s.logoUrl ?? ""}`, X = d ? Ft(l, s.id, d) : null, [F, ne] = I(() => et(X)), $ = T((t) => {
|
|
228
|
-
Ct(X, t), ne(t);
|
|
229
|
-
}, [X]), _ = T(() => {
|
|
230
|
-
$(null);
|
|
231
|
-
}, [$]);
|
|
232
|
-
x(() => {
|
|
233
|
-
if (F || !X) return;
|
|
234
|
-
const t = et(X);
|
|
235
|
-
t && ne(t);
|
|
236
|
-
}, [F, X]);
|
|
237
|
-
const u = {
|
|
238
|
-
data: F,
|
|
239
|
-
isLoading: !1
|
|
240
|
-
}, e = vt({
|
|
241
|
-
orgId: o.orgId,
|
|
242
|
-
listExchangesFn: (async (t) => {
|
|
243
|
-
v.console.log("[bluvo]", "listExchangesFn request", {
|
|
244
|
-
environment: l,
|
|
245
|
-
status: t
|
|
246
|
-
});
|
|
247
|
-
const r = ((await g.getBluvoExchanges({ environment: l })).exchanges ?? []).map((a) => ({
|
|
248
|
-
id: a.id,
|
|
249
|
-
name: a.name,
|
|
250
|
-
logoUrl: a.logoUrl ?? "",
|
|
251
|
-
status: a.status ?? "live"
|
|
252
|
-
}));
|
|
253
|
-
return t ? r.filter((a) => a.status === t) : r;
|
|
254
|
-
}),
|
|
255
|
-
getWalletByIdFn: (async (t) => {
|
|
256
|
-
try {
|
|
257
|
-
const r = await g.getBluvoWallet({
|
|
258
|
-
environment: l,
|
|
259
|
-
walletId: t
|
|
260
|
-
});
|
|
261
|
-
return {
|
|
262
|
-
success: !0,
|
|
263
|
-
data: {
|
|
264
|
-
id: r.wallet.id,
|
|
265
|
-
exchange: r.wallet.exchange,
|
|
266
|
-
balances: {},
|
|
267
|
-
invalidApi: r.wallet.invalidApi ?? !1,
|
|
268
|
-
lastSyncAt: r.wallet.lastSyncAt,
|
|
269
|
-
expiresAt: r.wallet.expiresAt
|
|
270
|
-
},
|
|
271
|
-
error: void 0
|
|
272
|
-
};
|
|
273
|
-
} catch (r) {
|
|
274
|
-
return v.console.error("[bluvo]", "getWalletByIdFn error", r), {
|
|
275
|
-
success: !1,
|
|
276
|
-
data: void 0,
|
|
277
|
-
error: {
|
|
278
|
-
error: M(r, "Failed to load wallet"),
|
|
279
|
-
type: "WALLET_NOT_FOUND"
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
}),
|
|
284
|
-
pingWalletByIdFn: (async (t) => {
|
|
285
|
-
try {
|
|
286
|
-
const r = await g.pingBluvoWallet({
|
|
287
|
-
environment: l,
|
|
288
|
-
walletId: t
|
|
289
|
-
});
|
|
290
|
-
return {
|
|
291
|
-
success: !0,
|
|
292
|
-
data: {
|
|
293
|
-
id: r.walletId,
|
|
294
|
-
exchange: r.exchange,
|
|
295
|
-
status: r.status,
|
|
296
|
-
success: r.success
|
|
297
|
-
},
|
|
298
|
-
error: void 0
|
|
299
|
-
};
|
|
300
|
-
} catch (r) {
|
|
301
|
-
return v.console.error("[bluvo]", "pingWalletByIdFn error", r), {
|
|
302
|
-
success: !1,
|
|
303
|
-
data: void 0,
|
|
304
|
-
error: {
|
|
305
|
-
error: M(r, "Failed to ping wallet"),
|
|
306
|
-
type: "WALLET_NOT_FOUND"
|
|
307
|
-
}
|
|
308
|
-
};
|
|
309
|
-
}
|
|
310
|
-
}),
|
|
311
|
-
fetchWithdrawableBalanceFn: (async (t, r) => {
|
|
312
|
-
try {
|
|
313
|
-
const a = await g.getBluvoWithdrawBalances({
|
|
314
|
-
environment: l,
|
|
315
|
-
walletId: t,
|
|
316
|
-
refreshThresholdMinutes: r?.refreshThresholdMinutes ?? 0,
|
|
317
|
-
autoDeleteIfInvalid: r?.autoDeleteIfInvalid
|
|
318
|
-
});
|
|
319
|
-
return {
|
|
320
|
-
success: !0,
|
|
321
|
-
data: {
|
|
322
|
-
lastSyncAt: a.lastSyncAt,
|
|
323
|
-
balances: a.balances.map((n) => ({
|
|
324
|
-
asset: n.asset,
|
|
325
|
-
amount: n.amount,
|
|
326
|
-
amountInFiat: n.amountInFiat,
|
|
327
|
-
networks: (n.networks ?? []).map((f) => ({
|
|
328
|
-
id: f.id,
|
|
329
|
-
name: f.name,
|
|
330
|
-
displayName: f.displayName,
|
|
331
|
-
minWithdrawal: f.minWithdrawal,
|
|
332
|
-
maxWithdrawal: f.maxWithdrawal,
|
|
333
|
-
assetName: f.assetName,
|
|
334
|
-
addressRegex: f.addressRegex,
|
|
335
|
-
chainId: f.chainId,
|
|
336
|
-
tokenAddress: f.tokenAddress,
|
|
337
|
-
contractAddress: f.contractAddress,
|
|
338
|
-
contractAddressVerified: f.contractAddressVerified
|
|
339
|
-
}))
|
|
340
|
-
}))
|
|
341
|
-
},
|
|
342
|
-
error: void 0
|
|
343
|
-
};
|
|
344
|
-
} catch (a) {
|
|
345
|
-
return v.console.error("[bluvo]", "fetchWithdrawableBalanceFn error", a), {
|
|
346
|
-
success: !1,
|
|
347
|
-
data: void 0,
|
|
348
|
-
error: {
|
|
349
|
-
error: M(a, "Failed to load withdrawable balances"),
|
|
350
|
-
type: "WALLET_NOT_FOUND"
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
}),
|
|
355
|
-
requestQuotationFn: (async (t, r) => {
|
|
356
|
-
if (!c?.intentId) return {
|
|
357
|
-
success: !1,
|
|
358
|
-
data: void 0,
|
|
359
|
-
error: {
|
|
360
|
-
error: "A committed intentId is required before creating a Bluvo quote.",
|
|
361
|
-
type: "UNKNOWN_ERROR"
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
try {
|
|
365
|
-
const a = await g.createBluvoWithdrawalQuote({
|
|
366
|
-
environment: l,
|
|
367
|
-
walletId: t,
|
|
368
|
-
intentId: c.intentId,
|
|
369
|
-
tag: r.tag
|
|
370
|
-
});
|
|
371
|
-
return ke({
|
|
372
|
-
asset: a.quote.asset,
|
|
373
|
-
amountNoFee: a.quote.amountNoFee,
|
|
374
|
-
destinationAddress: a.quote.destinationAddress,
|
|
375
|
-
network: a.quote.network
|
|
376
|
-
}), {
|
|
377
|
-
success: !0,
|
|
378
|
-
data: {
|
|
379
|
-
id: a.quote.id,
|
|
380
|
-
asset: a.quote.asset,
|
|
381
|
-
amountWithFee: a.quote.amountWithFee,
|
|
382
|
-
amountNoFee: a.quote.amountNoFee,
|
|
383
|
-
estimatedFee: a.quote.estimatedFee,
|
|
384
|
-
destinationAddress: a.quote.destinationAddress,
|
|
385
|
-
network: a.quote.network,
|
|
386
|
-
tag: r.tag,
|
|
387
|
-
estimatedTotal: a.quote.estimatedTotal,
|
|
388
|
-
feeDetails: a.quote.feeDetails?.map((n) => ({
|
|
389
|
-
category: n.category,
|
|
390
|
-
currency: n.currency,
|
|
391
|
-
amount: n.amount,
|
|
392
|
-
amountInFiat: n.amountInFiat,
|
|
393
|
-
fiatCurrency: n.fiatCurrency
|
|
394
|
-
})),
|
|
395
|
-
expiresAt: a.quote.expiresAt,
|
|
396
|
-
additionalInfo: {
|
|
397
|
-
minWithdrawal: a.quote.additionalInfo?.minWithdrawal ?? null,
|
|
398
|
-
maxWithdrawal: a.quote.additionalInfo?.maxWithdrawal
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
error: void 0
|
|
402
|
-
};
|
|
403
|
-
} catch (a) {
|
|
404
|
-
return v.console.error("[bluvo]", "requestQuotationFn error", a), {
|
|
405
|
-
success: !1,
|
|
406
|
-
data: void 0,
|
|
407
|
-
error: {
|
|
408
|
-
error: M(a, "Failed to create Bluvo quote"),
|
|
409
|
-
type: "UNKNOWN_ERROR"
|
|
410
|
-
}
|
|
411
|
-
};
|
|
412
|
-
}
|
|
413
|
-
}),
|
|
414
|
-
executeWithdrawalFn: (async (t, r, a, n) => {
|
|
415
|
-
v.console.log("[bluvo]", "executeWithdrawalFn request", {
|
|
416
|
-
environment: l,
|
|
417
|
-
idem: r,
|
|
418
|
-
quoteId: a,
|
|
419
|
-
hasTwofa: !!n?.twofa,
|
|
420
|
-
hasEmailCode: !!n?.emailCode,
|
|
421
|
-
hasSmsCode: !!n?.smsCode,
|
|
422
|
-
hasBizNo: !!n?.bizNo,
|
|
423
|
-
dryRun: n?.dryRun
|
|
424
|
-
});
|
|
425
|
-
try {
|
|
426
|
-
const f = await g.executeBluvoWithdrawal({
|
|
427
|
-
environment: l,
|
|
428
|
-
walletId: t,
|
|
429
|
-
quoteId: a,
|
|
430
|
-
twofa: n?.twofa,
|
|
431
|
-
emailCode: n?.emailCode,
|
|
432
|
-
smsCode: n?.smsCode,
|
|
433
|
-
bizNo: n?.bizNo,
|
|
434
|
-
tag: n?.tag,
|
|
435
|
-
dryRun: n?.dryRun
|
|
436
|
-
}), U = f.transactionId ? { transactionId: f.transactionId } : f.challenge ? {
|
|
437
|
-
bizNo: f.challenge.bizNo,
|
|
438
|
-
relation: f.challenge.relation,
|
|
439
|
-
valid2FAMethods: f.challenge.valid2faMethods ?? [],
|
|
440
|
-
steps: (f.challenge.steps ?? []).map((R) => ({
|
|
441
|
-
type: R.type,
|
|
442
|
-
status: R.status,
|
|
443
|
-
required: R.required ?? !1,
|
|
444
|
-
metadata: {
|
|
445
|
-
email: R.email,
|
|
446
|
-
emailSent: R.emailSent,
|
|
447
|
-
qrCodeUrl: R.qrCodeUrl,
|
|
448
|
-
qrCodeValidSeconds: R.qrCodeValidSeconds,
|
|
449
|
-
roamingFlowId: R.roamingFlowId
|
|
450
|
-
},
|
|
451
|
-
error: R.error
|
|
452
|
-
}))
|
|
453
|
-
} : void 0, b = {
|
|
454
|
-
success: f.success,
|
|
455
|
-
error: f.error,
|
|
456
|
-
type: f.type,
|
|
457
|
-
result: U
|
|
458
|
-
};
|
|
459
|
-
return f.success ? {
|
|
460
|
-
success: !0,
|
|
461
|
-
data: b,
|
|
462
|
-
error: void 0
|
|
463
|
-
} : {
|
|
464
|
-
success: !1,
|
|
465
|
-
data: void 0,
|
|
466
|
-
error: b
|
|
467
|
-
};
|
|
468
|
-
} catch (f) {
|
|
469
|
-
return v.console.error("[bluvo]", "executeWithdrawalFn error", f), {
|
|
470
|
-
success: !1,
|
|
471
|
-
data: void 0,
|
|
472
|
-
error: {
|
|
473
|
-
error: M(f, "Failed to submit Bluvo withdrawal"),
|
|
474
|
-
type: "UNKNOWN_ERROR"
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
}
|
|
478
|
-
}),
|
|
479
|
-
onWalletConnectedFn: (t, r) => {
|
|
480
|
-
v.console.log("[bluvo]", "onWalletConnectedFn", { connectedExchange: r });
|
|
481
|
-
},
|
|
482
|
-
options: { sandbox: l === "sandbox" }
|
|
483
|
-
}), w = qe({
|
|
484
|
-
queryKey: [
|
|
485
|
-
"bluvo-wallet-ping",
|
|
486
|
-
l,
|
|
487
|
-
u.data
|
|
488
|
-
],
|
|
489
|
-
enabled: !!u.data && !A,
|
|
490
|
-
queryFn: async () => g.pingBluvoWallet({
|
|
491
|
-
environment: l,
|
|
492
|
-
walletId: u.data
|
|
493
|
-
}),
|
|
494
|
-
retry: !1,
|
|
495
|
-
refetchInterval: Y ? Ze : !1
|
|
496
|
-
}), We = !!u.data && !me && !A && w.data?.success === !0, N = qe({
|
|
497
|
-
queryKey: [
|
|
498
|
-
"bluvo-withdrawable-balances",
|
|
499
|
-
l,
|
|
500
|
-
u.data
|
|
501
|
-
],
|
|
502
|
-
enabled: We,
|
|
503
|
-
queryFn: async () => g.getBluvoWithdrawBalances({
|
|
504
|
-
environment: l,
|
|
505
|
-
walletId: u.data,
|
|
506
|
-
refreshThresholdMinutes: 0
|
|
507
|
-
}),
|
|
508
|
-
retry: !1,
|
|
509
|
-
staleTime: 3e4
|
|
510
|
-
}), W = N.data?.balances ?? [], y = w.data?.success === !0, C = N.isSuccess, st = We && N.isLoading && !C, dt = !!c && !me && !A && !re && !!u.data && (w.isLoading || w.data?.success === !0) && !C && !N.isError, z = y && C && W.length > 0, B = Me(() => {
|
|
511
|
-
if (!c) return null;
|
|
512
|
-
const t = tt(c.originToken.symbol);
|
|
513
|
-
return W.find((r) => tt(r.asset) === t) ?? null;
|
|
514
|
-
}, [W, c]), Q = Me(() => !B || !c ? null : B.networks?.find((t) => t.chainId === c.originChain.id || xe(t.name) === xe(c.originChain.name) || xe(t.displayName) === xe(c.originChain.name)) ?? null, [B, c]), ct = K?.asset || e.quote?.asset || c?.originToken.symbol, ut = c ? St(K?.amountNoFee || e.quote?.amount, c.originAmountDisplay) : "", mt = K?.network && Q?.id === K.network ? Q.displayName || Q.name || K.network : K?.network || Q?.displayName || Q?.name || c?.originChain.name || "", ft = K?.destinationAddress || c?.originDepositAddress || "", Ue = Me(() => {
|
|
515
|
-
if (!B || !c) return !1;
|
|
516
|
-
const t = te(B.amount), r = te(c.originAmountFormatted) || te(c.originAmountDisplay);
|
|
517
|
-
return !Number.isFinite(t) || !Number.isFinite(r) ? !1 : t >= r;
|
|
518
|
-
}, [B, c]), V = Qe.length > 0 ? Qe : e.valid2FAMethods ?? [], he = c ? [
|
|
519
|
-
c.intentId ?? "",
|
|
520
|
-
c.originToken.symbol,
|
|
521
|
-
c.originChain.id,
|
|
522
|
-
c.originAmount,
|
|
523
|
-
c.originDepositAddress
|
|
524
|
-
].join(":") : null, we = !y && !Y && !e.isOAuthPending && ve(w.data?.status) ? null : lt ?? e.exchangesError?.message ?? (ot(e.error) ? null : e.error?.message) ?? ((e.hasInvalidCredentialsError || !y && Oe(w.data?.status)) && !y ? "Bluvo reported invalid API credentials for this connection." : null), $e = V.length > 0 && it(we) ? null : we, se = (u.isLoading || w.isLoading || We && N.isLoading) && !e.isOAuthPending;
|
|
525
|
-
x(() => {
|
|
526
|
-
v.console.log("[bluvo]", "flow state", {
|
|
527
|
-
state: e.state?.type,
|
|
528
|
-
isOAuthPending: e.isOAuthPending,
|
|
529
|
-
isWalletLoading: e.isWalletLoading,
|
|
530
|
-
isWalletReady: e.isWalletReady,
|
|
531
|
-
isQuoteReady: e.isQuoteReady,
|
|
532
|
-
isWithdrawing: e.isWithdrawing,
|
|
533
|
-
requires2FA: e.requires2FA,
|
|
534
|
-
requires2FAMultiStep: e.requires2FAMultiStep,
|
|
535
|
-
isReadyToConfirm: e.isReadyToConfirm,
|
|
536
|
-
isWithdrawalComplete: e.isWithdrawalComplete,
|
|
537
|
-
isWalletConnected: y,
|
|
538
|
-
isReadyToFund: z,
|
|
539
|
-
postAuthStep: ie
|
|
540
|
-
});
|
|
541
|
-
}, [
|
|
542
|
-
e.isOAuthPending,
|
|
543
|
-
e.isQuoteReady,
|
|
544
|
-
e.isReadyToConfirm,
|
|
545
|
-
e.isWalletLoading,
|
|
546
|
-
e.isWalletReady,
|
|
547
|
-
e.isWithdrawalComplete,
|
|
548
|
-
e.isWithdrawing,
|
|
549
|
-
e.requires2FA,
|
|
550
|
-
e.requires2FAMultiStep,
|
|
551
|
-
e.state?.type,
|
|
552
|
-
z,
|
|
553
|
-
y,
|
|
554
|
-
ie
|
|
555
|
-
]), x(() => {
|
|
556
|
-
A || !w.data?.success || !w.data.walletId || w.data.walletId === F || $(w.data.walletId);
|
|
557
|
-
}, [
|
|
558
|
-
F,
|
|
559
|
-
A,
|
|
560
|
-
$,
|
|
561
|
-
w.data?.success,
|
|
562
|
-
w.data?.walletId
|
|
563
|
-
]), x(() => {
|
|
564
|
-
N.isSuccess && P(!1);
|
|
565
|
-
}, [N.isSuccess]), x(() => {
|
|
566
|
-
if (!(!F || !u.data || u.data !== F)) {
|
|
567
|
-
if (ve(w.data?.status)) {
|
|
568
|
-
_();
|
|
569
|
-
return;
|
|
570
|
-
}
|
|
571
|
-
Oe(w.data?.status) && _();
|
|
572
|
-
}
|
|
573
|
-
}, [
|
|
574
|
-
F,
|
|
575
|
-
_,
|
|
576
|
-
u.data,
|
|
577
|
-
w.data?.status
|
|
578
|
-
]), x(() => {
|
|
579
|
-
!A && N.isSuccess && u.data && ne(u.data);
|
|
580
|
-
}, [
|
|
581
|
-
A,
|
|
582
|
-
u.data,
|
|
583
|
-
N.isSuccess
|
|
584
|
-
]), x(() => {
|
|
585
|
-
if (A) {
|
|
586
|
-
O();
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
if (u.data) {
|
|
590
|
-
if (ve(w.data?.status)) {
|
|
591
|
-
O();
|
|
592
|
-
return;
|
|
593
|
-
}
|
|
594
|
-
if (Oe(w.data?.status)) {
|
|
595
|
-
O();
|
|
596
|
-
return;
|
|
597
|
-
}
|
|
598
|
-
C && (j(u.data), G(W));
|
|
599
|
-
}
|
|
600
|
-
}, [
|
|
601
|
-
O,
|
|
602
|
-
W,
|
|
603
|
-
C,
|
|
604
|
-
A,
|
|
605
|
-
G,
|
|
606
|
-
j,
|
|
607
|
-
u.data,
|
|
608
|
-
w.data?.status
|
|
609
|
-
]), x(() => {
|
|
610
|
-
e.isOAuthWindowBeenClosedByTheUser && !N.isSuccess && (P(!1), h("Bluvo authorization window was closed before connection completed."));
|
|
611
|
-
}, [e.isOAuthWindowBeenClosedByTheUser, N.isSuccess]), x(() => {
|
|
612
|
-
if (!he) {
|
|
613
|
-
Ie.current = null;
|
|
614
|
-
return;
|
|
615
|
-
}
|
|
616
|
-
Ie.current !== he && (Ie.current = he, S("preview"), J(!1), ke(null), oe([]), h(null));
|
|
617
|
-
}, [he]), x(() => {
|
|
618
|
-
(e.requires2FA || e.requires2FAMultiStep) && S("verification");
|
|
619
|
-
}, [e.requires2FA, e.requires2FAMultiStep]), x(() => {
|
|
620
|
-
e.requiresValid2FAMethod && (S("verification"), e.valid2FAMethods?.length && oe(e.valid2FAMethods));
|
|
621
|
-
}, [e.requiresValid2FAMethod, e.valid2FAMethods]), x(() => {
|
|
622
|
-
e.isReadyToConfirm && S("confirm");
|
|
623
|
-
}, [e.isReadyToConfirm]), x(() => {
|
|
624
|
-
A || !u.data || !N.isSuccess || !c || e.state || e.silentResumeWithdrawalFlow({
|
|
625
|
-
exchange: s.id,
|
|
626
|
-
walletId: u.data,
|
|
627
|
-
preloadedBalances: Ne(W)
|
|
628
|
-
});
|
|
629
|
-
}, [
|
|
630
|
-
e,
|
|
631
|
-
W,
|
|
632
|
-
s.id,
|
|
633
|
-
A,
|
|
634
|
-
c,
|
|
635
|
-
u.data,
|
|
636
|
-
N.isSuccess
|
|
637
|
-
]), x(() => {
|
|
638
|
-
const t = e.withdrawal?.transactionId;
|
|
639
|
-
!e.isWithdrawalComplete || !t || le.current !== t && (le.current = t, de({ transactionId: t }));
|
|
640
|
-
}, [
|
|
641
|
-
e.isWithdrawalComplete,
|
|
642
|
-
e.withdrawal,
|
|
643
|
-
de
|
|
644
|
-
]);
|
|
645
|
-
const ze = T(async (t) => {
|
|
646
|
-
const r = Date.now() + Nt;
|
|
647
|
-
let a = null;
|
|
648
|
-
for (; Date.now() < r; ) {
|
|
649
|
-
try {
|
|
650
|
-
const n = await g.pingBluvoWallet({
|
|
651
|
-
environment: l,
|
|
652
|
-
walletId: t
|
|
653
|
-
});
|
|
654
|
-
if (n.success) return await g.getBluvoWithdrawBalances({
|
|
655
|
-
environment: l,
|
|
656
|
-
walletId: t,
|
|
657
|
-
refreshThresholdMinutes: 0
|
|
658
|
-
});
|
|
659
|
-
a = new Error(n.status || "Bluvo wallet is not connected yet.");
|
|
660
|
-
} catch (n) {
|
|
661
|
-
if (a = n, !at(n)) throw n;
|
|
662
|
-
}
|
|
663
|
-
await new Promise((n) => window.setTimeout(n, Ze));
|
|
664
|
-
}
|
|
665
|
-
throw a ?? /* @__PURE__ */ new Error("Timed out waiting for Bluvo withdrawable balances.");
|
|
666
|
-
}, [l, g]), je = T(async (t, r) => {
|
|
667
|
-
const a = r.balances ?? [];
|
|
668
|
-
D.setQueryData([
|
|
669
|
-
"bluvo-withdrawable-balances",
|
|
670
|
-
l,
|
|
671
|
-
t
|
|
672
|
-
], r), $(t), j(t), G(a), Fe(!1), ue(!1), J(!1), h(null), await e.silentResumeWithdrawalFlow({
|
|
673
|
-
exchange: s.id,
|
|
674
|
-
walletId: t,
|
|
675
|
-
preloadedBalances: Ne(a)
|
|
676
|
-
}), a.length > 0 && ae();
|
|
677
|
-
}, [
|
|
678
|
-
e,
|
|
679
|
-
l,
|
|
680
|
-
s.id,
|
|
681
|
-
ae,
|
|
682
|
-
$,
|
|
683
|
-
D,
|
|
684
|
-
G,
|
|
685
|
-
j
|
|
686
|
-
]), k = T(async () => {
|
|
687
|
-
e.cancel(), le.current = null, ne(null), _(), O(), ue(!0), S("preview"), h("Exchange authorization needs to be refreshed. Please reconnect.");
|
|
688
|
-
}, [
|
|
689
|
-
e,
|
|
690
|
-
_,
|
|
691
|
-
O
|
|
692
|
-
]), Be = T((t) => {
|
|
693
|
-
e.cancel(), le.current = null, ne(null), ke(null), oe([]), ce({
|
|
694
|
-
twofa: "",
|
|
695
|
-
emailCode: "",
|
|
696
|
-
smsCode: ""
|
|
697
|
-
}), _(), O(), D.removeQueries({ queryKey: [
|
|
698
|
-
"bluvo-wallet-id",
|
|
699
|
-
l,
|
|
700
|
-
s.id,
|
|
701
|
-
d
|
|
702
|
-
] }), D.removeQueries({ queryKey: ["bluvo-wallet-ping", l] }), D.removeQueries({ queryKey: ["bluvo-withdrawable-balances", l] }), Fe(t === "manual-reconnect"), ue(!1), S("preview"), h(null);
|
|
703
|
-
}, [
|
|
704
|
-
e,
|
|
705
|
-
_,
|
|
706
|
-
O,
|
|
707
|
-
l,
|
|
708
|
-
s.id,
|
|
709
|
-
d,
|
|
710
|
-
D
|
|
711
|
-
]), ye = T(async (t = !1) => {
|
|
712
|
-
if (!d) {
|
|
713
|
-
h("Connect a wallet before linking an exchange");
|
|
714
|
-
return;
|
|
715
|
-
}
|
|
716
|
-
h(null), ue(!1);
|
|
717
|
-
const r = t || A;
|
|
718
|
-
let a = null;
|
|
719
|
-
try {
|
|
720
|
-
if (r && (e.cancel(), O(), _(), S("preview")), !r && y) {
|
|
721
|
-
if (!u.data) {
|
|
722
|
-
h("Resetting connection. Try again.");
|
|
723
|
-
return;
|
|
724
|
-
}
|
|
725
|
-
v.console.log("[bluvo]", "reusing connected wallet", { exchangeId: s.id }), await e.silentResumeWithdrawalFlow({
|
|
726
|
-
exchange: s.id,
|
|
727
|
-
walletId: u.data,
|
|
728
|
-
preloadedBalances: Ne(W)
|
|
729
|
-
});
|
|
730
|
-
return;
|
|
731
|
-
}
|
|
732
|
-
const n = r || ve(w.data?.status) || !F ? kt(l, s.id) : F;
|
|
733
|
-
$(n), Fe(!0), P(!0);
|
|
734
|
-
const f = `${s.name} OAuth`, U = 500, b = 600, R = `width=${U},height=${b},left=${window.screenLeft + (window.screen.width - U) / 2},top=${window.screenTop + (window.screen.height - b) / 2},status=yes,scrollbars=yes,resizable=yes`;
|
|
735
|
-
if (a = window.open("about:blank", f, R), !a || a.closed || typeof a.closed > "u") {
|
|
736
|
-
P(!1), h("Failed to open OAuth popup. Please allow pop-ups for this site.");
|
|
737
|
-
return;
|
|
738
|
-
}
|
|
739
|
-
try {
|
|
740
|
-
a.document.open(), a.document.write(Bt(f)), a.document.close(), a.focus();
|
|
741
|
-
} catch (E) {
|
|
742
|
-
try {
|
|
743
|
-
a.close();
|
|
744
|
-
} catch {
|
|
745
|
-
}
|
|
746
|
-
P(!1), h(M(E, "Failed to initialize OAuth popup."));
|
|
747
|
-
return;
|
|
748
|
-
}
|
|
749
|
-
const He = await g.getBluvoOAuthURL({
|
|
750
|
-
environment: l,
|
|
751
|
-
exchangeId: s.id,
|
|
752
|
-
userAddress: d,
|
|
753
|
-
walletId: n
|
|
754
|
-
});
|
|
755
|
-
if (a.closed) {
|
|
756
|
-
P(!1);
|
|
757
|
-
return;
|
|
758
|
-
}
|
|
759
|
-
const Ye = a, Je = He.walletId;
|
|
760
|
-
Ye.location.href = He.url;
|
|
761
|
-
const Xe = window.setInterval(async () => {
|
|
762
|
-
try {
|
|
763
|
-
if (Ye.closed) {
|
|
764
|
-
window.clearInterval(Xe), P(!1);
|
|
765
|
-
const E = await ze(Je);
|
|
766
|
-
E.balances?.length || E.lastSyncAt ? await je(Je, E) : h("Bluvo authorization window was closed before connection completed.");
|
|
767
|
-
return;
|
|
768
|
-
}
|
|
769
|
-
} catch (E) {
|
|
770
|
-
if (E?.name === "SecurityError" || E instanceof DOMException && E.code === 18) return;
|
|
771
|
-
window.clearInterval(Xe), P(!1), h(at(E) ? "Bluvo is still provisioning the connected wallet. Please try connecting again in a moment." : M(E, "Failed to confirm Bluvo connection."));
|
|
772
|
-
}
|
|
773
|
-
}, 500);
|
|
774
|
-
} catch (n) {
|
|
775
|
-
try {
|
|
776
|
-
a?.close();
|
|
777
|
-
} catch {
|
|
778
|
-
}
|
|
779
|
-
v.console.error("[bluvo]", "start authorization error", n), h(M(n, "Failed to start Bluvo authorization")), P(!1);
|
|
780
|
-
}
|
|
781
|
-
}, [
|
|
782
|
-
d,
|
|
783
|
-
e,
|
|
784
|
-
_,
|
|
785
|
-
O,
|
|
786
|
-
W,
|
|
787
|
-
l,
|
|
788
|
-
s.id,
|
|
789
|
-
s.name,
|
|
790
|
-
je,
|
|
791
|
-
A,
|
|
792
|
-
y,
|
|
793
|
-
g,
|
|
794
|
-
F,
|
|
795
|
-
$,
|
|
796
|
-
u.data,
|
|
797
|
-
w.data?.status,
|
|
798
|
-
ze
|
|
799
|
-
]), Re = T(async () => {
|
|
800
|
-
if (!d) {
|
|
801
|
-
h("Connect a wallet before linking an exchange");
|
|
802
|
-
return;
|
|
803
|
-
}
|
|
804
|
-
Ce(!0), h(null);
|
|
805
|
-
const t = w.data?.walletId ?? u.data ?? F;
|
|
806
|
-
if (!t) {
|
|
807
|
-
Be("manual-reconnect"), J(!0), Ce(!1), await ye(!0);
|
|
808
|
-
return;
|
|
809
|
-
}
|
|
810
|
-
try {
|
|
811
|
-
await g.deleteBluvoWallet({
|
|
812
|
-
environment: l,
|
|
813
|
-
walletId: t
|
|
814
|
-
});
|
|
815
|
-
} catch (r) {
|
|
816
|
-
v.console.error("[bluvo]", "deleteBluvoWallet during reconnect error", r);
|
|
817
|
-
} finally {
|
|
818
|
-
Be("manual-reconnect"), J(!0), Ce(!1);
|
|
819
|
-
}
|
|
820
|
-
}, [
|
|
821
|
-
d,
|
|
822
|
-
F,
|
|
823
|
-
l,
|
|
824
|
-
ye,
|
|
825
|
-
g,
|
|
826
|
-
Be,
|
|
827
|
-
u.data,
|
|
828
|
-
w.data?.walletId
|
|
829
|
-
]), ht = T(async () => {
|
|
830
|
-
if (!u.data) {
|
|
831
|
-
h("Resetting connection. Try again.");
|
|
832
|
-
return;
|
|
833
|
-
}
|
|
834
|
-
if (!y) {
|
|
835
|
-
h("Connect your exchange before continuing.");
|
|
836
|
-
return;
|
|
837
|
-
}
|
|
838
|
-
J(!1), h(null);
|
|
839
|
-
let t = W;
|
|
840
|
-
if (!c) {
|
|
841
|
-
if (!C) {
|
|
842
|
-
const r = await g.getBluvoWithdrawBalances({
|
|
843
|
-
environment: l,
|
|
844
|
-
walletId: u.data,
|
|
845
|
-
refreshThresholdMinutes: 0
|
|
846
|
-
});
|
|
847
|
-
t = r.balances ?? [], D.setQueryData([
|
|
848
|
-
"bluvo-withdrawable-balances",
|
|
849
|
-
l,
|
|
850
|
-
u.data
|
|
851
|
-
], r), j(u.data), G(t);
|
|
852
|
-
}
|
|
853
|
-
ae();
|
|
854
|
-
return;
|
|
855
|
-
}
|
|
856
|
-
if (!C) {
|
|
857
|
-
const r = await g.getBluvoWithdrawBalances({
|
|
858
|
-
environment: l,
|
|
859
|
-
walletId: u.data,
|
|
860
|
-
refreshThresholdMinutes: 0
|
|
861
|
-
});
|
|
862
|
-
t = r.balances ?? [], D.setQueryData([
|
|
863
|
-
"bluvo-withdrawable-balances",
|
|
864
|
-
l,
|
|
865
|
-
u.data
|
|
866
|
-
], r);
|
|
867
|
-
}
|
|
868
|
-
if (t.length === 0) {
|
|
869
|
-
h(`Your ${s.name.toLowerCase()} account is connected but no withdrawable assets are available yet.`);
|
|
870
|
-
return;
|
|
871
|
-
}
|
|
872
|
-
j(u.data), G(t), await e.silentResumeWithdrawalFlow({
|
|
873
|
-
exchange: s.id,
|
|
874
|
-
walletId: u.data,
|
|
875
|
-
preloadedBalances: Ne(t)
|
|
876
|
-
}), ae();
|
|
877
|
-
}, [
|
|
878
|
-
e,
|
|
879
|
-
W,
|
|
880
|
-
s.id,
|
|
881
|
-
s.name,
|
|
882
|
-
l,
|
|
883
|
-
C,
|
|
884
|
-
y,
|
|
885
|
-
ae,
|
|
886
|
-
g,
|
|
887
|
-
D,
|
|
888
|
-
c,
|
|
889
|
-
G,
|
|
890
|
-
j,
|
|
891
|
-
u.data
|
|
892
|
-
]), Ee = T(async (t) => {
|
|
893
|
-
if (!u.data) {
|
|
894
|
-
h("Resetting connection. Try again.");
|
|
895
|
-
return;
|
|
896
|
-
}
|
|
897
|
-
const r = e.quote?.id;
|
|
898
|
-
if (!r) {
|
|
899
|
-
h("Bluvo quote is not ready. Refresh the quote and try again.");
|
|
900
|
-
return;
|
|
901
|
-
}
|
|
902
|
-
const a = t === "TOTP" ? {
|
|
903
|
-
environment: l,
|
|
904
|
-
walletId: u.data,
|
|
905
|
-
quoteId: r,
|
|
906
|
-
twofa: p.twofa.trim()
|
|
907
|
-
} : {
|
|
908
|
-
environment: l,
|
|
909
|
-
walletId: u.data,
|
|
910
|
-
quoteId: r,
|
|
911
|
-
smsCode: p.smsCode.trim()
|
|
912
|
-
};
|
|
913
|
-
_e(!0);
|
|
914
|
-
try {
|
|
915
|
-
const n = await g.executeBluvoWithdrawal(a);
|
|
916
|
-
if (q(n)) {
|
|
917
|
-
await k();
|
|
918
|
-
return;
|
|
919
|
-
}
|
|
920
|
-
if (Wt(n)) {
|
|
921
|
-
oe(n.challenge?.valid2faMethods ?? []), S("verification"), h(Ae(n.error, n.type) || "Please use one of the supported 2FA methods.");
|
|
922
|
-
return;
|
|
923
|
-
}
|
|
924
|
-
if (n.success && n.transactionId) {
|
|
925
|
-
le.current = n.transactionId, de({ transactionId: n.transactionId });
|
|
926
|
-
return;
|
|
927
|
-
}
|
|
928
|
-
h(Ae(n.error, n.type) || "Failed to submit Bluvo verification code.");
|
|
929
|
-
} finally {
|
|
930
|
-
_e(!1);
|
|
931
|
-
}
|
|
932
|
-
}, [
|
|
933
|
-
e.quote?.id,
|
|
934
|
-
l,
|
|
935
|
-
k,
|
|
936
|
-
de,
|
|
937
|
-
g,
|
|
938
|
-
p.smsCode,
|
|
939
|
-
p.twofa,
|
|
940
|
-
u.data
|
|
941
|
-
]), wt = T(async () => {
|
|
942
|
-
h(null);
|
|
943
|
-
try {
|
|
944
|
-
if (!c) return;
|
|
945
|
-
if (e.requires2FAMultiStep) {
|
|
946
|
-
const a = e.multiStep2FASteps.filter((b) => b.status !== "success"), n = a.some((b) => [
|
|
947
|
-
"GOOGLE",
|
|
948
|
-
"EMAIL",
|
|
949
|
-
"SMS"
|
|
950
|
-
].includes(b.type)), f = a.some((b) => ["FACE", "ROAMING_FIDO"].includes(b.type));
|
|
951
|
-
let U = !1;
|
|
952
|
-
for (const b of a) {
|
|
953
|
-
if (b.type === "GOOGLE" && p.twofa && (U = !0, q(await e.submit2FAMultiStep("GOOGLE", p.twofa)))) {
|
|
954
|
-
await k();
|
|
955
|
-
return;
|
|
956
|
-
}
|
|
957
|
-
if (b.type === "EMAIL" && p.emailCode && (U = !0, q(await e.submit2FAMultiStep("EMAIL", p.emailCode)))) {
|
|
958
|
-
await k();
|
|
959
|
-
return;
|
|
960
|
-
}
|
|
961
|
-
if (b.type === "SMS" && p.smsCode && (U = !0, q(await e.submit2FAMultiStep("SMS", p.smsCode)))) {
|
|
962
|
-
await k();
|
|
963
|
-
return;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
if (n && !U) {
|
|
967
|
-
h("Enter the required Bluvo verification code to continue.");
|
|
968
|
-
return;
|
|
969
|
-
}
|
|
970
|
-
f && h(a.some((b) => b.type === "FACE") ? "Complete the face verification in your exchange app. We're checking for completion automatically." : "Complete the security verification in your exchange app. We're checking for completion automatically.");
|
|
971
|
-
return;
|
|
972
|
-
}
|
|
973
|
-
if (e.isReadyToConfirm) {
|
|
974
|
-
q(await e.confirmWithdrawal()) && await k();
|
|
975
|
-
return;
|
|
976
|
-
}
|
|
977
|
-
if (e.requiresValid2FAMethod || V.length > 0) {
|
|
978
|
-
if (V.includes("TOTP") && p.twofa.trim()) {
|
|
979
|
-
await Ee("TOTP");
|
|
980
|
-
return;
|
|
981
|
-
}
|
|
982
|
-
if (V.includes("SMS") && p.smsCode.trim()) {
|
|
983
|
-
await Ee("SMS");
|
|
984
|
-
return;
|
|
985
|
-
}
|
|
986
|
-
h("Enter a supported Bluvo verification code to continue.");
|
|
987
|
-
return;
|
|
988
|
-
}
|
|
989
|
-
if (e.requiresSMS) {
|
|
990
|
-
const a = p.smsCode.trim();
|
|
991
|
-
if (!a) {
|
|
992
|
-
h("Enter the SMS verification code to continue.");
|
|
993
|
-
return;
|
|
994
|
-
}
|
|
995
|
-
q(await e.submitSMS(a)) && await k();
|
|
996
|
-
return;
|
|
997
|
-
}
|
|
998
|
-
if (e.requires2FA) {
|
|
999
|
-
q(await e.submit2FA(p.twofa)) && await k();
|
|
1000
|
-
return;
|
|
1001
|
-
}
|
|
1002
|
-
let t = e.quote?.id;
|
|
1003
|
-
if (e.isQuoteExpired) {
|
|
1004
|
-
h("The Bluvo quote expired. Refresh the quote before continuing.");
|
|
1005
|
-
return;
|
|
1006
|
-
}
|
|
1007
|
-
if (!t) {
|
|
1008
|
-
const a = It(c);
|
|
1009
|
-
v.console.log("[bluvo]", "requestQuote normalized amount", {
|
|
1010
|
-
asset: c.originToken.symbol,
|
|
1011
|
-
rawAmount: c.originAmount,
|
|
1012
|
-
displayAmount: c.originAmountFormatted || c.originAmountDisplay,
|
|
1013
|
-
amountSent: a
|
|
1014
|
-
});
|
|
1015
|
-
const n = await e.requestQuote({
|
|
1016
|
-
asset: c.originToken.symbol,
|
|
1017
|
-
amount: a,
|
|
1018
|
-
destinationAddress: c.originDepositAddress,
|
|
1019
|
-
network: Q?.id,
|
|
1020
|
-
includeFee: !0
|
|
1021
|
-
});
|
|
1022
|
-
if (!n.success || !n.quoteData?.id) {
|
|
1023
|
-
h(Ae(n.error) || "Failed to create Bluvo withdrawal quote");
|
|
1024
|
-
return;
|
|
1025
|
-
}
|
|
1026
|
-
t = n.quoteData.id;
|
|
1027
|
-
}
|
|
1028
|
-
if (!t) {
|
|
1029
|
-
h("Failed to resolve Bluvo quote");
|
|
1030
|
-
return;
|
|
1031
|
-
}
|
|
1032
|
-
const r = await e.executeWithdrawal(t);
|
|
1033
|
-
if (q(r)) {
|
|
1034
|
-
await k();
|
|
1035
|
-
return;
|
|
1036
|
-
}
|
|
1037
|
-
if (r?.type === "WITHDRAWAL_2FA_METHOD_NOT_SUPPORTED") {
|
|
1038
|
-
oe(r?.result?.result?.valid2FAMethods ?? r?.result?.valid2FAMethods ?? []), S("verification");
|
|
1039
|
-
return;
|
|
1040
|
-
}
|
|
1041
|
-
if (e.requires2FA || e.requires2FAMultiStep || e.requiresValid2FAMethod) {
|
|
1042
|
-
S("verification");
|
|
1043
|
-
return;
|
|
1044
|
-
}
|
|
1045
|
-
e.isReadyToConfirm && S("confirm");
|
|
1046
|
-
} catch (t) {
|
|
1047
|
-
v.console.error("[bluvo]", "withdrawal submission failed", t), h(Ae(M(t, "Failed to continue the Bluvo withdrawal flow")) || "Failed to continue the Bluvo withdrawal flow");
|
|
1048
|
-
}
|
|
1049
|
-
}, [
|
|
1050
|
-
e,
|
|
1051
|
-
V,
|
|
1052
|
-
k,
|
|
1053
|
-
Ee,
|
|
1054
|
-
Q?.id,
|
|
1055
|
-
c,
|
|
1056
|
-
p.emailCode,
|
|
1057
|
-
p.smsCode,
|
|
1058
|
-
p.twofa
|
|
1059
|
-
]), Ge = s.logoUrl && nt !== Se, Z = e.multiStep2FASteps.filter((t) => t.status !== "success"), yt = Z.some((t) => t.type === "EMAIL"), gt = Z.some((t) => t.type === "SMS") || e.requiresSMS, ge = Z.some((t) => t.type === "FACE"), pe = Z.some((t) => t.type === "ROAMING_FIDO"), Te = e.requires2FA || Z.some((t) => t.type === "GOOGLE") || V.includes("TOTP"), Ke = Z.filter((t) => ![
|
|
1060
|
-
"EMAIL",
|
|
1061
|
-
"SMS",
|
|
1062
|
-
"GOOGLE",
|
|
1063
|
-
"FACE",
|
|
1064
|
-
"ROAMING_FIDO"
|
|
1065
|
-
].includes(t.type)), be = ie === "verification" && (e.requires2FA || e.requiresSMS || e.requires2FAMultiStep || e.requiresValid2FAMethod || V.length > 0);
|
|
1066
|
-
let H = "Submit Withdrawal";
|
|
1067
|
-
return ie === "preview" && (H = "Continue"), be && (H = "Verify and Continue"), e.isReadyToConfirm && (H = "Confirm Withdrawal"), e.isQuoteExpired && (H = "Refresh Quote"), e.isWithdrawing && (H = "Submitting withdrawal..."), Pe && (H = "Verifying..."), x(() => {
|
|
1068
|
-
!be || !Te || Ve.current?.focus();
|
|
1069
|
-
}, [Te, be]), x(() => {
|
|
1070
|
-
if (!e.requires2FAMultiStep || !ge && !pe) return;
|
|
1071
|
-
let t = !1, r = !1;
|
|
1072
|
-
const a = async () => {
|
|
1073
|
-
if (!(t || r)) {
|
|
1074
|
-
r = !0;
|
|
1075
|
-
try {
|
|
1076
|
-
if (ge && q(await e.pollFaceVerification())) {
|
|
1077
|
-
await k();
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1080
|
-
pe && q(await e.pollRoamingFidoVerification()) && await k();
|
|
1081
|
-
} catch (f) {
|
|
1082
|
-
v.console.warn("[bluvo]", "verification poll failed", f);
|
|
1083
|
-
} finally {
|
|
1084
|
-
r = !1;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
|
-
a();
|
|
1089
|
-
const n = window.setInterval(() => {
|
|
1090
|
-
a();
|
|
1091
|
-
}, 4e3);
|
|
1092
|
-
return () => {
|
|
1093
|
-
t = !0, window.clearInterval(n);
|
|
1094
|
-
};
|
|
1095
|
-
}, [
|
|
1096
|
-
e,
|
|
1097
|
-
k,
|
|
1098
|
-
ge,
|
|
1099
|
-
pe
|
|
1100
|
-
]), dt || y && st ? /* @__PURE__ */ m("div", {
|
|
1101
|
-
className: "flex flex-col h-full",
|
|
1102
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
1103
|
-
onBack: L,
|
|
1104
|
-
headerContent: `Fund via ${s.name}`,
|
|
1105
|
-
headerContentAlign: "left"
|
|
1106
|
-
}), /* @__PURE__ */ i("div", {
|
|
1107
|
-
className: "flex flex-1 items-center justify-center py-2",
|
|
1108
|
-
children: /* @__PURE__ */ m("div", {
|
|
1109
|
-
className: "flex w-full max-w-md flex-1 flex-col items-center justify-center rounded-2xl border border-solid border-gray-200 bg-transparent p-6 text-center dark:border-gray-700",
|
|
1110
|
-
children: [
|
|
1111
|
-
/* @__PURE__ */ i(bt, { className: "h-8 w-8" }),
|
|
1112
|
-
/* @__PURE__ */ i("div", {
|
|
1113
|
-
className: "mt-4 text-sm font-medium text-gray-900 dark:text-white",
|
|
1114
|
-
children: "Checking exchange connection..."
|
|
1115
|
-
}),
|
|
1116
|
-
/* @__PURE__ */ i("div", {
|
|
1117
|
-
className: "mt-2 text-sm text-gray-500 dark:text-gray-400",
|
|
1118
|
-
children: "This may take a moment while we verify your exchange account."
|
|
1119
|
-
})
|
|
1120
|
-
]
|
|
1121
|
-
})
|
|
1122
|
-
})]
|
|
1123
|
-
}) : !c || me ? /* @__PURE__ */ m("div", {
|
|
1124
|
-
className: "flex flex-col h-full",
|
|
1125
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
1126
|
-
onBack: me && c ? () => J(!1) : L,
|
|
1127
|
-
headerContent: `Fund via ${s.name}`,
|
|
1128
|
-
headerContentAlign: "left"
|
|
1129
|
-
}), /* @__PURE__ */ i("div", {
|
|
1130
|
-
className: "flex flex-1 items-center justify-center py-2",
|
|
1131
|
-
children: /* @__PURE__ */ m("div", {
|
|
1132
|
-
className: "flex w-full max-w-md flex-1 flex-col justify-between rounded-2xl border border-solid border-gray-200 bg-transparent p-6 dark:border-gray-700",
|
|
1133
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1134
|
-
className: "flex flex-1 flex-col items-center justify-center text-center",
|
|
1135
|
-
children: [
|
|
1136
|
-
/* @__PURE__ */ i("div", {
|
|
1137
|
-
className: "mb-5 flex h-14 w-14 items-center justify-center overflow-hidden rounded-full border border-solid border-gray-200 bg-white shadow-sm dark:border-gray-700 dark:bg-gray-950",
|
|
1138
|
-
children: Ge ? /* @__PURE__ */ i("img", {
|
|
1139
|
-
src: s.logoUrl,
|
|
1140
|
-
alt: s.name,
|
|
1141
|
-
className: "h-10 w-10 object-contain",
|
|
1142
|
-
onError: () => De(Se)
|
|
1143
|
-
}) : /* @__PURE__ */ i("span", {
|
|
1144
|
-
className: "text-base font-semibold text-gray-700 dark:text-gray-200",
|
|
1145
|
-
children: s.name.slice(0, 1)
|
|
1146
|
-
})
|
|
1147
|
-
}),
|
|
1148
|
-
/* @__PURE__ */ m("div", {
|
|
1149
|
-
className: "space-y-3",
|
|
1150
|
-
children: [/* @__PURE__ */ i("h3", {
|
|
1151
|
-
className: "max-w-[320px] text-xl font-semibold text-gray-900 dark:text-white",
|
|
1152
|
-
children: y ? `${s.name} connected` : `Connect ${s.name} account`
|
|
1153
|
-
}), /* @__PURE__ */ i("p", {
|
|
1154
|
-
className: "text-sm text-gray-500 dark:text-gray-400",
|
|
1155
|
-
children: y ? !C || z ? `Your ${s.name.toLowerCase()} account is linked. Continue to the fund form to choose the asset and amount.` : `Your ${s.name.toLowerCase()} account is linked, but Bluvo has not returned any withdrawable assets for it yet.` : `Sign in to ${s.name.toLowerCase()} to link your account before continuing.`
|
|
1156
|
-
})]
|
|
1157
|
-
}),
|
|
1158
|
-
se ? /* @__PURE__ */ i("div", {
|
|
1159
|
-
className: "mt-5 w-full rounded-lg border border-solid border-gray-200 bg-gray-50 px-4 py-3 text-sm text-gray-600 dark:border-gray-700 dark:bg-gray-800/70 dark:text-gray-300",
|
|
1160
|
-
children: /* @__PURE__ */ m("div", {
|
|
1161
|
-
className: "flex items-center justify-center gap-2",
|
|
1162
|
-
children: [/* @__PURE__ */ i("div", { className: "h-4 w-4 animate-spin rounded-full border-2 border-solid border-blue-500 border-t-transparent" }), /* @__PURE__ */ i("span", { children: "Checking exchange connection..." })]
|
|
1163
|
-
})
|
|
1164
|
-
}) : null,
|
|
1165
|
-
!se && y && C && !z ? /* @__PURE__ */ m("div", {
|
|
1166
|
-
className: "mt-5 w-full rounded-lg border border-solid border-yellow-200 bg-yellow-50 px-4 py-3 text-left dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
1167
|
-
children: [/* @__PURE__ */ i("p", {
|
|
1168
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
1169
|
-
children: "Connected but not ready to fund"
|
|
1170
|
-
}), /* @__PURE__ */ i("p", {
|
|
1171
|
-
className: "mt-2 text-sm text-yellow-700 dark:text-yellow-300",
|
|
1172
|
-
children: "Bluvo connected the exchange wallet, but no withdrawable assets are available yet."
|
|
1173
|
-
})]
|
|
1174
|
-
}) : null,
|
|
1175
|
-
!se && we ? /* @__PURE__ */ m("div", {
|
|
1176
|
-
className: "mt-5 w-full rounded-lg border border-solid border-yellow-200 bg-yellow-50 px-4 py-3 text-left dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
1177
|
-
children: [/* @__PURE__ */ i("p", {
|
|
1178
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
1179
|
-
children: "Bluvo connection issue"
|
|
1180
|
-
}), /* @__PURE__ */ i("p", {
|
|
1181
|
-
className: "mt-2 text-sm text-yellow-700 dark:text-yellow-300",
|
|
1182
|
-
children: we
|
|
1183
|
-
})]
|
|
1184
|
-
}) : null
|
|
1185
|
-
]
|
|
1186
|
-
}), /* @__PURE__ */ i("div", {
|
|
1187
|
-
className: "mt-6 flex justify-center",
|
|
1188
|
-
children: /* @__PURE__ */ i("button", {
|
|
1189
|
-
type: "button",
|
|
1190
|
-
onClick: y ? !C || z ? () => {
|
|
1191
|
-
ht();
|
|
1192
|
-
} : () => {
|
|
1193
|
-
Re();
|
|
1194
|
-
} : () => {
|
|
1195
|
-
ye(A);
|
|
1196
|
-
},
|
|
1197
|
-
disabled: se || fe || Y || e.isOAuthPending || u.isLoading || e.isWalletLoading,
|
|
1198
|
-
className: "min-w-[220px] cursor-pointer rounded-full bg-blue-600 px-7 py-3 text-base font-semibold text-white transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1199
|
-
children: se ? "Checking connection..." : fe ? "Resetting exchange..." : Y || e.isOAuthPending ? "Waiting for exchange authorization..." : y ? !C || z ? "Continue" : "Reconnect Exchange" : "Connect Exchange"
|
|
1200
|
-
})
|
|
1201
|
-
})]
|
|
1202
|
-
})
|
|
1203
|
-
})]
|
|
1204
|
-
}) : /* @__PURE__ */ m("div", {
|
|
1205
|
-
className: "flex flex-col h-full",
|
|
1206
|
-
children: [/* @__PURE__ */ i(ee, {
|
|
1207
|
-
onBack: L,
|
|
1208
|
-
headerContent: `Fund via ${s.name}`,
|
|
1209
|
-
headerContentAlign: "left"
|
|
1210
|
-
}), /* @__PURE__ */ i("div", {
|
|
1211
|
-
className: "flex-1 overflow-y-auto",
|
|
1212
|
-
children: /* @__PURE__ */ m("div", {
|
|
1213
|
-
className: "space-y-4 pt-2",
|
|
1214
|
-
children: [
|
|
1215
|
-
/* @__PURE__ */ m("div", {
|
|
1216
|
-
className: "rounded-xl border border-solid border-gray-200 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-900/40",
|
|
1217
|
-
children: [/* @__PURE__ */ m("div", {
|
|
1218
|
-
className: "flex items-center gap-3",
|
|
1219
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1220
|
-
className: "h-11 w-11 overflow-hidden rounded-full bg-white shadow-sm dark:bg-gray-950",
|
|
1221
|
-
children: Ge ? /* @__PURE__ */ i("img", {
|
|
1222
|
-
src: s.logoUrl,
|
|
1223
|
-
alt: s.name,
|
|
1224
|
-
className: "h-full w-full object-contain",
|
|
1225
|
-
onError: () => De(Se)
|
|
1226
|
-
}) : /* @__PURE__ */ i("div", {
|
|
1227
|
-
className: "flex h-full w-full items-center justify-center text-sm font-semibold",
|
|
1228
|
-
children: s.name.slice(0, 1)
|
|
1229
|
-
})
|
|
1230
|
-
}), /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ i("div", {
|
|
1231
|
-
className: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1232
|
-
children: s.name
|
|
1233
|
-
}), /* @__PURE__ */ i("div", {
|
|
1234
|
-
className: "text-xs text-gray-500 dark:text-gray-400",
|
|
1235
|
-
children: y ? !C || z ? "Exchange linked" : "Exchange linked, no withdrawable assets available" : "Link your exchange account to continue"
|
|
1236
|
-
})] })]
|
|
1237
|
-
}), !y || !z || re ? /* @__PURE__ */ i("div", {
|
|
1238
|
-
className: "mt-4",
|
|
1239
|
-
children: /* @__PURE__ */ i("button", {
|
|
1240
|
-
type: "button",
|
|
1241
|
-
onClick: () => re || y ? void Re() : void ye(A),
|
|
1242
|
-
disabled: fe || Y || e.isOAuthPending || u.isLoading || e.isWalletLoading,
|
|
1243
|
-
className: "w-full cursor-pointer rounded-xl bg-blue-600 px-4 py-3 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
1244
|
-
children: e.isOAuthPending ? "Waiting for exchange authorization..." : fe ? "Resetting exchange..." : Y ? "Waiting for exchange authorization..." : y || re ? "Reconnect Exchange" : "Connect Exchange"
|
|
1245
|
-
})
|
|
1246
|
-
}) : null]
|
|
1247
|
-
}),
|
|
1248
|
-
/* @__PURE__ */ m("div", {
|
|
1249
|
-
className: "rounded-xl border border-solid border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900/40",
|
|
1250
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1251
|
-
className: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1252
|
-
children: "Withdrawal Route"
|
|
1253
|
-
}), /* @__PURE__ */ m("div", {
|
|
1254
|
-
className: "mt-3 space-y-2 text-sm text-gray-600 dark:text-gray-300",
|
|
1255
|
-
children: [
|
|
1256
|
-
/* @__PURE__ */ m("div", { children: [
|
|
1257
|
-
"Asset:",
|
|
1258
|
-
" ",
|
|
1259
|
-
/* @__PURE__ */ i("span", {
|
|
1260
|
-
className: "font-semibold text-gray-900 dark:text-white",
|
|
1261
|
-
children: ct
|
|
1262
|
-
}),
|
|
1263
|
-
" ",
|
|
1264
|
-
"on ",
|
|
1265
|
-
mt
|
|
1266
|
-
] }),
|
|
1267
|
-
/* @__PURE__ */ m("div", { children: [
|
|
1268
|
-
"Amount:",
|
|
1269
|
-
" ",
|
|
1270
|
-
/* @__PURE__ */ i("span", {
|
|
1271
|
-
className: "font-semibold text-gray-900 dark:text-white",
|
|
1272
|
-
children: ut
|
|
1273
|
-
})
|
|
1274
|
-
] }),
|
|
1275
|
-
/* @__PURE__ */ m("div", {
|
|
1276
|
-
className: "break-all",
|
|
1277
|
-
children: ["Deposit address: ", ft]
|
|
1278
|
-
})
|
|
1279
|
-
]
|
|
1280
|
-
})]
|
|
1281
|
-
}),
|
|
1282
|
-
(u.isLoading || w.isLoading || N.isLoading) && !y ? /* @__PURE__ */ i("div", {
|
|
1283
|
-
className: "rounded-xl border border-solid border-gray-200 bg-white p-4 text-sm text-gray-500 dark:border-gray-800 dark:bg-gray-900/40 dark:text-gray-400",
|
|
1284
|
-
children: "Checking exchange connection..."
|
|
1285
|
-
}) : null,
|
|
1286
|
-
y && !B ? /* @__PURE__ */ m("div", {
|
|
1287
|
-
className: "rounded-xl border border-solid border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900/40",
|
|
1288
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1289
|
-
className: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1290
|
-
children: "Route availability"
|
|
1291
|
-
}), /* @__PURE__ */ m("div", {
|
|
1292
|
-
className: "mt-3 text-sm text-red-600 dark:text-red-300",
|
|
1293
|
-
children: [
|
|
1294
|
-
s.name,
|
|
1295
|
-
" does not currently expose a",
|
|
1296
|
-
" ",
|
|
1297
|
-
c.originToken.symbol,
|
|
1298
|
-
" balance for this Bluvo connection."
|
|
1299
|
-
]
|
|
1300
|
-
})]
|
|
1301
|
-
}) : null,
|
|
1302
|
-
B ? /* @__PURE__ */ m("div", {
|
|
1303
|
-
className: "rounded-xl border border-solid border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900/40",
|
|
1304
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1305
|
-
className: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1306
|
-
children: "Exchange Balance"
|
|
1307
|
-
}), /* @__PURE__ */ m("div", {
|
|
1308
|
-
className: "mt-3 space-y-2 text-sm text-gray-600 dark:text-gray-300",
|
|
1309
|
-
children: [
|
|
1310
|
-
/* @__PURE__ */ m("div", { children: [
|
|
1311
|
-
"Available: ",
|
|
1312
|
-
B.amount,
|
|
1313
|
-
" ",
|
|
1314
|
-
B.asset
|
|
1315
|
-
] }),
|
|
1316
|
-
/* @__PURE__ */ m("div", { children: [
|
|
1317
|
-
"Network:",
|
|
1318
|
-
" ",
|
|
1319
|
-
Q?.displayName || "Not supported for this route"
|
|
1320
|
-
] }),
|
|
1321
|
-
Ue ? null : /* @__PURE__ */ m("div", {
|
|
1322
|
-
className: "text-red-600 dark:text-red-300",
|
|
1323
|
-
children: [
|
|
1324
|
-
"The connected exchange balance is below the required",
|
|
1325
|
-
" ",
|
|
1326
|
-
c.originAmountDisplay,
|
|
1327
|
-
"."
|
|
1328
|
-
]
|
|
1329
|
-
})
|
|
1330
|
-
]
|
|
1331
|
-
})]
|
|
1332
|
-
}) : null,
|
|
1333
|
-
e.isQuoteExpired ? /* @__PURE__ */ m("div", {
|
|
1334
|
-
className: "rounded-xl border border-solid border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
1335
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1336
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
1337
|
-
children: "Quote expired"
|
|
1338
|
-
}), /* @__PURE__ */ i("div", {
|
|
1339
|
-
className: "mt-2 text-sm text-yellow-700 dark:text-yellow-300",
|
|
1340
|
-
children: "Refresh the Bluvo quote before continuing to exchange verification."
|
|
1341
|
-
})]
|
|
1342
|
-
}) : null,
|
|
1343
|
-
be ? /* @__PURE__ */ m("div", {
|
|
1344
|
-
className: "rounded-xl border border-solid border-yellow-200 bg-yellow-50 p-4 dark:border-yellow-800 dark:bg-yellow-900/20",
|
|
1345
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1346
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
1347
|
-
children: "Additional verification required"
|
|
1348
|
-
}), /* @__PURE__ */ m("div", {
|
|
1349
|
-
className: "mt-2 space-y-3",
|
|
1350
|
-
children: [
|
|
1351
|
-
Te ? /* @__PURE__ */ i("input", {
|
|
1352
|
-
ref: Ve,
|
|
1353
|
-
type: "text",
|
|
1354
|
-
inputMode: "numeric",
|
|
1355
|
-
value: p.twofa,
|
|
1356
|
-
onChange: (t) => ce((r) => ({
|
|
1357
|
-
...r,
|
|
1358
|
-
twofa: t.target.value
|
|
1359
|
-
})),
|
|
1360
|
-
placeholder: "Authenticator code",
|
|
1361
|
-
className: "w-full rounded-lg border border-solid border-yellow-300 bg-white px-3 py-2 text-sm text-gray-900 dark:border-yellow-700 dark:bg-gray-950 dark:text-white"
|
|
1362
|
-
}) : null,
|
|
1363
|
-
yt ? /* @__PURE__ */ i("input", {
|
|
1364
|
-
type: "text",
|
|
1365
|
-
inputMode: "numeric",
|
|
1366
|
-
value: p.emailCode,
|
|
1367
|
-
onChange: (t) => ce((r) => ({
|
|
1368
|
-
...r,
|
|
1369
|
-
emailCode: t.target.value
|
|
1370
|
-
})),
|
|
1371
|
-
placeholder: "Email verification code",
|
|
1372
|
-
className: "w-full rounded-lg border border-solid border-yellow-300 bg-white px-3 py-2 text-sm text-gray-900 dark:border-yellow-700 dark:bg-gray-950 dark:text-white"
|
|
1373
|
-
}) : null,
|
|
1374
|
-
gt ? /* @__PURE__ */ i("input", {
|
|
1375
|
-
type: "text",
|
|
1376
|
-
inputMode: "numeric",
|
|
1377
|
-
value: p.smsCode,
|
|
1378
|
-
onChange: (t) => ce((r) => ({
|
|
1379
|
-
...r,
|
|
1380
|
-
smsCode: t.target.value
|
|
1381
|
-
})),
|
|
1382
|
-
placeholder: "SMS verification code",
|
|
1383
|
-
className: "w-full rounded-lg border border-solid border-yellow-300 bg-white px-3 py-2 text-sm text-gray-900 dark:border-yellow-700 dark:bg-gray-950 dark:text-white"
|
|
1384
|
-
}) : null,
|
|
1385
|
-
ge ? /* @__PURE__ */ m("div", {
|
|
1386
|
-
className: "rounded-lg border border-solid border-yellow-300 bg-white p-3 dark:border-yellow-700 dark:bg-gray-950",
|
|
1387
|
-
children: [
|
|
1388
|
-
/* @__PURE__ */ i("div", {
|
|
1389
|
-
className: "text-sm font-medium text-yellow-900 dark:text-yellow-100",
|
|
1390
|
-
children: "Scan to complete face verification"
|
|
1391
|
-
}),
|
|
1392
|
-
/* @__PURE__ */ m("p", {
|
|
1393
|
-
className: "mt-1 text-xs text-yellow-800 dark:text-yellow-200",
|
|
1394
|
-
children: [
|
|
1395
|
-
"Open ",
|
|
1396
|
-
s.name,
|
|
1397
|
-
" on your phone and scan this QR code. We'll keep checking automatically."
|
|
1398
|
-
]
|
|
1399
|
-
}),
|
|
1400
|
-
e.faceQrCodeUrl ? /* @__PURE__ */ i("div", {
|
|
1401
|
-
className: "mt-3 flex justify-center rounded-lg bg-white p-3",
|
|
1402
|
-
children: /* @__PURE__ */ i("img", {
|
|
1403
|
-
src: e.faceQrCodeUrl,
|
|
1404
|
-
alt: `${s.name} face verification QR code`,
|
|
1405
|
-
className: "h-40 w-40 object-contain"
|
|
1406
|
-
})
|
|
1407
|
-
}) : /* @__PURE__ */ i("div", {
|
|
1408
|
-
className: "mt-3 text-xs text-yellow-800 dark:text-yellow-200",
|
|
1409
|
-
children: "Waiting for Bluvo to provide the face verification QR code."
|
|
1410
|
-
})
|
|
1411
|
-
]
|
|
1412
|
-
}) : null,
|
|
1413
|
-
pe ? /* @__PURE__ */ m("div", {
|
|
1414
|
-
className: "rounded-lg border border-solid border-yellow-300 bg-white p-3 text-xs text-yellow-800 dark:border-yellow-700 dark:bg-gray-950 dark:text-yellow-200",
|
|
1415
|
-
children: [
|
|
1416
|
-
"Complete the roaming security verification in",
|
|
1417
|
-
" ",
|
|
1418
|
-
s.name,
|
|
1419
|
-
". We'll keep checking automatically."
|
|
1420
|
-
]
|
|
1421
|
-
}) : null,
|
|
1422
|
-
V.length > 0 ? /* @__PURE__ */ m("div", {
|
|
1423
|
-
className: "text-xs text-yellow-800 dark:text-yellow-200",
|
|
1424
|
-
children: ["Supported methods: ", V.join(", ")]
|
|
1425
|
-
}) : null,
|
|
1426
|
-
Ke.length > 0 ? /* @__PURE__ */ m("div", {
|
|
1427
|
-
className: "text-xs text-yellow-800 dark:text-yellow-200",
|
|
1428
|
-
children: [
|
|
1429
|
-
"Unsupported verification step required:",
|
|
1430
|
-
" ",
|
|
1431
|
-
Ke.map((t) => t.type).join(", ")
|
|
1432
|
-
]
|
|
1433
|
-
}) : null
|
|
1434
|
-
]
|
|
1435
|
-
})]
|
|
1436
|
-
}) : null,
|
|
1437
|
-
ie === "confirm" ? /* @__PURE__ */ m("div", {
|
|
1438
|
-
className: "rounded-xl border border-solid border-gray-200 bg-white p-4 dark:border-gray-800 dark:bg-gray-900/40",
|
|
1439
|
-
children: [/* @__PURE__ */ i("div", {
|
|
1440
|
-
className: "text-sm font-medium text-gray-900 dark:text-white",
|
|
1441
|
-
children: "Ready to confirm"
|
|
1442
|
-
}), /* @__PURE__ */ i("div", {
|
|
1443
|
-
className: "mt-2 text-sm text-gray-600 dark:text-gray-300",
|
|
1444
|
-
children: "Verification is complete. Confirm the withdrawal to submit it to the exchange."
|
|
1445
|
-
})]
|
|
1446
|
-
}) : null,
|
|
1447
|
-
$e ? /* @__PURE__ */ i("div", {
|
|
1448
|
-
className: "rounded-xl border border-solid border-red-200 bg-red-50 p-4 text-sm text-red-700 dark:border-red-800 dark:bg-red-900/20 dark:text-red-300",
|
|
1449
|
-
children: $e
|
|
1450
|
-
}) : null,
|
|
1451
|
-
/* @__PURE__ */ i("button", {
|
|
1452
|
-
type: "button",
|
|
1453
|
-
disabled: !y || !B || !Q || !Ue || re || e.isQuoteLoading || e.isWithdrawing || Pe,
|
|
1454
|
-
onClick: () => {
|
|
1455
|
-
wt();
|
|
1456
|
-
},
|
|
1457
|
-
className: "w-full cursor-pointer rounded-xl bg-blue-600 px-4 py-3 text-sm font-medium text-white transition-colors hover:bg-blue-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
1458
|
-
children: H
|
|
1459
|
-
}),
|
|
1460
|
-
/* @__PURE__ */ i(pt, {
|
|
1461
|
-
quote: c,
|
|
1462
|
-
showContent: !0,
|
|
1463
|
-
compact: !0
|
|
1464
|
-
})
|
|
1465
|
-
]
|
|
1466
|
-
})
|
|
1467
|
-
})]
|
|
1468
|
-
});
|
|
1469
|
-
};
|
|
1470
|
-
export {
|
|
1471
|
-
Vt as BluvoOnrampFlow
|
|
1472
|
-
};
|