@lnfi-network/nodeflow-sdk 1.0.0-alpha.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 (106) hide show
  1. package/README.md +276 -0
  2. package/dist/SwapController-C-2g6oSP.js +447 -0
  3. package/dist/add-DDBnz1-Q.js +19 -0
  4. package/dist/all-wallets-XTwjZKGg.js +10 -0
  5. package/dist/app-store-sCzhkWOo.js +21 -0
  6. package/dist/apple-C4IG4u61.js +22 -0
  7. package/dist/arrow-bottom-D5KjiSxX.js +12 -0
  8. package/dist/arrow-bottom-circle-BwWTHJky.js +15 -0
  9. package/dist/arrow-left-hn1Ftfvb.js +12 -0
  10. package/dist/arrow-right-CkV03q5Q.js +12 -0
  11. package/dist/arrow-top-BFm9X5g1.js +12 -0
  12. package/dist/bank-BUCrVHdo.js +18 -0
  13. package/dist/bin-BKleaahE.js +8 -0
  14. package/dist/bitcoin-C7iWQVuy.js +17 -0
  15. package/dist/browser-CpOtTIku.js +18 -0
  16. package/dist/build-info.json +1 -0
  17. package/dist/card-CJ3tg2Ri.js +18 -0
  18. package/dist/ccip-DyUNuvL1.js +239 -0
  19. package/dist/checkmark-CvSC6zeV.js +15 -0
  20. package/dist/checkmark-bold-DyZJqlJ7.js +12 -0
  21. package/dist/chevron-bottom-T9v1OvPA.js +12 -0
  22. package/dist/chevron-left-B4I8A8BR.js +12 -0
  23. package/dist/chevron-right-DGcVStvL.js +12 -0
  24. package/dist/chevron-top-BtD7BPVB.js +12 -0
  25. package/dist/chrome-store-BTKxY14m.js +65 -0
  26. package/dist/circle-DLLZtCBf.js +8 -0
  27. package/dist/clock-BNIDUPYZ.js +12 -0
  28. package/dist/close-BscNWH3j.js +12 -0
  29. package/dist/coinPlaceholder-JCYCAADZ.js +12 -0
  30. package/dist/compass-D7B-kHmZ.js +12 -0
  31. package/dist/copy-DHBc9gJO.js +19 -0
  32. package/dist/cursor-DKduK293.js +7 -0
  33. package/dist/cursor-transparent-8DkjrHTm.js +16 -0
  34. package/dist/desktop-ChlWl7Ma.js +13 -0
  35. package/dist/disconnect-CML_GEin.js +12 -0
  36. package/dist/discord-CgAM6i7H.js +21 -0
  37. package/dist/email-8mepCwp-.js +10 -0
  38. package/dist/embedded-wallet-scU49N5X.js +464 -0
  39. package/dist/ethereum-CA-_7cWX.js +14 -0
  40. package/dist/etherscan-B4h2i8Uc.js +10 -0
  41. package/dist/exclamation-triangle-ftOWMqSf.js +8 -0
  42. package/dist/extension-7iqlSonF.js +12 -0
  43. package/dist/external-link-DAvuMfW6.js +12 -0
  44. package/dist/facebook-CsyBIxMB.js +30 -0
  45. package/dist/farcaster-DfetCk1r.js +16 -0
  46. package/dist/filters-CsU-LYSd.js +12 -0
  47. package/dist/font/ClashDisplay-Variable.ttf +0 -0
  48. package/dist/font/ClashDisplay-Variable.woff +0 -0
  49. package/dist/font/ClashDisplay-Variable.woff2 +0 -0
  50. package/dist/github-DjxwfOOF.js +22 -0
  51. package/dist/google--g4VSi6h.js +22 -0
  52. package/dist/help-circle-BPA985E7.js +16 -0
  53. package/dist/id-BCUBMri8.js +16 -0
  54. package/dist/image-gYCDO7su.js +8 -0
  55. package/dist/index-B9q3HG5u.js +709 -0
  56. package/dist/index-BEm1bPeX.js +63547 -0
  57. package/dist/index-CCgAY-U4.js +70 -0
  58. package/dist/index-CRbuhHbe.js +33 -0
  59. package/dist/index-DYL5OPkx.js +1060 -0
  60. package/dist/info-CIaFQJ_e.js +7 -0
  61. package/dist/info-circle-BPz5hFQa.js +16 -0
  62. package/dist/lightbulb-BDmHvdbq.js +7 -0
  63. package/dist/mail-DQiXQ-4_.js +12 -0
  64. package/dist/mobile-CG_8sNWZ.js +13 -0
  65. package/dist/more-B1H_I3-I.js +15 -0
  66. package/dist/network-placeholder-1RWeD7Yp.js +18 -0
  67. package/dist/nftPlaceholder-Cg-f-eaw.js +12 -0
  68. package/dist/nodeflow-sdk.es.js +15 -0
  69. package/dist/off-DB-2L-AT.js +8 -0
  70. package/dist/onramp-DI5eQmAC.js +917 -0
  71. package/dist/play-store-DKJRWbqp.js +36 -0
  72. package/dist/plus-By1Ef8nV.js +17 -0
  73. package/dist/qr-code-DGuZgP-9.js +10 -0
  74. package/dist/receive-BEsZr88v.js +179 -0
  75. package/dist/recycle-horizontal-DubwRDbc.js +13 -0
  76. package/dist/refresh-Dwfvwy6t.js +12 -0
  77. package/dist/reown-logo-oDEjOrqY.js +16 -0
  78. package/dist/search-DX_QdW9h.js +12 -0
  79. package/dist/send-Bd5bwLNJ.js +1039 -0
  80. package/dist/send-Dq4B7ftm.js +19 -0
  81. package/dist/socials-BnnwB5_t.js +589 -0
  82. package/dist/solana-B7Ds9KBT.js +17 -0
  83. package/dist/swapHorizontal-CF6_7qU-.js +12 -0
  84. package/dist/swapHorizontalBold-C-YFgVbc.js +12 -0
  85. package/dist/swapHorizontalMedium-BGOdc8_e.js +20 -0
  86. package/dist/swapHorizontalRoundedBold-D_vYgwwO.js +12 -0
  87. package/dist/swapVertical-j2pWqia1.js +12 -0
  88. package/dist/swaps-Bh2kuHjL.js +1713 -0
  89. package/dist/telegram-bh_htnzP.js +20 -0
  90. package/dist/three-dots-B31D_Ocu.js +9 -0
  91. package/dist/transactions-Ch56TR3p.js +35 -0
  92. package/dist/twitch-DUloatpE.js +22 -0
  93. package/dist/twitterIcon-CNo6b91J.js +10 -0
  94. package/dist/ui-C7PJmqHY.js +812 -0
  95. package/dist/user-DqFnAlKR.js +7 -0
  96. package/dist/verify-BmaaygAV.js +12 -0
  97. package/dist/verify-filled-BwLeEdJj.js +12 -0
  98. package/dist/vite.svg +1 -0
  99. package/dist/w3m-modal-BijXCMl6.js +1041 -0
  100. package/dist/wallet-DyP6_6JN.js +12 -0
  101. package/dist/wallet-placeholder-BZC82rR0.js +18 -0
  102. package/dist/walletconnect-DT69luRK.js +36 -0
  103. package/dist/warning-circle-CGbg6QZn.js +16 -0
  104. package/dist/x-BfEtqtAc.js +16 -0
  105. package/dist/x-mark-CSmIdhvb.js +7 -0
  106. package/package.json +53 -0
@@ -0,0 +1,447 @@
1
+ import { N as l, L as G, M as O, R as f, S as g, O as E, P as S, Q as U, T as D, U as B, V as P, X as b, Y as M, Z as C, _ as z, $ as R, a0 as V, a1 as x, a2 as H, a3 as $, a4 as Q, a5 as q } from "./index-BEm1bPeX.js";
2
+ const I = {
3
+ getGasPriceInEther(n, t) {
4
+ const o = t * n;
5
+ return Number(o) / 1e18;
6
+ },
7
+ getGasPriceInUSD(n, t, o) {
8
+ const s = I.getGasPriceInEther(t, o);
9
+ return l.bigNumber(n).times(s).toNumber();
10
+ },
11
+ getPriceImpact({ sourceTokenAmount: n, sourceTokenPriceInUSD: t, toTokenPriceInUSD: o, toTokenAmount: s }) {
12
+ const r = l.bigNumber(n).times(t), i = l.bigNumber(s).times(o);
13
+ return r.minus(i).div(r).times(100).toNumber();
14
+ },
15
+ getMaxSlippage(n, t) {
16
+ const o = l.bigNumber(n).div(100);
17
+ return l.multiply(t, o).toNumber();
18
+ },
19
+ getProviderFee(n, t = 85e-4) {
20
+ return l.bigNumber(n).times(t).toString();
21
+ },
22
+ isInsufficientNetworkTokenForGas(n, t) {
23
+ const o = t || "0";
24
+ return l.bigNumber(n).eq(0) ? !0 : l.bigNumber(l.bigNumber(o)).gt(n);
25
+ },
26
+ isInsufficientSourceTokenForSwap(n, t, o) {
27
+ var i, u;
28
+ const s = (u = (i = o == null ? void 0 : o.find((d) => d.address === t)) == null ? void 0 : i.quantity) == null ? void 0 : u.numeric;
29
+ return l.bigNumber(s || "0").lt(n);
30
+ }
31
+ }, _ = 15e4, Y = 6, T = {
32
+ // Loading states
33
+ initializing: !1,
34
+ initialized: !1,
35
+ loadingPrices: !1,
36
+ loadingQuote: !1,
37
+ loadingApprovalTransaction: !1,
38
+ loadingBuildTransaction: !1,
39
+ loadingTransaction: !1,
40
+ // Error states
41
+ fetchError: !1,
42
+ // Approval & Swap transaction states
43
+ approvalTransaction: void 0,
44
+ swapTransaction: void 0,
45
+ transactionError: void 0,
46
+ // Input values
47
+ sourceToken: void 0,
48
+ sourceTokenAmount: "",
49
+ sourceTokenPriceInUSD: 0,
50
+ toToken: void 0,
51
+ toTokenAmount: "",
52
+ toTokenPriceInUSD: 0,
53
+ networkPrice: "0",
54
+ networkBalanceInUSD: "0",
55
+ networkTokenSymbol: "",
56
+ inputError: void 0,
57
+ // Request values
58
+ slippage: x.CONVERT_SLIPPAGE_TOLERANCE,
59
+ // Tokens
60
+ tokens: void 0,
61
+ popularTokens: void 0,
62
+ suggestedTokens: void 0,
63
+ foundTokens: void 0,
64
+ myTokensWithBalance: void 0,
65
+ tokensPriceMap: {},
66
+ // Calculations
67
+ gasFee: "0",
68
+ gasPriceInUSD: 0,
69
+ priceImpact: void 0,
70
+ maxSlippage: void 0,
71
+ providerFee: void 0
72
+ }, e = O({ ...T }), v = {
73
+ state: e,
74
+ subscribe(n) {
75
+ return q(e, () => n(e));
76
+ },
77
+ subscribeKey(n, t) {
78
+ return Q(e, n, t);
79
+ },
80
+ getParams() {
81
+ var d, c, p, m, A, w, y, h;
82
+ const n = P.state.activeCaipAddress, t = M.getPlainAddress(n), o = H(), s = $.getConnectorId(P.state.activeChain);
83
+ if (!t)
84
+ throw new Error("No address found to swap the tokens from.");
85
+ const r = !((d = e.toToken) != null && d.address) || !((c = e.toToken) != null && c.decimals), i = !((p = e.sourceToken) != null && p.address) || !((m = e.sourceToken) != null && m.decimals) || !l.bigNumber(e.sourceTokenAmount).gt(0), u = !e.sourceTokenAmount;
86
+ return {
87
+ networkAddress: o,
88
+ fromAddress: t,
89
+ fromCaipAddress: n,
90
+ sourceTokenAddress: (A = e.sourceToken) == null ? void 0 : A.address,
91
+ toTokenAddress: (w = e.toToken) == null ? void 0 : w.address,
92
+ toTokenAmount: e.toTokenAmount,
93
+ toTokenDecimals: (y = e.toToken) == null ? void 0 : y.decimals,
94
+ sourceTokenAmount: e.sourceTokenAmount,
95
+ sourceTokenDecimals: (h = e.sourceToken) == null ? void 0 : h.decimals,
96
+ invalidToToken: r,
97
+ invalidSourceToken: i,
98
+ invalidSourceTokenAmount: u,
99
+ availableToSwap: n && !r && !i && !u,
100
+ isAuthConnector: s === S.CONNECTOR_ID.AUTH
101
+ };
102
+ },
103
+ setSourceToken(n) {
104
+ if (!n) {
105
+ e.sourceToken = n, e.sourceTokenAmount = "", e.sourceTokenPriceInUSD = 0;
106
+ return;
107
+ }
108
+ e.sourceToken = n, a.setTokenPrice(n.address, "sourceToken");
109
+ },
110
+ setSourceTokenAmount(n) {
111
+ e.sourceTokenAmount = n;
112
+ },
113
+ setToToken(n) {
114
+ if (!n) {
115
+ e.toToken = n, e.toTokenAmount = "", e.toTokenPriceInUSD = 0;
116
+ return;
117
+ }
118
+ e.toToken = n, a.setTokenPrice(n.address, "toToken");
119
+ },
120
+ setToTokenAmount(n) {
121
+ e.toTokenAmount = n ? l.toFixed(n, Y) : "";
122
+ },
123
+ async setTokenPrice(n, t) {
124
+ let o = e.tokensPriceMap[n] || 0;
125
+ o || (e.loadingPrices = !0, o = await a.getAddressPrice(n)), t === "sourceToken" ? e.sourceTokenPriceInUSD = o : t === "toToken" && (e.toTokenPriceInUSD = o), e.loadingPrices && (e.loadingPrices = !1), a.getParams().availableToSwap && a.swapTokens();
126
+ },
127
+ switchTokens() {
128
+ if (e.initializing || !e.initialized)
129
+ return;
130
+ const n = e.toToken ? { ...e.toToken } : void 0, t = e.sourceToken ? { ...e.sourceToken } : void 0, o = n && e.toTokenAmount === "" ? "1" : e.toTokenAmount;
131
+ a.setSourceToken(n), a.setToToken(t), a.setSourceTokenAmount(o), a.setToTokenAmount(""), a.swapTokens();
132
+ },
133
+ resetState() {
134
+ e.myTokensWithBalance = T.myTokensWithBalance, e.tokensPriceMap = T.tokensPriceMap, e.initialized = T.initialized, e.initializing = T.initializing, e.sourceToken = T.sourceToken, e.sourceTokenAmount = T.sourceTokenAmount, e.sourceTokenPriceInUSD = T.sourceTokenPriceInUSD, e.toToken = T.toToken, e.toTokenAmount = T.toTokenAmount, e.toTokenPriceInUSD = T.toTokenPriceInUSD, e.networkPrice = T.networkPrice, e.networkTokenSymbol = T.networkTokenSymbol, e.networkBalanceInUSD = T.networkBalanceInUSD, e.inputError = T.inputError;
135
+ },
136
+ resetValues() {
137
+ var o;
138
+ const { networkAddress: n } = a.getParams(), t = (o = e.tokens) == null ? void 0 : o.find((s) => s.address === n);
139
+ a.setSourceToken(t), a.setToToken(void 0);
140
+ },
141
+ getApprovalLoadingState() {
142
+ return e.loadingApprovalTransaction;
143
+ },
144
+ clearError() {
145
+ e.transactionError = void 0;
146
+ },
147
+ async initializeState() {
148
+ if (!e.initializing) {
149
+ if (e.initializing = !0, !e.initialized)
150
+ try {
151
+ await a.fetchTokens(), e.initialized = !0;
152
+ } catch {
153
+ e.initialized = !1, g.showError("Failed to initialize swap"), f.goBack();
154
+ }
155
+ e.initializing = !1;
156
+ }
157
+ },
158
+ async fetchTokens() {
159
+ var o;
160
+ const { networkAddress: n } = a.getParams();
161
+ await a.getNetworkTokenPrice(), await a.getMyTokensWithBalance();
162
+ const t = (o = e.myTokensWithBalance) == null ? void 0 : o.find((s) => s.address === n);
163
+ t && (e.networkTokenSymbol = t.symbol, a.setSourceToken(t), a.setSourceTokenAmount("0"));
164
+ },
165
+ async getTokenList() {
166
+ var t;
167
+ const n = (t = P.state.activeCaipNetwork) == null ? void 0 : t.caipNetworkId;
168
+ if (!(e.caipNetworkId === n && e.tokens))
169
+ try {
170
+ e.tokensLoading = !0;
171
+ const o = await C.getTokenList(n);
172
+ e.tokens = o, e.caipNetworkId = n, e.popularTokens = o.sort((s, r) => s.symbol < r.symbol ? -1 : s.symbol > r.symbol ? 1 : 0), e.suggestedTokens = o.filter((s) => !!x.SWAP_SUGGESTED_TOKENS.includes(s.symbol));
173
+ } catch {
174
+ e.tokens = [], e.popularTokens = [], e.suggestedTokens = [];
175
+ } finally {
176
+ e.tokensLoading = !1;
177
+ }
178
+ },
179
+ async getAddressPrice(n) {
180
+ var c, p;
181
+ const t = e.tokensPriceMap[n];
182
+ if (t)
183
+ return t;
184
+ const o = await b.fetchTokenPrice({
185
+ addresses: [n]
186
+ }), s = (o == null ? void 0 : o.fungibles) || [], r = [...e.tokens || [], ...e.myTokensWithBalance || []], i = (c = r == null ? void 0 : r.find((m) => m.address === n)) == null ? void 0 : c.symbol, u = ((p = s.find((m) => m.symbol.toLowerCase() === (i == null ? void 0 : i.toLowerCase()))) == null ? void 0 : p.price) || 0, d = parseFloat(u.toString());
187
+ return e.tokensPriceMap[n] = d, d;
188
+ },
189
+ async getNetworkTokenPrice() {
190
+ var r;
191
+ const { networkAddress: n } = a.getParams(), o = (r = (await b.fetchTokenPrice({
192
+ addresses: [n]
193
+ }).catch(() => (g.showError("Failed to fetch network token price"), { fungibles: [] }))).fungibles) == null ? void 0 : r[0], s = (o == null ? void 0 : o.price.toString()) || "0";
194
+ e.tokensPriceMap[n] = parseFloat(s), e.networkTokenSymbol = (o == null ? void 0 : o.symbol) || "", e.networkPrice = s;
195
+ },
196
+ async getMyTokensWithBalance(n) {
197
+ const t = await V.getMyTokensWithBalance(n), o = C.mapBalancesToSwapTokens(t);
198
+ o && (await a.getInitialGasPrice(), a.setBalances(o));
199
+ },
200
+ setBalances(n) {
201
+ const { networkAddress: t } = a.getParams(), o = P.state.activeCaipNetwork;
202
+ if (!o)
203
+ return;
204
+ const s = n.find((r) => r.address === t);
205
+ n.forEach((r) => {
206
+ e.tokensPriceMap[r.address] = r.price || 0;
207
+ }), e.myTokensWithBalance = n.filter((r) => r.address.startsWith(o.caipNetworkId)), e.networkBalanceInUSD = s ? l.multiply(s.quantity.numeric, s.price).toString() : "0";
208
+ },
209
+ async getInitialGasPrice() {
210
+ var t, o;
211
+ const n = await C.fetchGasPrice();
212
+ if (!n)
213
+ return { gasPrice: null, gasPriceInUSD: null };
214
+ switch ((o = (t = P.state) == null ? void 0 : t.activeCaipNetwork) == null ? void 0 : o.chainNamespace) {
215
+ case S.CHAIN.SOLANA:
216
+ return e.gasFee = n.standard ?? "0", e.gasPriceInUSD = l.multiply(n.standard, e.networkPrice).div(1e9).toNumber(), {
217
+ gasPrice: BigInt(e.gasFee),
218
+ gasPriceInUSD: Number(e.gasPriceInUSD)
219
+ };
220
+ case S.CHAIN.EVM:
221
+ default:
222
+ const s = n.standard ?? "0", r = BigInt(s), i = BigInt(_), u = I.getGasPriceInUSD(e.networkPrice, i, r);
223
+ return e.gasFee = s, e.gasPriceInUSD = u, { gasPrice: r, gasPriceInUSD: u };
224
+ }
225
+ },
226
+ // -- Swap -------------------------------------- //
227
+ async swapTokens() {
228
+ var i, u;
229
+ const n = z.state.address, t = e.sourceToken, o = e.toToken, s = l.bigNumber(e.sourceTokenAmount).gt(0);
230
+ if (s || a.setToTokenAmount(""), !o || !t || e.loadingPrices || !s)
231
+ return;
232
+ e.loadingQuote = !0;
233
+ const r = l.bigNumber(e.sourceTokenAmount).times(10 ** t.decimals).round(0);
234
+ try {
235
+ const d = await b.fetchSwapQuote({
236
+ userAddress: n,
237
+ from: t.address,
238
+ to: o.address,
239
+ gasPrice: e.gasFee,
240
+ amount: r.toString()
241
+ });
242
+ e.loadingQuote = !1;
243
+ const c = (u = (i = d == null ? void 0 : d.quotes) == null ? void 0 : i[0]) == null ? void 0 : u.toAmount;
244
+ if (!c) {
245
+ R.open({
246
+ displayMessage: "Incorrect amount",
247
+ debugMessage: "Please enter a valid amount"
248
+ }, "error");
249
+ return;
250
+ }
251
+ const p = l.bigNumber(c).div(10 ** o.decimals).toString();
252
+ a.setToTokenAmount(p), a.hasInsufficientToken(e.sourceTokenAmount, t.address) ? e.inputError = "Insufficient balance" : (e.inputError = void 0, a.setTransactionDetails());
253
+ } catch {
254
+ e.loadingQuote = !1, e.inputError = "Insufficient balance";
255
+ }
256
+ },
257
+ // -- Create Transactions -------------------------------------- //
258
+ async getTransaction() {
259
+ const { fromCaipAddress: n, availableToSwap: t } = a.getParams(), o = e.sourceToken, s = e.toToken;
260
+ if (!(!n || !t || !o || !s || e.loadingQuote))
261
+ try {
262
+ e.loadingBuildTransaction = !0;
263
+ const r = await C.fetchSwapAllowance({
264
+ userAddress: n,
265
+ tokenAddress: o.address,
266
+ sourceTokenAmount: e.sourceTokenAmount,
267
+ sourceTokenDecimals: o.decimals
268
+ });
269
+ let i;
270
+ return r ? i = await a.createSwapTransaction() : i = await a.createAllowanceTransaction(), e.loadingBuildTransaction = !1, e.fetchError = !1, i;
271
+ } catch {
272
+ f.goBack(), g.showError("Failed to check allowance"), e.loadingBuildTransaction = !1, e.approvalTransaction = void 0, e.swapTransaction = void 0, e.fetchError = !0;
273
+ return;
274
+ }
275
+ },
276
+ async createAllowanceTransaction() {
277
+ const { fromCaipAddress: n, sourceTokenAddress: t, toTokenAddress: o } = a.getParams();
278
+ if (!(!n || !o)) {
279
+ if (!t)
280
+ throw new Error("createAllowanceTransaction - No source token address found.");
281
+ try {
282
+ const s = await b.generateApproveCalldata({
283
+ from: t,
284
+ to: o,
285
+ userAddress: n
286
+ }), r = M.getPlainAddress(s.tx.from);
287
+ if (!r)
288
+ throw new Error("SwapController:createAllowanceTransaction - address is required");
289
+ const i = {
290
+ data: s.tx.data,
291
+ to: r,
292
+ gasPrice: BigInt(s.tx.eip155.gasPrice),
293
+ value: BigInt(s.tx.value),
294
+ toAmount: e.toTokenAmount
295
+ };
296
+ return e.swapTransaction = void 0, e.approvalTransaction = {
297
+ data: i.data,
298
+ to: i.to,
299
+ gasPrice: i.gasPrice,
300
+ value: i.value,
301
+ toAmount: i.toAmount
302
+ }, {
303
+ data: i.data,
304
+ to: i.to,
305
+ gasPrice: i.gasPrice,
306
+ value: i.value,
307
+ toAmount: i.toAmount
308
+ };
309
+ } catch {
310
+ f.goBack(), g.showError("Failed to create approval transaction"), e.approvalTransaction = void 0, e.swapTransaction = void 0, e.fetchError = !0;
311
+ return;
312
+ }
313
+ }
314
+ },
315
+ async createSwapTransaction() {
316
+ var u;
317
+ const { networkAddress: n, fromCaipAddress: t, sourceTokenAmount: o } = a.getParams(), s = e.sourceToken, r = e.toToken;
318
+ if (!t || !o || !s || !r)
319
+ return;
320
+ const i = (u = E.parseUnits(o, s.decimals)) == null ? void 0 : u.toString();
321
+ try {
322
+ const d = await b.generateSwapCalldata({
323
+ userAddress: t,
324
+ from: s.address,
325
+ to: r.address,
326
+ amount: i,
327
+ disableEstimate: !0
328
+ }), c = s.address === n, p = BigInt(d.tx.eip155.gas), m = BigInt(d.tx.eip155.gasPrice), A = M.getPlainAddress(d.tx.to);
329
+ if (!A)
330
+ throw new Error("SwapController:createSwapTransaction - address is required");
331
+ const w = {
332
+ data: d.tx.data,
333
+ to: A,
334
+ gas: p,
335
+ gasPrice: m,
336
+ value: BigInt(c ? i ?? "0" : "0"),
337
+ toAmount: e.toTokenAmount
338
+ };
339
+ return e.gasPriceInUSD = I.getGasPriceInUSD(e.networkPrice, p, m), e.approvalTransaction = void 0, e.swapTransaction = w, w;
340
+ } catch {
341
+ f.goBack(), g.showError("Failed to create transaction"), e.approvalTransaction = void 0, e.swapTransaction = void 0, e.fetchError = !0;
342
+ return;
343
+ }
344
+ },
345
+ onEmbeddedWalletApprovalSuccess() {
346
+ g.showLoading("Approve limit increase in your wallet"), f.replace("SwapPreview");
347
+ },
348
+ // -- Send Transactions --------------------------------- //
349
+ async sendTransactionForApproval(n) {
350
+ var r, i, u;
351
+ const { fromAddress: t, isAuthConnector: o } = a.getParams();
352
+ e.loadingApprovalTransaction = !0, o ? f.pushTransactionStack({
353
+ onSuccess: a.onEmbeddedWalletApprovalSuccess
354
+ }) : g.showLoading("Approve limit increase in your wallet");
355
+ try {
356
+ await E.sendTransaction({
357
+ address: t,
358
+ to: n.to,
359
+ data: n.data,
360
+ value: n.value,
361
+ chainNamespace: S.CHAIN.EVM
362
+ }), await a.swapTokens(), await a.getTransaction(), e.approvalTransaction = void 0, e.loadingApprovalTransaction = !1;
363
+ } catch (d) {
364
+ const c = d;
365
+ e.transactionError = c == null ? void 0 : c.displayMessage, e.loadingApprovalTransaction = !1, g.showError((c == null ? void 0 : c.displayMessage) || "Transaction error"), U.sendEvent({
366
+ type: "track",
367
+ event: "SWAP_APPROVAL_ERROR",
368
+ properties: {
369
+ message: (c == null ? void 0 : c.displayMessage) || (c == null ? void 0 : c.message) || "Unknown",
370
+ network: ((r = P.state.activeCaipNetwork) == null ? void 0 : r.caipNetworkId) || "",
371
+ swapFromToken: ((i = a.state.sourceToken) == null ? void 0 : i.symbol) || "",
372
+ swapToToken: ((u = a.state.toToken) == null ? void 0 : u.symbol) || "",
373
+ swapFromAmount: a.state.sourceTokenAmount || "",
374
+ swapToAmount: a.state.toTokenAmount || "",
375
+ isSmartAccount: D(S.CHAIN.EVM) === B.ACCOUNT_TYPES.SMART_ACCOUNT
376
+ }
377
+ });
378
+ }
379
+ },
380
+ async sendTransactionForSwap(n) {
381
+ var u, d, c, p, m, A, w, y, h, F, L, W;
382
+ if (!n)
383
+ return;
384
+ const { fromAddress: t, toTokenAmount: o, isAuthConnector: s } = a.getParams();
385
+ e.loadingTransaction = !0;
386
+ const r = `Swapping ${(u = e.sourceToken) == null ? void 0 : u.symbol} to ${l.formatNumberToLocalString(o, 3)} ${(d = e.toToken) == null ? void 0 : d.symbol}`, i = `Swapped ${(c = e.sourceToken) == null ? void 0 : c.symbol} to ${l.formatNumberToLocalString(o, 3)} ${(p = e.toToken) == null ? void 0 : p.symbol}`;
387
+ s ? f.pushTransactionStack({
388
+ onSuccess() {
389
+ f.replace("Account"), g.showLoading(r), v.resetState();
390
+ }
391
+ }) : g.showLoading("Confirm transaction in your wallet");
392
+ try {
393
+ const N = [(m = e.sourceToken) == null ? void 0 : m.address, (A = e.toToken) == null ? void 0 : A.address].join(","), k = await E.sendTransaction({
394
+ address: t,
395
+ to: n.to,
396
+ data: n.data,
397
+ value: n.value,
398
+ chainNamespace: S.CHAIN.EVM
399
+ });
400
+ return e.loadingTransaction = !1, g.showSuccess(i), U.sendEvent({
401
+ type: "track",
402
+ event: "SWAP_SUCCESS",
403
+ properties: {
404
+ network: ((w = P.state.activeCaipNetwork) == null ? void 0 : w.caipNetworkId) || "",
405
+ swapFromToken: ((y = a.state.sourceToken) == null ? void 0 : y.symbol) || "",
406
+ swapToToken: ((h = a.state.toToken) == null ? void 0 : h.symbol) || "",
407
+ swapFromAmount: a.state.sourceTokenAmount || "",
408
+ swapToAmount: a.state.toTokenAmount || "",
409
+ isSmartAccount: D(S.CHAIN.EVM) === B.ACCOUNT_TYPES.SMART_ACCOUNT
410
+ }
411
+ }), v.resetState(), s || f.replace("Account"), v.getMyTokensWithBalance(N), k;
412
+ } catch (N) {
413
+ const k = N;
414
+ e.transactionError = k == null ? void 0 : k.displayMessage, e.loadingTransaction = !1, g.showError((k == null ? void 0 : k.displayMessage) || "Transaction error"), U.sendEvent({
415
+ type: "track",
416
+ event: "SWAP_ERROR",
417
+ properties: {
418
+ message: (k == null ? void 0 : k.displayMessage) || (k == null ? void 0 : k.message) || "Unknown",
419
+ network: ((F = P.state.activeCaipNetwork) == null ? void 0 : F.caipNetworkId) || "",
420
+ swapFromToken: ((L = a.state.sourceToken) == null ? void 0 : L.symbol) || "",
421
+ swapToToken: ((W = a.state.toToken) == null ? void 0 : W.symbol) || "",
422
+ swapFromAmount: a.state.sourceTokenAmount || "",
423
+ swapToAmount: a.state.toTokenAmount || "",
424
+ isSmartAccount: D(S.CHAIN.EVM) === B.ACCOUNT_TYPES.SMART_ACCOUNT
425
+ }
426
+ });
427
+ return;
428
+ }
429
+ },
430
+ // -- Checks -------------------------------------------- //
431
+ hasInsufficientToken(n, t) {
432
+ return I.isInsufficientSourceTokenForSwap(n, t, e.myTokensWithBalance);
433
+ },
434
+ // -- Calculations -------------------------------------- //
435
+ setTransactionDetails() {
436
+ const { toTokenAddress: n, toTokenDecimals: t } = a.getParams();
437
+ !n || !t || (e.gasPriceInUSD = I.getGasPriceInUSD(e.networkPrice, BigInt(e.gasFee), BigInt(_)), e.priceImpact = I.getPriceImpact({
438
+ sourceTokenAmount: e.sourceTokenAmount,
439
+ sourceTokenPriceInUSD: e.sourceTokenPriceInUSD,
440
+ toTokenPriceInUSD: e.toTokenPriceInUSD,
441
+ toTokenAmount: e.toTokenAmount
442
+ }), e.maxSlippage = I.getMaxSlippage(e.slippage, e.toTokenAmount), e.providerFee = I.getProviderFee(e.sourceTokenAmount));
443
+ }
444
+ }, a = G(v);
445
+ export {
446
+ a as S
447
+ };
@@ -0,0 +1,19 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const o = l`<svg
3
+ width="14"
4
+ height="14"
5
+ viewBox="0 0 14 14"
6
+ fill="none"
7
+ xmlns="http://www.w3.org/2000/svg"
8
+ >
9
+ <path
10
+ fill="currentColor"
11
+ fill-rule="evenodd"
12
+ clip-rule="evenodd"
13
+ d="M7.0023 0.875C7.48571 0.875 7.8776 1.26675 7.8776 1.75V6.125H12.2541C12.7375 6.125 13.1294 6.51675 13.1294 7C13.1294 7.48325 12.7375 7.875 12.2541 7.875H7.8776V12.25C7.8776 12.7332 7.48571 13.125 7.0023 13.125C6.51889 13.125 6.12701 12.7332 6.12701 12.25V7.875H1.75054C1.26713 7.875 0.875244 7.48325 0.875244 7C0.875244 6.51675 1.26713 6.125 1.75054 6.125H6.12701V1.75C6.12701 1.26675 6.51889 0.875 7.0023 0.875Z"
14
+ fill="#667dff"
15
+ /></svg
16
+ >`;
17
+ export {
18
+ o as addSvg
19
+ };
@@ -0,0 +1,10 @@
1
+ import { D as a } from "./index-BEm1bPeX.js";
2
+ const o = a`<svg fill="none" viewBox="0 0 24 24">
3
+ <path
4
+ style="fill: var(--wui-color-accent-100);"
5
+ d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
6
+ />
7
+ </svg>`;
8
+ export {
9
+ o as allWalletsSvg
10
+ };
@@ -0,0 +1,21 @@
1
+ import { D as a } from "./index-BEm1bPeX.js";
2
+ const e = a`
3
+ <svg width="36" height="36">
4
+ <path
5
+ d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
6
+ fill="url(#a)"
7
+ />
8
+ <path
9
+ d="m17.845 8.271.729-1.26a1.64 1.64 0 1 1 2.843 1.638l-7.023 12.159h5.08c1.646 0 2.569 1.935 1.853 3.276H6.434a1.632 1.632 0 0 1-1.638-1.638c0-.909.73-1.638 1.638-1.638h4.176l5.345-9.265-1.67-2.898a1.642 1.642 0 0 1 2.844-1.638l.716 1.264Zm-6.317 17.5-1.575 2.732a1.64 1.64 0 1 1-2.844-1.638l1.17-2.025c1.323-.41 2.398-.095 3.249.931Zm13.56-4.954h4.262c.909 0 1.638.729 1.638 1.638 0 .909-.73 1.638-1.638 1.638h-2.367l1.597 2.772c.45.788.185 1.782-.602 2.241a1.642 1.642 0 0 1-2.241-.603c-2.69-4.666-4.711-8.159-6.052-10.485-1.372-2.367-.391-4.743.576-5.549 1.075 1.846 2.682 4.631 4.828 8.348Z"
10
+ fill="#fff"
11
+ />
12
+ <defs>
13
+ <linearGradient id="a" x1="18" y1="0" x2="18" y2="36" gradientUnits="userSpaceOnUse">
14
+ <stop stop-color="#18BFFB" />
15
+ <stop offset="1" stop-color="#2072F3" />
16
+ </linearGradient>
17
+ </defs>
18
+ </svg>`;
19
+ export {
20
+ e as appStoreSvg
21
+ };
@@ -0,0 +1,22 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const f = l`<svg fill="none" viewBox="0 0 40 40">
3
+ <g clip-path="url(#a)">
4
+ <g clip-path="url(#b)">
5
+ <circle cx="20" cy="19.89" r="20" fill="#000" />
6
+ <g clip-path="url(#c)">
7
+ <path
8
+ fill="#fff"
9
+ d="M28.77 23.3c-.69 1.99-2.75 5.52-4.87 5.56-1.4.03-1.86-.84-3.46-.84-1.61 0-2.12.81-3.45.86-2.25.1-5.72-5.1-5.72-9.62 0-4.15 2.9-6.2 5.42-6.25 1.36-.02 2.64.92 3.47.92.83 0 2.38-1.13 4.02-.97.68.03 2.6.28 3.84 2.08-3.27 2.14-2.76 6.61.75 8.25ZM24.2 7.88c-2.47.1-4.49 2.69-4.2 4.84 2.28.17 4.47-2.39 4.2-4.84Z"
10
+ />
11
+ </g>
12
+ </g>
13
+ </g>
14
+ <defs>
15
+ <clipPath id="a"><rect width="40" height="40" fill="#fff" rx="20" /></clipPath>
16
+ <clipPath id="b"><path fill="#fff" d="M0 0h40v40H0z" /></clipPath>
17
+ <clipPath id="c"><path fill="#fff" d="M8 7.89h24v24H8z" /></clipPath>
18
+ </defs>
19
+ </svg>`;
20
+ export {
21
+ f as appleSvg
22
+ };
@@ -0,0 +1,12 @@
1
+ import { D as o } from "./index-BEm1bPeX.js";
2
+ const e = o`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M7 1.99a1 1 0 0 1 1 1v7.58l2.46-2.46a1 1 0 0 1 1.41 1.42L7.7 13.69a1 1 0 0 1-1.41 0L2.12 9.53A1 1 0 0 1 3.54 8.1L6 10.57V3a1 1 0 0 1 1-1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ e as arrowBottomSvg
12
+ };
@@ -0,0 +1,15 @@
1
+ import { D as C } from "./index-BEm1bPeX.js";
2
+ const e = C`<svg
3
+ fill="none"
4
+ viewBox="0 0 21 20"
5
+ >
6
+ <path
7
+ fill="currentColor"
8
+ fill-rule="evenodd"
9
+ d="M10.5 2.42908C6.31875 2.42908 2.92859 5.81989 2.92859 10.0034C2.92859 14.1869 6.31875 17.5777 10.5 17.5777C14.6813 17.5777 18.0714 14.1869 18.0714 10.0034C18.0714 5.81989 14.6813 2.42908 10.5 2.42908ZM0.928589 10.0034C0.928589 4.71596 5.21355 0.429077 10.5 0.429077C15.7865 0.429077 20.0714 4.71596 20.0714 10.0034C20.0714 15.2908 15.7865 19.5777 10.5 19.5777C5.21355 19.5777 0.928589 15.2908 0.928589 10.0034ZM10.5 5.75003C11.0523 5.75003 11.5 6.19774 11.5 6.75003L11.5 10.8343L12.7929 9.54137C13.1834 9.15085 13.8166 9.15085 14.2071 9.54137C14.5976 9.9319 14.5976 10.5651 14.2071 10.9556L11.2071 13.9556C10.8166 14.3461 10.1834 14.3461 9.79291 13.9556L6.79291 10.9556C6.40239 10.5651 6.40239 9.9319 6.79291 9.54137C7.18343 9.15085 7.8166 9.15085 8.20712 9.54137L9.50002 10.8343L9.50002 6.75003C9.50002 6.19774 9.94773 5.75003 10.5 5.75003Z"
10
+ clip-rule="evenodd"
11
+ /></svg
12
+ >`;
13
+ export {
14
+ e as arrowBottomCircleSvg
15
+ };
@@ -0,0 +1,12 @@
1
+ import { D as e } from "./index-BEm1bPeX.js";
2
+ const o = e`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M13 7.99a1 1 0 0 1-1 1H4.4l2.46 2.46a1 1 0 1 1-1.41 1.41L1.29 8.7a1 1 0 0 1 0-1.41L5.46 3.1a1 1 0 0 1 1.41 1.42L4.41 6.99H12a1 1 0 0 1 1 1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ o as arrowLeftSvg
12
+ };
@@ -0,0 +1,12 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const e = l`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M1 7.99a1 1 0 0 1 1-1h7.58L7.12 4.53A1 1 0 1 1 8.54 3.1l4.16 4.17a1 1 0 0 1 0 1.41l-4.16 4.17a1 1 0 1 1-1.42-1.41l2.46-2.46H2a1 1 0 0 1-1-1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ e as arrowRightSvg
12
+ };
@@ -0,0 +1,12 @@
1
+ import { D as o } from "./index-BEm1bPeX.js";
2
+ const e = o`<svg fill="none" viewBox="0 0 14 15">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M7 13.99a1 1 0 0 1-1-1V5.4L3.54 7.86a1 1 0 0 1-1.42-1.41L6.3 2.28a1 1 0 0 1 1.41 0l4.17 4.17a1 1 0 1 1-1.41 1.41L8 5.4v7.59a1 1 0 0 1-1 1Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ </svg>`;
10
+ export {
11
+ e as arrowTopSvg
12
+ };
@@ -0,0 +1,18 @@
1
+ import { D as e } from "./index-BEm1bPeX.js";
2
+ const o = e`<svg
3
+ xmlns="http://www.w3.org/2000/svg"
4
+ width="12"
5
+ height="13"
6
+ viewBox="0 0 12 13"
7
+ fill="none"
8
+ >
9
+ <path
10
+ fill-rule="evenodd"
11
+ clip-rule="evenodd"
12
+ d="M5.61391 1.57124C5.85142 1.42873 6.14813 1.42873 6.38564 1.57124L11.0793 4.38749C11.9179 4.89067 11.5612 6.17864 10.5832 6.17864H9.96398V10.0358H10.2854C10.6996 10.0358 11.0354 10.3716 11.0354 10.7858C11.0354 11.2 10.6996 11.5358 10.2854 11.5358H1.71416C1.29995 11.5358 0.964172 11.2 0.964172 10.7858C0.964172 10.3716 1.29995 10.0358 1.71416 10.0358H2.03558L2.03558 6.17864H1.41637C0.438389 6.17864 0.0816547 4.89066 0.920263 4.38749L5.61391 1.57124ZM3.53554 6.17864V10.0358H5.24979V6.17864H3.53554ZM6.74976 6.17864V10.0358H8.46401V6.17864H6.74976ZM8.64913 4.67864H3.35043L5.99978 3.089L8.64913 4.67864Z"
13
+ fill="currentColor"
14
+ /></svg
15
+ >`;
16
+ export {
17
+ o as bankSvg
18
+ };
@@ -0,0 +1,8 @@
1
+ import { D as C } from "./index-BEm1bPeX.js";
2
+ const o = C`<svg viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M3.90029 1.71429C4.09883 0.736183 4.96358 0 6.00028 0C7.03698 0 7.90173 0.736183 8.10027 1.71429H9.41533C9.42361 1.71417 9.4319 1.71417 9.44022 1.71429H10.286C10.7594 1.71429 11.1431 2.09804 11.1431 2.57143C11.1431 3.04482 10.7594 3.42857 10.286 3.42857H10.1855L9.73675 7.01877C9.6785 7.48493 9.6279 7.88983 9.55601 8.22075C9.47948 8.57304 9.36472 8.91574 9.13613 9.22925C8.91553 9.53181 8.63151 9.78254 8.30392 9.96392C7.96448 10.1519 7.61019 10.2232 7.25112 10.2555C6.91385 10.2858 6.50581 10.2857 6.03603 10.2857H5.96453C5.49475 10.2857 5.08671 10.2858 4.74944 10.2555C4.39037 10.2232 4.03608 10.1519 3.69664 9.96392C3.36905 9.78254 3.08503 9.53181 2.86442 9.22925C2.63583 8.91574 2.52108 8.57304 2.44455 8.22075C2.37266 7.88984 2.32206 7.48496 2.26382 7.0188L1.81504 3.42857H1.71456C1.24118 3.42857 0.857422 3.04482 0.857422 2.57143C0.857422 2.09804 1.24118 1.71429 1.71456 1.71429H2.56034C2.56866 1.71417 2.57695 1.71417 2.58522 1.71429H3.90029ZM3.54266 3.42857L3.96043 6.77068C4.02441 7.2825 4.06617 7.61016 4.11976 7.85681C4.17051 8.09045 4.21726 8.17492 4.2496 8.21928C4.32314 8.32013 4.41781 8.4037 4.52701 8.46416C4.57504 8.49076 4.66465 8.52666 4.90278 8.54805C5.15417 8.57063 5.48448 8.57143 6.00028 8.57143C6.51608 8.57143 6.84638 8.57063 7.09778 8.54805C7.33591 8.52666 7.42552 8.49076 7.47355 8.46416C7.58275 8.4037 7.67742 8.32013 7.75096 8.21928C7.7833 8.17491 7.83005 8.09045 7.8808 7.85681C7.93439 7.61016 7.97615 7.2825 8.04013 6.77068L8.4579 3.42857H3.54266Z" fill="currentColor"/>
4
+ </svg>
5
+ `;
6
+ export {
7
+ o as binSvg
8
+ };
@@ -0,0 +1,17 @@
1
+ import { D as L } from "./index-BEm1bPeX.js";
2
+ const i = L`
3
+ <svg width="13" height="12" viewBox="0 0 13 12" fill="none" xmlns="http://www.w3.org/2000/svg">
4
+ <g clip-path="url(#clip0_24458_3947)">
5
+ <path d="M12.6542 7.45143C11.8528 10.6657 8.59691 12.6219 5.38191 11.8204C2.16827 11.019 0.211924 7.76324 1.01369 4.54918C1.81476 1.33451 5.07063 -0.621803 8.28463 0.17954C11.4994 0.980884 13.4556 4.23702 12.6541 7.45149L12.6542 7.45143H12.6542Z" fill="var(--wui-color-gray-glass-005)"/>
6
+ <path d="M9.48002 5.14517C9.59946 4.3467 8.9915 3.91749 8.16017 3.63117L8.42986 2.54957L7.7714 2.38551L7.50886 3.43863C7.33576 3.39546 7.15799 3.35479 6.9813 3.31446L7.24574 2.25439L6.58769 2.09033L6.31786 3.17158C6.17461 3.13896 6.03391 3.10673 5.89741 3.07277L5.89817 3.06937L4.99014 2.84264L4.81498 3.54585C4.81498 3.54585 5.3035 3.65783 5.29321 3.66472C5.55985 3.73126 5.60807 3.90775 5.60006 4.04765L5.29286 5.27984C5.31122 5.2845 5.33503 5.29125 5.36131 5.3018C5.33935 5.29635 5.31597 5.2904 5.29171 5.28459L4.86112 7.01072C4.82853 7.09172 4.74582 7.21328 4.5594 7.16712C4.566 7.17668 4.08082 7.0477 4.08082 7.0477L3.75391 7.80135L4.61079 8.01495C4.77019 8.05492 4.92641 8.09674 5.08024 8.13607L4.80777 9.23007L5.46547 9.39413L5.7353 8.31174C5.91498 8.36051 6.08935 8.4055 6.26005 8.44791L5.99112 9.52519L6.64961 9.68925L6.92206 8.5973C8.04487 8.80978 8.88914 8.72411 9.2445 7.70862C9.53085 6.89103 9.23025 6.41944 8.63954 6.11192C9.06978 6.0127 9.39385 5.72975 9.48026 5.14525L9.48005 5.14511L9.48002 5.14517ZM7.9756 7.25457C7.7721 8.07216 6.39541 7.6302 5.94906 7.51937L6.31064 6.07001C6.75696 6.18142 8.18827 6.40191 7.97562 7.25457H7.9756ZM8.17923 5.13332C7.9936 5.877 6.84776 5.49918 6.47606 5.40653L6.80389 4.09205C7.17559 4.18469 8.37261 4.35761 8.17929 5.13332H8.17923Z" fill="var(--wui-color-gray-glass-090)"/>
7
+ </g>
8
+ <defs>
9
+ <clipPath id="clip0_24458_3947">
10
+ <rect width="11.9997" height="12" fill="white" transform="translate(0.833984)"/>
11
+ </clipPath>
12
+ </defs>
13
+ </svg>
14
+ `;
15
+ export {
16
+ i as bitcoinSvg
17
+ };
@@ -0,0 +1,18 @@
1
+ import { D as l } from "./index-BEm1bPeX.js";
2
+ const a = l`<svg fill="none" viewBox="0 0 20 20">
3
+ <path
4
+ fill="currentColor"
5
+ fill-rule="evenodd"
6
+ d="M4 6.4a1 1 0 0 1-.46.89 6.98 6.98 0 0 0 .38 6.18A7 7 0 0 0 16.46 7.3a1 1 0 0 1-.47-.92 7 7 0 0 0-12 .03Zm-2.02-.5a9 9 0 1 1 16.03 8.2A9 9 0 0 1 1.98 5.9Z"
7
+ clip-rule="evenodd"
8
+ />
9
+ <path
10
+ fill="currentColor"
11
+ fill-rule="evenodd"
12
+ d="M6.03 8.63c-1.46-.3-2.72-.75-3.6-1.35l-.02-.01-.14-.11a1 1 0 0 1 1.2-1.6l.1.08c.6.4 1.52.74 2.69 1 .16-.99.39-1.88.67-2.65.3-.79.68-1.5 1.15-2.02A2.58 2.58 0 0 1 9.99 1c.8 0 1.45.44 1.92.97.47.52.84 1.23 1.14 2.02.29.77.52 1.66.68 2.64a8 8 0 0 0 2.7-1l.26-.18h.48a1 1 0 0 1 .12 2c-.86.51-2.01.91-3.34 1.18a22.24 22.24 0 0 1-.03 3.19c1.45.29 2.7.73 3.58 1.31a1 1 0 0 1-1.1 1.68c-.6-.4-1.56-.76-2.75-1-.15.8-.36 1.55-.6 2.2-.3.79-.67 1.5-1.14 2.02-.47.53-1.12.97-1.92.97-.8 0-1.45-.44-1.91-.97a6.51 6.51 0 0 1-1.15-2.02c-.24-.65-.44-1.4-.6-2.2-1.18.24-2.13.6-2.73.99a1 1 0 1 1-1.1-1.67c.88-.58 2.12-1.03 3.57-1.31a22.03 22.03 0 0 1-.04-3.2Zm2.2-1.7c.15-.86.34-1.61.58-2.24.24-.65.51-1.12.76-1.4.25-.28.4-.29.42-.29.03 0 .17.01.42.3.25.27.52.74.77 1.4.23.62.43 1.37.57 2.22a19.96 19.96 0 0 1-3.52 0Zm-.18 4.6a20.1 20.1 0 0 1-.03-2.62 21.95 21.95 0 0 0 3.94 0 20.4 20.4 0 0 1-.03 2.63 21.97 21.97 0 0 0-3.88 0Zm.27 2c.13.66.3 1.26.49 1.78.24.65.51 1.12.76 1.4.25.28.4.29.42.29.03 0 .17-.01.42-.3.25-.27.52-.74.77-1.4.19-.5.36-1.1.49-1.78a20.03 20.03 0 0 0-3.35 0Z"
13
+ clip-rule="evenodd"
14
+ />
15
+ </svg>`;
16
+ export {
17
+ a as browserSvg
18
+ };
@@ -0,0 +1 @@
1
+ {"version":"1.0.0-alpha.0","buildHash":"bd0522dc90faba26fcba6ea6f02a722dcf1e12f45a8458c5d2d618cc9f017a2d","buildTime":"2026-01-28T07:38:54Z"}