@imtbl/sdk 1.57.0 → 1.58.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.
- package/dist/{blockchain_data-BtWkKJIA.js → blockchain_data-Tn79t2TG.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-C_PbSgrh.js → AddFundsWidget-CQ8eDnA4.js} +134 -145
- package/dist/browser/checkout/{BridgeWidget-n8xOPTQ2.js → BridgeWidget-BODgt1Sl.js} +8 -8
- package/dist/browser/checkout/{CheckoutWidget-kQ-Im8vB.js → CheckoutWidget-BIu60m93.js} +16 -16
- package/dist/browser/checkout/{EllipsizedText-Ppn9TC1R.js → EllipsizedText-BezxpXlh.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-k6lIF8xc.js → FeesBreakdown-G2U4Al4H.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-8S6KoHhH.js → HandoverContent-D5DaYSVN.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-v4Op5f05.js → OnRampWidget-_RKv23W3.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CmGSUnEX.js → SaleWidget-Dnxay7PT.js} +13 -13
- package/dist/browser/checkout/{SpendingCapHero-CDj3Iw9j.js → SpendingCapHero-CS1MBdgx.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-DDg7cV7V.js → SwapWidget-uVOkXbBB.js} +8 -8
- package/dist/browser/checkout/{TopUpView-C_ACzI2Q.js → TopUpView-IETrf6SF.js} +2 -2
- package/dist/browser/checkout/{WalletWidget--bOcJPeF.js → WalletWidget-0PhjwOoc.js} +5 -5
- package/dist/browser/checkout/{auto-track-BNEtiRai.js → auto-track-Cxa9AlDh.js} +1 -1
- package/dist/browser/checkout/{balance-3-nAoqgO.js → balance-B1D3omi8.js} +3 -3
- package/dist/browser/checkout/{index-BMKU17nO.js → index-4h8fLbUy.js} +1 -1
- package/dist/browser/checkout/{index-iN9TbfIB.js → index-5i4ytcU4.js} +1 -1
- package/dist/browser/checkout/{index-BD7XwXYb.js → index-BaCEegez.js} +1 -1
- package/dist/browser/checkout/{index-9nmTUuc5.js → index-CxBBl_z8.js} +1 -1
- package/dist/browser/checkout/{index-WUiS3XIP.js → index-D1EnuFx8.js} +2 -2
- package/dist/browser/checkout/{index-ClpwX2z9.js → index-DVt2j3lK.js} +130 -28
- package/dist/browser/checkout/{index-DUWR3KD0.js → index-OynKJ8Cq.js} +1 -1
- package/dist/browser/checkout/{index-D6xurPdk.js → index-TAnDlCww.js} +1 -1
- package/dist/browser/checkout/{index-BZOpAz8z.js → index-aSIb1jOx.js} +1 -1
- package/dist/browser/checkout/{index.umd--iUfBvJV.js → index.umd-ca2LA9_o.js} +1 -1
- package/dist/browser/checkout/{retry-D5EXmyEZ.js → retry-CJesv1Z0.js} +1 -1
- package/dist/browser/checkout/sdk.js +5 -5
- package/dist/browser/checkout/{useInterval-Tf0MmB55.js → useInterval-tTXFxNm-.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +241 -150
- package/dist/{checkout-YSKtCNzS.js → checkout-DN5Kz6FE.js} +7 -8
- package/dist/checkout.d.ts +30 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-lzHVTMnS.js → config-Il8NWBhS.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-B4K4memG.js → index-BmFOXDhV.js} +4 -4
- package/dist/{index-Cl5xYcTa.js → index-BvAP3MCR.js} +1 -1
- package/dist/{index-DCJMvVVX.js → index-CCO9QhXx.js} +1 -1
- package/dist/{index-DCRICFBo.js → index-CPNtDMZA.js} +1 -1
- package/dist/{index-BBLIOOxO.js → index-CnIu4Ekm.js} +1 -1
- package/dist/{index-C2PMWCyz.js → index-PXJvJIbg.js} +3 -3
- package/dist/index.browser.js +5 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +14 -13
- package/dist/index.d.ts +30 -5
- package/dist/index.js +14 -14
- package/dist/{minting_backend-BeyswK6a.js → minting_backend-C6AVNuF-.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-DgElnB3K.js → orderbook-DYF6OPtl.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-zkpBoEch.js → passport-BtDa-0e1.js} +8 -6
- package/dist/passport.d.ts +5 -0
- package/dist/passport.js +4 -4
- package/dist/{webhook-niZzHikY.js → webhook-DtqDevFb.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-CGvwkxPx.js → x-DFHzAdlx.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -127944,9 +127944,8 @@ var AddFundsEventType;
|
|
|
127944
127944
|
AddFundsEventType["CLOSE_WIDGET"] = "close-widget";
|
|
127945
127945
|
AddFundsEventType["LANGUAGE_CHANGED"] = "language-changed";
|
|
127946
127946
|
AddFundsEventType["CONNECT_SUCCESS"] = "connect-success";
|
|
127947
|
-
AddFundsEventType["
|
|
127948
|
-
AddFundsEventType["
|
|
127949
|
-
AddFundsEventType["REQUEST_SWAP"] = "request-swap";
|
|
127947
|
+
AddFundsEventType["SUCCESS"] = "success";
|
|
127948
|
+
AddFundsEventType["FAILURE"] = "failure";
|
|
127950
127949
|
})(AddFundsEventType || (AddFundsEventType = {}));
|
|
127951
127950
|
|
|
127952
127951
|
/**
|
|
@@ -140649,7 +140648,7 @@ function _taggedTemplateLiteral(strings, raw) {
|
|
|
140649
140648
|
}));
|
|
140650
140649
|
}
|
|
140651
140650
|
|
|
140652
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global
|
|
140651
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
140653
140652
|
|
|
140654
140653
|
function getDefaultExportFromCjs$1 (x) {
|
|
140655
140654
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -200359,7 +200358,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200359
200358
|
return __generator(this, function (_b) {
|
|
200360
200359
|
switch (_b.label) {
|
|
200361
200360
|
case 0: return [4 /*yield*/, import(
|
|
200362
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200361
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Cxa9AlDh.js')];
|
|
200363
200362
|
case 1:
|
|
200364
200363
|
autotrack = _b.sent();
|
|
200365
200364
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200378,7 +200377,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200378
200377
|
return __generator(this, function (_b) {
|
|
200379
200378
|
switch (_b.label) {
|
|
200380
200379
|
case 0: return [4 /*yield*/, import(
|
|
200381
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200380
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Cxa9AlDh.js')];
|
|
200382
200381
|
case 1:
|
|
200383
200382
|
autotrack = _b.sent();
|
|
200384
200383
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200397,7 +200396,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200397
200396
|
return __generator(this, function (_b) {
|
|
200398
200397
|
switch (_b.label) {
|
|
200399
200398
|
case 0: return [4 /*yield*/, import(
|
|
200400
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200399
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Cxa9AlDh.js')];
|
|
200401
200400
|
case 1:
|
|
200402
200401
|
autotrack = _b.sent();
|
|
200403
200402
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200416,7 +200415,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200416
200415
|
return __generator(this, function (_b) {
|
|
200417
200416
|
switch (_b.label) {
|
|
200418
200417
|
case 0: return [4 /*yield*/, import(
|
|
200419
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
200418
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Cxa9AlDh.js')];
|
|
200420
200419
|
case 1:
|
|
200421
200420
|
autotrack = _b.sent();
|
|
200422
200421
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -200566,7 +200565,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
200566
200565
|
return [2 /*return*/, []];
|
|
200567
200566
|
}
|
|
200568
200567
|
return [4 /*yield*/, import(
|
|
200569
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
200568
|
+
/* webpackChunkName: "queryString" */ './index-OynKJ8Cq.js')];
|
|
200570
200569
|
case 1:
|
|
200571
200570
|
queryString = (_a.sent()).queryString;
|
|
200572
200571
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -203270,7 +203269,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203270
203269
|
case 0:
|
|
203271
203270
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
203272
203271
|
return [4 /*yield*/, import(
|
|
203273
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
203272
|
+
/* webpackChunkName: "tsub-middleware" */ './index-aSIb1jOx.js').then(function (mod) {
|
|
203274
203273
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
203275
203274
|
})];
|
|
203276
203275
|
case 1:
|
|
@@ -203283,7 +203282,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203283
203282
|
tsubMiddleware = _d;
|
|
203284
203283
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
203285
203284
|
return [4 /*yield*/, import(
|
|
203286
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
203285
|
+
/* webpackChunkName: "ajs-destination" */ './index-5i4ytcU4.js').then(function (mod) {
|
|
203287
203286
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
203288
203287
|
})];
|
|
203289
203288
|
case 4:
|
|
@@ -203296,7 +203295,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203296
203295
|
legacyDestinations = _e;
|
|
203297
203296
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
203298
203297
|
return [4 /*yield*/, import(
|
|
203299
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
203298
|
+
/* webpackChunkName: "legacyVideos" */ './index-D1EnuFx8.js').then(function (mod) {
|
|
203300
203299
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
203301
203300
|
})];
|
|
203302
203301
|
case 7:
|
|
@@ -203305,7 +203304,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203305
203304
|
case 8:
|
|
203306
203305
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
203307
203306
|
return [4 /*yield*/, import(
|
|
203308
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
203307
|
+
/* webpackChunkName: "schemaFilter" */ './index-CxBBl_z8.js').then(function (mod) {
|
|
203309
203308
|
var _a;
|
|
203310
203309
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
203311
203310
|
})];
|
|
@@ -203344,7 +203343,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
203344
203343
|
return enabled;
|
|
203345
203344
|
})) return [3 /*break*/, 17];
|
|
203346
203345
|
return [4 /*yield*/, import(
|
|
203347
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
203346
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-TAnDlCww.js').then(function (_a) {
|
|
203348
203347
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
203349
203348
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203350
203349
|
var middleware, promises;
|
|
@@ -210499,10 +210498,6 @@ const PASSPORT_URL = {
|
|
|
210499
210498
|
[Environment$1.PRODUCTION]: 'https://image-resizer-cache.immutable.com',
|
|
210500
210499
|
});
|
|
210501
210500
|
const WITHDRAWAL_CLAIM_GAS_LIMIT = 91000;
|
|
210502
|
-
/**
|
|
210503
|
-
* Key for storing if user has seen non-passport warning UI in local storage
|
|
210504
|
-
*/
|
|
210505
|
-
const HAS_SEEN_NON_PASSPORT_WARNING_KEY = '@imtbl/checkout/has-seen-non-passport-warning';
|
|
210506
210501
|
|
|
210507
210502
|
function getValidTheme(theme) {
|
|
210508
210503
|
if (!theme)
|
|
@@ -211260,6 +211255,7 @@ function isMetaMaskProvider(provider) {
|
|
|
211260
211255
|
function isWalletConnectProvider(provider) {
|
|
211261
211256
|
return provider?.provider?.isWalletConnect === true;
|
|
211262
211257
|
}
|
|
211258
|
+
const getProviderDetailByProvider = (web3Provider, providers) => providers?.find((providerDetail) => providerDetail.provider === web3Provider.provider);
|
|
211263
211259
|
function getWalletProviderNameByProvider(web3Provider, providers) {
|
|
211264
211260
|
if (isMetaMaskProvider(web3Provider))
|
|
211265
211261
|
return WalletProviderName.METAMASK.toString();
|
|
@@ -211581,7 +211577,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
211581
211577
|
|
|
211582
211578
|
const o=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T={state:o,subscribe(e){return subscribe(o,()=>e(o))},push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e));},reset(e){o.view=e,o.history=[e];},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e);},goBack(){if(o.history.length>1){o.history.pop();const[e]=o.history.slice(-1);o.view=e;}},setData(e){o.data=e;}},a$2={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$2.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$2.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$2.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$2.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$2.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$2.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$2.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$2.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T.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=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$3={state:r,subscribe(e){return subscribe(r.events,()=>e(snapshot(r.events[r.events.length-1])))},initialize(){r.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r.connectedWalletId=e;},click(e){if(r.enabled){const t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}},track(e){if(r.enabled){const t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}},view(e){if(r.enabled){const t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t);}}},c$1=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$3={state:c$1,subscribe(e){return subscribe(c$1,()=>e(c$1))},setChains(e){c$1.chains=e;},setWalletConnectUri(e){c$1.walletConnectUri=e;},setIsCustomDesktop(e){c$1.isCustomDesktop=e;},setIsCustomMobile(e){c$1.isCustomMobile=e;},setIsDataLoaded(e){c$1.isDataLoaded=e;},setIsUiLoaded(e){c$1.isUiLoaded=e;},setIsAuth(e){c$1.isAuth=e;}},W$1=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$3={state:W$1,subscribe(e){return subscribe(W$1,()=>e(W$1))},setConfig(e){var t,s;R$3.initialize(),p$3.setChains(e.chains),p$3.setIsAuth(Boolean(e.enableAuthMode)),p$3.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$3.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$2.setModalVersionInStorage(),Object.assign(W$1,e);}};var V$2=Object.defineProperty,D$5=Object.getOwnPropertySymbols,H$2=Object.prototype.hasOwnProperty,B$2=Object.prototype.propertyIsEnumerable,M$2=(e,t,s)=>t in e?V$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$2=(e,t)=>{for(var s in t||(t={}))H$2.call(t,s)&&M$2(e,s,t[s]);if(D$5)for(var s of D$5(t))B$2.call(t,s)&&M$2(e,s,t[s]);return e};const L$3="https://explorer-api.walletconnect.com",E$3="wcm",O$4="js-2.6.2";async function w$4(e,t){const s=K$2({sdkType:E$3,sdkVersion:O$4},t),n=new URL(e,L$3);return n.searchParams.append("projectId",y$3.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$2={async getDesktopListings(e){return w$4("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$4("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$4("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$4("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$3}/w3m/v1/getWalletImage/${e}?projectId=${y$3.state.projectId}&sdkType=${E$3}&sdkVersion=${O$4}`},getAssetImageUrl(e){return `${L$3}/w3m/v1/getAssetImage/${e}?projectId=${y$3.state.projectId}&sdkType=${E$3}&sdkVersion=${O$4}`}};var z$2=Object.defineProperty,j$3=Object.getOwnPropertySymbols,J$2=Object.prototype.hasOwnProperty,q$2=Object.prototype.propertyIsEnumerable,k$2=(e,t,s)=>t in e?z$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$3=(e,t)=>{for(var s in t||(t={}))J$2.call(t,s)&&k$2(e,s,t[s]);if(j$3)for(var s of j$3(t))q$2.call(t,s)&&k$2(e,s,t[s]);return e};const N$3=a$2.isMobile(),d$2=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$2={state:d$2,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$3.state;if(e==="NONE"||t==="ALL"&&!e)return d$2.recomendedWallets;if(a$2.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$2.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$2.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$3.state,i=s?.join(","),l=a$2.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$2.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$3?await m$2.getMobileListings(v):await m$2.getDesktopListings(v);d$2.recomendedWallets=Object.values(b);}return d$2.recomendedWallets},async getWallets(e){const t=F$3({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$3.state,{recomendedWallets:i}=d$2;if(n==="ALL")return d$2.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$2.isArray(s)&&(t.excludedIds=s.join(",")),a$2.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$3.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$3?await m$2.getMobileListings(t):await m$2.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$2[U]={listings:[...d$2[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$2.getWalletImageUrl(e)},getAssetImageUrl(e){return m$2.getAssetImageUrl(e)},resetSearch(){d$2.search={listings:[],total:0,page:1};}},I$1=proxy({open:!1}),se={state:I$1,subscribe(e){return subscribe(I$1,()=>e(I$1))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$3.state;if(a$2.removeWalletConnectDeepLink(),p$3.setWalletConnectUri(e?.uri),p$3.setChains(e?.chains),T.reset("ConnectWallet"),s&&n)I$1.open=!0,t();else {const i=setInterval(()=>{const l=p$3.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$1.open=!0,t());},200);}})},close(){I$1.open=!1;}};var G$2=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$4=Object.prototype.hasOwnProperty,X$2=Object.prototype.propertyIsEnumerable,S$3=(e,t,s)=>t in e?G$2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y=(e,t)=>{for(var s in t||(t={}))Q$4.call(t,s)&&S$3(e,s,t[s]);if($$3)for(var s of $$3(t))X$2.call(t,s)&&S$3(e,s,t[s]);return e};function Z$2(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C=proxy({themeMode:Z$2()?"dark":"light"}),ne={state:C,subscribe(e){return subscribe(C,()=>e(C))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C.themeMode=t),s&&(C.themeVariables=Y({},s));}},g$5=proxy({open:!1,message:"",variant:"success"}),oe$2={state:g$5,subscribe(e){return subscribe(g$5,()=>e(g$5))},openToast(e,t){g$5.open=!0,g$5.message=e,g$5.variant=t;},closeToast(){g$5.open=!1;}};
|
|
211583
211579
|
|
|
211584
|
-
let d$1 = class d{constructor(e){this.openModal=se.open,this.closeModal=se.close,this.subscribeModal=se.subscribe,this.setTheme=ne.setThemeConfig,ne.setThemeConfig(e),y$3.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
211580
|
+
let d$1 = class d{constructor(e){this.openModal=se.open,this.closeModal=se.close,this.subscribeModal=se.subscribe,this.setTheme=ne.setThemeConfig,ne.setThemeConfig(e),y$3.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-BaCEegez.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$3.setIsUiLoaded(!0);}}};
|
|
211585
211581
|
|
|
211586
211582
|
var index = /*#__PURE__*/Object.freeze({
|
|
211587
211583
|
__proto__: null,
|
|
@@ -223029,6 +223025,9 @@ const isNativeToken = (address) => !address || address.toLocaleLowerCase() === N
|
|
|
223029
223025
|
function getRemoteImage(environment, path) {
|
|
223030
223026
|
return `${CHECKOUT_CDN_BASE_URL[environment ?? Environment$1.PRODUCTION]}/v1/blob/img${path}`;
|
|
223031
223027
|
}
|
|
223028
|
+
function getRemoteVideo(environment, path) {
|
|
223029
|
+
return `${CHECKOUT_CDN_BASE_URL[environment ?? Environment$1.PRODUCTION]}/v1/blob/video${path}`;
|
|
223030
|
+
}
|
|
223032
223031
|
function getRemoteRive(environment, path) {
|
|
223033
223032
|
return `${CHECKOUT_CDN_BASE_URL[environment ?? Environment$1.PRODUCTION]}/v1/blob/rive${path}`;
|
|
223034
223033
|
}
|
|
@@ -224486,11 +224485,26 @@ function sendRequestGoBackEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
|
224486
224485
|
if (eventTarget !== undefined)
|
|
224487
224486
|
eventTarget.dispatchEvent(requestGoBackEvent);
|
|
224488
224487
|
}
|
|
224488
|
+
function sendRequestAddFundsEvent(eventTarget, imtblWidgetEvent, eventData) {
|
|
224489
|
+
// eslint-disable-next-line max-len
|
|
224490
|
+
const requestAddFundsEvent = new CustomEvent(imtblWidgetEvent, {
|
|
224491
|
+
detail: {
|
|
224492
|
+
type: OrchestrationEventType.REQUEST_ADD_FUNDS,
|
|
224493
|
+
data: eventData,
|
|
224494
|
+
},
|
|
224495
|
+
});
|
|
224496
|
+
// TODO: please remove or if necessary keep the eslint ignore
|
|
224497
|
+
// eslint-disable-next-line no-console
|
|
224498
|
+
console.log('add funds event:', eventTarget, requestAddFundsEvent);
|
|
224499
|
+
if (eventTarget !== undefined)
|
|
224500
|
+
eventTarget.dispatchEvent(requestAddFundsEvent);
|
|
224501
|
+
}
|
|
224489
224502
|
const orchestrationEvents = {
|
|
224490
224503
|
sendRequestBridgeEvent,
|
|
224491
224504
|
sendRequestSwapEvent,
|
|
224492
224505
|
sendRequestOnrampEvent,
|
|
224493
224506
|
sendRequestGoBackEvent,
|
|
224507
|
+
sendRequestAddFundsEvent,
|
|
224494
224508
|
};
|
|
224495
224509
|
|
|
224496
224510
|
const topUpBridgeOption = (isBridgeEnabled, isNotPassport) => {
|
|
@@ -224606,7 +224620,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
224606
224620
|
: serviceUnavailableView) }));
|
|
224607
224621
|
}
|
|
224608
224622
|
|
|
224609
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
224623
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-uVOkXbBB.js'));
|
|
224610
224624
|
class Swap extends Base {
|
|
224611
224625
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
224612
224626
|
getValidatedProperties({ config }) {
|
|
@@ -224733,7 +224747,7 @@ const sendOnRampFailedEvent = (eventTarget, reason) => {
|
|
|
224733
224747
|
eventTarget.dispatchEvent(failedEvent);
|
|
224734
224748
|
};
|
|
224735
224749
|
|
|
224736
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
224750
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-_RKv23W3.js').then(function (n) { return n.a; }));
|
|
224737
224751
|
class OnRamp extends Base {
|
|
224738
224752
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
224739
224753
|
getValidatedProperties({ config }) {
|
|
@@ -224828,7 +224842,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
224828
224842
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
224829
224843
|
}
|
|
224830
224844
|
|
|
224831
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget
|
|
224845
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-0PhjwOoc.js'));
|
|
224832
224846
|
class Wallet extends Base {
|
|
224833
224847
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
224834
224848
|
getValidatedProperties({ config }) {
|
|
@@ -224970,7 +224984,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
224970
224984
|
eventTarget.dispatchEvent(event);
|
|
224971
224985
|
};
|
|
224972
224986
|
|
|
224973
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
224987
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-Dnxay7PT.js'));
|
|
224974
224988
|
class Sale extends Base {
|
|
224975
224989
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
224976
224990
|
// TODO: add specific validation logic for the sale items
|
|
@@ -225061,7 +225075,7 @@ class Sale extends Base {
|
|
|
225061
225075
|
}
|
|
225062
225076
|
}
|
|
225063
225077
|
|
|
225064
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
225078
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-BODgt1Sl.js'));
|
|
225065
225079
|
class Bridge extends Base {
|
|
225066
225080
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
225067
225081
|
getValidatedProperties({ config }) {
|
|
@@ -225129,7 +225143,7 @@ const checkoutFlows = [
|
|
|
225129
225143
|
CheckoutFlowType.ADD_FUNDS,
|
|
225130
225144
|
];
|
|
225131
225145
|
|
|
225132
|
-
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-
|
|
225146
|
+
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-BIu60m93.js'));
|
|
225133
225147
|
class CheckoutWidgetRoot extends Base {
|
|
225134
225148
|
eventTopic = IMTBLWidgetEvents.IMTBL_CHECKOUT_WIDGET_EVENT;
|
|
225135
225149
|
getValidatedProperties({ config, }) {
|
|
@@ -225301,6 +225315,44 @@ class CheckoutWidgetRoot extends Base {
|
|
|
225301
225315
|
}
|
|
225302
225316
|
}
|
|
225303
225317
|
|
|
225318
|
+
var ConnectEIP6963ProviderError;
|
|
225319
|
+
(function (ConnectEIP6963ProviderError) {
|
|
225320
|
+
ConnectEIP6963ProviderError["CONNECT_ERROR"] = "CONNECT_ERROR";
|
|
225321
|
+
ConnectEIP6963ProviderError["SANCTIONED_ADDRESS"] = "SANCTIONED_ADDRESS";
|
|
225322
|
+
ConnectEIP6963ProviderError["USER_REJECTED_REQUEST_ERROR"] = "USER_REJECTED_REQUEST_ERROR";
|
|
225323
|
+
})(ConnectEIP6963ProviderError || (ConnectEIP6963ProviderError = {}));
|
|
225324
|
+
const connectEIP6963Provider = async (providerDetail, checkout, shouldRequestWalletPermissions) => {
|
|
225325
|
+
const web3Provider = new Web3Provider(providerDetail.provider);
|
|
225326
|
+
try {
|
|
225327
|
+
const requestWalletPermissions = shouldRequestWalletPermissions
|
|
225328
|
+
?? providerDetail.info.rdns === WalletProviderRdns.METAMASK;
|
|
225329
|
+
const connectResult = await checkout.connect({
|
|
225330
|
+
provider: web3Provider,
|
|
225331
|
+
requestWalletPermissions,
|
|
225332
|
+
});
|
|
225333
|
+
const address = await connectResult.provider.getSigner().getAddress();
|
|
225334
|
+
const isSanctioned = await checkout.checkIsAddressSanctioned(address, checkout.config.environment);
|
|
225335
|
+
if (isSanctioned) {
|
|
225336
|
+
throw new CheckoutError('Sanctioned address', ConnectEIP6963ProviderError.SANCTIONED_ADDRESS);
|
|
225337
|
+
}
|
|
225338
|
+
addProviderListenersForWidgetRoot(connectResult.provider);
|
|
225339
|
+
return {
|
|
225340
|
+
provider: connectResult.provider,
|
|
225341
|
+
providerName: getProviderSlugFromRdns(providerDetail.info.rdns),
|
|
225342
|
+
};
|
|
225343
|
+
}
|
|
225344
|
+
catch (error) {
|
|
225345
|
+
switch (error.type) {
|
|
225346
|
+
case CheckoutErrorType.USER_REJECTED_REQUEST_ERROR:
|
|
225347
|
+
throw new Error(ConnectEIP6963ProviderError.USER_REJECTED_REQUEST_ERROR);
|
|
225348
|
+
case ConnectEIP6963ProviderError.SANCTIONED_ADDRESS:
|
|
225349
|
+
throw new Error(ConnectEIP6963ProviderError.SANCTIONED_ADDRESS);
|
|
225350
|
+
default:
|
|
225351
|
+
throw new Error(ConnectEIP6963ProviderError.CONNECT_ERROR);
|
|
225352
|
+
}
|
|
225353
|
+
}
|
|
225354
|
+
};
|
|
225355
|
+
|
|
225304
225356
|
const initialProvidersState = {
|
|
225305
225357
|
fromProvider: undefined,
|
|
225306
225358
|
fromProviderInfo: undefined,
|
|
@@ -225309,12 +225361,14 @@ const initialProvidersState = {
|
|
|
225309
225361
|
toProviderInfo: undefined,
|
|
225310
225362
|
toAddress: undefined,
|
|
225311
225363
|
checkout: {},
|
|
225364
|
+
lockedToProvider: false,
|
|
225312
225365
|
};
|
|
225313
225366
|
var ProvidersContextActions;
|
|
225314
225367
|
(function (ProvidersContextActions) {
|
|
225315
225368
|
ProvidersContextActions["SET_PROVIDER"] = "SET_PROVIDER";
|
|
225316
225369
|
ProvidersContextActions["SET_CHECKOUT"] = "SET_CHECKOUT";
|
|
225317
225370
|
ProvidersContextActions["RESET_STATE"] = "RESET_STATE";
|
|
225371
|
+
ProvidersContextActions["SET_LOCKED_TO_PROVIDER"] = "SET_LOCKED_TO_PROVIDER";
|
|
225318
225372
|
})(ProvidersContextActions || (ProvidersContextActions = {}));
|
|
225319
225373
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
225320
225374
|
const ProvidersContext = reactExports.createContext({
|
|
@@ -225355,6 +225409,11 @@ const providersContextReducer = (state, action) => {
|
|
|
225355
225409
|
return {
|
|
225356
225410
|
...initialProvidersState,
|
|
225357
225411
|
};
|
|
225412
|
+
case ProvidersContextActions.SET_LOCKED_TO_PROVIDER:
|
|
225413
|
+
return {
|
|
225414
|
+
...state,
|
|
225415
|
+
lockedToProvider: action.payload.lockedToProvider,
|
|
225416
|
+
};
|
|
225358
225417
|
default:
|
|
225359
225418
|
return state;
|
|
225360
225419
|
}
|
|
@@ -225366,6 +225425,41 @@ const useProvidersReducer = (initialState) => {
|
|
|
225366
225425
|
function ProvidersContextProvider({ children, initialState, }) {
|
|
225367
225426
|
const [providersState, providersDispatch] = useProvidersReducer(initialState);
|
|
225368
225427
|
const value = reactExports.useMemo(() => ({ providersState, providersDispatch }), [providersState, providersDispatch]);
|
|
225428
|
+
const { toProvider, checkout } = initialState;
|
|
225429
|
+
// if `toProvider` is passed, try to connect and get EIP6963 provider info
|
|
225430
|
+
reactExports.useEffect(() => {
|
|
225431
|
+
if (!toProvider || providersState.lockedToProvider)
|
|
225432
|
+
return;
|
|
225433
|
+
(async () => {
|
|
225434
|
+
const injectedProviders = checkout.getInjectedProviders();
|
|
225435
|
+
const providerDetail = getProviderDetailByProvider(toProvider, [
|
|
225436
|
+
...injectedProviders,
|
|
225437
|
+
]);
|
|
225438
|
+
if (!providerDetail)
|
|
225439
|
+
return;
|
|
225440
|
+
try {
|
|
225441
|
+
await connectEIP6963Provider(providerDetail, checkout, false);
|
|
225442
|
+
const toAddress = await toProvider.getSigner().getAddress();
|
|
225443
|
+
providersDispatch({
|
|
225444
|
+
payload: {
|
|
225445
|
+
type: ProvidersContextActions.SET_PROVIDER,
|
|
225446
|
+
toProvider,
|
|
225447
|
+
toAddress,
|
|
225448
|
+
toProviderInfo: providerDetail.info,
|
|
225449
|
+
},
|
|
225450
|
+
});
|
|
225451
|
+
providersDispatch({
|
|
225452
|
+
payload: {
|
|
225453
|
+
type: ProvidersContextActions.SET_LOCKED_TO_PROVIDER,
|
|
225454
|
+
lockedToProvider: true,
|
|
225455
|
+
},
|
|
225456
|
+
});
|
|
225457
|
+
}
|
|
225458
|
+
catch {
|
|
225459
|
+
/** TODO: handle error */
|
|
225460
|
+
}
|
|
225461
|
+
})();
|
|
225462
|
+
}, [toProvider, providersState.lockedToProvider]);
|
|
225369
225463
|
return (jsx$1(ProvidersContext.Provider, { value: value, children: children }));
|
|
225370
225464
|
}
|
|
225371
225465
|
const useProvidersContext = () => {
|
|
@@ -225377,7 +225471,7 @@ const useProvidersContext = () => {
|
|
|
225377
225471
|
return context;
|
|
225378
225472
|
};
|
|
225379
225473
|
|
|
225380
|
-
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-
|
|
225474
|
+
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-CQ8eDnA4.js'));
|
|
225381
225475
|
class AddFunds extends Base {
|
|
225382
225476
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_FUNDS_WIDGET_EVENT;
|
|
225383
225477
|
getValidatedProperties({ config, }) {
|
|
@@ -225403,13 +225497,21 @@ class AddFunds extends Base {
|
|
|
225403
225497
|
// eslint-disable-next-line no-console
|
|
225404
225498
|
console.warn('[IMTBL]: invalid "toTokenAddress" widget input');
|
|
225405
225499
|
}
|
|
225500
|
+
if (!params.toProvider?.provider) {
|
|
225501
|
+
// eslint-disable-next-line no-console
|
|
225502
|
+
console.warn('[IMTBL]: invalid "toProvider" widget input');
|
|
225503
|
+
validatedParams.toProvider = undefined;
|
|
225504
|
+
}
|
|
225406
225505
|
return validatedParams;
|
|
225407
225506
|
}
|
|
225408
225507
|
render() {
|
|
225409
225508
|
if (!this.reactRoot)
|
|
225410
225509
|
return;
|
|
225411
225510
|
const { t } = instance;
|
|
225412
|
-
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "add-funds-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ProvidersContextProvider, { initialState: {
|
|
225511
|
+
this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "add-funds-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ProvidersContextProvider, { initialState: {
|
|
225512
|
+
checkout: this.checkout,
|
|
225513
|
+
toProvider: this.parameters.toProvider,
|
|
225514
|
+
}, children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(AddFundsWidget, { config: this.strongConfig(), toTokenAddress: this.parameters.toTokenAddress, toAmount: this.parameters.toAmount, showBridgeOption: this.parameters.showBridgeOption, showSwapOption: this.parameters.showSwapOption, showOnrampOption: this.parameters.showOnrampOption, showBackButton: this.parameters.showBackButton }) }) }) }) }) }) }));
|
|
225413
225515
|
}
|
|
225414
225516
|
}
|
|
225415
225517
|
|
|
@@ -225496,4 +225598,4 @@ class WidgetsFactory {
|
|
|
225496
225598
|
}
|
|
225497
225599
|
}
|
|
225498
225600
|
|
|
225499
|
-
export { useAnalytics as $, getStartingSize as A, BridgeEventType as B, CheckoutFlowType as C, DEFAULT_BUTTON_SIZE as D, ErrorView as E, merge$1 as F, flattenChildren as G, isChildSubcomponent as H, IMTBLWidgetEvents as I, SmartClone as J, Box as K, LoadingView as L, getResponsiveSx as M, BUTTON_SIZES as N, OnRampEventType as O, ProviderEventType as P, setDefaultSxBackgroundColor as Q, ClassNames as R, SwapEventType as S, _defineProperty$1 as T, TokenFilterTypes as U, ViewActions as V, WalletEventType as W, ViewContext as X, Body as Y, ConnectLoaderContext as Z, _objectWithoutProperties as _, CheckoutEventType as a, motion$1 as a$, formatZeroAmount as a0, EventTargetContext as a1, isPassportProvider as a2, Environment$1 as a3, MenuItem as a4, tokenValueFormat as a5, UserJourney as a6, orchestrationEvents as a7, ZERO_BALANCE_STRING as a8, isNativeToken as a9, SimpleTextBody as aA, FAQS_LINK as aB, Link as aC, viewReducer as aD, initialViewState as aE, MultiTextShimmer as aF, getCaptionTextStyles as aG, DEFAULT_BODY_PROPS as aH, baseTextComponentSx as aI, useConvertSxToEmotionStyles as aJ, useGetCurrentSizeClass as aK, cloneElementWithCssProp as aL, BigNumber$1 as aM, compareStr as aN, SalePaymentTypes as aO, sendSaleWidgetCloseEvent as aP, sendSaleSuccessEvent as aQ, sendSaleFailedEvent as aR, sendSaleTransactionSuccessEvent as aS, sendSalePaymentMethodEvent as aT, sendSalePaymentTokenEvent as aU, LoadingOverlay as aV, Fragment$1 as aW, useHandover as aX, HandoverTarget as aY, getRemoteRive as aZ, HandoverDuration as a_, sendNetworkSwitchEvent as aa, CheckoutErrorType as ab, NetworkFilterTypes as ac, sortNetworksCompareFn as ad, getChainImage as ae, DEFAULT_BALANCE_RETRY_POLICY as af, sortTokensByAmount as ag, getTokenImageByAddress as ah, calculateCryptoToFiat as ai, HeaderNavigation as aj, ButtonNavigationStyles as ak, sendWalletWidgetCloseEvent as al, FooterLogo as am, SimpleLayout as an, WalletProviderName as ao, getWalletProviderNameByProvider as ap, isDualVariantIcon as aq, abbreviateWalletAddress as ar, Heading as as, Drawer as at, useWalletConnect as au, sendDisconnectWalletEvent as av, isWalletConnectProvider as aw, heroBackGroundStyles as ax, heroImageStyles as ay, heroImageBottomAlign as az, ConnectEventType as b, useInjectedProviders as b$, listVariants as b0, listItemVariants as b1, StatusType as b2, prettyFormatNumber as b3, ShimmerCircle as b4, Stack as b5, FundingStepType as b6, Divider as b7, tokenSymbolNameOverrides as b8, ItemType as b9, DEFAULT_TOKEN_VALIDATION_DECIMALS as bA, DEFAULT_TOKEN_DECIMALS as bB, sendSwapWidgetCloseEvent as bC, IMX_TOKEN_SYMBOL as bD, FooterButton as bE, SwapDirection as bF, StatusView as bG, sendSwapSuccessEvent as bH, sendSwapFailedEvent as bI, sendSwapRejectedEvent as bJ, global$2 as bK, ExchangeType as bL, sendOnRampWidgetCloseEvent as bM, sendOnRampSuccessEvent as bN, sendOnRampFailedEvent as bO, axios$1 as bP, IMMUTABLE_API_BASE_URL as bQ, ShimmerBox as bR, PASSPORT_URL as bS, getChainIdBySlug as bT, networkName as bU, FramedImage as bV, RawImage as bW, AXELAR_SCAN_URL as bX, getNativeSymbolByChainSlug as bY, WalletProviderRdns as bZ, Web3Provider as b_, TransactionOrGasType as ba, GasTokenType as bb, RoutingOutcomeType as bc, isGasFree as bd, eventTargetReducer as be, initialEventTargetState as bf, EventTargetActions as bg, ConnectWidgetViews as bh, ConnectLoaderActions as bi, widgetTheme as bj, BlockExplorerService as bk, WidgetTheme as bl, getRemoteImage as bm, quickswapFooterStyles as bn, quickswapFooterLogoStyles as bo, quickswapFooterDisclaimerTextStyles as bp, getImxTokenImage as bq, CloudImage as br, Logo as bs, Icon as bt, getDefaultTokenImage as bu, NATIVE as bv, DEFAULT_QUOTE_REFRESH_INTERVAL as bw, amountInputValidation as bx, Tooltip as by, ESTIMATE_DEBOUNCE as bz, CheckoutFailureEventType as c, getProviderSlugFromRdns as c$, WalletDrawer as c0, getChainSlugById as c1, JsonRpcProvider$1 as c2, DEFAULT_TRANSACTIONS_RETRY_POLICY as c3, getChainNameById as c4, isAddressSanctioned as c5, isMetaMaskProvider as c6, ETH_TOKEN_SYMBOL as c7, GasEstimateType as c8, addChainChangedListener as c9, useForwardLocalDomRef as cA, useSplitApartChildrenAndSubComponents as cB, useResizeObserver as cC, useTheme$1 as cD, isNumberWithinTotal as cE, _toConsumableArray as cF, isError as cG, FramedIcon as cH, FramedLogo as cI, usePrevious$1 as cJ, useBrowserEffect as cK, getHeadingTextStyles as cL, vFlex as cM, centerFlexChildren as cN, FormControlLabel as cO, FormControlValidation as cP, FormControlCaption as cQ, AddFundsEventType as cR, getDefaultExportFromCjs$3 as cS, commonjsGlobal$2 as cT, DEFAULT_TOKEN_FORMATTING_DECIMALS as cU,
|
|
225601
|
+
export { useAnalytics as $, getStartingSize as A, BridgeEventType as B, CheckoutFlowType as C, DEFAULT_BUTTON_SIZE as D, ErrorView as E, merge$1 as F, flattenChildren as G, isChildSubcomponent as H, IMTBLWidgetEvents as I, SmartClone as J, Box as K, LoadingView as L, getResponsiveSx as M, BUTTON_SIZES as N, OnRampEventType as O, ProviderEventType as P, setDefaultSxBackgroundColor as Q, ClassNames as R, SwapEventType as S, _defineProperty$1 as T, TokenFilterTypes as U, ViewActions as V, WalletEventType as W, ViewContext as X, Body as Y, ConnectLoaderContext as Z, _objectWithoutProperties as _, CheckoutEventType as a, motion$1 as a$, formatZeroAmount as a0, EventTargetContext as a1, isPassportProvider as a2, Environment$1 as a3, MenuItem as a4, tokenValueFormat as a5, UserJourney as a6, orchestrationEvents as a7, ZERO_BALANCE_STRING as a8, isNativeToken as a9, SimpleTextBody as aA, FAQS_LINK as aB, Link as aC, viewReducer as aD, initialViewState as aE, MultiTextShimmer as aF, getCaptionTextStyles as aG, DEFAULT_BODY_PROPS as aH, baseTextComponentSx as aI, useConvertSxToEmotionStyles as aJ, useGetCurrentSizeClass as aK, cloneElementWithCssProp as aL, BigNumber$1 as aM, compareStr as aN, SalePaymentTypes as aO, sendSaleWidgetCloseEvent as aP, sendSaleSuccessEvent as aQ, sendSaleFailedEvent as aR, sendSaleTransactionSuccessEvent as aS, sendSalePaymentMethodEvent as aT, sendSalePaymentTokenEvent as aU, LoadingOverlay as aV, Fragment$1 as aW, useHandover as aX, HandoverTarget as aY, getRemoteRive as aZ, HandoverDuration as a_, sendNetworkSwitchEvent as aa, CheckoutErrorType as ab, NetworkFilterTypes as ac, sortNetworksCompareFn as ad, getChainImage as ae, DEFAULT_BALANCE_RETRY_POLICY as af, sortTokensByAmount as ag, getTokenImageByAddress as ah, calculateCryptoToFiat as ai, HeaderNavigation as aj, ButtonNavigationStyles as ak, sendWalletWidgetCloseEvent as al, FooterLogo as am, SimpleLayout as an, WalletProviderName as ao, getWalletProviderNameByProvider as ap, isDualVariantIcon as aq, abbreviateWalletAddress as ar, Heading as as, Drawer as at, useWalletConnect as au, sendDisconnectWalletEvent as av, isWalletConnectProvider as aw, heroBackGroundStyles as ax, heroImageStyles as ay, heroImageBottomAlign as az, ConnectEventType as b, useInjectedProviders as b$, listVariants as b0, listItemVariants as b1, StatusType as b2, prettyFormatNumber as b3, ShimmerCircle as b4, Stack as b5, FundingStepType as b6, Divider as b7, tokenSymbolNameOverrides as b8, ItemType as b9, DEFAULT_TOKEN_VALIDATION_DECIMALS as bA, DEFAULT_TOKEN_DECIMALS as bB, sendSwapWidgetCloseEvent as bC, IMX_TOKEN_SYMBOL as bD, FooterButton as bE, SwapDirection as bF, StatusView as bG, sendSwapSuccessEvent as bH, sendSwapFailedEvent as bI, sendSwapRejectedEvent as bJ, global$2 as bK, ExchangeType as bL, sendOnRampWidgetCloseEvent as bM, sendOnRampSuccessEvent as bN, sendOnRampFailedEvent as bO, axios$1 as bP, IMMUTABLE_API_BASE_URL as bQ, ShimmerBox as bR, PASSPORT_URL as bS, getChainIdBySlug as bT, networkName as bU, FramedImage as bV, RawImage as bW, AXELAR_SCAN_URL as bX, getNativeSymbolByChainSlug as bY, WalletProviderRdns as bZ, Web3Provider as b_, TransactionOrGasType as ba, GasTokenType as bb, RoutingOutcomeType as bc, isGasFree as bd, eventTargetReducer as be, initialEventTargetState as bf, EventTargetActions as bg, ConnectWidgetViews as bh, ConnectLoaderActions as bi, widgetTheme as bj, BlockExplorerService as bk, WidgetTheme as bl, getRemoteImage as bm, quickswapFooterStyles as bn, quickswapFooterLogoStyles as bo, quickswapFooterDisclaimerTextStyles as bp, getImxTokenImage as bq, CloudImage as br, Logo as bs, Icon as bt, getDefaultTokenImage as bu, NATIVE as bv, DEFAULT_QUOTE_REFRESH_INTERVAL as bw, amountInputValidation as bx, Tooltip as by, ESTIMATE_DEBOUNCE as bz, CheckoutFailureEventType as c, getProviderSlugFromRdns as c$, WalletDrawer as c0, getChainSlugById as c1, JsonRpcProvider$1 as c2, DEFAULT_TRANSACTIONS_RETRY_POLICY as c3, getChainNameById as c4, isAddressSanctioned as c5, isMetaMaskProvider as c6, ETH_TOKEN_SYMBOL as c7, GasEstimateType as c8, addChainChangedListener as c9, useForwardLocalDomRef as cA, useSplitApartChildrenAndSubComponents as cB, useResizeObserver as cC, useTheme$1 as cD, isNumberWithinTotal as cE, _toConsumableArray as cF, isError as cG, FramedIcon as cH, FramedLogo as cI, usePrevious$1 as cJ, useBrowserEffect as cK, getHeadingTextStyles as cL, vFlex as cM, centerFlexChildren as cN, FormControlLabel as cO, FormControlValidation as cP, FormControlCaption as cQ, AddFundsEventType as cR, getDefaultExportFromCjs$3 as cS, commonjsGlobal$2 as cT, DEFAULT_TOKEN_FORMATTING_DECIMALS as cU, getRemoteVideo as cV, FramedVideo as cW, useProvidersContext as cX, UnableToConnectDrawer as cY, ChangedYourMindDrawer as cZ, ConnectEIP6963ProviderError as c_, removeChainChangedListener as ca, dist$1 as cb, CHECKOUT_CDN_BASE_URL as cc, Badge as cd, getEthTokenImage as ce, WITHDRAWAL_CLAIM_GAS_LIMIT as cf, BridgeConfiguration as cg, ImmutableConfiguration as ch, TokenBridge as ci, ServiceUnavailableErrorView as cj, ServiceType as ck, ETH_SEPOLIA_TO_ZKEVM_TESTNET as cl, ETH_SEPOLIA_TO_ZKEVM_DEVNET as cm, ETH_MAINNET_TO_ZKEVM_MAINNET as cn, hFlex as co, _slicedToArray as cp, useGetSubcomponentChild as cq, BaseClickable as cr, AnimatePresence as cs, getTertiaryButtonStyles as ct, Select as cu, FormControlWrapper as cv, TextInput as cw, PriceDisplay as cx, DuoCon as cy, useBrowserLayoutEffect as cz, CheckoutSuccessEventType as d, dist as d$, connectEIP6963Provider as d0, identifyUser as d1, ProvidersContextActions as d2, commonjsRequire$1 as d3, OverflowDrawerMenu as d4, requireSecp256k1 as d5, requireLib_commonjs as d6, require$$0$3 as d7, bech32 as d8, bnExports$1 as d9, checkResultErrors$1 as dA, resolveProperties$1 as dB, accessListify$1 as dC, arrayify$1 as dD, version$r as dE, hexZeroPad$1 as dF, isBigNumberish as dG, isBytes$1 as dH, ne as dI, se as dJ, T as dK, oe$2 as dL, R$3 as dM, a$2 as dN, te$2 as dO, p$3 as dP, y$3 as dQ, __awaiter as dR, __generator as dS, loadScript as dT, getNextIntegrationsURL as dU, unloadScript as dV, __spreadArray$1 as dW, isOffline as dX, __assign as dY, ContextCancelation as dZ, applyDestinationMiddleware as d_, require$$0$2 as da, getAugmentedNamespace$1 as db, require$$0$5 as dc, minimalisticAssert$1 as dd, require$$2 as de, hash$5 as df, MaxUint256$5 as dg, merge as dh, SvgIcon as di, WalletWarningHero as dj, t$2 as dk, isValidAddress as dl, defineReadOnly$1 as dm, getStatic$1 as dn, Signer$1 as dp, Provider$1 as dq, getAddress$1 as dr, Logger$2 as ds, getContractAddress$1 as dt, Interface$1 as du, shallowCopy$1 as dv, VoidSigner$1 as dw, Indexed$1 as dx, deepCopy$1 as dy, isHexString$1 as dz, CheckoutUserActionEventType as e, isServer as e0, mergedOptions as e1, isPlainObject as e2, pWhile as e3, PriorityQueue as e4, PersistedPriorityQueue as e5, attempt as e6, isOnline as e7, Context as e8, pTimeout as e9, gracefulDecodeURIComponent as ea, WidgetsFactory as eb, 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, checkoutFlows as p, jsxs as q, reactExports as r, ConnectWidget as s, ProvidersContextProvider as t, useConnectLoaderState as u, ConnectLoader as v, ViewContextProvider as w, ButtCon as x, Button as y, useTheme as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dR as __awaiter, dS as __generator, e0 as isServer, dU as getNextIntegrationsURL, dT as loadScript } from './index-DVt2j3lK.js';
|
|
2
2
|
|
|
3
3
|
function remoteMiddlewares(ctx, settings, obfuscate) {
|
|
4
4
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, bu as getDefaultTokenImage, j as jsx } from './index-
|
|
1
|
+
import { r as reactExports, bu as getDefaultTokenImage, j as jsx } from './index-DVt2j3lK.js';
|
|
2
2
|
|
|
3
3
|
function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
|
|
4
4
|
const [error, setError] = reactExports.useState(false);
|