@aurora-is-near/intents-swap-widget 3.16.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/{config-DQMHUj5z.js → config-DJ258QoC.js} +387 -389
  2. package/dist/{config-DQMHUj5z.js.map → config-DJ258QoC.js.map} +1 -1
  3. package/dist/config.js +1 -1
  4. package/dist/errors.js +1 -1
  5. package/dist/ext/alchemy/index.js +1 -1
  6. package/dist/ext/index.js +1 -1
  7. package/dist/features/BalanceRpcLoader/TokenBalanceLoader.js +1 -1
  8. package/dist/features/BalanceRpcLoader/index.js +1 -1
  9. package/dist/features/BalanceRpcLoader/useTokenBalanceRpc.js +1 -1
  10. package/dist/features/ChainsDropdown/index.js +1 -1
  11. package/dist/features/DepositMethodSwitcher.js +1 -1
  12. package/dist/features/ErrorBoundary.js +1 -1
  13. package/dist/features/ExternalDeposit.js +1 -1
  14. package/dist/features/SendAddress/index.js +1 -1
  15. package/dist/features/SendAddress/useNotification.js +1 -1
  16. package/dist/features/SubmitButton/index.js +1 -1
  17. package/dist/features/SuccessScreen/index.js +1 -1
  18. package/dist/features/SwapDirectionSwitcher.js +1 -1
  19. package/dist/features/SwapQuote/SwapQuote.js +1 -1
  20. package/dist/features/SwapQuote/index.js +1 -1
  21. package/dist/features/TokenInput/TokenInput.js +1 -1
  22. package/dist/features/TokenInput/TokenInputEmpty.js +1 -1
  23. package/dist/features/TokenInput/TokenInputSource.js +1 -1
  24. package/dist/features/TokenInput/TokenInputTarget.js +1 -1
  25. package/dist/features/TokenInput/WalletBalance.js +1 -1
  26. package/dist/features/TokenInput/hooks/index.js +1 -1
  27. package/dist/features/TokenInput/hooks/useTokenInputBalance.js +1 -1
  28. package/dist/features/TokenInput/index.js +1 -1
  29. package/dist/features/TokensList/TokenItem.js +1 -1
  30. package/dist/features/TokensList/TokensList.js +1 -1
  31. package/dist/features/TokensList/index.js +1 -1
  32. package/dist/features/TokensModal.js +1 -1
  33. package/dist/features/WalletCompatibilityCheck/WalletCompatibilityModal.js +1 -1
  34. package/dist/features/WalletCompatibilityCheck/index.js +1 -1
  35. package/dist/features/index.js +1 -1
  36. package/dist/hooks/index.js +1 -1
  37. package/dist/hooks/useAllTokens.js +1 -1
  38. package/dist/hooks/useChains.js +1 -1
  39. package/dist/hooks/useCompatibilityCheck.js +1 -1
  40. package/dist/hooks/useDefaultToken.js +1 -1
  41. package/dist/hooks/useExternalDepositStatus/index.js +1 -1
  42. package/dist/hooks/useExternalDepositStatus/usePoaExternalDepositStatus.js +1 -1
  43. package/dist/hooks/useIntentsBalance.js +1 -1
  44. package/dist/hooks/useIsCompatibilityCheckRequired.js +1 -1
  45. package/dist/hooks/useMakeDepositAddress.js +1 -1
  46. package/dist/hooks/useMakeIntentsTransfer.js +1 -1
  47. package/dist/hooks/useMakeNEARFtTransferCall.js +1 -1
  48. package/dist/hooks/useMakeQuote.js +1 -1
  49. package/dist/hooks/useMakeQuoteTransfer.js +1 -1
  50. package/dist/hooks/useMakeTransfer.js +1 -1
  51. package/dist/hooks/useMergedBalance.js +1 -1
  52. package/dist/hooks/useSwitchChain.js +1 -1
  53. package/dist/hooks/useTheme.js +1 -1
  54. package/dist/hooks/useToggleTheme.js +19 -21
  55. package/dist/hooks/useToggleTheme.js.map +1 -1
  56. package/dist/hooks/useTokenInputPair.js +1 -1
  57. package/dist/hooks/useTokens.js +1 -1
  58. package/dist/hooks/useTokensFiltered.js +1 -1
  59. package/dist/hooks/useTokensIntentsUnique.js +1 -1
  60. package/dist/index.js +1 -1
  61. package/dist/machine/effects/index.js +1 -1
  62. package/dist/machine/effects/useAlchemyBalanceEffect.js +1 -1
  63. package/dist/machine/effects/useBalancesUpdateEffect.js +1 -1
  64. package/dist/machine/effects/useMakeQuoteEffect.js +1 -1
  65. package/dist/machine/effects/useSelectedTokensEffect.js +1 -1
  66. package/dist/machine/effects/useSetTokenBalanceEffect.js +1 -1
  67. package/dist/machine/effects/useSetTokenIntentsTargetEffect.js +1 -1
  68. package/dist/machine/effects/useWalletConnEffect.js +1 -1
  69. package/dist/machine/events/index.js +1 -1
  70. package/dist/machine/events/tokenSelect.js +1 -1
  71. package/dist/machine/events/validateInputAndMoveTo.js +1 -1
  72. package/dist/machine/events/validateInputs.js +1 -1
  73. package/dist/machine/index.js +1 -1
  74. package/dist/machine/snap.js +1 -1
  75. package/dist/machine/subscriptions/checkers/isSendAddressAsConnected.js +1 -1
  76. package/dist/machine/subscriptions/index.js +1 -1
  77. package/dist/theme/ThemeProvider.js +3 -4
  78. package/dist/theme/ThemeProvider.js.map +1 -1
  79. package/dist/utils/intents/signers/near.js +1 -1
  80. package/dist/utils/intents/signers/privy.js +1 -1
  81. package/dist/utils/near/getNearNep141StorageBalance.js +1 -1
  82. package/dist/widgets/WidgetDeposit/WidgetDepositContent.js +1 -1
  83. package/dist/widgets/WidgetDeposit/WidgetDepositSkeleton.js +1 -1
  84. package/dist/widgets/WidgetSwap/WidgetSwapContent.js +1 -1
  85. package/dist/widgets/WidgetSwap/WidgetSwapSkeleton.js +1 -1
  86. package/dist/widgets/WidgetWithdraw/WidgetWithdrawContent.js +1 -1
  87. package/dist/widgets/WidgetWithdraw/WidgetWithdrawSkeleton.js +1 -1
  88. package/package.json +1 -1
  89. package/src/hooks/useToggleTheme.ts +23 -27
  90. package/src/theme/ThemeProvider.tsx +8 -11
@@ -1,87 +1,87 @@
1
1
  import { p as tt } from "./index-xuotMAFm.js";
2
- import { jsx as o, jsxs as h, Fragment as Lt } from "react/jsx-runtime";
3
- import Bt from "i18next";
2
+ import { jsx as o, jsxs as h, Fragment as Ft } from "react/jsx-runtime";
3
+ import Lt from "i18next";
4
4
  import { deepClone as pe } from "valtio/utils";
5
5
  import { snapshot as Ne, useSnapshot as oe, proxy as nt } from "valtio";
6
- import { HelmetProvider as qt, Helmet as Ut } from "react-helmet-async";
7
- import { memo as Pt, useEffect as R, useMemo as v, useRef as Y, useCallback as Te, useState as re, useId as Wt, Fragment as Mt, createContext as st, useContext as Vt } from "react";
8
- import { useQuery as _e, useInfiniteQuery as Qt, useQueryClient as $t, QueryClient as Kt, QueryClientProvider as Ht } from "@tanstack/react-query";
9
- import { Trans as Gt, I18nextProvider as jt } from "react-i18next";
10
- import { useTypedTranslation as V, initLocalisation as zt } from "./localisation.js";
6
+ import { HelmetProvider as Bt, Helmet as qt } from "react-helmet-async";
7
+ import { memo as Ut, useEffect as R, useMemo as v, useRef as Y, useCallback as Te, useState as re, useId as Pt, Fragment as Wt, createContext as st, useContext as Mt } from "react";
8
+ import { useQuery as _e, useInfiniteQuery as Vt, useQueryClient as Qt, QueryClient as $t, QueryClientProvider as Kt } from "@tanstack/react-query";
9
+ import { Trans as Ht, I18nextProvider as Gt } from "react-i18next";
10
+ import { useTypedTranslation as V, initLocalisation as jt } from "./localisation.js";
11
11
  import { logger as b } from "./logger.js";
12
- import { getTonTokenBalance as Yt } from "./utils/ton/getTonTokenBalance.js";
13
- import { getSolanaTokenBalance as Zt } from "./utils/solana/getSolanaTokenBalance.js";
12
+ import { getTonTokenBalance as zt } from "./utils/ton/getTonTokenBalance.js";
13
+ import { getSolanaTokenBalance as Yt } from "./utils/solana/getSolanaTokenBalance.js";
14
14
  import { useWalletAddressForToken as rt } from "./hooks/useWalletAddressForToken.js";
15
15
  import "@headlessui/react";
16
16
  import "framer-motion";
17
17
  import "lucide-react";
18
18
  import "./features/ChainsDropdown/ChainItem.js";
19
19
  import { cn as H } from "./utils/cn.js";
20
- import { OneClickService as Xt, QuoteRequest as U, GetExecutionStatusResponse as ee } from "@defuse-protocol/one-click-sdk-typescript";
21
- import { CHAINS_LIST as at, DEFAULT_CHAINS_ORDER as ot, CHAIN_POA_MAP as it, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as Jt, EVM_CHAIN_IDS_MAP as he, CHAIN_IDS_MAP as en, EVM_CHAINS as tn } from "./constants/chains.js";
20
+ import { OneClickService as Zt, QuoteRequest as U, GetExecutionStatusResponse as ee } from "@defuse-protocol/one-click-sdk-typescript";
21
+ import { CHAINS_LIST as at, DEFAULT_CHAINS_ORDER as ot, CHAIN_POA_MAP as it, POA_EVM_CHAIN_ID as lt, CHAIN_BASE_TOKENS as Xt, EVM_CHAIN_IDS_MAP as he, CHAIN_IDS_MAP as Jt, EVM_CHAINS as en } from "./constants/chains.js";
22
22
  import "use-debounce";
23
- import { derive as nn } from "derive-valtio";
24
- import { getIsNativeNearDeposit as sn } from "./machine/computed/getIsNativeNearDeposit.js";
25
- import { getIsDirectTokenOnNearDeposit as rn } from "./machine/computed/getIsDirectTokenOnNearDeposit.js";
23
+ import { derive as tn } from "derive-valtio";
24
+ import { getIsNativeNearDeposit as nn } from "./machine/computed/getIsNativeNearDeposit.js";
25
+ import { getIsDirectTokenOnNearDeposit as sn } from "./machine/computed/getIsDirectTokenOnNearDeposit.js";
26
26
  import "ethers";
27
27
  import { moveTo as O, machine as Z } from "./machine/machine.js";
28
- import an from "lodash.once";
28
+ import rn from "lodash.once";
29
29
  import { guardStates as D } from "./machine/guards/index.js";
30
- import { parse as on } from "./ext/alchemy/parse.js";
31
- import { createLoader as ln } from "./ext/alchemy/load.js";
32
- import { isAlchemySupportedChain as cn } from "./ext/alchemy/types.js";
30
+ import { parse as an } from "./ext/alchemy/parse.js";
31
+ import { createLoader as on } from "./ext/alchemy/load.js";
32
+ import { isAlchemySupportedChain as ln } from "./ext/alchemy/types.js";
33
33
  import { fireEvent as p } from "./machine/events/utils/fireEvent.js";
34
34
  import { NATIVE_NEAR_DUMB_ASSET_ID as $, TOKENS_DATA as ye, WNEAR_ASSET_ID as ge } from "./constants/tokens.js";
35
- import { isValidChain as dn } from "./utils/checkers/isValidChain.js";
35
+ import { isValidChain as cn } from "./utils/checkers/isValidChain.js";
36
36
  import { useWalletBalance as be } from "./hooks/useWalletBalance.js";
37
37
  import { getIntentsAccountId as te } from "./utils/intents/getIntentsAccountId.js";
38
- import { getIntentsBalances as un } from "./utils/intents/getIntentsBalance.js";
38
+ import { getIntentsBalances as dn } from "./utils/intents/getIntentsBalance.js";
39
39
  import { notReachable as Ee } from "./utils/notReachable.js";
40
40
  import { getTokenBalanceKey as G } from "./utils/intents/getTokenBalanceKey.js";
41
41
  import { isDryQuote as Re } from "./machine/guards/checks/isDryQuote.js";
42
42
  import { snakeCase as ct } from "change-case";
43
- import mn, { CanceledError as dt, AxiosError as ut } from "axios";
43
+ import un, { CanceledError as dt, AxiosError as ut } from "axios";
44
44
  import { oneClickApi as Ie, bridgeApi as mt } from "./network.js";
45
45
  import { formatBigToHuman as j } from "./utils/formatters/formatBigToHuman.js";
46
46
  import { getDryQuoteAddress as Ue } from "./utils/getDryQuoteAddress.js";
47
47
  import { isEvmChain as Q } from "./utils/evm/isEvmChain.js";
48
- import { checkNearAccountExists as fn } from "./utils/near/checkNearAccountExists.js";
48
+ import { checkNearAccountExists as mn } from "./utils/near/checkNearAccountExists.js";
49
49
  import { isNotEmptyAmount as ne } from "./utils/checkers/isNotEmptyAmount.js";
50
50
  import { isValidBigint as ft } from "./utils/checkers/isValidBigint.js";
51
51
  import { isNearAddress as pt } from "./utils/near/isNearAddress.js";
52
52
  import { isBalanceSufficient as Ce } from "./machine/guards/checks/isBalanceSufficient.js";
53
- import { isQuoteError as ve, isTransferError as De, isAsyncSendAddressValidationError as pn } from "./machine/errors.js";
53
+ import { isQuoteError as ve, isTransferError as De, isAsyncSendAddressValidationError as fn } from "./machine/errors.js";
54
54
  import { isSolanaAddress as Tt } from "./utils/solana/isSolanaAddress.js";
55
55
  import { isEvmAddress as ht } from "./utils/evm/isEvmAddress.js";
56
- import { getMainTokenByChain as Tn } from "./utils/tokens/getMainTokenByChain.js";
57
- import { getDefaultIntentsToken as hn } from "./utils/tokens/getDefaultIntentsToken.js";
58
- import { getTokenWithHighBalance as gn } from "./utils/tokens/getTokenWithHighBalance.js";
59
- import { isQuoteIdle as In } from "./machine/subscriptions/checkers/isQuoteIdle.js";
60
- import { isInputChanged as wn } from "./machine/subscriptions/checkers/isInputChanged.js";
61
- import { isErrorChanged as kn } from "./machine/subscriptions/checkers/isErrorChanged.js";
62
- import { isOnlyErrorChanged as An } from "./machine/subscriptions/checkers/isOnlyErrorChanged.js";
63
- import { isValidInitialState as Sn } from "./machine/subscriptions/checkers/isValidInitialState.js";
64
- import { isWalletDisconnected as Nn } from "./machine/subscriptions/checkers/isWalletDisconnected.js";
65
- import { isSendAddressForbidden as _n } from "./machine/subscriptions/checkers/isSendAddressForbidden.js";
66
- import { isAmountChangedFromQuote as yn } from "./machine/subscriptions/checkers/isAmountChangedFromQuote.js";
67
- import { reset as bn } from "./machine/events/reset.js";
56
+ import { getMainTokenByChain as pn } from "./utils/tokens/getMainTokenByChain.js";
57
+ import { getDefaultIntentsToken as Tn } from "./utils/tokens/getDefaultIntentsToken.js";
58
+ import { getTokenWithHighBalance as hn } from "./utils/tokens/getTokenWithHighBalance.js";
59
+ import { isQuoteIdle as gn } from "./machine/subscriptions/checkers/isQuoteIdle.js";
60
+ import { isInputChanged as In } from "./machine/subscriptions/checkers/isInputChanged.js";
61
+ import { isErrorChanged as wn } from "./machine/subscriptions/checkers/isErrorChanged.js";
62
+ import { isOnlyErrorChanged as kn } from "./machine/subscriptions/checkers/isOnlyErrorChanged.js";
63
+ import { isValidInitialState as An } from "./machine/subscriptions/checkers/isValidInitialState.js";
64
+ import { isWalletDisconnected as Sn } from "./machine/subscriptions/checkers/isWalletDisconnected.js";
65
+ import { isSendAddressForbidden as Nn } from "./machine/subscriptions/checkers/isSendAddressForbidden.js";
66
+ import { isAmountChangedFromQuote as _n } from "./machine/subscriptions/checkers/isAmountChangedFromQuote.js";
67
+ import { reset as yn } from "./machine/events/reset.js";
68
68
  import { tokenSelectRotate as we } from "./machine/events/tokenSelectRotate.js";
69
- import { errorSet as En } from "./machine/events/errorSet.js";
70
- import { quoteSet as Rn } from "./machine/events/quoteSet.js";
71
- import { addressSet as Cn } from "./machine/events/addressSet.js";
72
- import { tokenSetAmount as vn } from "./machine/events/tokenSetAmount.js";
73
- import { quoteSetStatus as Dn } from "./machine/events/quoteSetStatus.js";
74
- import { depositTypeSet as xn } from "./machine/events/depositTypeSet.js";
75
- import { externalDepositTxSet as On } from "./machine/events/externalDepositTxSet.js";
76
- import { setInputsValidating as Fn } from "./machine/events/setInputsValidating.js";
77
- import { walletAddressSet as Ln } from "./machine/events/walletAddressSet.js";
78
- import { tokenSetBalance as Bn } from "./machine/events/tokenSetBalance.js";
79
- import { transferSetStatus as qn } from "./machine/events/transferSetStatus.js";
80
- import { getUsdTradeDelta as Un } from "./machine/computed/getUsdTradeDelta.js";
81
- import { getIsDirectNonNearWithdrawal as Pn } from "./machine/computed/getIsDirectNonNearWithdrawal.js";
82
- import { getIsDirectTokenOnNearTransfer as Wn } from "./machine/computed/getIsDirectTokenOnNearTransfer.js";
83
- import { getIsDirectNearTokenWithdrawal as Mn } from "./machine/computed/getIsDirectNearTokenWithdrawal.js";
84
- import { getIsSameAssetDiffChainWithdrawal as Vn } from "./machine/computed/getIsSameAssetDiffChainWithdrawal.js";
69
+ import { errorSet as bn } from "./machine/events/errorSet.js";
70
+ import { quoteSet as En } from "./machine/events/quoteSet.js";
71
+ import { addressSet as Rn } from "./machine/events/addressSet.js";
72
+ import { tokenSetAmount as Cn } from "./machine/events/tokenSetAmount.js";
73
+ import { quoteSetStatus as vn } from "./machine/events/quoteSetStatus.js";
74
+ import { depositTypeSet as Dn } from "./machine/events/depositTypeSet.js";
75
+ import { externalDepositTxSet as xn } from "./machine/events/externalDepositTxSet.js";
76
+ import { setInputsValidating as On } from "./machine/events/setInputsValidating.js";
77
+ import { walletAddressSet as Fn } from "./machine/events/walletAddressSet.js";
78
+ import { tokenSetBalance as Ln } from "./machine/events/tokenSetBalance.js";
79
+ import { transferSetStatus as Bn } from "./machine/events/transferSetStatus.js";
80
+ import { getUsdTradeDelta as qn } from "./machine/computed/getUsdTradeDelta.js";
81
+ import { getIsDirectNonNearWithdrawal as Un } from "./machine/computed/getIsDirectNonNearWithdrawal.js";
82
+ import { getIsDirectTokenOnNearTransfer as Pn } from "./machine/computed/getIsDirectTokenOnNearTransfer.js";
83
+ import { getIsDirectNearTokenWithdrawal as Wn } from "./machine/computed/getIsDirectNearTokenWithdrawal.js";
84
+ import { getIsSameAssetDiffChainWithdrawal as Mn } from "./machine/computed/getIsSameAssetDiffChainWithdrawal.js";
85
85
  import "viem";
86
86
  import { Button as A } from "./components/Button.js";
87
87
  import { TinyNumber as xe } from "./components/TinyNumber.js";
@@ -89,65 +89,65 @@ import { ErrorMessage as K } from "./components/ErrorMessage.js";
89
89
  import { FT_DEPOSIT_GAS as Pe, FT_TRANSFER_GAS as We } from "./utils/near/config.js";
90
90
  import { a as Oe } from "./index-DEq3oXQF.js";
91
91
  import { z as se } from "zod";
92
- import { decodeQueryResult as Qn } from "./utils/near/decodeQueryResult.js";
93
- import { nearRpcClient as $n } from "./utils/near/rpc.js";
94
- import { getNearNep141MinStorageBalance as Kn } from "./utils/near/getNearNep141MinStorageBalance.js";
92
+ import { decodeQueryResult as Vn } from "./utils/near/decodeQueryResult.js";
93
+ import { nearRpcClient as Qn } from "./utils/near/rpc.js";
94
+ import { getNearNep141MinStorageBalance as $n } from "./utils/near/getNearNep141MinStorageBalance.js";
95
95
  import { INTENTS_CONTRACT as ke } from "./constants/intents.js";
96
96
  import { isEvmBaseToken as gt } from "./utils/evm/isEvmBaseToken.js";
97
- import { useMakeEvmTransfer as Hn } from "./hooks/useMakeEvmTransfer.js";
98
- import { useMakeSolanaTransfer as Gn } from "./hooks/useMakeSolanaTransfer.js";
97
+ import { useMakeEvmTransfer as Kn } from "./hooks/useMakeEvmTransfer.js";
98
+ import { useMakeSolanaTransfer as Hn } from "./hooks/useMakeSolanaTransfer.js";
99
99
  import { isUserDeniedSigning as Ae } from "./utils/checkers/isUserDeniedSigning.js";
100
- import { createIntentSignerNEP413 as jn, BridgeSDK as zn, createNearWithdrawalRoute as Yn, createInternalTransferRoute as Zn, MinWithdrawalAmountError as Xn, FeeExceedsAmountError as Jn } from "@defuse-protocol/bridge-sdk";
101
- import { generateRandomBytes as es } from "./utils/near/getRandomBytes.js";
102
- import { IntentSignerSolana as ts } from "./utils/intents/signers/solana.js";
100
+ import { createIntentSignerNEP413 as Gn, BridgeSDK as jn, createNearWithdrawalRoute as zn, createInternalTransferRoute as Yn, MinWithdrawalAmountError as Zn, FeeExceedsAmountError as Xn } from "@defuse-protocol/bridge-sdk";
101
+ import { generateRandomBytes as Jn } from "./utils/near/getRandomBytes.js";
102
+ import { IntentSignerSolana as es } from "./utils/intents/signers/solana.js";
103
103
  import { localStorageTyped as Me } from "./utils/localstorage.js";
104
- import { queryContract as ns } from "./utils/near/queryContract.js";
104
+ import { queryContract as ts } from "./utils/near/queryContract.js";
105
105
  import { utils as Ve } from "@defuse-protocol/internal-utils";
106
- import { getTransactionLink as ss } from "./utils/formatters/getTransactionLink.js";
107
- import { switchEthereumChain as rs } from "./utils/evm/switchEthereumChain.js";
106
+ import { getTransactionLink as ns } from "./utils/formatters/getTransactionLink.js";
107
+ import { switchEthereumChain as ss } from "./utils/evm/switchEthereumChain.js";
108
108
  import "copy-text-to-clipboard";
109
109
  import { SwapQuoteSkeleton as It } from "./features/SwapQuote/SwapQuoteSkeleton.js";
110
110
  import { Notes as de } from "./components/Notes.js";
111
- import { Accordion as as } from "./components/Accordion.js";
111
+ import { Accordion as rs } from "./components/Accordion.js";
112
112
  import { formatUsdAmount as Qe } from "./utils/formatters/formatUsdAmount.js";
113
- import { formatTinyNumber as os } from "./utils/formatters/formatTinyNumber.js";
114
- import is from "clsx";
115
- import { Skeleton as ls } from "./components/Skeleton.js";
116
- import { getBalancePortion as cs } from "./features/TokenInput/utils/getBalancePortion.js";
117
- import { getUsdDisplayAmount as ds } from "./features/TokenInput/utils/getUsdDisplayAmount.js";
113
+ import { formatTinyNumber as as } from "./utils/formatters/formatTinyNumber.js";
114
+ import os from "clsx";
115
+ import { Skeleton as is } from "./components/Skeleton.js";
116
+ import { getBalancePortion as ls } from "./features/TokenInput/utils/getBalancePortion.js";
117
+ import { getUsdDisplayAmount as cs } from "./features/TokenInput/utils/getUsdDisplayAmount.js";
118
118
  import { TokenInputHeading as wt } from "./features/TokenInput/TokenInputHeading.js";
119
- import { noop as us } from "./utils/noop.js";
119
+ import { noop as ds } from "./utils/noop.js";
120
120
  import { Card as ie } from "./components/Card.js";
121
121
  import { Badge as $e } from "./components/Badge.js";
122
122
  import { TokenIcon as kt } from "./components/TokenIcon.js";
123
- import { InputAmount as ms } from "./components/InputAmount.js";
124
- import { TokenInputSkeleton as fs } from "./features/TokenInput/TokenInputSkeleton.js";
125
- import { getUsdDisplayBalance as ps } from "./utils/formatters/getUsdDisplayBalance.js";
126
- import { VList as Ts } from "virtua";
123
+ import { InputAmount as us } from "./components/InputAmount.js";
124
+ import { TokenInputSkeleton as ms } from "./features/TokenInput/TokenInputSkeleton.js";
125
+ import { getUsdDisplayBalance as fs } from "./utils/formatters/getUsdDisplayBalance.js";
126
+ import { VList as ps } from "virtua";
127
127
  import { TokensListPlaceholder as Se } from "./features/TokensList/TokensListPlaceholder.js";
128
- import { Hr as hs } from "./components/Hr.js";
129
- import { createTokenSorter as gs } from "./utils/tokens/sort.js";
128
+ import { Hr as Ts } from "./components/Hr.js";
129
+ import { createTokenSorter as hs } from "./utils/tokens/sort.js";
130
130
  import { createFilterByIntents as Ke } from "./utils/tokens/filterByIntents.js";
131
- import { createFilterBySearch as Is } from "./utils/tokens/filterBySearchString.js";
132
- import { createFilterBySelectedChain as ws } from "./utils/tokens/filterBySelectedChain.js";
131
+ import { createFilterBySearch as gs } from "./utils/tokens/filterBySearchString.js";
132
+ import { createFilterBySelectedChain as Is } from "./utils/tokens/filterBySelectedChain.js";
133
133
  import "bs58";
134
134
  import "viem/chains";
135
- import { isBrowser as At } from "browser-or-node";
135
+ import "browser-or-node";
136
136
  import "qrcode.react";
137
- import { createColorPalette as ks } from "./theme/createColorPalette.js";
138
- import { ArmingCountdownFill as As, BeenhereFill as Ss, EncryptedFill as Ns, AccountBalanceWalletFill as _s, CheckCircleFill as ys, GppBadFill as bs } from "@material-symbols-svg/react-rounded";
139
- import { useTimer as Es } from "use-timer";
140
- import { useHandleKeyDown as St } from "./hooks/useHandleKeyDown.js";
141
- import { CloseButton as Nt } from "./components/CloseButton.js";
142
- import { DEFAULT_RPCS as Rs } from "./rpcs.js";
143
- import { useAddClassToPortal as Cs } from "./hooks/useAddClassToPortal.js";
144
- import { ErrorBoundary as vs } from "react-error-boundary";
145
- import { isEvmToken as Ds } from "./utils/evm/isEvmToken.js";
146
- import { getEvmMainTokenBalance as xs } from "./utils/evm/getEvmMainTokenBalance.js";
147
- import { getNativeNearBalance as Os } from "./utils/near/getNativeNearBalance.js";
148
- import { getNearTokenBalance as Fs } from "./utils/near/getNearTokenBalance.js";
149
- import { getEvmTokenBalance as Ls } from "./utils/evm/getEvmTokenBalance.js";
150
- function Bs({ rpcs: e, token: t, connectedWallets: r }) {
137
+ import { createColorPalette as ws } from "./theme/createColorPalette.js";
138
+ import { ArmingCountdownFill as ks, BeenhereFill as As, EncryptedFill as Ss, AccountBalanceWalletFill as Ns, CheckCircleFill as _s, GppBadFill as ys } from "@material-symbols-svg/react-rounded";
139
+ import { useTimer as bs } from "use-timer";
140
+ import { useHandleKeyDown as At } from "./hooks/useHandleKeyDown.js";
141
+ import { CloseButton as St } from "./components/CloseButton.js";
142
+ import { DEFAULT_RPCS as Es } from "./rpcs.js";
143
+ import { useAddClassToPortal as Rs } from "./hooks/useAddClassToPortal.js";
144
+ import { ErrorBoundary as Cs } from "react-error-boundary";
145
+ import { isEvmToken as vs } from "./utils/evm/isEvmToken.js";
146
+ import { getEvmMainTokenBalance as Ds } from "./utils/evm/getEvmMainTokenBalance.js";
147
+ import { getNativeNearBalance as xs } from "./utils/near/getNativeNearBalance.js";
148
+ import { getNearTokenBalance as Os } from "./utils/near/getNearTokenBalance.js";
149
+ import { getEvmTokenBalance as Fs } from "./utils/evm/getEvmTokenBalance.js";
150
+ function Ls({ rpcs: e, token: t, connectedWallets: r }) {
151
151
  const { walletSupportedChains: s, tonCenterApiKey: n, alchemyApiKey: a } = y(), { walletAddress: c } = rt(r, t);
152
152
  return _e({
153
153
  retry: 2,
@@ -157,32 +157,32 @@ function Bs({ rpcs: e, token: t, connectedWallets: r }) {
157
157
  if (!c)
158
158
  return null;
159
159
  if (t.blockchain === "near" && s.includes(t.blockchain))
160
- return !e.near || e.near.length === 0 ? null : t.assetId === $ ? Os(c, e.near) : Fs(t, c, e.near);
160
+ return !e.near || e.near.length === 0 ? null : t.assetId === $ ? xs(c, e.near) : Os(t, c, e.near);
161
161
  if (!s.includes("eth") && Q(t.blockchain))
162
162
  return null;
163
163
  if (Q(t.blockchain) && gt(t)) {
164
164
  const l = e[t.blockchain] ?? [];
165
- return l.length > 0 ? xs(c, l[0]) : null;
165
+ return l.length > 0 ? Ds(c, l[0]) : null;
166
166
  }
167
- if (Ds(t) || Q(t.blockchain)) {
167
+ if (vs(t) || Q(t.blockchain)) {
168
168
  const l = e[t.blockchain] ?? [];
169
- return l.length > 0 ? Ls(t, c, l[0]) : null;
169
+ return l.length > 0 ? Fs(t, c, l[0]) : null;
170
170
  }
171
- return t.blockchain === "ton" ? Yt(t, c, n) : t.blockchain === "sol" && s.includes(t.blockchain) ? Zt(t, c, a) : (b.warn(
171
+ return t.blockchain === "ton" ? zt(t, c, n) : t.blockchain === "sol" && s.includes(t.blockchain) ? Yt(t, c, a) : (b.warn(
172
172
  `Failed to fetch token balance for ${t.symbol} on ${t.blockchain}`
173
173
  ), null);
174
174
  }
175
175
  });
176
176
  }
177
- const qs = ({
177
+ const Bs = ({
178
178
  rpcs: e,
179
179
  token: t,
180
180
  onBalancesLoaded: r
181
181
  }) => (R(() => {
182
182
  t.isIntent || !Object.keys(e).includes(t.blockchain) || r({ [t.assetId]: "0" });
183
- }, [t.assetId]), null), _t = Pt(
183
+ }, [t.assetId]), null), Nt = Ut(
184
184
  ({ rpcs: e, token: t, connectedWallets: r, onBalancesLoaded: s }) => {
185
- const { data: n } = Bs({
185
+ const { data: n } = Ls({
186
186
  rpcs: e,
187
187
  token: t,
188
188
  connectedWallets: r
@@ -193,13 +193,13 @@ const qs = ({
193
193
  },
194
194
  (e, t) => e.token.assetId === t.token.assetId && e.connectedWallets === t.connectedWallets
195
195
  );
196
- _t.displayName = "TokenBalanceLoader";
197
- const He = Object.assign(_t, {
198
- Zero: qs
199
- }), Us = (e) => {
196
+ Nt.displayName = "TokenBalanceLoader";
197
+ const He = Object.assign(Nt, {
198
+ Zero: Bs
199
+ }), qs = (e) => {
200
200
  const t = e.toLowerCase();
201
201
  return ye[t]?.icon ?? "";
202
- }, Ps = (e) => `${e?.charAt(0).toUpperCase()}${e?.slice(1)}`, Ws = (e) => ye[e]?.name ?? e, P = (e) => {
202
+ }, Us = (e) => `${e?.charAt(0).toUpperCase()}${e?.slice(1)}`, Ps = (e) => ye[e]?.name ?? e, P = (e) => {
203
203
  const {
204
204
  showIntentTokens: t,
205
205
  allowedTokensList: r,
@@ -210,22 +210,22 @@ const He = Object.assign(_t, {
210
210
  fetchTargetTokens: l
211
211
  } = y(), { data: d, ...u } = _e({
212
212
  queryKey: ["tokens", e].filter(Boolean),
213
- queryFn: async () => e === "source" && c ? c() : e === "target" && l ? l() : Xt.getTokens()
213
+ queryFn: async () => e === "source" && c ? c() : e === "target" && l ? l() : Zt.getTokens()
214
214
  }), i = v(() => {
215
215
  if (!d)
216
216
  return [];
217
217
  const f = d.map((m) => {
218
218
  const w = m.blockchain.toLowerCase();
219
- return !dn(w) || r && !r.includes(m.assetId) || e === "source" && s && !s.includes(m.assetId) || e === "target" && n && !n.includes(m.assetId) ? null : {
219
+ return !cn(w) || r && !r.includes(m.assetId) || e === "source" && s && !s.includes(m.assetId) || e === "target" && n && !n.includes(m.assetId) ? null : {
220
220
  assetId: m.assetId,
221
221
  symbol: m.symbol,
222
222
  decimals: m.decimals,
223
223
  price: m.price,
224
224
  blockchain: w,
225
225
  isIntent: !1,
226
- icon: m.icon ?? Us(m.symbol),
227
- name: Ws(m.symbol),
228
- chainName: at[m.blockchain]?.label ?? Ps(m.blockchain),
226
+ icon: m.icon ?? qs(m.symbol),
227
+ name: Ps(m.symbol),
228
+ chainName: at[m.blockchain]?.label ?? Us(m.blockchain),
229
229
  contractAddress: m.contractAddress
230
230
  };
231
231
  }).filter((m) => !!m).filter(a ?? (() => !0)), T = f.filter(
@@ -254,7 +254,7 @@ const He = Object.assign(_t, {
254
254
  ...u,
255
255
  tokens: i
256
256
  };
257
- }, Ms = () => {
257
+ }, Ws = () => {
258
258
  const { tokens: e } = P(), { tokens: t } = P("source"), { tokens: r } = P("target");
259
259
  return { tokens: v(() => {
260
260
  const n = {};
@@ -272,7 +272,7 @@ const He = Object.assign(_t, {
272
272
  { near: ["USDT", "USDC", "AURORA"] },
273
273
  { arb: ["ARB", "ETH", "USDT", "USDC"] },
274
274
  { btc: ["BTC"] }
275
- ], Vs = (e) => [...e].sort((t, r) => {
275
+ ], Ms = (e) => [...e].sort((t, r) => {
276
276
  const s = ue.findIndex(
277
277
  (d) => Object.keys(d)[0] === t.blockchain
278
278
  ), n = ue.findIndex(
@@ -282,9 +282,9 @@ const He = Object.assign(_t, {
282
282
  return s === -1 ? 1 : n === -1 ? -1 : s - n;
283
283
  const a = ue[s]?.[t.blockchain] ?? [], c = a.indexOf(t.symbol), l = a.indexOf(r.symbol);
284
284
  return c === -1 && l === -1 ? 0 : c === -1 ? 1 : l === -1 ? -1 : c - l;
285
- }), Qs = ({ rpcs: e, connectedWallets: t }) => {
286
- const { tokens: r } = Ms(), { walletSupportedChains: s } = y(), { setWalletBalance: n } = be(t);
287
- return v(() => Vs(r), [r]).map((c) => s.includes(c.blockchain) ? /* @__PURE__ */ o(
285
+ }), Vs = ({ rpcs: e, connectedWallets: t }) => {
286
+ const { tokens: r } = Ws(), { walletSupportedChains: s } = y(), { setWalletBalance: n } = be(t);
287
+ return v(() => Ms(r), [r]).map((c) => s.includes(c.blockchain) ? /* @__PURE__ */ o(
288
288
  He,
289
289
  {
290
290
  rpcs: e,
@@ -303,7 +303,7 @@ const He = Object.assign(_t, {
303
303
  G(c)
304
304
  ));
305
305
  };
306
- function $s(e, t) {
306
+ function Qs(e, t) {
307
307
  const r = Array.from(
308
308
  /* @__PURE__ */ new Set([...t ?? [], ...ot])
309
309
  ), s = new Map(r.map((n, a) => [n, a]));
@@ -312,7 +312,7 @@ function $s(e, t) {
312
312
  return c !== l ? c - l : n.id.localeCompare(a.id, void 0, { sensitivity: "base" });
313
313
  });
314
314
  }
315
- const Ks = (e) => {
315
+ const $s = (e) => {
316
316
  const {
317
317
  chainsOrder: t,
318
318
  allowedChainsList: r,
@@ -323,18 +323,18 @@ const Ks = (e) => {
323
323
  const c = Array.from(
324
324
  new Set(a.map((l) => at[l.blockchain]))
325
325
  ).filter((l) => !(r && !r.includes(l.id) || e === "source" && s && !s.includes(l.id) || e === "target" && n && !n.includes(l.id)));
326
- return $s(c, t);
326
+ return Qs(c, t);
327
327
  }, [a, t, r]);
328
- }, Ge = 3, yt = ({
328
+ }, Ge = 3, _t = ({
329
329
  connectedWallets: e,
330
330
  alchemyApiKey: t,
331
331
  ...r
332
332
  }) => {
333
- const { ctx: s } = _(), { tokens: n } = P(), { walletSupportedChains: a } = y(), { setWalletBalance: c } = be(e), l = r.isEnabled && !!Object.values(e).length && a.length > 0, d = Qt({
333
+ const { ctx: s } = _(), { tokens: n } = P(), { walletSupportedChains: a } = y(), { setWalletBalance: c } = be(e), l = r.isEnabled && !!Object.values(e).length && a.length > 0, d = Vt({
334
334
  initialPageParam: null,
335
335
  enabled: !!l && !!t,
336
336
  queryKey: ["walletTokensBalance", e],
337
- queryFn: async ({ pageParam: i }) => ln({ alchemyApiKey: t })({
337
+ queryFn: async ({ pageParam: i }) => on({ alchemyApiKey: t })({
338
338
  pageParam: i ? `${i}` : null,
339
339
  connectedWallets: e,
340
340
  walletSupportedChains: a
@@ -350,12 +350,12 @@ const Ks = (e) => {
350
350
  const u = v(() => {
351
351
  if (!d.data?.pages)
352
352
  return {};
353
- const i = on(
353
+ const i = an(
354
354
  n,
355
355
  d.data.pages.flatMap((f) => f.data)
356
356
  );
357
357
  return n.forEach((f) => {
358
- cn(f.blockchain) && !(f.assetId in i) && (i[f.assetId] = "0");
358
+ ln(f.blockchain) && !(f.assetId in i) && (i[f.assetId] = "0");
359
359
  }), i;
360
360
  }, [d.data, n]);
361
361
  return R(() => {
@@ -374,7 +374,7 @@ const Ks = (e) => {
374
374
  }), a = _e({
375
375
  enabled: !!t && !!n && r.length > 0,
376
376
  queryKey: ["intentsBalances", n],
377
- queryFn: async () => n ? await un(n, s) : {}
377
+ queryFn: async () => n ? await dn(n, s) : {}
378
378
  }), c = v(() => {
379
379
  switch (a.status) {
380
380
  case "error":
@@ -396,11 +396,11 @@ const Ks = (e) => {
396
396
  ...a,
397
397
  intentBalances: c
398
398
  };
399
- }, Hs = ({
399
+ }, Ks = ({
400
400
  isEnabled: e,
401
401
  alchemyApiKey: t
402
402
  }) => {
403
- const { connectedWallets: r } = y(), { ctx: s } = _(), n = $t(), { refetch: a } = le(), { refetch: c } = yt({
403
+ const { connectedWallets: r } = y(), { ctx: s } = _(), n = Qt(), { refetch: a } = le(), { refetch: c } = _t({
404
404
  isEnabled: e,
405
405
  connectedWallets: r,
406
406
  alchemyApiKey: t ?? ""
@@ -417,7 +417,7 @@ const Ks = (e) => {
417
417
  () => ({ ...r, ...t }),
418
418
  [r, t]
419
419
  ) };
420
- }, Gs = ({ isEnabled: e }) => {
420
+ }, Hs = ({ isEnabled: e }) => {
421
421
  const { ctx: t } = _(), { mergedBalance: r } = ce();
422
422
  R(() => {
423
423
  if (!e)
@@ -444,7 +444,7 @@ const Ks = (e) => {
444
444
  "nep245:v2_1.omni.hot.tg:56_SZzgw3HSudhZcTwPWUTi2RJB19t": "nep141:wrap.near",
445
445
  // BTC (near)
446
446
  "nep141:btc.omft.near": "nep141:nbtc.bridge.near"
447
- }, js = ({
447
+ }, Gs = ({
448
448
  isEnabled: e
449
449
  }) => {
450
450
  const { ctx: t } = _(), { tokens: r } = P();
@@ -483,7 +483,7 @@ const Ks = (e) => {
483
483
  token: a ?? c
484
484
  });
485
485
  }, [r, t.sourceToken]);
486
- }, zs = ({ isEnabled: e }) => {
486
+ }, js = ({ isEnabled: e }) => {
487
487
  const { connectedWallets: t } = y(), { ctx: r, state: s } = _(), { walletAddress: n } = rt(
488
488
  t,
489
489
  r.sourceToken
@@ -493,10 +493,10 @@ const Ks = (e) => {
493
493
  return;
494
494
  p("walletAddressSet", n), D(r, ["initial_dry", "initial_wallet"]) && (s === "initial_wallet" && !n ? O("initial_dry") : s === "initial_dry" && n && O("initial_wallet"));
495
495
  }, [e, n, r, s]);
496
- }, Ys = (e) => (["depositAddress"].forEach((t) => {
496
+ }, zs = (e) => (["depositAddress"].forEach((t) => {
497
497
  if (!(t in e))
498
498
  return b.error(`Missing ${t} in quote response`), !1;
499
- }), !0), Zs = () => {
499
+ }), !0), Ys = () => {
500
500
  const { ctx: e } = _(), {
501
501
  walletSupportedChains: t,
502
502
  intentsAccountType: r,
@@ -626,7 +626,7 @@ const Ks = (e) => {
626
626
  ...F,
627
627
  deadline: void 0,
628
628
  depositAddress: void 0
629
- } : (Ys(F), {
629
+ } : (zs(F), {
630
630
  dry: !1,
631
631
  ...F,
632
632
  deadline: F.deadline,
@@ -637,7 +637,7 @@ const Ks = (e) => {
637
637
  u.current.abort("Abort quote manually"), u.current = new AbortController();
638
638
  }
639
639
  };
640
- }, Xs = () => {
640
+ }, Zs = () => {
641
641
  const { ctx: e } = _(), { intentsAccountType: t } = y(), { isNativeNearDeposit: r } = z(), s = te({
642
642
  addressType: t,
643
643
  walletAddress: e.walletAddress ?? ""
@@ -762,7 +762,7 @@ const Ks = (e) => {
762
762
  return;
763
763
  let t = !1;
764
764
  try {
765
- p("setInputsValidating", !0), t = await fn(e.sendAddress);
765
+ p("setInputsValidating", !0), t = await mn(e.sendAddress);
766
766
  } catch {
767
767
  ze({
768
768
  code: "SEND_ADDRESS_IS_NOT_VERIFIED",
@@ -777,14 +777,14 @@ const Ks = (e) => {
777
777
  }), O("initial_wallet");
778
778
  return;
779
779
  }
780
- e.error ? pn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
781
- }, bt = (e) => {
780
+ e.error ? fn(e.error) && (p("errorSet", null), O("input_valid_external")) : O("input_valid_external");
781
+ }, yt = (e) => {
782
782
  const t = D(e, ["initial_dry"]), r = D(e, ["input_valid_dry"]);
783
783
  if (!t && !r)
784
784
  return;
785
785
  let s;
786
786
  return t && (e.sourceToken ? e.targetToken ? ne(e.sourceTokenAmount) ? e.walletAddress && !Ce(e) && (s = { code: "SOURCE_BALANCE_INSUFFICIENT" }) : s = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : s = { code: "TARGET_TOKEN_IS_EMPTY" } : s = { code: "SOURCE_TOKEN_IS_EMPTY" }), !r && s ? p("errorSet", s) : e.error && !ve(e.error) && !De(e.error) && p("errorSet", null), r && s?.code === "SOURCE_BALANCE_INSUFFICIENT" && p("errorSet", s), r;
787
- }, Et = (e) => {
787
+ }, bt = (e) => {
788
788
  const t = D(e, ["initial_wallet"]), r = D(e, ["input_valid_external"]);
789
789
  if (!t && !r)
790
790
  return;
@@ -794,21 +794,21 @@ const Ks = (e) => {
794
794
  code: "SEND_ADDRESS_IS_INVALID",
795
795
  meta: { address: e.sendAddress, chain: "near" }
796
796
  } : e.isDepositFromExternalWallet || (!s || !ft(s) ? n = { code: "INVALID_SOURCE_BALANCE" } : Ce(e) || (n = { code: "SOURCE_BALANCE_INSUFFICIENT" })) : n = { code: "SEND_ADDRESS_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : n = { code: "TARGET_TOKEN_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_IS_EMPTY" }), r && e.targetToken.blockchain === "near" && Ye(e), !r && n ? p("errorSet", n) : e.error && !ve(e.error) && !De(e.error) && p("errorSet", null), r;
797
- }, Rt = (e) => {
797
+ }, Et = (e) => {
798
798
  const t = D(e, ["initial_wallet"]), r = D(e, ["input_valid_internal"]);
799
799
  if (!t && !r)
800
800
  return;
801
801
  const s = e.sourceTokenBalance;
802
802
  let n;
803
803
  return t && (e.sourceToken ? e.targetToken ? e.targetToken.isIntent ? ne(e.sourceTokenAmount) ? e.isDepositFromExternalWallet || (!s || !ft(s) ? n = { code: "INVALID_SOURCE_BALANCE" } : Ce(e) || (n = { code: "SOURCE_BALANCE_INSUFFICIENT" })) : n = { code: "SOURCE_TOKEN_AMOUNT_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_NOT_INTENT" } : n = { code: "TARGET_TOKEN_IS_EMPTY" } : n = { code: "SOURCE_TOKEN_IS_EMPTY" }), !r && n ? p("errorSet", n) : e.error && !ve(e.error) && !De(e.error) && p("errorSet", null), r;
804
- }, Ct = (e) => {
804
+ }, Rt = (e) => {
805
805
  const t = Re(e), r = !t && e.targetToken?.isIntent === !0, s = !t && e.targetToken?.isIntent === !1;
806
806
  if (t) {
807
- const n = bt(e);
807
+ const n = yt(e);
808
808
  return O(n ? "input_valid_dry" : "initial_dry");
809
809
  }
810
- s && Et(e) ? O("input_valid_external") : r && Rt(e) ? O("input_valid_internal") : O("initial_wallet");
811
- }, Js = ({
810
+ s && bt(e) ? O("input_valid_external") : r && Et(e) ? O("input_valid_internal") : O("initial_wallet");
811
+ }, Xs = ({
812
812
  isEnabled: e,
813
813
  message: t,
814
814
  type: r = "exact_in",
@@ -821,7 +821,7 @@ const Ks = (e) => {
821
821
  isDirectNearTokenWithdrawal: d,
822
822
  isDirectTokenOnNearTransfer: u,
823
823
  isSameAssetDiffChainWithdrawal: i
824
- } = z(), f = Re(n), T = e && !n.areInputsValidating && (i || (l || a) && n.isDepositFromExternalWallet || !d && !c && !l && !u), { make: I, cancel: m } = Zs(), { make: w, cancel: S } = Xs(), E = Y(null), B = () => {
824
+ } = z(), f = Re(n), T = e && !n.areInputsValidating && (i || (l || a) && n.isDepositFromExternalWallet || !d && !c && !l && !u), { make: I, cancel: m } = Ys(), { make: w, cancel: S } = Zs(), E = Y(null), B = () => {
825
825
  m(), S();
826
826
  };
827
827
  R(() => {
@@ -854,7 +854,7 @@ const Ks = (e) => {
854
854
  p("quoteSetStatus", "idle"), p("quoteSet", void 0), p("errorSet", null);
855
855
  return;
856
856
  }
857
- p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", k.data), Ct(n);
857
+ p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", k.data), Rt(n);
858
858
  return;
859
859
  }
860
860
  b.error("Unhandled error in useMakeQuoteEffect:", k), p("quoteSetStatus", "error"), p("quoteSet", void 0), p("errorSet", {
@@ -879,18 +879,18 @@ const Ks = (e) => {
879
879
  sol: "sol",
880
880
  evm: "eth",
881
881
  near: "near"
882
- }, er = ({
882
+ }, Js = ({
883
883
  isEnabled: e,
884
884
  skipIntents: t = !1,
885
885
  target: r = "none"
886
886
  }) => {
887
- const { tokens: s } = P(), { ctx: n, state: a } = _(), { intentBalances: c } = le(), { walletSupportedChains: l, chainsFilter: d, intentsAccountType: u } = y(), i = gn({
887
+ const { tokens: s } = P(), { ctx: n, state: a } = _(), { intentBalances: c } = le(), { walletSupportedChains: l, chainsFilter: d, intentsAccountType: u } = y(), i = hn({
888
888
  tokens: s,
889
889
  walletSupportedChains: l,
890
890
  balances: c,
891
891
  across: "intents"
892
892
  }), [f, T] = v(() => !n.walletAddress && !t ? [
893
- { token: hn({ tokens: s }), status: "loaded" },
893
+ { token: Tn({ tokens: s }), status: "loaded" },
894
894
  { token: void 0, status: "loaded" }
895
895
  ] : d.source.intents !== "none" && !t ? i ? [
896
896
  { token: i, status: "loaded" },
@@ -899,7 +899,7 @@ const Ks = (e) => {
899
899
  { token: void 0, status: "loading" },
900
900
  { token: void 0, status: "loading" }
901
901
  ] : [
902
- { token: Tn({
902
+ { token: pn({
903
903
  tokens: s,
904
904
  walletSupportedChains: l
905
905
  }), status: "loaded" },
@@ -942,7 +942,7 @@ const Ks = (e) => {
942
942
  }, [n, f, T, e]);
943
943
  const I = (m, w) => {
944
944
  const S = s.find(
945
- (E) => !E.isIntent && E.blockchain === me[m] && E.symbol.toLowerCase() === Jt[me[m]]?.toLowerCase()
945
+ (E) => !E.isIntent && E.blockchain === me[m] && E.symbol.toLowerCase() === Xt[me[m]]?.toLowerCase()
946
946
  ) ?? w;
947
947
  p("tokenSelect", {
948
948
  variant: "source",
@@ -966,31 +966,31 @@ const Ks = (e) => {
966
966
  }, 3e3);
967
967
  return () => clearTimeout(S);
968
968
  }, [s, f, t]), { source: n.sourceToken, target: n.targetToken };
969
- }, tr = ({
969
+ }, er = ({
970
970
  isEnabled: e,
971
971
  alchemyApiKey: t
972
972
  }) => {
973
973
  const { connectedWallets: r } = y();
974
- yt({
974
+ _t({
975
975
  isEnabled: e,
976
976
  connectedWallets: r,
977
977
  alchemyApiKey: t ?? ""
978
978
  });
979
- }, nr = (e, t) => {
979
+ }, tr = (e, t) => {
980
980
  const { config: r } = Ne(qe);
981
981
  return e.targetToken && !e.sendAddress && !!e.walletAddress && !e.targetToken.isIntent && !t.find((s) => s?.key === "sendAddress") && r.walletSupportedChains.includes(e.targetToken.blockchain);
982
- }, sr = ({ debug: e }) => {
982
+ }, nr = ({ debug: e }) => {
983
983
  Z.onContextChange((t, r) => {
984
984
  const s = r;
985
- if (e && b.debug("[WIDGET] Context changed", s), e && t.error && kn(s) && b.debug(`[WIDGET] Error set to ${t.error.code}`), An(s) || yn(t, s, e))
985
+ if (e && b.debug("[WIDGET] Context changed", s), e && t.error && wn(s) && b.debug(`[WIDGET] Error set to ${t.error.code}`), kn(s) || _n(t, s, e))
986
986
  return;
987
- if (Nn(t, s)) {
987
+ if (Sn(t, s)) {
988
988
  p("reset", { clearWalletAddress: !0 }), O("initial_dry");
989
989
  return;
990
990
  }
991
- const { isChanged: n, isDry: a } = wn(t, s);
991
+ const { isChanged: n, isDry: a } = In(t, s);
992
992
  if (n) {
993
- if (Sn(t)) {
993
+ if (An(t)) {
994
994
  const c = a ? "initial_dry" : "initial_wallet";
995
995
  O(c, {
996
996
  onMoved: () => {
@@ -1000,14 +1000,14 @@ const Ks = (e) => {
1000
1000
  }
1001
1001
  });
1002
1002
  }
1003
- In(t) || (t.quote = void 0, t.quoteStatus = "idle", t.transferStatus = { status: "idle" }), _n(t) && (t.sendAddress = void 0), nr(t, s) && (t.sendAddress = t.walletAddress), Ct(t);
1003
+ gn(t) || (t.quote = void 0, t.quoteStatus = "idle", t.transferStatus = { status: "idle" }), Nn(t) && (t.sendAddress = void 0), tr(t, s) && (t.sendAddress = t.walletAddress), Rt(t);
1004
1004
  }
1005
1005
  });
1006
- }, rr = ({ debug: e }) => {
1006
+ }, sr = ({ debug: e }) => {
1007
1007
  Z.onTransition((t, r) => {
1008
1008
  e && b.debug(`===> [WIDGET] State moved from ${t} to ${r}`);
1009
1009
  });
1010
- }, ar = (e, t) => {
1010
+ }, rr = (e, t) => {
1011
1011
  const { variant: r, token: s } = t, { config: n } = Ne(qe);
1012
1012
  switch (r) {
1013
1013
  case "source":
@@ -1036,15 +1036,15 @@ const Ks = (e) => {
1036
1036
  }, C = (e, t) => Z.on(
1037
1037
  e,
1038
1038
  (r, s) => t(r, s, Z)
1039
- ), or = () => {
1040
- C("quoteSetStatus", Dn), C("walletAddressSet", Ln), C("transferSetStatus", qn), C("tokenSelectRotate", we), C("tokenSetBalance", Bn), C("tokenSetAmount", vn), C("depositTypeSet", xn), C("setInputsValidating", Fn), C("externalDepositTxSet", On), C("tokenSelect", ar), C("addressSet", Cn), C("errorSet", En), C("quoteSet", Rn), C("reset", bn), C("validateDryInputs", bt), C("validateExternalInputs", Et), C("validateInternalInputs", Rt);
1041
- }, ir = an(({ debug: e }) => {
1039
+ ), ar = () => {
1040
+ C("quoteSetStatus", vn), C("walletAddressSet", Fn), C("transferSetStatus", Bn), C("tokenSelectRotate", we), C("tokenSetBalance", Ln), C("tokenSetAmount", Cn), C("depositTypeSet", Dn), C("setInputsValidating", On), C("externalDepositTxSet", xn), C("tokenSelect", rr), C("addressSet", Rn), C("errorSet", bn), C("quoteSet", En), C("reset", yn), C("validateDryInputs", yt), C("validateExternalInputs", bt), C("validateInternalInputs", Et);
1041
+ }, or = rn(({ debug: e }) => {
1042
1042
  e && b.debug(
1043
- "[WIDGET] Debug mode is enabled (package version: 3.16.0)"
1044
- ), or(), rr({ debug: e }), sr({ debug: e });
1045
- }), qi = ({ listenTo: e, debug: t = !1 }) => {
1043
+ "[WIDGET] Debug mode is enabled (package version: 3.16.1)"
1044
+ ), ar(), sr({ debug: e }), nr({ debug: e });
1045
+ }), Bi = ({ listenTo: e, debug: t = !1 }) => {
1046
1046
  R(() => {
1047
- ir({ debug: t });
1047
+ or({ debug: t });
1048
1048
  }, [t]);
1049
1049
  const r = e.find(
1050
1050
  (a) => Array.isArray(a) && a[0] === "setBalancesUsingAlchemyExt"
@@ -1053,85 +1053,85 @@ const Ks = (e) => {
1053
1053
  ), n = e.find(
1054
1054
  (a) => Array.isArray(a) && a[0] === "makeQuote"
1055
1055
  );
1056
- tr({
1056
+ er({
1057
1057
  isEnabled: !!r,
1058
1058
  alchemyApiKey: r?.[1].alchemyApiKey
1059
- }), er({
1059
+ }), Js({
1060
1060
  isEnabled: !!s,
1061
1061
  skipIntents: s?.[1].skipIntents,
1062
1062
  target: s?.[1].target
1063
- }), Js({
1063
+ }), Xs({
1064
1064
  isEnabled: !!n,
1065
1065
  message: n?.[1].message,
1066
1066
  type: n?.[1].type,
1067
1067
  refetchQuoteInterval: n?.[1].refetchQuoteInterval
1068
- }), zs({
1068
+ }), js({
1069
1069
  isEnabled: e.includes("checkWalletConnection")
1070
- }), Gs({
1070
+ }), Hs({
1071
1071
  isEnabled: e.includes("setSourceTokenBalance")
1072
- }), js({
1072
+ }), Gs({
1073
1073
  isEnabled: e.includes("setSourceTokenIntentsTarget")
1074
- }), Hs({
1074
+ }), Ks({
1075
1075
  isEnabled: e.includes("updateBalances"),
1076
1076
  alchemyApiKey: r?.[1].alchemyApiKey
1077
1077
  });
1078
- }, lr = Z.getStore();
1078
+ }, ir = Z.getStore();
1079
1079
  class W extends Error {
1080
1080
  context;
1081
1081
  _is_widget_error = !0;
1082
1082
  constructor(t, r) {
1083
- super(t), this.name = "WidgetError", this.cause = r?.cause, this.context = Ne(lr).context;
1083
+ super(t), this.name = "WidgetError", this.cause = r?.cause, this.context = Ne(ir).context;
1084
1084
  }
1085
1085
  }
1086
- class vt extends W {
1086
+ class Ct extends W {
1087
1087
  data;
1088
1088
  constructor(t) {
1089
1089
  super(t.code), this.data = t, this.name = "MachineError";
1090
1090
  }
1091
1091
  }
1092
- class q extends vt {
1092
+ class q extends Ct {
1093
1093
  constructor(t) {
1094
1094
  super(t), this.name = "QuoteError";
1095
1095
  }
1096
1096
  }
1097
- class g extends vt {
1097
+ class g extends Ct {
1098
1098
  constructor(t) {
1099
1099
  super(t), this.name = "TransferError";
1100
1100
  }
1101
1101
  }
1102
- const Ui = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e && !!e._is_widget_error, M = Z.getStore(), cr = nn({
1103
- usdTradeDelta: (e) => Un(e(M.context)),
1104
- isDirectNearTokenWithdrawal: (e) => Mn(e(M.context)),
1105
- isDirectNonNearWithdrawal: (e) => Pn(e(M.context)),
1106
- isDirectTokenOnNearDeposit: (e) => rn(e(M.context)),
1107
- isNativeNearDeposit: (e) => sn(e(M.context)),
1108
- isSameAssetDiffChainWithdrawal: (e) => Vn(e(M.context)),
1109
- isDirectTokenOnNearTransfer: (e) => Wn(e(M.context))
1110
- }), z = () => oe(cr), _ = () => {
1102
+ const qi = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e && !!e._is_widget_error, M = Z.getStore(), lr = tn({
1103
+ usdTradeDelta: (e) => qn(e(M.context)),
1104
+ isDirectNearTokenWithdrawal: (e) => Wn(e(M.context)),
1105
+ isDirectNonNearWithdrawal: (e) => Un(e(M.context)),
1106
+ isDirectTokenOnNearDeposit: (e) => sn(e(M.context)),
1107
+ isNativeNearDeposit: (e) => nn(e(M.context)),
1108
+ isSameAssetDiffChainWithdrawal: (e) => Mn(e(M.context)),
1109
+ isDirectTokenOnNearTransfer: (e) => Pn(e(M.context))
1110
+ }), z = () => oe(lr), _ = () => {
1111
1111
  const e = oe(M);
1112
1112
  return {
1113
1113
  state: e.state,
1114
1114
  ctx: e.context
1115
1115
  };
1116
- }, Pi = (e) => {
1116
+ }, Ui = (e) => {
1117
1117
  const t = oe(M);
1118
1118
  if (!D(t.context, [e]))
1119
1119
  throw new W(
1120
1120
  `[WIDGET] Attempt to access snapshot for ${e} state while context does not match`
1121
1121
  );
1122
1122
  return t.context;
1123
- }, dr = async ({
1123
+ }, cr = async ({
1124
1124
  contractId: e,
1125
1125
  accountId: t
1126
1126
  }) => {
1127
1127
  try {
1128
- const r = { account_id: t }, s = Oe.from(JSON.stringify(r)).toString("base64"), n = await $n.query({
1128
+ const r = { account_id: t }, s = Oe.from(JSON.stringify(r)).toString("base64"), n = await Qn.query({
1129
1129
  request_type: "call_function",
1130
1130
  method_name: "storage_balance_of",
1131
1131
  account_id: e,
1132
1132
  args_base64: s,
1133
1133
  finality: "optimistic"
1134
- }), a = Qn(
1134
+ }), a = Vn(
1135
1135
  n,
1136
1136
  se.union([se.null(), se.object({ total: se.string() })])
1137
1137
  );
@@ -1140,7 +1140,7 @@ const Ui = (e) => typeof e == "object" && e !== null && "_is_widget_error" in e
1140
1140
  throw new W("Error fetching balance", { cause: r });
1141
1141
  }
1142
1142
  };
1143
- function ur(e) {
1143
+ function dr(e) {
1144
1144
  const { ctx: t } = _(), { isNativeNearDeposit: r } = z(), s = t.sourceToken?.contractAddress, n = t.quote?.amountIn ?? t.sourceTokenAmount;
1145
1145
  return {
1146
1146
  make: async (c, l) => {
@@ -1247,10 +1247,10 @@ function ur(e) {
1247
1247
  });
1248
1248
  try {
1249
1249
  const [i, f] = await Promise.all([
1250
- Kn({
1250
+ $n({
1251
1251
  contractId: s
1252
1252
  }),
1253
- dr({
1253
+ cr({
1254
1254
  contractId: s,
1255
1255
  accountId: c
1256
1256
  })
@@ -1301,13 +1301,13 @@ function ur(e) {
1301
1301
  }
1302
1302
  };
1303
1303
  }
1304
- const mr = ({
1304
+ const ur = ({
1305
1305
  makeTransfer: e,
1306
1306
  providers: t
1307
1307
  }) => {
1308
- const { ctx: r } = _(), { alchemyApiKey: s } = y(), { make: n } = Hn({
1308
+ const { ctx: r } = _(), { alchemyApiKey: s } = y(), { make: n } = Kn({
1309
1309
  provider: t?.evm
1310
- }), { make: a } = Gn({
1310
+ }), { make: a } = Hn({
1311
1311
  provider: t?.sol,
1312
1312
  alchemyApiKey: s
1313
1313
  }), c = (d) => {
@@ -1375,7 +1375,7 @@ const mr = ({
1375
1375
  const T = i instanceof Error && Ae(i.message);
1376
1376
  if (T)
1377
1377
  return;
1378
- throw mn.isAxiosError(i) ? (f = i.response?.data?.detail ?? i.message ?? "Failed to make deposit. Please try again.", new g({
1378
+ throw un.isAxiosError(i) ? (f = i.response?.data?.detail ?? i.message ?? "Failed to make deposit. Please try again.", new g({
1379
1379
  code: "QUOTE_ERROR",
1380
1380
  meta: { message: f }
1381
1381
  })) : f === "No quotes found" ? new g({
@@ -1390,7 +1390,7 @@ const mr = ({
1390
1390
  }
1391
1391
  } };
1392
1392
  };
1393
- class fr {
1393
+ class mr {
1394
1394
  constructor(t, r) {
1395
1395
  this.account = t, this.provider = r;
1396
1396
  }
@@ -1419,10 +1419,10 @@ class fr {
1419
1419
  };
1420
1420
  }
1421
1421
  }
1422
- const pr = ({
1422
+ const fr = ({
1423
1423
  walletAddress: e,
1424
1424
  getProvider: t
1425
- }) => jn({
1425
+ }) => Gn({
1426
1426
  accountId: e,
1427
1427
  signMessage: async (r) => {
1428
1428
  const s = t();
@@ -1446,7 +1446,7 @@ const pr = ({
1446
1446
  signature: n.signature
1447
1447
  };
1448
1448
  }
1449
- }), Tr = (e, t) => {
1449
+ }), pr = (e, t) => {
1450
1450
  if (t) {
1451
1451
  if (e.sendAddress)
1452
1452
  return e.sendAddress;
@@ -1461,7 +1461,7 @@ const pr = ({
1461
1461
  meta: { message: "Quote is required for intents non-direct transfer" }
1462
1462
  });
1463
1463
  return e.quote.depositAddress;
1464
- }, hr = async (e, t) => {
1464
+ }, Tr = async (e, t) => {
1465
1465
  let r = Me.getItem("nearWalletsPk")[t];
1466
1466
  if (!e.signMessage)
1467
1467
  throw new g({
@@ -1473,7 +1473,7 @@ const pr = ({
1473
1473
  const a = await e.signMessage({
1474
1474
  message: "Authenticate",
1475
1475
  recipient: "intents.near",
1476
- nonce: Oe.from(es(32))
1476
+ nonce: Oe.from(Jn(32))
1477
1477
  });
1478
1478
  if (!a)
1479
1479
  throw new g({
@@ -1493,7 +1493,7 @@ const pr = ({
1493
1493
  walletAddress: t,
1494
1494
  addressType: "near"
1495
1495
  });
1496
- if (!await ns({
1496
+ if (!await ts({
1497
1497
  contractId: ke,
1498
1498
  methodName: "has_public_key",
1499
1499
  args: {
@@ -1527,7 +1527,7 @@ const pr = ({
1527
1527
  meta: { message: "Unable to add public key to intents account" }
1528
1528
  });
1529
1529
  }
1530
- }, gr = ({ providers: e }) => {
1530
+ }, hr = ({ providers: e }) => {
1531
1531
  const { ctx: t } = _(), { appName: r, intentsAccountType: s } = y(), {
1532
1532
  isNativeNearDeposit: n,
1533
1533
  isDirectNearTokenWithdrawal: a,
@@ -1567,7 +1567,7 @@ const pr = ({
1567
1567
  code: "TRANSFER_INVALID_INITIAL",
1568
1568
  meta: { message: "No EVM provider configured" }
1569
1569
  });
1570
- i = new fr(
1570
+ i = new mr(
1571
1571
  { walletAddress: t.walletAddress },
1572
1572
  e.evm
1573
1573
  );
@@ -1578,7 +1578,7 @@ const pr = ({
1578
1578
  code: "TRANSFER_INVALID_INITIAL",
1579
1579
  meta: { message: "No SOL provider configured" }
1580
1580
  });
1581
- i = new ts(
1581
+ i = new es(
1582
1582
  { walletAddress: t.walletAddress },
1583
1583
  e.sol
1584
1584
  );
@@ -1589,7 +1589,7 @@ const pr = ({
1589
1589
  code: "TRANSFER_INVALID_INITIAL",
1590
1590
  meta: { message: "No NEAR provider configured" }
1591
1591
  });
1592
- await hr(e.near(), t.walletAddress), i = pr({
1592
+ await Tr(e.near(), t.walletAddress), i = fr({
1593
1593
  walletAddress: t.walletAddress,
1594
1594
  getProvider: e.near
1595
1595
  });
@@ -1598,15 +1598,15 @@ const pr = ({
1598
1598
  default:
1599
1599
  Ee(s);
1600
1600
  }
1601
- const f = new zn({ referral: ct(r) });
1601
+ const f = new jn({ referral: ct(r) });
1602
1602
  f.setIntentSigner(i);
1603
1603
  let T;
1604
- n ? T = void 0 : a ? T = Yn(d ?? void 0) : c ? T = void 0 : T = Zn();
1604
+ n ? T = void 0 : a ? T = zn(d ?? void 0) : c ? T = void 0 : T = Yn();
1605
1605
  const I = f.createWithdrawal({
1606
1606
  withdrawalParams: {
1607
1607
  assetId: t.sourceToken.assetId,
1608
1608
  amount: BigInt(t.sourceTokenAmount),
1609
- destinationAddress: Tr(
1609
+ destinationAddress: pr(
1610
1610
  t,
1611
1611
  a || c
1612
1612
  ),
@@ -1622,11 +1622,11 @@ const pr = ({
1622
1622
  const w = await I.waitForIntentSettlement();
1623
1623
  return await I.waitForWithdrawalCompletion(), {
1624
1624
  hash: w.hash,
1625
- transactionLink: ss(en.near, w.hash),
1625
+ transactionLink: ns(Jt.near, w.hash),
1626
1626
  intent: m
1627
1627
  };
1628
1628
  } catch (m) {
1629
- if (b.error("[TRANSFER ERROR]", m), m instanceof Xn)
1629
+ if (b.error("[TRANSFER ERROR]", m), m instanceof Zn)
1630
1630
  throw new g({
1631
1631
  code: "MIN_WITHDRAWAL_AMOUNT_ERROR",
1632
1632
  meta: {
@@ -1636,7 +1636,7 @@ const pr = ({
1636
1636
  )
1637
1637
  }
1638
1638
  });
1639
- if (m instanceof Jn)
1639
+ if (m instanceof Xn)
1640
1640
  throw new g({
1641
1641
  code: "TRANSFER_INVALID_INITIAL",
1642
1642
  meta: { message: "Fee is above the maximum allowed" }
@@ -1654,7 +1654,7 @@ const pr = ({
1654
1654
  });
1655
1655
  }
1656
1656
  } };
1657
- }, Ir = ({
1657
+ }, gr = ({
1658
1658
  message: e,
1659
1659
  providers: t,
1660
1660
  makeTransfer: r
@@ -1663,10 +1663,10 @@ const pr = ({
1663
1663
  isDirectTokenOnNearDeposit: n,
1664
1664
  isDirectTokenOnNearTransfer: a,
1665
1665
  isNativeNearDeposit: c
1666
- } = z(), { make: l } = gr({ providers: t }), { make: d } = mr({
1666
+ } = z(), { make: l } = hr({ providers: t }), { make: d } = ur({
1667
1667
  makeTransfer: r,
1668
1668
  providers: t
1669
- }), { make: u } = ur(
1669
+ }), { make: u } = dr(
1670
1670
  t?.near
1671
1671
  );
1672
1672
  return { make: async () => {
@@ -1713,19 +1713,19 @@ const pr = ({
1713
1713
  }
1714
1714
  return p("transferSetStatus", { status: "success" }), O("transfer_success"), f;
1715
1715
  } };
1716
- }, wr = async (e) => {
1716
+ }, Ir = async (e) => {
1717
1717
  if (!e)
1718
1718
  return;
1719
1719
  const t = await e.request({
1720
1720
  method: "eth_chainId"
1721
1721
  });
1722
1722
  return parseInt(t, 16);
1723
- }, kr = ({ providers: e }) => {
1723
+ }, wr = ({ providers: e }) => {
1724
1724
  const { ctx: t } = _(), [r, s] = re(!1), [n, a] = re(!1), c = Te(async () => {
1725
1725
  const d = typeof e?.evm == "function" ? await e.evm() : e?.evm;
1726
1726
  if (!t.sourceToken || !d)
1727
1727
  return !1;
1728
- const u = await wr(d);
1728
+ const u = await Ir(d);
1729
1729
  if (!Q(t.sourceToken.blockchain))
1730
1730
  return !1;
1731
1731
  const i = he[t.sourceToken.blockchain];
@@ -1738,7 +1738,7 @@ const pr = ({
1738
1738
  if (!u)
1739
1739
  return !1;
1740
1740
  try {
1741
- return s(!0), await rs(u, d), !0;
1741
+ return s(!0), await ss(u, d), !0;
1742
1742
  } catch (i) {
1743
1743
  return b.error("Failed to switch chain:", i), !1;
1744
1744
  } finally {
@@ -1774,7 +1774,7 @@ const pr = ({
1774
1774
  if (e.error?.code === "QUOTE_AMOUNT_IS_TOO_LOW" || e.error?.code === "MIN_WITHDRAWAL_AMOUNT_ERROR")
1775
1775
  return /* @__PURE__ */ h("div", { className: "gap-sw-md flex flex-col", children: [
1776
1776
  /* @__PURE__ */ o(A, { state: "error", ...N, children: t("submit.error.amountTooLow.label", "Amount is too low") }),
1777
- /* @__PURE__ */ o(K, { children: /* @__PURE__ */ h(Gt, { i18nKey: "submit.error.amountTooLow.message", children: [
1777
+ /* @__PURE__ */ o(K, { children: /* @__PURE__ */ h(Ht, { i18nKey: "submit.error.amountTooLow.message", children: [
1778
1778
  "Amount you entered is very low. Please try increasing it",
1779
1779
  " ",
1780
1780
  /* @__PURE__ */ h("span", { className: "text-nowrap", children: [
@@ -1824,19 +1824,19 @@ const pr = ({
1824
1824
  ] });
1825
1825
  if (e.error?.code === "SOURCE_BALANCE_INSUFFICIENT")
1826
1826
  return /* @__PURE__ */ o(A, { state: "error", ...N, children: t("submit.error.insufficientBalance", "Insufficient balance") });
1827
- }, Ar = ({ onClick: e }) => {
1827
+ }, kr = ({ onClick: e }) => {
1828
1828
  const { t } = V();
1829
1829
  return /* @__PURE__ */ o(A, { state: "disabled", ...N, onClick: e, children: t("submit.error.connectWallet", "Connect wallet") });
1830
- }, Sr = () => {
1830
+ }, Ar = () => {
1831
1831
  const { ctx: e } = _();
1832
1832
  return Fe(e) ?? null;
1833
- }, Nr = (e) => {
1833
+ }, Sr = (e) => {
1834
1834
  const { providers: t, makeTransfer: r, onSuccess: s } = e, { ctx: n } = _(), { t: a } = V(), {
1835
1835
  isNativeNearDeposit: c,
1836
1836
  isDirectNonNearWithdrawal: l,
1837
1837
  isDirectTokenOnNearDeposit: d,
1838
1838
  isDirectNearTokenWithdrawal: u
1839
- } = z(), { make: i } = Ir({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: f, switchChain: T, isSwitchingChain: I } = kr({ providers: t }), m = Fe(n), w = async () => {
1839
+ } = z(), { make: i } = gr({ providers: t, makeTransfer: r }), { isSwitchingChainRequired: f, switchChain: T, isSwitchingChain: I } = wr({ providers: t }), m = Fe(n), w = async () => {
1840
1840
  if (f && !await T())
1841
1841
  return;
1842
1842
  const S = await i();
@@ -1877,18 +1877,18 @@ const pr = ({
1877
1877
  }
1878
1878
  })() })
1879
1879
  ] }) : n.quoteStatus === "pending" ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: n.quote ? a("submit.pending.quote.refreshing", "Refreshing quote") : a("submit.pending.quote.finalizing", "Finalizing quote") }) : n.error ? /* @__PURE__ */ o(A, { state: "disabled", ...N, children: e.label }) : !n.quote && !l && !d && !u && !c ? /* @__PURE__ */ o(A, { state: "disabled", ...N, children: e.label }) : /* @__PURE__ */ o(A, { ...N, onClick: w, children: e.label });
1880
- }, _r = (e) => {
1880
+ }, Nr = (e) => {
1881
1881
  const { t } = V(), { ctx: r } = _(), s = Fe(r);
1882
- return r.isDepositFromExternalWallet ? ne(r.sourceTokenAmount) ? r.externalDepositTxReceived ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.processing", "Processing") }) : /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.waiting", "Waiting for transaction") }) : /* @__PURE__ */ o(A, { ...N, state: "disabled", children: t("submit.disabled.enterAmount", "Enter amount") }) : s || /* @__PURE__ */ o(Nr, { ...e });
1883
- }, yr = (e) => {
1882
+ return r.isDepositFromExternalWallet ? ne(r.sourceTokenAmount) ? r.externalDepositTxReceived ? /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.processing", "Processing") }) : /* @__PURE__ */ o(A, { state: "loading", ...N, children: t("submit.pending.externalDeposit.waiting", "Waiting for transaction") }) : /* @__PURE__ */ o(A, { ...N, state: "disabled", children: t("submit.disabled.enterAmount", "Enter amount") }) : s || /* @__PURE__ */ o(Sr, { ...e });
1883
+ }, _r = (e) => {
1884
1884
  const { ctx: t } = _(), r = y();
1885
- return t.walletAddress ? /* @__PURE__ */ o(_r, { ...e }) : /* @__PURE__ */ o(Ar, { onClick: r.onWalletSignin });
1885
+ return t.walletAddress ? /* @__PURE__ */ o(Nr, { ...e }) : /* @__PURE__ */ o(kr, { onClick: r.onWalletSignin });
1886
1886
  };
1887
- yr.Error = Sr;
1888
- const br = ({ className: e }) => {
1887
+ _r.Error = Ar;
1888
+ const yr = ({ className: e }) => {
1889
1889
  const { t } = V(), { slippageTolerance: r } = y(), { ctx: s } = _(), n = s.sourceToken && s.targetToken && s.sourceToken.price / s.targetToken.price;
1890
1890
  return s.sourceToken ? /* @__PURE__ */ o(
1891
- as,
1891
+ rs,
1892
1892
  {
1893
1893
  expandedByDefault: !1,
1894
1894
  expandedHeightPx: s.walletAddress ? 80 : 50,
@@ -1898,7 +1898,7 @@ const br = ({ className: e }) => {
1898
1898
  title: s.sourceToken && s.targetToken ? /* @__PURE__ */ h("span", { style: { borderBottomWidth: "2px", borderStyle: "dotted" }, children: [
1899
1899
  `1 ${s.sourceToken.symbol} ≈ `,
1900
1900
  " ",
1901
- os(n ?? 0),
1901
+ as(n ?? 0),
1902
1902
  " ",
1903
1903
  `${s.targetToken.symbol}`,
1904
1904
  /* @__PURE__ */ o("span", { className: "text-sw-gray-50", children: ` (${Qe(s.sourceToken.price)})` })
@@ -1927,21 +1927,21 @@ const br = ({ className: e }) => {
1927
1927
  ] })
1928
1928
  }
1929
1929
  ) : /* @__PURE__ */ o(It, {});
1930
- }, Wi = Object.assign(br, {
1930
+ }, Pi = Object.assign(yr, {
1931
1931
  Skeleton: It
1932
- }), Er = ({
1932
+ }), br = ({
1933
1933
  token: e,
1934
1934
  balance: t,
1935
1935
  isNotSufficient: r = !1,
1936
1936
  onClick: s
1937
1937
  }) => {
1938
1938
  const n = y();
1939
- return !e.isIntent && !n.walletSupportedChains.includes(e.blockchain) ? /* @__PURE__ */ o("span", {}) : t === void 0 ? /* @__PURE__ */ o(ls, { width: 100 }) : /* @__PURE__ */ o(
1939
+ return !e.isIntent && !n.walletSupportedChains.includes(e.blockchain) ? /* @__PURE__ */ o("span", {}) : t === void 0 ? /* @__PURE__ */ o(is, { width: 100 }) : /* @__PURE__ */ o(
1940
1940
  "span",
1941
1941
  {
1942
1942
  onClick: t ? s : void 0,
1943
1943
  style: t ? { borderBottomWidth: "2px", borderStyle: "dotted" } : void 0,
1944
- className: is("text-sw-label-sm", {
1944
+ className: os("text-sw-label-sm", {
1945
1945
  "text-sw-status-error": r,
1946
1946
  "text-sw-gray-100": !r,
1947
1947
  "cursor-pointer": !!t && !!s
@@ -1967,10 +1967,10 @@ const br = ({ className: e }) => {
1967
1967
  heading: d,
1968
1968
  onMsg: u
1969
1969
  }) => {
1970
- const i = Wt(), { ctx: f } = _(), { t: T } = V(), { hideTokenInputHeadings: I } = y(), m = ds(e, r, n), w = (S) => {
1970
+ const i = Pt(), { ctx: f } = _(), { t: T } = V(), { hideTokenInputHeadings: I } = y(), m = cs(e, r, n), w = (S) => {
1971
1971
  u({
1972
1972
  type: "on_change_amount",
1973
- amount: cs(t, e.decimals, S)
1973
+ amount: ls(t, e.decimals, S)
1974
1974
  });
1975
1975
  };
1976
1976
  return /* @__PURE__ */ h(ie, { className: "flex flex-col", "aria-label": d, children: [
@@ -1984,11 +1984,11 @@ const br = ({ className: e }) => {
1984
1984
  ),
1985
1985
  children: [
1986
1986
  /* @__PURE__ */ o(
1987
- ms,
1987
+ us,
1988
1988
  {
1989
1989
  value: r,
1990
1990
  name: i,
1991
- setValue: us,
1991
+ setValue: ds,
1992
1992
  placeholder: "0",
1993
1993
  state: a === "default" || a === "disabled" ? a : "error",
1994
1994
  onChange: (S) => {
@@ -2042,7 +2042,7 @@ const br = ({ className: e }) => {
2042
2042
  ] }),
2043
2043
  /* @__PURE__ */ h("div", { className: "gap-sw-sm flex items-center", children: [
2044
2044
  e && !!f.walletAddress && c && /* @__PURE__ */ o(
2045
- Er,
2045
+ br,
2046
2046
  {
2047
2047
  token: e,
2048
2048
  balance: t,
@@ -2050,7 +2050,7 @@ const br = ({ className: e }) => {
2050
2050
  onClick: () => w(1)
2051
2051
  }
2052
2052
  ),
2053
- !!t && c && l && /* @__PURE__ */ h(Lt, { children: [
2053
+ !!t && c && l && /* @__PURE__ */ h(Ft, { children: [
2054
2054
  /* @__PURE__ */ o(
2055
2055
  $e,
2056
2056
  {
@@ -2114,7 +2114,7 @@ const br = ({ className: e }) => {
2114
2114
  ]
2115
2115
  }
2116
2116
  );
2117
- }, Dt = (e) => {
2117
+ }, vt = (e) => {
2118
2118
  const { mergedBalance: t } = ce(), [r, s] = re(
2119
2119
  e ? t[G(e)] : void 0
2120
2120
  );
@@ -2134,7 +2134,7 @@ const br = ({ className: e }) => {
2134
2134
  n && clearTimeout(n);
2135
2135
  };
2136
2136
  }, [e, t]), r;
2137
- }, xt = (e, t) => {
2137
+ }, Dt = (e, t) => {
2138
2138
  const { tokens: r } = P(e), s = Array.from(
2139
2139
  new Set(r.map((n) => n.assetId))
2140
2140
  );
@@ -2142,14 +2142,14 @@ const br = ({ className: e }) => {
2142
2142
  const n = s.length === 1 ? r[0] : null;
2143
2143
  n && t({ type: "on_select_token", token: n });
2144
2144
  }, [r]);
2145
- }, Rr = ({
2145
+ }, Er = ({
2146
2146
  onMsg: e,
2147
2147
  isChanging: t = !0,
2148
2148
  showBalance: r = !0,
2149
2149
  heading: s
2150
2150
  }) => {
2151
- const { ctx: n } = _(), a = Dt(n.sourceToken);
2152
- xt("source", e);
2151
+ const { ctx: n } = _(), a = vt(n.sourceToken);
2152
+ Dt("source", e);
2153
2153
  const c = v(() => {
2154
2154
  if (!t && n.quoteStatus === "pending")
2155
2155
  return "disabled";
@@ -2173,13 +2173,13 @@ const br = ({ className: e }) => {
2173
2173
  onMsg: e
2174
2174
  }
2175
2175
  ) : /* @__PURE__ */ o(Be, { heading: s, onMsg: e });
2176
- }, Cr = ({
2176
+ }, Rr = ({
2177
2177
  isChanging: e = !1,
2178
2178
  onMsg: t,
2179
2179
  heading: r
2180
2180
  }) => {
2181
- const { ctx: s } = _(), { usdTradeDelta: n } = z(), a = Dt(s.targetToken);
2182
- xt("target", t);
2181
+ const { ctx: s } = _(), { usdTradeDelta: n } = z(), a = vt(s.targetToken);
2182
+ Dt("target", t);
2183
2183
  const c = v(() => !e && s.quoteStatus === "pending" ? "disabled" : "default", [e, s.quoteStatus]);
2184
2184
  return s.targetToken ? /* @__PURE__ */ o(
2185
2185
  Le,
@@ -2196,11 +2196,11 @@ const br = ({ className: e }) => {
2196
2196
  onMsg: t
2197
2197
  }
2198
2198
  ) : /* @__PURE__ */ o(Be, { heading: r, onMsg: t });
2199
- }, vr = ({ token: e, heading: t, ...r }) => e ? /* @__PURE__ */ o(Le, { ...r, token: e, heading: t }) : /* @__PURE__ */ o(Be, { onMsg: r.onMsg, heading: t }), Mi = Object.assign(vr, {
2200
- Skeleton: fs,
2201
- Source: Rr,
2202
- Target: Cr
2203
- }), Ze = 58, Ot = ({
2199
+ }, Cr = ({ token: e, heading: t, ...r }) => e ? /* @__PURE__ */ o(Le, { ...r, token: e, heading: t }) : /* @__PURE__ */ o(Be, { onMsg: r.onMsg, heading: t }), Wi = Object.assign(Cr, {
2200
+ Skeleton: ms,
2201
+ Source: Er,
2202
+ Target: Rr
2203
+ }), Ze = 58, xt = ({
2204
2204
  token: e,
2205
2205
  balance: t,
2206
2206
  showBalance: r = !0,
@@ -2208,7 +2208,7 @@ const br = ({ className: e }) => {
2208
2208
  className: n,
2209
2209
  onMsg: a
2210
2210
  }) => {
2211
- const { ctx: c } = _(), { walletSupportedChains: l, appName: d } = y(), u = ps(t, e), i = l.includes(e.blockchain) || e.isIntent, f = t !== "0" && t !== 0 && t !== void 0;
2211
+ const { ctx: c } = _(), { walletSupportedChains: l, appName: d } = y(), u = fs(t, e), i = l.includes(e.blockchain) || e.isIntent, f = t !== "0" && t !== 0 && t !== void 0;
2212
2212
  return /* @__PURE__ */ o("li", { className: "list-none group", children: /* @__PURE__ */ h(
2213
2213
  "div",
2214
2214
  {
@@ -2268,7 +2268,7 @@ const br = ({ className: e }) => {
2268
2268
  // NEAR (bsc)
2269
2269
  "nep141:eth-0xe0f63a424a4439cbe457d80e4f4b51ad25b2c56c.omft.near"
2270
2270
  // SPX (eth)
2271
- ], Dr = () => {
2271
+ ], vr = () => {
2272
2272
  const { tokens: e } = P();
2273
2273
  return {
2274
2274
  uniqueIntentsTokens: v(() => {
@@ -2278,20 +2278,20 @@ const br = ({ className: e }) => {
2278
2278
  return [...t, ...s];
2279
2279
  }, [e])
2280
2280
  };
2281
- }, xr = ({
2281
+ }, Dr = ({
2282
2282
  variant: e,
2283
2283
  search: t,
2284
2284
  selectedChain: r,
2285
2285
  chainsFilter: s,
2286
2286
  walletSupportedChains: n
2287
2287
  }) => {
2288
- Ks(e);
2289
- const { tokens: a } = P(e), { mergedBalance: c } = ce(), { intentBalances: l } = le(), { uniqueIntentsTokens: d } = Dr(), u = gs(
2288
+ $s(e);
2289
+ const { tokens: a } = P(e), { mergedBalance: c } = ce(), { intentBalances: l } = le(), { uniqueIntentsTokens: d } = vr(), u = hs(
2290
2290
  c,
2291
2291
  n,
2292
2292
  t
2293
- ), i = a.filter(Is({ search: t })).filter(
2294
- ws({
2293
+ ), i = a.filter(gs({ search: t })).filter(
2294
+ Is({
2295
2295
  selectedChain: r,
2296
2296
  chainsFilter: s,
2297
2297
  walletSupportedChains: n,
@@ -2304,7 +2304,7 @@ const br = ({ className: e }) => {
2304
2304
  intents: i.filter(Ke({ isIntent: !0 })).sort(u),
2305
2305
  wallet: i.filter(Ke({ isIntent: !1 })).sort(u)
2306
2306
  };
2307
- }, Or = (e, t) => e.length === 0 && t ? "EMPTY_SEARCH" : e.length === 0 && !t ? "NO_TOKENS" : "HAS_TOKENS", Fr = ({
2307
+ }, xr = (e, t) => e.length === 0 && t ? "EMPTY_SEARCH" : e.length === 0 && !t ? "NO_TOKENS" : "HAS_TOKENS", Or = ({
2308
2308
  variant: e,
2309
2309
  search: t,
2310
2310
  className: r,
@@ -2315,13 +2315,13 @@ const br = ({ className: e }) => {
2315
2315
  chainIsNotSupported: l,
2316
2316
  onMsg: d
2317
2317
  }) => {
2318
- const { t: u } = V(), { ctx: i } = _(), { walletSupportedChains: f, appName: T } = y(), { mergedBalance: I } = ce(), m = xr({
2318
+ const { t: u } = V(), { ctx: i } = _(), { walletSupportedChains: f, appName: T } = y(), { mergedBalance: I } = ce(), m = Dr({
2319
2319
  variant: e,
2320
2320
  search: t,
2321
2321
  chainsFilter: a,
2322
2322
  selectedChain: c,
2323
2323
  walletSupportedChains: f
2324
- }), w = i.walletAddress ? s : !1, S = Or(m.all, t), E = v(
2324
+ }), w = i.walletAddress ? s : !1, S = xr(m.all, t), E = v(
2325
2325
  () => [{ label: null, tokens: m.all }],
2326
2326
  [m.all]
2327
2327
  ), B = v(
@@ -2356,7 +2356,7 @@ const br = ({ className: e }) => {
2356
2356
  );
2357
2357
  case "HAS_TOKENS":
2358
2358
  return /* @__PURE__ */ o("div", { className: H("gap-sw-lg flex flex-col", r), children: /* @__PURE__ */ o(
2359
- Ts,
2359
+ ps,
2360
2360
  {
2361
2361
  className: "hide-scrollbar",
2362
2362
  style: {
@@ -2365,15 +2365,15 @@ const br = ({ className: e }) => {
2365
2365
  height: F ? F * Ze + (w ? B.length * 62 : 0) : Ze * 2
2366
2366
  },
2367
2367
  children: (w ? B : E).map(
2368
- ({ label: k, tokens: x }) => /* @__PURE__ */ h(Mt, { children: [
2368
+ ({ label: k, tokens: x }) => /* @__PURE__ */ h(Wt, { children: [
2369
2369
  x.length && k ? /* @__PURE__ */ h("header", { className: "pb-sw-lg flex flex-col", children: [
2370
- /* @__PURE__ */ o(hs, {}),
2370
+ /* @__PURE__ */ o(Ts, {}),
2371
2371
  /* @__PURE__ */ o("span", { className: "text-sw-label-sm pt-sw-xl text-sw-gray-100", children: `${k} — ${x.length}` })
2372
2372
  ] }) : null,
2373
2373
  x.map((X) => {
2374
2374
  const J = G(X);
2375
2375
  return /* @__PURE__ */ o(
2376
- Ot,
2376
+ xt,
2377
2377
  {
2378
2378
  token: X,
2379
2379
  showBalance: n,
@@ -2406,10 +2406,10 @@ const br = ({ className: e }) => {
2406
2406
  }
2407
2407
  );
2408
2408
  }
2409
- }, Vi = Object.assign(Fr, {
2409
+ }, Mi = Object.assign(Or, {
2410
2410
  Placeholder: Se,
2411
- Item: Ot
2412
- }), Lr = (e, t) => {
2411
+ Item: xt
2412
+ }), Fr = (e, t) => {
2413
2413
  const r = t.assetId.substring(t.assetId.indexOf(":") + 1), s = (a) => {
2414
2414
  const c = (u) => u.replace(/(\.\d*?[1-9])0+$/, "$1").replace(/\.0+$/, ""), l = c(t.amount), d = c(
2415
2415
  a.amount.toLocaleString("en-US", {
@@ -2422,12 +2422,12 @@ const br = ({ className: e }) => {
2422
2422
  return (e.result.deposits || []).find(
2423
2423
  (a) => a.chain === t.chainId && a.account_id === t.intentsAccountId && a.address === t.depositAddress && a.near_token_id === r && n(a) && s(a)
2424
2424
  );
2425
- }, Br = {
2425
+ }, Lr = {
2426
2426
  CREDITED: ee.status.PROCESSING,
2427
2427
  PENDING: ee.status.PROCESSING,
2428
2428
  COMPLETED: ee.status.SUCCESS,
2429
2429
  FAILED: ee.status.FAILED
2430
- }, Qi = ({ depositAddress: e }) => {
2430
+ }, Vi = ({ depositAddress: e }) => {
2431
2431
  const { ctx: t } = _(), { intentsAccountType: r } = y(), [s, n] = re(null), a = te({
2432
2432
  addressType: r,
2433
2433
  walletAddress: t.walletAddress
@@ -2459,7 +2459,7 @@ const br = ({ className: e }) => {
2459
2459
  chain: i
2460
2460
  }
2461
2461
  ]
2462
- }), I = Lr(T.data, {
2462
+ }), I = Fr(T.data, {
2463
2463
  intentsAccountId: a,
2464
2464
  initiatedAtDate: f,
2465
2465
  depositAddress: e,
@@ -2468,7 +2468,7 @@ const br = ({ className: e }) => {
2468
2468
  amount: d
2469
2469
  });
2470
2470
  return I ? {
2471
- status: Br[I.status],
2471
+ status: Lr[I.status],
2472
2472
  swapDetails: {
2473
2473
  intentHashes: [""],
2474
2474
  destinationChainTxHashes: [{ hash: I.tx_hash ?? "" }]
@@ -2481,27 +2481,25 @@ const br = ({ className: e }) => {
2481
2481
  }
2482
2482
  };
2483
2483
  } };
2484
- }, qr = (e, t, r) => {
2485
- if (At) {
2486
- let s = document.body;
2487
- r instanceof HTMLElement && (s = r), Object.entries(e).forEach(([n, a]) => {
2488
- s.style.setProperty(`--c-sw-${t}-${n}`, a);
2489
- });
2490
- }
2484
+ }, Br = (e, t, r) => {
2485
+ let s = document.body;
2486
+ r instanceof HTMLElement && (s = r), Object.entries(e).forEach(([n, a]) => {
2487
+ s.style.setProperty(`--c-sw-${t}-${n}`, a);
2488
+ });
2491
2489
  }, Je = (e, t, r, s, n) => {
2492
- const a = ks(s, n, t);
2493
- a && qr(a, e, r);
2494
- }, Ur = (e, t) => {
2490
+ const a = ws(s, n, t);
2491
+ a && Br(a, e, r);
2492
+ }, qr = (e, t) => {
2495
2493
  const { primaryColor: r, surfaceColor: s, colorScheme: n = "dark" } = t;
2496
2494
  r && Je("accent", 500, e, r, n), s && Je("gray", 950, e, s, n);
2497
- }, Pr = st(void 0), Wr = ({ children: e, theme: t }) => {
2495
+ }, Ur = st(void 0), Pr = ({ children: e, theme: t }) => {
2498
2496
  const { themeParentElementSelector: r } = y(), s = v(() => t, [t]);
2499
2497
  return R(() => {
2500
- if (t && At) {
2498
+ if (t) {
2501
2499
  const n = r ? document.querySelector(r) : null;
2502
- Ur(n, t);
2500
+ qr(n, t);
2503
2501
  }
2504
- }, [t]), /* @__PURE__ */ o(Pr.Provider, { value: s, children: /* @__PURE__ */ o("div", { className: "sw", children: e }) });
2502
+ }, [t]), /* @__PURE__ */ o(Ur.Provider, { value: s, children: /* @__PURE__ */ o("div", { className: "sw", children: e }) });
2505
2503
  }, fe = ({
2506
2504
  text: e,
2507
2505
  icon: t
@@ -2524,10 +2522,10 @@ const br = ({ className: e }) => {
2524
2522
  /* @__PURE__ */ o("span", { className: "text-sw-label-md", children: e })
2525
2523
  ]
2526
2524
  }
2527
- ), Mr = ({ isSigned: e, isSigning: t, onMsg: r }) => {
2525
+ ), Wr = ({ isSigned: e, isSigning: t, onMsg: r }) => {
2528
2526
  const { t: s } = V(), n = () => r({ type: "on_close" });
2529
- St("Escape", n);
2530
- const a = Es({
2527
+ At("Escape", n);
2528
+ const a = bs({
2531
2529
  endTime: 0,
2532
2530
  autostart: !1,
2533
2531
  timerType: "DECREMENTAL",
@@ -2538,13 +2536,13 @@ const br = ({ className: e }) => {
2538
2536
  e ? a.start() : a.reset();
2539
2537
  }, [e]), /* @__PURE__ */ h(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2540
2538
  /* @__PURE__ */ o(
2541
- Nt,
2539
+ St,
2542
2540
  {
2543
2541
  onClick: n,
2544
2542
  className: "absolute top-sw-2xl right-sw-2xl"
2545
2543
  }
2546
2544
  ),
2547
- /* @__PURE__ */ o(As, { size: 48, className: "text-sw-status-warning" }),
2545
+ /* @__PURE__ */ o(ks, { size: 48, className: "text-sw-status-warning" }),
2548
2546
  /* @__PURE__ */ h("header", { className: "flex flex-col gap-sw-lg", children: [
2549
2547
  /* @__PURE__ */ o("h1", { className: "text-sw-label-lg text-sw-gray-50", children: s(
2550
2548
  "walletCompatibility.modal.title.initial",
@@ -2563,7 +2561,7 @@ const br = ({ className: e }) => {
2563
2561
  "walletCompatibility.modal.feature.secureTransactions",
2564
2562
  "Read-only signature – no gas required."
2565
2563
  ),
2566
- icon: Ss
2564
+ icon: As
2567
2565
  }
2568
2566
  ),
2569
2567
  /* @__PURE__ */ o(
@@ -2573,7 +2571,7 @@ const br = ({ className: e }) => {
2573
2571
  "walletCompatibility.modal.feature.fullAccess",
2574
2572
  "No access to your funds, no hidden permissions."
2575
2573
  ),
2576
- icon: Ns
2574
+ icon: Ss
2577
2575
  }
2578
2576
  ),
2579
2577
  /* @__PURE__ */ o(
@@ -2583,7 +2581,7 @@ const br = ({ className: e }) => {
2583
2581
  "walletCompatibility.modal.feature.fundProtection",
2584
2582
  "Only checks whether your wallet is supported."
2585
2583
  ),
2586
- icon: _s
2584
+ icon: Ns
2587
2585
  }
2588
2586
  )
2589
2587
  ] }),
@@ -2596,7 +2594,7 @@ const br = ({ className: e }) => {
2596
2594
  "Wallet verified"
2597
2595
  ),
2598
2596
  className: "bg-sw-status-success text-sw-gray-950",
2599
- icon: ys
2597
+ icon: _s
2600
2598
  }
2601
2599
  ),
2602
2600
  a.status === "RUNNING" && /* @__PURE__ */ o(
@@ -2634,17 +2632,17 @@ const br = ({ className: e }) => {
2634
2632
  )
2635
2633
  ] })
2636
2634
  ] });
2637
- }, Vr = ({ onMsg: e }) => {
2635
+ }, Mr = ({ onMsg: e }) => {
2638
2636
  const { t } = V(), r = () => e({ type: "on_close" });
2639
- return St("Escape", r), /* @__PURE__ */ h(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2637
+ return At("Escape", r), /* @__PURE__ */ h(ie, { className: "relative w-full gap-sw-2xl flex flex-col", children: [
2640
2638
  /* @__PURE__ */ o(
2641
- Nt,
2639
+ St,
2642
2640
  {
2643
2641
  onClick: r,
2644
2642
  className: "absolute top-sw-2xl right-sw-2xl"
2645
2643
  }
2646
2644
  ),
2647
- /* @__PURE__ */ o(bs, { size: 48, className: "text-sw-status-error" }),
2645
+ /* @__PURE__ */ o(ys, { size: 48, className: "text-sw-status-error" }),
2648
2646
  /* @__PURE__ */ h("header", { className: "flex flex-col gap-sw-lg", children: [
2649
2647
  /* @__PURE__ */ o("h1", { className: "text-sw-label-lg text-sw-gray-50", children: t(
2650
2648
  "walletCompatibility.modal.title.error",
@@ -2680,9 +2678,9 @@ const br = ({ className: e }) => {
2680
2678
  )
2681
2679
  ] })
2682
2680
  ] });
2683
- }, $i = Object.assign(Mr, {
2684
- Error: Vr
2685
- }), Qr = (e) => null, $r = (e) => (t) => {
2681
+ }, Qi = Object.assign(Wr, {
2682
+ Error: Mr
2683
+ }), Vr = (e) => null, Qr = (e) => (t) => {
2686
2684
  if (t instanceof W)
2687
2685
  throw t;
2688
2686
  const r = new W(
@@ -2690,48 +2688,48 @@ const br = ({ className: e }) => {
2690
2688
  { cause: t }
2691
2689
  );
2692
2690
  throw r.context = e, r;
2693
- }, Kr = ({ children: e }) => {
2691
+ }, $r = ({ children: e }) => {
2694
2692
  const { ctx: t } = _();
2695
2693
  return /* @__PURE__ */ o(
2696
- vs,
2694
+ Cs,
2697
2695
  {
2698
- FallbackComponent: Qr,
2699
- onError: $r(t),
2696
+ FallbackComponent: Vr,
2697
+ onError: Qr(t),
2700
2698
  children: e
2701
2699
  }
2702
2700
  );
2703
- }, Hr = new Kt({
2701
+ }, Kr = new $t({
2704
2702
  defaultOptions: {
2705
2703
  queries: {
2706
2704
  staleTime: 2e3 * 60,
2707
2705
  retry: tt.env.NODE_ENV === "test" ? !1 : 3
2708
2706
  }
2709
2707
  }
2710
- }), Gr = ["fms", "abg", "stjack", "noear", "testnebula"], ae = {
2708
+ }), Hr = ["fms", "abg", "stjack", "noear", "testnebula"], ae = {
2711
2709
  appName: "Unknown",
2712
2710
  slippageTolerance: 100,
2713
2711
  // 1%
2714
2712
  intentsAccountType: "evm",
2715
- walletSupportedChains: tn,
2713
+ walletSupportedChains: en,
2716
2714
  connectedWallets: {},
2717
2715
  enableAutoTokensSwitching: !0,
2718
2716
  showIntentTokens: !0,
2719
2717
  chainsOrder: ot,
2720
- filterTokens: (e) => !Gr.includes(e.symbol.toLocaleLowerCase()),
2718
+ filterTokens: (e) => !Hr.includes(e.symbol.toLocaleLowerCase()),
2721
2719
  chainsFilter: {
2722
2720
  source: { external: "wallet-supported", intents: "none" },
2723
2721
  target: { external: "all", intents: "none" }
2724
2722
  }
2725
- }, Ft = st({
2723
+ }, Ot = st({
2726
2724
  config: ae
2727
2725
  }), qe = nt({
2728
2726
  config: ae
2729
2727
  }), y = () => {
2730
- const e = Vt(Ft);
2728
+ const e = Mt(Ot);
2731
2729
  return oe(e).config;
2732
- }, jr = (e) => {
2730
+ }, Gr = (e) => {
2733
2731
  qe.config = pe(e);
2734
- }, Ki = ({
2732
+ }, $i = ({
2735
2733
  children: e,
2736
2734
  config: t,
2737
2735
  balanceViaRpc: r = !0,
@@ -2753,97 +2751,97 @@ const br = ({ className: e }) => {
2753
2751
  ...ae,
2754
2752
  ...t
2755
2753
  });
2756
- Object.assign(c.current.config, l), jr(l);
2757
- }, [t]), zt(s ?? {}), Cs("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Ht, { client: Hr, children: /* @__PURE__ */ o(jt, { i18n: Bt, children: /* @__PURE__ */ h(Ft.Provider, { value: c.current, children: [
2758
- /* @__PURE__ */ h(qt, { children: [
2759
- /* @__PURE__ */ h(Ut, { children: [
2754
+ Object.assign(c.current.config, l), Gr(l);
2755
+ }, [t]), jt(s ?? {}), Rs("headlessui-portal-root", "sw"), /* @__PURE__ */ o(Kt, { client: Kr, children: /* @__PURE__ */ o(Gt, { i18n: Lt, children: /* @__PURE__ */ h(Ot.Provider, { value: c.current, children: [
2756
+ /* @__PURE__ */ h(Bt, { children: [
2757
+ /* @__PURE__ */ h(qt, { children: [
2760
2758
  /* @__PURE__ */ o("link", { rel: "preconnect", href: "https://rsms.me/" }),
2761
2759
  /* @__PURE__ */ o("link", { rel: "stylesheet", href: "https://rsms.me/inter/inter.css" })
2762
2760
  ] }),
2763
- /* @__PURE__ */ o(Wr, { theme: a, children: tt.env.NODE_ENV === "test" ? e : /* @__PURE__ */ o(Kr, { children: e }) })
2761
+ /* @__PURE__ */ o(Pr, { theme: a, children: tt.env.NODE_ENV === "test" ? e : /* @__PURE__ */ o($r, { children: e }) })
2764
2762
  ] }),
2765
2763
  r && /* @__PURE__ */ o(
2766
- Qs,
2764
+ Vs,
2767
2765
  {
2768
- rpcs: n ?? Rs,
2766
+ rpcs: n ?? Es,
2769
2767
  connectedWallets: t.connectedWallets ?? {}
2770
2768
  }
2771
2769
  )
2772
2770
  ] }) }) });
2773
2771
  };
2774
2772
  export {
2775
- dr as $,
2776
- Qi as A,
2777
- Qs as B,
2778
- Pr as C,
2779
- Bs as D,
2773
+ cr as $,
2774
+ Vi as A,
2775
+ Vs as B,
2776
+ Ur as C,
2777
+ Ls as D,
2780
2778
  He as E,
2781
- Hs as F,
2782
- Gs as G,
2783
- js as H,
2784
- zs as I,
2785
- Xs as J,
2786
- bt as K,
2787
- Et as L,
2788
- vt as M,
2789
- Rt as N,
2790
- Ct as O,
2791
- Js as P,
2779
+ Ks as F,
2780
+ Hs as G,
2781
+ Gs as H,
2782
+ js as I,
2783
+ Zs as J,
2784
+ yt as K,
2785
+ bt as L,
2786
+ Ct as M,
2787
+ Et as N,
2788
+ Rt as O,
2789
+ Xs as P,
2792
2790
  q as Q,
2793
- er as R,
2794
- yr as S,
2795
- vr as T,
2796
- tr as U,
2797
- nr as V,
2798
- Ki as W,
2799
- sr as X,
2800
- rr as Y,
2801
- ar as Z,
2802
- or as _,
2803
- Pi as a,
2804
- ur as a0,
2805
- fr as a1,
2806
- pr as a2,
2807
- br as a3,
2808
- Er as a4,
2791
+ Js as R,
2792
+ _r as S,
2793
+ Cr as T,
2794
+ er as U,
2795
+ tr as V,
2796
+ $i as W,
2797
+ nr as X,
2798
+ sr as Y,
2799
+ rr as Z,
2800
+ ar as _,
2801
+ Ui as a,
2802
+ dr as a0,
2803
+ mr as a1,
2804
+ fr as a2,
2805
+ yr as a3,
2806
+ br as a4,
2809
2807
  Le as a5,
2810
2808
  Be as a6,
2811
- xt as a7,
2812
- Rr as a8,
2813
- Cr as a9,
2809
+ Dt as a7,
2810
+ Er as a8,
2811
+ Rr as a9,
2814
2812
  Ze as aa,
2815
- Ot as ab,
2816
- Dr as ac,
2817
- Fr as ad,
2818
- Wr as ae,
2819
- Mr as af,
2820
- Vr as ag,
2821
- Kr as ah,
2813
+ xt as ab,
2814
+ vr as ac,
2815
+ Or as ad,
2816
+ Pr as ae,
2817
+ Wr as af,
2818
+ Mr as ag,
2819
+ $r as ah,
2822
2820
  qe as ai,
2823
2821
  _ as b,
2824
- qi as c,
2825
- Ks as d,
2826
- Ms as e,
2822
+ Bi as c,
2823
+ $s as d,
2824
+ Ws as e,
2827
2825
  le as f,
2828
- gr as g,
2829
- Zs as h,
2830
- Ir as i,
2831
- mr as j,
2826
+ hr as g,
2827
+ Ys as h,
2828
+ gr as i,
2829
+ ur as j,
2832
2830
  ce as k,
2833
- kr as l,
2834
- xr as m,
2831
+ wr as l,
2832
+ Dr as m,
2835
2833
  P as n,
2836
- Wi as o,
2837
- Mi as p,
2838
- Vi as q,
2839
- ir as r,
2840
- Dt as s,
2841
- yt as t,
2834
+ Pi as o,
2835
+ Wi as p,
2836
+ Mi as q,
2837
+ or as r,
2838
+ vt as s,
2839
+ _t as t,
2842
2840
  z as u,
2843
2841
  W as v,
2844
2842
  g as w,
2845
- Ui as x,
2843
+ qi as x,
2846
2844
  y,
2847
- $i as z
2845
+ Qi as z
2848
2846
  };
2849
- //# sourceMappingURL=config-DQMHUj5z.js.map
2847
+ //# sourceMappingURL=config-DJ258QoC.js.map