@imtbl/sdk 1.50.0 → 1.51.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-DfFeJjsq.js → blockchain_data-V6qvTJZx.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddFundsWidget-J5P-_D5I.js → AddFundsWidget-BE3tH3sD.js} +140 -73
- package/dist/browser/checkout/{BridgeWidget-CS5yTOEV.js → BridgeWidget-CuJ6YQyD.js} +5 -5
- package/dist/browser/checkout/{CheckoutWidget-BuJC3czG.js → CheckoutWidget-CPk2M0gO.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BbI1gHhz.js → OnRampWidget-B8XTYeLq.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-CKgKbBmP.js → SaleWidget-CNX8wQB_.js} +9 -9
- package/dist/browser/checkout/{SpendingCapHero-DLAFNwcV.js → SpendingCapHero-DxCYTPhc.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-BiDe0uWZ.js → SwapWidget-B8bdrEL9.js} +6 -6
- package/dist/browser/checkout/{TextInputForm-BDl26uzy.js → TextInputForm-BIfV7_Pt.js} +1 -1
- package/dist/browser/checkout/{TopUpView-CcEco0vJ.js → TopUpView-DXTeRnVi.js} +1 -1
- package/dist/browser/checkout/{WalletWidget-CvXuRhu4.js → WalletWidget-R44zuUQN.js} +3 -3
- package/dist/browser/checkout/{auto-track-CrXme9IR.js → auto-track-B1tnWcY2.js} +1 -1
- package/dist/browser/checkout/{balance-Yhi7HFPg.js → balance-BFBX5Uig.js} +2 -2
- package/dist/browser/checkout/{index-DSD7Cp9Y.js → index-2KJzb0Lk.js} +2 -2
- package/dist/browser/checkout/{index-Bo5u_Fb2.js → index-B-saKHds.js} +1 -1
- package/dist/browser/checkout/{index-BTRRtq4s.js → index-C33fT2Jd.js} +23 -18
- package/dist/browser/checkout/{index-B5WDsywA.js → index-CDdCw8Ew.js} +1 -1
- package/dist/browser/checkout/{index-_KvnCzM3.js → index-CTTkN9Wo.js} +1 -1
- package/dist/browser/checkout/{index-KJLnq9ry.js → index-DMtno6AZ.js} +1 -1
- package/dist/browser/checkout/{index-K7EK6z9Q.js → index-rEuJKrzD.js} +1 -1
- package/dist/browser/checkout/{index-CMPz8y-z.js → index-zasnLjkP.js} +1 -1
- package/dist/browser/checkout/{index.umd-CiRNaz8c.js → index.umd-DS3Q6Nlz.js} +1 -1
- package/dist/browser/checkout/{retry-C_6wfaUx.js → retry-CbmsJYME.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +143 -71
- package/dist/{checkout-gvMXIDZN.js → checkout-C9WQQDgu.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-D0MSw430.js → config-CI96rT9G.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-Ds6TqB1_.js → index-B1a3tQ-n.js} +1 -1
- package/dist/{index-DI-f6T8C.js → index-BRgoPq_B.js} +1 -1
- package/dist/{index-DGkP8xa4.js → index-C6UaxvUp.js} +4 -4
- package/dist/{index-DP6EvepA.js → index-CoWUEf9o.js} +1 -1
- package/dist/{index-Dj87EW_E.js → index-Cod8TdpE.js} +3 -3
- package/dist/{index-B0p8G9Wl.js → index-DNfcspZ4.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-DWHjNMCG.js → minting_backend-DO5sIwrb.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-Ch5ofL3A.js → orderbook-BbJNC6_b.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DAkeE5FA.js → passport-BLPFF6Ja.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-DzbuBKVc.js → webhook-BDgRsIWT.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-Dg-Pe0cV.js → x-BBGd9Fli.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -167362,7 +167362,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
167362
167362
|
return __generator(this, function (_b) {
|
|
167363
167363
|
switch (_b.label) {
|
|
167364
167364
|
case 0: return [4 /*yield*/, import(
|
|
167365
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
167365
|
+
/* webpackChunkName: "auto-track" */ './auto-track-B1tnWcY2.js')];
|
|
167366
167366
|
case 1:
|
|
167367
167367
|
autotrack = _b.sent();
|
|
167368
167368
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -167381,7 +167381,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
167381
167381
|
return __generator(this, function (_b) {
|
|
167382
167382
|
switch (_b.label) {
|
|
167383
167383
|
case 0: return [4 /*yield*/, import(
|
|
167384
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
167384
|
+
/* webpackChunkName: "auto-track" */ './auto-track-B1tnWcY2.js')];
|
|
167385
167385
|
case 1:
|
|
167386
167386
|
autotrack = _b.sent();
|
|
167387
167387
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -167400,7 +167400,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
167400
167400
|
return __generator(this, function (_b) {
|
|
167401
167401
|
switch (_b.label) {
|
|
167402
167402
|
case 0: return [4 /*yield*/, import(
|
|
167403
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
167403
|
+
/* webpackChunkName: "auto-track" */ './auto-track-B1tnWcY2.js')];
|
|
167404
167404
|
case 1:
|
|
167405
167405
|
autotrack = _b.sent();
|
|
167406
167406
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -167419,7 +167419,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
167419
167419
|
return __generator(this, function (_b) {
|
|
167420
167420
|
switch (_b.label) {
|
|
167421
167421
|
case 0: return [4 /*yield*/, import(
|
|
167422
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
167422
|
+
/* webpackChunkName: "auto-track" */ './auto-track-B1tnWcY2.js')];
|
|
167423
167423
|
case 1:
|
|
167424
167424
|
autotrack = _b.sent();
|
|
167425
167425
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -167569,7 +167569,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
167569
167569
|
return [2 /*return*/, []];
|
|
167570
167570
|
}
|
|
167571
167571
|
return [4 /*yield*/, import(
|
|
167572
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
167572
|
+
/* webpackChunkName: "queryString" */ './index-rEuJKrzD.js')];
|
|
167573
167573
|
case 1:
|
|
167574
167574
|
queryString = (_a.sent()).queryString;
|
|
167575
167575
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -170273,7 +170273,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
170273
170273
|
case 0:
|
|
170274
170274
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
170275
170275
|
return [4 /*yield*/, import(
|
|
170276
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
170276
|
+
/* webpackChunkName: "tsub-middleware" */ './index-DMtno6AZ.js').then(function (mod) {
|
|
170277
170277
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
170278
170278
|
})];
|
|
170279
170279
|
case 1:
|
|
@@ -170286,7 +170286,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
170286
170286
|
tsubMiddleware = _d;
|
|
170287
170287
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
170288
170288
|
return [4 /*yield*/, import(
|
|
170289
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
170289
|
+
/* webpackChunkName: "ajs-destination" */ './index-CTTkN9Wo.js').then(function (mod) {
|
|
170290
170290
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
170291
170291
|
})];
|
|
170292
170292
|
case 4:
|
|
@@ -170299,7 +170299,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
170299
170299
|
legacyDestinations = _e;
|
|
170300
170300
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
170301
170301
|
return [4 /*yield*/, import(
|
|
170302
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
170302
|
+
/* webpackChunkName: "legacyVideos" */ './index-2KJzb0Lk.js').then(function (mod) {
|
|
170303
170303
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
170304
170304
|
})];
|
|
170305
170305
|
case 7:
|
|
@@ -170308,7 +170308,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
170308
170308
|
case 8:
|
|
170309
170309
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
170310
170310
|
return [4 /*yield*/, import(
|
|
170311
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
170311
|
+
/* webpackChunkName: "schemaFilter" */ './index-zasnLjkP.js').then(function (mod) {
|
|
170312
170312
|
var _a;
|
|
170313
170313
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
170314
170314
|
})];
|
|
@@ -170347,7 +170347,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
170347
170347
|
return enabled;
|
|
170348
170348
|
})) return [3 /*break*/, 17];
|
|
170349
170349
|
return [4 /*yield*/, import(
|
|
170350
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
170350
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-CDdCw8Ew.js').then(function (_a) {
|
|
170351
170351
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
170352
170352
|
return __awaiter(_this, void 0, void 0, function () {
|
|
170353
170353
|
var middleware, promises;
|
|
@@ -178494,7 +178494,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
178494
178494
|
|
|
178495
178495
|
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;}};
|
|
178496
178496
|
|
|
178497
|
-
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-
|
|
178497
|
+
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-B-saKHds.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$3.setIsUiLoaded(!0);}}};
|
|
178498
178498
|
|
|
178499
178499
|
var index = /*#__PURE__*/Object.freeze({
|
|
178500
178500
|
__proto__: null,
|
|
@@ -191493,7 +191493,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
191493
191493
|
: serviceUnavailableView) }));
|
|
191494
191494
|
}
|
|
191495
191495
|
|
|
191496
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
191496
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-B8bdrEL9.js'));
|
|
191497
191497
|
class Swap extends Base {
|
|
191498
191498
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
191499
191499
|
getValidatedProperties({ config }) {
|
|
@@ -191620,7 +191620,7 @@ const sendOnRampFailedEvent = (eventTarget, reason) => {
|
|
|
191620
191620
|
eventTarget.dispatchEvent(failedEvent);
|
|
191621
191621
|
};
|
|
191622
191622
|
|
|
191623
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
191623
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-B8XTYeLq.js').then(function (n) { return n.a; }));
|
|
191624
191624
|
class OnRamp extends Base {
|
|
191625
191625
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
191626
191626
|
getValidatedProperties({ config }) {
|
|
@@ -191709,7 +191709,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
191709
191709
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
191710
191710
|
}
|
|
191711
191711
|
|
|
191712
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
191712
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-R44zuUQN.js'));
|
|
191713
191713
|
class Wallet extends Base {
|
|
191714
191714
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
191715
191715
|
getValidatedProperties({ config }) {
|
|
@@ -191851,7 +191851,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
191851
191851
|
eventTarget.dispatchEvent(event);
|
|
191852
191852
|
};
|
|
191853
191853
|
|
|
191854
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
191854
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-CNX8wQB_.js'));
|
|
191855
191855
|
class Sale extends Base {
|
|
191856
191856
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
191857
191857
|
// TODO: add specific validation logic for the sale items
|
|
@@ -191927,7 +191927,7 @@ class Sale extends Base {
|
|
|
191927
191927
|
}
|
|
191928
191928
|
}
|
|
191929
191929
|
|
|
191930
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
191930
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-CuJ6YQyD.js').then(function (n) { return n.a; }));
|
|
191931
191931
|
class Bridge extends Base {
|
|
191932
191932
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
191933
191933
|
getValidatedProperties({ config }) {
|
|
@@ -191970,7 +191970,7 @@ class Bridge extends Base {
|
|
|
191970
191970
|
}
|
|
191971
191971
|
}
|
|
191972
191972
|
|
|
191973
|
-
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-
|
|
191973
|
+
const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-CPk2M0gO.js'));
|
|
191974
191974
|
class CheckoutWidgetRoot extends Base {
|
|
191975
191975
|
eventTopic = IMTBLWidgetEvents.IMTBL_CHECKOUT_WIDGET_EVENT;
|
|
191976
191976
|
getValidatedProperties({ config, }) {
|
|
@@ -192030,7 +192030,7 @@ function sendAddFundsGoBackEvent(eventTarget) {
|
|
|
192030
192030
|
eventTarget.dispatchEvent(closeWidgetEvent);
|
|
192031
192031
|
}
|
|
192032
192032
|
|
|
192033
|
-
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-
|
|
192033
|
+
const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-BE3tH3sD.js'));
|
|
192034
192034
|
class AddFunds extends Base {
|
|
192035
192035
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_FUNDS_WIDGET_EVENT;
|
|
192036
192036
|
getValidatedProperties({ config, }) {
|
|
@@ -192048,6 +192048,11 @@ class AddFunds extends Base {
|
|
|
192048
192048
|
}
|
|
192049
192049
|
getValidatedParameters(params) {
|
|
192050
192050
|
const validatedParams = params;
|
|
192051
|
+
if (!isValidAmount(params.amount)) {
|
|
192052
|
+
// eslint-disable-next-line no-console
|
|
192053
|
+
console.warn('[IMTBL]: invalid "amount" widget input');
|
|
192054
|
+
validatedParams.amount = '';
|
|
192055
|
+
}
|
|
192051
192056
|
return validatedParams;
|
|
192052
192057
|
}
|
|
192053
192058
|
render() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cY as __awaiter, cZ as __generator, d7 as isServer, c$ as getNextIntegrationsURL, c_ as loadScript } from './index-
|
|
1
|
+
import { cY as __awaiter, cZ as __generator, d7 as isServer, c$ as getNextIntegrationsURL, c_ as loadScript } from './index-C33fT2Jd.js';
|
|
2
2
|
|
|
3
3
|
function remoteMiddlewares(ctx, settings, obfuscate) {
|
|
4
4
|
var _a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cY as __awaiter, cZ as __generator, c_ as loadScript, c$ as getNextIntegrationsURL, d0 as unloadScript, d1 as __spreadArray, d2 as isOffline, d3 as __assign, d4 as ContextCancelation, d5 as applyDestinationMiddleware, d6 as dist, d7 as isServer, d8 as mergedOptions, d9 as isPlainObject, da as pWhile, db as PriorityQueue, dc as PersistedPriorityQueue, dd as attempt, de as isOnline, df as Context } from './index-
|
|
1
|
+
import { cY as __awaiter, cZ as __generator, c_ as loadScript, c$ as getNextIntegrationsURL, d0 as unloadScript, d1 as __spreadArray, d2 as isOffline, d3 as __assign, d4 as ContextCancelation, d5 as applyDestinationMiddleware, d6 as dist, d7 as isServer, d8 as mergedOptions, d9 as isPlainObject, da as pWhile, db as PriorityQueue, dc as PersistedPriorityQueue, dd as attempt, de as isOnline, df as Context } from './index-C33fT2Jd.js';
|
|
2
2
|
import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
|
|
3
3
|
|
|
4
4
|
function normalizeName(name) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as reactExports, be as getDefaultTokenImage, j as jsx, cy as useBrowserLayoutEffect } from './index-
|
|
1
|
+
import { r as reactExports, be as getDefaultTokenImage, j as jsx, cy as useBrowserLayoutEffect } from './index-C33fT2Jd.js';
|
|
2
2
|
|
|
3
3
|
function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
|
|
4
4
|
const [error, setError] = reactExports.useState(false);
|