@imtbl/sdk 1.78.3 → 1.78.4

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 (56) hide show
  1. package/dist/{blockchain_data-DZwc2fu2.js → blockchain_data-PTGoxxUk.js} +2 -2
  2. package/dist/blockchain_data.js +3 -3
  3. package/dist/browser/checkout/{AddTokensWidget-hN4Oz8Ns.js → AddTokensWidget-B9bjgGFL.js} +3 -3
  4. package/dist/browser/checkout/{BridgeWidget-A_pLUANI.js → BridgeWidget-1JpgUJ9B.js} +6 -6
  5. package/dist/browser/checkout/{CommerceWidget-BoKaAY5y.js → CommerceWidget-DGTwB2pR.js} +13 -13
  6. package/dist/browser/checkout/{FeesBreakdown-Cnmi6JuS.js → FeesBreakdown-CSf772jM.js} +1 -1
  7. package/dist/browser/checkout/{OnRampWidget-CYqTRHSC.js → OnRampWidget-DD2u_4kS.js} +3 -3
  8. package/dist/browser/checkout/{SaleWidget-DIW0k6AY.js → SaleWidget-BKXRdb-F.js} +10 -10
  9. package/dist/browser/checkout/{SpendingCapHero-Dp3KVsiY.js → SpendingCapHero-Dfpj4gVQ.js} +1 -1
  10. package/dist/browser/checkout/{SwapWidget-CO4Ks4Im.js → SwapWidget-CapNhDxH.js} +68 -11
  11. package/dist/browser/checkout/{TokenImage-BNq0SnBY.js → TokenImage-cuy99Q3z.js} +1 -1
  12. package/dist/browser/checkout/{TopUpView-CHsQmxQQ.js → TopUpView-DSHHu1bC.js} +1 -1
  13. package/dist/browser/checkout/{WalletApproveHero-Bj4aKxP9.js → WalletApproveHero-DNP71VT8.js} +3 -3
  14. package/dist/browser/checkout/{WalletWidget-BsKIkdBf.js → WalletWidget-D5CQtFOw.js} +3 -3
  15. package/dist/browser/checkout/{auto-track-BM5HqFI3.js → auto-track-ZSD3meU5.js} +1 -1
  16. package/dist/browser/checkout/{index-D9AyMqDS.js → index-B3PdDan9.js} +1 -1
  17. package/dist/browser/checkout/{index-D-MV_CPF.js → index-BUjxwhbn.js} +1 -1
  18. package/dist/browser/checkout/{index-Cp7l-bwg.js → index-DwoF2xE9.js} +1 -1
  19. package/dist/browser/checkout/{index-DubSxoZp.js → index-UWwEBJUL.js} +1 -1
  20. package/dist/browser/checkout/{index-DatkoxOH.js → index-a9WCTqrO.js} +1 -1
  21. package/dist/browser/checkout/{index-D0Nv1xcY.js → index-gx60kT98.js} +1 -1
  22. package/dist/browser/checkout/{index-CNJ98XFR.js → index-riGT8jUx.js} +2 -2
  23. package/dist/browser/checkout/{index-BDZfw_Cp.js → index-zhSt3pns.js} +35 -27
  24. package/dist/browser/checkout/{index.umd-Dyg-Hme-.js → index.umd-CR1xvgEn.js} +1 -1
  25. package/dist/browser/checkout/sdk.js +4 -4
  26. package/dist/browser/checkout/{useInterval-WSD1wTJp.js → useInterval-0yXsNl1l.js} +1 -1
  27. package/dist/browser/checkout/widgets-esm.js +1 -1
  28. package/dist/browser/checkout/widgets.js +78 -13
  29. package/dist/{checkout-D85H2UOr.js → checkout-oPpuXY4L.js} +5 -5
  30. package/dist/checkout.js +5 -5
  31. package/dist/{config-DRAyKVu-.js → config-BWfb83cE.js} +1 -1
  32. package/dist/config.js +1 -1
  33. package/dist/{index-CCDv6Cyl.js → index-Bl7On7mL.js} +1 -1
  34. package/dist/{index-0O2fcy0v.js → index-Bw8fn1Wa.js} +1 -1
  35. package/dist/{index-BNliR-wj.js → index-CSoPbsbu.js} +3 -3
  36. package/dist/{index-CylHn7jn.js → index-DicbPhj8.js} +4 -4
  37. package/dist/{index-CyF8Dbrm.js → index-PHKSQRIK.js} +1 -1
  38. package/dist/{index-DcwsoYMg.js → index-Q-ssUIWm.js} +97 -16
  39. package/dist/index.browser.js +4 -4
  40. package/dist/index.browser.js.map +1 -1
  41. package/dist/index.cjs +103 -22
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +14 -14
  44. package/dist/{minting_backend-DeDeOgv8.js → minting_backend--5_apAXv.js} +3 -3
  45. package/dist/minting_backend.js +5 -5
  46. package/dist/{orderbook-DeNPn-Ds.js → orderbook-BgsCWy3W.js} +1 -1
  47. package/dist/orderbook.js +2 -2
  48. package/dist/{passport-KAsDtSFi.js → passport-0-rakGej.js} +3 -3
  49. package/dist/passport.d.ts +1 -1
  50. package/dist/passport.js +4 -4
  51. package/dist/version.json +1 -1
  52. package/dist/{webhook-BMfjDENm.js → webhook-8wr5kAkj.js} +1 -1
  53. package/dist/webhook.js +2 -2
  54. package/dist/{x-DYmEE5xd.js → x-BzOMkL8a.js} +3 -3
  55. package/dist/x.js +4 -4
  56. package/package.json +1 -1
@@ -132969,7 +132969,7 @@ var views$3 = {
132969
132969
  drawer: {
132970
132970
  options: {
132971
132971
  heading: "Pay from",
132972
- moreOptionsDividerText: "More ways to Pay",
132972
+ moreOptionsDividerText: "Other ways to Pay",
132973
132973
  loadingText1: "Finding the best value",
132974
132974
  loadingText2: "across all chains",
132975
132975
  noRoutes: {
@@ -132981,6 +132981,7 @@ var views$3 = {
132981
132981
  caption: "Swap tokens on this network.",
132982
132982
  disabledCaption: "Currently not available."
132983
132983
  },
132984
+ changeWallet: "Choose another wallet",
132984
132985
  debit: {
132985
132986
  heading: "Debit Card",
132986
132987
  caption: "",
@@ -134215,7 +134216,7 @@ var views$2 = {
134215
134216
  drawer: {
134216
134217
  options: {
134217
134218
  heading: "支払い元",
134218
- moreOptionsDividerText: "支払い方法の追加",
134219
+ moreOptionsDividerText: "その他の支払い方法",
134219
134220
  loadingText1: "最適な価値を検索中",
134220
134221
  loadingText2: "すべてのチェーンを横断",
134221
134222
  noRoutes: {
@@ -134227,6 +134228,7 @@ var views$2 = {
134227
134228
  caption: "このネットワークでトークンを交換します。",
134228
134229
  disabledCaption: "現在利用できません。"
134229
134230
  },
134231
+ changeWallet: "別のウォレットを選択",
134230
134232
  debit: {
134231
134233
  heading: "デビットカード",
134232
134234
  caption: "",
@@ -135489,6 +135491,7 @@ var views$1 = {
135489
135491
  caption: "이 네트워크에서 토큰을 교환합니다.",
135490
135492
  disabledCaption: "현재 이용할 수 없습니다."
135491
135493
  },
135494
+ changeWallet: "다른 지갑 선택",
135492
135495
  debit: {
135493
135496
  heading: "직불 카드",
135494
135497
  caption: "",
@@ -136739,7 +136742,7 @@ var views = {
136739
136742
  drawer: {
136740
136743
  options: {
136741
136744
  heading: "支付来源",
136742
- moreOptionsDividerText: "更多支付方式",
136745
+ moreOptionsDividerText: "其他支付方式",
136743
136746
  loadingText1: "寻找最佳价值",
136744
136747
  loadingText2: "跨所有链",
136745
136748
  noRoutes: {
@@ -136751,6 +136754,7 @@ var views = {
136751
136754
  caption: "在此网络上交换代币。",
136752
136755
  disabledCaption: "当前不可用。"
136753
136756
  },
136757
+ changeWallet: "选择另一个钱包",
136754
136758
  debit: {
136755
136759
  heading: "借记卡",
136756
136760
  caption: "",
@@ -137581,7 +137585,7 @@ function snapshot(proxyObject, handlePromise) {
137581
137585
 
137582
137586
  const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$2={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$4={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$4.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$4.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$4.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$4.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$4.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$2.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$4=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$5={state:r$4,subscribe(e){return subscribe(r$4.events,()=>e(snapshot(r$4.events[r$4.events.length-1])))},initialize(){r$4.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$4.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$4.connectedWalletId=e;},click(e){if(r$4.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}},track(e){if(r$4.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}},view(e){if(r$4.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$4.userSessionId,timestamp:Date.now(),data:e};r$4.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$3=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$6={state:W$3,subscribe(e){return subscribe(W$3,()=>e(W$3))},setConfig(e){var t,s;R$5.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$4.setModalVersionInStorage(),Object.assign(W$3,e);}};var V$4=Object.defineProperty,D$6=Object.getOwnPropertySymbols,H$4=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$4.call(t,s)&&M$4(e,s,t[s]);if(D$6)for(var s of D$6(t))B$4.call(t,s)&&M$4(e,s,t[s]);return e};const L$5="https://explorer-api.walletconnect.com",E$4="wcm",O$5="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$4,sdkVersion:O$5},t),n=new URL(e,L$5);return n.searchParams.append("projectId",y$6.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$5={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$5}/w3m/v1/getWalletImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$5}`},getAssetImageUrl(e){return `${L$5}/w3m/v1/getAssetImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$5}`}};var z$5=Object.defineProperty,j$3=Object.getOwnPropertySymbols,J$3=Object.prototype.hasOwnProperty,q$5=Object.prototype.propertyIsEnumerable,k$4=(e,t,s)=>t in e?z$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$5=(e,t)=>{for(var s in t||(t={}))J$3.call(t,s)&&k$4(e,s,t[s]);if(j$3)for(var s of j$3(t))q$5.call(t,s)&&k$4(e,s,t[s]);return e};const N$4=a$4.isMobile(),d$5=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$4={state:d$5,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$6.state;if(e==="NONE"||t==="ALL"&&!e)return d$5.recomendedWallets;if(a$4.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$5.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$5.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$4.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$4.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$4?await m$5.getMobileListings(v):await m$5.getDesktopListings(v);d$5.recomendedWallets=Object.values(b);}return d$5.recomendedWallets},async getWallets(e){const t=F$5({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$6.state,{recomendedWallets:i}=d$5;if(n==="ALL")return d$5.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$4.isArray(s)&&(t.excludedIds=s.join(",")),a$4.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$4?await m$5.getMobileListings(t):await m$5.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$5[U]={listings:[...d$5[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$5.getWalletImageUrl(e)},getAssetImageUrl(e){return m$5.getAssetImageUrl(e)},resetSearch(){d$5.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$4.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$2.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$4=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$6=Object.prototype.hasOwnProperty,X$4=Object.prototype.propertyIsEnumerable,S$4=(e,t,s)=>t in e?G$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$6.call(t,s)&&S$4(e,s,t[s]);if($$3)for(var s of $$3(t))X$4.call(t,s)&&S$4(e,s,t[s]);return e};function Z$4(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$2=proxy({themeMode:Z$4()?"dark":"light"}),ne$2={state:C$2,subscribe(e){return subscribe(C$2,()=>e(C$2))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$2.themeMode=t),s&&(C$2.themeVariables=Y$2({},s));}},g$8=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$8,subscribe(e){return subscribe(g$8,()=>e(g$8))},openToast(e,t){g$8.open=!0,g$8.message=e,g$8.variant=t;},closeToast(){g$8.open=!1;}};
137583
137587
 
137584
- let d$4 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-DatkoxOH.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
137588
+ let d$4 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-a9WCTqrO.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
137585
137589
 
137586
137590
  var index$1 = /*#__PURE__*/Object.freeze({
137587
137591
  __proto__: null,
@@ -154422,7 +154426,7 @@ var Analytics = /** @class */ (function (_super) {
154422
154426
  return __generator(this, function (_b) {
154423
154427
  switch (_b.label) {
154424
154428
  case 0: return [4 /*yield*/, import(
154425
- /* webpackChunkName: "auto-track" */ './auto-track-BM5HqFI3.js')];
154429
+ /* webpackChunkName: "auto-track" */ './auto-track-ZSD3meU5.js')];
154426
154430
  case 1:
154427
154431
  autotrack = _b.sent();
154428
154432
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -154441,7 +154445,7 @@ var Analytics = /** @class */ (function (_super) {
154441
154445
  return __generator(this, function (_b) {
154442
154446
  switch (_b.label) {
154443
154447
  case 0: return [4 /*yield*/, import(
154444
- /* webpackChunkName: "auto-track" */ './auto-track-BM5HqFI3.js')];
154448
+ /* webpackChunkName: "auto-track" */ './auto-track-ZSD3meU5.js')];
154445
154449
  case 1:
154446
154450
  autotrack = _b.sent();
154447
154451
  return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -154460,7 +154464,7 @@ var Analytics = /** @class */ (function (_super) {
154460
154464
  return __generator(this, function (_b) {
154461
154465
  switch (_b.label) {
154462
154466
  case 0: return [4 /*yield*/, import(
154463
- /* webpackChunkName: "auto-track" */ './auto-track-BM5HqFI3.js')];
154467
+ /* webpackChunkName: "auto-track" */ './auto-track-ZSD3meU5.js')];
154464
154468
  case 1:
154465
154469
  autotrack = _b.sent();
154466
154470
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -154479,7 +154483,7 @@ var Analytics = /** @class */ (function (_super) {
154479
154483
  return __generator(this, function (_b) {
154480
154484
  switch (_b.label) {
154481
154485
  case 0: return [4 /*yield*/, import(
154482
- /* webpackChunkName: "auto-track" */ './auto-track-BM5HqFI3.js')];
154486
+ /* webpackChunkName: "auto-track" */ './auto-track-ZSD3meU5.js')];
154483
154487
  case 1:
154484
154488
  autotrack = _b.sent();
154485
154489
  return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
@@ -154629,7 +154633,7 @@ var Analytics = /** @class */ (function (_super) {
154629
154633
  return [2 /*return*/, []];
154630
154634
  }
154631
154635
  return [4 /*yield*/, import(
154632
- /* webpackChunkName: "queryString" */ './index-DubSxoZp.js')];
154636
+ /* webpackChunkName: "queryString" */ './index-UWwEBJUL.js')];
154633
154637
  case 1:
154634
154638
  queryString = (_a.sent()).queryString;
154635
154639
  return [2 /*return*/, queryString(this, query)];
@@ -157333,7 +157337,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
157333
157337
  case 0:
157334
157338
  if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
157335
157339
  return [4 /*yield*/, import(
157336
- /* webpackChunkName: "tsub-middleware" */ './index-D0Nv1xcY.js').then(function (mod) {
157340
+ /* webpackChunkName: "tsub-middleware" */ './index-gx60kT98.js').then(function (mod) {
157337
157341
  return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
157338
157342
  })];
157339
157343
  case 1:
@@ -157346,7 +157350,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
157346
157350
  tsubMiddleware = _d;
157347
157351
  if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
157348
157352
  return [4 /*yield*/, import(
157349
- /* webpackChunkName: "ajs-destination" */ './index-D-MV_CPF.js').then(function (mod) {
157353
+ /* webpackChunkName: "ajs-destination" */ './index-BUjxwhbn.js').then(function (mod) {
157350
157354
  return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
157351
157355
  })];
157352
157356
  case 4:
@@ -157359,7 +157363,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
157359
157363
  legacyDestinations = _e;
157360
157364
  if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
157361
157365
  return [4 /*yield*/, import(
157362
- /* webpackChunkName: "legacyVideos" */ './index-CNJ98XFR.js').then(function (mod) {
157366
+ /* webpackChunkName: "legacyVideos" */ './index-riGT8jUx.js').then(function (mod) {
157363
157367
  return mod.loadLegacyVideoPlugins(analytics);
157364
157368
  })];
157365
157369
  case 7:
@@ -157368,7 +157372,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
157368
157372
  case 8:
157369
157373
  if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
157370
157374
  return [4 /*yield*/, import(
157371
- /* webpackChunkName: "schemaFilter" */ './index-D9AyMqDS.js').then(function (mod) {
157375
+ /* webpackChunkName: "schemaFilter" */ './index-B3PdDan9.js').then(function (mod) {
157372
157376
  var _a;
157373
157377
  return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
157374
157378
  })];
@@ -157407,7 +157411,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
157407
157411
  return enabled;
157408
157412
  })) return [3 /*break*/, 17];
157409
157413
  return [4 /*yield*/, import(
157410
- /* webpackChunkName: "remoteMiddleware" */ './index-Cp7l-bwg.js').then(function (_a) {
157414
+ /* webpackChunkName: "remoteMiddleware" */ './index-DwoF2xE9.js').then(function (_a) {
157411
157415
  var remoteMiddlewares = _a.remoteMiddlewares;
157412
157416
  return __awaiter$5(_this, void 0, void 0, function () {
157413
157417
  var middleware, promises;
@@ -245148,7 +245152,7 @@ const useProvidersContext = () => {
245148
245152
  return context;
245149
245153
  };
245150
245154
 
245151
- const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-hN4Oz8Ns.js'));
245155
+ const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-B9bjgGFL.js'));
245152
245156
  class AddTokens extends Base$3 {
245153
245157
  eventTopic = IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT;
245154
245158
  getValidatedProperties({ config, }) {
@@ -245192,7 +245196,7 @@ class AddTokens extends Base$3 {
245192
245196
  }
245193
245197
  }
245194
245198
 
245195
- const BridgeWidget = React.lazy(() => import('./BridgeWidget-A_pLUANI.js'));
245199
+ const BridgeWidget = React.lazy(() => import('./BridgeWidget-1JpgUJ9B.js'));
245196
245200
  class Bridge extends Base$3 {
245197
245201
  eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
245198
245202
  getValidatedProperties({ config }) {
@@ -245347,7 +245351,7 @@ const commerceFlows = [
245347
245351
  CommerceFlowType.PURCHASE,
245348
245352
  ];
245349
245353
 
245350
- const CommerceWidget = React.lazy(() => import('./CommerceWidget-BoKaAY5y.js'));
245354
+ const CommerceWidget = React.lazy(() => import('./CommerceWidget-DGTwB2pR.js'));
245351
245355
  class CommerceWidgetRoot extends Base$3 {
245352
245356
  eventTopic = IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT;
245353
245357
  getValidatedProperties({ config, }) {
@@ -247591,7 +247595,7 @@ const orchestrationEvents = {
247591
247595
  sendRequestAddTokensEvent,
247592
247596
  };
247593
247597
 
247594
- const OnRampWidget = React.lazy(() => import('./OnRampWidget-CYqTRHSC.js'));
247598
+ const OnRampWidget = React.lazy(() => import('./OnRampWidget-DD2u_4kS.js'));
247595
247599
  class OnRamp extends Base$3 {
247596
247600
  eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
247597
247601
  getValidatedProperties({ config }) {
@@ -247729,7 +247733,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
247729
247733
  eventTarget.dispatchEvent(event);
247730
247734
  };
247731
247735
 
247732
- const SaleWidget = React.lazy(() => import('./SaleWidget-DIW0k6AY.js'));
247736
+ const SaleWidget = React.lazy(() => import('./SaleWidget-BKXRdb-F.js'));
247733
247737
  class Sale extends Base$3 {
247734
247738
  eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
247735
247739
  // TODO: add specific validation logic for the sale items
@@ -247878,7 +247882,7 @@ const sendSwapRejectedEvent = (eventTarget, reason) => {
247878
247882
  eventTarget.dispatchEvent(rejectedEvent);
247879
247883
  };
247880
247884
 
247881
- const SwapWidget = React.lazy(() => import('./SwapWidget-CO4Ks4Im.js'));
247885
+ const SwapWidget = React.lazy(() => import('./SwapWidget-CapNhDxH.js'));
247882
247886
  class Swap extends Base$3 {
247883
247887
  eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
247884
247888
  getValidatedProperties({ config }) {
@@ -247980,7 +247984,7 @@ function sendDisconnectWalletEvent(eventTarget) {
247980
247984
  eventTarget.dispatchEvent(disconnectWalletEvent);
247981
247985
  }
247982
247986
 
247983
- const WalletWidget = React.lazy(() => import('./WalletWidget-BsKIkdBf.js'));
247987
+ const WalletWidget = React.lazy(() => import('./WalletWidget-D5CQtFOw.js'));
247984
247988
  class Wallet extends Base$3 {
247985
247989
  eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
247986
247990
  getValidatedProperties({ config }) {
@@ -250195,7 +250199,7 @@ function FiatOption({ type, onClick, disabled = false, size = 'small', rc = jsx$
250195
250199
  size,
250196
250200
  rc,
250197
250201
  };
250198
- return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.FramedIcon, { icon: icon[type], variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t(`views.PURCHASE.drawer.options.${type}.heading`) }), jsx$1(MenuItem.Caption, { children: t(`views.PURCHASE.drawer.options.${type}.${disabled ? 'disabledCaption' : 'caption'}`) }), !disabled && jsx$1(MenuItem.IntentIcon, {})] }));
250202
+ return (jsxs(MenuItem, { ...menuItemProps, children: [jsx$1(MenuItem.FramedIcon, { icon: icon[type], variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t(`views.PURCHASE.drawer.options.${type}.heading`) }), jsx$1(MenuItem.Caption, { children: t(`views.PURCHASE.drawer.options.${type}.${disabled ? 'disabledCaption' : 'caption'}`) })] }));
250199
250203
  }
250200
250204
 
250201
250205
  const emptyRouteBalance = {
@@ -250261,7 +250265,7 @@ const defaultFiatOptions = [
250261
250265
  FiatOptionType.DEBIT,
250262
250266
  FiatOptionType.CREDIT,
250263
250267
  ];
250264
- function RouteOptions({ checkout, routes, chains, onCardClick, onRouteClick, onDirectCryptoPayClick, size, showOnrampOption,
250268
+ function RouteOptions({ checkout, routes, chains, onCardClick, onRouteClick, onDirectCryptoPayClick, onChangeWalletClick, size, showOnrampOption,
250265
250269
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
250266
250270
  showDirectCryptoPayOption, insufficientBalance, selectedIndex, selectedRouteType, directCryptoPayRoutes, }) {
250267
250271
  const { t } = useTranslation();
@@ -250271,10 +250275,10 @@ showDirectCryptoPayOption, insufficientBalance, selectedIndex, selectedRouteType
250271
250275
  && (directCryptoPayRoutes?.map((routeData, index) => (jsx$1(DirectCryptoPayOption, { size: size, routeData: routeData, chains: chains, onClick: () => onDirectCryptoPayClick(routeData, index), isFastest: index === 0, selected: index === selectedIndex
250272
250276
  && (selectedRouteType === DirectCryptoPayOptionType.IMMUTABLE_ZKEVM || !selectedRouteType), rc: jsx$1(motion.div, { variants: listItemVariants }) }, `direct-crypto-pay-option-${routeData.amountData.fromToken.chainId}-`
250273
250277
  + `${routeData.amountData.fromToken.address}`)))), (routes && routes.length > 0)
250274
- && routes?.map((routeData, index) => (jsx$1(RouteOption, { size: size, routeData: routeData, chains: chains, onClick: () => onRouteClick(routeData, index), isFastest: directCryptoPayRoutes && directCryptoPayRoutes.length > 0 ? false : index === 0, selected: index === selectedIndex && selectedRouteType === SquidRouteOptionType.SQUID_ROUTE, rc: jsx$1(motion.div, { variants: listItemVariants }) }, `route-option-${routeData.amountData.fromToken.chainId}-${routeData.amountData.fromToken.address}`))), noRoutes && (jsxs(Banner, { children: [jsx$1(Banner.Icon, { icon: "InformationCircle" }), jsx$1(Banner.Title, { children: t('views.PURCHASE.drawer.options.noRoutes.heading') }), jsx$1(Banner.Caption, { children: t('views.PURCHASE.drawer.options.noRoutes.caption') })] })), !routes?.length && !insufficientBalance && renderLoading(), showOnrampOption && (jsxs(Fragment$1, { children: [jsx$1(Divider, { size: "xSmall", sx: { my: 'base.spacing.x2' }, children: t('views.PURCHASE.drawer.options.moreOptionsDividerText') }), defaultFiatOptions.map((type, idx) => (jsx$1(FiatOption, { type: type, size: size, onClick: onCardClick, rc: jsx$1(motion.div, { custom: idx, variants: listItemVariants }) }, `fiat-option-${type}`)))] }))] }));
250278
+ && routes?.map((routeData, index) => (jsx$1(RouteOption, { size: size, routeData: routeData, chains: chains, onClick: () => onRouteClick(routeData, index), isFastest: directCryptoPayRoutes && directCryptoPayRoutes.length > 0 ? false : index === 0, selected: index === selectedIndex && selectedRouteType === SquidRouteOptionType.SQUID_ROUTE, rc: jsx$1(motion.div, { variants: listItemVariants }) }, `route-option-${routeData.amountData.fromToken.chainId}-${routeData.amountData.fromToken.address}`))), noRoutes && (jsxs(Banner, { children: [jsx$1(Banner.Icon, { icon: "InformationCircle" }), jsx$1(Banner.Title, { children: t('views.PURCHASE.drawer.options.noRoutes.heading') }), jsx$1(Banner.Caption, { children: t('views.PURCHASE.drawer.options.noRoutes.caption') })] })), !routes?.length && !insufficientBalance && renderLoading(), showOnrampOption && (routes?.length || insufficientBalance) && (jsxs(Fragment$1, { children: [jsx$1(Divider, { size: "xSmall", sx: { my: 'base.spacing.x2' }, children: t('views.PURCHASE.drawer.options.moreOptionsDividerText') }), jsxs(MenuItem, { emphasized: true, onClick: onChangeWalletClick, size: "small", children: [jsx$1(MenuItem.FramedIcon, { icon: "Wallet", variant: "bold", emphasized: false }), jsx$1(MenuItem.Label, { children: t('views.PURCHASE.drawer.options.changeWallet') })] }), defaultFiatOptions.map((type, idx) => (jsx$1(FiatOption, { type: type, size: size, onClick: onCardClick, rc: jsx$1(motion.div, { custom: idx, variants: listItemVariants }) }, `fiat-option-${type}`)))] }))] }));
250275
250279
  }
250276
250280
 
250277
- function RouteOptionsDrawer({ checkout, routes, chains, visible, onClose, onRouteClick, onCardClick, onDirectCryptoPayClick, showOnrampOption, showDirectCryptoPayOption,
250281
+ function RouteOptionsDrawer({ checkout, routes, chains, visible, onClose, onRouteClick, onCardClick, onDirectCryptoPayClick, onChangeWalletClick, showOnrampOption, showDirectCryptoPayOption,
250278
250282
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
250279
250283
  showSwapOption,
250280
250284
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -250295,6 +250299,10 @@ showBridgeOption, insufficientBalance, directCryptoPayRoutes, }) {
250295
250299
  setSelectedRouteType(DirectCryptoPayOptionType.IMMUTABLE_ZKEVM);
250296
250300
  onDirectCryptoPayClick(route);
250297
250301
  };
250302
+ const handleOnChangeWalletClick = () => {
250303
+ onClose();
250304
+ onChangeWalletClick();
250305
+ };
250298
250306
  reactExports.useEffect(() => {
250299
250307
  if (!visible) {
250300
250308
  return;
@@ -250317,7 +250325,7 @@ showBridgeOption, insufficientBalance, directCryptoPayRoutes, }) {
250317
250325
  return (jsx$1(Drawer, { size: "full", visible: visible, showHeaderBar: false, onCloseDrawer: onClose, children: jsxs(Drawer.Content, { rc: jsx$1(motion.div, { variants: listVariants, initial: "hidden", animate: "show" }), sx: {
250318
250326
  pt: 'base.spacing.x3',
250319
250327
  px: 'base.spacing.x3',
250320
- }, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: (jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name })), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: fromProviderInfo?.name }), jsx$1(MenuItem.Caption, { children: jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } }) }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(RouteOptions, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, onDirectCryptoPayClick: handleOnDirectCryptoPayClick, showOnrampOption: showOnrampOption, showDirectCryptoPayOption: showDirectCryptoPayOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current, selectedRouteType: selectedRouteType, directCryptoPayRoutes: directCryptoPayRoutes })] }) }));
250328
+ }, children: [jsxs(MenuItem, { size: "xSmall", children: [jsx$1(MenuItem.FramedImage, { padded: true, emphasized: true, use: (jsx$1("img", { src: fromProviderInfo?.icon, alt: fromProviderInfo?.name })), sx: { mx: 'base.spacing.x2' } }), jsx$1(MenuItem.Label, { children: fromProviderInfo?.name }), jsx$1(MenuItem.Caption, { children: jsx$1(EllipsizedText, { text: fromAddress ?? '', sx: { c: 'inherit', fontSize: 'inherit' } }) }), jsx$1(MenuItem.StatefulButtCon, { icon: "ChevronExpand", onClick: onClose })] }), jsx$1(RouteOptions, { size: "small", checkout: checkout, routes: routes, chains: chains, onCardClick: onCardClick, onRouteClick: handleOnRouteClick, onDirectCryptoPayClick: handleOnDirectCryptoPayClick, onChangeWalletClick: handleOnChangeWalletClick, showOnrampOption: showOnrampOption, showDirectCryptoPayOption: showDirectCryptoPayOption, insufficientBalance: insufficientBalance, selectedIndex: selectedRouteIndex.current, selectedRouteType: selectedRouteType, directCryptoPayRoutes: directCryptoPayRoutes })] }) }));
250321
250329
  }
250322
250330
 
250323
250331
  function PurchaseSelectedRouteOption({ checkout, routeData, chains, loading = false, insufficientBalance = false, directCryptoPay = false, showOnrampOption = false, onClick, }) {
@@ -250948,7 +250956,7 @@ function Purchase$1({ checkout, environmentId, onCloseButtonClick, showBackButto
250948
250956
  address: toAddress,
250949
250957
  }, onClick: () => setShowDeliverToWalletDrawer(true), disabled: lockedToProvider })] }), jsx$1(Button, { testId: "purchase-proceed-button", size: "large", variant: readyToProceed ? 'primary' : 'secondary', disabled: !readyToProceed, sx: { opacity: readyToProceed ? 1 : 0.5 }, onClick: handleProceedClick, children: t$7('views.PURCHASE.review.buttonText') }), jsx$1(SquidFooter, {})] })] }), jsx$1(PurchasePayWithWalletDrawer, { visible: showPayWithWalletDrawer, walletOptions: walletOptions, onClose: () => {
250950
250958
  setShowPayWithWalletDrawer(false);
250951
- }, onPayWithCard: handlePayWithCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx$1(PurchaseDeliverToWalletDrawer, { visible: showDeliverToWalletDrawer, walletOptions: walletOptions, onClose: handleDeliverToWalletClose, onConnect: () => undefined }), jsx$1(RouteOptionsDrawer, { checkout: checkout, routes: routes, chains: chains, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, showDirectCryptoPayOption: true, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handlePayWithCardClick, onRouteClick: handleRouteClick, onDirectCryptoPayClick: handleDirectCryptoPayClick, insufficientBalance: insufficientBalance, directCryptoPayRoutes: directCryptoPayRoutes })] }));
250959
+ }, onPayWithCard: handlePayWithCardClick, onConnect: handleWalletConnected, insufficientBalance: insufficientBalance, showOnRampOption: shouldShowOnRampOption }), jsx$1(PurchaseDeliverToWalletDrawer, { visible: showDeliverToWalletDrawer, walletOptions: walletOptions, onClose: handleDeliverToWalletClose, onConnect: () => undefined }), jsx$1(RouteOptionsDrawer, { checkout: checkout, routes: routes, chains: chains, showSwapOption: showSwapOption, showBridgeOption: showBridgeOption, showOnrampOption: shouldShowOnRampOption, showDirectCryptoPayOption: true, visible: showOptionsDrawer, onClose: () => setShowOptionsDrawer(false), onCardClick: handlePayWithCardClick, onRouteClick: handleRouteClick, onDirectCryptoPayClick: handleDirectCryptoPayClick, onChangeWalletClick: () => setShowPayWithWalletDrawer(true), insufficientBalance: insufficientBalance, directCryptoPayRoutes: directCryptoPayRoutes })] }));
250952
250960
  }
250953
250961
 
250954
250962
  /**
@@ -1,4 +1,4 @@
1
- import { z as getDefaultExportFromCjs } from './index-BDZfw_Cp.js';
1
+ import { z as getDefaultExportFromCjs } from './index-zhSt3pns.js';
2
2
 
3
3
  function _mergeNamespaces(n, m) {
4
4
  m.forEach(function (e) {