@funkit/connect 11.0.0 → 11.2.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.
Files changed (133) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/dist/clients/chunk-2576N7PQ.js +44 -0
  3. package/dist/clients/{chunk-II5CZTBC.js → chunk-3P2C436B.js} +3 -1
  4. package/dist/clients/chunk-63XTVHO3.js +19 -0
  5. package/dist/clients/chunk-6QCAWEAT.js +53 -0
  6. package/dist/clients/{chunk-6CYZKITE.js → chunk-6T6URLBM.js} +1 -1
  7. package/dist/clients/{chunk-LT4EWLDA.js → chunk-BPDLF2R6.js} +1 -0
  8. package/dist/clients/{chunk-JD2J5K6S.js → chunk-C45VNQXY.js} +161 -18
  9. package/dist/clients/chunk-DGBIV3ZS.js +36 -0
  10. package/dist/clients/{chunk-MGQLVTSH.js → chunk-FM7SFGAV.js} +27 -21
  11. package/dist/clients/{chunk-6PIIYPQK.js → chunk-IYCZWLAF.js} +5 -327
  12. package/dist/clients/{chunk-BNMZM23Q.js → chunk-JFDRLSYM.js} +3 -3
  13. package/dist/clients/chunk-PENJ5JGH.js +331 -0
  14. package/dist/clients/chunk-QQEGNLGD.js +40 -0
  15. package/dist/clients/chunk-SU3YSNMB.js +306 -0
  16. package/dist/clients/chunk-TZGKB6WY.js +160 -0
  17. package/dist/clients/{chunk-2FSEE3AW.js → chunk-UK64SY6N.js} +2 -89
  18. package/dist/clients/chunk-VIAEAD75.js +61 -0
  19. package/dist/clients/{chunk-L2KSNS7H.js → chunk-WZRW6WUM.js} +1 -1
  20. package/dist/clients/{chunk-C4SHJFOV.js → chunk-XJTRLB7W.js} +9 -9
  21. package/dist/clients/{chunk-YFHTV7DT.js → chunk-Y7WLUPTX.js} +1 -1
  22. package/dist/clients/chunk-YUZ3B2Q3.js +15 -0
  23. package/dist/clients/{chunk-2YWQL3AO.js → chunk-Z7HTQFEO.js} +26 -3
  24. package/dist/clients/fanatics.js +2 -1
  25. package/dist/clients/internal/nado/consts.d.ts +6 -0
  26. package/dist/clients/internal/nado/consts.js +5 -3
  27. package/dist/clients/internal/nado/encoding.d.ts +5 -2
  28. package/dist/clients/internal/nado/encoding.js +1 -1
  29. package/dist/clients/internal/nado/errors.d.ts +14 -1
  30. package/dist/clients/internal/nado/errors.js +7 -3
  31. package/dist/clients/internal/nado/fetch.js +2 -2
  32. package/dist/clients/internal/nado/gateway.d.ts +19 -20
  33. package/dist/clients/internal/nado/gateway.js +4 -6
  34. package/dist/clients/internal/nado/hooks.d.ts +8 -2
  35. package/dist/clients/internal/nado/hooks.js +10 -10
  36. package/dist/clients/internal/nado/indexer.js +4 -4
  37. package/dist/clients/internal/nado/typedData.js +4 -37
  38. package/dist/clients/internal/nado/withdrawalCallback.d.ts +20 -0
  39. package/dist/clients/internal/nado/withdrawalCallback.js +20 -0
  40. package/dist/clients/internal/nado/withdrawalConfig.d.ts +8 -3
  41. package/dist/clients/internal/nado/withdrawalConfig.js +7 -3
  42. package/dist/clients/internal/nado/withdrawalErrors.d.ts +14 -0
  43. package/dist/clients/internal/nado/withdrawalErrors.js +11 -0
  44. package/dist/clients/internal/nado/withdrawalForm.css +43 -35
  45. package/dist/clients/internal/nado/withdrawalForm.d.ts +9 -7
  46. package/dist/clients/internal/nado/withdrawalForm.js +81 -98
  47. package/dist/clients/internal/nado/withdrawalStatus.d.ts +41 -0
  48. package/dist/clients/internal/nado/withdrawalStatus.js +231 -0
  49. package/dist/clients/internal/nado/withdrawalTypes.d.ts +21 -7
  50. package/dist/clients/lighter.css +61 -53
  51. package/dist/clients/lighter.js +8 -7
  52. package/dist/clients/mallard.js +4 -3
  53. package/dist/clients/nado.d.ts +67 -0
  54. package/dist/clients/nado.js +73 -0
  55. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.css +103 -95
  56. package/dist/clients/polymarket/PolymarketDepositAccountDropdown.js +9 -6
  57. package/dist/clients/polymarket/createPolymarketDepositConfig.js +3 -2
  58. package/dist/clients/polymarket/index.css +103 -95
  59. package/dist/clients/polymarket/index.js +9 -6
  60. package/dist/clients/polymarket/polymarket.js +2 -1
  61. package/dist/components/Dialog/Dialog.d.ts +3 -1
  62. package/dist/components/Dialog/DialogContent.css.d.ts +6 -0
  63. package/dist/components/FunCheckbox/FunCheckbox.d.ts +3 -1
  64. package/dist/components/FunTransactionSummary/PaymentFeesSummary.d.ts +2 -1
  65. package/dist/consts/customers.d.ts +1 -1
  66. package/dist/domains/nado.d.ts +11 -2
  67. package/dist/domains/quoteMode/types.d.ts +16 -0
  68. package/dist/domains/relay.d.ts +0 -3
  69. package/dist/hooks/track/analytics/events.d.ts +85 -0
  70. package/dist/hooks/track/analytics/mappers.d.ts +8 -0
  71. package/dist/hooks/track/analytics/useDepositAnalytics.d.ts +37 -0
  72. package/dist/hooks/track/useTrack.d.ts +3 -2
  73. package/dist/hooks/useFunkitTranslation.d.ts +5 -0
  74. package/dist/hooks/useTokenAndChainDropdown.d.ts +4 -1
  75. package/dist/index.css +43 -35
  76. package/dist/index.d.ts +1 -1
  77. package/dist/index.js +4414 -3570
  78. package/dist/modals/CheckoutModal/InputAmount/InputAmount.d.ts +5 -1
  79. package/dist/modals/CheckoutModal/InputAmount/state.d.ts +13 -0
  80. package/dist/modals/CheckoutModal/InputAmount/useMeld.d.ts +4 -3
  81. package/dist/modals/CheckoutModal/InputAmount/utils.d.ts +9 -1
  82. package/dist/modals/CheckoutModal/MeldQuotes/MeldQuotes.d.ts +3 -1
  83. package/dist/modals/CheckoutModal/MeldRedirect/MeldRedirect.d.ts +4 -1
  84. package/dist/modals/CheckoutModal/SourceChange/useBottomBarCloseLabel.d.ts +7 -0
  85. package/dist/modals/WithdrawalModal/LockedReceiveDisplay.d.ts +22 -0
  86. package/dist/modals/WithdrawalModal/NadoWithdrawalSuccess.d.ts +20 -0
  87. package/dist/modals/WithdrawalModal/withdrawalFormHelpers.d.ts +18 -1
  88. package/dist/modals/WithdrawalModal/withdrawalHooks.d.ts +1 -1
  89. package/dist/providers/FunkitCheckoutContext/types.d.ts +4 -3
  90. package/dist/providers/FunkitStatsigProvider.d.ts +7 -0
  91. package/dist/providers/GeneralWalletProvider.d.ts +1 -0
  92. package/dist/utils/customer.d.ts +23 -230
  93. package/dist/utils/withdrawal.d.ts +11 -1
  94. package/dist/wallets/walletConnectors/bifrostWallet/bifrostWallet.js +2 -2
  95. package/dist/wallets/walletConnectors/bitgetWallet/bitgetWallet.js +2 -2
  96. package/dist/wallets/walletConnectors/bybitWallet/bybitWallet.js +2 -2
  97. package/dist/wallets/walletConnectors/clvWallet/clvWallet.js +2 -2
  98. package/dist/wallets/walletConnectors/coin98Wallet/coin98Wallet.js +2 -2
  99. package/dist/wallets/walletConnectors/coreWallet/coreWallet.js +2 -2
  100. package/dist/wallets/walletConnectors/foxWallet/foxWallet.js +2 -2
  101. package/dist/wallets/walletConnectors/frontierWallet/frontierWallet.js +2 -2
  102. package/dist/wallets/walletConnectors/gateWallet/gateWallet.js +2 -2
  103. package/dist/wallets/walletConnectors/index.js +33 -33
  104. package/dist/wallets/walletConnectors/metaMaskWallet/metaMaskWallet.js +2 -2
  105. package/dist/wallets/walletConnectors/okxWallet/okxWallet.js +2 -2
  106. package/dist/wallets/walletConnectors/rainbowWallet/rainbowWallet.js +2 -2
  107. package/dist/wallets/walletConnectors/roninWallet/roninWallet.js +2 -2
  108. package/dist/wallets/walletConnectors/safepalWallet/safepalWallet.js +2 -2
  109. package/dist/wallets/walletConnectors/subWallet/subWallet.js +2 -2
  110. package/dist/wallets/walletConnectors/tokenPocketWallet/tokenPocketWallet.js +2 -2
  111. package/dist/wallets/walletConnectors/trustWallet/trustWallet.js +2 -2
  112. package/dist/wallets/walletConnectors/zerionWallet/zerionWallet.js +2 -2
  113. package/package.json +4 -4
  114. package/dist/clients/chunk-SFDEST63.js +0 -18
  115. package/dist/clients/chunk-ZCCLJW6F.js +0 -99
  116. package/dist/wallets/walletConnectors/{chunk-W2LCLDPX.js → chunk-2VP2F6EK.js} +3 -3
  117. package/dist/wallets/walletConnectors/{chunk-IULPZP2Q.js → chunk-4T6ZSRJF.js} +3 -3
  118. package/dist/wallets/walletConnectors/{chunk-WAHGI5L7.js → chunk-6BW3HLBG.js} +3 -3
  119. package/dist/wallets/walletConnectors/{chunk-YO2K4MBH.js → chunk-CCQV2ZET.js} +3 -3
  120. package/dist/wallets/walletConnectors/{chunk-TKB2OY6G.js → chunk-CPI4TD43.js} +3 -3
  121. package/dist/wallets/walletConnectors/{chunk-OX37G4YT.js → chunk-F5XEEVG6.js} +3 -3
  122. package/dist/wallets/walletConnectors/{chunk-JPN6TWIT.js → chunk-HNRB7KJU.js} +3 -3
  123. package/dist/wallets/walletConnectors/{chunk-WKNQMP4A.js → chunk-HTHAK6XB.js} +3 -3
  124. package/dist/wallets/walletConnectors/{chunk-GUQM4QSL.js → chunk-MIQTHJ6X.js} +3 -3
  125. package/dist/wallets/walletConnectors/{chunk-4NV5BYRP.js → chunk-RB3HR4R2.js} +3 -3
  126. package/dist/wallets/walletConnectors/{chunk-SWFF3TWJ.js → chunk-RVOY537T.js} +3 -3
  127. package/dist/wallets/walletConnectors/{chunk-KI5Y2BBF.js → chunk-STVVP43G.js} +3 -3
  128. package/dist/wallets/walletConnectors/{chunk-OEEGYENV.js → chunk-UK7C2JXW.js} +3 -3
  129. package/dist/wallets/walletConnectors/{chunk-YQFGVZGR.js → chunk-VAPGUPHO.js} +3 -3
  130. package/dist/wallets/walletConnectors/{chunk-XCNHV3HS.js → chunk-VTM6EECM.js} +3 -3
  131. package/dist/wallets/walletConnectors/{chunk-NR2OGDHQ.js → chunk-X6CGV36L.js} +3 -3
  132. package/dist/wallets/walletConnectors/{chunk-AVDUNQUW.js → chunk-YEZM4CK4.js} +3 -3
  133. package/dist/wallets/walletConnectors/{chunk-KCRO2AGO.js → chunk-ZNX4EMPB.js} +3 -3
@@ -0,0 +1,231 @@
1
+ "use client";
2
+ import {
3
+ useFunkitConfig
4
+ } from "../../chunk-UK64SY6N.js";
5
+ import "../../chunk-YUZ3B2Q3.js";
6
+ import {
7
+ useAccount
8
+ } from "../../chunk-UPZNKPYU.js";
9
+ import "../../chunk-C45VNQXY.js";
10
+ import {
11
+ logger
12
+ } from "../../chunk-AHYOV7AV.js";
13
+
14
+ // src/clients/internal/nado/withdrawalStatus.ts
15
+ import {
16
+ getCompletionTxInfo,
17
+ processRecentDepositsForNotifications,
18
+ useRecentDepositsApiQuery
19
+ } from "@funkit/connect-core";
20
+ import { isEVMAddressEquivalent } from "@funkit/utils";
21
+ import { useEffect, useMemo, useRef, useState } from "react";
22
+ import { zeroHash } from "viem";
23
+
24
+ // src/hooks/useCheckoutDirectExecutionHistory.ts
25
+ import {
26
+ CheckoutRefundState,
27
+ CheckoutState,
28
+ RelayExecutionStatus
29
+ } from "@funkit/api-base";
30
+ import { mapRelayExecutionStatusToCheckoutState } from "@funkit/connect-core";
31
+
32
+ // src/utils/across.ts
33
+ var ACROSS_DELAYED_AUTO_TRIGGER_CUTOFF = 60 * 5;
34
+ function isAcrossRoute(metadata) {
35
+ return !!metadata?.across?.enabled;
36
+ }
37
+
38
+ // src/hooks/useDirectExecutionInfoPolling.ts
39
+ import {
40
+ getDirectExecutionByTxHash
41
+ } from "@funkit/api-base";
42
+ import { RELAY_TERMINAL_STATUSES } from "@funkit/fun-relay";
43
+ import { useQuery } from "@tanstack/react-query";
44
+ var RELAY_FETCH_INTERVAL = 1500;
45
+ var logPrefix = "useDirectExecutionInfoPolling";
46
+ function useDirectExecutionInfoPolling({
47
+ initDirectExecution,
48
+ disabled = false
49
+ }) {
50
+ const { apiKey } = useFunkitConfig();
51
+ const { data: directExecution, isLoading } = useQuery({
52
+ queryKey: [logPrefix, initDirectExecution?.txHash],
53
+ queryFn: async () => {
54
+ try {
55
+ const data = await getDirectExecutionByTxHash({
56
+ apiKey,
57
+ logger,
58
+ txHash: initDirectExecution?.txHash
59
+ // query is disabled if txHash not present
60
+ });
61
+ logger.log(`${logPrefix}:response`, data);
62
+ return data;
63
+ } catch (error) {
64
+ logger.error(`${logPrefix}:error`, error);
65
+ throw error;
66
+ }
67
+ },
68
+ refetchOnWindowFocus: false,
69
+ refetchInterval: (query) => {
70
+ const latestData = query.state.data;
71
+ if (latestData) {
72
+ const status = latestData.listenerInfo?.status || null;
73
+ if (status && RELAY_TERMINAL_STATUSES.includes(status)) {
74
+ return 0;
75
+ }
76
+ }
77
+ return RELAY_FETCH_INTERVAL;
78
+ },
79
+ initialData: initDirectExecution,
80
+ enabled: !disabled && !!initDirectExecution?.txHash && initDirectExecution.txHash !== "0x"
81
+ });
82
+ return {
83
+ directExecution,
84
+ isLoading
85
+ };
86
+ }
87
+
88
+ // src/hooks/useCheckoutDirectExecutionHistory.ts
89
+ function mapRelayExecutionStatusToRefundState(status) {
90
+ switch (status) {
91
+ case RelayExecutionStatus.REFUND:
92
+ return CheckoutRefundState.REFUNDED;
93
+ default:
94
+ return void 0;
95
+ }
96
+ }
97
+ function useCheckoutDirectExecutionHistory({
98
+ initDirectExecution,
99
+ disabled = false
100
+ }) {
101
+ const { directExecution } = useDirectExecutionInfoPolling({
102
+ initDirectExecution,
103
+ disabled
104
+ });
105
+ const status = directExecution?.listenerInfo?.status ?? RelayExecutionStatus.PENDING;
106
+ const latestQuote = directExecution?.clientMetadata.latestQuote;
107
+ const state = mapRelayExecutionStatusToCheckoutState(status);
108
+ const refundState = mapRelayExecutionStatusToRefundState(status);
109
+ const isDelayed = status === RelayExecutionStatus.DELAYED;
110
+ return {
111
+ state,
112
+ refundState,
113
+ isAcross: isAcrossRoute(latestQuote?.baseQuote.metadata),
114
+ isLayerZero: latestQuote && !!latestQuote.baseQuote.metadata?.oftEnabled,
115
+ isRefunded: refundState === CheckoutRefundState.REFUNDED,
116
+ isCompleted: state === CheckoutState.COMPLETED,
117
+ isFailed: state === CheckoutState.CHECKOUT_ERROR,
118
+ isDelayed,
119
+ isProcessing: state === CheckoutState.PENDING_RECEIVAL,
120
+ directExecution
121
+ };
122
+ }
123
+
124
+ // src/clients/internal/nado/withdrawalStatus.ts
125
+ var RECENT_DIRECT_EXECUTION_SCAN_SIZE = 5;
126
+ function useNadoWithdrawalStatus({
127
+ depositAddress,
128
+ pollIntervalMs
129
+ }) {
130
+ const { apiKey } = useFunkitConfig();
131
+ const { address: walletAddress } = useAccount();
132
+ const [hasSettled, setHasSettled] = useState(false);
133
+ const { data: recentDirectExecutions } = useRecentDepositsApiQuery({
134
+ isVisible: !hasSettled && !!depositAddress,
135
+ fetchSize: RECENT_DIRECT_EXECUTION_SCAN_SIZE,
136
+ apiKey,
137
+ userId: walletAddress ?? "",
138
+ refreshIntervalMs: pollIntervalMs,
139
+ logger
140
+ });
141
+ const mergedDirectExecutions = useMemo(
142
+ () => processRecentDepositsForNotifications(recentDirectExecutions),
143
+ [recentDirectExecutions]
144
+ );
145
+ const [knownTxHashes, setKnownTxHashes] = useState();
146
+ useEffect(() => {
147
+ if (!knownTxHashes && mergedDirectExecutions) {
148
+ setKnownTxHashes(
149
+ new Set(mergedDirectExecutions.map(({ txHash }) => txHash))
150
+ );
151
+ }
152
+ }, [knownTxHashes, mergedDirectExecutions]);
153
+ const ourDirectExecution = knownTxHashes ? findDirectExecutionForDepositAddress(
154
+ mergedDirectExecutions,
155
+ depositAddress,
156
+ knownTxHashes
157
+ ) : void 0;
158
+ const latestStep = ourDirectExecution?.latestStep ?? ourDirectExecution;
159
+ const isFinalStep = !!latestStep && !latestStep.isIntermediaryPhase;
160
+ const { isCompleted, isFailed } = useCheckoutDirectExecutionHistory({
161
+ initDirectExecution: latestStep,
162
+ disabled: !latestStep
163
+ });
164
+ const status = toNadoWithdrawalStatus({
165
+ isCompleted: isCompleted && isFinalStep,
166
+ isFailed
167
+ });
168
+ useEffect(() => {
169
+ if (status !== "pending") {
170
+ setHasSettled(true);
171
+ }
172
+ }, [status]);
173
+ const loggedStatusRef = useRef(void 0);
174
+ useEffect(() => {
175
+ if (status === "pending" || loggedStatusRef.current === status) {
176
+ return;
177
+ }
178
+ loggedStatusRef.current = status;
179
+ logger.info("nado:withdrawal:settled", {
180
+ depositAddress,
181
+ status,
182
+ txHash: latestStep?.txHash,
183
+ relayStatus: latestStep?.listenerInfo?.status
184
+ });
185
+ }, [status, depositAddress, latestStep]);
186
+ const completionTx = useMemo(() => {
187
+ if (status !== "completed" || !latestStep) {
188
+ return void 0;
189
+ }
190
+ const { chainId, txHash, customRedirectUrl } = getCompletionTxInfo(latestStep);
191
+ const onChainTxHash = resolveOnChainCompletionTxHash(latestStep, txHash);
192
+ return onChainTxHash ? { chainId, txHash: onChainTxHash, customRedirectUrl } : void 0;
193
+ }, [status, latestStep]);
194
+ return { status, completionTx };
195
+ }
196
+ function resolveOnChainCompletionTxHash(directExecution, completionTxHash) {
197
+ const hasDestinationTx = !!completionTxHash && completionTxHash !== directExecution.txHash && completionTxHash !== zeroHash;
198
+ if (directExecution.fromChainId !== directExecution.toChainId) {
199
+ return hasDestinationTx ? completionTxHash : void 0;
200
+ }
201
+ return hasDestinationTx ? completionTxHash : directExecution.onChainTxHash ?? directExecution.txHash;
202
+ }
203
+ function findDirectExecutionForDepositAddress(directExecutions, depositAddress, knownTxHashes) {
204
+ if (!depositAddress) {
205
+ return void 0;
206
+ }
207
+ return directExecutions?.find((directExecution) => {
208
+ if (knownTxHashes.has(directExecution.txHash)) {
209
+ return false;
210
+ }
211
+ const sourceSegments = directExecution.sourceOfFund?.split("|") ?? [];
212
+ const sourceAddress = sourceSegments[sourceSegments.length - 1];
213
+ return !!sourceAddress && isEVMAddressEquivalent({
214
+ firstAddress: sourceAddress,
215
+ secondAddress: depositAddress
216
+ });
217
+ });
218
+ }
219
+ function toNadoWithdrawalStatus({
220
+ isCompleted,
221
+ isFailed
222
+ }) {
223
+ if (isCompleted) {
224
+ return "completed";
225
+ }
226
+ return isFailed ? "failed" : "pending";
227
+ }
228
+ export {
229
+ findDirectExecutionForDepositAddress,
230
+ useNadoWithdrawalStatus
231
+ };
@@ -6,6 +6,21 @@
6
6
  * the shared→customer reference stays cycle-free.
7
7
  */
8
8
  import type { Address, Hex } from 'viem';
9
+ /**
10
+ * The dropdown pick, flattened out of the config's `sourceTokens`. Travels whole
11
+ * so identity, decimals, and product id can't be resolved from disagreeing
12
+ * sources — two lookups that disagree would sign against the wrong asset or off
13
+ * by a power of ten.
14
+ */
15
+ export interface NadoWithdrawalSourceOption {
16
+ /** Nado's own key for the asset — every subaccount query is keyed on it. */
17
+ productId: number;
18
+ symbol: string;
19
+ decimals: number;
20
+ tokenAddress: Address;
21
+ tokenChainId: string;
22
+ iconSrc: string | undefined;
23
+ }
9
24
  /**
10
25
  * Nado per-submission form selections threaded to the withdrawal callback (the
11
26
  * static config can't know them).
@@ -13,23 +28,22 @@ import type { Address, Hex } from 'viem';
13
28
  * so `false` fails instead of opening a borrow.
14
29
  * - `sequencerFeeTokenAmount` pins the fee the screen displayed, so the callback
15
30
  * signs the same net amount instead of re-reading a possibly-refreshed cache.
31
+ * - `selectedSourceToken` is the live dropdown pick. The shared form data carries
32
+ * the config's static `sourceTokenSymbol` instead, which is stale for a
33
+ * multi-source flow.
16
34
  */
17
35
  export interface NadoWithdrawalCustomerData {
18
36
  customerName: 'nado';
19
- productId: number;
20
37
  spotLeverage: boolean;
21
38
  /** Sequencer fee in the product's token units, as shown at submit. */
22
39
  sequencerFeeTokenAmount: number;
40
+ selectedSourceToken: NadoWithdrawalSourceOption;
23
41
  }
24
- /**
25
- * Nado config-level identity — the hook's **output**, not integrator input.
26
- * `useNadoWithdrawalConfig` takes a `subaccountName` string and packs it into
27
- * `subaccount` (Hex); consumers never author this.
28
- */
42
+ /** Nado config-level identity, supplied by the integrator on the withdrawal config. */
29
43
  export interface NadoWithdrawalCustomerConfig {
30
44
  customerName: 'nado';
31
45
  /** Connected wallet — must be the signer (Nado rejects linked signers). */
32
- owner: Address;
46
+ walletAddress: Address;
33
47
  /** Packed id of the active subaccount (`buildNadoSubaccountId`); the EIP-712/execute `sender`. */
34
48
  subaccount: Hex;
35
49
  }
@@ -16158,7 +16158,7 @@
16158
16158
  flex: 0 0 auto;
16159
16159
  }
16160
16160
 
16161
- /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VXyW7bMBC95ytY5BIDZSAvyqIARdF7b70XY3IssaZIgaJsp0X-vdBiRRTlROxySaDhvHnDWenb78vip92s1kvy64qQHE40Q5FmNiHxKi5OT53wKLjNErKMosOxlnXfmziqdV6ubns7SQblzXWpK8OQsgxUirSAFBcewUNL4IOt3qOi1oAqd2hC0bI-V0KlVKiDFiyYfifAUo4WhAyFMq12wuRghVbh2LyQaIPdPQqbcQNHkPQfmNhJfQy7sEJmKZ7aVP8Zaa55472yqGyAifIIRYGcip2BHBcfydsKVGrgQqU-Q-wxrFodoc6lv36I2nZwvweQdThkEw6JG0gBvL4JNa3_0dNAJnHXigao-zGRUMIKkAMqBpLdNA1OKFlHxWnxNM5DVB4y12xIw0Y12JU9xhcszm7iEKMzGnuWucf3g9kPSjcpqy67o_SdxRPBJmSrDUdDrS4aI9QAF1WZkAOYG0rNvhGItoe-6q2QuBjBGpZA3FZbq3OXMfLPXdMTCl08mhN9QFPPl4RkgnNUT10Uz1d2S_YxYJN4hfkYVJgX0POL8IKBOQV3ATpnk1zGvr0GLuECNskMExc2yRsXfm-TeFAIH5-sgZwrkZ6GtdhLnxMCldW1rGRGS7kFQ9PKWjQJKS1sJbpnHV2lSrQuXZLQI273wtJeu_GAi7KQ8Nxjepfv2gtsge1ToyvFKdNSm0HfNt9l27hferXFu7zUZlW-bdi7Hn1rJCzmeWHRWAHm-Rue7BwXDLB968LfXZC_c8H_ZT3J6iqZyVEi04pPRgfdKthJbNJe_6dcGGR14yeEaVnlTXGeu6DeLG4X7EJN-TXdF6FX0korHPfGa8d0Sm2zDFxKnUdK_yCZerc4e3XUpuEGPhEuDt3fyflBPoi80MaCsiPoNcuQ7XVlKRcgdXp-j0554ljxnRod-_E-T5epiTPaiG0iE7IkSz_OQ6_bR3S3ds9jJjSCWYNqFqZoy0YXwIR9JtHtqiQIJVKhqK7c6AkPBlKS6DYeQdyErOJuWvsPg4HtH14iO5RPt-noOq4ps59z5ALqlCAqAoqTm8H-uL97KE7t5nn9KdF8jn_yEvIyVFp1SlO7aLyNRtC1D92sxtBe4kA3E9DYg046DBNQz-HNq8MvvwEP3cWjKhAAAA */
16161
+ /* vanilla-extract-css-ns:src/components/Dialog/DialogContent.css.ts.vanilla.css?source=#H4sIAAAAAAAAA7VXS4_bOAy-91do0csEWA2ch2enHqAoeu-t9wUtMbYaWTJkOcnsYv77ws-xLGfG2raXBKL4kZT4kZTv_96W_9jDbr8l_34gpIArzVFkuU1IvIvL61MvvAhu84Rso-h8aWT9-hBHjc7Lh_vRTpJDdfex0rVhSFkOKkNaQoYbz8Fj58AHW31CRa0BVR3RhKJls6-EyqhQZy1YsPujAEs5WhAyFMq0OgpTgBVahWOLUqINDvcibM4NXEDSX2DiKPUl7MAKmaV47VL9_5wWmrfRK4vKBpioLlCWyKk4Gihw8yd5W4FKDVyozPcQex52nY5QA_X3j1FXDu56AtmHQw7hkLiFlMCbk1DTxR89TWQSj51ognpoUak2HM3gKyJ_iKLUxoKyjvLjPCqhhBUgJ3ExkOyu7QaEkn1UXjdP86RF1Tl3zYZUd9SAXdmn-IbF1RUfYnRFF1hlDt6_zLGruhnc9VSY5XoQL1z2mGGry9YINcBFXSXkDOaOUnNqBaIruG86FRI3M1jrJRCXamt14XqM_H3X9ILCQMxmR5_RNM0oIbngHNVTf4vDkV1-Q8DY8YgJQcS8gV5PwhsG1hDuBnTN2LmNfXtm3MIFjJ0VJm6MnTcO_N7Y8aBpeK_lLWRgIr1OuThKnxMCtdWNrGJGS5mCoVltLZqEVBZSie5e765WFbp9lycJvWB6EpaO2m0EXFSlhOcRM4b80B0gBXbKjK4Vp0xLbSZ1266rrnC_jmqbd_1Sm9dFOp0ab7WEzbooLBorwDx_x6tdE4IBdupC-LkD4jsH_F3Wk7xhyUofFTKt-OLtHF0WHCW2aW_-KRcGWVP4CWFa1kVLzqEKmsniVkEWasrn9EhCj9JKK5zXxmvF9EpdsUxCyp0Xzfh6WXrkOHN1VqbhBj4TLs7972L_uPVAAvKR5chOuraUC5A6Gx6vS5E4VvygZtv-fQ_dZanjzCZil8iEbMnWv-dp1N2Lux-7Q5sJvUHRotqBKTra6BKYsM8kut9VBKFCKhTVtXt7PzwYSEmi-3gGcROyi_tu7T8MJrZPXiJ7lO_u0LvrfS2Z_VIgF9CkBFERUJzcTebHXw-P5bWbPK_fHe1y_n1MyMtUadcrLc2i-TSaQfc-9LCbQ0eJAz0sQGMPuhhwugD1Aj68BvzyH4DFRhVXEAAA */
16162
16162
  [data-rk] ._1pzt4231 {
16163
16163
  max-height: 525px;
16164
16164
  max-width: 100vw;
@@ -16214,24 +16214,27 @@
16214
16214
  padding-right: 0;
16215
16215
  padding-left: 0;
16216
16216
  }
16217
- [data-rk] ._1pzt4237 {
16217
+ [data-rk] ._1pzt4236 {
16218
+ border-width: 0 !important;
16219
+ }
16220
+ [data-rk] ._1pzt4238 {
16218
16221
  min-width: initial;
16219
16222
  width: calc(100vw - 30px);
16220
16223
  max-height: 80svh;
16221
16224
  }
16222
- [data-rk] ._1pzt4237:has(#token-transfer-page) {
16225
+ [data-rk] ._1pzt4238:has(#token-transfer-page) {
16223
16226
  max-height: 80vh;
16224
16227
  max-height: 95svh;
16225
16228
  }
16226
- [data-rk] ._1pzt4237:has(#lightning-invoice-page) {
16229
+ [data-rk] ._1pzt4238:has(#lightning-invoice-page) {
16227
16230
  max-height: 80vh;
16228
16231
  max-height: 95svh;
16229
16232
  }
16230
- [data-rk] ._1pzt4237:has(#fiat-detail-page) {
16233
+ [data-rk] ._1pzt4238:has(#fiat-detail-page) {
16231
16234
  max-height: 80vh;
16232
16235
  max-height: 95svh;
16233
16236
  }
16234
- [data-rk] ._1pzt4239 {
16237
+ [data-rk] ._1pzt423a {
16235
16238
  min-width: initial;
16236
16239
  width: 100vw;
16237
16240
  padding-left: 20px;
@@ -16245,67 +16248,67 @@
16245
16248
  overflow: hidden;
16246
16249
  min-height: 0;
16247
16250
  }
16248
- [data-rk] ._1pzt4239:has(#source-change-page) {
16251
+ [data-rk] ._1pzt423a:has(#source-change-page) {
16249
16252
  max-height: 80svh;
16250
16253
  }
16251
- [data-rk] ._1pzt4239:has(#token-transfer-page) {
16254
+ [data-rk] ._1pzt423a:has(#token-transfer-page) {
16252
16255
  max-height: 80svh;
16253
16256
  }
16254
- [data-rk] ._1pzt4239:has(#lightning-invoice-page) {
16257
+ [data-rk] ._1pzt423a:has(#lightning-invoice-page) {
16255
16258
  max-height: 80svh;
16256
16259
  }
16257
- [data-rk] ._1pzt4239:has(#fiat-detail-page) {
16260
+ [data-rk] ._1pzt423a:has(#fiat-detail-page) {
16258
16261
  max-height: 80svh;
16259
16262
  }
16260
- [data-rk] ._1pzt4239:has(#confirmation-page) {
16263
+ [data-rk] ._1pzt423a:has(#confirmation-page) {
16261
16264
  max-height: 80svh;
16262
16265
  }
16263
- [data-rk] ._1pzt4239:has(#complete-page) {
16266
+ [data-rk] ._1pzt423a:has(#complete-page) {
16264
16267
  max-height: 80svh;
16265
16268
  }
16266
- [data-rk] ._1pzt4239:has(#withdrawal-complete-page) {
16269
+ [data-rk] ._1pzt423a:has(#withdrawal-complete-page) {
16267
16270
  max-height: 80svh;
16268
16271
  }
16269
- [data-rk] ._1pzt4239:has(#withdrawal-flow) {
16272
+ [data-rk] ._1pzt423a:has(#withdrawal-flow) {
16270
16273
  max-height: 80svh;
16271
16274
  }
16272
- [data-rk] ._1pzt4239:has(#connect-exchange) {
16275
+ [data-rk] ._1pzt423a:has(#connect-exchange) {
16273
16276
  max-height: 80svh;
16274
16277
  }
16275
- [data-rk] ._1pzt423a {
16278
+ [data-rk] ._1pzt423b {
16276
16279
  min-width: 380px;
16277
16280
  width: 380px;
16278
16281
  }
16279
- [data-rk] ._1pzt423c {
16282
+ [data-rk] ._1pzt423d {
16280
16283
  overflow-x: hidden;
16281
16284
  overflow-y: auto;
16282
16285
  scrollbar-gutter: stable;
16283
16286
  scrollbar-width: unset;
16284
16287
  }
16285
- [data-rk] ._1pzt423c::-webkit-scrollbar {
16288
+ [data-rk] ._1pzt423d::-webkit-scrollbar {
16286
16289
  display: unset;
16287
16290
  width: 6px;
16288
16291
  background-color: var(--rk-colors-modalBackground);
16289
16292
  }
16290
- [data-rk] ._1pzt423c::-webkit-scrollbar-thumb {
16293
+ [data-rk] ._1pzt423d::-webkit-scrollbar-thumb {
16291
16294
  border-radius: var(--rk-radii-modal);
16292
16295
  background-color: var(--rk-colors-tertiaryText);
16293
16296
  }
16294
- [data-rk] ._1pzt423c::-webkit-scrollbar-track {
16297
+ [data-rk] ._1pzt423d::-webkit-scrollbar-track {
16295
16298
  background-color: var(--rk-colors-modalBackground);
16296
16299
  }
16297
- [data-rk] ._1pzt423d::-webkit-scrollbar-thumb {
16300
+ [data-rk] ._1pzt423e::-webkit-scrollbar-thumb {
16298
16301
  background-color: var(--rk-colors-modalBackground);
16299
16302
  }
16300
- [data-rk] ._1pzt423d::-webkit-scrollbar-thumb:hover {
16303
+ [data-rk] ._1pzt423e::-webkit-scrollbar-thumb:hover {
16301
16304
  background-color: var(--rk-colors-secondaryText);
16302
16305
  }
16303
- [data-rk] ._1pzt423e {
16306
+ [data-rk] ._1pzt423f {
16304
16307
  display: flex;
16305
16308
  flex-direction: column;
16306
16309
  height: 100vh;
16307
16310
  }
16308
- [data-rk] ._1pzt423f {
16311
+ [data-rk] ._1pzt423g {
16309
16312
  display: flex;
16310
16313
  flex-direction: column;
16311
16314
  scrollbar-gutter: unset;
@@ -16313,18 +16316,18 @@
16313
16316
  overflow-y: hidden;
16314
16317
  width: auto;
16315
16318
  }
16316
- [data-rk] ._1pzt423g {
16319
+ [data-rk] ._1pzt423h {
16317
16320
  padding-left: 0;
16318
16321
  padding-right: 0;
16319
16322
  }
16320
- [data-rk] ._1pzt4239 ._1pzt423c {
16323
+ [data-rk] ._1pzt423a ._1pzt423d {
16321
16324
  padding-left: 0;
16322
16325
  padding-right: 0;
16323
16326
  }
16324
- [data-rk] ._1pzt4239 > div > div {
16327
+ [data-rk] ._1pzt423a > div > div {
16325
16328
  max-height: 80svh !important;
16326
16329
  }
16327
- [data-rk] ._1pzt4239 #checkout-dialog-content {
16330
+ [data-rk] ._1pzt423a #checkout-dialog-content {
16328
16331
  padding-left: 0 !important;
16329
16332
  padding-right: 0 !important;
16330
16333
  scrollbar-gutter: auto;
@@ -16332,19 +16335,19 @@
16332
16335
  min-height: 0;
16333
16336
  flex: 1 1 auto;
16334
16337
  }
16335
- [data-rk] ._1pzt4239 #checkout-modal-bottom-bar {
16338
+ [data-rk] ._1pzt423a #checkout-modal-bottom-bar {
16336
16339
  padding-left: 0;
16337
16340
  padding-right: 0;
16338
16341
  }
16339
- [data-rk] ._1pzt423h {
16342
+ [data-rk] ._1pzt423i {
16340
16343
  transition: opacity 0.2s ease-in-out;
16341
16344
  }
16342
- [data-rk] ._1pzt423i {
16345
+ [data-rk] ._1pzt423j {
16343
16346
  transition: all 0.5s ease-in-out;
16344
16347
  max-height: 250px;
16345
16348
  overflow: hidden;
16346
16349
  }
16347
- [data-rk] ._1pzt423j {
16350
+ [data-rk] ._1pzt423k {
16348
16351
  max-height: 0px;
16349
16352
  transition: all 0.4s ease-out;
16350
16353
  overflow: hidden;
@@ -16365,7 +16368,7 @@
16365
16368
  min-width: 450px;
16366
16369
  width: 450px;
16367
16370
  }
16368
- [data-rk] ._1pzt423a {
16371
+ [data-rk] ._1pzt423b {
16369
16372
  min-width: 480px;
16370
16373
  width: 480px;
16371
16374
  }
@@ -16501,9 +16504,10 @@
16501
16504
  animation-name: stgjxld;
16502
16505
  }
16503
16506
 
16504
- /* vanilla-extract-css-ns:src/modals/CheckoutModal/SwappedIframe/SwappedIframe.css.ts.vanilla.css?source=Lm94dGxjcDAgewogIHNjcm9sbGJhci1ndXR0ZXI6IHN0YWJsZTsKICBzY3JvbGxiYXItd2lkdGg6IHRoaW47CiAgc2Nyb2xsYmFyLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtdGVydGlhcnlUZXh0KSB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQoub3h0bGNwMDo6LXdlYmtpdC1zY3JvbGxiYXIgewogIHdpZHRoOiA2cHg7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLm94dGxjcDA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1iIHsKICBib3JkZXItcmFkaXVzOiB2YXIoLS1yay1yYWRpaS1tb2RhbCk7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCk7Cn0KLm94dGxjcDA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQ */
16507
+ /* vanilla-extract-css-ns:src/modals/CheckoutModal/SwappedIframe/SwappedIframe.css.ts.vanilla.css?source=Lm94dGxjcDAgewogIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50OwogIHNjcm9sbGJhci1ndXR0ZXI6IGF1dG87CiAgc2Nyb2xsYmFyLXdpZHRoOiB0aGluOwogIHNjcm9sbGJhci1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCkgdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLm94dGxjcDA6Oi13ZWJraXQtc2Nyb2xsYmFyIHsKICB3aWR0aDogNnB4OwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1tb2RhbEJhY2tncm91bmQpOwp9Ci5veHRsY3AwOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmstcmFkaWktbW9kYWwpOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy10ZXJ0aWFyeVRleHQpOwp9Ci5veHRsY3AwOjotd2Via2l0LXNjcm9sbGJhci10cmFjayB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLl8xcHp0NDIzMTpoYXMoLm94dGxjcDAgPiBpZnJhbWVbYXJpYS1oaWRkZW49J2ZhbHNlJ10pIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDsKICB0cmFuc2l0aW9uOiBiYWNrZ3JvdW5kLWNvbG9yIDBzIGxpbmVhciAxMDBtczsKfQ */
16505
16508
  [data-rk] .oxtlcp0 {
16506
- scrollbar-gutter: stable;
16509
+ background-color: transparent;
16510
+ scrollbar-gutter: auto;
16507
16511
  scrollbar-width: thin;
16508
16512
  scrollbar-color: var(--rk-colors-tertiaryText) var(--rk-colors-modalBackground);
16509
16513
  }
@@ -16518,6 +16522,10 @@
16518
16522
  [data-rk] .oxtlcp0::-webkit-scrollbar-track {
16519
16523
  background-color: var(--rk-colors-modalBackground);
16520
16524
  }
16525
+ [data-rk] ._1pzt4231:has(.oxtlcp0 > iframe[aria-hidden=false]) {
16526
+ background-color: transparent;
16527
+ transition: background-color 0s linear 100ms;
16528
+ }
16521
16529
 
16522
16530
  /* vanilla-extract-css-ns:src/components/FunDivider/FunDivider.css.ts.vanilla.css?source=Ll8zZGtkc2MwIHsKICBib3JkZXItd2lkdGg6IDA7CiAgYm9yZGVyLXRvcC13aWR0aDogMXB4OwogIGJvcmRlci1zdHlsZTogc29saWQ7CiAgZmxleDogMTsKfQ */
16523
16531
  [data-rk] ._3dkdsc0 {
@@ -16527,6 +16535,24 @@
16527
16535
  flex: 1;
16528
16536
  }
16529
16537
 
16538
+ /* vanilla-extract-css-ns:src/components/FunTransactionSummary/PaymentFeesSummary.css.ts.vanilla.css?source=LnZrd3ZlMzIgewogIGN1cnNvcjogcG9pbnRlcjsKfQoudmt3dmUzMjpmb2N1cy12aXNpYmxlIHsKICBvdXRsaW5lOiAxcHggc29saWQ7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCk7Cn0KLnZrd3ZlMzMgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICB0cmFuc2l0aW9uLWRlbGF5OiAwLjJzOwogIG9wYWNpdHk6IDE7Cn0KLnZrd3ZlMzQgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICBvcGFjaXR5OiAwOwp9 */
16539
+ [data-rk] .vkwve32 {
16540
+ cursor: pointer;
16541
+ }
16542
+ [data-rk] .vkwve32:focus-visible {
16543
+ outline: 1px solid;
16544
+ outline-color: var(--rk-colors-tertiaryText);
16545
+ }
16546
+ [data-rk] .vkwve33 {
16547
+ transition: all 0.2s linear;
16548
+ transition-delay: 0.2s;
16549
+ opacity: 1;
16550
+ }
16551
+ [data-rk] .vkwve34 {
16552
+ transition: all 0.2s linear;
16553
+ opacity: 0;
16554
+ }
16555
+
16530
16556
  /* vanilla-extract-css-ns:src/components/FunAssetAvatar/FunAssetAvatar.css.ts.vanilla.css?source=LnV3cmRjMjAgewogIHBvc2l0aW9uOiByZWxhdGl2ZTsKfQoudXdyZGMyMiB7CiAgcG9zaXRpb246IGFic29sdXRlOwp9 */
16531
16557
  [data-rk] .uwrdc20 {
16532
16558
  position: relative;
@@ -16881,24 +16907,6 @@
16881
16907
  overflow: hidden;
16882
16908
  }
16883
16909
 
16884
- /* vanilla-extract-css-ns:src/components/FunTransactionSummary/PaymentFeesSummary.css.ts.vanilla.css?source=LnZrd3ZlMzIgewogIGN1cnNvcjogcG9pbnRlcjsKfQoudmt3dmUzMjpmb2N1cy12aXNpYmxlIHsKICBvdXRsaW5lOiAxcHggc29saWQ7CiAgb3V0bGluZS1jb2xvcjogdmFyKC0tcmstY29sb3JzLXRlcnRpYXJ5VGV4dCk7Cn0KLnZrd3ZlMzMgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICB0cmFuc2l0aW9uLWRlbGF5OiAwLjJzOwogIG9wYWNpdHk6IDE7Cn0KLnZrd3ZlMzQgewogIHRyYW5zaXRpb246IGFsbCAwLjJzIGxpbmVhcjsKICBvcGFjaXR5OiAwOwp9 */
16885
- [data-rk] .vkwve32 {
16886
- cursor: pointer;
16887
- }
16888
- [data-rk] .vkwve32:focus-visible {
16889
- outline: 1px solid;
16890
- outline-color: var(--rk-colors-tertiaryText);
16891
- }
16892
- [data-rk] .vkwve33 {
16893
- transition: all 0.2s linear;
16894
- transition-delay: 0.2s;
16895
- opacity: 1;
16896
- }
16897
- [data-rk] .vkwve34 {
16898
- transition: all 0.2s linear;
16899
- opacity: 0;
16900
- }
16901
-
16902
16910
  /* vanilla-extract-css-ns:src/components/PaddedScrollableArea/paddedScrollableArea.css.ts.vanilla.css?source=Ll8xczAzMWEwMCB7CiAgZmxleDogMTsKICBtaW4taGVpZ2h0OiAwOwogIG92ZXJmbG93LXg6IGhpZGRlbjsKICBvdmVyZmxvdy15OiBhdXRvOwogIHBvc2l0aW9uOiByZWxhdGl2ZTsKICBzY3JvbGxiYXItZ3V0dGVyOiBzdGFibGU7CiAgc2Nyb2xsYmFyLXdpZHRoOiB1bnNldDsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhciB7CiAgZGlzcGxheTogdW5zZXQ7CiAgd2lkdGg6IDZweDsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAwOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYm9yZGVyLXJhZGl1czogdmFyKC0tcmstcmFkaWktbW9kYWwpOwogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy10ZXJ0aWFyeVRleHQpOwp9Ci5fMXMwMzFhMDA6Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNrIHsKICBiYWNrZ3JvdW5kLWNvbG9yOiB2YXIoLS1yay1jb2xvcnMtbW9kYWxCYWNrZ3JvdW5kKTsKfQouXzFzMDMxYTAxOjotd2Via2l0LXNjcm9sbGJhci10aHVtYiB7CiAgYmFja2dyb3VuZC1jb2xvcjogdmFyKC0tcmstY29sb3JzLW1vZGFsQmFja2dyb3VuZCk7Cn0KLl8xczAzMWEwMTo6LXdlYmtpdC1zY3JvbGxiYXItdGh1bWI6aG92ZXIgewogIGJhY2tncm91bmQtY29sb3I6IHZhcigtLXJrLWNvbG9ycy1zZWNvbmRhcnlUZXh0KTsKfQ */
16903
16911
  [data-rk] ._1s031a00 {
16904
16912
  flex: 1;
@@ -9,17 +9,20 @@ import {
9
9
  useFunkitConnectChainsById
10
10
  } from "./chunk-FNB7OPJI.js";
11
11
  import {
12
- useFunkitConfig,
13
12
  useLighterAccountQuery,
14
13
  useLighterAccountsQuery
15
- } from "./chunk-2FSEE3AW.js";
14
+ } from "./chunk-6QCAWEAT.js";
15
+ import {
16
+ useFunkitConfig
17
+ } from "./chunk-UK64SY6N.js";
16
18
  import {
17
19
  Box
18
20
  } from "./chunk-LUHEVXPD.js";
19
- import "./chunk-UPZNKPYU.js";
20
21
  import {
21
22
  useFunkitTranslation
22
- } from "./chunk-JD2J5K6S.js";
23
+ } from "./chunk-YUZ3B2Q3.js";
24
+ import "./chunk-UPZNKPYU.js";
25
+ import "./chunk-C45VNQXY.js";
23
26
  import {
24
27
  logger
25
28
  } from "./chunk-AHYOV7AV.js";
@@ -749,9 +752,7 @@ function buildLighterMultiMethodConfig({
749
752
  const fast = {
750
753
  id: LIGHTER_FAST_METHOD_ID,
751
754
  keyText: t("withdrawal.methodFast"),
752
- subtitleText: t(
753
- isUnifiedTradingMode ? "withdrawal.fastDisclaimerUnified" : "withdrawal.fastDisclaimer"
754
- ),
755
+ subtitleText: isUnifiedTradingMode ? t("withdrawal.fastDisclaimerUnified") : t("withdrawal.fastDisclaimer"),
755
756
  icon: /* @__PURE__ */ React4.createElement(EvmWallet, { size: 20 }),
756
757
  valueIcon: /* @__PURE__ */ React4.createElement(ChainIconStack, { chainIds: LIGHTER_FAST_PREVIEW_CHAIN_IDS }),
757
758
  config: fastConfig
@@ -7,13 +7,14 @@ import {
7
7
  switchChain,
8
8
  waitForTransactionReceipt
9
9
  } from "./chunk-OODIKHYE.js";
10
+ import {
11
+ useFunkitTranslation
12
+ } from "./chunk-YUZ3B2Q3.js";
10
13
  import {
11
14
  useAccount,
12
15
  useConfig
13
16
  } from "./chunk-UPZNKPYU.js";
14
- import {
15
- useFunkitTranslation
16
- } from "./chunk-JD2J5K6S.js";
17
+ import "./chunk-C45VNQXY.js";
17
18
  import {
18
19
  logger
19
20
  } from "./chunk-AHYOV7AV.js";
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Nado withdrawals — the public integration surface.
3
+ *
4
+ * Pass the returned config to the withdrawal modal; the SDK renders the Nado
5
+ * enter-amount screen, signs Nado's gasless `withdraw_collateral_v2` against a
6
+ * Fun deposit address, and routes the settled funds to the user's destination.
7
+ *
8
+ * Everything an integrator touches is exported from this file and nowhere else —
9
+ * not the root entry. Anything they don't stays in `clients/internal/nado/`.
10
+ *
11
+ * @example
12
+ * ```tsx
13
+ * const nado = useNadoWithdrawalConfig(
14
+ * isConnected
15
+ * ? { sourceTokens: NADO_SOURCE_TOKENS, sourceTokenSymbol: 'USDT0' }
16
+ * : null,
17
+ * )
18
+ * ```
19
+ */
20
+ import type { SourceTokenOption, TokenInfo } from '../providers/FunkitCheckoutContext/types';
21
+ import { type NadoWithdrawalConfig } from './internal/nado/withdrawalConfig';
22
+ export interface NadoWithdrawalOptions {
23
+ /**
24
+ * Nado's withdrawable assets. Each option must carry
25
+ * `customData: { type: 'nado', productId }` and `asset.decimals` — the product
26
+ * id addresses the subaccount balance and the decimals scale the signed
27
+ * amount, so an option missing either is skipped.
28
+ */
29
+ sourceTokens: SourceTokenOption[];
30
+ /** Symbol of the initially selected option; must match one in {@link sourceTokens}. */
31
+ sourceTokenSymbol: string;
32
+ /**
33
+ * Active subaccount's name as your subaccount state holds it (`default`,
34
+ * `default_1`, …) — not the profile label the user sees, and not a decoded
35
+ * engine value. The SDK packs it with the connected wallet. Defaults to
36
+ * `default`; `''` is a different subaccount, and over 12 bytes disables the
37
+ * config.
38
+ */
39
+ subaccountName?: string;
40
+ modalTitle?: string;
41
+ iconSrc?: null | string;
42
+ disableConnectedWallet?: boolean;
43
+ /** Token pre-selected in the receive dropdown. Defaults to the source token. */
44
+ defaultReceiveToken?: string;
45
+ /** Awaited after the user commits, before any nonce fetch or signature. Throw to abort. */
46
+ onBeforeSign?: () => Promise<void> | void;
47
+ getMinWithdrawalUSD?: (asset: TokenInfo) => number;
48
+ getMaxWithdrawalUSD?: (asset: TokenInfo) => number;
49
+ /**
50
+ * Minimum withdrawal in token units per source symbol. Preferred over
51
+ * {@link NadoWithdrawalOptions.getMinWithdrawalUSD} here — the floor is the
52
+ * sequencer fee, which Nado charges per asset, not per dollar.
53
+ */
54
+ getMinWithdrawalAmount?: (symbol: string) => number;
55
+ }
56
+ /**
57
+ * Withdrawal config for a Nado subaccount, or `null` while one can't be built —
58
+ * keep the withdraw entry point disabled until it resolves.
59
+ *
60
+ * Null means the wallet is disconnected, `options` is null, or
61
+ * `sourceTokenSymbol` names no entry in `sourceTokens` that carries an `asset`.
62
+ * The last is a wiring bug and is not logged, so check it first if the button
63
+ * never enables.
64
+ */
65
+ export declare function useNadoWithdrawalConfig(options: NadoWithdrawalOptions | null): NadoWithdrawalConfig | null;
66
+ export type { NadoWithdrawalConfig } from './internal/nado/withdrawalConfig';
67
+ export type { NadoWithdrawalCustomerConfig, NadoWithdrawalCustomerData, } from './internal/nado/withdrawalTypes';