@imtbl/sdk 1.52.0 → 1.52.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/{blockchain_data-T7u5Hp0U.js → blockchain_data-DBBTvmmb.js} +2 -2
  2. package/dist/blockchain_data.d.ts +34 -3202
  3. package/dist/blockchain_data.js +3 -3
  4. package/dist/browser/checkout/{AddFundsWidget-DuG1OWEM.js → AddFundsWidget-SdKqlUUr.js} +124 -49
  5. package/dist/browser/checkout/{BridgeWidget-2D-8F1Vq.js → BridgeWidget-Bx1DFMXg.js} +11 -9
  6. package/dist/browser/checkout/{CheckoutWidget-Bvnur5WZ.js → CheckoutWidget-B1pE8Gc2.js} +81 -35
  7. package/dist/browser/checkout/{OnRampWidget-B4UV_TYW.js → OnRampWidget-bmvseWX-.js} +20 -12
  8. package/dist/browser/checkout/{SaleWidget-BQMUaWlZ.js → SaleWidget-Ddos1DHm.js} +9 -9
  9. package/dist/browser/checkout/{SpendingCapHero-BsQQYO_D.js → SpendingCapHero-BKdEyvIl.js} +1 -1
  10. package/dist/browser/checkout/{SwapWidget-BK7sTJ6u.js → SwapWidget-CrEzJos9.js} +12 -10
  11. package/dist/browser/checkout/{TextInputForm-Cy6sTMjr.js → TextInputForm-BvZsFFRK.js} +1 -1
  12. package/dist/browser/checkout/{TopUpView-Dw-JH0Q5.js → TopUpView-CojeMjuL.js} +1 -1
  13. package/dist/browser/checkout/{WalletWidget-t6i1V-G5.js → WalletWidget-DcoX5T7s.js} +7 -6
  14. package/dist/browser/checkout/{auto-track-CMv29U8a.js → auto-track-CPy9e41Q.js} +1 -1
  15. package/dist/browser/checkout/{balance-Dt4oB1G1.js → balance-_0wiNzA1.js} +2 -2
  16. package/dist/browser/checkout/{index-D2zks65E.js → index-2yp2sttp.js} +2 -2
  17. package/dist/browser/checkout/{index-BRzBLTux.js → index-4LGmzy2P.js} +1 -1
  18. package/dist/browser/checkout/{index-Zraoakam.js → index-BjnD8v8p.js} +1 -1
  19. package/dist/browser/checkout/{index-DmXFGYTM.js → index-BpduNNVl.js} +1 -1
  20. package/dist/browser/checkout/{index-D4zR0DRy.js → index-CPLIXtyA.js} +1 -1
  21. package/dist/browser/checkout/{index-CMBbtkDe.js → index-CcR4tO_g.js} +1 -1
  22. package/dist/browser/checkout/{index-5qc7Vsg4.js → index-DnQfQojQ.js} +63 -46
  23. package/dist/browser/checkout/{index-DwTyassh.js → index-Dv7_L5sJ.js} +1 -1
  24. package/dist/browser/checkout/{index.umd-CCwq6cRd.js → index.umd-LRNZ8nMO.js} +1 -1
  25. package/dist/browser/checkout/{retry-C_l6vh-l.js → retry-TNKwGgHJ.js} +1 -1
  26. package/dist/browser/checkout/sdk.js +5 -5
  27. package/dist/browser/checkout/widgets-esm.js +1 -1
  28. package/dist/browser/checkout/widgets.js +279 -128
  29. package/dist/{checkout-DxDRj3k-.js → checkout-BoEdWIoM.js} +7 -6
  30. package/dist/checkout.d.ts +38 -10
  31. package/dist/checkout.js +5 -5
  32. package/dist/{config-Dj7PQqL4.js → config-4V88kddG.js} +1 -1
  33. package/dist/config.js +1 -1
  34. package/dist/{index-8m8-bJcZ.js → index-5q3Doq32.js} +1 -1
  35. package/dist/{index-1bjDCdo5.js → index-CAL1gWlu.js} +4 -4
  36. package/dist/{index-XxjQ6oVx.js → index-D0T-P8dM.js} +53 -53
  37. package/dist/{index-D4eU2e1C.js → index-DDE1ZfXv.js} +1 -1
  38. package/dist/{index-BxF866Mh.js → index-Dg5cqGBu.js} +1 -1
  39. package/dist/{index-snMwBaY-.js → index-Dqva106f.js} +1 -1
  40. package/dist/index.browser.js +5 -5
  41. package/dist/index.browser.js.map +1 -1
  42. package/dist/index.cjs +66 -61
  43. package/dist/index.d.ts +266 -3404
  44. package/dist/index.js +14 -14
  45. package/dist/{minting_backend-DfBB5ptf.js → minting_backend-x7gO9bio.js} +3 -3
  46. package/dist/minting_backend.d.ts +312 -228
  47. package/dist/minting_backend.js +5 -5
  48. package/dist/{orderbook-CnmzmGtG.js → orderbook-BUiL0rqz.js} +1 -1
  49. package/dist/orderbook.js +2 -2
  50. package/dist/{passport-B8WhzCZf.js → passport-DGaas7w4.js} +10 -6
  51. package/dist/passport.d.ts +3 -1
  52. package/dist/passport.js +4 -4
  53. package/dist/{webhook-DzAoMhRT.js → webhook-Be5S01dB.js} +1 -1
  54. package/dist/webhook.js +2 -2
  55. package/dist/{x-DbbHwlbW.js → x-7ExOXsHk.js} +3 -3
  56. package/dist/x.js +4 -4
  57. package/package.json +1 -1
@@ -124897,6 +124897,7 @@ var OrchestrationEventType;
124897
124897
  OrchestrationEventType["REQUEST_BRIDGE"] = "request-bridge";
124898
124898
  OrchestrationEventType["REQUEST_ONRAMP"] = "request-onramp";
124899
124899
  OrchestrationEventType["REQUEST_ADD_FUNDS"] = "request-add-funds";
124900
+ OrchestrationEventType["REQUEST_GO_BACK"] = "request-go-back";
124900
124901
  })(OrchestrationEventType || (OrchestrationEventType = {}));
124901
124902
 
124902
124903
  /**
@@ -124957,7 +124958,6 @@ var AddFundsEventType;
124957
124958
  AddFundsEventType["REQUEST_BRIDGE"] = "request-bridge";
124958
124959
  AddFundsEventType["REQUEST_ONRAMP"] = "request-onramp";
124959
124960
  AddFundsEventType["REQUEST_SWAP"] = "request-swap";
124960
- AddFundsEventType["GO_BACK"] = "go-back";
124961
124961
  })(AddFundsEventType || (AddFundsEventType = {}));
124962
124962
 
124963
124963
  /**
@@ -125483,6 +125483,7 @@ var PostMessageHandlerEventType;
125483
125483
  PostMessageHandlerEventType["PROVIDER_UPDATED"] = "IMTBL_PROVIDER_UPDATED";
125484
125484
  PostMessageHandlerEventType["EIP_6963_EVENT"] = "IMTBL_EIP_6963_EVENT";
125485
125485
  PostMessageHandlerEventType["WIDGET_EVENT"] = "IMTBL_CHECKOUT_WIDGET_EVENT";
125486
+ PostMessageHandlerEventType["WIDGET_PROVIDER_EVENT"] = "IMTBL_WIDGET_PROVIDER_EVENT";
125486
125487
  })(PostMessageHandlerEventType || (PostMessageHandlerEventType = {}));
125487
125488
 
125488
125489
  class PostMessageHandler {
@@ -167906,7 +167907,7 @@ var Analytics = /** @class */ (function (_super) {
167906
167907
  return __generator(this, function (_b) {
167907
167908
  switch (_b.label) {
167908
167909
  case 0: return [4 /*yield*/, import(
167909
- /* webpackChunkName: "auto-track" */ './auto-track-CMv29U8a.js')];
167910
+ /* webpackChunkName: "auto-track" */ './auto-track-CPy9e41Q.js')];
167910
167911
  case 1:
167911
167912
  autotrack = _b.sent();
167912
167913
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -167925,7 +167926,7 @@ var Analytics = /** @class */ (function (_super) {
167925
167926
  return __generator(this, function (_b) {
167926
167927
  switch (_b.label) {
167927
167928
  case 0: return [4 /*yield*/, import(
167928
- /* webpackChunkName: "auto-track" */ './auto-track-CMv29U8a.js')];
167929
+ /* webpackChunkName: "auto-track" */ './auto-track-CPy9e41Q.js')];
167929
167930
  case 1:
167930
167931
  autotrack = _b.sent();
167931
167932
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -167944,7 +167945,7 @@ var Analytics = /** @class */ (function (_super) {
167944
167945
  return __generator(this, function (_b) {
167945
167946
  switch (_b.label) {
167946
167947
  case 0: return [4 /*yield*/, import(
167947
- /* webpackChunkName: "auto-track" */ './auto-track-CMv29U8a.js')];
167948
+ /* webpackChunkName: "auto-track" */ './auto-track-CPy9e41Q.js')];
167948
167949
  case 1:
167949
167950
  autotrack = _b.sent();
167950
167951
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -167963,7 +167964,7 @@ var Analytics = /** @class */ (function (_super) {
167963
167964
  return __generator(this, function (_b) {
167964
167965
  switch (_b.label) {
167965
167966
  case 0: return [4 /*yield*/, import(
167966
- /* webpackChunkName: "auto-track" */ './auto-track-CMv29U8a.js')];
167967
+ /* webpackChunkName: "auto-track" */ './auto-track-CPy9e41Q.js')];
167967
167968
  case 1:
167968
167969
  autotrack = _b.sent();
167969
167970
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -168113,7 +168114,7 @@ var Analytics = /** @class */ (function (_super) {
168113
168114
  return [2 /*return*/, []];
168114
168115
  }
168115
168116
  return [4 /*yield*/, import(
168116
- /* webpackChunkName: "queryString" */ './index-BRzBLTux.js')];
168117
+ /* webpackChunkName: "queryString" */ './index-4LGmzy2P.js')];
168117
168118
  case 1:
168118
168119
  queryString = (_a.sent()).queryString;
168119
168120
  return [2 /*return*/, queryString(this, query)];
@@ -170817,7 +170818,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
170817
170818
  case 0:
170818
170819
  if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
170819
170820
  return [4 /*yield*/, import(
170820
- /* webpackChunkName: "tsub-middleware" */ './index-D4zR0DRy.js').then(function (mod) {
170821
+ /* webpackChunkName: "tsub-middleware" */ './index-CPLIXtyA.js').then(function (mod) {
170821
170822
  return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
170822
170823
  })];
170823
170824
  case 1:
@@ -170830,7 +170831,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
170830
170831
  tsubMiddleware = _d;
170831
170832
  if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
170832
170833
  return [4 /*yield*/, import(
170833
- /* webpackChunkName: "ajs-destination" */ './index-DwTyassh.js').then(function (mod) {
170834
+ /* webpackChunkName: "ajs-destination" */ './index-Dv7_L5sJ.js').then(function (mod) {
170834
170835
  return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
170835
170836
  })];
170836
170837
  case 4:
@@ -170843,7 +170844,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
170843
170844
  legacyDestinations = _e;
170844
170845
  if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
170845
170846
  return [4 /*yield*/, import(
170846
- /* webpackChunkName: "legacyVideos" */ './index-D2zks65E.js').then(function (mod) {
170847
+ /* webpackChunkName: "legacyVideos" */ './index-2yp2sttp.js').then(function (mod) {
170847
170848
  return mod.loadLegacyVideoPlugins(analytics);
170848
170849
  })];
170849
170850
  case 7:
@@ -170852,7 +170853,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
170852
170853
  case 8:
170853
170854
  if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
170854
170855
  return [4 /*yield*/, import(
170855
- /* webpackChunkName: "schemaFilter" */ './index-Zraoakam.js').then(function (mod) {
170856
+ /* webpackChunkName: "schemaFilter" */ './index-BjnD8v8p.js').then(function (mod) {
170856
170857
  var _a;
170857
170858
  return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
170858
170859
  })];
@@ -170891,7 +170892,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
170891
170892
  return enabled;
170892
170893
  })) return [3 /*break*/, 17];
170893
170894
  return [4 /*yield*/, import(
170894
- /* webpackChunkName: "remoteMiddleware" */ './index-CMBbtkDe.js').then(function (_a) {
170895
+ /* webpackChunkName: "remoteMiddleware" */ './index-CcR4tO_g.js').then(function (_a) {
170895
170896
  var remoteMiddlewares = _a.remoteMiddlewares;
170896
170897
  return __awaiter(_this, void 0, void 0, function () {
170897
170898
  var middleware, promises;
@@ -179038,7 +179039,7 @@ function snapshot(proxyObject, handlePromise) {
179038
179039
 
179039
179040
  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;}};
179040
179041
 
179041
- 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-DmXFGYTM.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$3.setIsUiLoaded(!0);}}};
179042
+ 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-BpduNNVl.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$3.setIsUiLoaded(!0);}}};
179042
179043
 
179043
179044
  var index = /*#__PURE__*/Object.freeze({
179044
179045
  __proto__: null,
@@ -191921,10 +191922,25 @@ function sendRequestBridgeEvent(eventTarget, imtblWidgetEvent, eventData) {
191921
191922
  if (eventTarget !== undefined)
191922
191923
  eventTarget.dispatchEvent(requestBridgeEvent);
191923
191924
  }
191925
+ function sendRequestGoBackEvent(eventTarget, imtblWidgetEvent, eventData) {
191926
+ // eslint-disable-next-line max-len
191927
+ const requestGoBackEvent = new CustomEvent(imtblWidgetEvent, {
191928
+ detail: {
191929
+ type: OrchestrationEventType.REQUEST_GO_BACK,
191930
+ data: eventData,
191931
+ },
191932
+ });
191933
+ // TODO: please remove or if necessary keep the eslint ignore
191934
+ // eslint-disable-next-line no-console
191935
+ console.log(`go back event from ${imtblWidgetEvent}:`, eventTarget, requestGoBackEvent);
191936
+ if (eventTarget !== undefined)
191937
+ eventTarget.dispatchEvent(requestGoBackEvent);
191938
+ }
191924
191939
  const orchestrationEvents = {
191925
191940
  sendRequestBridgeEvent,
191926
191941
  sendRequestSwapEvent,
191927
191942
  sendRequestOnrampEvent,
191943
+ sendRequestGoBackEvent,
191928
191944
  };
191929
191945
 
191930
191946
  const topUpBridgeOption = (isBridgeEnabled, isNotPassport) => {
@@ -192040,7 +192056,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
192040
192056
  : serviceUnavailableView) }));
192041
192057
  }
192042
192058
 
192043
- const SwapWidget = React.lazy(() => import('./SwapWidget-BK7sTJ6u.js'));
192059
+ const SwapWidget = React.lazy(() => import('./SwapWidget-CrEzJos9.js'));
192044
192060
  class Swap extends Base {
192045
192061
  eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
192046
192062
  getValidatedProperties({ config }) {
@@ -192111,7 +192127,7 @@ class Swap extends Base {
192111
192127
  allowedChains: [getL2ChainId(this.checkout.config)],
192112
192128
  };
192113
192129
  const topUpOptions = this.topUpOptions();
192114
- this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "swap-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(GeoblockLoader, { checkout: this.checkout, widget: (jsx$1(ConnectLoader, { params: connectLoaderParams, widgetConfig: this.strongConfig(), closeEvent: () => sendSwapWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(SwapWidget, { fromTokenAddress: this.parameters.fromTokenAddress, toTokenAddress: this.parameters.toTokenAddress, amount: this.parameters.amount, config: this.strongConfig(), autoProceed: this.parameters.autoProceed, direction: this.parameters.direction ?? SwapDirection.FROM }) }) })), serviceUnavailableView: (jsx$1(ServiceUnavailableErrorView, { service: ServiceType.SWAP, onCloseClick: () => sendSwapWidgetCloseEvent(window), primaryActionText: topUpOptions && topUpOptions?.length > 0
192130
+ this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "swap-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(GeoblockLoader, { checkout: this.checkout, widget: (jsx$1(ConnectLoader, { params: connectLoaderParams, widgetConfig: this.strongConfig(), closeEvent: () => sendSwapWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(SwapWidget, { fromTokenAddress: this.parameters.fromTokenAddress, toTokenAddress: this.parameters.toTokenAddress, amount: this.parameters.amount, config: this.strongConfig(), autoProceed: this.parameters.autoProceed, direction: this.parameters.direction ?? SwapDirection.FROM, showBackButton: this.parameters.showBackButton }) }) })), serviceUnavailableView: (jsx$1(ServiceUnavailableErrorView, { service: ServiceType.SWAP, onCloseClick: () => sendSwapWidgetCloseEvent(window), primaryActionText: topUpOptions && topUpOptions?.length > 0
192115
192131
  ? t(topUpOptions[0].textKey)
192116
192132
  : undefined, onPrimaryButtonClick: topUpOptions && topUpOptions?.length > 0
192117
192133
  ? topUpOptions[0].action
@@ -192167,7 +192183,7 @@ const sendOnRampFailedEvent = (eventTarget, reason) => {
192167
192183
  eventTarget.dispatchEvent(failedEvent);
192168
192184
  };
192169
192185
 
192170
- const OnRampWidget = React.lazy(() => import('./OnRampWidget-B4UV_TYW.js').then(function (n) { return n.a; }));
192186
+ const OnRampWidget = React.lazy(() => import('./OnRampWidget-bmvseWX-.js').then(function (n) { return n.a; }));
192171
192187
  class OnRamp extends Base {
192172
192188
  eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
192173
192189
  getValidatedProperties({ config }) {
@@ -192210,7 +192226,7 @@ class OnRamp extends Base {
192210
192226
  checkout: this.checkout,
192211
192227
  allowedChains: [getL1ChainId(this.checkout.config), getL2ChainId(this.checkout.config)],
192212
192228
  };
192213
- this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "onramp-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ConnectLoader, { widgetConfig: this.strongConfig(), params: connectLoaderParams, closeEvent: () => sendOnRampWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.ONRAMP.initialLoadingText') }), children: jsx$1(OnRampWidget, { tokenAddress: this.parameters.tokenAddress, amount: this.parameters.amount, config: this.strongConfig() }) }) }) }) }) }) }));
192229
+ this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "onramp-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(ConnectLoader, { widgetConfig: this.strongConfig(), params: connectLoaderParams, closeEvent: () => sendOnRampWidgetCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.ONRAMP.initialLoadingText') }), children: jsx$1(OnRampWidget, { tokenAddress: this.parameters.tokenAddress, amount: this.parameters.amount, config: this.strongConfig(), showBackButton: this.parameters.showBackButton }) }) }) }) }) }) }));
192214
192230
  }
192215
192231
  }
192216
192232
 
@@ -192256,7 +192272,7 @@ function sendDisconnectWalletEvent(eventTarget) {
192256
192272
  eventTarget.dispatchEvent(disconnectWalletEvent);
192257
192273
  }
192258
192274
 
192259
- const WalletWidget = React.lazy(() => import('./WalletWidget-t6i1V-G5.js'));
192275
+ const WalletWidget = React.lazy(() => import('./WalletWidget-DcoX5T7s.js'));
192260
192276
  class Wallet extends Base {
192261
192277
  eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
192262
192278
  getValidatedProperties({ config }) {
@@ -192398,18 +192414,31 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
192398
192414
  eventTarget.dispatchEvent(event);
192399
192415
  };
192400
192416
 
192401
- const SaleWidget = React.lazy(() => import('./SaleWidget-BQMUaWlZ.js'));
192417
+ const SaleWidget = React.lazy(() => import('./SaleWidget-Ddos1DHm.js'));
192402
192418
  class Sale extends Base {
192403
192419
  eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
192404
192420
  // TODO: add specific validation logic for the sale items
192405
- isValidProucts(products) {
192421
+ isValidArray(items) {
192406
192422
  try {
192407
- return Array.isArray(products);
192423
+ return Array.isArray(items);
192408
192424
  }
192409
192425
  catch {
192410
192426
  return false;
192411
192427
  }
192412
192428
  }
192429
+ deduplicateItems(items) {
192430
+ if (!items || !this.isValidArray(items))
192431
+ return [];
192432
+ const uniqueItems = items.reduce((acc, item) => {
192433
+ const itemIndex = acc.findIndex(({ productId }) => productId === item.productId);
192434
+ if (itemIndex !== -1) {
192435
+ acc[itemIndex] = { ...item, qty: acc[itemIndex].qty + item.qty };
192436
+ return acc;
192437
+ }
192438
+ return [...acc, { ...item }];
192439
+ }, []);
192440
+ return uniqueItems;
192441
+ }
192413
192442
  getValidatedProperties({ config, }) {
192414
192443
  let validatedConfig;
192415
192444
  if (config) {
@@ -192430,8 +192459,7 @@ class Sale extends Base {
192430
192459
  console.warn('[IMTBL]: invalid "walletProviderName" widget input');
192431
192460
  validatedParams.walletProviderName = undefined;
192432
192461
  }
192433
- // TODO: fix the logic here when proper , currently saying if valid then reset to empty array.
192434
- if (!this.isValidProucts(params.items ?? [])) {
192462
+ if (!this.isValidArray(params.items)) {
192435
192463
  // eslint-disable-next-line no-console
192436
192464
  console.warn('[IMTBL]: invalid "items" widget input.');
192437
192465
  validatedParams.items = [];
@@ -192452,7 +192480,10 @@ class Sale extends Base {
192452
192480
  console.warn('[IMTBL]: invalid "excludePaymentTypes" widget input');
192453
192481
  validatedParams.excludePaymentTypes = [];
192454
192482
  }
192455
- return validatedParams;
192483
+ return {
192484
+ ...validatedParams,
192485
+ items: this.deduplicateItems(params.items),
192486
+ };
192456
192487
  }
192457
192488
  render() {
192458
192489
  if (!this.reactRoot)
@@ -192474,7 +192505,7 @@ class Sale extends Base {
192474
192505
  }
192475
192506
  }
192476
192507
 
192477
- const BridgeWidget = React.lazy(() => import('./BridgeWidget-2D-8F1Vq.js').then(function (n) { return n.a; }));
192508
+ const BridgeWidget = React.lazy(() => import('./BridgeWidget-Bx1DFMXg.js').then(function (n) { return n.a; }));
192478
192509
  class Bridge extends Base {
192479
192510
  eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
192480
192511
  getValidatedProperties({ config }) {
@@ -192513,11 +192544,11 @@ class Bridge extends Base {
192513
192544
  if (!this.reactRoot)
192514
192545
  return;
192515
192546
  const { t } = instance;
192516
- this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "bridge-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(BridgeWidget, { checkout: this.checkout, config: this.strongConfig(), web3Provider: this.web3Provider, tokenAddress: this.parameters.tokenAddress, amount: this.parameters.amount, walletProviderName: this.parameters.walletProviderName }) }) }) }) }) }));
192547
+ this.reactRoot.render(jsx$1(React.StrictMode, { children: jsx$1(CustomAnalyticsProvider, { checkout: this.checkout, children: jsx$1(ThemeProvider, { id: "bridge-container", config: this.strongConfig(), children: jsx$1(HandoverProvider, { children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(BridgeWidget, { checkout: this.checkout, config: this.strongConfig(), web3Provider: this.web3Provider, tokenAddress: this.parameters.tokenAddress, amount: this.parameters.amount, walletProviderName: this.parameters.walletProviderName, showBackButton: !!this.parameters.showBackButton }) }) }) }) }) }));
192517
192548
  }
192518
192549
  }
192519
192550
 
192520
- const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-Bvnur5WZ.js'));
192551
+ const CheckoutWidget = React.lazy(() => import('./CheckoutWidget-B1pE8Gc2.js'));
192521
192552
  class CheckoutWidgetRoot extends Base {
192522
192553
  eventTopic = IMTBLWidgetEvents.IMTBL_CHECKOUT_WIDGET_EVENT;
192523
192554
  getValidatedProperties({ config, }) {
@@ -192562,22 +192593,8 @@ function sendAddFundsCloseEvent(eventTarget) {
192562
192593
  if (eventTarget !== undefined)
192563
192594
  eventTarget.dispatchEvent(closeWidgetEvent);
192564
192595
  }
192565
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
192566
- function sendAddFundsGoBackEvent(eventTarget) {
192567
- const closeWidgetEvent = new CustomEvent(IMTBLWidgetEvents.IMTBL_ADD_FUNDS_WIDGET_EVENT, {
192568
- detail: {
192569
- type: AddFundsEventType.GO_BACK,
192570
- data: {},
192571
- },
192572
- });
192573
- // TODO: please remove or if necessary keep the eslint ignore
192574
- // eslint-disable-next-line no-console
192575
- console.log('go back event:', closeWidgetEvent);
192576
- if (eventTarget !== undefined)
192577
- eventTarget.dispatchEvent(closeWidgetEvent);
192578
- }
192579
192596
 
192580
- const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-DuG1OWEM.js'));
192597
+ const AddFundsWidget = React.lazy(() => import('./AddFundsWidget-SdKqlUUr.js'));
192581
192598
  class AddFunds extends Base {
192582
192599
  eventTopic = IMTBLWidgetEvents.IMTBL_ADD_FUNDS_WIDGET_EVENT;
192583
192600
  getValidatedProperties({ config, }) {
@@ -192595,10 +192612,10 @@ class AddFunds extends Base {
192595
192612
  }
192596
192613
  getValidatedParameters(params) {
192597
192614
  const validatedParams = params;
192598
- if (!isValidAmount(params.amount)) {
192615
+ if (!isValidAmount(params.toAmount)) {
192599
192616
  // eslint-disable-next-line no-console
192600
- console.warn('[IMTBL]: invalid "amount" widget input');
192601
- validatedParams.amount = '';
192617
+ console.warn('[IMTBL]: invalid "toAmount" widget input');
192618
+ validatedParams.toAmount = '';
192602
192619
  }
192603
192620
  return validatedParams;
192604
192621
  }
@@ -192617,7 +192634,7 @@ class AddFunds extends Base {
192617
192634
  getL2ChainId(this.checkout.config),
192618
192635
  ],
192619
192636
  };
192620
- 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(ConnectLoader, { widgetConfig: this.strongConfig(), params: connectLoaderParams, closeEvent: () => sendAddFundsCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(AddFundsWidget, { checkout: this.checkout, web3Provider: this.web3Provider, showBridgeOption: this.parameters.showBridgeOption, showSwapOption: this.parameters.showSwapOption, showOnrampOption: this.parameters.showOnrampOption, tokenAddress: this.parameters.tokenAddress, amount: this.parameters.amount }) }) }) }) }) }) }));
192637
+ 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(ConnectLoader, { widgetConfig: this.strongConfig(), params: connectLoaderParams, closeEvent: () => sendAddFundsCloseEvent(window), children: jsx$1(reactExports.Suspense, { fallback: jsx$1(LoadingView, { loadingText: t('views.LOADING_VIEW.text') }), children: jsx$1(AddFundsWidget, { checkout: this.checkout, web3Provider: this.web3Provider, showBridgeOption: this.parameters.showBridgeOption, showSwapOption: this.parameters.showSwapOption, showOnrampOption: this.parameters.showOnrampOption, toTokenAddress: this.parameters.toTokenAddress, toAmount: this.parameters.toAmount, showBackButton: this.parameters.showBackButton }) }) }) }) }) }) }));
192621
192638
  }
192622
192639
  }
192623
192640
 
@@ -192704,4 +192721,4 @@ class WidgetsFactory {
192704
192721
  }
192705
192722
  }
192706
192723
 
192707
- export { ButtonNavigationStyles as $, tokenValueFormat as A, ButtCon as B, ClassNames as C, DEFAULT_BUTTON_SIZE as D, EventTargetContext as E, orchestrationEvents as F, isNativeToken as G, sendNetworkSwitchEvent as H, IMTBLWidgetEvents as I, CheckoutErrorType as J, SharedViews as K, sortNetworksCompareFn as L, MenuItem as M, NetworkFilterTypes as N, FramedImage as O, getChainImage as P, DEFAULT_BALANCE_RETRY_POLICY as Q, sortTokensByAmount as R, SmartClone as S, TokenFilterTypes as T, UserJourney as U, ViewContext as V, getTokenImageByAddress as W, calculateCryptoToFiat as X, HeaderNavigation as Y, ZERO_BALANCE_STRING as Z, _objectWithoutProperties as _, Box as a, OnRampEventType as a$, sendWalletWidgetCloseEvent as a0, FooterLogo as a1, SimpleLayout as a2, WalletProviderName as a3, getWalletProviderNameByProvider as a4, abbreviateWalletAddress as a5, Heading as a6, Drawer as a7, useWalletConnect as a8, sendDisconnectWalletEvent as a9, LoadingOverlay as aA, Fragment as aB, useHandover as aC, HandoverTarget as aD, getRemoteRive as aE, HandoverDuration as aF, motion$1 as aG, listVariants as aH, listItemVariants as aI, StatusType as aJ, prettyFormatNumber as aK, Stack as aL, FundingStepType as aM, Divider as aN, tokenSymbolNameOverrides as aO, ItemType as aP, TransactionOrGasType as aQ, GasTokenType as aR, RoutingOutcomeType as aS, isGasFree as aT, eventTargetReducer as aU, initialEventTargetState as aV, EventTargetActions as aW, ChainId as aX, ConnectWidgetViews as aY, ConnectWidget as aZ, SwapEventType as a_, isWalletConnectProvider as aa, heroBackGroundStyles as ab, heroImageStyles as ac, heroImageBottomAlign as ad, SimpleTextBody as ae, FAQS_LINK as af, Link as ag, viewReducer as ah, initialViewState as ai, LoadingView as aj, ErrorView as ak, getCaptionTextStyles as al, baseTextComponentSx as am, useConvertSxToEmotionStyles as an, useGetCurrentSizeClass as ao, cloneElementWithCssProp as ap, shimmerSx as aq, BigNumber$1 as ar, compareStr as as, SalePaymentTypes as at, sendSaleWidgetCloseEvent as au, sendSaleSuccessEvent as av, sendSaleFailedEvent as aw, sendSaleTransactionSuccessEvent as ax, sendSalePaymentMethodEvent as ay, sendSalePaymentTokenEvent as az, getResponsiveSx as b, useInjectedProviders as b$, BridgeEventType as b0, ConnectEventType as b1, ConnectLoaderActions as b2, widgetTheme as b3, BlockExplorerService as b4, WidgetTheme as b5, getRemoteImage as b6, quickswapFooterStyles as b7, quickswapFooterLogoStyles as b8, quickswapFooterDisclaimerTextStyles as b9, defineReadOnly$1 as bA, getStatic$1 as bB, Signer$1 as bC, Provider$1 as bD, getAddress$1 as bE, Logger$2 as bF, getContractAddress$1 as bG, Interface$1 as bH, shallowCopy$1 as bI, VoidSigner$1 as bJ, Indexed$1 as bK, deepCopy$1 as bL, isHexString$1 as bM, checkResultErrors$1 as bN, resolveProperties$1 as bO, accessListify$1 as bP, arrayify$1 as bQ, IMMUTABLE_API_BASE_URL as bR, ShimmerBox as bS, PASSPORT_URL as bT, getChainIdBySlug as bU, networkName as bV, RawImage as bW, AXELAR_SCAN_URL as bX, getNativeSymbolByChainSlug as bY, WalletProviderRdns as bZ, Web3Provider as b_, getImxTokenImage as ba, CloudImage as bb, Logo as bc, Icon as bd, getDefaultTokenImage as be, NATIVE as bf, DEFAULT_QUOTE_REFRESH_INTERVAL as bg, amountInputValidation as bh, Tooltip as bi, ESTIMATE_DEBOUNCE as bj, DEFAULT_TOKEN_VALIDATION_DECIMALS as bk, DEFAULT_TOKEN_DECIMALS as bl, sendSwapWidgetCloseEvent as bm, IMX_TOKEN_SYMBOL as bn, FooterButton as bo, SwapDirection as bp, StatusView as bq, sendSwapSuccessEvent as br, sendSwapFailedEvent as bs, sendSwapRejectedEvent as bt, global$2 as bu, ExchangeType as bv, sendOnRampWidgetCloseEvent as bw, sendOnRampSuccessEvent as bx, sendOnRampFailedEvent as by, axios$1 as bz, BUTTON_SIZES as c, ne 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, hexZeroPad$1 as cA, isBigNumberish as cB, isBytes$1 as cC, PostMessageHandler as cD, PostMessageHandlerEventType as cE, CheckoutEventType as cF, CheckoutSuccessEventType as cG, CHECKOUT_APP_URL as cH, CheckoutFlowType as cI, ENV_DEVELOPMENT as cJ, OverflowPopoverMenu as cK, commonjsGlobal$2 as cL, requireSecp256k1 as cM, requireLib_commonjs as cN, require$$0$2 as cO, requireDist as cP, bech32 as cQ, bnExports$1 as cR, require$$0$3 as cS, getAugmentedNamespace$1 as cT, require$$0$5 as cU, minimalisticAssert$1 as cV, require$$2 as cW, hash$4 as cX, sendAddFundsCloseEvent as cY, sendAddFundsGoBackEvent as cZ, TextInput 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, PriceDisplay as cw, DuoCon as cx, useBrowserLayoutEffect as cy, version$r as cz, Button as d, se as d0, T as d1, oe$2 as d2, R$3 as d3, a$2 as d4, te$2 as d5, p$3 as d6, y$3 as d7, __awaiter as d8, __generator as d9, loadScript as da, getNextIntegrationsURL as db, unloadScript as dc, __spreadArray$1 as dd, isOffline as de, __assign as df, ContextCancelation as dg, applyDestinationMiddleware as dh, dist as di, isServer as dj, mergedOptions as dk, isPlainObject as dl, pWhile as dm, PriorityQueue as dn, PersistedPriorityQueue as dp, attempt as dq, isOnline as dr, Context as ds, pTimeout as dt, gracefulDecodeURIComponent as du, getDefaultExportFromCjs$2 as dv, WidgetsFactory as dw, ButtonIcon as e, flattenChildren as f, getStartingSize as g, ButtonLogo as h, isChildSubcomponent as i, jsx$1 as j, _defineProperty as k, useTranslation as l, merge as m, jsxs as n, Body as o, ViewActions as p, ConnectLoaderContext as q, reactExports as r, setDefaultSxBackgroundColor as s, useAnalytics as t, useTheme as u, formatZeroAmount as v, isPassportProvider as w, getL2ChainId as x, getL1ChainId as y, Environment$1 as z };
192724
+ export { ButtonNavigationStyles as $, tokenValueFormat as A, ButtCon as B, ClassNames as C, DEFAULT_BUTTON_SIZE as D, EventTargetContext as E, orchestrationEvents as F, isNativeToken as G, sendNetworkSwitchEvent as H, IMTBLWidgetEvents as I, CheckoutErrorType as J, SharedViews as K, sortNetworksCompareFn as L, MenuItem as M, NetworkFilterTypes as N, FramedImage as O, getChainImage as P, DEFAULT_BALANCE_RETRY_POLICY as Q, sortTokensByAmount as R, SmartClone as S, TokenFilterTypes as T, UserJourney as U, ViewContext as V, getTokenImageByAddress as W, calculateCryptoToFiat as X, HeaderNavigation as Y, ZERO_BALANCE_STRING as Z, _objectWithoutProperties as _, Box as a, OnRampEventType as a$, sendWalletWidgetCloseEvent as a0, FooterLogo as a1, SimpleLayout as a2, WalletProviderName as a3, getWalletProviderNameByProvider as a4, abbreviateWalletAddress as a5, Heading as a6, Drawer as a7, useWalletConnect as a8, sendDisconnectWalletEvent as a9, LoadingOverlay as aA, Fragment as aB, useHandover as aC, HandoverTarget as aD, getRemoteRive as aE, HandoverDuration as aF, motion$1 as aG, listVariants as aH, listItemVariants as aI, StatusType as aJ, prettyFormatNumber as aK, Stack as aL, FundingStepType as aM, Divider as aN, tokenSymbolNameOverrides as aO, ItemType as aP, TransactionOrGasType as aQ, GasTokenType as aR, RoutingOutcomeType as aS, isGasFree as aT, eventTargetReducer as aU, initialEventTargetState as aV, EventTargetActions as aW, ChainId as aX, ConnectWidgetViews as aY, ConnectWidget as aZ, SwapEventType as a_, isWalletConnectProvider as aa, heroBackGroundStyles as ab, heroImageStyles as ac, heroImageBottomAlign as ad, SimpleTextBody as ae, FAQS_LINK as af, Link as ag, viewReducer as ah, initialViewState as ai, LoadingView as aj, ErrorView as ak, getCaptionTextStyles as al, baseTextComponentSx as am, useConvertSxToEmotionStyles as an, useGetCurrentSizeClass as ao, cloneElementWithCssProp as ap, shimmerSx as aq, BigNumber$1 as ar, compareStr as as, SalePaymentTypes as at, sendSaleWidgetCloseEvent as au, sendSaleSuccessEvent as av, sendSaleFailedEvent as aw, sendSaleTransactionSuccessEvent as ax, sendSalePaymentMethodEvent as ay, sendSalePaymentTokenEvent as az, getResponsiveSx as b, useInjectedProviders as b$, BridgeEventType as b0, ConnectEventType as b1, ConnectLoaderActions as b2, widgetTheme as b3, BlockExplorerService as b4, WidgetTheme as b5, getRemoteImage as b6, quickswapFooterStyles as b7, quickswapFooterLogoStyles as b8, quickswapFooterDisclaimerTextStyles as b9, defineReadOnly$1 as bA, getStatic$1 as bB, Signer$1 as bC, Provider$1 as bD, getAddress$1 as bE, Logger$2 as bF, getContractAddress$1 as bG, Interface$1 as bH, shallowCopy$1 as bI, VoidSigner$1 as bJ, Indexed$1 as bK, deepCopy$1 as bL, isHexString$1 as bM, checkResultErrors$1 as bN, resolveProperties$1 as bO, accessListify$1 as bP, arrayify$1 as bQ, IMMUTABLE_API_BASE_URL as bR, ShimmerBox as bS, PASSPORT_URL as bT, getChainIdBySlug as bU, networkName as bV, RawImage as bW, AXELAR_SCAN_URL as bX, getNativeSymbolByChainSlug as bY, WalletProviderRdns as bZ, Web3Provider as b_, getImxTokenImage as ba, CloudImage as bb, Logo as bc, Icon as bd, getDefaultTokenImage as be, NATIVE as bf, DEFAULT_QUOTE_REFRESH_INTERVAL as bg, amountInputValidation as bh, Tooltip as bi, ESTIMATE_DEBOUNCE as bj, DEFAULT_TOKEN_VALIDATION_DECIMALS as bk, DEFAULT_TOKEN_DECIMALS as bl, sendSwapWidgetCloseEvent as bm, IMX_TOKEN_SYMBOL as bn, FooterButton as bo, SwapDirection as bp, StatusView as bq, sendSwapSuccessEvent as br, sendSwapFailedEvent as bs, sendSwapRejectedEvent as bt, global$2 as bu, ExchangeType as bv, sendOnRampWidgetCloseEvent as bw, sendOnRampSuccessEvent as bx, sendOnRampFailedEvent as by, axios$1 as bz, BUTTON_SIZES as c, se 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, hexZeroPad$1 as cA, isBigNumberish as cB, isBytes$1 as cC, PostMessageHandler as cD, PostMessageHandlerEventType as cE, CheckoutEventType as cF, CheckoutSuccessEventType as cG, CHECKOUT_APP_URL as cH, CheckoutFlowType as cI, ENV_DEVELOPMENT as cJ, OverflowPopoverMenu as cK, commonjsGlobal$2 as cL, requireSecp256k1 as cM, requireLib_commonjs as cN, require$$0$2 as cO, requireDist as cP, bech32 as cQ, bnExports$1 as cR, require$$0$3 as cS, getAugmentedNamespace$1 as cT, require$$0$5 as cU, minimalisticAssert$1 as cV, require$$2 as cW, hash$4 as cX, sendAddFundsCloseEvent as cY, TextInput as cZ, ne 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, PriceDisplay as cw, DuoCon as cx, useBrowserLayoutEffect as cy, version$r as cz, Button as d, T as d0, oe$2 as d1, R$3 as d2, a$2 as d3, te$2 as d4, p$3 as d5, y$3 as d6, __awaiter as d7, __generator as d8, loadScript as d9, getNextIntegrationsURL as da, unloadScript as db, __spreadArray$1 as dc, isOffline as dd, __assign as de, ContextCancelation as df, applyDestinationMiddleware as dg, dist as dh, isServer as di, mergedOptions as dj, isPlainObject as dk, pWhile as dl, PriorityQueue as dm, PersistedPriorityQueue as dn, attempt as dp, isOnline as dq, Context as dr, pTimeout as ds, gracefulDecodeURIComponent as dt, getDefaultExportFromCjs$2 as du, WidgetsFactory as dv, ButtonIcon as e, flattenChildren as f, getStartingSize as g, ButtonLogo as h, isChildSubcomponent as i, jsx$1 as j, _defineProperty as k, useTranslation as l, merge as m, jsxs as n, Body as o, ViewActions as p, ConnectLoaderContext as q, reactExports as r, setDefaultSxBackgroundColor as s, useAnalytics as t, useTheme as u, formatZeroAmount as v, isPassportProvider as w, getL2ChainId as x, getL1ChainId as y, Environment$1 as z };
@@ -1,4 +1,4 @@
1
- import { d8 as __awaiter, d9 as __generator, da as loadScript, db as getNextIntegrationsURL, dc as unloadScript, dd as __spreadArray, de as isOffline, df as __assign, dg as ContextCancelation, dh as applyDestinationMiddleware, di as dist, dj as isServer, dk as mergedOptions, dl as isPlainObject, dm as pWhile, dn as PriorityQueue, dp as PersistedPriorityQueue, dq as attempt, dr as isOnline, ds as Context } from './index-5qc7Vsg4.js';
1
+ import { d7 as __awaiter, d8 as __generator, d9 as loadScript, da as getNextIntegrationsURL, db as unloadScript, dc as __spreadArray, dd as isOffline, de as __assign, df as ContextCancelation, dg as applyDestinationMiddleware, dh as dist, di as isServer, dj as mergedOptions, dk as isPlainObject, dl as pWhile, dm as PriorityQueue, dn as PersistedPriorityQueue, dp as attempt, dq as isOnline, dr as Context } from './index-DnQfQojQ.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 { dv as getDefaultExportFromCjs } from './index-5qc7Vsg4.js';
1
+ import { du as getDefaultExportFromCjs } from './index-DnQfQojQ.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {
@@ -1,4 +1,4 @@
1
- import { r as reactExports, be as getDefaultTokenImage, j as jsx, cy as useBrowserLayoutEffect } from './index-5qc7Vsg4.js';
1
+ import { r as reactExports, be as getDefaultTokenImage, j as jsx, cy as useBrowserLayoutEffect } from './index-DnQfQojQ.js';
2
2
 
3
3
  function TokenImage({ src, name, environment, theme, defaultImage, ...forwardedProps }) {
4
4
  const [error, setError] = reactExports.useState(false);