@imtbl/sdk 1.63.0 → 1.64.0-alpha.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.
- package/dist/{blockchain_data-Dpv5muPl.js → blockchain_data-BiEq7OrB.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-BfDY0LwB.js → AddTokensWidget-BhaUBTKx.js} +754 -802
- package/dist/browser/checkout/{BridgeWidget-DreWq2OO.js → BridgeWidget-DUStg-ob.js} +9 -8
- package/dist/browser/checkout/{CommerceWidget-BFEo_z63.js → CommerceWidget-8wW5PFpX.js} +17 -16
- package/dist/browser/checkout/CryptoFiatProvider-kmpyiWXO.js +224 -0
- package/dist/browser/checkout/{EllipsizedText-_yDoxF8V.js → EllipsizedText-D0HkC9NK.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-CQVi4M-W.js → FeesBreakdown-ZnwuhHxu.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-D0HXf455.js → HandoverContent-DgMbXSS1.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BpRLbHli.js → OnRampWidget-BRguwmcW.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-C-ATgwRu.js → SaleWidget-YRJq-KHp.js} +15 -26
- package/dist/browser/checkout/{SpendingCapHero-DLdYNa0u.js → SpendingCapHero-CJNEaDPZ.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-Dm2cQUYh.js → SwapWidget-BiiN2Y72.js} +9 -8
- package/dist/browser/checkout/{TopUpView-Nbu5J6zy.js → TopUpView-wuE4Wsn7.js} +6 -239
- package/dist/browser/checkout/{WalletApproveHero-Cc6p3CkR.js → WalletApproveHero-CMf6e8E8.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-C25SCVnz.js → WalletWidget-BN45L_RI.js} +7 -22
- package/dist/browser/checkout/{auto-track-1Zr4QLt3.js → auto-track-CnDJ3ZvA.js} +1 -1
- package/dist/browser/checkout/{index-c7pVchOF.js → index-BEP80ac-.js} +1 -1
- package/dist/browser/checkout/{index-Vadzr0yp.js → index-BMR0rE9j.js} +1 -1
- package/dist/browser/checkout/{index-Co93fBqn.js → index-CZPVM8ED.js} +24 -21
- package/dist/browser/checkout/{index-3DC3zK0u.js → index-DG807GCH.js} +1 -1
- package/dist/browser/checkout/{index-DzrC5Kuy.js → index-TbXVGt2L.js} +1 -1
- package/dist/browser/checkout/{index-BYrBQsd2.js → index-ecosDhwb.js} +2 -2
- package/dist/browser/checkout/{index-B7urOO_H.js → index-hOCXgQoK.js} +1 -1
- package/dist/browser/checkout/{index-t2b5ztUB.js → index-mG63hnlk.js} +1 -1
- package/dist/browser/checkout/{index-DthkZUK5.js → index-s5-HDiIZ.js} +1 -1
- package/dist/browser/checkout/{index.umd-CwLr5uH5.js → index.umd-DiodwTFt.js} +1 -1
- package/dist/browser/checkout/{retry-DqIpQ6wO.js → retry-DzLPtvIf.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-D42dwhRA.js → useInterval-ChxxDIzQ.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +37 -66
- package/dist/{checkout-Dr99AQC1.js → checkout-BcldOfSR.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-DkJOEY8_.js → config-ZFQb1qmW.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-BI-lDUrN.js → index-BdCrr6TB.js} +3 -3
- package/dist/{index-B7ZGqefm.js → index-C-LxQ6AY.js} +1 -1
- package/dist/{index-Dvd-bDuR.js → index-C3hrAlCu.js} +4 -4
- package/dist/{index-DWXUkxHc.js → index-CzQpbCKA.js} +1 -1
- package/dist/{index-ONuhnAdl.js → index-CzR63dKt.js} +1 -1
- package/dist/{index-CK8NRXyO.js → index-F_ZSqzHo.js} +1 -1
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +77 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-CpZGmZ-L.js → minting_backend-CQYysz_8.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BGc1pQHt.js → orderbook-C3eUJ09J.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-CsmpMk_U.js → passport-DMtS147y.js} +73 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-8q1P3n_h.js → webhook-DOHhrEzR.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-BNK0EB3B.js → x-CZF84tyL.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -1,226 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Class representing the configuration for the CryptoFiatModule.
|
|
6
|
-
*/
|
|
7
|
-
class CryptoFiatConfiguration {
|
|
8
|
-
baseConfig;
|
|
9
|
-
/**
|
|
10
|
-
* Creates an instance of CryptoFiatConfiguration.
|
|
11
|
-
*/
|
|
12
|
-
constructor({ baseConfig }) {
|
|
13
|
-
this.baseConfig = baseConfig;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const CHECKOUT_API_BASE_URL = {
|
|
18
|
-
[Environment.SANDBOX]: 'https://checkout-api.sandbox.immutable.com',
|
|
19
|
-
[Environment.PRODUCTION]: 'https://checkout-api.immutable.com',
|
|
20
|
-
};
|
|
21
|
-
const DEFAULT_FIAT_SYMBOL = 'usd';
|
|
22
|
-
/**
|
|
23
|
-
* CryptoFiat module class
|
|
24
|
-
*/
|
|
25
|
-
class CryptoFiat {
|
|
26
|
-
coinsCache;
|
|
27
|
-
overridesCache;
|
|
28
|
-
config;
|
|
29
|
-
/**
|
|
30
|
-
* Creates an instance of CryptoFiat.
|
|
31
|
-
* @param {CryptoFiatConfiguration} config - configuration parameters for the module
|
|
32
|
-
*/
|
|
33
|
-
constructor(config) {
|
|
34
|
-
this.coinsCache = null;
|
|
35
|
-
this.overridesCache = null;
|
|
36
|
-
this.config = config.baseConfig;
|
|
37
|
-
}
|
|
38
|
-
urlWithPath(path) {
|
|
39
|
-
return CHECKOUT_API_BASE_URL[this.config.environment] + path;
|
|
40
|
-
}
|
|
41
|
-
// Given that we could have multiple coins with the same symbol
|
|
42
|
-
// and we do not have the contract address we are forcing the
|
|
43
|
-
// conversion because we are using coingecko under the hood.
|
|
44
|
-
async fetchOverrides() {
|
|
45
|
-
if (this.overridesCache !== null)
|
|
46
|
-
return;
|
|
47
|
-
const url = this.urlWithPath('/v1/fiat/coins/overrides');
|
|
48
|
-
const response = await axios.get(url);
|
|
49
|
-
if (response.status !== 200) {
|
|
50
|
-
throw new Error(`Error fetching coins overrides: ${response.status} ${response.statusText}`);
|
|
51
|
-
}
|
|
52
|
-
this.overridesCache = new Map(Object.entries(response.data));
|
|
53
|
-
}
|
|
54
|
-
async fetchCoins() {
|
|
55
|
-
if (this.coinsCache !== null)
|
|
56
|
-
return;
|
|
57
|
-
await this.fetchOverrides();
|
|
58
|
-
const url = this.urlWithPath('/v1/fiat/coins/all');
|
|
59
|
-
const response = await axios.get(url);
|
|
60
|
-
if (response.status !== 200) {
|
|
61
|
-
throw new Error(`Error fetching coins list: ${response.status} ${response.statusText}`);
|
|
62
|
-
}
|
|
63
|
-
const { data } = response;
|
|
64
|
-
this.coinsCache = new Map();
|
|
65
|
-
for (const coin of data) {
|
|
66
|
-
const override = this.overridesCache.get(coin.symbol.toLowerCase());
|
|
67
|
-
this.coinsCache.set(coin.symbol.toLowerCase(), override || coin.id.toLowerCase());
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Converts tokens with fiat currencies.
|
|
72
|
-
* @param {CryptoFiatConvertParams} - object containing the token symbols to get a conversion
|
|
73
|
-
* for and the optional fiat symbols to convert to.
|
|
74
|
-
* @returns {Promise<CryptoFiatConvertReturn>} - promise to return the map that associates
|
|
75
|
-
* token symbol to its conversion value object
|
|
76
|
-
* with fiat currencies.
|
|
77
|
-
*/
|
|
78
|
-
async convert({ tokenSymbols, fiatSymbols = [], }) {
|
|
79
|
-
if (!tokenSymbols || tokenSymbols.length === 0) {
|
|
80
|
-
throw new Error('Error missing token symbols to convert');
|
|
81
|
-
}
|
|
82
|
-
const currencies = fiatSymbols.filter((fiatSymbol) => fiatSymbol !== '');
|
|
83
|
-
if (currencies.length === 0)
|
|
84
|
-
currencies.push(DEFAULT_FIAT_SYMBOL);
|
|
85
|
-
await this.fetchCoins();
|
|
86
|
-
const idsParam = tokenSymbols
|
|
87
|
-
.map((tokenSymbol) => this.coinsCache.get(tokenSymbol.toLowerCase()))
|
|
88
|
-
.filter((tokenSymbol) => tokenSymbol !== '' && tokenSymbol !== undefined)
|
|
89
|
-
.join(',');
|
|
90
|
-
const currenciesParam = currencies
|
|
91
|
-
.join(',')
|
|
92
|
-
.toLowerCase();
|
|
93
|
-
const url = this.urlWithPath(`/v1/fiat/conversion?ids=${idsParam}¤cies=${currenciesParam}`);
|
|
94
|
-
const response = await axios.get(url);
|
|
95
|
-
if (response.status !== 200) {
|
|
96
|
-
throw new Error(`Error fetching prices: ${response.status} ${response.statusText}`);
|
|
97
|
-
}
|
|
98
|
-
const { data } = response;
|
|
99
|
-
const result = {};
|
|
100
|
-
for (const symbol of tokenSymbols) {
|
|
101
|
-
const symbolKey = symbol.toLowerCase();
|
|
102
|
-
const coinId = this.coinsCache.get(symbolKey);
|
|
103
|
-
result[symbolKey] = {};
|
|
104
|
-
if (coinId)
|
|
105
|
-
result[symbolKey] = data[coinId] || {};
|
|
106
|
-
}
|
|
107
|
-
return result;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
var FiatSymbols;
|
|
112
|
-
(function (FiatSymbols) {
|
|
113
|
-
FiatSymbols["USD"] = "usd";
|
|
114
|
-
})(FiatSymbols || (FiatSymbols = {}));
|
|
115
|
-
const initialCryptoFiatState = {
|
|
116
|
-
cryptoFiat: null,
|
|
117
|
-
fiatSymbol: FiatSymbols.USD,
|
|
118
|
-
tokenSymbols: [],
|
|
119
|
-
conversions: new Map(),
|
|
120
|
-
};
|
|
121
|
-
var CryptoFiatActions;
|
|
122
|
-
(function (CryptoFiatActions) {
|
|
123
|
-
CryptoFiatActions["SET_CRYPTO_FIAT"] = "SET_CRYPTO_FIAT";
|
|
124
|
-
CryptoFiatActions["SET_FIAT_SYMBOL"] = "SET_FIAT_SYMBOL";
|
|
125
|
-
CryptoFiatActions["SET_TOKEN_SYMBOLS"] = "SET_TOKEN_SYMBOLS";
|
|
126
|
-
CryptoFiatActions["SET_CONVERSIONS"] = "SET_CONVERSIONS";
|
|
127
|
-
})(CryptoFiatActions || (CryptoFiatActions = {}));
|
|
128
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
129
|
-
const CryptoFiatContext = reactExports.createContext({
|
|
130
|
-
cryptoFiatState: initialCryptoFiatState,
|
|
131
|
-
cryptoFiatDispatch: () => { },
|
|
132
|
-
});
|
|
133
|
-
const cryptoFiatReducer = (state, action) => {
|
|
134
|
-
switch (action.payload.type) {
|
|
135
|
-
case CryptoFiatActions.SET_CRYPTO_FIAT:
|
|
136
|
-
return {
|
|
137
|
-
...state,
|
|
138
|
-
cryptoFiat: action.payload.cryptoFiat,
|
|
139
|
-
};
|
|
140
|
-
case CryptoFiatActions.SET_FIAT_SYMBOL:
|
|
141
|
-
return {
|
|
142
|
-
...state,
|
|
143
|
-
fiatSymbol: action.payload.fiatSymbol,
|
|
144
|
-
};
|
|
145
|
-
case CryptoFiatActions.SET_TOKEN_SYMBOLS:
|
|
146
|
-
return {
|
|
147
|
-
...state,
|
|
148
|
-
tokenSymbols: action.payload.tokenSymbols,
|
|
149
|
-
};
|
|
150
|
-
case CryptoFiatActions.SET_CONVERSIONS:
|
|
151
|
-
return {
|
|
152
|
-
...state,
|
|
153
|
-
conversions: action.payload.conversions,
|
|
154
|
-
};
|
|
155
|
-
default:
|
|
156
|
-
return state;
|
|
157
|
-
}
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
const updateConversions = (cryptoToFiatResult, fiatSymbol) => {
|
|
161
|
-
const conversionMap = new Map();
|
|
162
|
-
// TODO: Consider using Object.keys(cryptoToFiatResult) instead of for...in
|
|
163
|
-
// for...in includes properties from the prototype chain
|
|
164
|
-
// eslint-disable-next-line no-restricted-syntax, guard-for-in
|
|
165
|
-
for (const tokenSymbol in cryptoToFiatResult) {
|
|
166
|
-
const conversion = cryptoToFiatResult[tokenSymbol];
|
|
167
|
-
const usdAmount = conversion[fiatSymbol];
|
|
168
|
-
if (usdAmount !== undefined) {
|
|
169
|
-
conversionMap.set(tokenSymbol, usdAmount);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
return conversionMap;
|
|
173
|
-
};
|
|
174
|
-
const getCryptoToFiatConversion = async (cryptoFiat, fiatSymbol, tokenSymbols) => {
|
|
175
|
-
try {
|
|
176
|
-
if (tokenSymbols.length === 0)
|
|
177
|
-
return new Map();
|
|
178
|
-
const cryptoToFiatResult = await cryptoFiat.convert({
|
|
179
|
-
tokenSymbols,
|
|
180
|
-
fiatSymbols: [fiatSymbol],
|
|
181
|
-
});
|
|
182
|
-
return updateConversions(cryptoToFiatResult, fiatSymbol);
|
|
183
|
-
}
|
|
184
|
-
catch (err) {
|
|
185
|
-
return new Map();
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
|
|
189
|
-
const DEFAULT_TOKEN_SYMBOLS = ['ETH', 'IMX'];
|
|
190
|
-
function CryptoFiatProvider({ environment, children }) {
|
|
191
|
-
const [cryptoFiatState, cryptoFiatDispatch] = reactExports.useReducer(cryptoFiatReducer, initialCryptoFiatState);
|
|
192
|
-
const { cryptoFiat, fiatSymbol, tokenSymbols } = cryptoFiatState;
|
|
193
|
-
reactExports.useEffect(() => {
|
|
194
|
-
cryptoFiatDispatch({
|
|
195
|
-
payload: {
|
|
196
|
-
type: CryptoFiatActions.SET_CRYPTO_FIAT,
|
|
197
|
-
cryptoFiat: new CryptoFiat(new CryptoFiatConfiguration({
|
|
198
|
-
baseConfig: {
|
|
199
|
-
environment,
|
|
200
|
-
},
|
|
201
|
-
})),
|
|
202
|
-
},
|
|
203
|
-
});
|
|
204
|
-
}, []);
|
|
205
|
-
reactExports.useEffect(() => {
|
|
206
|
-
if (!cryptoFiat || !fiatSymbol)
|
|
207
|
-
return;
|
|
208
|
-
(async () => {
|
|
209
|
-
const conversions = await getCryptoToFiatConversion(cryptoFiat, fiatSymbol, [...new Set([...tokenSymbols, ...DEFAULT_TOKEN_SYMBOLS])]);
|
|
210
|
-
cryptoFiatDispatch({
|
|
211
|
-
payload: {
|
|
212
|
-
type: CryptoFiatActions.SET_CONVERSIONS,
|
|
213
|
-
conversions,
|
|
214
|
-
},
|
|
215
|
-
});
|
|
216
|
-
})();
|
|
217
|
-
}, [cryptoFiat, tokenSymbols, fiatSymbol]);
|
|
218
|
-
return (
|
|
219
|
-
// TODO: The object passed as the value prop to the Context provider changes every render.
|
|
220
|
-
// To fix this consider wrapping it in a useMemo hook.
|
|
221
|
-
// eslint-disable-next-line react/jsx-no-constructed-context-values
|
|
222
|
-
jsx(CryptoFiatContext.Provider, { value: { cryptoFiatState, cryptoFiatDispatch }, children: children }));
|
|
223
|
-
}
|
|
1
|
+
import { r as reactExports, j as jsx, q as jsxs, X as isDualVariantIcon, al as MenuItem, H as Box, bg as Environment, l as useTranslation, aM as ViewContext, aR as EventTargetContext, ay as useAnalytics, cr as GasEstimateType, bG as HeaderNavigation, aB as Heading, M as Body, aY as SimpleLayout, I as IMTBLWidgetEvents, V as ViewActions, b0 as orchestrationEvents } from './index-CZPVM8ED.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, D as DEFAULT_TOKEN_SYMBOLS } from './CryptoFiatProvider-kmpyiWXO.js';
|
|
3
|
+
import { f as formatUnits } from './index-TbXVGt2L.js';
|
|
224
4
|
|
|
225
5
|
var BridgeWidgetViews;
|
|
226
6
|
(function (BridgeWidgetViews) {
|
|
@@ -367,7 +147,7 @@ const TOOLKIT_BASE_URL = {
|
|
|
367
147
|
function TopUpView({ widgetEvent, checkout,
|
|
368
148
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
369
149
|
provider, // Keep this for future use
|
|
370
|
-
showOnrampOption, showSwapOption, showBridgeOption,
|
|
150
|
+
showOnrampOption, showSwapOption, showBridgeOption, tokenAddress, amount, analytics, onCloseButtonClick, onBackButtonClick, heading, subheading, }) {
|
|
371
151
|
const { t } = useTranslation();
|
|
372
152
|
const { userJourney } = analytics;
|
|
373
153
|
const { viewDispatch } = reactExports.useContext(ViewContext);
|
|
@@ -394,15 +174,6 @@ showOnrampOption, showSwapOption, showBridgeOption, showAddTokensOption, tokenAd
|
|
|
394
174
|
useMount(() => {
|
|
395
175
|
page({ userJourney, screen: 'TopUp' });
|
|
396
176
|
});
|
|
397
|
-
// Go to add tokens widget if available
|
|
398
|
-
useMount(() => {
|
|
399
|
-
if (showAddTokensOption) {
|
|
400
|
-
orchestrationEvents.sendRequestAddTokensEvent(eventTarget, widgetEvent, {
|
|
401
|
-
toTokenAddress: tokenAddress ?? '',
|
|
402
|
-
toAmount: amount ?? '',
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
}, () => showAddTokensOption !== undefined, [showAddTokensOption]);
|
|
406
177
|
reactExports.useEffect(() => {
|
|
407
178
|
if (!cryptoFiatDispatch)
|
|
408
179
|
return;
|
|
@@ -583,11 +354,7 @@ showOnrampOption, showSwapOption, showBridgeOption, showAddTokensOption, tokenAd
|
|
|
583
354
|
isAvailable: true,
|
|
584
355
|
isEnabled: showBridgeOption,
|
|
585
356
|
},
|
|
586
|
-
], [
|
|
587
|
-
// if swap is available, don't show top up view
|
|
588
|
-
// await for redirect to add tokens widget
|
|
589
|
-
if (showAddTokensOption)
|
|
590
|
-
return null;
|
|
357
|
+
], [showBridgeOption, showOnrampOption, showSwapOption]);
|
|
591
358
|
return (jsx(SimpleLayout, { header: (jsx(HeaderNavigation, { onBackButtonClick: onBackButtonClick, onCloseButtonClick: onCloseButtonClick, showBack: true })), children: jsxs(Box, { sx: { paddingX: 'base.spacing.x4', paddingY: 'base.spacing.x4' }, children: [jsx(Heading, { size: "small", children: title }), description && (jsx(Body, { size: "small", sx: { color: 'base.color.text.body.secondary' }, children: description })), jsx(Box, { sx: { paddingY: 'base.spacing.x4' }, children: topUpFeatures
|
|
592
359
|
.sort((a, b) => Number(b.isAvailable) - Number(a.isAvailable))
|
|
593
360
|
.map((element) => element.isEnabled && (jsx(TopUpMenuItem, { testId: element.testId, icon: element.icon, iconVariant: element.iconVariant, intentIcon: element.intentIcon, heading: t(`${element.textConfigKey}.heading`), caption: !element.isAvailable
|
|
@@ -595,4 +362,4 @@ showOnrampOption, showSwapOption, showBridgeOption, showAddTokensOption, tokenAd
|
|
|
595
362
|
: t(`${element.textConfigKey}.caption`), onClick: element.onClickEvent, renderFeeFunction: element.fee, isDisabled: !element.isAvailable }, t(`${element.textConfigKey}.heading`).toLowerCase()))) })] }) }));
|
|
596
363
|
}
|
|
597
364
|
|
|
598
|
-
export { BridgeWidgetViews as B,
|
|
365
|
+
export { BridgeWidgetViews as B, OnRampWidgetViews as O, SwapWidgetViews as S, TopUpView as T, useMount as u };
|
package/dist/browser/checkout/{WalletApproveHero-Cc6p3CkR.js → WalletApproveHero-CMf6e8E8.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a9 as hFlex, j as jsx, ar as motion, _ as _objectWithoutProperties, x as useTheme, r as reactExports, Y as _slicedToArray, z as useGetSubcomponentChild, D as merge, q as jsxs, a0 as BaseClickable, R as ButtCon, G as SmartClone, dk as AnimatePresence, H as Box, a8 as Stack, a1 as ClassNames, U as _defineProperty, dl as getTertiaryButtonStyles, K as flattenChildren, J as isChildSubcomponent, at as Divider, dm as TextInput, dn as FormControlWrapper, l as useTranslation, al as MenuItem, ax as Drawer, M as Body, dp as Select,
|
|
2
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
3
|
-
import { F as FeesBreakdown } from './FeesBreakdown-
|
|
1
|
+
import { a9 as hFlex, j as jsx, ar as motion, _ as _objectWithoutProperties, x as useTheme, r as reactExports, Y as _slicedToArray, z as useGetSubcomponentChild, D as merge, q as jsxs, a0 as BaseClickable, R as ButtCon, G as SmartClone, dk as AnimatePresence, H as Box, a8 as Stack, a1 as ClassNames, U as _defineProperty, dl as getTertiaryButtonStyles, K as flattenChildren, J as isChildSubcomponent, at as Divider, dm as TextInput, dn as FormControlWrapper, l as useTranslation, al as MenuItem, ax as Drawer, M as Body, dp as Select, bg as Environment, d6 as WidgetTheme, dq as DuoCon, aB as Heading, T as Button, cp as NATIVE, a$ as getTokenImageByAddress, a_ as isNativeToken, df as DEFAULT_BALANCE_RETRY_POLICY, aO as getRemoteImage, ci as getChainNameById, i as getL1ChainId, ca as isWalletConnectProvider, cl as isMetaMaskProvider, bn as CloudImage, bJ as FooterLogo, co as formatZeroAmount, am as tokenValueFormat, c4 as ShimmerBox, bi as PriceDisplay, au as Fragment, cz as heroBackGroundStyles, cA as heroImageStyles, dr as heroImageBottomAlign } from './index-CZPVM8ED.js';
|
|
2
|
+
import { T as TokenImage, r as retry } from './retry-DzLPtvIf.js';
|
|
3
|
+
import { F as FeesBreakdown } from './FeesBreakdown-ZnwuhHxu.js';
|
|
4
4
|
|
|
5
5
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { R as ButtCon, T as Button, _ as _objectWithoutProperties, x as useTheme, $ as getStartingSize,
|
|
2
|
-
import { C as CryptoFiatContext, a as CryptoFiatActions,
|
|
3
|
-
import { T as TokenImage, r as retry } from './retry-
|
|
4
|
-
import { u as useInterval } from './useInterval-
|
|
5
|
-
import './index-DzrC5Kuy.js';
|
|
1
|
+
import { R as ButtCon, T as Button, _ as _objectWithoutProperties, x as useTheme, $ as getStartingSize, dw as DEFAULT_BUTTON_SIZE, D as merge, r as reactExports, K as flattenChildren, j as jsx, J as isChildSubcomponent, G as SmartClone, H as Box, dx as getResponsiveSx, dy as BUTTON_SIZES, dz as setDefaultSxBackgroundColor, a1 as ClassNames, U as _defineProperty, aZ as TokenFilterTypes, l as useTranslation, aM as ViewContext, q as jsxs, M as Body, V as ViewActions, bV as ConnectLoaderContext, ay as useAnalytics, co as formatZeroAmount, aR as EventTargetContext, aA as isPassportProvider, h as getL2ChainId, i as getL1ChainId, bg as Environment, al as MenuItem, am as tokenValueFormat, az as UserJourney, b0 as orchestrationEvents, I as IMTBLWidgetEvents, dA as ZERO_BALANCE_STRING, a_ as isNativeToken, dB as sendNetworkSwitchEvent, c2 as CheckoutErrorType, o as SharedViews, dC as NetworkFilterTypes, dD as sortNetworksCompareFn, c7 as getChainImage, df as DEFAULT_BALANCE_RETRY_POLICY, dE as sortTokensByAmount, a$ as getTokenImageByAddress, bz as calculateCryptoToFiat, bG as HeaderNavigation, cn as ButtonNavigationStyles, dF as sendWalletWidgetCloseEvent, bJ as FooterLogo, aY as SimpleLayout, cm as WalletProviderName, cj as getWalletProviderNameByProvider, X as isDualVariantIcon, bO as abbreviateWalletAddress, aB as Heading, ax as Drawer, c9 as useWalletConnect, dG as sendDisconnectWalletEvent, ca as isWalletConnectProvider, cz as heroBackGroundStyles, cA as heroImageStyles, dr as heroImageBottomAlign, cB as SimpleTextBody, dH as FAQS_LINK, aU as Link, bj as viewReducer, bk as initialViewState, L as LoadingView, E as ErrorView } from './index-CZPVM8ED.js';
|
|
2
|
+
import { C as CryptoFiatContext, a as CryptoFiatActions, b as CryptoFiatProvider } from './CryptoFiatProvider-kmpyiWXO.js';
|
|
3
|
+
import { T as TokenImage, r as retry } from './retry-DzLPtvIf.js';
|
|
4
|
+
import { u as useInterval } from './useInterval-ChxxDIzQ.js';
|
|
6
5
|
|
|
7
6
|
var horizontalMenuSxProps = {
|
|
8
7
|
justifyContent: "stretch",
|
|
@@ -256,7 +255,6 @@ const walletReducer = (state, action) => {
|
|
|
256
255
|
isBridgeEnabled: action.payload.supportedTopUps.isBridgeEnabled ?? true,
|
|
257
256
|
isAddTokensEnabled: action.payload.supportedTopUps.isAddTokensEnabled ?? true,
|
|
258
257
|
isSwapAvailable: action.payload.supportedTopUps.isSwapAvailable ?? true,
|
|
259
|
-
isAddTokensAvailable: action.payload.supportedTopUps.isAddTokensAvailable ?? true,
|
|
260
258
|
},
|
|
261
259
|
};
|
|
262
260
|
default:
|
|
@@ -701,12 +699,7 @@ function WalletBalances({ balancesLoading, theme, showNetworkMenu, }) {
|
|
|
701
699
|
control: 'AddCoins',
|
|
702
700
|
controlType: 'Button',
|
|
703
701
|
});
|
|
704
|
-
|
|
705
|
-
payload: {
|
|
706
|
-
type: ViewActions.UPDATE_VIEW,
|
|
707
|
-
view: { type: SharedViews.TOP_UP_VIEW },
|
|
708
|
-
},
|
|
709
|
-
});
|
|
702
|
+
orchestrationEvents.sendRequestAddTokensEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {});
|
|
710
703
|
};
|
|
711
704
|
const handleBridgeToL2OnClick = (address) => {
|
|
712
705
|
orchestrationEvents.sendRequestBridgeEvent(eventTarget, IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT, {
|
|
@@ -961,7 +954,6 @@ function WalletWidget(props) {
|
|
|
961
954
|
const [walletState, walletDispatch] = reactExports.useReducer(walletReducer, { ...initialWalletState, walletConfig: { showDisconnectButton, showNetworkMenu } });
|
|
962
955
|
const walletReducerValues = reactExports.useMemo(() => ({ walletState, walletDispatch }), [walletState, walletDispatch]);
|
|
963
956
|
const viewReducerValues = reactExports.useMemo(() => ({ viewState, viewDispatch }), [viewState, viewDispatch]);
|
|
964
|
-
const { supportedTopUps } = walletState;
|
|
965
957
|
const { balancesLoading, refreshBalances } = useBalance({
|
|
966
958
|
checkout,
|
|
967
959
|
provider,
|
|
@@ -997,12 +989,6 @@ function WalletWidget(props) {
|
|
|
997
989
|
checkSwapAvailable = await checkout.isSwapAvailable();
|
|
998
990
|
}
|
|
999
991
|
catch { /* */ }
|
|
1000
|
-
let checkAddTokensEnabled = isAddTokensEnabled;
|
|
1001
|
-
try {
|
|
1002
|
-
const addTokensConfig = await checkout.config.remote.getConfig('addTokens');
|
|
1003
|
-
checkAddTokensEnabled = addTokensConfig.enabled && isAddTokensEnabled;
|
|
1004
|
-
}
|
|
1005
|
-
catch { /* */ }
|
|
1006
992
|
walletDispatch({
|
|
1007
993
|
payload: {
|
|
1008
994
|
type: WalletActions.SET_SUPPORTED_TOP_UPS,
|
|
@@ -1011,8 +997,7 @@ function WalletWidget(props) {
|
|
|
1011
997
|
isSwapEnabled,
|
|
1012
998
|
isOnRampEnabled,
|
|
1013
999
|
isSwapAvailable: checkSwapAvailable,
|
|
1014
|
-
isAddTokensEnabled
|
|
1015
|
-
isAddTokensAvailable: checkSwapAvailable && checkAddTokensEnabled,
|
|
1000
|
+
isAddTokensEnabled,
|
|
1016
1001
|
},
|
|
1017
1002
|
},
|
|
1018
1003
|
});
|
|
@@ -1074,7 +1059,7 @@ function WalletWidget(props) {
|
|
|
1074
1059
|
await initialiseWallet();
|
|
1075
1060
|
};
|
|
1076
1061
|
return (jsx(ViewContext.Provider, { value: viewReducerValues, children: jsx(CryptoFiatProvider, { environment: environment, children: jsxs(WalletContext.Provider, { value: walletReducerValues, children: [viewState.view.type === SharedViews.LOADING_VIEW && (jsx(LoadingView, { loadingText: loadingText })), viewState.view.type === WalletWidgetViews.WALLET_BALANCES && (jsx(WalletBalances, { balancesLoading: balancesLoading, theme: theme, showNetworkMenu: showNetworkMenu })), viewState.view.type === WalletWidgetViews.SETTINGS
|
|
1077
|
-
&& (jsx(Settings, { showDisconnectButton: showDisconnectButton })), viewState.view.type === WalletWidgetViews.COIN_INFO && (jsx(CoinInfo, {})), viewState.view.type === SharedViews.ERROR_VIEW && (jsx(ErrorView, { actionText: errorActionText, onActionClick: errorAction, onCloseClick: () => sendWalletWidgetCloseEvent(eventTarget) }))
|
|
1062
|
+
&& (jsx(Settings, { showDisconnectButton: showDisconnectButton })), viewState.view.type === WalletWidgetViews.COIN_INFO && (jsx(CoinInfo, {})), viewState.view.type === SharedViews.ERROR_VIEW && (jsx(ErrorView, { actionText: errorActionText, onActionClick: errorAction, onCloseClick: () => sendWalletWidgetCloseEvent(eventTarget) }))] }) }) }));
|
|
1078
1063
|
}
|
|
1079
1064
|
|
|
1080
1065
|
export { WalletWidget as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { dS as __awaiter, dT as __generator, e1 as isServer, dV as getNextIntegrationsURL, dU as loadScript } from './index-
|
|
1
|
+
import { dS as __awaiter, dT as __generator, e1 as isServer, dV as getNextIntegrationsURL, dU as loadScript } from './index-CZPVM8ED.js';
|
|
2
2
|
|
|
3
3
|
function remoteMiddlewares(ctx, settings, obfuscate) {
|
|
4
4
|
var _a;
|
|
@@ -132552,6 +132552,9 @@ var views$3 = {
|
|
|
132552
132552
|
geoBlockError: {
|
|
132553
132553
|
buyTokenButton: "Buy tokens",
|
|
132554
132554
|
bridgeTokenButton: "Bridge tokens"
|
|
132555
|
+
},
|
|
132556
|
+
fees: {
|
|
132557
|
+
fiatPricePrefix: "≈ USD"
|
|
132555
132558
|
}
|
|
132556
132559
|
}
|
|
132557
132560
|
};
|
|
@@ -135691,7 +135694,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
135691
135694
|
|
|
135692
135695
|
const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$2={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$4={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$4.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$4.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$4.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$4.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$4.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$2.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$5={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$3=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$6={state:W$3,subscribe(e){return subscribe(W$3,()=>e(W$3))},setConfig(e){var t,s;R$5.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$4.setModalVersionInStorage(),Object.assign(W$3,e);}};var V$4=Object.defineProperty,D$7=Object.getOwnPropertySymbols,H$4=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$4.call(t,s)&&M$4(e,s,t[s]);if(D$7)for(var s of D$7(t))B$4.call(t,s)&&M$4(e,s,t[s]);return e};const L$5="https://explorer-api.walletconnect.com",E$4="wcm",O$6="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$4,sdkVersion:O$6},t),n=new URL(e,L$5);return n.searchParams.append("projectId",y$6.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$6={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$5}/w3m/v1/getWalletImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`},getAssetImageUrl(e){return `${L$5}/w3m/v1/getAssetImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`}};var z$5=Object.defineProperty,j$4=Object.getOwnPropertySymbols,J$3=Object.prototype.hasOwnProperty,q$5=Object.prototype.propertyIsEnumerable,k$5=(e,t,s)=>t in e?z$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$5=(e,t)=>{for(var s in t||(t={}))J$3.call(t,s)&&k$5(e,s,t[s]);if(j$4)for(var s of j$4(t))q$5.call(t,s)&&k$5(e,s,t[s]);return e};const N$4=a$4.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$4={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$6.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$4.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$6.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$4.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$4.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$4?await m$6.getMobileListings(v):await m$6.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F$5({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$6.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$4.isArray(s)&&(t.excludedIds=s.join(",")),a$4.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$4?await m$6.getMobileListings(t):await m$6.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$6.getWalletImageUrl(e)},getAssetImageUrl(e){return m$6.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$4.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$2.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$4=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$6=Object.prototype.hasOwnProperty,X$4=Object.prototype.propertyIsEnumerable,S$4=(e,t,s)=>t in e?G$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$6.call(t,s)&&S$4(e,s,t[s]);if($$3)for(var s of $$3(t))X$4.call(t,s)&&S$4(e,s,t[s]);return e};function Z$4(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$2=proxy({themeMode:Z$4()?"dark":"light"}),ne$2={state:C$2,subscribe(e){return subscribe(C$2,()=>e(C$2))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$2.themeMode=t),s&&(C$2.themeVariables=Y$2({},s));}},g$8=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$8,subscribe(e){return subscribe(g$8,()=>e(g$8))},openToast(e,t){g$8.open=!0,g$8.message=e,g$8.variant=t;},closeToast(){g$8.open=!1;}};
|
|
135693
135696
|
|
|
135694
|
-
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
135697
|
+
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-hOCXgQoK.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
|
|
135695
135698
|
|
|
135696
135699
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
135697
135700
|
__proto__: null,
|
|
@@ -152532,7 +152535,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152532
152535
|
return __generator(this, function (_b) {
|
|
152533
152536
|
switch (_b.label) {
|
|
152534
152537
|
case 0: return [4 /*yield*/, import(
|
|
152535
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152538
|
+
/* webpackChunkName: "auto-track" */ './auto-track-CnDJ3ZvA.js')];
|
|
152536
152539
|
case 1:
|
|
152537
152540
|
autotrack = _b.sent();
|
|
152538
152541
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152551,7 +152554,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152551
152554
|
return __generator(this, function (_b) {
|
|
152552
152555
|
switch (_b.label) {
|
|
152553
152556
|
case 0: return [4 /*yield*/, import(
|
|
152554
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152557
|
+
/* webpackChunkName: "auto-track" */ './auto-track-CnDJ3ZvA.js')];
|
|
152555
152558
|
case 1:
|
|
152556
152559
|
autotrack = _b.sent();
|
|
152557
152560
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152570,7 +152573,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152570
152573
|
return __generator(this, function (_b) {
|
|
152571
152574
|
switch (_b.label) {
|
|
152572
152575
|
case 0: return [4 /*yield*/, import(
|
|
152573
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152576
|
+
/* webpackChunkName: "auto-track" */ './auto-track-CnDJ3ZvA.js')];
|
|
152574
152577
|
case 1:
|
|
152575
152578
|
autotrack = _b.sent();
|
|
152576
152579
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152589,7 +152592,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152589
152592
|
return __generator(this, function (_b) {
|
|
152590
152593
|
switch (_b.label) {
|
|
152591
152594
|
case 0: return [4 /*yield*/, import(
|
|
152592
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152595
|
+
/* webpackChunkName: "auto-track" */ './auto-track-CnDJ3ZvA.js')];
|
|
152593
152596
|
case 1:
|
|
152594
152597
|
autotrack = _b.sent();
|
|
152595
152598
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152739,7 +152742,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152739
152742
|
return [2 /*return*/, []];
|
|
152740
152743
|
}
|
|
152741
152744
|
return [4 /*yield*/, import(
|
|
152742
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
152745
|
+
/* webpackChunkName: "queryString" */ './index-DG807GCH.js')];
|
|
152743
152746
|
case 1:
|
|
152744
152747
|
queryString = (_a.sent()).queryString;
|
|
152745
152748
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -155443,7 +155446,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155443
155446
|
case 0:
|
|
155444
155447
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
155445
155448
|
return [4 /*yield*/, import(
|
|
155446
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
155449
|
+
/* webpackChunkName: "tsub-middleware" */ './index-BEP80ac-.js').then(function (mod) {
|
|
155447
155450
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
155448
155451
|
})];
|
|
155449
155452
|
case 1:
|
|
@@ -155456,7 +155459,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155456
155459
|
tsubMiddleware = _d;
|
|
155457
155460
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
155458
155461
|
return [4 /*yield*/, import(
|
|
155459
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
155462
|
+
/* webpackChunkName: "ajs-destination" */ './index-mG63hnlk.js').then(function (mod) {
|
|
155460
155463
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
155461
155464
|
})];
|
|
155462
155465
|
case 4:
|
|
@@ -155469,7 +155472,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155469
155472
|
legacyDestinations = _e;
|
|
155470
155473
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
155471
155474
|
return [4 /*yield*/, import(
|
|
155472
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
155475
|
+
/* webpackChunkName: "legacyVideos" */ './index-ecosDhwb.js').then(function (mod) {
|
|
155473
155476
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
155474
155477
|
})];
|
|
155475
155478
|
case 7:
|
|
@@ -155478,7 +155481,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155478
155481
|
case 8:
|
|
155479
155482
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
155480
155483
|
return [4 /*yield*/, import(
|
|
155481
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
155484
|
+
/* webpackChunkName: "schemaFilter" */ './index-s5-HDiIZ.js').then(function (mod) {
|
|
155482
155485
|
var _a;
|
|
155483
155486
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
155484
155487
|
})];
|
|
@@ -155517,7 +155520,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
155517
155520
|
return enabled;
|
|
155518
155521
|
})) return [3 /*break*/, 17];
|
|
155519
155522
|
return [4 /*yield*/, import(
|
|
155520
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
155523
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-BMR0rE9j.js').then(function (_a) {
|
|
155521
155524
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
155522
155525
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155523
155526
|
var middleware, promises;
|
|
@@ -221508,10 +221511,10 @@ function SimpleLayout({ header, footer, children, heroContent, testId = 'contain
|
|
|
221508
221511
|
return (jsx$1(Box, { sx: responsiveStyles, testId: "simpleLayout", children: jsxs(Box, { testId: testId, sx: merge(simpleLayoutStyle, containerSx), children: [header && (jsx$1(Box, { sx: headerStyle(floatHeader), testId: "header", children: header })), jsxs(Box, { sx: contentStyle, testId: "main", children: [heroContent && (jsx$1(Box, { sx: heroContentStyle, children: heroContent })), children && (jsx$1(Box, { sx: { ...bodyStyle$1, ...bodyStyleOverrides }, testId: "children", children: children }))] }), footer && (jsx$1(Box, { sx: footerStyle(footerBackgroundColor), testId: "footer", children: footer }))] }) }));
|
|
221509
221512
|
}
|
|
221510
221513
|
|
|
221511
|
-
function LoadingView({ loadingText, textDuration }) {
|
|
221514
|
+
function LoadingView({ loadingText, textDuration, containerSx = {} }) {
|
|
221512
221515
|
const text = Array.isArray(loadingText) ? loadingText : [loadingText];
|
|
221513
221516
|
const duration = textDuration || 2500;
|
|
221514
|
-
return (jsx$1(SimpleLayout, { children: jsx$1(LoadingOverlay, { visible: true, children: jsx$1(LoadingOverlay.Content, { children: jsx$1(LoadingOverlay.Content.LoopingText, { text: [...text], textDuration: duration }) }) }) }));
|
|
221517
|
+
return (jsx$1(SimpleLayout, { containerSx: containerSx, children: jsx$1(LoadingOverlay, { visible: true, children: jsx$1(LoadingOverlay.Content, { children: jsx$1(LoadingOverlay.Content.LoopingText, { text: [...text], textDuration: duration }) }) }) }));
|
|
221515
221518
|
}
|
|
221516
221519
|
|
|
221517
221520
|
/**
|
|
@@ -222714,7 +222717,7 @@ const useProvidersContext = () => {
|
|
|
222714
222717
|
return context;
|
|
222715
222718
|
};
|
|
222716
222719
|
|
|
222717
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
222720
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-BhaUBTKx.js'));
|
|
222718
222721
|
class AddTokens extends Base {
|
|
222719
222722
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
222720
222723
|
getValidatedProperties({ config, }) {
|
|
@@ -222758,7 +222761,7 @@ class AddTokens extends Base {
|
|
|
222758
222761
|
}
|
|
222759
222762
|
}
|
|
222760
222763
|
|
|
222761
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
222764
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-DUStg-ob.js'));
|
|
222762
222765
|
class Bridge extends Base {
|
|
222763
222766
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
222764
222767
|
getValidatedProperties({ config }) {
|
|
@@ -222826,7 +222829,7 @@ const commerceFlows = [
|
|
|
222826
222829
|
CommerceFlowType.ADD_TOKENS,
|
|
222827
222830
|
];
|
|
222828
222831
|
|
|
222829
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
222832
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-8wW5PFpX.js'));
|
|
222830
222833
|
class CommerceWidgetRoot extends Base {
|
|
222831
222834
|
eventTopic = IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
222832
222835
|
getValidatedProperties({ config, }) {
|
|
@@ -225136,7 +225139,7 @@ const orchestrationEvents = {
|
|
|
225136
225139
|
sendRequestAddTokensEvent,
|
|
225137
225140
|
};
|
|
225138
225141
|
|
|
225139
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
225142
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-BRguwmcW.js').then(function (n) { return n.a; }));
|
|
225140
225143
|
class OnRamp extends Base {
|
|
225141
225144
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
225142
225145
|
getValidatedProperties({ config }) {
|
|
@@ -225274,7 +225277,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
225274
225277
|
eventTarget.dispatchEvent(event);
|
|
225275
225278
|
};
|
|
225276
225279
|
|
|
225277
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
225280
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-YRJq-KHp.js'));
|
|
225278
225281
|
class Sale extends Base {
|
|
225279
225282
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
225280
225283
|
// TODO: add specific validation logic for the sale items
|
|
@@ -225478,7 +225481,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
225478
225481
|
: serviceUnavailableView) }));
|
|
225479
225482
|
}
|
|
225480
225483
|
|
|
225481
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
225484
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-BiiN2Y72.js'));
|
|
225482
225485
|
class Swap extends Base {
|
|
225483
225486
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
225484
225487
|
getValidatedProperties({ config }) {
|
|
@@ -225603,7 +225606,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
225603
225606
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
225604
225607
|
}
|
|
225605
225608
|
|
|
225606
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
225609
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-BN45L_RI.js'));
|
|
225607
225610
|
class Wallet extends Base {
|
|
225608
225611
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
225609
225612
|
getValidatedProperties({ config }) {
|
|
@@ -225740,4 +225743,4 @@ class WidgetsFactory {
|
|
|
225740
225743
|
}
|
|
225741
225744
|
}
|
|
225742
225745
|
|
|
225743
|
-
export { getStartingSize as $, useSplitApartChildrenAndSubComponents as A, BridgeEventType as B, CommerceFlowType as C, merge$1 as D, ErrorView as E, useResizeObserver as F, SmartClone as G, Box as H, IMTBLWidgetEvents as I, isChildSubcomponent as J, flattenChildren as K, LoadingView as L, Body as M, useTheme$1 as N, OnRampEventType as O, ProviderEventType as P, Icon as Q, ButtCon as R, SwapEventType as S, Button as T, _defineProperty$1 as U, ViewActions as V, WalletEventType as W, isDualVariantIcon as X, _slicedToArray as Y, isNumberWithinTotal as Z, _objectWithoutProperties as _, CommerceEventType as a,
|
|
225746
|
+
export { getStartingSize as $, useSplitApartChildrenAndSubComponents as A, BridgeEventType as B, CommerceFlowType as C, merge$1 as D, ErrorView as E, useResizeObserver as F, SmartClone as G, Box as H, IMTBLWidgetEvents as I, isChildSubcomponent as J, flattenChildren as K, LoadingView as L, Body as M, useTheme$1 as N, OnRampEventType as O, ProviderEventType as P, Icon as Q, ButtCon as R, SwapEventType as S, Button as T, _defineProperty$1 as U, ViewActions as V, WalletEventType as W, isDualVariantIcon as X, _slicedToArray as Y, isNumberWithinTotal as Z, _objectWithoutProperties as _, CommerceEventType as a, getTokenImageByAddress as a$, BaseClickable as a0, ClassNames as a1, _toConsumableArray as a2, isError as a3, Badge as a4, FramedIcon as a5, FramedImage as a6, FramedLogo as a7, Stack as a8, hFlex as a9, isPassportProvider as aA, Heading as aB, WalletDrawer as aC, UnableToConnectDrawer as aD, ChangedYourMindDrawer as aE, WalletProviderRdns as aF, getProviderSlugFromRdns as aG, Web3Provider as aH, connectEIP6963Provider as aI, identifyUser as aJ, ConnectEIP6963ProviderError as aK, ProvidersContextActions as aL, ViewContext as aM, commonjsRequire$1 as aN, getRemoteImage as aO, useHandover as aP, HandoverTarget as aQ, EventTargetContext as aR, getRemoteRive as aS, Trans as aT, Link as aU, useInjectedProviders as aV, getDefaultTokenImage as aW, OverflowDrawerMenu as aX, SimpleLayout as aY, TokenFilterTypes as aZ, isNativeToken as a_, usePrevious as aa, useBrowserEffect as ab, getHeadingTextStyles as ac, vFlex as ad, centerFlexChildren as ae, FormControlLabel as af, FormControlValidation as ag, FormControlCaption as ah, AddTokensEventType as ai, getDefaultExportFromCjs$3 as aj, commonjsGlobal$2 as ak, MenuItem as al, tokenValueFormat as am, DEFAULT_TOKEN_FORMATTING_DECIMALS as an, BigNumber$1 as ao, getRemoteVideo as ap, FramedVideo as aq, motion$1 as ar, listItemVariants as as, Divider as at, Fragment$1 as au, listVariants as av, useProvidersContext as aw, Drawer as ax, useAnalytics as ay, UserJourney as az, ConnectEventType as b, widgetTheme as b$, orchestrationEvents as b0, requireSecp256k1 as b1, requireLib_commonjs as b2, require$$0$3 as b3, bech32 as b4, bnExports$1 as b5, require$$0$2 as b6, getAugmentedNamespace$1 as b7, require$$0$5 as b8, minimalisticAssert$1 as b9, sendSaleWidgetCloseEvent as bA, sendSaleSuccessEvent as bB, sendSaleFailedEvent as bC, sendSaleTransactionSuccessEvent as bD, sendSalePaymentMethodEvent as bE, sendSalePaymentTokenEvent as bF, HeaderNavigation as bG, LoadingOverlay as bH, HandoverDuration as bI, FooterLogo as bJ, StatusType as bK, prettyFormatNumber as bL, ShimmerCircle as bM, FundingStepType as bN, abbreviateWalletAddress as bO, tokenSymbolNameOverrides as bP, ItemType as bQ, TransactionOrGasType as bR, GasTokenType as bS, RoutingOutcomeType as bT, isGasFree as bU, ConnectLoaderContext as bV, eventTargetReducer as bW, initialEventTargetState as bX, EventTargetActions as bY, ConnectWidgetViews as bZ, ConnectLoaderActions as b_, require$$2 as ba, hash$5 as bb, MaxUint256$5 as bc, merge as bd, SvgIcon as be, WalletWarningHero as bf, Environment$1 as bg, t$7 as bh, PriceDisplay as bi, viewReducer as bj, initialViewState as bk, isValidAddress as bl, amountInputValidation as bm, CloudImage as bn, ServiceUnavailableErrorView as bo, ServiceType as bp, MultiTextShimmer as bq, getCaptionTextStyles as br, DEFAULT_BODY_PROPS as bs, baseTextComponentSx as bt, useConvertSxToEmotionStyles as bu, useGetCurrentSizeClass as bv, cloneElementWithCssProp as bw, compareStr as bx, SalePaymentTypes as by, calculateCryptoToFiat as bz, CommerceFailureEventType as c, accessListify$1 as c$, BlockExplorerService as c0, axios$1 as c1, CheckoutErrorType as c2, IMMUTABLE_API_BASE_URL as c3, ShimmerBox as c4, PASSPORT_URL as c5, getChainIdBySlug as c6, getChainImage as c7, networkName as c8, useWalletConnect as c9, heroImageStyles as cA, SimpleTextBody as cB, FooterButton as cC, getEthTokenImage as cD, WITHDRAWAL_CLAIM_GAS_LIMIT as cE, BridgeConfiguration as cF, ImmutableConfiguration as cG, TokenBridge as cH, StatusView as cI, ETH_SEPOLIA_TO_ZKEVM_TESTNET as cJ, ETH_SEPOLIA_TO_ZKEVM_DEVNET as cK, ETH_MAINNET_TO_ZKEVM_MAINNET as cL, defineReadOnly$1 as cM, getStatic$1 as cN, Signer$1 as cO, Provider$1 as cP, getAddress$1 as cQ, Logger$2 as cR, getContractAddress$1 as cS, Interface$1 as cT, shallowCopy$1 as cU, VoidSigner$1 as cV, Indexed$1 as cW, deepCopy$1 as cX, isHexString$1 as cY, checkResultErrors$1 as cZ, resolveProperties$1 as c_, isWalletConnectProvider as ca, Logo as cb, RawImage as cc, AXELAR_SCAN_URL as cd, getNativeSymbolByChainSlug as ce, getChainSlugById as cf, JsonRpcProvider$1 as cg, DEFAULT_TRANSACTIONS_RETRY_POLICY as ch, getChainNameById as ci, getWalletProviderNameByProvider as cj, isAddressSanctioned as ck, isMetaMaskProvider as cl, WalletProviderName as cm, ButtonNavigationStyles as cn, formatZeroAmount as co, NATIVE as cp, ETH_TOKEN_SYMBOL as cq, GasEstimateType as cr, DEFAULT_TOKEN_DECIMALS as cs, DEFAULT_QUOTE_REFRESH_INTERVAL as ct, addChainChangedListener as cu, removeChainChangedListener as cv, IMX_TOKEN_SYMBOL as cw, dist as cx, CHECKOUT_CDN_BASE_URL as cy, heroBackGroundStyles as cz, CommerceSuccessEventType as d, applyDestinationMiddleware as d$, arrayify$1 as d0, global$2 as d1, ExchangeType as d2, sendOnRampWidgetCloseEvent as d3, sendOnRampSuccessEvent as d4, sendOnRampFailedEvent as d5, WidgetTheme as d6, quickswapFooterStyles as d7, quickswapFooterLogoStyles as d8, quickswapFooterDisclaimerTextStyles as d9, ZERO_BALANCE_STRING as dA, sendNetworkSwitchEvent as dB, NetworkFilterTypes as dC, sortNetworksCompareFn as dD, sortTokensByAmount as dE, sendWalletWidgetCloseEvent as dF, sendDisconnectWalletEvent as dG, FAQS_LINK as dH, useBrowserLayoutEffect as dI, ne$2 as dJ, se$2 as dK, T$2 as dL, oe$4 as dM, R$5 as dN, a$4 as dO, te$4 as dP, p$9 as dQ, y$6 as dR, __awaiter as dS, __generator as dT, loadScript as dU, getNextIntegrationsURL as dV, unloadScript as dW, __spreadArray$1 as dX, isOffline as dY, __assign as dZ, ContextCancelation as d_, getImxTokenImage as da, Tooltip as db, ESTIMATE_DEBOUNCE as dc, DEFAULT_TOKEN_VALIDATION_DECIMALS as dd, sendSwapWidgetCloseEvent as de, DEFAULT_BALANCE_RETRY_POLICY as df, SwapDirection as dg, sendSwapSuccessEvent as dh, sendSwapFailedEvent as di, sendSwapRejectedEvent as dj, AnimatePresence as dk, getTertiaryButtonStyles as dl, TextInput as dm, FormControlWrapper as dn, Select as dp, DuoCon as dq, heroImageBottomAlign as dr, version$r as ds, hexZeroPad$1 as dt, isBigNumberish as du, isBytes$1 as dv, DEFAULT_BUTTON_SIZE as dw, getResponsiveSx as dx, BUTTON_SIZES as dy, setDefaultSxBackgroundColor as dz, CommerceUserActionEventType as e, dist$1 as e0, isServer as e1, mergedOptions as e2, isPlainObject as e3, pWhile as e4, PriorityQueue as e5, PersistedPriorityQueue as e6, attempt as e7, isOnline as e8, Context as e9, pTimeout as ea, gracefulDecodeURIComponent as eb, WidgetsFactory as ec, SaleEventType as f, OrchestrationEventType as g, getL2ChainId as h, getL1ChainId as i, jsx$1 as j, ChainId as k, useTranslation as l, useViewState as m, useEventTargetState as n, SharedViews as o, commerceFlows as p, jsxs as q, reactExports as r, ConnectWidget as s, ProvidersContextProvider as t, useConnectLoaderState as u, ConnectLoader as v, ViewContextProvider as w, useTheme as x, useForwardLocalDomRef as y, useGetSubcomponentChild as z };
|