@velora-dex/widget 0.3.11-dev.1 → 0.3.11-dev.3
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/components/ui/tooltip.js +1 -1
- package/dist/components/ui/tooltip.js.map +1 -1
- package/dist/components/widget/AppHeader/Activities/hooks.d.ts +2 -2
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts +0 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.d.ts.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js +59 -77
- package/dist/components/widget/Dialog/SelectTokenDialog/SelectTokenDialog.js.map +1 -1
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js +25 -21
- package/dist/components/widget/Dialog/SelectTokenDialog/TokenListBody/TokenCloud/tokens.js.map +1 -1
- package/dist/components/widget/NetworkIcon/NetworkIconSquare.js +1 -2
- package/dist/components/widget/NetworkIcon/NetworkIconSquare.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.d.ts.map +1 -1
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js +4 -3
- package/dist/components/widget/NetworkSwitcher/NetworkSwitcherList.js.map +1 -1
- package/dist/components/widget/NetworkSwitcher/types.d.ts +1 -0
- package/dist/components/widget/NetworkSwitcher/types.d.ts.map +1 -1
- package/dist/components/widget/NetworkSwitcher/utils/items.js +2 -0
- package/dist/components/widget/NetworkSwitcher/utils/items.js.map +1 -1
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js +3 -4
- package/dist/components/widget/NetworkWithIcon/NetworkWithIcon.js.map +1 -1
- package/dist/components/widget/Screen/GenericScreen.js +1 -1
- package/dist/components/widget/Screen/GenericScreen.js.map +1 -1
- package/dist/components/widget/TokenInput/InputContainer.js +1 -1
- package/dist/components/widget/TokenInput/InputContainer.js.map +1 -1
- package/dist/components/widget/TokenInput/InputFooter.js +2 -2
- package/dist/components/widget/TokenInput/InputFooter.js.map +1 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts +2 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/common/MaxButtons.js +27 -15
- package/dist/components/widget/TokenInput/common/MaxButtons.js.map +1 -1
- package/dist/components/widget/TokenInput/index.d.ts.map +1 -1
- package/dist/components/widget/TokenInput/index.js +86 -102
- package/dist/components/widget/TokenInput/index.js.map +1 -1
- package/dist/components/widget/TokenInput/types.d.ts +2 -1
- package/dist/components/widget/TokenInput/types.d.ts.map +1 -1
- package/dist/configurator/Configurator.d.ts.map +1 -1
- package/dist/configurator/components/EnabledChainsSelector.d.ts.map +1 -1
- package/dist/configurator/components/PartnerInput.d.ts +5 -3
- package/dist/configurator/components/PartnerInput.d.ts.map +1 -1
- package/dist/configurator/components/common/Input.d.ts +9 -0
- package/dist/configurator/components/common/Input.d.ts.map +1 -1
- package/dist/core/constants.d.ts +1 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +150 -135
- package/dist/core/index.js.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.d.ts.map +1 -1
- package/dist/core/inputs/hooks/useMaxButtonProps.js +38 -16
- package/dist/core/inputs/hooks/useMaxButtonProps.js.map +1 -1
- package/dist/core/state/chainToAtom.d.ts +4 -4
- package/dist/core/state/configActionsAtom.d.ts.map +1 -1
- package/dist/core/state/configActionsAtom.js +3 -3
- package/dist/core/state/configActionsAtom.js.map +1 -1
- package/dist/core/state/configAtom.d.ts +7 -8
- package/dist/core/state/configAtom.d.ts.map +1 -1
- package/dist/core/state/configAtom.js +8 -7
- package/dist/core/state/configAtom.js.map +1 -1
- package/dist/core/state/containerAtom.d.ts +1 -0
- package/dist/core/state/containerAtom.d.ts.map +1 -1
- package/dist/core/state/containerAtom.js +7 -1
- package/dist/core/state/containerAtom.js.map +1 -1
- package/dist/core/state/enabledChainsAtom.d.ts +9 -9
- package/dist/core/state/validatedPartnerConfigAtom.d.ts +3 -0
- package/dist/core/state/validatedPartnerConfigAtom.d.ts.map +1 -0
- package/dist/core/state/validatedPartnerConfigAtom.js +22 -0
- package/dist/core/state/validatedPartnerConfigAtom.js.map +1 -0
- package/dist/core/types.d.ts +12 -2
- package/dist/core/types.d.ts.map +1 -1
- package/dist/hooks/gas/config.js +1 -2
- package/dist/hooks/gas/config.js.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts +5 -2
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js +2 -1
- package/dist/hooks/swap/prices/delta/queries/useDeltaPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts +4 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.d.ts.map +1 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js +2 -1
- package/dist/hooks/swap/prices/market/queries/useMarketPriceQuery.js.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.d.ts +3 -1
- package/dist/hooks/swap/prices/usePricesParams.d.ts.map +1 -1
- package/dist/hooks/swap/prices/usePricesParams.js +36 -27
- package/dist/hooks/swap/prices/usePricesParams.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.d.ts.map +1 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js +9 -1
- package/dist/hooks/swap/tradeFlow/useDeltaFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js +3 -1
- package/dist/hooks/swap/tradeFlow/useLimitOrderFlow.js.map +1 -1
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js +9 -6
- package/dist/hooks/swap/tradeFlow/useMarketFlow.js.map +1 -1
- package/dist/hooks/useBreakpoints.d.ts.map +1 -1
- package/dist/hooks/useBreakpoints.js +2 -4
- package/dist/hooks/useBreakpoints.js.map +1 -1
- package/dist/hooks/usePartner.d.ts +1 -1
- package/dist/hooks/usePartner.d.ts.map +1 -1
- package/dist/hooks/usePartner.js +3 -5
- package/dist/hooks/usePartner.js.map +1 -1
- package/dist/hooks/useSelectableDestChains.d.ts +1 -1
- package/dist/lib/constants/delta.d.ts +1 -1
- package/dist/lib/constants/delta.js +1 -2
- package/dist/lib/constants/delta.js.map +1 -1
- package/dist/lib/constants/mobile.d.ts.map +1 -1
- package/dist/lib/constants/mobile.js.map +1 -1
- package/dist/lib/constants/otc.js +1 -2
- package/dist/lib/constants/otc.js.map +1 -1
- package/dist/lib/constants/weth.js +1 -2
- package/dist/lib/constants/weth.js.map +1 -1
- package/dist/lib/utils/formatFiatPrice.d.ts +1 -1
- package/dist/lib/utils/formatFiatPrice.d.ts.map +1 -1
- package/dist/lib/utils/formatFiatPrice.js +4 -2
- package/dist/lib/utils/formatFiatPrice.js.map +1 -1
- package/dist/lib/utils/index.d.ts +1 -0
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/lib/utils/index.js +6 -1
- package/dist/lib/utils/index.js.map +1 -1
- package/dist/lib/utils/mobile.d.ts +1 -1
- package/dist/lib/utils/mobile.js.map +1 -1
- package/dist/lib/web3/wagmi/config.d.ts +46 -46
- package/dist/lib/web3/wagmi/constants.d.ts +46 -45
- package/dist/lib/web3/wagmi/constants.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/constants.js +14 -3
- package/dist/lib/web3/wagmi/constants.js.map +1 -1
- package/dist/lib/web3/wagmi/supportedChains.d.ts +1 -379
- package/dist/lib/web3/wagmi/supportedChains.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/switchChain.d.ts +177 -177
- package/dist/lib/web3/wagmi/switchChain.d.ts.map +1 -1
- package/dist/lib/web3/wagmi/transports.js +1 -2
- package/dist/lib/web3/wagmi/transports.js.map +1 -1
- package/dist/styles.css +11 -3
- package/dist/tokens/constants.js +1 -2
- package/dist/tokens/constants.js.map +1 -1
- package/dist/tokens/defaultTokens.js +1 -2
- package/dist/tokens/defaultTokens.js.map +1 -1
- package/dist/tokens/lists/state/tokenListsStateAtom.d.ts +4 -4
- package/package.json +1 -1
- package/dist/lib/web3/wagmi/supportedChains.js +0 -18
- package/dist/lib/web3/wagmi/supportedChains.js.map +0 -1
package/dist/core/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { SwapModeSwitcherExpandable } from '../components/widget/SwapModeSwitche
|
|
|
18
18
|
import { useTokenInputsFromPrice } from '../hooks/swap/prices/useTokenInputsFromPrice.js';
|
|
19
19
|
import { SwapDetailsExpandable } from '../components/widget/Details/SwapDetailsExpandable.js';
|
|
20
20
|
import { ReceiverAddress } from '../components/widget/ReceiverAddress/ReceiverAddress.js';
|
|
21
|
-
import { useSetAtom, useAtomValue } from './store.js';
|
|
21
|
+
import { useSetAtom, jotaiStore, useAtomValue } from './store.js';
|
|
22
22
|
import { useHydrateAtoms } from 'jotai/utils';
|
|
23
23
|
import { containerAtom } from './state/containerAtom.js';
|
|
24
24
|
import { AppHeader } from '../components/widget/AppHeader/AppHeader.js';
|
|
@@ -279,7 +279,7 @@ const App = () => {
|
|
|
279
279
|
return t2;
|
|
280
280
|
};
|
|
281
281
|
const WidgetBase = (t0) => {
|
|
282
|
-
const $ = distExports.c(
|
|
282
|
+
const $ = distExports.c(73);
|
|
283
283
|
const {
|
|
284
284
|
config: _config,
|
|
285
285
|
provider,
|
|
@@ -301,6 +301,7 @@ const WidgetBase = (t0) => {
|
|
|
301
301
|
let destChains;
|
|
302
302
|
let devURLs;
|
|
303
303
|
let excludeUI;
|
|
304
|
+
let partnerConfig;
|
|
304
305
|
let srcChains;
|
|
305
306
|
let tokenLists;
|
|
306
307
|
let tradeModes;
|
|
@@ -312,6 +313,7 @@ const WidgetBase = (t0) => {
|
|
|
312
313
|
tradeModes,
|
|
313
314
|
excludeUI,
|
|
314
315
|
devURLs,
|
|
316
|
+
partnerConfig,
|
|
315
317
|
...config
|
|
316
318
|
} = t1);
|
|
317
319
|
$[2] = t1;
|
|
@@ -319,31 +321,33 @@ const WidgetBase = (t0) => {
|
|
|
319
321
|
$[4] = destChains;
|
|
320
322
|
$[5] = devURLs;
|
|
321
323
|
$[6] = excludeUI;
|
|
322
|
-
$[7] =
|
|
323
|
-
$[8] =
|
|
324
|
-
$[9] =
|
|
324
|
+
$[7] = partnerConfig;
|
|
325
|
+
$[8] = srcChains;
|
|
326
|
+
$[9] = tokenLists;
|
|
327
|
+
$[10] = tradeModes;
|
|
325
328
|
} else {
|
|
326
329
|
config = $[3];
|
|
327
330
|
destChains = $[4];
|
|
328
331
|
devURLs = $[5];
|
|
329
332
|
excludeUI = $[6];
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
+
partnerConfig = $[7];
|
|
334
|
+
srcChains = $[8];
|
|
335
|
+
tokenLists = $[9];
|
|
336
|
+
tradeModes = $[10];
|
|
333
337
|
}
|
|
334
338
|
let t2;
|
|
335
|
-
if ($[
|
|
339
|
+
if ($[11] !== config) {
|
|
336
340
|
t2 = [setWidgetConfigAtom, {
|
|
337
341
|
...defaultWidgetConfig,
|
|
338
342
|
...config
|
|
339
343
|
}];
|
|
340
|
-
$[
|
|
341
|
-
$[
|
|
344
|
+
$[11] = config;
|
|
345
|
+
$[12] = t2;
|
|
342
346
|
} else {
|
|
343
|
-
t2 = $[
|
|
347
|
+
t2 = $[12];
|
|
344
348
|
}
|
|
345
349
|
let t3;
|
|
346
|
-
if ($[
|
|
350
|
+
if ($[13] !== destChains || $[14] !== devURLs || $[15] !== excludeUI || $[16] !== partnerConfig || $[17] !== srcChains || $[18] !== tokenLists || $[19] !== tradeModes) {
|
|
347
351
|
t3 = [setSubConfigAtom, {
|
|
348
352
|
...defaultSubConfig,
|
|
349
353
|
srcChains,
|
|
@@ -351,92 +355,102 @@ const WidgetBase = (t0) => {
|
|
|
351
355
|
tokenLists,
|
|
352
356
|
tradeModes,
|
|
353
357
|
excludeUI,
|
|
354
|
-
devURLs
|
|
358
|
+
devURLs,
|
|
359
|
+
partnerConfig
|
|
355
360
|
}];
|
|
356
|
-
$[
|
|
357
|
-
$[
|
|
358
|
-
$[
|
|
359
|
-
$[
|
|
360
|
-
$[
|
|
361
|
-
$[
|
|
362
|
-
$[
|
|
361
|
+
$[13] = destChains;
|
|
362
|
+
$[14] = devURLs;
|
|
363
|
+
$[15] = excludeUI;
|
|
364
|
+
$[16] = partnerConfig;
|
|
365
|
+
$[17] = srcChains;
|
|
366
|
+
$[18] = tokenLists;
|
|
367
|
+
$[19] = tradeModes;
|
|
368
|
+
$[20] = t3;
|
|
363
369
|
} else {
|
|
364
|
-
t3 = $[
|
|
370
|
+
t3 = $[20];
|
|
365
371
|
}
|
|
366
372
|
const t4 = provider || null;
|
|
367
373
|
let t5;
|
|
368
|
-
if ($[
|
|
374
|
+
if ($[21] !== t4) {
|
|
369
375
|
t5 = [externalProviderAtom, t4];
|
|
370
|
-
$[
|
|
371
|
-
$[
|
|
376
|
+
$[21] = t4;
|
|
377
|
+
$[22] = t5;
|
|
372
378
|
} else {
|
|
373
|
-
t5 = $[
|
|
379
|
+
t5 = $[22];
|
|
374
380
|
}
|
|
375
381
|
let t6;
|
|
376
|
-
if ($[
|
|
382
|
+
if ($[23] !== events) {
|
|
377
383
|
t6 = events || {};
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
384
|
+
$[23] = events;
|
|
385
|
+
$[24] = t6;
|
|
380
386
|
} else {
|
|
381
|
-
t6 = $[
|
|
387
|
+
t6 = $[24];
|
|
382
388
|
}
|
|
383
389
|
let t7;
|
|
384
|
-
if ($[
|
|
390
|
+
if ($[25] !== t6) {
|
|
385
391
|
t7 = [widgetEventsAtom, t6];
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
392
|
+
$[25] = t6;
|
|
393
|
+
$[26] = t7;
|
|
388
394
|
} else {
|
|
389
|
-
t7 = $[
|
|
395
|
+
t7 = $[26];
|
|
390
396
|
}
|
|
391
397
|
let t8;
|
|
392
|
-
if ($[
|
|
398
|
+
if ($[27] !== formInputProps) {
|
|
393
399
|
t8 = formInputProps || {};
|
|
394
|
-
$[
|
|
395
|
-
$[
|
|
400
|
+
$[27] = formInputProps;
|
|
401
|
+
$[28] = t8;
|
|
396
402
|
} else {
|
|
397
|
-
t8 = $[
|
|
403
|
+
t8 = $[28];
|
|
398
404
|
}
|
|
399
405
|
let t9;
|
|
400
|
-
if ($[
|
|
406
|
+
if ($[29] !== t8) {
|
|
401
407
|
t9 = [formInputPropsAtom, t8];
|
|
402
|
-
$[
|
|
403
|
-
$[
|
|
408
|
+
$[29] = t8;
|
|
409
|
+
$[30] = t9;
|
|
404
410
|
} else {
|
|
405
|
-
t9 = $[
|
|
411
|
+
t9 = $[30];
|
|
406
412
|
}
|
|
407
413
|
let t10;
|
|
408
|
-
if ($[
|
|
414
|
+
if ($[31] !== queryClient) {
|
|
409
415
|
t10 = [queryClientAtom, queryClient];
|
|
410
|
-
$[
|
|
411
|
-
$[
|
|
416
|
+
$[31] = queryClient;
|
|
417
|
+
$[32] = t10;
|
|
412
418
|
} else {
|
|
413
|
-
t10 = $[
|
|
419
|
+
t10 = $[32];
|
|
414
420
|
}
|
|
415
421
|
let t11;
|
|
416
|
-
if ($[
|
|
422
|
+
if ($[33] !== t10 || $[34] !== t2 || $[35] !== t3 || $[36] !== t5 || $[37] !== t7 || $[38] !== t9) {
|
|
417
423
|
t11 = [t2, t3, t5, t7, t9, t10];
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
424
|
+
$[33] = t10;
|
|
425
|
+
$[34] = t2;
|
|
426
|
+
$[35] = t3;
|
|
427
|
+
$[36] = t5;
|
|
428
|
+
$[37] = t7;
|
|
429
|
+
$[38] = t9;
|
|
430
|
+
$[39] = t11;
|
|
425
431
|
} else {
|
|
426
|
-
t11 = $[
|
|
432
|
+
t11 = $[39];
|
|
427
433
|
}
|
|
428
|
-
|
|
434
|
+
let t12;
|
|
435
|
+
if ($[40] === Symbol.for("react.memo_cache_sentinel")) {
|
|
436
|
+
t12 = {
|
|
437
|
+
store: jotaiStore
|
|
438
|
+
};
|
|
439
|
+
$[40] = t12;
|
|
440
|
+
} else {
|
|
441
|
+
t12 = $[40];
|
|
442
|
+
}
|
|
443
|
+
useHydrateAtoms(t11, t12);
|
|
429
444
|
useWidgetEventsSetter(events);
|
|
430
445
|
useSetFormInputFromProps(formInputProps);
|
|
431
|
-
let t12;
|
|
432
446
|
let t13;
|
|
433
|
-
|
|
434
|
-
|
|
447
|
+
let t14;
|
|
448
|
+
if ($[41] !== config.debug || $[42] !== config.enableCrossChain || $[43] !== config.enableDelta || $[44] !== config.ignoreBadUsdPrice || $[45] !== config.privyAppId || $[46] !== config.privyClientId || $[47] !== config.theme || $[48] !== config.widgetMode || $[49] !== setWidgetConfig) {
|
|
449
|
+
t13 = () => {
|
|
435
450
|
setWidgetConfig({
|
|
436
451
|
theme: config.theme,
|
|
437
452
|
enableDelta: config.enableDelta,
|
|
438
453
|
enableCrossChain: config.enableCrossChain,
|
|
439
|
-
partner: config.partner,
|
|
440
454
|
privyAppId: config.privyAppId,
|
|
441
455
|
privyClientId: config.privyClientId,
|
|
442
456
|
debug: config.debug,
|
|
@@ -444,109 +458,110 @@ const WidgetBase = (t0) => {
|
|
|
444
458
|
ignoreBadUsdPrice: config.ignoreBadUsdPrice
|
|
445
459
|
});
|
|
446
460
|
};
|
|
447
|
-
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
$[
|
|
458
|
-
$[
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
useLayoutEffect(t12, t13);
|
|
465
|
-
let t14;
|
|
461
|
+
t14 = [config.theme, config.enableDelta, config.enableCrossChain, config.privyAppId, config.privyClientId, config.debug, config.widgetMode, config.ignoreBadUsdPrice, setWidgetConfig];
|
|
462
|
+
$[41] = config.debug;
|
|
463
|
+
$[42] = config.enableCrossChain;
|
|
464
|
+
$[43] = config.enableDelta;
|
|
465
|
+
$[44] = config.ignoreBadUsdPrice;
|
|
466
|
+
$[45] = config.privyAppId;
|
|
467
|
+
$[46] = config.privyClientId;
|
|
468
|
+
$[47] = config.theme;
|
|
469
|
+
$[48] = config.widgetMode;
|
|
470
|
+
$[49] = setWidgetConfig;
|
|
471
|
+
$[50] = t13;
|
|
472
|
+
$[51] = t14;
|
|
473
|
+
} else {
|
|
474
|
+
t13 = $[50];
|
|
475
|
+
t14 = $[51];
|
|
476
|
+
}
|
|
477
|
+
useLayoutEffect(t13, t14);
|
|
466
478
|
let t15;
|
|
467
|
-
|
|
468
|
-
|
|
479
|
+
let t16;
|
|
480
|
+
if ($[52] !== destChains || $[53] !== devURLs || $[54] !== excludeUI || $[55] !== partnerConfig || $[56] !== setSubConfig || $[57] !== srcChains || $[58] !== tokenLists || $[59] !== tradeModes) {
|
|
481
|
+
t15 = () => {
|
|
469
482
|
setSubConfig({
|
|
470
483
|
srcChains,
|
|
471
484
|
destChains,
|
|
472
485
|
tokenLists,
|
|
473
486
|
tradeModes,
|
|
474
487
|
excludeUI,
|
|
475
|
-
devURLs
|
|
488
|
+
devURLs,
|
|
489
|
+
partnerConfig
|
|
476
490
|
});
|
|
477
491
|
};
|
|
478
|
-
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
t15 = $[
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
t16 = [srcChains, destChains, tokenLists, setSubConfig, tradeModes, excludeUI, devURLs, partnerConfig];
|
|
493
|
+
$[52] = destChains;
|
|
494
|
+
$[53] = devURLs;
|
|
495
|
+
$[54] = excludeUI;
|
|
496
|
+
$[55] = partnerConfig;
|
|
497
|
+
$[56] = setSubConfig;
|
|
498
|
+
$[57] = srcChains;
|
|
499
|
+
$[58] = tokenLists;
|
|
500
|
+
$[59] = tradeModes;
|
|
501
|
+
$[60] = t15;
|
|
502
|
+
$[61] = t16;
|
|
503
|
+
} else {
|
|
504
|
+
t15 = $[60];
|
|
505
|
+
t16 = $[61];
|
|
506
|
+
}
|
|
507
|
+
useLayoutEffect(t15, t16);
|
|
493
508
|
const setExternalProvider = useSetAtom(externalProviderAtom);
|
|
494
|
-
let t16;
|
|
495
509
|
let t17;
|
|
496
|
-
|
|
497
|
-
|
|
510
|
+
let t18;
|
|
511
|
+
if ($[62] !== provider || $[63] !== setExternalProvider) {
|
|
512
|
+
t17 = () => {
|
|
498
513
|
setExternalProvider(provider || null);
|
|
499
514
|
};
|
|
500
|
-
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
515
|
+
t18 = [provider, setExternalProvider];
|
|
516
|
+
$[62] = provider;
|
|
517
|
+
$[63] = setExternalProvider;
|
|
518
|
+
$[64] = t17;
|
|
519
|
+
$[65] = t18;
|
|
505
520
|
} else {
|
|
506
|
-
|
|
507
|
-
|
|
521
|
+
t17 = $[64];
|
|
522
|
+
t18 = $[65];
|
|
508
523
|
}
|
|
509
|
-
useLayoutEffect(
|
|
524
|
+
useLayoutEffect(t17, t18);
|
|
510
525
|
const isDappMode = config?.widgetMode === "dapp";
|
|
511
526
|
const reconnectOnMountInit = useInitialValue(!isDappMode);
|
|
512
|
-
let t18;
|
|
513
527
|
let t19;
|
|
514
528
|
let t20;
|
|
515
529
|
let t21;
|
|
516
530
|
let t22;
|
|
517
|
-
if ($[63] === Symbol.for("react.memo_cache_sentinel")) {
|
|
518
|
-
t18 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
519
|
-
t19 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
520
|
-
t20 = /* @__PURE__ */ jsx(Updaters, {});
|
|
521
|
-
t21 = /* @__PURE__ */ jsx(App, {});
|
|
522
|
-
t22 = false;
|
|
523
|
-
$[63] = t18;
|
|
524
|
-
$[64] = t19;
|
|
525
|
-
$[65] = t20;
|
|
526
|
-
$[66] = t21;
|
|
527
|
-
$[67] = t22;
|
|
528
|
-
} else {
|
|
529
|
-
t18 = $[63];
|
|
530
|
-
t19 = $[64];
|
|
531
|
-
t20 = $[65];
|
|
532
|
-
t21 = $[66];
|
|
533
|
-
t22 = $[67];
|
|
534
|
-
}
|
|
535
531
|
let t23;
|
|
536
|
-
if ($[
|
|
537
|
-
|
|
538
|
-
|
|
532
|
+
if ($[66] === Symbol.for("react.memo_cache_sentinel")) {
|
|
533
|
+
t19 = /* @__PURE__ */ jsx(AutoconnectExternalProvider, {});
|
|
534
|
+
t20 = /* @__PURE__ */ jsx(PrivyIframeDependency, {});
|
|
535
|
+
t21 = /* @__PURE__ */ jsx(Updaters, {});
|
|
536
|
+
t22 = /* @__PURE__ */ jsx(App, {});
|
|
537
|
+
t23 = false;
|
|
538
|
+
$[66] = t19;
|
|
539
|
+
$[67] = t20;
|
|
540
|
+
$[68] = t21;
|
|
541
|
+
$[69] = t22;
|
|
542
|
+
$[70] = t23;
|
|
543
|
+
} else {
|
|
544
|
+
t19 = $[66];
|
|
545
|
+
t20 = $[67];
|
|
546
|
+
t21 = $[68];
|
|
547
|
+
t22 = $[69];
|
|
548
|
+
t23 = $[70];
|
|
549
|
+
}
|
|
550
|
+
let t24;
|
|
551
|
+
if ($[71] !== reconnectOnMountInit) {
|
|
552
|
+
t24 = /* @__PURE__ */ jsxs(Web3Providers, { reconnectOnMount: reconnectOnMountInit, children: [
|
|
539
553
|
t19,
|
|
540
554
|
t20,
|
|
541
555
|
t21,
|
|
542
|
-
t22
|
|
556
|
+
t22,
|
|
557
|
+
t23
|
|
543
558
|
] });
|
|
544
|
-
$[
|
|
545
|
-
$[
|
|
559
|
+
$[71] = reconnectOnMountInit;
|
|
560
|
+
$[72] = t24;
|
|
546
561
|
} else {
|
|
547
|
-
|
|
562
|
+
t24 = $[72];
|
|
548
563
|
}
|
|
549
|
-
return
|
|
564
|
+
return t24;
|
|
550
565
|
};
|
|
551
566
|
const Widget = (t0) => {
|
|
552
567
|
const $ = distExports.c(5);
|